Yet Another WebIOPi+
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Public Attributes | List of all members
webiopi.devices.analog.mcp48XX.MCP48XX Class Reference
Inheritance diagram for webiopi.devices.analog.mcp48XX.MCP48XX:
webiopi.devices.spi.SPI webiopi.devices.analog.DAC webiopi.devices.bus.Bus webiopi.devices.analog.ADC webiopi.devices.analog.mcp48XX.MCP4802 webiopi.devices.analog.mcp48XX.MCP4812 webiopi.devices.analog.mcp48XX.MCP4822

Public Member Functions

def __init__
 
def __str__
 
def int2bin
 
def __analogRead__
 
def __analogWriteShut__
 
def __analogWrite__
 
- 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.DAC
def __init__
 
def __family__
 
def __analogWrite__
 
def analogWrite
 
def analogWriteFloat
 
def analogWriteVolt
 
- 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
 
 buffered
 
 gain
 
 shutdown
 
 values
 
- 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 mcp48XX.py.

Constructor & Destructor Documentation

def webiopi.devices.analog.mcp48XX.MCP48XX.__init__ (   self,
  chip,
  channelCount,
  resolution,
  name 
)

Definition at line 20 of file mcp48XX.py.

References webiopi.utils.types.toint().

Member Function Documentation

def webiopi.devices.analog.mcp48XX.MCP48XX.__analogRead__ (   self,
  channel,
  diff = False 
)

Definition at line 35 of file mcp48XX.py.

References webiopi.devices.analog.mcp48XX.MCP48XX.values.

def webiopi.devices.analog.mcp48XX.MCP48XX.__analogWrite__ (   self,
  channel,
  value 
)
def webiopi.devices.analog.mcp48XX.MCP48XX.__analogWriteShut__ (   self,
  channel 
)
def webiopi.devices.analog.mcp48XX.MCP48XX.__str__ (   self)
def webiopi.devices.analog.mcp48XX.MCP48XX.int2bin (   self,
  n,
  count 
)

Definition at line 32 of file mcp48XX.py.

Member Data Documentation

webiopi.devices.analog.mcp48XX.MCP48XX.buffered
webiopi.devices.analog.mcp48XX.MCP48XX.gain
webiopi.devices.analog.mcp48XX.MCP48XX.name
webiopi.devices.analog.mcp48XX.MCP48XX.shutdown
webiopi.devices.analog.mcp48XX.MCP48XX.values

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