Loading...
Searching...
No Matches

Interface definition of the Si70xx driver. More...

Detailed Description

Interface definition of the Si70xx driver.

Author
Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file si70xx.h.

#include "periph/i2c.h"
+ Include dependency graph for si70xx.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  si70xx_params_t
 Device initialization parameters. More...
 
struct  si70xx_t
 Si70xx device descriptor. More...
 

Macros

#define SI70XX_HAS_HUMIDITY_SENSOR   1
 Compile time macro telling whether the chip has a humidity sensor.
 

Enumerations

enum  { SI70XX_OK , SI70XX_ERR_NODEV , SI70XX_ERR_I2C }
 Driver return codes. More...
 

Functions

int si70xx_init (si70xx_t *dev, const si70xx_params_t *params)
 Initialize and reset the sensor.
 
uint16_t si70xx_get_relative_humidity (const si70xx_t *dev)
 Read the relative humidity from the sensor.
 
int16_t si70xx_get_temperature (const si70xx_t *dev)
 Read the current temperature from the sensor.
 
void si70xx_get_both (const si70xx_t *dev, uint16_t *humidity, int16_t *temperature)
 Read the relative humidity and temperature from the sensor.
 
uint64_t si70xx_get_serial (const si70xx_t *dev)
 Read the sensor serial number.
 
uint8_t si70xx_get_id (const si70xx_t *dev)
 Read the sensor id, to identifier the sensor variant.
 
uint8_t si70xx_get_revision (const si70xx_t *dev)
 Read the firmware revision of the sensor.