Added optional "GetDriverTextPar" function to allow fetching of text parameters (eg units) from motor drivers.

See SICS-10 on Jira.

r1677 | ffr | 2007-03-20 11:22:10 +1100 (Tue, 20 Mar 2007) | 3 lines
This commit is contained in:
Ferdi Franceschini
2007-03-20 11:22:10 +11:00
committed by Douglas Clowes
parent 86f584ea45
commit 537204f2e2

View File

@@ -14,6 +14,7 @@
#define MOTREDO -1
#define MOTFAIL 0
#define MOTOK 1
#define TEXTPARLEN 1024
typedef struct __AbstractMoDriv {
/* general motor driver interface
@@ -35,6 +36,8 @@
void (*ListDriverPar)(void *self, char *motorName,
SConnection *pCon);
void (*KillPrivate)(void *self);
int (*GetDriverTextPar)(void *self, char *name,
char *textPar);
} MotorDriver;
/* the first fields above HAVE to be IDENTICAL to those below */