1#[doc = "Register `IMR` reader"]
2pub type R = crate::R<ImrSpec>;
3#[doc = "Field `TXCOMP` reader - Transmission Completed Interrupt Mask"]
4pub type TxcompR = crate::BitReader;
5#[doc = "Field `RXRDY` reader - Receive Holding Register Ready Interrupt Mask"]
6pub type RxrdyR = crate::BitReader;
7#[doc = "Field `TXRDY` reader - Transmit Holding Register Ready Interrupt Mask"]
8pub type TxrdyR = crate::BitReader;
9#[doc = "Field `SVACC` reader - Slave Access Interrupt Mask"]
10pub type SvaccR = crate::BitReader;
11#[doc = "Field `GACC` reader - General Call Access Interrupt Mask"]
12pub type GaccR = crate::BitReader;
13#[doc = "Field `OVRE` reader - Overrun Error Interrupt Mask"]
14pub type OvreR = crate::BitReader;
15#[doc = "Field `NACK` reader - Not Acknowledge Interrupt Mask"]
16pub type NackR = crate::BitReader;
17#[doc = "Field `ARBLST` reader - Arbitration Lost Interrupt Mask"]
18pub type ArblstR = crate::BitReader;
19#[doc = "Field `SCL_WS` reader - Clock Wait State Interrupt Mask"]
20pub type SclWsR = crate::BitReader;
21#[doc = "Field `EOSACC` reader - End Of Slave Access Interrupt Mask"]
22pub type EosaccR = crate::BitReader;
23#[doc = "Field `ENDRX` reader - End of Receive Buffer Interrupt Mask"]
24pub type EndrxR = crate::BitReader;
25#[doc = "Field `ENDTX` reader - End of Transmit Buffer Interrupt Mask"]
26pub type EndtxR = crate::BitReader;
27#[doc = "Field `RXBUFF` reader - Receive Buffer Full Interrupt Mask"]
28pub type RxbuffR = crate::BitReader;
29#[doc = "Field `TXBUFE` reader - Transmit Buffer Empty Interrupt Mask"]
30pub type TxbufeR = crate::BitReader;
31impl R {
32 #[doc = "Bit 0 - Transmission Completed Interrupt Mask"]
33 #[inline(always)]
34 pub fn txcomp(&self) -> TxcompR {
35 TxcompR::new((self.bits & 1) != 0)
36 }
37 #[doc = "Bit 1 - Receive Holding Register Ready Interrupt Mask"]
38 #[inline(always)]
39 pub fn rxrdy(&self) -> RxrdyR {
40 RxrdyR::new(((self.bits >> 1) & 1) != 0)
41 }
42 #[doc = "Bit 2 - Transmit Holding Register Ready Interrupt Mask"]
43 #[inline(always)]
44 pub fn txrdy(&self) -> TxrdyR {
45 TxrdyR::new(((self.bits >> 2) & 1) != 0)
46 }
47 #[doc = "Bit 4 - Slave Access Interrupt Mask"]
48 #[inline(always)]
49 pub fn svacc(&self) -> SvaccR {
50 SvaccR::new(((self.bits >> 4) & 1) != 0)
51 }
52 #[doc = "Bit 5 - General Call Access Interrupt Mask"]
53 #[inline(always)]
54 pub fn gacc(&self) -> GaccR {
55 GaccR::new(((self.bits >> 5) & 1) != 0)
56 }
57 #[doc = "Bit 6 - Overrun Error Interrupt Mask"]
58 #[inline(always)]
59 pub fn ovre(&self) -> OvreR {
60 OvreR::new(((self.bits >> 6) & 1) != 0)
61 }
62 #[doc = "Bit 8 - Not Acknowledge Interrupt Mask"]
63 #[inline(always)]
64 pub fn nack(&self) -> NackR {
65 NackR::new(((self.bits >> 8) & 1) != 0)
66 }
67 #[doc = "Bit 9 - Arbitration Lost Interrupt Mask"]
68 #[inline(always)]
69 pub fn arblst(&self) -> ArblstR {
70 ArblstR::new(((self.bits >> 9) & 1) != 0)
71 }
72 #[doc = "Bit 10 - Clock Wait State Interrupt Mask"]
73 #[inline(always)]
74 pub fn scl_ws(&self) -> SclWsR {
75 SclWsR::new(((self.bits >> 10) & 1) != 0)
76 }
77 #[doc = "Bit 11 - End Of Slave Access Interrupt Mask"]
78 #[inline(always)]
79 pub fn eosacc(&self) -> EosaccR {
80 EosaccR::new(((self.bits >> 11) & 1) != 0)
81 }
82 #[doc = "Bit 12 - End of Receive Buffer Interrupt Mask"]
83 #[inline(always)]
84 pub fn endrx(&self) -> EndrxR {
85 EndrxR::new(((self.bits >> 12) & 1) != 0)
86 }
87 #[doc = "Bit 13 - End of Transmit Buffer Interrupt Mask"]
88 #[inline(always)]
89 pub fn endtx(&self) -> EndtxR {
90 EndtxR::new(((self.bits >> 13) & 1) != 0)
91 }
92 #[doc = "Bit 14 - Receive Buffer Full Interrupt Mask"]
93 #[inline(always)]
94 pub fn rxbuff(&self) -> RxbuffR {
95 RxbuffR::new(((self.bits >> 14) & 1) != 0)
96 }
97 #[doc = "Bit 15 - Transmit Buffer Empty Interrupt Mask"]
98 #[inline(always)]
99 pub fn txbufe(&self) -> TxbufeR {
100 TxbufeR::new(((self.bits >> 15) & 1) != 0)
101 }
102}
103#[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)."]
104pub struct ImrSpec;
105impl crate::RegisterSpec for ImrSpec {
106 type Ux = u32;
107}
108#[doc = "`read()` method returns [`imr::R`](R) reader structure"]
109impl crate::Readable for ImrSpec {}
110#[doc = "`reset()` method sets IMR to value 0"]
111impl crate::Resettable for ImrSpec {
112 const RESET_VALUE: u32 = 0;
113}