Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
isl29125-internal.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2015 Ludwig Knüpfer
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
25
#define ISL29125_I2C_ADDRESS 0x44
26
31
#define ISL29125_ID 0x7D
33
38
/* main register */
39
#define ISL29125_REG_ID 0x00
40
#define ISL29125_REG_RESET 0x00
41
/* configuration registers */
42
#define ISL29125_REG_CONF1 0x01
43
#define ISL29125_REG_CONF2 0x02
44
#define ISL29125_REG_CONF3 0x03
45
/* interrupt mode threshold registers */
46
#define ISL29125_REG_LTHLB 0x04
47
#define ISL29125_REG_LTHHB 0x05
48
#define ISL29125_REG_HTHLB 0x06
49
#define ISL29125_REG_HTHHB 0x07
50
/* status register */
51
#define ISL29125_REG_STATUS 0x08
52
/* sensor readout registers (double buffered) */
53
#define ISL29125_REG_GDLB 0x09
54
#define ISL29125_REG_GDHB 0x0A
55
#define ISL29125_REG_RDLB 0x0B
56
#define ISL29125_REG_RDHB 0x0C
57
#define ISL29125_REG_BDLB 0x0D
58
#define ISL29125_REG_BDHB 0x0E
60
65
#define ISL29125_CMD_RESET 0x46
67
72
/* ISL29125_REG_CONF1 B2:B0 */
73
#define ISL29125_CON1_MASK_MODE 0x07
74
/* ISL29125_REG_CONF1 B3 */
75
#define ISL29125_CON1_MASK_RANGE 0x08
76
/* ISL29125_REG_CONF1 B4 */
77
#define ISL29125_CON1_MASK_RES 0x10
78
/* ISL29125_REG_CONF1 B5 */
79
#define ISL29125_CON1_MASK_SYNC 0x20
80
#define ISL29125_CON1_SYNCOFF 0x00
81
#define ISL29125_CON1_SYNCON 0x20
83
84
#ifdef __cplusplus
85
}
86
#endif
87
Generated on Wed May 6 2026 11:24:25 by
1.13.2