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
.
Trait Implementations
impl Clone for BitReversal
[src]
impl Clone for BitReversal
[src]fn clone(&self) -> BitReversal
[src]
fn clone(&self) -> BitReversal
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for BitReversal
[src]
impl Debug for BitReversal
[src]impl PartialEq<BitReversal> for BitReversal
[src]
impl PartialEq<BitReversal> for BitReversal
[src]