Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
65 f9daq 1
/**************************************************************************
2
lecroy_tcp.h
3
Version 1.00
4
Copyright (C) 2003  Steve D. Sharples
5
Based on "net_con.h" by LeCroy
6
See "lecroy_tcp.c" for additional comments and usage
7
 
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
as published by the Free Software Foundation; either version 2
11
of the License, or (at your option) any later version.
12
 
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with this program; if not, write to the Free Software
20
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
 
22
The author's email address is steve.sharples@nottingham.ac.uk
23
**************************************************************************/
24
 
25
 
26
 
27
/* stick your own I.P. address here. Of course, you don't have to use
28
   this constant, it's just handy */
29
  //#define OUR_SCOPE_IP            "172.25.1.2"
30
 
31
#define LECROY_SERVER_PORT      1861    /* as defined by LeCroy */
32
 
33
#define CMD_BUF_LEN             8192
34
#define BOOL                    int
35
#define TRUE                    1
36
#define FALSE                   0
37
 
38
//void LECROY_TCP_bored_now(int);               /* catch signal routine */
39
int LECROY_TCP_write(int, char *);
40
int LECROY_TCP_read(int, char *, int, int);
41
int LECROY_TCP_connect(char *, int);
42
int LECROY_TCP_disconnect(int);
43
 
44
#define LECROY_EOI_FLAG                         0x01
45
#define LECROY_SRQ_FLAG                         0x08
46
#define LECROY_CLEAR_FLAG                       0x10
47
#define LECROY_LOCKOUT_FLAG                     0x20
48
#define LECROY_REMOTE_FLAG                      0x40
49
#define LECROY_DATA_FLAG                        0x80
50
 
51
#define LECROY_READ_TIME_OUT                    10
52
#define LECROY_TCP_MINIMUM_PACKET_SIZE          64