Go to the documentation of this file.
38 #ifndef SHTC1_I2C_ADDRESS
39 #define SHTC1_I2C_ADDRESS (0x70)
92 int8_t
shtc1_read(
const shtc1_t *dev, uint16_t *rel_humidity, int16_t *temperature);
settings struct with all relevant parameters
int8_t shtc1_read(const shtc1_t *dev, uint16_t *rel_humidity, int16_t *temperature)
Reads all register values from the device.
@ SHTC1_OK
Success, no error.
@ SHTC1_ERROR
General error.
unsigned int i2c_t
Default i2c_t type definition.
shtc1_params_t params
Parameters struct with all settings set.
@ SHTC1_ERROR_BUS
I2C bus error.
i2c_t i2c_dev
I2C bus descriptor.
uint8_t i2c_addr
I2C address of the sensor.
int8_t shtc1_id(const shtc1_t *dev, uint16_t *id)
Reads the ID and saves it in the device descriptor.
int8_t shtc1_reset(const shtc1_t *dev)
Resets sensor.
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
int8_t shtc1_init(shtc1_t *const dev, const shtc1_params_t *params)
Initializes the sensor and I2C.
device descriptor for the SHTC1
Low-level I2C peripheral driver interface definition.
@ SHTC1_ERROR_CRC
CRC error.