10#ifndef INFUSE_SDK_INCLUDE_INFUSE_TASK_RUNNER_TASKS_BATTERY_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_TASK_RUNNER_TASKS_BATTERY_H_
13#include <zephyr/kernel.h>
53#define BATTERY_TASK(define_mem, define_config, bat_ptr) \
54 IF_ENABLED(define_config, ({.name = "bat", \
55 .task_id = TASK_ID_BATTERY, \
56 .exec_type = TASK_EXECUTOR_WORKQUEUE, \
57 .flags = TASK_FLAG_ARG_IS_DEVICE, \
58 .task_arg.dev = bat_ptr, \
59 .executor.workqueue = { \
60 .worker_fn = battery_task_fn, \
int task_battery_manual_run(const struct device *dev, const struct task_battery_args *args, struct tdf_battery_state *tdf)
Manually run the core battery sampling logic.
void battery_task_fn(struct k_work *work)
Battery task function.
Autogenerated TDF definitions.
Autogenerated task runner task IDs.
Task Runner task scheduling.
General battery state.
Definition definitions.h:154