|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
|
4.3.0-rc1 |
Main header file for fuel gauge driver API. More...
#include <errno.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <zephyr/device.h>#include <zephyr/syscalls/fuel_gauge.h>Go to the source code of this file.
Data Structures | |
| union | fuel_gauge_prop_val |
| Property field to value/type union. More... | |
| struct | sbs_gauge_manufacturer_name |
| struct | sbs_gauge_device_name |
| struct | sbs_gauge_device_chemistry |
| struct | fuel_gauge_driver_api |
Macros | |
| #define | SBS_GAUGE_MANUFACTURER_NAME_MAX_SIZE 20 |
| Data structures for reading SBS buffer properties. | |
| #define | SBS_GAUGE_DEVICE_NAME_MAX_SIZE 20 |
| #define | SBS_GAUGE_DEVICE_CHEMISTRY_MAX_SIZE 4 |
Typedefs | |
| typedef uint16_t | fuel_gauge_prop_t |
| typedef int(* | fuel_gauge_get_property_t) (const struct device *dev, fuel_gauge_prop_t prop, union fuel_gauge_prop_val *val) |
| Callback API for getting a fuel_gauge property. | |
| typedef int(* | fuel_gauge_set_property_t) (const struct device *dev, fuel_gauge_prop_t prop, union fuel_gauge_prop_val val) |
| Callback API for setting a fuel_gauge property. | |
| typedef int(* | fuel_gauge_get_buffer_property_t) (const struct device *dev, fuel_gauge_prop_t prop_type, void *dst, size_t dst_len) |
| Callback API for getting a fuel_gauge buffer property. | |
| typedef int(* | fuel_gauge_battery_cutoff_t) (const struct device *dev) |
| Callback API for doing a battery cutoff. | |
Functions | |
| int | fuel_gauge_get_prop (const struct device *dev, fuel_gauge_prop_t prop, union fuel_gauge_prop_val *val) |
| Fetch a battery fuel-gauge property. | |
| int | fuel_gauge_get_props (const struct device *dev, const fuel_gauge_prop_t *props, union fuel_gauge_prop_val *vals, size_t len) |
| Fetch multiple battery fuel-gauge properties. | |
| int | fuel_gauge_set_prop (const struct device *dev, fuel_gauge_prop_t prop, union fuel_gauge_prop_val val) |
| Set a battery fuel-gauge property. | |
| int | fuel_gauge_set_props (const struct device *dev, const fuel_gauge_prop_t *props, const union fuel_gauge_prop_val *vals, size_t len) |
| Set a battery fuel-gauge property. | |
| int | fuel_gauge_get_buffer_prop (const struct device *dev, fuel_gauge_prop_t prop_type, void *dst, size_t dst_len) |
| Fetch a battery fuel-gauge buffer property. | |
| int | fuel_gauge_battery_cutoff (const struct device *dev) |
| Have fuel gauge cutoff its associated battery. | |
Main header file for fuel gauge driver API.