Yet Another WebIOPi+
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Public Attributes | List of all members
webiopi.devices.analog.mcp3x0x.MCP3X0X Class Reference
Inheritance diagram for webiopi.devices.analog.mcp3x0x.MCP3X0X:
webiopi.devices.spi.SPI webiopi.devices.analog.ADC webiopi.devices.bus.Bus webiopi.devices.analog.mcp3x0x.MCP300X webiopi.devices.analog.mcp3x0x.MCP320X webiopi.devices.analog.mcp3x0x.MCP3002 webiopi.devices.analog.mcp3x0x.MCP3004 webiopi.devices.analog.mcp3x0x.MCP3008 webiopi.devices.analog.mcp3x0x.MCP3204 webiopi.devices.analog.mcp3x0x.MCP3208

Public Member Functions

def __init__
 
def __str__
 
def __analogRead__
 
- Public Member Functions inherited from webiopi.devices.spi.SPI
def __init__
 
def __str__
 
def xfer
 
- 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.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 Attributes

 name
 
 MSB_MASK
 
- Public Attributes inherited from webiopi.devices.spi.SPI
 chip
 
 mode
 
 bits
 
 speed
 
- Public Attributes inherited from webiopi.devices.bus.Bus
 busName
 
 device
 
 flag
 
 fd
 

Detailed Description

Definition at line 19 of file mcp3x0x.py.

Constructor & Destructor Documentation

def webiopi.devices.analog.mcp3x0x.MCP3X0X.__init__ (   self,
  chip,
  channelCount,
  resolution,
  vref,
  name 
)

Definition at line 20 of file mcp3x0x.py.

References webiopi.utils.types.toint().

Member Function Documentation

def webiopi.devices.analog.mcp3x0x.MCP3X0X.__analogRead__ (   self,
  channel,
  diff 
)
def webiopi.devices.analog.mcp3x0x.MCP3X0X.__str__ (   self)

Member Data Documentation

webiopi.devices.analog.mcp3x0x.MCP3X0X.MSB_MASK

Definition at line 24 of file mcp3x0x.py.

Referenced by webiopi.devices.analog.mcp3x0x.MCP3X0X.__analogRead__().

webiopi.devices.analog.mcp3x0x.MCP3X0X.name

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