pub struct Cnthctl { /* private fields */ }Expand description
CNTHCTL (Hyp Counter-timer Control Register)
Implementations§
Source§impl Cnthctl
impl Cnthctl
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) -> Cnthctl
pub const fn new_with_raw_value(value: u32) -> Cnthctl
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() -> PartialCnthctl<false, false, false, false, false>
pub const fn builder() -> PartialCnthctl<false, false, false, false, false>
Creates a builder for this bitfield which ensures that all writable fields are initialized.
Sourcepub const fn evnti(&self) -> u4
pub const fn evnti(&self) -> u4
Selects which bit of CNTPCT, as seen from EL2, is the trigger for the event stream generated from that counter when that stream is enabled.
Sourcepub const fn with_evnti(&self, field_value: u4) -> Self
pub const fn with_evnti(&self, field_value: u4) -> Self
Selects which bit of CNTPCT, as seen from EL2, is the trigger for the event stream generated from that counter when that stream is enabled.
Sourcepub fn set_evnti(&mut self, field_value: u4)
pub fn set_evnti(&mut self, field_value: u4)
Selects which bit of CNTPCT, as seen from EL2, is the trigger for the event stream generated from that counter when that stream is enabled.
Sourcepub const fn evntdir(&self) -> bool
pub const fn evntdir(&self) -> bool
Controls which transition of the CNTPCT trigger bit, as seen from EL2 and defined by EVNTI, generates an event when the event stream is enabled.
Sourcepub const fn with_evntdir(&self, field_value: bool) -> Self
pub const fn with_evntdir(&self, field_value: bool) -> Self
Controls which transition of the CNTPCT trigger bit, as seen from EL2 and defined by EVNTI, generates an event when the event stream is enabled.
Sourcepub fn set_evntdir(&mut self, field_value: bool)
pub fn set_evntdir(&mut self, field_value: bool)
Controls which transition of the CNTPCT trigger bit, as seen from EL2 and defined by EVNTI, generates an event when the event stream is enabled.
Sourcepub const fn evnten(&self) -> bool
pub const fn evnten(&self) -> bool
Enables the generation of an event stream from CNTPCT as seen from EL2.
Sourcepub const fn with_evnten(&self, field_value: bool) -> Self
pub const fn with_evnten(&self, field_value: bool) -> Self
Enables the generation of an event stream from CNTPCT as seen from EL2.
Sourcepub fn set_evnten(&mut self, field_value: bool)
pub fn set_evnten(&mut self, field_value: bool)
Enables the generation of an event stream from CNTPCT as seen from EL2.
Sourcepub const fn pl1pcen(&self) -> bool
pub const fn pl1pcen(&self) -> bool
Traps Non-secure EL0 and EL1 MRC or MCR accesses, reported using EC syndrome value 0x03, and MRRC or MCRR accesses, reported using EC syndrome value 0x04, to the physical timer registers to Hyp mode.
Sourcepub const fn with_pl1pcen(&self, field_value: bool) -> Self
pub const fn with_pl1pcen(&self, field_value: bool) -> Self
Traps Non-secure EL0 and EL1 MRC or MCR accesses, reported using EC syndrome value 0x03, and MRRC or MCRR accesses, reported using EC syndrome value 0x04, to the physical timer registers to Hyp mode.
Sourcepub fn set_pl1pcen(&mut self, field_value: bool)
pub fn set_pl1pcen(&mut self, field_value: bool)
Traps Non-secure EL0 and EL1 MRC or MCR accesses, reported using EC syndrome value 0x03, and MRRC or MCRR accesses, reported using EC syndrome value 0x04, to the physical timer registers to Hyp mode.
Sourcepub const fn pl1pcten(&self) -> bool
pub const fn pl1pcten(&self) -> bool
Traps Non-secure EL0 and EL1 MRRC or MCRR accesses, reported using EC syndrome value 0x04, to the physical counter register to Hyp mode.
Sourcepub const fn with_pl1pcten(&self, field_value: bool) -> Self
pub const fn with_pl1pcten(&self, field_value: bool) -> Self
Traps Non-secure EL0 and EL1 MRRC or MCRR accesses, reported using EC syndrome value 0x04, to the physical counter register to Hyp mode.
Sourcepub fn set_pl1pcten(&mut self, field_value: bool)
pub fn set_pl1pcten(&mut self, field_value: bool)
Traps Non-secure EL0 and EL1 MRRC or MCRR accesses, reported using EC syndrome value 0x04, to the physical counter register to Hyp mode.
Trait Implementations§
Source§impl SysRegRead for Cnthctl
impl SysRegRead for Cnthctl
Source§impl SysRegWrite for Cnthctl
impl SysRegWrite for Cnthctl
impl Copy for Cnthctl
Auto Trait Implementations§
impl Freeze for Cnthctl
impl RefUnwindSafe for Cnthctl
impl Send for Cnthctl
impl Sync for Cnthctl
impl Unpin for Cnthctl
impl UnsafeUnpin for Cnthctl
impl UnwindSafe for Cnthctl
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)