#include <SPIBase.h>
◆ SPIBase()
◆ ~SPIBase()
virtual SPIBase::~SPIBase |
( |
| ) |
|
|
inlinevirtual |
◆ begin()
virtual void SPIBase::begin |
( |
| ) |
|
|
pure virtual |
begin(): Initializes the SPI bus by setting SCK, MOSI, and SS to outputs, pulling SCK and MOSI low, and SS high.
Implemented in SPIClass, and SPISoft.
◆ beginTransaction()
virtual void SPIBase::beginTransaction |
( |
SPISettings |
mySettings | ) |
|
|
pure virtual |
◆ end()
virtual void SPIBase::end |
( |
| ) |
|
|
pure virtual |
◆ endTransaction()
virtual void SPIBase::endTransaction |
( |
| ) |
|
|
pure virtual |
endTransaction(): Stop using the SPI bus. Normally this is called after de-asserting the chip select, to allow other libraries to use the SPI bus.
Implemented in SPIClass, and SPISoft.
◆ transfer() [1/2]
virtual unsigned char SPIBase::transfer |
( |
unsigned char |
val | ) |
|
|
pure virtual |
transfer(), transfer16()
SPI transfer is based on a simultaneous send and receive: the received data is returned in receivedVal (or receivedVal16). In case of buffer transfers the received data is stored in the buffer in-place (the old data is replaced with the data received).
receivedVal = SPI.transfer(val)
receivedVal16 = SPI.transfer16(val16)
SPI.transfer(buffer, size)
Implemented in SPIClass, and SPISoft.
◆ transfer() [2/2]
virtual void SPIBase::transfer |
( |
uint8_t * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
pure virtual |
◆ transfer16()
virtual unsigned short SPIBase::transfer16 |
( |
unsigned short |
val | ) |
|
|
pure virtual |
◆ SPIDefaultSettings
The documentation for this class was generated from the following file: