|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Main header file for battery charger driver API. More...
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <zephyr/device.h>#include <zephyr/syscalls/charger.h>Go to the source code of this file.
Data Structures | |
| struct | charger_current_notifier |
| The input current thresholds for the charger to notify the system. More... | |
| union | charger_propval |
| container for a charger_property value More... | |
| struct | charger_driver_api |
| Charging device API. More... | |
Typedefs | |
| typedef uint16_t | charger_prop_t |
| A charger property's identifier. | |
| typedef int32_t | charger_custom_value_int_t |
| Type for custom signed integer property values. | |
| typedef uint32_t | charger_custom_value_uint_t |
| Type for custom unsigned integer property values. | |
| typedef bool | charger_custom_value_bool_t |
| Type for custom boolean property values. | |
| typedef void(* | charger_status_notifier_t) (enum charger_status status) |
| The charger status change callback to notify the system. | |
| typedef void(* | charger_online_notifier_t) (enum charger_online online) |
| The charger online change callback to notify the system. | |
| typedef int(* | charger_get_property_t) (const struct device *dev, const charger_prop_t prop, union charger_propval *val) |
| Callback API for getting a charger property. | |
| typedef int(* | charger_set_property_t) (const struct device *dev, const charger_prop_t prop, const union charger_propval *val) |
| Callback API for setting a charger property. | |
| typedef int(* | charger_charge_enable_t) (const struct device *dev, const bool enable) |
| Callback API enabling or disabling a charge cycle. | |
Functions | |
| int | charger_get_prop (const struct device *dev, const charger_prop_t prop, union charger_propval *val) |
| Fetch a battery charger property. | |
| int | charger_set_prop (const struct device *dev, const charger_prop_t prop, const union charger_propval *val) |
| Set a battery charger property. | |
| int | charger_charge_enable (const struct device *dev, const bool enable) |
| Enable or disable a charge cycle. | |
Main header file for battery charger driver API.