stm32f1/stm32f103/stk/
load_.rs

1///Register `LOAD_` reader
2pub type R = crate::R<LOAD_rs>;
3///Register `LOAD_` writer
4pub type W = crate::W<LOAD_rs>;
5///Field `RELOAD` reader - RELOAD value
6pub type RELOAD_R = crate::FieldReader<u32>;
7///Field `RELOAD` writer - RELOAD value
8pub type RELOAD_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
9impl R {
10    ///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 core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("LOAD_")
19            .field("reload", &self.reload())
20            .finish()
21    }
22}
23impl W {
24    ///Bits 0:23 - RELOAD value
25    #[inline(always)]
26    pub fn reload(&mut self) -> RELOAD_W<LOAD_rs> {
27        RELOAD_W::new(self, 0)
28    }
29}
30/**SysTick reload value register
31
32You can [`read`](crate::Reg::read) this register and get [`load_::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`load_::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
33
34See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#STK:LOAD_)*/
35pub struct LOAD_rs;
36impl crate::RegisterSpec for LOAD_rs {
37    type Ux = u32;
38}
39///`read()` method returns [`load_::R`](R) reader structure
40impl crate::Readable for LOAD_rs {}
41///`write(|w| ..)` method takes [`load_::W`](W) writer structure
42impl crate::Writable for LOAD_rs {
43    type Safety = crate::Unsafe;
44}
45///`reset()` method sets LOAD_ to value 0
46impl crate::Resettable for LOAD_rs {}