Project

General

Profile

Files » port.h

Frédéric Blanc, 2016-01-29 10:31

 

#ifndef __CVI_PORT_H__
#define __CVI_PORT_H__
//#include "smu.h"
#include <ansi_c.h>

#define SCPI 0
#define ARPS 1

#define RS232 0
#define GPIB 1
#define USB 2
#define ETH 3

struct S_COM
{
unsigned long handle;
char instrDescr[255];
int language;
int typeCOM;
int numGPIB;
int numcarteGPIB;
int numCOM;
char numUSB[255];
char numETH[30];
int numcarteETH;
//RS232
int baudRate;
char dataBits;
char parity;
char stopBits;
char flow;
char termchar;
};
int init_port(struct S_COM *ptr_port);
int set_panel_port(int panel,struct S_COM *ptr_port);
int check_type (int panel,int type);
int get_panel_port(int panel,struct S_COM *ptr_port);
int initcom(struct S_COM *ptr_port);
#endif
(15-15/25)