#[repr(C)]
pub struct RegisterBlock {
Show 15 fields pub cfg: CFG, pub stat: STAT, pub intenset: INTENSET, pub intenclr: INTENCLR, pub timeout: TIMEOUT, pub clkdiv: CLKDIV, pub intstat: INTSTAT, pub mstctl: MSTCTL, pub msttime: MSTTIME, pub mstdat: MSTDAT, pub slvctl: SLVCTL, pub slvdat: SLVDAT, pub slvadr: [SLVADR; 4], pub slvqual0: SLVQUAL0, pub monrxdat: MONRXDAT, /* private fields */
}
Expand description

Register block

Fields§

§cfg: CFG

0x00 - Configuration for shared functions.

§stat: STAT

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

§intenset: INTENSET

0x08 - Interrupt Enable Set and read register.

§intenclr: INTENCLR

0x0c - Interrupt Enable Clear register.

§timeout: TIMEOUT

0x10 - Time-out value register.

§clkdiv: CLKDIV

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: INTSTAT

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

§mstctl: MSTCTL

0x20 - Master control register.

§msttime: MSTTIME

0x24 - Master timing configuration.

§mstdat: MSTDAT

0x28 - Combined Master receiver and transmitter data register.

§slvctl: SLVCTL

0x40 - Slave control register.

§slvdat: SLVDAT

0x44 - Combined Slave receiver and transmitter data register.

§slvadr: [SLVADR; 4]

0x48..0x58 - Slave address register.

§slvqual0: SLVQUAL0

0x58 - Slave Qualification for address 0.

§monrxdat: MONRXDAT

0x80 - Monitor receiver data register.

Auto Trait Implementations§

Blanket Implementations§

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

Returns the argument unchanged.

Calls U::from(self).

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

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.