versadac  1
versadac - Scalable Recorder Firmware
cloning.h
1 #ifndef CLONING_jhbjhbjhb_H
2 #define CLONING_jhbjhbjhb_H
3 
4 /*****************************************************************************
5 * Copyright (c) 2010 Eurotherm Controls Ltd.
6 *
7 * FILENAME : Cloning_CheckSum.h
8 * AUTHOR : Adrian Oliver
9 * CREATED : October 2010
10 * DESCRIPTION : Header file for cloning functionality
11 * DESIGN SPEC :
12 *****************************************************************************/
13 
14 
16 // Non-MFC version of the IDM Serialiser and IDM - serves to load the contents
17 // of a UIC iTools clone file and directly load into the device's database
19 #define THISCLONEFILEACCESSSERVERPROGID "EurothermIDM.Serialize.2"
20 
21 #define SPACECHARACTER ' '
22 #define COMMENTQUOTECHARACTER '"'
23 #define FIELDSEPARATOR ","
24 #define ENDOFLINE "\n"
25 #define CARRAGERETURN "\r"
26 #define CARRAGERETURNENDOFLINE "\r\n"
27 #define COMMENTPRECHARACTER "; "
28 #define CLONEPRECHECKPARAMETERTEXT "; Pre Check Parameters - Used to verify if clone can proceed for the selected target device - Do Not Modify!"
29 #define CLONEPARAMETERSTEXT "; Clone Parameters"
30 
31 #define CLONEPARAMETERSLAYOUTTEXT "; <Name>, <Modbus Address>, <Value>, <Access>, <Internal Lookup>, <SortIndex>, <User Comments>"
32 
33 #define CHECKSUMTEXT "; Checksum - Used to check for third-party modification of this clone file - Do Not Modify!"
34 #define ENDOFCLONEFILETEXT "; End of Clonefile"
35 
36 #define CLONEFILEACCESSSERVERPROGIDTOKEN ";$SERVER-PROGID"
37 #define IDMPROGIDTOKEN ";$IDM-PROGID"
38 #define OBSOLETEDCMPROGIDTOKEN ";$DCM-PROGID"
39 #define PRECLONECHECKPARAMETERSTOKEN ";$PRECHECK"
40 #define PARAMETERSTOKEN ";$PARAMETERS"
41 #define CHECKSUMTOKEN ";$CHECKSUM"
42 
44 
45 
46 extern int g_Cloning_LastErrorCode;
47 
48 #define CLONING_BUFFERSIZE 1024
49 
50 bool Cloning_ReadNextEntry(char* pszALine, char* pszNextBuffer, int NextBufferLength);
51 
52 
53 #ifndef WIN32
54 // copied from md_drivertask.cpp
55 extern void sysWriteGraphicalWiring(UINT8 * z_data, unsigned int z_offset, int z_len, BOOL z_erase);
56 extern UINT8 * sysReadGraphicalWiring(unsigned int z_offset);
57 #endif
58 
59 #endif