1.2.8.4.5 SRV_RSERIAL_ParseTxMessageTrxId Function

C

DRV_RF215_TRX_ID SRV_RSERIAL_ParseTxMessageTrxId(uint8_t* pDataSrc);

Summary

Extracts the TRX identifier from SRV_RSERIAL_CMD_PHY_SEND_MSG serial frame.

Description

Takes a SRV_RSERIAL_CMD_PHY_SEND_MSG serial frame as parameter and extracts the TRX identifier (Sub-1GHz, 2.4GHz).

Precondition

None.

Parameters

ParamDescription
pDataSrcPointer to buffer containing serial frame

Returns

Pointer to PIB data value to set (only for set PIB serial frame).

Example

SRV_RSERIAL_COMMAND command;
DRV_RF215_TRX_ID trxId;

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

if (command == SRV_RSERIAL_CMD_PHY_SEND_MSG)
{
    // Parse TRX identifier from USI
    trxId = SRV_RSERIAL_ParseTxMessageTrxId(pData);
}

Remarks

None.