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