pub struct FlashCtrl<'a> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl DeferredCallClient for FlashCtrl<'_>
impl DeferredCallClient for FlashCtrl<'_>
Source§impl Flash for FlashCtrl<'_>
impl Flash for FlashCtrl<'_>
Source§type Page = Apollo3Page
type Page = Apollo3Page
Type of a single flash page for the given implementation.
Source§fn read_page(
&self,
page_number: usize,
buf: &'static mut Self::Page,
) -> Result<(), (ErrorCode, &'static mut Self::Page)>
fn read_page( &self, page_number: usize, buf: &'static mut Self::Page, ) -> Result<(), (ErrorCode, &'static mut Self::Page)>
Read a page of flash into the buffer.
Source§impl<C: Client<Self>> HasClient<'static, C> for FlashCtrl<'_>
impl<C: Client<Self>> HasClient<'static, C> for FlashCtrl<'_>
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<'a> !Freeze for FlashCtrl<'a>
impl<'a> !RefUnwindSafe for FlashCtrl<'a>
impl<'a> !Send for FlashCtrl<'a>
impl<'a> !Sync for FlashCtrl<'a>
impl<'a> Unpin for FlashCtrl<'a>
impl<'a> !UnwindSafe for FlashCtrl<'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