1.2.8.4.9 SRV_RSERIAL_SerialCfmMessage Function
C
uint8_t* SRV_RSERIAL_SerialRxMessage ( DRV_RF215_RX_INDICATION_OBJ* pIndObj, DRV_RF215_TRX_ID trxId, DRV_RF215_PHY_CFG_OBJ* pPhyCfgObj, size_t* pMsgLen );
Summary
Serializes the result of a RF transmitted frame.
Description
Takes a DRV_RF215_TX_CONFIRM_OBJ object as parameter, and builds a serialized frame containing the RF transmission result and parameters.
Precondition
DRV_RF215_TxRequest and SRV_RSERIAL_SetTxHandle must have been called before.
Parameters
Param | Description |
---|---|
pCfmObj | Pointer to RF transmit confirm object containing the transmission result |
trxId | TRX identifier (Sub-1GHz, 2.4GHz) |
txHandle | Transmission handle corresponding to transmit confirm |
pMsgLen | Pointer to sniffer message length in bytes (output) |
Returns
Pointer to sniffer message to be sent through serial interface.
Example
DRV_HANDLE rf215Handle; // Returned from DRV_RF215_Open SRV_USI_HANDLE srvUSIHandle; // returned from SRV_USI_Open void _APP_RF_TxCfmCb ( DRV_RF215_TX_HANDLE txHandle, DRV_RF215_TX_CONFIRM_OBJ *cfmObj, uintptr_t ctxt ) { uint8_t* pSerialData; size_t length; // Serialize confirm and send through USI pSerialData = SRV_RSERIAL_SerialCfmMessage(cfmObj, RF215_TRX_ID_RF09, txHandle, &length); SRV_USI_Send_Message(srvUSIHandle, SRV_USI_PROT_ID_PHY_RF215, pSerialData, length); }
Remarks
None.