shiftreg_spi/
error.rs

1use core::fmt::Debug;
2
3#[derive(Debug)]
4pub enum ShiftRegError<SpiError> {
5    Spi(SpiError),
6}
7
8impl<SpiError> embedded_hal::digital::Error for ShiftRegError<SpiError>
9where
10    SpiError: Debug,
11{
12    fn kind(&self) -> embedded_hal::digital::ErrorKind {
13        embedded_hal::digital::ErrorKind::Other
14    }
15}