DUDS
Distributed Update of Data from Something
duds::hardware::devices::instruments::TSL2591_internal Namespace Reference

Prevent Doxygen from mixing this up with other source-file specific items from other files. More...

Enumerations

enum  CmdFlags { Cmd = 0x80, TransNorm = 0x20, TransSpec = 0x60, AddrMask = 0x1F }
 The flags refered to as commands in the documentation. More...
 
enum  ControlFlags {
  IntgrTimeShift = 0, IntgrTimeMask = 0x7, GainShift = 4, GainMask = 0x30,
  Reset = 0x80
}
 More configuration flags. More...
 
enum  EnableFlags {
  OscOn = 1, Sample = 2, IntEnable = 0x10, SleepOnInt = 0x40,
  NonPersistantInterrutEnable = 0x80
}
 Flags used to enable various features. More...
 
enum  Regs {
  RegEnable, RegControl, RegDeviceId = 0x12, RegStatus,
  RegCh0, RegCh1 = 0x16
}
 The device's registers. More...
 

Variables

static std::uint16_t gainSettings [4]
 The set of selectable gain factors. More...
 

Detailed Description

Prevent Doxygen from mixing this up with other source-file specific items from other files.

Enumeration Type Documentation

◆ CmdFlags

The flags refered to as commands in the documentation.

Enumerator
Cmd 
TransNorm 
TransSpec 
AddrMask 

Definition at line 38 of file TSL2591.cpp.

◆ ControlFlags

More configuration flags.

Enumerator
IntgrTimeShift 
IntgrTimeMask 
GainShift 
GainMask 
Reset 

Definition at line 59 of file TSL2591.cpp.

◆ EnableFlags

Flags used to enable various features.

Enumerator
OscOn 
Sample 
IntEnable 
SleepOnInt 
NonPersistantInterrutEnable 

Definition at line 48 of file TSL2591.cpp.

◆ Regs

The device's registers.

These really do not fill a byte.

Enumerator
RegEnable 
RegControl 
RegDeviceId 
RegStatus 
RegCh0 
RegCh1 

Definition at line 26 of file TSL2591.cpp.

Variable Documentation

◆ gainSettings

std::uint16_t duds::hardware::devices::instruments::TSL2591_internal::gainSettings[4]
static
Initial value:
= {
1,
25,
428,
9876
}

The set of selectable gain factors.

Definition at line 70 of file TSL2591.cpp.

Referenced by duds::hardware::devices::instruments::TSL2591::init().