49 void tmp102_init(
void);
56 void tmp102_write_reg(u8_t reg, u16_t val);
63 u16_t tmp102_read_reg(u8_t reg);
68 u16_t tmp102_read_temp_raw();
73 int8_t tmp102_read_temp_simple();
78 #define TMP102_ADDR 0x48
81 #define TMP102_TEMP 0x00 // read only
82 #define TMP102_CONF 0x01
83 #define TMP102_TLOW 0x02
84 #define TMP102_THIGH 0x03
88 #define TMP102_PWR_DIR P5DIR
89 #define TMP102_PWR_SEL P5SEL
90 #define TMP102_PWR_SEL2 P5SEL2
91 #define TMP102_PWR_REN P5REN
92 #define TMP102_PWR_OUT P5OUT
93 #define TMP102_PWR_PIN (1<<0) // P5.0