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.htu21d.HTU21D Class Reference
Inheritance diagram for webiopi.devices.sensor.htu21d.HTU21D:
webiopi.devices.i2c.I2C webiopi.devices.sensor.Temperature webiopi.devices.sensor.Humidity webiopi.devices.bus.Bus

Public Member Functions

def __init__
 
def __str__
 
def __family__
 
def check_crc
 
def reset
 
def set_resolution
 
def get_resolutions
 
def get_temp
 
def get_rel_humidity
 
def get_comp_rel_humidity
 
def __getCelsius__
 
def __getFahrenheit__
 
def __getKelvin__
 
def __getHumidity__
 
- 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.Temperature
def __family__
 
def __getKelvin__
 
def __getCelsius__
 
def __getFahrenheit__
 
def Kelvin2Celsius
 
def Kelvin2Fahrenheit
 
def Celsius2Kelvin
 
def Celsius2Fahrenheit
 
def Fahrenheit2Kelvin
 
def Fahrenheit2Celsius
 
def getKelvin
 
def getCelsius
 
def getFahrenheit
 
- Public Member Functions inherited from webiopi.devices.sensor.Humidity
def __family__
 
def __getHumidity__
 
def getHumidity
 
def getHumidityPercent
 

Public Attributes

 resolutions
 
 temp_timing
 
- 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 CMD_READ_TEMP_HOLD = 0xe3
 
int CMD_READ_HUM_HOLD = 0xe5
 
int CMD_READ_TEMP_NOHOLD = 0xf3
 
int CMD_READ_HUM_NOHOLD = 0xf5
 
int CMD_WRITE_USER_REG = 0xe6
 
int CMD_READ_USER_REG = 0xe7
 
int CMD_SOFT_RESET = 0xfe
 
dictionary RESOLUTIONS
 
dictionary MEASURE_TIMES
 

Detailed Description

Definition at line 27 of file htu21d.py.

Constructor & Destructor Documentation

def webiopi.devices.sensor.htu21d.HTU21D.__init__ (   self)

Definition at line 55 of file htu21d.py.

Member Function Documentation

def webiopi.devices.sensor.htu21d.HTU21D.__family__ (   self)

Definition at line 64 of file htu21d.py.

def webiopi.devices.sensor.htu21d.HTU21D.__getCelsius__ (   self)
def webiopi.devices.sensor.htu21d.HTU21D.__getFahrenheit__ (   self)
def webiopi.devices.sensor.htu21d.HTU21D.__getHumidity__ (   self)
def webiopi.devices.sensor.htu21d.HTU21D.__getKelvin__ (   self)

Definition at line 134 of file htu21d.py.

References webiopi.devices.sensor.Temperature.Celsius2Kelvin().

def webiopi.devices.sensor.htu21d.HTU21D.__str__ (   self)
def webiopi.devices.sensor.htu21d.HTU21D.check_crc (   self,
  sensor_val 
)
def webiopi.devices.sensor.htu21d.HTU21D.get_comp_rel_humidity (   self)
def webiopi.devices.sensor.htu21d.HTU21D.get_rel_humidity (   self)
def webiopi.devices.sensor.htu21d.HTU21D.get_resolutions (   self)
def webiopi.devices.sensor.htu21d.HTU21D.get_temp (   self)
def webiopi.devices.sensor.htu21d.HTU21D.reset (   self)
def webiopi.devices.sensor.htu21d.HTU21D.set_resolution (   self,
  resIndex 
)

Member Data Documentation

int webiopi.devices.sensor.htu21d.HTU21D.CMD_READ_HUM_HOLD = 0xe5
static

Definition at line 30 of file htu21d.py.

int webiopi.devices.sensor.htu21d.HTU21D.CMD_READ_HUM_NOHOLD = 0xf5
static

Definition at line 32 of file htu21d.py.

Referenced by webiopi.devices.sensor.htu21d.HTU21D.get_rel_humidity().

int webiopi.devices.sensor.htu21d.HTU21D.CMD_READ_TEMP_HOLD = 0xe3
static

Definition at line 29 of file htu21d.py.

int webiopi.devices.sensor.htu21d.HTU21D.CMD_READ_TEMP_NOHOLD = 0xf3
static

Definition at line 31 of file htu21d.py.

Referenced by webiopi.devices.sensor.htu21d.HTU21D.get_temp().

int webiopi.devices.sensor.htu21d.HTU21D.CMD_READ_USER_REG = 0xe7
static

Definition at line 34 of file htu21d.py.

Referenced by webiopi.devices.sensor.htu21d.HTU21D.get_resolutions().

int webiopi.devices.sensor.htu21d.HTU21D.CMD_SOFT_RESET = 0xfe
static

Definition at line 35 of file htu21d.py.

Referenced by webiopi.devices.sensor.htu21d.HTU21D.reset().

int webiopi.devices.sensor.htu21d.HTU21D.CMD_WRITE_USER_REG = 0xe6
static

Definition at line 33 of file htu21d.py.

Referenced by webiopi.devices.sensor.htu21d.HTU21D.set_resolution().

dictionary webiopi.devices.sensor.htu21d.HTU21D.MEASURE_TIMES
static
Initial value:
1 = {
2  (12, 14): (.018, .055),
3  (8, 12): (.005, .015),
4  (10, 13): (.006, .028),
5  (11, 11): (.01, .009),
6  }

Definition at line 48 of file htu21d.py.

dictionary webiopi.devices.sensor.htu21d.HTU21D.RESOLUTIONS
static
Initial value:
1 = {
2  (0, 0) : (12, 14),
3  (0, 1) : (8, 12),
4  (1, 0) : (10, 13),
5  (1, 1) : (11, 11),
6  }

Definition at line 39 of file htu21d.py.

Referenced by webiopi.devices.sensor.htu21d.HTU21D.get_resolutions().

webiopi.devices.sensor.htu21d.HTU21D.resolutions

Definition at line 58 of file htu21d.py.

webiopi.devices.sensor.htu21d.HTU21D.temp_timing

Definition at line 59 of file htu21d.py.

Referenced by webiopi.devices.sensor.htu21d.HTU21D.get_temp().


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