Loading...
Searching...
No Matches

Definitions for the ISL29020 light sensor. More...

Detailed Description

Definitions for the ISL29020 light sensor.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file isl29020-internal.h.

Go to the source code of this file.

ISL29020 registers

#define ISL29020_REG_CMD   0x00
 
#define ISL29020_REG_LDATA   0x01
 
#define ISL29020_REG_HDATA   0x02
 

Masks for the ISL29020 command register

#define ISL29020_CMD_EN   0x80
 
#define ISL29020_CMD_MODE   0x40
 
#define ISL29020_CMD_LIGHT   0x20
 
#define ISL29020_CMD_RES   0x1c
 
#define ISL29020_CMD_RAGNE   0x03
 

Resolution options

#define ISL29020_RES_INT_16   0x00
 
#define ISL29020_RES_INT_12   0x04
 
#define ISL29020_RES_INT_8   0x08
 
#define ISL29020_RES_INT_4   0x0c
 
#define ISL29020_RES_EXT_ADC   0x10
 
#define ISL29020_RES_EXT_TIM   0x14
 

Range options

#define ISL29020_RANGE_1   0x00
 
#define ISL29020_RANGE_2   0x01
 
#define ISL29020_RANGE_3   0x02
 
#define ISL29020_RANGE_4   0x03
 

Macro Definition Documentation

◆ ISL29020_CMD_EN

#define ISL29020_CMD_EN   0x80

Definition at line 39 of file isl29020-internal.h.

◆ ISL29020_CMD_LIGHT

#define ISL29020_CMD_LIGHT   0x20

Definition at line 41 of file isl29020-internal.h.

◆ ISL29020_CMD_MODE

#define ISL29020_CMD_MODE   0x40

Definition at line 40 of file isl29020-internal.h.

◆ ISL29020_CMD_RAGNE

#define ISL29020_CMD_RAGNE   0x03

Definition at line 43 of file isl29020-internal.h.

◆ ISL29020_CMD_RES

#define ISL29020_CMD_RES   0x1c

Definition at line 42 of file isl29020-internal.h.

◆ ISL29020_RANGE_1

#define ISL29020_RANGE_1   0x00

Definition at line 62 of file isl29020-internal.h.

◆ ISL29020_RANGE_2

#define ISL29020_RANGE_2   0x01

Definition at line 63 of file isl29020-internal.h.

◆ ISL29020_RANGE_3

#define ISL29020_RANGE_3   0x02

Definition at line 64 of file isl29020-internal.h.

◆ ISL29020_RANGE_4

#define ISL29020_RANGE_4   0x03

Definition at line 65 of file isl29020-internal.h.

◆ ISL29020_REG_CMD

#define ISL29020_REG_CMD   0x00

Definition at line 30 of file isl29020-internal.h.

◆ ISL29020_REG_HDATA

#define ISL29020_REG_HDATA   0x02

Definition at line 32 of file isl29020-internal.h.

◆ ISL29020_REG_LDATA

#define ISL29020_REG_LDATA   0x01

Definition at line 31 of file isl29020-internal.h.

◆ ISL29020_RES_EXT_ADC

#define ISL29020_RES_EXT_ADC   0x10

Definition at line 54 of file isl29020-internal.h.

◆ ISL29020_RES_EXT_TIM

#define ISL29020_RES_EXT_TIM   0x14

Definition at line 55 of file isl29020-internal.h.

◆ ISL29020_RES_INT_12

#define ISL29020_RES_INT_12   0x04

Definition at line 51 of file isl29020-internal.h.

◆ ISL29020_RES_INT_16

#define ISL29020_RES_INT_16   0x00

Definition at line 50 of file isl29020-internal.h.

◆ ISL29020_RES_INT_4

#define ISL29020_RES_INT_4   0x0c

Definition at line 53 of file isl29020-internal.h.

◆ ISL29020_RES_INT_8

#define ISL29020_RES_INT_8   0x08

Definition at line 52 of file isl29020-internal.h.