aarch32_cpu/register/armv8r/
cntvct.rs1use crate::register::{SysReg64, SysRegRead64};
4
5#[derive(Debug, Copy, Clone)]
7#[cfg_attr(feature = "defmt", derive(defmt::Format))]
8#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
9pub struct CntVct(pub u64);
10
11impl SysReg64 for CntVct {
12 const CP: u32 = 15;
13 const OP1: u32 = 1;
14 const CRM: u32 = 14;
15}
16
17impl SysRegRead64 for CntVct {}
18
19impl CntVct {
20 #[inline]
21 pub fn read() -> CntVct {
23 unsafe { Self(<Self as SysRegRead64>::read_raw()) }
24 }
25}