A(rduino) OS
Simple Task Scheduler for Arduino Development Board
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
task_cb Struct Reference

task context block More...

#include <aos_task.h>

Data Fields

struct task_cbprv
 task list pointers must be on top More...
 
struct task_cbnxt
 
struct aos_ctx ctx
 holds current stack pointer, and reference to machine state More...
 
uint8_t prio_state
 task priority / task state combined field More...
 
uint8_t quanta
 number of time quanta's task can consume More...
 
task_proc_t proc
 task execution handler More...
 
aos_systime_t systicks
 number of systicks consumed by the task More...
 
uint16_t wa_size
 work area size More...
 
void * wa
 work area pointer More...
 
void * pdata
 task private data More...
 

Detailed Description

task context block

Examples:
sched_01.c.

Definition at line 64 of file aos_task.h.

Field Documentation

struct aos_ctx ctx

holds current stack pointer, and reference to machine state

Definition at line 70 of file aos_task.h.

struct task_cb * nxt

Definition at line 67 of file aos_task.h.

void* pdata

task private data

Definition at line 91 of file aos_task.h.

uint8_t prio_state

task priority / task state combined field

Definition at line 73 of file aos_task.h.

task execution handler

Definition at line 79 of file aos_task.h.

struct task_cb* prv

task list pointers must be on top

Definition at line 67 of file aos_task.h.

uint8_t quanta

number of time quanta's task can consume

Definition at line 76 of file aos_task.h.

aos_systime_t systicks

number of systicks consumed by the task

Definition at line 82 of file aos_task.h.

void* wa

work area pointer

Definition at line 88 of file aos_task.h.

uint16_t wa_size

work area size

Definition at line 85 of file aos_task.h.


The documentation for this struct was generated from the following file: