1.3.5.4.2 CL_NULL_SetCallbacks Function
C
void CL_NULL_SetCallbacks(MAC_CALLBACKS *macCallbacks);
Summary
Sets the callbacks to the PRIME Null Convergence Sublayer.
Description
This routine sets the callbacks to the PRIME Null Convergence Sublayer.
Precondition
The CL_NULL_Initialize routine must have been called before.
Parameters
Param | Description |
---|---|
macCallbacks | Pointer to the MAC callback structure |
Returns
None.
Example
MAC_CALLBACKS macCallbacks;
memset(macCallbacks, NULL, sizeof(macCallbacks);
macCallbacks.macDataConfirm = appDataConfirm;
macCallbacks.macDataIndication = appDataIndication;
macCallbacks.macEstablishConfirm = appEstablishConfirm;
macCallbacks.macEstablishIndication = appEstablishIndication;
macCallbacks.mlmeGetCofirm = appGetConfirm;
macCallbacks.mlmeListGetConfirm = appListGetCofirm;
macCallbacks.mlmeSetConfirm = appSetConfirm;
CL_NULL_SetCallbacks(&macCallbacks);
Remarks
Unused callbacks must be set to NULL.