|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
@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. | |
@def_driverbackendgroup{USB Type-C Power Path Controller,usb_type_c_power_path_controller}
@driver_ops{USB Type-C Power Path Controller}
| int(* usbc_ppc_driver_api::dump_regs) (const struct device *dev) |
@driver_ops_optional Print the values or PPC registers.
| 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.
| 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.
| int(* usbc_ppc_driver_api::is_vbus_present) (const struct device *dev) |
@driver_ops_optional Check if VBUS is present.
| int(* usbc_ppc_driver_api::is_vbus_sink) (const struct device *dev) |
@driver_ops_optional Check if the PPC is sinking the VBUS.
| int(* usbc_ppc_driver_api::is_vbus_source) (const struct device *dev) |
@driver_ops_optional Check if the PPC is sourcing the VBUS.
| 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.
@driver_ops_optional Set the state of VBUS sinking.
@driver_ops_optional Set the state of VBUS sourcing.
@driver_ops_optional Set the state of VBUS discharging.