pub enum ErrorKind {
    /// The peripheral receive buffer was overrun.
    Overrun,
    /// Multiple devices on the SPI bus are trying
    /// to drive the slave select pin,
    /// e.g. in a multi-master setup.
    ModeFault,
    /// Received data does not conform to the
    /// peripheral configuration.
    FrameFormat,
    /// An error occurred while asserting or
    /// deasserting the Chip Select pin.
    ChipSelectFault,
    /// A different error occurred. The original
    /// error may contain more information.
    Other,
}
