|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
#include <stdint.h>#include <errno.h>#include <zephyr/devicetree.h>#include <zephyr/math/interpolation.h>#include <zephyr/sys/util_macro.h>Go to the source code of this file.
Macros | |
| #define | BATTERY_OCV_TABLE_LEN 11 |
| #define | BATTERY_CHEMISTRY_DT_GET(node_id) |
| Get the battery chemistry enum value. | |
| #define | BATTERY_OCV_TABLE_DT_GET(node_id, table) |
| Get the OCV curve for a given table. | |
Functions | |
| static int32_t | battery_soc_lookup (const int32_t ocv_table[11], uint32_t voltage_uv) |
| Convert an OCV table and battery voltage to a charge percentage. | |