/home/fwph/code/wurde/modules/ptu/linuxser.cpp File Reference

Go to the source code of this file.

Defines

#define DEBUG   0
#define INT_REVERSED

Functions

portstream_fd openserial (char *portname)
char closeserial (portstream_fd pt_fd)
char SerialBytesOut (portstream_fd pt_fd, unsigned char *buffer, int nBytes)
char SerialBytesIn (portstream_fd pt_fd, unsigned char *buffer, unsigned int nBytes, long timeoutVal)
char PeekByte (portstream_fd portstream, unsigned char *peekedByte)
char FlushInputBuffer (portstream_fd pt_fd)
char SerialStringOut (portstream_fd pt_fd, unsigned char *buffer)
char ReadSerialLine (portstream_fd pt_fd, unsigned char *strbuffer, long timeoutVal, int *charsRead)
void do_delay (long millisec)
char GetSignedShort (portstream_fd portstream, signed short *SHORTval, long timeout)
char PutSignedShort (portstream_fd portstream, signed short *SHORTval)
char GetUnsignedShort (portstream_fd portstream, unsigned short *USHORTval, long timeout)
char PutUnsignedShort (portstream_fd portstream, unsigned short *USHORTval)
char GetSignedLong (portstream_fd portstream, signed long *LONGval, long timeout)
char PutSignedLong (portstream_fd portstream, signed long *LONGval)

Variables

static int err
static unsigned char peeked_char
static unsigned char peeked_char_avail = FALSE


Define Documentation

#define DEBUG   0

Definition at line 36 of file linuxser.cpp.

#define INT_REVERSED

Definition at line 276 of file linuxser.cpp.


Function Documentation

char closeserial ( portstream_fd  pt_fd  ) 

Definition at line 112 of file linuxser.cpp.

Referenced by close_host_port().

void do_delay ( long  millisec  ) 

Definition at line 256 of file linuxser.cpp.

Referenced by firmware_version(), firmware_version_OK(), open_host_port(), and reset_PTU_parser().

char FlushInputBuffer ( portstream_fd  pt_fd  ) 

Definition at line 181 of file linuxser.cpp.

Referenced by firmware_version_OK(), and reset_PTU_parser().

char GetSignedLong ( portstream_fd  portstream,
signed long *  LONGval,
long  timeout 
)

Definition at line 342 of file linuxser.cpp.

Referenced by get_current(), and get_desired().

char GetSignedShort ( portstream_fd  portstream,
signed short *  SHORTval,
long  timeout 
)

Definition at line 280 of file linuxser.cpp.

Referenced by get_current(), and get_desired().

char GetUnsignedShort ( portstream_fd  portstream,
unsigned short *  USHORTval,
long  timeout 
)

Definition at line 310 of file linuxser.cpp.

Referenced by get_current(), and get_desired().

portstream_fd openserial ( char *  portname  ) 

Definition at line 49 of file linuxser.cpp.

Referenced by open_host_port().

char PeekByte ( portstream_fd  portstream,
unsigned char *  peekedByte 
)

Definition at line 175 of file linuxser.cpp.

char PutSignedLong ( portstream_fd  portstream,
signed long *  LONGval 
)

Definition at line 359 of file linuxser.cpp.

Referenced by set_desired().

char PutSignedShort ( portstream_fd  portstream,
signed short *  SHORTval 
)

Definition at line 298 of file linuxser.cpp.

Referenced by set_desired().

char PutUnsignedShort ( portstream_fd  portstream,
unsigned short *  USHORTval 
)

Definition at line 329 of file linuxser.cpp.

Referenced by set_desired(), and set_unit_id().

char ReadSerialLine ( portstream_fd  pt_fd,
unsigned char *  strbuffer,
long  timeoutVal,
int *  charsRead 
)

Definition at line 206 of file linuxser.cpp.

Referenced by firmware_version(), and firmware_version_OK().

char SerialBytesIn ( portstream_fd  pt_fd,
unsigned char *  buffer,
unsigned int  nBytes,
long  timeoutVal 
)

Definition at line 134 of file linuxser.cpp.

Referenced by GetSerialChar(), GetSignedLong(), GetSignedShort(), and GetUnsignedShort().

char SerialBytesOut ( portstream_fd  pt_fd,
unsigned char *  buffer,
int  nBytes 
)

Definition at line 121 of file linuxser.cpp.

Referenced by firmware_version_OK(), open_host_port(), PutSignedLong(), PutSignedShort(), PutUnsignedShort(), select_unit(), and SerialOut().

char SerialStringOut ( portstream_fd  pt_fd,
unsigned char *  buffer 
)

Definition at line 187 of file linuxser.cpp.


Variable Documentation

int err [static]

Definition at line 41 of file linuxser.cpp.

Referenced by carmen_serial_readn(), get_current(), get_desired(), WURDECameraFinder::getAllCameras(), WURDE1394Camera::WURDE1394CameraFinder::getCameraByID(), WURDECameraFinder::getCameraByID(), and GetSerialChar().

unsigned char peeked_char [static]

Definition at line 43 of file linuxser.cpp.

unsigned char peeked_char_avail = FALSE [static]

Definition at line 43 of file linuxser.cpp.


Generated on Thu Feb 1 15:31:54 2007 for WURDE by  doxygen 1.5.1