efm32pg12b500_pac/vdac0/
opa2_aportreq.rs1#[doc = "Register `OPA2_APORTREQ` reader"]
2pub struct R(crate::R<OPA2_APORTREQ_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<OPA2_APORTREQ_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<OPA2_APORTREQ_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<OPA2_APORTREQ_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `APORT1XREQ` reader - 1 If the Bus Connected to APORT2X is Requested"]
17pub type APORT1XREQ_R = crate::BitReader<bool>;
18#[doc = "Field `APORT1YREQ` reader - 1 If the Bus Connected to APORT1X is Requested"]
19pub type APORT1YREQ_R = crate::BitReader<bool>;
20#[doc = "Field `APORT2XREQ` reader - 1 If the Bus Connected to APORT2X is Requested"]
21pub type APORT2XREQ_R = crate::BitReader<bool>;
22#[doc = "Field `APORT2YREQ` reader - 1 If the Bus Connected to APORT2Y is Requested"]
23pub type APORT2YREQ_R = crate::BitReader<bool>;
24#[doc = "Field `APORT3XREQ` reader - 1 If the Bus Connected to APORT3X is Requested"]
25pub type APORT3XREQ_R = crate::BitReader<bool>;
26#[doc = "Field `APORT3YREQ` reader - 1 If the Bus Connected to APORT3Y is Requested"]
27pub type APORT3YREQ_R = crate::BitReader<bool>;
28#[doc = "Field `APORT4XREQ` reader - 1 If the Bus Connected to APORT4X is Requested"]
29pub type APORT4XREQ_R = crate::BitReader<bool>;
30#[doc = "Field `APORT4YREQ` reader - 1 If the Bus Connected to APORT4Y is Requested"]
31pub type APORT4YREQ_R = crate::BitReader<bool>;
32impl R {
33 #[doc = "Bit 2 - 1 If the Bus Connected to APORT2X is Requested"]
34 #[inline(always)]
35 pub fn aport1xreq(&self) -> APORT1XREQ_R {
36 APORT1XREQ_R::new(((self.bits >> 2) & 1) != 0)
37 }
38 #[doc = "Bit 3 - 1 If the Bus Connected to APORT1X is Requested"]
39 #[inline(always)]
40 pub fn aport1yreq(&self) -> APORT1YREQ_R {
41 APORT1YREQ_R::new(((self.bits >> 3) & 1) != 0)
42 }
43 #[doc = "Bit 4 - 1 If the Bus Connected to APORT2X is Requested"]
44 #[inline(always)]
45 pub fn aport2xreq(&self) -> APORT2XREQ_R {
46 APORT2XREQ_R::new(((self.bits >> 4) & 1) != 0)
47 }
48 #[doc = "Bit 5 - 1 If the Bus Connected to APORT2Y is Requested"]
49 #[inline(always)]
50 pub fn aport2yreq(&self) -> APORT2YREQ_R {
51 APORT2YREQ_R::new(((self.bits >> 5) & 1) != 0)
52 }
53 #[doc = "Bit 6 - 1 If the Bus Connected to APORT3X is Requested"]
54 #[inline(always)]
55 pub fn aport3xreq(&self) -> APORT3XREQ_R {
56 APORT3XREQ_R::new(((self.bits >> 6) & 1) != 0)
57 }
58 #[doc = "Bit 7 - 1 If the Bus Connected to APORT3Y is Requested"]
59 #[inline(always)]
60 pub fn aport3yreq(&self) -> APORT3YREQ_R {
61 APORT3YREQ_R::new(((self.bits >> 7) & 1) != 0)
62 }
63 #[doc = "Bit 8 - 1 If the Bus Connected to APORT4X is Requested"]
64 #[inline(always)]
65 pub fn aport4xreq(&self) -> APORT4XREQ_R {
66 APORT4XREQ_R::new(((self.bits >> 8) & 1) != 0)
67 }
68 #[doc = "Bit 9 - 1 If the Bus Connected to APORT4Y is Requested"]
69 #[inline(always)]
70 pub fn aport4yreq(&self) -> APORT4YREQ_R {
71 APORT4YREQ_R::new(((self.bits >> 9) & 1) != 0)
72 }
73}
74#[doc = "Operational Amplifier 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 [opa2_aportreq](index.html) module"]
75pub struct OPA2_APORTREQ_SPEC;
76impl crate::RegisterSpec for OPA2_APORTREQ_SPEC {
77 type Ux = u32;
78}
79#[doc = "`read()` method returns [opa2_aportreq::R](R) reader structure"]
80impl crate::Readable for OPA2_APORTREQ_SPEC {
81 type Reader = R;
82}
83#[doc = "`reset()` method sets OPA2_APORTREQ to value 0"]
84impl crate::Resettable for OPA2_APORTREQ_SPEC {
85 #[inline(always)]
86 fn reset_value() -> Self::Ux {
87 0
88 }
89}