pub struct CONFIG {
    pub mode: Reg<MODE_SPEC>,
    pub rxen: Reg<RXEN_SPEC>,
    pub txen: Reg<TXEN_SPEC>,
    pub mcken: Reg<MCKEN_SPEC>,
    pub mckfreq: Reg<MCKFREQ_SPEC>,
    pub ratio: Reg<RATIO_SPEC>,
    pub swidth: Reg<SWIDTH_SPEC>,
    pub align: Reg<ALIGN_SPEC>,
    pub format: Reg<FORMAT_SPEC>,
    pub channels: Reg<CHANNELS_SPEC>,
}
Expand description

Register block

Fields

mode: Reg<MODE_SPEC>

0x00 - I2S mode.

rxen: Reg<RXEN_SPEC>

0x04 - Reception (RX) enable.

txen: Reg<TXEN_SPEC>

0x08 - Transmission (TX) enable.

mcken: Reg<MCKEN_SPEC>

0x0c - Master clock generator enable.

mckfreq: Reg<MCKFREQ_SPEC>

0x10 - Master clock generator frequency.

ratio: Reg<RATIO_SPEC>

0x14 - MCK / LRCK ratio.

swidth: Reg<SWIDTH_SPEC>

0x18 - Sample width.

align: Reg<ALIGN_SPEC>

0x1c - Alignment of sample within a frame.

format: Reg<FORMAT_SPEC>

0x20 - Frame format.

channels: Reg<CHANNELS_SPEC>

0x24 - Enable channels.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Should always be Self
Casts the value.
Casts the value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.