#[repr(C)]
pub struct I2C_TypeDef { pub CR1: u32, pub CR2: u32, pub OAR1: u32, pub OAR2: u32, pub TIMINGR: u32, pub TIMEOUTR: u32, pub ISR: u32, pub ICR: u32, pub PECR: u32, pub RXDR: u32, pub TXDR: u32, }
Expand description

Inter-integrated Circuit Interface

Fields§

§CR1: u32

I2C Control register 1, Address offset: 0x00

§CR2: u32

I2C Control register 2, Address offset: 0x04

§OAR1: u32

I2C Own address 1 register, Address offset: 0x08

§OAR2: u32

I2C Own address 2 register, Address offset: 0x0C

§TIMINGR: u32

I2C Timing register, Address offset: 0x10

§TIMEOUTR: u32

I2C Timeout register, Address offset: 0x14

§ISR: u32

I2C Interrupt and status register, Address offset: 0x18

§ICR: u32

I2C Interrupt clear register, Address offset: 0x1C

§PECR: u32

I2C PEC register, Address offset: 0x20

§RXDR: u32

I2C Receive data register, Address offset: 0x24

§TXDR: u32

I2C Transmit data register, Address offset: 0x28

Trait Implementations§

source§

impl Clone for I2C_TypeDef

source§

fn clone(&self) -> I2C_TypeDef

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for I2C_TypeDef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for I2C_TypeDef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.