efm32gg11b820/timer6/
status.rs1#[doc = "Reader of register STATUS"]
2pub type R = crate::R<u32, super::STATUS>;
3#[doc = "Reader of field `RUNNING`"]
4pub type RUNNING_R = crate::R<bool, bool>;
5#[doc = "Reader of field `DIR`"]
6pub type DIR_R = crate::R<bool, bool>;
7#[doc = "Reader of field `TOPBV`"]
8pub type TOPBV_R = crate::R<bool, bool>;
9#[doc = "Reader of field `CCVBV0`"]
10pub type CCVBV0_R = crate::R<bool, bool>;
11#[doc = "Reader of field `CCVBV1`"]
12pub type CCVBV1_R = crate::R<bool, bool>;
13#[doc = "Reader of field `CCVBV2`"]
14pub type CCVBV2_R = crate::R<bool, bool>;
15#[doc = "Reader of field `CCVBV3`"]
16pub type CCVBV3_R = crate::R<bool, bool>;
17#[doc = "Reader of field `ICV0`"]
18pub type ICV0_R = crate::R<bool, bool>;
19#[doc = "Reader of field `ICV1`"]
20pub type ICV1_R = crate::R<bool, bool>;
21#[doc = "Reader of field `ICV2`"]
22pub type ICV2_R = crate::R<bool, bool>;
23#[doc = "Reader of field `ICV3`"]
24pub type ICV3_R = crate::R<bool, bool>;
25#[doc = "Reader of field `CCPOL0`"]
26pub type CCPOL0_R = crate::R<bool, bool>;
27#[doc = "Reader of field `CCPOL1`"]
28pub type CCPOL1_R = crate::R<bool, bool>;
29#[doc = "Reader of field `CCPOL2`"]
30pub type CCPOL2_R = crate::R<bool, bool>;
31#[doc = "Reader of field `CCPOL3`"]
32pub type CCPOL3_R = crate::R<bool, bool>;
33impl R {
34 #[doc = "Bit 0 - Running"]
35 #[inline(always)]
36 pub fn running(&self) -> RUNNING_R {
37 RUNNING_R::new((self.bits & 0x01) != 0)
38 }
39 #[doc = "Bit 1 - Direction"]
40 #[inline(always)]
41 pub fn dir(&self) -> DIR_R {
42 DIR_R::new(((self.bits >> 1) & 0x01) != 0)
43 }
44 #[doc = "Bit 2 - TOPB Valid"]
45 #[inline(always)]
46 pub fn topbv(&self) -> TOPBV_R {
47 TOPBV_R::new(((self.bits >> 2) & 0x01) != 0)
48 }
49 #[doc = "Bit 8 - CC0 CCVB Valid"]
50 #[inline(always)]
51 pub fn ccvbv0(&self) -> CCVBV0_R {
52 CCVBV0_R::new(((self.bits >> 8) & 0x01) != 0)
53 }
54 #[doc = "Bit 9 - CC1 CCVB Valid"]
55 #[inline(always)]
56 pub fn ccvbv1(&self) -> CCVBV1_R {
57 CCVBV1_R::new(((self.bits >> 9) & 0x01) != 0)
58 }
59 #[doc = "Bit 10 - CC2 CCVB Valid"]
60 #[inline(always)]
61 pub fn ccvbv2(&self) -> CCVBV2_R {
62 CCVBV2_R::new(((self.bits >> 10) & 0x01) != 0)
63 }
64 #[doc = "Bit 11 - CC3 CCVB Valid"]
65 #[inline(always)]
66 pub fn ccvbv3(&self) -> CCVBV3_R {
67 CCVBV3_R::new(((self.bits >> 11) & 0x01) != 0)
68 }
69 #[doc = "Bit 16 - CC0 Input Capture Valid"]
70 #[inline(always)]
71 pub fn icv0(&self) -> ICV0_R {
72 ICV0_R::new(((self.bits >> 16) & 0x01) != 0)
73 }
74 #[doc = "Bit 17 - CC1 Input Capture Valid"]
75 #[inline(always)]
76 pub fn icv1(&self) -> ICV1_R {
77 ICV1_R::new(((self.bits >> 17) & 0x01) != 0)
78 }
79 #[doc = "Bit 18 - CC2 Input Capture Valid"]
80 #[inline(always)]
81 pub fn icv2(&self) -> ICV2_R {
82 ICV2_R::new(((self.bits >> 18) & 0x01) != 0)
83 }
84 #[doc = "Bit 19 - CC3 Input Capture Valid"]
85 #[inline(always)]
86 pub fn icv3(&self) -> ICV3_R {
87 ICV3_R::new(((self.bits >> 19) & 0x01) != 0)
88 }
89 #[doc = "Bit 24 - CC0 Polarity"]
90 #[inline(always)]
91 pub fn ccpol0(&self) -> CCPOL0_R {
92 CCPOL0_R::new(((self.bits >> 24) & 0x01) != 0)
93 }
94 #[doc = "Bit 25 - CC1 Polarity"]
95 #[inline(always)]
96 pub fn ccpol1(&self) -> CCPOL1_R {
97 CCPOL1_R::new(((self.bits >> 25) & 0x01) != 0)
98 }
99 #[doc = "Bit 26 - CC2 Polarity"]
100 #[inline(always)]
101 pub fn ccpol2(&self) -> CCPOL2_R {
102 CCPOL2_R::new(((self.bits >> 26) & 0x01) != 0)
103 }
104 #[doc = "Bit 27 - CC3 Polarity"]
105 #[inline(always)]
106 pub fn ccpol3(&self) -> CCPOL3_R {
107 CCPOL3_R::new(((self.bits >> 27) & 0x01) != 0)
108 }
109}