Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 21 fields pub cfg1: CFG1, pub cfg2: CFG2, pub stat: STAT, pub div: DIV, pub secchannel0: SECCHANNEL, pub secchannel1: SECCHANNEL, pub secchannel2: SECCHANNEL, pub fifocfg: FIFOCFG, pub fifostat: FIFOSTAT, pub fifotrig: FIFOTRIG, pub fifointenset: FIFOINTENSET, pub fifointenclr: FIFOINTENCLR, pub fifointstat: FIFOINTSTAT, pub fifowr: FIFOWR, pub fifowr48h: FIFOWR48H, pub fiford: FIFORD, pub fiford48h: FIFORD48H, pub fifordnopop: FIFORDNOPOP, pub fiford48hnopop: FIFORD48HNOPOP, pub fifosize: FIFOSIZE, pub id: ID, /* private fields */
}
Expand description

Register block

Fields§

§cfg1: CFG1

0xc00 - Configuration register 1 for the primary channel pair.

§cfg2: CFG2

0xc04 - Configuration register 2 for the primary channel pair.

§stat: STAT

0xc08 - Status register for the primary channel pair.

§div: DIV

0xc1c - Clock divider, used by all channel pairs.

§secchannel0: SECCHANNEL

0xc20..0xc2c - no description available.

§secchannel1: SECCHANNEL

0xc40..0xc4c - no description available.

§secchannel2: SECCHANNEL

0xc60..0xc6c - no description available.

§fifocfg: FIFOCFG

0xe00 - FIFO configuration and enable register.

§fifostat: FIFOSTAT

0xe04 - FIFO status register.

§fifotrig: FIFOTRIG

0xe08 - FIFO trigger settings for interrupt and DMA request.

§fifointenset: FIFOINTENSET

0xe10 - FIFO interrupt enable set (enable) and read register.

§fifointenclr: FIFOINTENCLR

0xe14 - FIFO interrupt enable clear (disable) and read register.

§fifointstat: FIFOINTSTAT

0xe18 - FIFO interrupt status register.

§fifowr: FIFOWR

0xe20 - FIFO write data.

§fifowr48h: FIFOWR48H

0xe24 - FIFO write data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA.

§fiford: FIFORD

0xe30 - FIFO read data.

§fiford48h: FIFORD48H

0xe34 - FIFO read data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA.

§fifordnopop: FIFORDNOPOP

0xe40 - FIFO data read with no FIFO pop.

§fiford48hnopop: FIFORD48HNOPOP

0xe44 - FIFO data read for upper data bits with no FIFO pop. May only be used if the I2S is configured for 2x 24-bit data and not using DMA.

§fifosize: FIFOSIZE

0xe48 - FIFO size register.

§id: ID

0xffc - I2S Module identification.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.