Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

plccomEY2400.h

Go to the documentation of this file.
00001 #ifndef PLCCOM_EY2400_H
00002 #define PLCCOM_EY2400_H
00003 /******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: plccomEY2400.h,v 1.22.1.2 2003/07/29 17:39:02 vltsccm Exp $" 
00007 *
00008 * who        when       what
00009 * ---------- ---------- -------------------------------------------------
00010 * ssandroc   05.02.1996 created
00011 */
00012 
00013 /*
00014  * protocol related constants
00015  */
00016 #define plccomEY2400_TIMEOUT_MS       5000 /* max millisecs until reply comes in  */
00017 #define plccomEY2400_PREFIX_LEN          7 /* length of cmd prefix, eg. "P00180H" */
00018 #define plccomEY2400_PRESENCE_RETRIES    3 /* number of PRESENCE check retries    */
00019 #define plccomEY2400_CALL_PER_LINE_SIZE 32 /* number of items in CPL reply        */
00020 #define plccomEY2400_MSG_BUF_LEN       200 /* max. size of exchanged buffer       */
00021 
00022 /*
00023  * station addresses
00024  */
00025 #define plccomEY2400_SA_NETCOM  "000"
00026 #define plccomEY2400_SA_PLC1  "001"
00027 #define plccomEY2400_SA_PLC2  "002"
00028 
00029 /*
00030  * protocol strings
00031  */
00032 #define plccomEY2400_MSG_SYNCHRO    "PAAAAAA/"
00033 #define plccomEY2400_MSG_PRESENCE   "P???40H/"
00034 #define plccomEY2400_MSG_CALL_PER_LINE_AIN  "P???80A/"   /* analog inputs  */
00035 #define plccomEY2400_MSG_CALL_PER_LINE_DIN  "P???80H/"   /* digital inputs */
00036 #define plccomEY2400_MSG_CALL_PER_LINE_ADB  "P???""<0A/" /* analog db      */
00037 #define plccomEY2400_MSG_CALL_PER_LINE_DDB  "P???""<0H/" /* digital db     */
00038 /* note: use of string concatenation to avoid trigraph warning! */
00039 #define plccomEY2400_MSG_TREF     "P???50I @%04d"
00040 
00041 /*
00042  * functions
00043  */
00044 ccsCOMPL_STAT plccomEY2400Open        ( IN  int       fd,
00045           OUT ccsERROR *error);
00046 
00047 ccsCOMPL_STAT plccomEY2400Close       ( IN  int       fd,
00048           OUT ccsERROR *error);
00049 
00050 ccsCOMPL_STAT plccomEY2400Synchro     ( IN  int       fd,
00051           OUT ccsERROR *error);
00052 
00053 ccsCOMPL_STAT plccomEY2400Presence    ( IN  int       fd,
00054           IN  int       plcNumber, 
00055                 OUT ccsERROR *error);
00056 
00057 ccsCOMPL_STAT plccomEY2400ExecCommand ( IN  int       fd,
00058                 IN  int       plcNumber,
00059              IN OUT char     *msgBuffer, 
00060           OUT ccsERROR *error);
00061 
00062 #endif 

Generated on Wed Dec 3 14:52:15 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001