| Crates.io | spi-handle |
| lib.rs | spi-handle |
| version | 0.1.1 |
| created_at | 2024-07-09 03:18:33.983208+00 |
| updated_at | 2025-04-10 14:51:18.263799+00 |
| description | `SpiHandle` trait |
| homepage | |
| repository | https://github.com/Nautki/sirin |
| max_upload_size | |
| id | 1296591 |
| size | 6,735 |
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.