pub struct Disabled<'a, const N: u8> { /* private fields */ }
Expand description
A temporarily disabled LPI2C peripheral.
This handle lets you modify LPI2C settings that require a disabled peripheral.
Implementations§
source§impl<'a, const N: u8> Disabled<'a, N>
impl<'a, const N: u8> Disabled<'a, N>
sourcepub fn set_timings(&mut self, timings: &Timing)
pub fn set_timings(&mut self, timings: &Timing)
Modify LPI2C timing parameters.
This call only affects parameters used in standard, fast, and fast+ modes. There is no support for switching into high-speed mode.
sourcepub fn set_watermark(&mut self, direction: Direction, watermark: u8) -> u8
pub fn set_watermark(&mut self, direction: Direction, watermark: u8) -> u8
Set the watermark level for a given direction.
Returns the watermark level committed to the hardware. This may be different
than the supplied watermark
, since it’s limited by the hardware.
When direction == Direction::Rx
, the receive data flag is set whenever the
number of words in the receive FIFO is greater than watermark
.
When direction == Direction::Tx
, the transmit data flag is set whenever the
the number of words in the transmit FIFO is less than, or equal, to watermark
.