1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 isr: Isr,
5 icr: Icr,
6 ier: Ier,
7 cfgr: Cfgr,
8 cr: Cr,
9 cmp: Cmp,
10 arr: Arr,
11 cnt: Cnt,
12}
13impl RegisterBlock {
14 #[doc = "0x00 - Регистр флагов прерываний"]
15 #[inline(always)]
16 pub const fn isr(&self) -> &Isr {
17 &self.isr
18 }
19 #[doc = "0x04 - Регистр сброса флагов прерываний"]
20 #[inline(always)]
21 pub const fn icr(&self) -> &Icr {
22 &self.icr
23 }
24 #[doc = "0x08 - Регистр разрешения прерываний"]
25 #[inline(always)]
26 pub const fn ier(&self) -> &Ier {
27 &self.ier
28 }
29 #[doc = "0x0c - Регистр конфигурации"]
30 #[inline(always)]
31 pub const fn cfgr(&self) -> &Cfgr {
32 &self.cfgr
33 }
34 #[doc = "0x10 - Регистр управления"]
35 #[inline(always)]
36 pub const fn cr(&self) -> &Cr {
37 &self.cr
38 }
39 #[doc = "0x14 - Регистр сравнения"]
40 #[inline(always)]
41 pub const fn cmp(&self) -> &Cmp {
42 &self.cmp
43 }
44 #[doc = "0x18 - Регистр автоматической перезагрузки"]
45 #[inline(always)]
46 pub const fn arr(&self) -> &Arr {
47 &self.arr
48 }
49 #[doc = "0x1c - Регистр счётчика"]
50 #[inline(always)]
51 pub const fn cnt(&self) -> &Cnt {
52 &self.cnt
53 }
54}
55#[doc = "ISR (r) register accessor: Регистр флагов прерываний\n\nYou can [`read`](crate::Reg::read) this register and get [`isr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@isr`]
56module"]
57#[doc(alias = "ISR")]
58pub type Isr = crate::Reg<isr::IsrSpec>;
59#[doc = "Регистр флагов прерываний"]
60pub mod isr;
61#[doc = "ICR (w) register accessor: Регистр сброса флагов прерываний\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`icr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@icr`]
62module"]
63#[doc(alias = "ICR")]
64pub type Icr = crate::Reg<icr::IcrSpec>;
65#[doc = "Регистр сброса флагов прерываний"]
66pub mod icr;
67#[doc = "IER (rw) register accessor: Регистр разрешения прерываний\n\nYou can [`read`](crate::Reg::read) this register and get [`ier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ier`]
68module"]
69#[doc(alias = "IER")]
70pub type Ier = crate::Reg<ier::IerSpec>;
71#[doc = "Регистр разрешения прерываний"]
72pub mod ier;
73#[doc = "CFGR (rw) register accessor: Регистр конфигурации\n\nYou can [`read`](crate::Reg::read) this register and get [`cfgr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfgr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfgr`]
74module"]
75#[doc(alias = "CFGR")]
76pub type Cfgr = crate::Reg<cfgr::CfgrSpec>;
77#[doc = "Регистр конфигурации"]
78pub mod cfgr;
79#[doc = "CR (rw) register accessor: Регистр управления\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`]
80module"]
81#[doc(alias = "CR")]
82pub type Cr = crate::Reg<cr::CrSpec>;
83#[doc = "Регистр управления"]
84pub mod cr;
85#[doc = "CMP (rw) register accessor: Регистр сравнения\n\nYou can [`read`](crate::Reg::read) this register and get [`cmp::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmp::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmp`]
86module"]
87#[doc(alias = "CMP")]
88pub type Cmp = crate::Reg<cmp::CmpSpec>;
89#[doc = "Регистр сравнения"]
90pub mod cmp;
91#[doc = "ARR (rw) register accessor: Регистр автоматической перезагрузки\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@arr`]
92module"]
93#[doc(alias = "ARR")]
94pub type Arr = crate::Reg<arr::ArrSpec>;
95#[doc = "Регистр автоматической перезагрузки"]
96pub mod arr;
97#[doc = "CNT (rw) register accessor: Регистр счётчика\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cnt`]
98module"]
99#[doc(alias = "CNT")]
100pub type Cnt = crate::Reg<cnt::CntSpec>;
101#[doc = "Регистр счётчика"]
102pub mod cnt;