#[doc = "Register `DIS` writer"]
pub type W = crate::W<DisSpec>;
#[doc = "Field `CHID0` writer - Channel ID"]
pub type Chid0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID1` writer - Channel ID"]
pub type Chid1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID2` writer - Channel ID"]
pub type Chid2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID3` writer - Channel ID"]
pub type Chid3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID4` writer - Channel ID"]
pub type Chid4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID5` writer - Channel ID"]
pub type Chid5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID6` writer - Channel ID"]
pub type Chid6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID7` writer - Channel ID"]
pub type Chid7W<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
#[doc = "Bit 0 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid0(&mut self) -> Chid0W<DisSpec> {
Chid0W::new(self, 0)
}
#[doc = "Bit 1 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid1(&mut self) -> Chid1W<DisSpec> {
Chid1W::new(self, 1)
}
#[doc = "Bit 2 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid2(&mut self) -> Chid2W<DisSpec> {
Chid2W::new(self, 2)
}
#[doc = "Bit 3 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid3(&mut self) -> Chid3W<DisSpec> {
Chid3W::new(self, 3)
}
#[doc = "Bit 4 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid4(&mut self) -> Chid4W<DisSpec> {
Chid4W::new(self, 4)
}
#[doc = "Bit 5 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid5(&mut self) -> Chid5W<DisSpec> {
Chid5W::new(self, 5)
}
#[doc = "Bit 6 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid6(&mut self) -> Chid6W<DisSpec> {
Chid6W::new(self, 6)
}
#[doc = "Bit 7 - Channel ID"]
#[inline(always)]
#[must_use]
pub fn chid7(&mut self) -> Chid7W<DisSpec> {
Chid7W::new(self, 7)
}
}
#[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)."]
pub struct DisSpec;
impl crate::RegisterSpec for DisSpec {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`dis::W`](W) writer structure"]
impl crate::Writable for DisSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}