1#[doc = "Register `DIS` writer"]
2pub type W = crate::W<DisSpec>;
3#[doc = "Field `CHID0` writer - Channel ID"]
4pub type Chid0W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `CHID1` writer - Channel ID"]
6pub type Chid1W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `CHID2` writer - Channel ID"]
8pub type Chid2W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CHID3` writer - Channel ID"]
10pub type Chid3W<'a, REG> = crate::BitWriter<'a, REG>;
11impl W {
12 #[doc = "Bit 0 - Channel ID"]
13 #[inline(always)]
14 #[must_use]
15 pub fn chid0(&mut self) -> Chid0W<DisSpec> {
16 Chid0W::new(self, 0)
17 }
18 #[doc = "Bit 1 - Channel ID"]
19 #[inline(always)]
20 #[must_use]
21 pub fn chid1(&mut self) -> Chid1W<DisSpec> {
22 Chid1W::new(self, 1)
23 }
24 #[doc = "Bit 2 - Channel ID"]
25 #[inline(always)]
26 #[must_use]
27 pub fn chid2(&mut self) -> Chid2W<DisSpec> {
28 Chid2W::new(self, 2)
29 }
30 #[doc = "Bit 3 - Channel ID"]
31 #[inline(always)]
32 #[must_use]
33 pub fn chid3(&mut self) -> Chid3W<DisSpec> {
34 Chid3W::new(self, 3)
35 }
36}
37#[doc = "PWM Disable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dis::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct DisSpec;
39impl crate::RegisterSpec for DisSpec {
40 type Ux = u32;
41}
42#[doc = "`write(|w| ..)` method takes [`dis::W`](W) writer structure"]
43impl crate::Writable for DisSpec {
44 type Safety = crate::Unsafe;
45 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
46 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
47}