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, MAC_NHLE_QUEUE_CAPACITY, MAC_SUCCESS, PROTOCOL_ID, PROTOCOL_ID_POS, rcv_buffer, rcv_frame_ptr, sio2ncp_init(), SOT, and SOT_POS.

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 api_process_incoming_sio_data(), data, data_length, dispatch_event(), mac_nhle_q, mac_task(), NULL, pal_task(), rx_index, sio2ncp_rx(), SIO_RX_BUF_SIZE, sw_timer_service(), and tal_task().

Referenced by main().