Struct msp430::register::sr::Sr

source ·
#[repr(transparent)]
pub struct Sr { /* private fields */ }
Expand description

Status Register

Implementations§

Returns the contents of the register as raw bits

Carry flag This bit is set when the result of an operation produced a carry and cleared when no carry occurred.

Zero flag Set when the result of a byte or word operation is 0 and cleared when the result is not 0.

Negative flag Set when the result of a byte or word operation is negative and cleared when the result is not negative.

General interrupt enable flag When this bit is set, it enables maskable interrupts. When it is reset, all maskable interrupts are disabled.

CPU off flag When set, turns off the CPU.

Oscillator off flag When set, turns off the LFXT1 crystal oscillator

System clock generator 0 flag When set, turns off the DCO dc generator.

System clock generator 1 flag When set, turns off the SMCLK.

Overflow flag This bit is set when the result of an arithmetic operation overflows the signed-variable range.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.