pub struct Status {
pub value: u8,
}Fields§
§value: u8Implementations§
Source§impl Status
impl Status
Sourcepub fn write_latch_enabled(&self) -> bool
pub fn write_latch_enabled(&self) -> bool
Get whether the write latch enabled bit is enabled
Sourcepub fn write_in_progress(&self) -> bool
pub fn write_in_progress(&self) -> bool
Get whether there is a write in progress
Sourcepub fn write_protection_level(&self) -> WriteProtection
pub fn write_protection_level(&self) -> WriteProtection
Get the protection level
Sourcepub fn set_write_protection_level(&mut self, protection: WriteProtection)
pub fn set_write_protection_level(&mut self, protection: WriteProtection)
Set the write protection level bits
Sourcepub fn write_protection_enabled(&mut self) -> bool
pub fn write_protection_enabled(&mut self) -> bool
Get the status of the WPEN bit. This makes the WP line effective If this is 0, then the WP line’s data is ignored.
Sourcepub fn set_write_protection_enabled(&mut self, enabled: bool)
pub fn set_write_protection_enabled(&mut self, enabled: bool)
Change the WPEN bit
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