pub struct FM25CL<'a, S: SpiMasterDevice<'a>> { /* private fields */ }Implementations§
Source§impl<'a, S: SpiMasterDevice<'a>> FM25CL<'a, S>
impl<'a, S: SpiMasterDevice<'a>> FM25CL<'a, S>
pub fn new( spi: &'a S, txbuffer: &'static mut [u8], rxbuffer: &'static mut [u8], ) -> FM25CL<'a, S>
pub fn set_client<C: FM25CLClient>(&self, client: &'a C)
pub fn write( &self, address: u16, buffer: &'static mut [u8], len: u16, ) -> Result<(), (ErrorCode, &'static mut [u8])>
pub fn read( &self, address: u16, buffer: &'static mut [u8], len: u16, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Trait Implementations§
Source§impl<'a, S: SpiMasterDevice<'a>> FM25CLCustom for FM25CL<'a, S>
impl<'a, S: SpiMasterDevice<'a>> FM25CLCustom for FM25CL<'a, S>
fn read_status(&self) -> Result<(), ErrorCode>
Source§impl<'a, S: SpiMasterDevice<'a>> NonvolatileStorage<'a> for FM25CL<'a, S>
Implement the generic NonvolatileStorage interface common to chips that
provide nonvolatile memory.
impl<'a, S: SpiMasterDevice<'a>> NonvolatileStorage<'a> for FM25CL<'a, S>
Implement the generic NonvolatileStorage interface common to chips that
provide nonvolatile memory.
fn set_client(&self, client: &'a dyn NonvolatileStorageClient)
Source§fn read(
&self,
buffer: &'static mut [u8],
address: usize,
length: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn read( &self, buffer: &'static mut [u8], address: usize, length: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Read
length bytes starting at address address in to the provided
buffer. The buffer must be at least length bytes long. The address
must be in the address space of the physical storage. Read moreSource§fn write(
&self,
buffer: &'static mut [u8],
address: usize,
length: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn write( &self, buffer: &'static mut [u8], address: usize, length: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Write
length bytes starting at address address from the provided
buffer. The buffer must be at least length bytes long. This address
must be in the address space of the physical storage. Read moreAuto Trait Implementations§
impl<'a, S> !Freeze for FM25CL<'a, S>
impl<'a, S> !RefUnwindSafe for FM25CL<'a, S>
impl<'a, S> !Send for FM25CL<'a, S>
impl<'a, S> !Sync for FM25CL<'a, S>
impl<'a, S> !UnwindSafe for FM25CL<'a, S>
impl<'a, S> Unpin for FM25CL<'a, S>
impl<'a, S> UnsafeUnpin for FM25CL<'a, S>where
&'a S: UnsafeUnpin,
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