Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
environmental.h File Reference

Environmental sensing task. More...

Go to the source code of this file.

Macros

#define ENVIRONMENTAL_TASK(define_mem, define_config, env_ptr)
 Environmental task.
 

Functions

void environmental_task_fn (struct k_work *work)
 Environmental task function.
 

Detailed Description

Environmental sensing task.

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2

Macro Definition Documentation

◆ ENVIRONMENTAL_TASK

#define ENVIRONMENTAL_TASK ( define_mem,
define_config,
env_ptr )
Value:
IF_ENABLED(define_config, ({.name = "env", \
.task_id = TASK_ID_ENVIRONMENTAL, \
.exec_type = TASK_EXECUTOR_WORKQUEUE, \
.task_arg.dev = env_ptr, \
.executor.workqueue = { \
.worker_fn = environmental_task_fn, \
}}))
void environmental_task_fn(struct k_work *work)
Environmental task function.
@ TASK_ID_ENVIRONMENTAL
Definition infuse_task_ids.h:27
@ TASK_FLAG_ARG_IS_DEVICE
task_arg union is a device pointer
Definition task.h:38
@ TASK_EXECUTOR_WORKQUEUE
Task runs on the system workqueue.
Definition task.h:33

Environmental task.

Parameters
define_memDefine memory
define_configDefine task
env_ptrEnvironmental sensing device bound to task

Function Documentation

◆ environmental_task_fn()

void environmental_task_fn ( struct k_work * work)

Environmental task function.

Parameters
workDelayable work item