ESPHome  2024.11.0
Public Member Functions | Protected Attributes
esphome::i2s_audio::I2SAudioBase Class Reference

#include <i2s_audio.h>

Inheritance diagram for esphome::i2s_audio::I2SAudioBase:
esphome::Parented< I2SAudioComponent > esphome::i2s_audio::I2SAudioIn esphome::i2s_audio::I2SAudioOut esphome::i2s_audio::I2SAudioMicrophone esphome::i2s_audio::I2SAudioSpeaker

Public Member Functions

void set_i2s_mode (i2s_mode_t mode)
 
void set_channel (i2s_channel_fmt_t channel)
 
void set_sample_rate (uint32_t sample_rate)
 
void set_bits_per_sample (i2s_bits_per_sample_t bits_per_sample)
 
void set_bits_per_channel (i2s_bits_per_chan_t bits_per_channel)
 
void set_use_apll (uint32_t use_apll)
 
- Public Member Functions inherited from esphome::Parented< I2SAudioComponent >
 Parented ()
 
 Parented (I2SAudioComponent *parent)
 
I2SAudioComponent * get_parent () const
 Get the parent of this object. More...
 
void set_parent (I2SAudioComponent *parent)
 Set the parent of this object. More...
 

Protected Attributes

i2s_mode_t i2s_mode_ {}
 
i2s_channel_fmt_t channel_
 
uint32_t sample_rate_
 
i2s_bits_per_sample_t bits_per_sample_
 
i2s_bits_per_chan_t bits_per_channel_
 
bool use_apll_
 
- Protected Attributes inherited from esphome::Parented< I2SAudioComponent >
I2SAudioComponent * parent_
 

Detailed Description

Definition at line 14 of file i2s_audio.h.

Member Function Documentation

◆ set_bits_per_channel()

void esphome::i2s_audio::I2SAudioBase::set_bits_per_channel ( i2s_bits_per_chan_t  bits_per_channel)
inline

Definition at line 20 of file i2s_audio.h.

◆ set_bits_per_sample()

void esphome::i2s_audio::I2SAudioBase::set_bits_per_sample ( i2s_bits_per_sample_t  bits_per_sample)
inline

Definition at line 19 of file i2s_audio.h.

◆ set_channel()

void esphome::i2s_audio::I2SAudioBase::set_channel ( i2s_channel_fmt_t  channel)
inline

Definition at line 17 of file i2s_audio.h.

◆ set_i2s_mode()

void esphome::i2s_audio::I2SAudioBase::set_i2s_mode ( i2s_mode_t  mode)
inline

Definition at line 16 of file i2s_audio.h.

◆ set_sample_rate()

void esphome::i2s_audio::I2SAudioBase::set_sample_rate ( uint32_t  sample_rate)
inline

Definition at line 18 of file i2s_audio.h.

◆ set_use_apll()

void esphome::i2s_audio::I2SAudioBase::set_use_apll ( uint32_t  use_apll)
inline

Definition at line 21 of file i2s_audio.h.

Field Documentation

◆ bits_per_channel_

i2s_bits_per_chan_t esphome::i2s_audio::I2SAudioBase::bits_per_channel_
protected

Definition at line 28 of file i2s_audio.h.

◆ bits_per_sample_

i2s_bits_per_sample_t esphome::i2s_audio::I2SAudioBase::bits_per_sample_
protected

Definition at line 27 of file i2s_audio.h.

◆ channel_

i2s_channel_fmt_t esphome::i2s_audio::I2SAudioBase::channel_
protected

Definition at line 25 of file i2s_audio.h.

◆ i2s_mode_

i2s_mode_t esphome::i2s_audio::I2SAudioBase::i2s_mode_ {}
protected

Definition at line 24 of file i2s_audio.h.

◆ sample_rate_

uint32_t esphome::i2s_audio::I2SAudioBase::sample_rate_
protected

Definition at line 26 of file i2s_audio.h.

◆ use_apll_

bool esphome::i2s_audio::I2SAudioBase::use_apll_
protected

Definition at line 29 of file i2s_audio.h.


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