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
26#define LM75_TEMP_REG (0x00)
27#define LM75_CONF_REG (0x01)
28#define LM75_THYST_REG (0x02)
29#define LM75_TOS_REG (0x03)
31
36#define NORMAL_MODE 0
37#define SHUTDOWN_MODE 1
39
44#define COMPARATOR_MODE 0
45#define INTERRUPT_MODE 1
47
52#define OS_ACTIVE_LOW 0
53#define OS_ACTIVE_HIGH 1
55
60#define FAULT_1 0
61#define FAULT_2 1
63
68#define FAULT_4 2
69#define FAULT_6 3
71
76#define TMP1075_DEVICE_ID_REG (0x0F)
77
82#define FAULT_3 2
83#define FAULT_4_TMP1075 3
85
90#define TMP1075_CONV_RATE_REG_27H 0
91#define TMP1075_CONV_RATE_REG_55 1
92#define TMP1075_CONV_RATE_REG_110 2
93#define TMP1075_CONV_RATE_REG_220 3 /* end of "TMP1075 exclusive registers" group */
96
101#define LM75_CONFIG_SHUTDOWN_MODE 0x01
102#define TMP1075_CONFIG_ONE_SHOT_MODE 0x81
104
105#ifdef __cplusplus
106}
107#endif
108