efm32pg1b_pac/cmu/
cmd.rs

1///Register `CMD` writer
2pub type W = crate::W<CMDrs>;
3///Field `CALSTART` writer - Calibration Start
4pub type CalstartW<'a, REG> = crate::BitWriter<'a, REG>;
5///Field `CALSTOP` writer - Calibration Stop
6pub type CalstopW<'a, REG> = crate::BitWriter<'a, REG>;
7///Field `HFXOPEAKDETSTART` writer - HFXO Peak Detection Start
8pub type HfxopeakdetstartW<'a, REG> = crate::BitWriter<'a, REG>;
9///Field `HFXOSHUNTOPTSTART` writer - HFXO Shunt Current Optimization Start
10pub type HfxoshuntoptstartW<'a, REG> = crate::BitWriter<'a, REG>;
11impl core::fmt::Debug for crate::generic::Reg<CMDrs> {
12    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
13        write!(f, "(not readable)")
14    }
15}
16impl W {
17    ///Bit 0 - Calibration Start
18    #[inline(always)]
19    pub fn calstart(&mut self) -> CalstartW<CMDrs> {
20        CalstartW::new(self, 0)
21    }
22    ///Bit 1 - Calibration Stop
23    #[inline(always)]
24    pub fn calstop(&mut self) -> CalstopW<CMDrs> {
25        CalstopW::new(self, 1)
26    }
27    ///Bit 4 - HFXO Peak Detection Start
28    #[inline(always)]
29    pub fn hfxopeakdetstart(&mut self) -> HfxopeakdetstartW<CMDrs> {
30        HfxopeakdetstartW::new(self, 4)
31    }
32    ///Bit 5 - HFXO Shunt Current Optimization Start
33    #[inline(always)]
34    pub fn hfxoshuntoptstart(&mut self) -> HfxoshuntoptstartW<CMDrs> {
35        HfxoshuntoptstartW::new(self, 5)
36    }
37}
38///Command Register
39///
40///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmd::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
41pub struct CMDrs;
42impl crate::RegisterSpec for CMDrs {
43    type Ux = u32;
44}
45///`write(|w| ..)` method takes [`cmd::W`](W) writer structure
46impl crate::Writable for CMDrs {
47    type Safety = crate::Unsafe;
48    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
49    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
50}
51///`reset()` method sets CMD to value 0
52impl crate::Resettable for CMDrs {
53    const RESET_VALUE: u32 = 0;
54}