Struct capsules_extra::fm25cl::FM25CL
source · 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>
pub fn read( &self, address: u16, buffer: &'static mut [u8], len: u16, ) -> Result<(), ErrorCode>
Trait Implementations§
source§impl<'a, S: SpiMasterDevice<'a>> FM25CLCustom for FM25CL<'a, S>
impl<'a, S: SpiMasterDevice<'a>> FM25CLCustom for FM25CL<'a, S>
source§impl<'a, S: SpiMasterDevice<'a>> NonvolatileStorage<'a> for FM25CL<'a, S>
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§impl<'a, S: SpiMasterDevice<'a>> SpiMasterClient for FM25CL<'a, S>
impl<'a, S: SpiMasterDevice<'a>> SpiMasterClient for FM25CL<'a, S>
source§fn read_write_done(
&self,
write_buffer: SubSliceMut<'static, u8>,
read_buffer: Option<SubSliceMut<'static, u8>>,
_status: Result<usize, ErrorCode>,
)
fn read_write_done( &self, write_buffer: SubSliceMut<'static, u8>, read_buffer: Option<SubSliceMut<'static, u8>>, _status: Result<usize, ErrorCode>, )
Callback issued when a read/write operation finishes. Read more
Auto 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> Unpin for FM25CL<'a, S>
impl<'a, S> !UnwindSafe for FM25CL<'a, S>
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