Interface that defines the communication bus for the SparkFun Electronics Toolkit.
Definition: sfTkIBus.h:73
Definition: sfTkII2C.h:27
virtual sfTkError_t ping()=0
A simple ping of the device at the set address.
virtual void setAddress(uint8_t devAddr)
setter for the I2C address
Definition: sfTkII2C.h:59
sfTkII2C()
Constructor for the I2C bus.
Definition: sfTkII2C.h:33
virtual uint8_t address(void)
getter for the I2C address
Definition: sfTkII2C.h:70
virtual bool stop(void)
getter for I2C stops message (vs restarts)
Definition: sfTkII2C.h:91
virtual void setStop(bool stop)
setter for I2C stop message (vs restarts)
Definition: sfTkII2C.h:80
sfTkII2C(uint8_t addr)
Constructor for the I2C bus with an address passed in.
Definition: sfTkII2C.h:41
static constexpr uint8_t kNoAddress
kNoAddress is a constant to indicate no address has been set
Definition: sfTkII2C.h:99
virtual uint8_t type(void)
Get the type of the object.
Definition: sfTkII2C.h:101
int32_t sfTkError_t
Definition: sfTkError.h:35
Header file for the SparkFun Toolkit Device Bus Interface Definition.
const uint8_t ksfTkBusTypeI2C
Interface that defines the I2C communication bus for the SparkFun Electronics Toolkit.
Definition: sfTkII2C.h:24