mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
defined a default and register call back function to write receiver data
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@473 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -336,4 +336,17 @@ int defaultRawDataReadyFunc(double* d, int np, void* p) {
|
||||
|
||||
|
||||
|
||||
int defaultWriteReceiverDataFunc(char* d, int np, void* p){
|
||||
//#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));
|
||||
}
|
||||
|
||||
printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Finished \n");
|
||||
//#endif
|
||||
return 0;
|
||||
}
|
||||
|
@ -40,6 +40,8 @@ extern "C" {
|
||||
int defaultDataReadyFunc(detectorData* d, int i, void* p);
|
||||
int defaultRawDataReadyFunc(double* d, int np, void* p);
|
||||
|
||||
int defaultWriteReceiverDataFunc(char* d, int np, void* p);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
|
Reference in New Issue
Block a user