#[doc = "Register `DR20` reader"]
pub type R = crate::R<Dr20Spec>;
#[doc = "Register `DR20` writer"]
pub type W = crate::W<Dr20Spec>;
#[doc = "Field `D20` reader - Backup data"]
pub type D20R = crate::FieldReader<u16>;
#[doc = "Field `D20` writer - Backup data"]
pub type D20W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline(always)]
pub fn d20(&self) -> D20R {
D20R::new((self.bits & 0xffff) as u16)
}
}
impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline(always)]
pub fn d20(&mut self) -> D20W<'_, Dr20Spec> {
D20W::new(self, 0)
}
}
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr20::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr20::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Dr20Spec;
impl crate::RegisterSpec for Dr20Spec {
type Ux = u32;
}
#[doc = "`read()` method returns [`dr20::R`](R) reader structure"]
impl crate::Readable for Dr20Spec {}
#[doc = "`write(|w| ..)` method takes [`dr20::W`](W) writer structure"]
impl crate::Writable for Dr20Spec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets DR20 to value 0"]
impl crate::Resettable for Dr20Spec {}