Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lampda::power::powerDelivery::UsbPDData Struct Reference

USB power delivery status storage. More...

Public Member Functions

void update ()
 Update the values and update status.
 
void serial_show ()
 Debug to serial output.
 

Public Attributes

bool isVbusPowered
 True if some voltage is detected on VBUS.
 
bool isPowerSourceDetected
 True if the cable is plugged to a power source.
 
bool isUsbPd
 True if the cable is identifies as PD compatible.
 
int vbusVoltage
 Actual VBUS voltage, in millivolts.
 
uint32_t maxInputCurrent
 max current input voltage, in milliamps
 
uint32_t maxInputVoltage
 max input voltage, in millivolts
 
std::string pdAlgoStatus
 Debug status for the algorithm.
 
bool hasChanged = false
 when true, this struct has changed !
 

Detailed Description

USB power delivery status storage.


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