stm32f3_staging/stm32f303/usb/
btable.rs1pub type R = crate::R<BTABLErs>;
3pub type W = crate::W<BTABLErs>;
5pub type BTABLE_R = crate::FieldReader<u16>;
7pub type BTABLE_W<'a, REG> = crate::FieldWriter<'a, REG, 13, u16, crate::Safe>;
9impl R {
10 #[inline(always)]
12 pub fn btable(&self) -> BTABLE_R {
13 BTABLE_R::new(((self.bits >> 3) & 0x1fff) as u16)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("BTABLE").field("btable", &self.btable()).finish()
19 }
20}
21impl W {
22 #[inline(always)]
24 pub fn btable(&mut self) -> BTABLE_W<BTABLErs> {
25 BTABLE_W::new(self, 3)
26 }
27}
28pub struct BTABLErs;
34impl crate::RegisterSpec for BTABLErs {
35 type Ux = u32;
36}
37impl crate::Readable for BTABLErs {}
39impl crate::Writable for BTABLErs {
41 type Safety = crate::Unsafe;
42 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
44}
45impl crate::Resettable for BTABLErs {
47 const RESET_VALUE: u32 = 0;
48}