1.2.5.47 ADP_LBP_CFM_CALLBACK Typedef

C

typedef void (*ADP_LBP_CFM_CALLBACK)(ADP_LBP_CFM_PARAMS* pLbpCfm);

Summary

Pointer to a LBP Confirm Event handler function.

Description

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

Parameters

ParamDescription
pLbpCfmPointer to structure containing parameters related to Confirm. See ADP_LBP_CFM_PARAMS

Returns

None.

Example

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

Remarks

This callback is registered and managed by the provided LBP module. Application does not have to manage it.