Yet Another WebIOPi+
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
webiopi.devices.sensor.tslXXXX.TSL2561X Class Reference
Inheritance diagram for webiopi.devices.sensor.tslXXXX.TSL2561X:
webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X webiopi.devices.i2c.I2C webiopi.devices.sensor.Luminosity webiopi.devices.bus.Bus webiopi.devices.sensor.tslXXXX.TSL2561CS webiopi.devices.sensor.tslXXXX.TSL2561T webiopi.devices.sensor.tslXXXX.TSL2561

Public Member Functions

def __init__
 
def __getLux__
 
def setGain
 
def getGain
 
def __setTime__
 
def __getTime__
 
- Public Member Functions inherited from webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X
def __init__
 
def __str__
 
def wake
 
def __wake__
 
def sleep
 
def __sleep__
 
def setTime
 
def getTime
 
- Public Member Functions inherited from webiopi.devices.i2c.I2C
def __init__
 
def __str__
 
def readRegister
 
def readRegisters
 
def writeRegister
 
def writeRegisters
 
- Public Member Functions inherited from webiopi.devices.bus.Bus
def __init__
 
def open
 
def close
 
def read
 
def readBytes
 
def readByte
 
def write
 
def writeBytes
 
def writeByte
 
- Public Member Functions inherited from webiopi.devices.sensor.Luminosity
def __family__
 
def __getLux__
 
def getLux
 

Public Attributes

 gain_multiplier
 
 time_multiplier
 
- Public Attributes inherited from webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X
 name
 
- Public Attributes inherited from webiopi.devices.i2c.I2C
 channel
 
 slave
 
- Public Attributes inherited from webiopi.devices.bus.Bus
 busName
 
 device
 
 flag
 
 fd
 

Static Public Attributes

int VAL_TIME_402_MS = 0x02
 
int VAL_TIME_101_MS = 0x01
 
int VAL_TIME_14_MS = 0x00
 
int REG_CHANNEL_0_LOW = 0x0C
 
int REG_CHANNEL_1_LOW = 0x0E
 
int MASK_GAIN = 0x10
 
int MASK_TIME = 0x03
 
- Static Public Attributes inherited from webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X
int VAL_COMMAND = 0x80
 
int REG_CONTROL = 0x00
 
int REG_CONFIG = 0x01
 
int VAL_PWON = 0x03
 
int VAL_PWOFF = 0x00
 
int VAL_INVALID = -1
 

Detailed Description

Definition at line 66 of file tslXXXX.py.

Constructor & Destructor Documentation

def webiopi.devices.sensor.tslXXXX.TSL2561X.__init__ (   self,
  slave,
  time,
  gain,
  name = "TSL2561X" 
)

Member Function Documentation

def webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__ (   self)
def webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__ (   self)
def webiopi.devices.sensor.tslXXXX.TSL2561X.__setTime__ (   self,
  time 
)
def webiopi.devices.sensor.tslXXXX.TSL2561X.getGain (   self)
def webiopi.devices.sensor.tslXXXX.TSL2561X.setGain (   self,
  gain 
)

Definition at line 89 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__init__().

Member Data Documentation

webiopi.devices.sensor.tslXXXX.TSL2561X.gain_multiplier

Definition at line 92 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__().

int webiopi.devices.sensor.tslXXXX.TSL2561X.MASK_GAIN = 0x10
static

Definition at line 74 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.getGain().

int webiopi.devices.sensor.tslXXXX.TSL2561X.MASK_TIME = 0x03
static

Definition at line 75 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__().

int webiopi.devices.sensor.tslXXXX.TSL2561X.REG_CHANNEL_0_LOW = 0x0C
static

Definition at line 71 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__().

int webiopi.devices.sensor.tslXXXX.TSL2561X.REG_CHANNEL_1_LOW = 0x0E
static

Definition at line 72 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__().

webiopi.devices.sensor.tslXXXX.TSL2561X.time_multiplier
int webiopi.devices.sensor.tslXXXX.TSL2561X.VAL_TIME_101_MS = 0x01
static

Definition at line 68 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__().

int webiopi.devices.sensor.tslXXXX.TSL2561X.VAL_TIME_14_MS = 0x00
static

Definition at line 69 of file tslXXXX.py.

Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__().

int webiopi.devices.sensor.tslXXXX.TSL2561X.VAL_TIME_402_MS = 0x02
static

The documentation for this class was generated from the following file: