Handle returned when registering with the SPI bus manager
| 39 | |
| 40 | /// Handle returned when registering with the SPI bus manager |
| 41 | struct SPIBusHandle { |
| 42 | u8 bus_id; ///< Internal bus ID |
| 43 | u8 lane_id; ///< Lane ID within bus (0 for single SPI, 0-3 for quad, 0-7 for octo) |
| 44 | bool is_valid; ///< Whether this handle is valid |
| 45 | |
| 46 | SPIBusHandle() FL_NOEXCEPT : bus_id(0xFF), lane_id(0xFF), is_valid(false) {} |
| 47 | SPIBusHandle(u8 bid, u8 lid) FL_NOEXCEPT : bus_id(bid), lane_id(lid), is_valid(true) {} |
| 48 | }; |
| 49 | |
| 50 | /// Information about a registered device on an SPI bus |
| 51 | struct SPIDeviceInfo { |
no outgoing calls
no test coverage detected