Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

KheperaSerial Class Reference

#include <khepera_serial.h>

List of all members.

Public Member Functions

 KheperaSerial (char *port, int rate=KHEPERA_DEFAULT_BAUD)
 ~KheperaSerial ()
bool Open ()
int KheperaCommand (char command, int InCount, int *InValues, int OutCount, int *OutValues)
void Lock ()
void Unlock ()

Protected Member Functions

int WriteInts (char command, int Count=0, int *Values=NULL)
int ReadInts (char Header, int Count=0, int *Values=NULL)

Protected Attributes

int fd
termios oldtio
char buffer [KHEPERA_BUFFER_LEN+1]
pthread_mutex_t lock


Constructor & Destructor Documentation

KheperaSerial::KheperaSerial (  char *  port,
int  rate = KHEPERA_DEFAULT_BAUD
) 
 

KheperaSerial::~KheperaSerial (   ) 
 


Member Function Documentation

bool KheperaSerial::Open (   )  [inline]
 

int KheperaSerial::KheperaCommand (  char  command,
int  InCount,
int *  InValues,
int  OutCount,
int *  OutValues
) 
 

void KheperaSerial::Lock (   ) 
 

void KheperaSerial::Unlock (   ) 
 

int KheperaSerial::WriteInts (  char  command,
int  Count = 0,
int *  Values = NULL
)  [protected]
 

int KheperaSerial::ReadInts (  char  Header,
int  Count = 0,
int *  Values = NULL
)  [protected]
 


Member Data Documentation

int KheperaSerial::fd [protected]
 

struct termios KheperaSerial::oldtio [protected]
 

char KheperaSerial::buffer[KHEPERA_BUFFER_LEN+1] [protected]
 

pthread_mutex_t KheperaSerial::lock [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue May 3 14:15:51 2005 for Player by doxygen 1.3.6