Skip to main content

mik32_pac/
timer16_0.rs

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`] module"]
56#[doc(alias = "ISR")]
57pub type Isr = crate::Reg<isr::IsrSpec>;
58#[doc = "Регистр флагов прерываний"]
59pub mod isr;
60#[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`] module"]
61#[doc(alias = "ICR")]
62pub type Icr = crate::Reg<icr::IcrSpec>;
63#[doc = "Регистр сброса флагов прерываний"]
64pub mod icr;
65#[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`] module"]
66#[doc(alias = "IER")]
67pub type Ier = crate::Reg<ier::IerSpec>;
68#[doc = "Регистр разрешения прерываний"]
69pub mod ier;
70#[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`] module"]
71#[doc(alias = "CFGR")]
72pub type Cfgr = crate::Reg<cfgr::CfgrSpec>;
73#[doc = "Регистр конфигурации"]
74pub mod cfgr;
75#[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`] module"]
76#[doc(alias = "CR")]
77pub type Cr = crate::Reg<cr::CrSpec>;
78#[doc = "Регистр управления"]
79pub mod cr;
80#[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`] module"]
81#[doc(alias = "CMP")]
82pub type Cmp = crate::Reg<cmp::CmpSpec>;
83#[doc = "Регистр сравнения"]
84pub mod cmp;
85#[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`] module"]
86#[doc(alias = "ARR")]
87pub type Arr = crate::Reg<arr::ArrSpec>;
88#[doc = "Регистр автоматической перезагрузки"]
89pub mod arr;
90#[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`] module"]
91#[doc(alias = "CNT")]
92pub type Cnt = crate::Reg<cnt::CntSpec>;
93#[doc = "Регистр счётчика"]
94pub mod cnt;