atsamd51g/supc/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<StatusSpec>;
3#[doc = "Field `BOD33RDY` reader - BOD33 Ready"]
4pub type Bod33rdyR = crate::BitReader;
5#[doc = "Field `BOD33DET` reader - BOD33 Detection"]
6pub type Bod33detR = crate::BitReader;
7#[doc = "Field `B33SRDY` reader - BOD33 Synchronization Ready"]
8pub type B33srdyR = crate::BitReader;
9#[doc = "Field `VREGRDY` reader - Voltage Regulator Ready"]
10pub type VregrdyR = crate::BitReader;
11#[doc = "Field `VCORERDY` reader - VDDCORE Ready"]
12pub type VcorerdyR = crate::BitReader;
13impl R {
14    #[doc = "Bit 0 - BOD33 Ready"]
15    #[inline(always)]
16    pub fn bod33rdy(&self) -> Bod33rdyR {
17        Bod33rdyR::new((self.bits & 1) != 0)
18    }
19    #[doc = "Bit 1 - BOD33 Detection"]
20    #[inline(always)]
21    pub fn bod33det(&self) -> Bod33detR {
22        Bod33detR::new(((self.bits >> 1) & 1) != 0)
23    }
24    #[doc = "Bit 2 - BOD33 Synchronization Ready"]
25    #[inline(always)]
26    pub fn b33srdy(&self) -> B33srdyR {
27        B33srdyR::new(((self.bits >> 2) & 1) != 0)
28    }
29    #[doc = "Bit 8 - Voltage Regulator Ready"]
30    #[inline(always)]
31    pub fn vregrdy(&self) -> VregrdyR {
32        VregrdyR::new(((self.bits >> 8) & 1) != 0)
33    }
34    #[doc = "Bit 10 - VDDCORE Ready"]
35    #[inline(always)]
36    pub fn vcorerdy(&self) -> VcorerdyR {
37        VcorerdyR::new(((self.bits >> 10) & 1) != 0)
38    }
39}
40#[doc = "Power and Clocks Status\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
41pub struct StatusSpec;
42impl crate::RegisterSpec for StatusSpec {
43    type Ux = u32;
44}
45#[doc = "`read()` method returns [`status::R`](R) reader structure"]
46impl crate::Readable for StatusSpec {}
47#[doc = "`reset()` method sets STATUS to value 0"]
48impl crate::Resettable for StatusSpec {
49    const RESET_VALUE: u32 = 0;
50}