esp_idf_hal::i2s

Type Alias I2sConfig

Source
pub type I2sConfig = Config;
Expand description

I2S channel base configuration.

Aliased Type§

struct I2sConfig { /* private fields */ }

Implementations

Source§

impl Config

Source

pub const fn new() -> Self

Create a new Config with the default settings.

Source

pub fn role(self, role: Role) -> Self

Set the role of this channel: controller (master) or target (slave).

Source

pub fn dma_buffer_count(self, dma_buffer_count: u32) -> Self

Set the number of DMA buffers to use.

Source

pub fn frames_per_buffer(self, frames: u32) -> Self

Set the number of I2S frames in one DMA buffer.

Source

pub fn auto_clear(self, auto_clear: bool) -> Self

Set if the transmit buffer will be automatically cleared upon sending.

Trait Implementations

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Config

Source§

fn eq(&self, other: &Config) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Config

Source§

impl Eq for Config

Source§

impl StructuralPartialEq for Config