si7013.h

Go to the documentation of this file.
00001 /***************************************************************************/
00017 #ifndef __SI7013_H
00018 #define __SI7013_H
00019 
00020 #include "em_device.h"
00021 #include <stdbool.h>
00022 
00023 /***************************************************************************/
00028 /***************************************************************************/
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036 
00037 /*******************************************************************************
00038  *******************************   DEFINES   ***********************************
00039  ******************************************************************************/
00040 
00042 #define SI7013_ADDR    0x82
00043 
00044 /*******************************************************************************
00045  ********************************   ENUMS   ************************************
00046  ******************************************************************************/
00047 
00048 /*******************************************************************************
00049  *******************************   STRUCTS   ***********************************
00050  ******************************************************************************/
00051 
00052 
00053 
00054 /*******************************************************************************
00055  *****************************   PROTOTYPES   **********************************
00056  ******************************************************************************/
00057 
00058 int Si7013_MeasureRHAndTemp(I2C_TypeDef *i2c, uint8_t addr,
00059                         uint32_t *rhData, int32_t *tData);
00060 
00061 bool Si7013_Detect(I2C_TypeDef *i2c, uint8_t addr);
00062 
00063 #ifdef __cplusplus
00064 }
00065 #endif
00066 
00069 #endif /* __TEMPSENS_H */