IoT Drivers  v3.3.0 (S2022)
Engineering in Software Technology
Configuration structs for the TSL2591 driver functions

Commonly used structs. More...

Collaboration diagram for Configuration structs for the TSL2591 driver functions:

Data Structures

struct  tsl2591_combinedData_t
 TSL2591 Light measure data struct. More...
 

Enumerations

enum  tsl2591_gain_t { TSL2591_GAIN_LOW = 0x00, TSL2591_GAIN_MED = 0x10, TSL2591_GAIN_HIGH = 0x20, TSL2591_GAIN_MAX = 0x30 }
 TSL2591 Gain configuration. More...
 
enum  tsl2591_integrationTime_t {
  TSL2591_INTEGRATION_TIME_100MS = 0x00, TSL2591_INTEGRATION_TIME_200MS = 0x01, TSL2591_INTEGRATION_TIME_300MS = 0x02, TSL2591_INTEGRATION_TIME_400MS = 0x03,
  TSL2591_INTEGRATION_TIME_500MS = 0x04, TSL2591_INTEGRATION_TIME_600MS = 0x05
}
 TSL2591 Integration time configuration. More...
 

Detailed Description

Commonly used structs.

Enumeration Type Documentation

◆ tsl2591_gain_t

TSL2591 Gain configuration.

These are the values that must be used to change the gain of the sensor (tsl2591_setGainAndIntegrationTime)

Enumerator
TSL2591_GAIN_LOW 

Low gain (x1) - use in bright light (default)

TSL2591_GAIN_MED 

Medium gain (x25) - use in medium light

TSL2591_GAIN_HIGH 

High gain (x428) - use in very dimmed light

TSL2591_GAIN_MAX 

Maximum gain (x9876) - use in darkness

◆ tsl2591_integrationTime_t

TSL2591 Integration time configuration.

These are the values that must be used to change the integration time of the sensor (tsl2591_setGainAndIntegrationTime) The values are self explaining.

Enumerator
TSL2591_INTEGRATION_TIME_100MS 

Use in bright light (default)

TSL2591_INTEGRATION_TIME_200MS 

Use in medium light

TSL2591_INTEGRATION_TIME_300MS 

Use in medium light

TSL2591_INTEGRATION_TIME_400MS 

Use in dim light

TSL2591_INTEGRATION_TIME_500MS 

Use in dim light

TSL2591_INTEGRATION_TIME_600MS 

Use in darkness