Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
tmp00x_regs.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 - 2019 HAW Hamburg
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
20
#ifndef TMP00X_REGS_H
21
#define TMP00X_REGS_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#define TMP00X_REGS_V_OBJECT 0x00
32
#define TMP00X_REGS_T_AMBIENT 0x01
33
#define TMP00X_REGS_CONFIG 0x02
35
#define TMP00X_CONFIG_RST (1 << 15)
37
#define TMP00X_CONFIG_MOD_SHIFT (12U)
38
#define TMP00X_CONFIG_MOD_MASK (0x7000)
39
#define TMP00X_CONFIG_MOD(x) (((uint16_t)(((uint16_t)(x)) \
40
<< TMP00X_CONFIG_MOD_SHIFT)) \
41
& TMP00X_CONFIG_MOD_MASK)
42
#define TMP00X_CONFIG_MOD_CC (0x07)
43
#define TMP00X_CONFIG_MOD_OFF (0x00)
45
#define TMP00X_CONFIG_CR_SHIFT (9U)
46
#define TMP00X_CONFIG_CR_MASK (0x0E00)
47
#define TMP00X_CONFIG_CR(x) (((uint16_t)(((uint16_t)(x)) \
48
<< TMP00X_CONFIG_CR_SHIFT)) \
49
& TMP00X_CONFIG_CR_MASK)
51
#define TMP00X_DRDY_PIN_EN (1 << 8)
58
#ifdef MODULE_TMP006
59
#define TMP00X_REGS_DEVICE_ID 0xFF
60
#define TMP00X_REGS_READ_STATUS TMP00X_REGS_CONFIG
61
#define TMP00X_DRDY (1 << 7)
62
#define TMP00X_DID_VALUE (0x0067)
63
#elif defined(MODULE_TMP007)
64
#define TMP00X_REGS_DEVICE_ID 0x1F
65
#define TMP00X_REGS_READ_STATUS TMP007_REGS_STATUS
66
#define TMP00X_DRDY (1 << 14)
67
#define TMP00X_DID_VALUE (0x0078)
68
#else
69
#error "TMP00X DRIVER not selected or supported"
70
#endif
77
#define TMP006_REGS_MANUFACTURER_ID 0xFE
84
#define TMP007_REGS_OBJ_TEMP 0x03
85
#define TMP007_REGS_STATUS 0x04
86
#define TMP007_REGS_STAT_MASK_EN 0x05
87
#define TMP007_REGS_OBJ_HIGH_LIMIT_TEMP 0x06
88
#define TMP007_REGS_OBJ_LOW_LIMIT_TEMP 0x07
89
#define TMP007_REGS_LOCAL_HIGH_LIMIT_TEMP 0x08
90
#define TMP007_REGS_LOCAL_LOW_LIMIT_TEMP 0x09
91
#define TMP007_REGS_S0_COEFFCIENT 0x0A
92
#define TMP007_REGS_A0_COEFFCIENT 0x0B
93
#define TMP007_REGS_A1_COEFFCIENT 0x0C
94
#define TMP007_REGS_B0_COEFFCIENT 0x0D
95
#define TMP007_REGS_B1_COEFFCIENT 0x0E
96
#define TMP007_REGS_B2_COEFFCIENT 0x0F
97
#define TMP007_REGS_C_COEFFCIENT 0x10
98
#define TMP007_REGS_TC0_COEFFCIENT 0x11
99
#define TMP007_REGS_TC1_COEFFCIENT 0x12
100
#define TMP007_REGS_MEM_ACCES 0x2A
103
#ifdef __cplusplus
104
}
105
#endif
106
107
#endif
/* TMP00X_REGS_H */
Generated on Sat Dec 21 2024 20:58:03 by
1.9.8