Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::sys::buzzer Class Reference

Detailed Description

The buzzer class.

The buzzer class is responsible for all buzzer operations.

#include <system/buzzer.h>
#include <thread>
void fn()
{
using namespace vsdk::sys;
std::this_thread::sleep_for(500ms);
{ .period = 500'000, .duty_cycle = 0.5 });
std::this_thread::sleep_for(500ms);
}
buzzer interface
static void buzzer_enable(bool enable, buzzer_boost level=buzzer_boost::no_boost)
Enable or disable the buzzer, using default definitions for buzzer_config.
Any entities that belong to the system library.

#include <buzzer.h>

Static Public Member Functions

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.

Detailed Description

The buzzer class.

The buzzer class is responsible for all buzzer operations.

#include <system/buzzer.h>
#include <thread>
void fn()
{
using namespace vsdk::sys;
std::this_thread::sleep_for(500ms);
{ .period = 500'000, .duty_cycle = 0.5 });
std::this_thread::sleep_for(500ms);
}

Member Function Documentation

◆ buzzer_enable() [1/2]

void vsdk::sys::buzzer::buzzer_enable ( bool enable,
buzzer_boost level = buzzer_boost::no_boost )
static

Enable or disable the buzzer, using default definitions for buzzer_config.

Parameters
enabletrue the buzzer will sound, false to make it stop.
levelbuzzer boost level. See buzzer_boost.

◆ buzzer_enable() [2/2]

void vsdk::sys::buzzer::buzzer_enable ( bool enable,
const buzzer_config & cfg )
static

Enable or disable the buzzer by taking a custom buzzer setup. See buzzer_config.

Parameters
enabletrue the buzzer will sound, false to make it stop.
cfgA buzzer::config struct which you can customise how the buzzer will sound.

The documentation for this class was generated from the following file: