1
0
forked from me/IronOS

Scratch out resistance awareness of the tip

This commit is contained in:
Ben V. Brown
2022-05-23 22:25:00 +10:00
parent 75b3f09438
commit 9decdcc89c
3 changed files with 27 additions and 7 deletions

View File

@@ -66,7 +66,9 @@ bool USBPowerDelivery::fusbPresent() {
}
bool USBPowerDelivery::isVBUSConnected() { return fusb.isVBUSConnected(); }
void USBPowerDelivery::triggerRenegotiation() {
}
bool pdbs_dpm_evaluate_capability(const pd_msg *capabilities, pd_msg *request) {
/* Get the number of PDOs */

View File

@@ -19,6 +19,7 @@ public:
static bool negotiationHasWorked(); // Has PD negotiation worked (are we in a PD contract)
static uint8_t getStateNumber(); // Debugging - Get the internal state number
static bool isVBUSConnected(); // Is the VBus pin connected on the FUSB302
static void triggerRenegotiation(); // Trigger a restart of voltage selection
private:
//
static int detectionState;