Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
usbc_ppc_driver_api Struct Reference

@def_driverbackendgroup{USB Type-C Power Path Controller,usb_type_c_power_path_controller} More...

#include <usbc_ppc.h>

Data Fields

int(* is_dead_battery_mode )(const struct device *dev)
 @driver_ops_optional Check if PPC is in the dead battery mode.
int(* exit_dead_battery_mode )(const struct device *dev)
 @driver_ops_optional Request the PPC to exit from the dead battery mode Return from this call doesn't mean that the PPC is not in the dead battery anymore.
int(* is_vbus_source )(const struct device *dev)
 @driver_ops_optional Check if the PPC is sourcing the VBUS.
int(* is_vbus_sink )(const struct device *dev)
 @driver_ops_optional Check if the PPC is sinking the VBUS.
int(* set_snk_ctrl )(const struct device *dev, bool enable)
 @driver_ops_optional Set the state of VBUS sinking.
int(* set_src_ctrl )(const struct device *dev, bool enable)
 @driver_ops_optional Set the state of VBUS sourcing.
int(* set_vbus_discharge )(const struct device *dev, bool enable)
 @driver_ops_optional Set the state of VBUS discharging.
int(* is_vbus_present )(const struct device *dev)
 @driver_ops_optional Check if VBUS is present.
int(* set_event_handler )(const struct device *dev, usbc_ppc_event_cb_t handler, void *data)
 @driver_ops_optional Set the callback used to notify about PPC events.
int(* dump_regs )(const struct device *dev)
 @driver_ops_optional Print the values or PPC registers.

Detailed Description

@def_driverbackendgroup{USB Type-C Power Path Controller,usb_type_c_power_path_controller}

@driver_ops{USB Type-C Power Path Controller}

Field Documentation

◆ dump_regs

int(* usbc_ppc_driver_api::dump_regs) (const struct device *dev)

@driver_ops_optional Print the values or PPC registers.

◆ exit_dead_battery_mode

int(* usbc_ppc_driver_api::exit_dead_battery_mode) (const struct device *dev)

@driver_ops_optional Request the PPC to exit from the dead battery mode Return from this call doesn't mean that the PPC is not in the dead battery anymore.

◆ is_dead_battery_mode

int(* usbc_ppc_driver_api::is_dead_battery_mode) (const struct device *dev)

@driver_ops_optional Check if PPC is in the dead battery mode.

◆ is_vbus_present

int(* usbc_ppc_driver_api::is_vbus_present) (const struct device *dev)

@driver_ops_optional Check if VBUS is present.

◆ is_vbus_sink

int(* usbc_ppc_driver_api::is_vbus_sink) (const struct device *dev)

@driver_ops_optional Check if the PPC is sinking the VBUS.

◆ is_vbus_source

int(* usbc_ppc_driver_api::is_vbus_source) (const struct device *dev)

@driver_ops_optional Check if the PPC is sourcing the VBUS.

◆ set_event_handler

int(* usbc_ppc_driver_api::set_event_handler) (const struct device *dev, usbc_ppc_event_cb_t handler, void *data)

@driver_ops_optional Set the callback used to notify about PPC events.

◆ set_snk_ctrl

int(* usbc_ppc_driver_api::set_snk_ctrl) (const struct device *dev, bool enable)

@driver_ops_optional Set the state of VBUS sinking.

◆ set_src_ctrl

int(* usbc_ppc_driver_api::set_src_ctrl) (const struct device *dev, bool enable)

@driver_ops_optional Set the state of VBUS sourcing.

◆ set_vbus_discharge

int(* usbc_ppc_driver_api::set_vbus_discharge) (const struct device *dev, bool enable)

@driver_ops_optional Set the state of VBUS discharging.


The documentation for this struct was generated from the following file: