Struct stm32g0xx_hal::crc::Config [−][src]
CRC configuration structure, uses builder pattern.
Implementations
impl Config
[src]
pub fn initial_value(self, init: u32) -> Self
[src]
Sets the initial value of the CRC.
pub fn polynomial(self, polynomial: Polynomial) -> Self
[src]
Sets the polynomial of the CRC.
pub fn input_bit_reversal(self, rev: Option<BitReversal>) -> Self
[src]
Enables bit reversal of the inputs.
pub fn output_bit_reversal(self, rev: bool) -> Self
[src]
Enables bit reversal of the outputs.
pub fn freeze(self) -> Crc
[src]
Freezes the peripheral, making the configuration take effect.
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,