Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
RTSPulseSource_GPIO.hpp
1#ifndef RTS_PULSE_SOURCE_ARDUINO_GPIO_HPP
2#define RTS_PULSE_SOURCE_ARDUINO_GPIO_HPP
3
4#include "../RTSPulseSource.hpp"
5
6class RTSPulseSource_GPIO : public RTSPulseSource
7{
8 public:
9 RTSPulseSource_GPIO(uint8_t dataPin);
10
11 private:
12 uint8_t dataPin;
13
14 bool interruptReady = false;
15 uint32_t lastUpdated = 0;
16
17 static void isr0();
18 static void enableFn(struct rts_pulse_source *pulse_source);
19 static void disableFn(struct rts_pulse_source *pulse_source);
20 static void updateFn(struct rts_pulse_source *pulse_source);
21
22 static RTSPulseSource_GPIO *interruptInstance;
23};
24
25#endif // RTS_PULSE_SOURCE_ARDUINO_GPIO_HPP
Provides an interface for a source of RTS pulses, eg a GPIO or radio.
Definition RTSPulseSource.hpp:28
Provides an interface for a source of RTS pulses, eg a GPIO or radio.
Definition rts_pulse_source.h:35