Enum cortex_m::register::control::Spsel [−][src]
pub enum Spsel { Msp, Psp, }
Currently active stack pointer
Variants
Msp
MSP is the current stack pointer
Psp
PSP is the current stack pointer
Methods
impl Spsel
[src]
impl Spsel
pub fn is_msp(&self) -> bool
[src]
pub fn is_msp(&self) -> bool
Is MSP the current stack pointer?
pub fn is_psp(&self) -> bool
[src]
pub fn is_psp(&self) -> bool
Is PSP the current stack pointer?
Trait Implementations
impl Clone for Spsel
[src]
impl Clone for Spsel
fn clone(&self) -> Spsel
[src]
fn clone(&self) -> Spsel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Spsel
[src]
impl Copy for Spsel
impl Debug for Spsel
[src]
impl Debug for Spsel
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Spsel
[src]
impl Eq for Spsel
impl PartialEq for Spsel
[src]
impl PartialEq for Spsel