Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Charger APIs. 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 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. | |
Charger APIs.