1.2.5.27 ADP_NETWORK_START_CFM_CALLBACK Typedef

C

typedef void (*ADP_NETWORK_START_CFM_CALLBACK)(uint8_t status);

Summary

Pointer to a Network Start Confirm Event handler function.

Description

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

The Network Start Confirm is generated after ADP_NetworkStartRequest function call to indicate the result.

Parameters

ParamDescription
statusThe result of the Network Start request. G3_SUCCESS if provided PAN ID is valid, Error Code otherwise.

Returns

None.

Example

App_NetworkStartConfirm(uint8_t status)
{
    // Check result
    if (status == G3_SUCCESS)
    {
        // PAN Started successfully
    }
}

Remarks

None.