Struct lpc55_hal::drivers::i2c::I2cMaster[][src]

pub struct I2cMaster<PIO1, PIO2, I2C, PINS> where
    PIO1: PinId,
    PIO2: PinId,
    I2C: I2c,
    PINS: I2cPins<PIO1, PIO2, I2C>, 
{ /* fields omitted */ }

I2C peripheral operating in master mode

Implementations

impl<PIO1, PIO2, I2C, PINS> I2cMaster<PIO1, PIO2, I2C, PINS> where
    PIO1: PinId,
    PIO2: PinId,
    I2C: I2c,
    PINS: I2cPins<PIO1, PIO2, I2C>, 
[src]

pub fn new<Speed: Into<Hertz>>(i2c: I2C, pins: PINS, speed: Speed) -> Self[src]

Weird crashes happen when running system at 150Mhz PLL. Suggested use: 100khz or 400khz

pub fn release(self) -> (I2C, PINS)[src]

Trait Implementations

impl<PIO1, PIO2, I2C, PINS> Read for I2cMaster<PIO1, PIO2, I2C, PINS> where
    PIO1: PinId,
    PIO2: PinId,
    I2C: I2c,
    PINS: I2cPins<PIO1, PIO2, I2C>, 
[src]

type Error = Error

Error type

impl<PIO1, PIO2, I2C, PINS> Write for I2cMaster<PIO1, PIO2, I2C, PINS> where
    PIO1: PinId,
    PIO2: PinId,
    I2C: I2c,
    PINS: I2cPins<PIO1, PIO2, I2C>, 
[src]

type Error = Error

Error type

impl<PIO1, PIO2, I2C, PINS> WriteRead for I2cMaster<PIO1, PIO2, I2C, PINS> where
    PIO1: PinId,
    PIO2: PinId,
    I2C: I2c,
    PINS: I2cPins<PIO1, PIO2, I2C>, 
[src]

type Error = Error

Error type

Auto Trait Implementations

impl<PIO1, PIO2, I2C, PINS> Send for I2cMaster<PIO1, PIO2, I2C, PINS> where
    I2C: Send,
    PINS: Send,
    PIO1: Send,
    PIO2: Send

impl<PIO1, PIO2, I2C, PINS> Sync for I2cMaster<PIO1, PIO2, I2C, PINS> where
    I2C: Sync,
    PINS: Sync,
    PIO1: Sync,
    PIO2: Sync

impl<PIO1, PIO2, I2C, PINS> Unpin for I2cMaster<PIO1, PIO2, I2C, PINS> where
    I2C: Unpin,
    PINS: Unpin,
    PIO1: Unpin,
    PIO2: Unpin

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.