1 #ifndef STC3115_I2C_CORE_FILE_H
2 #define STC3115_I2C_CORE_FILE_H
19 bool writeRegister(uint8_t reg, uint8_t* data,
size_t length);
bool readRegister(uint8_t *output, uint8_t reg)
Read an unsigned byte from a register and return the read status.
Definition: STC3115I2CCore.cpp:40
bool readRegisterInt(int *output, uint8_t reg)
Read signed integer value from a register.
Definition: STC3115I2CCore.cpp:161
bool writeRegister(uint8_t reg, uint8_t data)
Write unsigned byte data to a register.
Definition: STC3115I2CCore.cpp:116
bool writeRegisterInt(uint8_t reg, int data)
Write signed integer data to a register.
Definition: STC3115I2CCore.cpp:137
STC3115I2CCore(uint8_t address=0x70)
Initialize STC3115 I2C driver and assign the address.
Definition: STC3115I2CCore.cpp:8
Definition: STC3115I2CCore.h:7
bool readRegisterRegion(uint8_t *output, uint8_t reg, uint8_t length)
Read unsigned bytes from register range.
Definition: STC3115I2CCore.cpp:70
bool readRegisterInt16(int16_t *output, uint8_t reg)
Read 2 bytes of data and convert it to a signed integer.
Definition: STC3115I2CCore.cpp:100
bool beginI2C()
Initialize I2C and check whether the address is available or not.
Definition: STC3115I2CCore.cpp:21