Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::sys::buzzer_impl Struct Reference

Detailed Description

an implementation of buzzer_impl_interface that interacts with a real buzzer on the D7 target

#include <buzzer_impl.h>

Public Member Functions

void set_boost_level (buzzer_boost level) override
 Set the boost level.
void enable_boost (bool enable) override
 Enable or disable boost.
void buzzer_enable (bool enable, const buzzer_config &cfg) override
 Enable or disable the buzzer by taking a custom buzzer setup. See buzzer_config.

Detailed Description

an implementation of buzzer_impl_interface that interacts with a real buzzer on the D7 target

Member Function Documentation

◆ buzzer_enable()

void vsdk::sys::buzzer_impl::buzzer_enable ( bool enable,
const buzzer_config & cfg )
override

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.

◆ enable_boost()

void vsdk::sys::buzzer_impl::enable_boost ( bool enable)
override

Enable or disable boost.

Parameters
enabletrue the buzzer will sound, false to make it stop.

◆ set_boost_level()

void vsdk::sys::buzzer_impl::set_boost_level ( buzzer_boost level)
override

Set the boost level.

Parameters
levelThe new boost level

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