Forgot to expose the stop method

This commit is contained in:
huntc 2022-02-04 19:14:24 +11:00
parent 965a5f2c3f
commit 3b2beddc7a

View File

@ -342,6 +342,14 @@ impl<'d, 's, T: Instance> SingleSequencer<'d, 's, T> {
}; };
self.sequencer.start(start_seq, times) self.sequencer.start(start_seq, times)
} }
/// Stop playback. Disables the peripheral. Does NOT clear the last duty
/// cycle from the pin. Returns any sequences previously provided to
/// `start` so that they may be further mutated.
#[inline(always)]
pub fn stop(&self) {
self.sequencer.stop();
}
} }
/// A composition of sequences that can be started and stopped. /// A composition of sequences that can be started and stopped.