pub struct WatchpointControlRegister(/* private fields */);Expand description
The layout of DBGWCR<n>_EL1.
Implementations§
Source§impl WatchpointControlRegister
impl WatchpointControlRegister
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const MASK_SHIFT: usize = 24
pub const MASK_SHIFT: usize = 24
Bit shift (i.e., the low bit) of mask.
Sourcepub const FIELDS: [FieldMetadata<u64>; 9]
pub const FIELDS: [FieldMetadata<u64>; 9]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn set_mask(&mut self, value: u8) -> &mut Self
pub const fn set_mask(&mut self, value: u8) -> &mut Self
Sets the value of WatchpointControlRegister[28:24].
Sourcepub const fn set_wt(&mut self, value: bool) -> &mut Self
pub const fn set_wt(&mut self, value: bool) -> &mut Self
Sets the value of WatchpointControlRegister20.
Sourcepub const fn set_lbn(&mut self, value: u8) -> &mut Self
pub const fn set_lbn(&mut self, value: u8) -> &mut Self
Sets the value of WatchpointControlRegister[19:16].
Sourcepub const fn set_ssc(&mut self, value: u8) -> &mut Self
pub const fn set_ssc(&mut self, value: u8) -> &mut Self
Sets the value of WatchpointControlRegister[15:14].
Sourcepub const fn set_hmc(&mut self, value: bool) -> &mut Self
pub const fn set_hmc(&mut self, value: bool) -> &mut Self
Sets the value of WatchpointControlRegister13.
Sourcepub const fn set_bas(&mut self, value: u8) -> &mut Self
pub const fn set_bas(&mut self, value: u8) -> &mut Self
Sets the value of WatchpointControlRegister[12:5].
Sourcepub const fn set_lsc(&mut self, value: u8) -> &mut Self
pub const fn set_lsc(&mut self, value: u8) -> &mut Self
Sets the value of WatchpointControlRegister[4:3].
Trait Implementations§
Source§impl Binary for WatchpointControlRegister
impl Binary for WatchpointControlRegister
Source§impl Clone for WatchpointControlRegister
impl Clone for WatchpointControlRegister
Source§fn clone(&self) -> WatchpointControlRegister
fn clone(&self) -> WatchpointControlRegister
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WatchpointControlRegister
Source§impl Debug for WatchpointControlRegister
impl Debug for WatchpointControlRegister
Source§impl Default for WatchpointControlRegister
impl Default for WatchpointControlRegister
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for WatchpointControlRegister
Source§impl From<WatchpointControlRegister> for u64
impl From<WatchpointControlRegister> for u64
Source§fn from(value: WatchpointControlRegister) -> Self
fn from(value: WatchpointControlRegister) -> Self
Source§impl From<u64> for WatchpointControlRegister
impl From<u64> for WatchpointControlRegister
Source§impl IntoIterator for WatchpointControlRegister
impl IntoIterator for WatchpointControlRegister
Source§impl<'a> IntoIterator for &'a WatchpointControlRegister
impl<'a> IntoIterator for &'a WatchpointControlRegister
Source§impl LowerHex for WatchpointControlRegister
impl LowerHex for WatchpointControlRegister
Source§impl Octal for WatchpointControlRegister
impl Octal for WatchpointControlRegister
Source§impl PartialEq for WatchpointControlRegister
impl PartialEq for WatchpointControlRegister
impl StructuralPartialEq for WatchpointControlRegister
Auto Trait Implementations§
impl Freeze for WatchpointControlRegister
impl RefUnwindSafe for WatchpointControlRegister
impl Send for WatchpointControlRegister
impl Sync for WatchpointControlRegister
impl Unpin for WatchpointControlRegister
impl UnsafeUnpin for WatchpointControlRegister
impl UnwindSafe for WatchpointControlRegister
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)