| 204 | } |
| 205 | |
| 206 | void SPIBusManager::waitComplete(SPIBusHandle handle) FL_NOEXCEPT { |
| 207 | if (!handle.is_valid || handle.bus_id >= mNumBuses) { |
| 208 | return; |
| 209 | } |
| 210 | |
| 211 | SPIBusInfo& bus = mBuses[handle.bus_id]; |
| 212 | if (!bus.is_initialized) { |
| 213 | return; |
| 214 | } |
| 215 | |
| 216 | // Use polymorphic interface - works for all SPI types |
| 217 | if (bus.hw_controller) { |
| 218 | bus.hw_controller->waitComplete(); |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | void SPIBusManager::finalizeTransmission(SPIBusHandle handle) FL_NOEXCEPT { |
| 223 | if (!handle.is_valid || handle.bus_id >= mNumBuses) { |
no outgoing calls
no test coverage detected