1.5.3.25 PAL_RF_DataIndication Typedef
C
typedef void (*PAL_RF_DataIndication)(uint8_t *pData, uint16_t length, PAL_RF_RX_PARAMETERS *pParameters);
Summary
Pointer to a RF PAL module receive indication callback function.
Description
This data type defines the required function signature for the RF PAL receive indication event handling callback function. When PAL_RF_Initialize is called, a client must register a pointer whose function signature (parameter and return value types) matches the types specified by this function pointer in order to receive transfer related event calls back from the RF PAL.
Parameters
Param | Description |
---|---|
pData | Pointer to the buffer containing the data associated to the receive indication. |
length | PSDU length in bytes (including FCS). |
pParameters | Pointer to the parameters associated to the receive indication. |
Returns
None.
Example
static void _rfDataIndication(uint8_t *pData, uint16_t length, PAL_RF_RX_PARAMETERS *pParameters)
{
// Reception handling here.
}
PAL_RF_INIT palRfInitData;
SYS_MODULE_OBJ palRfObj;
palRfInitData.rfPhyHandlers.palRfDataIndication = _rfDataIndication;
palRfInitData.rfPhyHandlers.palRfTxConfirm = _rfTxConfirm;
// Initialize the RF PAL module
palRfObj = PAL_RF_Initialize(PAL_RF_PHY_INDEX, (const SYS_MODULE_INIT *) &palRfInitData);
Remarks
None.