#include "extintf.h"#include "parport.h"#include "dro.h"Include dependency graph for extsmdromot.c:

Go to the source code of this file.
Defines | |
| #define | __attribute__(x) |
| #define | STEPPER_MAX 6 |
Functions | |
| char | __attribute__ ((unused)) ident[]="$Id |
| int | extMotQuit () |
| int | extDacNum () |
| int | extDacWrite (int dac, double volts) |
| int | extDacWriteAll (int max, double *volts) |
| int | extEncoderSetIndexModel (unsigned int model) |
| int | extEncoderNum () |
| 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 | extAmpEnable (int axis, int enable) |
| int | extAmpFault (int axis, int *fault) |
| int | extMaxLimitSwitchRead (int axis, int *flag) |
| int | extMinLimitSwitchRead (int axis, int *flag) |
| int | extHomeSwitchRead (int axis, int *flag) |
|
|
|
|
|
Definition at line 21 of file extsmdromot.c. |
|
|
Definition at line 25 of file extsmdromot.c. 00025 : extsmdromot.c,v 1.2 2000/10/27 20:34:42 terrylr Exp $";
00026
00027 #define STEPPER_MAX 6 /* can only handle 6 motors */
00028
00029 int extMotInit(const char * stuff)
00030 {
00031 if (0 != pptDioInit(0)) {
00032 return -1;
00033 }
00034
00035 if (0 != LS7266Init()) {
00036 return -1;
00037 }
00038
00039 return 0;
00040 }
|
|
||||||||||||
|
Definition at line 118 of file extsmdromot.c. 00119 {
00120 return 0;
00121 }
|
|
||||||||||||
|
Definition at line 123 of file extsmdromot.c. 00124 {
00125 return 0;
00126 }
|
|
|
Definition at line 47 of file extsmdromot.c. 00048 {
00049 return 0;
00050 }
|
|
||||||||||||
|
Definition at line 52 of file extsmdromot.c. 00053 {
00054 return 0;
00055 }
|
|
||||||||||||
|
Definition at line 57 of file extsmdromot.c. 00058 {
00059 return 0;
00060 }
|
|
|
Definition at line 67 of file extsmdromot.c. 00068 {
00069 return 0;
00070 }
|
|
||||||||||||
|
Definition at line 72 of file extsmdromot.c. 00073 {
00074 if (encoder < 0 ||
00075 encoder >= DRO_MAX) {
00076 *counts = 0.0;
00077 }
00078 else {
00079 *counts = (double) LS7266Read(encoder);
00080 }
00081
00082 return 0;
00083 }
|
|
||||||||||||
|
Definition at line 85 of file extsmdromot.c. 00086 {
00087 int t;
00088
00089 for (t = 0; t < max; t++) {
00090 if (t >= DRO_MAX) {
00091 counts[t] = 0.0;
00092 }
00093 else {
00094 counts[t] = (double) LS7266Read(t);
00095 }
00096 }
00097
00098 return 0;
00099 }
|
|
||||||||||||
|
Definition at line 106 of file extsmdromot.c. 00107 {
00108 *flag = 1; /* always on "index pulse" */
00109
00110 return 0;
00111 }
|
|
||||||||||||
|
Definition at line 113 of file extsmdromot.c. 00114 {
00115 return 0;
00116 }
|
|
|
Definition at line 101 of file extsmdromot.c. 00102 {
00103 return 0;
00104 }
|
|
|
Definition at line 62 of file extsmdromot.c. 00063 {
00064 return 0;
00065 }
|
|
||||||||||||
|
Definition at line 163 of file extsmdromot.c. 00164 {
00165 if (axis < 0 || axis > STEPPER_MAX) {
00166 *flag = 0;
00167 return 0;
00168 }
00169
00170 pptDioRead(2, flag);
00171
00172 return 0;
00173 }
|
|
||||||||||||
|
Definition at line 139 of file extsmdromot.c. 00140 {
00141 if (axis < 0 || axis >= STEPPER_MAX) {
00142 *flag = 0;
00143 return 0;
00144 }
00145
00146 pptDioRead(0, flag);
00147
00148 return 0;
00149 }
|
|
||||||||||||
|
Definition at line 151 of file extsmdromot.c. 00152 {
00153 if (axis < 0 || axis >= STEPPER_MAX) {
00154 *flag = 0;
00155 return 0;
00156 }
00157
00158 pptDioRead(1, flag);
00159
00160 return 0;
00161 }
|
|
|
Definition at line 42 of file extsmdromot.c. 00043 {
00044 return pptDioQuit();
00045 }
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001