Public Member Functions | |
| def | __init__ |
| def | __str__ |
| def | __analogRead__ |
| 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 | |
| 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 | |
Definition at line 19 of file mcp492X.py.
| def webiopi.devices.analog.mcp492X.MCP492X.__init__ | ( | self, | |
| chip, | |||
| channelCount, | |||
| vref | |||
| ) |
Definition at line 20 of file mcp492X.py.
References webiopi.utils.types.toint().
| def webiopi.devices.analog.mcp492X.MCP492X.__analogRead__ | ( | self, | |
| channel, | |||
diff = False |
|||
| ) |
Definition at line 31 of file mcp492X.py.
References webiopi.devices.analog.mcp492X.MCP492X.values, and webiopi.devices.analog.mcp48XX.MCP48XX.values.
| def webiopi.devices.analog.mcp492X.MCP492X.__analogWrite__ | ( | self, | |
| channel, | |||
| value | |||
| ) |
Definition at line 34 of file mcp492X.py.
References webiopi.devices.analog.mcp492X.MCP492X.buffered, webiopi.devices.analog.mcp48XX.MCP48XX.buffered, webiopi.devices.analog.mcp492X.MCP492X.gain, webiopi.devices.analog.mcp48XX.MCP48XX.gain, webiopi.devices.analog.mcp3424.MCP3424.gain, webiopi.devices.analog.mcp492X.MCP492X.shutdown, webiopi.devices.analog.mcp48XX.MCP48XX.shutdown, webiopi.devices.analog.mcp492X.MCP492X.values, webiopi.devices.analog.mcp48XX.MCP48XX.values, and webiopi.devices.bus.Bus.writeBytes().
| def webiopi.devices.analog.mcp492X.MCP492X.__str__ | ( | self | ) |
Definition at line 28 of file mcp492X.py.
References webiopi.devices.analog.ADC._analogCount, and webiopi.devices.spi.SPI.chip.
| webiopi.devices.analog.mcp492X.MCP492X.buffered |
Definition at line 23 of file mcp492X.py.
Referenced by webiopi.devices.analog.mcp492X.MCP492X.__analogWrite__().
| webiopi.devices.analog.mcp492X.MCP492X.gain |
Definition at line 24 of file mcp492X.py.
Referenced by webiopi.devices.analog.mcp492X.MCP492X.__analogWrite__().
| webiopi.devices.analog.mcp492X.MCP492X.shutdown |
Definition at line 25 of file mcp492X.py.
Referenced by webiopi.devices.analog.mcp492X.MCP492X.__analogWrite__().
| webiopi.devices.analog.mcp492X.MCP492X.values |
Definition at line 26 of file mcp492X.py.
Referenced by webiopi.devices.analog.mcp492X.MCP492X.__analogRead__(), and webiopi.devices.analog.mcp492X.MCP492X.__analogWrite__().
1.8.8