Veethree D7 SDK
Loading...
Searching...
No Matches
buzzer.h
Go to the documentation of this file.
1
5#ifndef BUZZER_H
6#define BUZZER_H
7
8#include "buzzer_impl_interface.h"
9
10#include <cstdint>
11#include <memory>
12
13namespace vsdk::sys {
14
19
43class buzzer {
44public:
50 static void buzzer_enable(bool enable, buzzer_boost level = buzzer_boost::no_boost);
56 static void buzzer_enable(bool enable, const buzzer_config& cfg);
57
58private:
59 buzzer();
60
61 static buzzer* instance();
62
63 struct impl;
64 std::unique_ptr<buzzer_impl_interface> _impl;
65};
66
68
69} // namespace vsdk::sys
70
71#endif // BUZZER_H
static void buzzer_enable(bool enable, buzzer_boost level=buzzer_boost::no_boost)
Enable or disable the buzzer, using default definitions for buzzer_config.
static void buzzer_enable(bool enable, const buzzer_config &cfg)
Enable or disable the buzzer by taking a custom buzzer setup. See buzzer_config.
Any entities that belong to the system library.
buzzer_boost
Define how loud the buzzer will be, the default value is the quietest no_boost while boost5 is the lo...
Definition buzzer_common.h:14
The config class In case the buzzer requires customisation, period and duty cycle can be modified,...
Definition buzzer_common.h:36