[][src]Struct rvemu::csr::mstatus::Mstatus

pub struct Mstatus { /* fields omitted */ }

Methods

impl Mstatus[src]

pub fn read_mpp(&self) -> Mode[src]

Read a privious privilege mode for machine mode.

pub fn write_mpp(&mut self, mode: Mode)[src]

Write a privious privilege mode for machine mode.

pub fn read_spp(&self) -> Mode[src]

Read a privious privilege mode for supervisor mode. It can only holds machine or supervisor mode.

pub fn write_spp(&mut self, mode: Mode)[src]

Write a privious privilege mode for supervisor mode. It can only holds machine or supervisor mode.

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

Read a privious interrupt-enable bit for machine mode.

pub fn write_mpie(&mut self, value: bool)[src]

Write a privious interrupt-enable bit for machine mode.

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

Read a privious interrupt-enable bit for supervisor mode.

pub fn write_spie(&mut self, value: bool)[src]

Write a privious interrupt-enable bit for supervisor mode.

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

Read a privious interrupt-enable bit for user mode.

pub fn write_upie(&mut self, value: bool)[src]

Write a privious interrupt-enable bit for user mode.

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

Read a global interrupt-enable bit for machine mode.

pub fn write_mie(&mut self, value: bool)[src]

Write a global interrupt-enable bit for machine mode.

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

Read a global interrupt-enable bit for supervisor mode.

pub fn write_sie(&mut self, value: bool)[src]

Write a global interrupt-enable bit for supervisor mode.

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

Read a global interrupt-enable bit for user mode.

pub fn write_uie(&mut self, value: bool)[src]

Write a global interrupt-enable bit for user mode.

Trait Implementations

impl CsrBase for Mstatus[src]

impl Read for Mstatus[src]

impl Write for Mstatus[src]

Auto Trait Implementations

impl RefUnwindSafe for Mstatus

impl Send for Mstatus

impl Sync for Mstatus

impl Unpin for Mstatus

impl UnwindSafe 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.