[][src]Struct esp_idf_sys::i2s_config_t

#[repr(C)]
pub struct i2s_config_t {
    pub mode: i2s_mode_t,
    pub sample_rate: c_int,
    pub bits_per_sample: i2s_bits_per_sample_t,
    pub channel_format: i2s_channel_fmt_t,
    pub communication_format: i2s_comm_format_t,
    pub intr_alloc_flags: c_int,
    pub dma_buf_count: c_int,
    pub dma_buf_len: c_int,
    pub use_apll: bool,
    pub tx_desc_auto_clear: bool,
    pub fixed_mclk: c_int,
}

@brief I2S configuration parameters for i2s_param_config function

Fields

mode: i2s_mode_t

< I2S work mode

sample_rate: c_int

< I2S sample rate

bits_per_sample: i2s_bits_per_sample_t

< I2S bits per sample

channel_format: i2s_channel_fmt_t

< I2S channel format

communication_format: i2s_comm_format_t

< I2S communication format

intr_alloc_flags: c_int

< Flags used to allocate the interrupt. One or multiple (ORred) ESP_INTR_FLAG_* values. See esp_intr_alloc.h for more info

dma_buf_count: c_int

< I2S DMA Buffer Count

dma_buf_len: c_int

< I2S DMA Buffer Length

use_apll: bool

< I2S using APLL as main I2S clock, enable it to get accurate clock

tx_desc_auto_clear: bool

< I2S auto clear tx descriptor if there is underflow condition (helps in avoiding noise in case of data unavailability)

fixed_mclk: c_int

< I2S using fixed MCLK output. If use_apll = true and fixed_mclk > 0, then the clock output for i2s is fixed and equal to the fixed_mclk value.

Trait Implementations

impl Debug for i2s_config_t[src]

impl Copy for i2s_config_t[src]

impl Clone for i2s_config_t[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]