Enum stm32_hal2::crc::PolynomialError
source · pub enum PolynomialError {
EvenPoly,
TooLarge,
}
Expand description
Errors generated when trying to create invalid polynomials.
Variants§
EvenPoly
Tried to create an even polynomial. The hardware CRC unit only supports odd polynomials.
TooLarge
Tried to create a 7-bit polynomial with an 8-bit number
(greater than 0x7F
).
Trait Implementations§
source§impl Clone for PolynomialError
impl Clone for PolynomialError
source§fn clone(&self) -> PolynomialError
fn clone(&self) -> PolynomialError
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 moresource§impl Debug for PolynomialError
impl Debug for PolynomialError
source§impl Display for PolynomialError
impl Display for PolynomialError
source§impl PartialEq<PolynomialError> for PolynomialError
impl PartialEq<PolynomialError> for PolynomialError
source§fn eq(&self, other: &PolynomialError) -> bool
fn eq(&self, other: &PolynomialError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.