mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 00:58:01 +02:00
added latest changes
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@478 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -3,8 +3,10 @@
|
||||
|
||||
|
||||
int UHRIXCallbackDataFunc(char* d, int np, FILE* fd, void* p){
|
||||
int i;
|
||||
|
||||
int i,j,jmax=6;
|
||||
u_int16_t da;
|
||||
|
||||
|
||||
//#ifdef VERBOSE
|
||||
//printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Receiver Data received \n");
|
||||
if (d==NULL)
|
||||
@ -12,10 +14,11 @@ int UHRIXCallbackDataFunc(char* d, int np, FILE* fd, void* p){
|
||||
else{
|
||||
// printf("received %d bytes of data\n",np);
|
||||
// printf("index:%d\n",(int)(*(int*)d));
|
||||
for ( i=0; i<(np-4)/2; i++)
|
||||
for ( i=0; i<(np-4)/2-jmax+1; i++)
|
||||
{
|
||||
d[i*2+4]=i;
|
||||
d[i*2+5]=0;
|
||||
//((int16_t *)d)[i+2] -= ((int16_t *)d)[i+3];
|
||||
//((int16_t *)d)[i+2] *= ((int16_t *)d)[i+2];
|
||||
for (j=1; j<jmax; j++) ((int16_t *)d)[i+2] += ((int16_t *)d)[i+2+j];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user