40#ifndef SHTCX_I2C_ADDRESS
41#define SHTCX_I2C_ADDRESS (0x70)
uint_fast8_t i2c_t
Default i2c_t type definition.
int8_t shtcx_init(shtcx_t *const dev, const shtcx_params_t *params)
Initializes the sensor and I2C.
int8_t shtcx_reset(const shtcx_t *dev)
Resets sensor.
int8_t shtcx_id(const shtcx_t *dev, uint16_t *id)
Reads the ID and saves it in the device descriptor.
int8_t shtcx_read(const shtcx_t *dev, uint16_t *rel_humidity, int16_t *temperature)
Reads all register values from the device.
@ SHTCX_ERROR_BUS
I2C bus error.
@ SHTCX_ERROR_CRC
CRC error.
@ SHTCX_OK
Success, no error.
@ SHTCX_ERROR
General error.
Low-level I2C peripheral driver interface definition.
settings struct with all relevant parameters
i2c_t i2c_dev
I2C bus descriptor.
uint8_t i2c_addr
I2C address of the sensor.
device descriptor for the SHTCX
shtcx_params_t params
Parameters struct with all settings set.
Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML.