efm32gg_pac/efm32gg995/ebi/
status.rs1#[doc = "Register `STATUS` reader"]
2pub struct R(crate::R<STATUS_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<STATUS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<STATUS_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<STATUS_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `AHBACT` reader - EBI Busy with AHB Transaction."]
17pub type AHBACT_R = crate::BitReader<bool>;
18#[doc = "Field `ECCACT` reader - EBI ECC Generation Active."]
19pub type ECCACT_R = crate::BitReader<bool>;
20#[doc = "Field `TFTPIXEL0EMPTY` reader - EBI_TFTPIXEL0 is empty."]
21pub type TFTPIXEL0EMPTY_R = crate::BitReader<bool>;
22#[doc = "Field `TFTPIXEL1EMPTY` reader - EBI_TFTPIXEL1 is empty."]
23pub type TFTPIXEL1EMPTY_R = crate::BitReader<bool>;
24#[doc = "Field `TFTPIXELFULL` reader - EBI_TFTPIXEL0 is full."]
25pub type TFTPIXELFULL_R = crate::BitReader<bool>;
26#[doc = "Field `DDACT` reader - EBI Busy with Direct Drive Transactions."]
27pub type DDACT_R = crate::BitReader<bool>;
28#[doc = "Field `TFTDDEMPTY` reader - EBI_TFTDD register is empty."]
29pub type TFTDDEMPTY_R = crate::BitReader<bool>;
30impl R {
31 #[doc = "Bit 0 - EBI Busy with AHB Transaction."]
32 #[inline(always)]
33 pub fn ahbact(&self) -> AHBACT_R {
34 AHBACT_R::new((self.bits & 1) != 0)
35 }
36 #[doc = "Bit 4 - EBI ECC Generation Active."]
37 #[inline(always)]
38 pub fn eccact(&self) -> ECCACT_R {
39 ECCACT_R::new(((self.bits >> 4) & 1) != 0)
40 }
41 #[doc = "Bit 8 - EBI_TFTPIXEL0 is empty."]
42 #[inline(always)]
43 pub fn tftpixel0empty(&self) -> TFTPIXEL0EMPTY_R {
44 TFTPIXEL0EMPTY_R::new(((self.bits >> 8) & 1) != 0)
45 }
46 #[doc = "Bit 9 - EBI_TFTPIXEL1 is empty."]
47 #[inline(always)]
48 pub fn tftpixel1empty(&self) -> TFTPIXEL1EMPTY_R {
49 TFTPIXEL1EMPTY_R::new(((self.bits >> 9) & 1) != 0)
50 }
51 #[doc = "Bit 10 - EBI_TFTPIXEL0 is full."]
52 #[inline(always)]
53 pub fn tftpixelfull(&self) -> TFTPIXELFULL_R {
54 TFTPIXELFULL_R::new(((self.bits >> 10) & 1) != 0)
55 }
56 #[doc = "Bit 12 - EBI Busy with Direct Drive Transactions."]
57 #[inline(always)]
58 pub fn ddact(&self) -> DDACT_R {
59 DDACT_R::new(((self.bits >> 12) & 1) != 0)
60 }
61 #[doc = "Bit 13 - EBI_TFTDD register is empty."]
62 #[inline(always)]
63 pub fn tftddempty(&self) -> TFTDDEMPTY_R {
64 TFTDDEMPTY_R::new(((self.bits >> 13) & 1) != 0)
65 }
66}
67#[doc = "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 [status](index.html) module"]
68pub struct STATUS_SPEC;
69impl crate::RegisterSpec for STATUS_SPEC {
70 type Ux = u32;
71}
72#[doc = "`read()` method returns [status::R](R) reader structure"]
73impl crate::Readable for STATUS_SPEC {
74 type Reader = R;
75}
76#[doc = "`reset()` method sets STATUS to value 0"]
77impl crate::Resettable for STATUS_SPEC {
78 const RESET_VALUE: Self::Ux = 0;
79}