#include "extintf.h"
#include "stg.h"
Include dependency graph for extstgmot.c:
Go to the source code of this file.
Functions | |
char | __attribute__ ((unused)) ident[]="$Id |
int | extMotQuit (void) |
int | extDacNum (void) |
int | extDacWrite (int dac, double volts) |
int | extDacWriteAll (int max, double *volts) |
int | extEncoderSetIndexModel (unsigned int model) |
int | extEncoderNum (void) |
int | extEncoderRead (int encoder, double *counts) |
int | extEncoderReadAll (int max, double *counts) |
int | extEncoderResetIndex (int encoder) |
int | extEncoderReadLatch (int encoder, int *flag) |
int | extEncoderReadLevel (int encoder, int *flag) |
int | extMaxLimitSwitchRead (int axis, int *flag) |
int | extMinLimitSwitchRead (int axis, int *flag) |
int | extHomeSwitchRead (int axis, int *flag) |
int | extAmpEnable (int axis, int enable) |
int | extAmpFault (int axis, int *fault) |
int | extDioInit (const char *stuff) |
int | extDioQuit (void) |
int | extDioMaxInputs (void) |
int | extDioMaxOutputs (void) |
int | extDioRead (int index, int *value) |
int | extDioWrite (int index, int value) |
int | extDioCheck (int index, int *value) |
int | extDioByteRead (int index, unsigned char *byte) |
int | extDioShortRead (int index, unsigned short *sh) |
int | extDioWordRead (int index, unsigned int *word) |
int | extDioByteWrite (int index, unsigned char byte) |
int | extDioShortWrite (int index, unsigned short sh) |
int | extDioWordWrite (int index, unsigned int word) |
int | extDioByteCheck (int index, unsigned char *byte) |
int | extDioShortCheck (int index, unsigned short *sh) |
int | extDioWordCheck (int index, unsigned int *word) |
int | extAioInit (const char *stuff) |
int | extAioQuit (void) |
int | extAioMaxInputs (void) |
int | extAioMaxOutputs (void) |
int | extAioStart (int index) |
void | extAioWait (void) |
int | extAioRead (int index, double *volts) |
int | extAioWrite (int index, double volts) |
int | extAioCheck (int index, double *volts) |
|
Definition at line 24 of file extstgmot.c. 00024 : extstgmot.c,v 1.3 2001/08/02 21:02:40 proctor Exp $"; 00025 00026 /* Uncomment any of the following declarations to inhibit 00027 the use of home switches or index pulses when homing, or to 00028 ignore limit switches if you don't have them. */ 00029 00030 /* Uncomment NO_HOME_SWITCH if you want homing sequence to 00031 ignore the home switch, and only use the index pulse for homing. 00032 This has the effect of making the home switches always appear tripped. */ 00033 /* #define NO_HOME_SWITCH */ 00034 00035 /* Uncomment NO_INDEX_PULSE if you want homing sequence to 00036 ignore the index pulse, and only use the home switch for homing. 00037 This has the effect of making the index pulse always appear present. */ 00038 /* #define NO_INDEX_PULSE */ 00039 00040 /* Uncomment NO_LIMIT_SWITCH if you don't have limit switches. 00041 This has the effect of making the positive and negative travel 00042 limit switches never appear tripped. */ 00043 /* #define NO_LIMIT_SWITCH */ 00044 00045 int extMotInit(const char * stuff) 00046 { 00047 return stgMotInit(stuff); 00048 } |
|
Definition at line 270 of file extstgmot.c. 00271 { 00272 return stgAioCheck(index, volts); 00273 } |
|
Definition at line 230 of file extstgmot.c. Referenced by init_module().
00231 { 00232 return stgAioInit(stuff); 00233 } |
|
Definition at line 240 of file extstgmot.c. 00241 { 00242 return stgAioMaxInputs(); 00243 } |
|
Definition at line 245 of file extstgmot.c. 00246 { 00247 return stgAioMaxOutputs(); 00248 } |
|
Definition at line 235 of file extstgmot.c. 00236 { 00237 return stgAioQuit(); 00238 } |
|
Definition at line 260 of file extstgmot.c. 00261 { 00262 return stgAioRead(index, volts); 00263 } |
|
Definition at line 250 of file extstgmot.c. 00251 { 00252 return stgAioStart(index); 00253 } |
|
Definition at line 255 of file extstgmot.c. 00256 { 00257 stgAioWait(); 00258 } |
|
Definition at line 265 of file extstgmot.c. 00266 { 00267 return stgAioWrite(index, volts); 00268 } |
|
Definition at line 140 of file extstgmot.c. 00141 { 00142 return stgAmpEnable(axis, enable); 00143 } |
|
Definition at line 145 of file extstgmot.c. 00146 { 00147 return stgAmpFault(axis, fault); 00148 } |
|
Definition at line 55 of file extstgmot.c. 00056 { 00057 return stgDacNum(); 00058 } |
|
Definition at line 60 of file extstgmot.c. 00061 { 00062 return stgDacWrite(dac, volts); 00063 } |
|
Definition at line 65 of file extstgmot.c. 00066 { 00067 return stgDacWriteAll(max, volts); 00068 } |
|
Definition at line 215 of file extstgmot.c. 00216 { 00217 return stgDioByteCheck(index, byte); 00218 } |
|
Definition at line 185 of file extstgmot.c. 00186 { 00187 return stgDioByteRead(index, byte); 00188 } |
|
Definition at line 200 of file extstgmot.c. 00201 { 00202 return stgDioByteWrite(index, byte); 00203 } |
|
Definition at line 180 of file extstgmot.c. 00181 { 00182 return stgDioCheck(index, value); 00183 } |
|
Definition at line 150 of file extstgmot.c. Referenced by init_module(), and main().
00151 { 00152 return stgDioInit(stuff); 00153 } |
|
Definition at line 160 of file extstgmot.c. 00161 { 00162 return stgDioMaxInputs(); 00163 } |
|
Definition at line 165 of file extstgmot.c. 00166 { 00167 return stgDioMaxOutputs(); 00168 } |
|
Definition at line 155 of file extstgmot.c. 00156 { 00157 return stgDioQuit(); 00158 } |
|
Definition at line 170 of file extstgmot.c. 00171 { 00172 return stgDioRead(index, value); 00173 } |
|
Definition at line 220 of file extstgmot.c. 00221 { 00222 return stgDioShortCheck(index, sh); 00223 } |
|
Definition at line 190 of file extstgmot.c. 00191 { 00192 return stgDioShortRead(index, sh); 00193 } |
|
Definition at line 205 of file extstgmot.c. 00206 { 00207 return stgDioShortWrite(index, sh); 00208 } |
|
Definition at line 225 of file extstgmot.c. 00226 { 00227 return stgDioWordCheck(index, word); 00228 } |
|
Definition at line 195 of file extstgmot.c. 00196 { 00197 return stgDioWordRead(index, word); 00198 } |
|
Definition at line 210 of file extstgmot.c. 00211 { 00212 return stgDioWordWrite(index, word); 00213 } |
|
Definition at line 175 of file extstgmot.c. 00176 { 00177 return stgDioWrite(index, value); 00178 } |
|
Definition at line 75 of file extstgmot.c. 00076 { 00077 return stgEncoderNum(); 00078 } |
|
Definition at line 80 of file extstgmot.c. 00081 { 00082 return stgEncoderRead(encoder, counts); 00083 } |
|
Definition at line 85 of file extstgmot.c. 00086 { 00087 return stgEncoderReadAll(max, counts); 00088 } |
|
Definition at line 95 of file extstgmot.c. 00096 { 00097 #ifdef NO_INDEX_PULSE 00098 *flag = 1; 00099 return 0; 00100 #else 00101 return stgEncoderReadLatch(encoder, flag); 00102 #endif 00103 } |
|
Definition at line 105 of file extstgmot.c. 00106 { 00107 return stgEncoderReadLevel(encoder, flag); 00108 } |
|
Definition at line 90 of file extstgmot.c. 00091 { 00092 return stgEncoderResetIndex(encoder); 00093 } |
|
Definition at line 70 of file extstgmot.c. 00071 { 00072 return stgEncoderSetIndexModel(model); 00073 } |
|
Definition at line 130 of file extstgmot.c. 00131 { 00132 #ifdef NO_HOME_SWITCH 00133 *flag = 1; 00134 return 0; 00135 #else 00136 return stgHomeSwitchRead(axis, flag); 00137 #endif 00138 } |
|
Definition at line 110 of file extstgmot.c. 00111 { 00112 #ifdef NO_LIMIT_SWITCH 00113 *flag = 0; 00114 return 0; 00115 #else 00116 return stgMaxLimitSwitchRead(axis, flag); 00117 #endif 00118 } |
|
Definition at line 120 of file extstgmot.c. 00121 { 00122 #ifdef NO_LIMIT_SWITCH 00123 *flag = 0; 00124 return 0; 00125 #else 00126 return stgMinLimitSwitchRead(axis, flag); 00127 #endif 00128 } |
|
Definition at line 50 of file extstgmot.c. 00051 { 00052 return stgMotQuit(); 00053 } |