SpiDev

Type Alias SpiDev 

Source
pub type SpiDev<'a> = RefCellDevice<'a, SpiBusInner, Output<'a>, InnerDelay>;
Expand description

A virtual SPI device (chip-select + delay) created from a shared SpiBusWrapper.

The concrete type is selected by the active feature combination:

FeaturesType
blocking + RefCellBusembedded_hal_bus::spi::RefCellDevice<…>
blocking + CriticalSectionBusembedded_hal_bus::spi::CriticalSectionDevice<…>
blocking + AtomicBusembedded_hal_bus::spi::AtomicDevice<…>
async + AsyncBusembassy_embedded_hal::shared_bus::asynch::spi::SpiDevice<…>

Aliased Type§

pub struct SpiDev<'a> { /* private fields */ }