pub fn unlisten(&mut self, exti: &mut EXTI, event: Event) {
        // See the note in listen() about EXTI
        // unsafe: Only we can use these bits for anything
        let rcc = unsafe { &*RCC::ptr() };

        match event {
            Event::LseCss => {
                rcc.cier.modify(|_, w| w.lsecssie().disabled());
                exti.unlisten(ExtiEvent::RTC_OTHER);
                exti.rtsr1.modify(|_, w| w.tr18().disabled());
            }
            Event::AlarmA => {
                self.reg.cr.modify(|_, w| w.alraie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_ALARM);
                exti.rtsr1.modify(|_, w| w.tr17().disabled());
            }
            Event::AlarmB => {
                self.reg.cr.modify(|_, w| w.alrbie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_ALARM);
                exti.rtsr1.modify(|_, w| w.tr17().disabled());
            }
            Event::Wakeup => {
                self.reg.cr.modify(|_, w| w.wutie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_WAKEUP);
                exti.rtsr1.modify(|_, w| w.tr19().disabled());
            }
            Event::Timestamp => {
                self.reg.cr.modify(|_, w| w.tsie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_OTHER);
                exti.rtsr1.modify(|_, w| w.tr18().disabled());
            }
        }
    }
/// Stop listening for `event`
Stop listening for `event`
Stop listening for ` event `
pub fn unlisten(&mut self, exti: &mut EXTI, event: Event) {
        // See the note in listen() about EXTI
        // unsafe: Only we can use these bits for anything
        let rcc = unsafe { &*RCC::ptr() };
        match event {
            Event::LseCss => {
                rcc.cier.modify(|_, w| w.lsecssie().disabled());
                exti.unlisten(ExtiEvent::RTC_OTHER);
                exti.rtsr1.modify(|_, w| w.tr18().disabled());
            }
            Event::AlarmA => {
                self.reg.cr.modify(|_, w| w.alraie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_ALARM);
                exti.rtsr1.modify(|_, w| w.tr17().disabled());
            }
            Event::AlarmB => {
                self.reg.cr.modify(|_, w| w.alrbie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_ALARM);
                exti.rtsr1.modify(|_, w| w.tr17().disabled());
            }
            Event::Wakeup => {
                self.reg.cr.modify(|_, w| w.wutie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_WAKEUP);
                exti.rtsr1.modify(|_, w| w.tr19().disabled());
            }
            Event::Timestamp => {
                self.reg.cr.modify(|_, w| w.tsie().clear_bit());
                exti.unlisten(ExtiEvent::RTC_OTHER);
                exti.rtsr1.modify(|_, w| w.tr18().disabled());
            }
        }
    }
pub fn unlisten ( & mut self , exti : & mut EXTI , event : Event ) { // See the note in listen() about EXTI // unsafe: Only we can use these bits for anything let rcc = unsafe { & * RCC :: ptr ( ) } ; match event { Event :: LseCss => { rcc . cier . modify ( | _ , w | w . lsecssie ( ) . disabled ( ) ) ; exti . unlisten ( ExtiEvent :: RTC_OTHER ) ; exti . rtsr1 . modify ( | _ , w | w . tr18 ( ) . disabled ( ) ) ; } Event :: AlarmA => { self . reg . cr . modify ( | _ , w | w . alraie ( ) . clear_bit ( ) ) ; exti . unlisten ( ExtiEvent :: RTC_ALARM ) ; exti . rtsr1 . modify ( | _ , w | w . tr17 ( ) . disabled ( ) ) ; } Event :: AlarmB => { self . reg . cr . modify ( | _ , w | w . alrbie ( ) . clear_bit ( ) ) ; exti . unlisten ( ExtiEvent :: RTC_ALARM ) ; exti . rtsr1 . modify ( | _ , w | w . tr17 ( ) . disabled ( ) ) ; } Event :: Wakeup => { self . reg . cr . modify ( | _ , w | w . wutie ( ) . clear_bit ( ) ) ; exti . unlisten ( ExtiEvent :: RTC_WAKEUP ) ; exti . rtsr1 . modify ( | _ , w | w . tr19 ( ) . disabled ( ) ) ; } Event :: Timestamp => { self . reg . cr . modify ( | _ , w | w . tsie ( ) . clear_bit ( ) ) ; exti . unlisten ( ExtiEvent :: RTC_OTHER ) ; exti . rtsr1 . modify ( | _ , w | w . tr18 ( ) . disabled ( ) ) ; } } }
Stop listening for `event`
Stop listening for ` event `
&mut self
exti
&mut EXTI
event
Event
&mut self
exti
&mut EXTI
event
Event