[][src]Struct rvemu::csr::sstatus::Sstatus

pub struct Sstatus { /* fields omitted */ }

Methods

impl Sstatus[src]

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

Read a privious privilege mode for supervisor mode. or supervisor mode.

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

Write a privious privilege mode for supervisor 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_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 Sstatus[src]

impl Read for Sstatus[src]

impl Write for Sstatus[src]

Auto Trait Implementations

impl RefUnwindSafe for Sstatus

impl Send for Sstatus

impl Sync for Sstatus

impl Unpin for Sstatus

impl UnwindSafe for Sstatus

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.