[−][src]Struct spi_flash::sreg::StatusRegister1
Status Register 1
Implementations
impl StatusRegister1[src]
pub fn get_busy(&self) -> bool[src]
Get BUSY bit.
pub fn get_block_protect(&self) -> (bool, bool, bool)[src]
Get (BP0, BP1, BP2) bits.
pub fn set_block_protect(&mut self, bp0: bool, bp1: bool, bp2: bool)[src]
Set (BP0, BP1, BP2) bits.
pub fn get_sec(&self) -> bool[src]
Get SEC (sector protect) bit.
pub fn get_tb(&self) -> bool[src]
Get TB (top/bottom protection) bit.
pub fn get_srp(&self) -> bool[src]
Get SRP (status register protect) bit.
Trait Implementations
impl Clone for StatusRegister1[src]
pub fn clone(&self) -> StatusRegister1[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for StatusRegister1[src]
impl Debug for StatusRegister1[src]
Auto Trait Implementations
impl RefUnwindSafe for StatusRegister1[src]
impl Send for StatusRegister1[src]
impl Sync for StatusRegister1[src]
impl Unpin for StatusRegister1[src]
impl UnwindSafe for StatusRegister1[src]
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,
pub 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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,