- Fixed a bug fix with Fixed motor in TAS code
- Made AMOR write HDF-5 data in chunks - Added driver for a PSI-DSP magnet controller as used at SLS - Added code for directly accessing RS232 controllers connected to a terminal server, thereby bypassing the SerPortServer - A rounding problem in the PSD histogram memory was resolved.
This commit is contained in:
52
rs232controller.h
Normal file
52
rs232controller.h
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
R S 2 3 2 C o n t r o l l e r
|
||||
|
||||
A general object which represents a controller connected to the network
|
||||
via a terminal server. This bypasses David Maden's SerPortServer software.
|
||||
Basic facilities are provided for writinga nd reading to and from the
|
||||
device. For more information see the rs232controller.tex file.
|
||||
|
||||
copyright: see copyright.h
|
||||
|
||||
Mark Koennecke, October 2001
|
||||
-----------------------------------------------------------------------*/
|
||||
#ifndef RS232CONTROLLER
|
||||
#define RS232CONTROLLER
|
||||
#include "network.h"
|
||||
|
||||
/*----------------------- a data structure ----------------------------*/
|
||||
|
||||
typedef struct{
|
||||
pObjectDescriptor pDes;
|
||||
char *sendTerminator;
|
||||
char *replyTerminator;
|
||||
int timeout;
|
||||
mkChannel *pSock;
|
||||
char *pHost;
|
||||
int iPort;
|
||||
} rs232, *prs232;
|
||||
|
||||
|
||||
|
||||
/*----------------------- the interface functions --------------------*/
|
||||
|
||||
int RS232Action(SConnection *pCon, SicsInterp *pSics,
|
||||
void *pData, int argc, char *argv[]);
|
||||
int RS232Factory(SConnection *pCon, SicsInterp *pSics,
|
||||
void *pData, int argc, char *argv[]);
|
||||
|
||||
void setRS232SendTerminator(prs232 self, char *term);
|
||||
void setRS232ReplyTerminator(prs232 self, char *term);
|
||||
void setRS232Timeout(prs232 self, int timeout);
|
||||
int writeRS232(prs232 self, void *data, int dataLen);
|
||||
int readRS232(prs232 self, void *data, int *dataLen);
|
||||
int availableRS232(prs232 self);
|
||||
int transactRS232(prs232 self, void *send, int sendLen,
|
||||
void *reply, int replylen);
|
||||
void getRS232Error(int iCode, char *errorBuffer,
|
||||
int errorBufferLen);
|
||||
int initRS232(prs232 self);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user