Go to the documentation of this file.
49 #ifndef CONFIG_SEESAW_SOIL_I2C_ADDRESS
50 #define CONFIG_SEESAW_SOIL_I2C_ADDRESS (0x36)
@ SEESAW_SOIL_OK
everything went as expected
int seesaw_soil_moisture(const seesaw_soil_t *dev, uint16_t *moist)
Convenience function for reading ca.
@ SEESAW_SOIL_BUSERR
error during I2C communication
i2c_t i2c
bus the device is connected to
@ SEESAW_SOIL_NODEV
no SEESAW_SOIL device found on the bus
unsigned int i2c_t
Default i2c_t type definition.
Register definitions for Seesaw Soil devices.
int seesaw_soil_init(seesaw_soil_t *dev, const seesaw_soil_params_t *params)
Initialize the given Seesaw Soil device.
int seesaw_soil_temperature(const seesaw_soil_t *dev, int16_t *temp)
Convenience function for reading temperature.
Parameters needed for device initialization.
@ SEESAW_SOIL_NOBUS
errors while initializing the I2C bus
seesaw_soil_params_t params
Configuration parameters.
uint8_t addr
address on that bus
Device descriptor for Seesaw Soil sensors.
Low-level I2C peripheral driver interface definition.