ESPHome  2024.10.2
Data Structures | Enumerations | Functions
esphome::i2s_audio Namespace Reference

Data Structures

struct  DataEvent
 
class  I2SAudioBase
 
class  I2SAudioComponent
 
class  I2SAudioIn
 
class  I2SAudioMediaPlayer
 
class  I2SAudioMicrophone
 
class  I2SAudioOut
 
class  I2SAudioSpeaker
 
struct  TaskEvent
 

Enumerations

enum  I2SState : uint8_t { I2S_STATE_STOPPED = 0, I2S_STATE_STARTING, I2S_STATE_RUNNING, I2S_STATE_STOPPING }
 
enum  TaskEventType : uint8_t {
  TaskEventType::STARTING = 0, TaskEventType::STARTED, TaskEventType::STOPPING, TaskEventType::STOPPED,
  TaskEventType::WARNING = 255
}
 

Functions

template<typename a , typename b >
const uint8_t * convert_data_format (const a *from, b *to, size_t &bytes, bool repeat)
 

Enumeration Type Documentation

◆ I2SState

Enumerator
I2S_STATE_STOPPED 
I2S_STATE_STARTING 
I2S_STATE_RUNNING 
I2S_STATE_STOPPING 

Definition at line 19 of file i2s_audio_media_player.h.

◆ TaskEventType

enum esphome::i2s_audio::TaskEventType : uint8_t
strong
Enumerator
STARTING 
STARTED 
STOPPING 
STOPPED 
WARNING 

Definition at line 21 of file i2s_audio_speaker.h.

Function Documentation

◆ convert_data_format()

template<typename a , typename b >
const uint8_t* esphome::i2s_audio::convert_data_format ( const a *  from,
b *  to,
size_t &  bytes,
bool  repeat 
)

Definition at line 59 of file i2s_audio_speaker.cpp.