Function rppal::spi::reverse_bits

source ·
pub fn reverse_bits(buffer: &mut [u8])
Expand description

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.