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>
59#define BATTERY_TASK(define_mem, define_config, bat_ptr) \
60 IF_ENABLED(define_config, ({.name = "bat", \
61 .task_id = TASK_ID_BATTERY, \
62 .exec_type = TASK_EXECUTOR_WORKQUEUE, \
63 .flags = TASK_FLAG_ARG_IS_DEVICE, \
64 .task_arg.dev = bat_ptr, \
65 .executor.workqueue = { \
66 .worker_fn = battery_task_fn, \
Autogenerated TDF definitions.
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 task runner task IDs.
Task Runner task scheduling.
Battery task arguments (task_battery_args)
Definition battery_args.h:39
General battery state.
Definition definitions.h:164