[][src]Enum esp_idf_bindgen::i2s_mode_t

#[repr(u32)]pub enum i2s_mode_t {
    I2S_MODE_MASTER,
    I2S_MODE_SLAVE,
    I2S_MODE_TX,
    I2S_MODE_RX,
    I2S_MODE_DAC_BUILT_IN,
    I2S_MODE_ADC_BUILT_IN,
    I2S_MODE_PDM,
}

@brief I2S Mode, defaut is I2S_MODE_MASTER | I2S_MODE_TX

@note PDM and built-in DAC functions are only supported on I2S0 for current ESP32 chip.

Variants

I2S_MODE_MASTER

< Master mode

I2S_MODE_SLAVE

< Slave mode

I2S_MODE_TX

< TX mode

I2S_MODE_RX

< RX mode

I2S_MODE_DAC_BUILT_IN

< Output I2S data to built-in DAC, no matter the data format is 16bit or 32 bit, the DAC module will only take the 8bits from MSB

I2S_MODE_ADC_BUILT_IN

< Input I2S data from built-in ADC, each data can be 12-bit width at most

I2S_MODE_PDM

< PDM mode

Trait Implementations

impl Clone for i2s_mode_t[src]

impl Copy for i2s_mode_t[src]

impl Debug for i2s_mode_t[src]

impl Eq for i2s_mode_t[src]

impl Hash for i2s_mode_t[src]

impl PartialEq<i2s_mode_t> for i2s_mode_t[src]

impl StructuralEq for i2s_mode_t[src]

impl StructuralPartialEq for i2s_mode_t[src]

Auto Trait Implementations

impl Send for i2s_mode_t

impl Sync for i2s_mode_t

impl Unpin for i2s_mode_t

Blanket Implementations

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

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

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

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

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

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> 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.