17 #ifndef ROVERAPI_ROVER_BUZZER_HPP_ 18 #define ROVERAPI_ROVER_BUZZER_HPP_ void initialize(void)
Initializes the RoverBuzzer that is instantiated.
Definition: rover_buzzer.cpp:32
int BUZZER_PIN
Buzzer pin in wiringPi format.
Definition: rover_buzzer.hpp:39
void setBuzzerOn(void)
Plays the buzzer with the default frequency.
Definition: rover_buzzer.cpp:52
void setBuzzerFrequency(const int buzzer_freq)
Sets the default buzzer frequency in Hz. Values between 0-1000 Hz are conventionally used for the buz...
Definition: rover_buzzer.cpp:42
int BUZZER_FREQUENCY
Default buzzer frequency used by setBuzzerOn function.
Definition: rover_buzzer.hpp:45
void shutdownTone(void)
Plays the shutdown tone.
Definition: rover_buzzer.cpp:76
void setBuzzerPin(const int pin)
Overrides the default buzzer pin in wiringPi format.
Definition: rover_buzzer.cpp:102
int ROVERBUZZER_INIT_
Flag to hold if RoverBuzzer is initialized.
Definition: rover_buzzer.hpp:50
RoverBuzzer class provides the member functions related to embedded buzzer on the rover...
Definition: rover_buzzer.hpp:27
void setBuzzerTone(const int buzzer_freq)
Plays the buzzer with custom buzzer frequency.
Definition: rover_buzzer.cpp:90
int getBuzzerFrequency(void)
Retrieves the default buzzer frequency in Hz.
Definition: rover_buzzer.cpp:47
rover Namespace contains classes to manage Rover sensors, gpio, buzzer, buttons, driving, utilities, and cloud.
Definition: rover_api.hpp:293
static const int DEFAULT_BUZZER_PIN
Embedded buzzer pin on rover in wiringPi format.
Definition: rover_buzzer.hpp:34
RoverBuzzer()
RoverBuzzer classs constructor.
Definition: rover_buzzer.cpp:24
RoverGpio class provides the member functions related to basic GPIO operations. This class wraps wiri...
Definition: rover_gpio.hpp:24
void setBuzzerOff(void)
Turns off the buzzer.
Definition: rover_buzzer.cpp:64