1.2.5.29 ADP_RESET_CFM_CALLBACK Typedef

C

typedef void (*ADP_RESET_CFM_CALLBACK)(uint8_t status);

Summary

Pointer to a Reset Confirm Event handler function.

Description

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

The Reset Confirm is generated after ADP_ResetRequest function call to indicate the result.

Parameters

ParamDescription
statusThe result of the Reset request. G3_SUCCESS if G3 Stack is successfully reset, Error Code otherwise.

Returns

None.

Example

App_ResetConfirm(uint8_t status)
{
    // Check result
    if (status == G3_SUCCESS)
    {
        // Stack successfully reset
    }
}

Remarks

None.