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