Loading...
Searching...
No Matches
isl29020-internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
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 ISL29020_REG_CMD 0x00
27#define ISL29020_REG_LDATA 0x01
28#define ISL29020_REG_HDATA 0x02
30
35#define ISL29020_CMD_EN 0x80
36#define ISL29020_CMD_MODE 0x40
37#define ISL29020_CMD_LIGHT 0x20
38#define ISL29020_CMD_RES 0x1c
39#define ISL29020_CMD_RAGNE 0x03
41
46#define ISL29020_RES_INT_16 0x00
47#define ISL29020_RES_INT_12 0x04
48#define ISL29020_RES_INT_8 0x08
49#define ISL29020_RES_INT_4 0x0c
50#define ISL29020_RES_EXT_ADC 0x10
51#define ISL29020_RES_EXT_TIM 0x14
53
58#define ISL29020_RANGE_1 0x00
59#define ISL29020_RANGE_2 0x01
60#define ISL29020_RANGE_3 0x02
61#define ISL29020_RANGE_4 0x03
63
64#ifdef __cplusplus
65}
66#endif
67