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

Public Member Functions

def __str__
 
def __init__
 
def __analogRead__
 
def set_pga
 
def setBitRate
 
- 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

 resolution
 
 initResolution
 
 name
 
 gain
 
 channelCount
 
 byteCount
 
- Public Attributes inherited from webiopi.devices.i2c.I2C
 channel
 
 slave
 
- Public Attributes inherited from webiopi.devices.bus.Bus
 busName
 
 device
 
 flag
 
 fd
 

Private Member Functions

def __updatebyte
 
def __checkbit
 
def __setchannel
 

Private Attributes

 __config
 
 __channel
 
 __address
 
 __signbit
 

Static Private Attributes

int __address = 0x68
 
int __channel = 0
 
int __config = 0x10
 
tuple __adcreading = bytearray()
 

Detailed Description

Definition at line 43 of file mcp3424.py.

Constructor & Destructor Documentation

def webiopi.devices.analog.mcp3424.MCP3424.__init__ (   self,
  slave,
  resolution,
  name,
  gain = 1 
)

Definition at line 98 of file mcp3424.py.

Member Function Documentation

def webiopi.devices.analog.mcp3424.MCP3424.__analogRead__ (   self,
  channel,
  diff = False 
)
def webiopi.devices.analog.mcp3424.MCP3424.__checkbit (   self,
  byte,
  bit 
)
private

Definition at line 68 of file mcp3424.py.

Referenced by webiopi.devices.analog.mcp3424.MCP3424.__analogRead__().

def webiopi.devices.analog.mcp3424.MCP3424.__setchannel (   self,
  channel 
)
private

Definition at line 76 of file mcp3424.py.

Referenced by webiopi.devices.analog.mcp3424.MCP3424.__analogRead__().

def webiopi.devices.analog.mcp3424.MCP3424.__str__ (   self)

Definition at line 57 of file mcp3424.py.

References webiopi.devices.analog.mcp3424.MCP3424.__address.

def webiopi.devices.analog.mcp3424.MCP3424.__updatebyte (   self,
  byte,
  bit,
  value 
)
private
def webiopi.devices.analog.mcp3424.MCP3424.set_pga (   self,
  gain 
)
def webiopi.devices.analog.mcp3424.MCP3424.setBitRate (   self,
  rate 
)

Member Data Documentation

tuple webiopi.devices.analog.mcp3424.MCP3424.__adcreading = bytearray()
staticprivate

Definition at line 50 of file mcp3424.py.

int webiopi.devices.analog.mcp3424.MCP3424.__address = 0x68
staticprivate
webiopi.devices.analog.mcp3424.MCP3424.__address
private

Definition at line 100 of file mcp3424.py.

int webiopi.devices.analog.mcp3424.MCP3424.__channel = 0
staticprivate

Definition at line 46 of file mcp3424.py.

webiopi.devices.analog.mcp3424.MCP3424.__channel
private

Definition at line 82 of file mcp3424.py.

int webiopi.devices.analog.mcp3424.MCP3424.__config = 0x10
staticprivate
webiopi.devices.analog.mcp3424.MCP3424.__config
private

Definition at line 80 of file mcp3424.py.

webiopi.devices.analog.mcp3424.MCP3424.__signbit
private

Definition at line 145 of file mcp3424.py.

webiopi.devices.analog.mcp3424.MCP3424.byteCount
webiopi.devices.analog.mcp3424.MCP3424.channelCount

Definition at line 105 of file mcp3424.py.

webiopi.devices.analog.mcp3424.MCP3424.gain
webiopi.devices.analog.mcp3424.MCP3424.initResolution

Definition at line 102 of file mcp3424.py.

webiopi.devices.analog.mcp3424.MCP3424.name
webiopi.devices.analog.mcp3424.MCP3424.resolution

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