Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
RTSRadio_RFM69.hpp
1#ifndef RTS_RADIO_RFM69_HPP
2#define RTS_RADIO_RFM69_HPP
3
4#include "RTSRadio.hpp"
5
6class RTSRadio_RFM69 : public RTSRadio
7{
8 public:
9 RTSRadio_RFM69(SPIModule *spiModule) :
10 RTSRadio(spiModule)
11 {
12 }
13
14 RTSRadio_RFM69(uint8_t chipSelect) :
15 RTSRadio(chipSelect)
16 {
17 }
18
19 void begin()
20 {
21 RTSRadio::begin();
22 rts_radio_init_rfm69(this, spiModule);
23 }
24};
25
26#endif // RTS_RADIO_RFM69_HPP
Abstraction layer which configures radio modules for RTS.
Definition RTSRadio.hpp:71
struct rfm69 * rts_radio_init_rfm69(struct rts_radio *radio, struct spi_module *spi)
Initialize an rts_radio to use an SX1231/RFM69 radio module.
Definition rts_radio.c:22