ws2812_flexio/flexio/
interrupt_handler.rs

1use super::InterruptHandler;
2
3impl<const N: u8> InterruptHandler<N> {
4    /// Signals to the [`WS2812Driver`](crate::WS2812Driver) that a FlexIO
5    /// interrupt happened.
6    ///
7    /// Needs to be called inside of the respective FlexIO
8    /// interrupt handler function.
9    ///
10    /// See the [examples](https://github.com/Finomnis/ws2812-flexio/tree/main/examples) for more information.
11    pub fn on_interrupt(&self) {
12        self.data.finished_watcher.on_interrupt();
13    }
14}