1#[doc = "Register `IDR` writer"]
2pub type W = crate::W<IdrSpec>;
3#[doc = "Field `ACKDIS` writer - Acknowledge Update Interrupt Disable"]
4pub type AckdisW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `ALRDIS` writer - Alarm Interrupt Disable"]
6pub type AlrdisW<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `SECDIS` writer - Second Event Interrupt Disable"]
8pub type SecdisW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TIMDIS` writer - Time Event Interrupt Disable"]
10pub type TimdisW<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `CALDIS` writer - Calendar Event Interrupt Disable"]
12pub type CaldisW<'a, REG> = crate::BitWriter<'a, REG>;
13impl W {
14 #[doc = "Bit 0 - Acknowledge Update Interrupt Disable"]
15 #[inline(always)]
16 #[must_use]
17 pub fn ackdis(&mut self) -> AckdisW<IdrSpec> {
18 AckdisW::new(self, 0)
19 }
20 #[doc = "Bit 1 - Alarm Interrupt Disable"]
21 #[inline(always)]
22 #[must_use]
23 pub fn alrdis(&mut self) -> AlrdisW<IdrSpec> {
24 AlrdisW::new(self, 1)
25 }
26 #[doc = "Bit 2 - Second Event Interrupt Disable"]
27 #[inline(always)]
28 #[must_use]
29 pub fn secdis(&mut self) -> SecdisW<IdrSpec> {
30 SecdisW::new(self, 2)
31 }
32 #[doc = "Bit 3 - Time Event Interrupt Disable"]
33 #[inline(always)]
34 #[must_use]
35 pub fn timdis(&mut self) -> TimdisW<IdrSpec> {
36 TimdisW::new(self, 3)
37 }
38 #[doc = "Bit 4 - Calendar Event Interrupt Disable"]
39 #[inline(always)]
40 #[must_use]
41 pub fn caldis(&mut self) -> CaldisW<IdrSpec> {
42 CaldisW::new(self, 4)
43 }
44}
45#[doc = "Interrupt Disable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`idr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
46pub struct IdrSpec;
47impl crate::RegisterSpec for IdrSpec {
48 type Ux = u32;
49}
50#[doc = "`write(|w| ..)` method takes [`idr::W`](W) writer structure"]
51impl crate::Writable for IdrSpec {
52 type Safety = crate::Unsafe;
53 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
54 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
55}