24 virtual void begin() = 0;
28class ArduinoSPI :
public SPIModule
31 ArduinoSPI(SPIClass *spiClass=&SPI) :
38 spi_module_init_arduino(
this, spiClass);
45ArduinoSPI DEFAULT_SPI_MODULE;
49class LinuxSPI :
public SPIModule
52 LinuxSPI(
const char *spiDevice) :
59 spi_module_init_linux(
this, spiDevice);
63 const char *spiDevice;
91 this->spiModule = &DEFAULT_SPI_MODULE;
92 this->spiModule->cs_pin = chipSelect;
100 SPIModule *spiModule;
Abstraction layer which configures radio modules for RTS.
Definition RTSRadio.hpp:71
void setMode(enum rts_radio_mode mode)
Set the radio mode for this module, eg.
Definition RTSRadio.hpp:78
rts_radio_mode
The transceiver mode to enter.
Definition rts_radio.h:22
void rts_radio_set_mode(struct rts_radio *radio, enum rts_radio_mode mode)
Set the radio mode for the specified rts_radio module, eg.
Definition rts_radio.c:79
Abstraction layer which configures radio modules for RTS.
Definition rts_radio.h:31
Hardware abstraction layer for userland SPI drivers.
Definition spi_module.h:22
uint8_t mode
The SPI mode to use for transfers.
Definition spi_module.h:36
uint32_t clock
The SPI clock speed (in Hz) to use for transfers.
Definition spi_module.h:31