Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
usbc_ppc_driver_api Struct Reference

Structure with pointers to the functions implemented by driver. More...

#include <usbc_ppc.h>

Data Fields

int(* is_dead_battery_mode )(const struct device *dev)
 
int(* exit_dead_battery_mode )(const struct device *dev)
 
int(* is_vbus_source )(const struct device *dev)
 
int(* is_vbus_sink )(const struct device *dev)
 
int(* set_snk_ctrl )(const struct device *dev, bool enable)
 
int(* set_src_ctrl )(const struct device *dev, bool enable)
 
int(* set_vbus_discharge )(const struct device *dev, bool enable)
 
int(* is_vbus_present )(const struct device *dev)
 
int(* set_event_handler )(const struct device *dev, usbc_ppc_event_cb_t handler, void *data)
 
int(* dump_regs )(const struct device *dev)
 

Detailed Description

Structure with pointers to the functions implemented by driver.

Field Documentation

◆ dump_regs

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

◆ exit_dead_battery_mode

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

◆ is_dead_battery_mode

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

◆ is_vbus_present

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

◆ is_vbus_sink

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

◆ is_vbus_source

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

◆ set_event_handler

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

◆ set_snk_ctrl

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

◆ set_src_ctrl

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

◆ set_vbus_discharge

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

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