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

SoC temperature sensing task. More...

Go to the source code of this file.

Macros

#define SOC_TEMPERATURE_TASK(define_mem, define_config, soc_temp_dev)
 SoC temperature sensing task.

Functions

void soc_temperature_task_fn (struct k_work *work)
 SoC temperature sensing task function.

Detailed Description

SoC temperature 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

◆ SOC_TEMPERATURE_TASK

#define SOC_TEMPERATURE_TASK ( define_mem,
define_config,
soc_temp_dev )
Value:
IF_ENABLED(define_config, ({.name = "soc_temp", \
.exec_type = TASK_EXECUTOR_WORKQUEUE, \
.task_arg.dev = soc_temp_dev, \
.executor.workqueue = { \
.worker_fn = soc_temperature_task_fn, \
}}))
@ TASK_ID_SOC_TEMPERATURE
Definition infuse_task_ids.h:33
@ 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
void soc_temperature_task_fn(struct k_work *work)
SoC temperature sensing task function.

SoC temperature sensing task.

Parameters
define_memDefine memory
define_configDefine task
soc_temp_devSoC temperature sensing device

Function Documentation

◆ soc_temperature_task_fn()

void soc_temperature_task_fn ( struct k_work * work)

SoC temperature sensing task function.

Parameters
workDelayable work item