spi-handle

Crates.iospi-handle
lib.rsspi-handle
version0.1.1
created_at2024-07-09 03:18:33.983208+00
updated_at2025-04-10 14:51:18.263799+00
description`SpiHandle` trait
homepage
repositoryhttps://github.com/Nautki/sirin
max_upload_size
id1296591
size6,735
Serena Lynas (SerenaLynas)

documentation

README

You can trivially turn any SpiBus into SpiHandle with SpiBusHandle(spi_bus).

I didn't like embedded-hal's API for SpiDevice, so I made my own, called SpiHandle. Just call select on the handle and you will get something that implements SpiBus that gauruntees exclusive access of the bus until it is dropped.

Commit count: 239

cargo fmt