|
arduino-audio-tools
|
Zephyr thread based task. More...
#include <Task.h>
Public Member Functions | |
| TaskZephyr ()=default | |
| TaskZephyr (const char *name, int stackSize, int priority=1, int core=-1) | |
| Defines and creates a task. | |
| ~TaskZephyr () | |
| 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 | |
| void * | getReference () |
| TaskHandle_t & | getTaskHandle () |
| void | remove () |
| deletes the task | |
| void | resume () |
| void | setReference (void *r) |
| void | suspend () |
Static Protected Member Functions | |
| static void | nop () |
| static void | task_loop (void *arg, void *p2, void *p3) |
Protected Attributes | |
| bool | is_started = false |
| std::function< void()> | loop_code = nop |
| k_thread_stack_t * | p_stack = nullptr |
| void * | ref = nullptr |
| size_t | stack_size = 0 |
| struct k_thread | thread_data |
| TaskHandle_t | xHandle = nullptr |
Zephyr thread based task.
Defines and creates a task.
|
default |
|
inline |
If you used the empty constructor, you need to call create!
|
inline |
suspends the task
|
inline |
|
inline |
|
inline |
deletes the task
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |