efm32pg1b_pac/pcnt0/
ien.rs1pub type R = crate::R<IENrs>;
3pub type W = crate::W<IENrs>;
5pub type UfR = crate::BitReader;
7pub type UfW<'a, REG> = crate::BitWriter<'a, REG>;
9pub type OfR = crate::BitReader;
11pub type OfW<'a, REG> = crate::BitWriter<'a, REG>;
13pub type DircngR = crate::BitReader;
15pub type DircngW<'a, REG> = crate::BitWriter<'a, REG>;
17pub type AuxofR = crate::BitReader;
19pub type AuxofW<'a, REG> = crate::BitWriter<'a, REG>;
21pub type TccR = crate::BitReader;
23pub type TccW<'a, REG> = crate::BitWriter<'a, REG>;
25pub type OqsterrR = crate::BitReader;
27pub type OqsterrW<'a, REG> = crate::BitWriter<'a, REG>;
29impl R {
30 #[inline(always)]
32 pub fn uf(&self) -> UfR {
33 UfR::new((self.bits & 1) != 0)
34 }
35 #[inline(always)]
37 pub fn of(&self) -> OfR {
38 OfR::new(((self.bits >> 1) & 1) != 0)
39 }
40 #[inline(always)]
42 pub fn dircng(&self) -> DircngR {
43 DircngR::new(((self.bits >> 2) & 1) != 0)
44 }
45 #[inline(always)]
47 pub fn auxof(&self) -> AuxofR {
48 AuxofR::new(((self.bits >> 3) & 1) != 0)
49 }
50 #[inline(always)]
52 pub fn tcc(&self) -> TccR {
53 TccR::new(((self.bits >> 4) & 1) != 0)
54 }
55 #[inline(always)]
57 pub fn oqsterr(&self) -> OqsterrR {
58 OqsterrR::new(((self.bits >> 5) & 1) != 0)
59 }
60}
61impl core::fmt::Debug for R {
62 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
63 f.debug_struct("IEN")
64 .field("uf", &self.uf())
65 .field("of", &self.of())
66 .field("dircng", &self.dircng())
67 .field("auxof", &self.auxof())
68 .field("tcc", &self.tcc())
69 .field("oqsterr", &self.oqsterr())
70 .finish()
71 }
72}
73impl W {
74 #[inline(always)]
76 pub fn uf(&mut self) -> UfW<'_, IENrs> {
77 UfW::new(self, 0)
78 }
79 #[inline(always)]
81 pub fn of(&mut self) -> OfW<'_, IENrs> {
82 OfW::new(self, 1)
83 }
84 #[inline(always)]
86 pub fn dircng(&mut self) -> DircngW<'_, IENrs> {
87 DircngW::new(self, 2)
88 }
89 #[inline(always)]
91 pub fn auxof(&mut self) -> AuxofW<'_, IENrs> {
92 AuxofW::new(self, 3)
93 }
94 #[inline(always)]
96 pub fn tcc(&mut self) -> TccW<'_, IENrs> {
97 TccW::new(self, 4)
98 }
99 #[inline(always)]
101 pub fn oqsterr(&mut self) -> OqsterrW<'_, IENrs> {
102 OqsterrW::new(self, 5)
103 }
104}
105pub struct IENrs;
109impl crate::RegisterSpec for IENrs {
110 type Ux = u32;
111}
112impl crate::Readable for IENrs {}
114impl crate::Writable for IENrs {
116 type Safety = crate::Unsafe;
117}
118impl crate::Resettable for IENrs {}