1 #ifndef STM32F103_LIB_BUZZER_H_
2 #define STM32F103_LIB_BUZZER_H_
12 #if !defined(LIB_USE_BUZZER) || LIB_USE_BUZZER < 1
13 #error "This configuration is not specified to use this library"
14 #endif // !defined(LIB_USE_BUZZER) || LIB_USE_BUZZER < 1
61 std::unique_ptr<GPIO> gpio_;
64 #endif // STM32F103_LIB_BUZZER_H_
std::pair< GPIO_TypeDef *, uint16_t > Pin
Type definition for a single pin.
Definition: util.h:16
Implements abstraction layer for buzzers.
Definition: buzzer.h:19
Configuration for buzzers.
Definition: buzzer.h:24
Buzzer(const Config &config)
Constructor for buzzer.
void SetEnable(const bool flag)
Sets the state of the buzzer.
uint8_t id
ID of buzzer.
Definition: buzzer.h:28
Pin * GetPin()
Definition: buzzer.h:52
HAL implementation for GPIO pins.
Definition: gpio.h:12
GPIO * GetGpio()
Definition: buzzer.h:57