# RegisterBlock in k210_pac::i2s0 - Rust
Register block
Keywords: rust, rustlang, rust-lang, RegisterBlock

# Struct k210_pac::i2s0::RegisterBlock

source · [−]

    #[repr(C)]pub struct RegisterBlock {Show 16 fields
        pub ier: IER,
        pub irer: IRER,
        pub iter: ITER,
        pub cer: CER,
        pub ccr: CCR,
        pub rxffr: RXFFR,
        pub txffr: TXFFR,
        pub channel: [CHANNEL; 4],
        pub rxdma: RXDMA,
        pub rrxdma: RRXDMA,
        pub txdma: TXDMA,
        pub rtxdma: RTXDMA,
        pub i2s_comp_param_2: I2S_COMP_PARAM_2,
        pub i2s_comp_param_1: I2S_COMP_PARAM_1,
        pub i2s_comp_version_1: I2S_COMP_VERSION_1,
        pub i2s_comp_type: I2S_COMP_TYPE,
        /* private fields */
    }

Expand description

Register block

## Fields

`ier: IER`

0x00 - Enable Register

`irer: IRER`

0x04 - Receiver Block Enable Register

`iter: ITER`

0x08 - Transmitter Block Enable Register

`cer: CER`

0x0c - Clock Generation enable

`ccr: CCR`

0x10 - Clock Configuration Register

`rxffr: RXFFR`

0x14 - Receiver Block FIFO Reset Register

`txffr: TXFFR`

0x18 - Transmitter Block FIFO Reset Register

`channel: [CHANNEL; 4]`

0x20 - Channel cluster

`rxdma: RXDMA`

0x1c0 - Receiver Block DMA Register

`rrxdma: RRXDMA`

0x1c4 - Reset Receiver Block DMA Register

`txdma: TXDMA`

0x1c8 - Transmitter Block DMA Register

`rtxdma: RTXDMA`

0x1cc - Reset Transmitter Block DMA Register

`i2s_comp_param_2: I2S_COMP_PARAM_2`

0x1f0 - Component Parameter Register 2

`i2s_comp_param_1: I2S_COMP_PARAM_1`

0x1f4 - Component Parameter Register 1

`i2s_comp_version_1: I2S_COMP_VERSION_1`

0x1f8 - Component Version Register

`i2s_comp_type: I2S_COMP_TYPE`

0x1fc - Component Type Register

## Auto Trait Implementations

### impl !RefUnwindSafe for RegisterBlock

### impl Send for RegisterBlock

### impl !Sync for RegisterBlock

### impl Unpin for RegisterBlock

### impl UnwindSafe for RegisterBlock

## 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,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

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

const: unstable · source

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

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

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

const: unstable · 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>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · 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>,

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

The type returned in the event of a conversion error.

const: unstable · source

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

Performs the conversion.