1#[doc = "Register `IER` writer"]
2pub type W = crate::W<IerSpec>;
3#[doc = "Field `ACKEN` writer - Acknowledge Update Interrupt Enable"]
4pub type AckenW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `ALREN` writer - Alarm Interrupt Enable"]
6pub type AlrenW<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `SECEN` writer - Second Event Interrupt Enable"]
8pub type SecenW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TIMEN` writer - Time Event Interrupt Enable"]
10pub type TimenW<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `CALEN` writer - Calendar Event Interrupt Enable"]
12pub type CalenW<'a, REG> = crate::BitWriter<'a, REG>;
13impl W {
14 #[doc = "Bit 0 - Acknowledge Update Interrupt Enable"]
15 #[inline(always)]
16 #[must_use]
17 pub fn acken(&mut self) -> AckenW<IerSpec> {
18 AckenW::new(self, 0)
19 }
20 #[doc = "Bit 1 - Alarm Interrupt Enable"]
21 #[inline(always)]
22 #[must_use]
23 pub fn alren(&mut self) -> AlrenW<IerSpec> {
24 AlrenW::new(self, 1)
25 }
26 #[doc = "Bit 2 - Second Event Interrupt Enable"]
27 #[inline(always)]
28 #[must_use]
29 pub fn secen(&mut self) -> SecenW<IerSpec> {
30 SecenW::new(self, 2)
31 }
32 #[doc = "Bit 3 - Time Event Interrupt Enable"]
33 #[inline(always)]
34 #[must_use]
35 pub fn timen(&mut self) -> TimenW<IerSpec> {
36 TimenW::new(self, 3)
37 }
38 #[doc = "Bit 4 - Calendar Event Interrupt Enable"]
39 #[inline(always)]
40 #[must_use]
41 pub fn calen(&mut self) -> CalenW<IerSpec> {
42 CalenW::new(self, 4)
43 }
44}
45#[doc = "Interrupt Enable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ier::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
46pub struct IerSpec;
47impl crate::RegisterSpec for IerSpec {
48 type Ux = u32;
49}
50#[doc = "`write(|w| ..)` method takes [`ier::W`](W) writer structure"]
51impl crate::Writable for IerSpec {
52 type Safety = crate::Unsafe;
53 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
54 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
55}