ReadBits

Trait ReadBits 

Source
pub trait ReadBits<'a> {
    type ReadBitsDone: 'a + Future<Output = u32>;

    // Required method
    fn read_bits(&'a mut self, num_bits: usize) -> Self::ReadBitsDone;
}
Expand description

Defines how the helper RAII variable returned by Read::start_reading() should behave.

Notice the timing requirement from ST7735’s datasheet. Most important ones:

  • SCK low duration and high durations are at least 60ns long.
  • SCK period is at least 150ns long.

Required Associated Types§

Source

type ReadBitsDone: 'a + Future<Output = u32>

Required Methods§

Source

fn read_bits(&'a mut self, num_bits: usize) -> Self::ReadBitsDone

Implementors§