6#ifndef RHNRFSPIDriver_h
7#define RHNRFSPIDriver_h
9#include <RHGenericDriver.h>
10#include <RHHardwareSPI.h>
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);
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 NRF family transport ha...
Definition RHNRFSPIDriver.h:34
virtual void beginTransaction()
Definition RHNRFSPIDriver.cpp:128
bool init()
Definition RHNRFSPIDriver.cpp:15
uint8_t spiRead(uint8_t reg)
Definition RHNRFSPIDriver.cpp:46
uint8_t spiBurstRead(uint8_t reg, uint8_t *dest, uint8_t len)
Definition RHNRFSPIDriver.cpp:84
uint8_t spiWrite(uint8_t reg, uint8_t val)
Definition RHNRFSPIDriver.cpp:62
uint8_t _slaveSelectPin
The pin number of the Slave Select pin that is used to select the desired device.
Definition RHNRFSPIDriver.h:106
uint8_t spiCommand(uint8_t command)
Definition RHNRFSPIDriver.cpp:31
RHGenericSPI & _spi
Reference to the RHGenericSPI instance to use to trasnfer data with teh SPI device.
Definition RHNRFSPIDriver.h:103
virtual void endTransaction()
Signal the end of an SPI transaction.
Definition RHNRFSPIDriver.cpp:134
void spiUsingInterrupt(uint8_t interruptNumber)
Definition RHNRFSPIDriver.cpp:123
uint8_t spiBurstWrite(uint8_t reg, const uint8_t *src, uint8_t len)
Definition RHNRFSPIDriver.cpp:101
void setSlaveSelectPin(uint8_t slaveSelectPin)
Definition RHNRFSPIDriver.cpp:118