atsam3s8b/rtc/
ier.rs

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>;
13#[doc = "Field `TDERREN` writer - Time and/or Date Error Interrupt Enable"]
14pub type TderrenW<'a, REG> = crate::BitWriter<'a, REG>;
15impl W {
16    #[doc = "Bit 0 - Acknowledge Update Interrupt Enable"]
17    #[inline(always)]
18    #[must_use]
19    pub fn acken(&mut self) -> AckenW<IerSpec> {
20        AckenW::new(self, 0)
21    }
22    #[doc = "Bit 1 - Alarm Interrupt Enable"]
23    #[inline(always)]
24    #[must_use]
25    pub fn alren(&mut self) -> AlrenW<IerSpec> {
26        AlrenW::new(self, 1)
27    }
28    #[doc = "Bit 2 - Second Event Interrupt Enable"]
29    #[inline(always)]
30    #[must_use]
31    pub fn secen(&mut self) -> SecenW<IerSpec> {
32        SecenW::new(self, 2)
33    }
34    #[doc = "Bit 3 - Time Event Interrupt Enable"]
35    #[inline(always)]
36    #[must_use]
37    pub fn timen(&mut self) -> TimenW<IerSpec> {
38        TimenW::new(self, 3)
39    }
40    #[doc = "Bit 4 - Calendar Event Interrupt Enable"]
41    #[inline(always)]
42    #[must_use]
43    pub fn calen(&mut self) -> CalenW<IerSpec> {
44        CalenW::new(self, 4)
45    }
46    #[doc = "Bit 5 - Time and/or Date Error Interrupt Enable"]
47    #[inline(always)]
48    #[must_use]
49    pub fn tderren(&mut self) -> TderrenW<IerSpec> {
50        TderrenW::new(self, 5)
51    }
52}
53#[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)."]
54pub struct IerSpec;
55impl crate::RegisterSpec for IerSpec {
56    type Ux = u32;
57}
58#[doc = "`write(|w| ..)` method takes [`ier::W`](W) writer structure"]
59impl crate::Writable for IerSpec {
60    type Safety = crate::Unsafe;
61    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
62    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
63}