1.4.3.11 MMHI_CMD_FRAME_IND_CALLBACK Typedef

C

typedef void ( *MMHI_CMD_FRAME_IND_CALLBACK )( uint8_t* data, uint8_t length );

Summary

Pointer to a Meters And More HI module Command Frame Indication Function Pointer.

Description

This data type defines the required function signature for the Meters And More HI command frame function. A client must register a pointer using the callback register function whose function signature (parameter and return value types) match the types specified by this function pointer in order to receive related event callbacks from the module.

Parameters

Param Description
data

Pointer to the object containing any data necessary to process the MMHI command frame

length Length of the command frame data

Returns

None.

Example

    void APP_MyCommandFrameHandler( uint8_t* data, uint8_t length )
    {
        if (length > 0) 
        {

        }
    }

Remarks

This Callback is only generated if a custom command has been previously registered by MMHI_CommandCallbackRegister function.