RadioHead
|
Encapsulate a hardware SPI bus interface. More...
#include <RHHardwareSPI.h>
Additional Inherited Members | |
Public Types inherited from RHGenericSPI | |
enum | DataMode { DataMode0 = 0 , DataMode1 , DataMode2 , DataMode3 } |
Defines constants for different SPI modes. More... | |
enum | Frequency { Frequency1MHz = 0 , Frequency2MHz , Frequency4MHz , Frequency8MHz , Frequency16MHz } |
Defines constants for different SPI bus frequencies. More... | |
enum | BitOrder { BitOrderMSBFirst = 0 , BitOrderLSBFirst } |
Defines constants for different SPI endianness. More... | |
Public Member Functions inherited from RHGenericSPI | |
RHGenericSPI (Frequency frequency=Frequency1MHz, BitOrder bitOrder=BitOrderMSBFirst, DataMode dataMode=DataMode0) | |
virtual void | attachInterrupt () |
virtual void | detachInterrupt () |
virtual void | setBitOrder (BitOrder bitOrder) |
virtual void | setDataMode (DataMode dataMode) |
virtual void | setFrequency (Frequency frequency) |
Protected Attributes inherited from RHGenericSPI | |
Frequency | _frequency |
The configure SPI Bus frequency, one of RHGenericSPI::Frequency. | |
BitOrder | _bitOrder |
Bit order, one of RHGenericSPI::BitOrder. | |
DataMode | _dataMode |
SPI bus mode, one of RHGenericSPI::DataMode. | |
Encapsulate a hardware SPI bus interface.
This concrete subclass of GenericSPIClass encapsulates the standard Arduino hardware and other hardware SPI interfaces.
SPI transactions are supported in development environments that support it with SPI_HAS_TRANSACTION.