arduino-audio-tools
|
FreeRTOS task. More...
#include <Task.h>
Public Member Functions | |
Task (const char *name, int stackSize, int priority=1, int core=-1) | |
Defines and creates a FreeRTOS task. | |
bool | begin (std::function< void()> process) |
bool | create (const char *name, int stackSize, int priority=1, int core=-1) |
If you used the empty constructor, you need to call create! | |
void | end () |
suspends the task | |
int | getCoreID () |
void * | getReference () |
TaskHandle_t & | getTaskHandle () |
void | remove () |
deletes the FreeRTOS task | |
void | resume () |
void | setReference (void *r) |
void | suspend () |
Static Protected Member Functions | |
static void | nop () |
static void | task_loop (void *arg) |
Protected Attributes | |
std::function< void()> | loop_code = nop |
void * | ref |
TaskHandle_t | xHandle = nullptr |
FreeRTOS task.