pub type I2sConfig = Config;
Expand description
I2S channel base configuration.
Aliased Type§
struct I2sConfig { /* private fields */ }
Implementations
Source§impl Config
impl Config
Sourcepub fn role(self, role: Role) -> Self
pub fn role(self, role: Role) -> Self
Set the role of this channel: controller (master) or target (slave).
Sourcepub fn dma_buffer_count(self, dma_buffer_count: u32) -> Self
pub fn dma_buffer_count(self, dma_buffer_count: u32) -> Self
Set the number of DMA buffers to use.
Sourcepub fn frames_per_buffer(self, frames: u32) -> Self
pub fn frames_per_buffer(self, frames: u32) -> Self
Set the number of I2S frames in one DMA buffer.
Sourcepub fn auto_clear(self, auto_clear: bool) -> Self
pub fn auto_clear(self, auto_clear: bool) -> Self
Set if the transmit buffer will be automatically cleared upon sending.