OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
power Namespace Reference

Everything related to power management. More...

Functions

void configureWakeUp (RTC_GPIO wakeUpPin)
 Initialize power management.
 
void configurePowerLatch (OutputGPIO latchPin, PowerLatchMode mode=PowerLatchMode::POWER_OPEN_DRAIN, uint32_t waitMs=5000)
 Configure an external latch circuit for power on and off.
 

Detailed Description

Everything related to power management.

Function Documentation

◆ configurePowerLatch()

void power::configurePowerLatch ( OutputGPIO latchPin,
PowerLatchMode mode = PowerLatchMode::POWER_OPEN_DRAIN,
uint32_t waitMs = 5000 )

Configure an external latch circuit for power on and off.

Parameters
latchPinOutput-capable GPIO that drives power on/off.
modeExpected behaviour of latchPin to keep the power on or shutdown.
waitMsA delay to wait for the shutdown to happen, in milliseconds.

◆ configureWakeUp()

void power::configureWakeUp ( RTC_GPIO wakeUpPin)

Initialize power management.

Parameters
wakeUpPinRTC-capable GPIO pin to wake up the system after deep sleep. That pin is supposed to activate on LOW voltage.