Expand description
§AP33772S USB-PD Sink Controller Driver
This crate provides a platform-agnostic driver for the AP33772S USB Power Delivery (USB-PD)
Sink Controller. The driver is built on top of the [embedded-hal] traits to ensure
compatibility with various microcontroller platforms.
§Features
- Platform-agnostic implementation using
embedded-haltraits - Support for both Standard Power Range (SPR) and Extended Power Range (EPR) modes
- Power Data Object (PDO) enumeration and negotiation
- Voltage and current monitoring
- Protection features (UVP, OVP, OCP, OTP)
- Programmable Power Supply (PPS) and Adjustable Voltage Supply (AVS) support
Structs§
- AP33772S
- AP33772S USB-PD Sink Controller Driver
- PDOInfo
- Source Power Data Object information
- PDStatus
- Current status of the PD controller
Enums§
Constants§
- AP33772S_
ADDR - AP33772S I2C slave address
- CC_
STATUS_ MASK - CMDMSG_
HRST - CONFIG_
DR_ EN - CONFIG_
OCP_ EN - CONFIG_
OTP_ EN - CONFIG_
OVP_ EN - CONFIG_
UVP_ EN - MAX_
PDO_ COUNT - Maximum number of PDOs supported by AP33772S
- MSGRLT_
BUSY - MSGRLT_
FAILED - MSGRLT_
INVALID - MSGRLT_
MASK - MSGRLT_
SUCCESS - MSGRLT_
UNSUPPORTED - REG_
CONFIG - REG_
CURRENT - REG_
IREQ - REG_
MASK - REG_
OPMODE - REG_
PD_ CMDMSG - REG_
PD_ MSGRLT - REG_
PD_ REQMSG - REG_
SRCPDO - REG_
STATUS - REG_
SYSTEM - REG_
TEMP - REG_
VOLTAGE - REG_
VREQ - REQMSG_
MAX_ CURRENT - REQMSG_
MAX_ VOLTAGE - REQMSG_
VOLTAGE_ SEL_ MASK - SRCPDO_
CURRENT_ MAX_ MASK - SRCPDO_
CURRENT_ MAX_ SHIFT - SRCPDO_
CURRENT_ VALUES - SRCPDO_
DETECT - SRCPDO_
TYPE - SRCPDO_
VOLTAGE_ MAX_ MASK - STATUS_
NEWPDO - STATUS_
OCP - STATUS_
OTP - STATUS_
OVP - STATUS_
READY - STATUS_
STARTED - STATUS_
UVP - SYSTEM_
VOUTCTL_ AUTO - SYSTEM_
VOUTCTL_ OFF - SYSTEM_
VOUTCTL_ ON