[−][src]Struct ectool::SpiRom 
Methods
impl<'a, S: Spi, T: Timeout> SpiRom<'a, S, T>[src]
pub fn new(spi: &'a mut S, timeout: T) -> Self[src]
pub fn sector_size(&self) -> usize[src]
pub unsafe fn status(&mut self) -> Result<u8, Error>[src]
pub unsafe fn status_wait(&mut self, mask: u8, value: u8) -> Result<(), Error>[src]
pub unsafe fn write_disable(&mut self) -> Result<(), Error>[src]
pub unsafe fn write_enable(&mut self) -> Result<(), Error>[src]
pub unsafe fn erase_sector(&mut self, address: u32) -> Result<(), Error>[src]
pub unsafe fn read_at(
    &mut self, 
    address: u32, 
    data: &mut [u8]
) -> Result<usize, Error>[src]
&mut self,
address: u32,
data: &mut [u8]
) -> Result<usize, Error>
pub unsafe fn write_at(
    &mut self, 
    address: u32, 
    data: &[u8]
) -> Result<usize, Error>[src]
&mut self,
address: u32,
data: &[u8]
) -> Result<usize, Error>
Trait Implementations
Auto Trait Implementations
impl<'a, S, T> Send for SpiRom<'a, S, T> where
    S: Send,
    T: Send, 
S: Send,
T: Send,
impl<'a, S, T> Sync for SpiRom<'a, S, T> where
    S: Sync,
    T: Sync, 
S: Sync,
T: Sync,
impl<'a, S, T> Unpin for SpiRom<'a, S, T> where
    T: Unpin, 
T: Unpin,
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,