[go: up one dir, main page]

Menu

[0a098c]: / daq / gpib-utils.h  Maximize  Restore  History

Download this file

35 lines (26 with data), 728 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __MyUtils_Included__
#define __MyUtils_Included__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <ctime>
#if defined(HAS_GPIB)
#if HAS_GPIB == 1
#include <sys/ugpib.h>
#elif HAS_GPIB == 2
#include <ni488.h>
#elif HAS_GPIB == 3
#include <ib.h>
#endif
bool GPIBWriteFast(int dev, const char *);
bool GPIBReadFast(int dev, char *, int sz);
bool GPIBRead(int dev, int delay, char *out, int sz);
bool GPIBWrite(int dev, const char *fmt, ...);
bool GPIBWriteRead(int dev, int delay, char *, int, const char *fmt, ...);
void GPIBdecodestatus();
const char *GPIBstatus();
double TElapsed(time_t );
extern std::string GPIBlastCommad;
extern int GPIB_debug;
#endif /* if defined(HAS_GPIB) */
#endif