[−][src]Trait alt_stm32f30x_hal::i2c::I2cExt
I2c extension for I2C
Required methods
fn i2c<F>(
self,
pins: (ISCL, ISDA),
freq: F,
clocks: Clocks
) -> I2c<I2C, (SCL, SDA)> where
F: Into<Hertz<u32>>,
self,
pins: (ISCL, ISDA),
freq: F,
clocks: Clocks
) -> I2c<I2C, (SCL, SDA)> where
F: Into<Hertz<u32>>,
Configures the I2c peripheral to work in master mode
Consumes I2c peripheral and pair of (SCL, SDA) pins.
Returns I2c
.
Implementors
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PA15<PT, PM>, PA14<PT, PM>, PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PA15<PT, PM>, PA14<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PA15<PT, PM>, PA14<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PA15<PT, PM>, PB7<PT, PM>, PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PA15<PT, PM>, PB7<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PA15<PT, PM>, PB7<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PA15<PT, PM>, PB9<PT, PM>, PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PA15<PT, PM>, PB9<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PA15<PT, PM>, PB9<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PA15<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PB6<PT, PM>, PA14<PT, PM>, PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PB6<PT, PM>, PA14<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PB6<PT, PM>, PA14<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PB6<PT, PM>, PB7<PT, PM>, PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PB6<PT, PM>, PB7<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PB6<PT, PM>, PB7<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PB6<PT, PM>, PB9<PT, PM>, PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PB6<PT, PM>, PB9<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PB6<PT, PM>, PB9<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB6<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PB8<PT, PM>, PA14<PT, PM>, PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PB8<PT, PM>, PA14<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PB8<PT, PM>, PA14<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PA14<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PB8<PT, PM>, PB7<PT, PM>, PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PB8<PT, PM>, PB7<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PB8<PT, PM>, PB7<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PB7<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C1, PB8<PT, PM>, PB9<PT, PM>, PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C1
[src]
fn i2c<F>(
self,
pins: (PB8<PT, PM>, PB9<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PB8<PT, PM>, PB9<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C1, (PB8<PT, AltFn<AF4, PushPull, HighSpeed>>, PB9<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PA9<PT, PM>, PA10<PT, PM>, PA9<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]
fn i2c<F>(
self,
pins: (PA9<PT, PM>, PA10<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PA9<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PA9<PT, PM>, PA10<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PA9<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PA9<PT, PM>, PF0<PT, PM>, PA9<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]
fn i2c<F>(
self,
pins: (PA9<PT, PM>, PF0<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PA9<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PA9<PT, PM>, PF0<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PA9<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PF1<PT, PM>, PA10<PT, PM>, PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]
fn i2c<F>(
self,
pins: (PF1<PT, PM>, PA10<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PF1<PT, PM>, PA10<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PF1<PT, PM>, PF0<PT, PM>, PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]
fn i2c<F>(
self,
pins: (PF1<PT, PM>, PF0<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PF1<PT, PM>, PF0<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PF6<PT, PM>, PA10<PT, PM>, PF6<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]
fn i2c<F>(
self,
pins: (PF6<PT, PM>, PA10<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PF6<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,
[src]
self,
pins: (PF6<PT, PM>, PA10<PT, PM>),
freq: F,
clocks: Clocks
) -> I2c<I2C2, (PF6<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>)> where
F: Into<Hertz<u32>>,