Interface definition for the Adafruit Seesaw Soil sensor. More...

Detailed Description

Interface definition for the Adafruit Seesaw Soil sensor.

Author
Viktor Gal vikto.nosp@m.r.ga.nosp@m.l@mae.nosp@m.th.c.nosp@m.om

Definition in file seesaw_soil.h.

#include <stdint.h>
#include "periph/i2c.h"
#include "seesaw_soil_regs.h"
+ Include dependency graph for seesaw_soil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  seesaw_soil_params_t
 Parameters needed for device initialization. More...
 
struct  seesaw_soil_t
 Device descriptor for Seesaw Soil sensors. More...
 

Macros

#define CONFIG_SEESAW_SOIL_I2C_ADDRESS   (0x36)
 Default I2C bus address of Adafruit Seesaw Soil devices. More...
 

Enumerations

enum  { SEESAW_SOIL_OK = 0, SEESAW_SOIL_NODEV = -1, SEESAW_SOIL_NOBUS = -2, SEESAW_SOIL_BUSERR = -3 }
 Seesaw Soil specific return values. More...
 

Functions

int seesaw_soil_init (seesaw_soil_t *dev, const seesaw_soil_params_t *params)
 Initialize the given Seesaw Soil device. More...
 
int seesaw_soil_temperature (const seesaw_soil_t *dev, int16_t *temp)
 Convenience function for reading temperature. More...
 
int seesaw_soil_moisture (const seesaw_soil_t *dev, uint16_t *moist)
 Convenience function for reading ca. More...