stm32f1/stm32f103/can/
fmr.rs

1///Register `FMR` reader
2pub type R = crate::R<FMRrs>;
3///Register `FMR` writer
4pub type W = crate::W<FMRrs>;
5///Field `FINIT` reader - FINIT
6pub type FINIT_R = crate::BitReader;
7///Field `FINIT` writer - FINIT
8pub type FINIT_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10    ///Bit 0 - FINIT
11    #[inline(always)]
12    pub fn finit(&self) -> FINIT_R {
13        FINIT_R::new((self.bits & 1) != 0)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("FMR").field("finit", &self.finit()).finish()
19    }
20}
21impl W {
22    ///Bit 0 - FINIT
23    #[inline(always)]
24    pub fn finit(&mut self) -> FINIT_W<FMRrs> {
25        FINIT_W::new(self, 0)
26    }
27}
28/**CAN_FMR
29
30You can [`read`](crate::Reg::read) this register and get [`fmr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fmr::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/STM32F103.html#CAN:FMR)*/
33pub struct FMRrs;
34impl crate::RegisterSpec for FMRrs {
35    type Ux = u32;
36}
37///`read()` method returns [`fmr::R`](R) reader structure
38impl crate::Readable for FMRrs {}
39///`write(|w| ..)` method takes [`fmr::W`](W) writer structure
40impl crate::Writable for FMRrs {
41    type Safety = crate::Unsafe;
42}
43///`reset()` method sets FMR to value 0
44impl crate::Resettable for FMRrs {}