rp2040_pac/rosc/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<STATUS_SPEC>;
3#[doc = "Field `ENABLED` reader - Oscillator is enabled but not necessarily running and stable this resets to 0 but transitions to 1 during chip startup"]
4pub type ENABLED_R = crate::BitReader;
5#[doc = "Field `DIV_RUNNING` reader - post-divider is running this resets to 0 but transitions to 1 during chip startup"]
6pub type DIV_RUNNING_R = crate::BitReader;
7#[doc = "Field `STABLE` reader - Oscillator is running and stable"]
8pub type STABLE_R = crate::BitReader;
9impl R {
10    #[doc = "Bit 12 - Oscillator is enabled but not necessarily running and stable this resets to 0 but transitions to 1 during chip startup"]
11    #[inline(always)]
12    pub fn enabled(&self) -> ENABLED_R {
13        ENABLED_R::new(((self.bits >> 12) & 1) != 0)
14    }
15    #[doc = "Bit 16 - post-divider is running this resets to 0 but transitions to 1 during chip startup"]
16    #[inline(always)]
17    pub fn div_running(&self) -> DIV_RUNNING_R {
18        DIV_RUNNING_R::new(((self.bits >> 16) & 1) != 0)
19    }
20    #[doc = "Bit 31 - Oscillator is running and stable"]
21    #[inline(always)]
22    pub fn stable(&self) -> STABLE_R {
23        STABLE_R::new(((self.bits >> 31) & 1) != 0)
24    }
25}
26#[doc = "Ring Oscillator Status  
27
28You can [`read`](crate::generic::Reg::read) this register and get [`status::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct STATUS_SPEC;
30impl crate::RegisterSpec for STATUS_SPEC {
31    type Ux = u32;
32}
33#[doc = "`read()` method returns [`status::R`](R) reader structure"]
34impl crate::Readable for STATUS_SPEC {}
35#[doc = "`reset()` method sets STATUS to value 0"]
36impl crate::Resettable for STATUS_SPEC {
37    const RESET_VALUE: u32 = 0;
38}