Eaagles::DeviceIO::BGDevice Class Reference

Inherits Eaagles::DeviceIO::ThreadedDevice.

Inheritance diagram for Eaagles::DeviceIO::BGDevice:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::DeviceIO::BGDevice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BGDevice (void)
 BGDevice (char *port)
virtual bool open (void)
virtual void receive (void)

Private Types

enum  {
  FLYBOX = 1, BEEBOX = 2, CEREALBOX = 3, CAB = 4,
  DRIVEBOX = 5
}
enum  { FB_NOBLOCK = 1, FB_BLOCK = 2 }
enum  {
  AIC1 = 0x01, AIC2 = 0x02, AIC3 = 0x04, AIC4 = 0x08,
  AIC5 = 0x10, AIC6 = 0x20, AIC7 = 0x40, AIC8 = 0x80
}
enum  { AOC1 = 0x01, AOC2 = 0x02, AOC3 = 0x04 }
enum  {
  AOC4 = 0x08, AOC5 = 0x10, AOC6 = 0x20, AOC7 = 0x40,
  AOC8 = 0x80
}
enum  { DIC1 = 0x10, DIC2 = 0x20, DIC3 = 0x40 }
enum  {
  MD16 = 0x10, MD32 = 0x20, MD48 = 0x30, MD56 = 0x40,
  MD64 = 0x50, MD80 = 0x60, MD96 = 0x70, MD112 = 0x80
}
enum  { MPDIG = 0x08 }
enum  { MP112i = 0x00, MP112o = 0x10, MP56io = 0x20 }
enum  { ENC4 = 0x01, ENC8 = 0x02 }
enum  { DOC1 = 0x10, DOC2 = 0x20, DOC3 = 0x40 }
enum  {
  BAUD1152 = 0x10, BAUD576 = 0x70, BAUD384 = 0x60, BAUD192 = 0x50,
  BAUD96 = 0x40, BAUD48 = 0x30, BAUD24 = 0x20
}
enum  { OFFSET = 0x21 }
enum  {
  BURST = 'B', BURST_SET = 'b', CONFIG = 'c', CONT = 'C',
  DEFAULT = 'd', PACKET = 'p', ONCE = 'o', ONCE_CS = 'O',
  RESET_FB = 'r', RESET_FB_O = 'R', STOP = 'S', SETUP = 's',
  TEST1 = 'T', TEST2 = 't'
}
typedef Eaagles::DeviceIO::BGDevice::rs_struct_new RS_ERR
typedef Eaagles::DeviceIO::BGDevice::REVISION revision
typedef Eaagles::DeviceIO::BGDevice::BGLV_STRUCT bglv

Private Member Functions

bool open_lv (bglv *, char *)
bool set_baud (int)
void close_lv (bglv *)
int check_rev (bglv *)
int parse_year (char *s)
int check_setup (bglv *)
void no_answer (void)
int send_outputs (bglv *)
int check_inputs (bglv *)
int r_lv (bglv *)
int w_lv (int, char *)
int get_ack (int)
int r_cs (bglv *, char *)
void check_4_encoders (bglv *)
int init_lv (bglv *)
void compute_channels (bglv *)
int convert_serial (bglv *, char *)
int pack_data (bglv *, char *)
int pack_encoders (bglv *, char *, int *)
int unpack_encoders (bglv *, char *, int)
bool prompt (void)

Private Attributes

char deviceName [50]
bool deviceOpened
RS_ERR rs_err
bglv bgdata

Classes

struct  BGLV_STRUCT
struct  REVISION
struct  rs_struct_new

Member Typedef Documentation

typedef struct Eaagles::DeviceIO::BGDevice::rs_struct_new Eaagles::DeviceIO::BGDevice::RS_ERR [private]

typedef struct Eaagles::DeviceIO::BGDevice::REVISION Eaagles::DeviceIO::BGDevice::revision [private]

typedef struct Eaagles::DeviceIO::BGDevice::BGLV_STRUCT Eaagles::DeviceIO::BGDevice::bglv [private]


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
FLYBOX 
BEEBOX 
CEREALBOX 
CAB 
DRIVEBOX 

anonymous enum [private]

Enumerator:
FB_NOBLOCK 
FB_BLOCK 

anonymous enum [private]

Enumerator:
AIC1 
AIC2 
AIC3 
AIC4 
AIC5 
AIC6 
AIC7 
AIC8 

anonymous enum [private]

Enumerator:
AOC1 
AOC2 
AOC3 

anonymous enum [private]

Enumerator:
AOC4 
AOC5 
AOC6 
AOC7 
AOC8 

anonymous enum [private]

Enumerator:
DIC1 
DIC2 
DIC3 

anonymous enum [private]

Enumerator:
MD16 
MD32 
MD48 
MD56 
MD64 
MD80 
MD96 
MD112 

anonymous enum [private]

Enumerator:
MPDIG 

anonymous enum [private]

Enumerator:
MP112i 
MP112o 
MP56io 

anonymous enum [private]

Enumerator:
ENC4 
ENC8 

anonymous enum [private]

Enumerator:
DOC1 
DOC2 
DOC3 

anonymous enum [private]

Enumerator:
BAUD1152 
BAUD576 
BAUD384 
BAUD192 
BAUD96 
BAUD48 
BAUD24 

anonymous enum [private]

Enumerator:
OFFSET 

anonymous enum [private]

Enumerator:
BURST 
BURST_SET 
CONFIG 
CONT 
DEFAULT 
PACKET 
ONCE 
ONCE_CS 
RESET_FB 
RESET_FB_O 
STOP 
SETUP 
TEST1 
TEST2 


Constructor & Destructor Documentation

Eaagles::DeviceIO::BGDevice::BGDevice ( void   ) 

Eaagles::DeviceIO::BGDevice::BGDevice ( char *  port  ) 


Member Function Documentation

bool Eaagles::DeviceIO::BGDevice::open ( void   )  [virtual]

device specific methods to be implemented in derived class

Implements Eaagles::DeviceIO::IODevice.

void Eaagles::DeviceIO::BGDevice::receive ( void   )  [virtual]

Implements Eaagles::DeviceIO::IODevice.

bool Eaagles::DeviceIO::BGDevice::open_lv ( bglv ,
char *   
) [private]

bool Eaagles::DeviceIO::BGDevice::set_baud ( int   )  [private]

void Eaagles::DeviceIO::BGDevice::close_lv ( bglv  )  [private]

int Eaagles::DeviceIO::BGDevice::check_rev ( bglv  )  [private]

int Eaagles::DeviceIO::BGDevice::parse_year ( char *  s  )  [private]

int Eaagles::DeviceIO::BGDevice::check_setup ( bglv  )  [private]

void Eaagles::DeviceIO::BGDevice::no_answer ( void   )  [private]

int Eaagles::DeviceIO::BGDevice::send_outputs ( bglv  )  [private]

int Eaagles::DeviceIO::BGDevice::check_inputs ( bglv  )  [private]

int Eaagles::DeviceIO::BGDevice::r_lv ( bglv  )  [private]

int Eaagles::DeviceIO::BGDevice::w_lv ( int  ,
char *   
) [private]

int Eaagles::DeviceIO::BGDevice::get_ack ( int   )  [private]

int Eaagles::DeviceIO::BGDevice::r_cs ( bglv ,
char *   
) [private]

void Eaagles::DeviceIO::BGDevice::check_4_encoders ( bglv  )  [private]

int Eaagles::DeviceIO::BGDevice::init_lv ( bglv  )  [private]

void Eaagles::DeviceIO::BGDevice::compute_channels ( bglv  )  [private]

int Eaagles::DeviceIO::BGDevice::convert_serial ( bglv ,
char *   
) [private]

int Eaagles::DeviceIO::BGDevice::pack_data ( bglv ,
char *   
) [private]

int Eaagles::DeviceIO::BGDevice::pack_encoders ( bglv ,
char *  ,
int *   
) [private]

int Eaagles::DeviceIO::BGDevice::unpack_encoders ( bglv ,
char *  ,
int   
) [private]

bool Eaagles::DeviceIO::BGDevice::prompt ( void   )  [private]


Member Data Documentation

char Eaagles::DeviceIO::BGDevice::deviceName[50] [private]

bool Eaagles::DeviceIO::BGDevice::deviceOpened [private]

RS_ERR Eaagles::DeviceIO::BGDevice::rs_err [private]

bglv Eaagles::DeviceIO::BGDevice::bgdata [private]


Generated on Tue Dec 19 16:26:58 2006 for Eaagles by  doxygen 1.5.0