1#[doc = "Register `IMR` reader"]
2pub type R = crate::R<ImrSpec>;
3#[doc = "Field `ACK` reader - Acknowledge Update Interrupt Mask"]
4pub type AckR = crate::BitReader;
5#[doc = "Field `ALR` reader - Alarm Interrupt Mask"]
6pub type AlrR = crate::BitReader;
7#[doc = "Field `SEC` reader - Second Event Interrupt Mask"]
8pub type SecR = crate::BitReader;
9#[doc = "Field `TIM` reader - Time Event Interrupt Mask"]
10pub type TimR = crate::BitReader;
11#[doc = "Field `CAL` reader - Calendar Event Interrupt Mask"]
12pub type CalR = crate::BitReader;
13impl R {
14 #[doc = "Bit 0 - Acknowledge Update Interrupt Mask"]
15 #[inline(always)]
16 pub fn ack(&self) -> AckR {
17 AckR::new((self.bits & 1) != 0)
18 }
19 #[doc = "Bit 1 - Alarm Interrupt Mask"]
20 #[inline(always)]
21 pub fn alr(&self) -> AlrR {
22 AlrR::new(((self.bits >> 1) & 1) != 0)
23 }
24 #[doc = "Bit 2 - Second Event Interrupt Mask"]
25 #[inline(always)]
26 pub fn sec(&self) -> SecR {
27 SecR::new(((self.bits >> 2) & 1) != 0)
28 }
29 #[doc = "Bit 3 - Time Event Interrupt Mask"]
30 #[inline(always)]
31 pub fn tim(&self) -> TimR {
32 TimR::new(((self.bits >> 3) & 1) != 0)
33 }
34 #[doc = "Bit 4 - Calendar Event Interrupt Mask"]
35 #[inline(always)]
36 pub fn cal(&self) -> CalR {
37 CalR::new(((self.bits >> 4) & 1) != 0)
38 }
39}
40#[doc = "Interrupt Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
41pub struct ImrSpec;
42impl crate::RegisterSpec for ImrSpec {
43 type Ux = u32;
44}
45#[doc = "`read()` method returns [`imr::R`](R) reader structure"]
46impl crate::Readable for ImrSpec {}
47#[doc = "`reset()` method sets IMR to value 0"]
48impl crate::Resettable for ImrSpec {
49 const RESET_VALUE: u32 = 0;
50}