10#include <RHGenericSPI.h>
22#ifdef RH_HAVE_HARDWARE_SPI
37 uint8_t transfer(uint8_t data);
39#if (RH_PLATFORM == RH_PLATFORM_MONGOOSE_OS)
44 uint8_t transfer2B(uint8_t byte0, uint8_t byte1);
51 uint8_t spiBurstRead(uint8_t reg, uint8_t* dest, uint8_t len);
58 uint8_t spiBurstWrite(uint8_t reg,
const uint8_t* src, uint8_t len);
82 uint8_t transfer(uint8_t ) {
return 0;}
92 virtual void beginTransaction();
96 virtual void endTransaction();
103 virtual void usingInterrupt(uint8_t interruptNumber);
107#if defined(SPI_HAS_TRANSACTION)
109 SPISettings _settings;
Base class for SPI interfaces.
Definition RHGenericSPI.h:31
DataMode
Defines constants for different SPI modes.
Definition RHGenericSPI.h:41
@ DataMode0
SPI Mode 0: CPOL = 0, CPHA = 0.
Definition RHGenericSPI.h:42
BitOrder
Defines constants for different SPI endianness.
Definition RHGenericSPI.h:71
@ BitOrderMSBFirst
SPI MSB first.
Definition RHGenericSPI.h:72
virtual void attachInterrupt()
Definition RHGenericSPI.h:118
Frequency
Defines constants for different SPI bus frequencies.
Definition RHGenericSPI.h:56
@ Frequency1MHz
SPI bus frequency close to 1MHz.
Definition RHGenericSPI.h:57
virtual void detachInterrupt()
Definition RHGenericSPI.h:122
Encapsulate a hardware SPI bus interface.
Definition RHHardwareSPI.h:21