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