14#ifndef INFUSE_SDK_INCLUDE_INFUSE_AUTO_SOC_DEVICE_CONTROL_H_
15#define INFUSE_SDK_INCLUDE_INFUSE_AUTO_SOC_DEVICE_CONTROL_H_
17#include <zephyr/sys/slist.h>
18#include <zephyr/device.h>
bool soc_device_control_unregister(struct soc_device_control_state *state)
Unregister a controlled device.
int soc_device_control_register(struct soc_device_control_state *state)
Register a device to be controlled.
Device control state and thresholds.
Definition soc_device_control.h:32
uint8_t soc_enable
Enable device when charge state reaches at least this value (%)
Definition soc_device_control.h:39
uint8_t soc_disable
Disable device when charge state falls below this value (%)
Definition soc_device_control.h:41
const struct device * device
Device that is being controlled based on charge state.
Definition soc_device_control.h:37