Statistics
| Branch: | Tag: | Revision:

mongoose / examples / CC3200 / tmp006.h @ eaef5bd1

History | View | Annotate | Download (635 Bytes)

1
/*
2
 * Copyright (c) 2014-2016 Cesanta Software Limited
3
 * All rights reserved
4
 */
5

    
6
#ifndef CS_MONGOOSE_EXAMPLES_CC3200_TMP006_H_
7
#define CS_MONGOOSE_EXAMPLES_CC3200_TMP006_H_
8

    
9
#include <inttypes.h>
10
#include <stdbool.h>
11

    
12
enum tmp006_conversion_rate {
13
  TMP006_CONV_4 = 0,
14
  TMP006_CONV_2,
15
  TMP006_CONV_1,
16
  TMP006_CONV_1_2,
17
  TMP006_CONV_1_4,
18
};
19

    
20
bool tmp006_init(uint8_t addr, enum tmp006_conversion_rate conv_rate,
21
                 bool drdy_en);
22
double tmp006_read_sensor_voltage(uint8_t addr);
23
double tmp006_read_die_temp(uint8_t addr);
24

    
25
#define TMP006_INVALID_READING (-1000.0)
26

    
27
#endif /* CS_MONGOOSE_EXAMPLES_CC3200_TMP006_H_ */