Krolyxon
Commit 3120783

Branches

Tags

Refs →

orion-rf.piolibdepsesp32-s3-n16r8RF24utilitypigpiointerrupt.h

30 lines · 606 B · Objective-C

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
14extern "C" {
15#endif
16
17int attachInterrupt(int pin, int mode, void (*function)(void));
18
19int detachInterrupt(int pin);
20
21/* Deprecated, no longer functional */
22void rfNoInterrupts();
23
24/* Deprecated, no longer functional */
25void rfInterrupts();
26
27#ifdef __cplusplus
28}
29#endif
30#endif // RF24_UTILITY_PIGPIO_INTERRUPT_H_