esp32s3/mcpwm0/
timer.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Cluster TIMER%s, containing TIMER?_CFG0, TIMER?_CFG1, TIMER?_SYNC, TIMER?_STATUS"]
4pub struct TIMER {
5    cfg0: CFG0,
6    cfg1: CFG1,
7    sync: SYNC,
8    status: STATUS,
9}
10impl TIMER {
11    #[doc = "0x00 - PWM TIMERx period and update method configuration register."]
12    #[inline(always)]
13    pub const fn cfg0(&self) -> &CFG0 {
14        &self.cfg0
15    }
16    #[doc = "0x04 - PWM TIMERx working mode and start/stop control configuration register."]
17    #[inline(always)]
18    pub const fn cfg1(&self) -> &CFG1 {
19        &self.cfg1
20    }
21    #[doc = "0x08 - PWM TIMERx sync function configuration register."]
22    #[inline(always)]
23    pub const fn sync(&self) -> &SYNC {
24        &self.sync
25    }
26    #[doc = "0x0c - PWM TIMERx status register."]
27    #[inline(always)]
28    pub const fn status(&self) -> &STATUS {
29        &self.status
30    }
31}
32#[doc = "CFG0 (rw) register accessor: PWM TIMERx period and update method configuration register.\n\nYou can [`read`](crate::Reg::read) this register and get [`cfg0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfg0::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@cfg0`] module"]
33pub type CFG0 = crate::Reg<cfg0::CFG0_SPEC>;
34#[doc = "PWM TIMERx period and update method configuration register."]
35pub mod cfg0;
36#[doc = "CFG1 (rw) register accessor: PWM TIMERx working mode and start/stop control configuration register.\n\nYou can [`read`](crate::Reg::read) this register and get [`cfg1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfg1::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@cfg1`] module"]
37pub type CFG1 = crate::Reg<cfg1::CFG1_SPEC>;
38#[doc = "PWM TIMERx working mode and start/stop control configuration register."]
39pub mod cfg1;
40#[doc = "SYNC (rw) register accessor: PWM TIMERx sync function configuration register.\n\nYou can [`read`](crate::Reg::read) this register and get [`sync::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sync::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@sync`] module"]
41pub type SYNC = crate::Reg<sync::SYNC_SPEC>;
42#[doc = "PWM TIMERx sync function configuration register."]
43pub mod sync;
44#[doc = "STATUS (r) register accessor: PWM TIMERx status register.\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status`] module"]
45pub type STATUS = crate::Reg<status::STATUS_SPEC>;
46#[doc = "PWM TIMERx status register."]
47pub mod status;