1.1.2.4.35 DRV_G3_MACRT_PHY_SNIFFER_IND_CALLBACK Typedef
C
typedef void ( *DRV_G3_MACRT_PHY_SNIFFER_IND_CALLBACK )( uint8_t *pData, uint16_t length );
Summary
Pointer to a G3 MAC RT PHY Sniffer Reception Event handler function.
Description
This data type defines the required function signature for the G3 MAC RT driver PHY sniffer event handling callback function. A client must register a pointer using the callback register function whose function signature (parameter and return value types) match the types specified by this function pointer in order to receive transfer related event calls back from the driver.
Parameters
Param | Description |
---|---|
pData | Pointer to the data content |
length | Length of the received data |
Returns
None.
Example
void APP_MyMacRtPhySnifferHandler( uint8_t *pData, uint16_t length ) { // Check length of the new PLC message if (length > 0U) { SRV_USI_Send_Message(appData.usiHandler, SRV_USI_PROT_ID_SNIFF_G3, (uint8_t *)&appData.phySnifferData, length); } }
Remarks
None.