saml10e15a/freqm/
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>;
7impl R {
8 #[doc = "Bit 0 - Software Reset"]
9 #[inline(always)]
10 pub fn swrst(&self) -> SWRST_R {
11 SWRST_R::new((self.bits & 0x01) != 0)
12 }
13 #[doc = "Bit 1 - Enable"]
14 #[inline(always)]
15 pub fn enable(&self) -> ENABLE_R {
16 ENABLE_R::new(((self.bits >> 1) & 0x01) != 0)
17 }
18}