Microchip® Advanced Software Framework

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

This module describes all MAC General API's.

Functions

retval_t wpan_init (void)
 The stack initialization function. More...
 
bool wpan_task (void)
 The stack task function called by the application. More...
 

retval_t wpan_init ( void  )

The stack initialization function.

This function initializes all resources, which are used from the stack. It has to be called before any other function of the stack is called.

References mac_init(), mac_nhle_q, and MAC_NHLE_QUEUE_CAPACITY.

Referenced by main().

bool wpan_task ( void  )

The stack task function called by the application.

This function should be called as frequently as possible by the application in order to provide a permanent execution of the protocol stack.

Returns
Boolean true if an event was processed otherwise false.

References dispatch_event(), event, mac_nhle_q, mac_task(), NULL, pal_task(), and tal_task().

Referenced by main().