Crate usbpd

Source
Expand description

USB PD library.

Includes capabilities for implementing:

  • SPR sink

Provides a policy engine (depending on selected capability), protocol layer, and relevant traits for the user applation to implement.

Modules§

protocol_layer
The protocol layer is controlled by the policy engine, and commands the PHY layer.
sink
The sink implementation.
timers
Timers that are used by the protocol layer and policy engine.

Enums§

DataRole
The data role of the port.
DriverRxError
Receive Error.
DriverTxError
Transmit Error.
PowerRole
The power role of the port.

Traits§

Driver
Driver trait, through which the protocol layer talks to the PHY.