nrf52840::nvmc

Struct Nvmc

Source
pub struct Nvmc { /* private fields */ }

Implementations§

Source§

impl Nvmc

Source

pub fn new() -> Nvmc

Source

pub fn configure_writeable(&self)

Configure the NVMC to allow writes to flash.

Source

pub fn configure_eraseable(&self)

Source

pub fn erase_uicr(&self)

Source

pub fn is_ready(&self) -> bool

Check if there is an ongoing operation with the NVMC peripheral.

Source

pub fn handle_interrupt(&self)

Trait Implementations§

Source§

impl DeferredCallClient for Nvmc

Source§

fn handle_deferred_call(&self)

Software interrupt function that is called when the deferred call is triggered.
Source§

fn register(&'static self)

Source§

impl Flash for Nvmc

Source§

type Page = NrfPage

Type of a single flash page for the given implementation.
Source§

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§

fn write_page( &self, page_number: usize, buf: &'static mut <Nvmc as Flash>::Page, ) -> Result<(), (ErrorCode, &'static mut <Nvmc as Flash>::Page)>

Write a page of flash from the buffer.
Source§

fn erase_page(&self, page_number: usize) -> Result<(), ErrorCode>

Erase a page of flash by setting every byte to 0xFF.
Source§

impl<C> HasClient<'static, C> for Nvmc
where C: Client<Nvmc>,

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.