|
FastLED 3.9.15
|
Handle for asynchronous SPI operations.
RAII wrapper that automatically waits on destruction if not completed
Definition at line 38 of file transaction.h.
#include <transaction.h>
Collaboration diagram for fl::spi::Transaction:Classes | |
| struct | Impl |
| Private implementation data for Transaction class. More... | |
Public Member Functions | |
| Transaction (Transaction &&other) FL_NOEXCEPT | |
| ~Transaction () | |
| Destructor - automatically waits for completion. | |
| bool | cancel () |
| Cancel pending transaction (if supported by platform) | |
| fl::optional< fl::task::Error > | getResult () const |
| Get result of completed transaction. | |
| bool | isDone () const |
| Check if transaction is complete. | |
| bool | isPending () const |
| Check if transaction is still in progress. | |
| Transaction & | operator= (Transaction &&other) FL_NOEXCEPT |
| bool | wait (u32 timeout_ms=(fl::numeric_limits< u32 >::max)()) |
| Wait for transaction to complete. | |
Private Member Functions | |
| Transaction () FL_NOEXCEPT | |
| Transaction (const Transaction &) FL_NOEXCEPT=delete | |
| Transaction & | operator= (const Transaction &) FL_NOEXCEPT=delete |
Private Attributes | |
| fl::unique_ptr< Impl > | pImpl |
Friends | |
| class | Device |