Driver for the Adafruit Seesaw Soil Moisture and Temperature Sensor.  
More...
Driver for the Adafruit Seesaw Soil Moisture and Temperature Sensor. 
This driver provides [S]ensor [A]ctuator [U]ber [L]ayer capabilities. 
◆ anonymous enum
Seesaw Soil specific return values. 
| Enumerator | 
|---|
| SEESAW_SOIL_OK  | everything went as expected  
 | 
| SEESAW_SOIL_NODEV  | no SEESAW_SOIL device found on the bus  
 | 
| SEESAW_SOIL_NOBUS  | errors while initializing the I2C bus  
 | 
| SEESAW_SOIL_BUSERR  | error during I2C communication  
 | 
Definition at line 56 of file seesaw_soil.h.
 
 
◆ seesaw_soil_init()
Initialize the given Seesaw Soil device. 
- Parameters
 - 
  
    | [out] | dev | device descriptor of sensor to initialize  | 
    | [in] | params | configuration parameters | 
  
   
- Returns
 - SEESAW_SOIL_OK on success 
 
- 
SEESAW_SOIL_NOBUS if initialization of I2C bus fails 
 
- 
SEESAW_SOIL_NODEV if no Seesaw Soil device found on bus 
 
 
 
◆ seesaw_soil_moisture()
      
        
          | int seesaw_soil_moisture  | 
          ( | 
          const seesaw_soil_t *  | 
          dev,  | 
        
        
           | 
           | 
          uint16_t *  | 
          moist  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Convenience function for reading ca. 
- Parameters
 - 
  
    | [in] | dev | device descriptor of sensor  | 
    | [out] | moist | moisture using capacitive measurement. Value is ranging from 200 (very dry) to 2000 (very wet). | 
  
   
- Returns
 - SEESAW_SOIL_OK on success 
 
- 
SEESAW_SOIL_BUSERR on I2C communication failures 
 
 
 
◆ seesaw_soil_temperature()
      
        
          | int seesaw_soil_temperature  | 
          ( | 
          const seesaw_soil_t *  | 
          dev,  | 
        
        
           | 
           | 
          int16_t *  | 
          temp  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Convenience function for reading temperature. 
- Parameters
 - 
  
    | [in] | dev | device descriptor of sensor  | 
    | [out] | temp | temperature [in 100 * degree centigrade] | 
  
   
- Returns
 - SEESAW_SOIL_OK on success 
 
- 
SEESAW_SOIL_BUSERR on I2C communication failures