Trait alt_stm32f30x_hal::i2c::I2cExt[][src]

pub trait I2cExt<I2C, ISCL, ISDA, SCL, SDA> {
    fn i2c<F>(
        self,
        pins: (ISCL, ISDA),
        freq: F,
        clocks: Clocks
    ) -> I2c<I2C, (SCL, SDA)>
    where
        F: Into<Hertz>
; }

I2c extension for I2C

Required Methods

Configures the I2c peripheral to work in master mode Consumes I2c peripheral and pair of (SCL, SDA) pins. Returns I2c.

Implementations on Foreign Types

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PF6<PT, PM>, PF0<PT, PM>, PF6<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]

Implementors