1.4.3.8 MMHI_MacDataCallbackRegister Function
C
void MMHI_MacDataCallbackRegister (
MMHI_MAC_DATA_IND_CALLBACK callback
);
Summary
Allows a client to register a callback function to be called when a mac data command is received.
Description
This function allows a client to register a handling function for the MMHI to call back when the MAC_DATA_REQ command code has been detected.
Parameters
| Param | Description |
|---|---|
|
callback |
Pointer to the callback function. See MMHI_MAC_DATA_IND_CALLBACK Typedef |
Returns
None.
Example
void APP_MyMacDataCallback(uint8_t dsap, uint8_t reqId,
uint8_t* lsdu, uint8_t lsduLen)
{
if (length > 0)
{
}
}
MMHI_MacDataCallbackRegister(APP_MyMacDataCallback);
Remarks
Callback can be set to a NULL pointer to stop receiving notifications.
