pub struct Mce<'d, T: Instance> { /* private fields */ }Expand description
Memory Cipher Engine driver.
Implementations§
Source§impl<'d, T: Instance> Mce<'d, T>
impl<'d, T: Instance> Mce<'d, T>
Sourcepub fn new(
peri: Peri<'d, T>,
_irq: impl Binding<T::GlobalInterrupt, GlobalInterruptHandler<T>> + 'd,
) -> Self
pub fn new( peri: Peri<'d, T>, _irq: impl Binding<T::GlobalInterrupt, GlobalInterruptHandler<T>> + 'd, ) -> Self
Create a new MCE driver and enable its bus clock.
Sourcepub fn configure_region(region: Region, config: RegionConfig)
pub fn configure_region(region: Region, config: RegionConfig)
Configure (but do not enable) a memory region.
config.start and config.end must be aligned to the 4KiB block size.
Sourcepub fn set_region_enabled(region: Region, enabled: bool)
pub fn set_region_enabled(region: Region, enabled: bool)
Enable or disable a configured region.
Sourcepub fn clear_illegal_access_flags()
pub fn clear_illegal_access_flags()
Clear illegal-access status flags.
Auto Trait Implementations§
impl<'d, T> Freeze for Mce<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for Mce<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Mce<'d, T>where
T: Send,
impl<'d, T> Sync for Mce<'d, T>where
T: Sync,
impl<'d, T> Unpin for Mce<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Mce<'d, T>
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