#include <TaskManagerIO.h>
Public Member Functions | |
| virtual void | attachInterrupt (pintype_t pin, RawIntHandler fn, uint8_t mode)=0 |
Abstracts the method by which interrupts are registered on the platform. Generally speaking this is implemented by all IoAbstractionRef implementations, so having any abstraction means you already have one of these. You can either implement your own variant of this, or use IoAbstraction to do it for you.
For example if using IoAbstraction then the IO object returned by internalDigitalIo() implements this.
|
pure virtual |
Register an interrupt handler to a specific pin on the device, such that the interrupt handler function will be triggered when mode is true. Mode can be one of CHANGE, RISING, FALLING.
| pin | the pin on the device to attach an interrupt to |
| fn | the raw interrupt ISR function |
| mode | either RISING, FALLING or CHANGE |