Class s.i.ISerialPort(Interface):

Part of stoqdrivers.interfaces View In Hierarchy

Interface used by drivers to write commands and get reply from devices
Method getDSR Returns True if the device is done to send data. Some drivers
Method setDTR Set to True when the driver is going to send data to the device
Method set_options Set general device options
Method read Read data
Method write Write data
def getDSR():
Returns True if the device is done to send data. Some drivers block in a loop waiting for this function returns True before call read.
def setDTR(value):
Set to True when the driver is going to send data to the device
def set_options(baudrate=9600, bytesize=EIGHTBITS, parity=PARITY_NONE, stopbits=STOPBITS_ONE, read_timeout=3, write_timeout=0):
Set general device options
def read(n_bytes=1):
Read data
def write(data):
Write data
API Documentation for Stoqdrivers, generated by pydoctor at 2009-04-30 17:14:35.