1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#[doc = "Register `STATUS` reader"]
pub struct R(crate::R<STATUS_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<STATUS_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<STATUS_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<STATUS_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `RUNNING` reader - Running"]
pub type RUNNING_R = crate::BitReader<bool>;
#[doc = "Field `DIR` reader - Direction"]
pub type DIR_R = crate::BitReader<bool>;
#[doc = "Field `TOPBV` reader - TOPB Valid"]
pub type TOPBV_R = crate::BitReader<bool>;
#[doc = "Field `CCVBV0` reader - CC0 CCVB Valid"]
pub type CCVBV0_R = crate::BitReader<bool>;
#[doc = "Field `CCVBV1` reader - CC1 CCVB Valid"]
pub type CCVBV1_R = crate::BitReader<bool>;
#[doc = "Field `CCVBV2` reader - CC2 CCVB Valid"]
pub type CCVBV2_R = crate::BitReader<bool>;
#[doc = "Field `CCVBV3` reader - CC3 CCVB Valid"]
pub type CCVBV3_R = crate::BitReader<bool>;
#[doc = "Field `ICV0` reader - CC0 Input Capture Valid"]
pub type ICV0_R = crate::BitReader<bool>;
#[doc = "Field `ICV1` reader - CC1 Input Capture Valid"]
pub type ICV1_R = crate::BitReader<bool>;
#[doc = "Field `ICV2` reader - CC2 Input Capture Valid"]
pub type ICV2_R = crate::BitReader<bool>;
#[doc = "Field `ICV3` reader - CC3 Input Capture Valid"]
pub type ICV3_R = crate::BitReader<bool>;
#[doc = "Field `CCPOL0` reader - CC0 Polarity"]
pub type CCPOL0_R = crate::BitReader<bool>;
#[doc = "Field `CCPOL1` reader - CC1 Polarity"]
pub type CCPOL1_R = crate::BitReader<bool>;
#[doc = "Field `CCPOL2` reader - CC2 Polarity"]
pub type CCPOL2_R = crate::BitReader<bool>;
#[doc = "Field `CCPOL3` reader - CC3 Polarity"]
pub type CCPOL3_R = crate::BitReader<bool>;
impl R {
    #[doc = "Bit 0 - Running"]
    #[inline(always)]
    pub fn running(&self) -> RUNNING_R {
        RUNNING_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Direction"]
    #[inline(always)]
    pub fn dir(&self) -> DIR_R {
        DIR_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - TOPB Valid"]
    #[inline(always)]
    pub fn topbv(&self) -> TOPBV_R {
        TOPBV_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 8 - CC0 CCVB Valid"]
    #[inline(always)]
    pub fn ccvbv0(&self) -> CCVBV0_R {
        CCVBV0_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - CC1 CCVB Valid"]
    #[inline(always)]
    pub fn ccvbv1(&self) -> CCVBV1_R {
        CCVBV1_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - CC2 CCVB Valid"]
    #[inline(always)]
    pub fn ccvbv2(&self) -> CCVBV2_R {
        CCVBV2_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - CC3 CCVB Valid"]
    #[inline(always)]
    pub fn ccvbv3(&self) -> CCVBV3_R {
        CCVBV3_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 16 - CC0 Input Capture Valid"]
    #[inline(always)]
    pub fn icv0(&self) -> ICV0_R {
        ICV0_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - CC1 Input Capture Valid"]
    #[inline(always)]
    pub fn icv1(&self) -> ICV1_R {
        ICV1_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - CC2 Input Capture Valid"]
    #[inline(always)]
    pub fn icv2(&self) -> ICV2_R {
        ICV2_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - CC3 Input Capture Valid"]
    #[inline(always)]
    pub fn icv3(&self) -> ICV3_R {
        ICV3_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 24 - CC0 Polarity"]
    #[inline(always)]
    pub fn ccpol0(&self) -> CCPOL0_R {
        CCPOL0_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - CC1 Polarity"]
    #[inline(always)]
    pub fn ccpol1(&self) -> CCPOL1_R {
        CCPOL1_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - CC2 Polarity"]
    #[inline(always)]
    pub fn ccpol2(&self) -> CCPOL2_R {
        CCPOL2_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - CC3 Polarity"]
    #[inline(always)]
    pub fn ccpol3(&self) -> CCPOL3_R {
        CCPOL3_R::new(((self.bits >> 27) & 1) != 0)
    }
}
#[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"]
pub struct STATUS_SPEC;
impl crate::RegisterSpec for STATUS_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [status::R](R) reader structure"]
impl crate::Readable for STATUS_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets STATUS to value 0"]
impl crate::Resettable for STATUS_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}