94 sfTkError_t init(SPIClass &spiPort, SPISettings &busSPISettings, uint8_t csPin,
bool bInit =
false);
155 uint32_t read_delay = 0);
This class implements the IBus interface for an SPI Implementation on Arduino.
Definition: sfTkArdSPI.h:24
sfTkArdSPI(uint8_t csPin)
Constructor for Arduino SPI bus object of the toolkit.
Definition: sfTkArdSPI.h:38
SPIClass * _spiPort
Definition: sfTkArdSPI.h:192
sfTkArdSPI(sfTkArdSPI const &rhs)
Copy constructor for Arduino SPI bus object of the toolkit.
Definition: sfTkArdSPI.h:46
sfTkError_t init(bool bInit=false)
Method sets up the required SPI settings.
Definition: sfTkArdSPI.cpp:67
sfTkError_t readRegister(uint8_t *devReg, size_t regLength, uint8_t *data, size_t numBytes, size_t &readBytes, uint32_t read_delay=0)
Reads data from a specified register of an I2C device.
Definition: sfTkArdSPI.cpp:165
sfTkArdSPI(void)
Constructor for Arduino SPI bus object of the toolkit.
Definition: sfTkArdSPI.h:29
sfTkError_t writeRegion(const uint8_t *data, size_t length)
Write an array of data to the device without indexing to a register.
sfTkError_t writeRegister(uint8_t *devReg, size_t regLength, const uint8_t *data, size_t length)
Writes a number of bytes starting at the given register's address.
Definition: sfTkArdSPI.cpp:79
sfTkArdSPI & operator=(const sfTkArdSPI &rhs)
Assignment copy operator for Arduino SPI bus object of the toolkit.
Definition: sfTkArdSPI.h:56
SPISettings _sfeSPISettings
Definition: sfTkArdSPI.h:195
virtual sfTkError_t writeRegister(uint8_t *devReg, size_t regLength, const uint8_t *data, size_t length)=0
Writes an array of bytes to a register on the target address. Supports any address size.
virtual sfTkError_t readRegister(uint8_t *devReg, size_t regLength, uint8_t *data, size_t numBytes, size_t &readBytes, uint32_t read_delay=0)=0
Reads an array of bytes to a register on the target address. Supports any address size.
Definition: sfTkISPI.h:26
header file for the SparkFun Toolkit Arduino layer
int32_t sfTkError_t
Definition: sfTkError.h:35
Header file for the SparkFun Toolkit SPI Interface Definition.