uTask 0.3.3
|
Structure describing single task. More...
#include <utask.h>
Data Fields | |
volatile utask_state_t | state |
task internal state (UTS_* defines) - internal data, do not modify manually | |
volatile utask_state_t | istate |
internal task state (for programmers use) | |
volatile utask_sem_t * | sem |
semaphore pointer - internal data, do not modify manually | |
volatile utask_sem_t | sem_val |
samaphore conditional value - internal data, do not modify manually | |
volatile utask_timer_t | sleep |
sleep counter (in ticks) - internal data, do not modify manually | |
void(* | fun )(struct utask *t) |
function to be run | |
utask_data_t | data [UTASK_DATA] |
user's general purpose per task data storage | |
utask_data_t | arg |
user's data passed as param for the task | |
utask_data_t | tid |
task id | |
const char * | name |
task name |
This structure describes single task. Pointer to it is passed to many utask_* functions. Structures are allocated internally by uTask.
utask_example_1.c, utask_example_2.c, utask_example_3.c, and utask_example_4.c.