pub struct I2cMaster<PIO1, PIO2, I2C, PINS> where
PIO1: PinId,
PIO2: PinId,
I2C: I2c,
PINS: I2cPins<PIO1, PIO2, I2C>, { /* fields omitted */ }
Expand description
I2C peripheral operating in master mode
impl<PIO1, PIO2, I2C, PINS> I2cMaster<PIO1, PIO2, I2C, PINS> where
PIO1: PinId,
PIO2: PinId,
I2C: I2c,
PINS: I2cPins<PIO1, PIO2, I2C>,
[src]
Weird crashes happen when running system at 150Mhz PLL.
Suggested use: 100khz or 400khz
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]
Reads enough bytes from slave with address
to fill buffer
Read more
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]
Sends bytes to slave with address addr
Read more
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]
Sends bytes to slave with address addr
and then reads enough bytes to fill buffer
in a
single transaction Read more
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,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.