ARPDAS_QNX6 1.0
|
00001 #ifndef HSATOD_H 00002 #define HSATOD_H 00003 00004 /* For QNX6, we don't need to establish a special interface to the driver. 00005 The driver will read ASCII commands from the appropriate interface of 00006 the form /dev/huarp/$Experiment/cmd/$Board. Instead of transmitting 00007 the hsatod_setup_t struct, we will convert to ASCII However, I need 00008 to provide the struct typedef, because that is how qclicomp 00009 communicates with the command server. 00010 00011 Since the communication to the server is handled by cis_turf(), all 00012 we need to do is provide the appropriate command strings. 00013 */ 00014 00015 typedef struct { 00016 unsigned long FSample; 00017 unsigned long NSample; 00018 unsigned long NReport; 00019 unsigned long NAvg; 00020 unsigned short NCoadd; 00021 unsigned short FTrigger; 00022 unsigned short Options; 00023 unsigned long TzSamples; 00024 } hsatod_setup_t; 00025 00026 #define HSAD_OPT_A 1 00027 #define HSAD_OPT_B 2 00028 #define HSAD_OPT_C 4 00029 #define HSAD_TRIG_0 0 00030 #define HSAD_TRIG_1 8 00031 #define HSAD_TRIG_2 0x10 00032 #define HSAD_TRIG_3 0x18 00033 #define HSAD_TRIG_RISING 0x20 00034 #define HSAD_TRIG_AUTO 0x40 00035 #define HSAD_RINGDOWN 0x80 00036 00037 #endif 00038