Struct esp_idf_sys::i2s_driver_config_t
source · #[repr(C)]pub struct i2s_driver_config_t {Show 13 fields
pub mode: i2s_mode_t,
pub sample_rate: u32,
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 __bindgen_anon_1: i2s_driver_config_t__bindgen_ty_1,
pub __bindgen_anon_2: i2s_driver_config_t__bindgen_ty_2,
pub use_apll: bool,
pub tx_desc_auto_clear: bool,
pub fixed_mclk: c_int,
pub mclk_multiple: i2s_mclk_multiple_t,
pub bits_per_chan: i2s_bits_per_chan_t,
}
Expand description
@brief I2S driver configuration parameters
Fields§
§mode: i2s_mode_t
< I2S work mode
sample_rate: u32
< I2S sample rate
bits_per_sample: i2s_bits_per_sample_t
< I2S sample bits in one channel
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
__bindgen_anon_1: i2s_driver_config_t__bindgen_ty_1
§__bindgen_anon_2: i2s_driver_config_t__bindgen_ty_2
§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. If fixed_mclk set, mclk_multiple won’t take effect
mclk_multiple: i2s_mclk_multiple_t
< The multiple of I2S master clock(MCLK) to sample rate
bits_per_chan: i2s_bits_per_chan_t
< I2S total bits in one channel, only take effect when larger than ‘bits_per_sample’, default ‘0’ means equal to ‘bits_per_sample’
Trait Implementations§
source§impl Clone for i2s_driver_config_t
impl Clone for i2s_driver_config_t
source§fn clone(&self) -> i2s_driver_config_t
fn clone(&self) -> i2s_driver_config_t
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for i2s_driver_config_t
impl Default for i2s_driver_config_t
impl Copy for i2s_driver_config_t
Auto Trait Implementations§
impl Freeze for i2s_driver_config_t
impl RefUnwindSafe for i2s_driver_config_t
impl Send for i2s_driver_config_t
impl Sync for i2s_driver_config_t
impl Unpin for i2s_driver_config_t
impl UnwindSafe for i2s_driver_config_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)