Enum kernel::hil::crc::CrcAlgorithm
source · pub enum CrcAlgorithm {
Crc32,
Crc32C,
Crc16CCITT,
}
Expand description
CRC algorithms
In all cases, input bytes are bit-reversed (i.e., consumed from LSB to MSB.)
Algorithms prefixed with Sam4L
are native to that chip and thus require
no software post-processing on platforms using it.
Variants§
Crc32
Polynomial 0x04C11DB7, output reversed then inverted (“CRC-32”)
Crc32C
Polynomial 0x1EDC6F41, output reversed then inverted (“CRC-32C” / “Castagnoli”)
Crc16CCITT
Polynomial 0x1021, no output post-processing (“CRC-16-CCITT”)
Trait Implementations§
source§impl Clone for CrcAlgorithm
impl Clone for CrcAlgorithm
source§fn clone(&self) -> CrcAlgorithm
fn clone(&self) -> CrcAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for CrcAlgorithm
Auto Trait Implementations§
impl Freeze for CrcAlgorithm
impl RefUnwindSafe for CrcAlgorithm
impl Send for CrcAlgorithm
impl Sync for CrcAlgorithm
impl Unpin for CrcAlgorithm
impl UnwindSafe for CrcAlgorithm
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)