[−][src]Module imxrt1062_hal::spi
SPI support
The module provides an implementation of the embedded_hal::spi::FullDuplex
trait.
All blocking implementations are provided by the default implementations from
embedded_hal
.
Chip selects (CS) for SPI peripherals
The iMXRT SPI peripherals have one or more peripheral-controlled chip selects (CS). Using
the peripheral-controlled CS means that you do not need a GPIO to coordinate SPI operations.
The peripheral-controlled CS is disabled by default. Use the enable_chip_select_N
, where
N
is the CS number, to enable the peripheral-controlled CS. Your hardware must be wired to
accomodate this selection. If you do not want to use the peripheral-controlled CS, you may
select your own GPIO.
Re-exports
pub use crate::iomuxc::spi::module; |
Structs
Builder | A SPI builder that can build a SPI peripheral |
BusIdleTimeoutError | Indicates an error when computing the parameters that control the bus idle timeout |
ClockSpeed | SPI Clock speed, in Hz |
ClockSpeedError | Indicates an error when computing the parameters that control the clock speed. |
ModeError | Indicates an error when computing the parameters that control the mode. |
PinLowTimeoutError | Indicates an error when computing the parameters that control the pin low timeout |
SPI | An SPI master |
Unclocked | Unclocked SPI modules |
Enums
Error | An error that occured during a SPI operation |