1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 pwmcr: Pwmcr,
5 pwmpr: Pwmpr,
6 pwmhr: Pwmhr,
7 _reserved3: [u8; 0x04],
8 pwmei: Pwmei,
9 pwmdi: Pwmdi,
10 pwmri: Pwmri,
11 pwmis: Pwmis,
12}
13impl RegisterBlock {
14 #[doc = "0x00 - PWM Control Register"]
15 #[inline(always)]
16 pub const fn pwmcr(&self) -> &Pwmcr {
17 &self.pwmcr
18 }
19 #[doc = "0x04 - PWM Period Register. Number of system clock cycles indicating the period of PWM cycle.The minimum and maximum values have special significance. 0x0: pwm_output continually high 0xFFFFFFFF: pwm_output continually low"]
20 #[inline(always)]
21 pub const fn pwmpr(&self) -> &Pwmpr {
22 &self.pwmpr
23 }
24 #[doc = "0x08 - PWM High Iime Register. This register contains the number of system clock cycles for during which the pwm_output should be kept high in a PWM cycle"]
25 #[inline(always)]
26 pub const fn pwmhr(&self) -> &Pwmhr {
27 &self.pwmhr
28 }
29 #[doc = "0x10 - PWM Enable Interrupt Register"]
30 #[inline(always)]
31 pub const fn pwmei(&self) -> &Pwmei {
32 &self.pwmei
33 }
34 #[doc = "0x14 - PWM Disable Interrupt Register"]
35 #[inline(always)]
36 pub const fn pwmdi(&self) -> &Pwmdi {
37 &self.pwmdi
38 }
39 #[doc = "0x18 - PWM Read Intr Enable Register.Reading from this address accesses the current state of the interrupt control registers"]
40 #[inline(always)]
41 pub const fn pwmri(&self) -> &Pwmri {
42 &self.pwmri
43 }
44 #[doc = "0x1c - PWM Read Interrupt Status Register"]
45 #[inline(always)]
46 pub const fn pwmis(&self) -> &Pwmis {
47 &self.pwmis
48 }
49}
50#[doc = "PWMCR (rw) register accessor: PWM Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pwmcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwmcr::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@pwmcr`]
51module"]
52#[doc(alias = "PWMCR")]
53pub type Pwmcr = crate::Reg<pwmcr::PwmcrSpec>;
54#[doc = "PWM Control Register"]
55pub mod pwmcr;
56#[doc = "PWMPR (rw) register accessor: PWM Period Register. Number of system clock cycles indicating the period of PWM cycle.The minimum and maximum values have special significance. 0x0: pwm_output continually high 0xFFFFFFFF: pwm_output continually low\n\nYou can [`read`](crate::Reg::read) this register and get [`pwmpr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwmpr::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@pwmpr`]
57module"]
58#[doc(alias = "PWMPR")]
59pub type Pwmpr = crate::Reg<pwmpr::PwmprSpec>;
60#[doc = "PWM Period Register. Number of system clock cycles indicating the period of PWM cycle.The minimum and maximum values have special significance. 0x0: pwm_output continually high 0xFFFFFFFF: pwm_output continually low"]
61pub mod pwmpr;
62#[doc = "PWMHR (rw) register accessor: PWM High Iime Register. This register contains the number of system clock cycles for during which the pwm_output should be kept high in a PWM cycle\n\nYou can [`read`](crate::Reg::read) this register and get [`pwmhr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwmhr::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@pwmhr`]
63module"]
64#[doc(alias = "PWMHR")]
65pub type Pwmhr = crate::Reg<pwmhr::PwmhrSpec>;
66#[doc = "PWM High Iime Register. This register contains the number of system clock cycles for during which the pwm_output should be kept high in a PWM cycle"]
67pub mod pwmhr;
68#[doc = "PWMEI (w) register accessor: PWM Enable Interrupt Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwmei::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwmei`]
69module"]
70#[doc(alias = "PWMEI")]
71pub type Pwmei = crate::Reg<pwmei::PwmeiSpec>;
72#[doc = "PWM Enable Interrupt Register"]
73pub mod pwmei;
74#[doc = "PWMDI (w) register accessor: PWM Disable Interrupt Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwmdi::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwmdi`]
75module"]
76#[doc(alias = "PWMDI")]
77pub type Pwmdi = crate::Reg<pwmdi::PwmdiSpec>;
78#[doc = "PWM Disable Interrupt Register"]
79pub mod pwmdi;
80#[doc = "PWMRI (r) register accessor: PWM Read Intr Enable Register.Reading from this address accesses the current state of the interrupt control registers\n\nYou can [`read`](crate::Reg::read) this register and get [`pwmri::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwmri`]
81module"]
82#[doc(alias = "PWMRI")]
83pub type Pwmri = crate::Reg<pwmri::PwmriSpec>;
84#[doc = "PWM Read Intr Enable Register.Reading from this address accesses the current state of the interrupt control registers"]
85pub mod pwmri;
86#[doc = "PWMIS (r) register accessor: PWM Read Interrupt Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pwmis::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwmis`]
87module"]
88#[doc(alias = "PWMIS")]
89pub type Pwmis = crate::Reg<pwmis::PwmisSpec>;
90#[doc = "PWM Read Interrupt Status Register"]
91pub mod pwmis;