12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /*
- * API to add to cbsdk. This wraps some main API functions in simpler (C-only)
- * code. This in turn can be more easily wrapped (e.g. Cython)
- *
- *
- * @date March 9, 2014
- * @author: dashesy
- */
- #ifndef CBHELPER_H
- #define CBHELPER_H
- #include "cbsdk.h"
- /* The following are already defined in cbsdk.h
- // #define cbSdk_CONTINUOUS_DATA_SAMPLES 102400 // multiple of 4096
- /// The default number of events that will be stored per channel in the trial buffer
- // #define cbSdk_EVENT_DATA_SAMPLES (2 * 8192) // multiple of 4096
- */
- typedef struct _cbSdkConfigParam {
- uint32_t bActive;
- uint16_t Begchan;
- uint32_t Begmask;
- uint32_t Begval;
- uint16_t Endchan;
- uint32_t Endmask;
- uint32_t Endval;
- bool bDouble;
- uint32_t uWaveforms;
- uint32_t uConts;
- uint32_t uEvents;
- uint32_t uComments;
- uint32_t uTrackings;
- bool bAbsolute;
- } cbSdkConfigParam;
- cbSdkResult cbsdk_get_trial_config(uint32_t nInstance, cbSdkConfigParam * pcfg_param);
- cbSdkResult cbsdk_set_trial_config(uint32_t nInstance, const cbSdkConfigParam * pcfg_param);
- cbSdkResult cbsdk_init_trial_event(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent);
- cbSdkResult cbsdk_get_trial_event(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent);
- cbSdkResult cbsdk_init_trial_data(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent, cbSdkTrialCont * trialcont);
- cbSdkResult cbsdk_get_trial_data(uint32_t nInstance, int reset, cbSdkTrialEvent * trialevent, cbSdkTrialCont * trialcont);
- cbSdkResult cbsdk_init_trial_cont(uint32_t nInstance, int reset, cbSdkTrialCont * trialcont);
- cbSdkResult cbsdk_get_trial_cont(uint32_t nInstance, int reset, cbSdkTrialCont * trialcont);
- cbSdkResult cbsdk_init_trial_comment(uint32_t nInstance, int reset, cbSdkTrialComment * trialcomm);
- cbSdkResult cbsdk_get_trial_comment(uint32_t nInstance, int reset, cbSdkTrialComment * trialcomm);
- cbSdkResult cbsdk_file_config(uint32_t instance, const char * filename, const char * comment, int start, unsigned int options);
- #endif // include guard
|