Logic_library
Library for Logic board by RoboticsBrno.
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Buzzer Class Reference

#include <Buzzer.hpp>

Public Member Functions

 Buzzer (Buzzer &)=delete
 
Buzzeroperator= (Buzzer &)=delete
 
void setFrequency (std::uint32_t frequency)
 Set frequency of buzzer. More...
 
bool isOn () const
 Get state of buzzer. More...
 
void on ()
 Turn buzzer on. More...
 
void on (std::uint32_t frequency)
 Turn buzzer on with specified frequency. More...
 
void off ()
 Turn buzzer off. More...
 
void nastavitFrekvenci (std::uint32_t frekvence)
 Nastaví frekvenci bzučáku. More...
 
bool jeZapnuty () const
 Vrátí aktuální stav bzučáku. More...
 
void zapnout ()
 Zapne bzučák. More...
 
void zapnout (std::uint32_t frekvence)
 Zapne bzučák s nastavenou frekvencí More...
 
void vypnout ()
 Vypne bzučák. More...
 

Friends

class Logic
 

Constructor & Destructor Documentation

◆ Buzzer()

Buzzer::Buzzer ( Buzzer )
delete

Member Function Documentation

◆ isOn()

bool Buzzer::isOn ( ) const

Get state of buzzer.

Returns
true
false

◆ jeZapnuty()

bool Buzzer::jeZapnuty ( ) const

Vrátí aktuální stav bzučáku.

Returns
true
false

◆ nastavitFrekvenci()

void Buzzer::nastavitFrekvenci ( std::uint32_t  frekvence)

Nastaví frekvenci bzučáku.

◆ off()

void Buzzer::off ( )

Turn buzzer off.

◆ on() [1/2]

void Buzzer::on ( )

Turn buzzer on.

◆ on() [2/2]

void Buzzer::on ( std::uint32_t  frequency)

Turn buzzer on with specified frequency.

Parameters
frequency

◆ operator=()

Buzzer & Buzzer::operator= ( Buzzer )
delete

◆ setFrequency()

void Buzzer::setFrequency ( std::uint32_t  frequency)

Set frequency of buzzer.

Parameters
frequency

◆ vypnout()

void Buzzer::vypnout ( )

Vypne bzučák.

◆ zapnout() [1/2]

void Buzzer::zapnout ( )

Zapne bzučák.

◆ zapnout() [2/2]

void Buzzer::zapnout ( std::uint32_t  frekvence)

Zapne bzučák s nastavenou frekvencí

Parameters
frekvence

Friends And Related Function Documentation

◆ Logic

friend class Logic
friend

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