Destructor - releases hardware resources.
- Note
- Waits for pending operations to complete
Definition at line 27 of file device.cpp.hpp.
27 {
30 FL_LOG_SPI(
"SPI Device: Calling end() from destructor");
32 }
33
34 FL_LOG_SPI(
"SPI Device: Checking owned hardware backend");
35
36
38 FL_LOG_SPI(
"SPI Device: Cleaning up owned hardware backend");
39 pImpl->hw_backend->end();
40 pImpl->hw_backend =
nullptr;
41 }
43}
void end()
Shutdown the SPI hardware and release resources.
fl::unique_ptr< Impl > pImpl
#define FL_LOG_SPI(X)
Serial Peripheral Interface (SPI) logging Logs SPI configuration, initialization, and transfers.
References end(), FL_LOG_SPI, FL_NOEXCEPT, and pImpl.