stm32l5/stm32l562/tim2/
arr.rs

1///Register `ARR` reader
2pub type R = crate::R<ARRrs>;
3///Register `ARR` writer
4pub type W = crate::W<ARRrs>;
5///Field `ARR` reader - Auto-reload value
6pub type ARR_R = crate::FieldReader<u32>;
7///Field `ARR` writer - Auto-reload value
8pub type ARR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
9impl R {
10    ///Bits 0:31 - Auto-reload value
11    #[inline(always)]
12    pub fn arr(&self) -> ARR_R {
13        ARR_R::new(self.bits)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("ARR").field("arr", &self.arr()).finish()
19    }
20}
21impl W {
22    ///Bits 0:31 - Auto-reload value
23    #[inline(always)]
24    pub fn arr(&mut self) -> ARR_W<ARRrs> {
25        ARR_W::new(self, 0)
26    }
27}
28/**auto-reload register
29
30You 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).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L562.html#TIM2:ARR)*/
33pub struct ARRrs;
34impl crate::RegisterSpec for ARRrs {
35    type Ux = u32;
36}
37///`read()` method returns [`arr::R`](R) reader structure
38impl crate::Readable for ARRrs {}
39///`write(|w| ..)` method takes [`arr::W`](W) writer structure
40impl crate::Writable for ARRrs {
41    type Safety = crate::Safe;
42}
43///`reset()` method sets ARR to value 0xffff_ffff
44impl crate::Resettable for ARRrs {
45    const RESET_VALUE: u32 = 0xffff_ffff;
46}