- GPIB/ECB modules completed, ecb motor driver in progress
This commit is contained in:
17
obpar.c
17
obpar.c
@ -122,6 +122,23 @@
|
||||
|
||||
return NULL;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int ObParIndex(ObPar *self, char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
assert(self);
|
||||
|
||||
for(i = 0; self[i].iCode != -100; i++)
|
||||
{
|
||||
if(strcmp(name,self[i].name) == 0)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int ObParInit(ObPar *self, int i, char *name, float fVal, int iCode)
|
||||
{
|
||||
|
Reference in New Issue
Block a user