atsamd51p/ac/
syncbusy.rs

1#[doc = "Register `SYNCBUSY` reader"]
2pub type R = crate::R<SyncbusySpec>;
3#[doc = "Field `SWRST` reader - Software Reset Synchronization Busy"]
4pub type SwrstR = crate::BitReader;
5#[doc = "Field `ENABLE` reader - Enable Synchronization Busy"]
6pub type EnableR = crate::BitReader;
7#[doc = "Field `WINCTRL` reader - WINCTRL Synchronization Busy"]
8pub type WinctrlR = crate::BitReader;
9#[doc = "Field `COMPCTRL0` reader - COMPCTRL 0 Synchronization Busy"]
10pub type Compctrl0R = crate::BitReader;
11#[doc = "Field `COMPCTRL1` reader - COMPCTRL 1 Synchronization Busy"]
12pub type Compctrl1R = crate::BitReader;
13impl R {
14    #[doc = "Bit 0 - Software Reset Synchronization Busy"]
15    #[inline(always)]
16    pub fn swrst(&self) -> SwrstR {
17        SwrstR::new((self.bits & 1) != 0)
18    }
19    #[doc = "Bit 1 - Enable Synchronization Busy"]
20    #[inline(always)]
21    pub fn enable(&self) -> EnableR {
22        EnableR::new(((self.bits >> 1) & 1) != 0)
23    }
24    #[doc = "Bit 2 - WINCTRL Synchronization Busy"]
25    #[inline(always)]
26    pub fn winctrl(&self) -> WinctrlR {
27        WinctrlR::new(((self.bits >> 2) & 1) != 0)
28    }
29    #[doc = "Bit 3 - COMPCTRL 0 Synchronization Busy"]
30    #[inline(always)]
31    pub fn compctrl0(&self) -> Compctrl0R {
32        Compctrl0R::new(((self.bits >> 3) & 1) != 0)
33    }
34    #[doc = "Bit 4 - COMPCTRL 1 Synchronization Busy"]
35    #[inline(always)]
36    pub fn compctrl1(&self) -> Compctrl1R {
37        Compctrl1R::new(((self.bits >> 4) & 1) != 0)
38    }
39}
40#[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)."]
41pub struct SyncbusySpec;
42impl crate::RegisterSpec for SyncbusySpec {
43    type Ux = u32;
44}
45#[doc = "`read()` method returns [`syncbusy::R`](R) reader structure"]
46impl crate::Readable for SyncbusySpec {}
47#[doc = "`reset()` method sets SYNCBUSY to value 0"]
48impl crate::Resettable for SyncbusySpec {
49    const RESET_VALUE: u32 = 0;
50}