|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
RAII handle for ISR registration that removes the handler on destruction. More...
#include <idfxx_gpio/include/idfxx/gpio.hpp>
Public Member Functions | |
| unique_isr_handle () noexcept | |
| Constructs an empty unique_isr_handle. | |
| unique_isr_handle (isr_handle handle) noexcept | |
| Constructs from an isr_handle, taking ownership. | |
| unique_isr_handle (unique_isr_handle &&other) noexcept | |
| Move constructor. | |
| unique_isr_handle & | operator= (unique_isr_handle &&other) noexcept |
| Move assignment operator. | |
| unique_isr_handle (const unique_isr_handle &)=delete | |
| unique_isr_handle & | operator= (const unique_isr_handle &)=delete |
| ~unique_isr_handle () | |
| Destructor. | |
| isr_handle | release () noexcept |
| Releases ownership of the handle without removing the ISR. | |
RAII handle for ISR registration that removes the handler on destruction.
Unlike isr_handle, this class provides RAII semantics: when the unique_isr_handle is destroyed, the ISR handler is automatically removed.
This class is move-only. Use release() to transfer ownership back to a non-RAII isr_handle if needed.
|
inlineexplicitnoexcept |
Constructs an empty unique_isr_handle.
Represents no ownership of any ISR handler.
|
inlineexplicitnoexcept |
Constructs from an isr_handle, taking ownership.
| handle | The isr_handle to take ownership of. |
|
inlinenoexcept |
|
delete |
|
inline |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
Releases ownership of the handle without removing the ISR.