1.2.4.21 DLL_EventIndicationCallbackRegister Function
C
DLL_RESULT DLL_EventIndicationCallbackRegister (
DLL_EVENT_IND_CALLBACK callback
);
Summary
Allows a client to set a Meters And More DLL DL_Event.indication event handling function for the module to call back when DLL generates a new event.
Description
This function allows a client to register a Meters And More DLL DL_Event.indication event handling function for the module to call back when a Meters And More DLL event occurs.
Parameters
| Param | Description |
|---|---|
|
callback |
Pointer to the callback function. See DLL_EVENT_IND_CALLBACK Typedef |
Returns
None.
Example
void APP_Event_Ind_callback(DLL_EVENT_IND_CALLBACK *indParams)
{
if (indParams->eventId == MAC_EVENT_ID_ACA){
/* Process Event */
}
}
DLL_EventIndicationCallbackRegister(APP_Event_Ind_callback);
Remarks
Callback can be set to a NULL pointer to stop receiving notifications.
This Callback is only generated in Master Node. There is no need to set a handling function on Slave Nodes.
