TaskManagerIO
Loading...
Searching...
No Matches
InterruptAbstraction Class Referenceabstract

#include <TaskManagerIO.h>

Inheritance diagram for InterruptAbstraction:
BasicArduinoInterruptAbstraction

Public Member Functions

virtual void attachInterrupt (pintype_t pin, RawIntHandler fn, uint8_t mode)=0

Detailed Description

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.

Member Function Documentation

◆ attachInterrupt()

virtual void InterruptAbstraction::attachInterrupt ( pintype_t pin,
RawIntHandler fn,
uint8_t mode )
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.

Parameters
pinthe pin on the device to attach an interrupt to
fnthe raw interrupt ISR function
modeeither RISING, FALLING or CHANGE

The documentation for this class was generated from the following file: