Enum stm32_hal2::crc::BitReversal [−][src]
#[repr(u8)]
pub enum BitReversal {
Byte,
HalfWord,
Word,
}Expand description
How to reverse the input bits.
ST refers to this as both ‘reversal’ and ‘inversion’. If a CRC calls for
‘reflection’ it most likely wants BitReversal::Byte and output reversal
enabled.
Variants
Each input byte has its bits reversed. 0x1A2B3C4D becomes 0x58D43CB2.
Bits reversed by half-word. 0x1A2B3C4D becomes 0xD458B23C.
Bits reversed by word. 0x1A2B3C4D becomes 0xB23CD458.