1.2.5.32 ADP_GET_CFM_CALLBACK Typedef

C

typedef void (*ADP_GET_CFM_CALLBACK)(ADP_GET_CFM_PARAMS* pGetCfm);

Summary

Pointer to a Get Confirm Event handler function.

Description

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

The Get Confirm is generated after ADP_GetRequest function call to indicate the result.

Parameters

ParamDescription
pGetCfmPointer to structure containing the Get result. See ADP_GET_CFM_PARAMS

Returns

None.

Example

App_GetConfirm(ADP_GET_CFM_PARAMS *params)
{
    // Check result
    if (params->status == G3_SUCCESS)
    {
        // The value is in params->attributeValue
    }
}

Remarks

None.