efm32jg1b200_pac/acmp0/
aportconflict.rs1#[doc = "Register `APORTCONFLICT` reader"]
2pub struct R(crate::R<APORTCONFLICT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<APORTCONFLICT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<APORTCONFLICT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<APORTCONFLICT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `APORT0XCONFLICT` reader - 1 If the Bus Connected to APORT0X is in Conflict With Another Peripheral"]
17pub type APORT0XCONFLICT_R = crate::BitReader<bool>;
18#[doc = "Field `APORT0YCONFLICT` reader - 1 If the Bus Connected to APORT0Y is in Conflict With Another Peripheral"]
19pub type APORT0YCONFLICT_R = crate::BitReader<bool>;
20#[doc = "Field `APORT1XCONFLICT` reader - 1 If the Bus Connected to APORT1X is in Conflict With Another Peripheral"]
21pub type APORT1XCONFLICT_R = crate::BitReader<bool>;
22#[doc = "Field `APORT1YCONFLICT` reader - 1 If the Bus Connected to APORT1X is in Conflict With Another Peripheral"]
23pub type APORT1YCONFLICT_R = crate::BitReader<bool>;
24#[doc = "Field `APORT2XCONFLICT` reader - 1 If the Bus Connected to APORT2X is in Conflict With Another Peripheral"]
25pub type APORT2XCONFLICT_R = crate::BitReader<bool>;
26#[doc = "Field `APORT2YCONFLICT` reader - 1 If the Bus Connected to APORT2Y is in Conflict With Another Peripheral"]
27pub type APORT2YCONFLICT_R = crate::BitReader<bool>;
28#[doc = "Field `APORT3XCONFLICT` reader - 1 If the Bus Connected to APORT3X is in Conflict With Another Peripheral"]
29pub type APORT3XCONFLICT_R = crate::BitReader<bool>;
30#[doc = "Field `APORT3YCONFLICT` reader - 1 If the Bus Connected to APORT3Y is in Conflict With Another Peripheral"]
31pub type APORT3YCONFLICT_R = crate::BitReader<bool>;
32#[doc = "Field `APORT4XCONFLICT` reader - 1 If the Bus Connected to APORT4X is in Conflict With Another Peripheral"]
33pub type APORT4XCONFLICT_R = crate::BitReader<bool>;
34#[doc = "Field `APORT4YCONFLICT` reader - 1 If the Bus Connected to APORT4Y is in Conflict With Another Peripheral"]
35pub type APORT4YCONFLICT_R = crate::BitReader<bool>;
36impl R {
37 #[doc = "Bit 0 - 1 If the Bus Connected to APORT0X is in Conflict With Another Peripheral"]
38 #[inline(always)]
39 pub fn aport0xconflict(&self) -> APORT0XCONFLICT_R {
40 APORT0XCONFLICT_R::new((self.bits & 1) != 0)
41 }
42 #[doc = "Bit 1 - 1 If the Bus Connected to APORT0Y is in Conflict With Another Peripheral"]
43 #[inline(always)]
44 pub fn aport0yconflict(&self) -> APORT0YCONFLICT_R {
45 APORT0YCONFLICT_R::new(((self.bits >> 1) & 1) != 0)
46 }
47 #[doc = "Bit 2 - 1 If the Bus Connected to APORT1X is in Conflict With Another Peripheral"]
48 #[inline(always)]
49 pub fn aport1xconflict(&self) -> APORT1XCONFLICT_R {
50 APORT1XCONFLICT_R::new(((self.bits >> 2) & 1) != 0)
51 }
52 #[doc = "Bit 3 - 1 If the Bus Connected to APORT1X is in Conflict With Another Peripheral"]
53 #[inline(always)]
54 pub fn aport1yconflict(&self) -> APORT1YCONFLICT_R {
55 APORT1YCONFLICT_R::new(((self.bits >> 3) & 1) != 0)
56 }
57 #[doc = "Bit 4 - 1 If the Bus Connected to APORT2X is in Conflict With Another Peripheral"]
58 #[inline(always)]
59 pub fn aport2xconflict(&self) -> APORT2XCONFLICT_R {
60 APORT2XCONFLICT_R::new(((self.bits >> 4) & 1) != 0)
61 }
62 #[doc = "Bit 5 - 1 If the Bus Connected to APORT2Y is in Conflict With Another Peripheral"]
63 #[inline(always)]
64 pub fn aport2yconflict(&self) -> APORT2YCONFLICT_R {
65 APORT2YCONFLICT_R::new(((self.bits >> 5) & 1) != 0)
66 }
67 #[doc = "Bit 6 - 1 If the Bus Connected to APORT3X is in Conflict With Another Peripheral"]
68 #[inline(always)]
69 pub fn aport3xconflict(&self) -> APORT3XCONFLICT_R {
70 APORT3XCONFLICT_R::new(((self.bits >> 6) & 1) != 0)
71 }
72 #[doc = "Bit 7 - 1 If the Bus Connected to APORT3Y is in Conflict With Another Peripheral"]
73 #[inline(always)]
74 pub fn aport3yconflict(&self) -> APORT3YCONFLICT_R {
75 APORT3YCONFLICT_R::new(((self.bits >> 7) & 1) != 0)
76 }
77 #[doc = "Bit 8 - 1 If the Bus Connected to APORT4X is in Conflict With Another Peripheral"]
78 #[inline(always)]
79 pub fn aport4xconflict(&self) -> APORT4XCONFLICT_R {
80 APORT4XCONFLICT_R::new(((self.bits >> 8) & 1) != 0)
81 }
82 #[doc = "Bit 9 - 1 If the Bus Connected to APORT4Y is in Conflict With Another Peripheral"]
83 #[inline(always)]
84 pub fn aport4yconflict(&self) -> APORT4YCONFLICT_R {
85 APORT4YCONFLICT_R::new(((self.bits >> 9) & 1) != 0)
86 }
87}
88#[doc = "APORT Conflict 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 [aportconflict](index.html) module"]
89pub struct APORTCONFLICT_SPEC;
90impl crate::RegisterSpec for APORTCONFLICT_SPEC {
91 type Ux = u32;
92}
93#[doc = "`read()` method returns [aportconflict::R](R) reader structure"]
94impl crate::Readable for APORTCONFLICT_SPEC {
95 type Reader = R;
96}
97#[doc = "`reset()` method sets APORTCONFLICT to value 0"]
98impl crate::Resettable for APORTCONFLICT_SPEC {
99 #[inline(always)]
100 fn reset_value() -> Self::Ux {
101 0
102 }
103}