Struct spi_flash::sreg::StatusRegister1
source · [−]pub struct StatusRegister1(pub u8);
Expand description
Status Register 1
Tuple Fields
0: u8
Implementations
sourceimpl StatusRegister1
impl StatusRegister1
sourcepub fn get_block_protect(&self) -> (bool, bool, bool)
pub fn get_block_protect(&self) -> (bool, bool, bool)
Get (BP0, BP1, BP2) bits.
sourcepub fn set_block_protect(&mut self, bp0: bool, bp1: bool, bp2: bool)
pub fn set_block_protect(&mut self, bp0: bool, bp1: bool, bp2: bool)
Set (BP0, BP1, BP2) bits.
Trait Implementations
sourceimpl Clone for StatusRegister1
impl Clone for StatusRegister1
sourcefn clone(&self) -> StatusRegister1
fn clone(&self) -> StatusRegister1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StatusRegister1
impl Debug for StatusRegister1
impl Copy for StatusRegister1
Auto Trait Implementations
impl RefUnwindSafe for StatusRegister1
impl Send for StatusRegister1
impl Sync for StatusRegister1
impl Unpin for StatusRegister1
impl UnwindSafe for StatusRegister1
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