9 #define _POSIX_SOURCE 1
12 typedef int hf2000ParaTypeInteger;
13 typedef float hf2000ParaTypeReal;
15 typedef struct hf2000Info {
18 struct termios prevIO;
34 char* __hf2000CommandList[] = {
35 "*R", /* Initialize */
36 "#Q", /* Specimen Position Get */
37 "#A", /* Absolute Position Set */
38 "#G", /* GO after #A #D #B */
39 "#H", /* Speed down and stop*/
40 "#X", /* Motor Information */
41 "?30", /* C1 Get */ /* Lenz */
49 "?40", /* OS(X) Get */ /* BD Coil */
50 "?41", /* OS(Y) Get */
51 "?42", /* CS(X) Get */
52 "?43", /* CS(Y) Get */
53 "?44", /* IS(X) Get */
54 "?45", /* IS(Y) Get */
55 "?46", /* BT(X) Get */
56 "?47", /* BT(Y) Get */
57 "?48", /* BH(X) Get */
58 "?49", /* BH(Y) Get */
63 extern hf2000Info __hf2000;
64 extern char* __hf2000CommandList[];
67 #define HF2000CMD_Initialize 0
68 #define HF2000CMD_PositionGet 1
69 #define HF2000CMD_PositionSet 2
70 #define HF2000CMD_PositionMove 3
71 #define HF2000CMD_PositionStop 4
72 #define HF2000CMD_PositionMotorInfo 5
73 #define HF2000CMD_C1Get 6
74 #define HF2000CMD_C2Get 7
75 #define HF2000CMD_C3Get 8
76 #define HF2000CMD_OBJGet 9
77 #define HF2000CMD_I1Get 10
78 #define HF2000CMD_I2Get 11
79 #define HF2000CMD_P1Get 12
80 #define HF2000CMD_P2Get 13
81 #define HF2000CMD_OSXGet 14
82 #define HF2000CMD_OSYGet 15
83 #define HF2000CMD_CSXGet 16
84 #define HF2000CMD_CSYGet 17
85 #define HF2000CMD_ISXGet 18
86 #define HF2000CMD_ISYGet 19
87 #define HF2000CMD_BTXGet 18
88 #define HF2000CMD_BTYGet 19
89 #define HF2000CMD_BHXGet 20
90 #define HF2000CMD_BHYGet 21
94 extern void hf2000Init(hf2000Info* info);
95 extern void hf2000Close(hf2000Info* info);
96 extern void hf2000Read(hf2000Info* info, char* s);
97 extern void hf2000Write(hf2000Info* info, char* s);
98 extern void hf2000Command(hf2000Info* info, char* command, char* result);
102 /* prototype begin */
103 extern int hf2000_TclAppInit(Tcl_Interp * interp);