ESPHome  2024.11.3
Data Structures | Enumerations
esphome::i2s_audio Namespace Reference

Data Structures

class  I2SAudioBase
 
class  I2SAudioComponent
 
class  I2SAudioIn
 
class  I2SAudioMediaPlayer
 
class  I2SAudioMicrophone
 
class  I2SAudioOut
 
class  I2SAudioSpeaker
 

Enumerations

enum  I2SState : uint8_t { I2S_STATE_STOPPED = 0, I2S_STATE_STARTING, I2S_STATE_RUNNING, I2S_STATE_STOPPING }
 
enum  SpeakerEventGroupBits : uint32_t {
  COMMAND_START = (1 << 0), COMMAND_STOP = (1 << 1), COMMAND_STOP_GRACEFULLY = (1 << 2), STATE_STARTING = (1 << 10),
  STATE_RUNNING = (1 << 11), STATE_STOPPING = (1 << 12), STATE_STOPPED = (1 << 13), ERR_INVALID_FORMAT = (1 << 14),
  ERR_TASK_FAILED_TO_START = (1 << 15), ERR_ESP_INVALID_STATE = (1 << 16), ERR_ESP_INVALID_ARG = (1 << 17), ERR_ESP_INVALID_SIZE = (1 << 18),
  ERR_ESP_NO_MEM = (1 << 19), ERR_ESP_FAIL = (1 << 20), ALL_ERR_ESP_BITS = ERR_ESP_INVALID_STATE | ERR_ESP_INVALID_ARG | ERR_ESP_INVALID_SIZE | ERR_ESP_NO_MEM | ERR_ESP_FAIL, ALL_BITS = 0x00FFFFFF
}
 

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.

◆ SpeakerEventGroupBits

Enumerator
COMMAND_START 
COMMAND_STOP 
COMMAND_STOP_GRACEFULLY 
STATE_STARTING 
STATE_RUNNING 
STATE_STOPPING 
STATE_STOPPED 
ERR_INVALID_FORMAT 
ERR_TASK_FAILED_TO_START 
ERR_ESP_INVALID_STATE 
ERR_ESP_INVALID_ARG 
ERR_ESP_INVALID_SIZE 
ERR_ESP_NO_MEM 
ERR_ESP_FAIL 
ALL_ERR_ESP_BITS 
ALL_BITS 

Definition at line 28 of file i2s_audio_speaker.cpp.