Yet Another WebIOPi+
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
webiopi.devices.analog.ads1x1x.ADS1X1X Class Reference
Inheritance diagram for webiopi.devices.analog.ads1x1x.ADS1X1X:
webiopi.devices.analog.ADC webiopi.devices.i2c.I2C webiopi.devices.bus.Bus webiopi.devices.analog.ads1x1x.ADS1014 webiopi.devices.analog.ads1x1x.ADS1015 webiopi.devices.analog.ads1x1x.ADS1114 webiopi.devices.analog.ads1x1x.ADS1115

Public Member Functions

def __init__
 
def __str__
 
def __analogRead__
 
- Public Member Functions inherited from webiopi.devices.analog.ADC
def __init__
 
def __family__
 
def checkAnalogChannel
 
def checkAnalogValue
 
def analogCount
 
def analogResolution
 
def analogMaximum
 
def analogReference
 
def __analogRead__
 
def analogRead
 
def analogReadFloat
 
def analogReadVolt
 
def analogReadAll
 
def analogReadAllFloat
 
def analogReadAllVolt
 
- 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 Attributes

 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 VALUE = 0x00
 
int CONFIG = 0x01
 
int LO_THRESH = 0x02
 
int HI_THRESH = 0x03
 
int CONFIG_STATUS_MASK = 0x80
 
int CONFIG_CHANNEL_MASK = 0x70
 
int CONFIG_GAIN_MASK = 0x0E
 
int CONFIG_MODE_MASK = 0x01
 

Private Attributes

 _analogMax
 

Detailed Description

Definition at line 21 of file ads1x1x.py.

Constructor & Destructor Documentation

def webiopi.devices.analog.ads1x1x.ADS1X1X.__init__ (   self,
  slave,
  channelCount,
  resolution,
  name 
)

Definition at line 32 of file ads1x1x.py.

References webiopi.utils.types.toint().

Member Function Documentation

def webiopi.devices.analog.ads1x1x.ADS1X1X.__analogRead__ (   self,
  channel,
  diff = False 
)
def webiopi.devices.analog.ads1x1x.ADS1X1X.__str__ (   self)

Member Data Documentation

webiopi.devices.analog.ads1x1x.ADS1X1X._analogMax
private

Definition at line 35 of file ads1x1x.py.

int webiopi.devices.analog.ads1x1x.ADS1X1X.CONFIG = 0x01
static

Definition at line 23 of file ads1x1x.py.

Referenced by webiopi.devices.analog.ads1x1x.ADS1X1X.__analogRead__().

int webiopi.devices.analog.ads1x1x.ADS1X1X.CONFIG_CHANNEL_MASK = 0x70
static

Definition at line 28 of file ads1x1x.py.

Referenced by webiopi.devices.analog.ads1x1x.ADS1X1X.__analogRead__().

int webiopi.devices.analog.ads1x1x.ADS1X1X.CONFIG_GAIN_MASK = 0x0E
static

Definition at line 29 of file ads1x1x.py.

int webiopi.devices.analog.ads1x1x.ADS1X1X.CONFIG_MODE_MASK = 0x01
static

Definition at line 30 of file ads1x1x.py.

int webiopi.devices.analog.ads1x1x.ADS1X1X.CONFIG_STATUS_MASK = 0x80
static

Definition at line 27 of file ads1x1x.py.

int webiopi.devices.analog.ads1x1x.ADS1X1X.HI_THRESH = 0x03
static

Definition at line 25 of file ads1x1x.py.

int webiopi.devices.analog.ads1x1x.ADS1X1X.LO_THRESH = 0x02
static

Definition at line 24 of file ads1x1x.py.

webiopi.devices.analog.ads1x1x.ADS1X1X.name
int webiopi.devices.analog.ads1x1x.ADS1X1X.VALUE = 0x00
static

Definition at line 22 of file ads1x1x.py.

Referenced by webiopi.devices.analog.ads1x1x.ADS1X1X.__analogRead__().


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