49 void tmp102_init(
void);
56 void tmp102_write_reg(uint8_t reg, uint16_t val);
63 uint16_t tmp102_read_reg(uint8_t reg);
68 uint16_t tmp102_read_temp_raw();
73 int8_t tmp102_read_temp_simple();
78 int16_t tmp102_read_temp_x100();
83 #define TMP102_ADDR 0x48
86 #define TMP102_TEMP 0x00 // read only
87 #define TMP102_CONF 0x01
88 #define TMP102_TLOW 0x02
89 #define TMP102_THIGH 0x03
93 #define TMP102_PWR_DIR P5DIR
94 #define TMP102_PWR_SEL P5SEL
95 #define TMP102_PWR_SEL2 P5SEL2
96 #define TMP102_PWR_REN P5REN
97 #define TMP102_PWR_OUT P5OUT
98 #define TMP102_PWR_PIN (1<<0) // P5.0
I2C communication device driver header file for Zolertia Z1 sensor node.