Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
usbc_vbus.h File Reference

USB-C VBUS device APIs. More...

Go to the source code of this file.

Data Structures

struct  usbc_vbus_driver_api
 

Functions

static bool usbc_vbus_check_level (const struct device *dev, enum tc_vbus_level level)
 Checks if VBUS is at a particular level.
 
static int usbc_vbus_measure (const struct device *dev, int *meas)
 Reads and returns VBUS measured in mV.
 
static int usbc_vbus_discharge (const struct device *dev, bool enable)
 Controls a pin that discharges VBUS.
 
static int usbc_vbus_enable (const struct device *dev, bool enable)
 Controls a pin that enables VBUS measurements.
 

Detailed Description

USB-C VBUS device APIs.

This file contains the USB-C VBUS device APIs. All USB-C VBUS measurement and control device drivers should implement the APIs described in this file.