stm32f1_staging/stm32f107/sdio/
power.rs1pub type R = crate::R<POWERrs>;
3pub type W = crate::W<POWERrs>;
5pub type PWRCTRL_R = crate::FieldReader;
7pub type PWRCTRL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
9impl R {
10 #[inline(always)]
12 pub fn pwrctrl(&self) -> PWRCTRL_R {
13 PWRCTRL_R::new((self.bits & 3) as u8)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("POWER").field("pwrctrl", &self.pwrctrl()).finish()
19 }
20}
21impl W {
22 #[inline(always)]
24 pub fn pwrctrl(&mut self) -> PWRCTRL_W<POWERrs> {
25 PWRCTRL_W::new(self, 0)
26 }
27}
28pub struct POWERrs;
34impl crate::RegisterSpec for POWERrs {
35 type Ux = u32;
36}
37impl crate::Readable for POWERrs {}
39impl crate::Writable for POWERrs {
41 type Safety = crate::Unsafe;
42 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
44}
45impl crate::Resettable for POWERrs {
47 const RESET_VALUE: u32 = 0;
48}