efm32gg12b810_pac/acmp0/
aportreq.rs1#[doc = "Register `APORTREQ` reader"]
2pub struct R(crate::R<APORTREQ_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<APORTREQ_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<APORTREQ_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<APORTREQ_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `APORT0XREQ` reader - 1 If the Bus Connected to APORT0X is Requested"]
17pub type APORT0XREQ_R = crate::BitReader<bool>;
18#[doc = "Field `APORT0YREQ` reader - 1 If the Bus Connected to APORT0Y is Requested"]
19pub type APORT0YREQ_R = crate::BitReader<bool>;
20#[doc = "Field `APORT1XREQ` reader - 1 If the Bus Connected to APORT2X is Requested"]
21pub type APORT1XREQ_R = crate::BitReader<bool>;
22#[doc = "Field `APORT1YREQ` reader - 1 If the Bus Connected to APORT1X is Requested"]
23pub type APORT1YREQ_R = crate::BitReader<bool>;
24#[doc = "Field `APORT2XREQ` reader - 1 If the Bus Connected to APORT2X is Requested"]
25pub type APORT2XREQ_R = crate::BitReader<bool>;
26#[doc = "Field `APORT2YREQ` reader - 1 If the Bus Connected to APORT2Y is Requested"]
27pub type APORT2YREQ_R = crate::BitReader<bool>;
28#[doc = "Field `APORT3XREQ` reader - 1 If the Bus Connected to APORT3X is Requested"]
29pub type APORT3XREQ_R = crate::BitReader<bool>;
30#[doc = "Field `APORT3YREQ` reader - 1 If the Bus Connected to APORT3Y is Requested"]
31pub type APORT3YREQ_R = crate::BitReader<bool>;
32#[doc = "Field `APORT4XREQ` reader - 1 If the Bus Connected to APORT4X is Requested"]
33pub type APORT4XREQ_R = crate::BitReader<bool>;
34#[doc = "Field `APORT4YREQ` reader - 1 If the Bus Connected to APORT4Y is Requested"]
35pub type APORT4YREQ_R = crate::BitReader<bool>;
36impl R {
37 #[doc = "Bit 0 - 1 If the Bus Connected to APORT0X is Requested"]
38 #[inline(always)]
39 pub fn aport0xreq(&self) -> APORT0XREQ_R {
40 APORT0XREQ_R::new((self.bits & 1) != 0)
41 }
42 #[doc = "Bit 1 - 1 If the Bus Connected to APORT0Y is Requested"]
43 #[inline(always)]
44 pub fn aport0yreq(&self) -> APORT0YREQ_R {
45 APORT0YREQ_R::new(((self.bits >> 1) & 1) != 0)
46 }
47 #[doc = "Bit 2 - 1 If the Bus Connected to APORT2X is Requested"]
48 #[inline(always)]
49 pub fn aport1xreq(&self) -> APORT1XREQ_R {
50 APORT1XREQ_R::new(((self.bits >> 2) & 1) != 0)
51 }
52 #[doc = "Bit 3 - 1 If the Bus Connected to APORT1X is Requested"]
53 #[inline(always)]
54 pub fn aport1yreq(&self) -> APORT1YREQ_R {
55 APORT1YREQ_R::new(((self.bits >> 3) & 1) != 0)
56 }
57 #[doc = "Bit 4 - 1 If the Bus Connected to APORT2X is Requested"]
58 #[inline(always)]
59 pub fn aport2xreq(&self) -> APORT2XREQ_R {
60 APORT2XREQ_R::new(((self.bits >> 4) & 1) != 0)
61 }
62 #[doc = "Bit 5 - 1 If the Bus Connected to APORT2Y is Requested"]
63 #[inline(always)]
64 pub fn aport2yreq(&self) -> APORT2YREQ_R {
65 APORT2YREQ_R::new(((self.bits >> 5) & 1) != 0)
66 }
67 #[doc = "Bit 6 - 1 If the Bus Connected to APORT3X is Requested"]
68 #[inline(always)]
69 pub fn aport3xreq(&self) -> APORT3XREQ_R {
70 APORT3XREQ_R::new(((self.bits >> 6) & 1) != 0)
71 }
72 #[doc = "Bit 7 - 1 If the Bus Connected to APORT3Y is Requested"]
73 #[inline(always)]
74 pub fn aport3yreq(&self) -> APORT3YREQ_R {
75 APORT3YREQ_R::new(((self.bits >> 7) & 1) != 0)
76 }
77 #[doc = "Bit 8 - 1 If the Bus Connected to APORT4X is Requested"]
78 #[inline(always)]
79 pub fn aport4xreq(&self) -> APORT4XREQ_R {
80 APORT4XREQ_R::new(((self.bits >> 8) & 1) != 0)
81 }
82 #[doc = "Bit 9 - 1 If the Bus Connected to APORT4Y is Requested"]
83 #[inline(always)]
84 pub fn aport4yreq(&self) -> APORT4YREQ_R {
85 APORT4YREQ_R::new(((self.bits >> 9) & 1) != 0)
86 }
87}
88#[doc = "APORT Request Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [aportreq](index.html) module"]
89pub struct APORTREQ_SPEC;
90impl crate::RegisterSpec for APORTREQ_SPEC {
91 type Ux = u32;
92}
93#[doc = "`read()` method returns [aportreq::R](R) reader structure"]
94impl crate::Readable for APORTREQ_SPEC {
95 type Reader = R;
96}
97#[doc = "`reset()` method sets APORTREQ to value 0"]
98impl crate::Resettable for APORTREQ_SPEC {
99 #[inline(always)]
100 fn reset_value() -> Self::Ux {
101 0
102 }
103}