1.2.5.18 ADP_DATA_CFM_CALLBACK Typedef

C

typedef void (*ADP_DATA_CFM_CALLBACK)(ADP_DATA_CFM_PARAMS* pDataCfm);

Summary

Pointer to a Data Confirm Event handler function.

Description

This data type defines the required function signature for the ADP Data Confirm event handling callback function. The ADP Data Confirm primitive allows the upper layer to be notified of the completion of an ADP Data Request. 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 Confirm events back from module.

Parameters

ParamDescription
pDataConfirmPointer to structure containing parameters related to Confirm. See ADP_DATA_CFM_PARAMS

Returns

None.

Example

App_DataConfirm(ADP_DATA_CFM_PARAMS *params)
{
    // Check result
    if (params->status == G3_SUCCESS)
    {
        txHandler = params->nsduHandle;
        // Dispatch according to handler
    }
}

Remarks

None.