atsamd51j/wdt/
syncbusy.rs

1#[doc = "Register `SYNCBUSY` reader"]
2pub type R = crate::R<SyncbusySpec>;
3#[doc = "Field `ENABLE` reader - Enable Synchronization Busy"]
4pub type EnableR = crate::BitReader;
5#[doc = "Field `WEN` reader - Window Enable Synchronization Busy"]
6pub type WenR = crate::BitReader;
7#[doc = "Field `ALWAYSON` reader - Always-On Synchronization Busy"]
8pub type AlwaysonR = crate::BitReader;
9#[doc = "Field `CLEAR` reader - Clear Synchronization Busy"]
10pub type ClearR = crate::BitReader;
11impl R {
12    #[doc = "Bit 1 - Enable Synchronization Busy"]
13    #[inline(always)]
14    pub fn enable(&self) -> EnableR {
15        EnableR::new(((self.bits >> 1) & 1) != 0)
16    }
17    #[doc = "Bit 2 - Window Enable Synchronization Busy"]
18    #[inline(always)]
19    pub fn wen(&self) -> WenR {
20        WenR::new(((self.bits >> 2) & 1) != 0)
21    }
22    #[doc = "Bit 3 - Always-On Synchronization Busy"]
23    #[inline(always)]
24    pub fn alwayson(&self) -> AlwaysonR {
25        AlwaysonR::new(((self.bits >> 3) & 1) != 0)
26    }
27    #[doc = "Bit 4 - Clear Synchronization Busy"]
28    #[inline(always)]
29    pub fn clear(&self) -> ClearR {
30        ClearR::new(((self.bits >> 4) & 1) != 0)
31    }
32}
33#[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)."]
34pub struct SyncbusySpec;
35impl crate::RegisterSpec for SyncbusySpec {
36    type Ux = u32;
37}
38#[doc = "`read()` method returns [`syncbusy::R`](R) reader structure"]
39impl crate::Readable for SyncbusySpec {}
40#[doc = "`reset()` method sets SYNCBUSY to value 0"]
41impl crate::Resettable for SyncbusySpec {
42    const RESET_VALUE: u32 = 0;
43}