#[repr(transparent)]pub struct Sr { /* private fields */ }
Expand description
Status Register
Implementations§
source§impl Sr
impl Sr
sourcepub fn c(&self) -> bool
pub fn c(&self) -> bool
Carry flag This bit is set when the result of an operation produced a carry and cleared when no carry occurred.
sourcepub fn z(&self) -> bool
pub fn z(&self) -> bool
Zero flag Set when the result of a byte or word operation is 0 and cleared when the result is not 0.
sourcepub fn n(&self) -> bool
pub fn n(&self) -> bool
Negative flag Set when the result of a byte or word operation is negative and cleared when the result is not negative.
sourcepub fn gie(&self) -> bool
pub fn gie(&self) -> bool
General interrupt enable flag When this bit is set, it enables maskable interrupts. When it is reset, all maskable interrupts are disabled.
sourcepub fn oscoff(&self) -> bool
pub fn oscoff(&self) -> bool
Oscillator off flag When set, turns off the LFXT1 crystal oscillator