RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 15 fields pub cfg: Reg<CFG_SPEC>, pub stat: Reg<STAT_SPEC>, pub intenset: Reg<INTENSET_SPEC>, pub intenclr: Reg<INTENCLR_SPEC>, pub timeout: Reg<TIMEOUT_SPEC>, pub clkdiv: Reg<CLKDIV_SPEC>, pub intstat: Reg<INTSTAT_SPEC>, pub mstctl: Reg<MSTCTL_SPEC>, pub msttime: Reg<MSTTIME_SPEC>, pub mstdat: Reg<MSTDAT_SPEC>, pub slvctl: Reg<SLVCTL_SPEC>, pub slvdat: Reg<SLVDAT_SPEC>, pub slvadr: [Reg<SLVADR_SPEC>; 4], pub slvqual0: Reg<SLVQUAL0_SPEC>, pub monrxdat: Reg<MONRXDAT_SPEC>, /* private fields */
}
Expand description

Register block

Fields§

§cfg: Reg<CFG_SPEC>

0x00 - Configuration for shared functions.

§stat: Reg<STAT_SPEC>

0x04 - Status register for Master, Slave, and Monitor functions.

§intenset: Reg<INTENSET_SPEC>

0x08 - Interrupt Enable Set and read register.

§intenclr: Reg<INTENCLR_SPEC>

0x0c - Interrupt Enable Clear register.

§timeout: Reg<TIMEOUT_SPEC>

0x10 - Time-out value register.

§clkdiv: Reg<CLKDIV_SPEC>

0x14 - Clock pre-divider for the entire I2C interface. This determines what time increments are used for the MSTTIME register, and controls some timing of the Slave function.

§intstat: Reg<INTSTAT_SPEC>

0x18 - Interrupt Status register for Master, Slave, and Monitor functions.

§mstctl: Reg<MSTCTL_SPEC>

0x20 - Master control register.

§msttime: Reg<MSTTIME_SPEC>

0x24 - Master timing configuration.

§mstdat: Reg<MSTDAT_SPEC>

0x28 - Combined Master receiver and transmitter data register.

§slvctl: Reg<SLVCTL_SPEC>

0x40 - Slave control register.

§slvdat: Reg<SLVDAT_SPEC>

0x44 - Combined Slave receiver and transmitter data register.

§slvadr: [Reg<SLVADR_SPEC>; 4]

0x48..0x58 - Slave address register.

§slvqual0: Reg<SLVQUAL0_SPEC>

0x58 - Slave Qualification for address 0.

§monrxdat: Reg<MONRXDAT_SPEC>

0x80 - Monitor receiver data register.

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.