- 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:
koennecke
2005-12-22 22:16:13 +00:00
parent 6b224a4520
commit a5f315b56a
22 changed files with 2225 additions and 90 deletions

View File

@@ -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;