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_QUEUE_CAPACITY, and qmm_queue_init().

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(), mac_task(), pal_task(), qmm_queue_remove(), and tal_task().

Referenced by main().