Public Member Functions | |
| 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 Attributes | |
| chip | |
| mode | |
| bits | |
| speed | |
Public Attributes inherited from webiopi.devices.bus.Bus | |
| busName | |
| device | |
| flag | |
| fd | |
| def webiopi.devices.spi.SPI.__init__ | ( | self, | |
chip = 0, |
|||
mode = 0, |
|||
bits = 8, |
|||
speed = 0 |
|||
| ) |
| def webiopi.devices.spi.SPI.__str__ | ( | self | ) |
Definition at line 118 of file spi.py.
References webiopi.devices.spi.SPI.chip, webiopi.devices.spi.SPI.mode, and webiopi.devices.spi.SPI.speed.
| def webiopi.devices.spi.SPI.xfer | ( | self, | |
txbuff = None |
|||
| ) |
Definition at line 121 of file spi.py.
References webiopi.devices.spi.SPI.bits, webiopi.devices.bus.Bus.fd, webiopi.devices.spi.SPI.speed, and webiopi.devices.spi.SPI_IOC_MESSAGE().
Referenced by webiopi.devices.analog.mcp3x0x.MCP3X0X.__analogRead__(), webiopi.devices.analog.mcp3x0x.MCP3002.__analogRead__(), and webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister().
| webiopi.devices.spi.SPI.bits |
Definition at line 105 of file spi.py.
Referenced by webiopi.devices.spi.SPI.xfer().
| webiopi.devices.spi.SPI.chip |
| webiopi.devices.spi.SPI.mode |
Definition at line 97 of file spi.py.
Referenced by webiopi.devices.spi.SPI.__str__().
| webiopi.devices.spi.SPI.speed |
Definition at line 115 of file spi.py.
Referenced by webiopi.devices.spi.SPI.__str__(), and webiopi.devices.spi.SPI.xfer().
1.8.8