Loading...
Searching...
No Matches

Internal addresses, registers, constants for the TSL2561 sensor. More...

Detailed Description

Internal addresses, registers, constants for the TSL2561 sensor.

Internal addresses, registers, constants for the TSL2561 sensor.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file tsl2561_internals.h.

Go to the source code of this file.

TSL2561 identifier

#define TSL2561_ID   (0x50)
 

TSL2561 internals registers

#define TSL2561_REGISTER_CONTROL   (0x00)
 
#define TSL2561_REGISTER_TIMING   (0x01)
 
#define TSL2561_REGISTER_THRESHOLDLOW   (0x02)
 
#define TSL2561_REGISTER_THRESHOLDHIGH   (0x04)
 
#define TSL2561_REGISTER_INTERRUPT   (0x06)
 
#define TSL2561_REGISTER_ID   (0x0A)
 
#define TSL2561_REGISTER_CHAN0   (0x0C)
 
#define TSL2561_REGISTER_CHAN1   (0x0E)
 

TSL2561 commands

#define TSL2561_COMMAND_MODE   (0x80)
 
#define TSL2561_COMMAND_CLEAR   (0x40)
 
#define TSL2561_COMMAND_WORD   (0x20)
 
#define TSL2561_COMMAND_BLOCK   (0x10)
 

TSL2561 controls

#define TSL2561_CONTROL_POWERON   (0x03)
 
#define TSL2561_CONTROL_POWEROFF   (0x00)
 

Internals constants

#define TSL2561_LUXSCALE   (14) /* use 2e14 scaling */
 
#define TSL2561_RATIOSCALE   (9) /* use 2e9 scaling */
 
#define TSL2561_CHSCALE
 
#define TSL2561_CHSCALE_TINT0   (0x7517)
 
#define TSL2561_CHSCALE_TINT1   (0x0FE7)
 
#define TSL2561_K1T   (0x0040)
 
#define TSL2561_B1T   (0x01f2)
 
#define TSL2561_M1T   (0x01be)
 
#define TSL2561_K2T   (0x0080)
 
#define TSL2561_B2T   (0x0214)
 
#define TSL2561_M2T   (0x02d1)
 
#define TSL2561_K3T   (0x00c0)
 
#define TSL2561_B3T   (0x023f)
 
#define TSL2561_M3T   (0x037b)
 
#define TSL2561_K4T   (0x0100)
 
#define TSL2561_B4T   (0x0270)
 
#define TSL2561_M4T   (0x03fe)
 
#define TSL2561_K5T   (0x0138)
 
#define TSL2561_B5T   (0x016f)
 
#define TSL2561_M5T   (0x01fc)
 
#define TSL2561_K6T   (0x019a)
 
#define TSL2561_B6T   (0x00d2)
 
#define TSL2561_M6T   (0x00fb)
 
#define TSL2561_K7T   (0x029a)
 
#define TSL2561_B7T   (0x0018)
 
#define TSL2561_M7T   (0x0012)
 
#define TSL2561_K8T   (0x029a)
 
#define TSL2561_B8T   (0x0000)
 
#define TSL2561_M8T   (0x0000)
 

Macro Definition Documentation

◆ TSL2561_B1T

#define TSL2561_B1T   (0x01f2)

Definition at line 77 of file tsl2561_internals.h.

◆ TSL2561_B2T

#define TSL2561_B2T   (0x0214)

Definition at line 80 of file tsl2561_internals.h.

◆ TSL2561_B3T

#define TSL2561_B3T   (0x023f)

Definition at line 83 of file tsl2561_internals.h.

◆ TSL2561_B4T

#define TSL2561_B4T   (0x0270)

Definition at line 86 of file tsl2561_internals.h.

◆ TSL2561_B5T

#define TSL2561_B5T   (0x016f)

Definition at line 89 of file tsl2561_internals.h.

◆ TSL2561_B6T

#define TSL2561_B6T   (0x00d2)

Definition at line 92 of file tsl2561_internals.h.

◆ TSL2561_B7T

#define TSL2561_B7T   (0x0018)

Definition at line 95 of file tsl2561_internals.h.

◆ TSL2561_B8T

#define TSL2561_B8T   (0x0000)

Definition at line 98 of file tsl2561_internals.h.

◆ TSL2561_CHSCALE

#define TSL2561_CHSCALE
Value:
(10) /* use 2e10 scaling on
* channel values by */

Definition at line 72 of file tsl2561_internals.h.

◆ TSL2561_CHSCALE_TINT0

#define TSL2561_CHSCALE_TINT0   (0x7517)

Definition at line 73 of file tsl2561_internals.h.

◆ TSL2561_CHSCALE_TINT1

#define TSL2561_CHSCALE_TINT1   (0x0FE7)

Definition at line 74 of file tsl2561_internals.h.

◆ TSL2561_COMMAND_BLOCK

#define TSL2561_COMMAND_BLOCK   (0x10)

Definition at line 55 of file tsl2561_internals.h.

◆ TSL2561_COMMAND_CLEAR

#define TSL2561_COMMAND_CLEAR   (0x40)

Definition at line 53 of file tsl2561_internals.h.

◆ TSL2561_COMMAND_MODE

#define TSL2561_COMMAND_MODE   (0x80)

Definition at line 52 of file tsl2561_internals.h.

◆ TSL2561_COMMAND_WORD

#define TSL2561_COMMAND_WORD   (0x20)

Definition at line 54 of file tsl2561_internals.h.

◆ TSL2561_CONTROL_POWEROFF

#define TSL2561_CONTROL_POWEROFF   (0x00)

Definition at line 63 of file tsl2561_internals.h.

◆ TSL2561_CONTROL_POWERON

#define TSL2561_CONTROL_POWERON   (0x03)

Definition at line 62 of file tsl2561_internals.h.

◆ TSL2561_ID

#define TSL2561_ID   (0x50)

Definition at line 31 of file tsl2561_internals.h.

◆ TSL2561_K1T

#define TSL2561_K1T   (0x0040)

Definition at line 76 of file tsl2561_internals.h.

◆ TSL2561_K2T

#define TSL2561_K2T   (0x0080)

Definition at line 79 of file tsl2561_internals.h.

◆ TSL2561_K3T

#define TSL2561_K3T   (0x00c0)

Definition at line 82 of file tsl2561_internals.h.

◆ TSL2561_K4T

#define TSL2561_K4T   (0x0100)

Definition at line 85 of file tsl2561_internals.h.

◆ TSL2561_K5T

#define TSL2561_K5T   (0x0138)

Definition at line 88 of file tsl2561_internals.h.

◆ TSL2561_K6T

#define TSL2561_K6T   (0x019a)

Definition at line 91 of file tsl2561_internals.h.

◆ TSL2561_K7T

#define TSL2561_K7T   (0x029a)

Definition at line 94 of file tsl2561_internals.h.

◆ TSL2561_K8T

#define TSL2561_K8T   (0x029a)

Definition at line 97 of file tsl2561_internals.h.

◆ TSL2561_LUXSCALE

#define TSL2561_LUXSCALE   (14) /* use 2e14 scaling */

Definition at line 70 of file tsl2561_internals.h.

◆ TSL2561_M1T

#define TSL2561_M1T   (0x01be)

Definition at line 78 of file tsl2561_internals.h.

◆ TSL2561_M2T

#define TSL2561_M2T   (0x02d1)

Definition at line 81 of file tsl2561_internals.h.

◆ TSL2561_M3T

#define TSL2561_M3T   (0x037b)

Definition at line 84 of file tsl2561_internals.h.

◆ TSL2561_M4T

#define TSL2561_M4T   (0x03fe)

Definition at line 87 of file tsl2561_internals.h.

◆ TSL2561_M5T

#define TSL2561_M5T   (0x01fc)

Definition at line 90 of file tsl2561_internals.h.

◆ TSL2561_M6T

#define TSL2561_M6T   (0x00fb)

Definition at line 93 of file tsl2561_internals.h.

◆ TSL2561_M7T

#define TSL2561_M7T   (0x0012)

Definition at line 96 of file tsl2561_internals.h.

◆ TSL2561_M8T

#define TSL2561_M8T   (0x0000)

Definition at line 99 of file tsl2561_internals.h.

◆ TSL2561_RATIOSCALE

#define TSL2561_RATIOSCALE   (9) /* use 2e9 scaling */

Definition at line 71 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_CHAN0

#define TSL2561_REGISTER_CHAN0   (0x0C)

Definition at line 44 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_CHAN1

#define TSL2561_REGISTER_CHAN1   (0x0E)

Definition at line 45 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_CONTROL

#define TSL2561_REGISTER_CONTROL   (0x00)

Definition at line 38 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_ID

#define TSL2561_REGISTER_ID   (0x0A)

Definition at line 43 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_INTERRUPT

#define TSL2561_REGISTER_INTERRUPT   (0x06)

Definition at line 42 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_THRESHOLDHIGH

#define TSL2561_REGISTER_THRESHOLDHIGH   (0x04)

Definition at line 41 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_THRESHOLDLOW

#define TSL2561_REGISTER_THRESHOLDLOW   (0x02)

Definition at line 40 of file tsl2561_internals.h.

◆ TSL2561_REGISTER_TIMING

#define TSL2561_REGISTER_TIMING   (0x01)

Definition at line 39 of file tsl2561_internals.h.