Enum rp2040_pac::dma::sniff_ctrl::CALC_A
source · #[repr(u8)]pub enum CALC_A {
CRC32 = 0,
CRC32R = 1,
CRC16 = 2,
CRC16R = 3,
EVEN = 14,
SUM = 15,
}
Expand description
Value on reset: 0
Variants§
CRC32 = 0
0: Calculate a CRC-32 (IEEE802.3 polynomial)
CRC32R = 1
1: Calculate a CRC-32 (IEEE802.3 polynomial) with bit reversed data
CRC16 = 2
2: Calculate a CRC-16-CCITT
CRC16R = 3
3: Calculate a CRC-16-CCITT with bit reversed data
EVEN = 14
14: XOR reduction over all data. == 1 if the total 1 population count is odd.
SUM = 15
15: Calculate a simple 32-bit checksum (addition with a 32 bit accumulator)
Trait Implementations§
impl Copy for CALC_A
impl Eq for CALC_A
impl StructuralPartialEq for CALC_A
Auto Trait Implementations§
impl Freeze for CALC_A
impl RefUnwindSafe for CALC_A
impl Send for CALC_A
impl Sync for CALC_A
impl Unpin for CALC_A
impl UnwindSafe for CALC_A
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)