si1147_i2c.h

Go to the documentation of this file.
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  *******************************   STRUCTS   ***********************************
00038  ******************************************************************************/
00041 typedef struct {
00042     I2C_TypeDef *i2c;
00043     uint8_t addr;
00044   } si114x_i2c_t;
00045 
00049 /*******************************************************************************
00050  *****************************   PROTOTYPES   **********************************
00051  ******************************************************************************/
00052 uint32_t Si1147_Write_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t data);
00053 uint32_t Si1147_Write_Block_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t length, uint8_t const *data);
00054 uint32_t Si1147_Read_Block_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t length, uint8_t  *data);
00055 uint32_t Si1147_Read_Register (I2C_TypeDef *i2c,uint8_t addr, uint8_t reg, uint8_t *data);
00056 
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00065 #endif /* __TEMPSENS_H */