stm32f4/stm32f413/can1/fb/fr1.rs
1///Register `FR1` reader
2pub type R = crate::R<FR1rs>;
3///Register `FR1` writer
4pub type W = crate::W<FR1rs>;
5///Field `FB` reader - Filter bits
6pub type FB_R = crate::FieldReader<u32>;
7///Field `FB` writer - Filter bits
8pub type FB_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 ///Bits 0:31 - Filter bits
11 #[inline(always)]
12 pub fn fb(&self) -> FB_R {
13 FB_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("FR1").field("fb", &self.fb()).finish()
19 }
20}
21impl W {
22 ///Bits 0:31 - Filter bits
23 #[inline(always)]
24 pub fn fb(&mut self) -> FB_W<FR1rs> {
25 FB_W::new(self, 0)
26 }
27}
28/**Filter bank x register 1
29
30You can [`read`](crate::Reg::read) this register and get [`fr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
31pub struct FR1rs;
32impl crate::RegisterSpec for FR1rs {
33 type Ux = u32;
34}
35///`read()` method returns [`fr1::R`](R) reader structure
36impl crate::Readable for FR1rs {}
37///`write(|w| ..)` method takes [`fr1::W`](W) writer structure
38impl crate::Writable for FR1rs {
39 type Safety = crate::Unsafe;
40}
41///`reset()` method sets FR1 to value 0
42impl crate::Resettable for FR1rs {}