15#ifndef ZEPHYR_INCLUDE_DRIVERS_USBC_VBUS_H_
16#define ZEPHYR_INCLUDE_DRIVERS_USBC_VBUS_H_
tc_vbus_level
VBUS level voltages.
Definition usbc_tc.h:326
static int usbc_vbus_measure(const struct device *dev, int *meas)
Reads and returns VBUS measured in mV.
Definition usbc_vbus.h:67
static bool usbc_vbus_check_level(const struct device *dev, enum tc_vbus_level level)
Checks if VBUS is at a particular level.
Definition usbc_vbus.h:51
static int usbc_vbus_enable(const struct device *dev, bool enable)
Controls a pin that enables VBUS measurements.
Definition usbc_vbus.h:101
static int usbc_vbus_discharge(const struct device *dev, bool enable)
Controls a pin that discharges VBUS.
Definition usbc_vbus.h:84
#define bool
Definition stdbool.h:13
Runtime device structure (in ROM) per driver instance.
Definition device.h:403
const void * api
Address of the API structure exposed by the device instance.
Definition device.h:409
Definition usbc_vbus.h:35
int(* discharge)(const struct device *dev, bool enable)
Definition usbc_vbus.h:38
int(* measure)(const struct device *dev, int *vbus_meas)
Definition usbc_vbus.h:37
int(* enable)(const struct device *dev, bool enable)
Definition usbc_vbus.h:39
bool(* check_level)(const struct device *dev, enum tc_vbus_level level)
Definition usbc_vbus.h:36
USB Type-C Cable and Connector API used for USB-C drivers.