SPISoft.h
Go to the documentation of this file.
54 SPISoft(uint8_t miso, uint8_t mosi, uint8_t sck, uint8_t delay = 0) : SPISoft({sck, miso, mosi}, delay)
Definition: SPISettings.h:73
SPISoft(const SpiPins &pins, uint8_t delay=0)
Specify pins plus optional delay.
Definition: SPISoft.h:61
void transfer(uint8_t *buffer, size_t size) override
Send/receive a variable-length block of data.
Definition: SPISettings.h:33
uint32_t transfer32(uint32_t val, uint8_t bits=32) override
Send/receive a word of variable size.
void setDelay(uint8_t delay)
Set delay factor for the SCK signal. Impacts SPI speed.
Definition: SPISoft.h:99
bool begin() override
Initialize the SPI bus by setting SCK and MOSI to outputs, pulling SCK and MOSI low.
Definition: SPIBase.h:50
bool loopback(bool enable) override
For testing, tie MISO <-> MOSI internally.
Definition: SPISoft.h:104
void endTransaction() override
Stop using the SPI bus. Normally this is called after de-asserting the chip select, to allow other libraries to use the SPI bus.
void end() override
Disable the SPI bus (leaving pin modes unchanged).
Definition: SPISoft.h:80
uint8_t transfer(uint8_t val)
Send/receive one byte of data.
Definition: SPIBase.h:143
SPISoft(uint8_t miso, uint8_t mosi, uint8_t sck, uint8_t delay=0)
Specify pins to use plus optional delay.
Definition: SPISoft.h:54
1.8.13