1.5.4.19 AL_DataConfirmCallbackRegister Function

C

AL_RESULT AL_DataConfirmCallbackRegister (
        AL_DATA_CONFIRM_CALLBACK callback
);

Summary

Allows a client to set a Meters And More AL Data.confirm event handling function for the module to call back when the requested transmission has finished.

Description

This function allows a client to register a Meters And More AL Data.confirm event handling function for the module to call back when a Meters And More DLL data confirm event occurs.

Returns

Result of Callback setting.

Example

    void APP_Tx_Cfm_callback(AL_DATA_CONFIRM_PARAMS *cfmParams)
    {
        if (cfmParams->txStatus == AL_TX_STATUS_SUCCESS)
        {
            /* Tx Success */
        }
        else
        {
            /* Tx Fail */
        }
    }

    AL_DataConfirmCallbackRegister(APP_Tx_Cfm_callback);

Remarks

Callback can be set to a NULL pointer to stop receiving notifications.