48 lines
1.5 KiB
C
48 lines
1.5 KiB
C
#ifndef _TECC_H_
|
|
#define _TECC_H_
|
|
|
|
#include "client.h"
|
|
/*
|
|
tecc.h: tecs client interface routines
|
|
|
|
M. Zolliker March 2000
|
|
------------------------------------------------------------------------*/
|
|
|
|
typedef CocConn *pTecsClient;
|
|
|
|
|
|
pTecsClient TeccInit(char *server, int port);
|
|
/* init tecs client (connect to server)
|
|
------------------------------------------------------------------------*/
|
|
|
|
int TeccSetDev(pTecsClient conn, char *dev);
|
|
/* set device type
|
|
------------------------------------------------------------------------*/
|
|
|
|
char *TeccGetDev(pTecsClient conn);
|
|
/* get device type
|
|
------------------------------------------------------------------------*/
|
|
|
|
int TeccGet(pTecsClient conn, float *temp);
|
|
/* set temperature
|
|
------------------------------------------------------------------------*/
|
|
|
|
int TeccSet(pTecsClient conn, float temp);
|
|
/* get temperature
|
|
------------------------------------------------------------------------*/
|
|
|
|
int TeccSend(pTecsClient conn, char *cmd, char *reply, int replyLen);
|
|
/* send a command transparently to the controller
|
|
replyLen is the maximal length of reply
|
|
------------------------------------------------------------------------*/
|
|
|
|
void TeccClose(pTecsClient conn);
|
|
/* close connection and free ressources
|
|
------------------------------------------------------------------------*/
|
|
|
|
int TeccKillServer(pTecsClient conn);
|
|
/* kill the server process
|
|
------------------------------------------------------------------------*/
|
|
|
|
#endif /* _TECC_H_ */
|