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

Namespaces

namespace  testing
 

Data Structures

class  Rtttl
 
struct  StaticSong
 A song in storage that outlives playback, such as a literal from generated code; PROGMEM on ESP8266. More...
 

Enumerations

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

Functions

 ESPHOME_LOG_TAG (TAG, "rtttl")
 
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 26 of file rtttl.h.

Function Documentation

◆ deg2rad()

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

Definition at line 35 of file rtttl.cpp.

◆ ESPHOME_LOG_TAG()

esphome::rtttl::ESPHOME_LOG_TAG ( TAG ,
"rtttl"  )

◆ 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 22 of file rtttl.h.

◆ DEFAULT_OCTAVE

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

Definition at line 23 of file rtttl.h.