pub enum VectorCsr {
Vstart,
Vxsat,
Vxrm,
Vcsr,
Vl,
Vtype,
Vlenb,
}Expand description
Vector CSR addresses
Variants§
Vstart
Vector start element index (URW)
Vxsat
Fixed-point saturation flag (URW)
Vxrm
Fixed-point rounding mode (URW)
Vcsr
Vector control and status register (URW)
Vl
Vector length (URO)
Vtype
Vector data type register (URO)
Vlenb
VLEN/8 (vector register length in bytes) (URO)
Implementations§
Source§impl VectorCsr
impl VectorCsr
Sourcepub const fn from_csr_index(index: u16) -> Option<Self>
pub const fn from_csr_index(index: u16) -> Option<Self>
Try to match a CSR index to a vector CSR
Sourcepub const fn to_csr_index(self) -> u16
pub const fn to_csr_index(self) -> u16
Convert vector CSR to its corresponding CSR index
Trait Implementations§
impl Copy for VectorCsr
impl Eq for VectorCsr
impl StructuralPartialEq for VectorCsr
Auto Trait Implementations§
impl Freeze for VectorCsr
impl RefUnwindSafe for VectorCsr
impl Send for VectorCsr
impl Sync for VectorCsr
impl Unpin for VectorCsr
impl UnsafeUnpin for VectorCsr
impl UnwindSafe for VectorCsr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more