#[repr(C)]
pub struct RegisterBlock { pub i2c_cr: I2C_CR, pub i2c_ier: I2C_IER, pub i2c_addr: I2C_ADDR, pub i2c_sr: I2C_SR, pub i2c_shpgr: I2C_SHPGR, pub i2c_slpgr: I2C_SLPGR, pub i2c_dr: I2C_DR, pub i2c_tar: I2C_TAR, pub i2c_addmr: I2C_ADDMR, pub i2c_addsr: I2C_ADDSR, pub i2c_tout: I2C_TOUT, }
Expand description

Register block

Fields

i2c_cr: I2C_CR

0x00 - I2C_CR

i2c_ier: I2C_IER

0x04 - I2C_IER

i2c_addr: I2C_ADDR

0x08 - I2C_ADDR

i2c_sr: I2C_SR

0x0c - I2C_SR

i2c_shpgr: I2C_SHPGR

0x10 - I2C_SHPGR

i2c_slpgr: I2C_SLPGR

0x14 - I2C_SLPGR

i2c_dr: I2C_DR

0x18 - I2C_DR

i2c_tar: I2C_TAR

0x1c - I2C_TAR

i2c_addmr: I2C_ADDMR

0x20 - I2C_ADDMR

i2c_addsr: I2C_ADDSR

0x24 - I2C_ADDSR

i2c_tout: I2C_TOUT

0x28 - I2C_TOUT

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.

Should always be Self
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.