atsamd51j19a/supc/
status.rs

1#[doc = "Reader of register STATUS"]
2pub type R = crate::R<u32, super::STATUS>;
3#[doc = "Reader of field `BOD33RDY`"]
4pub type BOD33RDY_R = crate::R<bool, bool>;
5#[doc = "Reader of field `BOD33DET`"]
6pub type BOD33DET_R = crate::R<bool, bool>;
7#[doc = "Reader of field `B33SRDY`"]
8pub type B33SRDY_R = crate::R<bool, bool>;
9#[doc = "Reader of field `VREGRDY`"]
10pub type VREGRDY_R = crate::R<bool, bool>;
11#[doc = "Reader of field `VCORERDY`"]
12pub type VCORERDY_R = crate::R<bool, bool>;
13impl R {
14    #[doc = "Bit 0 - BOD33 Ready"]
15    #[inline(always)]
16    pub fn bod33rdy(&self) -> BOD33RDY_R {
17        BOD33RDY_R::new((self.bits & 0x01) != 0)
18    }
19    #[doc = "Bit 1 - BOD33 Detection"]
20    #[inline(always)]
21    pub fn bod33det(&self) -> BOD33DET_R {
22        BOD33DET_R::new(((self.bits >> 1) & 0x01) != 0)
23    }
24    #[doc = "Bit 2 - BOD33 Synchronization Ready"]
25    #[inline(always)]
26    pub fn b33srdy(&self) -> B33SRDY_R {
27        B33SRDY_R::new(((self.bits >> 2) & 0x01) != 0)
28    }
29    #[doc = "Bit 8 - Voltage Regulator Ready"]
30    #[inline(always)]
31    pub fn vregrdy(&self) -> VREGRDY_R {
32        VREGRDY_R::new(((self.bits >> 8) & 0x01) != 0)
33    }
34    #[doc = "Bit 10 - VDDCORE Ready"]
35    #[inline(always)]
36    pub fn vcorerdy(&self) -> VCORERDY_R {
37        VCORERDY_R::new(((self.bits >> 10) & 0x01) != 0)
38    }
39}