|
software:firmware
MakAir Firmware
|
Buzzer related functions. More...
Go to the source code of this file.
Macros | |
| #define | WATCHDOG_TIMEOUT 1000000 |
| Watchdog timeout in microseconds. More... | |
| #define | BUZZER_TIMER TIM5 |
| Hardware Timer to use for the buzzer. More... | |
| #define | BUZZER_TIM_CHANNEL 1 |
| Hardware Timer channel to use for the buzzer. More... | |
Functions | |
| void | Buzzer_Init () |
| Initialization of HardwareTimer for buzzer. More... | |
| void | Buzzer_Start (const uint32_t *Buzzer, uint32_t Size, bool RepeatBuzzer) |
| Generic function to activate a buzzer. More... | |
| void | Buzzer_Low_Prio_Start (void) |
| Activate the buzzer pattern for low priority alarms. More... | |
| void | Buzzer_Medium_Prio_Start (void) |
| Activate the buzzer pattern for medium priority alarms. More... | |
| void | Buzzer_High_Prio_Start (void) |
| Activate the buzzer pattern for high priority alarms. More... | |
| void | Buzzer_Boot_Start (void) |
| Activate boot bip. More... | |
| void | Buzzer_Mute (void) |
| Mute the buzzer for 120s. More... | |
| void | Buzzer_Resume (void) |
| Resume the muted alarm. More... | |
| void | Buzzer_Stop (void) |
| Stop Buzzer. More... | |
| #define BUZZER_TIM_CHANNEL 1 |
| #define BUZZER_TIMER TIM5 |
| #define WATCHDOG_TIMEOUT 1000000 |
| void Buzzer_Boot_Start | ( | void | ) |
Activate boot bip.
Definition at line 194 of file buzzer.cpp.
| void Buzzer_High_Prio_Start | ( | void | ) |
Activate the buzzer pattern for high priority alarms.
Definition at line 186 of file buzzer.cpp.
| void Buzzer_Init | ( | ) |
Initialization of HardwareTimer for buzzer.
Definition at line 128 of file buzzer.cpp.
| void Buzzer_Low_Prio_Start | ( | void | ) |
Activate the buzzer pattern for low priority alarms.
Definition at line 192 of file buzzer.cpp.
| void Buzzer_Medium_Prio_Start | ( | void | ) |
Activate the buzzer pattern for medium priority alarms.
Definition at line 188 of file buzzer.cpp.
| void Buzzer_Mute | ( | void | ) |
| void Buzzer_Resume | ( | void | ) |
| void Buzzer_Start | ( | const uint32_t * | Buzzer, |
| uint32_t | Size, | ||
| bool | RepeatBuzzer | ||
| ) |
Generic function to activate a buzzer.
| Buzzer | Buzzer pattern array |
| Size | Size of the buzzer pattern array |
| RepeatBuzzer | Is pattern repeating after its end |
Definition at line 140 of file buzzer.cpp.
| void Buzzer_Stop | ( | void | ) |