mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 00:00:02 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@477 951219d9-93cf-4727-9268-0efd64621fa3
26 lines
523 B
C++
26 lines
523 B
C++
|
|
#include "UHRIXCallback.h"
|
|
|
|
|
|
int UHRIXCallbackDataFunc(char* d, int np, FILE* fd, void* p){
|
|
int i;
|
|
|
|
//#ifdef VERBOSE
|
|
//printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Receiver Data received \n");
|
|
if (d==NULL)
|
|
printf("no data received\n");
|
|
else{
|
|
// printf("received %d bytes of data\n",np);
|
|
// printf("index:%d\n",(int)(*(int*)d));
|
|
for ( i=0; i<(np-4)/2; i++)
|
|
{
|
|
d[i*2+4]=i;
|
|
d[i*2+5]=0;
|
|
}
|
|
}
|
|
|
|
//printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Finished \n");
|
|
//#endif
|
|
return 0;
|
|
}
|