TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
tm_stm32f4_low_power.h
1 
30 #ifndef TM_LOWPOWER_H
31 #define TM_LOWPOWER_H 120
32 
33 /* C++ detection */
34 #ifdef __cplusplus
35 extern C {
36 #endif
37 
114 #include "stm32f4xx.h"
115 #include "stm32f4xx_rcc.h"
116 #include "stm32f4xx_pwr.h"
117 #include "defines.h"
118 #include "tm_stm32f4_delay.h"
119 
136 typedef enum {
143 
167 void TM_LOWPOWER_SleepUntilInterrupt(uint8_t delay_timer);
168 
175 void TM_LOWPOWER_SleepUntilEvent(void);
176 
183 
189 void TM_LOWPOWER_StopUntilEvent(void);
190 
196 void TM_LOWPOWER_Standby(void);
197 
204 uint8_t TM_LOWPOWER_StandbyReset(void);
205 
213 void TM_LOWPOWER_EnableWakeUpPin(void);
214 
222 
235 /* C++ detection */
236 #ifdef __cplusplus
237 }
238 #endif
239 
240 #endif
Definition: tm_stm32f4_low_power.h:138
void TM_LOWPOWER_Standby(void)
To go Standby mode.
void TM_LOWPOWER_StopUntilInterrupt(void)
Go to STOP mode with "Wait For Interrupt" instruction.
void TM_LOWPOWER_SleepUntilEvent(void)
Put device into sleep mode.
void TM_LOWPOWER_StopUntilEvent(void)
Go to STOP mode with "Wait For Event" instruction.
uint8_t TM_LOWPOWER_StandbyReset(void)
Checks if system was reset because of wakeup from standby mode.
void TM_LOWPOWER_EnableWakeUpPin(void)
Enables Wakeup pin, fixed pin, PA0.
TM_LOWPOWERMODE_t
Definition: tm_stm32f4_low_power.h:136
void TM_LOWPOWER_SleepUntilInterrupt(uint8_t delay_timer)
Put device into sleep mode.
void TM_LOWPOWER_DisableWakeUpPin(void)
Disables Wakeup pin.
Definition: tm_stm32f4_low_power.h:139
Definition: tm_stm32f4_low_power.h:137
Definition: tm_stm32f4_low_power.h:140
Definition: tm_stm32f4_low_power.h:141