efm32pg1b_pac/letimer0/
ien.rs1pub type R = crate::R<IENrs>;
3pub type W = crate::W<IENrs>;
5pub type Comp0R = crate::BitReader;
7pub type Comp0W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type Comp1R = crate::BitReader;
11pub type Comp1W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type UfR = crate::BitReader;
15pub type UfW<'a, REG> = crate::BitWriter<'a, REG>;
17pub type Rep0R = crate::BitReader;
19pub type Rep0W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type Rep1R = crate::BitReader;
23pub type Rep1W<'a, REG> = crate::BitWriter<'a, REG>;
25impl R {
26 #[inline(always)]
28 pub fn comp0(&self) -> Comp0R {
29 Comp0R::new((self.bits & 1) != 0)
30 }
31 #[inline(always)]
33 pub fn comp1(&self) -> Comp1R {
34 Comp1R::new(((self.bits >> 1) & 1) != 0)
35 }
36 #[inline(always)]
38 pub fn uf(&self) -> UfR {
39 UfR::new(((self.bits >> 2) & 1) != 0)
40 }
41 #[inline(always)]
43 pub fn rep0(&self) -> Rep0R {
44 Rep0R::new(((self.bits >> 3) & 1) != 0)
45 }
46 #[inline(always)]
48 pub fn rep1(&self) -> Rep1R {
49 Rep1R::new(((self.bits >> 4) & 1) != 0)
50 }
51}
52impl core::fmt::Debug for R {
53 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
54 f.debug_struct("IEN")
55 .field("comp0", &self.comp0())
56 .field("comp1", &self.comp1())
57 .field("uf", &self.uf())
58 .field("rep0", &self.rep0())
59 .field("rep1", &self.rep1())
60 .finish()
61 }
62}
63impl W {
64 #[inline(always)]
66 pub fn comp0(&mut self) -> Comp0W<'_, IENrs> {
67 Comp0W::new(self, 0)
68 }
69 #[inline(always)]
71 pub fn comp1(&mut self) -> Comp1W<'_, IENrs> {
72 Comp1W::new(self, 1)
73 }
74 #[inline(always)]
76 pub fn uf(&mut self) -> UfW<'_, IENrs> {
77 UfW::new(self, 2)
78 }
79 #[inline(always)]
81 pub fn rep0(&mut self) -> Rep0W<'_, IENrs> {
82 Rep0W::new(self, 3)
83 }
84 #[inline(always)]
86 pub fn rep1(&mut self) -> Rep1W<'_, IENrs> {
87 Rep1W::new(self, 4)
88 }
89}
90pub struct IENrs;
94impl crate::RegisterSpec for IENrs {
95 type Ux = u32;
96}
97impl crate::Readable for IENrs {}
99impl crate::Writable for IENrs {
101 type Safety = crate::Unsafe;
102}
103impl crate::Resettable for IENrs {}