mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
Merge branch '2.3' into developer
This commit is contained in:
commit
aba3a67b80
12
RELEASE.txt
12
RELEASE.txt
@ -71,11 +71,13 @@ This release supports the following features:
|
||||
|
||||
|
||||
|
||||
- The call back value for Start Acquisition Call back has only 2
|
||||
options now:
|
||||
* 0 user mode: user call back takes care of open, close and writing
|
||||
to file.
|
||||
* 1 default mode: default procedure to open, close and write to file.
|
||||
- The call back value for Start Acquisition Call back is insignificant at the
|
||||
moment and left for future use. Instead, the following rules apply:
|
||||
* If file write is enabled from the client, we will write the files.
|
||||
* If callbacks are registered, they will be called.
|
||||
For example, the user prefers to write the data himself, one must disable
|
||||
file write (so we dont write) and register the callbacks (so the user gets
|
||||
the data).
|
||||
|
||||
|
||||
|
||||
|
@ -90,6 +90,8 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
//register callbacks
|
||||
//remember to set file write enable to 0 (using the client) if we should not write files and
|
||||
//you will write data using the callbacks
|
||||
|
||||
/**
|
||||
* Call back for start acquisition
|
||||
@ -99,10 +101,9 @@ int main(int argc, char *argv[]) {
|
||||
* fileindex
|
||||
* datasize
|
||||
*
|
||||
* return value is
|
||||
* 0 callback takes care of open,close,wrie file
|
||||
* 1 callback writes file, we have to open, close it
|
||||
* 2 we open, close, write file, callback does not do anything
|
||||
* return value is insignificant at the moment
|
||||
* we write depending on file write enable
|
||||
* users get data to write depending on call backs registered
|
||||
*/
|
||||
printf("Registering StartAcq()\n");
|
||||
receivers[i]->registerCallBackStartAcquisition(StartAcq, NULL);
|
||||
@ -133,7 +134,6 @@ int main(int argc, char *argv[]) {
|
||||
* version is the version number of this structure format
|
||||
* dataPointer is the pointer to the data
|
||||
* dataSize in bytes is the size of the data in bytes
|
||||
* fileDescriptor is the file descriptor
|
||||
*/
|
||||
printf("Registering GetData() \n");
|
||||
receivers[i]->registerCallBackRawDataReady(GetData,NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user