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

USB power delivery status storage. More...

Public Member Functions

void update ()
 Update the values and update status.
 
void serial_show (const bool forceContract=false)
 Debug to serial output. The contract is shown on change only, unless forced.
 

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
 
etl::string< 32 > pdAlgoStatus
 Debug status for the algorithm.
 
char lastContract [64] = {0}
 last contract shown
 
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: