1.1.2.4.32 DRV_G3_MACRT_RX_PARAMS_IND_CALLBACK Typedef

C

typedef void ( *DRV_G3_MACRT_RX_PARAMS_IND_CALLBACK )( MAC_RT_RX_PARAMETERS_OBJ *pParameters );

Summary

Pointer to a G3 MAC RT Driver Event handler function to get parameters from the last received message.

Description

This data type defines the required function signature for the G3 MAC RT driver reception parameters 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

ParamDescription
pParametersPointer to the characterization parameters of the last received message

Returns

None.

Example

void APP_MyRxParamsHandler( MAC_RT_RX_PARAMETERS_OBJ *pParameters )
{
    // extract all parameters from received message
    memcpy(appData->rxParams, (uint8_t *)pParameters, sizeof(MAC_RT_RX_PARAMETERS_OBJ));
}

Remarks

This callback is generated just before the DRV_G3_MACRT_DATA_IND_CALLBACK in order to have Rx parameters available when frame is processed.