-
Notifications
You must be signed in to change notification settings - Fork 8
/
SparkFun_TMP117_Registers.h
49 lines (42 loc) · 1.54 KB
/
SparkFun_TMP117_Registers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/******************************************************************************
SparkFun_TMP117_Registers.h
TMP117 Library - TMP117 Register Map
Madison Chodikov @ SparkFun Electronics
Original Creation Date: April 19, 2019
https://github.com/sparkfunX/Qwiic_TMP117
This file defines all registers internal to the TMP117 sensor.
Development environment specifics:
IDE: Arduino 1.8.9
Hardware Platform: Arduino Uno
TMP117 Breakout Version: 1.0.0
This code is beerware; if you see me (or any other SparkFun employee) at the
local, and you've found our code helpful, please buy us a round!
Distributed as-is; no warranty is given.
******************************************************************************/
#ifndef __SparkFun_TMP117_Registers_H__
#define __SparkFun_TMP117_Registers_H__
/*
TMP117 Registers as defined in Table 3 from datasheet (pg 24)
Features of the TMP117:
- ±0.1°C (Maximum) From –20°C to +50°C
- ±0.15°C (Maximum) From –40°C to +70°C
- ±0.2°C (Maximum) From –40°C to +100°C
- ±0.25°C (Maximum) From –55°C to +125°C
- ±0.3°C (Maximum) From –55°C to +150°C
- Low Power Consumption 3.5-µA, 1-Hz Conversion Cycle
*/
// Address of the registers. This can be found on page 23 of the datasheet
enum TMP117_Register
{
TMP117_TEMP_RESULT = 0X00,
TMP117_CONFIGURATION = 0x01,
TMP117_T_HIGH_LIMIT = 0X02,
TMP117_T_LOW_LIMIT = 0X03,
TMP117_EEPROM_UL = 0X04,
TMP117_EEPROM1 = 0X05,
TMP117_EEPROM2 = 0X06,
TMP117_TEMP_OFFSET = 0X07,
TMP117_EEPROM3 = 0X08,
TMP117_DEVICE_ID = 0X0F
};
#endif