Expose Vbus

This commit is contained in:
Ben V. Brown
2022-02-06 13:14:53 +11:00
parent a3cecb852c
commit 3c83b59b53
2 changed files with 14 additions and 3 deletions

View File

@@ -16,9 +16,9 @@ public:
static void PPSTimerCallback(); // PPS Timer
static void IRQOccured(); // Thread callback that an irq occured
static void step(); // Iterate the step machine
static bool negotiationHasWorked(); //
static uint8_t getStateNumber(); //
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
private:
//
static int detectionState;