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