software:firmware
MakAir Firmware
|
Abstraction to switch buzzer ON or OFF. More...
#include "../includes/buzzer_control.h"
#include "../includes/config.h"
#include "../includes/parameters.h"
#include "Arduino.h"
Go to the source code of this file.
Macros | |
#define | BUZZER_FREQ 4000 |
Buzzer frequency in Hz. More... | |
#define | PERIOD_BUZZER_US (1000000 / BUZZER_FREQ) |
Functions | |
void | BuzzerControl_Init (void) |
Initialization of HardwareTimer for buzzer. More... | |
void | BuzzerControl_On (void) |
Switch buzzer ON. More... | |
void | BuzzerControl_Off (void) |
Switch buzzer OFF. More... | |
Variables | |
HardwareTimer * | Buzzer_Hw_Timer |
uint32_t | Buzzer_Timer_Channel |
Abstraction to switch buzzer ON or OFF.
Definition in file buzzer_control.cpp.
#define BUZZER_FREQ 4000 |
Buzzer frequency in Hz.
Definition at line 18 of file buzzer_control.cpp.
#define PERIOD_BUZZER_US (1000000 / BUZZER_FREQ) |
Definition at line 20 of file buzzer_control.cpp.
void BuzzerControl_Init | ( | void | ) |
void BuzzerControl_Off | ( | void | ) |
void BuzzerControl_On | ( | void | ) |
HardwareTimer* Buzzer_Hw_Timer |
Definition at line 22 of file buzzer_control.cpp.
uint32_t Buzzer_Timer_Channel |
Definition at line 23 of file buzzer_control.cpp.