| 1 | /** |
| 2 | * Interrupt functions wrapped from pigpio library |
| 3 | */ |
| 4 | #ifndef RF24_UTILITY_PIGPIO_INTERRUPT_H_ |
| 5 | #define RF24_UTILITY_PIGPIO_INTERRUPT_H_ |
| 6 | |
| 7 | #include <pigpio.h> |
| 8 | |
| 9 | #define INT_EDGE_FALLING FALLING_EDGE |
| 10 | #define INT_EDGE_RISING RISING_EDGE |
| 11 | #define INT_EDGE_BOTH EITHER_EDGE |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | int attachInterrupt(int pin, int mode, void (*function)(void)); |
| 18 | |
| 19 | int detachInterrupt(int pin); |
| 20 | |
| 21 | /* Deprecated, no longer functional */ |
| 22 | void rfNoInterrupts(); |
| 23 | |
| 24 | /* Deprecated, no longer functional */ |
| 25 | void rfInterrupts(); |
| 26 | |
| 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | #endif // RF24_UTILITY_PIGPIO_INTERRUPT_H_ |