Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
RTSPulseSource.hpp
Go to the documentation of this file.
1#ifndef RTS_PULSE_SOURCE_HPP
2#define RTS_PULSE_SOURCE_HPP
3
5
6#include "RTSFrameBuilder.hpp"
7
28{
29 public:
31
35 void enable();
36
40 void disable();
41
46 void update();
47
53 void attach(RTSFrameBuilder *frameBuilder);
54
55 protected:
57
58 friend class RTSReceiver;
59};
60
65#endif // RTS_PULSE_SOURCE_HPP
Assembles pulses received via RTSFrameBuilder::handlePulse, into a complete RTSFrame,...
Definition RTSFrameBuilder.hpp:32
Provides an interface for a source of RTS pulses, eg a GPIO or radio.
Definition RTSPulseSource.hpp:28
void enable()
Enable the pulse source.
Definition RTSPulseSource.cpp:8
void disable()
Disable the pulse source.
Definition RTSPulseSource.cpp:13
void attach(RTSFrameBuilder *frameBuilder)
Attach an observer.
Definition RTSPulseSource.cpp:23
void update()
Check for new pulse data.
Definition RTSPulseSource.cpp:18
Simulates a physical RTS receiver device, such as a shade or drapery motor.
Definition RTSReceiver.hpp:50
Provides an interface for a source of RTS pulses, eg a GPIO or radio.
Definition rts_pulse_source.h:35