9#include <RHGenericDriver.h>
10#include <RHHardwareSPI.h>
13#define RH_SPI_WRITE_MASK 0x80
63 uint8_t
spiWrite(uint8_t reg, uint8_t val);
71 uint8_t
spiBurstRead(uint8_t reg, uint8_t* dest, uint8_t len);
79 uint8_t
spiBurstWrite(uint8_t reg,
const uint8_t* src, uint8_t len);
107 virtual void selectSlave();
111 virtual void deselectSlave();
Abstract base class for a RadioHead driver.
Definition RHGenericDriver.h:42
Base class for SPI interfaces.
Definition RHGenericSPI.h:31
Base class for RadioHead drivers that use the SPI bus to communicate with its transport hardware.
Definition RHSPIDriver.h:39
virtual void beginTransaction()
Definition RHSPIDriver.cpp:110
void spiUsingInterrupt(uint8_t interruptNumber)
Definition RHSPIDriver.cpp:105
uint8_t spiWrite(uint8_t reg, uint8_t val)
Definition RHSPIDriver.cpp:59
bool init()
Definition RHSPIDriver.cpp:15
uint8_t spiBurstWrite(uint8_t reg, const uint8_t *src, uint8_t len)
Definition RHSPIDriver.cpp:87
void setSlaveSelectPin(uint8_t slaveSelectPin)
Definition RHSPIDriver.cpp:100
uint8_t spiBurstRead(uint8_t reg, uint8_t *dest, uint8_t len)
Definition RHSPIDriver.cpp:74
uint8_t _slaveSelectPin
The pin number of the Slave Select pin that is used to select the desired device.
Definition RHSPIDriver.h:117
uint8_t spiRead(uint8_t reg)
Definition RHSPIDriver.cpp:47
RHGenericSPI & _spi
Reference to the RHGenericSPI instance to use to transfer data with the SPI device.
Definition RHSPIDriver.h:114
virtual void endTransaction()
Definition RHSPIDriver.cpp:116