#[doc = "Register `IDR1` writer"]
pub type W = crate::W<Idr1Spec>;
#[doc = "Field `CHID0` writer - Counter Event on Channel 0 Interrupt Disable"]
pub type Chid0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID1` writer - Counter Event on Channel 1 Interrupt Disable"]
pub type Chid1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID2` writer - Counter Event on Channel 2 Interrupt Disable"]
pub type Chid2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CHID3` writer - Counter Event on Channel 3 Interrupt Disable"]
pub type Chid3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FCHID0` writer - Fault Protection Trigger on Channel 0 Interrupt Disable"]
pub type Fchid0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FCHID1` writer - Fault Protection Trigger on Channel 1 Interrupt Disable"]
pub type Fchid1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FCHID2` writer - Fault Protection Trigger on Channel 2 Interrupt Disable"]
pub type Fchid2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FCHID3` writer - Fault Protection Trigger on Channel 3 Interrupt Disable"]
pub type Fchid3W<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
#[doc = "Bit 0 - Counter Event on Channel 0 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn chid0(&mut self) -> Chid0W<Idr1Spec> {
Chid0W::new(self, 0)
}
#[doc = "Bit 1 - Counter Event on Channel 1 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn chid1(&mut self) -> Chid1W<Idr1Spec> {
Chid1W::new(self, 1)
}
#[doc = "Bit 2 - Counter Event on Channel 2 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn chid2(&mut self) -> Chid2W<Idr1Spec> {
Chid2W::new(self, 2)
}
#[doc = "Bit 3 - Counter Event on Channel 3 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn chid3(&mut self) -> Chid3W<Idr1Spec> {
Chid3W::new(self, 3)
}
#[doc = "Bit 16 - Fault Protection Trigger on Channel 0 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn fchid0(&mut self) -> Fchid0W<Idr1Spec> {
Fchid0W::new(self, 16)
}
#[doc = "Bit 17 - Fault Protection Trigger on Channel 1 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn fchid1(&mut self) -> Fchid1W<Idr1Spec> {
Fchid1W::new(self, 17)
}
#[doc = "Bit 18 - Fault Protection Trigger on Channel 2 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn fchid2(&mut self) -> Fchid2W<Idr1Spec> {
Fchid2W::new(self, 18)
}
#[doc = "Bit 19 - Fault Protection Trigger on Channel 3 Interrupt Disable"]
#[inline(always)]
#[must_use]
pub fn fchid3(&mut self) -> Fchid3W<Idr1Spec> {
Fchid3W::new(self, 19)
}
}
#[doc = "PWM Interrupt Disable Register 1\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`idr1::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Idr1Spec;
impl crate::RegisterSpec for Idr1Spec {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`idr1::W`](W) writer structure"]
impl crate::Writable for Idr1Spec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}