atsamd51j19a/tcc0/
syncbusy.rs

1#[doc = "Reader of register SYNCBUSY"]
2pub type R = crate::R<u32, super::SYNCBUSY>;
3#[doc = "Reader of field `SWRST`"]
4pub type SWRST_R = crate::R<bool, bool>;
5#[doc = "Reader of field `ENABLE`"]
6pub type ENABLE_R = crate::R<bool, bool>;
7#[doc = "Reader of field `CTRLB`"]
8pub type CTRLB_R = crate::R<bool, bool>;
9#[doc = "Reader of field `STATUS`"]
10pub type STATUS_R = crate::R<bool, bool>;
11#[doc = "Reader of field `COUNT`"]
12pub type COUNT_R = crate::R<bool, bool>;
13#[doc = "Reader of field `PATT`"]
14pub type PATT_R = crate::R<bool, bool>;
15#[doc = "Reader of field `WAVE`"]
16pub type WAVE_R = crate::R<bool, bool>;
17#[doc = "Reader of field `PER`"]
18pub type PER_R = crate::R<bool, bool>;
19#[doc = "Reader of field `CC0`"]
20pub type CC0_R = crate::R<bool, bool>;
21#[doc = "Reader of field `CC1`"]
22pub type CC1_R = crate::R<bool, bool>;
23#[doc = "Reader of field `CC2`"]
24pub type CC2_R = crate::R<bool, bool>;
25#[doc = "Reader of field `CC3`"]
26pub type CC3_R = crate::R<bool, bool>;
27#[doc = "Reader of field `CC4`"]
28pub type CC4_R = crate::R<bool, bool>;
29#[doc = "Reader of field `CC5`"]
30pub type CC5_R = crate::R<bool, bool>;
31impl R {
32    #[doc = "Bit 0 - Swrst Busy"]
33    #[inline(always)]
34    pub fn swrst(&self) -> SWRST_R {
35        SWRST_R::new((self.bits & 0x01) != 0)
36    }
37    #[doc = "Bit 1 - Enable Busy"]
38    #[inline(always)]
39    pub fn enable(&self) -> ENABLE_R {
40        ENABLE_R::new(((self.bits >> 1) & 0x01) != 0)
41    }
42    #[doc = "Bit 2 - Ctrlb Busy"]
43    #[inline(always)]
44    pub fn ctrlb(&self) -> CTRLB_R {
45        CTRLB_R::new(((self.bits >> 2) & 0x01) != 0)
46    }
47    #[doc = "Bit 3 - Status Busy"]
48    #[inline(always)]
49    pub fn status(&self) -> STATUS_R {
50        STATUS_R::new(((self.bits >> 3) & 0x01) != 0)
51    }
52    #[doc = "Bit 4 - Count Busy"]
53    #[inline(always)]
54    pub fn count(&self) -> COUNT_R {
55        COUNT_R::new(((self.bits >> 4) & 0x01) != 0)
56    }
57    #[doc = "Bit 5 - Pattern Busy"]
58    #[inline(always)]
59    pub fn patt(&self) -> PATT_R {
60        PATT_R::new(((self.bits >> 5) & 0x01) != 0)
61    }
62    #[doc = "Bit 6 - Wave Busy"]
63    #[inline(always)]
64    pub fn wave(&self) -> WAVE_R {
65        WAVE_R::new(((self.bits >> 6) & 0x01) != 0)
66    }
67    #[doc = "Bit 7 - Period Busy"]
68    #[inline(always)]
69    pub fn per(&self) -> PER_R {
70        PER_R::new(((self.bits >> 7) & 0x01) != 0)
71    }
72    #[doc = "Bit 8 - Compare Channel 0 Busy"]
73    #[inline(always)]
74    pub fn cc0(&self) -> CC0_R {
75        CC0_R::new(((self.bits >> 8) & 0x01) != 0)
76    }
77    #[doc = "Bit 9 - Compare Channel 1 Busy"]
78    #[inline(always)]
79    pub fn cc1(&self) -> CC1_R {
80        CC1_R::new(((self.bits >> 9) & 0x01) != 0)
81    }
82    #[doc = "Bit 10 - Compare Channel 2 Busy"]
83    #[inline(always)]
84    pub fn cc2(&self) -> CC2_R {
85        CC2_R::new(((self.bits >> 10) & 0x01) != 0)
86    }
87    #[doc = "Bit 11 - Compare Channel 3 Busy"]
88    #[inline(always)]
89    pub fn cc3(&self) -> CC3_R {
90        CC3_R::new(((self.bits >> 11) & 0x01) != 0)
91    }
92    #[doc = "Bit 12 - Compare Channel 4 Busy"]
93    #[inline(always)]
94    pub fn cc4(&self) -> CC4_R {
95        CC4_R::new(((self.bits >> 12) & 0x01) != 0)
96    }
97    #[doc = "Bit 13 - Compare Channel 5 Busy"]
98    #[inline(always)]
99    pub fn cc5(&self) -> CC5_R {
100        CC5_R::new(((self.bits >> 13) & 0x01) != 0)
101    }
102}