stm32f3_staging/stm32f303/tsc/
isr.rs1pub type R = crate::R<ISRrs>;
3pub type W = crate::W<ISRrs>;
5pub type EOAF_R = crate::BitReader;
7pub type EOAF_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type MCEF_R = crate::BitReader;
11pub type MCEF_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[inline(always)]
16 pub fn eoaf(&self) -> EOAF_R {
17 EOAF_R::new((self.bits & 1) != 0)
18 }
19 #[inline(always)]
21 pub fn mcef(&self) -> MCEF_R {
22 MCEF_R::new(((self.bits >> 1) & 1) != 0)
23 }
24}
25impl core::fmt::Debug for R {
26 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
27 f.debug_struct("ISR")
28 .field("mcef", &self.mcef())
29 .field("eoaf", &self.eoaf())
30 .finish()
31 }
32}
33impl W {
34 #[inline(always)]
36 pub fn eoaf(&mut self) -> EOAF_W<ISRrs> {
37 EOAF_W::new(self, 0)
38 }
39 #[inline(always)]
41 pub fn mcef(&mut self) -> MCEF_W<ISRrs> {
42 MCEF_W::new(self, 1)
43 }
44}
45pub struct ISRrs;
51impl crate::RegisterSpec for ISRrs {
52 type Ux = u32;
53}
54impl crate::Readable for ISRrs {}
56impl crate::Writable for ISRrs {
58 type Safety = crate::Unsafe;
59 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
60 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
61}
62impl crate::Resettable for ISRrs {
64 const RESET_VALUE: u32 = 0;
65}