esp32c2/ledc/
timer.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Cluster TIMER%s, containing TIMER?_CONF, TIMER?_VALUE"]
4pub struct TIMER {
5    conf: CONF,
6    value: VALUE,
7}
8impl TIMER {
9    #[doc = "0x00 - Timer 0 configuration"]
10    #[inline(always)]
11    pub const fn conf(&self) -> &CONF {
12        &self.conf
13    }
14    #[doc = "0x04 - Timer 0 current counter value"]
15    #[inline(always)]
16    pub const fn value(&self) -> &VALUE {
17        &self.value
18    }
19}
20#[doc = "CONF (rw) register accessor: Timer 0 configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`conf::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`conf::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@conf`] module"]
21pub type CONF = crate::Reg<conf::CONF_SPEC>;
22#[doc = "Timer 0 configuration"]
23pub mod conf;
24#[doc = "VALUE (r) register accessor: Timer 0 current counter value\n\nYou can [`read`](crate::Reg::read) this register and get [`value::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@value`] module"]
25pub type VALUE = crate::Reg<value::VALUE_SPEC>;
26#[doc = "Timer 0 current counter value"]
27pub mod value;