quick2wire
quick2wire.spi Namespace Reference

Classes

class  SPIDevice
 
class  _SPITransfer
 

Functions

def duplex
 
def duplex_bytes
 
def reading
 
def writing
 
def writing_bytes
 

Function Documentation

def quick2wire.spi.duplex (   write_byte_sequence)
An SPI transfer that writes the write_byte_sequence to the device and reads len(write_byte_sequence) bytes from the device.

The bytes to be written are passed to this function as a sequence.
def quick2wire.spi.duplex_bytes (   write_bytes)
An SPI transfer that writes the write_bytes to the device and reads len(write_bytes) bytes from the device.

Each byte to be written is passed as an argument to this function.
def quick2wire.spi.reading (   byte_count)
An SPI transfer that shifts out byte_count zero bytes and reads byte_counts bytes from the device.
def quick2wire.spi.writing (   byte_sequence)
An SPI transfer that writes one or more bytes of data and ignores any bytes read from the device.

The bytes are passed to this function as a sequence.
def quick2wire.spi.writing_bytes (   byte_values)
An SPI transfer that writes one or more bytes of data and ignores any bytes read from the device.

Each byte is passed as an argument to this function.