stm32l4/stm32l4x1/rcc/
crrcr.rs1pub type R = crate::R<CRRCRrs>;
3pub type W = crate::W<CRRCRrs>;
5pub type HSI48ON_R = crate::BitReader;
7pub type HSI48ON_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type HSI48RDY_R = crate::BitReader;
11pub type HSI48CAL_R = crate::FieldReader<u16>;
13impl R {
14 #[inline(always)]
16 pub fn hsi48on(&self) -> HSI48ON_R {
17 HSI48ON_R::new((self.bits & 1) != 0)
18 }
19 #[inline(always)]
21 pub fn hsi48rdy(&self) -> HSI48RDY_R {
22 HSI48RDY_R::new(((self.bits >> 1) & 1) != 0)
23 }
24 #[inline(always)]
26 pub fn hsi48cal(&self) -> HSI48CAL_R {
27 HSI48CAL_R::new(((self.bits >> 7) & 0x01ff) as u16)
28 }
29}
30impl core::fmt::Debug for R {
31 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
32 f.debug_struct("CRRCR")
33 .field("hsi48on", &self.hsi48on())
34 .field("hsi48rdy", &self.hsi48rdy())
35 .field("hsi48cal", &self.hsi48cal())
36 .finish()
37 }
38}
39impl W {
40 #[inline(always)]
42 pub fn hsi48on(&mut self) -> HSI48ON_W<CRRCRrs> {
43 HSI48ON_W::new(self, 0)
44 }
45}
46pub struct CRRCRrs;
52impl crate::RegisterSpec for CRRCRrs {
53 type Ux = u32;
54}
55impl crate::Readable for CRRCRrs {}
57impl crate::Writable for CRRCRrs {
59 type Safety = crate::Unsafe;
60}
61impl crate::Resettable for CRRCRrs {
63 const RESET_VALUE: u32 = 0x0c00_0600;
64}