1 /* 2 * Copyright (C) 2005 Meilhaus Electronic GmbH (support@meilhaus.de) 3 * 4 * Source File : metypes.h 5 * Author : GG (Guenter Gebhardt) <g.gebhardt@meilhaus.de> 6 */ 7 8 #ifndef _METYPES_H_ 9 #define _METYPES_H_ 10 11 12 typedef int (*meErrorCB_t)(char *pcFunctionName, int iErrorCode); 13 14 typedef int (*meIOStreamCB_t)( 15 int iDevice, 16 int iSubdevice, 17 int iCount, 18 void *pvContext, 19 int iErrorCode); 20 21 typedef int (*meIOIrqCB_t)( 22 int iDevice, 23 int iSubdevice, 24 int iChannel, 25 int iIrqCount, 26 int iValue, 27 void *pvContext, 28 int iErrorCode); 29 30 31 typedef struct meIOSingle { 32 int iDevice; 33 int iSubdevice; 34 int iChannel; 35 int iDir; 36 int iValue; 37 int iTimeOut; 38 int iFlags; 39 int iErrno; 40 } meIOSingle_t; 41 42 43 typedef struct meIOStreamConfig { 44 int iChannel; 45 int iStreamConfig; 46 int iRef; 47 int iFlags; 48 } meIOStreamConfig_t; 49 50 51 typedef struct meIOStreamTrigger { 52 int iAcqStartTrigType; 53 int iAcqStartTrigEdge; 54 int iAcqStartTrigChan; 55 int iAcqStartTicksLow; 56 int iAcqStartTicksHigh; 57 int iAcqStartArgs[10]; 58 int iScanStartTrigType; 59 int iScanStartTicksLow; 60 int iScanStartTicksHigh; 61 int iScanStartArgs[10]; 62 int iConvStartTrigType; 63 int iConvStartTicksLow; 64 int iConvStartTicksHigh; 65 int iConvStartArgs[10]; 66 int iScanStopTrigType; 67 int iScanStopCount; 68 int iScanStopArgs[10]; 69 int iAcqStopTrigType; 70 int iAcqStopCount; 71 int iAcqStopArgs[10]; 72 int iFlags; 73 } meIOStreamTrigger_t; 74 75 76 typedef struct meIOStreamStart { 77 int iDevice; 78 int iSubdevice; 79 int iStartMode; 80 int iTimeOut; 81 int iFlags; 82 int iErrno; 83 } meIOStreamStart_t; 84 85 86 typedef struct meIOStreamStop { 87 int iDevice; 88 int iSubdevice; 89 int iStopMode; 90 int iFlags; 91 int iErrno; 92 } meIOStreamStop_t; 93 94 95 #endif 96