Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Charger Driver Backend API

Data Structures

struct  charger_driver_api
  Driver Operations Charger driver operations More...

Typedefs

typedef int(* charger_get_property_t) (const struct device *dev, const charger_prop_t prop, union charger_propval *val)
 Callback API to get 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 to set a charger property.
typedef int(* charger_charge_enable_t) (const struct device *dev, const bool enable)
 Callback API to enable or disable a charge cycle.

Detailed Description

This group contains the API type definitions, callback signatures, and other helpers required to implement a Charger driver.

Typedef Documentation

◆ charger_charge_enable_t

typedef int(* charger_charge_enable_t) (const struct device *dev, const bool enable)

#include <zephyr/drivers/charger.h>

Callback API to enable or disable a charge cycle.

See charger_charge_enable() for argument description.

◆ charger_get_property_t

typedef int(* charger_get_property_t) (const struct device *dev, const charger_prop_t prop, union charger_propval *val)

#include <zephyr/drivers/charger.h>

Callback API to get a charger property.

See charger_get_prop() for argument description.

◆ charger_set_property_t

typedef int(* charger_set_property_t) (const struct device *dev, const charger_prop_t prop, const union charger_propval *val)

#include <zephyr/drivers/charger.h>

Callback API to set a charger property.

See charger_set_prop() for argument description.