Package pyrobot :: Package system :: Module SerialConnection :: Class SerialConnection
[frames | no frames]

Class SerialConnection


Method Summary
  __init__(self, aDevice, aSpeed)
  close(self)
Close the device...
  fileno(self)
Return the integer representation of the device...
  readline(self, aBlocking)
Read a line from the device, with or without blocking...
  setSpeed(self, aSpeed)
Set baud rate of the device...
  writeblock(self, aBlock)
Write a complete block of data to the device...
  writeline(self, aData, newline)
Write out just one line...

Class Variable Summary
int CC = 6                                                                     
int CFLAG = 2                                                                     
int IFLAG = 0                                                                     
int ISPEED = 4                                                                     
int LFLAG = 3                                                                     
int OFLAG = 1                                                                     
int OSPEED = 5                                                                     

Method Details

close(self)

Close the device

fileno(self)

Return the integer representation of the device

readline(self, aBlocking=0)

Read a line from the device, with or without blocking

setSpeed(self, aSpeed)

Set baud rate of the device

writeblock(self, aBlock)

Write a complete block of data to the device

writeline(self, aData, newline='\n')

Write out just one line

Class Variable Details

CC

Type:
int
Value:
6                                                                     

CFLAG

Type:
int
Value:
2                                                                     

IFLAG

Type:
int
Value:
0                                                                     

ISPEED

Type:
int
Value:
4                                                                     

LFLAG

Type:
int
Value:
3                                                                     

OFLAG

Type:
int
Value:
1                                                                     

OSPEED

Type:
int
Value:
5                                                                     

Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 http://epydoc.sf.net