fn _detach(&self) {
        self.state.map(|state| match *state {
            State::Reset => {
                client_err!("Not enabled");
            }
            State::Idle(_) => {
                client_err!("Not attached");
            }
            State::Active(mode) => {
                UDCON_DETACH.write(true);

                scif::generic_clock_disable(scif::GenericClock::GCLK7);

                *state = State::Idle(mode);
            }
        });
    }
/// Detach from the USB bus.  Also disable USB clock to save energy.
Detach from the USB bus.  Also disable USB clock to save energy.
Detach from the USB bus . Also disable USB clock to save energy .
fn _detach(&self) {
        self.state.map(|state| match *state {
            State::Reset => {
                client_err!("Not enabled");
            }
            State::Idle(_) => {
                client_err!("Not attached");
            }
            State::Active(mode) => {
                UDCON_DETACH.write(true);
                scif::generic_clock_disable(scif::GenericClock::GCLK7);
                *state = State::Idle(mode);
            }
        });
    }
fn _detach ( & self ) { self . state . map ( | state | match * state { State :: Reset => { client_err ! ( " " ) ; } State :: Idle ( _ ) => { client_err ! ( " " ) ; } State :: Active ( mode ) => { UDCON_DETACH . write ( true ) ; scif :: generic_clock_disable ( scif :: GenericClock :: GCLK7 ) ; * state = State :: Idle ( mode ) ; } } ) ; }
Detach from the USB bus.
Detach from the USB bus .
&self
&self