pub type Mx25r6435fComponentType<S, P, A> = MX25R6435F<'static, VirtualSpiMasterDevice<'static, S>, P, VirtualMuxAlarm<'static, A>>;
Aliased Type§
struct Mx25r6435fComponentType<S, P, A> { /* private fields */ }
Implementations
Source§impl<'a, S, P, A> MX25R6435F<'a, S, P, A>
impl<'a, S, P, A> MX25R6435F<'a, S, P, A>
pub fn new( spi: &'a S, alarm: &'a A, txbuffer: &'static mut [u8], rxbuffer: &'static mut [u8], write_protect_pin: Option<&'a P>, hold_pin: Option<&'a P>, ) -> MX25R6435F<'a, S, P, A>
Sourcepub fn read_identification(&self) -> Result<(), ErrorCode>
pub fn read_identification(&self) -> Result<(), ErrorCode>
Requests the readout of a 24-bit identification number. This command will cause a debug print when succeeded.
Trait Implementations
Source§impl<'a, S, P, A> AlarmClient for MX25R6435F<'a, S, P, A>
impl<'a, S, P, A> AlarmClient for MX25R6435F<'a, S, P, A>
Source§impl<'a, S, P, A> Flash for MX25R6435F<'a, S, P, A>
impl<'a, S, P, A> Flash for MX25R6435F<'a, S, P, A>
Source§type Page = Mx25r6435fSector
type Page = Mx25r6435fSector
Type of a single flash page for the given implementation.
Source§fn read_page(
&self,
page_number: usize,
buf: &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page,
) -> Result<(), (ErrorCode, &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page)>
fn read_page( &self, page_number: usize, buf: &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page, ) -> Result<(), (ErrorCode, &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page)>
Read a page of flash into the buffer.
Source§fn write_page(
&self,
page_number: usize,
buf: &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page,
) -> Result<(), (ErrorCode, &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page)>
fn write_page( &self, page_number: usize, buf: &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page, ) -> Result<(), (ErrorCode, &'static mut <MX25R6435F<'a, S, P, A> as Flash>::Page)>
Write a page of flash from the buffer.
Source§impl<'a, S, P, A, C> HasClient<'a, C> for MX25R6435F<'a, S, P, A>where
S: SpiMasterDevice<'a> + 'a,
P: Pin + 'a,
A: Alarm<'a> + 'a,
C: Client<MX25R6435F<'a, S, P, A>>,
impl<'a, S, P, A, C> HasClient<'a, C> for MX25R6435F<'a, S, P, A>where
S: SpiMasterDevice<'a> + 'a,
P: Pin + 'a,
A: Alarm<'a> + 'a,
C: Client<MX25R6435F<'a, S, P, A>>,
Source§fn set_client(&self, client: &'a C)
fn set_client(&self, client: &'a C)
Set the client for this flash peripheral. The client will be called
when operations complete.
Source§impl<'a, S, P, A> SpiMasterClient for MX25R6435F<'a, S, P, A>
impl<'a, S, P, A> SpiMasterClient for MX25R6435F<'a, S, P, A>
Source§fn read_write_done(
&self,
write_buffer: SubSliceMut<'static, u8>,
read_buffer: Option<SubSliceMut<'static, u8>>,
read_write_status: Result<usize, ErrorCode>,
)
fn read_write_done( &self, write_buffer: SubSliceMut<'static, u8>, read_buffer: Option<SubSliceMut<'static, u8>>, read_write_status: Result<usize, ErrorCode>, )
Callback issued when a read/write operation finishes. Read more