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