[−][src]Struct rvemu::csr::mstatus::Mstatus
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]
fn new(value: Mxlen) -> Self
[src]
fn reset(&mut self)
[src]
fn write_value(&mut self, value: Mxlen)
[src]
fn read_value(&self) -> Mxlen
[src]
const BIT_LENGTH: usize
[src]
impl Read for Mstatus
[src]
fn read_bit(&self, bit: usize) -> bool
[src]
fn read_bits<T: RangeBounds<usize>>(&self, range: T) -> i64
[src]
impl Write for Mstatus
[src]
fn write_bit(&mut self, bit: usize, value: bool)
[src]
fn write_bits<T: RangeBounds<usize>>(&mut self, range: T, value: Mxlen)
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,