vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fsPinchGlove.h File Reference
#include <map>
#include <iostream>
#include <vrecko/Device.h>
#include <vrecko/IOPins.h>

Go to the source code of this file.

Classes

struct  vreckoDP_base::dataT
 
class  vreckoDP_base::fsPinchGlove
 

Namespaces

namespace  vreckoDP_base
 

Macros

#define STARTBYTE   (char)0x80 /* Start - hand data only */
 
#define STARTTBYTE   (char)0x81 /* Start - hand data & Time stamps */
 
#define STARTXBYTE   (char)0x82 /* Start - text or ACK */
 
#define ENDBYTE   (char)0x8F /* End of a message */
 
#define CONNECTBYTE   (char)0x87 /* Opent the connection */
 
#define CLOSEBYTE   (char)0x88 /* Close the connection */
 
#define DEF_PGI_PORT   6666 /* Default TCP port */
 
#define DEF_PGI_SERIAL   "/dev/ttyS1" /* Default serial port */
 
#define PGI_MAX_PACKET_LEN   14
 
#define L_THUMB   (int)0x0010
 
#define L_INDEX   (int)0x0008
 
#define L_MIDDLE   (int)0x0004
 
#define L_RING   (int)0x0002
 
#define L_PINKIE   (int)0x0001
 
#define R_THUMB   (int)0x0010
 
#define R_INDEX   (int)0x0008
 
#define R_MIDDLE   (int)0x0004
 
#define R_RING   (int)0x0002
 
#define R_PINKIE   (int)0x0001
 
#define OK   1
 
#define ERR   -1
 
#define YES   1
 
#define NO   0
 
#define if_ok(param)   if( ( param ) == OK )
 
#define if_notok(param)   if( ( param ) != OK )
 
#define if_err(param)   if( ( param ) < 0 )
 
#define if_null(param)   if( ( param ) == NULL )
 
#define if_nonull(param)   if( ( param ) != NULL )
 

Macro Definition Documentation

#define CLOSEBYTE   (char)0x88 /* Close the connection */
#define CONNECTBYTE   (char)0x87 /* Opent the connection */
#define DEF_PGI_PORT   6666 /* Default TCP port */
#define DEF_PGI_SERIAL   "/dev/ttyS1" /* Default serial port */
#define ENDBYTE   (char)0x8F /* End of a message */
#define ERR   -1
#define if_err (   param)    if( ( param ) < 0 )
#define if_nonull (   param)    if( ( param ) != NULL )
#define if_notok (   param)    if( ( param ) != OK )
#define if_null (   param)    if( ( param ) == NULL )
#define if_ok (   param)    if( ( param ) == OK )
#define L_INDEX   (int)0x0008
#define L_MIDDLE   (int)0x0004
#define L_PINKIE   (int)0x0001
#define L_RING   (int)0x0002
#define L_THUMB   (int)0x0010
#define NO   0
#define OK   1
#define PGI_MAX_PACKET_LEN   14
#define R_INDEX   (int)0x0008
#define R_MIDDLE   (int)0x0004
#define R_PINKIE   (int)0x0001
#define R_RING   (int)0x0002
#define R_THUMB   (int)0x0010
#define STARTBYTE   (char)0x80 /* Start - hand data only */
#define STARTTBYTE   (char)0x81 /* Start - hand data & Time stamps */
#define STARTXBYTE   (char)0x82 /* Start - text or ACK */
#define YES   1