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

ParamDescription
pDataPointer to buffer containing serial frame

Example

SRV_RSERIAL_COMMAND command;

// Process received message from USI
command = SRV_RSERIAL_GetCommand(pData);

Remarks

None.