1.2.8.4.1 SRV_RSERIAL_GetCommand Function
C
SRV_RSERIAL_COMMAND SRV_RSERIAL_GetCommand(uint8_t* pData);
Summary
Extracts command field from serial frame.
Description
Takes serial frame as parameter and extracts the command field from the expected position in buffer.
Precondition
None.
Parameters
Param | Description |
---|---|
pData | Pointer to buffer containing serial frame |
Returns
Command in the form of SRV_RSERIAL_COMMAND Enum.
Example
SRV_RSERIAL_COMMAND command; // Process received message from USI command = SRV_RSERIAL_GetCommand(pData);
Remarks
None.