software:firmware
MakAir Firmware
buzzer.h
Go to the documentation of this file.
1 
8 #pragma once
9 
11 #define WATCHDOG_TIMEOUT 1000000
12 
14 #define BUZZER_TIMER TIM5 // TIM5 is a 32 bits timer
15 
17 #define BUZZER_TIM_CHANNEL 1 // Use channel 1 of TIM5
18 
20 void Buzzer_Init();
21 
29 void Buzzer_Start(const uint32_t* Buzzer, uint32_t Size, bool RepeatBuzzer);
30 
32 void Buzzer_Low_Prio_Start(void);
33 
35 void Buzzer_Medium_Prio_Start(void);
36 
38 void Buzzer_High_Prio_Start(void);
39 
41 void Buzzer_Boot_Start(void);
42 
44 void Buzzer_Mute(void);
45 
47 void Buzzer_Resume(void);
48 
50 void Buzzer_Stop(void);
void Buzzer_High_Prio_Start(void)
Activate the buzzer pattern for high priority alarms.
Definition: buzzer.cpp:186
void Buzzer_Low_Prio_Start(void)
Activate the buzzer pattern for low priority alarms.
Definition: buzzer.cpp:192
void Buzzer_Start(const uint32_t *Buzzer, uint32_t Size, bool RepeatBuzzer)
Generic function to activate a buzzer.
Definition: buzzer.cpp:140
void Buzzer_Resume(void)
Resume the muted alarm.
Definition: buzzer.cpp:175
void Buzzer_Mute(void)
Mute the buzzer for 120s.
Definition: buzzer.cpp:156
void Buzzer_Boot_Start(void)
Activate boot bip.
Definition: buzzer.cpp:194
void Buzzer_Stop(void)
Stop Buzzer.
Definition: buzzer.cpp:196
void Buzzer_Init()
Initialization of HardwareTimer for buzzer.
Definition: buzzer.cpp:128
void Buzzer_Medium_Prio_Start(void)
Activate the buzzer pattern for medium priority alarms.
Definition: buzzer.cpp:188