#[repr(transparent)]pub struct Sr(pub u32);Expand description
Port Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Sr
impl Sr
Sourcepub const fn set_p1_dirty(&mut self, val: bool)
pub const fn set_p1_dirty(&mut self, val: bool)
Indicates the Dirty State of the P1 inactive Flash
Sourcepub const fn p1_byte_mode(&self) -> P1ByteMode
pub const fn p1_byte_mode(&self) -> P1ByteMode
Indicates the P1 Address Byte Mode
Sourcepub const fn set_p1_byte_mode(&mut self, val: P1ByteMode)
pub const fn set_p1_byte_mode(&mut self, val: P1ByteMode)
Indicates the P1 Address Byte Mode
Sourcepub const fn p1_write_en(&self) -> bool
pub const fn p1_write_en(&self) -> bool
Write enable command status
Sourcepub const fn set_p1_write_en(&mut self, val: bool)
pub const fn set_p1_write_en(&mut self, val: bool)
Write enable command status
Sourcepub const fn set_p0_dirty(&mut self, val: P0Dirty)
pub const fn set_p0_dirty(&mut self, val: P0Dirty)
Indicates the Dirty State of the P0 inactive Flash
Sourcepub const fn p0_byte_mode(&self) -> P0ByteMode
pub const fn p0_byte_mode(&self) -> P0ByteMode
Indicates the P0 Address Byte Mode
Sourcepub const fn set_p0_byte_mode(&mut self, val: P0ByteMode)
pub const fn set_p0_byte_mode(&mut self, val: P0ByteMode)
Indicates the P0 Address Byte Mode
Sourcepub const fn p0_write_en(&self) -> bool
pub const fn p0_write_en(&self) -> bool
Write enable command status
Sourcepub const fn set_p0_write_en(&mut self, val: bool)
pub const fn set_p0_write_en(&mut self, val: bool)
Write enable command status
Trait Implementations§
impl Copy for Sr
impl Eq for Sr
impl StructuralPartialEq for Sr
Auto Trait Implementations§
impl Freeze for Sr
impl RefUnwindSafe for Sr
impl Send for Sr
impl Sync for Sr
impl Unpin for Sr
impl UnwindSafe for Sr
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