26 #include "BaseI2CDevice.h" 27 #include "SoftI2cMaster.h" 68 uint32_t
readLong (uint8_t location);
76 uint8_t*
readRegisters (uint8_t start_register, uint8_t bytes, uint8_t* buf);
85 char*
readString (uint8_t location, uint8_t bytes_to_read,
86 uint8_t* buffer = 0, uint8_t buffer_length = 0);
93 bool writeRegisters (uint8_t start_register, uint8_t bytes_to_write,
100 bool writeByte (uint8_t location, uint8_t data);
112 bool writeLong (uint8_t location, uint32_t data);
This class implements software i2c interface used by EVShield/NXShield on Arduino.
Definition: SoftI2cMaster.h:40
bool writeInteger(uint8_t location, uint16_t data)
Definition: EVShieldI2C.cpp:84
char * getVendorID()
Definition: EVShieldI2C.cpp:125
void * mp_shield
Definition: EVShieldI2C.h:37
char * getFeatureSet()
Definition: EVShieldI2C.cpp:137
uint8_t readByte(uint8_t location)
Definition: EVShieldI2C.cpp:31
uint8_t * _i2c_buffer
Definition: EVShieldI2C.h:40
uint8_t m_protocol
Definition: EVShieldI2C.h:47
uint32_t readLong(uint8_t location)
Definition: EVShieldI2C.cpp:45
char * getFirmwareVersion()
Definition: EVShieldI2C.cpp:119
void init(void *shield, SH_BankPort bp)
Definition: EVShieldI2C.cpp:142
This class implements I2C interfaces used by EVShield.
Definition: EVShieldI2C.h:32
uint8_t * readRegisters(uint8_t start_register, uint8_t bytes, uint8_t *buf)
Definition: EVShieldI2C.cpp:52
char * readString(uint8_t location, uint8_t bytes_to_read, uint8_t *buffer=0, uint8_t buffer_length=0)
Definition: EVShieldI2C.cpp:59
bool writeByte(uint8_t location, uint8_t data)
Definition: EVShieldI2C.cpp:73
bool writeLong(uint8_t location, uint32_t data)
Definition: EVShieldI2C.cpp:90
bool writeRegisters(uint8_t start_register, uint8_t bytes_to_write, uint8_t *buffer=0)
Definition: EVShieldI2C.cpp:67
EVShieldI2C(uint8_t i2c_address)
Definition: EVShieldI2C.cpp:26
uint16_t readInteger(uint8_t location)
Definition: EVShieldI2C.cpp:38
SH_BankPort
Definition: SHDefines.h:52
char * getDeviceID()
Definition: EVShieldI2C.cpp:131
uint8_t getErrorCode()
Definition: EVShieldI2C.cpp:96
bool setAddress(uint8_t address)
Definition: EVShieldI2C.cpp:108
This class implements hardware I2C protocol used by EVShield/NXShield on an Arduino.
Definition: BaseI2CDevice.h:98