9#include <RHGenericSPI.h>
74 void setPins(uint8_t miso = 12, uint8_t mosi = 11, uint8_t sck = 13);
86 uint8_t _clockPolarity;
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
Frequency
Defines constants for different SPI bus frequencies.
Definition RHGenericSPI.h:56
@ Frequency1MHz
SPI bus frequency close to 1MHz.
Definition RHGenericSPI.h:57
Encapsulate a software SPI interface.
Definition RHSoftwareSPI.h:38
void end()
Definition RHSoftwareSPI.cpp:140
uint8_t transfer(uint8_t data)
Definition RHSoftwareSPI.cpp:18
void begin()
Initialise the SPI library.
Definition RHSoftwareSPI.cpp:90
void setPins(uint8_t miso=12, uint8_t mosi=11, uint8_t sck=13)
Definition RHSoftwareSPI.cpp:146