|
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 |
|
) |
|
|
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
The documentation for this class was generated from the following files:
Generated on Tue May 3 14:15:51 2005 for Player by 1.3.6
|