[−][src]Crate embedded_spi
Embedded SPI helper package
This defines a higher level Transactional
SPI interface, as well as an SPI Transaction
enumeration
that more closely map to the common uses of SPI peripherals, as well as some other common driver helpers.
An embedded_spi::wrapper::Wrapper
type is provided to wrap existing SPI implementations in this
embedded_spi::Transactional
interface, as well as a set of helpers for C compatibility enabled with
the compat
feature, and a basic mocking adaptor enabled with the mock
feature.
Modules
ffi | Compatibility shims to allow C use of rust SPI peripherals
This module provides mechanisms to convert an abstract |
mock | |
wrapper | Transactional SPI wrapper implementation
This provides a |
Enums
Error | Error type combining SPI and Pin errors for utility |
PinState | PinState enum used for busy indication |
Transaction | Transaction enum defines possible SPI transactions |
Traits
Transactional | Transaction trait provides higher level, transaction-based, SPI constructs These are executed in a single SPI transaction (without de-asserting CS). |