atsamd21e18a/sercom0/usart/
syncbusy.rs1#[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>;
9impl R {
10 #[doc = "Bit 0 - Software Reset Synchronization Busy"]
11 #[inline(always)]
12 pub fn swrst(&self) -> SWRST_R {
13 SWRST_R::new((self.bits & 0x01) != 0)
14 }
15 #[doc = "Bit 1 - SERCOM Enable Synchronization Busy"]
16 #[inline(always)]
17 pub fn enable(&self) -> ENABLE_R {
18 ENABLE_R::new(((self.bits >> 1) & 0x01) != 0)
19 }
20 #[doc = "Bit 2 - CTRLB Synchronization Busy"]
21 #[inline(always)]
22 pub fn ctrlb(&self) -> CTRLB_R {
23 CTRLB_R::new(((self.bits >> 2) & 0x01) != 0)
24 }
25}