1#[doc = "Register `HFNUM` reader"]
2pub type R = crate::R<HFNUM_SPEC>;
3#[doc = "Field `FRNUM` reader - "]
4pub type FRNUM_R = crate::FieldReader<u16>;
5#[doc = "Field `FRREM` reader - "]
6pub type FRREM_R = crate::FieldReader<u16>;
7impl R {
8 #[doc = "Bits 0:13"]
9 #[inline(always)]
10 pub fn frnum(&self) -> FRNUM_R {
11 FRNUM_R::new((self.bits & 0x3fff) as u16)
12 }
13 #[doc = "Bits 16:31"]
14 #[inline(always)]
15 pub fn frrem(&self) -> FRREM_R {
16 FRREM_R::new(((self.bits >> 16) & 0xffff) as u16)
17 }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22 f.debug_struct("HFNUM")
23 .field("frnum", &self.frnum())
24 .field("frrem", &self.frrem())
25 .finish()
26 }
27}
28#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`hfnum::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct HFNUM_SPEC;
30impl crate::RegisterSpec for HFNUM_SPEC {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`hfnum::R`](R) reader structure"]
34impl crate::Readable for HFNUM_SPEC {}
35#[doc = "`reset()` method sets HFNUM to value 0x3fff"]
36impl crate::Resettable for HFNUM_SPEC {
37 const RESET_VALUE: u32 = 0x3fff;
38}