|
stm32f103
|
Implements abstraction layer for buzzers. More...
#include <buzzer.h>
Classes | |
| struct | Config |
| Configuration for buzzers. More... | |
Public Member Functions | |
| Buzzer (const Config &config) | |
| Constructor for buzzer. More... | |
| void | SetEnable (const bool flag) |
| Sets the state of the buzzer. More... | |
Protected Member Functions | |
| Pin * | GetPin () |
| GPIO * | GetGpio () |
Implements abstraction layer for buzzers.
|
explicit |
|
inlineprotected |
| void Buzzer::SetEnable | ( | const bool | flag | ) |
Sets the state of the buzzer.
| flag | True if the buzzer should be on |