Device driver interface for the SHTCX Temperature and humidity sensor. More...
Device driver interface for the SHTCX Temperature and humidity sensor.
Definition in file shtcx.h.
 Include dependency graph for shtcx.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | shtcx_params_t | 
| settings struct with all relevant parameters  More... | |
| struct | shtcx_t | 
| device descriptor for the SHTCX  More... | |
Macros | |
| #define | SHTCX_I2C_ADDRESS (0x70) | 
| SHTCX Default Address.  | |
Enumerations | |
| enum | { SHTCX_OK , SHTCX_ERROR_BUS , SHTCX_ERROR_CRC , SHTCX_ERROR } | 
Functions | |
| int8_t | shtcx_init (shtcx_t *const dev, const shtcx_params_t *params) | 
| Initializes the sensor and I2C.  More... | |
| int8_t | shtcx_read (const shtcx_t *dev, uint16_t *rel_humidity, int16_t *temperature) | 
| Reads all register values from the device.  More... | |
| int8_t | shtcx_id (const shtcx_t *dev, uint16_t *id) | 
| Reads the ID and saves it in the device descriptor.  More... | |
| int8_t | shtcx_reset (const shtcx_t *dev) | 
| Resets sensor.  More... | |