Function rppal::spi::reverse_bits[][src]

pub fn reverse_bits(buffer: &mut [u8])

Reverses the bits of each byte in buffer.

Use this function to switch the bit order between most-significant bit first and least-significant bit first.