xmc4100/ppb/
syst_rvr.rs

1#[doc = "Register `SYST_RVR` reader"]
2pub type R = crate::R<SYST_RVR_SPEC>;
3#[doc = "Register `SYST_RVR` writer"]
4pub type W = crate::W<SYST_RVR_SPEC>;
5#[doc = "Field `RELOAD` reader - Reload Value"]
6pub type RELOAD_R = crate::FieldReader<u32>;
7#[doc = "Field `RELOAD` writer - Reload Value"]
8pub type RELOAD_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
9impl R {
10    #[doc = "Bits 0:23 - Reload Value"]
11    #[inline(always)]
12    pub fn reload(&self) -> RELOAD_R {
13        RELOAD_R::new(self.bits & 0x00ff_ffff)
14    }
15}
16impl W {
17    #[doc = "Bits 0:23 - Reload Value"]
18    #[inline(always)]
19    pub fn reload(&mut self) -> RELOAD_W<SYST_RVR_SPEC> {
20        RELOAD_W::new(self, 0)
21    }
22}
23#[doc = "SysTick Reload Value Register\n\nYou can [`read`](crate::Reg::read) this register and get [`syst_rvr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`syst_rvr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct SYST_RVR_SPEC;
25impl crate::RegisterSpec for SYST_RVR_SPEC {
26    type Ux = u32;
27}
28#[doc = "`read()` method returns [`syst_rvr::R`](R) reader structure"]
29impl crate::Readable for SYST_RVR_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`syst_rvr::W`](W) writer structure"]
31impl crate::Writable for SYST_RVR_SPEC {
32    type Safety = crate::Unsafe;
33    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets SYST_RVR to value 0"]
37impl crate::Resettable for SYST_RVR_SPEC {
38    const RESET_VALUE: u32 = 0;
39}