![]() Currently not available.īegin() function must be called at least once before idle(), sleep(), deepSleep() or shutdown() functions.ĪttachInterruptWakeup() or enableWakeupFrom() functions should be called before idle(), sleep(), deepSleep() or shutdown() functions. See board documentation for low power mode compatibility. Void enableWakeupFrom(TwoWire *wire, voidFuncPtrVoid callback):Įnable an I2C peripheral in low power mode. Param callback: data: optional pointer to callback data parameters (default NULL). Void enableWakeupFrom(STM32RTC *rtc, voidFuncPtr callback, void * data) Param callback: pointer to a callback to call when the board is waked up. Void enableWakeupFrom(HardwareSerial *serial, voidFuncPtrVoid callback): enable a UART peripheral in low power mode. In case of SHUTDOWN_MODE only, Wakeup pin capability is activated. Param LowPowerMode: Low power mode which will be used (IDLE_MODE, SLEEP_MODE, DEEP_SLEEP_MODE or SHUTDOWN_MODE). Param mode: interrupt mode (HIGH, LOW, RISING, FALLING or CHANGE) If the pin is a wakeup pin, it is configured as wakeup source (see board documentation). ![]() Void attachInterruptWakeup(uint32_t pin, voidFuncPtrVoid callback, uint32_t mode, LP_Mode LowPowerMode): Enable GPIO pin in interrupt mode. Note: With STM32RTC version lower than 1.1.0, the minimum number of milliseconds is 1000 ms. The RTC is used in alarm mode to wakeup the board in ms milliseconds. Param ms (optional): number of milliseconds before to exit the mode. Void shutdown(uint32_t ms): enter in shutdown mode Void deepSleep(uint32_t ms): enter in deepSleep mode Void sleep(uint32_t ms): enter in sleep mode The RTC is used in alarm mode to wakeup the chip in ms milliseconds. Void idle(uint32_t ms): enter in idle mode Arduino library to support STM32 Low Power.
0 Comments
Leave a Reply. |