Struct embassy_stm32::crc::Crc
source · pub struct Crc<'d> { /* private fields */ }
Expand description
CRC driver.
Implementations§
source§impl<'d> Crc<'d>
impl<'d> Crc<'d>
sourcepub fn new(peripheral: impl Peripheral<P = CRC> + 'd) -> Self
pub fn new(peripheral: impl Peripheral<P = CRC> + 'd) -> Self
Instantiates the CRC32 peripheral and initializes it to default values.
sourcepub fn feed_word(&mut self, word: u32) -> u32
pub fn feed_word(&mut self, word: u32) -> u32
Feeds a word to the peripheral and returns the current CRC value
sourcepub fn feed_words(&mut self, words: &[u32]) -> u32
pub fn feed_words(&mut self, words: &[u32]) -> u32
Feed a slice of words to the peripheral and return the result.
Auto Trait Implementations§
impl<'d> Freeze for Crc<'d>
impl<'d> RefUnwindSafe for Crc<'d>
impl<'d> Send for Crc<'d>
impl<'d> Sync for Crc<'d>
impl<'d> Unpin for Crc<'d>
impl<'d> !UnwindSafe for Crc<'d>
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