#include <SystemTaskList.h>
Collaboration diagram for SystemTaskList:
System level tasks can be added in the board support package, and should not be added anywhere else.
The SystemTaskList is a singleton pattern object, since only one can exist in the system at any time.
Public Types | |
enum | Status { OK, TOO_MANY_TASKS, FAILED } |
An enumeration defining the results of methods included in the SystemTaskList class. More... | |
Public Member Functions | |
Status | registerTask (SystemTask &task) |
Register a system task with the master list of tasks. | |
Status | getNextTask (SystemTask **task) |
Returns the next task in the list. | |
Static Public Member Functions | |
static SystemTaskList & | getInstance () |
A static method to get the one and only instance of the SystemTaskList. | |
Private Member Functions | |
SystemTaskList () | |
Constructor. | |
Private Attributes | |
SystemTask * | taskList [Constants::TOTAL_TASKS] |
int | taskCount |
int | loopPointer |
|
An enumeration defining the results of methods included in the SystemTaskList class.
|
|
Constructor.
|
|
A static method to get the one and only instance of the SystemTaskList.
|
|
Returns the next task in the list. Will automatically roll the pointer over when reaching the end of the list. Essentially this function can be called repeatedly.
|
|
Register a system task with the master list of tasks. Once a task is registered it will be executed round-robin within the main loop. If you are instead looking to register a feature you may want to look at the FeaturesList class instead.
|
|
|
|
|
|
|