1.2.5.20 ADP_DATA_IND_CALLBACK Typedef

C

typedef void (*ADP_DATA_IND_CALLBACK)(ADP_DATA_IND_PARAMS* pDataInd);

Summary

Pointer to a Data Indication Event handler function.

Description

This data type defines the required function signature for the ADP Data Indication event handling callback function. The ADP Data Indication primitive is used to transfer received data from the adaptation sublayer to the upper layer. A client must register a pointer using the event handling function whose function signature (parameter and return value types) matches the types specified by this function pointer in order to receive Data Indication events back from module.

Parameters

ParamDescription
pDataIndPointer to structure containing parameters related to Indication. See ADP_DATA_IND_PARAMS

Returns

None.

Example

App_DataIndication(ADP_DATA_IND_PARAMS *params)
{
    // Check Link Quality
    if (params->linkQualityIndicator > 40)
    {
        // Check data content in params->pNsdu
    }
}

Remarks

None.