pub struct Csselr { /* private fields */ }Expand description
CSSELR (Cache Size Selection Register)
Implementations§
Source§impl Csselr
impl Csselr
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new_with_raw_value(value: u32) -> Csselr
pub const fn new_with_raw_value(value: u32) -> Csselr
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn with_level(&self, field_value: u3) -> Self
pub const fn with_level(&self, field_value: u3) -> Self
0 for L1 cache, 1 for L2, etc.
pub const fn cache_type(&self) -> CacheType
pub const fn with_cache_type(&self, field_value: CacheType) -> Self
pub fn set_cache_type(&mut self, field_value: CacheType)
Trait Implementations§
Source§impl SysRegRead for Csselr
impl SysRegRead for Csselr
Source§impl SysRegWrite for Csselr
impl SysRegWrite for Csselr
impl Copy for Csselr
impl Eq for Csselr
impl StructuralPartialEq for Csselr
Auto Trait Implementations§
impl Freeze for Csselr
impl RefUnwindSafe for Csselr
impl Send for Csselr
impl Sync for Csselr
impl Unpin for Csselr
impl UnwindSafe for Csselr
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