Cancel pending transaction (if supported by platform)
- Returns
- true if cancelled, false if not cancellable
- Note
- Not all platforms support cancellation
Definition at line 470 of file device.cpp.hpp.
470 {
472 return false;
473 }
474
475
476
477
478
479 pImpl->cancelled =
true;
480 pImpl->completed =
true;
481 pImpl->result = fl::task::Error(
"Transaction cancelled");
482
483
485 pImpl->device->pImpl->async_state.active =
false;
486 }
487
489 return true;
490}
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, and pImpl.