pub struct Status { /* private fields */ }Expand description
Status of the flash memory.
Implementations§
Source§impl Status
impl Status
Sourcepub fn busy(&self) -> bool
pub fn busy(&self) -> bool
Check if the flash memory is busy processing an erase or program command.
Sourcepub fn write_enable_latch(&self) -> bool
pub fn write_enable_latch(&self) -> bool
Check if the write enable latch is set.
The write enable latch must be set in order to execute an erase or program command.
Sourcepub fn protection(&self) -> u8
pub fn protection(&self) -> u8
Get the protection bits of the memory.
Each bit correponds to a region of memory that can be protected. See the datasheet of your flash memory for more details.
Sourcepub fn status_register_write_disable(&self) -> u8
pub fn status_register_write_disable(&self) -> u8
TODO: what exactly is this?
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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