![]() |
Defines | |
#define | SI7013_ADDR 0x82 |
I2C device address for Si7013. | |
Functions | |
int | Si7013_MeasureRHAndTemp (I2C_TypeDef *i2c, uint8_t addr, uint32_t *rhData, int32_t *tData) |
Reads relative humidity and temperature from a Si7013 sensor. | |
bool | Si7013_Detect (I2C_TypeDef *i2c, uint8_t addr) |
Checks if a Si7013 is present on the I2C bus or not. |
bool Si7013_Detect | ( | I2C_TypeDef * | i2c, | |
uint8_t | addr | |||
) |
Checks if a Si7013 is present on the I2C bus or not.
[in] | i2c | The I2C peripheral to use (Not used). |
[in] | addr | The I2C address to probe. |
Definition at line 147 of file si7013.c.
References I2CDRV_Transfer().
int Si7013_MeasureRHAndTemp | ( | I2C_TypeDef * | i2c, | |
uint8_t | addr, | |||
uint32_t * | rhData, | |||
int32_t * | tData | |||
) |
Reads relative humidity and temperature from a Si7013 sensor.
[in] | i2c | The I2C peripheral to use. |
[in] | addr | The I2C address of the sensor. |
[out] | rhData | The relative humidity in percent (multiplied by 1000). |
[out] | tData | The temperature in milli-Celsius. |
Definition at line 108 of file si7013.c.
References Si7013_Measure().