Package libprs500 :: Module communicate
[hide private]
[frames] | no frames]

Module communicate

source code

Contains the logic for communication with the device (a SONY PRS-500).

The public interface of class PRS500Device defines the methods for performing various tasks.

Classes [hide private]
  File
Wrapper that allows easy access to all information about files/directories
  DeviceDescriptor
Describes a USB device.
  PRS500Device
Contains the logic for performing various tasks on the reader.

Functions [hide private]
  _log_packet(packet, header, stream=sys.stderr)
Log packet to stream stream.

Variables [hide private]
  MINIMUM_COL_WIDTH = 12
Minimum width of columns in ls output
  _packet_number = 0
Keep track of the packet number of packet tracing

Function Details [hide private]

_log_packet(packet, header, stream=sys.stderr)

source code 
Log packet to stream stream. Header should be a small word describing the type of packet.

Variables Details [hide private]

MINIMUM_COL_WIDTH

Minimum width of columns in ls output
Value:
12                                                                    
      

_packet_number

Keep track of the packet number of packet tracing
Value:
0