esp32c2/timg0/
t.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
4pub struct T {
5    config: CONFIG,
6    lo: LO,
7    hi: HI,
8    update: UPDATE,
9    alarmlo: ALARMLO,
10    alarmhi: ALARMHI,
11    loadlo: LOADLO,
12    loadhi: LOADHI,
13    load: LOAD,
14}
15impl T {
16    #[doc = "0x00 - Timer %s configuration register"]
17    #[inline(always)]
18    pub const fn config(&self) -> &CONFIG {
19        &self.config
20    }
21    #[doc = "0x04 - Timer %s current value, low 32 bits"]
22    #[inline(always)]
23    pub const fn lo(&self) -> &LO {
24        &self.lo
25    }
26    #[doc = "0x08 - Timer %s current value, high 22 bits"]
27    #[inline(always)]
28    pub const fn hi(&self) -> &HI {
29        &self.hi
30    }
31    #[doc = "0x0c - Write to copy current timer value to TIMGn_T%s_(LO/HI)_REG"]
32    #[inline(always)]
33    pub const fn update(&self) -> &UPDATE {
34        &self.update
35    }
36    #[doc = "0x10 - Timer %s alarm value, low 32 bits"]
37    #[inline(always)]
38    pub const fn alarmlo(&self) -> &ALARMLO {
39        &self.alarmlo
40    }
41    #[doc = "0x14 - Timer %s alarm value, high bits"]
42    #[inline(always)]
43    pub const fn alarmhi(&self) -> &ALARMHI {
44        &self.alarmhi
45    }
46    #[doc = "0x18 - Timer %s reload value, low 32 bits"]
47    #[inline(always)]
48    pub const fn loadlo(&self) -> &LOADLO {
49        &self.loadlo
50    }
51    #[doc = "0x1c - Timer %s reload value, high 22 bits"]
52    #[inline(always)]
53    pub const fn loadhi(&self) -> &LOADHI {
54        &self.loadhi
55    }
56    #[doc = "0x20 - Write to reload timer from TIMG_T%s_(LOADLOLOADHI)_REG"]
57    #[inline(always)]
58    pub const fn load(&self) -> &LOAD {
59        &self.load
60    }
61}
62#[doc = "CONFIG (rw) register accessor: Timer %s configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`config::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`config::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@config`] module"]
63pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
64#[doc = "Timer %s configuration register"]
65pub mod config;
66#[doc = "LO (r) register accessor: Timer %s current value, low 32 bits\n\nYou can [`read`](crate::Reg::read) this register and get [`lo::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lo`] module"]
67pub type LO = crate::Reg<lo::LO_SPEC>;
68#[doc = "Timer %s current value, low 32 bits"]
69pub mod lo;
70#[doc = "HI (r) register accessor: Timer %s current value, high 22 bits\n\nYou can [`read`](crate::Reg::read) this register and get [`hi::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hi`] module"]
71pub type HI = crate::Reg<hi::HI_SPEC>;
72#[doc = "Timer %s current value, high 22 bits"]
73pub mod hi;
74#[doc = "UPDATE (rw) register accessor: Write to copy current timer value to TIMGn_T%s_(LO/HI)_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`update::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`update::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@update`] module"]
75pub type UPDATE = crate::Reg<update::UPDATE_SPEC>;
76#[doc = "Write to copy current timer value to TIMGn_T%s_(LO/HI)_REG"]
77pub mod update;
78#[doc = "ALARMLO (rw) register accessor: Timer %s alarm value, low 32 bits\n\nYou can [`read`](crate::Reg::read) this register and get [`alarmlo::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`alarmlo::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@alarmlo`] module"]
79pub type ALARMLO = crate::Reg<alarmlo::ALARMLO_SPEC>;
80#[doc = "Timer %s alarm value, low 32 bits"]
81pub mod alarmlo;
82#[doc = "ALARMHI (rw) register accessor: Timer %s alarm value, high bits\n\nYou can [`read`](crate::Reg::read) this register and get [`alarmhi::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`alarmhi::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@alarmhi`] module"]
83pub type ALARMHI = crate::Reg<alarmhi::ALARMHI_SPEC>;
84#[doc = "Timer %s alarm value, high bits"]
85pub mod alarmhi;
86#[doc = "LOADLO (rw) register accessor: Timer %s reload value, low 32 bits\n\nYou can [`read`](crate::Reg::read) this register and get [`loadlo::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`loadlo::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@loadlo`] module"]
87pub type LOADLO = crate::Reg<loadlo::LOADLO_SPEC>;
88#[doc = "Timer %s reload value, low 32 bits"]
89pub mod loadlo;
90#[doc = "LOADHI (rw) register accessor: Timer %s reload value, high 22 bits\n\nYou can [`read`](crate::Reg::read) this register and get [`loadhi::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`loadhi::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@loadhi`] module"]
91pub type LOADHI = crate::Reg<loadhi::LOADHI_SPEC>;
92#[doc = "Timer %s reload value, high 22 bits"]
93pub mod loadhi;
94#[doc = "LOAD (w) register accessor: Write to reload timer from TIMG_T%s_(LOADLOLOADHI)_REG\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`load::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@load`] module"]
95pub type LOAD = crate::Reg<load::LOAD_SPEC>;
96#[doc = "Write to reload timer from TIMG_T%s_(LOADLOLOADHI)_REG"]
97pub mod load;