Loading...
Searching...
No Matches

Device driver interface for the SHTCX Temperature and humidity sensor. More...

Detailed Description

Device driver interface for the SHTCX Temperature and humidity sensor.

Author
Steffen Robertz steff.nosp@m.en.r.nosp@m.obert.nosp@m.z@rw.nosp@m.th-aa.nosp@m.chen.nosp@m..de
Josua Arndt jarnd.nosp@m.t@ia.nosp@m.s.rwt.nosp@m.h-aa.nosp@m.chen..nosp@m.de

Definition in file shtcx.h.

#include <stdint.h>
#include "saul.h"
#include "periph/i2c.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.
 
int8_t shtcx_read (const shtcx_t *dev, uint16_t *rel_humidity, int16_t *temperature)
 Reads all register values from the device.
 
int8_t shtcx_id (const shtcx_t *dev, uint16_t *id)
 Reads the ID and saves it in the device descriptor.
 
int8_t shtcx_reset (const shtcx_t *dev)
 Resets sensor.