[−][src]Enum riscv_sandbox::isa::CsrId
This type represents a CSR's (Control State Register) ID in the CSR table
These registers are 12-bits indexed and used by the software to either control the machine (e.g. modify privilege mode, register interruption handlers ...), or know about its state (e.g. available extensions , performances counters ...).
You can match any CsrId with its implemented constants. This structure helps representing a CSR ID as what it really is in hardware (12bits number) and adds some helper functions to easily get privilege the R/W permissions and privilege level of the indexed register.
Variants
Methods
impl CsrId
[src]
Trait Implementations
impl From<u16> for CsrId
[src]
impl Clone for CsrId
[src]
impl Copy for CsrId
[src]
impl Eq for CsrId
[src]
impl PartialEq<CsrId> for CsrId
[src]
impl Debug for CsrId
[src]
impl StructuralPartialEq for CsrId
[src]
impl StructuralEq for CsrId
[src]
Auto Trait Implementations
impl Send for CsrId
impl Sync for CsrId
impl Unpin for CsrId
impl UnwindSafe for CsrId
impl RefUnwindSafe for CsrId
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,