pub struct Ccsidr { /* private fields */ }Expand description
CCSIDR (Current Cache Size ID Register)
Implementations§
Source§impl Ccsidr
impl Ccsidr
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) -> Ccsidr
pub const fn new_with_raw_value(value: u32) -> Ccsidr
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 builder() -> PartialCcsidr<0>
pub const fn builder() -> PartialCcsidr<0>
Creates a builder for this bitfield which ensures that all writable fields are initialized
pub const fn write_through(&self) -> bool
pub const fn with_write_through(&self, field_value: bool) -> Self
pub fn set_write_through(&mut self, field_value: bool)
pub const fn write_back(&self) -> bool
pub const fn with_write_back(&self, field_value: bool) -> Self
pub fn set_write_back(&mut self, field_value: bool)
pub const fn read_alloc(&self) -> bool
pub const fn with_read_alloc(&self, field_value: bool) -> Self
pub fn set_read_alloc(&mut self, field_value: bool)
pub const fn write_alloc(&self) -> bool
pub const fn with_write_alloc(&self, field_value: bool) -> Self
pub fn set_write_alloc(&mut self, field_value: bool)
pub const fn num_sets(&self) -> u15
pub const fn with_num_sets(&self, field_value: u15) -> Self
pub fn set_num_sets(&mut self, field_value: u15)
pub const fn associativity(&self) -> u10
pub const fn with_associativity(&self, field_value: u10) -> Self
pub fn set_associativity(&mut self, field_value: u10)
pub const fn line_size(&self) -> u3
pub const fn with_line_size(&self, field_value: u3) -> Self
pub fn set_line_size(&mut self, field_value: u3)
Trait Implementations§
Source§impl SysRegRead for Ccsidr
impl SysRegRead for Ccsidr
impl Copy for Ccsidr
Auto Trait Implementations§
impl Freeze for Ccsidr
impl RefUnwindSafe for Ccsidr
impl Send for Ccsidr
impl Sync for Ccsidr
impl Unpin for Ccsidr
impl UnwindSafe for Ccsidr
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