pub struct StatusRegister1(pub u8);Expand description
Status Register 1
Tuple Fields§
§0: u8Implementations§
Source§impl 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§
Source§impl Clone for StatusRegister1
impl Clone for StatusRegister1
Source§fn clone(&self) -> StatusRegister1
fn clone(&self) -> StatusRegister1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusRegister1
impl Debug for StatusRegister1
impl Copy for StatusRegister1
Auto Trait Implementations§
impl Freeze for StatusRegister1
impl RefUnwindSafe for StatusRegister1
impl Send for StatusRegister1
impl Sync for StatusRegister1
impl Unpin for StatusRegister1
impl UnwindSafe for StatusRegister1
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