Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
SoC temperature sensing task

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

Macro Definition Documentation

◆ SOC_TEMPERATURE_TASK

#define SOC_TEMPERATURE_TASK ( define_mem,
define_config,
soc_temp_dev )

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/task_runner/tasks/soc_temperature.h>

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
SoC temperature task arguments (task_soc_temperature_args)
Definition infuse_task_ids.h:47
@ TASK_FLAG_ARG_IS_DEVICE
task_arg union is a device pointer
Definition task.h:39
@ TASK_EXECUTOR_WORKQUEUE
Task runs on the system workqueue.
Definition task.h:34
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)

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/task_runner/tasks/soc_temperature.h>

SoC temperature sensing task function.

Parameters
workDelayable work item