atsamd51p19a/osc32kctrl/
status.rs1#[doc = "Reader of register STATUS"]
2pub type R = crate::R<u32, super::STATUS>;
3#[doc = "Reader of field `XOSC32KRDY`"]
4pub type XOSC32KRDY_R = crate::R<bool, bool>;
5#[doc = "Reader of field `XOSC32KFAIL`"]
6pub type XOSC32KFAIL_R = crate::R<bool, bool>;
7#[doc = "Reader of field `XOSC32KSW`"]
8pub type XOSC32KSW_R = crate::R<bool, bool>;
9impl R {
10 #[doc = "Bit 0 - XOSC32K Ready"]
11 #[inline(always)]
12 pub fn xosc32krdy(&self) -> XOSC32KRDY_R {
13 XOSC32KRDY_R::new((self.bits & 0x01) != 0)
14 }
15 #[doc = "Bit 2 - XOSC32K Clock Failure Detector"]
16 #[inline(always)]
17 pub fn xosc32kfail(&self) -> XOSC32KFAIL_R {
18 XOSC32KFAIL_R::new(((self.bits >> 2) & 0x01) != 0)
19 }
20 #[doc = "Bit 3 - XOSC32K Clock switch"]
21 #[inline(always)]
22 pub fn xosc32ksw(&self) -> XOSC32KSW_R {
23 XOSC32KSW_R::new(((self.bits >> 3) & 0x01) != 0)
24 }
25}