atsamd51g/adc0/
syncbusy.rs
1#[doc = "Register `SYNCBUSY` reader"]
2pub type R = crate::R<SyncbusySpec>;
3#[doc = "Field `SWRST` reader - SWRST Synchronization Busy"]
4pub type SwrstR = crate::BitReader;
5#[doc = "Field `ENABLE` reader - ENABLE Synchronization Busy"]
6pub type EnableR = crate::BitReader;
7#[doc = "Field `INPUTCTRL` reader - Input Control Synchronization Busy"]
8pub type InputctrlR = crate::BitReader;
9#[doc = "Field `CTRLB` reader - Control B Synchronization Busy"]
10pub type CtrlbR = crate::BitReader;
11#[doc = "Field `REFCTRL` reader - Reference Control Synchronization Busy"]
12pub type RefctrlR = crate::BitReader;
13#[doc = "Field `AVGCTRL` reader - Average Control Synchronization Busy"]
14pub type AvgctrlR = crate::BitReader;
15#[doc = "Field `SAMPCTRL` reader - Sampling Time Control Synchronization Busy"]
16pub type SampctrlR = crate::BitReader;
17#[doc = "Field `WINLT` reader - Window Monitor Lower Threshold Synchronization Busy"]
18pub type WinltR = crate::BitReader;
19#[doc = "Field `WINUT` reader - Window Monitor Upper Threshold Synchronization Busy"]
20pub type WinutR = crate::BitReader;
21#[doc = "Field `GAINCORR` reader - Gain Correction Synchronization Busy"]
22pub type GaincorrR = crate::BitReader;
23#[doc = "Field `OFFSETCORR` reader - Offset Correction Synchronization Busy"]
24pub type OffsetcorrR = crate::BitReader;
25#[doc = "Field `SWTRIG` reader - Software Trigger Synchronization Busy"]
26pub type SwtrigR = crate::BitReader;
27impl R {
28 #[doc = "Bit 0 - SWRST Synchronization Busy"]
29 #[inline(always)]
30 pub fn swrst(&self) -> SwrstR {
31 SwrstR::new((self.bits & 1) != 0)
32 }
33 #[doc = "Bit 1 - ENABLE Synchronization Busy"]
34 #[inline(always)]
35 pub fn enable(&self) -> EnableR {
36 EnableR::new(((self.bits >> 1) & 1) != 0)
37 }
38 #[doc = "Bit 2 - Input Control Synchronization Busy"]
39 #[inline(always)]
40 pub fn inputctrl(&self) -> InputctrlR {
41 InputctrlR::new(((self.bits >> 2) & 1) != 0)
42 }
43 #[doc = "Bit 3 - Control B Synchronization Busy"]
44 #[inline(always)]
45 pub fn ctrlb(&self) -> CtrlbR {
46 CtrlbR::new(((self.bits >> 3) & 1) != 0)
47 }
48 #[doc = "Bit 4 - Reference Control Synchronization Busy"]
49 #[inline(always)]
50 pub fn refctrl(&self) -> RefctrlR {
51 RefctrlR::new(((self.bits >> 4) & 1) != 0)
52 }
53 #[doc = "Bit 5 - Average Control Synchronization Busy"]
54 #[inline(always)]
55 pub fn avgctrl(&self) -> AvgctrlR {
56 AvgctrlR::new(((self.bits >> 5) & 1) != 0)
57 }
58 #[doc = "Bit 6 - Sampling Time Control Synchronization Busy"]
59 #[inline(always)]
60 pub fn sampctrl(&self) -> SampctrlR {
61 SampctrlR::new(((self.bits >> 6) & 1) != 0)
62 }
63 #[doc = "Bit 7 - Window Monitor Lower Threshold Synchronization Busy"]
64 #[inline(always)]
65 pub fn winlt(&self) -> WinltR {
66 WinltR::new(((self.bits >> 7) & 1) != 0)
67 }
68 #[doc = "Bit 8 - Window Monitor Upper Threshold Synchronization Busy"]
69 #[inline(always)]
70 pub fn winut(&self) -> WinutR {
71 WinutR::new(((self.bits >> 8) & 1) != 0)
72 }
73 #[doc = "Bit 9 - Gain Correction Synchronization Busy"]
74 #[inline(always)]
75 pub fn gaincorr(&self) -> GaincorrR {
76 GaincorrR::new(((self.bits >> 9) & 1) != 0)
77 }
78 #[doc = "Bit 10 - Offset Correction Synchronization Busy"]
79 #[inline(always)]
80 pub fn offsetcorr(&self) -> OffsetcorrR {
81 OffsetcorrR::new(((self.bits >> 10) & 1) != 0)
82 }
83 #[doc = "Bit 11 - Software Trigger Synchronization Busy"]
84 #[inline(always)]
85 pub fn swtrig(&self) -> SwtrigR {
86 SwtrigR::new(((self.bits >> 11) & 1) != 0)
87 }
88}
89#[doc = "Synchronization Busy\n\nYou can [`read`](crate::Reg::read) this register and get [`syncbusy::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
90pub struct SyncbusySpec;
91impl crate::RegisterSpec for SyncbusySpec {
92 type Ux = u32;
93}
94#[doc = "`read()` method returns [`syncbusy::R`](R) reader structure"]
95impl crate::Readable for SyncbusySpec {}
96#[doc = "`reset()` method sets SYNCBUSY to value 0"]
97impl crate::Resettable for SyncbusySpec {
98 const RESET_VALUE: u32 = 0;
99}