blob: 228ea15753ea88db4ef4624443d0479e8026e87d [file] [log] [blame]
David Kiliani3fedd142008-11-01 00:39:12 +01001/*
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
12typedef int (*meErrorCB_t)(char *pcFunctionName, int iErrorCode);
13
14typedef int (*meIOStreamCB_t)(
15 int iDevice,
16 int iSubdevice,
17 int iCount,
18 void *pvContext,
19 int iErrorCode);
20
21typedef 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
31typedef 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
43typedef struct meIOStreamConfig {
44 int iChannel;
45 int iStreamConfig;
46 int iRef;
47 int iFlags;
48} meIOStreamConfig_t;
49
50
51typedef 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
76typedef 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
86typedef struct meIOStreamStop {
87 int iDevice;
88 int iSubdevice;
89 int iStopMode;
90 int iFlags;
91 int iErrno;
92} meIOStreamStop_t;
93
94
95#endif