devLib2  2.11
iocreg.c
Go to the documentation of this file.
1 
2 #include <iocsh.h>
3 #include <epicsExport.h>
4 
5 #include "devcsr.h"
6 
7 /* vmecsrprint */
8 static const iocshArg vmecsrprintArg0 = { "slot (1-31)",iocshArgInt};
9 static const iocshArg vmecsrprintArg1 = { "verbosity (>=0)",iocshArgInt};
10 static const iocshArg * const vmecsrprintArgs[2] =
11  {&vmecsrprintArg0,&vmecsrprintArg1};
12 static const iocshFuncDef vmecsrprintFuncDef =
13  {"vmecsrprint",2,vmecsrprintArgs};
14 
15 static
16 void vmecsrprintCall(const iocshArgBuf *arg)
17 {
18  vmecsrprint(arg[0].ival,arg[1].ival);
19 }
20 
21 /* vmecsrdump */
22 static const iocshArg vmecsrdumpArg0 = { "verbosity (>=0)",iocshArgInt};
23 static const iocshArg * const vmecsrdumpArgs[1] =
24  {&vmecsrdumpArg0};
25 static const iocshFuncDef vmecsrdumpFuncDef =
26  {"vmecsrdump",1,vmecsrdumpArgs};
27 
28 static
29 void vmecsrdumpCall(const iocshArgBuf *arg)
30 {
31  vmecsrdump(arg[0].ival);
32 }
33 
34 static
35 void vmecsr(void)
36 {
37  iocshRegister(&vmecsrprintFuncDef,vmecsrprintCall);
38  iocshRegister(&vmecsrdumpFuncDef,vmecsrdumpCall);
39 }
40 epicsExportRegistrar(vmecsr);
void vmecsrprint(int N, int v)
Decode contents of CSR/CR and print to screen.
Definition: devcsr.c:119
epicsExportRegistrar(vmecsr)
void vmecsrdump(int v)
Decode contents of CSR/CR for all cards and print to screen.
Definition: devcsr.c:233