[][src]Struct riscv::register::mstatus::Mstatus

pub struct Mstatus { /* fields omitted */ }

mstatus register

Implementations

impl Mstatus[src]

pub fn uie(&self) -> bool[src]

User Interrupt Enable

pub fn sie(&self) -> bool[src]

Supervisor Interrupt Enable

pub fn mie(&self) -> bool[src]

Machine Interrupt Enable

pub fn upie(&self) -> bool[src]

User Previous Interrupt Enable

pub fn spie(&self) -> bool[src]

Supervisor Previous Interrupt Enable

pub fn mpie(&self) -> bool[src]

Machine Previous Interrupt Enable

pub fn spp(&self) -> SPP[src]

Supervisor Previous Privilege Mode

pub fn mpp(&self) -> MPP[src]

Machine Previous Privilege Mode

pub fn fs(&self) -> FS[src]

Floating-point extension state

Encodes the status of the floating-point unit, including the CSR fcsr and floating-point data registers f0–f31.

pub fn xs(&self) -> XS[src]

Additional extension state

Encodes the status of additional user-mode extensions and associated state.

pub fn sd(&self) -> bool[src]

Whether either the FS field or XS field signals the presence of some dirty state

Trait Implementations

impl Clone for Mstatus[src]

impl Copy for Mstatus[src]

impl Debug for Mstatus[src]

Auto Trait Implementations

impl Send for Mstatus

impl Sync for Mstatus

impl Unpin for Mstatus

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.