LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
Buzzer Class Reference

Handles buzzer operations for various alerts. More...

#include <LccNodeAlerts.h>

Public Types

enum class  BuzzerAlertTypes : unsigned int
 Types of buzzer alerts for various events.
 

Public Member Functions

 Buzzer ()
 Constructor for Buzzer class.
 
void run (Buzzer::BuzzerAlertTypes buzzerType)
 Executes a buzzer/LED alert based on the provided alert type. More...
 

Private Types

enum class  BuzzerDurations : unsigned int
 Durations for different beep types.
 

Private Member Functions

void _buzz (BuzzerDurations buzzerDuration, uint8_t count)
 Helper function to control the buzzer state and perform multiple beeps. More...
 

Detailed Description

Handles buzzer operations for various alerts.

Definition at line 118 of file LccNodeAlerts.h.

Member Function Documentation

◆ _buzz()

void Buzzer::_buzz ( BuzzerDurations  buzzerDuration,
uint8_t  count 
)
inlineprivate

Helper function to control the buzzer state and perform multiple beeps.

Parameters
buzzerDurationThe duration of each beep.
countNumber of beeps.

Definition at line 198 of file LccNodeAlerts.h.

Here is the caller graph for this function:

◆ run()

void Buzzer::run ( Buzzer::BuzzerAlertTypes  buzzerType)
inline

Executes a buzzer/LED alert based on the provided alert type.

Note that the when the buzzer is running (# secs) that the LED next to the buzzer also turns ON (in line with buzzer)

Parameters
buzzerTypeThe type of buzzer alert to execute.

Definition at line 149 of file LccNodeAlerts.h.

Here is the call graph for this function:
Here is the caller graph for this function:

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