29 #include "dev/sht15.h"
31 #define DATA_OUT() P3DIR |= BIT7
32 #define DATA_IN() P3DIR &= ~BIT7
33 #define DATA_SET() P3OUT |= BIT7; halMcuWaitUs(10)
34 #define DATA_CLR() P3OUT &= ~BIT7; halMcuWaitUs(10)
35 #define DATA_VAL() (P3IN & BIT7)
37 #define SCK_OUT() P5DIR |= BIT4
38 #define SCK_SET() P5OUT |= BIT4; halMcuWaitUs(10)
39 #define SCK_CLR() P5OUT &= ~BIT4; halMcuWaitUs(10)
59 halMcuWaitUs(uint16_t usec)
98 sht15_send_start(
void)
138 for(i = 0; i < 18; i++) {
139 if((i != 8) && (i != 17)) {
179 sht15_write8(uint8_t val)
185 for(i = 0; i < 8; i++) {
220 sht15_wait_measure(
void)
259 sht15_measure_temp(
void)
275 void sht15_measure_hum()
309 sht15_write_status(
void)
326 sht15_soft_reset(
void)