![]() |
Speeduino
|
This structure represents a trigger interrupt. More...
#include <decoder_t.h>

Public Types | |
| using | callback_t = void(*)(void) |
Public Member Functions | |
| interrupt_t ()=default | |
| interrupt_t (callback_t _callback, uint8_t _edge) | |
| uint8_t | attach (uint8_t pin) |
| Attach the interrupt to a pin. | |
| void | detach (uint8_t pin) |
| Detach the interrupt from a pin. | |
| bool | isTriggered (void) const |
| Does the pin state match the edge setting? | |
| bool | isValid (void) const |
| Is the interrupt configured correctly? | |
| bool | isPinHigh (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. | |
| boardInputPin_t | _pin |
This structure represents a trigger interrupt.
| using interrupt_t::callback_t = void(*)(void) |
|
default |
|
inline |
Attach the interrupt to a pin.


Detach the interrupt from a pin.




Does the pin state match the edge setting?

Is the interrupt configured correctly?


| boardInputPin_t interrupt_t::_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.