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

Control power state of device based on battery SoC. More...

#include <zephyr/sys/slist.h>
#include <zephyr/device.h>

Go to the source code of this file.

Data Structures

struct  soc_device_control_state

Functions

int soc_device_control_register (struct soc_device_control_state *state)
 Register a device to be controlled.
bool soc_device_control_unregister (struct soc_device_control_state *state)
 Unregister a controlled device.

Detailed Description

Control power state of device based on battery SoC.

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2

Enable and disable the power state of a device based on the reported battery state of charge percentage.