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