Skip to content

Commit

Permalink
Add iocsh binding for bunch clock
Browse files Browse the repository at this point in the history
  • Loading branch information
keenanlang committed Nov 6, 2024
1 parent df65828 commit 6096f2a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions vmeApp/src/devBunchClkGen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,3 +1907,25 @@ struct vmeio* pvmeio = (struct vmeio*)&(pai->inp.value);

} /* specialLinconvAi() */



/* Epics iocsh bindings */

static const iocshArg BCGC_Arg0 = {"card", iocshArgInt};
static const iocshArg BCGC_Arg1 = {"address", iocshArgInt};

static const iocshArg* const BCGC_Args[2] = {&BCGC_Arg0, &BCGC_Arg1};

static const iocshFuncDef BCGC_FuncDef = {"BunchClkGenConfigure", 2, BCGC_Args};

static void BCGCCallFunc(const iocshArgBuf* args)
{
BunchClkGenConfigure(args[0].ival, args[1].ival);
}

void BCGCRegistrar(void)
{
iocshRegister(&BCGC_FuncDef, &BCGCCallFunc);
}

epicsExportRegistrar(BCGCRegistrar);
1 change: 1 addition & 0 deletions vmeApp/src/vmeVXSupport.dbd
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ registrar(AVME9440Registrar)
registrar(vmeTest_Register)
registrar(devHPLaserAxis_Register)
registrar(drvCAEN_v895Register)
registrar(BCGCRegistrar)

0 comments on commit 6096f2a

Please sign in to comment.