Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MCL General API's

This module describes all MCL General API's.

Functions

retval_t mac_init (void)
 Initializes the MAC sublayer. More...
 
uint32_t mac_ready_to_sleep (void)
 Checks if the mac stack is ready to sleep. More...
 
bool mac_task (void)
 Runs the MAC scheduler. More...
 

retval_t mac_init ( void  )

Initializes the MAC sublayer.

Returns
MAC_SUCCESS if TAL is intialized successfully else FAILURE
uint32_t mac_ready_to_sleep ( void  )

Checks if the mac stack is ready to sleep.

bool mac_task ( void  )

Runs the MAC scheduler.

This function runs the MAC scheduler.

MLME and MCPS queues are removed alternately, starting with MLME queue.

Returns
true if event is dispatched, false if no event to dispatch.