Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
isl29020-internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Freie Universität Berlin
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
9
#pragma once
10
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define ISL29020_REG_CMD 0x00
30
#define ISL29020_REG_LDATA 0x01
31
#define ISL29020_REG_HDATA 0x02
33
38
#define ISL29020_CMD_EN 0x80
39
#define ISL29020_CMD_MODE 0x40
40
#define ISL29020_CMD_LIGHT 0x20
41
#define ISL29020_CMD_RES 0x1c
42
#define ISL29020_CMD_RAGNE 0x03
44
49
#define ISL29020_RES_INT_16 0x00
50
#define ISL29020_RES_INT_12 0x04
51
#define ISL29020_RES_INT_8 0x08
52
#define ISL29020_RES_INT_4 0x0c
53
#define ISL29020_RES_EXT_ADC 0x10
54
#define ISL29020_RES_EXT_TIM 0x14
56
61
#define ISL29020_RANGE_1 0x00
62
#define ISL29020_RANGE_2 0x01
63
#define ISL29020_RANGE_3 0x02
64
#define ISL29020_RANGE_4 0x03
66
67
#ifdef __cplusplus
68
}
69
#endif
70
Generated on Thu Jul 3 2025 17:41:20 by
1.13.2