1#[doc = "Register `OSCUPD` writer"]
2pub type W = crate::W<OscupdSpec>;
3#[doc = "Field `OSCUPH0` writer - Output Selection Clear for PWMH output of the channel 0"]
4pub type Oscuph0W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `OSCUPH1` writer - Output Selection Clear for PWMH output of the channel 1"]
6pub type Oscuph1W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `OSCUPH2` writer - Output Selection Clear for PWMH output of the channel 2"]
8pub type Oscuph2W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `OSCUPH3` writer - Output Selection Clear for PWMH output of the channel 3"]
10pub type Oscuph3W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `OSCUPL0` writer - Output Selection Clear for PWML output of the channel 0"]
12pub type Oscupl0W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `OSCUPL1` writer - Output Selection Clear for PWML output of the channel 1"]
14pub type Oscupl1W<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `OSCUPL2` writer - Output Selection Clear for PWML output of the channel 2"]
16pub type Oscupl2W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `OSCUPL3` writer - Output Selection Clear for PWML output of the channel 3"]
18pub type Oscupl3W<'a, REG> = crate::BitWriter<'a, REG>;
19impl W {
20 #[doc = "Bit 0 - Output Selection Clear for PWMH output of the channel 0"]
21 #[inline(always)]
22 #[must_use]
23 pub fn oscuph0(&mut self) -> Oscuph0W<OscupdSpec> {
24 Oscuph0W::new(self, 0)
25 }
26 #[doc = "Bit 1 - Output Selection Clear for PWMH output of the channel 1"]
27 #[inline(always)]
28 #[must_use]
29 pub fn oscuph1(&mut self) -> Oscuph1W<OscupdSpec> {
30 Oscuph1W::new(self, 1)
31 }
32 #[doc = "Bit 2 - Output Selection Clear for PWMH output of the channel 2"]
33 #[inline(always)]
34 #[must_use]
35 pub fn oscuph2(&mut self) -> Oscuph2W<OscupdSpec> {
36 Oscuph2W::new(self, 2)
37 }
38 #[doc = "Bit 3 - Output Selection Clear for PWMH output of the channel 3"]
39 #[inline(always)]
40 #[must_use]
41 pub fn oscuph3(&mut self) -> Oscuph3W<OscupdSpec> {
42 Oscuph3W::new(self, 3)
43 }
44 #[doc = "Bit 16 - Output Selection Clear for PWML output of the channel 0"]
45 #[inline(always)]
46 #[must_use]
47 pub fn oscupl0(&mut self) -> Oscupl0W<OscupdSpec> {
48 Oscupl0W::new(self, 16)
49 }
50 #[doc = "Bit 17 - Output Selection Clear for PWML output of the channel 1"]
51 #[inline(always)]
52 #[must_use]
53 pub fn oscupl1(&mut self) -> Oscupl1W<OscupdSpec> {
54 Oscupl1W::new(self, 17)
55 }
56 #[doc = "Bit 18 - Output Selection Clear for PWML output of the channel 2"]
57 #[inline(always)]
58 #[must_use]
59 pub fn oscupl2(&mut self) -> Oscupl2W<OscupdSpec> {
60 Oscupl2W::new(self, 18)
61 }
62 #[doc = "Bit 19 - Output Selection Clear for PWML output of the channel 3"]
63 #[inline(always)]
64 #[must_use]
65 pub fn oscupl3(&mut self) -> Oscupl3W<OscupdSpec> {
66 Oscupl3W::new(self, 19)
67 }
68}
69#[doc = "PWM Output Selection Clear Update Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`oscupd::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
70pub struct OscupdSpec;
71impl crate::RegisterSpec for OscupdSpec {
72 type Ux = u32;
73}
74#[doc = "`write(|w| ..)` method takes [`oscupd::W`](W) writer structure"]
75impl crate::Writable for OscupdSpec {
76 type Safety = crate::Unsafe;
77 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
78 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
79}