Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
task_config Struct Reference

Constant task configuration. More...

#include <task.h>

Data Fields

const char * name
 Task name.
 
uint8_t task_id
 Task identifier.
 
uint8_t exec_type
 Execution context TASK_EXECUTOR_*
 
uint8_t flags
 Task flags of type TASK_FLAG_*
 
union { 
 
   const struct device *   dev 
 
   const void *   const_arg 
 
   void *   arg 
 
task_arg 
 
union { 
 
   struct { 
 
      struct k_thread *   thread 
 Thread state storage. More...
 
      task_runner_task_fn   task_fn 
 Thread function. More...
 
      k_thread_stack_t *   stack 
 Pointer to stack memory for thread. More...
 
      size_t   stack_size 
 Size of stack memory. More...
 
   }   thread 
 
   struct { 
 
      k_work_handler_t   worker_fn 
 Handler function. More...
 
      void *   state 
 Persistent state. More...
 
   }   workqueue 
 
executor 
 

Detailed Description

Constant task configuration.

Field Documentation

◆ arg

void* task_config::arg

◆ const_arg

const void* task_config::const_arg

◆ dev

const struct device* task_config::dev

◆ exec_type

uint8_t task_config::exec_type

Execution context TASK_EXECUTOR_*

◆ [union]

union { ... } task_config::executor

◆ flags

uint8_t task_config::flags

Task flags of type TASK_FLAG_*

◆ name

const char* task_config::name

Task name.

◆ stack

k_thread_stack_t* task_config::stack

Pointer to stack memory for thread.

◆ stack_size

size_t task_config::stack_size

Size of stack memory.

◆ state

void* task_config::state

Persistent state.

◆ [union]

union { ... } task_config::task_arg

◆ task_fn

task_runner_task_fn task_config::task_fn

Thread function.

◆ task_id

uint8_t task_config::task_id

Task identifier.

◆ thread [1/2]

struct k_thread* task_config::thread

Thread state storage.

◆ [struct] [2/2]

struct { ... } task_config::thread

◆ worker_fn

k_work_handler_t task_config::worker_fn

Handler function.

◆ [struct]

struct { ... } task_config::workqueue

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