Struct stm32h7xx_hal::device::I2C4 [−][src]
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.
pub fn deref(&self) -> &<I2C4 as Deref>::Target
[src]
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]
self,
pins: PINS,
frequency: F,
prec: I2c4,
clocks: &CoreClocks
) -> I2c<I2C4> where
PINS: Pins<I2C4>,
F: Into<Hertz>,
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]
self,
frequency: F,
prec: I2c4,
clocks: &CoreClocks
) -> I2c<I2C4> where
F: Into<Hertz>,
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]
fn set_open_drain(self) -> Self
[src]
impl PinScl<I2C4> for PF14<Alternate<AF4>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinScl<I2C4> for PH11<Alternate<AF4>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinScl<I2C4> for PB6<Alternate<AF6>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinScl<I2C4> for PB8<Alternate<AF6>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinSda<I2C4> for PB7<Alternate<AF6>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinSda<I2C4> for PB9<Alternate<AF6>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinSda<I2C4> for PD13<Alternate<AF4>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinSda<I2C4> for PF15<Alternate<AF4>>
[src]
fn set_open_drain(self) -> Self
[src]
impl PinSda<I2C4> for PH12<Alternate<AF4>>
[src]
fn set_open_drain(self) -> Self
[src]
impl Send for I2C4
[src]
impl TargetAddress<MemoryToPeripheral> for I2C4
[src]
fn address(&self) -> usize
[src]
type MemSize = u8
Memory size of the target address
const REQUEST_LINE: Option<u8>
[src]
const TRBUFF: bool
[src]
impl TargetAddress<PeripheralToMemory> for I2C4
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,