Public Attributes | |
| prox_threshold | |
| prox_cycles | |
| cal_cycles | |
| offset | |
| current | |
| frequency | |
  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 | REG_COMMAND = 0x80 | 
| int | REG_IR_LED_CURRENT = 0x83 | 
| int | REG_AMB_PARAMETERS = 0x84 | 
| int | REG_AMB_RESULT_HIGH = 0x85 | 
| int | REG_PROX_RESULT_HIGH = 0x87 | 
| int | REG_PROX_FREQUENCY = 0x89 | 
| int | REG_PROX_ADJUST = 0x8A | 
| int | VAL_MOD_TIMING_DEF = 129 | 
| int | VAL_PR_FREQ_3M125HZ = 0 | 
| int | VAL_PR_FREQ_1M5625HZ = 1 | 
| int | VAL_PR_FREQ_781K25HZ = 2 | 
| int | VAL_PR_FREQ_390K625HZ = 3 | 
| int | VAL_START_AMB = 1 | 
| int | VAL_START_PROX = 1 | 
| int | VAL_INVALID = -1 | 
| int | VAL_NO_PROXIMITY = -1 | 
| int | MASK_PROX_FREQUENCY = 0 | 
| int | MASK_IR_LED_CURRENT = 0 | 
| int | MASK_PROX_READY = 0 | 
| int | MASK_AMB_READY = 0 | 
Definition at line 28 of file vcnl4000.py.
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__init__ | ( | self, | |
slave = 0b0010011,  | 
        |||
current = 20,  | 
        |||
frequency = 781,  | 
        |||
prox_threshold = 15,  | 
        |||
prox_cycles = 10,  | 
        |||
cal_cycles = 5  | 
        |||
| ) | 
Definition at line 55 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.setCurrent(), webiopi.devices.sensor.vcnl4000.VCNL4000.setFrequency(), and webiopi.utils.types.toint().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__calculateLux__ | ( | self, | |
| light_word | |||
| ) | 
Definition at line 151 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__getLux__().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__calculateMillimeter__ | ( | self, | |
| raw_proximity_counts | |||
| ) | 
Definition at line 171 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getMillimeter__().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__family__ | ( | self | ) | 
Definition at line 70 of file vcnl4000.py.
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__getCurrent__ | ( | self | ) | 
Definition at line 139 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.MASK_IR_LED_CURRENT, webiopi.devices.i2c.I2C.readRegister(), webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister(), and webiopi.devices.sensor.vcnl4000.VCNL4000.REG_IR_LED_CURRENT.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.getCurrent().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__ | ( | self | ) | 
Definition at line 119 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.MASK_PROX_FREQUENCY, webiopi.devices.i2c.I2C.readRegister(), webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister(), webiopi.devices.sensor.vcnl4000.VCNL4000.REG_PROX_FREQUENCY, webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X.VAL_INVALID, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_INVALID, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_1M5625HZ, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_390K625HZ, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_3M125HZ, and webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_781K25HZ.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.getFrequency().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__getLux__ | ( | self | ) | 
Definition at line 143 of file vcnl4000.py.
References webiopi.devices.sensor.tslXXXX.TSL2561CS.__calculateLux__(), webiopi.devices.sensor.vcnl4000.VCNL4000.__calculateLux__(), webiopi.devices.sensor.tslXXXX.TSL2561T.__calculateLux__(), webiopi.devices.sensor.vcnl4000.VCNL4000.MASK_AMB_READY, webiopi.devices.i2c.I2C.readRegister(), webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister(), webiopi.devices.i2c.I2C.readRegisters(), webiopi.devices.sensor.vcnl4000.VCNL4000.REG_AMB_RESULT_HIGH, webiopi.devices.sensor.vcnl4000.VCNL4000.REG_COMMAND, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_START_AMB, webiopi.devices.i2c.I2C.writeRegister(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.writeRegister().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__getMillimeter__ | ( | self | ) | 
Definition at line 154 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.__calculateMillimeter__(), webiopi.devices.sensor.vcnl4000.VCNL4000.__readProximityCounts__(), webiopi.devices.sensor.vcnl4000.VCNL4000.offset, webiopi.devices.sensor.vcnl4000.VCNL4000.prox_cycles, webiopi.devices.sensor.vcnl4000.VCNL4000.prox_threshold, and webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_NO_PROXIMITY.
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__measureOffset__ | ( | self | ) | 
Definition at line 198 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.__readProximityCounts__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.cal_cycles.
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__readProximityCounts__ | ( | self | ) | 
Definition at line 204 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.MASK_PROX_READY, webiopi.devices.i2c.I2C.readRegister(), webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister(), webiopi.devices.i2c.I2C.readRegisters(), webiopi.devices.sensor.vcnl4000.VCNL4000.REG_COMMAND, webiopi.devices.sensor.vcnl4000.VCNL4000.REG_PROX_RESULT_HIGH, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_START_PROX, webiopi.devices.i2c.I2C.writeRegister(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.writeRegister().
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getMillimeter__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__measureOffset__().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__setAmbientMeasuringMode__ | ( | self | ) | 
Definition at line 76 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.REG_AMB_PARAMETERS, webiopi.devices.i2c.I2C.writeRegister(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.writeRegister().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__setCurrent__ | ( | self | ) | 
Definition at line 133 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.current, webiopi.devices.i2c.I2C.readRegister(), webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister(), webiopi.devices.sensor.vcnl4000.VCNL4000.REG_IR_LED_CURRENT, webiopi.devices.i2c.I2C.writeRegister(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.writeRegister().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__setFrequency__ | ( | self | ) | 
Definition at line 105 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.frequency, webiopi.devices.analog.PWM.frequency, webiopi.devices.i2c.I2C.readRegister(), webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister(), webiopi.devices.sensor.vcnl4000.VCNL4000.REG_PROX_FREQUENCY, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_1M5625HZ, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_390K625HZ, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_3M125HZ, webiopi.devices.sensor.vcnl4000.VCNL4000.VAL_PR_FREQ_781K25HZ, webiopi.devices.i2c.I2C.writeRegister(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.writeRegister().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__setProximityTiming__ | ( | self | ) | 
| def webiopi.devices.sensor.vcnl4000.VCNL4000.__str__ | ( | self | ) | 
Definition at line 67 of file vcnl4000.py.
References webiopi.devices.i2c.I2C.slave, and webiopi.devices.digital.mcp23XXX.MCP23SXX.slave.
| def webiopi.devices.sensor.vcnl4000.VCNL4000.calibrate | ( | self | ) | 
Definition at line 84 of file vcnl4000.py.
| def webiopi.devices.sensor.vcnl4000.VCNL4000.getCurrent | ( | self | ) | 
Definition at line 95 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.__getCurrent__().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.getFrequency | ( | self | ) | 
Definition at line 102 of file vcnl4000.py.
References webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.setCurrent | ( | self, | |
| current | |||
| ) | 
Definition at line 90 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__init__().
| def webiopi.devices.sensor.vcnl4000.VCNL4000.setFrequency | ( | self, | |
| frequency | |||
| ) | 
Definition at line 98 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__init__().
| webiopi.devices.sensor.vcnl4000.VCNL4000.cal_cycles | 
Definition at line 61 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__measureOffset__().
| webiopi.devices.sensor.vcnl4000.VCNL4000.current | 
Definition at line 91 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__setCurrent__().
| webiopi.devices.sensor.vcnl4000.VCNL4000.frequency | 
Definition at line 99 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__setFrequency__().
      
  | 
  static | 
Definition at line 53 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getLux__().
      
  | 
  static | 
Definition at line 51 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getCurrent__().
      
  | 
  static | 
Definition at line 50 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__().
      
  | 
  static | 
Definition at line 52 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__readProximityCounts__().
| webiopi.devices.sensor.vcnl4000.VCNL4000.offset | 
Definition at line 85 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getMillimeter__().
| webiopi.devices.sensor.vcnl4000.VCNL4000.prox_cycles | 
Definition at line 60 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getMillimeter__().
| webiopi.devices.sensor.vcnl4000.VCNL4000.prox_threshold | 
Definition at line 59 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getMillimeter__().
      
  | 
  static | 
Definition at line 31 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__setAmbientMeasuringMode__().
      
  | 
  static | 
Definition at line 32 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getLux__().
      
  | 
  static | 
Definition at line 29 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getLux__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__readProximityCounts__().
      
  | 
  static | 
Definition at line 30 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getCurrent__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__setCurrent__().
      
  | 
  static | 
Definition at line 35 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__setProximityTiming__().
      
  | 
  static | 
Definition at line 34 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__setFrequency__().
      
  | 
  static | 
Definition at line 33 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__readProximityCounts__().
      
  | 
  static | 
Definition at line 47 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__().
      
  | 
  static | 
Definition at line 37 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__setProximityTiming__().
      
  | 
  static | 
Definition at line 48 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getMillimeter__().
      
  | 
  static | 
Definition at line 40 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__setFrequency__().
      
  | 
  static | 
Definition at line 42 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__setFrequency__().
      
  | 
  static | 
Definition at line 39 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__setFrequency__().
      
  | 
  static | 
Definition at line 41 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getFrequency__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__setFrequency__().
      
  | 
  static | 
Definition at line 44 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__getLux__().
      
  | 
  static | 
Definition at line 45 of file vcnl4000.py.
Referenced by webiopi.devices.sensor.vcnl4000.VCNL4000.__readProximityCounts__().
 1.8.8