[][src]Struct spi_flash::sreg::StatusRegister1

pub struct StatusRegister1(pub u8);

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]

impl Copy for StatusRegister1[src]

impl Debug for StatusRegister1[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.