Driver for the Si7013 Temperature / Humidity sensor. More...
#include "em_device.h"
#include <stdbool.h>
Go to the source code of this file.
Defines | |
#define | SI7013_ADDR 0x82 |
I2C device address for Si7013. | |
#define | SI7021_ADDR 0x80 |
I2C device address for Si7021. | |
#define | SI7013_DEVICE_ID 0x0D |
Device ID value for Si7013. | |
#define | SI7020_DEVICE_ID 0x14 |
Device ID value for Si7020. | |
#define | SI7021_DEVICE_ID 0x21 |
Device ID value for Si7021. | |
Functions | |
int32_t | Si7013_MeasureRHAndTemp (I2C_TypeDef *i2c, uint8_t addr, uint32_t *rhData, int32_t *tData) |
Reads relative humidity and temperature from a Si7013 sensor. | |
int32_t | Si7013_GetFirmwareRevision (I2C_TypeDef *i2c, uint8_t addr, uint8_t *fwRev) |
Reads Firmware Revision from a Si7013 sensor. | |
bool | Si7013_Detect (I2C_TypeDef *i2c, uint8_t addr, uint8_t *deviceId) |
Checks if a Si7013 is present on the I2C bus or not. | |
int32_t | Si7013_ReadNoHoldRHAndTemp (I2C_TypeDef *i2c, uint8_t addr, uint32_t *rhData, int32_t *tData) |
Reads relative humidity and temperature from a Si7013 sensor. | |
int32_t | Si7013_StartNoHoldMeasureRHAndTemp (I2C_TypeDef *i2c, uint8_t addr) |
Starts no hold measurement of relative humidity and temperature from a Si7013 sensor. | |
int32_t | Si7013_MeasureV (I2C_TypeDef *i2c, uint8_t addr, int32_t *vData) |
Reads relative humidity and temperature from a Si7013 sensor. |
Driver for the Si7013 Temperature / Humidity sensor.
(C) Copyright 2014 Silicon Labs, http://www.silabs.com
This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file si7013.h.