Veethree D7 SDK
Loading...
Searching...
No Matches
buzzer_common.h File Reference

Detailed Description

Buzzer Common Definitions.

#include <cstdint>
Include dependency graph for buzzer_common.h:

Go to the source code of this file.

Classes

struct  vsdk::sys::buzzer_config
 The config class In case the buzzer requires customisation, period and duty cycle can be modified, as well as boosting the volume. More...

Namespaces

namespace  vsdk
 Any entities that belong to the Veethree SDK libraries.
namespace  vsdk::sys
 Any entities that belong to the system library.

Enumerations

enum class  vsdk::sys::buzzer_boost : uint8_t {
  no_boost , boost1 , boost2 , boost3 ,
  boost4 , boost5
}
 Define how loud the buzzer will be, the default value is the quietest no_boost while boost5 is the loudest.

Variables

constexpr uint32_t vsdk::sys::buzzer_default_period { 500'000 }
 buzzer_default_period - default time in nanoseconds used for generating the buzzer, as per Linux PWM sysfs API.
constexpr double vsdk::sys::buzzer_default_duty_cycle { 0.5 }
 buzzer_default_duty_cycle - default duty cycle as percetange of period.

Detailed Description

Buzzer Common Definitions.