vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Hci Class Reference

#include <hci.h>

Public Member Functions

void init (const char *port)
 
hci_result connect ()
 
void disconnect ()
 
hci_result getStrings ()
 
hci_result autosynch ()
 
hci_result begin ()
 
void end ()
 
void clearPacket ()
 
void comParams (const char *port)
 
void fastTimeout ()
 
void slowTimeout ()
 
void stdCmd (int timer_flag, int analog_reports, int encoder_reports)
 
void simpleCfgCmd (byte cmnd)
 
hci_result stringCmd (byte cmnd)
 
hci_result getParams (byte *block, int *block_size)
 
hci_result getExtParams (byte *block, int *block_size)
 
hci_result goHomePos ()
 
hci_result getMaxes ()
 
hci_result waitPacket ()
 
hci_result checkPacket (int checkType)
 
hci_result buildPacket (int checkTYpe)
 
hci_result parsePacket ()
 
hci_result parseCfgPacket ()
 
hci_result readString (char *str)
 
hci_result readBlock (byte *block, int *bytes_read)
 
void invalidateFields ()
 
hci_result error (hci_result condition)
 
hci_result simpleString (hci_result condition)
 

Public Attributes

char serial_number [MAX_STRING_SIZE]
 
char product_name [MAX_STRING_SIZE]
 
char product_id [MAX_STRING_SIZE]
 
char model_name [MAX_STRING_SIZE]
 
char comment [MAX_STRING_SIZE]
 
char param_format [MAX_STRING_SIZE]
 
char version [MAX_STRING_SIZE]
 
int buttons
 
int button [NUM_BUTTONS]
 
long timer
 
int analog [NUM_ANALOGS]
 
int encoder [NUM_ENCODERS]
 
int timer_updated
 
int analog_updated [NUM_ANALOGS]
 
int encoder_updated [NUM_ENCODERS]
 
int button_supported [NUM_BUTTONS]
 
int max_timer
 
int max_analog [NUM_ANALOGS]
 
int max_encoder [NUM_ENCODERS]
 
hci_result(* BAD_PORT_handler )(hci_result condition)
 
hci_result(* CANT_OPEN_handler )(hci_result condition)
 
hci_result(* NO_HCI_handler )(hci_result condition)
 
hci_result(* CANT_BEGIN_handler )(hci_result condition)
 
hci_result(* TIMED_OUT_handler )(hci_result condition)
 
hci_result(* BAD_PACKET_handler )(hci_result condition)
 
hci_result(* BAD_PASSWORD_handler )(hci_result condition)
 
hci_result(* BAD_VERSION_handler )(hci_result condition)
 
hci_result(* BAD_FORMAT_handler )(hci_result condition)
 
hci_result(* default_handler )()
 

Member Function Documentation

hci_result Hci::autosynch ( )
hci_result Hci::begin ( )
hci_result Hci::buildPacket ( int  checkTYpe)
hci_result Hci::checkPacket ( int  checkType)
void Hci::clearPacket ( )
void Hci::comParams ( const char *  port)
hci_result Hci::connect ( )
void Hci::disconnect ( )
void Hci::end ( )
hci_result Hci::error ( hci_result  condition)
void Hci::fastTimeout ( )
hci_result Hci::getExtParams ( byte block,
int *  block_size 
)
hci_result Hci::getMaxes ( )
hci_result Hci::getParams ( byte block,
int *  block_size 
)
hci_result Hci::getStrings ( )
hci_result Hci::goHomePos ( )
void Hci::init ( const char *  port)
void Hci::invalidateFields ( )
hci_result Hci::parseCfgPacket ( )
hci_result Hci::parsePacket ( )
hci_result Hci::readBlock ( byte block,
int *  bytes_read 
)
hci_result Hci::readString ( char *  str)
void Hci::simpleCfgCmd ( byte  cmnd)
hci_result Hci::simpleString ( hci_result  condition)
void Hci::slowTimeout ( )
void Hci::stdCmd ( int  timer_flag,
int  analog_reports,
int  encoder_reports 
)
hci_result Hci::stringCmd ( byte  cmnd)
hci_result Hci::waitPacket ( )

Member Data Documentation

int Hci::analog[NUM_ANALOGS]
int Hci::analog_updated[NUM_ANALOGS]
hci_result(* Hci::BAD_FORMAT_handler)(hci_result condition)
hci_result(* Hci::BAD_PACKET_handler)(hci_result condition)
hci_result(* Hci::BAD_PASSWORD_handler)(hci_result condition)
hci_result(* Hci::BAD_PORT_handler)(hci_result condition)
hci_result(* Hci::BAD_VERSION_handler)(hci_result condition)
int Hci::button[NUM_BUTTONS]
int Hci::button_supported[NUM_BUTTONS]
int Hci::buttons
hci_result(* Hci::CANT_BEGIN_handler)(hci_result condition)
hci_result(* Hci::CANT_OPEN_handler)(hci_result condition)
char Hci::comment[MAX_STRING_SIZE]
hci_result(* Hci::default_handler)()
int Hci::encoder[NUM_ENCODERS]
int Hci::encoder_updated[NUM_ENCODERS]
int Hci::max_analog[NUM_ANALOGS]
int Hci::max_encoder[NUM_ENCODERS]
int Hci::max_timer
char Hci::model_name[MAX_STRING_SIZE]
hci_result(* Hci::NO_HCI_handler)(hci_result condition)
char Hci::param_format[MAX_STRING_SIZE]
char Hci::product_id[MAX_STRING_SIZE]
char Hci::product_name[MAX_STRING_SIZE]
char Hci::serial_number[MAX_STRING_SIZE]
hci_result(* Hci::TIMED_OUT_handler)(hci_result condition)
long Hci::timer
int Hci::timer_updated
char Hci::version[MAX_STRING_SIZE]

The documentation for this class was generated from the following files: