corstone300_pac/
syscounter_read.rs

1// Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
2//
3// SPDX-License-Identifier: MIT
4
5#[doc = r"Register block"]
6#[repr(C)]
7pub struct RegisterBlock {
8    #[doc = "0x00..0x08 - Current count value"]
9    pub cntcv: CNTCV,
10    _reserved1: [u8; 0x0fc8],
11    #[doc = "0xfd0 - Peripheral Identification Register 4"]
12    pub cntpidr4: CNTPIDR4,
13    _reserved2: [u8; 0x0c],
14    #[doc = "0xfe0 - Peripheral Identification Register 0"]
15    pub cntpidr0: CNTPIDR0,
16    #[doc = "0xfe4 - Peripheral Identification Register 1"]
17    pub cntpidr1: CNTPIDR1,
18    #[doc = "0xfe8 - Peripheral Identification Register 2"]
19    pub cntpidr2: CNTPIDR2,
20    #[doc = "0xfec - Peripheral Identification Register 3"]
21    pub cntpidr3: CNTPIDR3,
22    #[doc = "0xff0 - Component Identification Register 0."]
23    pub cntcidr0: CNTCIDR0,
24    #[doc = "0xff4 - Component Identification Register 1"]
25    pub cntcidr1: CNTCIDR1,
26    #[doc = "0xff8 - Component Identification Register 2"]
27    pub cntcidr2: CNTCIDR2,
28    #[doc = "0xffc - Component Identification Register 3"]
29    pub cntcidr3: CNTCIDR3,
30}
31#[doc = "CNTCV (rw) register accessor: an alias for `Reg<CNTCV_SPEC>`"]
32pub type CNTCV = crate::Reg<cntcv::CNTCV_SPEC>;
33#[doc = "Current count value"]
34pub mod cntcv;
35#[doc = "CNTPIDR4 (r) register accessor: an alias for `Reg<CNTPIDR4_SPEC>`"]
36pub type CNTPIDR4 = crate::Reg<cntpidr4::CNTPIDR4_SPEC>;
37#[doc = "Peripheral Identification Register 4"]
38pub mod cntpidr4;
39#[doc = "CNTPIDR0 (r) register accessor: an alias for `Reg<CNTPIDR0_SPEC>`"]
40pub type CNTPIDR0 = crate::Reg<cntpidr0::CNTPIDR0_SPEC>;
41#[doc = "Peripheral Identification Register 0"]
42pub mod cntpidr0;
43#[doc = "CNTPIDR1 (r) register accessor: an alias for `Reg<CNTPIDR1_SPEC>`"]
44pub type CNTPIDR1 = crate::Reg<cntpidr1::CNTPIDR1_SPEC>;
45#[doc = "Peripheral Identification Register 1"]
46pub mod cntpidr1;
47#[doc = "CNTPIDR2 (r) register accessor: an alias for `Reg<CNTPIDR2_SPEC>`"]
48pub type CNTPIDR2 = crate::Reg<cntpidr2::CNTPIDR2_SPEC>;
49#[doc = "Peripheral Identification Register 2"]
50pub mod cntpidr2;
51#[doc = "CNTPIDR3 (r) register accessor: an alias for `Reg<CNTPIDR3_SPEC>`"]
52pub type CNTPIDR3 = crate::Reg<cntpidr3::CNTPIDR3_SPEC>;
53#[doc = "Peripheral Identification Register 3"]
54pub mod cntpidr3;
55#[doc = "CNTCIDR0 (r) register accessor: an alias for `Reg<CNTCIDR0_SPEC>`"]
56pub type CNTCIDR0 = crate::Reg<cntcidr0::CNTCIDR0_SPEC>;
57#[doc = "Component Identification Register 0."]
58pub mod cntcidr0;
59#[doc = "CNTCIDR1 (r) register accessor: an alias for `Reg<CNTCIDR1_SPEC>`"]
60pub type CNTCIDR1 = crate::Reg<cntcidr1::CNTCIDR1_SPEC>;
61#[doc = "Component Identification Register 1"]
62pub mod cntcidr1;
63#[doc = "CNTCIDR2 (r) register accessor: an alias for `Reg<CNTCIDR2_SPEC>`"]
64pub type CNTCIDR2 = crate::Reg<cntcidr2::CNTCIDR2_SPEC>;
65#[doc = "Component Identification Register 2"]
66pub mod cntcidr2;
67#[doc = "CNTCIDR3 (r) register accessor: an alias for `Reg<CNTCIDR3_SPEC>`"]
68pub type CNTCIDR3 = crate::Reg<cntcidr3::CNTCIDR3_SPEC>;
69#[doc = "Component Identification Register 3"]
70pub mod cntcidr3;