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

Snapshot of the input source status. More...

#include <input_power_policy.h>

Public Attributes

bool isPowerSourceDetected = false
 VBUS was detected (deglitched)
 
uint32_t timeSinceSourceDetected_ms = 0
 Time since the source detection, or since the PD state machine resumed.
 
uint32_t timeSinceLastPdDetected_ms = 0
 Time since the source capabilities were last known.
 
bool isUsbPd = false
 Source capabilities are known.
 
bool isSinkReady = false
 The PD state machine has an established contract.
 
bool isSinkNegotiating = false
 The PD state machine is still negociating (waiting for capabilities, resetting, requesting)
 
uint32_t negotiatedVoltage_mV = 0
 Negociated contract (0 when no contract)
 
uint32_t negotiatedCurrent_mA = 0
 
uint32_t vbusVoltage_mV = 0
 Measured VBUS voltage.
 

Detailed Description

Snapshot of the input source status.


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