Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

cbsdk_helper.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * API to add to cbsdk. This wraps some main API functions in simpler (C-only)
  3. * code. This in turn can be more easily wrapped (e.g. Cython)
  4. *
  5. *
  6. * @date March 9, 2014
  7. * @author: dashesy
  8. */
  9. #ifndef CBHELPER_H
  10. #define CBHELPER_H
  11. #include "cbsdk.h"
  12. /* The following are already defined in cbsdk.h
  13. // #define cbSdk_CONTINUOUS_DATA_SAMPLES 102400 // multiple of 4096
  14. /// The default number of events that will be stored per channel in the trial buffer
  15. // #define cbSdk_EVENT_DATA_SAMPLES (2 * 8192) // multiple of 4096
  16. */
  17. typedef struct _cbSdkConfigParam {
  18. uint32_t bActive;
  19. uint16_t Begchan;
  20. uint32_t Begmask;
  21. uint32_t Begval;
  22. uint16_t Endchan;
  23. uint32_t Endmask;
  24. uint32_t Endval;
  25. bool bDouble;
  26. uint32_t uWaveforms;
  27. uint32_t uConts;
  28. uint32_t uEvents;
  29. uint32_t uComments;
  30. uint32_t uTrackings;
  31. bool bAbsolute;
  32. } cbSdkConfigParam;
  33. cbSdkResult cbsdk_get_trial_config(uint32_t nInstance, cbSdkConfigParam * pcfg_param);
  34. cbSdkResult cbsdk_set_trial_config(uint32_t nInstance, const cbSdkConfigParam * pcfg_param);
  35. cbSdkResult cbsdk_init_trial_event(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent);
  36. cbSdkResult cbsdk_get_trial_event(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent);
  37. cbSdkResult cbsdk_init_trial_data(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent, cbSdkTrialCont * trialcont);
  38. cbSdkResult cbsdk_get_trial_data(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent, cbSdkTrialCont * trialcont);
  39. cbSdkResult cbsdk_init_trial_cont(uint32_t nInstance, int reset, cbSdkTrialCont * trialcont);
  40. cbSdkResult cbsdk_get_trial_cont(uint32_t nInstance, int reset, cbSdkTrialCont * trialcont);
  41. cbSdkResult cbsdk_init_trial_comment(uint32_t nInstance, int reset, cbSdkTrialComment * trialcomm);
  42. cbSdkResult cbsdk_get_trial_comment(uint32_t nInstance, int reset, cbSdkTrialComment * trialcomm);
  43. cbSdkResult cbsdk_file_config(uint32_t instance, const char * filename, const char * comment, int start, unsigned int options);
  44. #endif // include guard