![]() |
Speeduino
|
This structure represents a trigger interrupt. More...
#include <decoder_t.h>
Public Types | |
| using | callback_t = void(*)(void) |
Public Member Functions | |
| void | attach (uint8_t pin) const |
| Attach the interrupt to a pin. | |
| void | detach (uint8_t pin) const |
| Detach the interrupt from a pin. | |
| bool | isValid (void) const |
Public Attributes | |
| callback_t | callback = nullptr |
| The callback function to be called on interrupt. | |
| uint8_t | edge = TRIGGER_EDGE_NONE |
| The edge type for the interrupt. E.g. RISING, FALLING, CHANGE. | |
This structure represents a trigger interrupt.
| using interrupt_t::callback_t = void(*)(void) |
Attach the interrupt to a pin.


Detach the interrupt from a pin.


| callback_t interrupt_t::callback = nullptr |
The callback function to be called on interrupt.
| uint8_t interrupt_t::edge = TRIGGER_EDGE_NONE |
The edge type for the interrupt. E.g. RISING, FALLING, CHANGE.