FreeRTOS C++ Wrappers
|
Lowest Level Wrapper. Create the specified task with a provided task function. More...
#include <TaskCPP.h>
Public Member Functions | |
Task (char const *name, void(*taskfun)(void *), TaskPriority priority, unsigned portSHORT stackDepth, void *parm=0) | |
Constructor. More... | |
virtual | ~Task () |
Destructor. More... | |
Public Attributes | |
TaskHandle_t | handle |
Handle for the task we are managing. More... | |
Lowest Level Wrapper. Create the specified task with a provided task function.
If the Task object is destroyed, the class will be deleted (if deletion has been enabled)
|
inline |
Constructor.
name | The name of the task. |
taskfun | The function implementing the task, should have type void (*taskfun)(void *) |
priority | The priority of the task. Use the TaskPriority enum values or a related value converted to a TaskPriority |
stackDepth | Size of the stack to give to the task |
parm | the parameter passed to taskFun. Defaults to NULL. |
Upon construction the task will be created.
|
inlinevirtual |
Destructor.
If deletion is enabled, delete the task.
TaskHandle_t Task::handle |
Handle for the task we are managing.