1
/***************************************************************************
2
knutconst.h - description
4
begin : Tue Sep 24 2001
5
copyright : (C) 2003 by Daniel Prynych
6
email : Daniel.Prynych@alo.cz
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
24
const int StartPort =1024;
25
const int StopPort= 65535;
26
const int MinDelay = 2000;
28
const int MinCols = 1;
29
const int MaxCols = 5;
31
const int DefaultCountCols = 3; // prednastaveny pocet sloupcu analogovych meraku
32
const int DefaultPort = 3493; // default ports - prednastaveny port
34
const int DefaultDelay = 2000; //2000 msec
36
const int DefaultInputVoltage = 230;
37
const int DefaultInputFrequency = 50;
39
const int NumberOfVars = 10; // how many variables we can measure // kolik promenych muzeme merit
40
const int NumberOfTypes = 14; // count types of variables // pocet typu promenych (none,utility ....)
42
enum {VarNone,VarUtility,VarBattPct,VarUpsTemp,VarAcfreq,VarLoadPct,VarAmbTemp,VarAmbHumid,VarBattVolt,VarOutVolt,VarCurrent,VarOutFreq,VarBattTemp,VarBattCurrent};
44
const unsigned int maxCountKNutEvent = 100;
46
const int numberVarError = -1000;
48
enum upsDriverConnection { // state of connection to usbd, this isn't state of knutnet