- Added a multiple histogram memory control module. This required a
tiny change in the countable interface which in turn required updating of header file includes in a lot of files. - Some small fixes to TRICS writing as well.
This commit is contained in:
12
histmem.c
12
histmem.c
@ -134,6 +134,17 @@
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
static void HistSetParameter(void *pData, float fPreset, CounterMode eMode)
|
||||
{
|
||||
pHistMem self = NULL;
|
||||
|
||||
self = (pHistMem)pData;
|
||||
assert(self);
|
||||
|
||||
self->pDriv->eCount = eMode;
|
||||
self->pDriv->fCountPreset = fPreset;
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
static int HistStartCount(void *pData, SConnection *pCon)
|
||||
{
|
||||
@ -409,6 +420,7 @@
|
||||
free(pNew);
|
||||
return NULL;
|
||||
}
|
||||
pNew->pCountInt->SetCountParameters = HistSetParameter;
|
||||
pNew->pCountInt->StartCount = HistStartCount;
|
||||
pNew->pCountInt->CheckCountStatus = HistCountStatus;
|
||||
pNew->pCountInt->TransferData = HistTransfer;
|
||||
|
Reference in New Issue
Block a user