pub struct Crccu<'a> { /* private fields */ }
Expand description
State for managing the CRCCU
Implementations§
Source§impl Crccu<'_>
impl Crccu<'_>
pub fn new(base_addr: StaticRef<CrccuRegisters>) -> Self
Sourcepub fn handle_interrupt(&self)
pub fn handle_interrupt(&self)
Handle an interrupt from the CRCCU
Trait Implementations§
Source§impl<'a> Crc<'a> for Crccu<'a>
impl<'a> Crc<'a> for Crccu<'a>
Source§fn set_client(&self, client: &'a dyn Client)
fn set_client(&self, client: &'a dyn Client)
Set a client to receive results from the CRCCU
Source§fn algorithm_supported(&self, algorithm: CrcAlgorithm) -> bool
fn algorithm_supported(&self, algorithm: CrcAlgorithm) -> bool
Check whether a given CRC algorithm is supported by a CRC
implementation. Read more
Source§fn set_algorithm(&self, algorithm: CrcAlgorithm) -> Result<(), ErrorCode>
fn set_algorithm(&self, algorithm: CrcAlgorithm) -> Result<(), ErrorCode>
Set the CRC algorithm to use. Read more
Source§impl DeferredCallClient for Crccu<'_>
impl DeferredCallClient for Crccu<'_>
Auto Trait Implementations§
impl<'a> !Freeze for Crccu<'a>
impl<'a> !RefUnwindSafe for Crccu<'a>
impl<'a> !Send for Crccu<'a>
impl<'a> !Sync for Crccu<'a>
impl<'a> Unpin for Crccu<'a>
impl<'a> !UnwindSafe for Crccu<'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