ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::rtttl Namespace Reference

Data Structures

class  FinishedPlaybackTrigger
 
class  IsPlayingCondition
 
class  PlayAction
 
class  Rtttl
 
class  StopAction
 

Enumerations

enum class  State : uint8_t {
  STOPPED = 0 , INIT , STARTING , RUNNING ,
  STOPPING
}
 

Functions

double deg2rad (double degrees)
 
 PROGMEM_STRING_TABLE (RtttlStateStrings, "State::STOPPED", "State::INIT", "State::STARTING", "State::RUNNING", "State::STOPPING", "UNKNOWN")
 

Variables

constexpr uint8_t DEFAULT_NOTE_DENOMINATOR = 4
 
constexpr uint8_t DEFAULT_OCTAVE
 

Enumeration Type Documentation

◆ State

enum class esphome::rtttl::State : uint8_t
strong
Enumerator
STOPPED 
INIT 
STARTING 
RUNNING 
STOPPING 

Definition at line 20 of file rtttl.h.

Function Documentation

◆ deg2rad()

double esphome::rtttl::deg2rad ( double degrees)
inline

Definition at line 37 of file rtttl.cpp.

◆ PROGMEM_STRING_TABLE()

esphome::rtttl::PROGMEM_STRING_TABLE ( RtttlStateStrings ,
"State::STOPPED" ,
"State::INIT" ,
"State::STARTING" ,
"State::RUNNING" ,
"State::STOPPING" ,
"UNKNOWN"  )

Variable Documentation

◆ DEFAULT_NOTE_DENOMINATOR

uint8_t esphome::rtttl::DEFAULT_NOTE_DENOMINATOR = 4
inlineconstexpr

Definition at line 16 of file rtttl.h.

◆ DEFAULT_OCTAVE

uint8_t esphome::rtttl::DEFAULT_OCTAVE
inlineconstexpr
Initial value:
=
6

Definition at line 17 of file rtttl.h.