Public Member Functions | |
def | __str__ |
def | __init__ |
def | __analogRead__ |
def | set_pga |
def | setBitRate |
![]() | |
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 |
![]() | |
def | __init__ |
def | __str__ |
def | readRegister |
def | readRegisters |
def | writeRegister |
def | writeRegisters |
![]() | |
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 | |
![]() | |
channel | |
slave | |
![]() | |
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() |
Definition at line 43 of file mcp3424.py.
def webiopi.devices.analog.mcp3424.MCP3424.__init__ | ( | self, | |
slave, | |||
resolution, | |||
name, | |||
gain = 1 |
|||
) |
Definition at line 98 of file mcp3424.py.
def webiopi.devices.analog.mcp3424.MCP3424.__analogRead__ | ( | self, | |
channel, | |||
diff = False |
|||
) |
Definition at line 116 of file mcp3424.py.
References webiopi.devices.analog.mcp3424.MCP3424.__checkbit(), webiopi.devices.analog.mcp3424.MCP3424.__config, webiopi.devices.analog.mcp3424.MCP3424.__setchannel(), webiopi.devices.analog.mcp3424.MCP3424.byteCount, webiopi.devices.i2c.I2C.readRegisters(), and webiopi.devices.analog.mcp3424.MCP3424.resolution.
|
private |
Definition at line 68 of file mcp3424.py.
Referenced by webiopi.devices.analog.mcp3424.MCP3424.__analogRead__().
|
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.
|
private |
Definition at line 60 of file mcp3424.py.
Referenced by webiopi.devices.analog.mcp3424.MCP3424.set_pga(), and webiopi.devices.analog.mcp3424.MCP3424.setBitRate().
def webiopi.devices.analog.mcp3424.MCP3424.set_pga | ( | self, | |
gain | |||
) |
Definition at line 175 of file mcp3424.py.
References webiopi.devices.analog.mcp3424.MCP3424.__address, webiopi.devices.analog.mcp3424.MCP3424.__config, webiopi.devices.analog.mcp3424.MCP3424.__updatebyte(), webiopi.devices.i2c.I2C.writeRegister(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.writeRegister().
def webiopi.devices.analog.mcp3424.MCP3424.setBitRate | ( | self, | |
rate | |||
) |
Definition at line 193 of file mcp3424.py.
References webiopi.devices.analog.mcp3424.MCP3424.__address, webiopi.devices.analog.mcp3424.MCP3424.__config, webiopi.devices.analog.mcp3424.MCP3424.__updatebyte(), webiopi.devices.i2c.I2C.writeRegister(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.writeRegister().
|
staticprivate |
Definition at line 50 of file mcp3424.py.
|
staticprivate |
Definition at line 45 of file mcp3424.py.
Referenced by webiopi.devices.analog.mcp3424.MCP3424.__str__(), webiopi.devices.analog.mcp3424.MCP3424.set_pga(), and webiopi.devices.analog.mcp3424.MCP3424.setBitRate().
|
private |
Definition at line 100 of file mcp3424.py.
|
staticprivate |
Definition at line 46 of file mcp3424.py.
|
private |
Definition at line 82 of file mcp3424.py.
|
staticprivate |
Definition at line 47 of file mcp3424.py.
Referenced by webiopi.devices.analog.mcp3424.MCP3424.__analogRead__(), webiopi.devices.analog.mcp3424.MCP3424.set_pga(), and webiopi.devices.analog.mcp3424.MCP3424.setBitRate().
|
private |
Definition at line 80 of file mcp3424.py.
|
private |
Definition at line 145 of file mcp3424.py.
webiopi.devices.analog.mcp3424.MCP3424.byteCount |
Definition at line 106 of file mcp3424.py.
Referenced by webiopi.devices.analog.mcp3424.MCP3424.__analogRead__(), webiopi.devices.memory.Memory.checkBitAddress(), webiopi.devices.memory.Memory.checkByteAddress(), webiopi.devices.memory.Memory.checkStopByteAddress(), webiopi.devices.memory.Memory.memoryBitWildcard(), and webiopi.devices.memory.Memory.readMemoryBytes().
webiopi.devices.analog.mcp3424.MCP3424.channelCount |
Definition at line 105 of file mcp3424.py.
webiopi.devices.analog.mcp3424.MCP3424.gain |
Definition at line 104 of file mcp3424.py.
Referenced by webiopi.devices.analog.mcp492X.MCP492X.__analogWrite__(), and webiopi.devices.analog.mcp48XX.MCP48XX.__analogWrite__().
webiopi.devices.analog.mcp3424.MCP3424.initResolution |
Definition at line 102 of file mcp3424.py.
webiopi.devices.analog.mcp3424.MCP3424.name |
Definition at line 103 of file mcp3424.py.
Referenced by webiopi.devices.sensor.onewiretemp.OneWireTemp.__str__(), webiopi.devices.analog.mcp3x0x.MCP3X0X.__str__(), webiopi.devices.analog.mcp48XX.MCP48XX.__str__(), webiopi.devices.digital.pcf8574.PCF8574.__str__(), webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X.__str__(), webiopi.devices.digital.mcp23XXX.MCP230XX.__str__(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.__str__().
webiopi.devices.analog.mcp3424.MCP3424.resolution |
Definition at line 101 of file mcp3424.py.
Referenced by webiopi.devices.analog.mcp3424.MCP3424.__analogRead__(), webiopi.devices.sensor.mcptmp.MCP9808.__str__(), webiopi.devices.sensor.tmpXXX.TMP75.__str__(), and webiopi.devices.sensor.tmpXXX.TMP275.__str__().