atsamd11d/sercom0/i2cs/
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 - SERCOM Enable Synchronization Busy"]
6pub type EnableR = crate::BitReader;
7impl R {
8 #[doc = "Bit 0 - Software Reset Synchronization Busy"]
9 #[inline(always)]
10 pub fn swrst(&self) -> SwrstR {
11 SwrstR::new((self.bits & 1) != 0)
12 }
13 #[doc = "Bit 1 - SERCOM Enable Synchronization Busy"]
14 #[inline(always)]
15 pub fn enable(&self) -> EnableR {
16 EnableR::new(((self.bits >> 1) & 1) != 0)
17 }
18}
19#[doc = "I2CS Syncbusy\n\nYou can [`read`](crate::Reg::read) this register and get [`syncbusy::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct SyncbusySpec;
21impl crate::RegisterSpec for SyncbusySpec {
22 type Ux = u32;
23}
24#[doc = "`read()` method returns [`syncbusy::R`](R) reader structure"]
25impl crate::Readable for SyncbusySpec {}
26#[doc = "`reset()` method sets SYNCBUSY to value 0"]
27impl crate::Resettable for SyncbusySpec {
28 const RESET_VALUE: u32 = 0;
29}