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