My Project
 All Classes Files Functions Variables Macros
slsReceiverUsers.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdio.h>
4 #include <stdint.h>
5 
6 
7 class slsReceiver;
8 
16 
17 public:
25  slsReceiverUsers(int argc, char *argv[], int &success);
26 
27 
30 
35  int start();
36 
38  void stop();
39 
44  int64_t getReceiverVersion();
45 
53  void registerCallBackStartAcquisition(int (*func)(char* filepath, char* filename, uint64_t fileindex, uint32_t datasize, void*),void *arg);
54 
55 
62  void registerCallBackAcquisitionFinished(void (*func)(uint64_t nf, void*),void *arg);
63 
64 
65 
72  void registerCallBackRawDataReady(void (*func)(char* header,
73  char* datapointer, uint32_t datasize, void*),void *arg);
74 
75 
82  void registerCallBackRawDataModifyReady(void (*func)(char* header,
83  char* datapointer, uint32_t &revDatasize, void*),void *arg);
84 
85  //receiver object
86  slsReceiver* receiver;
87 };
88 
void registerCallBackRawDataReady(void(*func)(char *header, char *datapointer, uint32_t datasize, void *), void *arg)
register callback to be called when data are available (to process and/or save the data)...
slsReceiverUsers(int argc, char *argv[], int &success)
void registerCallBackAcquisitionFinished(void(*func)(uint64_t nf, void *), void *arg)
register callback for end of acquisition
int64_t getReceiverVersion()
slsReceiver * receiver
Class for implementing the SLS data receiver in the users application. Callbacks can be defined for p...
void registerCallBackStartAcquisition(int(*func)(char *filepath, char *filename, uint64_t fileindex, uint32_t datasize, void *), void *arg)
register calbback for starting the acquisition
void registerCallBackRawDataModifyReady(void(*func)(char *header, char *datapointer, uint32_t &revDatasize, void *), void *arg)
register callback to be called when data are available (to process and/or save the data)...