Struct stm32h7xx_hal::device::I2C4[][src]

pub struct I2C4 { /* fields omitted */ }

I2C

Implementations

impl I2C4[src]

pub const fn ptr() -> *const RegisterBlock[src]

Returns a pointer to the register block

Trait Implementations

impl Deref for I2C4[src]

type Target = RegisterBlock

The resulting type after dereferencing.

impl I2cExt<I2C4> for I2C4[src]

type Rec = I2c4

fn i2c<PINS, F>(
    self,
    pins: PINS,
    frequency: F,
    prec: I2c4,
    clocks: &CoreClocks
) -> I2c<I2C4> where
    PINS: Pins<I2C4>,
    F: Into<Hertz>, 
[src]

Create and initialise a new I2C peripheral.

A tuple of pins (scl, sda) for this I2C peripheral should be passed as pins. This function sets each pin to open-drain mode.

The frequency of the I2C bus clock is specified by frequency.

Panics

Panics if the ratio between frequency and the i2c_ker_ck is out of bounds. The acceptable range is [4, 8192].

Panics if the frequency is too fast. The maximum is 1MHz.

fn i2c_unchecked<F>(
    self,
    frequency: F,
    prec: I2c4,
    clocks: &CoreClocks
) -> I2c<I2C4> where
    F: Into<Hertz>, 
[src]

Create and initialise a new I2C peripheral. No pin types are required.

The frequency of the I2C bus clock is specified by frequency.

Panics

Panics if the ratio between frequency and the i2c_ker_ck is out of bounds. The acceptable range is [4, 8192].

Panics if the frequency is too fast. The maximum is 1MHz.

impl PinScl<I2C4> for PD12<Alternate<AF4>>[src]

impl PinScl<I2C4> for PF14<Alternate<AF4>>[src]

impl PinScl<I2C4> for PH11<Alternate<AF4>>[src]

impl PinScl<I2C4> for PB6<Alternate<AF6>>[src]

impl PinScl<I2C4> for PB8<Alternate<AF6>>[src]

impl PinSda<I2C4> for PB7<Alternate<AF6>>[src]

impl PinSda<I2C4> for PB9<Alternate<AF6>>[src]

impl PinSda<I2C4> for PD13<Alternate<AF4>>[src]

impl PinSda<I2C4> for PF15<Alternate<AF4>>[src]

impl PinSda<I2C4> for PH12<Alternate<AF4>>[src]

impl Send for I2C4[src]

impl TargetAddress<MemoryToPeripheral> for I2C4[src]

type MemSize = u8

Memory size of the target address

impl TargetAddress<PeripheralToMemory> for I2C4[src]

type MemSize = u8

Memory size of the target address

Auto Trait Implementations

impl !Sync for I2C4

impl Unpin for I2C4

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.