Skip to main content

BusError

Type Alias BusError 

Source
pub type BusError = OpenError;
Expand description

Why the SPI device or a GPIO line could not be opened.

Aliased Type§

pub enum BusError {
    I2c(LinuxI2CError),
    Spi(SPIError),
    Gpio(Error),
    SpiMode(u8),
}

Variants§

§

I2c(LinuxI2CError)

The I2C adapter could not be opened.

§

Spi(SPIError)

The SPI device could not be opened or configured.

§

Gpio(Error)

The GPIO chip or line could not be opened or requested.

§

SpiMode(u8)

The SPI mode was not 0, 1, 2, or 3.