Skip to main content

mik32_pac/
timer32_0.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    value: Value,
5    top: Top,
6    prescale: Prescale,
7    control: Control,
8    enable: Enable,
9    int_mask: IntMask,
10    int_clear: IntClear,
11    int_flag: IntFlag,
12}
13impl RegisterBlock {
14    #[doc = "0x00 - "]
15    #[inline(always)]
16    pub const fn value(&self) -> &Value {
17        &self.value
18    }
19    #[doc = "0x04 - максимальное значение счетной последовательности"]
20    #[inline(always)]
21    pub const fn top(&self) -> &Top {
22        &self.top
23    }
24    #[doc = "0x08 - значение делителя"]
25    #[inline(always)]
26    pub const fn prescale(&self) -> &Prescale {
27        &self.prescale
28    }
29    #[doc = "0x0c - Конфигурационный регистр основного таймера"]
30    #[inline(always)]
31    pub const fn control(&self) -> &Control {
32        &self.control
33    }
34    #[doc = "0x10 - Регистр включения таймера"]
35    #[inline(always)]
36    pub const fn enable(&self) -> &Enable {
37        &self.enable
38    }
39    #[doc = "0x14 - Регистр маски прерываний"]
40    #[inline(always)]
41    pub const fn int_mask(&self) -> &IntMask {
42        &self.int_mask
43    }
44    #[doc = "0x18 - Регистр сброса флагов прерываний"]
45    #[inline(always)]
46    pub const fn int_clear(&self) -> &IntClear {
47        &self.int_clear
48    }
49    #[doc = "0x1c - Регистр флагов прерываний"]
50    #[inline(always)]
51    pub const fn int_flag(&self) -> &IntFlag {
52        &self.int_flag
53    }
54}
55#[doc = "VALUE (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`value::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`value::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@value`] module"]
56#[doc(alias = "VALUE")]
57pub type Value = crate::Reg<value::ValueSpec>;
58#[doc = ""]
59pub mod value;
60#[doc = "TOP (rw) register accessor: максимальное значение счетной последовательности\n\nYou can [`read`](crate::Reg::read) this register and get [`top::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`top::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@top`] module"]
61#[doc(alias = "TOP")]
62pub type Top = crate::Reg<top::TopSpec>;
63#[doc = "максимальное значение счетной последовательности"]
64pub mod top;
65#[doc = "PRESCALE (rw) register accessor: значение делителя\n\nYou can [`read`](crate::Reg::read) this register and get [`prescale::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`prescale::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@prescale`] module"]
66#[doc(alias = "PRESCALE")]
67pub type Prescale = crate::Reg<prescale::PrescaleSpec>;
68#[doc = "значение делителя"]
69pub mod prescale;
70#[doc = "CONTROL (rw) register accessor: Конфигурационный регистр основного таймера\n\nYou can [`read`](crate::Reg::read) this register and get [`control::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`control::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@control`] module"]
71#[doc(alias = "CONTROL")]
72pub type Control = crate::Reg<control::ControlSpec>;
73#[doc = "Конфигурационный регистр основного таймера"]
74pub mod control;
75#[doc = "ENABLE (rw) register accessor: Регистр включения таймера\n\nYou can [`read`](crate::Reg::read) this register and get [`enable::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`enable::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@enable`] module"]
76#[doc(alias = "ENABLE")]
77pub type Enable = crate::Reg<enable::EnableSpec>;
78#[doc = "Регистр включения таймера"]
79pub mod enable;
80#[doc = "INT_MASK (rw) register accessor: Регистр маски прерываний\n\nYou can [`read`](crate::Reg::read) this register and get [`int_mask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_mask::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@int_mask`] module"]
81#[doc(alias = "INT_MASK")]
82pub type IntMask = crate::Reg<int_mask::IntMaskSpec>;
83#[doc = "Регистр маски прерываний"]
84pub mod int_mask;
85#[doc = "INT_CLEAR (rw) register accessor: Регистр сброса флагов прерываний\n\nYou can [`read`](crate::Reg::read) this register and get [`int_clear::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_clear::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@int_clear`] module"]
86#[doc(alias = "INT_CLEAR")]
87pub type IntClear = crate::Reg<int_clear::IntClearSpec>;
88#[doc = "Регистр сброса флагов прерываний"]
89pub mod int_clear;
90#[doc = "INT_FLAG (rw) register accessor: Регистр флагов прерываний\n\nYou can [`read`](crate::Reg::read) this register and get [`int_flag::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_flag::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@int_flag`] module"]
91#[doc(alias = "INT_FLAG")]
92pub type IntFlag = crate::Reg<int_flag::IntFlagSpec>;
93#[doc = "Регистр флагов прерываний"]
94pub mod int_flag;