Subversion Repositories f9daq

Rev

Rev 198 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef _DRSREAD_H_
#define _DRSREAD_H_
#ifdef DLLMAIN
#define DLLEXPORT extern "C" __declspec(dllexport)
#else
//#define DLLEXPORT  __declspec(dllimport)
#define DLLEXPORT  
#endif

DLLEXPORT void DRSSetMask(int mask);
DLLEXPORT void DRSSetTriggerType(int type);
DLLEXPORT void DRSSetFrequency(int freq);
DLLEXPORT void DRSSetRange(double range);
DLLEXPORT void DRSSetTriggerChannel(int channel);
DLLEXPORT void DRSSetTriggerDelay(double delay);
DLLEXPORT void DRSSetTriggerLevel(double level);
DLLEXPORT void DRSSetTriggerPolarity(int polarity);

DLLEXPORT float * DRSGetTime(int ch);
DLLEXPORT float * DRSGetWave(int ch);

DLLEXPORT int DRSCalibrateTiming();
DLLEXPORT int DRSInit();
DLLEXPORT int DRSRead( int drstimer);
DLLEXPORT int DRSEnd();
DLLEXPORT int DRSToBuffer( unsigned char *p, int m_evSerial  );

DLLEXPORT int DRSIsTimeout();
DLLEXPORT void DRSSetTimeout ( void );

DLLEXPORT void DRSSigInt ( int k );
#endif