Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
RTSRemote.hpp
Go to the documentation of this file.
1#ifndef RTS_REMOTE_HPP
2#define RTS_REMOTE_HPP
3
5
6#include "RTSFrame.hpp"
7#include "RTSPulseOutput.hpp"
8#include "RTSRemoteStore.hpp"
9
28class RTSRemote : public rts_remote
29{
30 public:
38 RTSRemote(RTSPulseOutput *output, RTSRemoteStore *store = nullptr,
40
55 void sendCommand(uint32_t address, rts_command command,
56 bool repeated = false);
57
58
69 void sendFrame(RTSFrame *frame, bool repeated = false);
70
77 void sendPulse(bool state, uint32_t micros);
78};
79
84#endif // RTS_REMOTE_HPP
Represents the message "payload" sent by RTS remote controls.
Definition RTSFrame.hpp:24
Provides an interface for an output of RTS pulses, eg a GPIO or radio.
Definition RTSPulseOutput.hpp:22
Provides an interface for a datastore which contains details about remote controls and rolling codes.
Definition RTSRemoteStore.hpp:23
Simulates a physical RTS remote control.
Definition RTSRemote.hpp:29
void sendCommand(uint32_t address, rts_command command, bool repeated=false)
Send a "button press" command.
Definition RTSRemote.cpp:11
void sendFrame(RTSFrame *frame, bool repeated=false)
Send an RTS frame.
Definition RTSRemote.cpp:17
void sendPulse(bool state, uint32_t micros)
Send a single pulse to the internal RTSPulseOutput.
Definition RTSRemote.cpp:22
rts_command
Command sent by a remote, or received by a receiver as part of an rts_frame event.
Definition rts_command.h:24
struct rts_timings * RTS_TIMINGS_DEFAULT
Default timings, suitable for most application.
Definition rts_timings.c:15
Simulates a physical RTS remote control.
Definition rts_remote.h:33
Timing definitions for encoding and decoding frames to pulses.
Definition rts_timings.h:31