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