- Added Sycamore protocol and command context to SICS
- Added sinfo to SICS - Added driver for TCP/IP Astrium velocity selector - Added driver for TCP/IP Astrium chopper controller
This commit is contained in:
@@ -53,7 +53,8 @@ typedef struct {
|
||||
static void PoldiUpdate(pPolterdi self, SConnection *pCon);
|
||||
|
||||
/*------------------ The Countstart Callback Function ----------------------*/
|
||||
static int Countstartcallback(int iEvent, void *pEventData, void *pUser)
|
||||
static int Countstartcallback(int iEvent, void *pEventData, void *pUser,
|
||||
commandContext cc)
|
||||
{
|
||||
pPolterdi self = NULL;
|
||||
|
||||
@@ -71,7 +72,8 @@ typedef struct {
|
||||
return 1;
|
||||
}
|
||||
/*------------------ The Countend Callback Function ----------------------*/
|
||||
static int Countendcallback(int iEvent, void *pEventData, void *pUser)
|
||||
static int Countendcallback(int iEvent, void *pEventData, void *pUser,
|
||||
commandContext cc)
|
||||
{
|
||||
pPolterdi self = NULL;
|
||||
|
||||
@@ -665,6 +667,7 @@ int PolterInstall(SConnection *pCon, SicsInterp *pSics,
|
||||
pICallBack pCall = NULL;
|
||||
pDummy pDum;
|
||||
pHistMem pHist = NULL;
|
||||
commandContext comCon;
|
||||
|
||||
/* configure fortify */
|
||||
/*
|
||||
@@ -711,8 +714,10 @@ int PolterInstall(SConnection *pCon, SicsInterp *pSics,
|
||||
KillPolterdi(pNew);
|
||||
return 0;
|
||||
}
|
||||
RegisterCallback(pCall,COUNTSTART,Countstartcallback,pNew,NULL);
|
||||
RegisterCallback(pCall,COUNTEND,Countendcallback,pNew,NULL);
|
||||
comCon.transID = 0;
|
||||
strncpy(comCon.deviceID,"internal",SCDEVIDLEN);
|
||||
RegisterCallback(pCall,comCon,COUNTSTART,Countstartcallback,pNew,NULL);
|
||||
RegisterCallback(pCall,comCon,COUNTEND,Countendcallback,pNew,NULL);
|
||||
|
||||
AddCommand(pSics,"storedata",PolterAction,KillPolterdi,pNew);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user