pub struct Nvmc { /* private fields */ }
Implementations§
source§impl Nvmc
impl Nvmc
pub fn new() -> Nvmc
sourcepub fn configure_writeable(&self)
pub fn configure_writeable(&self)
Configure the NVMC to allow writes to flash.
pub fn configure_eraseable(&self)
pub fn erase_uicr(&self)
sourcepub fn is_ready(&self) -> bool
pub fn is_ready(&self) -> bool
Check if there is an ongoing operation with the NVMC peripheral.
pub fn handle_interrupt(&self)
Trait Implementations§
source§impl DeferredCallClient for Nvmc
impl DeferredCallClient for Nvmc
source§impl Flash for Nvmc
impl Flash for Nvmc
source§fn read_page(
&self,
page_number: usize,
buf: &'static mut <Nvmc as Flash>::Page,
) -> Result<(), (ErrorCode, &'static mut <Nvmc as Flash>::Page)>
fn read_page( &self, page_number: usize, buf: &'static mut <Nvmc as Flash>::Page, ) -> Result<(), (ErrorCode, &'static mut <Nvmc as Flash>::Page)>
Read a page of flash into the buffer.
source§impl<C> HasClient<'static, C> for Nvmc
impl<C> HasClient<'static, C> for Nvmc
source§fn set_client(&self, client: &'static C)
fn set_client(&self, client: &'static C)
Set the client for this flash peripheral. The client will be called
when operations complete.
Auto Trait Implementations§
impl !Freeze for Nvmc
impl !RefUnwindSafe for Nvmc
impl !Send for Nvmc
impl !Sync for Nvmc
impl Unpin for Nvmc
impl !UnwindSafe for Nvmc
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