efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `RET6_REG` reader
pub type R = crate::R<RET6_REGrs>;
///Register `RET6_REG` writer
pub type W = crate::W<RET6_REGrs>;
///Field `REG` reader - General Purpose Retention Register
pub type RegR = crate::FieldReader<u32>;
///Field `REG` writer - General Purpose Retention Register
pub type RegW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
    ///Bits 0:31 - General Purpose Retention Register
    #[inline(always)]
    pub fn reg(&self) -> RegR {
        RegR::new(self.bits)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("RET6_REG")
            .field("reg", &self.reg())
            .finish()
    }
}
impl W {
    ///Bits 0:31 - General Purpose Retention Register
    #[inline(always)]
    pub fn reg(&mut self) -> RegW<'_, RET6_REGrs> {
        RegW::new(self, 0)
    }
}
///Retention Register
///
///You can [`read`](crate::Reg::read) this register and get [`ret6_reg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ret6_reg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct RET6_REGrs;
impl crate::RegisterSpec for RET6_REGrs {
    type Ux = u32;
}
///`read()` method returns [`ret6_reg::R`](R) reader structure
impl crate::Readable for RET6_REGrs {}
///`write(|w| ..)` method takes [`ret6_reg::W`](W) writer structure
impl crate::Writable for RET6_REGrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets RET6_REG to value 0
impl crate::Resettable for RET6_REGrs {}