46 #define E_DPB_INVALID ( E_DPB + 1 )
47 #define E_DPB_INVALID_DESCR "Invalid value"
50 #define DPB_I2C_ADR_DEFAULT 0x78
52 #define DPB_MIN_TEMP_C -400
53 #define DPB_MAX_TEMP_C 1250
55 #define DPB_MIN_HUMID_RH 0
56 #define DPB_MAN_HUMID_RH 100
Structure defines data from the DigiPicco sensor.
Structure defines OpenCores I2C Device.
int16_t temp
temperature in degrees celcuis times 10.
uint8_t i2cAddr
I2C address type.
bool dpbRead(I2C_Device *dev, i2cAddr addr, DpbData *data)
Read the DigiPicco I2C Basic temperature and humidity control device.
This module is responsible for distributing error codes.
int8_t humid
humidity in percent (0-100).
OpenCores I2C device driver.