Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 22 fields pub iccr1: ICCR1, pub iccr2: ICCR2, pub icmr1: ICMR1, pub icmr2: ICMR2, pub icmr3: ICMR3, pub icfer: ICFER, pub icser: ICSER, pub icier: ICIER, pub icsr1: ICSR1, pub icsr2: ICSR2, pub sarl0: SARL, pub saru0: SARU, pub sarl1: SARL, pub saru1: SARU, pub sarl2: SARL, pub saru2: SARU, pub icbrl: ICBRL, pub icbrh: ICBRH, pub icdrt: ICDRT, pub icdrr: ICDRR, pub icwur: ICWUR, pub icwur2: ICWUR2, /* private fields */
}
Expand description

Register block

Fields§

§iccr1: ICCR1

0x00 - I2C Bus Control Register 1

§iccr2: ICCR2

0x01 - I2C Bus Control Register 2

§icmr1: ICMR1

0x02 - I2C Bus Mode Register 1

§icmr2: ICMR2

0x03 - I2C Bus Mode Register 2

§icmr3: ICMR3

0x04 - I2C Bus Mode Register 3

§icfer: ICFER

0x05 - I2C Bus Function Enable Register

§icser: ICSER

0x06 - I2C Bus Status Enable Register

§icier: ICIER

0x07 - I2C Bus Interrupt Enable Register

§icsr1: ICSR1

0x08 - I2C Bus Status Register 1

§icsr2: ICSR2

0x09 - I2C Bus Status Register 2

§sarl0: SARL

0x0a - Slave Address Register L%s

§saru0: SARU

0x0b - Slave Address Register U%s

§sarl1: SARL

0x0c - Slave Address Register L%s

§saru1: SARU

0x0d - Slave Address Register U%s

§sarl2: SARL

0x0e - Slave Address Register L%s

§saru2: SARU

0x0f - Slave Address Register U%s

§icbrl: ICBRL

0x10 - I2C Bus Bit Rate Low-Level Register

§icbrh: ICBRH

0x11 - I2C Bus Bit Rate High-Level Register

§icdrt: ICDRT

0x12 - I2C Bus Transmit Data Register

§icdrr: ICDRR

0x13 - I2C Bus Receive Data Register

§icwur: ICWUR

0x16 - I2C Bus Wake Up Unit Register

§icwur2: ICWUR2

0x17 - Reserved

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.