1.1.2.4.31 DRV_G3_MACRT_DATA_IND_CALLBACK Typedef
C
typedef void ( *DRV_G3_MACRT_DATA_IND_CALLBACK )( uint8_t *pData, uint16_t length );
Summary
Pointer to a G3 MAC RT Driver Reception Event handler function.
Description
This data type defines the required function signature for the G3 MAC RT driver reception 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_MyRxEventHandler( uint8_t *pData, uint16_t length )
{
// Check length of the new message
if (length) {
// extract data from received message
memcpy(appData->dataRxBuffer, pData, length);
}
}
Remarks
None.