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