1.3.3.1.2 MAC_DataConfirm Typedef

C

typedef void (*MAC_DataConfirm)(MAC_DATA_CONFIRM_PARAMS *dcParams);

Summary

Pointer to a Data Confirm Event handler function.

Description

This data type defines the required function signature for the MAC Data Confirm event handling callback function. 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
dcParamsPointer to structure containing parameters related to Confirm. See MAC_DATA_CONFIRM_PARAMS

Returns

None.

Example

App_DataConfirm(MAC_DATA_CONFIRM_PARAMS *params)
{
    // Check result
    if (params->status == MAC_STATUS_SUCCESS)
    {
        txHandler = params->msduHandle;
        // Dispatch accordin to handler
    }
}

Remarks

None.