pub struct EcFlash { /* private fields */ }
Implementations
sourceimpl EcFlash
impl EcFlash
pub unsafe fn sts(&mut self) -> u8
pub unsafe fn can_read(&mut self) -> bool
pub unsafe fn wait_read(&mut self, timeout: usize) -> Result<(), ()>
pub unsafe fn can_write(&mut self) -> bool
pub unsafe fn wait_write(&mut self, timeout: usize) -> Result<(), ()>
pub unsafe fn flush(&mut self) -> Result<(), ()>
pub unsafe fn cmd(&mut self, data: u8) -> Result<(), ()>
pub unsafe fn read(&mut self) -> Result<u8, ()>
pub unsafe fn write(&mut self, data: u8) -> Result<(), ()>
pub unsafe fn get_param(&mut self, param: u8) -> Result<u8, ()>
pub unsafe fn set_param(&mut self, param: u8, data: u8) -> Result<(), ()>
pub unsafe fn fcommand(
&mut self,
cmd: u8,
dat: u8,
buf: &mut [u8; 4]
) -> Result<(), ()>
pub unsafe fn get_str(&mut self, index: u8) -> Result<String, ()>
pub fn new(primary: bool) -> Result<Self, String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EcFlash
impl Send for EcFlash
impl Sync for EcFlash
impl Unpin for EcFlash
impl UnwindSafe for EcFlash
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more