1.2.7.4.3 SRV_RSNIFFER_SetTxMessage Function
C
void SRV_RSNIFFER_SetTxMessage ( DRV_RF215_TX_REQUEST_OBJ* pReqObj, DRV_RF215_TX_HANDLE txHandle );
Summary
Gives a transmitted RF TX request object to sniffer library so it is stored for later serialization.
Description
The given RF TX request contains a RF frame and its related parameters. This information is stored in sniffer library for later serialization when SRV_RSNIFFER_SerialCfmMessage is called.
Precondition
None.
Parameters
Param | Description |
---|---|
pReqObj | Pointer to the RF TX request object |
txHandle | TX handle returned from DRV_RF215_TxRequest |
Returns
None.
Example
DRV_HANDLE drvRf215Handle // returned from DRV_RF215_Open DRV_RF215_TX_REQUEST_OBJ txReqObj; DRV_RF215_TX_RESULT txReqResult; DRV_RF215_TX_HANDLE txReqHandle; uint8_t psduTx[DRV_RF215_MAX_PSDU_LEN]; txReqObj.cancelByRx = false; txReqObj.ccaMode = PHY_CCA_MODE_3; txReqObj.modScheme = FSK_FEC_OFF; txReqObj.txPwrAtt = 0; txReqObj.psduLen = DRV_RF215_MAX_PSDU_LEN; txReqObj.timeMode = TX_TIME_RELATIVE; txReqObj.timeCount = 0; txReqObj.psdu = psduTx; txReqHandle = DRV_RF215_TxRequest(drvRf215Handle, &txReqObj, &txReqResult); if (txReqHandle != DRV_RF215_TX_HANDLE_INVALID) { SRV_RSNIFFER_SetTxMessage(&txReqObj, txReqHandle); }
Remarks
None.