Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
19
#ifndef LM75_REGS_H
20
#define LM75_REGS_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/* LM75 register list */
27
#define LM75_TEMP_REG (0x00)
28
#define LM75_CONF_REG (0x01)
29
#define LM75_THYST_REG (0x02)
30
#define LM75_TOS_REG (0x03)
32
/* Device Operation mode */
33
#define NORMAL_MODE 0
34
#define SHUTDOWN_MODE 1
36
/* Device Thermostat operation mode */
37
#define COMPARATOR_MODE 0
38
#define INTERRUPT_MODE 1
40
/* OS polarity */
41
#define OS_ACTIVE_LOW 0
42
#define OS_ACTIVE_HIGH 1
44
/* Consecutive fault measurements to trigger the alert function */
45
#define FAULT_1 0
46
#define FAULT_2 1
48
/* LM75A exclusive registers */
49
50
#define FAULT_4 2
51
#define FAULT_6 3
53
/* TMP1075 exclusive registers */
54
55
/* Device ID register - only available in the TMP1075 sensor */
56
#define TMP1075_DEVICE_ID_REG (0x0F)
58
/* fault queue values exclusive to the TMP1075 sensor */
59
#define FAULT_3 2
60
#define FAULT_4_TMP1075 3
62
/* Conversion rate setting when device is in continuous conversion mode
63
* Only configurable in the TMP1075 sensor */
64
#define TMP1075_CONV_RATE_REG_27H 0
65
#define TMP1075_CONV_RATE_REG_55 1
66
#define TMP1075_CONV_RATE_REG_110 2
67
#define TMP1075_CONV_RATE_REG_220 3
69
#ifdef __cplusplus
70
}
71
#endif
72
73
#endif
/* LM75_REGS_H */
Generated on Wed Nov 27 2024 02:41:43 by
1.9.8