00001 /***************************************************************************/ 00017 #ifndef __SI1147_H 00018 #define __SI1147_H 00019 00020 #include "em_device.h" 00021 00022 /***************************************************************************/ 00027 /***************************************************************************/ 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 /******************************************************************************* 00037 ******************************* DEFINES *********************************** 00038 ******************************************************************************/ 00039 00040 00041 /******************************************************************************* 00042 ******************************** ENUMS ************************************ 00043 ******************************************************************************/ 00044 00045 /******************************************************************************* 00046 ******************************* STRUCTS *********************************** 00047 ******************************************************************************/ 00048 00049 00050 00051 /******************************************************************************* 00052 ***************************** PROTOTYPES ********************************** 00053 ******************************************************************************/ 00054 int Si1147_Write_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t data); 00055 int Si1147_Write_Block_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t length, uint8_t const *data); 00056 int Si1147_Read_Block_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t length, uint8_t *data); 00057 int Si1147_Read_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t *data); 00058 00059 00060 #ifdef __cplusplus 00061 } 00062 #endif 00063 00067 #endif /* __TEMPSENS_H */