1.2.4.18 DLL_DataIndicationCallbackRegister Function
C
DLL_RESULT DLL_DataIndicationCallbackRegister (
DLL_DATA_IND_CALLBACK callback
);
Summary
Allows a client to set a Meters And More DLL DL_Data.indication event handling function for the module to call back when a frame has been received.
Description
This function allows a client to register a Meters And More DLL DL_Data.indication event handling function for the module to call back when a Meters And More DLL data indication event occurs.
Parameters
| Param | Description |
|---|---|
|
callback |
Pointer to the callback function. See DLL_DATA_IND_CALLBACK Typedef |
Returns
None.
Example
void APP_Rx_Ind_callback(DLL_DATA_IND_PARAMS *indParams)
{
if (indParams->lsduLen > 0){
/* Process Data */
}
}
DLL_DataIndicationCallbackRegister(APP_Rx_Ind_callback);
Remarks
Callback can be set to a NULL pointer to stop receiving notifications.
