Enum stm32_hal2::crc::BitReversal [−][src]
#[repr(u8)]
pub enum BitReversal {
Byte,
HalfWord,
Word,
}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]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for BitReversal[src]
impl Copy for BitReversal[src]impl PartialEq<BitReversal> for BitReversal[src]
impl PartialEq<BitReversal> for BitReversal[src]fn eq(&self, other: &BitReversal) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl StructuralPartialEq for BitReversal[src]
impl StructuralPartialEq for BitReversal[src]