Shutdown the SPI hardware and release resources.
- Note
- Waits for pending operations to complete
Definition at line 127 of file device.cpp.hpp.
127 {
129 return;
130 }
131
132
134
135
136
137
138
139 pImpl->hw_backend =
nullptr;
140
141
142 if (
pImpl->bus_handle.is_valid) {
143 SPIBusManager& mgr = getSPIBusManager();
144 mgr.unregisterDevice(
pImpl->bus_handle);
145 pImpl->bus_handle = SPIBusHandle();
146 }
147
148 pImpl->initialized =
false;
150}
bool waitComplete(u32 timeout_ms=(fl::numeric_limits< u32 >::max)())
Wait for pending async operation to complete.
fl::unique_ptr< Impl > pImpl
#define FL_LOG_SPI(X)
Serial Peripheral Interface (SPI) logging Logs SPI configuration, initialization, and transfers.
References FL_LOG_SPI, pImpl, and waitComplete().
Referenced by ~Device().