[−][src]Struct lpc55_hal::drivers::i2c::I2cMaster
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][−]
PIO1: PinId,
PIO2: PinId,
I2C: I2c,
PINS: I2cPins<PIO1, PIO2, I2C>,
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][+]
PIO1: PinId,
PIO2: PinId,
I2C: I2c,
PINS: I2cPins<PIO1, PIO2, I2C>,
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][+]
PIO1: PinId,
PIO2: PinId,
I2C: I2c,
PINS: I2cPins<PIO1, PIO2, I2C>,
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][+]
PIO1: PinId,
PIO2: PinId,
I2C: I2c,
PINS: I2cPins<PIO1, PIO2, I2C>,
Auto Trait Implementations
impl<PIO1, PIO2, I2C, PINS> Send for I2cMaster<PIO1, PIO2, I2C, PINS> where
I2C: Send,
PINS: Send,
PIO1: Send,
PIO2: Send,
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,
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,
I2C: Unpin,
PINS: Unpin,
PIO1: Unpin,
PIO2: Unpin,
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,
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[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,