rk3399_pac/
probe.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    id_core_id: IdCoreId,
5    id_revision_id: IdRevisionId,
6    main_ctl: MainCtl,
7    cfg_ctl: CfgCtl,
8    _reserved4: [u8; 0x14],
9    stat_period: StatPeriod,
10    stat_go: StatGo,
11    _reserved6: [u8; 0x010c],
12    counters_0_src: Counters0Src,
13    counters_0_val: Counters0Val,
14    _reserved8: [u8; 0x0c],
15    counters_1_src: Counters1Src,
16    counters_1_val: Counters1Val,
17    _reserved10: [u8; 0x0c],
18    counters_2_src: Counters2Src,
19    counters_2_val: Counters2Val,
20    _reserved12: [u8; 0x0c],
21    counters_3_src: Counters3Src,
22    counters_3_val: Counters3Val,
23}
24impl RegisterBlock {
25    #[doc = "0x00 - Core ID register"]
26    #[inline(always)]
27    pub const fn id_core_id(&self) -> &IdCoreId {
28        &self.id_core_id
29    }
30    #[doc = "0x04 - Revision ID register"]
31    #[inline(always)]
32    pub const fn id_revision_id(&self) -> &IdRevisionId {
33        &self.id_revision_id
34    }
35    #[doc = "0x08 - Register MainCtl contains probe global control bits."]
36    #[inline(always)]
37    pub const fn main_ctl(&self) -> &MainCtl {
38        &self.main_ctl
39    }
40    #[doc = "0x0c - Register CfgCtl contains global enable and active bits."]
41    #[inline(always)]
42    pub const fn cfg_ctl(&self) -> &CfgCtl {
43        &self.cfg_ctl
44    }
45    #[doc = "0x24 - Statistics Period"]
46    #[inline(always)]
47    pub const fn stat_period(&self) -> &StatPeriod {
48        &self.stat_period
49    }
50    #[doc = "0x28 - Statistics start to dump"]
51    #[inline(always)]
52    pub const fn stat_go(&self) -> &StatGo {
53        &self.stat_go
54    }
55    #[doc = "0x138 - Register CntSrc indicates the event source."]
56    #[inline(always)]
57    pub const fn counters_0_src(&self) -> &Counters0Src {
58        &self.counters_0_src
59    }
60    #[doc = "0x13c - Registers Counters_M_Val contain the statistics counter values."]
61    #[inline(always)]
62    pub const fn counters_0_val(&self) -> &Counters0Val {
63        &self.counters_0_val
64    }
65    #[doc = "0x14c - Register CntSrc indicates the event source."]
66    #[inline(always)]
67    pub const fn counters_1_src(&self) -> &Counters1Src {
68        &self.counters_1_src
69    }
70    #[doc = "0x150 - Registers Counters_M_Val contain the statistics counter values."]
71    #[inline(always)]
72    pub const fn counters_1_val(&self) -> &Counters1Val {
73        &self.counters_1_val
74    }
75    #[doc = "0x160 - Register CntSrc indicates the event source."]
76    #[inline(always)]
77    pub const fn counters_2_src(&self) -> &Counters2Src {
78        &self.counters_2_src
79    }
80    #[doc = "0x164 - Registers Counters_M_Val contain the statistics counter values."]
81    #[inline(always)]
82    pub const fn counters_2_val(&self) -> &Counters2Val {
83        &self.counters_2_val
84    }
85    #[doc = "0x174 - Register CntSrc indicates the event source."]
86    #[inline(always)]
87    pub const fn counters_3_src(&self) -> &Counters3Src {
88        &self.counters_3_src
89    }
90    #[doc = "0x178 - Registers Counters_M_Val contain the statistics counter values."]
91    #[inline(always)]
92    pub const fn counters_3_val(&self) -> &Counters3Val {
93        &self.counters_3_val
94    }
95}
96#[doc = "Id_CoreId (r) register accessor: Core ID register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`id_core_id::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@id_core_id`]
97module"]
98#[doc(alias = "Id_CoreId")]
99pub type IdCoreId = crate::Reg<id_core_id::IdCoreIdSpec>;
100#[doc = "Core ID register"]
101pub mod id_core_id;
102#[doc = "Id_RevisionId (r) register accessor: Revision ID register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`id_revision_id::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@id_revision_id`]
103module"]
104#[doc(alias = "Id_RevisionId")]
105pub type IdRevisionId = crate::Reg<id_revision_id::IdRevisionIdSpec>;
106#[doc = "Revision ID register"]
107pub mod id_revision_id;
108#[doc = "MainCtl (rw) register accessor: Register MainCtl contains probe global control bits.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`main_ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`main_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@main_ctl`]
109module"]
110pub type MainCtl = crate::Reg<main_ctl::MainCtlSpec>;
111#[doc = "Register MainCtl contains probe global control bits."]
112pub mod main_ctl;
113#[doc = "CfgCtl (rw) register accessor: Register CfgCtl contains global enable and active bits.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfg_ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfg_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfg_ctl`]
114module"]
115pub type CfgCtl = crate::Reg<cfg_ctl::CfgCtlSpec>;
116#[doc = "Register CfgCtl contains global enable and active bits."]
117pub mod cfg_ctl;
118#[doc = "StatPeriod (rw) register accessor: Statistics Period\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat_period::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`stat_period::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat_period`]
119module"]
120pub type StatPeriod = crate::Reg<stat_period::StatPeriodSpec>;
121#[doc = "Statistics Period"]
122pub mod stat_period;
123#[doc = "StatGo (rw) register accessor: Statistics start to dump\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat_go::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`stat_go::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat_go`]
124module"]
125pub type StatGo = crate::Reg<stat_go::StatGoSpec>;
126#[doc = "Statistics start to dump"]
127pub mod stat_go;
128#[doc = "Counters_0_Src (rw) register accessor: Register CntSrc indicates the event source.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_0_src::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`counters_0_src::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_0_src`]
129module"]
130#[doc(alias = "Counters_0_Src")]
131pub type Counters0Src = crate::Reg<counters_0_src::Counters0SrcSpec>;
132#[doc = "Register CntSrc indicates the event source."]
133pub mod counters_0_src;
134#[doc = "Counters_0_Val (r) register accessor: Registers Counters_M_Val contain the statistics counter values.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_0_val::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_0_val`]
135module"]
136#[doc(alias = "Counters_0_Val")]
137pub type Counters0Val = crate::Reg<counters_0_val::Counters0ValSpec>;
138#[doc = "Registers Counters_M_Val contain the statistics counter values."]
139pub mod counters_0_val;
140#[doc = "Counters_1_Src (rw) register accessor: Register CntSrc indicates the event source.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_1_src::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`counters_1_src::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_1_src`]
141module"]
142#[doc(alias = "Counters_1_Src")]
143pub type Counters1Src = crate::Reg<counters_1_src::Counters1SrcSpec>;
144#[doc = "Register CntSrc indicates the event source."]
145pub mod counters_1_src;
146#[doc = "Counters_1_Val (r) register accessor: Registers Counters_M_Val contain the statistics counter values.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_1_val::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_1_val`]
147module"]
148#[doc(alias = "Counters_1_Val")]
149pub type Counters1Val = crate::Reg<counters_1_val::Counters1ValSpec>;
150#[doc = "Registers Counters_M_Val contain the statistics counter values."]
151pub mod counters_1_val;
152#[doc = "Counters_2_Src (rw) register accessor: Register CntSrc indicates the event source.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_2_src::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`counters_2_src::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_2_src`]
153module"]
154#[doc(alias = "Counters_2_Src")]
155pub type Counters2Src = crate::Reg<counters_2_src::Counters2SrcSpec>;
156#[doc = "Register CntSrc indicates the event source."]
157pub mod counters_2_src;
158#[doc = "Counters_2_Val (r) register accessor: Registers Counters_M_Val contain the statistics counter values.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_2_val::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_2_val`]
159module"]
160#[doc(alias = "Counters_2_Val")]
161pub type Counters2Val = crate::Reg<counters_2_val::Counters2ValSpec>;
162#[doc = "Registers Counters_M_Val contain the statistics counter values."]
163pub mod counters_2_val;
164#[doc = "Counters_3_Src (rw) register accessor: Register CntSrc indicates the event source.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_3_src::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`counters_3_src::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_3_src`]
165module"]
166#[doc(alias = "Counters_3_Src")]
167pub type Counters3Src = crate::Reg<counters_3_src::Counters3SrcSpec>;
168#[doc = "Register CntSrc indicates the event source."]
169pub mod counters_3_src;
170#[doc = "Counters_3_Val (r) register accessor: Registers Counters_M_Val contain the statistics counter values.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`counters_3_val::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@counters_3_val`]
171module"]
172#[doc(alias = "Counters_3_Val")]
173pub type Counters3Val = crate::Reg<counters_3_val::Counters3ValSpec>;
174#[doc = "Registers Counters_M_Val contain the statistics counter values."]
175pub mod counters_3_val;