Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

extsimmot.c File Reference

#include "extintf.h"
#include "sim.h"
#include "emcmotglb.h"

Include dependency graph for extsimmot.c:

Include dependency graph

Go to the source code of this file.

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 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)


Function Documentation

char __attribute__ (unused)    [static]
 

Definition at line 29 of file extsimmot.c.

00029                                                   : extsimmot.c,v 1.2 2000/10/27 20:34:42 terrylr Exp $";
00030 
00031 int extMotInit(const char * stuff)
00032 {
00033   /* pass the name of the ini file here */
00034   return simMotInit(EMCMOT_INIFILE);
00035 }

int extAmpEnable int    axis,
int    enable
 

Definition at line 107 of file extsimmot.c.

Referenced by cleanup_module(), emcmotCommandHandler(), emcmotController(), and init_module().

00108 {
00109   return simAmpEnable(axis, enable);
00110 }

int extAmpFault int    axis,
int *    fault
 

Definition at line 112 of file extsimmot.c.

Referenced by emcmotController().

00113 {
00114   return simAmpFault(axis, fault);
00115 }

int extDacNum void   
 

Definition at line 42 of file extsimmot.c.

00043 {
00044   return simDacNum();
00045 }

int extDacWrite int    dac,
double    volts
 

Definition at line 47 of file extsimmot.c.

00048 {
00049   return simDacWrite(dac, volts);
00050 }

int extDacWriteAll int    max,
double *    volts
 

Definition at line 52 of file extsimmot.c.

Referenced by emcmotController().

00053 {
00054   return simDacWriteAll(max, volts);
00055 }

int extEncoderNum void   
 

Definition at line 62 of file extsimmot.c.

00063 {
00064   return simEncoderNum();
00065 }

int extEncoderRead int    encoder,
double *    counts
 

Definition at line 67 of file extsimmot.c.

00068 {
00069   return simEncoderRead(encoder, counts);
00070 }

int extEncoderReadAll int    max,
double *    counts
 

Definition at line 72 of file extsimmot.c.

Referenced by emcmotController().

00073 {
00074   return simEncoderReadAll(max, counts);
00075 }

int extEncoderReadLatch int    encoder,
int *    flag
 

Definition at line 82 of file extsimmot.c.

Referenced by emcmotController().

00083 {
00084   return simEncoderReadLatch(encoder, flag);
00085 }

int extEncoderReadLevel int    encoder,
int *    flag
 

Definition at line 87 of file extsimmot.c.

00088 {
00089   return simEncoderReadLevel(encoder, flag);
00090 }

int extEncoderResetIndex int    encoder
 

Definition at line 77 of file extsimmot.c.

Referenced by emcmotController().

00078 {
00079   return simEncoderResetIndex(encoder);
00080 }

int extEncoderSetIndexModel unsigned int    model
 

Definition at line 57 of file extsimmot.c.

Referenced by init_module().

00058 {
00059   return simEncoderSetIndexModel(model);
00060 }

int extHomeSwitchRead int    axis,
int *    flag
 

Definition at line 102 of file extsimmot.c.

Referenced by emcmotController().

00103 {
00104   return simHomeSwitchRead(axis, flag);
00105 }

int extMaxLimitSwitchRead int    axis,
int *    flag
 

Definition at line 92 of file extsimmot.c.

Referenced by emcmotController().

00093 {
00094   return simMaxLimitSwitchRead(axis, flag);
00095 }

int extMinLimitSwitchRead int    axis,
int *    flag
 

Definition at line 97 of file extsimmot.c.

Referenced by emcmotController().

00098 {
00099   return simMinLimitSwitchRead(axis, flag);
00100 }

int extMotQuit void   
 

Definition at line 37 of file extsimmot.c.

00038 {
00039   return simMotQuit();
00040 }


Generated on Sun Dec 2 15:28:04 2001 for EMC by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001