2.1.2 WPAN_Task Function

C

bool WPAN_Task(void)

Summary

Runs the WPAN Task scheduler

Description

This function invokes the corresponding task functions of the MCL, PHY, and PAL Using the MAC software package it is required to call this function frequently supporting a round robin approach ensures that the different layers state machines are served, and their queues are processed. This routine must be called from the RTOS Task function in case of any RTOS is used.

Precondition

WPAN_Init() should have been called before calling this function.

Parameters

None.

Returns

Boolean true if an event was processed otherwise false.

Example

WPAN_Task();

Remarks

This routine must be called before any of the MAC-WPAN function is called