xmc4400/scu_osc/
oschpstat.rs

1#[doc = "Register `OSCHPSTAT` reader"]
2pub type R = crate::R<OSCHPSTAT_SPEC>;
3#[doc = "Field `X1D` reader - XTAL1 Data Value"]
4pub type X1D_R = crate::BitReader;
5impl R {
6    #[doc = "Bit 0 - XTAL1 Data Value"]
7    #[inline(always)]
8    pub fn x1d(&self) -> X1D_R {
9        X1D_R::new((self.bits & 1) != 0)
10    }
11}
12#[doc = "OSC_HP Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`oschpstat::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct OSCHPSTAT_SPEC;
14impl crate::RegisterSpec for OSCHPSTAT_SPEC {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`oschpstat::R`](R) reader structure"]
18impl crate::Readable for OSCHPSTAT_SPEC {}
19#[doc = "`reset()` method sets OSCHPSTAT to value 0"]
20impl crate::Resettable for OSCHPSTAT_SPEC {
21    const RESET_VALUE: u32 = 0;
22}