Loading...
Searching...
No Matches
lm75_regs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 ML!PA Consulting GmbH
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
9#pragma once
10
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/* LM75 register list */
26#define LM75_TEMP_REG (0x00)
27#define LM75_CONF_REG (0x01)
28#define LM75_THYST_REG (0x02)
29#define LM75_TOS_REG (0x03)
30
31/* Device Operation mode */
32#define NORMAL_MODE 0
33#define SHUTDOWN_MODE 1
34
35/* Device Thermostat operation mode */
36#define COMPARATOR_MODE 0
37#define INTERRUPT_MODE 1
38
39/* OS polarity */
40#define OS_ACTIVE_LOW 0
41#define OS_ACTIVE_HIGH 1
42
43/* Consecutive fault measurements to trigger the alert function */
44#define FAULT_1 0
45#define FAULT_2 1
46
47/* LM75A exclusive registers */
48
49#define FAULT_4 2
50#define FAULT_6 3
51
52/* TMP1075 exclusive registers */
53
54/* Device ID register - only available in the TMP1075 sensor */
55#define TMP1075_DEVICE_ID_REG (0x0F)
56
57/* fault queue values exclusive to the TMP1075 sensor */
58#define FAULT_3 2
59#define FAULT_4_TMP1075 3
60
61/* Conversion rate setting when device is in continuous conversion mode
62 * Only configurable in the TMP1075 sensor */
63#define TMP1075_CONV_RATE_REG_27H 0
64#define TMP1075_CONV_RATE_REG_55 1
65#define TMP1075_CONV_RATE_REG_110 2
66#define TMP1075_CONV_RATE_REG_220 3
67
68#ifdef __cplusplus
69}
70#endif
71