branch_name
stringclasses
149 values
text
stringlengths
23
89.3M
directory_id
stringlengths
40
40
languages
listlengths
1
19
num_files
int64
1
11.8k
repo_language
stringclasses
38 values
repo_name
stringlengths
6
114
revision_id
stringlengths
40
40
snapshot_id
stringlengths
40
40
refs/heads/master
<file_sep>const gulp = require('gulp'); const sass = require('gulp-sass'); const autoprefixer = require('gulp-autoprefixer'); const concat = require('gulp-concat'); const pump = require('pump'); gulp.task('mix:js',()=>{ return gulp.src([ 'node_modules/jquery/dist/jquery.js', 'node_modules/animejs/anime.js' ]) .pipe(concat('main.js')) .pipe(gulp.dest('assets/js/')); }); gulp.task('sass',(cb)=>{ pump([ gulp.src('assets/scss/*.scss'), sass(), autoprefixer(), gulp.dest('assets/css') ],cb); }); gulp.task('watch',()=>{ gulp.watch('assets/scss/*.scss',['sass']); }); gulp.task('default',['mix:js','sass']);<file_sep># GO-TIX ## Step by step Follow this step for running this project on your localhost: - Copy this project to folder xampp/htdocs - Open command prompt, target to this folder project then npm install - Run gulp on command prompt - Open this project on your browser
bdb4c434a8a45c1eac5d25e3c3e97a20581b1010
[ "JavaScript", "Markdown" ]
2
JavaScript
triyuniarti/go-tix
8ac4d8088b4065e716b38bc85b20921043591322
b139be4040a0ad501ab27c61d3b6923e57efbc5e
refs/heads/main
<repo_name>CoolJames1610/Flighter<file_sep>/Flighter.py import json from haversine import haversine, Unit with open("Flighter/airports.json", "r") as f: data = json.load(f) class Flighter: def __init__(self, plane=None, speed=0, icao1=None, icao2=None): self.plane = plane self.speed = speed self.icao1 = icao1 self.icao2 = icao2 def __str__(self): return f"Plane: {self._plane}\nSpeed: {self._speed}\nICAO1 (dep airport): {self._icao1}\nICAO2 (arv airport): {self._icao2}" @property def plane(self): return self._plane @plane.setter def plane(self, plane): self._plane = plane @property def speed(self): return self._speed @speed.setter def speed(self, speed): self._speed = speed @property def icao1(self): return self._icao1 @icao1.setter def icao1(self, icao1): self._icao1 = icao1 @property def icao2(self): return self._icao2 @icao2.setter def icao2(self, icao2): self._icao2 = icao2 def __airport(icao): i = icao.upper() ye = None for icao, lat in data.items(): if icao == i: ye = True break else: ye = False if ye == True: latitiude = (lat["lat"]) longitude = (lat["lon"]) xc = (lat["city"]) city = (latitiude, longitude) return city, xc else: Errors.invalidICAO(i) def __distance(x, y): nm = round((haversine(x, y, unit=Unit.NAUTICAL_MILES))) return nm def __convert(self, kn, nm): hrs = round((nm / kn), 2) mins = round(hrs * 60) secs = round(mins * 60) if mins < 60: x = { "Flight": f"{self._icao1} to {self._icao2}", "Plane": f"{self._plane}", "Approx. Speed": f"{self._speed}", "Approx. Time": f"{mins} minutes" } return x else: x = { "Flight": f"{self._icao1} to {self._icao2}", "Plane": f"{self._plane}", "Approx. Speed": f"{self._speed}", "Approx. Time": f"{hrs} hours" } return x def checkICAO(self, icao): i = icao.upper() ye = None for icao, lat in data.items(): if icao == i: ye = True break else: ye = False if ye == True: return True else: return False def checkIATA(self, iata): i = iata.upper() ye = None for icao, lat in data.items(): if lat["iata"] == i: ye = True break else: ye = False if ye == True: return True else: return False def checkFlight(self): a1, a1n = Flighter.__airport(str(self._icao1)) a2, a2n = Flighter.__airport(str(self._icao2)) nm = Flighter.__distance(a1, a2) return Flighter.__convert(self, int(self._speed), nm) def airportInfo(self, name): icao = Flighter.checkICAO(self, name) if icao != True: iata = Flighter.checkIATA(self, name) if iata != True: Errors._invalidICAO(name) else: i = name.upper() ye = None for icao, lat in data.items(): if lat["iata"] == i: ye = True break city = (lat["city"]) name = (lat["name"]) country = (lat["state"]) iata = (lat["iata"]) el = (lat["elevation"]) latt = (lat["lat"]) lon = (lat["lon"]) tz = (lat["tz"]) x = { "Name": f"{name}", "Country/State": f"{country}", "City": f"{city}", "ICAO": f"{icao}", "IATA": f"{iata}", "Elevation": f"{el}m", "Latitude": f"{latt}", "Longitude": f"{lon}", "Timezone": f"{tz}" } return x else: i = name.upper() ye = None for icao, lat in data.items(): if icao == i: ye = True break city = (lat["city"]) name = (lat["name"]) country = (lat["state"]) iata = (lat["iata"]) el = (lat["elevation"]) latt = (lat["lat"]) lon = (lat["lon"]) tz = (lat["tz"]) x = { "Name": f"{name}", "Country/State": f"{country}", "City": f"{city}", "ICAO": f"{icao}", "IATA": f"{iata}", "Elevation": f"{el}m", "Latitude": f"{latt}", "Longitude": f"{lon}", "Timezone": f"{tz}" } return x class Errors(Flighter): def _invalidICAO(ICAO): yo = False class AirportNotFound(Exception): pass err = ICAO[0:3] for icao, lat in data.items(): if icao.startswith(err): yo = True break else: yo = False if yo == True: if len(ICAO) != 4: raise AirportNotFound(f"'{ICAO}' is an invalid ICAO. ICAO's can only be 4 characters in size. Perhaps you meant '{icao}'?") else: raise AirportNotFound(f"'{ICAO}' is an invalid ICAO. Perhaps you meant '{icao}'?") else: if len(ICAO) == 3: Errors._invalidIATA(ICAO) elif len(ICAO) != 4: raise AirportNotFound(f"'{ICAO}' is an invalid ICAO. ICAO's can only be 4 characters in size.") else: raise AirportNotFound(f"'{ICAO}' is an invalid ICAO.") def _invalidIATA(IATA): yo = False class AirportNotFound(Exception): pass err = IATA[0:2] for icao, lat in data.items(): if str(lat["iata"]).startswith(err): yo = True iata = str(lat["iata"]) break else: yo = False if yo == True: raise AirportNotFound(f"'{IATA}' is an invalid IATA. Perhaps you meant '{iata}'?") else: raise AirportNotFound(f"'{IATA}' is an invalid IATA.")<file_sep>/__init__.py from .Flighter import *<file_sep>/README.md # Flighter Flighter is an easy-to-use Python module that allows users to explore aviation using Python Features include: flight time from airport A to airport B; full functionality for both ICAO and IATA codes ; checks whether a particular airport exists per ICAO/IATA; airport details per ICAO/IATA. Data is returned in a json format, so extracting data has never been easier! *** #### Version 1.0.0 > Module released *** ### Installation ``` pip install Flighter ``` ### Quickstart You can initialise the attributes directly via Flighter: ```py from Flighter import Flighter x = Flighter( plane="F18", speed=1000, icao1="EGLL", icao2="LFPG" ) print(x.checkFlight()) # Returns in a json format with: # Flight, Plane, Approx. Speed, Approx. Time (in mins or hrs) ``` Or, by initialising them one by one: ```py from Flighter import Flighter x = Flighter() x.plane = "F18" # Defualt=None x.speed = 1000 # Default=0 x.icao1 = "EGLL" # Default=None x.icao2 = "LFPG" # Default=None print(x.checkFlight()) # Returns in a json format with: # Flight, Plane, Approx. Speed, Approx. Time (in mins or hrs) ``` You can also check whether an ICAO or IATA exists: ```py from Flighter import Flighter x = Flighter() print(x.checkICAO("EGLL")) print(x.checkIATA("LHR")) # Returns True or False ``` And by using an ICAO or IATA, you can find out an airport's details ```py from Flighter import Flighter x = Flighter() print(x.airportInfo("EGLL")) #or print(x.airportInfo("LHR")) # Returns in a json format with: # Name, Country/State, City, ICAO, IATA (if it has one), Elevation, Latitude, Longitude and Timezone ``` *** ### Contributing You can open a PR on Github :D ### Help You can [email me](https://mail.google.com/mail/u/1/#inbox?compose=GTvVlcSGLrTGkHMrJKfHBhNsdmbbBGPSqMcrQgNQSDQtLQfSKQzxLNHhpzzDrpGrjWcgrMNSgSDGg) or send a friend request via Discord to Zeliktric#4282. Thank you! :D<file_sep>/setup.py import setuptools with open("Flighter/README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="Flighter", # Replace with your own username version="1.0.0", author="CoolJames1610", author_email="<EMAIL>", description="Flighter is an easy-to-use Python module that allows users to explore aviation using Python", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/CoolJames1610/Flighter", packages=setuptools.find_packages(), include_package_data=True, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], python_requires='>=3.6', keywords = ["Flighter", "Aviation", "Planes", "F18", "RFS", "ZELIKTRIC", "MSFS", "MFS"], install_requires=[ 'haversine' ], )
6f8c30d12850cb75a15f2e4ec9652a6d2cbddd77
[ "Markdown", "Python" ]
4
Python
CoolJames1610/Flighter
53f01581ead05e1bb4d5755c3d420e63494691f0
1795cbe7cbabde05f24a6815ac7b6ecae661ec6d
refs/heads/main
<repo_name>nokkkkkk/BiskWar<file_sep>/src/std_bloc.cpp #include "std_bloc.h" #include <math.h> Std_bloc::Std_bloc() : Blocs() { } void Std_bloc::setup(bool p_block_depart) { m_close_true = false; //Est-ce que on doit detruire l'objet ? m_block_lock = p_block_depart; m_block_is_virus = p_block_depart; m_bloc_size = 25; m_line_size = 1; m_pos.x = -25; m_pos.y = 25; m_pos_on_grid.x = (int)(m_pos.x / -50); m_pos_on_grid.y = (int)(m_pos.y / 50); m_pos.z = 0; // int tempo_int_char = 0; int tempo_int_char = ofRandom(6); switch (tempo_int_char) { case 0: m_bloc_char = 'R'; m_fill_color = ofColor(255, 0, 0); m_line_color = ofColor(155, 0, 0); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); ofLoadImage(m_texture,"../../data/textures/rouge.jpg"); break; case 1: m_bloc_char = 'G'; m_fill_color = ofColor(0, 255, 0); m_line_color = ofColor(0, 155, 0); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); ofLoadImage(m_texture,"../../data/textures/jaune.jpg"); break; case 2: m_bloc_char = 'B'; m_fill_color = ofColor(0, 0, 255); m_line_color = ofColor(0, 0, 150); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); ofLoadImage(m_texture,"../../data/textures/magenta.jpg"); break; case 3: m_bloc_char = 'Y'; m_fill_color = ofColor(100, 100, 100); m_line_color = ofColor(50, 50, 50); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); ofLoadImage(m_texture,"../../data/textures/gris.jpg"); break; case 4: m_bloc_char = 'V'; m_fill_color = ofColor(0, 0, 0); m_line_color = ofColor(50, 155, 50); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); ofLoadImage(m_texture,"../../data/textures/bleu.jpg"); break; case 5: m_bloc_char = 'P'; m_fill_color = ofColor(0, 0, 0); m_line_color = ofColor(50, 155, 50); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); ofLoadImage(m_texture,"../../data/textures/vert.jpg"); break; default: //Faut pas que ca arrive :) m_bloc_char = '.'; break; } if (m_block_lock) //Si le block est lock au setup, on le place dans le tableau. { m_pos.x = (int)ofRandom(7) * -50 - 25; //On affiche la nouvelle image aleatoire sur X m_pos.y = ((int)ofRandom(12) + 4) * 50 + 25; m_pos_on_grid.x = (int)(m_pos.x / -50); m_pos_on_grid.y = (int)(m_pos.y / 50); } //La lumières de chaque blocs m_shader.load( "shaderillum/phong_330_vs.glsl", "shaderillum/phong_330_fs.glsl"); } void Std_bloc::show_obj() { ofEnableLighting(); m_shader.begin(); m_shader.setUniform3f("color_ambient", m_ambiant_color); m_shader.setUniform3f("color_diffuse", 0.1f, 0.2f, 0.4f); m_shader.setUniform3f("color_specular", 0.2f, 0.2f, 0.4f); m_shader.setUniform1f("brightness", 1.0f); m_shader.setUniform1i("nb_light", 2); m_shader.setUniform3f("light_position", glm::vec4(-2000.0f, -2000.0f, -1000.0f, 0.0f) * ofGetCurrentMatrix(OF_MATRIX_MODELVIEW)); m_shader.end(); m_shader.begin(); m_texture.bind(); ofFill(); ofDrawSphere(m_pos,m_bloc_size); m_texture.unbind(); m_shader.end(); ofDisableLighting(); } void Std_bloc::move_obj(int p_x, int p_y, int p_z, int p_button) { m_pos.y += p_y; m_pos.x += p_x; m_pos_on_grid.x = (int)(m_pos.x / -50); m_pos_on_grid.y = (int)(m_pos.y / 50); } void Std_bloc::rotate_obj() { this->move_obj(50,50,0,0); } ofVec2f const Std_bloc::get_pos_on_grid() const { return m_pos_on_grid; } void Std_bloc::set_bloc_lock(bool p_cond) { m_block_lock = p_cond; } bool Std_bloc::get_bloc_lock() const { return m_block_lock; } char Std_bloc::get_bloc_char() const { return m_bloc_char; } void Std_bloc::set_bloc_char(char p_char_type) { m_bloc_char = p_char_type; } bool Std_bloc::get_bloc_virus() const { return m_block_is_virus; } void Std_bloc::set_bloc_virus(bool p_cond) { m_block_is_virus = p_cond; } <file_sep>/src/blocs.h /** * \file Instance_Imported.h * \brief Classe responsable d'importer une image sur la scène * \author <NAME> * \version 2.0 */ #pragma once #include "ofMain.h" class Blocs { public: //FONCTIONS PUBLIQUES Blocs(); virtual ~Blocs(){}; virtual void setup(bool p_block_depart = false) = 0; virtual void show_obj() = 0; virtual const ofVec2f get_pos_on_grid() const; virtual bool get_bloc_lock() const; virtual void set_bloc_lock(bool p_cond); virtual bool get_bloc_virus() const; virtual void set_bloc_virus(bool p_cond); virtual char get_bloc_char() const; virtual void set_bloc_char(char p_char_type); virtual void move_obj(int p_x, int p_y, int p_z, int p_button); virtual void rotate_obj(); private: }; <file_sep>/src/Factoblocs.h /** * \file Instance_Imported.h * \brief Classe responsable d'importer une image sur la scène * \author <NAME> * \version 2.0 */ #pragma once #include "ofMain.h" #include "std_bloc.h" #include "virus_bloc.h" class Factoblocs { public: static Blocs* get_bloc(int p_type_bloc); private: }; <file_sep>/src/Game.h #pragma once #include "ofMain.h" #include "Factoblocs.h" const int nb_lignes = 17; const int nb_col = 8; class Game { public: Game(); Game(int p_nb_blocs_to_load, int p_nb_joueurs); void start_game(); void show_grid(); void show_state_table(); char get_block_from_pos_in_table(int p_x, int p_y); void set_block_from_pos_in_table(int p_x, int p_y, char p_char_bloc); void add_bloc(int p_type); void move_obj(int p_x, int p_y, int p_z, int p_button); std::vector<Blocs *> get_vecteur_blocs(); char m_etat_table[nb_lignes][nb_col]; void verify_who_fall(); void verify_all_grid_clear(); void play_level_up(); private: ofColor m_grid_color = (25,25,255); int m_size_grid_slot; std::vector<Blocs *> m_blocs; // Déclaration d'un vecteur de pointeur pour Polymorphisme ofSoundPlayer game_bg_music; ofSoundPlayer game_clear_bloc[3]; int indice_sound_clear; ofSoundPlayer m_bloc_lock_sound; ofTexture m_tex_lvl_up; bool m_toggle_level_up; }; <file_sep>/src/virus_bloc.cpp #include "virus_bloc.h" #include <math.h> Virus_bloc::Virus_bloc() : Blocs() { } void Virus_bloc::setup(bool p_block_depart) { m_close_true = false; //Est-ce que on doit detruire l'objet ? m_block_lock = p_block_depart; m_block_is_virus = p_block_depart; m_bloc_size = 25; m_line_size = 1; m_pos.x = -25; m_pos.y = 25; m_pos_on_grid.x = (int)(m_pos.x / -50); m_pos_on_grid.y = (int)(m_pos.y / 50); m_pos.z = 0; virus_light.setPosition(0, 0, -100); virus_light.lookAt(ofVec3f(0, 0, 0)); m_speed_rotation = (ofRandom(10)) + 1; // int tempo_int_char = 0; int tempo_int_char = ofRandom(6); switch (tempo_int_char) { case 0: m_bloc_char = 'R'; m_fill_color = ofColor(255, 0, 0); m_line_color = ofColor(155, 0, 0); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); m_virus.loadModel("../../data/virus/v1.obj"); break; case 1: m_bloc_char = 'G'; m_fill_color = ofColor(0, 255, 0); m_line_color = ofColor(0, 155, 0); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); m_virus.loadModel("../../data/virus/v2.obj"); break; case 2: m_bloc_char = 'B'; m_fill_color = ofColor(0, 0, 255); m_line_color = ofColor(0, 0, 150); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); m_virus.loadModel("../../data/virus/v3.obj"); break; case 3: m_bloc_char = 'Y'; m_fill_color = ofColor(100, 100, 100); m_line_color = ofColor(50, 50, 50); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); m_virus.loadModel("../../data/virus/v4.obj"); break; case 4: m_bloc_char = 'V'; m_fill_color = ofColor(0, 0, 0); m_line_color = ofColor(50, 155, 50); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); m_virus.loadModel("../../data/virus/v5.obj"); break; case 5: m_bloc_char = 'P'; m_fill_color = ofColor(0, 0, 0); m_line_color = ofColor(50, 155, 50); m_ambiant_color = ofVec3f(0.0f, 0.0f, 0.0f); m_virus.loadModel("../../data/virus/v6.obj"); break; default: //Faut pas que ca arrive :) m_bloc_char = '.'; break; } if (m_block_lock) //Si le block est lock au setup, on le place dans le tableau. { m_pos.x = (int)ofRandom(7) * -50 - 25; //On affiche la nouvelle image aleatoire sur X m_pos.y = ((int)ofRandom(12) + 4) * 50 + 25; m_pos_on_grid.x = (int)(m_pos.x / -50); m_pos_on_grid.y = (int)(m_pos.y / 50); } } void Virus_bloc::show_obj() { ofEnableLighting(); m_virus.setRotation(1, ofGetFrameNum() * m_speed_rotation / 5, 0.0f, 1.0f, 0.0f); m_virus.setPosition( m_pos.x, m_pos.y, m_pos.z); m_virus.setScale(0.0700, 0.0700, 0.0700); virus_light.setPosition( // repositionnement de la lumière en fonction de la postion du virus pour un meilleur éclairage. m_pos.x, m_pos.y, m_pos.z - 900); virus_light.lookAt(ofVec3f(m_pos.x, m_pos.y, m_pos.z)); virus_light.enable(); m_virus.drawFaces(); virus_light.disable(); ofDisableLighting(); } void Virus_bloc::move_obj(int p_x, int p_y, int p_z, int p_button) { m_pos.y += p_y; m_pos.x += p_x; m_pos_on_grid.x = (int)(m_pos.x / -50); m_pos_on_grid.y = (int)(m_pos.y / 50); } ofVec2f const Virus_bloc::get_pos_on_grid() const { return m_pos_on_grid; } void Virus_bloc::set_bloc_lock(bool p_cond) { m_block_lock = p_cond; } bool Virus_bloc::get_bloc_lock() const { return m_block_lock; } char Virus_bloc::get_bloc_char() const { return m_bloc_char; } void Virus_bloc::set_bloc_char(char p_char_type) { m_bloc_char = p_char_type; } bool Virus_bloc::get_bloc_virus() const { return m_block_is_virus; } void Virus_bloc::set_bloc_virus(bool p_cond) { m_block_is_virus = p_cond; } <file_sep>/src/blocs.cpp // import_img->cpp // Classe responsable d'importer une image sur la scène #include "blocs.h" /** * \brief Constructeur par défaut. */ Blocs::Blocs() { } void Blocs::move_obj(int p_x, int p_y, int p_z, int p_button) { } void Blocs::rotate_obj() { } bool Blocs::get_bloc_lock() const { return false; } void Blocs::set_bloc_lock(bool p_cond) { } bool Blocs::get_bloc_virus() const { return false; } void Blocs::set_bloc_virus(bool p_cond) { } char Blocs::get_bloc_char() const { return '.'; } void Blocs::set_bloc_char(char p_char_type) { } ofVec2f const Blocs::get_pos_on_grid() const { return ofVec2f(0,0); } <file_sep>/src/application.h // Classe principale de l'application. #pragma once #include "ofMain.h" #include "Factogame.h" class Application : public ofBaseApp { private: std::vector<Blocs *> m_blocs; // Déclaration d'un vecteur de pointeur pour Polymorphisme Std_bloc *obj_to_insert; //Déclaration d'un pointeur d'objet pour creer des nouveau objet a envoyer au PUSHBACK du vecteur Game game_on; ofLight lights; ofCamera cameras; ofTexture sphere_bg; bool all_blocs_are_lock; public: string message; void setup(); void draw(); void update(); void mouseMoved(int x, int y); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void mouseEntered(int x, int y); void mouseExited(int x, int y); void show_message(string new_message); void keyReleased(int key); void keyPressed(int key); void exit(); }; <file_sep>/src/Factogame.h /** * \file Instance_Imported.h * \brief Classe responsable d'importer une image sur la scène * \author <NAME> * \version 2.0 */ #pragma once #include "ofMain.h" #include "Game.h" class Factogame { public: static Game* get_game(int p_nb_joueurs); private: }; <file_sep>/src/main.cpp // IFT3100H20_BackgroundColor/main.cpp // Exemple de configuration de la couleur d'arrière-plan avec une couleur fixe ou aléatoire. #include "ofMain.h" #include "application.h" int main() { // paramètres du contexte de rendu OpenGL ofGLFWWindowSettings windowSettings; // option de redimentionnement de la fenêtre d'affichage windowSettings.resizable = true; // windowSettings.windowMode = OF_FULLSCREEN; windowSettings.setSize(1920,1024); // sélection de la version de OpenGL windowSettings.setGLVersion(4, 1); // création de la fenêtre ofCreateWindow(windowSettings); // démarrer l'exécution de l'application ofRunApp(new Application()); } <file_sep>/src/Factoblocs.cpp // import_img->cpp // Classe responsable d'importer une image sur la scène #include "Factoblocs.h" Blocs* Factoblocs::get_bloc(int p_type_bloc) { switch(p_type_bloc) { case 1: { Std_bloc *bloc_std = new Std_bloc; return bloc_std; } break; case 2: { Virus_bloc *bloc_virus = new Virus_bloc; return bloc_virus; } break; default: { Std_bloc *bloc_std = new Std_bloc; return bloc_std; } break; } }<file_sep>/src/virus_bloc.h #pragma once #include "ofMain.h" #include "blocs.h" #include "ofxAssimpModelLoader.h" class Virus_bloc : public Blocs { public: //FONCTIONS PUBLIQUES Virus_bloc(); void setup(bool p_block_depart = true); void show_obj(); virtual const ofVec2f get_pos_on_grid() const; bool get_bloc_lock() const; virtual void set_bloc_lock(bool p_cond); virtual void move_obj(int p_x, int p_y, int p_z, int p_button); virtual char get_bloc_char() const; virtual void set_bloc_char(char p_char_type); virtual bool get_bloc_virus() const; virtual void set_bloc_virus(bool p_cond); private: //ATTRIBUTS PRIVÉS ofVec2f m_pos_on_grid; ofVec3f m_pos; ofxAssimpModelLoader m_virus; ofVec3f m_ambiant_color; ofColor m_fill_color; ofColor m_line_color; ofShader m_shader; ofTexture m_texture; ofLight virus_light; int m_speed_rotation; int m_line_size; int m_bloc_size; bool m_block_lock; bool m_block_is_virus; bool m_close_true; //Detect si la destruction de l'image est effectuée. char m_bloc_char; }; <file_sep>/src/Factogame.cpp // import_img->cpp // Classe responsable d'importer une image sur la scène #include "Factogame.h" Game* Factogame::get_game(int p_nb_joueurs) { switch(p_nb_joueurs) { case 1: return new Game(1, 1); break; default: return new Game(0, 0); break; } }<file_sep>/src/Game.cpp // import_img->cpp // Classe responsable d'importer une image sur la scène #include "Game.h" using namespace std; Game::Game() { } Game::Game(int p_nb_blocs_to_load, int p_nb_joueurs) { m_size_grid_slot = 50; for (unsigned int i = 0; i < p_nb_blocs_to_load; i++) { m_blocs.push_back(new Virus_bloc); m_blocs.back()->setup(true); } for (unsigned int i = 0; i < nb_lignes; i++) { for (unsigned int y = 0; y < nb_col; y++) { m_etat_table[i][y] = '.'; } } game_bg_music.load("../../data/music/fast.mp3"); game_clear_bloc[0].load("../../data/sound/clear1.mp3"); game_clear_bloc[1].load("../../data/sound/clear2.mp3"); game_clear_bloc[2].load("../../data/sound/clear3.mp3"); indice_sound_clear = 0; m_bloc_lock_sound.load("../../data/sound/bloclock.mp3"); m_bloc_lock_sound.setVolume(0.5); game_bg_music.play(); ofLoadImage(m_tex_lvl_up,"../../data/images/levelup.png"); m_toggle_level_up = false; // set_block_from_pos_in_table(2,2,'W'); } void Game::show_grid() { int x_pos = 0; int y_pos = 0; for (unsigned int i = 0; i < nb_lignes; i++) { y_pos = i * m_size_grid_slot; for (unsigned int y = 0; y < nb_col; y++) { x_pos = -(y * m_size_grid_slot); ofNoFill(); ofSetColor(20,20,250); ofSetLineWidth(1); ofDrawRectangle(x_pos, y_pos, -m_size_grid_slot,m_size_grid_slot); } } } void Game::start_game() { } void Game::play_level_up() { if (m_toggle_level_up == true) { ofFill(); ofSetColor(200, 200, 200); m_tex_lvl_up.bind(); ofPushMatrix(); ofRotateYDeg(ofGetFrameNum() * -2.0f); ofDrawSphere(ofVec3f(600, 300, 1000),250); ofPopMatrix(); m_tex_lvl_up.unbind(); } } void Game::move_obj(int p_x, int p_y, int p_z, int p_button) { bool bloc_side_can_move = false; //on part avec l'idée qu'on ne peut pas bouger... if (p_x < 0) // Si on bouge vers la droite... { //Si aucun bloc ne se trouve à droite, on peut bouger si.... if (get_block_from_pos_in_table(m_blocs.back()->get_pos_on_grid().x + 1, m_blocs.back()->get_pos_on_grid().y) == '.' && m_blocs.back()->get_pos_on_grid().x + 1 < nb_col ) { //Si aucun bloc ne se trouve à droite du premier des 2 blocs, on peut bouger. if (get_block_from_pos_in_table(m_blocs.end()[-2]->get_pos_on_grid().x + 1, m_blocs.end()[-2]->get_pos_on_grid().y) == '.' && m_blocs.end()[-2]->get_pos_on_grid().x + 1 < nb_col ) { bloc_side_can_move = true; set_block_from_pos_in_table(m_blocs.back()->get_pos_on_grid().x + 1, m_blocs.back()->get_pos_on_grid().y,m_blocs.back()->get_bloc_char()); set_block_from_pos_in_table(m_blocs.back()->get_pos_on_grid().x, m_blocs.back()->get_pos_on_grid().y, '.'); //move du premier des deux blocs aussi à faire set_block_from_pos_in_table(m_blocs.end()[-2]->get_pos_on_grid().x + 1, m_blocs.end()[-2]->get_pos_on_grid().y,m_blocs.end()[-2]->get_bloc_char()); set_block_from_pos_in_table(m_blocs.end()[-2]->get_pos_on_grid().x, m_blocs.end()[-2]->get_pos_on_grid().y, '.'); } } } if (p_x > 0) // Si on bouge vers la gauche... { //Si aucun bloc ne se trouve à gauche, on peut bouger si.... if (get_block_from_pos_in_table(m_blocs.back()->get_pos_on_grid().x - 1, m_blocs.back()->get_pos_on_grid().y) == '.' && m_blocs.back()->get_pos_on_grid().x > 0) { //Si aucun bloc ne se trouve à droite du premier des 2 blocs, on peut bouger. if (get_block_from_pos_in_table(m_blocs.end()[-2]->get_pos_on_grid().x - 1, m_blocs.end()[-2]->get_pos_on_grid().y) == '.' && m_blocs.end()[-2]->get_pos_on_grid().x > 0) { bloc_side_can_move = true; set_block_from_pos_in_table(m_blocs.back()->get_pos_on_grid().x - 1, m_blocs.back()->get_pos_on_grid().y,m_blocs.back()->get_bloc_char()); set_block_from_pos_in_table(m_blocs.back()->get_pos_on_grid().x, m_blocs.back()->get_pos_on_grid().y, '.'); //move du premier des deux blocs aussi à faire set_block_from_pos_in_table(m_blocs.end()[-2]->get_pos_on_grid().x - 1, m_blocs.end()[-2]->get_pos_on_grid().y,m_blocs.end()[-2]->get_bloc_char()); set_block_from_pos_in_table(m_blocs.end()[-2]->get_pos_on_grid().x, m_blocs.end()[-2]->get_pos_on_grid().y, '.'); } } } if (p_x != 0) //Si on bouge de gauche a droite { //Si nous ne sommes pas au bord du tableau if ((m_blocs.back()->get_pos_on_grid().x != 0 && p_x > 0) || (m_blocs.back()->get_pos_on_grid().x != (nb_col - 1) && p_x < 0)) { // Si tous les conditions sont respectées, on peux alors bouger les 2 blocs. if(bloc_side_can_move) { m_blocs.back()->move_obj(p_x, p_y, p_z, p_button); m_blocs.end()[-2]->move_obj(p_x, p_y, p_z, p_button); } } } if (p_y != 0) // si on bouge vers le bas { for (unsigned int y = 0; y < m_blocs.size(); y++) //Pour tous les blocs, { //Si nous ne sommes pas au fond ou en colision avec un autre bloc en dessous : On bouge if (m_blocs[y]->get_pos_on_grid().y < (nb_lignes - 1) && get_block_from_pos_in_table(m_blocs[y]->get_pos_on_grid().x, m_blocs[y]->get_pos_on_grid().y + 1) == '.' && m_blocs[y]->get_bloc_virus() == false) { m_blocs[y]->move_obj(p_x, p_y, p_z, p_button); set_block_from_pos_in_table(m_blocs[y]->get_pos_on_grid().x, m_blocs[y]->get_pos_on_grid().y,m_blocs[y]->get_bloc_char()); set_block_from_pos_in_table(m_blocs[y]->get_pos_on_grid().x, m_blocs[y]->get_pos_on_grid().y - 1, '.'); } //SINON on lock le bloc else { m_blocs[y]->set_bloc_lock(true); set_block_from_pos_in_table(m_blocs[y]->get_pos_on_grid().x, m_blocs[y]->get_pos_on_grid().y,m_blocs[y]->get_bloc_char()); } } } } void Game::verify_who_fall() { for (unsigned int i = 0; i < m_blocs.size(); i++) { int x = m_blocs[i]->get_pos_on_grid().x; int y = m_blocs[i]->get_pos_on_grid().y + 1; if (m_etat_table[x][y] == '.') { m_blocs[i]->set_bloc_lock(false); } } } void Game::verify_all_grid_clear() { vector<ofVec2f> indice_to_clear{}; //Vector des position a supprimer int nb_blocs_lign = 0; bool get_out = false; //Parcour du tableau d'état pour trouver les ligne horizontales de plus de 4 blocs for (unsigned int i = 0; i < nb_lignes; i++) { for (unsigned int y = 0; y < nb_col; y++) { if (m_etat_table[i][y] != '.') { while (get_out == false && ((y + nb_blocs_lign) <= (nb_col - 1))) //6 doit etre valider. { if (m_etat_table[i][y] == m_etat_table[i][y + 1 + nb_blocs_lign]) { nb_blocs_lign += 1; } else { get_out = true; if(nb_blocs_lign >= 3) { for (unsigned int z = 0; z <= nb_blocs_lign; z++) { indice_to_clear.push_back(ofVec2f((y + z), i)); } y = y + nb_blocs_lign; // ne pas vérifer les blocs déja tagués } nb_blocs_lign = 0; } } get_out = false; } } } //Parcour du tableau d'état pour trouver les ligne verticales de plus de 4 blocs for (unsigned int i = 0; i < nb_lignes; i++) { for (unsigned int y = 0; y < nb_col; y++) { if (m_etat_table[i][y] != '.') { while (get_out == false && ((i + nb_blocs_lign) <= (nb_lignes - 1))) { if (m_etat_table[i][y] == m_etat_table[i + 1 + nb_blocs_lign][y]) { nb_blocs_lign += 1; } else { get_out = true; if(nb_blocs_lign >= 3) { for (unsigned int z = 0; z <= nb_blocs_lign; z++) { indice_to_clear.push_back(ofVec2f(y, (i + z))); } i = i + nb_blocs_lign; // ne pas vérifer les blocs déja tagués } nb_blocs_lign = 0; } } get_out = false; } } } for (unsigned int i = 0; i < indice_to_clear.size(); i++) // Parcour de tous les indices à supprimer dans le tableau d'état et dans le vector d'objet { set_block_from_pos_in_table(indice_to_clear[i].x, indice_to_clear[i].y, '.'); //On met le tableau d'état a jour. for (unsigned int y = 0; y < m_blocs.size(); y++) { if (m_blocs[y]->get_pos_on_grid() == indice_to_clear[i]) { m_blocs.erase(m_blocs.begin() + y); } } game_clear_bloc[indice_sound_clear].play(); if (indice_sound_clear == 2) { indice_sound_clear = 0; m_toggle_level_up = true; } else { indice_sound_clear += 1; m_toggle_level_up = false; } } } vector<Blocs *> Game::get_vecteur_blocs() { return m_blocs; } void Game::add_bloc(int p_type) { m_blocs.push_back(Factoblocs::get_bloc(p_type)); m_blocs.back()->setup(false); m_blocs.push_back(Factoblocs::get_bloc(p_type)); m_blocs.back()->setup(false); m_blocs.size(); } void Game::show_state_table() { string ligne = ""; for (unsigned int i = 0; i < nb_lignes; i++) { for (unsigned int y = 0; y < nb_col; y++) { ligne += m_etat_table[i][y]; } ofLog() << ligne; ligne = ""; } } char Game::get_block_from_pos_in_table(int p_x, int p_y){ return m_etat_table[p_y][p_x]; } void Game::set_block_from_pos_in_table(int p_x, int p_y, char p_char_bloc){ m_etat_table[p_y][p_x] = p_char_bloc; } <file_sep>/src/application.cpp // IFT3100H20_BackgroundColor/application.cpp // Classe principale de l'application. #include <iostream> #include "application.h" void Application::setup() { ofSetWindowTitle("BISK WAR 1.0"); ofSetFrameRate(60); ofDisableArbTex(); ofLoadImage(sphere_bg,"../../data/textures/pinballlevel.jpg"); game_on = *Factogame::get_game(1); all_blocs_are_lock = false; // pilltest.loadModel("BW.obj"); cameras.setPosition(0, 0, -1000); cameras.lookAt(ofVec3f(0, 0, 0)); lights.setPosition(0, 0, 100); lights.lookAt(ofVec3f(0, 0, 0)); cameras.enableOrtho(); } void Application::draw() { ofDisableAlphaBlending(); ofEnableDepthTest(); ofEnableSmoothing(); ofEnableAntiAliasing(); cameras.setVFlip(true); cameras.begin(); lights.enable(); // pilltest.drawFaces(); ofPushMatrix(); ofRotateY(ofGetFrameNum() * 0.1f); ofRotateX(0); sphere_bg.bind(); ofFill(); ofSetColor(200,200,200); ofDrawSphere(0,0,5000); sphere_bg.unbind(); ofPopMatrix(); ofPushMatrix();//matrice de la partie joueur 1 ofScale(1.3,1.3,1.3); ofTranslate(250, -450, 0); // Décalage de la matrice du joueur 1 for (unsigned int i = 0; i < game_on.get_vecteur_blocs().size(); i++) { game_on.get_vecteur_blocs()[i]->show_obj(); } game_on.show_grid(); ofPopMatrix(); game_on.play_level_up(); cameras.disableOrtho(); lights.disable(); cameras.end(); ofEnableAlphaBlending(); ofDisableDepthTest(); ofDisableSmoothing(); ofDisableAntiAliasing(); } void Application::update() { game_on.show_state_table(); all_blocs_are_lock = true; for (unsigned int i = 0; i < game_on.get_vecteur_blocs().size(); i++) { if (game_on.get_vecteur_blocs()[i]->get_bloc_lock() == false) { all_blocs_are_lock = false; } // else // { // // game_on.set_block_from_pos_in_table(game_on.get_vecteur_blocs()[i]->get_pos_on_grid().x, game_on.get_vecteur_blocs()[i]->get_pos_on_grid().y, game_on.get_vecteur_blocs()[i]->get_bloc_char()); // } } if (all_blocs_are_lock) { game_on.verify_all_grid_clear(); game_on.add_bloc(1); } if (ofGetFrameNum() % 20 == 0) game_on.move_obj(0, 50, 0, 0); // game_on.show_state_table(); } void Application::keyPressed(int key) { switch (key) { case ofKey::OF_KEY_LEFT: game_on.move_obj(50, 0, 0, 0); break; case ofKey::OF_KEY_RIGHT: game_on.move_obj(-50, 0, 0, 0); break; case ofKey::OF_KEY_UP: game_on.get_vecteur_blocs().back()->rotate_obj(); break; case ofKey::OF_KEY_DOWN: game_on.move_obj(0, 50, 0, 0); break; } } void Application::keyReleased(int key) { switch (key) { case 106: // touche j game_on.add_bloc(1); break; } } // fonction appelee quand la position du curseur change void Application::mouseMoved(int x, int y) { } void Application::exit() { } // fonction appelee quand la position du curseur change pendant qu'un bouton d'un peripherique de pointage est appuye void Application::mouseDragged(int x, int y, int button) { } // fonction appelee quand un bouton d'un peripherique de pointage est appuye void Application::mousePressed(int x, int y, int button) { } // fonction appelee quand un bouton d'un peripherique de pointage est relâche void Application::mouseReleased(int x, int y, int button) { } // fonction appelee quand le curseur entre dans la fenêtre d'affichage void Application::mouseEntered(int x, int y) { } // fonction appelee quand le curseur sort de la fenêtre d'affichage void Application::mouseExited(int x, int y) { } // fonction appelée pour reset tous les caméra à leur position init. void Application::show_message(string new_message) { }
4ee8baf29f4333f397ee9c9ed3b772ef675bb3a8
[ "C++" ]
14
C++
nokkkkkk/BiskWar
61657a5200da7f8a47c2d2d57ae3476db7ef8503
53bae0c801af7c20c1c3ea20866ce1d187738e74
refs/heads/main
<file_sep># Crash envoy plane This is a test envoy management server to expose crash behaviour of udp clusters as in https://github.com/envoyproxy/envoy/issues/14866. ## Building ``` docker build -t c-m-s:latest . ``` ## Running * start control plane ``` docker run --rm -p8080:8080 -p12345:12345 c-m-s:latest ``` * connect envoy using sample config file ``` envoy -c envoy/envoy-dynamic-v3.yaml --concurrency 1 ``` * trigger change - open in browser http://127.0.0.1:8080 or use curl: ``` curl -s -XPOST 127.0.0.1:8080/triggerChange ``` <file_sep>FROM maven:3.6.3-jdk-11 as build ADD . /src RUN cd /src && mvn package FROM openjdk:11 EXPOSE 8080 12345 RUN mkdir /src COPY --from=build /src/target/crash-management-server-DEV.jar /src/c-m-s.jar COPY --from=build /src/application.properties /src/application.properties WORKDIR /src CMD [ "java", "-jar", "c-m-s.jar" ] <file_sep>package pl.wp.crashmanagementserver; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @RestController @Slf4j public class PublishResource { @Autowired private SnapshotGenerator snapshotGenerator; @RequestMapping(path = "/triggerChange", method = RequestMethod.POST) void triggerChange() { snapshotGenerator.triggerChange(); } }
f05272435a17db8b41619a53e4396574ec46ece8
[ "Markdown", "Java", "Dockerfile" ]
3
Markdown
bartebor/crash-management-server
24f3f071a5c8dd07eac62f4a930633f4832b9dc1
2ddb7a4a804384d5afc3864321fbc23c4303b360
refs/heads/master
<repo_name>utksara/Airport_sim<file_sep>/team8/Source Code/Airport Simulator/src/com/as/airport/Runway.java package com.as.airport; import java.io.*; import java.util.*; public class Runway { public static int total_vacant_runways = 1; public boolean status = false; public int RunwayNumber; public static int count = 1; public Runway() { status = false; RunwayNumber = count; count++; } public boolean getstatus() { //this function will provide the status about whether runway is occupied or not. return status; } public void changestatus() { if(status == true) { status = false; } else status = true; } }<file_sep>/team8/Source Code/Airport Simulator/src/com/as/aicraft/AircraftType.java package com.as.aicraft; public class AircraftType { public String nameOfAircraft; public int runwayTime; public int boardingTime; public String getNameOfAircraft() { return nameOfAircraft; } public void setNameOfAircraft(String nameOfAircraft) { this.nameOfAircraft = nameOfAircraft; } public int getRunwayTime() { return runwayTime; } public void setRunwayTime(int runwayTime) { this.runwayTime = runwayTime; } public int getBoardingTime() { return boardingTime; } public void setBoardingTime(int boardingTime) { this.boardingTime = boardingTime; } } <file_sep>/team8/Source Code/Airport Simulator/src/com/as/aicraft/Aircraft.java package com.as.aicraft; import com.as.airport.*; import com.as.driver.Driver; public class Aircraft { public int AircraftNumber; public AircraftType at=null; public int WaitTime; public boolean status; public String state; public int Gatetime = 0; public int Waittime = 0; public int getAircraftNumber() { return AircraftNumber; } public void setAircraftNumber(int aircraftNumber) { AircraftNumber = aircraftNumber; } public AircraftType getAt() { return at; } public void setAt(AircraftType at) { this.at = at; } public int getWaitTime() { return WaitTime; } public void setWaitTime(int waitTime) { WaitTime = waitTime; } public boolean isStatus() { return status; } public void setStatus(boolean status) { this.status = status; } public void goto_new_position() { if(state == "S") { if(Gate.total_vacant_gates>0){ state = "C"; Gate.total_vacant_gates--; Gatetime = 0; } else Waittime++; } if(state == "C") { Gatetime++; if(Gatetime >= Driver.BoardingTime) { state = "E"; Gate.total_vacant_gates++; } } if(state == "S") { if(Runway.total_vacant_runways>0){ state = "X"; Runway.total_vacant_runways--; } else Waittime++; } } } <file_sep>/team8/Source Code/readme.txt This is Airport Simulator project by Team 8.<file_sep>/team8/Source Code/AirportSIM/src/com/as/Driver/AirportSimulatorGUI.java package com.as.Driver; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import java.awt.Font; import javax.swing.JButton; import java.awt.Color; import javax.swing.JTextField; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.UIManager; import javax.swing.JTable; import javax.swing.JSeparator; public class AirportSimulatorGUI implements ActionListener { private JFrame frame; private JTextField textField; //Number of flight 1 private JTextField textField_1; //Boarding time for flight 1 private JTextField textField_2; // Runwaytime for flight 1 private int NF1=0,NF2=0,NF3=0,BT1=0,BT2=0,BT3=0,RT1=0,RT2=0,RT3=0,PT=0; private JTextField textField_3; //Number of flight 2 private JTextField textField_4; // Boarding time for flight 2 private JTextField textField_5; // Runway time for flight 2 private JTextField textField_6; //Number of flight 3 private JTextField textField_7; //Boarding time for flight 3 private JTextField textField_8; //Runwaytime for flight 3 private JTable table; private JLabel lblRunning; private JTextField textField_9; //input for peak time duration in hrs private JButton btnNewButton; public AirportSimulatorGUI() { initialize(); } public void initialize() { frame = new JFrame(); //Initializing the main frame frame.getContentPane().setBackground(Color.LIGHT_GRAY); // setting the color frame.setBounds(200, 200, 650, 600); // setting the size of input gui frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JLabel lblNewLabel = new JLabel("Enter number of flights at peak time for type 1 : "); //Defining label for number of flight 1 lblNewLabel.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblNewLabel.setBounds(24, 134, 363, 32); frame.getContentPane().add(lblNewLabel); JLabel lblNewLabel_1 = new JLabel("Enter boarding time (BT1) (mins) :"); //Defining label for boarding time of flight 1 lblNewLabel_1.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblNewLabel_1.setBounds(24, 177, 229, 32); frame.getContentPane().add(lblNewLabel_1); JLabel lblEnterRunwaytimert = new JLabel("Enter runwaytime (RT1) (mins) :"); //Defining label runway time of flight 1 lblEnterRunwaytimert.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterRunwaytimert.setBounds(349, 181, 216, 24); frame.getContentPane().add(lblEnterRunwaytimert); btnNewButton = new JButton("Submit"); // Defining submit button btnNewButton.setBackground(UIManager.getColor("MenuItem.selectionBackground")); btnNewButton.setForeground(Color.BLACK); btnNewButton.setFont(new Font("Times New Roman", Font.BOLD, 18)); btnNewButton.setBounds(252, 494, 113, 32); frame.getContentPane().add(btnNewButton); btnNewButton.addActionListener(this); // adding functionality for button textField = new JTextField(); // taking input for number of flight 1 from user textField.setBounds(373, 140, 49, 24); frame.getContentPane().add(textField); textField.setColumns(10); textField_1 = new JTextField(); // taking input for boarding time for flight 1 textField_1.setColumns(10); textField_1.setBounds(272, 183, 49, 24); frame.getContentPane().add(textField_1); textField_2 = new JTextField(); // taking input for runway time for flight 1 textField_2.setColumns(10); textField_2.setBounds(575, 183, 49, 24); frame.getContentPane().add(textField_2); JLabel lblEnterNumberOf = new JLabel("Enter number of flights at peak time for type 2 : "); // label for number of flights 2 lblEnterNumberOf.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterNumberOf.setBounds(24, 258, 363, 32); frame.getContentPane().add(lblEnterNumberOf); textField_3 = new JTextField(); // taking input for number of flight 2 textField_3.setColumns(10); textField_3.setBounds(373, 264, 49, 24); frame.getContentPane().add(textField_3); JLabel lblEnterBoardingTime = new JLabel("Enter boarding time (BT2) (mins) :"); // label for boarding time of flights 2 lblEnterBoardingTime.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterBoardingTime.setBounds(24, 301, 229, 32); frame.getContentPane().add(lblEnterBoardingTime); textField_4 = new JTextField(); // taking input for boarding time of flight 2 textField_4.setColumns(10); textField_4.setBounds(272, 307, 49, 24); frame.getContentPane().add(textField_4); JLabel lblEnterRunwaytimert_1 = new JLabel("Enter runwaytime (RT2) (mins) :"); // label for for runway time of flight 2 lblEnterRunwaytimert_1.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterRunwaytimert_1.setBounds(349, 305, 216, 24); frame.getContentPane().add(lblEnterRunwaytimert_1); textField_5 = new JTextField(); // taking input for runway time of flight 2 textField_5.setColumns(10); textField_5.setBounds(575, 307, 49, 24); frame.getContentPane().add(textField_5); JLabel lblEnterNumberOf_1 = new JLabel("Enter number of flights at peak time for type 3: "); // label for number of flights 3 lblEnterNumberOf_1.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterNumberOf_1.setBounds(24, 373, 363, 32); frame.getContentPane().add(lblEnterNumberOf_1); textField_6 = new JTextField(); // taking input for number of flight 3 textField_6.setColumns(10); textField_6.setBounds(373, 379, 49, 24); frame.getContentPane().add(textField_6); JLabel lblEnterBoardingTime_1 = new JLabel("Enter boarding time (BT3) (mins) :"); // label for boarding time of flights 3 lblEnterBoardingTime_1.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterBoardingTime_1.setBounds(24, 416, 229, 32); frame.getContentPane().add(lblEnterBoardingTime_1); textField_7 = new JTextField(); // taking input for boarding time of flight 3 textField_7.setColumns(10); textField_7.setBounds(272, 422, 49, 24); frame.getContentPane().add(textField_7); JLabel lblEnterRunwaytimert_2 = new JLabel("Enter runwaytime (RT3) (mins):"); // label for for runway time of flight 3 lblEnterRunwaytimert_2.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterRunwaytimert_2.setBounds(349, 420, 216, 24); frame.getContentPane().add(lblEnterRunwaytimert_2); textField_8 = new JTextField(); // taking input for runway time of flight 3 textField_8.setColumns(10); textField_8.setBounds(575, 422, 49, 24); frame.getContentPane().add(textField_8); table = new JTable(); table.setBounds(206, 144, 1, 1); frame.getContentPane().add(table); JSeparator separator = new JSeparator(); separator.setForeground(Color.BLACK); separator.setBackground(Color.LIGHT_GRAY); separator.setBounds(0, 236, 634, 1); frame.getContentPane().add(separator); JSeparator separator_1 = new JSeparator(); //seperator for flight 1 input and flight 2 input separator_1.setForeground(Color.BLACK); separator_1.setBackground(Color.BLACK); separator_1.setBounds(0, 361, 634, 1); frame.getContentPane().add(separator_1); JSeparator separator_2 = new JSeparator(); //seperator for flight 2 input and flight 3 input separator_2.setForeground(Color.BLACK); separator_2.setBackground(Color.LIGHT_GRAY); separator_2.setBounds(0, 46, 634, -1); frame.getContentPane().add(separator_2); JLabel lblAirportSimulator = new JLabel("AIRPORT SIMULATOR"); lblAirportSimulator.setBackground(UIManager.getColor("RadioButtonMenuItem.selectionBackground")); lblAirportSimulator.setForeground(Color.BLACK); lblAirportSimulator.setFont(new Font("Times New Roman", Font.BOLD, 30)); lblAirportSimulator.setBounds(143, 11, 348, 24); frame.getContentPane().add(lblAirportSimulator); JLabel lblEnterTotalDuration = new JLabel("Enter total duration of peak time (hrs):"); lblEnterTotalDuration.setFont(new Font("Times New Roman", Font.BOLD, 16)); lblEnterTotalDuration.setBounds(26, 74, 271, 24); frame.getContentPane().add(lblEnterTotalDuration); textField_9 = new JTextField(); textField_9.setBounds(307, 76, 49, 24); frame.getContentPane().add(textField_9); textField_9.setColumns(10); JSeparator separator_3 = new JSeparator(); separator_3.setForeground(Color.BLACK); separator_3.setBackground(Color.LIGHT_GRAY); separator_3.setBounds(0, 122, 634, 1); frame.getContentPane().add(separator_3); lblRunning = new JLabel("Running..."); lblRunning.setForeground(Color.BLUE); lblRunning.setFont(new Font("Times New Roman", Font.BOLD, 20)); lblRunning.setBounds(272, 494, 113, 32); frame.setVisible(true); } @Override public void actionPerformed(ActionEvent e) { int NF1=0,NF2=0,NF3=0,BT1=0,BT2=0,BT3=0,RT1=0,RT2=0,RT3=0,PT; try { NF1=Integer.parseInt(textField.getText()); // converting text input from user into interger value BT1=Integer.parseInt(textField_1.getText()); RT1=Integer.parseInt(textField_2.getText()); NF2=Integer.parseInt(textField_3.getText()); BT2=Integer.parseInt(textField_4.getText()); RT2=Integer.parseInt(textField_5.getText()); NF3=Integer.parseInt(textField_6.getText()); BT3=Integer.parseInt(textField_7.getText()); RT3=Integer.parseInt(textField_8.getText()); PT=Integer.parseInt(textField_9.getText()); if(NF1>0&&NF2>0&&NF3>0&&BT1>0&&BT2>0&&BT3>0&&RT1>0&&RT2>0&&RT3>0&&PT>0) ; else throw new Exception(""); setValues(NF1,NF2,NF3,BT1,BT2,BT3,RT1,RT2,RT3,PT); synchronized(AirportSimulatorGUI.this) // wait until input is not received { this.notify(); } } catch(Exception e1) { JOptionPane.showMessageDialog(null, "Enter Valid Positive Integer"); // if any of the entered number is not positive integer then error message is displayed } frame.getContentPane().add(lblRunning); //btnNewButton.disable(); frame.getContentPane().remove(btnNewButton); frame.repaint(); } public void dispose() { // for disposing input frame frame.dispose(); } public void setValues(int NF1,int NF2,int NF3,int BT1,int BT2,int BT3,int RT1,int RT2,int RT3,int PT) { this.NF1=NF1; //set value method this.NF2=NF2; this.NF3=NF3; this.BT1=BT1; this.BT2=BT2; this.BT3=BT3; this.RT1=RT1; this.RT2=RT2; this.RT3=RT3; this.PT=PT*60; } public int getNF1() // returning the values to driver(main) class { return NF1; } public int getNF2() { return NF2; } public int getNF3() { return NF3; } public int getBT1() { return BT1; } public int getBT2() { return BT2; } public int getBT3() { return BT3; } public int getRT1() { return RT1; } public int getRT2() { return RT2; } public int getRT3() { return RT3; } public int getPT() { return PT; } } <file_sep>/team8/Source Code/Airport Simulator/src/com/as/airport/Gate.java package com.as.airport; import com.as.driver.*; public class Gate { public static int total_vacant_gates= 0; public int GateNumber; public boolean status; public int assignaircraft () { //this function will assign aircraft number to gate where it is parked. return 0; } public boolean getstatus() { //this function will provide the status about whether gate is occupied or not. return false; } } <file_sep>/team8/Source Code/AirportSIM/src/com/as/Airport/Gate.java package com.as.Airport; public class Gate { int GateNumber; // This variable denotes number assigned to each gate. boolean status; // This variable denotes whether the gate is occupied or not. } <file_sep>/team8/Source Code/AirportSIM/src/com/as/Aircraft/AircraftType.java package com.as.Aircraft; import java.util.LinkedList; public class AircraftType { protected int noOfPlanes = 0; public int runwayTime; //This variable denotes runway time of each aircraft. public int boardingTime; //This variable denotes runway time of each aircraft. public AircraftType(int runwayTime,int boardingTime) { this.runwayTime=runwayTime; this.boardingTime=boardingTime; } public AircraftType() { runwayTime=0; boardingTime=0; } public void createAircrafts(LinkedList<Aircraft> aircraftLinkedList, int noOfType) { for(int i=0;i<noOfType;i++) { Aircraft ac=new Aircraft(this); aircraftLinkedList.add(ac); } } } <file_sep>/team8/Source Code/AirportSIM/src/com/as/Airport/Runway.java package com.as.Airport; public class Runway { boolean status = true; // This variable denotes whether the gate is occupied or not. int runwayNumber; // This variable denotes number assigned to each gate. int rdt=0; }
acf9cab2e40f35831ed1bdf079624e49040dc9db
[ "Java", "Text" ]
9
Java
utksara/Airport_sim
3ba2265e9b8268f220455bebfab9fe1f59afd1c4
b6e763a0aa0871c19da22efe095ace9c89bc7d15
refs/heads/master
<file_sep>server.port=443 server.ssl.key-store=classpath:client-keystore.jks server.ssl.key-store-password=<PASSWORD> server.ssl.key-password=client-key-pass server.ssl.trust-store=classpath:client-truststore.jks server.ssl.trust-store-password=<PASSWORD><file_sep>server.port=8443 server.ssl.key-store=classpath:server-keystore.jks server.ssl.key-store-password=server-keystore-<PASSWORD> server.ssl.key-password=server-key-pass server.ssl.trust-store=classpath:server-truststore.jks server.ssl.trust-store-password=<PASSWORD>-<PASSWORD><file_sep>spring.profiles.active=https api.server.ping=https://localhost:8443/ping<file_sep>package com.example.server; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.http.ResponseEntity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @SpringBootApplication public class ServerApplication extends WebSecurityConfigurerAdapter { static { System.setProperty("javax.net.debug", "ssl"); } public static void main(String[] args) { SpringApplication.run(ServerApplication.class, args); } @RequestMapping(value = "/ping") public ResponseEntity<String> pingServer() { return ResponseEntity.ok("pong"); } @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable() .authorizeRequests() .anyRequest().permitAll(); } }
bd1d80c408442401e29b4060d5bf83e5794e3d91
[ "Java", "INI" ]
4
INI
oxaoo/ssl-comm
da9919050ffd6090d2b8bc27a89ef6eca3dbf6bb
93c0d5733de475bd89fe8dd566c93f96a5e20e87
refs/heads/master
<repo_name>broomy169/cp2406_farrell8_ch11<file_sep>/Programming Exercises/UseDivision.java /** * Created by Graeme on 14/09/2016. */ public class UseDivision { public static void main(String[] args) { DomesticDivision domesticDivision = new DomesticDivision("Accounting", 1, "QLD"); DomesticDivision domesticDivision2 = new DomesticDivision("Human Resources", 2, "QLD"); InternationalDivision internationalDivision = new InternationalDivision("Accounting", 3, "England", "English"); InternationalDivision internationalDivision2 = new InternationalDivision("Human Resources", 4, "Paris", "French"); domesticDivision.display(); domesticDivision2.display(); internationalDivision.display(); internationalDivision2.display(); } }<file_sep>/Programming Exercises/IncomingPhoneCall.java /** * Created by Graeme on 13/09/2016. */ public class IncomingPhoneCall extends PhoneCall { public final static double RATE = 0.02; public IncomingPhoneCall(String phoneNumber){ super(phoneNumber); } @Override public String getPhoneNumber() { return phoneNumber; } @Override public double getPrice() { return price; } @Override public void getInfo() { System.out.println("Incoming phone call " + getPhoneNumber()); System.out.println( RATE + " per call. Total is $" + getPrice()); } } <file_sep>/Programming Exercises/InternationalDivision.java /** * Created by Graeme on 14/09/2016. */ public class InternationalDivision extends Division { protected String country; protected String language; public InternationalDivision(String divisionTitle, int account, String country, String language ){ super(divisionTitle, account); this.country = country; this.language = language; } @Override public void display() { System.out.println("International Division: " + divisionTitle); System.out.println("Account No.: " + accountNum); System.out.println("Located: " + country); System.out.println("Language: " + language); } } <file_sep>/Programming Exercises/PhysicalNewspaperSubscription.java /** * Created by Graeme on 13/09/2016. */ public class PhysicalNewspaperSubscription extends NewspaperSubscription { @Override public void setAddress(String address) { boolean hasDigit = false; this.address = address; for (int i = 0; i< address.length(); ++i){ if(Character.isDigit(address.charAt(i))) hasDigit = true; } if(hasDigit) { rate = 15.00; } else { rate = 0; System.out.println("Address must contain digit"); } } } <file_sep>/Programming Exercises/DemoSubscriptions.java /** * Created by Graeme on 13/09/2016. */ public class DemoSubscriptions { public static void main(String[] args) { PhysicalNewspaperSubscription sub1 = new PhysicalNewspaperSubscription(); PhysicalNewspaperSubscription sub1wrong = new PhysicalNewspaperSubscription(); OnlineNewspaperSubscription sub2 = new OnlineNewspaperSubscription(); OnlineNewspaperSubscription sub2wrong = new OnlineNewspaperSubscription(); sub1.setName("Eric"); sub1.setAddress("10 Yellow St"); display(sub1); sub1wrong.setName("John"); sub1wrong.setAddress("Jelly Court"); display(sub1wrong); sub2.setName("Tim"); sub2.setAddress("<EMAIL>"); display(sub2); sub2wrong.setName("Jerry"); sub2wrong.setAddress("jerryatgmail.com"); display(sub2wrong); } public static void display(NewspaperSubscription subscription) { System.out.println("Name: " + subscription.getName()); System.out.println("Address: " + subscription.getAddress()); System.out.println("Rate: " + subscription.getRate()); System.out.println(); } }
14e594c73dade37a039d919b8855dc696a9c6998
[ "Java" ]
5
Java
broomy169/cp2406_farrell8_ch11
3547e8e064f82e6e0f972a9865526b70f5314fc3
30e6bb9b89722fd9c3b55cbc2c328e5ae3753eb3
refs/heads/master
<repo_name>Joz84/js-exo3-191<file_sep>/src/browser.js const input = document.getElementById("search"); const list = document.getElementById("results"); input.addEventListener("keyup", (event) => { const letters = event.currentTarget.value; fetch(`https://wagon-dictionary.herokuapp.com/autocomplete/${letters}`) .then(response => response.json()) .then((data) => { console.log(data.words); list.innerHTML = ""; data.words.forEach((word) => { list.insertAdjacentHTML("beforeend", `<li>${word}</li>`) }); }); })
ce6f8d682031fab921853f728a2ea43969715709
[ "JavaScript" ]
1
JavaScript
Joz84/js-exo3-191
ba6e7a9641a29b0cacedb0b41cda45d4b5dba697
e88aa66e90494744786b71c5cc9c41514cdd70bf
refs/heads/main
<file_sep># Palindrome-number-checker-using-php A PHP program to check whether given number is palindrome or not <file_sep><?php function palindrome($n){ $num = $n; $sum = 0; while(floor($num)) { $rem = $num % 10; $sum = $sum * 10 + $rem; $num = $num/10; } return $sum; } $input = 1235321; $num = palindrome($input); if($input==$num){ echo "$input is a Palindrome number"; } else { echo "$input is not a Palindrome"; } ?>
f6f27386c3415d2ca7a4b29ce995a0a4173e85ba
[ "Markdown", "PHP" ]
2
Markdown
cyril1010/Palindrome-number-checker-using-php
601c4ae8ff8e04c65f631e91c0d173ba82622191
6ed57cb4ceb0dae674719aa26fb5fba3d95ee159
refs/heads/master
<repo_name>trungchjp/1945<file_sep>/1947/src/GameWindow/Plane.java package GameWindow; import javax.imageio.ImageIO; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; /** * Created by <NAME> on 3/3/2016. */ public class Plane extends PlaneAbstract { int direction; MouseEvent mouseEvent; public Plane(int positionX, int positionY, int speed, int type) { super(positionX, positionY); this.speed = speed; this.type = type; this.bulletManager = new BulletManager(); if( this.type == 1 ){ try { this.sprite = ImageIO.read(new File("Resouces/PLANE4.png")); } catch (IOException e) { e.printStackTrace(); } } else if( this.type == 2 ){ try { this.sprite = ImageIO.read(new File("Resouces/PLANE3.png")); } catch (IOException e) { e.printStackTrace(); } } } public void shot(){ Bullet bullet = new Bullet(this.positionX, this.positionY, this.speed,1); bulletManager.add(bullet); } public void move() { if( this.type == 1 ){ if (direction == 0) { } if (direction == 1) { this.positionY -= this.speed; } else if (direction == 2) { this.positionY += this.speed; } else if (direction == 3) { this.positionX -= this.speed; } else if (direction == 4) { this.positionX += this.speed; } } else if( this.type == 2 ){ this.positionX = mouseEvent.getX(); this.positionY = mouseEvent.getY(); } } public void update(){ this.move(); } public void draw(Graphics g){ g.drawImage(this.sprite, this.positionX, this.positionY, null); this.bulletManager.draw(g); } } <file_sep>/src/GameWindow.java import javax.imageio.ImageIO; import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; /** * Created by <NAME> on 2/27/2016. */ public class GameWindow extends Frame implements KeyListener,Runnable, MouseMotionListener, MouseListener { public Graphics seconds; public Image image; public BufferedImage background; public BufferedImage dan; public Plane plane1; public Plane plane2; public GameWindow(){ //create plane 1 plane1 = new Plane(); plane1.positionX=150; plane1.positionY=300; plane1.speed=3; plane1.type = 0; plane1.bulletManager = new BulletManager(); plane1.bulletSpeed = 5; //create plane 2 plane2 = new Plane(); plane2.type = 1; plane2.bulletManager = new BulletManager(); plane2.bulletSpeed = 5; //create frame this.setTitle("1945"); this.setSize(400,640); this.setVisible(true); this.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { super.windowClosing(e); System.exit(0); repaint(); } } ); //set image for planes and background try{ background = ImageIO.read(new File("Resouces/Background.png")); plane1.sprite = ImageIO.read(new File("Resouces/PLANE3.png")); plane2.sprite = ImageIO.read(new File("Resouces/PLANE4.png")); dan = ImageIO.read(new File("Resouces/DAN.png")); }catch (IOException e) {} //add mouse listener and key listener this.addMouseMotionListener(this); this.addKeyListener(this); this.addMouseListener(this); //hide cursor Toolkit toolkit = Toolkit.getDefaultToolkit(); Point hotSpot = new Point ( 0 , 0 ); BufferedImage cursorImage = new BufferedImage ( 1 , 1 , BufferedImage . TRANSLUCENT ); Cursor invisibleCursor = toolkit . createCustomCursor ( cursorImage , hotSpot , "InvisibleCursor" ); setCursor ( invisibleCursor ); } @Override public void update(Graphics g){ if(image == null){ image = createImage(this.getWidth(), this.getHeight()); seconds = image.getGraphics(); } seconds.setColor(getBackground()); seconds.fillRect(0,0, getWidth(), getHeight()); seconds.setColor(getForeground()); paint(seconds); g.drawImage(image,0,0,null); } public void paint(Graphics g){ g.drawLine(0,0,100,100); g.drawImage(background,0,0,null); plane1.draw(g); plane1.bulletManager.draw(g); plane2.draw(g); plane2.bulletManager.draw(g); } @Override public void keyTyped(KeyEvent e) { } @Override public void keyPressed(KeyEvent e) { //update plane1's position when press a key if(e.getKeyChar()=='w'){ plane1.direction=1; } else if(e.getKeyChar()=='s'){ plane1.direction=2; } else if(e.getKeyChar()=='a'){ plane1.direction=3; } else if(e.getKeyChar()=='d'){ plane1.direction=4; } else if (e.getKeyCode() == KeyEvent.VK_SPACE ){ //create bullet and add to bullet manager vector Bullet newBullet = new Bullet(plane1.positionX,plane1.positionY,1,plane1.Dam,plane1.bulletSpeed,dan); plane1.bulletManager.add(newBullet); } } @Override public void keyReleased(KeyEvent e) { plane1.direction=0; } @Override public void run() { int x=0; while (true){ //repaint plane1 plane1.update(); plane1.bulletManager.update(); plane2.bulletManager.update(); repaint(); try{ Thread.sleep(17); }catch (InterruptedException e) { e.printStackTrace(); } } } @Override public void mouseDragged(MouseEvent e) { } @Override public void mouseMoved(MouseEvent e) { //repaint plane2 plane2.e = e; plane2.update(); } @Override public void mouseClicked(MouseEvent e) { } @Override public void mousePressed(MouseEvent e) { //create bullet and add to bullet manager vector Bullet newBullet = new Bullet(plane2.positionX,plane2.positionY,1,plane2.Dam,plane2.bulletSpeed,dan); plane2.bulletManager.add(newBullet); } @Override public void mouseReleased(MouseEvent e) { } @Override public void mouseEntered(MouseEvent e) { } @Override public void mouseExited(MouseEvent e) { } } <file_sep>/1947/src/GameWindow/PlaneAbstract.java package GameWindow; import java.awt.*; import java.awt.image.BufferedImage; /** * Created by <NAME> on 3/4/2016. */ public abstract class PlaneAbstract extends GameObject { int speed; int type; BufferedImage sprite; BulletManager bulletManager; public PlaneAbstract( int speed, int type){ super(); this.speed = speed; this.type = type; } public abstract void move(); public abstract void update(); public abstract void draw(Graphics g); } <file_sep>/src/Plane.java import java.awt.*; import java.awt.event.MouseEvent; import java.awt.image.BufferedImage; public class Plane { public int positionX; public int positionY; public int speed; public int HP; public int Dam; public int type; public BufferedImage sprite; public int direction; public MouseEvent e; public BulletManager bulletManager; public int bulletSpeed; public void move(){ if (this.type == 0){ if(direction==0){ } if( direction == 1 ){ this.positionY-=this.speed; }else if( direction== 2 ){ this.positionY+=this.speed; }else if( direction == 3 ){ this.positionX-=this.speed; }else if( direction == 4 ){ this.positionX+=this.speed; } } else { this.positionX = this.e.getX(); this.positionY = this.e.getY(); } } public void update() { this.move(); } public void draw(Graphics g) { g.drawImage(this.sprite,this.positionX,this.positionY,null); } }
48ac61ffffec6cc8f22a963e57603122ead129cf
[ "Java" ]
4
Java
trungchjp/1945
e78370dd9cecaeab610d6fcbf23d58a3251fab1a
895576a039ab233704569f0a63a89a79853860fc
refs/heads/master
<file_sep>package main import ( "fmt" "github.com/julienschmidt/httprouter" "log" "net/http" ) func Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { fmt.Fprint(w, "pipe.services!\nThis will later serve the UI") } func FlowHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { fmt.Fprintf(w, "Account id: %s\nFlow id: %s\n", ps.ByName("account"), ps.ByName("flow")) } func FlowDefHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { fmt.Fprintf(w, "This endpoint will show the definition of a flow\n") fmt.Fprintf(w, "POST to this endpoint to send info to the flow\n") fmt.Fprintf(w, "Account id: %s\nFlow id: %s\n", ps.ByName("account"), ps.ByName("flow")) } func main() { log.Println("SERVER STARTING") log.Println("===============") log.Println("AVAILABLE ON: 127.0.0.1:4242") router := httprouter.New() router.GET("/", Index) router.GET("/account/:account/flow/:flow", FlowDefHandler) router.POST("/account/:account/flow/:flow", FlowHandler) log.Fatal(http.ListenAndServe(":4242", router)) } <file_sep>Server ====== The server will have two purposes * Serve the UI * Run the user flows Currently there are only three endpoints: 1) GET: '/' which serves the root/index 2) GET: '/account/:account\_id/flow/:flow\_id' which returns the definition of a flow 3) POST: '/account/:account\_id/flow/:flow\_id' which puts the request into a flow As the UI progresses there will obviously be more endpoints to allow the UI to do what it needs to do.
4ed390c76527786efe20129b3b6fa79fe1394d86
[ "Markdown", "Go" ]
2
Go
michaelkirschbaum/pipe
3bda58f1effa7bd3d05808135099128ac49ac732
1edad1f908ee4cd578c0a10d1a57ff1f5b5981de
refs/heads/master
<file_sep>// Functional Component import React from 'react' // @Normal Convention // function Greet(){ // return <h1> Hello love</h1> // } // @ES6 Convention const Greet = (props) => { console.log(props); return ( <div> <h1>Hello {props.name} aka {props.heroName}</h1> {props.children} </div> )} // Destructing props in functional component // const Greet = ({name,heroName,children}) => { // return ( // <div> // <h1>Hello {name} aka {heroName}</h1> // {children} // </div> // )} export default Greet // Named Export // export const Greet =() => <h1>Hello love</h1> // Here we'll need to export the component with the same name in // App.js ie Greet<file_sep>// CodeVolution V18 import React from 'react' import Person from './Person' function NameList() { const persons = [ { id:1, name:'Bruce', age: 30, skills : 'React' }, { id:2, name:'Clark', age: 25, skills : 'Angular' }, { id:3, name:'Diana', age: 28, skills : 'Vue' } ] // Key Prop is a special prop needed to be included in a list of elements.They // should be unique for every element of the list (eg: person.id) // They are not accessible in child component const personList = persons.map(person => ( <Person key={person.id} person={person}/> )) return <div>{personList}</div> } export default NameList <file_sep>import logo from './logo.svg'; import './App.css'; import Greet from './components/Greet' import Welcome from './components/Welcome'; import Hello from './components/Hello'; import Message from './components/Message'; import Counter from './components/Counter'; import FunctionClick from './components/FunctionClick'; import ClassClick from './components/ClassClick'; import EventBind from './components/EventBind'; import ParentComponent from './components/ParentComponent'; import UserGreeting from './components/UserGreeting'; import NameList from './components/NameList' import Stylesheet from './components/Stylesheet'; import Inline from './components/Inline'; import './components/appStyle.css' import styles from './components/appStyles.module.css' import Form from './components/Form'; import LifecycleA from './components/LifecycleA'; import RefsDemo from './components/RefsDemo'; function App() { return ( <div className="App"> {/* ============================== */} {/* ============================== */} {/* Advance Topics in React's Docs */} {/* ============================== */} {/* ============================== */} <RefsDemo /> {/* ============================= */} {/* ============================= */} {/* // Basic topics in React docs */} {/* ============================= */} {/* ============================= */} {/* <LifecycleA /> */} {/* <Form /> */} {/* <h1 className='error'>Error</h1> <h1 className={styles.success}>Success</h1> */} {/* <Inline /> */} {/* <Stylesheet primary={!false}/> */} {/* <NameList /> */} {/* <UserGreeting /> */} {/* <ParentComponent /> */} {/* <EventBind /> */} {/* <ClassClick /> */} {/* <FunctionClick></FunctionClick> */} {/* <Counter /> */} {/* <Message/> */} {/* <Greet name="Damon" heroName="Vampire"/> <Greet name="Klaus " heroName="Hybrid"> <p>Hello there love</p> </Greet> <Greet name="Caroline" heroName="Love"> <button>Click me</button> </Greet> */} {/* <Welcome name="Damon" heroName="Vampire"/> */} </div> ); } export default App;
613aaa80be0ec933349448bb8542336efda734ca
[ "JavaScript" ]
3
JavaScript
apoorv-asc/Intro-to-React
22984d0883c48d667abb599e8891c42abd76e15c
ddbd32b46ffa1df5bbe71a8a95caeb645132396a
refs/heads/master
<repo_name>im-p/Python<file_sep>/PandasExercises.py # -*- coding: utf-8 -*- """ Created on Fri Jan 11 13:55:21 2019 @author: admin """ import pandas as pd import numpy as np #Pandas program to convert a Panda module Series to Python list and it’s type. """ s = pd.Series([1,2,3,4,5]) print("Pandas Series and type") print(s) print(type(s)) print("COnvert Padas Series to Python list") print(s.tolist()) print(type(s.tolist())) """ #Write a Python program to add, subtract, multiple and divide two Pandas Series """ s1 = pd.Series([2,4,6,8,10]) s2 = pd.Series([1,3,5,7,9]) print(np.add(s1, s2)) print(np.subtract(s1,s2)) print(np.divide(s1,s2)) print(s1 * s2) """ #Write a Pandas program to compare the elements of the two Pandas Series """ s1 = pd.Series([2,4,6,8,10]) s2 = pd.Series([1,3,5,7,10]) print("Series1:") print(s1) print("Series2:") print(s2) print("Greather than:") print(s1 > s2) print("Less than:") print(s1 < s2) print("Equals:") print(s1 == s2) """ #Write a Python program to convert a dictionary to a Pandas series """ d1 = {"a":100, "b":200, "c":300, "d":400, "e":800} new_series = pd.Series(d1) print(new_series) """ # Write a Python program to convert a NumPy array to a Pandas series """ n = np.array([10, 20, 30, 40, 50]) new_series = pd.Series(n) print(new_series) """ #Write a Python program to change the data type of given a column or a Series """ s1 = pd.Series(["100", "200", "python", "300.12", "400"]) print(s1) print("Change datatype to numeric:") s2 = pd.to_numeric(s1, errors="Error") print(s2) """ #Write a Python Pandas program to convert the first column of a DataFrame as a Series """ df = pd.DataFrame({"col1": [1,2,3,4,57,11], "col2":[4,5,6,9,5,0], "col3": [7,5,8,12,1,11]}) print("Orifinal Dataframe:") print(df) s1 = df.iloc[:,0] print("\n1st column as a Series:") print(s1) print(type(s1)) """ # Write a Pandas program to convert a given Series to an array """ s1 = pd.Series(["100", "200", "python", "300.12", "400"]) print("Original data Series:") print(s1) a = np.array(s1.values.tolist()) print (a) """ #Write a Pandas program to convert Series of lists to one Series """ s = pd.Series([["Red", "Green", "White"], ["Red", "Black"], ["Yellow"]]) print("Original Series of list") print(s) s = s.apply(pd.Series).stack().reset_index(drop=True) print("One Series") print(s) """ #Write a Pandas program to sort a given Series """ s = pd.Series(["100", "200", "python", "300.12", "400"]) print("Original Data Series:") print(s) new_series = pd.Series(s).sort_values() print(new_series) """ #Write a Pandas program to add some data to an existing Series """ s = pd.Series(["100", "200", "python", "300.12", "400"]) print("Original Data Series:") print(s) add = s.append(pd.Series(["500", "php"])) print(add) """ #Write a Pandas program to create a subset of a given series based on value and condition """ s = pd.Series([1,2,3,4,5,6,7,8,9,10]) print("Original Data Series:") print(s) print("\nSubset of the above Data Series:") new_s = s[s < 6] print(new_s) """ #Write a Pandas program to change the order of index of a given series """ s = pd.Series(data = [1, 2, 3, 4, 5], index = ["A", "B", "C", "D", "E",]) print("Original Data Series:") print(s) print("Data Series after changing the order of index:") new_series = s.reindex(index = ['B','A','C','D','E']) print(new_series) """ #Write a Pandas program to create the mean and standard deviation of the data of a given Series """ s = pd.Series([1,2,3,4,5,6,7,8,9,5,3]) print("Original Data Series:") print(s) mean = pd.Series(s.mean()) #print(s.mean()) print("Mean of the Data Set:") print(mean) print("Standard deviation of the Dataset:") print(s.std()) """<file_sep>/bubble.py # Kuplalajittelu # käyttää sisäistä silmukkaa import random import time import string from random import choices from string import ascii_uppercase def bubblesort(list): #käynnistää ajastimen start = time.time() #Käydään lista läpi for i in range (0, len(list)-1): #muuttujaan vaihto talletaan tieto, siitä onko vaihto tehty IsSorted = False #käydään lista läpi uudelleen, jotta voidaan tarkistaa tehdäänkö vaihtoja # len(list) - i - 1 estää algoritmia käymästä läpi jo järjestyksessä perällä olevia elementtejä for j in range(0, len(list) - i - 1): #katsotaan onko oikeilla puolella oleva elementti suurempi kuin vasemmalla oleva if list[j] > list [j+1]: #jos vasemmanpuoleinen elementti on suurempi kuin oikea, vaihdetaan niiden paikka #jatketaan niin piktaan kunnes viimeinen elementti i on on paikallan list[j], list[j+1] = list[j+1], list[j] IsSorted = True #jos kahta elementtia ei vaihdeta niin lopetataan if IsSorted == False: break #pysäyttää ajastimen stop = time.time() #tulostaa ajan print("Aikaa kului: ",stop-start) return list #paras skenaario def Best(x): list = [i for i in range(x)] return list #huonoin skenaario def Worst(x): reverse = Best(x)[::-1] return reverse #satunnaislukuja/keskiarvo def Average(a,b): randoms = random.sample(range(a),b) return randoms #omaa lisää satunnaiset merkkijonot def Strings(x): three_letter_words = ["".join(choices(ascii_uppercase, k=3)) for _ in range(x)] return three_letter_words print("Worst case") print(bubblesort(Worst(10))) print("Average case") print(bubblesort(Average(10,10))) print("Best case") print(bubblesort(Best(10))) print("Strings") print(bubblesort(Strings(10)))
4b88f5f5cd216ea5dfab01bbe0640cd66e12cff5
[ "Python" ]
2
Python
im-p/Python
43d6ed7a3441ee11366a24c7e8d22675f1bd9b90
0bfa4b5c16d6f6a1ba994ebcc9bbb1b1e715c08e
refs/heads/master
<file_sep>package pl.net.kopczynski.blockchain.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import org.web3j.protocol.Web3j; import org.web3j.protocol.core.methods.response.Web3ClientVersion; import pl.net.kopczynski.blockchain.contract.HelloWorld; import pl.net.kopczynski.blockchain.contract.Voting; import pl.net.kopczynski.blockchain.service.DeploymentService; import java.io.IOException; import java.math.BigInteger; @RestController public class BlockchainController { @Autowired private Web3j web3j; @Autowired private DeploymentService deploymentService; @GetMapping("/client") public String connect() throws IOException { Web3ClientVersion web3ClientVersion = web3j.web3ClientVersion().send(); return web3ClientVersion.getWeb3ClientVersion(); } @GetMapping("/hello") public String hello() throws Exception { HelloWorld contract = deploymentService.helloWorldContract(); return contract.hello().send(); } @PostMapping("/vote") public void vote(@RequestParam("candidateId") Long candidateId) throws Exception { Voting voting = deploymentService.votingContract(); voting.vote(BigInteger.valueOf(candidateId)).send(); } @GetMapping("/votes") public BigInteger votes(@RequestParam("candidateId") Long candidateId) throws Exception { Voting voting = deploymentService.votingContract(); return voting.candidates(BigInteger.valueOf(candidateId)).send(); } } <file_sep>#!/usr/bin/env bash WEB3J="/Users/tkopczynski/bin/web3j-4.0.1/bin/web3j" REPOROOT=$(git rev-parse --show-toplevel) $WEB3J truffle generate $REPOROOT/build/contracts/$1.json -p pl.net.kopczynski.blockchain.contract -o $REPOROOT/src/main/java/
7c3158dd56ab91e6aaf85239608be29b20ede923
[ "Java", "Shell" ]
2
Java
tkopczynski/blockchain-hello-world
2e1f4230c8a7e313203de98ff702159c757c0808
57ca58935a5e958b91bf8173beb899184c0da3fc
refs/heads/master
<repo_name>sca4cs/JavaScript-III<file_sep>/assignments/this.js /* The for principles of "this"; * in your own words. explain the four principles for the "this" keyword below. * * 1. window - 'this' refers to the window when there is no object to point to * 2. implicit - 'this' refers to the object from within the object * 3. explicit - 'this' refers to the object from outside the object * 4. new - 'this' refers to an object created by a constructor function * * write out a code example of each explanation above */ // Principle 1 // code example for Window Binding function sayName(){ console.log(this.name); } sayName(); // Principle 2 // code example for Implicit Binding const myObject = { 'greeting': 'Hello', 'sayHello': function(name) { console.log(`${this.greeting} my name is: ${name}`); } } myObject.sayHello("Shannon"); // Principle 3 // code example for New Binding function CandyFactory(flavor) { this.flavor = flavor; this.speak = function() { console.log(`${this.flavor} is my favorite flavor of candy.`) } } const susie = new CandyFactory('Cherry'); susie.speak(); // Principle 4 // code example for Explicit Binding const myObject = { 'name': 'Shannon', 'age': 24 } function sayName() { console.log(`My name is: ${this.name}`); } sayName.call(myObject);
b07e8a269b9b7804e9841b2ef0c03c79e5f21daf
[ "JavaScript" ]
1
JavaScript
sca4cs/JavaScript-III
d2973b911e54f4b4f1d81bfbdea2dc423e40e375
97d347d4fb54c0b0bf0f91424d4c2141c39605d8
refs/heads/master
<repo_name>nik1811e/shop_project<file_sep>/public/script/menu.js function getMenu(type) { $.ajax({ url: "/api/menu/getmenu", type: "POST", dataType: "json", data: {"type_food": type}, success: (data) => { drawTable(data); } }) } function drawTable(data) { let row = $("<tr />"); $("#foodTable").append(row); row.append($("<th class='name'>Name</th>" + "<th class='price'>Price</th>" + "<th class='action'>Action</th>")); for (let i = 0; i < data.length; i++) { drawRow(data[i]); } } function drawRow(rowData) { let row = $("<tr />"); $("#foodTable").append(row); row.append($( "<td>" + rowData.name + "</td>" + "<td>" + rowData.price + "</td>" + "<td><a><img src='../images/cart.png' class='cart' onclick=\"addtocart('" + rowData.name + "\'); \"></a></ad></td>")); } function addtocart(data) { $.ajax({ url: "/api/order/tocart", type: "POST", dataType: "json", data: {"name": data}, success: (data) => { if (data) { countCart(); totalOrder(); } } }) } function countCart() { $.ajax({ url: "/api/order/countcart", type: "GET", dataType: "json", success: (result) => { $('#countOrder').text("Товаров в корзине: " + JSON.stringify(result)); } }) } function totalOrder() { $.ajax({ url: "/api/order/totalcart", type: "GET", dataType: "json", success: (result) => { $('#totalOrder').text("Cумма заказа: " + JSON.stringify(result)); } }) }<file_sep>/public/script/index.js function firstStartApp() { $.ajax({ url: "/api/auth/firststartapp", type: "GET", success: (result) => { if (result) { // let tmp = JSON.stringify(result).replace(/"/gi, ''); // // if (tmp === "admin") { // window.location.href = "/admin.html"; // } // if (tmp === "user") { // window.location.href = "/main.html"; // } // if (tmp === "err") { // window.location.href = "/index.html"; // } } } }) } function checkPres(data) { $.ajax({ url: "/api/auth/getpermissions", type: "POST", data: {email: data}, success: (result) => { if (result) { let tmp = JSON.stringify(result).replace(/"/gi, ''); if (tmp === "admin") { window.location.href = "/admin.html"; } if (tmp === "user") { window.location.href = "/main.html"; } if (tmp === "err") { window.location.href = "/index.html"; } } } }) } function register() { let id = { "email": $("#email").val(), "password": $("#<PASSWORD>").val(), "lastname": $("#lastname").val(), "firstname": $("#firstname").val() }; console.log(JSON.stringify(id)); $.ajax({ type: 'POST', data: id, async: false, url: "api/auth/register", success: (data) => { window.location.href = "/index.html"; // $.ajax({ // type: 'POST', // data: id, // async: false, // url: "api/auth/login", // success: (data) => { // location.href = ("/main.html"); // } // }) } }) } function login() { let id = { "email": document.getElementById("email_login").value, "password": document.getElementById("password_login").value }; $.ajax({ type: 'POST', data: id, url: "api/auth/login", success: function (data) { checkPres(id.email); } }) } $(document).ready(() => { $("#regButton").click(register); }); <file_sep>/public/script/admin.js function checkPresAdmin() { $.ajax({ url: "/api/auth/getpermissionsadmin", type: "GET", success: (result) => { if (result) { let tmp = JSON.stringify(result).replace(/"/gi, ''); // if (tmp === "admin") { // window.location.href = "/admin.html"; // } if (tmp === "user") { window.location.href = "/main.html"; } if (tmp === "err") { window.location.href = "/index.html"; } } } }) } function countUsers() { $.ajax({ url: "/api/auth/countusers", type: "GET", success: (result) => { $('#countUser').text(result); } }) } function countOrders() { $.ajax({ url: "/api/order/countorders", type: "GET", success: (result) => { $('#countOrder').text(result); } }) } // menu == food function countMenu() { $.ajax({ url: "/api/menu/countmenu", type: "GET", success: (result) => { $('#countMenu').text(result); } }) } function totalAllOrders() { $.ajax({ url: "/api/order/totalallorders", type: "GET", success: (result) => { $('#totalOrder').text(result); } }) } function getAllMenu() { $.ajax({ url: "/api/menu/getallmenu", type: "GET", dataType: "json", success: (data) => { drawTable(data); } }) } function drawTable(data) { let row = $("<tr />"); $("#foodTable").append(row); row.append($( "<th class='name'>Name</th>" + "<th class='price'>Price</th>" + "<th class='type'>Type</th>" + "<th class='delete'>Action</th>" )); for (let i = 0; i < data.length; i++) { drawRow(data[i]); } } function drawRow(rowData) { let row = $("<tr />"); $("#foodTable").append(row); row.append($( "<td>" + rowData.name + "</td>" + "<td>" + rowData.price + "</td>" + "<td>" + rowData.type_food + "</td>" + "<td>" + "Change food&nbsp&nbsp<a><img src='../images/update.png' class='cart' onclick=\"PopUpShow('" + rowData.name + ',' + rowData.price + ',' + rowData.type_food + "\');\"></a>" + "&nbsp&nbsp" + "Delete&nbsp&nbsp<a><img src='../images/delOne.png' class='cart' onclick=\"delFood('" + rowData.name + "\');\"></a>" + "</td>" )); } function addFood() { let food = { "name": $("#nameFood").val(), "price": $("#priceFood").val(), "type_food": $("#typeFood").val() }; console.log(JSON.stringify(food)); $.ajax({ type: 'POST', data: food, url: "/api/menu/addfood", success: function (data) { location.reload(); } }) } function delFood(data) { $.ajax({ type: 'DELETE', data: {"name": data}, url: "/api/menu/delfood", success: function (data) { location.reload(); } }); } // // function getIdFood(data) { // $.ajax({ // type: 'POST', // data: {name: data.name}, // url: "/api/menu/getidfood", // success: (result) => { // console.log(result); // } // }); // } function clearFood() { $("#nameFood").val(''); $("#priceFood").val(''); $("#typeFood").val(''); } function updateFood() { let food = { "name": $("#nameF").val(), "price": $("#priceF").val(), "type_food": $("#typeFoodF").val() }; $.ajax({ type: 'POST', data: food, url: "/api/menu/updatefood", success: function (data) { location.reload(); } }); } function PopUpShow(data) { event.preventDefault(); // выключaем стaндaртную рoль элементa $('#overlay').fadeIn(400, // снaчaлa плaвнo пoкaзывaем темную пoдлoжку () => { // пoсле выпoлнения предъидущей aнимaции $('#modal_form') .css('display', 'block') // убирaем у мoдaльнoгo oкнa display: none; .animate({opacity: 1, top: '50%'}, 200); // плaвнo прибaвляем прoзрaчнoсть oднoвременнo сo съезжaнием вниз }); let arr = data.split(','); $("#nameF").val(arr[0]); $("#priceF").val(arr[1]); $("#typeFoodF").val(arr[2]); } function PopUpHide(){ $("#modal_form").hide(); $("#overlay").hide(); } // user function getAllUsers() { $.ajax({ url: "/api/auth/getallusers", type: "GET", dataType: "json", success: (data) => { drawTableUser(data); } }) } function drawTableUser(data) { let row = $("<tr />"); $("#userTable").append(row); row.append($( "<th class='name'>Email</th>" + "<th class='price'>Firstname</th>" + "<th class='type'>Lastname</th>" + "<th class='delete'>Permissions</th>" + "<th class='delete'>Action</th>" )); for (let i = 0; i < data.length; i++) { drawRowUser(data[i]); } } function drawRowUser(rowData) { let row = $("<tr />"); $("#userTable").append(row); row.append($( "<td>" + rowData.email + "</td>" + "<td>" + rowData.firstname + "</td>" + "<td>" + rowData.lastname + "</td>" + "<td>" + rowData.permissions + "</td>" + "<td>" + "Change permissions&nbsp&nbsp<a><img src='../images/update.png' class='cart' onclick=\"updateUser('" + rowData.email + "\');\"></a>" + "&nbsp&nbsp&nbsp&nbsp" + "Delete user&nbsp&nbsp<a><img src='../images/delOne.png' class='cart' onclick=\"delUser('" + rowData.email + "\');\"></a>" + "</td>" )); } function delUser(data) { $.ajax({ type: 'DELETE', data: {"email": data}, url: "/api/auth/deluser", success: function (data) { location.reload(); } }); } function updateUser(data) { $.ajax({ type: 'POST', data: {"email": data}, url: "/api/auth/updateuser", success: function (data) { location.reload(); } }); } $(document).ready(() => { $("#btnAddFood").click(addFood); }); // $(document).ready(() => { // $("#btnDeleteFood").click(delFood); // }); $(document).ready(() => { $("#btnClearFood").click(clearFood); }); $(document).ready(() => { $("#modal_close").click(PopUpHide); });<file_sep>/public/script/main.js function checkPres(data) { $.ajax({ url: "/api/auth/getpermissions", type: "POST", data: {email: data}, success: (result) => { if (result) { let tmp = JSON.stringify(result).replace(/"/gi, ''); // if (tmp === "admin") { // window.location.href = "/admin.html"; // } // if (tmp === "user") { // window.location.href = "/main.html"; // } if (tmp === "err") { window.location.href = "/index.html"; } } } }) } function getlogin() { let user = ""; let cookieBrowser = $.cookie('x-access-token'); if (cookieBrowser !== undefined) { $.ajax({ url: "/api/auth/getname", type: "GET", success: (result) => { if (result) { let tmp = JSON.stringify(result).replace(/"/gi, ''); user = tmp; $('#userName').text("<NAME>, " + user); return result; } } }) } else { window.location.href = "/index.html"; } } function logout() { $.ajax({ url: "/api/auth/logout", type: "GET", success: (result) => { $.removeCookie('x-access-token'); window.location.href = "/"; } }) }<file_sep>/model/orders.js module.exports = (Sequelize, sequelize) => { return sequelize.define('orders', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, id_order: Sequelize.INTEGER, date_order: Sequelize.STRING, status: Sequelize.STRING, count: Sequelize.INTEGER }); };<file_sep>/services/orders.js "use strict"; const jwt = require('jsonwebtoken'); const statusWait = "wait"; const statusPaid = "paid"; module.exports = (orderRepository, foodRepository, userRepository, errors) => { return { addToCart: addToCart, countCart: countCart, totalCart: totalCart, historyOrder: historyOrder, getItemCart: getItemCart, delAllFromCart: delAllFromCart, delOneFromCart: delOneFromCart, pay: pay, countOrders: countOrders, totalAllOrders: totalAllOrders }; function addToCart(data, token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { foodRepository.findOne({ where: {name: data.name}, attributes: ['id'] }) .then((resultFR) => { orderRepository.findOne({ where: { authId: decode.__user_id, itemId: resultFR.id, status: statusWait }, attributes: ['count', 'authId', 'itemId'] }) .then((resultOR) => { if (resultOR.itemId === resultFR.id) { let tmpCount = resultOR.count + 1; orderRepository.update({count: tmpCount}, { where: { itemId: resultFR.id, authId: decode.__user_id, status: statusWait } }); tmpCount = 0; } else { let order = { "itemId": resultFR.id, "authId": decode.__user_id, "count": 1, "status": statusWait }; Promise.all([orderRepository.create(order)]) .then(() => resolve({success: "ok, success"})) .catch(() => reject({error: "item wasn't add to cart..."})); } resolve({success: true}); }) .catch(() => { let order = { "itemId": resultFR.id, "authId": decode.__user_id, "count": 1, "status": statusWait }; Promise.all([orderRepository.create(order)]) .then(() => resolve({success: "ok, success"})) .catch(() => reject({error: "item wasn't add to cart..."})); }) }) .catch(() => reject(errors.notFound)); } }); }); } function countCart(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { orderRepository.findAll({ where: {authId: decode.__user_id, status: statusWait}, attributes: ['count'] }) .then((resultOR) => { let count = 0; for (let i = 0; i < resultOR.length; i++) { count += resultOR[i].count; } resolve(count); }) .catch(() => reject(errors.notFound)) } }); }) } function totalCart(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { orderRepository.findAll({ where: {authId: decode.__user_id, status: statusWait}, attributes: ['itemId', 'count'], include: { model: foodRepository, attributes: ['price'] }, }) .then((result) => { let total = 0; for (let i = 0; i < result.length; i++) { total += result[i].count * result[i].item.price; } resolve(total); }) .catch(() => reject(errors.notFound)) } }); }) } function historyOrder(token) { return new Promise((resolve, reject) => { jwt.verify(token, 'EN<PASSWORD>', (err, decode) => { if (err) return reject(err); else { orderRepository.findAll({ where: {authId: decode.__user_id, status: statusPaid}, attributes: ['itemId', 'count', 'date_order', 'id_order'], include: { model: foodRepository, attributes: ['name', 'price'] }, }) .then((result) => { let resJson = []; for (let i = 0; i < result.length; i++) { let tmp = { id_order: result[i].id_order, name: result[i].item.name, price: result[i].item.price, count: result[i].count, date_order: result[i].date_order }; resJson.push(tmp) } resolve(resJson); }) .catch(() => reject(errors.notFound)) } }); }) } function getItemCart(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { orderRepository.findAll({ where: {authId: decode.__user_id, status: statusWait}, attributes: ['itemId', 'count'], include: { model: foodRepository, attributes: ['name', 'price'] }, }) .then((result) => { let resJson = []; for (let i = 0; i < result.length; i++) { let tmp = { name: result[i].item.name, price: result[i].item.price, count: result[i].count }; resJson.push(tmp) } resolve(resJson); }) .catch(() => reject(errors.notFound)) } }); }) } function delAllFromCart(data, token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { reject(errors.unauthorized); } else { foodRepository.findOne({ where: {name: data.name}, attributes: ['id'] }) .then((resultFR) => { orderRepository.destroy({ where: {authId: decode.__user_id, itemId: resultFR.id} }) .then((resultOR) => { // resolve(resultOR); resolve({"success": "delete all item."}) }) .catch(() => reject(errors.notFound)); }) .catch(() => reject(errors.notFound)); } }) }) } function delOneFromCart(data, token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { reject(errors.unauthorized); } else { foodRepository.findOne({ where: {name: data.name}, attributes: ['id'] }) .then((resultFR) => { orderRepository.findOne({ where: {authId: decode.__user_id, itemId: resultFR.id}, attributes: ['count'] }) .then((resultOR) => { if (resultOR.count === 1) { orderRepository.destroy({ where: {authId: decode.__user_id, itemId: resultFR.id} }) .then((resultOR) => { // resolve(resultOR); resolve({"success": "delete one item."}) }) .catch(() => reject(errors.notFound)); } else { let tmpCount = resultOR.count - 1; orderRepository.update({count: tmpCount}, { where: { authId: decode.__user_id, itemId: resultFR.id } }); tmpCount = 0; resolve({"success": "delete one item."}) } }) .catch(() => reject(errors.notFound)); }) .catch(() => reject(errors.notFound)); } }) }) } function pay(token) { const date = new Date(); let dateNow = date.getDate() + "." + (date.getMonth() + 1) + "." + date.getFullYear(); return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { reject(err); } else { orderRepository.count({ where: {authId: decode.__user_id, status: statusWait}, }) .then((resultOR) => { if (resultOR === 0) { reject(errors.notFound); } else { orderRepository.max('id_order', {}) .then((resultIO) => { let tmpIdOrder = 0; if (isNaN(resultIO)) { tmpIdOrder = 1; orderRepository.update({ status: statusPaid, date_order: dateNow, id_order: tmpIdOrder }, { where: { authId: decode.__user_id, status: statusWait } }); tmpIdOrder = 0; resolve({"success": "Pay success!"}) } else { tmpIdOrder = resultIO + 1; orderRepository.update({ status: statusPaid, date_order: dateNow, id_order: tmpIdOrder }, { where: { authId: decode.__user_id, status: statusWait } }); tmpIdOrder = 0; resolve({"success": "Pay success!"}) } }) .catch(() => reject(errors.notFound)); } }) .catch(() => reject(errors.notFound)); } }) }) } function countOrders(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { return reject(err); } else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { orderRepository.max('id_order', {}) .then((resultIO) => { resolve(resultIO); }) .catch(() => reject("access denied.")) } else reject("access denied."); }) .catch(() => reject(errors.notFound)); } }); }) } function totalAllOrders(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { orderRepository.findAll({ where: {status: statusPaid}, attributes: ['itemId', 'count'], include: { model: foodRepository, attributes: ['price'] }, }) .then((result) => { let total = 0; for (let i = 0; i < result.length; i++) { total += result[i].count * result[i].item.price; } resolve(total); }) .catch(() => reject(errors.notFound)) } else reject("access denied."); }) .catch(() => reject("access denied.")); } }); }) } }; <file_sep>/controllers/api.js const express = require('express'); const router = express.Router(); module.exports = (authService,menuService,orderService, config) => { const authController = require('./auth')(authService, config); const menuController = require ('./menu')(menuService,config); const orderController = require ('./order')(orderService,config); router.use ('/menu',menuController); router.use('/auth', authController); router.use('/order', orderController); return router; }; <file_sep>/services/menu.js "use strict"; const jwt = require('jsonwebtoken'); const regNumbers = /\d+/; const regLiteral = /\D+/; let idFood = 0; module.exports = (foodRepository, userRepository, orderRepository, errors) => { return { getMenu: getMenu, addFood: addFood, delFood: delFood, getAllMenu: getAllMenu, countAllMenu: countAllMenu, updateFood: updateFood, getIdFood: getIdFood }; function getMenu(data) { return new Promise((resolve, reject) => { foodRepository.findAll({ where: {type_food: data.type_food}, attributes: ['name', 'price'] }) .then((resultFR) => { resolve(resultFR); }) .catch(() => { reject(errors.notFound); }); }) } function getAllMenu(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { foodRepository.findAll({ where: {}, attributes: ['name', 'price', 'type_food'] }) .then((resultFR) => { resolve(resultFR); }) .catch(() => { reject(errors.notFound); }); } }) .catch(() => reject(errors.notFound)); } }); }) } function countAllMenu(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { return reject(err); } else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { foodRepository.count({ where: {}, }) .then((resultFR) => { resolve(resultFR); }) .catch(() => reject("access denied.")) } else reject("access denied."); }) .catch(() => reject(errors.notFound)); } }); }); } /*admin page*/ function addFood(data, token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { return reject(err); } else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { if (data.name !== "" && data.price !== "" && data.type_food !== "") { if (!regNumbers.test(data.name.toString()) && !regLiteral.test(data.price)) { foodRepository.count({where: {name: data.name}}) .then((count) => { if (!count > 0) { let food = { "name": data.name, "price": data.price, "type_food": data.type_food }; Promise.all([foodRepository.create(food)]) .then(() => resolve({"success": "Food was added."})) .catch(() => reject()); } else { console.log("error: food in db"); return reject({"error": "food in db"}); } }) .catch(() => reject(errors.notFound)); } else reject({"error": "Not correctly input"}); } else reject(errors.Unauthorized); } else reject("access denied."); }) .catch(() => reject(errors.notFound)); } }); } ); } function delFood(data, token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { if (data.name !== "") { foodRepository.findOne({ where: {name: data.name}, attributes: ['id'] }) .then((resultFR) => { orderRepository.destroy({ where: {itemId: resultFR.id} }); foodRepository.destroy(({ where: {name: data.name} })); }) .catch(() => reject("access denied.")); return resolve({"success": "Food was delete."}); } else reject(errors.invalidId); } else reject("access denied."); }) .catch(() => reject("access denied.")); } }); }) } function getIdFood(data) { return new Promise((resolve, reject) => { foodRepository.find({ where: {name: data.name}, attributes: ['id'] }) .then((resultFR) => { idFood = resultFR.id; console.log("id food: " + idFood); resolve(resultFR.id); }) .catch(() => reject(errors.notFound)); }); } function updateFood(data, token) { getIdFood(data); return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { return reject(err); } else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { if (data.name !== "" && data.price !== "" && data.type_food !== "") { if (!regNumbers.test(data.name.toString()) && !regLiteral.test(data.price)) { foodRepository.update({ name: data.name, price: data.price, type_food: data.type_food }, { where: {id: idFood} }); resolve("Success"); } else reject({"error": "Not correctly input"}); } else reject(errors.Unauthorized); } else reject("access denied."); }) .catch(() => reject(errors.notFound)); } }); }); } } ;<file_sep>/tests/mocha.js 'use strict'; //npm i --g mocha let auth = require('../controllers/auth'); let request = require('supertest')(auth); let Sequelize = require('sequelize'); let sinon = require('sinon'); let should = require('should'); let errors = require('../utils/errors'); let config = require('../config'); let db = require('../context/db')(Sequelize, config); let authRepository = db.auth; let foodRepository = db.items; let orderRepository = db.orders; let authService = require('../services/auth')(authRepository); let foodService = require('../services/menu')(foodRepository); let orderService = require('../services/orders')(orderRepository); let sandbox; const user = { "email": "<EMAIL>", "password": "<PASSWORD>", "lastname": "qwe", "firstname": "qwe" }; const userLogin = { "email": "<EMAIL>", "password": "<PASSWORD>", "lastname": "qwe", "firstname": "qwe" }; const food = { "name": "eeee", "price": "123", "type_food": "basemenu" }; const foodDelete = { "name": "Takos" }; const typeFood = "basemenu"; const nameFood = "qwe"; const token = "<KEY>"; beforeEach(() => { sandbox = sinon.sandbox.create(); }); afterEach(() => { sandbox.restore(); }); describe('- Это тесты', () => { describe('- Auth тесты', () => { // describe('Регистрация пользователя: ', () => { // it.only('Успех', () => { // sandbox.stub(authRepository, 'create').returns(Promise.resolve(userLogin)); // let promise = authService.register(userLogin); // return promise.then((res) => { // res.should.be.an.Object(); // }) // }); // }); // describe('Авторизация пользователя: ', () => { // it('Успех', () => { // sandbox.stub(authRepository, 'create').returns(Promise.resolve(user)); // let promise = authService.login(user); // return promise.then((res) => { // res.should.be.an.Object(); // }) // }); // }); describe('Получить имя пользователя: ', () => { it('Успех', () => { sandbox.stub(authRepository, 'findOne').returns(Promise.resolve(user)); let promise = authService.getFirstname(token); return promise.then((res) => { res.should.be.an.String(); }) }); }); // describe('Получить группу пользователя: ', () => { // it('Успех', () => { // sandbox.stub(authRepository, 'findOne').returns(Promise.resolve(user)); // let promise = authService.checkPermissions(user); // return promise.then((res) => { // res.should.be.an.String(); // }) // }); // }); // // describe('Получить число пользователей: ', () => { // it('Успех', () => { // sandbox.stub(authRepository, 'findOne').returns(Promise.resolve(user)); // let promise = authService.countUsers(token); // return promise.then((res) => { // res.should.be.an.Number(); // }) // }); // }); }); describe('- Food тесты', () => { describe('Получить меню по типу продукта: ', () => { it('Успех', () => { sandbox.stub(foodRepository, 'findAll').returns(Promise.resolve(typeFood)); let promise = foodService.getMenu(typeFood); return promise.then((res) => { res.should.be.an.String(); }) }); }); describe('Добавить продукт в меню: ', () => { it('Успех', () => { sandbox.stub(foodRepository, 'create').returns(Promise.resolve(food, token)); let promise = foodService.addFood(food, token) .then((res) => { res.should.be.an.Object; }) }); }); describe('Удалить продукт из меню: ', () => { it('Успех', () => { sandbox.stub(foodRepository, 'destroy').returns(Promise.resolve(foodDelete)); let promise = foodService.addFood(foodDelete) .then((res) => { res.should.be.an.json; }) }); }); describe('Получить всё меню: ', () => { it('Успех', () => { sandbox.stub(foodRepository, 'findAll').returns(Promise.resolve()); let promise = foodService.getAllMenu() .then((result) => { result.should.be.an.json; }); }); }); describe('Получить количество пунктов меню: ', () => { it('Успех', () => { sandbox.stub(foodRepository, 'findOne').returns(Promise.resolve(token)); let promise = foodService.countAllMenu(token) .then((result) => { result.should.be.an.Number; }); }); }); }); describe('- Order тесты', () => { describe('Добавить продукт в корзину: ', () => { it('Успех', () => { sandbox.stub(orderRepository, 'create').returns(Promise.resolve(token)); let promise = orderService.addToCart(nameFood, token) .then((res) => { res.should.be.an.json; }); }); }); describe('Количество продуктов в корзине: ', () => { it('Успех', () => { sandbox.stub(orderRepository, 'findAll').returns(Promise.resolve(token)); let promise = orderService.countCart(token); return promise.then((res) => { res.should.be.an.Number; }) }); }); describe('Стоимость всех продуктов в корзине: ', () => { it('Успех', () => { sandbox.stub(orderRepository, 'findAll').returns(Promise.resolve(token)); orderService.totalCart(token) .then((res) => { res.should.be.an.Number; }) }); }); // TODO: FIX // describe('История заказов: ', () => { // it('Успех', () => { // sandbox.stub(foodService, 'findOne').returns(Promise.resolve(token)); // orderService.historyOrder(token) // .then((res) => { // res.should.be.an.json; // }) // }); // }); // // describe('Получить товары в корзине: ', () => { // it('Успех', () => { // sandbox.stub(orderRepository, 'findAll').returns(Promise.resolve()); // let promise = orderService.getItemCart(token1); // return promise.then((res) => { // res.should.be.an.json; // }) // }); // }); // // describe('Удалить товары из корзине: ', () => { // it('Успех', () => { // sandbox.stub(orderRepository, 'findOne').returns(Promise.resolve(food)); // let promise = orderService.delAllFromCart(food, token); // return promise.then((res) => { // res.should.be.an.json; // }) // }); // }); // // describe('Получить количество заказов: ', () => { // it('Успех', () => { // sandbox.stub(orderRepository, 'find').returns(Promise.resolve(token1)); // let promise = orderService.countOrders(token1); // return promise.then((res) => { // res.should.be.an.Number(); // }) // }); // }); // // describe('Получить количество заказов: ', () => { // it('Успех', () => { // sandbox.stub(orderRepository, 'find').returns(Promise.resolve(token1)); // let promise = orderService.countOrders(token1); // return promise.then((res) => { // res.should.be.an.Number(); // }) // }); // }); // TODO: FIX }); });<file_sep>/public/script/orders.js //TODO: Cart's items function getItemCart() { $.ajax({ url: "/api/order/itemcart", type: "GET", dataType: "json", success: (data) => { drawTable(data); } }) } function drawTable(data) { let row = $("<tr />"); $("#cartTable").append(row); row.append($( "<th class='name'>Name</th>" + "<th class='price'>Price</th>" + "<th class='count'>Count</th>" + "<th class='delete'>Delete</th>")); for (let i = 0; i < data.length; i++) { drawRow(data[i]); } } function drawRow(rowData) { let row = $("<tr />"); $("#cartTable").append(row); row.append($( "<td>" + rowData.name + "</td>" + "<td>" + rowData.price + "</td>" + "<td>" + rowData.count + "</td>" + "<td>" + "All&nbsp&nbsp&nbsp" + "<a><img src='../images/delAll.png' class='cart' onclick=\"delAllFromCart('" + rowData.name + "\');\"></a>" + "&nbsp&nbsp&nbsp" + "One&nbsp&nbsp&nbsp" + "<a><img src='../images/delOne.png' class='cart' onclick=\"delOneFromCart('" + rowData.name + "\');\"></a>" + "</td>" )); } //TODO: History order function getHistoryOrder() { $.ajax({ url: "/api/order/historyorder", type: "GET", dataType: "json", success: (data) => { drawTableHistory(data); } }) } function drawTableHistory(data) { let row = $("<tr />"); $("#histiryCart").append(row); row.append($( "<th class='id_order'>ID order</th>" + "<th class='name'>Name</th>" + "<th class='price'>Price</th>" + "<th class='count'>Count</th>" + "<th class='date_order'>Date order</th>")); for (let i = 0; i < data.length; i++) { drawRowHistory(data[i]); } } function drawRowHistory(rowData) { let row = $("<tr />"); $("#histiryCart").append(row); row.append($( "<td>" + rowData.id_order + "</td>" + "<td>" + rowData.name + "</td>" + "<td>" + rowData.price + "</td> " + "<td>" + rowData.count + "</td> " + "<td>" + rowData.date_order + "</td>" )); } //TODO: Delete functions function delAllFromCart(data) { $.ajax({ url: "/api/order/delallfromcart", type: "POST", dataType: "json", data: {"name": data}, success: (data) => { $("#cartTable tr").remove(); getItemCart(); location.reload(); } }) } function delOneFromCart(data) { $.ajax({ url: "/api/order/delonefromcart", type: "POST", dataType: "json", data: {"name": data}, success: (data) => { // $("#cartTable tr").remove(); //getItemCart(); location.reload(); } }) } //TODO: Pay functions function pay() { $.ajax({ url: "/api/order/pay", type: "GET", dataType: "json", success: (data) => { // $("#cartTable tr").remove(); // $("#histiryCart tr").remove(); // getHistoryOrder(); location.reload(); } }) } $(document).ready(() => { $("#buttonPay").click(pay); });<file_sep>/README.md # Kurs_shop - КУРСАЧ (Интеренет магазин) <file_sep>/services/auth.js "use strict"; const bcrypt = require('bcryptjs'); let Promise = require("bluebird"); const jwt = require('jsonwebtoken'); const saltRounds = 10; module.exports = (userRepository, orderRepository, errors) => { return { login: login, register: register, getFirstname: getFirstname, checkPermissions: checkPermissions, checkPermissionsAdmin: checkPermissionsAdmin, countUsers: countUsers, getAllUsers: getAllUsers, delUser: delUser, updateUser: updateUser, firstStartApp: firstStartApp }; function login(data) { return new Promise((resolve, reject) => { userRepository.findOne({ where: {email: data.email}, attributes: ['id', 'firstname', 'password'] }) .then((user) => { if (data.email === "") reject(errors.Unauthorized); else { bcrypt.compare(data.password.toString(), user.password.toString()) .then((result) => { if (result === true) resolve(user); else { reject(errors.wrongCredentials); } }) .catch(() => reject(errors.wrongCredentials)); } }) .catch(() => reject(errors)); }); } function register(data) { return new Promise((resolve, reject) => { userRepository.count({where: [{email: data.email}]}) .then((count) => { if (count > 0) return reject({"error": "email in db"}); else { if (data.password !== "") { bcrypt.hash(data.password.toString(), saltRounds, (err, hash) => { if (err) { throw err; } else { let user = { email: data.email, password: <PASSWORD>, firstname: data.firstname, lastname: data.lastname, permissions: "user" }; Promise.all([userRepository.create(user)]) .then(() => resolve({success: true})) .catch(() => reject({"error": "Somethings is wrong..."})); } }); } else reject(errors.wrongCredentials); } }) }) } function getFirstname(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { return resolve(decode.__user_firstname); } }); }); } function checkPermissions(data) { return new Promise((resolve, reject) => { userRepository.find({ where: {email: data.email}, attributes: ['permissions'] }) .then((result) => { resolve(result.permissions); }) .catch(() => reject(errors.notFound)); }); } function checkPermissionsAdmin(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { return reject("err"); } else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { return resolve(result.permissions); }) .catch(() => reject(errors.notFound)); } }); }) } function countUsers(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) { return reject(err); } else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { userRepository.count({}) .then((resultUR) => { resolve(resultUR); }) .catch(() => reject("access denied.")) } else reject("access denied."); }) .catch(() => reject(errors.notFound)); } }); }) } function getAllUsers(token) { return new Promise((resolve, reject) => { jwt.verify(token, '<PASSWORD>', (err, decode) => { if (err) return reject(err); else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { userRepository.findAll({ where: {}, attributes: ['email', 'firstname', 'lastname', 'permissions'] }) .then((resultFR) => { resolve(resultFR); }) .catch(() => { reject(errors.notFound); }); } }) .catch(() => reject(errors.notFound)); } }); }) } function delUser(data, token) { return new Promise((resolve, reject) => { jwt.verify(token, 'EN<PASSWORD>', (err, decode) => { if (err) return reject(err); else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { if (data.email !== "") { userRepository.findOne({ where: {email: data.email}, attributes: ['id'] }) .then((resultUR) => { if (resultUR.id !== decode.__user_id) { orderRepository.destroy({ where: {authId: resultUR.id} }); userRepository.destroy({ where: {email: data.email} }); resolve("success"); } else reject("access denied."); }) .catch(() => reject("Error")); } else reject(errors.invalidId); } else reject("access denied."); }) .catch(() => reject("access denied.")); } }); }) } function updateUser(data, token) { return new Promise((resolve, reject) => { jwt.verify(token, 'EN<PASSWORD>', (err, decode) => { if (err) return reject(err); else { userRepository.find({ where: {id: decode.__user_id}, attributes: ['permissions'] }) .then((result) => { if (result.permissions === "admin") { if (data.email !== "") { userRepository.findOne({ where: {email: data.email}, attributes: ['id', 'permissions'] }) .then((resultUR) => { if (resultUR.id !== decode.__user_id) { if (resultUR.permissions === "admin") { userRepository.update({ permissions: "user" }, { where: {email: data.email} }); resolve("Success"); } else { userRepository.update({ permissions: "admin" }, { where: {email: data.email} }); resolve("Success"); } } else reject("access denied."); }) .catch(() => reject("Error")); } else reject(errors.invalidId); } else reject("access denied."); }) .catch(() => reject("access denied.")); } }); }) } function firstStartApp() { return new Promise((resolve, reject) => { userRepository.count() .then((count) => { if (count === 0) { bcrypt.hash("12345678", saltRounds, (err, hash) => { if (err) { throw err; } else { let user = { email: "<EMAIL>", password: <PASSWORD>, firstname: "admin", lastname: "admin", permissions: "admin" }; Promise.all([userRepository.create(user)]) .then(() => resolve({success: true})) .catch(() => reject({"error": "Somethings is wrong..."})); } }) } else { reject(alert("Error: count != 0")); } }) .catch(() => reject({"error": "Somethings is wrong..."})); }); } };
70bb6fce53889f2d033c5fbe2cd061f849f4faf5
[ "JavaScript", "Markdown" ]
12
JavaScript
nik1811e/shop_project
6b12ae399cbfa77e98d80a98da6925e1647bdca6
533f8279f71d15b0ddb5e7b25ed0728bf0f4d326
refs/heads/master
<repo_name>zacharymorn/Algorithm-MergeSort<file_sep>/src/MergeSortCountInversions.java import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class MergeSortCountInversions { public static void main(String[] args) { List<Integer> numberList = getNumberListFromFile(); long numberOfInversion = countInversion(numberList); System.out.println(numberOfInversion); } protected static long countInversion(List<Integer> numberList) { if(numberList.size() == 1){ return 0; } else if(numberList.size() == 2){ return sortAndCountInversion(numberList); } else { return countInversionInRecursiveCase(numberList); } } protected static long sortAndCountInversion(List<Integer> numberList) { int firstElement = numberList.get(0); int secondElement = numberList.get(1); if (firstElement <= secondElement) { return 0; } else { numberList.clear(); numberList.add(secondElement); numberList.add(firstElement); return 1; } } private static long countInversionInRecursiveCase(List<Integer> numberList) { long sum = 0; List<Integer> firstHalf = new ArrayList<Integer>(firstHalfOfNumberList(numberList)); List<Integer> secondHalf = new ArrayList<Integer>(secondHalfOfNumberList(numberList)); sum += countInversion(firstHalf); sum += countInversion(secondHalf); sum += countSplitInversion(firstHalf, secondHalf, numberList); return sum; } private static List<Integer> firstHalfOfNumberList(List<Integer> numberList) { return numberList.subList(0, numberList.size()/2); } private static List<Integer> secondHalfOfNumberList(List<Integer> numberList) { return numberList.subList(numberList.size()/2, numberList.size()); } protected static long countSplitInversion(List<Integer> firstHalf, List<Integer> secondHalf, List<Integer> numberList) { long sum = 0; numberList.clear(); for(int i=0; i<firstHalf.size(); i++){ if(secondHalfIsEmptyOrTipOfFirstHalfIsSmaller(firstHalf, secondHalf, i)){ numberList.add(firstHalf.get(i)); } else { numberList.add(secondHalf.remove(0)); sum += firstHalf.size() - i; i--; } } for(int value : secondHalf){ numberList.add(value); } return sum; } private static boolean secondHalfIsEmptyOrTipOfFirstHalfIsSmaller( List<Integer> firstHalf, List<Integer> secondHalf, int i) { return secondHalf.size() == 0 || firstHalf.get(i) <= secondHalf.get(0); } private static List<Integer> getNumberListFromFile() { List<Integer> list = new ArrayList<Integer>(); File file = new File("IntegerArray.txt"); Scanner input = null; try { input = new Scanner(file); while (input.hasNext()) { list.add(Integer.valueOf(input.nextLine())); } } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { input.close(); } return list; } }
ea45fd107fcf4dd67950c5178510cb03bba0a4ca
[ "Java" ]
1
Java
zacharymorn/Algorithm-MergeSort
d6aca147cad1112670d76bf829c1989c0a11475f
f638b174bb7cde4d59669f31c0a5e11072d0074d
refs/heads/master
<file_sep># Currently Viewing App Shows a list of IP addresses viewing the page ## Requirements To run this application in your local development environment ensure that your system meets the following requirements: 1. Ensure you have internet with a good speed. The whole process and application will not work without internet. 2. You have installed the latest version of node in your system. If you have not kindly download and install it from here : https://nodejs.org/en/ 3. You have installed git in your system. Install from here https://git-scm.com/downloads if you have not. ## Getting Started - Clone the repository by issuing this command in your terminal: git clone https://github.com/bytenaija/currently-viewing-app.git Still in your terminal run the following commands: - cd currently-viewing-app ### To start the server - cd server - npm install - Ensure that port 3000 is not being used by another program. If it is not available open the config.js file in the config directory and change the port variable currently set to 3000 to an available port number. - npm run dev ### To start the client Open another terminal and enter the following commands - cd client - npm install - If you changed the port on the server, ensure that you change the port on line 15 in main.js to the port you set on the server so that the socket can connect. - npm run dev - Open as many browser or browser tabs as you need to test and navigate to http://localhost:8080 and see all the list of IPs of those connected browsers. Note that the IP adresses may be the same since you are actually using one IP for each of the browser. ### Note - This application uses MongoDB and it is hosted as a sandbox by mlab.com for testing purposes; - Uses http://freegeoip.net to ascertain the users IP address and other information. Enjoy your testing!<file_sep>//import the dependencies let express = require("express"); const app = express(); const mongoose = require("mongoose") var http = require('http').Server(app); var io = require('socket.io')(http, { 'pingTimeout':60000, 'transports':['xhr-polling','polling', 'websocket', 'flashsocket'], 'pingInterval':25000, 'allowUpgrades':true, 'cookie':'io' }); const viewer = require("./controllers/viewer"); const config = require("./config/config") const morgan = require("morgan") const cors = require('cors') app.use(cors()) //Listen for connection app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); next(); }); io.on('connection', viewer.respond); app.use(morgan("dev")); /* //This is no longer neccessary as we are using websockets now app.use(express.json()); app.use(express.urlencoded({ extended: true })); */ //Database connection mongoose.connect(config.mongoDb, (err) => { if (err) { throw err; system.exit(0) } else { console.log("Connected to database") } }) //app.post("/api/add", viewer.add); //app.delete("/api/delete/:id", viewer.deleteViewer); //Start the server http.listen(config.port, () => { console.log("Successfully connected on port ", config.port); })<file_sep>module.exports = { mongoDb : "mongodb://root:root@ds123129.mlab.com:23129/viewers", port : process.env.port || 3000 }
e49894c2d0bc97a3c0dba864f283ac2027c57f8e
[ "Markdown", "JavaScript" ]
3
Markdown
bytenaija/currently-viewing-app
09e46ffb2786f880317ea218da892933f0f8f223
ad5027d5d383fa7851f16d256f57f9dd45c5d727
refs/heads/master
<file_sep>module.exports = function (api) { const options = global || {}; api.cache(() => options.dev); const presets = [[ '@babel/env', { debug: true, useBuiltIns: 'usage', corejs: 3, targets: [ 'IE 11', ] }, ]]; const plugins = [ ['@babel/transform-runtime', { corejs: "3" } ] ]; return { presets, plugins, }; }; <file_sep>const indexA = () => { [1, 2, 3].includes(3); }; export { indexA }; <file_sep># userscript-building Test repository with 2 methods of building userscripts * `yarn webpack` puts builds into dist `bundle.meta.js` and `bundle.user.js` * `yarn rollup` puts build into dist `bundle.js`
f2671b8007142a1920f55fdbc6ea8bc694c54dca
[ "JavaScript", "Markdown" ]
3
JavaScript
maximtop/userscript-building
833cf1e08199e15561f4069faa6ea3c51bad4df2
600f6f2eebcca312e10a359f40c51767008ff852
refs/heads/master
<repo_name>santiagen25/libros-por-libros<file_sep>/public/Ajax/editarNacimiento.php <?php use Illuminate\Support\Facades\DB; if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_POST["q"]) && isset($_SESSION["email"])){ if(isset($_POST["id"])){ //se está cambiando un nombre de un usuario que no es el actual DB::table('usuario')->where('IDUsuario','=',$_POST["id"])->update(['Nacimiento' => $_POST['q']." 00:00:00"]); } else DB::table('usuario')->where('Email','=',$_SESSION["email"])->update(['Nacimiento' => $_POST['q']." 00:00:00"]); } else { header("Location: /configuracion"); exit; } ?><file_sep>/public/Ajax/editarPassword.php <?php use Illuminate\Support\Facades\DB; if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_POST["q"]) && isset($_SESSION["email"])){ echo DB::table('usuario')->select("Password")->where('Email','=',$_SESSION["email"])->update(['Password' => <PASSWORD>($_POST["q"])]); } else { header("Location: /configuracion"); exit; } ?><file_sep>/app/Http/Controllers/AjaxController.php <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class AjaxController extends Controller { public function ajaxEditarNombre(){ include "../public/Ajax/editarNombre.php"; } public function ajaxEditarEmail(){ include "../public/Ajax/editarEmail.php"; } public function ajaxEditarNacimiento(){ include "../public/Ajax/editarNacimiento.php"; } public function ajaxGetPassword(){ include "../public/Ajax/getPassword.php"; } public function ajaxEditarPassword(){ include "../public/Ajax/editarPassword.php"; } public function ajaxEditarTitulo(){ include "../public/Ajax/editarTitulo.php"; } public function ajaxEditarPuntuacion(){ include "../public/Ajax/editarPuntuacion.php"; } public function ajaxEditarComentario(){ include "../public/Ajax/editarComentario.php"; } public function ajaxComprobarEmail(){ include "../public/Ajax/comprobarEmail.php"; } public function ajaxEditarAdmin(){ include "../public/Ajax/editarAdmin.php"; } public function ajaxeditarBlock(){ include "../public/Ajax/editarBlock.php"; } public function ajaxEditarMeGusta(){ include "../public/Ajax/editarMeGusta.php"; } public function ajaxResetPassword(){ include "../public/Ajax/resetPassword.php"; } } <file_sep>/public/Ajax/resetPassword.php <?php use Illuminate\Support\Facades\DB; if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_POST["id"]) && isset($_SESSION["admin"])){ //por que hago dos ifs y no los junto en uno? porque si alguien me intenta entrar y no hay session, la pagina petará y mostrará error, en cambio asi redirigirá if($_SESSION["admin"]==1){ $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $pswd = ''; for ($i = 0; $i < 10; $i++) { $pswd .= $characters[rand(0, $charactersLength - 1)]; } $usuario = DB::table('usuario')->where('IDUsuario','=',$_POST["id"])->first(); $to_email = $usuario->Email; $subject = "Recuperación de contraseña para Libros por Libros"; $body = "Se ha generado una contraseña aleatoriamente para que puedas entrar en tu cuenta.\n\nEsta es tu nueva contraseña: ".$pswd."\n\nTe recomendamos que cambies esta contraseña la proxima vez que entres en tu cuenta."; $headers = "From: LibrosPorLibros"; if (mail($to_email, $subject, $body, $headers)) { echo 1; DB::table('usuario')->where('IDUsuario','=',$_POST["id"])->update(['Password' => Hash::make($pswd)]); } else { echo 0; } } else { header("Location: /inicio"); exit; } } else { header("Location: /inicio"); exit; } ?><file_sep>/public/Ajax/editarPuntuacion.php <?php use Illuminate\Support\Facades\DB; if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_POST["q"]) && isset($_SESSION["email"])){ $url = explode("/",url()->previous()); $idLibro = $url[count($url)-1]; $idUsuario = DB::table('usuario')->select("IDUsuario")->where('Email','=',$_SESSION["email"])->first()->IDUsuario; DB::table('valoracion')->select("Titulo")->where('IDLibroFK','=',$idLibro)->where('IDUsuarioFK','=',$idUsuario)->update(['Puntuacion' => $_POST['q'], 'created_at' => date('Y-m-d H:i:s')]); } else { header("Location: /configuracion"); exit; } ?><file_sep>/database/migrations/2020_02_10_092511_usuario.php <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class Usuario extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Usuario',function (Blueprint $table) { $table->bigIncrements('IDUsuario'); $table->boolean('esAdmin'); $table->string('Nombre',50); $table->string('Email',100)->unique(); $table->dateTime('Nacimiento'); $table->boolean('Bloqueado'); $table->string('Password',500); //es necesario que sea un numero alto, ya que cuando se hashea una password te queda un numero enorme //$table->string('Imagen',100)->nullable()->autoIncrement(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('Usuario'); } } <file_sep>/public/Ajax/editarMeGusta.php <?php use Illuminate\Support\Facades\DB; if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_POST["actualMeGusta"]) && isset($_POST["idvaloracion"]) && isset($_SESSION["email"])){ //si existe el megusta hacemos un drop para eliminarlo, si no existe hacemos un insert para crearlo if($_POST["actualMeGusta"]==1){ //hay que eliminarlo, ya que existe el megusta DB::table('Usuario_Valoracion')->where('IDMezcla','=',$_SESSION["id"]."_".$_POST["idvaloracion"])->delete(); } else { //hay que insertarlo, ya que no existe (osea que ha cambiado de opinion y si que le gusta) DB::table('Usuario_Valoracion')->insert( ['IDUsuarioFK4' => $_SESSION["id"], 'IDValoracionFK3' => $_POST["idvaloracion"], 'IDMezcla' => $_SESSION["id"]."_".$_POST["idvaloracion"], 'created_at' => date('Y-m-d H:i:s')] ); } } else { header("Location: /inicio"); exit; } ?><file_sep>/database/seeds/UsuarioTableSeeder.php <?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class UsuarioTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $usuarios = [ ['IDUsuario' => null, 'esAdmin' => true, 'Nombre' => 'Libros por Libros Cuenta Oficial', 'Email' => '<EMAIL>', 'Nacimiento' => '2019-09-20 0:00:00', 'Bloqueado' => false, 'Password' => '<PASSWORD>', 'created_at' => date('Y-m-d H:i:s')], ['IDUsuario' => null, 'esAdmin' => true, 'Nombre' => '<NAME>', 'Email' => '<EMAIL>', 'Nacimiento' => '2001-01-01 0:00:00', 'Bloqueado' => false, 'Password' => '<PASSWORD>', 'created_at' => date('Y-m-d H:i:s')], ['IDUsuario' => null, 'esAdmin' => false, 'Nombre' => '<NAME>', 'Email' => '<EMAIL>', 'Nacimiento' => '1997-02-06 0:00:00', 'Bloqueado' => true, 'Password' => '<PASSWORD>', 'created_at' => date('Y-m-d H:i:s')], ['IDUsuario' => null, 'esAdmin' => true, 'Nombre' => '<NAME>', 'Email' => '<EMAIL>', 'Nacimiento' => '1997-02-06 0:00:00', 'Bloqueado' => false, 'Password' => '<PASSWORD>', 'created_at' => date('Y-m-d H:i:s')] ]; foreach ($usuarios as $usuario) { DB::table('Usuario')->insert([ 'IDUsuario' => $usuario['IDUsuario'], 'esAdmin' => $usuario['esAdmin'], 'Nombre' => $usuario['Nombre'], 'Email' => $usuario['Email'], 'Nacimiento' => $usuario['Nacimiento'], 'Bloqueado' => $usuario['Bloqueado'], 'Password' => Hash::make($usuario['Password']), 'created_at' => $usuario['created_at'] ]); } } } <file_sep>/database/seeds/Usuario_ValoracionTableSeeder.php <?php use Illuminate\Database\Seeder; class Usuario_ValoracionTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $likes = [ ['IDUsuarioFK4' => 1, 'IDValoracionFK3' => 2, 'IDMezcla' => '1_2', 'created_at' => date('Y-m-d H:i:s')], ]; foreach ($likes as $like) { DB::table('Usuario_Valoracion')->insert([ 'IDUsuarioFK4' => $like['IDUsuarioFK4'], 'IDValoracionFK3' => $like['IDValoracionFK3'], 'IDMezcla' => $like['IDMezcla'], 'created_at' => $like['created_at'], ]); } } } <file_sep>/app/Http/Controllers/UnidentifiedController.php <?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Usuario; use Hash; class UnidentifiedController extends Controller { public function login(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_POST["cerrarSesion"])){ session_unset(); } if(isset($_SESSION["email"])){ return redirect()->route('inicio'); } if(isset($_POST["entrar"])){ //vamos a logearnos if(isset($_POST["email"]) && $_POST["email"]!="" && isset($_POST["password"]) && $_POST["password"]!=""){ $contraseña = DB::table('usuario')->where('Email','=',$_POST["email"])->first(); if($contraseña=="") return back()->withErrors(['email' => 'Este email no está dado de alta']); if(Hash::check($_POST["password"],$contraseña->Password)){ $block = DB::table('usuario')->select('bloqueado')->where('Email','=',$_POST["email"])->first(); if($block->bloqueado == 0){ //todo bien, todo correcto if(session_status() == PHP_SESSION_NONE) session_start(); $_SESSION["email"] = $_POST["email"]; $_SESSION["admin"] = $contraseña->esAdmin; $_SESSION["id"] = $contraseña->IDUsuario; return redirect()->route('inicio'); } return back()->withErrors(['block' => 'Tu usuario ha sido bloqueado por algún motivo. Por favor, contacta con un administrador.']); } } else if($_POST["email"]=="" || $_POST["password"]=="") return back()->withErrors(['email' => 'Te falta rellenar el campo del email o de la contraseña']); return back()->withErrors(['email' => 'La contraseña es incorrecta', 'emailCampo' => $_POST["email"]]); /*if($_POST["password"]!="") return view('/inicio'); return view('/inicio');*/ } return view('login'); } public function registro(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"])){ return redirect()->route('inicio'); } if(isset($_POST["registrarse"])){ //vamos a registrarnos $errores = []; if($_POST["email"]!=""){ if(strlen($_POST["email"]) < 100) { if(!filter_var($_POST["email"], FILTER_VALIDATE_EMAIL)) $errores["email"] = "El email no tiene un formato válido"; } else $errores["email"] = "El email es demasiado largo"; } else $errores["email"] = "Falta introducir el email"; $emails = DB::table('usuario')->select('email')->get(); foreach($emails as $email) if(strtolower($email->email) == strtolower($_POST["email"])) $errores["email"] = "Este email ya está registrado"; if($_POST["nombre"]!="") { if(strlen($_POST["nombre"]) >= 50) $errores["nombre"] = "El nombre es demasiado largo"; } else $errores["nombre"] = "Falta introducir el nombre"; if($_POST["password"]!=""){ if(strlen($_POST["password"]) < 50){ $errores["password"] = ""; if(!preg_match('/[A-Z]/', $_POST["password"])) $errores["password"] = "<PASSWORD>. "; if(!preg_match('/[a-z]/', $_POST["password"])) $errores["password"] .= "<PASSWORD>. "; if(!preg_match('/[0-9]/', $_POST["password"])) $errores["password"] .= "<PASSWORD>. "; if(strlen($_POST["password"])<5) $errores["password"] .= "La contraseña ha de tener minimo 5 caracteres."; if($errores["password"] == "") unset($errores["password"]); } else $errores["password"] = "La contraseña es <PASSWORD>"; } else $errores["password"] = "Falta introducir la contraseña"; if($_POST["repetirPassword"] != $_POST["password"]) $errores["repetirPassword"] = "La contraseña repetida no encaja con la primera contraseña. ¡Ha de ser la misma!"; if(empty($_POST["nacimiento"])) $errores["nacimiento"] = "Falta introducir la fecha de nacimiento"; if($errores!=[]) { $errores["emailCampo"] = $_POST["email"]; $errores["nombreCampo"] = $_POST["nombre"]; $errores["nacimientoCampo"] = date_format(date_create($_POST["nacimiento"]),"Y-m-d"); return back()->withErrors($errores); } else { //todo ok DB::table('usuario')->insert( ['esAdmin' => false, 'email' => $_POST["email"], 'nombre' => $_POST["nombre"], 'password' => <PASSWORD>($_POST["password"]), 'nacimiento' => $_POST["nacimiento"].' 0:00:00', 'bloqueado' => false, 'created_at' => date('Y-m-d H:i:s')] ); $reg["registroBien"] = "¡El nuevo Usuario se ha registrado con éxito!"; return back()->withErrors($reg); } } return view('registro'); } public function newPassword(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"])){ return redirect()->route('inicio'); }else { if(isset($_POST["email"])){ $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $pswd = ''; for ($i = 0; $i < 10; $i++) { $pswd .= $characters[rand(0, $charactersLength - 1)]; } $usuario = DB::table('usuario')->where('Email','=',$_POST["email"])->first(); if($usuario==NULL) return back()->withErrors(['mal' => 'El email que has introducido no existe']); $to_email = $_POST["email"]; $subject = "Recuperación de contraseña para Libros por Libros"; $body = "Se ha generado una contraseña aleatoriamente para que puedas entrar en tu cuenta.\n\nEsta es tu nueva contraseña: ".$pswd."\n\nTe recomendamos que cambies esta contraseña la proxima vez que entres en tu cuenta."; $headers = "From: LibrosPorLibros"; if (mail($to_email, $subject, $body, $headers)) { DB::table('usuario')->where('Email','=',$_POST["email"])->update(['Password' => <PASSWORD>($pswd)]); return back()->withErrors(['bien' => 'Se ha enviado un email a tu cuenta de correo electronico con tu nueva contraseña. Si no ves el mail revisa la carpeta de spam']); } else { return back()->withErrors(['bien' => 'Ha habido un error, no se ha podido cambiar tu contraseña, contacta con un Administrador.']); } } return view('newPassword'); } } public function faq(){ return response()->file('../public/pdf/LibrosPorLibrosFAQ.pdf'); } } <file_sep>/app/Usuario_Libro.php <?php namespace App; use Illuminate\Database\Eloquent\Model; class Usuario_Libro extends Model { // } <file_sep>/database/migrations/2020_02_13_105004_usuario_libro.php <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class UsuarioLibro extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Usuario_Libro',function (Blueprint $table) { $table->bigInteger('IDLibroFK2')->unsigned(); $table->foreign('IDLibroFK2')->references('IDLibro')->on('Libro')->onDelete('cascade'); $table->bigInteger('IDUsuarioFK3')->unsigned(); $table->foreign('IDUsuarioFK3')->references('IDUsuario')->on('Usuario')->onDelete('cascade'); $table->string('IDMezcla')->unique(); //este ID será el IDUsuario_IDLibro (igual que en Usuario_Valoracion) $table->tinyInteger('Relacion'); //cada campo puede ser de tres formas: si es 1 el libro está pendiente por leer, si es 2 el libro se está leyendo, si es 3 el libro está leido $table->boolean('Favorito'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('Usuario_Libro'); } } <file_sep>/database/seeds/LibroTableSeeder.php <?php use Illuminate\Database\Seeder; class LibroTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $libros = [ ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => '«Bienvenido al bosque. Verás que una vez a la semana, siempre el mismo día y a la misma hora, nos llegan víveres. Una vez al mes, siempre el mismo día y a la misma hora, aparece un nuevo chico, como tú. Siempre un chico. Como ves, este lugar está cercado por muros de piedra… Has de saber que estos muros se abren por la mañana y se cierran por la noche, siempre a la hora exacta. Al otro lado se encuentra el laberinto. De noche, las puertas se cierran… y, si quieres sobrevivir, no debes estar allí para entonces». Todo sigue un orden… y, sin embargo, al día siguiente suena una alarma. Significa que ha llegado alguien más. Para asombro de todos, es una chica. Su llegada vendrá acompañada de un mensaje que cambiará las reglas del juego. ¿Y si un día abrieras los ojos y te vieses en un lugar desconocido sin saber nada más que tu nombre? Cuando Thomas despierta, se encuentra en una especie de ascensor. No recuerda qué edad tiene, quién es ni cómo es su rostro. Sólo su nombre. De pronto, el ascensor da un zarandeo y se detiene. Las puertas se abren y una multitud de rostros le recibe. «Bienvenido al Claro -dice uno de los adolescentes-. Aquí es donde vivimos. Esta es nuestra casa. Fuera está el laberinto. Yo soy Alby; él, Newt. Y tú eres el primero desde que mataron a Nick».', 'Nombre' => 'El corredor del laberinto', 'Genero' => 'Ciencia-Ficcion', 'ISBN' => 9788493801311], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'EL LABERINTO ERA SÓLO EL PRINCIPIO. Resolver el laberinto se suponía que era el final. No más pruebas, no más huidas. Thomas creía que salir significaba que todos recobrarían sus vidas, pero ninguno sabía a qué clase de vida estaban volviendo. Árida y carbonizada, gran parte de la tierra es un territorio inservible. El sol abrasa, los gobiernos han caído y una misteriosa enfermedad se ha ido apoderando poco a poco de la gente. Sus causas son desconocidas; su resultado, la locura. En un lugar infestado de miseria y ruina, y por donde la gente ha enloquecido y deambula en busca de víctimas, Thomas conoce a una chica, Brenda, que asegura haber contraído la enfermedad y estar a punto de sucumbir a sus efectos. Entretanto, Teresa ha desaparecido, la organización CRUEL les ha dejado un mensaje, un misterioso chico ha llegado y alguien ha tatuado unas palabras en los cuellos de los clarianos. La de Minho dice «el líder»; la de Thomas, «el que debe ser asesinado».', 'Nombre' => 'Las pruebas', 'Genero' => 'Ciencia-Ficcion', 'ISBN' => 9788493920005], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => '«MÁTAME. SI ALGUNA VEZ HAS SIDO MI AMIGO, MÁTAME». Desde hace tres semanas, Thomas vive en una habitación sin ventanas, de un blanco resplandeciente y siempre iluminada. Sin reloj y sin contacto con nadie, más allá de las tres bandejas de comida que alguien le lleva a diario (aunque a horas distintas, como para desorientarle). Al vigésimo sexto día, la puerta se abre y un hombre le conduce a una sala llena de viejos amigos. —Muy bien, damas y caballeros. Estáis a punto de recuperar todos vuestros recuerdos. Hasta el último de ellos.', 'Nombre' => 'La cura mortal', 'Genero' => 'Ciencia-Ficcion', 'ISBN' => 9788493975036], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => '<NAME> se ha quedado huérfano y vive en casa de sus abominables tíos y el insoportable primo Dudley. Harry se siente muy triste y solo, hasta que un buen día recibe una carta que cambiará su vida para siempre. En ella le comunican que ha sido aceptado como alumno en el Colegio Hogwarts de Magia. A partir de ese momento, la suerte de Harry da un vuelco espectacular. En esa escuela tan especial aprenderá encantamientos, trucos fabulosos y tácticas de defensa contra las malas artes. Se convertirá en el campeón escolar de Quidditch, especie de fútbol aéreo que se juega montado sobre escobas, y hará un puñado de buenos amigos... aunque también algunos temibles enemigos. Pero, sobre todo, conocerá los secretos que le permitirán cumplir su destino. Pues, aunque no lo parezca a primera vista, Harry no es un chico común y corriente: ¡es un verdadero mago!', 'Nombre' => '<NAME> y la <NAME>', 'Genero' => 'Fantasia', 'ISBN' => 9780439554930], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'Tras derrotar una vez más a lord Voldemort, su siniestro enemigo en <NAME> y la piedra filosofal, Harry espera impacientemente en casa de sus insoportables tíos el inicio del segundo curso del Colegio Hogwarts de Magia y Hechicería. Sin embargo, la espera dura poco, pues un elfo aparece en su habitación y le advierte que una amenaza mortal se cierne sobre la escuela. Así pues, Harry no se lo piensa dos veces y, acompañado de Ron, su mejor amigo, se dirige a Hogwarts en un coche volador. Pero ¿puede un aprendiz de mago defender la escuela de los malvados que pretenden destruirla? Sin saber que alguien ha abierto la Cámara de los Secretos, dejando escapar una serie de monstruos peligrosos, Harry y sus amigos Ron y Hermione tendrán que enfrentarse con arañas gigantes, serpientes encantadas, fantasmas enfurecidos y, sobre todo, con la mismísima reencarnación de su más temible adversario.', 'Nombre' => '<NAME> y la Camara Secreta', 'Genero' => 'Fantasia', 'ISBN' => 9788478884957], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'Por la cicatriz que lleva en la frente, sabemos que <NAME> no es un niño como los demás, sino el héroe que venció a lord Voldemort, el mago más terrible y maligno de todos los tiempos y culpable de la muerte de los padres de Harry. Desde entonces, Harry no tiene más remedio que vivir con sus pesados tíos y su insoportable primo Dudley, todos ellos muggles, o sea, personas no magas, que desprecian a su sobrino debido a sus poderes. Igual que en las dos primeras partes de la serie -La piedra filosofal y La cámara secreta- Harry aguarda con impaciencia el inicio del tercer curso en el Colegio Hogwarts de Magia y Hechicería. Tras haber cumplido los trece años, solo y lejos de sus amigos de Hogwarts, Harry se pelea con su bigotuda tía Marge, a la que convierte en globo, y debe huir en un autobús mágico. Mientras tanto, de la prisión de Azkaban se ha escapado un terrible villano, Sirius Black, un asesino en serie con poderes mágicos que fue cómplice de lord Voldemort y que parece dispuesto a eliminar a Harry del mapa. Y por si esto fuera poco, Harry deberá enfrentarse también a unos terribles monstruos, los dementores, seres abominables capaces de robarles la felicidad a los magos y de borrara todo recuerdo hermoso de aquellos que osan mirarlos. Lo que ninguno de estos malvados personajes sabe es que Harry, con la ayuda de sus fieles amigos Ron y Hermione, es capaz de todo y mucho más.', 'Nombre' => '<NAME> y el Prisionero de Azkaban', 'Genero' => 'Fantasia', 'ISBN' => 9788478885190], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'Tras otro abominable verano con los Dursley, Harry se dispone a iniciar el cuarto curso en Hogwarts, la famosa escuela de magia y hechicería. A sus catorce años, a Harry le gustaría ser un joven mago como los demás y dedicarse a aprender nuevos sortilegios, encontrarse con sus amigos Ron y Hermione y asistir con ellos a los Mundiales de quidditch. Sin embargo, al llegar al colegio le espera una gran sorpresa que lo obligará a enfrentarse a los desafíos más temibles de toda su vida. Si logra superarlos, habrá demostrado que ya no es un niño y que está preparado para vivir las nuevas y emocionantes experiencias que el futuro le depara.', 'Nombre' => '<NAME> y el Cáliz de Fuego', 'Genero' => 'Fantasia', 'ISBN' => 9788478886647], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'Las tediosas vacaciones en casa de sus tíos todavía no han acabado y <NAME> se encuentra más inquieto que nunca. Apenas ha tenido nocitias de Ron y Hermiones, y presiente que algo extraño está sucediendo en Hogwarts. En efecto, cuando por fin comienza otro curso en el famoso colegio de magia y hechicería, sus temores se vuelven realidad. El Ministerio de Magia niega que Voldemort haya regresado y ha iniciado una campaña de desprestigio contra <NAME>, para lo cual ha asignado a la horrible profesora Dolores Umbridge la tarea de vigilar todos sus movimientos. Así pues, además de sentirse solo e incomprendido, Harry sospecha que Voldemort puede adivinar sus pensamientos, e intuye que el temible mago trata de apoderarse de un objeto secreto que le permitiría recuperar su poder destructivo.', 'Nombre' => '<NAME> y la Orden del Fénix', 'Genero' => 'Fantasia', 'ISBN' => 9788478888849], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'Con dieciséis años cumplidos, <NAME> inicia el sexto curso en Hogwarts en medio de terribles acontecimientos que asolan Inglaterra. Elegido capitán del equipo de Quidditch, los entrenamientos, los exámenes y las chicas ocupan todo su tiempo, pero la tranquilidad dura poco. A pesar de los férreos controles de seguridad que protegen la escuela, dos alumnos son brutalmente atacados. Dumbledore sabe que se acerca el momento, anunciado por la Profecía, en que <NAME> y Voldemort se enfrentarán a muerte: «El único con poder para vencer al Señor Tenebroso se acerca... Uno de los dos debe morir a manos del otro, pues ninguno de los dos podrá vivir mientras siga el otro con vida.». El anciano director solicitará la ayuda de Harry y juntos emprenderán peligrosos viajes para intentar debilitar al enemigo, para lo cual el joven mago contará con la ayuda de un viejo libro de pociones perteneciente a un misterioso príncipe, alguien que se hace llamar Príncipe Mestizo.', 'Nombre' => '<NAME> y el misterio del príncipe', 'Genero' => 'Fantasia', 'ISBN' => 9788478889938], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'La fecha crucial se acerca. Cuando cumpla diecisiete años, Harry perderá el encantamiento protector que lo mantiene a salvo. El anunciado enfrentamiento a muerte con lord Voldemort es inminente, y la casi imposible misión de encontrar y destruir los restantes Horrocruxes más urgente que nunca. Ha llegado la hora final, el momento de tomar las decisiones más difíciles. Harry debe abandonar la calidez y seguridad de La Madriguera para seguir sin miedo ni vacilaciones el inexorable sendero trazado para él. Consciente de lo mucho que está en juego, sólo dentro de sí mismo encontrará la fuerza necesaria que lo impulse en la vertiginosa carrera para enfrentarse con su destino.', 'Nombre' => '<NAME> y las Reliquias de la Muerte', 'Genero' => 'Fantasia', 'ISBN' => 9788498381450], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'EL MUNDO ESTARÁ OBSERVANDO GANAR SIGNIFICA FAMA Y RIQUEZA. PERDER SIGNIFICA UNA MUERTE SEGURA. Es una oscura versión del futuro próximo, doce chicos y doce chicas se ven obligados a participar en un reality show llamados Los Juegos del Hambre. Solo hay una regla: matar o morir. Cuando <NAME>, una joven de dieciséis años, se presenta voluntaria para ocupar el lugar de su hermana en los juegos, lo entiende como una condena a muerte. Sin embargo, Katniss ya ha visto la muerte de cerca; y la supervivencia forma parte de su naturaleza. ¡QUE EMPIECEN LOS SEPTUAGÉSIMO CUARTOS JUEGOS DEL HAMBRE!', 'Nombre' => 'Los Juegos Del Hambre', 'Genero' => 'Ficcion', 'ISBN' => 9789581414444], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'Contra todo prónostico, Katniss ha ganado Los Juegos del Hambre. Es un milagro que ella y su compañero del Distrito 12, <NAME>, sigan vivos. Katniss debería sentirse aliviada, incluso contenta, ya que, al fin y al cabo, ha regresado con su familia y su amigo de toda la vida, Gale. Sin embargo, nada es como a ella le gustaría. Gale guarda las distancias y Peeta le ha dado la espalda por completo. Además se rumorea que existe una rebelión contra el Capitolio...', 'Nombre' => 'En llamas', 'Genero' => 'Ficcion', 'ISBN' => 9788427200005], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => '<NAME> ha sobrevivido dos veces a Los Juegos del Hambre, pero no está a salvo. La revolución se extiende y, al parecer, todos han tenido algo que ver en el meticuloso plan, todos excepto Katniss. Aun así su papel en la batalla final es el más importante de todos. Katniss debe convertirse en el Sinsajo, en el símbolo de la rebelión... a cualquier precio.', 'Nombre' => 'Sinsajo', 'Genero' => 'Ficcion', 'ISBN' => 9788427200388], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => '¿Quién o qué mutila y mata a los niños de un pequeño pueblo norteamericano? ¿Por qué llega cíclicamente el horror a Derry en forma de un payaso siniestro que va sembrando la destrucción a su paso? Esto es lo que se proponen averiguar los protagonistas de esta novela. Tras veintisiete años de tranquilidad y lejanía, una antigua promesa infantil les hace volver al lugar en el que vivieron su infancia y juventud como una terrible pesadilla. Regresan a Derry para enfrentarse con su pasado y enterrar definitivamente la amenaza que los amargó durante su niñez. Saben que pueden morir, pero son conscientes de que no conocerán la paz hasta que aquella cosa sea destruida para siempre.', 'Nombre' => 'It (Eso)', 'Genero' => 'Horror', 'ISBN' => 9788497593793], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'Cuando el joven <NAME> encuentra el mapa de una isla desierta en la que se ha escondido un tesoro, recurre a influyentes amigos para fletar la Hispaniola y emprender el viaje. Cuenta con su audacia, la experiencia del capitán Smollet y la inteligencia del doctor Livesey. Pero la tripulación está formada por una banda de filibusteros a las órdenes de <NAME>, un verdadero pirata sanguinario que codicia el mismo tesoro.', 'Nombre' => 'La isla del tesoro', 'Genero' => 'Clasicos', 'ISBN' => 9788496246089], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'La Tierra se ve amenazada por una especie extraterrestre de insectos, seres que se comunica telepáticamente y que se consideran totalmente distintos de los humanos, a los que quieren destruir. Para vencerlos, la humanidad necesita un genio militar, y por ello se permite el nacimiento de Ender, que es el tercer hijo de una pareja en un mundo que ha limitado estrictamente a dos el número de descendientes. Ender nace para ser entrenado en una estación espacial después de que su hermana mayor y su sádico hermano Peter hayan sido declarados no aptos. Los jóvenes se distribuyen en grupos que compiten entre sí, en gravedad cero, con armas que paralizan sus armaduras. Ender asciende rápidamente en la jerarquía de la estación y se convierte en un líder nato, en la persona capaz de dirigir a las flotas terrestres contra los insectos de otros mundos.', 'Nombre' => 'El juego de Ender', 'Genero' => 'Ciencia-Ficcion', 'ISBN' => 9788466616898], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'En el año 1984 Londres es una ciudad lúgubre en la que la Policía del Pensamiento controla de forma asfixiante la vida de los ciudadanos. <NAME> es un peón de este engranaje perverso, su cometido es reescribir la historia para adaptarla a lo que el Partido considera la versión oficial de los hechos... hasta que decide replantearse la verdad del sistema que los gobierna y somete.', 'Nombre' => '1984', 'Genero' => 'Clasicos', 'ISBN' => 9781471331435], ['IDLibro' => null, 'Autor' => '<NAME>', 'Descripcion' => 'La poderosa y hosca figura del atormentado Heathcliff domina Cumbres Borrascosas, novela apasionada y tempestuosa cuya sensibilidad se adelantó a su tiempo. Los brumosos y sombríos páramos de Yorkshire son el singular escenario donde se desarrolla con fuerza arrebatadora esta historia de venganza y odio, de pasiones desatadas y amores desesperados que van más allá de la muerte y que hacen de ella una de las obras más singulares y atractivas de todos los tiempos.', 'Nombre' => 'Cumbres Borrascosas', 'Genero' => 'Clasicos', 'ISBN' => 9788633300056] ]; foreach ($libros as $libro) { DB::table('libro')->insert([ 'IDLibro' => $libro['IDLibro'], 'Autor' => $libro['Autor'], 'Descripcion' => $libro['Descripcion'], 'Nombre' => $libro['Nombre'], 'Genero' => $libro['Genero'], 'ISBN' => $libro['ISBN'] ]); } } } <file_sep>/database/migrations/2020_03_31_173319_usuario_valoracion.php <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class UsuarioValoracion extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Usuario_Valoracion',function (Blueprint $table) { $table->bigInteger('IDUsuarioFK4')->unsigned(); $table->foreign('IDUsuarioFK4')->references('IDUsuario')->on('Usuario')->onDelete('cascade'); $table->bigInteger('IDValoracionFK3')->unsigned(); $table->foreign('IDValoracionFK3')->references('IDValoracion')->on('Valoracion')->onDelete('cascade'); $table->string('IDMezcla')->unique(); //este ID será el IDUsuario_IDValoracion $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('Usuario_Valoracion'); } } <file_sep>/routes/web.php <?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::any('/','UnidentifiedController@login')->name('login'); Route::any('/login','UnidentifiedController@login')->name('login'); Route::any('/newPassword','UnidentifiedController@newPassword')->name('newPassword'); Route::any('/inicio','UsuarioController@inicio')->name('inicio'); Route::any('/configuracion','UsuarioController@configuracion'); Route::any('/biblioteca','UsuarioController@biblioteca'); Route::any('/resultados','UsuarioController@resultados'); Route::any('/libro/{id}','UsuarioController@entrada'); Route::any('/registro','UnidentifiedController@registro')->name('registro'); Route::any('/usuario/{id}','UsuarioController@usuario')->name('usuario'); Route::any('/listado','UsuarioController@listado'); Route::any('/creacion-usuario','UsuarioController@creacionUsuario'); Route::any('/nuevo-libro','UsuarioController@nuevoLibro'); Route::any('/editar-libro/{id}','UsuarioController@editarLibro')->name('editarLibro'); Route::any('/faq','UnidentifiedController@faq'); //rutas ajax Route::any('editarNombre.php', 'AjaxController@ajaxEditarNombre')->name('editarNombre'); Route::any('editarEmail.php', 'AjaxController@ajaxEditarEmail')->name('editarEmail'); Route::any('editarNacimiento.php', 'AjaxController@ajaxEditarNacimiento')->name('editarNacimiento'); Route::any('getPassword.php', 'AjaxController@ajaxGetPassword')->name('getPassword'); Route::any('editarPassword.php', 'AjaxController@ajaxEditarPassword')->name('editarPassword'); Route::any('editarTitulo.php', 'AjaxController@ajaxEditarTitulo')->name('editarTitulo'); Route::any('editarPuntuacion.php', 'AjaxController@ajaxEditarPuntuacion')->name('editarPuntuacion'); Route::any('editarComentario.php', 'AjaxController@ajaxEditarComentario')->name('editarComentario'); Route::any('comprobarEmail.php', 'AjaxController@ajaxComprobarEmail')->name('comprobarEmail'); Route::any('editarAdmin.php', 'AjaxController@ajaxEditarAdmin')->name('editarAdmin'); Route::any('editarBlock.php', 'AjaxController@ajaxEditarBlock')->name('editarBlock'); Route::any('editarMeGusta.php', 'AjaxController@ajaxEditarMeGusta')->name('editarMeGusta'); Route::any('resetPassword.php', 'AjaxController@ajaxResetPassword')->name('resetPassword'); // Email related routes //Route::any('mail/send', 'MailController@send')->name('sendMail'); <file_sep>/app/Like.php <?php namespace App; use Illuminate\Database\Eloquent\Model; class Like extends Model { public function run() { $this->call([ LikesTableSeeder::class, ]); } } <file_sep>/app/Http/Controllers/UsuarioController.php <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Usuario; use Illuminate\Support\Facades\DB; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Hash; class UsuarioController extends Controller { function login(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"])){ return view('inicio'); } return redirect()->route('login'); } function inicio(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"])){ $usuario = DB::table('usuario')->where('Email','=',$_SESSION["email"])->first(); $valoraciones = DB::table('Valoracion')->where('IDUsuarioFK','=',$usuario->IDUsuario)->orderBy('Valoracion.created_at','desc')->get(); //este doble inner join junta las tablas usuario_valoracion, valoracion y libro para poder encontrar que libro tiene el comentario que le ha gustado a un usuario en concreto (boom) $likesRecibidos = DB::table('Usuario_Valoracion')->join('Valoracion','Usuario_Valoracion.IDValoracionFK3','=','Valoracion.IDValoracion')->join('Libro','Valoracion.IDLibroFK','=','Libro.IDLibro')->where('Valoracion.IDUsuarioFK','=',$usuario->IDUsuario)->orderBy('Usuario_Valoracion.created_at','desc')->get(); $likesDados = DB::table('Usuario_Valoracion')->join('Valoracion','Usuario_Valoracion.IDValoracionFK3','=','Valoracion.IDValoracion')->join('Libro','Valoracion.IDLibroFK','=','Libro.IDLibro')->where('Usuario_Valoracion.IDUsuarioFK4','=',$usuario->IDUsuario)->orderBy('Valoracion.created_at','desc')->get(); $relaciones = DB::table('Libro')->join('Usuario_Libro','Libro.IDLibro','=','Usuario_Libro.IDLibroFK2')->where('IDUsuarioFK3','=',$_SESSION["id"])->orderBy('Usuario_Libro.created_at','desc')->get(); return view('/inicio',['usuario'=>$usuario,'valoraciones'=>$valoraciones,'likesRecibidos'=>$likesRecibidos,'likesDados'=>$likesDados, 'relaciones'=>$relaciones]); } return redirect()->route('login'); } function configuracion(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"])){ $usuario = DB::table('usuario')->where('Email','=',$_SESSION["email"])->first(); if(isset($_POST["botonImagen"])){ $errores = []; $target_dir = "../public/images/imagenesUsuarios/"; $extension = strtolower(pathinfo(basename($_FILES["imagen"]["name"]),PATHINFO_EXTENSION)); $target_file = $target_dir . basename("foto_".$usuario->IDUsuario.".".$extension); $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); if($_FILES["imagen"]["name"] != ""){ $check = getimagesize($_FILES["imagen"]["tmp_name"]); if($check !== false) { if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { $errores["errorImagen"] = "Solo se admiten los archivos JPG, JPEG, PNG & GIF"; } else { if ($_FILES["imagen"]["size"] > 500000) $errores["errorImagen"] = "Tu archivo pesa demasiado"; else { //esto borra el archivo de la foto para ese usuario si ya existia if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif"); if (move_uploaded_file($_FILES["imagen"]["tmp_name"], $target_file)) return back(); //todo ok else $errores["errorImagen"] = "Ha habido un error al subir tu foto"; } } } else $errores["errorImagen"] = "El archivo no es una imagen"; } else $errores["errorImagen"] = "Has de subir algun archivo"; return back()->withErrors($errores); } else if(isset($_POST["eliminarImagen"])){ if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif"); } else if(isset($_POST["eliminarCuenta"])){ DB::table('usuario')->where('Email','=',$_SESSION["email"])->delete(); //también eliminamos la imagen de la base de datos, si no nos queda y se le puede asignar a otro usuario if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif"); session_unset(); return redirect()->route('login'); } return view('/configuracion',['usuario'=>$usuario]); } return redirect()->route('login'); } function biblioteca(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"])){ $usuario = DB::table('usuario')->where('Email','=',$_SESSION["email"])->first(); $libros = DB::table('Libro')->join('Usuario_Libro','Libro.IDLibro','=','Usuario_Libro.IDLibroFK2')->where('IDUsuarioFK3','=',$_SESSION["id"])->orderBy('Libro.IDLibro','asc')->get(); return view('/biblioteca',['usuario'=>$usuario,'libros'=>$libros]); } return redirect()->route('login'); } function resultados(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"])){ if(isset($_GET["buscador"])){ if($_GET["buscador"]!="") $resultados = DB::table('libro')->where('Nombre','LIKE','%'.$_GET["buscador"].'%')->get(); else $resultados = DB::table('libro')->where('Nombre','LIKE',$_GET["buscador"])->get(); return view('resultados',['resultados'=>$resultados,'busqueda'=>$_GET["buscador"]]); } else redirect()->route('inicio'); } return redirect()->route('login'); } function entrada($id){ if(session_status() == PHP_SESSION_NONE) session_start(); if(!isset($_SESSION["email"])) return redirect()->route('login'); $libro = DB::table('libro')->where('IDLibro','=',$id)->first(); $usuario = DB::table('usuario')->where('Email','=',$_SESSION["email"])->first(); if($libro==NULL) return response()->view('error',['error' => "404", 'mensaje' => "No hemos podido encontrar el Libro que buscabas"]); if(isset($_POST["publicarValoracion"])){ //Vamos a dejar un comentario $errores = []; if($_POST["titulo"]!=""){ if(strlen($_POST["titulo"]) >= 50) $errores["titulo"] = "El titulo de la valoración no puede tener mas de 50 caracteres"; } else $errores["titulo"] = "El titulo no puede estar vacio"; if($_POST["puntuacion"]!=""){ if(ctype_digit($_POST["puntuacion"])){ if(intval($_POST["puntuacion"])>10 || intval($_POST["puntuacion"])<0) $errores["puntuacion"] = "La puntuacion ha de ser del 0 al 10"; } else $errores["puntuacion"] = "La puntuacion ha de ser un numero integer"; } else $errores["puntuacion"] = "La puntuacion no puede estar vacia"; if($_POST["comentario"]!=""){ if(strlen($_POST["comentario"]) >= 10000) $errores["comentario"] = "El comentario de la valoración no puede tener mas de 10.000 caracteres"; } else $errores["comentario"] = "El comentario no puede estar vacio"; if($errores!=[]) { $errores["realTitulo"] = $_POST["titulo"]; $errores["realPuntuacion"] = $_POST["puntuacion"]; $errores["realComentario"] = $_POST["comentario"]; return back()->withErrors($errores); } else { //todo ok, insertamos el comentario DB::table('valoracion')->insert( ['IDValoracion' => null, 'Titulo' => $_POST["titulo"], 'Comentario' => $_POST["comentario"], 'Puntuacion' => $_POST["puntuacion"], 'IDLibroFK' => $libro->IDLibro, 'IDUsuarioFK' => $usuario->IDUsuario, 'created_at' => date('Y-m-d H:i:s')] ); return back(); } } else if(isset($_POST["botonRelacion"])){ //vamos a crer la relacion (o actualizarla). Con esto sabemos si quieren leer un libro, si lo han leido, si esta fav... $relacion = DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->first(); $fav=0; if(isset($_POST["favorito"])) $fav=1; if($_POST["relacion"]=="Sin Relacion"){ DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->delete(); } else if ($_POST["relacion"]=="Quiero Leerlo"){ if($relacion!=NULL) DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->update(['Relacion'=>1,'Favorito'=>$fav,'created_at'=>date('Y-m-d H:i:s')]); else DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->insert(['IDLibroFK2'=>$id,'IDUsuarioFK3'=>$_SESSION["id"],'IDMezcla'=>$id."_".$_SESSION["id"],'Relacion'=>1,'Favorito'=>$fav,'created_at'=>date('Y-m-d H:i:s')]); } else if($_POST["relacion"]=="Leyendo"){ if($relacion!=NULL) DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->update(['Relacion'=>2,'Favorito'=>$fav,'created_at'=>date('Y-m-d H:i:s')]); else DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->insert(['IDLibroFK2'=>$id,'IDUsuarioFK3'=>$_SESSION["id"],'IDMezcla'=>$id."_".$_SESSION["id"],'Relacion'=>2,'Favorito'=>$fav,'created_at'=>date('Y-m-d H:i:s')]); } else if($_POST["relacion"]=="Leido"){ if($relacion!=NULL) DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->update(['Relacion'=>3,'Favorito'=>$fav,'created_at'=>date('Y-m-d H:i:s')]); else DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->insert(['IDLibroFK2'=>$id,'IDUsuarioFK3'=>$_SESSION["id"],'IDMezcla'=>$id."_".$_SESSION["id"],'Relacion'=>3,'Favorito'=>$fav,'created_at'=>date('Y-m-d H:i:s')]); } } else if (isset($_POST["eliminarComentario"]) && $_SESSION["admin"]==1) { //esto es para admin, por eso preguntamos $_SESSION DB::table('Valoracion')->where('IDValoracion','=',$_POST["id_valoracion"])->delete(); } else if (isset($_POST["eliminarValoracion"]) && isset($_SESSION["email"])) DB::table('valoracion')->where('IDUsuarioFK','=',$usuario->IDUsuario)->where('IDLibroFK','=',$libro->IDLibro)->delete(); $valoraciones = DB::table('valoracion')->where('IDLibroFK','=',$id)->where('IDUsuarioFK','<>',$usuario->IDUsuario)->get(); $valoracionesParaMedia = DB::table('valoracion')->where('IDLibroFK','=',$id)->get(); $relacion = DB::table('Usuario_Libro')->where('IDUsuarioFK3','=',$_SESSION["id"])->where('IDLibroFK2','=',$id)->first(); if(!$valoracionesParaMedia->isEmpty()){ $totalPuntuacion = 0; for($i = 0; $i < sizeof($valoracionesParaMedia); $i++) $totalPuntuacion = $totalPuntuacion + $valoracionesParaMedia[$i]->Puntuacion; $mediaPuntuacion = $totalPuntuacion / $i; } else $mediaPuntuacion = -1; return view('entrada',['libro' => $libro, 'valoraciones' => $valoraciones, 'usuario' => $usuario, 'relacion' => $relacion, 'mediaPuntuacion' => $mediaPuntuacion]); } function usuario($id){ if(session_status() == PHP_SESSION_NONE) session_start(); if(!isset($_SESSION["email"])) return redirect()->route('login'); $usuario = DB::table('usuario')->where('IDUsuario','=',$id)->first(); if($usuario==NULL) return response()->view('error',['error' => "404", 'mensaje' => "No hemos podido encontrar el Usuario que buscabas"]); return view('usuario',['usuario' => $usuario]); } function listado(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"]) && $_SESSION["admin"] == 1){ //es admin y está logueado $usuarios = DB::table('usuario')->get(); if(isset($_GET["buscador"])){ $usuarios = DB::table('usuario')->where('Nombre','LIKE','%'.$_GET["buscador"].'%')->get(); return view('listado',['usuarios'=>$usuarios]); } $errores = []; if(isset($_POST["botonImagen"])){ $usuario = DB::table('usuario')->where('IDUsuario','=',$_POST["id"])->first(); if($usuario!=NULL){ //este if para ver si existe el usuario $target_dir = "../public/images/imagenesUsuarios/"; $extension = strtolower(pathinfo(basename($_FILES["imagen"]["name"]),PATHINFO_EXTENSION)); $target_file = $target_dir . basename("foto_".$usuario->IDUsuario.".".$extension); $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); if($_FILES["imagen"]["name"] != ""){ $check = getimagesize($_FILES["imagen"]["tmp_name"]); if($check !== false) { if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { $errores["errorImagen"] = "Solo se admiten los archivos JPG, JPEG, PNG & GIF"; } else { if ($_FILES["imagen"]["size"] > 500000) $errores["errorImagen"] = "Tu archivo pesa demasiado"; else { //esto borra el archivo de la foto para ese usuario si ya existia if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".jpeg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".png"); else if(file_exists("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif")) unlink("../public/images/imagenesusuarios/foto_".$usuario->IDUsuario.".gif"); if (move_uploaded_file($_FILES["imagen"]["tmp_name"], $target_file)) return back(); //todo ok else $errores["errorImagen"] = "Ha habido un error al subir tu foto"; } } } else $errores["errorImagen"] = "El archivo no es una imagen"; } else $errores["errorImagen"] = "Has de subir algun archivo"; } else $errores["errorImagen"] = "Se ha producido un error en el servidor"; return back()->withErrors($errores); } if(isset($_POST["eliminarCuenta"])){ $usuario = DB::table('usuario')->where('IDUsuario','=',$_POST["id"])->first(); if($usuario!=NULL){ DB::table('usuario')->where('IDUsuario','=',$usuario->IDUsuario)->delete(); if($usuario->IDUsuario==$_SESSION["id"]){ session_unset(); return redirect()->route('login'); } $errores["successEliminar"] = "La cuenta con id ".$usuario->IDUsuario." se ha eliminado con éxito"; return back()->withErrors($errores); } else $errores["errorImagen"] = "Se ha producido un error en el servidor"; return back()->withErrors($errores); } if(isset($_POST["eliminarImagen"])){ if(file_exists("../public/images/imagenesusuarios/foto_".$_POST["id"].".jpg")) unlink("../public/images/imagenesusuarios/foto_".$_POST["id"].".jpg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$_POST["id"].".jpeg")) unlink("../public/images/imagenesusuarios/foto_".$_POST["id"].".jpeg"); else if(file_exists("../public/images/imagenesusuarios/foto_".$_POST["id"].".png")) unlink("../public/images/imagenesusuarios/foto_".$_POST["id"].".png"); else if(file_exists("../public/images/imagenesusuarios/foto_".$_POST["id"].".gif")) unlink("../public/images/imagenesusuarios/foto_".$_POST["id"].".gif"); } return view('listado',['usuarios'=>$usuarios]); } return redirect()->route('inicio'); } function creacionUsuario(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"]) && $_SESSION["admin"] == 1){ $usuarios = DB::table('usuario')->get(); //es admin y está logueado if(isset($_POST["registrarse"])){ //vamos a registrar a alguien $errores = []; if($_POST["email"]!=""){ if(strlen($_POST["email"]) < 100) { if(!filter_var($_POST["email"], FILTER_VALIDATE_EMAIL)) $errores["email"] = "El email no tiene un formato válido"; } else $errores["email"] = "El email es demasiado largo"; } else $errores["email"] = "Falta introducir el email"; $emails = DB::table('usuario')->select('email')->get(); foreach($emails as $email) if(strtolower($email->email) == strtolower($_POST["email"])) $errores["email"] = "Este email ya está registrado"; if($_POST["nombre"]!="") { if(strlen($_POST["nombre"]) >= 50) $errores["nombre"] = "El nombre es demasiado largo"; } else $errores["nombre"] = "Falta introducir el nombre"; if($_POST["password"]!=""){ if(strlen($_POST["password"]) < 50){ $errores["password"] = ""; if(!preg_match('/[A-Z]/', $_POST["password"])) $errores["password"] .= "<PASSWORD>tra mayúscula. "; if(!preg_match('/[a-z]/', $_POST["password"])) $errores["password"] .= "<PASSWORD>. "; if(!preg_match('/[0-9]/', $_POST["password"])) $errores["password"] .= "<PASSWORD>. "; if(strlen($_POST["password"])<5) $errores["password"] .= "<PASSWORD>."; if($errores["password"] == "") unset($errores["password"]); } else $errores["password"] = "<PASSWORD>"; } else $errores["password"] = "<PASSWORD>"; if($_POST["repetirPassword"] != $_POST["password"]) $errores["repetirPassword"] = "La contraseña repetida no encaja con la primera contraseña. ¡Ha de ser la misma!"; if(empty($_POST["nacimiento"])) $errores["nacimiento"] = "Falta introducir la fecha de nacimiento"; //return $errores; if($errores!=[]) { $errores["emailCampo"] = $_POST["email"]; $errores["nombreCampo"] = $_POST["nombre"]; $errores["nacimientoCampo"] = date_format(date_create($_POST["nacimiento"]),"Y-m-d"); return back()->withErrors($errores); } else { //todo ok DB::table('usuario')->insert( ['esAdmin' => false, 'email' => $_POST["email"], 'nombre' => $_POST["nombre"], 'password' => <PASSWORD>($_POST["<PASSWORD>"]), 'nacimiento' => $_POST["nacimiento"].' 0:00:00', 'bloqueado' => false, 'created_at' => date('Y-m-d H:i:s')] ); $reg["registroBien"] = "¡Se ha registrado el nuevo usuario con éxito!"; return back()->withErrors($reg); } } return view('crearCuenta'); } return redirect()->route('inicio'); } function nuevoLibro(){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"]) && $_SESSION["admin"]==1){ if(isset($_POST["crearLibro"])){ //vamos a crear el libro $imgExists = false; $errores = []; if($_POST["nombre"]!="") { if(strlen($_POST["nombre"]) >= 100) $errores["nombre"] = "El nombre es demasiado largo"; } else $errores["nombre"] = "Falta introducir el nombre"; if($_POST["autor"]!="") { if(strlen($_POST["autor"]) >= 50) $errores["autor"] = "El nombre del autor es demasiado largo"; } else $errores["autor"] = "Falta introducir el autor"; if($_POST["isbn"]!=""){ if(ctype_digit($_POST["isbn"])){ if(strlen($_POST["isbn"]) != 10 && strlen($_POST["isbn"]) != 13) { $errores["isbn"] = "El ISBN ha de tener 10 o 13 dígitos"; } else { //comprobamos que no existe un libro con su ISBN $libro = DB::table('libro')->where('ISBN','=',$_POST["isbn"])->first(); if($libro!=NULL) $errores["isbn"] = "Ya existe un Libro con este ISBN en la base de datos. Ir al Libro: <a class='link2' href='".asset('/libro/'.$libro->IDLibro)."'>".$libro->Nombre."</a>"; } } else $errores["isbn"] = "El ISBN ha de ser un numero integer"; } else $errores["isbn"] = "Falta introducir el ISBN"; if($_POST["genero"]!="") { if(strlen($_POST["genero"]) >= 20) $errores["genero"] = "El nombre del genero es demasiado largo"; } else $errores["genero"] = "Falta introducir el género"; if($_FILES["imagen"]["name"] != "") $imgExists = true; if($_POST["descripcion"]!="") { if(strlen($_POST["descripcion"]) >= 10000) $errores["descripcion"] = "La descripción es demasiado larga"; } else $errores["descripcion"] = "Falta introducir la descripcion"; if($errores!=[]) { $errores["nombreCampo"] = $_POST["nombre"]; $errores["autorCampo"] = $_POST["autor"]; $errores["isbnCampo"] = $_POST["isbn"]; $errores["generoCampo"] = $_POST["genero"]; $errores["descripcionCampo"] = $_POST["descripcion"]; return back()->withErrors($errores); } else { //todo ok //creamos y luego, si hay imagen, guardamos la imagen con el id del libro nuevo DB::table('libro')->insert( ['Autor' => $_POST["autor"], 'Nombre' => $_POST["nombre"], 'ISBN' => $_POST["isbn"], 'Genero' => $_POST["genero"], 'Descripcion' =>$_POST["descripcion"], 'created_at' => date('Y-m-d H:i:s')] ); $libro = DB::table('libro')->where('ISBN','=',$_POST["isbn"])->first(); if($imgExists){ $target_dir = "../public/images/imagenesLibros/"; $extension = strtolower(pathinfo(basename($_FILES["imagen"]["name"]),PATHINFO_EXTENSION)); $target_file = $target_dir . basename("libro_".$libro->IDLibro.".".$extension); $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); if($_FILES["imagen"]["name"] != ""){ $check = getimagesize($_FILES["imagen"]["tmp_name"]); if($check !== false) { if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { $errores["imagen"] = "Solo se admiten los archivos JPG, JPEG, PNG & GIF"; } else { if ($_FILES["imagen"]["size"] > 500000) $errores["imagen"] = "Tu archivo pesa demasiado"; else { //esto borra el archivo de la foto para ese usuario si ya existia if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpg")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpg"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpeg")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpeg"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".png")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".png"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".gif")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".gif"); if (move_uploaded_file($_FILES["imagen"]["tmp_name"], $target_file)) return back(); //todo ok else $errores["imagen"] = "No se ha podido subir tu foto"; } } } else $errores["imagen"] = "El archivo no es una imagen"; } else $errores["imagen"] = "Has de subir algun archivo"; } if(isset($errores["imagen"])) $errores["imagen"] = "Tu libro ha sido creado con éxito, pero ha habido un problema al guardar la foto: ".$errores["imagen"]; $errores["bien"] = "¡Has creado un nuevo Libro con éxito!"; return back()->withErrors($errores); } } return view('nuevoLibro'); } return redirect()->route('login'); } function editarLibro($id){ if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_SESSION["email"]) && $_SESSION["admin"]==1){ $libro = DB::table('Libro')->where('IDLibro','=',$id)->first(); if($libro==NULL) return response()->view('error',['error' => "404", 'mensaje' => "No hemos podido encontrar el Libro que buscabas"]); if(isset($_POST["editarLibro"])){ //vamos a crear el libro $imgExists = false; $errores = []; if($_POST["nombre"]!="") { if(strlen($_POST["nombre"]) >= 100) $errores["nombre"] = "El nombre es demasiado largo"; } else $errores["nombre"] = "Falta introducir el nombre"; if($_POST["autor"]!="") { if(strlen($_POST["autor"]) >= 50) $errores["autor"] = "El nombre del autor es demasiado largo"; } else $errores["autor"] = "Falta introducir el autor"; if($_POST["isbn"]!=""){ if(ctype_digit($_POST["isbn"])){ if(strlen($_POST["isbn"]) != 10 && strlen($_POST["isbn"]) != 13) { $errores["isbn"] = "El ISBN ha de tener 10 o 13 dígitos"; } else { //comprobamos que no existe un libro con su ISBN //con la doble query esta dejamos que el isbn propio exista, para que no pete al guardar el mismo isbn $libro = DB::table('libro')->where('IDLibro','=',$id)->first(); $libros = DB::table('libro')->where('ISBN','=',$_POST["isbn"])->where('ISBN','<>',$libro->ISBN)->first(); if($libros!=NULL) $errores["isbn"] = "Ya existe un Libro con este ISBN en la base de datos. Ir al Libro: <a class='link2' href='".asset('/libro/'.$libros->IDLibro)."'>".$libros->Nombre."</a>"; } } else $errores["isbn"] = "El ISBN ha de ser un numero integer"; } else $errores["isbn"] = "Falta introducir el ISBN"; if($_POST["genero"]!="") { if(strlen($_POST["genero"]) >= 20) $errores["genero"] = "El nombre del genero es demasiado largo"; } else $errores["genero"] = "Falta introducir el género"; if($_FILES["imagen"]["name"] != "") $imgExists = true; if($_POST["descripcion"]!="") { if(strlen($_POST["descripcion"]) >= 10000) $errores["descripcion"] = "La descripción es demasiado larga"; } else $errores["descripcion"] = "Falta introducir la descripcion"; if($errores!=[]) return back()->withErrors($errores); else { //todo ok //creamos y luego, si hay imagen, guardamos la imagen con el id del libro nuevo DB::table('libro')->where('IDLibro','=',$id)->update( ['Autor' => $_POST["autor"], 'Nombre' => $_POST["nombre"], 'ISBN' => $_POST["isbn"], 'Genero' => $_POST["genero"], 'Descripcion' =>$_POST["descripcion"]] ); $libro = DB::table('libro')->where('ISBN','=',$_POST["isbn"])->first(); if($imgExists){ $target_dir = "../public/images/imagenesLibros/"; $extension = strtolower(pathinfo(basename($_FILES["imagen"]["name"]),PATHINFO_EXTENSION)); $target_file = $target_dir . basename("libro_".$libro->IDLibro.".".$extension); $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); if($_FILES["imagen"]["name"] != ""){ $check = getimagesize($_FILES["imagen"]["tmp_name"]); if($check !== false) { if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { $errores["imagen"] = "Solo se admiten los archivos JPG, JPEG, PNG & GIF"; } else { if ($_FILES["imagen"]["size"] > 500000) $errores["imagen"] = "Tu archivo pesa demasiado"; else { //esto borra el archivo de la foto para ese libro si ya existia if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpg")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpg"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpeg")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpeg"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".png")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".png"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".gif")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".gif"); if (!move_uploaded_file($_FILES["imagen"]["tmp_name"], $target_file)) $errores["imagen"] = "No se ha podido subir tu foto"; } } } else $errores["imagen"] = "El archivo no es una imagen"; } else $errores["imagen"] = "Has de subir algun archivo"; } if(isset($errores["imagen"])) $errores["imagen"] = "Tu libro ha sido editado con éxito, pero ha habido un problema al guardar la foto: ".$errores["imagen"]; $errores["bien"] = "¡Has editado este Libro!"; return back()->withErrors($errores); } } else if(isset($_POST["eliminarImagen"])){ if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpg")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpg"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpeg")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".jpeg"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".png")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".png"); else if(file_exists("../public/images/imagenesLibros/libro_".$libro->IDLibro.".gif")) unlink("../public/images/imagenesLibros/libro_".$libro->IDLibro.".gif"); else { $errores["bien"] = "Este libro no tiene Imagen"; return back()->withErrors($errores); } $errores["bien"] = "¡Has eliminado la imagen del Libro con éxito!"; return back()->withErrors($errores); } else if(isset($_POST["eliminarLibro"])){ //eliminamos el libro DB::table('Libro')->where('IDLibro','=',$id)->delete(); $errores["bien"] = "¡Eliminado!"; return view('nuevoLibro')->withErrors($errores); } return view('editarLibro',['libro'=>$libro]); } return redirect()->route('login'); } } <file_sep>/database/seeds/ValoracionTableSeeder.php <?php use Illuminate\Database\Seeder; class ValoracionTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $valoraciones = [ ['IDValoracion' => null, 'Titulo' => 'Me ha gustado el libro', 'Comentario' => 'Ha sido un libro muy chulo, lo recomiendo a todo el mundo que le guste la ciencia ficcion.', 'Puntuacion' => 8, 'IDLibroFK' => 1, 'IDUsuarioFK' => 1, 'created_at' => date('Y-m-d H:i:s')], ['IDValoracion' => null, 'Titulo' => 'No lo recomiendo...', 'Comentario' => 'Me ha decepcionado bastante, no se lo recomiendo a nadie.', 'Puntuacion' => 2, 'IDLibroFK' => 1, 'IDUsuarioFK' => 2, 'created_at' => date('Y-m-d H:i:s')], ['IDValoracion' => null, 'Titulo' => 'Me ha gustado el libro Las Pruebas', 'Comentario' => 'Es el mejor de la trilogia, sin duda. Y eso que los demás son buenos.', 'Puntuacion' => 6, 'IDLibroFK' => 2, 'IDUsuarioFK' => 1, 'created_at' => date('Y-m-d H:i:s')] ]; foreach ($valoraciones as $valoracion) { DB::table('valoracion')->insert([ 'IDValoracion' => $valoracion['IDValoracion'], 'Titulo' => $valoracion['Titulo'], 'Comentario' => $valoracion['Comentario'], 'Puntuacion' => $valoracion['Puntuacion'], 'IDLibroFK' => $valoracion['IDLibroFK'], 'IDUsuarioFK' => $valoracion['IDUsuarioFK'], 'created_at' => $valoracion['created_at'] ]); } } } <file_sep>/database/migrations/2020_02_13_104846_valoracion.php <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class Valoracion extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Valoracion',function (Blueprint $table) { $table->bigIncrements('IDValoracion'); $table->string('Titulo',50); $table->string('Comentario',10000); $table->integer('Puntuacion'); //$table->integer('MeGusta'); $table->bigInteger('IDLibroFK')->unsigned(); $table->foreign('IDLibroFK')->references('IDLibro')->on('Libro')->onDelete('cascade'); $table->bigInteger('IDUsuarioFK')->unsigned(); $table->foreign('IDUsuarioFK')->references('IDUsuario')->on('Usuario')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('Valoracion'); } } <file_sep>/public/Ajax/getPassword.php <?php use Illuminate\Support\Facades\DB; if(session_status() == PHP_SESSION_NONE) session_start(); if(isset($_POST["q"]) && isset($_SESSION["email"])){ if(Hash::check($_POST["q"],DB::table('usuario')->select("Password")->where('Email','=',$_SESSION["email"])->first()->Password)) echo 1; else echo 0; } else { header("Location: /configuracion"); exit; } ?><file_sep>/database/seeds/DatabaseSeeder.php <?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $this->call([ UsuarioTableSeeder::class, LibroTableSeeder::class, ValoracionTableSeeder::class, Usuario_LibroTableSeeder::class, Usuario_ValoracionTableSeeder::class, ]); } } <file_sep>/app/Exceptions/Handler.php <?php namespace App\Exceptions; use Exception; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; class Handler extends ExceptionHandler { /** * A list of the exception types that are not reported. * * @var array */ protected $dontReport = [ // ]; /** * A list of the inputs that are never flashed for validation exceptions. * * @var array */ protected $dontFlash = [ 'password', 'password_confirmation', ]; /** * Report or log an exception. * * @param \Exception $exception * @return void */ public function report(Exception $exception) { parent::report($exception); } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request * @param \Exception $exception * @return \Illuminate\Http\Response */ public function render($request, Exception $exception) { if($this->isHttpException($exception)){ $code = $exception->getStatusCode(); if($code==404) return response()->view('error',['error' => $code, 'mensaje' => "No hemos podido encontrar lo que buscabas"]); return response()->view('error',['error' => $code, 'mensaje' => "Ha habido un error"]); } else { //Si hay un error interno, este se envia por email a la cuenta oficial de libros por libros. //lo dejo comentado, porque lo del mail solo va en mi pc, ya que xampp está configurado para ello, en cambio si se ejecuta en el pc del profesor que lo corrija no le funcionará /*$to_email = "<EMAIL>"; $subject = "Error en la pagina"; $body = "Se ha generado un error en la pagina. Este es el error:\n\n".parent::render($request, $exception); $headers = "From: LibrosPorLibros"; mail($to_email, $subject, $body, $headers);*/ return response()->view('error',['error' => 500, 'mensaje' => "Ha habido un error interno en el servidor. Un administrador ya ha sido notificado de esto. Si el error persiste escribe a <EMAIL>"]); } //si activamos estos else, cualquier error que haya en la página se notificará //como error del servidor de libros por libros. //Los usuarios nunca veran que error ha tenido el servidor. //Usar esto en presentaciones importantes, ya que es muy radical y priva de hacer testing return parent::render($request, $exception); } } <file_sep>/database/seeds/Usuario_LibroTableSeeder.php <?php use Illuminate\Database\Seeder; class Usuario_LibroTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $relaciones = [ ['IDLibroFK2' => 1, 'IDUsuarioFK3' => 1, 'IDMezcla' => '1_1', 'Relacion' => 1, 'Favorito' => 1, 'created_at' => date('Y-m-d H:i:s')], ['IDLibroFK2' => 2, 'IDUsuarioFK3' => 1, 'IDMezcla' => '2_1', 'Relacion' => 1, 'Favorito' => 0, 'created_at' => date('Y-m-d H:i:s')] ]; foreach ($relaciones as $relacion) { DB::table('Usuario_Libro')->insert([ 'IDLibroFK2' => $relacion['IDLibroFK2'], 'IDUsuarioFK3' => $relacion['IDUsuarioFK3'], 'IDMezcla' => $relacion['IDMezcla'], 'Relacion' => $relacion['Relacion'], 'Favorito' => $relacion['Favorito'], 'created_at' => $relacion['created_at'] ]); } } } <file_sep>/public/JavaScript/index.js function swalError(t){ Swal.fire({ html: '<style>.swalText{ color: white; }</style>'+ '<h2 class="swalText" style="color: red;">ERROR</h2>'+ '<p class="swalText">'+t+'</p>'+ '<input class="botonEstandar py-2 px-4" type="button" value="OK" onclick="swal.close();">', background: '#211c12', showConfirmButton: false }) } function swalAtencion(t){ Swal.fire({ html: '<style>.swalText{ color: white; }</style>'+ '<h2 class="swalText" style="color: yellow;">ATENCION</h2>'+ '<p class="swalText">'+t+'</p>'+ '<input class="botonEstandar py-2 px-4" type="button" value="OK" onclick="swal.close();">', background: '#211c12', showConfirmButton: false }) } function swalExito(t){ Swal.fire({ html: '<style>.swalText{ color: white; }</style>'+ '<h2 class="swalText" style="color: green;">ÉXITO</h2>'+ '<p class="swalText">'+t+'</p>'+ '<input class="botonEstandar py-2 px-4" type="button" value="OK" onclick="swal.close();">', background: '#211c12', showConfirmButton: false }) } function swalConfirmacion(t,r){ Swal.fire({ html: '<style>.swalText{ color: white; }</style>'+ '<h2 class="swalText" style="color: Blue;">Confirmación</h2>'+ '<p class="swalText">'+t+'</p>'+ '<input aria-label class="botonEstandar py-2 px-4" type="button" value="Aceptar" onclick="'+r+';">'+ '<input class="botonEstandar py-2 px-4" type="button" value="Cancelar" onclick="swal.close();">', background: '#211c12', showConfirmButton: false }).then((result) => { console.log(result); }) } function swalTitulo(titulo,t,color){ Swal.fire({ html: '<style>.swalText{ color: white; }</style>'+ '<h2 class="swalText" style="color: '+color+';">'+titulo+'</h2>'+ '<p class="swalText">'+t+'</p>'+ '<input class="botonEstandar py-2 px-4" type="button" value="OK" onclick="swal.close();">', background: '#211c12', showConfirmButton: false }) } function swalCargando(){ Swal.fire({ html: '<style>.swalText{ color: white; }</style>'+ '<h2 class="swalText" style="color: white;">Cargando Operacion...</h2>'+ '<p class="swalText">Espera un momento</p>', background: '#211c12', showConfirmButton: false }) } function editarNombre(){ if(document.getElementById("botonNombre").value=="Editar"){ //cambiamos el texto por input const nac = document.getElementById("nombre"); nac.remove(); document.getElementById("nombrePadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='inputNombre' type='text' value='"+nac.innerText.trim()+"'>"); //cambiamos el boton document.getElementById("botonNombre").value = "Guardar"; } else { //enviamos la info a la base de datos por ajax const act = document.getElementById("inputNombre"); if(act.value != ""){ act.remove(); document.getElementById("nombrePadre").insertAdjacentHTML("beforeend","<p id='nombre'>"+act.value+"</p>"); //cambiamos el boton document.getElementById("botonNombre").value = "Editar"; //hacemos ajax para actualizar los cambios //xmlhttp = window.XMLHttpRequest ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "editarNombre.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById('nombre').innerText); swalExito("Has cambiado tu <b>nombre</b> con éxito"); } else swalError("El <b>Nombre</b> de Usuario no puede estar vacio"); } } function editarEmail(){ if(document.getElementById("botonEmail").value=="Editar"){ //cambiamos el texto por input const nac = document.getElementById("email"); nac.remove(); document.getElementById("emailPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='inputEmail' type='text' value='"+nac.innerText.trim()+"'>"); //cambiamos el boton document.getElementById("botonEmail").value = "Guardar"; } else { //enviamos la info a la base de datos por ajax const act = document.getElementById("inputEmail"); const exp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ if(exp.test(act.value)){ if(window.XMLHttpRequest) xmlhttp2 = new XMLHttpRequest(); else xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp2.open("POST", "comprobarEmail.php", true); xmlhttp2.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp2.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp2.send("q="+act.value); swalCargando(); xmlhttp2.onreadystatechange = function(){ if(this.readyState==4){ if(this.responseText==0){ act.remove(); document.getElementById("emailPadre").insertAdjacentHTML("beforeend","<p id='email'>"+act.value+"</p>"); //cambiamos el boton document.getElementById("botonEmail").value = "Editar"; //hacemos ajax para actualizar los cambios if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("POST", "editarEmail.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById("email").innerText); swalExito("Has cambiado tu email. Ahora para entrar en Libros por Libros tendrás que usar el mail que acabas de introducir"); } else { swalError("El <b>Email</b> que has introducido ya está registrado en la página web"); } } } } else { swalError("El formato de <b>Email</b> que has introducido no es correcto"); } } } function editarNacimiento(){ if(document.getElementById("botonNacimiento").value=="Editar"){ //cambiamos el texto por input const nac = document.getElementById("nacimiento"); nac.remove(); document.getElementById("nacimientoPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12 mb-2' id='inputNacimiento' type='text' value='"+nac.innerText.trim()+"'>"); //cambiamos el boton document.getElementById("botonNacimiento").value = "Guardar"; } else { //enviamos la info a la base de datos por ajax const act = document.getElementById("inputNacimiento"); const exp = /^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])$/; if(exp.test(act.value)) { act.remove(); document.getElementById("nacimientoPadre").insertAdjacentHTML("beforeend","<p id='nacimiento'>"+act.value+"</p>") //cambiamos el boton document.getElementById("botonNacimiento").value = "Editar"; //hacemos ajax para actualizar los cambios if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "editarNacimiento.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById("nacimiento").innerText); swalExito("Has cambiado tu <b>Fecha de Nacimiento</b> con éxito"); } else { swalError("El formato de <b>Fecha de Nacimiento</b> que has introducido no es correcto"); } } } function editarPassword(){ if(document.getElementById("botonPassword").value=="Editar"){ //cambiamos el texto por input const nac = document.getElementById("password"); nac.remove(); document.getElementById("passwordPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='passActual' placeholder='Contraseña actual...' type='password'>"); document.getElementById("passwordPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='nuevaPass' placeholder='Nueva contraseña...' type='password'>"); document.getElementById("passwordPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='repitePass' placeholder='Repite la contraseña...' type='password'>"); //cambiamos el boton document.getElementById("botonPassword").value = "<PASSWORD>"; } else { //enviamos la info a la base de datos por ajax const actual = document.getElementById("passActual"); const nueva = document.getElementById("nuevaPass"); const repetida = document.getElementById("repitePass"); const act = actual.value; const nue = nueva.value; const rep = repetida.value; if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.onreadystatechange = function(){ if(this.readyState==4){ if(this.responseText=="1"){ if(act!=nue){ const expA = /[A-Z]/; if(expA.test(nue)){ const expa = /[a-z]/; if(expa.test(nue)){ const exp1 = /[0-9]/; if(exp1.test(nue)){ if(nue.length<50 && nue.length>5){ if(nue==rep){ actual.remove(); nueva.remove(); repetida.remove(); document.getElementById("passwordPadre").insertAdjacentHTML("beforeend","<p id='password'>********</p>"); document.getElementById("botonPassword").value = "<PASSWORD>"; if(window.XMLHttpRequest) xmlhttp2 = new XMLHttpRequest(); //nuevos navegadores else xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp2.open("POST", "editarPassword.php", true); xmlhttp2.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp2.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp2.send("q="+nue); swalExito("La <b>contraseña</b> ha sido cambiada con éxito"); } else swalError("La <b>nueva contraseña</b> no encaja con la contraseña repetida"); } else swalError("La <b>nueva contraseña</b> ha de contener de 5 a 50 caracteres"); } else swalError("La <b>nueva contraseña</b> ha de tener un numero"); } else swalError("La <b>nueva contraseña</b> ha de tener una letra minuscula"); } else swalError("La <b>nueva contraseña</b> ha de tener una letra mayuscula"); } else swalError("La <b>contraseña</b> no puede ser la misma que la anterior"); } else swalError("La <b>contraseña</b> introducida no es la actual"); } } xmlhttp.open("POST", "getPassword.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+act); swalCargando(); } } function eliminarCuenta(){ document.getElementById("botonEliminarCuenta").remove(); document.getElementById("eliminarPadre").insertAdjacentHTML("beforeend","<input class='botonEliminar' id='eliminarCuentaConfirmar' type='submit' name='eliminarCuenta' value='Seguro, Eliminar Cuenta'>"); swalAtencion("Estás a un paso de <b>eliminar</b> tu cuenta de Libros por Libros"); } function editarImagen(){ document.getElementById("fotoPerfil").remove(); document.getElementById("imagenPadre").insertAdjacentHTML("beforeend","<input class='form-control-file' name='imagen' type='file' id='imagen'>"); document.getElementById("botonImagen").remove(); document.getElementById("botonImagenPadre").insertAdjacentHTML("beforeend","<input class='botonEditar' type='submit' name='botonImagen' value='Guardar'><div class='row col-md-12'><input class=\"col-md-12 botonEditar py-1\" name=\"eliminarImagen\" type=\"submit\" value=\"Eliminar\"></div>"); swalAtencion("Cuando hagas click en el boton <b>Guardar</b> la pagina se refrescará. Asegurate de guardar todos los cambios en otros campos antes de guardar la imagen"); } function editarTitulo(){ if(document.getElementById("botonTitulo").value=="Editar"){ //cambiamos el texto por input const nac = document.getElementById("titulo"); nac.remove(); document.getElementById("tituloPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='inputTitulo' type='text' value='"+nac.innerText.trim()+"'>"); //cambiamos el boton document.getElementById("botonTitulo").value = "Guardar"; } else { //enviamos la info a la base de datos por ajax const act = document.getElementById("inputTitulo"); if(act.value != ""){ if(act.value.length < 50){ act.remove(); document.getElementById("tituloPadre").insertAdjacentHTML("beforeend","<p id='titulo'>"+act.value+"</p>"); document.getElementById("botonTitulo").value = "Editar"; //ajax if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "/editarTitulo.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById('titulo').innerText); swalExito("Has cambiado el <b>Titulo</b> de tu Valoración con éxito"); } else swalError("El <b>Titulo</b> de la Valoración no upede tener mas de 50 carácteres"); } else swalError("El <b>Titulo</b> de la Valoración no puede estar vacio"); } } function editarPuntuacion(){ if(document.getElementById("botonPuntuacion").value=="Editar"){ const nac = document.getElementById("puntuacion"); nac.remove(); document.getElementById("puntuacionPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='inputPuntuacion' type='text' value='"+nac.innerText.trim()+"'>"); document.getElementById("botonPuntuacion").value = "Guardar"; } else { //enviamos la info a la base de datos por ajax const act = document.getElementById("inputPuntuacion"); if(act.value != ""){ const exp = /^[0-9]$|^10$/; if(exp.test(act.value)){ act.remove(); document.getElementById("puntuacionPadre").insertAdjacentHTML("beforeend","<p id='puntuacion'>"+act.value+"</p>"); document.getElementById("botonPuntuacion").value = "Editar"; //ajax const url = document.URL; if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "/editarPuntuacion.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById('puntuacion').innerText); swalExito("Has cambiado la <b>Puntuacion</b> de tu Valoración con éxito"); } else swalError("La <b>Puntuacion</b> de la Valoración ha de ser un numero integer del 0 al 10"); } else swalError("La <b>Puntuacion</b> de la Valoración no puede estar vacio"); } } function editarComentario(){ if(document.getElementById("botonComentario").value=="Editar"){ const nac = document.getElementById("comentario"); nac.remove(); //document.getElementById("comentarioPadre").insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='inputComentario' type='text' value='"+nac.innerText.trim()+"'>"); document.getElementById("comentarioPadre").insertAdjacentHTML("beforeend","<textarea class='form-control' id='inputComentario' type='text'>"+nac.innerText.trim()+"</textarea>"); document.getElementById("botonComentario").value = "Guardar"; } else { const act = document.getElementById("inputComentario"); if(act.value != ""){ if(act.value.length < 10000){ act.remove(); document.getElementById("comentarioPadre").insertAdjacentHTML("beforeend","<p id='comentario'>"+act.value+"</p>"); document.getElementById("botonComentario").value = "Editar"; //ajax const url = document.URL; if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "/editarComentario.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById('comentario').innerText); swalExito("Has cambiado el <b>Comentario</b> de tu Valoración con éxito"); } else swalError("El <b>Comentario</b> de la Valoración no upede tener mas de 10000 carácteres"); } else swalError("El <b>Comentario</b> de la Valoración no puede estar vacio"); } } function editarNombreLista(id) { if(document.getElementById("botonNombre_"+id).value=="Editar"){ const nac = document.getElementById("nombre_"+id); nac.remove(); document.getElementById("nombrePadre_"+id).insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='inputNombre_"+id+"' type='text' value='"+nac.innerText.trim()+"'>"); document.getElementById("botonNombre_"+id).value = "Guardar"; } else { const act = document.getElementById("inputNombre_"+id); if(act.value != ""){ act.remove(); document.getElementById("nombrePadre_"+id).insertAdjacentHTML("beforeend","<p id='nombre_"+id+"'>"+act.value+"</p>"); document.getElementById("botonNombre_"+id).value = "Editar"; //ajax if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "editarNombre.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById('nombre_'+id).innerText+"&id="+id); swalExito("Has cambiado el <b>nombre</b> del Usuario con ID "+id+" con éxito"); } else swalError("El <b>Nombre</b> de Usuario no puede estar vacio"); } } function editarEmailLista(id) { if(document.getElementById("botonEmail_"+id).value=="Editar"){ const nac = document.getElementById("email_"+id); nac.remove(); document.getElementById("emailPadre_"+id).insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12' id='inputEmail_"+id+"' type='text' value='"+nac.innerText.trim()+"'>"); document.getElementById("botonEmail_"+id).value = "Guardar"; } else { const act = document.getElementById("inputEmail_"+id); const exp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ if(exp.test(act.value)){ if(window.XMLHttpRequest) xmlhttp2 = new XMLHttpRequest(); else xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp2.open("POST", "comprobarEmail.php", true); xmlhttp2.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp2.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp2.send("q="+act.value+"&id="+id); swalCargando(); xmlhttp2.onreadystatechange = function(){ if(this.readyState==4){ if(this.responseText==0){ act.remove(); document.getElementById("emailPadre_"+id).insertAdjacentHTML("beforeend","<p id='email_"+id+"'>"+act.value+"</p>"); document.getElementById("botonEmail_"+id).value = "Editar"; //ajax if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("POST", "editarEmail.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById("email_"+id).innerText+"&id="+id); swalExito("Has cambiado el email del Usuario con ID "+id+". Ahora para entrar en Libros por Libros este Usuario tendrá que usar el mail que acabas de introducir"); } else { swalError("El <b>Email</b> que has introducido ya está registrado en la página web"); } } } } else { swalError("El formato de <b>Email</b> que has introducido no es correcto"); } } } function editarNacimientoLista(id) { if(document.getElementById("botonNacimiento_"+id).value=="Editar"){ const nac = document.getElementById("nacimiento_"+id); nac.remove(); document.getElementById("nacimientoPadre_"+id).insertAdjacentHTML("beforeend","<input class='inputEstandar col-md-12 mb-2' id='inputNacimiento_"+id+"' type='text' value='"+nac.innerText.trim()+"'>"); document.getElementById("botonNacimiento_"+id).value = "Guardar"; } else { //enviamos la info a la base de datos por ajax const act = document.getElementById("inputNacimiento_"+id); const exp = /^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])$/; if(exp.test(act.value)) { act.remove(); document.getElementById("nacimientoPadre_"+id).insertAdjacentHTML("beforeend","<p id='nacimiento_"+id+"'>"+act.value+"</p>"); document.getElementById("botonNacimiento_"+id).value = "Editar"; //hacemos ajax para actualizar los cambios if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "editarNacimiento.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("q="+document.getElementById("nacimiento_"+id).innerText+"&id="+id); swalExito("Has cambiado la <b>Fecha de Nacimiento</b> del usuario con id "+id+" con éxito"); } else swalError("El formato de <b>Fecha de Nacimiento</b> que has introducido no es correcto"); } } function editarAdminLista(id) { if(document.getElementById("isAdmin_"+id).innerText == "Si") swalConfirmacion("¿Estás seguro de que deseas que este Usuario ya no sea Administrador?","deshacerAdmin("+id+")"); else swalConfirmacion("¿Estás seguro de que deseas que este Usuario sea Administrador?","hacerAdmin("+id+")"); } function deshacerAdmin(id) { peticionAdminYBlock("editarAdmin.php",0,id); const p = document.getElementById("isAdmin_"+id); p.innerText = "No"; swalExito("El usuario con ID "+id+" ya no es Administrador. Para que este cambio se haga efectivo el usuario deberá cerrar sesion y volver a iniciarla."); } function hacerAdmin(id) { peticionAdminYBlock("editarAdmin.php",1,id); const p = document.getElementById("isAdmin_"+id); p.innerText = "Si"; swalExito("El usuario con ID "+id+" ahora es Administrador. Para que este cambio se haga efectivo el usuario deberá cerrar sesion y volver a iniciarla."); } function editarBloqueadoLista(id) { if(document.getElementById("isBlock_"+id).innerText == "Si") swalConfirmacion("¿Estás seguro de que deseas que este Usuario ya no este Bloqueado?","deshacerBloqueado("+id+")"); else swalConfirmacion("¿Estás seguro de que deseas que este Usuario ya no este Bloqueado?","hacerBloqueado("+id+")"); } function deshacerBloqueado(id) { peticionAdminYBlock("editarBlock.php",0,id); const p = document.getElementById("isBlock_"+id); p.innerText = "No"; swalExito("El usuario con ID "+id+" ya no está Bloqueado"); } function hacerBloqueado(id) { peticionAdminYBlock("editarBlock.php",1,id); const p = document.getElementById("isBlock_"+id); p.innerText = "Si"; swalExito("El usuario con ID "+id+" ahora está Bloqueado"); } function peticionAdminYBlock(archivo,valor,id){ if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", archivo, true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("admin="+valor+"&id="+id); } function editarImagenLista(id){ document.getElementById("fotoPerfil_"+id).remove(); document.getElementById("imagenPadre_"+id).insertAdjacentHTML("beforeend","<input class='form-control-file' name='imagen' type='file' id='imagen'>"); document.getElementById("botonImagen_"+id).remove(); document.getElementById("botonImagenPadre_"+id).insertAdjacentHTML("beforeend","<input class='botonEditar' type='submit' name='botonImagen' value='Guardar'><div class='row col-md-12'><input class=\"col-md-12 botonEditar py-1\" name=\"eliminarImagen\" type=\"submit\" value=\"Eliminar\"></div>"); swalAtencion("Cuando hagas click en el boton <b>Guardar</b> la pagina se refrescará. Asegurate de guardar todos los cambios en otros campos antes de guardar la imagen. Y si haces click en Eliminar se eliminará la imagen actual y se introducirá una por defecto"); } function eliminarCuentaLista(id){ document.getElementById("botonEliminarCuenta_"+id).remove(); document.getElementById("eliminarPadre_"+id).insertAdjacentHTML("beforeend","<input class='botonEliminar' id='eliminarCuentaConfirmar' type='submit' name='eliminarCuenta' value='Seguro, Eliminar Cuenta'>"); swalAtencion("Estás a un paso de <b>eliminar</b> esta cuenta de Libros por Libros"); } function editarPasswordLista(id){ swalConfirmacion("Si continuas se le enviará un email a este usuario con su nueva contraseña, generada aleatoriamente.","enviarMail("+id+")"); } function enviarMail(id){ if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.onreadystatechange = function(){ if(this.readyState==1){ swalCargando(); }else if(this.responseText=="1"){ swalExito("Se le ha enviado un mail con su nueva contraseña al usuario con id "+id+". Si no lo ve en la bandeja de entrada que revise en la carpeta de Spam"); } else if(this.readyState==4 && this.responseText!="1"){ swalError("Ha habido algún tipo de error, vuelve a intentarlo"); } } xmlhttp.open("POST", "/resetPassword.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("id="+id); } function meGusta(id){ const like = document.getElementById("like_"+id); let likesTotales = parseInt(document.getElementById("likesTotales_"+id).innerText); let gusta; if(like.value=="¡Me Gusta!"){ like.value = "No Me Gusta"; gusta = 0; document.getElementById("likesTotales_"+id).innerText = likesTotales + 1; } else { like.value = "¡Me Gusta!"; gusta = 1; document.getElementById("likesTotales_"+id).innerText = likesTotales - 1; } if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); //nuevos navegadores else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //viejos navegadores xmlhttp.open("POST", "/editarMeGusta.php", true); xmlhttp.setRequestHeader("x-csrf-token",$('meta[name="_token"]').attr('content')); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.send("actualMeGusta="+gusta+"&idvaloracion="+id); if(gusta==1) swalTitulo("Dislike","Ya no te gusta esta valoración","red"); else swalTitulo("Like!","Te gusta esta valoración","green"); } function eliminarLibroA(){ const btn = document.getElementById("eliminarLibro"); btn.insertAdjacentHTML('afterend','<input class="col-md-4 botonEliminar py-1" name="eliminarLibro" type="submit" value="Eliminar Libro">'); btn.remove(); swalAtencion("Estás a un paso de <b>eliminar</b> este Libro"); }
0a31e75502d63bf9687dd14e6042c62b2236f1b0
[ "JavaScript", "PHP" ]
24
PHP
santiagen25/libros-por-libros
320dc074a70ca230d75448c5a2b60cdd48ccf4ef
5cfcd7ce9f6ed2ede904cfd81fa34fc529fec5ed
refs/heads/master
<file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class KeyScript : MonoBehaviour { //When the user gets the key, the key's name should be pushed into the PlayerScript's List receivedKeys. //Once the keys are added into a specific button, the key's name in the receivedKeys should be popped out. public GameObject player; private bool can_be_carried; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if (can_be_carried && Input.GetKey(KeyCode.Space)) { Debug.Log("player has the key"); Destroy(gameObject); player.GetComponent<PlayerScript>().receivedKeys.Add(gameObject.name); } } void OnTriggerEnter(Collider collision) { if (collision.name == "Player") { can_be_carried = true; } } private void OnTriggerExit(Collider other) { if (other.name == "Player") { can_be_carried = false; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraScript : MonoBehaviour { public Transform player; public float smoothTime = 0.3f; public Vector3 originalPos; private Vector3 velocity = Vector3.zero; public static CameraScript mainCamera; void Start() { mainCamera = this; originalPos = transform.position; transform.position = player.transform.position + transform.position; } // Update is called once per frame void Update () { transform.position = Vector3.SmoothDamp(transform.position, player.transform.position + originalPos, ref velocity, smoothTime); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class RotationScript : MonoBehaviour { public float yRot = 90f; public float smooth = 3f; public bool running = false; public float timePassed = 0f; public Quaternion originalRot; void Start() { originalRot = transform.rotation; } // Update is called once per frame void Update() { if (running) { timePassed += Time.deltaTime; transform.rotation = Quaternion.Slerp(originalRot, Quaternion.Euler(0, originalRot.eulerAngles.y + yRot, 0), timePassed); Debug.Log(transform.rotation.eulerAngles.y); if (timePassed >= 1f) { originalRot = transform.rotation; timePassed = 0f; running = false; } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class PebbleScript : MonoBehaviour { public Transform wave; public float maxRayDistance = 100.0f; void Start(){ wave = FindObjectOfType<ShockwaveScript>().transform; //wave = ShockwaveScript.shockwave.transform; } public void CreateRay() { Ray ray = new Ray(transform.position, -wave.transform.forward); RaycastHit hit; Debug.DrawRay(transform.position, -wave.transform.forward * maxRayDistance, Color.red); if (!Physics.Raycast(ray, out hit, maxRayDistance, LayerMask.GetMask("Obstacle"))) { GetComponent<Rigidbody>().AddForceAtPosition(new Vector3(0f, Random.Range(.25f, .5f), Random.Range(-1.5f, -1f)) * 500f, Random.onUnitSphere); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class WinScript : MonoBehaviour { public static bool hasWon = false; [SerializeField] TransformButton lastButton; [SerializeField] float timePerCharacter = .1f; [SerializeField] Text winText; [SerializeField] float timeAfterCredits = 4f; [SerializeField] Image blackScreen; bool buttonOne = false; bool buttonTwo = false; float textTimer = 0f; string winString; public void Win(){ hasWon = true; //player control is removed in the player script already } void Start(){ winString = winText.text; winText.text = ""; lastButton.enabled = false; } void Update(){ if (WinScript.hasWon){ textTimer += Time.deltaTime; //update the win text int currentLength = Mathf.Min((int)(textTimer / timePerCharacter), winString.Length); winText.text = winString.Substring(0, currentLength); if(textTimer - currentLength > 0f){ float alpha = 2 * (textTimer - currentLength) / timeAfterCredits; blackScreen.color = new Color(0,0,0,alpha); } } } public void WinButtonPressed(){ Win(); } public void ButtonOnePressed(){ buttonOne = true; CheckEnableWinButton(); } public void ButtonTwoPressed(){ buttonTwo = true; CheckEnableWinButton(); } void CheckEnableWinButton(){ if (buttonOne && buttonTwo){ lastButton.enabled = true; } } } <file_sep>using UnityEngine; using System.Collections; public class SpinForever : MonoBehaviour { public float pulsate_rate; public float pulsate_max_time; public float speed; private float pulsate_timer; private bool is_zooming; // Use this for initialization void Start () { is_zooming = true; } // Update is called once per frame void Update () { transform.Rotate(new Vector3(0, 0, speed * Time.deltaTime)); if (pulsate_rate > 0) { if (is_zooming) { Vector3 temp_pos = transform.position; temp_pos.z += pulsate_rate * Time.deltaTime; transform.position = temp_pos; pulsate_timer += Time.deltaTime; if (pulsate_timer > pulsate_max_time) { is_zooming = false; pulsate_timer -= pulsate_max_time; } } else { Vector3 temp_pos = transform.position; temp_pos.z -= pulsate_rate * Time.deltaTime; transform.position = temp_pos; pulsate_timer += Time.deltaTime; if (pulsate_timer > pulsate_max_time) { is_zooming = true; pulsate_timer -= pulsate_max_time; } } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class TransformButton : MonoBehaviour { public ObstacleScript[] obstacleAry; public bool clickable; //Temporary, Placeholder public GameObject buttonNotification = null; private GameObject button_notification = null; public UnityEvent onUse; void Update() { if (clickable && Input.GetKeyDown(KeyCode.Space)) { foreach (ObstacleScript obstacle in obstacleAry) { obstacle.running = true; } onUse.Invoke(); } } void OnTriggerEnter(Collider coll) { if (coll.gameObject.name == "Player") { clickable = true; //Temporary, Placeholder if(buttonNotification != null){ button_notification = Instantiate<GameObject>(buttonNotification, gameObject.transform.position, Quaternion.identity); } } } void OnTriggerExit(Collider coll) { if (coll.gameObject.name == "Player") { clickable = false; //Temporary, Placeholder if (button_notification != null){ Destroy(button_notification, 1.0f); } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class XRaySystem : MonoBehaviour { [SerializeField] Material transparentMaterial; [SerializeField] float viewArc = 40f; [SerializeField] float penetrationRange = 4f; Dictionary<MeshRenderer, Material> records = new Dictionary<MeshRenderer, Material>(); // Use this for initialization void Start () { } // Update is called once per frame void Update () { foreach(MeshRenderer o in GameObject.FindObjectsOfType<MeshRenderer>()){ Vector3 toObject = o.transform.position - transform.position; if (Vector3.Angle(transform.forward, toObject) <= viewArc / 2 && Vector3.Distance(transform.position, o.transform.position) <= penetrationRange){ XRayObject(o); } else{ ResetObject(o); } } } void XRayObject(MeshRenderer mr){ records.Add(mr, mr.material); mr.material = transparentMaterial; } void ResetObject(MeshRenderer mr){ if(records.ContainsKey(mr)){ mr.material = records[mr]; records.Remove(mr); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObstacleScript : MonoBehaviour { public Vector3 activeOffset; public bool relativeRotation = false; public float movementDuration = 3f; private float timePassed = 0f; private Vector3 originalPos; public bool running = false; public bool active; public AudioClip soundOnOpening = null; public AudioClip soundOnClosing = null; public AudioClip soundForWall = null; public AudioClip soundForFinish = null; AudioSource music; // Use this for initialization void Start() { music = GetComponent<AudioSource>(); if(relativeRotation){ activeOffset = transform.rotation * activeOffset; } originalPos = transform.position; if (active) { originalPos -= activeOffset; } } // Update is called once per frame void Update() { //Debug.Log(soundForFinish); if (running) { if (soundForWall != null) { music.PlayOneShot(soundForWall); } timePassed += Time.deltaTime; if (active) { transform.position = Vector3.Lerp(originalPos + activeOffset, originalPos, timePassed / movementDuration); if (soundOnOpening != null) { music.PlayOneShot(soundOnOpening); } } else { transform.position = Vector3.Lerp(originalPos, originalPos + activeOffset, timePassed / movementDuration); if (soundOnClosing != null) { music.PlayOneShot(soundOnClosing); } } if (timePassed > movementDuration) { if (soundForFinish != null) { music.Stop(); music.PlayOneShot(soundForFinish); } running = false; active = !active; timePassed = 0f; } } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class KeyButtonScript : MonoBehaviour { public string keyName; public GameObject player; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } private void OnTriggerEnter(Collider other) { if(other.name == "Player") { foreach(string key in player.GetComponent<PlayerScript>().receivedKeys) { if(keyName == key) { Debug.Log("door can be opened"); GetComponent<TransformButton>().clickable = true; return; } } GetComponent<TransformButton>().clickable = false; } } private void OnTriggerExit(Collider other) { GetComponent<TransformButton>().clickable = false; } } <file_sep>using UnityEngine; using UnityEngine.SceneManagement; using System.Collections; public class EventManager : MonoBehaviour { public GameObject menu; public GameObject player; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void resume() { Time.timeScale = 1f; player.GetComponent<PauseMenu>().isShowing = false; menu.SetActive(player.GetComponent<PauseMenu>().isShowing); } public void loadNext() { menu.SetActive(false); SceneManager.LoadScene("SpaceStation"); } public void loadMenu() { SceneManager.LoadScene("MainMenu"); } public void quitGame() { Application.Quit(); } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class PatrolBox : MonoBehaviour { [SerializeField] Transform start; [SerializeField] Transform end; [SerializeField] float speed = 4f; [SerializeField] float timeOffset = 0f; float duration; float currentTime = 0f; bool forward = true; // Use this for initialization void Start () { duration = Vector3.Distance(start.position, end.position) / speed; currentTime = timeOffset; } // Update is called once per frame void Update () { currentTime += forward ? Time.deltaTime : -Time.deltaTime; transform.position = Vector3.Lerp(start.position, end.position, currentTime/duration); if(forward && currentTime >= duration){ forward = !forward; } else if(!forward && currentTime <= 0f){ forward = !forward; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; [RequireComponent(typeof(Light))] public class ShockwaveScript : MonoBehaviour { public static ShockwaveScript shockwave; [SerializeField] float totalCycleTime = 8f; [SerializeField] float warmupTime = 5f; [SerializeField] float flashDuration = 0.5f; [SerializeField] float cooldown = 0.5f; [SerializeField] Color normalColor = Color.white; [SerializeField] float normalBrightness = 1f; [SerializeField] Color warmedUpColor = Color.red; [SerializeField] float warmedUpBrightness = 2f; [SerializeField] Color flashColor = Color.red; [SerializeField] float flashBrightness = 4f; [SerializeField] UnityEvent onFlashEvent; PlayerScript player; PebbleScript[] pebbleArys; Light light; float currentTime = 0f; bool flashpointDoneThisCycle = false; void Start() { shockwave = this; player = FindObjectOfType<PlayerScript>(); pebbleArys = FindObjectsOfType<PebbleScript>(); light = GetComponent<Light>(); } // Update is called once per frame void Update() { currentTime += Time.deltaTime; ChangeBrightness(); } void ChangeBrightness() { if (currentTime < warmupTime) { //warmup mode WarmupBrightness(); } else if (currentTime < warmupTime + flashDuration) { //flash mode FlashBrightness(); } else if (currentTime < warmupTime + flashDuration + cooldown) { //cooldown mode CooldownBrightness(); //this sends an event as soon as the flash ends; IE, when it reaches full brightness. if (!flashpointDoneThisCycle) { FlashResponse(); flashpointDoneThisCycle = true; } } else if (currentTime < totalCycleTime) { //waiting mode } else { //restart cycle currentTime = 0f; flashpointDoneThisCycle = false; } } void WarmupBrightness() { float percentTime = currentTime / warmupTime; LerpColorAndBrightness(normalColor, warmedUpColor, normalBrightness, warmedUpBrightness, percentTime); } void FlashBrightness() { float percentTime = (currentTime - warmupTime) / flashDuration; LerpColorAndBrightness(warmedUpColor, flashColor, warmedUpBrightness, flashBrightness, percentTime); } void CooldownBrightness() { float percentTime = (currentTime - (warmupTime + flashDuration)) / cooldown; LerpColorAndBrightness(flashColor, normalColor, flashBrightness, normalBrightness, percentTime); } void LerpColorAndBrightness(Color startC, Color endC, float startB, float endB, float percentTime) { light.color = Color.Lerp(startC, endC, percentTime); light.intensity = Mathf.Lerp(startB, endB, percentTime); } void FlashResponse() { if (onFlashEvent != null) onFlashEvent.Invoke(); player.CreateRay(); foreach (PebbleScript pebble in pebbleArys) { pebble.CreateRay(); } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class RotationButton : MonoBehaviour { public RotationScript[] obstacleAry; public bool clickable; void Update() { if (clickable && Input.GetKeyDown(KeyCode.Space)) { foreach (RotationScript obstacle in obstacleAry) { obstacle.running = true; } } } void OnTriggerEnter(Collider coll) { if (coll.gameObject.name == "Player") { clickable = true; } } void OnTriggerExit(Collider coll) { if (coll.gameObject.name == "Player") { clickable = false; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; public class CheckpointScript : MonoBehaviour { //public bool active = true; void OnTriggerEnter(Collider coll) { if (coll.gameObject.name == "Player") { Debug.Log("Hit!"); PlayerScript.saveLocation = transform.position; } } } <file_sep>using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PlayerScript : MonoBehaviour { public string loadScene; public List<string> receivedKeys; public float movementSpeed = 50f; public float maxRayDistance = 100.0f; private Vector3 move; public Transform wave; public static bool hasSaveStart = false; public static Vector3 saveLocation; bool isDead = false; float respawnTimer = 0f; public float deathTime = 4f; public GameObject corpse; /* private bool pause; public Rect windowRect = new Rect(20, 20, 120, 50); */ void Start() { Debug.Log("Start Called with: " + hasSaveStart); if (!hasSaveStart){ saveLocation = transform.position; hasSaveStart = true; } else{ transform.position = saveLocation; } } // Update is called once per frame void Update(){ if (!isDead) { move = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical")); if (move.x == 1f || move.x == -1f || move.z == 1f || move.z == -1f) { transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(move), 0.15f); } transform.Translate(move * movementSpeed * Time.deltaTime, Space.World); } else if (WinScript.hasWon) { // turn winCondition true with last button // create win screen } else if (respawnTimer < deathTime) { respawnTimer += Time.deltaTime; } else { Respawn(); } } public void CreateRay() { Ray ray = new Ray(transform.position, -wave.transform.forward); RaycastHit hit; Debug.DrawRay(transform.position, -wave.transform.forward * maxRayDistance, Color.red); if (!Physics.Raycast(ray, out hit, maxRayDistance, LayerMask.GetMask("Obstacle")) && !isDead) { // play death animation OnDeath(); } } void OnDeath(){ isDead = true; GetComponent<Collider>().enabled = false; GetComponent<Rigidbody>().useGravity = false; SkinnedMeshRenderer[] renderers = GetComponentsInChildren<SkinnedMeshRenderer>(); foreach (SkinnedMeshRenderer mr in renderers){ Debug.Log("Hiding Part"); mr.enabled = false; } GameObject o = GameObject.Instantiate<GameObject>(corpse); o.transform.position = transform.position; o.transform.rotation = transform.rotation; Rigidbody[] parts = o.GetComponentsInChildren<Rigidbody>(); foreach(Rigidbody part in parts){ part.AddForceAtPosition(new Vector3(0f, Random.Range(.25f, .5f), Random.Range(-1.5f, -1f)) * 500f, Random.onUnitSphere); } } void Respawn(){ SceneManager.LoadScene(loadScene); } }
4b6eded23607a6eb06c390acf90a3b26efc04f01
[ "C#" ]
16
C#
unheardCARNAGE/space-walker
36fd619f0f5f0407574c8c4b77f22f350fb1a0d4
62964dca320fff24d84694d1f242b6cb67e04562
refs/heads/master
<repo_name>athulregis/CCE_Calendar<file_sep>/sample/src/main/java/sema4/com/CCE_HOLISTIC_CALENDAR/CompactCalendarTab.java package sema4.com.CCE_HOLISTIC_CALENDAR; import android.app.ProgressDialog; import android.content.res.Resources; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewTreeObserver; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import sema4.com.CCE_HOLISTIC_CALENDAR.Firebase_models.Post; import sema4.com.CCE_HOLISTIC_CALENDAR.domain.Event; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketAddress; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.List; import java.util.Locale; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.ValueEventListener; import com.google.firebase.messaging.FirebaseMessaging; public class CompactCalendarTab extends Fragment { private static final String TAG = "MainActivity"; private Calendar currentCalender = Calendar.getInstance(Locale.getDefault()); private SimpleDateFormat dateFormatForDisplaying = new SimpleDateFormat("dd-M-yyyy hh:mm:ss a", Locale.getDefault()); private SimpleDateFormat dateFormatForMonth = new SimpleDateFormat("MMM - yyyy", Locale.getDefault()); private boolean shouldShow = false; private CompactCalendarView compactCalendarView; private ActionBar toolbar; private FirebaseDatabase database; private DatabaseReference myRef1; private DatabaseReference myRef2; private DatabaseReference myRef3; private DatabaseReference myRef4; private DatabaseReference myRef5; private ArrayList<String> month1=new ArrayList<>(); private ArrayList<String> month2=new ArrayList<>(); private ArrayList<String> month3=new ArrayList<>(); private ArrayList<String> month4=new ArrayList<>(); private ArrayList<String> month5=new ArrayList<>(); private ProgressDialog progress; private TextView textView; private TextView currentMonthTextView; @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View mainTabView = inflater.inflate(R.layout.main_tab,container,false); textView=mainTabView.findViewById(R.id.textView); database = FirebaseDatabase.getInstance(); myRef1 = database.getReference().child("schedule").child("august"); myRef2 = database.getReference().child("schedule").child("september"); myRef3 = database.getReference().child("schedule").child("october"); myRef4 = database.getReference().child("schedule").child("november"); myRef5 = database.getReference().child("schedule").child("december"); /* * The below lines of code dictate which notifications will be shown to the user. If the topic is "all" then the entire userbase including the users from the play store will * recieve the notififcation. All the versions uploaded to the playstore will have subscribed to the topic "all". For testing purposes compile the app with the "test" topic */ //FirebaseMessaging.getInstance().subscribeToTopic("test"); FirebaseMessaging.getInstance().subscribeToTopic("all"); //Crashlytics.getInstance().crash(); // Force a crash compactCalendarView = mainTabView.findViewById(R.id.compactcalendar_view); // compactCalendarView.set; // below allows you to configure color for the current day in the month // compactCalendarView.setCurrentDayBackgroundColor(getResources().getColor(R.color.black)); // below allows you to configure colors for the current day the user has selected compactCalendarView.setCurrentSelectedDayBackgroundColor(getResources().getColor(R.color.light_blue)); compactCalendarView.setUseThreeLetterAbbreviation(false); compactCalendarView.setFirstDayOfWeek(Calendar.SUNDAY); compactCalendarView.setIsRtl(false); double scale=getScreenHeight()/1.7; int scaleint=(int)scale; compactCalendarView.setTargetHeight(scaleint); compactCalendarView.displayOtherMonthDays(false); //compactCalendarView.setIsRtl(true); // loadEvents(); //Create a progress bar for loading from firebase progress = ProgressDialog.show(getContext(), "Please Wait", "Fetching data", true); textView.setText("No Events"); //check internet connectivity new Thread(new Runnable() { public void run(){ if (isInternetAvailable("8.8.8.8", 53, 1000)) { // Internet available, do something } else { Toast("An Internet Connection is Required"); progress.dismiss(); } } }).start(); myRef1.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { // This method is called once with the initial value and again // whenever data at this location is updated. //String value = dataSnapshot.getValue(String.class); // Log.d(TAG, "Value is: " + value); //Toast.makeText(getContext(),value,Toast.LENGTH_LONG).show(); Post post1 = dataSnapshot.getValue(Post.class); month1.add(post1.day1); month1.add(post1.day2); month1.add(post1.day3); month1.add(post1.day4); month1.add(post1.day5); month1.add(post1.day6); month1.add(post1.day7); month1.add(post1.day8); month1.add(post1.day9); month1.add(post1.day10); month1.add(post1.day11); month1.add(post1.day12); month1.add(post1.day13); month1.add(post1.day14); month1.add(post1.day15); month1.add(post1.day16); month1.add(post1.day17); month1.add(post1.day18); month1.add(post1.day19); month1.add(post1.day20); month1.add(post1.day21); month1.add(post1.day22); month1.add(post1.day23); month1.add(post1.day24); month1.add(post1.day25); month1.add(post1.day26); month1.add(post1.day27); month1.add(post1.day28); month1.add(post1.day29); month1.add(post1.day30); month1.add(post1.day31); } @Override public void onCancelled(DatabaseError error) { // Failed to read value Log.w(TAG, "Failed to read value.", error.toException()); } }); myRef2.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { // This method is called once with the initial value and again // whenever data at this location is updated. //String value = dataSnapshot.getValue(String.class); // Log.d(TAG, "Value is: " + value); //Toast.makeText(getContext(),value,Toast.LENGTH_LONG).show(); Post post2 = dataSnapshot.getValue(Post.class); month2.add(post2.day1); month2.add(post2.day2); month2.add(post2.day3); month2.add(post2.day4); month2.add(post2.day5); month2.add(post2.day6); month2.add(post2.day7); month2.add(post2.day8); month2.add(post2.day9); month2.add(post2.day10); month2.add(post2.day11); month2.add(post2.day12); month2.add(post2.day13); month2.add(post2.day14); month2.add(post2.day15); month2.add(post2.day16); month2.add(post2.day17); month2.add(post2.day18); month2.add(post2.day19); month2.add(post2.day20); month2.add(post2.day21); month2.add(post2.day22); month2.add(post2.day23); month2.add(post2.day24); month2.add(post2.day25); month2.add(post2.day26); month2.add(post2.day27); month2.add(post2.day28); month2.add(post2.day29); month2.add(post2.day30); month2.add(post2.day31); } @Override public void onCancelled(DatabaseError error) { // Failed to read value Log.w(TAG, "Failed to read value.", error.toException()); } }); myRef3.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { // This method is called once with the initial value and again // whenever data at this location is updated. //String value = dataSnapshot.getValue(String.class); // Log.d(TAG, "Value is: " + value); //Toast.makeText(getContext(),value,Toast.LENGTH_LONG).show(); Post post3 = dataSnapshot.getValue(Post.class); month3. add(post3.day1); month3.add(post3.day2); month3.add(post3.day3); month3.add(post3.day4); month3.add(post3.day5); month3.add(post3.day6); month3.add(post3.day7); month3.add(post3.day8); month3.add(post3.day9); month3.add(post3.day10); month3.add(post3.day11); month3.add(post3.day12); month3.add(post3.day13); month3.add(post3.day14); month3.add(post3.day15); month3.add(post3.day16); month3.add(post3.day17); month3.add(post3.day18); month3.add(post3.day19); month3.add(post3.day20); month3.add(post3.day21); month3.add(post3.day22); month3.add(post3.day23); month3.add(post3.day24); month3.add(post3.day25); month3.add(post3.day26); month3.add(post3.day27); month3.add(post3.day28); month3.add(post3.day29); month3.add(post3.day30); month3.add(post3.day31); } @Override public void onCancelled(DatabaseError error) { // Failed to read value Log.w(TAG, "Failed to read value.", error.toException()); } }); myRef4.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { // This method is called once with the initial value and again // whenever data at this location is updated. //String value = dataSnapshot.getValue(String.class); // Log.d(TAG, "Value is: " + value); //Toast.makeText(getContext(),value,Toast.LENGTH_LONG).show(); Post post4 = dataSnapshot.getValue(Post.class); month4. add(post4.day1); month4.add(post4.day2); month4.add(post4.day3); month4.add(post4.day4); month4.add(post4.day5); month4.add(post4.day6); month4.add(post4.day7); month4.add(post4.day8); month4.add(post4.day9); month4.add(post4.day10); month4.add(post4.day11); month4.add(post4.day12); month4.add(post4.day13); month4.add(post4.day14); month4.add(post4.day15); month4.add(post4.day16); month4.add(post4.day17); month4.add(post4.day18); month4.add(post4.day19); month4.add(post4.day20); month4.add(post4.day21); month4.add(post4.day22); month4.add(post4.day23); month4.add(post4.day24); month4.add(post4.day25); month4.add(post4.day26); month4.add(post4.day27); month4.add(post4.day28); month4.add(post4.day29); month4.add(post4.day30); month4.add(post4.day31); } @Override public void onCancelled(DatabaseError error) { // Failed to read value Log.w(TAG, "Failed to read value.", error.toException()); } }); myRef5.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { // This method is called once with the initial value and again // whenever data at this location is updated. //String value = dataSnapshot.getValue(String.class); // Log.d(TAG, "Value is: " + value); //Toast.makeText(getContext(),value,Toast.LENGTH_LONG).show(); Post post5 = dataSnapshot.getValue(Post.class); month5. add(post5.day1); month5.add(post5.day2); month5.add(post5.day3); month5.add(post5.day4); month5.add(post5.day5); month5.add(post5.day6); month5.add(post5.day7); month5.add(post5.day8); month5.add(post5.day9); month5.add(post5.day10); month5.add(post5.day11); month5.add(post5.day12); month5.add(post5.day13); month5.add(post5.day14); month5.add(post5.day15); month5.add(post5.day16); month5.add(post5.day17); month5.add(post5.day18); month5.add(post5.day19); month5.add(post5.day20); month5.add(post5.day21); month5.add(post5.day22); month5.add(post5.day23); month5.add(post5.day24); month5.add(post5.day25); month5.add(post5.day26); month5.add(post5.day27); month5.add(post5.day28); month5.add(post5.day29); month5.add(post5.day30); month5.add(post5.day31); loadEventsForYear(2019); progress.dismiss(); } @Override public void onCancelled(DatabaseError error) { // Failed to read value Log.w(TAG, "Failed to read value.", error.toException()); } }); compactCalendarView.invalidate(); logEventsByMonth(compactCalendarView); //set initial title currentMonthTextView=mainTabView.findViewById(R.id.currentMonthTextView); currentMonthTextView.setText(dateFormatForMonth.format(compactCalendarView.getFirstDayOfCurrentMonth())); toolbar = ((AppCompatActivity) getActivity()).getSupportActionBar(); toolbar.setTitle("CCE Holistic Calendar"); //set title on calendar scroll compactCalendarView.setListener(new CompactCalendarView.CompactCalendarViewListener() { @Override public void onDayClick(Date dateClicked){ currentMonthTextView.setText(dateFormatForMonth.format(dateClicked)); List<Event> bookingsFromMap = compactCalendarView.getEvents(dateClicked); Log.d(TAG, "inside onclick " + dateFormatForDisplaying.format(dateClicked)); if (bookingsFromMap != null) { Log.d(TAG, bookingsFromMap.toString()); textView.setText("No Events"); for (Event booking : bookingsFromMap) { textView.setText(booking.getData().toString()); } } } @Override public void onMonthScroll(Date firstDayOfNewMonth) { currentMonthTextView.setText(dateFormatForMonth.format(firstDayOfNewMonth)); onDayClick(firstDayOfNewMonth); } }); compactCalendarView.setAnimationListener(new CompactCalendarView.CompactCalendarAnimationListener() { @Override public void onOpened() { } @Override public void onClosed() { } }); // uncomment below to show indicators above small indicator events //compactCalendarView.shouldDrawIndicatorsBelowSelectedDays(true); // uncomment below to open onCreate // openCalendarOnCreate(v); return mainTabView; } @NonNull private View.OnClickListener getCalendarShowLis() { return new View.OnClickListener() { @Override public void onClick(View v) { if (!compactCalendarView.isAnimating()) { if (shouldShow) { compactCalendarView.showCalendar(); } else { compactCalendarView.hideCalendar(); } shouldShow = !shouldShow; } } }; } @NonNull private View.OnClickListener getCalendarExposeLis() { return new View.OnClickListener() { @Override public void onClick(View v) { if (!compactCalendarView.isAnimating()) { if (shouldShow) { compactCalendarView.showCalendarWithAnimation(); } else { compactCalendarView.hideCalendarWithAnimation(); } shouldShow = !shouldShow; } } }; } private void openCalendarOnCreate(View v) { final RelativeLayout layout = v.findViewById(R.id.main_content); ViewTreeObserver vto = layout.getViewTreeObserver(); vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { if (Build.VERSION.SDK_INT < 16) { layout.getViewTreeObserver().removeGlobalOnLayoutListener(this); } else { layout.getViewTreeObserver().removeOnGlobalLayoutListener(this); } compactCalendarView.showCalendarWithAnimation(); } }); } @Override public void onResume() { super.onResume(); currentMonthTextView.setText(dateFormatForMonth.format(compactCalendarView.getFirstDayOfCurrentMonth())); // Set to current day on resume to set calendar to latest day // toolbar.setTitle(dateFormatForMonth.format(new Date())); } private void loadEvents() { addEvents(-1, -1); addEvents(Calendar.DECEMBER, -1); addEvents(Calendar.AUGUST, -1); } private void loadEventsForYear(int year) { for(int i=7;i<12;i++) addEvents(i, 2019); } private void logEventsByMonth(CompactCalendarView compactCalendarView) { currentCalender.setTime(new Date()); currentCalender.set(Calendar.DAY_OF_MONTH, 1); currentCalender.set(Calendar.MONTH, Calendar.AUGUST); List<String> dates = new ArrayList<>(); for (Event e : compactCalendarView.getEventsForMonth(new Date())) { dates.add(dateFormatForDisplaying.format(e.getTimeInMillis())); } Log.d(TAG, "Events for Aug with simple date formatter: " + dates); Log.d(TAG, "Events for Aug month using default local and timezone: " + compactCalendarView.getEventsForMonth(currentCalender.getTime())); } private void addEvents(int month, int year) { currentCalender.setTime(new Date()); currentCalender.set(Calendar.DAY_OF_MONTH, 1); int last_day= currentCalender.getActualMaximum(Calendar.DAY_OF_MONTH); Date firstDayOfMonth = currentCalender.getTime(); for (int i = 0; i <last_day ; i++) { currentCalender.setTime(firstDayOfMonth); if (month > -1) { currentCalender.set(Calendar.MONTH, month); } if (year > -1) { currentCalender.set(Calendar.ERA, GregorianCalendar.AD); currentCalender.set(Calendar.YEAR, year); } currentCalender.add(Calendar.DATE, i); setToMidnight(currentCalender); long timeInMillis = currentCalender.getTimeInMillis(); String[][] data = new String[5][31]; int z=0; for (String s:month1){ data[0][z]=s; z++; } z=0; for (String s:month2){ data[1][z]=s; z++; } z=0; for (String s:month3){ data[2][z]=s; z++; } z=0; for (String s:month4){ data[3][z]=s; z++; } z=0; for (String s:month5){ data[4][z]=s; z++; } try { if (!data[month - 7][i].equals("empty")) { int r = 48, g = 63, b = 159; if (data[month - 7][i].contains("Holiday")) { r = 221; g = 48; b = 0; } List<Event> events = Arrays.asList(new Event(Color.argb(255, r, g, b), timeInMillis, data[month - 7][i])); compactCalendarView.addEvents(events); } } catch (NullPointerException e){ Toast.makeText(getContext(), "Database communication error. Make sure that you have the latest version of the app", Toast.LENGTH_LONG).show(); } } } private void setToMidnight(Calendar calendar) { calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); } public boolean isInternetAvailable(String address, int port, int timeoutMs) { try { Socket sock = new Socket(); SocketAddress sockaddr = new InetSocketAddress(address, port); sock.connect(sockaddr, timeoutMs); // This will block no more than timeoutMs sock.close(); return true; } catch (IOException e) { return false; } } public void Toast(final String s){ getActivity().runOnUiThread(new Runnable() { public void run() { Toast.makeText(getContext(), s, Toast.LENGTH_LONG).show(); } });} public static int getScreenHeight() { return Resources.getSystem().getDisplayMetrics().heightPixels; } }
c971bbf40d80b3fcfea47bdb5fb1c21267946bca
[ "Java" ]
1
Java
athulregis/CCE_Calendar
f004598fd50e98df93ec0fd25f31fcecdd6a150b
516431b0749a936f3e997c852bf604210c1664f2
refs/heads/master
<file_sep>from PIL import Image img = Image.open('oxygen.png') rgb_im = img.convert('RGB') for x in range(3, 608, 7): r, g, b = rgb_im.getpixel((x, 48)) print(chr(r), end='') print() a = [105, 110, 116, 101, 103, 114, 105, 116, 121] for x in a: print(chr(x), end='')<file_sep>import datetime for i in range(99, 1, -2): d = datetime.date(1000 + i * 10 + 6, 1, 1) if d.weekday() == 3: print(d.year)<file_sep>import zipfile file = zipfile.ZipFile('channel.zip') nothing = 90052 comment = '' try: while nothing: with open('6zip/%d.txt' % nothing) as f: comment += chr(file.getinfo('%d.txt' % nothing).comment[0]) s = f.readline() nothing = int(s.split()[-1]) finally: print(comment) <file_sep>from PIL import Image image = Image.open("mozart.gif") rgb_im = image.convert('RGB') result = Image.new("RGB", (640, 480)) for y in range(480): index = -1 for x in range(640): if rgb_im.getpixel((x, y)) == (255, 0, 255) and rgb_im.getpixel((x + 1, y)) == (255, 0, 255): index = x break for x in range(640): result.putpixel((x, y), rgb_im.getpixel(((index + x) % 640, y))) result.save("result.jpg")<file_sep>import string # text = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. " \ # "bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. " \ # "sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj." text = "map" print(text.translate(text.maketrans(string.ascii_lowercase, string.ascii_lowercase[2:] + string.ascii_lowercase[:2])))<file_sep>from PIL import Image image = Image.open("wire.png") result = Image.new("RGB", (100, 100)) x = 0 y = 0 d = 1 top = 1 right = 99 bottom = 99 left = 0 for i in range(10000): print(i, x, y) result.putpixel((x, y), image.getpixel((i, 0))) if d == 0 and y == top: d = 1 top += 1 if d == 1 and x == right: d = 2 right -= 1 if d == 2 and y == bottom: d = 3 bottom -= 1 if d == 3 and x == left: d = 0 left += 1 if d == 0: y -= 1 elif d == 1: x += 1 elif d == 2: y += 1 else: x -= 1 result.save("result.jpg")<file_sep>import urllib.request import pickle url = 'http://www.pythonchallenge.com/pc/def/banner.p' data = pickle.loads(urllib.request.urlopen(url).read()) print(data) for line in data: print(''.join(elmt[0] * elmt[1] for elmt in line))<file_sep>f = open('evil2.gfx', 'rb') data = f.read() f.close() for i in range(5): f = open("img" + str(i + 1), 'wb') f.write(data[i::5]) f.close()<file_sep>import bz2 un = "BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084" pw = "BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08" username = bz2.decompress(bytes(un, 'latin1')) password = <PASSWORD>(bytes(pw, 'latin1')) print(username) print(password)<file_sep>import urllib.request import bz2 import xmlrpc.client nothing = 12345 link = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?busynothing=' info = '' while nothing: f = urllib.request.urlopen(link + str(nothing)) content = f.read() cookie = f.info().get("Set-Cookie") cookie = cookie[cookie.find('info=')+5:cookie.find(';')] if cookie == '+': cookie = ' ' if cookie.startswith('%'): cookie = chr(int(cookie.replace('%', '0x'), 16)) info = info + urllib.request.unquote(cookie) if 'and the next busynothing is' in str(content): nothing = int(str(content)[2:-1].split(" ")[-1]) else: nothing = None print(bz2.decompress(bytes(info, 'latin1'))) conn = xmlrpc.client.ServerProxy("http://www.pythonchallenge.com/pc/phonebook.php") print(conn.phone("Leopold")) import urllib.request opener = urllib.request.build_opener() opener.addheaders = [('Cookie', 'info=' + 'the flowers are on their way'.replace(' ', '+'))] f = opener.open('http://www.pythonchallenge.com/pc/stuff/violin.php') print(f.read())<file_sep>from PIL import Image image = Image.open("cave.jpg") result = Image.new("RGB", (320, 240)) for x in range(640): for y in range(480): if x % 2 == 1 and y % 2 == 1: result.putpixel((x >> 1, y >> 1), image.getpixel((x, y))) result.save("result.jpg")<file_sep>import urllib.request # nothing = 12345 nothing = 25357 link = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=' while nothing: f = urllib.request.urlopen(link + str(nothing)) content = f.read() print(content) nothing = int(str(content)[2:-1].split(" ")[-1])
4fea63dfccbc777bcc52ffda7aa8c344d6c5bee8
[ "Python" ]
12
Python
CapitanKK/python-challenge
513308f4541287e72dc0a2244faed407d867ec14
bc2346d8071ade03f14dd6e2bfe2b7355e65b128
refs/heads/master
<file_sep># Introduction The file in this project contains code to download and read the data files from the "Human Activity Recognition Using Smartphones Dataset, Version 1.0," based on data obtained by <NAME>, <NAME>, <NAME>, and <NAME>.[1] Information on the definition of variables in this data set can be found in `CodeBook.md`. # Usage In order to use this code, create a directory to house this project, and place the file 'run_analysis.R' in that directory. Run R, and make sure the working directory is set to the same directory you placed the run_analysis.R file in. Then execute `source("run_analysis.R")` from within R. If the data file `getdata_projectfiles_uci_har_dataset.zip` doesn't exist in the working directory, the file will be downloaded. Otherwise the existing copy of the zip file will be used. If the directory `UCI HAR Dataset` doesn't exist in the working directory, the zip file will be unzipped. If the directory `UCI HAR Dataset` does exist, the existing data will be used. # Output The run_analysis.R script create three output files: * `uci_har_dataset_mean_std.csv` containing the mean and standard deviation features. * `uci_har_dataset_mean_std_summaries.csv` containing means of the mean and standard deviation features, summarized by subject and activity. * `uci_har_dataset_mean_std_summaries.txt` which is the same as the last file, but output to conform to submission guidelines for the project. [1] <NAME>, <NAME>, <NAME>, <NAME> and <NAME>. Human Activity Recognition on Smartphones using a Multiclass Hardware-Friendly Support Vector Machine. International Workshop of Ambient Assisted Living (IWAAL 2012). Vitoria-Gasteiz, Spain. Dec 2012 <file_sep># Introduction ## Acknowledgments This data file was created from the "Human Activity Recognition Using Smartphones Dataset, Version 1.0", based on data obtained by <NAME>, <NAME>, <NAME>, and <NAME>.[1] This documentation contains edited information from the original documentation of that data set. ## Raw Data Acquisition The original data set consisted of accelerometer and gyroscope 3-axial (XYZ) raw signals captured by a smartphone (Samsung Galaxy S II) worn at the waist. A group of 30 volunteers within an age bracket of 19-48 years each person performed six activities (walking, walking_upstairs, walking_downstairs, sitting, standing, laying) while wearing the smartphone. Initial 3-axial linear acceleration and 3-axial angular velocity at a constant rate of 50Hz. The experiments were video-recorded to label the activity data manually. ## Data Processing The sensor signals (accelerometer and gyroscope) were pre-processed by applying noise filters, a median filter and a 3rd order low pass Butterworth filter with a corner frequency of 20 Hz to remove noise. They were then sampled in fixed-width sliding windows of 2.56 sec and 50% overlap (128 readings/window). The sensor acceleration signal, which has gravitational and body motion components, was separated using a Butterworth low-pass filter into body acceleration and gravity. The gravitational force is assumed to have only low frequency components, therefore a filter with 0.3 Hz cutoff frequency was used. ## Features Calculation From each window, a vector of features was obtained by calculating variables from the time (prefixed by 't') and frequency domain (prefixed by 'f') signals. Vector features are broken down into 'X', 'Y' or 'Z' components, and a calculated magnitude 'Mag'. The first features were calculated from the body and gravitational acceleration signal components (tBodyAcc-XYZ and tGravityAcc-XYZ). Subsequently, the body linear acceleration and angular velocity signals were derived in time to obtain Jerk signals (tBodyAccJerk-XYZ and tBodyGyroJerk-XYZ). Also the magnitude of these three-dimensional signals were calculated using the Euclidean norm (tBodyAccMag, tGravityAccMag, tBodyAccJerkMag, tBodyGyroMag, tBodyGyroJerkMag). Finally a Fast Fourier Transform (FFT) was applied to some of these signals producing fBodyAcc-XYZ, fBodyAccJerk-XYZ, fBodyGyro-XYZ, fBodyAccJerkMag, fBodyGyroMag, fBodyGyroJerkMag. (Note the 'f' to indicate frequency domain signals). The set of features that were then calculated from these signals were: mean: Mean value std: Standard deviation mad: Median absolute deviation max: Largest value in array min: Smallest value in array sma: Signal magnitude area energy: Energy measure. Sum of the squares divided by the number of values. iqr: Interquartile range entropy: Signal entropy arCoeff: Autorregresion coefficients with Burg order equal to 4 correlation: correlation coefficient between two signals maxInds: index of the frequency component with largest magnitude meanFreq: Weighted average of the frequency components to obtain a mean frequency skewness: skewness of the frequency domain signal kurtosis: kurtosis of the frequency domain signal bandsEnergy: Energy of a frequency interval within the 64 bins of the FFT of each window. angle: Angle between to vectors. ## Units The acceleration signal from the smartphone accelerometer was given in standard gravity units 'g'. The angular velocity vector measured by the gyroscope was given in units of radians/second. However, when features were calculated by the original authors, they were all normalized and bounded within [-1,1]. This normalization presumably accounts for seemingly strange numeric values, such as negative standard deviations. ## Testing and Training The obtained dataset was randomly partitioned into two sets, where 70% of the volunteers were selected for generating the training data and 30% the test data. ## Original Data Structure The original data set was broken down into several files, with equivalent descriptions in both the training and testing sets: * Files containing the x, y and z components of the acceleration signal measured by the accelerometer. * Files containing the x, y and z components of the body acceleration signal (with gravity subtracted) * Files containing the x, y and z components of the angular velocity vector measured by the gyroscope. * A file containing the subject identifier number for each observation, ranging from 1 to 30. * A file containing vectors of 561 calculated features for each time window, with unlabeled columns. * A file containing the labels for the feature vector columns. * A file containing the activity code for each time window (an integer between 1 and 6). * A file containing the activities corresponding to each activity code. These signals were used to estimate variables of the feature vector for each pattern: '-XYZ' is used to denote 3-axial signals in the X, Y and Z directions. # Data Tidying For this project, data was further tidied, as specified below. ## Combination of Data Sets The data files with subject identifiers, feature vectors, and activity codes, for both training and testing sets, were combined into a single data file. Subject, feature and activity files all contained the same number of rows, one for each time window, and could simply be combined into a single table using R's cbind command. A new variable, 'source', was added to indicate whether each row in the new data set originated from the training or testing set. Testing and training sets contained identical variables, and could be combined into a single table using R's rbind command. Appropriate column names were added for each feature using the provided feature names file. Similarly, activity codes were replaced by descriptive activity names, using the provided activity names file. ## Extraction of Mean and Standard Deviation Data For this project, the only features of interest were the features giving the mean and standard deviation of each signal. Other features were removed from the data set. The final data set, containing only mean and standard deviation features, was saved as `uci_har_dataset_mean_std.csv`. ## Further Summary For this project, a summary data file, containing the mean of each feature, broken down by subject and activity, was also created. This data file was saved as `uci_har_dataset_mean_std_summaries.csv` and as `uci_har_dataset_mean_std_summaries.txt` to please the project submission page. # Variable Definitions ## Variables in the Combined Data File The following is a list of variables in the combined data file: * source: Either 'training' or 'testing' to denote source files of original measurements. * subject: Denotes subject from whom data was collected. Ranges from 1 to 30. * activity: Denotes activity type for each time window measurement. Could be one of - standing - sitting - laying - walking - walking_downstairs - walking_upstairs * Calculated features for each time window, whose names have the following format: `featureName . X|Y|Z|Mag . mean|std` featureName will be one of * tBodyAcc: body component of acceleration signal * tGravityAcc: gravity component of acceleration signal * tBodyAccJerk: time derivative of body component of acceleration signal * tBodyGyro: body angular velocity signal * tBodyGyroJerk: time derivative of body angular velocity signal * fBodyAcc: fourier transform of tBodyAcc * fBodyAccJerk: fourier transform of tBodyAccJerk * fBodyGyro: fourier transform of tBodyGyro * fBodyGyroJerk: fourier transform of tBodyGyroJerk The variable name will contain one of X, Y, Z or Mag, to indicate whether it is measuring a component of the corresponding three-dimensional vector, or the magnitude of that vector. The variable name will contain one of 'mean' or 'std' to indicate whether it is measuring the mean or standard deviation the specified signal. ## Variables in the Summary Data File Variables in the summary data file have the same meanings, but an additional '.mean' designator has been added to the end of each variable name to indicate that it is a mean or means or mean of standard deviations. [1] <NAME>, <NAME>, <NAME>, <NAME> and <NAME>. Reyes-Ortiz. Human Activity Recognition on Smartphones using a Multiclass Hardware-Friendly Support Vector Machine. International Workshop of Ambient Assisted Living (IWAAL 2012). Vitoria-Gasteiz, Spain. Dec 2012 <file_sep>library(data.table) # Download and unzip data file if(!file.exists("getdata_projectfiles_uci_har_dataset.zip")){ print("Downloading data file...") download.file(url="https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", destfile="getdata_projectfiles_uci_har_dataset.zip", method="curl") } if(!file.exists("UCI HAR Dataset")){ print("Unzipping data file...") unzip("getdata_projectfiles_uci_har_dataset.zip") } # Read names of activities and features print("Processing data...") activityLabel = read.table("UCI HAR Dataset/activity_labels.txt", col.names = c("code", "activity")) featureLabel = read.table("UCI HAR Dataset/features.txt", col.names = c("code", "feature")) # Create versions of features that don't have (). These won't be perfect, but # they will be OK when we subset for just mean and std. featureCleaned = gsub("\\(\\)", "", featureLabel$feature) featureCleaned = gsub("(-mean|-std)(-X|-Y|-Z)", "\\2\\1", featureCleaned) # Add a period to names with 'Mag' in them, so that in the end, the X, Y and Z # designations and the Mag designation will all be formatted the same. featureCleaned = gsub("Mag", "\\.Mag", featureCleaned) # Some variables refer to 'BodyBody' which appears to be a typo, as it isn't # mentioned in the readme's. Clean that up. featureCleaned = gsub("BodyBody", "Body", featureCleaned) # Read training data sets trainActivity = read.table("UCI HAR Dataset/train/y_train.txt", col.names=c("activity")) trainSubjects = read.table("UCI HAR Dataset/train/subject_train.txt", col.names=c("subject")) trainData = read.table("UCI HAR Dataset/train/X_train.txt", col.names=featureCleaned) # Read test data sets testActivity = read.table("UCI HAR Dataset/test/y_test.txt", col.names=c("activity")) testSubjects = read.table("UCI HAR Dataset/test/subject_test.txt", col.names=c("subject")) testData = read.table("UCI HAR Dataset/test/X_test.txt", col.names=featureCleaned) # Extract only those features with "mean()" or "std()" in their names ind = grep("mean\\(\\)|std\\(\\)", featureLabel$feature) trainData = trainData[,ind] testData = testData[,ind] # Combine columns for each data set trainCombined = cbind(source=as.factor("training"), trainSubjects, trainActivity, trainData) testCombined = cbind(source=as.factor("testing"), testSubjects, testActivity, testData) # Combine both data sets combinedData = rbind(trainCombined, testCombined) # Convert Activities into a factor combinedData$activity = factor(combinedData$activity, labels=sapply(activityLabel$activity, tolower)) # Calculate the average of each variable for each activity and each subject. sumData = data.table(combinedData) sumData = sumData[,lapply(.SD, mean()), by=.(subject,activity)] # Add ".mean" to the variable names to indicate that we're taking means of # means or means of standard deviations. sumNames = names(sumData) ind = grep("\\.mean|\\.std", sumNames) sumNames[ind] = paste0(sumNames[ind], ".mean") names(sumData) = sumNames # Write new data files print("Writing new data files...") write.csv(combinedData, file="uci_har_dataset_mean_std.csv") write.csv(sumData, file="uci_har_dataset_mean_std_summaries.csv") write.table(sumData, file="uci_har_dataset_mean_std_summaries.txt", row.name=FALSE) print("Done.")
56917404aa73c04e8485097dd22e5cdb2d68c042
[ "Markdown", "R" ]
3
Markdown
thatchermo/GettingDataProject
c27a4463117d53bcdb134f5c12c7c97f37c9d7bf
d36a0ba1600b5e2f00cc1c2c8270d91612309047
refs/heads/main
<file_sep>use branca::Branca; use rocket::{State, serde::{Deserialize, Serialize, json::Json}}; #[derive(Debug, Serialize, Deserialize)] #[serde(crate = "rocket::serde")] pub struct CheckRequest { token: String } #[post("/check", data = "<token>")] pub async fn check_auth(token: Json<CheckRequest>, key: &State<&[u8; 32]>) -> String { let key: &[u8; 32] = key; let branca = Branca::new(key).unwrap(); let email = branca.decode(token.token.as_str(), 0).unwrap(); let emailstr = String::from_utf8(email).unwrap(); emailstr }<file_sep>use mongodb::bson::{self, Document}; use rocket::serde::{Deserialize, Serialize}; use super::user::PublicUser; #[derive(Debug, Deserialize, Serialize, Default)] #[serde(crate = "rocket::serde")] pub struct Post { #[serde(rename = "_id", skip_serializing_if = "Option::is_none")] pub id: Option<bson::oid::ObjectId>, pub slug: String, #[serde(skip_deserializing)] pub author: Option<PublicUser>, pub content: Option<Document>, pub title: String }<file_sep>[package] name = "hellfire" version = "0.1.0" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] rocket = { version = "0.5.0-rc.1", features = ["json"] } serde_json = "1.0.66" mongodb = "2.0.0-beta.3" argon2 = "0.2" rand_core = { version = "0.6", features = ["std"] } branca = "^0.10.0" regex = "1.5.4" <file_sep>use std::io::Cursor; use rocket::{ fairing::{Fairing, Info, Kind}, http::{ContentType, Method, Status}, Response, }; pub struct CorsFairing; // impl<'r> Responder<'r, 'static> for CorsFairing { // fn respond_to(self, _request: &'r rocket::Request<'_>) -> rocket::response::Result<'static> { // Response::build() // .raw_header("Access-Control-Allow-Origin", "*") // .raw_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS, PUT") // .raw_header("Access-Control-Allow-Headers", "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range") // .raw_header("Access-Control-Max-Age", "1728000") // .header(ContentType::Plain) // .status(Status::NoContent).ok() // } // } #[rocket::async_trait] impl Fairing for CorsFairing { fn info(&self) -> rocket::fairing::Info { Info { name: "Cors Fairing", kind: Kind::Request | Kind::Response, } } async fn on_response<'r>(&self, req: &'r rocket::Request<'_>, res: &mut Response<'r>) { // Don't change a successful user's response, ever. if res.status() != Status::NotFound { return; } if req.method() == Method::Options { res.set_status(Status::NoContent); res.set_header(ContentType::Plain); res.set_raw_header("Access-Control-Allow-Origin", "*"); res.set_raw_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS, PUT"); res.set_raw_header( "Access-Control-Allow-Headers", "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization", ); res.set_raw_header("Access-Control-Max-Age", "1728000"); res.set_sized_body(0, Cursor::new("")) } } } <file_sep>use rocket::{ http::{ContentType, Status}, response::{Responder, Response}, serde::Serialize, }; use serde_json::json; use std::io::Cursor; pub struct HFResponse<T: Serialize> { pub status: Option<Status>, pub response: T, pub error_hint_message: Option<String>, } #[derive(Debug, Serialize)] #[serde(crate = "rocket::serde")] pub struct ResponseSchema<T: Serialize> { pub data: T, pub status: ServerResponseStatus, pub hint: Option<String>, } #[derive(Debug, Serialize)] #[serde(crate = "rocket::serde")] pub enum ServerResponseStatus { INFO, SUCCESS, REDIRECT, CLIENTERROR, SERVERERROR, } impl ServerResponseStatus { pub fn new(status: Status) -> ServerResponseStatus { return match status.code { 100..=199 => ServerResponseStatus::INFO, 200..=299 => ServerResponseStatus::SUCCESS, 300..=399 => ServerResponseStatus::REDIRECT, 400..=499 => ServerResponseStatus::CLIENTERROR, 500..=599 => ServerResponseStatus::SERVERERROR, _ => ServerResponseStatus::SERVERERROR, }; } } impl<'r, T: Serialize> Responder<'r, 'static> for HFResponse<T> { fn respond_to(self, _: &'r rocket::Request<'_>) -> rocket::response::Result<'static> { let stat = match self.status { Some(val) => val, None => Status::Ok, }; let res = ResponseSchema { data: self.response, status: ServerResponseStatus::new(stat), hint: self.error_hint_message, }; let serialized = serde_json::to_string(&res) .unwrap_or(json!({"error": "json parsing error"}).to_string()); Response::build() .sized_body( serialized.len(), Cursor::new(serialized.as_str().to_owned()), ) .status(stat) .header(ContentType::JSON) .ok() } } <file_sep>use rocket::Route; mod signup; mod login; mod check_auth; pub fn get_routes() -> Vec<Route> { routes![signup::signup, login::login, check_auth::check_auth] }<file_sep>#[macro_use] extern crate rocket; use std::{ env, net::{IpAddr, Ipv4Addr}, }; use mongodb::options::ClientOptions; use rocket::Config; use utils::cors::CorsFairing; mod auth; mod guards; mod models; mod posts; mod utils; #[derive(Debug, Clone)] pub struct DbOptions { pub options: ClientOptions, } impl DbOptions { async fn new() -> DbOptions { let opts = match env::var("MONGO_URL") { Ok(val) => { println!("Variable MONGO_URL found"); val } Err(e) => { println!("Variable MONGO_URL missing, using default, err is {}", &e); "mongodb://localhost:27017/".to_string() } }; DbOptions { options: ClientOptions::parse(opts).await.unwrap(), } } } #[launch] async fn rocket() -> _ { let options = DbOptions::new().await; let key = b"supersecretkeyyoushouldnotcommit"; let port: u16 = match env::var("PORT") { Ok(val) => { println!("Variable PORT found"); val.parse().unwrap() } Err(e) => { println!("Variable PORT missing, using default, err is {}", &e); 8080 } }; let rocket = rocket::build() .mount("/auth", auth::get_routes()) .mount("/", posts::get_routes()) .manage(options) .manage(key) .attach(CorsFairing) .configure(Config { port, address: IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), ..Config::debug_default() }); rocket } <file_sep>use rocket::{ http::{ContentType, Status}, response::{Responder, Response}, serde::{Deserialize, Serialize}, }; use serde_json::json; use std::io::Cursor; use crate::models::schemas::response_schema::{ResponseSchema, ServerResponseStatus}; #[derive(Debug)] pub enum HFError { MongoError(mongodb::error::Error), HashError(argon2::password_hash::Error), CustomError(ErrorMessage), } #[derive(Debug, Serialize, Deserialize)] #[serde(crate = "rocket::serde")] pub struct ErrorMessage { pub message: String, #[serde(skip)] pub status: Option<Status>, #[serde(skip)] pub hint: Option<String>, } impl<'r> Responder<'r, 'static> for HFError { fn respond_to(self, _: &'r rocket::Request<'_>) -> rocket::response::Result<'static> { let mes = match self { HFError::CustomError(val) => val, HFError::MongoError(err) => { println!(" >> {:?}", &err); ErrorMessage { message: "Internal Server Error".to_string(), status: None, hint: Some( "An Unknown Error occurred, please report it to proper people".to_string(), ), } }, HFError::HashError(err) => { println!(" >> {:?}", &err); ErrorMessage { message: "Internal Server Error".to_string(), status: None, hint: Some( "An Unknown Error occurred, please report it to proper people".to_string(), ), } }, }; let serialized = serde_json::to_string(&ResponseSchema { status: ServerResponseStatus::new(mes.status.unwrap_or(Status::InternalServerError)), data: &mes, hint: mes.hint.clone(), }) .unwrap_or(json!({"error": "json parsing error"}).to_string()); Response::build() .sized_body( serialized.len(), Cursor::new(serialized.as_str().to_owned()), ) .status(mes.status.unwrap_or(Status::InternalServerError)) .header(ContentType::JSON) .ok() } } impl From<mongodb::error::Error> for HFError { fn from(err: mongodb::error::Error) -> Self { HFError::MongoError(err) } } impl From<argon2::password_hash::Error> for HFError { fn from(err: argon2::password_hash::Error) -> Self { HFError::HashError(err) } } <file_sep>use mongodb::{Client, bson::{Document, doc}, options::FindOptions}; use rocket::{ futures::TryStreamExt, serde::{Deserialize, Serialize}, State, }; use crate::{ models::{ schemas::response_schema::HFResponse, }, utils::HFResult, DbOptions, }; #[derive(Serialize, Deserialize)] #[serde(crate = "rocket::serde")] pub struct GetAllPostResponse { pub posts: Vec<Document>, } #[get("/")] pub async fn get_all_posts(opts: &State<DbOptions>) -> HFResult<GetAllPostResponse> { let db = Client::with_options(opts.options.clone())? .database("hellfire") .collection::<Document>("posts"); let mut res = db .find( None, FindOptions::builder() .projection(Some(doc! { "content": 0 })) .build(), ) .await?; let mut result = Vec::<Document>::new(); while let Some(mut x) = res.try_next().await? { // x.insert("author", "dhukka"); result.push(x); } Ok(HFResponse { status: None, error_hint_message: None, response: GetAllPostResponse { posts: result }, }) } <file_sep>use crate::models::schemas::{error_schema::HFError, response_schema::HFResponse}; pub type HFResult<T> = Result<HFResponse<T>, HFError>; pub mod cors;<file_sep>FROM rustlang/rust:nightly as builder RUN USER=root cargo new --bin hellfire WORKDIR /hellfire COPY ./Cargo.toml ./Cargo.toml RUN cargo build --release RUN rm src/*.rs ADD . ./ RUN rm ./target/release/deps/hellfire* RUN cargo build --release FROM debian:buster-slim ARG APP=/usr/src/app ARG PORT ARG MONGO_URL # RUN apt-get update \ # && apt-get install -y ca-certificates tzdata \ # && rm -rf /var/lib/apt/lists/* # EXPOSE ${PORT} ENV APP_USER=appuser RUN groupadd $APP_USER \ && useradd -g $APP_USER $APP_USER \ && mkdir -p ${APP} COPY --from=builder /hellfire/target/release/hellfire ${APP}/hellfire RUN chown -R $APP_USER:$APP_USER ${APP} USER $APP_USER WORKDIR ${APP} CMD ["./hellfire"]<file_sep>use rocket::Route; use crate::posts::{get_post::get_all_posts, modify_post as modify_post_import}; pub mod add_post; pub mod get_post; pub mod modify_post; pub fn get_routes() -> Vec<Route> { routes![ add_post::add_post, get_all_posts, modify_post_import::modify_post ] } <file_sep>use mongodb::{Client, bson::doc}; use rocket::{http::Status, serde::json::Json, State}; use regex::Regex; use crate::{DbOptions, auth_guard, guards::auth_guard::AuthTokenGuard, models::{entities::{post::Post, user::{PublicUser, UserModel}}, schemas::{ error_schema::{ErrorMessage, HFError}, response_schema::HFResponse, }}, utils::HFResult}; #[post("/post/new", data = "<post>")] pub async fn add_post( mut post: Json<Post>, opt: &State<DbOptions>, user: AuthTokenGuard, ) -> HFResult<String> { let _val = auth_guard!(user); let exp = Regex::new(r"^[a-zA-Z0-9_-]*$").unwrap(); if !exp.is_match(post.slug.as_str()) { return Err(HFError::CustomError(ErrorMessage { status: Some(Status::BadRequest), hint: Some("Slug should not contain unsafe characters. Try hyphens instead".to_string()), message: "invalid slug".to_string(), })); } let database = Client::with_options(opt.options.clone())? .database("hellfire"); let authors = database.collection::<UserModel>("users"); let author = authors.find_one(doc! { "name": _val }, None).await?; post.author = Some(PublicUser::from(author.unwrap())); let posts = database .collection::<Post>("posts"); if posts.find_one(doc! {"slug": &post.slug}, None).await?.is_some() { return Err(HFError::CustomError(ErrorMessage { status: Some(Status::BadRequest), hint: Some("The given slug already exists".to_string()), message: "invalid slug".to_string(), })); } let res = posts.insert_one(&post.into_inner(), None).await?; Ok(HFResponse { status: None, error_hint_message: None, response: res.inserted_id.to_string(), }) } <file_sep>use mongodb::bson; use rocket::serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] #[serde(crate = "rocket::serde")] pub struct UserModel { #[serde(rename = "_id", skip_serializing_if = "Option::is_none")] pub id: Option<bson::oid::ObjectId>, pub name: String, // #[serde(skip_serializing)] pub password: String, // #[serde(skip_serializing)] pub salt: String, pub auth_token: Option<String> } #[derive(Debug, Deserialize, Serialize)] #[serde(crate = "rocket::serde")] pub struct PublicUser { pub id: Option<bson::oid::ObjectId>, pub name: String, } impl From<UserModel> for PublicUser { fn from(val: UserModel) -> Self { PublicUser { id: val.id, name: val.name } } }<file_sep>pub mod schemas; pub mod entities;<file_sep>use crate::{DbOptions, models::{ entities::user::UserModel, schemas::response_schema::HFResponse, }, utils::HFResult}; use argon2::{ password_hash::{rand_core::OsRng, PasswordHash, PasswordHasher, PasswordVerifier, SaltString}, Argon2, Params, }; use mongodb::Client; use rocket::{ serde::{json::Json, Deserialize, Serialize}, State, }; #[derive(Debug, Deserialize, Serialize)] #[serde(crate = "rocket::serde")] pub struct User { email: String, password: String, } #[derive(Debug, Serialize)] #[serde(crate = "rocket::serde")] pub struct SignupResponse { message: String, } #[post("/signup", data = "<user>")] pub async fn signup( user: Json<User>, opt: &State<DbOptions>, ) -> HFResult<SignupResponse> { let userdb = Client::with_options(opt.options.clone())? .database("hellfire") .collection::<UserModel>("users"); let salt = SaltString::generate(&mut OsRng); let argon2 = Argon2::default(); let password_hash = argon2 .hash_password( &(user.password).as_bytes(), None, Params::default(), &salt, )? .to_string(); let parsed_hash = PasswordHash::new(&password_hash)?; if argon2 .verify_password(&(user.password).as_bytes(), &parsed_hash) .is_err() { return Ok(HFResponse { error_hint_message: Some("Password hashing failed".to_string()), status: None, response: SignupResponse { message: "Server Error".to_string(), }, }); } userdb .insert_one( UserModel { id: None, name: user.email.clone(), password: <PASSWORD>(), salt: salt.as_str().to_string(), auth_token: None, }, None, ) .await?; Ok(HFResponse { status: None, response: SignupResponse { message: "Login Success".to_string(), }, error_hint_message: None, }) } <file_sep># hellfire-backend The headless CMS For normal development, you will need local instance of mongodb and rust-nightly installed. For mongodb, set the env variab;e `MONGO_URL` to the correct url. If not set, it will default to `localhost:27017`. You can also set an optional `PORT` env variable Then run `cargo run` in the terminal in the directory of this repo to start the server. To interact with the server, you will probably need the admin panel too [link](https://github.com/HellFireCMS/hellfire-admin) <file_sep>pub mod error_schema; pub mod response_schema;<file_sep>use crate::models::schemas::error_schema::{ErrorMessage, HFError}; use branca::Branca; use rocket::{ http::Status, request::{FromRequest, Outcome}, State, }; pub enum AuthTokenGuard { Success { user: String }, Failure(HFError), } #[rocket::async_trait] impl<'r> FromRequest<'r> for AuthTokenGuard { type Error = (); async fn from_request(request: &'r rocket::Request<'_>) -> Outcome<Self, Self::Error> { let auth_header = request.headers().get_one("Authorization"); if auth_header.is_none() { return Outcome::Success(AuthTokenGuard::Failure(HFError::CustomError( ErrorMessage { message: "Authentication Failed, no token found".to_string(), status: Some(Status::BadRequest), hint: Some("You are not logged-in, Please logged in and try this action again".to_string()) }, ))); } let token = auth_header.unwrap(); let key = request.guard::<&State<&[u8; 32]>>().await; if key.is_failure() || key.is_forward() { return Outcome::Success(AuthTokenGuard::Failure(HFError::CustomError( ErrorMessage { message: "No Auth Header".to_string(), status: Some(Status::BadRequest), hint: Some("Sorry, the request is invalid because the server couldn't verify you, are you sure you're logged in?".to_string()) }, ))); } let key: &[u8; 32] = key.unwrap(); let branca = Branca::new(key).unwrap(); let payload = branca.decode(token, 0); if payload.is_err() { return Outcome::Success(AuthTokenGuard::Failure(HFError::CustomError( ErrorMessage { message: "Invald Token".to_string(), status: Some(Status::BadRequest), hint: Some("Your login session has expired, try logging out and logging in".to_string()) }, ))); } let email = String::from_utf8(payload.unwrap()).unwrap(); return Outcome::Success(AuthTokenGuard::Success { user: email }); } } #[macro_export] macro_rules! auth_guard { ($expr:expr $(,)?) => { match $expr { AuthTokenGuard::Failure(e) => { return Err(e); } AuthTokenGuard::Success { user } => user, } }; } <file_sep>pub mod user; pub mod post; pub mod test_str;<file_sep>use argon2::{Argon2, PasswordHasher}; use branca::Branca; use mongodb::{bson::doc, Client}; use rocket::http::Status; use rocket::serde::{json::Json, Deserialize, Serialize}; use rocket::State; use crate::utils::HFResult; use crate::{ models::{ entities::user::UserModel, schemas::{ error_schema::{ErrorMessage, HFError}, response_schema::HFResponse, }, }, DbOptions, }; #[derive(Debug, Serialize, Deserialize)] #[serde(crate = "rocket::serde")] pub struct LoginResponse { user: UserModel, } #[derive(Debug, Serialize, Deserialize)] #[serde(crate = "rocket::serde")] pub struct LoginRequest { email: String, password: String, } #[post("/login", data = "<req>")] pub async fn login( req: Json<LoginRequest>, opt: &State<DbOptions>, key: &State<&[u8; 32]> ) -> HFResult<LoginResponse> { let db = Client::with_options(opt.options.clone())? .database("hellfire") .collection::<UserModel>("users"); let res = db.find_one(doc! {"name": &req.email}, None).await?; if res.is_none() { return Err(HFError::CustomError(ErrorMessage { message: "Incorrect Email or Password".to_string(), status: Some(Status::BadRequest), hint: Some("Your Email/Password does not match our database".to_string()) })); } let user = res.unwrap(); let argon2 = Argon2::default(); let hash = argon2.hash_password_simple(req.password.as_bytes(), &user.salt)?; if hash.to_string() != user.password { return Err(HFError::CustomError(ErrorMessage { message: "Incorrect Email or Password".to_string(), status: Some(Status::BadRequest), hint: Some("Your Email/Password does not match our database".to_string()) })); } let key: &[u8; 32] = key; let mut token = Branca::new(key).unwrap(); let ciphertext = token.encode(user.name.as_bytes()).unwrap(); Ok(HFResponse { status: None, response: LoginResponse { user: UserModel { auth_token: Some(ciphertext), ..user }, }, error_hint_message: None, }) } <file_sep>use mongodb::{bson::doc, Client}; use rocket::{http::Status, serde::json::Json, State}; use crate::{ models::{ entities::post::Post, schemas::{ error_schema::{ErrorMessage, HFError}, response_schema::HFResponse, }, }, utils::HFResult, DbOptions, }; #[post("/post/<slug>", data = "<post>")] pub async fn modify_post( slug: String, post: Json<Post>, opts: &State<DbOptions>, ) -> HFResult<String> { let db = Client::with_options(opts.options.clone())? .database("hellfire") .collection::<Post>("posts"); let res = db .find_one_and_replace(doc! { "slug": &slug }, post.into_inner(), None) .await?; if res.is_none() { return Err(HFError::CustomError(ErrorMessage { message: format!("Post {} not found", &slug), status: Some(Status::NotFound), hint: Some("The requested post is not found. Are you sure it exists?".to_string()) })); } Ok(HFResponse { status: None, error_hint_message: None, response: "Success".to_string(), }) }
767f79afc94b0952cb8b7889d4c0d70093a23a51
[ "TOML", "Rust", "Dockerfile", "Markdown" ]
22
Rust
HellFireCMS/hellfire-backend
a216f72286f7f5277a55b80f84e491affa1401dd
5ce84053e82d3d0959eefa3d65159cadbf32c512
refs/heads/master
<file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZohoApp.App { public interface ITransformHistory { string Transform(TransformHistoryDto transformHistoryDto); } public enum Actions { None = -1, Begin, Continue, End } public class TransformHistoryDto { public string History { get; set; } public string FirstTask { get; set; } public string SecondTask { get; set; } public Actions Actions { get; set; } } } <file_sep>using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ZohoApp.App { public partial class Zoho : Form { private ITransformHistory transformHistory = new TransformHistory(); public Zoho() { InitializeComponent(); } private void btnExecute_Click(object sender, EventArgs e) { string historyText = txtHistory.Text; string task1Text = txtTask1.Text; string task2Text = txtTask2.Text; Actions action = (Actions)cbActions.SelectedIndex; TransformHistory(historyText, task1Text, task2Text, action); } private void TransformHistory(string historyText, string task1Text, string task2Text, Actions action) { txtResult.Text = transformHistory.Transform(new TransformHistoryDto() { History = historyText, FirstTask = task1Text, SecondTask = task2Text, Actions = action }); } } }<file_sep>using System; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; using ZohoApp.App; namespace ZohoApp.TestApp { [TestClass] public class TransformHistoryTest { [TestMethod] public void TestTransform_BeginAction() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Iniciando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.Begin }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("WhiteSpace")] public void TestTransform_BeginAction_WithRightSpace() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Iniciando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía "; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.Begin }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("WhiteSpace")] public void TestTransform_BeginAction_WithHistoryLeftSpace() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Iniciando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = " 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.Begin }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("WhiteSpace")] public void TestTransform_BeginAction_WithTask1LeftSpace() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Iniciando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = " desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.Begin }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("WhiteSpace")] public void TestTransform_BeginAction_WithTask1RightSpace() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Iniciando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita "; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.Begin }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("WhiteSpace")] public void TestTransform_BeginAction_WithTask1RightDot() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Iniciando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.Begin }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] public void TestTransform_ContinueAction() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Continuando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.Continue }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] public void TestTransform_EndAction() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Terminando de trabajar en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.End }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] public void TestTransform_BadHistoryText() { //Arrange const string expected = "Parameter name: HistoryText"; ITransformHistory transform = new TransformHistory(); string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = string.Empty, FirstTask = task1, Actions = Actions.End }; //Assert. Assert.ThrowsException<ArgumentNullException>(() => transform.Transform(transformHistoryDto), expected); } [TestMethod] [TestCategory("FirstTask")] public void TestTransform_BadTask1Text() { //Arrange const string expected = "Parameter name: Task1Text"; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = string.Empty, Actions = Actions.End }; //Assert. Assert.ThrowsException<ArgumentNullException>(() => transform.Transform(transformHistoryDto), expected); } [TestMethod] [TestCategory("Actions")] public void TestTransform_NoneAction() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Estuve trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, Actions = Actions.None }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("SecondTask")] public void TestTransform_Task2_BeginAction() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Iniciando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita y además estuve trabajando en desarrollar cambios para que pueda cancelar cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; string task2 = "desarrollar cambios para que pueda cancelar cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, SecondTask = task2, Actions = Actions.Begin }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("SecondTask")] public void TestTransform_Task2_ContinueAction() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Continuando trabajando en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita y además estuve trabajando en desarrollar cambios para que pueda cancelar cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; string task2 = "desarrollar cambios para que pueda cancelar cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, SecondTask = task2, Actions = Actions.Continue }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("SecondTask")] public void TestTransform_Task2_EndAction() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Terminando de trabajar en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita y además estuve trabajando en desarrollar cambios para que pueda cancelar cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; string task2 = "desarrollar cambios para que pueda cancelar cita"; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, SecondTask = task2, Actions = Actions.End }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } [TestMethod] [TestCategory("SecondTask")] public void TestTransform_Task2_FinalDot() { //Arrange string expected = "Estuve trabajando con la historia 5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía. Terminando de trabajar en desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita y además estuve trabajando en desarrollar cambios para que pueda cancelar cita."; ITransformHistory transform = new TransformHistory(); string history = "5587: Integración Colecturía Digital - Consulta de Estatus de Citas para Colecturía"; string task1 = "desarrollar cambios para que colecturía pueda ver el estatus de las citas al enviarle un numero de cita"; string task2 = "desarrollar cambios para que pueda cancelar cita."; //Act var transformHistoryDto = new TransformHistoryDto() { History = history, FirstTask = task1, SecondTask = task2, Actions = Actions.End }; string result = transform.Transform(transformHistoryDto); //Assert. Assert.AreEqual(expected, result); } } }<file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZohoApp.App { public class TransformHistory : ITransformHistory { public string Transform(TransformHistoryDto transformHistoryDto) { if (string.IsNullOrEmpty(transformHistoryDto.History)) { throw new ArgumentNullException(nameof(transformHistoryDto.History)); } if (string.IsNullOrEmpty(transformHistoryDto.FirstTask)) { throw new ArgumentNullException(nameof(transformHistoryDto.FirstTask)); } string result = $"Estuve trabajando con la historia {transformHistoryDto.History.Trim()}. "; if (transformHistoryDto.Actions == Actions.Begin) { if (string.IsNullOrEmpty(transformHistoryDto.SecondTask)) { result += $"Iniciando trabajando en {transformHistoryDto.FirstTask.TrimEnd('.').Trim()}."; } else { result += $"Iniciando trabajando en {transformHistoryDto.FirstTask.Trim()} y además estuve trabajando en {transformHistoryDto.SecondTask.TrimEnd('.').Trim()}."; } } else if (transformHistoryDto.Actions == Actions.Continue) { if (string.IsNullOrEmpty(transformHistoryDto.SecondTask)) { result += $"Continuando trabajando en {transformHistoryDto.FirstTask.TrimEnd('.').Trim()}."; } else { result += $"Continuando trabajando en {transformHistoryDto.FirstTask.Trim()} y además estuve trabajando en {transformHistoryDto.SecondTask.TrimEnd('.').Trim()}."; } } else if (transformHistoryDto.Actions == Actions.End) { if (string.IsNullOrEmpty(transformHistoryDto.SecondTask)) { result += $"Terminando de trabajar en {transformHistoryDto.FirstTask.TrimEnd('.').Trim()}."; } else { result += $"Terminando de trabajar en {transformHistoryDto.FirstTask.Trim()} y además estuve trabajando en {transformHistoryDto.SecondTask.TrimEnd('.').Trim()}."; } } else { if (string.IsNullOrEmpty(transformHistoryDto.SecondTask)) { result += $"Estuve trabajando en {transformHistoryDto.FirstTask.TrimEnd('.').Trim()}."; } else { result += $"Estuve trabajando en {transformHistoryDto.FirstTask.Trim()} y además estuve trabajando en {transformHistoryDto.SecondTask.TrimEnd('.').Trim()}."; } } return result; } } }
621f1a0e062cbd4b260127b290e70e8ce4018312
[ "C#" ]
4
C#
ccassob/ZohoApp
b4eee5620e52ac2be89dc6b19d9839433fec2fc0
05f18d27d2c77685e11c1b0a005f30276e0d4fb7
refs/heads/main
<file_sep><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Quem somos</title> <link href='https://fonts.googleapis.com/css?family=Didact Gothic' rel='stylesheet'> <link rel="stylesheet" href="../css/quemSomos.css"> <script type="text/javascript" src="../libs/jquery/jquery-3.6.0.min.js"></script> <link rel="stylesheet" href="../libs/jquery-ui-1.12.1.custom/jquery-ui.css"> <script src="../libs/jquery-ui-1.12.1.custom/external/jquery/jquery.js"></script> <script src="../libs/jquery-ui-1.12.1.custom/jquery-ui.js"></script> <script src="../js/quemSomos.js"></script> </head> <body onload="atualizarDataHora()"> <!-- Header da página --> <header id="cabecalho"> <!-- Fiz uma div p cada coisa: div para Lupa div para data e hora div para bandeira div para botao do menu div para o menu que surge --> <div id="lupa" onclick="acessivel()"> <img src="../imagens/lupa+papel.png" alt="lupa"> </div> <div id="datahora"> </div> <div id="bandeiraDeSp"> <img id="bandeiraSp" src="../imagens/Bandeira_do_estado_de_São_Paulo.svg" alt="Bandeira de São Paulo"> </div> <div id="DivbotaoMenu"><img id= "botaoMenu" src="../imagens/menu.png" alt=""> </div> <div id="menu"> <a href="../html/index.html">Home</a> <a href="../html/info.html">Informações</a> <a href="../html/quemSomos.html">Quem somos</a> <a href="../html/formulario.html">Vacine-se</a> </div> </header> <!-- Main da página --> <main id="site"> <div class="part1"> <h1 id="titulo1">GOVERNO DE SP <span>CONTRA O CORONAVÍRUS</span></h1> <h1 id="titulo2"><span>QUEM SOMOS</span></h1> </div> <div id="part2"> <h3>O Governador <NAME> decidiu criar um centro de contingência do Estado para monitorar e coordenar ações contra a propagação do novo coronavírus em São Paulo. A decisão ocorreu após a confirmação do primeiro caso do país, na capital paulista. O Centro conta com profissionais especialistas das redes pública e privada, com ênfase na área de Infectologia.</h3> </div> <div id="part3"> <h3>Plano São Paulo</h3> <div> <p> Plano São Paulo de retomada econômica (22/4 e 27/5): A partir de 1º de junho começa nova fase da quarentena chamada “Retomada Consciente”. O Estado está dividido em regiões que estão categorizadas segundo uma escala com 5 níveis, levando em consideração a evolução da epidemia e a capacidade do sistema de saúde. Cada região poderá reabrir determinados setores de acordo com a fase em que se encontra. A classificação é feita por cores e revista a cada semana. Detalhes do Plano São Paulo estão disponíveis <a href="https://www.saopaulo.sp.gov.br/planosp/" target="_blank">aqui.</a> </p> </div> <h3>Ações de Outros agentes e Poderes</h3> <div> <p> <strong>Doações da iniciativa privada (atualização em 14/9):</strong> Por meio de reuniões virtuais, o Comitê Empresarial Solidário já arrecadou R$ 1,156 bilhão em doações de produtos, dinheiro e serviços provenientes de 452 empresas e entidades. </p> <br> <p> <strong>R$ 219 milhões em emendas parlamentares (30/3):</strong> A bancada paulista no Congresso Nacional, composta por 70 deputados e 3 senadores, destinou R$ 219 milhões de suas emendas parlamentares para ações em Saúde para combate ao coronavírus. Os recursos serão liberados gradualmente até 30 de abril. </p> <br> <p> <a href="https://www.saopaulo.sp.gov.br/spnoticias/saiba-quais-as-medidas-do-governo-de-sp-para-o-combate-ao-coronavirus-2/" target="_blank">Mais informações</a> </p> </div> <h3>Doações</h3> <div> <p> Governo de SP tem comissão responsável por organizar doações de entes privados e sociedade civil. São aceitas doações em dinheiro, serviços e materiais. Para mais informações clique <a href="https://www.saopaulo.sp.gov.br/coronavirus/doacoes/" target="_blank">aqui.</a> </p> </div> <h3>Como se Proteger</h3> <div> <p> Os coronavírus são uma grande família que causam doenças que variam do resfriado comum a doenças mais graves, como pneumonia e síndrome respiratória aguda grave, que podem causar a morte. </p> <br> <p> A organização mundial de saúde recomenda alguns cuidados simples, mas essenciais para a prevenção a esse tipo de vírus. Lave as mãos depois de tossir ou espirrar, depois de cuidar de pessoas doentes, depois de ir ao banheiro e antes ou depois de comer. Ao tossir e espirrar cubra a boca e o nariz e preferencialmente use lenço descartável, jogue fora imediatamente e lave as mãos. </p> </div> </div> <div id="part4"> <h1>Principais Notícias</h1> <!-- <hr> --> </div> <div id="part5"> <a href="https://www.msn.com/pt-br/noticias/brasil/ao-vivo-doria-atualiza-informa-c3-a7-c3-b5es-do-combate-ao-coronav-c3-adrus-em-sp/ar-BB1go0Mn?ocid=uxbndlbing" target="_blank"><img src="../imagens/noticia1.jpg" alt=""></a> <a href="https://www.msn.com/pt-br/noticias/brasil/governo-de-sp-anuncia-medidas-de-combate-c3-a0-pandemia-do-coronav-c3-adrus-assista-c3-a0-coletiva/ar-BB1gohoF?ocid=uxbndlbing" target="_blank"><img src="../imagens/noticia2.jpg" alt=""></a> <a href="https://jovempan.com.br/noticias/brasil/em-abril-mortes-de-idosos-por-covid-19-caem-mais-de-90-na-cidade-de-sao-paulo.html" target="_blank"><img src="../imagens/noticia3.jpg" alt=""></a> </div> <div id="part6"> <h3>Doria atualiza informações do combate ao coronavírus em SP</h3> <h3>SP anuncia vacinação em grávidas, puérperas e adultos com comorbidades</h3> <h3>Em abril, mortes de idosos por Covid-19 caem mais de 90% na cidade de São Paulo</h3> <img src="../imagens/seta.jpg" alt="" id="b1"> <img src="../imagens/seta.jpg" alt="" id="b2"> <img src="../imagens/seta.jpg" alt="" id="b3"> <div> <p id="p1">O governador de São Paulo, <NAME> (PSDB), concede entrevista à imprensa, nesta 4ª feira (5.mai.2021), para atualizar as informações da vacinação contra o coronavírus e de medidas restritivas no Estado de São Paulo. <a href="https://www.msn.com/pt-br/noticias/brasil/ao-vivo-doria-atualiza-informa-c3-a7-c3-b5es-do-combate-ao-coronav-c3-adrus-em-sp/ar-BB1go0Mn?ocid=uxbndlbing" target="_blank">Fonte</a></p> </div> <div> <p id="p2">O governo de São Paulo anunciou em coletiva de imprensa na tarde desta quarta-feira, 5, a vacinação contra o coronavírus para grávidas com comorbidades e puérperas, a partir dos 18 anos, e adultos com comorbidades ou deficiência permanente entre 55 e 59 anos. <a href="https://www.msn.com/pt-br/noticias/brasil/governo-de-sp-anuncia-medidas-de-combate-c3-a0-pandemia-do-coronav-c3-adrus-assista-c3-a0-coletiva/ar-BB1gohoF?ocid=uxbndlbing" target="_blank">Fonte</a></p> </div> <div> <p id="p3">O número de mortes de idosos por Covid-19 na cidade de São Paulo despencou mais de 90% em abril comparado a março. Enquanto em março foram registradas 3.437 óbitos pela doença em pessoas com mais de 60 anos, em abril, esse número caiu para 333, uma diminuição de cerca de 90,4%. <a href="https://jovempan.com.br/noticias/brasil/em-abril-mortes-de-idosos-por-covid-19-caem-mais-de-90-na-cidade-de-sao-paulo.html" target="_blank">Fonte</a></p> </div> </div> <div id="part7"> <h1>Veja quem é responsável por levar essa informação até você!</h1> <!-- <hr> --> </div> <div id="part8"> </div> <div id="part9"> <h2 id="h2_logo">DINTT</h2> <p id="logo">Um compromisso pela excelência e inovações tecnológicas constantes é o que permeia nosso pensamento e visão no mundo digital. Há cinco anos no mercado nossa empresa, composta por 5 programadoras de formação técnica e acadêmica com experiência prática em suas respectivas áreas de atuação. Conte com a escolha certa para o seu site!</p> </div> <button style="font-size: 26px; display: block; margin: 40px auto;" id="botaoDeContato"><p>Fale conosco</p> </button> <div id="dialog" title="Contatos"> Acesse o SP Perguntas -COVID-19 +55 11 95220-2923 </div> </main> <footer id="rodape"> <div id="avisoDePrivacidade"> <p> Aviso Legal de Privacidade</p> </div> <div id="RedeSocial"> <a href="https://www.facebook.com/governosp/"><img src="../imagens/facebook.png" alt="1facebook"></a> <a href="https://www.youtube.com/channel/UCc7rfCbP90qiw3BgT-Iqc7g"><img src="../imagens/youtube(1).png" alt="Youtube"></a> <a href="https://twitter.com/governosp/"><img src="../imagens/twitter.png" alt="Twitter"></a> <a href="https://www.instagram.com/governosp/"><img src="../imagens/instagram.png" alt="Instagram"></a> <a href="https://t.me/governosp"><img src="../imagens/telegram.png" alt="Telegram"></a> </div> </div> <div id="copyright"> &copy; 2021 Estado de SP </div> </footer> </body> </html><file_sep>Projeto CSS Criar 3 layouts diferentes para cada projeto REQUISITOS: • Para o desenvolvimento do layout do site, vocês deverão utilizar Flexbox e/ou Grid. Utilize a sua criatividade para criar o layout, seguindo os requisitos abaixo. • Cabeçalho com cor de fundo utilizando gradiente, contendo uma logomarca, um menu e uma barra de pesquisa, com um espaço para o usuário digitar um texto e um botão chamado buscar. Você pode optar por um menu vertical também, nesse caso ele ficará abaixo do cabeçalho. Para o menu, utilizar as listas não ordenadas. Utilizar cores que combinem com o seu projeto. • No conteúdo principal você deverá ter 3 seções. Uma deverá ter uma coluna, outra deverá ter duas colunas e outra ter 3 colunas. Não importa a ordem que você irá colocar essas seções, utilize a sua criatividade para deixar o layout organizado e bonito. Seguem alguns requisitos que deverão conter nas seções: 1. Utilizar pelo menos duas imagens, e ajustar largura e altura pelo css. 2. Uma das imagens deverá ser posicionada com a função position. 3. Utilizar pelo menos um título alinhado ao centro com CSS. 4. Criar pelo menos um parágrafo com cores estilizadas pelo CSS e deixa-lo justificado. 5. Utilizar uma web-fonte em algum texto do seu projeto. 6. Em alguma página do projeto deve ser inserido um banner com posicionamento fixed ou stick • No rodapé, crie ícones para as principais redes sociais da empresa. Também poderá adicionar novamente a logomarca, e alguns links interessantes. Utilize a sua criatividade. • Crie também uma página de contato, que contenha um formulário estilizado para o envio de mensagens para a empresa. Utilize a sua criatividade para personalizar o formulário de contato. • O projeto deverá conter no mínimo quatro(4) páginas (index , contato , quem somos , produtos/serviços) e não mais que 10(dez) páginas POR LAYOUT • No index deve ser inserido (comentário) no código o nome da equipe sendo 2 nomes dentro do <head> e os outros uma linha acima do fechamento </html> Desenvolvedoras: / https://github.com/FernandaMoura / https://github.com/HelenaDittert / https://github.com/luizagontijo / https://github.com/naylamota / https://github.com/tbmota<file_sep>//chamando o express para o arquivo const express = require('express') //chamando a função específica do express que trabalha com rotas const router = express.Router() //requisição para o arquivo de rotas o controller referente a produtos const usuariosController = require('../controllers/usuarios-controller') //chamando a função específica do controller que irá trabalhar com a rota principal do meu sistema (rota de listagem de usuarios) router.get('/', usuariosController.listar_usuarios) module.exports = router; router.get('/loginUsuarios', usuariosController.login_usuarios_get) router.get('/cadastrarUsuarios', usuariosController.cadastrar_usuarios_get) router.post('/cadastrarUsuarios', usuariosController.cadastrar_usuarios_post) router.get('/deletarUsuarios/:id', usuariosController.deletar_usuarios) router.get('/editarUsuarios/:id', usuariosController.editar_usuarios_get) router.post('/editarUsuarios', usuariosController.editar_usuarios_post) <file_sep> /*2.Pagina de Calculadora A.O usuário pode selecionar o modelo para utilizar, o outro modelo tem que ficar indisponível(Simples e Científica) B. ambas funcionais se habilitada (Escolher habilitar por botão) C. A científica deve ter as mesma funcionalidades da simples adicionando: Raiz quadrada , elevado a 2 , elevado a 3 e numero Pi. */ //calculadora simples //1° fzr as funções de uma calculadora(soma,divisao,...) //2° fzr aparecer na tela o resultado chamando cada uma //3° arrumar o layout function habilita1(){ // pego uma variável, chamo o id da 1° calculadora var a = document.getElementById("primeira").style.display = "block"; // pega a configuração do css do display block var b = document.getElementById("segunda").style.display = "none"; // quando uclico na parte de habilitar, aparece uma e desabilita a outra } function habilita2(){ var a = document.getElementById("primeira").style.display = "none"; var b = document.getElementById("segunda").style.display = "block"; } function habilita3(){ var a = document.getElementById("primeira").style.display = "block"; var b = document.getElementById("segunda").style.display = "block"; } //primeira calc function escolha1(num1) { //aparece os números no visor var a = document.calc1.visor1.value //pega a variável a que tá criada dentro da função e pega os botões e aparece no visor document.calc1.visor1.value = a + num1; //soma os botoes digitados, a função vai concatenando os valores } function reset() { //limpa, usando o botão c = retorna um espaço vazio return "" } function calcular1(a, num1) { //cálculos da primeira calculadora var a = document.calc1.visor1.value if(a){ //se a variável que vc escolheu for documentada na tela document.calc1.visor1.value = eval(a); //aparece os valores vc faz os cálculos do que tem no visor (eval) computa string } } function numPi1(num1) { document.calc1.visor1.value = 3.14; } //calculadora cientifica //1° fzr as funções de uma calculadora(soma,divisao,...) e acrescentar os requisitos //2° fzr aparecer na tela o resultado chamando cada uma //3° arrumar o layout //segunda calc function escolha2(num2) { //permite os números aparecerem na tela var b = document.calc2.visor2.value //todo o formulário, o que vai aparecer no visor, o valor clicado document.calc2.visor2.value = b + num2; //concateno pra ir somando os valores } function calcular2(b, num2) { var b = document.calc2.visor2.value if(b){ document.calc2.visor2.value = eval(b); } } function numPi2(num2) { //documenta o pi e vai aparecendo no visor num2 = document.calc2.visor2.value document.calc2.visor2.value = num2+3.14; //concatena a variável e o pi } function raiz(num2){ //recebe o valor que o usuário digita e mostra na tela, depois faz a raiz e mostra o resultado var raiz = document.calc2.visor2.value; raiz = (Math.sqrt(raiz)); var resultado = raiz; document.calc2.visor2.value = resultado // para mostrar na tela } function elevado2(num2) { var elevar2 = document.calc2.visor2.value; elevar2 = (Math.pow(elevar2, 2)); var result2 = elevar2; document.calc2.visor2.value = result2 } function elevado3(num2) { var elevar3 = document.calc2.visor2.value; elevar3 = (Math.pow(elevar3, 3)); var result3 = elevar3; document.calc2.visor2.value = result3 } <file_sep>Projeto JavaScript Criar uma landing page que acesse outras 3 paginas cada uma com as funções pré definidas abaixo: 1. Landing Page: A.Criar com base na empresa(grupo) onde fale brevemente sobre os fundadores e a parte do desenvolvimento B. Deve existir um botão de acessibilidade que transforme as letras utilizadas na pagina em um tamanho maior para pessoas com baixa visão C.Botão para adicionar um novo estilo visual na pagina e outro para reset (Voltar ao padrão) D. A linkagem com as outras pagina pode ser feita por link interno ou menu. 2.Pagina de Calculadora A.O usuário pode selecionar o modelo para utilizar, o outro modelo tem que ficar indisponível(Simples e Científica) B. ambas funcionais se habilitada ( Escolher habilitar por botão) C. A científica deve ter as mesma funcionalidades da simples adicionando: Raiz quadrada , elevado a 2 , elevado a 3 e numero Pi. 3.Pagina de cadastro A.Nome completo ( converter todas as letras para maiúscula) B.Validar o CPF - Chamar um alert se invalido ou campo do formulário (vermelho) C.Data de nascimento - Não pode ter idade negativa e mais de 130 anos ( considerar 16/03/ 2021) chamar um alert se invalido ou campo do formulário (vermelho) D.E-mail ser validado - Chamar um alert se invalido ou campo do formulário (vermelho) E. Sexo (Masculino , Feminino e Não informado) via seletor F . Exibir os campos dentro de uma div com a seguinte frase "Ola (nome ) , seu login é (email) , você tem (idade) se define como uma pessoa do sexo(sexo) e pode usar (CPF) como senha" 4. pagina Currency A.Criar uma pagina de conversão de moedas B.Utilizar as moedas (dólar americano , dólar canadense , Real brasileiro , Euro , Libra e peso argentino C. Considerar mercado comercial fechamento dia 16/03/2021 D. Usuário não pode digitar numero negativo ou letras em caso de erro de digitação enviar um alert Desenvolvedoras: / https://github.com/AnaCarol-PR / https://github.com/Angelamutsumi / https://github.com/naylamota / https://github.com/Talitadevs / https://github.com/tbmota<file_sep>document.getElementById("botaoEnviar").addEventListener("click",validaFormulario) function validaFormulario(){ if(document.getElementById("date").value != "" && document.getElementById("Nome").value != "" && document.getElementById("Email").value != "" && document.getElementById("RG").value != "" && document.getElementById("CPF").value != "" && document.getElementById("Telefone").value != "" && document.getElementById("Endereço").value != "" && document.getElementById("cursos").value ){ alert("Prontinho! Você receberá a confirmação no seu email") }else{ alert("Ihhh acho que você esqueceu algo! Preencha todas as lacunas.") } } <file_sep>//controller é o responsável por executar uma consulta no banco de dados const Usuarios = require('../models/usuarios-model') //página com todos os usuários //exportando a variável listar_usuarios que tem como conteúdo uma função que realiza uma busca dos usuarios no banco de dados exports.listar_usuarios = (req, res) =>{ let usuarios = Usuarios.find({}, (err, usuarios) =>{ if(err) { console.error(err) return res.status(500).send("Erro ao consultar usuarios") } res.render('pages/usuarios', {usuarios: usuarios}) }) } //página inicial de login exports.login_usuarios_get = (req, res) => { res.render('pages/loginUsuarios') } //página de cadastro de novos usuários exports.cadastrar_usuarios_get = (req, res) => { res.render('pages/cadastrarUsuarios') } exports.cadastrar_usuarios_post = (req, res) => { console.log(req.body) let usuario = new Usuarios() usuario.nome = req.body.nome usuario.sobrenome = req.body.sobrenome usuario.cpf = req.body.cpf usuario.profissao = req.body.profissao usuario.email = req.body.email usuario.telefone = req.body.telefone usuario.date = req.body.date usuario.pais = req.body.pais usuario.senha = req.body.senha usuario.file = req.body.file usuario.msg = req.body.msg usuario.save(err => { if(err) return res.status(500).send("Erro ao cadastrar usuário") return res.redirect('/usuarios') }) } //deletar usuário exports.deletar_usuarios = (req, res) => { id = req.params.id Usuarios.deleteOne({_id: id}, (err, result) => { if(err)return res.status(500).send("Erro ao consultar usuário") }) //usuarios.findByIdAndRemove(id).exec() res.redirect('/usuarios') } //função de edição exports.editar_usuarios_get = (req, res) => { Usuarios.findById(req.params.id, (err, usuario) => { if(err) return res.status(500).send("Erro ao consultar usuário") res.render('pages/editarUsuarios', {usuario:usuario}) console.log(usuario) }) } exports.editar_usuarios_post = (req, res) => { console.log(id = req.body.id) Usuarios.findById(id, (err, usuario) =>{ console.log(req.body.sobrenome) console.log(req.body.cpf) console.log(req.body.profissao) console.log(req.body.email) console.log(req.body.telefone) console.log(req.body.date) console.log(req.body.pais) console.log(req.body.senha) console.log(req.body.file) console.log(req.body.msg) usuario.nome = req.body.nome usuario.sobrenome = req.body.sobrenome usuario.cpf = req.body.cpf usuario.profissao = req.body.profissao usuario.email = req.body.email usuario.telefone = req.body.telefone usuario.date = req.body.date usuario.pais = req.body.pais usuario.senha = req.body.senha usuario.file = req.body.file usuario.msg = req.body.msg usuario.save(err => { if(err) return res.status(500).send("Erro ao cadastrar usuário") return res.redirect('/usuarios') }) }) }<file_sep><!DOCTYPE HTML> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="description" content="Conheça nosso Curso de Adobe Photoshop"> <meta name="keywords" content="cursos"> <title>SoulCode - Adobe Photoshop</title> <link rel="stylesheet" type="text/css" href="estilo.css" /> </head> <body> <header id=topo align="center"> <table width="100%"> <tr> <td> <img src="img/logo-azul.png" alt="logotipo soulcode" width="300px" > <nav > <ul class="menu"> <li><a href="index.html">Home</a></li> <li><a href="equipe.html">Equipe</a></li> <li><a >Trilhas</a> <ul> <li><a href="design.html">Design</a></li> <li><a href="desenvolvimento.html">Desenvolvimento</a></li> <li><a href="ti.html">TI e Software</a></li> <li><a href="pessoal.html">Desenvolvimento Pessoal</a></li> </ul> </li> <li><a >Cursos</a> <ul class="submenu"> <li><a href="photoshop.html">Adobe Photoshop</a></li> <li><a href="cad.html">AutoCAD</a></li> <li><a href="uxui.html">UX e UI</a></li> <li><a href="corel.html">Corel Draw</a></li> <li><a href="htmlcss.html">HTML</a></li> <li><a href="javascript.html">JavaScript</a></li> <li><a href="java.html">Java e Orientação a Objetos</a></li> <li><a href="android.html">Android</a></li> <li><a href="manu.html">Manuetenção de Computadores</a></li> <li><a href="redes.html">Redes de Computadores</a></li> <li><a href="algo.html">Algoritmos e Lógica de Programação</a></li> <li><a href="python.html">Python</a></li> <li><a href="inteligencia.html">Inteligência Emocional</a></li> <li><a href="pessoas.html">Gestão de Pessoas</a></li> <li><a href="falar.html">Como Falar Bem em Público</a></li> <li><a href="tempo.html">Gestão de Tempo</a></li> </ul> </li> <li><a href="contato.html">Contato</a></li> </ul> </nav> </td> </tr> </table> </header> <main> <table class="descrição" border="0" width="100%"> <thead> <tr> <td><h1>Curso Adobe Photoshop</h1> <a href="https://www.adobe.com/br/products/photoshop.html?sdid=KQPOM&mv=search&ef_id=<KEY>B:G:s&s_kwcid=AL!3085!3!442396627382!e!!g!!adobe%20photoshop!188192502!10077842982&gclid=<KEY>" target="_blank"><img src="https://cc-prod.scene7.com/is/image/CCProdAuthor/dt_ps_riverflow__2?$pjpeg$&amp;jpegSize=200&amp;wid=701" size="100px" alt="cursoadobe"></a></td> <td> <h2>Descrição:</h2> Adobe Photoshop é um software caracterizado como editor de imagens bidimensionais do tipo raster desenvolvido pela Adobe Systems. É considerado o líder no mercado dos editores de imagem profissionais, assim como o programa de facto para edição profissional de imagens digitais e trabalhos de pré-impressão. </td> </tr> </thead> </table> <tbody> <table border="0" class="desenvolver" width="100%"> <tr> <td> <h2>O que vamos desenvolver durante o curso:</h2> <ul> <li>Como encontrar soluções práticas e rápidas para os desafios diários que todo Designer Gráfico se depara em seus projetos.</li> <li>As principais aplicações e ferramentas utilizadas para Recorte e tratamento de Imagens.</li> <li>Criação peças gráficas para divulgação/eventos em diversos segmentos como: flyers/folhetos, banners, cartazes tanto para web/mídias sociais quanto para impressão,</li> <li>Aplicação de peças gráficas em Mockups feito no Photoshop.</li> <li>Efeitos e Cores Criativas.</li> <li>Os principais detalhes da interface do Photoshop CC 2020.</li> <li>Como trabalhar com Layers.</li> <li>Máscaras.</li> <li>Seleção.</li> <li>Mesclagem de layers.</li> <li>Limpeza de imperfeições.</li> <li>Ajuste de cores, iluminação.</li> <li>Fusão simples.</li> <li>Camera Raw</li> <li>Limpeza de Pele</li> <li>Como desenhar formas.</li> <li>Como inserir textos.</li> <li>Como criar artes para posts.</li> </ul> </td> </tr> </table> <table class="requisitos" align="left" border="0" width="95%"> <div> <tr> <td width="10%"><a href="https://www.adobe.com/br/products/photoshop.html?sdid=KQPOM&mv=search&ef_id=Cj0KCQjwl9GCBhDvARIsAFunhsljk3_lf54mQgxTWyDMa5qsCbKdEOG-wTt5kpgGtKNqSw1GIaVq_6AaAuDGEALw_wcB:G:s&s_kwcid=AL!3085!3!442396627382!e!!g!!adobe%20photoshop!188192502!10077842982&gclid=Cj0KCQjwl9GCBhDvARIsAFunhsljk3_lf54mQgxTWyDMa5qsCbKdEOG-wTt5kpgGtKNqSw1GIaVq_6AaAuDGEALw_wcB" target="_blank"><img src="img/adobe.png" width="200px" > </a></td> <td width="90%"><h3>Requisitos:</h3> <ul> <li>Ter instalado a versão mais recente do Photoshop CC 2020 em (Inglês).</li> <li>Não precisa ter nenhum conhecimento do Photoshop CC 2020 pois é ensinado do zero.</li> <li>O básico de informática.</li> <li>O alunos de versões anteriores também podem estudar.</li> <li>Acesso ao Computador para praticar tanto MAC quanto PC.</li> </ul> </td> </tr> </div> </table> <table class="horas" align="left" border="0" width="95%"> <div> <tr> <td width="90%"><h3>Saiba mais sobre o curso:</h3> <ul> <li>Carga Horária: 120 horas.</li> <li>Curso serão ao vivo.</li> <li>Período das 19:00 ás 21:00.</li> <li>Data de início: 05/04/2021.</li> <li>Necessário fazer inscrição e anexar os documentos.</li> <li>Ficarão disponível durante todo curso.</li> <li>Disponibilizamos material de apoio para estudo em formato pdf.</li> </ul> </td> <td width="10%"><a href="https://www.adobe.com/br/products/photoshop.html?sdid=KQPOM&mv=search&ef_id=Cj0KCQjwl9GCBhDvARIsAFunhsljk3_lf54mQgxTWyDMa5qsCbKdEOG-wTt5kpgGtKNqSw1GIaVq_6AaAuDGEALw_wcB:G:s&s_kwcid=AL!3085!3!442396627382!e!!g!!adobe%20photoshop!188192502!10077842982&gclid=<KEY>CBhDv<KEY>_6AaAuDGEALw_wcB" target="_blank"><img src="img/adobe2.png" alt="" width="200px"></a></td> </tr> <tr align="center"> <td colspan="2"><a href="form_cursos.html"><img src="img/inscreva.jpg" alt="botão de inscrição" width="200px"></a> </td> </tr> </div> </table> </tbody> </main> <footer class="rodape" > <table width="100%" height="90px" cellspacing="0" cellpadding="10px"> <tr> <!--linha da seta--> <td colspan="3" align="right"><a href="#topo"><img src="img/seta.png" alt="seta para o topo" width="50px" ></a></td> </tr> <!--tabela do rodapé --> <tr bgcolor="black"> <td><!--coluna 1--> <table ><!--tabela dos links PRECISA COLOCAR NAV?--> <tr> <td><img src="img/telefone.png" width= "30px" alt="ícone telefone"></td> <td colspan="4"> (11) 4810-3644</a></td> </tr> <tr> <td><img src="img/correio.png" width= "30px" alt="ícone carta"></td> <td colspan="4"><EMAIL></a></td> </tr> <tr align="right" > <td><a href="https://www.facebook.com/SoulCodeAcademy"><img src="img/facebook.png" width= "30px" alt="ícone facebook"></a> </td> <td><a href="https://www.linkedin.com/company/soulcodebrasil/"><img src="img/linkedin.png" width= "30px" alt="ícone linkedin"></a></td> <td><a href="http://www.instagram.com/soulcodeacademy"><img src="img/instagram.png" width= "30px" alt="ícone instagram"></a></td> <td><a href="https://twitter.com/SoulCodeAcademy"><img src="img/twitter.png" width= "30px" alt="ícone twitter"></a></td> <td><a href="https://www.youtube.com/channel/UCi6cfCiO5WyzTU58s-6geag"><img src="img/youtube.png" width= "30px" alt="ícone youtube"></a></td> </tr> </table> </td> <td align="center"><!--coluna 2--> <img src="img/logo-branco.png" alt="logotipo soulcode" width="200px" > </td> <td align="center"><!--coluna 3--> <NAME>, 235 Conj 111, 11º andar <br /> <NAME> - São Paulo/SP </td> </tr> </table> <p class="copyright">Copyright © 2021 SoulCode Academy. All rights reserved.</p> </footer> </body> </html><file_sep><!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="../css/index.css" /> <!--Index CSS--> <script type="text/javascript" src="../libs/jquery/jquery-3.6.0.min.js"></script> <!--Biblioteca jquery--> <script type="text/javascript" src="../js/index.js"></script> <!--JS--> <title>Informe-se sobre a Covid-19 em SP</title> <!-- Header e Foter !!--> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href='https://fonts.googleapis.com/css?family=Didact Gothic' rel='stylesheet'> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"> </script> </head> <!-- onload tem q ficar aqui (funcao pronta da data e hora) --> <body onload="atualizarDataHora()"> <header> <!-- Fiz uma div p cada coisa: div para Lupa div para data e hora div para bandeira div para botao do menu div para o menu que surge --> <div id="lupa" onclick="aumentar()" ondblclick="diminuir()"> <img src="../imagens/lupa+papel.png" alt="lupa"> </div> <div id="datahora"> </div> <div id="bandeiraDeSp"> <img id="bandeiraSp" src="../imagens/Bandeira_do_estado_de_São_Paulo.svg" alt="Bandeira de São Paulo"> </div> <p id="frase" style="font-size: 35px; line-height: 1.6; letter-spacing: 0.199em; font-weight: 300; font-style: italic;"> Governo de SP contra o coronavírus </p> <div id="DivbotaoMenu"><img id= "botaoMenu" src="../imagens/menu.png" alt=""> </div> <div id="menu"> <a href="..//html/index.html"> Home</a> <a href="..//html/info.html"> Informações</a> <a href="..//html/quemSomos.html"> Quem somos</a> <a href="../html/formulario.html"> Vacine-se</a> </div> </header> <!-----------------------------------> <!----------------------------------> <!--Aqui inicia a index!! --> <!--Banner --> <div id="div_inicial"> <img id="foto_inicial" src="../imagens/luva.jpg" /> </div> <!--Container do conteúdo --> <section id="container"> <div id="left"></div> <div id="right"></div> <!--1. Informações sobre Vacinas aprovadas em fase emergencial (Informando eficácia e métodos de cada uma)--> <main> <section> <div id="div1"> <div id="div1_1"> <img src="../imagens/imagemvacina.png" /> <p>Informações sobre vacinas aprovadas em fase emergencial</p> </div> <div id="div1_2"> <div class="texto"> <p> A Agência Nacional de Vigilância Sanitária (Anvisa) recebeu neste sábado o segundo pedido de uso definitivo de uma vacina contra Covid-19, feito pela farmacêutica norte-americana Pfizer.<hr size=5> Antes, em 29 de janeiro, a Fundação Oswaldo Cruz (Fiocruz) fez requisição similar para o imunizante produzido pela Universidade de Oxford em parceria com o laboratório AstraZeneca. Os dois processos ainda estão em andamento na agência reguladora brasileira. Além disso, a Anvisa já autorizou dois imunizantes para uso emergencial no país: a própria vacina de Oxford, em pedido feito pela Fiocruz, e a chinesa Coronavac, em requisição apresentada pelo Instituto Butantan.<hr size=5><br> Veja abaixo como está o andamento da autorização das vacinas no Brasil:<hr size=5><br> <h3>Uso emergencial aprovado</h3><br> <h3>• Coronavac</h3> Situação: Vacina aprovada pela Anvisa para uso emergencial no dia 17 de janeiro de 2021.<br> Desenvolvedor: Sinovac (China)<br> País de origem: China<br> Feita em parceria com: Instituto Butantan (SP)<br> Estados no Brasil em que foi testada: São Paulo, Rio de Janeiro, Minas Gerais, Distrito Federal, Paraná e Rio Grande do Sul, em 22 centros de pesquisa<br> Voluntários: No Brasil, 13 mil (inicialmente eram 9 mil)<br> Boas práticas de fabricação: Inspeção feita no Butantan entre 30/11 e 4/12. Certificação publicada em 21/12.<br> Eficácia: Eficácia global de 50,38%. Eficácia de 78% em casos leves e de 100% em casos graves e moderados.<br> <hr size=5><br> <h3>• Vacina: ChAdOx1 nCoV-19 (Vacina de Oxford)</h3> Situação: Vacina aprovada pela Anvisa para uso emergencial no dia 17 de janeiro de 2021.<br> Desenvolvedor: Universidade de Oxford e AstraZeneca<br> País de origem: Reino Unido<br> Feita em parceria com: Fiocruz, Unifesp e Ministério da Saúde.<br> Estados no Brasil em que foi testada: São Paulo, no Centro Paulista de Investigação Clínica (Cepic), e na Bahia, na Instituição Obras Sociais Irmã Dulce<br> Voluntários: 10 mil no Brasil<br> Boas práticas de fabricação: Inspeção feita na Fiocruz entre 7/12 e 4/12. Certificação publicada em 23/12.<br> Eficácia: Eficácia média de 70,4%. No regime de dosagem com duas completas atingiu 62,1% de eficácia.<br>Com dose fracionada e dose completa, atingiu 90% de eficácia.<br> Pedido de uso definitivo em andamento <hr size=5><br> <h3>• Vacina: mRNA BNT162, da Pfizer/BioNTech</h3> Situação: A Pfizer enviou à Anvisa o pedido de registro definitivo da vacina da Pfizer no dia 6 de fevereiro de 2021; 100% da documentação do pedido de registro está sendo analisada.<br> Desenvolvedor: Pfizer e BioNTech<br> País de origem: EUA/<br> Feita em parceria com: Centro Paulista de Investigação Clínica (Cepic), em São Paulo, e Instituição Obras Sociais Irmã Dulce, na Bahia.<br> Estados no Brasil em que foi testada: São Paulo e Bahia.<br> Voluntários: 2.900 no Brasil (São Paulo e Bahia) e mais de 43 mil no mundo.<br> Boas práticas de fabricação: Certificação de duas fábricas publicada em 28/12. Uma fábrica já tinha certificação da Anvisa, mas ainda precisa enviar dados.<br> Eficácia: 90% eficaz.<hr size=5><br> <h3>• Vacina: ChAdOx1 nCoV-19 (Vacina de Oxford)</h3> Submissão Contínua De Dados<hr size=5><br> <h3>• Vacina: Ad26.COV2.S, da Johnson & Johnson</h3> Situação: Até o momento, a Janssen não solicitou uso emergencial da Vacina; a documentação tem sido avaliada como parte do processo de submissão <br> Desenvolvedor: <NAME> Johnson (Janssen-Cilag)<br> País de origem: EUA<br> Feita em parceria com: Grupo Hospitalar Conceição.<br> Estados no Brasil foi testada: São Paulo, Rio Grande do Sul, Rio de Janeiro, Paraná, Minas Gerais, Bahia, Distrito Federal, Mato Grosso, Mato Grosso do Sul, Santa Catarina e Rio Grande do Norte.<br> Boas práticas de fabricação: Solicitada, mas faltam dados da Janssen ainda.<br> Voluntários: 45 mil voluntários no mundo. No mundo, além de Brasil, os participantes são Argentina, Chile, Colômbia, México, Peru, África do Sul e Estados Unidos.<br> Eficácia: Eficácia de 66% na prevenção de doenças moderadas e graves; mais de 85% de eficácia contra doenças graves.<br> Pedido de uso emergencial em andamento<hr size=5><br> <h3>• Vacina: Sputnik V</h3> Situação: A vacina ainda não recebeu a validação da fase 3 dos ensaios clínicos pela Anvisa. <br> Desenvolvedor: Instituto de Pesquisa Gamaleya<br> País de origem: Rússia<br> Feita em parceria com: Tecpar (Paraná) / União Química<br> Estados no Brasil em que será testada: Paraná e Bahia<br> Eficácia: 91,6%, segundo estudo preliminar publicado pela The Lancet<br> Pedido de autorização para Fase 3 de testes no Brasil<hr size=5><br> <h3>• Vacina: Covaxin</h3> Situação: Precisa Farmacêutica apresentou em 5 de fevereiro de 2021 o pedido de autorização de pesquisa clínica de fase 3 para a vacina Covaxin no Brasil.<br> Desenvolvedor: <NAME><br> País de origem: Índia<br> Feita em parceria com: Precisa Farmacêutica<br> Fase 1 de testes em andamento<hr size=5><br> <h3>• Vacina: UB-612</h3> Situação: A Dasa está em fase de ajuste do protocolo, a partir dos resultados da fase I. <br> Desenvolvedor: COVAXX, subsidiária da United Biomedical Inc - pesquisa será conduzida pela Dasa e a Mafra, com recursos doados por MRV, Banco Inter e Localiza<br> Estágio: Fase 2/3<br> País de origem: China<br> Feita em parceria com: Dasa<br> Estados no Brasil com testagem: Não <br> Voluntários: 3 mil<br> Início dos testes: não foi informado.<br> Foi negociada, mas paralisou processo<hr size=5><br> <h3>• Vacina: Instituto Biológico de Wuhan/ Sinopharm</h3> Situação: Segundo o Governo da Bahia, que firmou acordo com a farmacêutica, "por decisão do grupo chinês, eles desistiram de testar no Brasil"<br> Desenvolvedor: Grupo Nacional Biotecnológico da China – CNBG/ "Sinopharm"<br> País de origem: China<br> Feita em parceria com: Bahiafarma (Bahia) e Tecpar (Paraná)<br> Estados no Brasil em que seria testada: Bahia e Paraná.<hr size=5><br> <a href="https://www.cnnbrasil.com.br/saude/2021/02/06/saiba-quais-vacinas-tem-uso-emergencial-aprovado-e-quais-aguardam-aval-da-anvisa">☞ Saiba quais vacinas tem uso emergencial aprovado e quais aguardam aval da anvisa</a><br> <a href="https://www.who.int/pt/news-room/feature-stories/detail/the-race-for-a-covid-19-vaccine-explained">☞ Vacinas explicadas</a> </p> </div> </div> </section> <!--2. Protocolos de combate adotados (Vide OMS)--> <section> <div id="div2"> <div id="div2_1"> <img src="../imagens/protocolo.jpg" /> <p>Protocolos de combate adotados</p> </div> <div id="div2_2"> <div class="texto"> <p> Diante da Emergência em Saúde Pública de Importância Nacional (Espin) por doença respiratória, causada pelo novo coronavírus (2019-nCoV) e considerando-se as recomendações da Organização Mundial de Saúde (OMS), as equipes de vigilância dos estados e municípios, bem como quaisquer serviços de saúde, devem ficar alertas aos casos de pessoas com sintomatologia respiratória e que apresentam histórico de viagens para áreas de transmissão local nos últimos 14 dias. <hr size=5><br> </p> <iframe width="100%" height="450" src="https://www.youtube.com/embed/EJ2BqDEQE34" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><br> <iframe width="100%" height="450" src="https://www.youtube.com/embed/hW52ZvKm9fM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <p> A vigilância epidemiológica de infecção humana pelo 2019-nCoV está sendo construída à medida que a OMS consolida as informações recebidas dos países e novas evidências técnicas e científicas são publicadas. Deste modo, o documento apresentado está sendo estruturado com base nas ações já existentes para notificação, registro, investigação, manejo e adoção de medidas preventivas, em analogia ao conhecimento acumulado sobre o SARS-CoV, MERS-CoV e 2019-nCoV, que nunca ocorreram no Brasil, além de Planos de Vigilância de Síndrome Respiratória Aguda Grave (SRAG) e Síndrome Gripal (SG).<hr size=2> </p> Saiba mais:<br> <a href="https://www.arca.fiocruz.br/handle/icict/40195">☞ Ministério da Saúde lança Protocolo de Tratamento do Covid-19</a><br> <a href="https://www.paho.org/pt/covid19"> ☞Organização Pan - Americana da Saúde</a> <hr size=2> <h2>Como lavar as mãos com água e sabão</h2><br> <iframe width="100%" height="450" src="https://www.youtube.com/embed/tUw6lRQ5cs4" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <h2>Como higienizar as mãos com álcool em gel</h2><br> <iframe width="100%" height="450" src="https://www.youtube.com/embed/ETGIN1mdlmM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <h2>5 medidas para se proteger da COVID-19</h2><br> <iframe width="100%" height="450" src="https://www.youtube.com/embed/tiZCuWDI5No" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <h2>Bebê Tubarão contra o coronavírus</h2><br> <iframe width="100%" height="450" src="https://www.youtube.com/embed/74rCDQOmErA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div> </div> </div> </section> <!--3. Potenciais técnicas de tratamento e/ou novos medicamentos--> <section> <div id="div3"> <div id="div3_1"> <img src="../imagens/tratamentos-covid19-coronavirus.png" /> <p>Potenciais técnicas de tratamento e/ou novos medicamentos</p> </div> <div id="div3_2"> <div class="texto"> <p> <i><NAME>, <NAME>, <NAME>*</i> <br> Desde o início da pandemia, a Organização Mundial da Saúde (OMS), vários países e a comunidade científica mundial têm se esforçado para buscar vacinas ou tratamentos mais eficazes para a Covid-19. Prova disso é o número de ensaios clínicos sobre a doença já em andamento em vários países.<br> Neste artigo, procura-se analisar quais países têm sido mais ativos na pesquisa de novos medicamentos e vacinas, qual o estágio dessas pesquisas e quais as principais substâncias ou tratamentos que vêm sendo testados contra a doença. Não são analisados, contudo, os resultados eventualmente já obtidos por esses ensaios.<hr size=5><br> <iframe width="100%" height="450" src="https://www.youtube.com/embed/IUQRlHRId4Y" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <h3>O processo de desenvolvimento de medicamentos e vacinas</h3> O desenvolvimento de um novo medicamento ou tratamento para qualquer doença envolve um longo processo que começa com a pesquisa básica realizada nos laboratórios das universidades e instituições de pesquisa, onde se conhece mais sobre o funcionamento das doenças e sobre substâncias que podem agir sobre elas. Essa pesquisa pode levar à descoberta, por exemplo, de uma nova molécula com potencial de atuar sobre determinada doença. Depois dessa descoberta, o processo de desenvolvimento de um novo medicamento, normalmente feito pela indústria farmacêutica, pode se estender por vários anos, entre estudos mais aprofundados sobre a molécula, testes pré-clínicos, que são aqueles realizados em tecidos ou em animais, e testes clínicos, que são aqueles realizados em seres humanos.<hr size=5><br> Os testes clínicos são, portanto, a fase final desse processo, e são necessários porque nem sempre uma abordagem que funciona bem em tecidos ou em animais, também funciona em pessoas. São estudos que buscam verificar a existência de efeitos colaterais não desejados e avaliar se um medicamento ou tratamento é eficaz em relação a tratamentos alternativos.<hr size=5><br> Esses testes seguem protocolos muito estritos de segurança e de ética, afinal, está se testando o efeito de uma substância desconhecida sobre o organismo, em pacientes reais. Geralmente, antes de ser realizado, esse tipo de teste precisa ser aprovado por comitês de ética[1] em pesquisa e pela agência reguladora em saúde. No caso brasileiro, a Agência Nacional de Vigilância Sanitária (ANVISA) é a responsável pela aprovação, que é pré-requisito obrigatório para o início de testes clínicos em humanos.<hr size=5><br> Além disso, todos os testes clínicos realizados em pacientes precisam ser registrados em alguma plataforma pública, a fim de garantir a transparência necessária para que os órgãos reguladores possam, no momento oportuno, analisar seus resultados e conceder (ou não) o registro do medicamento. Vários países, inclusive o Brasil, possuem plataformas de registros de testes clínicos integradas ao International Clinical Trials Registry Platform (ICTRP), da Organização Mundial de Saúde[2].<hr size=5><br> No Brasil, a aprovação de um determinado ensaio clínico pela Anvisa depende do registro nessa plataforma[3], que será a fonte de informações utilizadas no restante deste texto. Até 27 de maio, estavam registrados nessa plataforma 2.936 testes clínicos sobre a Covid-19. Esses ensaios podem ser apenas observacionais (também chamados epidemiológicos), nos quais os pesquisadores apenas observam como diversos fatores agem sobre os pacientes ou sobre a evolução da doença. Os ensaios que nos interessam aqui são os chamados ensaios intervencionais ou experimentais[4], nos quais os pesquisadores selecionam um grupo de pacientes para os quais será administrada uma nova droga (ou tratamento) e comparam sua evolução com a de pacientes de um grupo de controle, que recebem placebo ou o tratamento convencional[5]. São principalmente esses os ensaios utilizados para testar um novo medicamento ou um novo protocolo de tratamento[6]. Na plataforma da OMS, eles representam mais da metade dos ensaios registrados: 1.758 em 27 de maio.<hr size=5><br> <p><a href="https://www.ipea.gov.br/cts/pt/central-de-conteudo/artigos/artigos/198-quais-sao-as-pesquisas-em-andamento-para-prevencao-e-tratamento-da-covid-20">☞ Quais são as pesquisas em andamento para prevenção e tratamento da covid 19</a></p> </p> </div> </div> </div> </section> </main> <!--6. Galeria de fotos que contenha fotos referente a campanha de vacinação .--> <section> <div id="div4"> <div id="div4_1"> <img src="../imagens/vacinacao-covid19.jpeg" /> <p>Campanha de vacinação</p> </div> <div id="div4_2"> <p> O Governador <NAME> lançou nesta quarta-feira (31) a campanha “Vacina Contra a Fome”. Desenvolvida pela Secretaria de Desenvolvimento Social com participação da Secretaria da Comunicação, a ação convida cada pessoa apta a se vacinar contra a COVID-19 a doar um quilo de alimento não perecível nos municípios participantes. </p> <iframe width="100%" height="450" src="https://www.youtube.com/embed/UDtwrZTV6Js" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <div> <div><img src="../imagens/vac1.jpg" alt="Idosos se vacinando"></div> <div><img src="../imagens/vac2.jpg" alt="Homem se vacinando"></div> <div><img src="../imagens/vac3.jpg" alt="Idosa se vacinando"></div> <div><img src="../imagens/vac4.jpeg" alt="Indígena se vacinando"></div> <div><img src="../imagens/vac5.jpg" alt="Mulher com cartão de vacinação"></div> <div><img src="../imagens/vac6.jpeg" alt="Primeira mulher a ser vacinada no Brasil"></div> <div><img src="../imagens/vac7.jpg" alt="Idosa com cartão de vacinação"></div> <div><img src="../imagens/vac8.jpg" alt="Idosa com cartão de vacinação"></div> <div><img src="../imagens/vac9.jpg" alt="Fila de vacinação"></div> <div><img src="../imagens/vac10.jpeg" alt="Profissionais da saúde vacinados"></div> <div><img src="../imagens/vac11.jpg" alt="Vacinação no Hospital das Clínicas"></div> <div><img src="../imagens/vac12.jpg" alt="Dória com a vacina"></div> <div><img src="../imagens/vac13.jpg" alt="Instituto Butantã e vacina"></div> <div><img src="../imagens/vac14.png" alt="Campanha de vacinação"></div> <div><img src="../imagens/vac15.jpg" alt="Campanha de vacinação"></div> <div><img src="../imagens/vac16.jpg" alt="ButanVac"></div> </div> </div> </div> </section> <!--7. Uma pagina que indique o numero de ocupação de leitos UTI e enfermaria e informe a fase de alerta a contaminação bem como indique em uma tabela quais setores econômicos podem funcionar ou não , a entrada de dados de ocupação deve ser feito com 2 input e automaticamente deve mudar o padrão de cor(seguindo a fase) de algum elemento da pagina (tabela , plano de fundo ,ETC). Devido a cada estado estimar um padrão iremos nos basear pelo do estado de SP:https://www.saopaulo.sp.gov.br/wp-content/uploads/2020/05/plano-sp-fases-e-criterios.pdf <section> <div id="div5"> <div id="div5_1"> <img src="../imagens/taxa_contaminação.png" /> <a href="#"><p>Ocupação de leitos UTI e enfermaria</p></a> </div> <div id="div5_2"> <p></p> </div> </div> </section>--> </section> <!-- --------------------------------> <!-- --------------------------------> <!-- Rodapé inicia aqui--> <footer id="rodape"> <div id="avisoDePrivacidade"> <p> Aviso Legal de Privacidade</p> </div> <div id="RedeSocial"> <a href="https://www.facebook.com/governosp/"><img src="../imagens/facebook.png" alt="1facebook" style="width: 10%"></a> <a href="https://www.youtube.com/channel/UCc7rfCbP90qiw3BgT-Iqc7g"><img src="../imagens/youtube(1).png" alt="Youtube" style="width: 10%"></a> <a href="https://twitter.com/governosp/"><img src="../imagens/twitter.png" alt="Twitter" style="width: 10%"></a> <a href="https://www.instagram.com/governosp/"><img src="../imagens/instagram.png" alt="Instagram" style="width: 10%"></a> <a href="https://t.me/governosp"><img src="../imagens/telegram.png" alt="Telegram" style="width: 10%"></a> </div> </div> <div id="copyright"> &copy; 2021 Estado de SP </div> </footer> </body> </html> <file_sep>/* --------------------------------HEADER----------------------------------------- */ //botao de acessibilidade function aumentar(){ $(document).ready( function(){ var corpo = $("body").css("font-size", "30px"); } ) } function diminuir(){ $(document).ready( function(){ var corpo = $("body").css("font-size","20px"); } ) } //funcao data e hora: var arrayDia = new Array(7); arrayDia[0] = "Domingo"; arrayDia[1] = "Segunda"; arrayDia[2] = "Terça"; arrayDia[3] = "Quarta"; arrayDia[4] = "Quinta"; arrayDia[5] = "Sexta"; arrayDia[6] = "Sábado"; var arrayMes = new Array(12); arrayMes[0] = "Janeiro"; arrayMes[1] = "Fevereiro"; arrayMes[2] = "Março"; arrayMes[3] = "Abril"; arrayMes[4] = "Maio"; arrayMes[5] = "Junho"; arrayMes[6] = "Julho"; arrayMes[7] = "Agosto"; arrayMes[8] = "Setembro"; arrayMes[9] = "Outubro"; arrayMes[10] = "Novembro"; arrayMes[11] = "Dezembro"; function mostrarDataHora(hora, diaSemana, dia, mes, ano){ retorno = "" + hora + "" retorno += "" + diaSemana + ", " + dia + " de " + mes + " de " + ano; document.getElementById("datahora").innerHTML = retorno; } function atualizarDataHora(){ var dataAtual = new Date(); var dia = dataAtual.getDate(); var diaSemana = getDiaExtenso(dataAtual.getDay()); var mes = getMesExtenso(dataAtual.getMonth()); var ano = dataAtual.getFullYear(); var hora = dataAtual.getHours(); var minuto = dataAtual.getMinutes(); var segundo = dataAtual.getSeconds(); var horaImprimivel = hora + ":" + minuto + ":" + segundo; mostrarDataHora(horaImprimivel+ " ", diaSemana, dia, mes, ano); setTimeout("atualizarDataHora()", 1000); } function getMesExtenso(mes){ return this.arrayMes[mes]; } function getDiaExtenso(dia){ return this.arrayDia[dia]; } //botao de menu $(document).ready( function(){ $("#menu").hide() } ) $(document).ready( function(){ //EVENTO CLICK USADO AQUI $("#botaoMenu").click( function(){ $("#menu").slideToggle(1000) } ) } ) /* ------------------------------------------MAIN---------------------------------------- */ $(document).ready(function(){ // Taxa de Ocupação de Leitos de UTI $("#ocupa-uti").blur(function(){ var leitos = Number(document.getElementById("ocupa-uti").value); console.log(leitos); if (leitos > 80) { $("#containerGeral").css("display", "none"); $("#containerLaran").css("display", "none"); $("#containerAmare").css("display", "none"); $("#containerVerd").css("display", "none"); $("#containerVerm").css("display", "block"); } else if (leitos > 70 && leitos <= 80) { $("#containerGeral").css("display", "none"); $("#containerVerm").css("display", "none"); $("#containerLaran").css("display", "block"); $("#containerAmare").css("display", "none"); $("#containerVerd").css("display", "none"); } else if (leitos <= 70 && leitos > 60) { $("#containerGeral").css("display", "none"); $("#containerVerm").css("display", "none"); $("#containerLaran").css("display", "none"); $("#containerAmare").css("display", "block"); $("#containerVerd").css("display", "none"); } else if (leitos <= 60) { $("#containerGeral").css("display", "none"); $("#containerVerm").css("display", "none"); $("#containerLaran").css("display", "none"); $("#containerAmare").css("display", "none"); $("#containerVerd").css("display", "block"); } }) // Leitos de UTI por habitantes: $("#leitos-enferm").blur(function(){ var leitos = Number(document.getElementById("leitos-enferm").value); console.log(leitos) if (leitos < 3) { $("#containerGeral").css("display", "none"); $("#containerVerm").css("display", "block"); $("#containerLaran").css("display", "none"); $("#containerAmare").css("display", "none"); $("#containerVerd").css("display", "none"); } else if (leitos > 3 && leitos < 5) { $("#containerGeral").css("display", "none"); $("#containerVerm").css("display", "none"); $("#containerLaran").css("display", "block"); $("#containerAmare").css("display", "none"); $("#containerVerd").css("display", "none"); } else if (leitos >= 5) { $("#containerGeral").css("display", "none"); $("#containerVerm").css("display", "none"); $("#containerLaran").css("display", "none"); $("#containerAmare").css("display", "none"); $("#containerVerd").css("display", "block"); } }) })
1f1b26aa5904dd7cfae639b43a94dbf738a8a9eb
[ "Markdown", "JavaScript", "HTML" ]
10
HTML
tbmota/SoulCode_bootcamp
eaeb5d89467069c4d1a2fe80a0a74e0e6534db72
e9ba27a00ef6047174f9cb663a27b7a60cd8bc16
refs/heads/master
<repo_name>YoussefKhaledd/NNJSS<file_sep>/src/component/AC/AC.component.js import React from 'react' import NavigationBar from './ACNavigationBar' export default function HOD() { if(localStorage.getItem('auth-token') == null){ window.location.href = "/LogIn"; } else{ return ( <div> <NavigationBar /> </div> ) } } <file_sep>/src/component/HR/UpdateSalary.js import { Component,useState } from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle, MDBBtnGroup } from "mdbreact"; import 'mdbreact/dist/css/mdb.css'; import { useHistory } from 'react-router-dom'; import './styles.css' import axios from 'axios' import '../../App.css' export default function UpdateSalary() { const [staffId, setStaffId] = useState('') const [salary, setSalary] = useState('') let history = useHistory(); return ( <div> <div className="jumbotron" style={{paddingTop:20,backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:30,textAlign:"left",padding:0}}><MDBIcon icon="file-invoice-dollar" /> Update Salary</h1> </div> <MDBBtn className="homeBtn" size="sm" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" size="sm" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </div> <div class="container"> <p className="text-salary">Select the employee</p> <div className="container-salary"> <MDBInput label="Staff ID" onChange={event=>setStaffId(event.target.value)}/></div> <div> <p className="text-salary">Enter the new salary</p> <div className="container-salary"> <MDBInput label="Salary" onChange={event=>setSalary(event.target.value)}/></div> </div> <div className="container-update"> <MDBBtn onClick={()=>updateSalary(staffId,salary)} >Update</MDBBtn> </div> </div> </div> ) } const updateSalary = async (id,sal) => { axios.post('http://localhost:5000/updateSalary', { staffId:id, salary:sal }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { console.log(response) }).catch(error => { console.log(error.response) })} <file_sep>/src/MainHomePage.component.js import React,{useState} from 'react' import axios from 'axios' export default function MainHomePage() { const [types,setTypes] = useState([]) let HDbool=false; let CIbool=false; let CCbool=false; let TAbool=false; if(types.includes("hd")){HDbool=true;} if((types.includes("ci"))){CIbool=true;} if(types.includes("cc")){CCbool=true;} if(types.includes("ta")){TAbool=true;} if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ axios.get('http://localhost:5000/getType', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setTypes(res.data); console.log(types) }) .catch(error =>{ console.log(error); })} return ( <div> <h1>ANA HENA</h1> <button disabled={!HDbool}>HD</button> <button disabled={!CIbool}>CI</button> <button disabled={!CCbool}>CC</button> <button disabled={!TAbool}>TA</button> </div> ) } <file_sep>/src/component/LogIn.component.js import React, { useState } from "react"; import { BrowserRouter as Router} from "react-router-dom"; import { Container } from 'react-bootstrap'; import image from './logo1.png' import axios from 'axios'; import '../App.css' export default function LogIn(props){ const [email,setEmail] = useState(); const [password,setPassword] = useState(); const handleSubmit = async e=>{ e.preventDefault(); axios.post('http://localhost:5000/login',{ email: email, password: <PASSWORD> }) .then(res =>{ // console.log(res) localStorage.setItem('auth-token', res.data.token) if((String)(res.data.type) == "hd"){ window.location.href = "/HODhomePage"; } else if(res.data.type == "ta"){ window.location.href = "/TAHomePage"; } else if(res.data.type == "ci"){ window.location.href = "/CIHomePage"; } else if(res.data.type == "cc"){ window.location.href = "/CCHomePage"; } else { console.log(res.data.type) window.location.href = "/HRHomePage"; } }) .catch(error =>{ console.log(error) }) } return ( <Router> <Container className="LOGIN"> <form onSubmit={handleSubmit}> <img src={image} className="center" alt="Logo" className='LOGIN' /> <div className="form-group"> <label>Email</label> <input type="email" className="form-control" placeholder="Enter email" onChange={e => setEmail(e.target.value)} /> </div> <div className="form-group"> <label>Password</label> <input type="<PASSWORD>" className="form-control" placeholder="Enter password" onChange={e => setPassword(e.target.value)}/> </div> <div className="form-group"> <div className="custom-control custom-checkbox"> <input type="checkbox" className="custom-control-input" id="customCheck1" /> <label className="custom-control-label" htmlFor="customCheck1">Remember me</label> </div> </div> <button type="submit" className="btn btn-dark btn-lg btn-block">Sign in</button> <p className="forgot-password text-right"> Forgot <a href="#">password?</a> </p> </form> </Container> </Router> ); }<file_sep>/src/component/HR/CoursesOptions.js import { Component,useState } from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle, MDBBtnGroup } from "mdbreact"; import 'mdbreact/dist/css/mdb.css'; import { useHistory } from 'react-router-dom'; import './styles.css' import axios from 'axios' export default function CoursesOptions() { const [state, setState] = useState('collapse') const [state1, setState1] = useState('collapse') const [state2, setState2] = useState('collapse') const [cName, setCName] = useState('') const [depName, setDepName] = useState('') const [cId, setCId] = useState('') const [totalSlots, setTotalSlots] = useState('') const [newCId, setNewCId] = useState('') let history = useHistory(); return ( <div> <div class="jumbotron jumbotron-fluid" style={{backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:50,textAlign:"left",padding:20}}><MDBIcon icon="book" /> Courses Options</h1> </div> <MDBBtn className="homeBtn" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </div> <div class="row"> <div class="container"> <div class="card" style={{backgroundColor:"slategrey"}}> <div class="card-header" id="headingOne" > <h2 class="mb-0"> <MDBBtn onClick={()=>setState("collapse show")} color="blue" type="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseOne" > <a className="addStaffText">Add Course</a></MDBBtn> <div class={state}><MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setState('collapse')}} style={{marginLeft:1000,marginTop:-120}} ><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> </h2> </div> <div id="collapseOne" class={state} aria-labelledby="headingOne" > <div class="card-body"> <div> <p className="textDep">Enter the Course Name: <input onChange={event=>setCName(event.target.value)}></input></p></div> <div><p className="textDep"> Enter the course Id: <input onChange={event=>setCId(event.target.value)} ></input></p></div> <div><p className="textDep"> Enter the total slots of the course : <input onChange={event=>setTotalSlots(event.target.value)} ></input></p></div> <div><p className="textDep"> Enter the department Name of this course : <input onChange={event=>setDepName(event.target.value)} ></input></p></div> <div><MDBBtn gradient ="blue" className="btnSubmit" onClick={()=>addCourse(cId,cName,totalSlots,depName)}>Add</MDBBtn></div> </div> </div> </div> </div> <div class="container" > <div class="card" style={{backgroundColor:"slategrey"}}> <div class="card-header" id="headingOne"> <h2 class="mb-0"> <MDBBtn color="blue" type="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseOne" onClick={()=>setState1('collapse show')}> <a className="addStaffText">Update Course</a> </MDBBtn> <div class={state1}><MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setState1('collapse')}} style={{marginLeft:1000,marginTop:-120}} ><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> </h2> </div> <div id="collapseOne" class={state1} aria-labelledby="headingOne"> <div class="card-body"> <div> <p className="textDep">Enter the course Name: <input onChange={event=>setCName(event.target.value)}></input></p> </div> <div> <p className="textDep">Enter the Course Id: <input onChange={event=>setCId(event.target.value)}></input></p> </div> <div> <p className="textDep">Enter the new Course Id: <input onChange={event=>setNewCId(event.target.value)}></input></p> </div> <div><p className="textDep"> Enter the total slots of this course: <input onChange={event=>setTotalSlots(event.target.value)} ></input></p></div> <div><MDBBtn gradient ="blue" className="btnSubmit" onClick={()=>updateCourse(cId,cName,newCId,totalSlots)}>Update</MDBBtn></div> </div> </div> </div> </div> <div class="container"> <div class="card" style={{backgroundColor:"slategrey"}}> <div class="card-header" id="headingOne"> <h2 class="mb-0"> <MDBBtn color="blue" type="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseOne" onClick={()=>setState2('collapse show')}> <a className="addStaffText">Delete Course</a></MDBBtn> <div class={state2}><MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setState2('collapse')}} style={{marginLeft:1000,marginTop:-100}} ><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> </h2> </div> <div id="collapseOne" class={state2} aria-labelledby="headingOne" data-parent="#accordionExample"> <div class="card-body"> <div> <p className="textDep">Name of the department of this course: <input onChange={event=>setDepName(event.target.value)}></input></p> </div> <div><p className="textDep"> Enter the course Id: <input onChange={event=>setCId(event.target.value)}></input></p></div> <div><MDBBtn gradient ="blue" className="" onClick={()=>deleteCourse(depName,cId)}>Delete</MDBBtn></div> </div> </div> </div> </div> </div> </div> ) } const addCourse = async (id,cn,slots,dep) => { axios.post('http://localhost:5000/addCourse', { courseId :id, courseName:cn, totalSlots:slots, departmentName:dep }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} const updateCourse = async (id,cn,nid,slots) => { axios.post('http://localhost:5000/updateCourse', { courseId :id, courseName:cn, newCourseId:nid, totalSlots:slots, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} const deleteCourse = async(name,id)=>{ axios.post('http://localhost:5000/deleteCourse', { departmentName :name, courseId:id }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} <file_sep>/src/component/AC/Schedule.component.js import React,{useState} from 'react' import NavigationBar from './ACNavigationBar' import axios from 'axios' function viewSlots(list){ return list.map((elem,index) =>{ //mehtaga tetzabat lw fe actually slot var day= "Saturday"; var first=elem.[0]; var second=elem.[1]; var third=elem.[2]; var fourth=elem.[3]; var fifth=elem.[4]; if(index==1) day= "Sunday"; if(index==2) day= "Monday"; if(index==3) day= "Tuesday"; if(index==4) day= "Wednesday"; if(index==5) day= "Thursday"; if(index==6) day= "Friday"; if(elem.[0]==null) first="FREE" if(elem.[1]==null) second="FREE" if(elem.[2]==null) third="FREE" if(elem.[3]==null) fourth="FREE" if(elem.[4]==null) fifth="FREE" return( <tr> <td>{day}</td> <td>{first}</td> <td>{second}</td> <td>{third}</td> <td>{fourth}</td> <td>{fifth}</td> </tr> ) }) } export default function ViewSchedule() { const [state,setState] = useState([]) if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ axios.get('http://localhost:5000/viewSchedule', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setState(res.data); }) .catch(error =>{ console.log(error); }) return ( <div> <NavigationBar /> <table className="table table-sm table-dark"> <thead className = "thead-light"> <tr> <th>Slot</th> <th>First</th> <th>Second</th> <th>Third</th> <th>Fourth</th> <th>Fifth</th> </tr> </thead> <tbody> {viewSlots(state)} </tbody> </table> </div> ) } }<file_sep>/src/component/HR/StaffAdjustment.js import React, { useState, useEffect } from 'react'; import './styles.css'; import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle, MDBBtnGroup } from "mdbreact"; import axios from'axios'; import { useHistory } from 'react-router-dom'; import '../../App.css' export default function StaffAdjustment() { let history = useHistory(); const [state, setstate] = useState('collapse');//for the add const [state1, setstate1] = useState('collapse');//for the update const [state2, setstate2] = useState('collapse');//for the delete const [staffType, setStaffType] = useState(''); const [staffName, setStaffName] = useState(''); const [staffAge, setStaffAge] = useState(''); const [email, setEmail] = useState(''); const [dayOff, setDayOff] = useState(''); const [gender, setGender] = useState(''); const [faculty, setFaculty] = useState(''); const [department, setDepartment] = useState(''); const [location, setLocation] = useState(''); const [salary, setSalary] = useState(''); const [staffId, setStaffId] = useState(''); return ( <div class > <div class="jumbotron jumbotron-fluid" style={{backgroundColor:'#3F729B',paddingLeft:20}}> <h1 class="display-5" class="text-left" style={{fontSize:60,fontWeight:800,fontFamily:'Microsoft JhengHei',paddingTop:20}}><MDBIcon icon="user" /> Staff Adjustments</h1> <div className="homeBtn"> <MDBBtn className="btn-circle" size="md" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="2x"/></MDBBtn> <MDBBtn className="btn-circle" size="md" color="blue-grey lighten-4" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="2x" /></MDBBtn> </div> <hr></hr> </div> <div class="container"> <div class="row"> <div class="accordion col-md-4"> <div class="card" style={{backgroundColor:"lightsteelblue"}}> <div class="card-header" id="headingOne"> <div class={state}> <MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setstate('collapse')}} style={{marginLeft:290,marginTop:0}}><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> <button class="btn btn-link btn " type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne" onClick={()=>{setstate('collapse show')}} > <text className="addStaffText">Add Staff</text> </button> </div> <div id="collapseOne" class={state} aria-labelledby="headingOne"> <div class=""> <MDBInput label="Staff Name" onChange={event=>setStaffName(event.target.value)}/> <MDBInput type="number" min="1" label="Staff Age" onChange={event=>setStaffAge(event.target.value)}/> <MDBInput label="E-mail" onChange={event=>setEmail(event.target.value)}/> <MDBInput label="Faculty" onChange={event=>setFaculty(event.target.value)}/> <MDBInput label="Department" onChange={event=>setDepartment(event.target.value)}/> <MDBInput label="Location Name" onChange={event=>setLocation(event.target.value)}/> <MDBInput type ="number" min="1" label="Salary" onChange={event=>setSalary(event.target.value)}/> <div> <text style={{marginLeft:-40}}>Select Staff Type :</text> <select style={{marginLeft:10}} onChange={(e)=>{ const type=e.target.value setStaffType(type) } }> <option value='hr'>Human Resources</option> <option value='hd'>Head Of Department</option> <option value='ta'>Teaching Assistant</option> <option value='ci'>Course Instructor</option> <option value='cc'>Course Coordinator</option> </select> </div> <div style={{paddingTop:10,marginLeft:-160}}> <text>Select Gender:</text> <select style={{marginLeft:10}} onChange={(e)=>{ const gender1=e.target.value setGender(gender1) } }> <option value='male'>Male</option> <option value='female'>Female</option> </select> </div> <div style={{paddingTop:10,marginLeft:-175}}> <text >Day Off:</text> <select style={{marginLeft:10}} onChange={(e)=>{ const type=e.target.value setDayOff(type) } }> <option value='Saturday'>Saturday</option> <option value='Sunday'>Sunday</option> <option value='Monday'>Monday</option> <option value='Tuesday'>Tuesday</option> <option value='Wednesday'>Wednesday</option> <option value='Thursday'>Thursday</option> </select> </div> </div> <div> <MDBBtn color="mdb-color lighten-2" size="xl" className="btn-circle" onClick={()=>addNewStaff(staffName,staffAge,gender,staffType,email,salary,faculty,department,dayOff,location)}>Add Staff</MDBBtn> </div> </div> </div> </div> {/* --------------------------- */} <div class="accordion col-md-4"> <div class="card" style={{backgroundColor:"lightsteelblue"}}> <div class="card-header" id="headingOne"> <div class={state1}> <MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setstate1('collapse')}} style={{marginLeft:290,marginTop:0}}><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> <button class="btn btn-link btn " type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne" onClick={()=>{setstate1('collapse show')}} > <text className="addStaffText">Update Staff</text> </button> </div> <div id="collapseOne" class={state1} aria-labelledby="headingOne"> <div class=""> <MDBInput label="Staff ID" onChange={event=>setStaffId(event.target.value)}/> <MDBInput label="Staff Name" onChange={event=>setStaffName(event.target.value)}/> <MDBInput type="number" min="1" label="Staff Age" onChange={event=>setStaffAge(event.target.value)}/> <MDBInput label="E-mail" onChange={event=>setEmail(event.target.value)}/> <MDBInput label="Faculty" onChange={event=>setFaculty(event.target.value)}/> <MDBInput label="Department" onChange={event=>setDepartment(event.target.value)}/> <MDBInput label="Location Name" onChange={event=>setLocation(event.target.value)}/> <MDBInput type ="number" min="1" label="Salary" onChange={event=>setSalary(event.target.value)}/> <div> <text style={{marginLeft:-40}}>Select Staff Type :</text> <select style={{marginLeft:10}} onChange={(e)=>{ const type=e.target.value setStaffType(type) } }> <option value='hr'>Human Resources</option> <option value='hd'>Head Of Department</option> <option value='ta'>Teaching Assistant</option> <option value='ci'>Course Instructor</option> </select> </div> <div style={{paddingTop:10,marginLeft:-160}}> <text>Select Gender:</text> <select style={{marginLeft:10}} onChange={(e)=>{ const gender=e.target.value setGender(gender) } }> <option value='male'>Male</option> <option value='female'>Female</option> </select> </div> <div style={{paddingTop:10,marginLeft:-175}}> <text >Day Off:</text> <select style={{marginLeft:10}} onChange={(e)=>{ const day=e.target.value setDayOff(day) } }> <option value='Saturday'>Saturday</option> <option value='Sunday'>Sunday</option> <option value='Monday'>Monday</option> <option value='Tuesday'>Tuesday</option> <option value='Wednesday'>Wednesday</option> <option value='Thursday'>Thursday</option> </select> </div> </div> <div> <MDBBtn color="mdb-color lighten" className="btn-circle" size="xl" onClick={()=>updateStaff(staffId,staffName,staffAge,gender,staffType,location,dayOff)}> Update staff</MDBBtn> </div> </div> </div> </div> {/* ----------------------------- */} <div class="accordion col-md-3"> <div class="card" style={{backgroundColor:"lightsteelblue"}}> <div class="card-header" id="headingOne"> <div class={state2}> <MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setstate2('collapse')}} style={{marginLeft:190,marginTop:0}}><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> <button class="btn btn-link btn " type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne" onClick={()=>{setstate2('collapse show')}} > <text className="addStaffText">Delete Staff</text> </button> </div> <div id="collapseOne" class={state2} aria-labelledby="headingOne"> <MDBInput label="Staff ID" onChange={event=>setStaffId(event.target.value)}/> <div> </div> <div> <MDBBtn className="btn-circle" size="xl" color="mdb-color lighten" onClick={()=>deleteStaff(staffId)}> Delete staff</MDBBtn> </div> </div> </div> </div> </div> </div> </div> ) } const addNewStaff = async (name,age,gender,type,mail,sal,fac,dep,dayoff,loc) => { axios.post('http://localhost:5000/addStaff', { "staffName":name, "staffAge":age, "staffGender":gender, "staffType":type, "email": mail, "salary":sal, "faculty":fac, "department":dep, "dayOff":dayoff, "locationName":loc }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} const updateStaff = async (id,name,age,gen,type,mail,sal,fac,dep,dayoff,loc) => { axios.post('http://localhost:5000/updateStaff', { staffId:id, staffName :name, staffAge:age, staffGender:gen, staffType:type, email: mail, salary:sal, faculty:fac, department:dep, dayOff:dayoff, locationName:loc }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} const deleteStaff = async (id) => { axios.post('http://localhost:5000/deleteStaff', { staffId:id }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} <file_sep>/src/component/AC/ManageSlots.js import React,{useState,useEffect} from 'react' import NavigationBar from './ACNavigationBar' import axios from 'axios' import {Button,Row,Col,Dropdown,FormControl,Tabs,Tab ,Navbar} from 'react-bootstrap'; const addSlot = async (courseId,day,timing,slotlocation) => { if(day=="Choose Day") return alert("please choose a day") if(timing=="Choose Slot") return alert("please choose a slot") axios.post('http://localhost:5000/addcourseslot', { courseId:courseId, day:day, timing:timing, location:slotlocation, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} const deleteSlot = async (courseId,day,timing,slotlocation) => { if(day=="Choose Day") return alert("please choose a day") if(timing=="Choose Slot") return alert("please choose a slot") axios.post('http://localhost:5000/deletecourseslot', { courseId:courseId, day:day, timing:timing, location:slotlocation, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} export default function ManageSlots() { const [location,setLocation] = useState("") const [course,setCourse] = useState("Choose Course") const [courses,setCourses] = useState([]) const [day,setDay] = useState("Choose Day"); const [slot,setSlot] = useState("Choose Slot"); const [key, setKey] = useState('home'); useEffect(async ()=>{ axios.get('http://localhost:5000/CCcourses', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setCourses(res.data); }) .catch(error =>{ console.log(error); }) } ) if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ return ( <div> <NavigationBar /> <div> <Navbar.Brand>Requests you sent </Navbar.Brand> <Navbar.Brand>el course should be a drop down list of courses el user course coordinator bet3ha </Navbar.Brand> </div> <Tabs id="controlled-tab-example" activeKey={key} onSelect={(k) => setKey(k)} > <Tab eventKey="Add" title="Add" > <Row> <Col><Navbar.Brand>Course ID: </Navbar.Brand></Col> <Col><Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {course} </Dropdown.Toggle> <Dropdown.Menu> {courses.map((elem) =>{ return (<Dropdown.Item onClick={e => setCourse(elem)}>{elem}</Dropdown.Item>)}) } </Dropdown.Menu> </Dropdown> </Col> </Row> <Row> <Col><Navbar.Brand>Location: </Navbar.Brand></Col> <Col><FormControl placeholder="Eg: c7.202" aria-label="Username" aria-describedby="basic-addon1" onChange={e => setLocation(e.target.value)} /></Col> </Row> <Row> <Col><Navbar.Brand>Day: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {day} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setDay("Saturday")}>Saturday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Sunday")}>Sunday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Monday")}>Monday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Tuesday")}>Tuesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Wednesday")}>Wednesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Thursday")}>Thursday</Dropdown.Item> </Dropdown.Menu> </Dropdown> </Col> </Row> <Row> <Col><Navbar.Brand>Slot timing: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {slot} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setSlot("first")}>First</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("second")}>Second</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("third")}>Third</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("fourth")}>Fourth</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("fifth")}>Fifth</Dropdown.Item> </Dropdown.Menu> </Dropdown> </Col> </Row> <Button variant="dark" onClick={()=>addSlot(course,day,slot,location)} >Add Slot</Button> </Tab> <Tab eventKey="Update" title="Update" > <Row> <Col><Navbar.Brand>Course ID: </Navbar.Brand></Col> <Col><FormControl placeholder="Eg: CSEN401" aria-label="Username" aria-describedby="basic-addon1" onChange={e => setCourse(e.target.value)} /></Col> </Row> <Row> <Col><Navbar.Brand>Location: </Navbar.Brand></Col> <Col><FormControl placeholder="Eg: c7.202" aria-label="Username" aria-describedby="basic-addon1" onChange={e => setLocation(e.target.value)} /></Col> </Row> <Row> <Col><Navbar.Brand>Day: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {day} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setDay("Saturday")}>Saturday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Sunday")}>Sunday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Monday")}>Monday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Tuesday")}>Tuesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Wednesday")}>Wednesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Thursday")}>Thursday</Dropdown.Item> </Dropdown.Menu> </Dropdown> </Col> </Row> <Row> <Col><Navbar.Brand>Slot timing: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {slot} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setSlot("first")}>First</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("second")}>Second</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("third")}>Third</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("fourth")}>Fourth</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("fifth")}>Fifth</Dropdown.Item> </Dropdown.Menu> </Dropdown> </Col> </Row> </Tab> <Tab eventKey="Delete" title="Delete" > <Row> <Col><Navbar.Brand>Course ID: </Navbar.Brand></Col> <Col><FormControl placeholder="Eg: CSEN401" aria-label="Username" aria-describedby="basic-addon1" onChange={e => setCourse(e.target.value)} /></Col> </Row> <Row> <Col><Navbar.Brand>Location: </Navbar.Brand></Col> <Col><FormControl placeholder="Eg: c7.202" aria-label="Username" aria-describedby="basic-addon1" onChange={e => setLocation(e.target.value)} /></Col> </Row> <Row> <Col><Navbar.Brand>Day: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {day} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setDay("Saturday")}>Saturday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Sunday")}>Sunday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Monday")}>Monday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Tuesday")}>Tuesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Wednesday")}>Wednesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Thursday")}>Thursday</Dropdown.Item> </Dropdown.Menu> </Dropdown> </Col> </Row> <Row> <Col><Navbar.Brand>Slot timing: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {slot} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setSlot("first")}>First</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("second")}>Second</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("third")}>Third</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("fourth")}>Fourth</Dropdown.Item> <Dropdown.Item onClick={e => setSlot("fifth")}>Fifth</Dropdown.Item> </Dropdown.Menu> </Dropdown> </Col> </Row> <Button variant="dark" onClick={()=>deleteSlot(course,day,slot,location)} >Delete Slot</Button> </Tab> </Tabs> </div> ) } } <file_sep>/src/component/HD/AssignCI.component.js import Dropdown from 'react-bootstrap/Dropdown'; import React,{useState} from 'react' import NavigationBar from './HODNavigationBar' import axios from 'axios' import { Container,Modal,Button,Row } from 'react-bootstrap' import SweetAlert from 'react-bootstrap-sweetalert'; import './hdComponent.css' export default function AssignCI() { const [state,setState] = useState("") const [ci,setCi]= useState("") const [id,setId]=useState("") const [courses,setCourses]=useState([]) const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true) ; let selectedC=" Select a course" if(id!=""){ selectedC=id } const getAllCourses=(list)=>{ if(list!==undefined && list.length>0&&list!==null){ return list.map(elem =>{ return( <Dropdown.Item onSelect= {e =>setId(elem)}>{elem}</Dropdown.Item> ) }) } else{ return ""; }} axios.get('http://localhost:5000/HDCourses', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setCourses(res.data); }) .catch(error =>{ console.log(error); }) const handleSubmit = async e=>{ e.preventDefault(); axios.post('http://localhost:5000/assignCI',{staffId:ci,courseId:id}, { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setState(res.data); handleShow(); }) .catch(error =>{ console.log(error); }) } return ( <div> <NavigationBar /> <Container className="hdComp"> <h3 className="TextLeft"> Assigning Course Instructor </h3> <h5 className="TextLeftSub">Course ID :<span style={{display:'inline-block'}}> <Dropdown> <Dropdown.Toggle variant="primary" id="dropdown-basic"> {selectedC} </Dropdown.Toggle> <Dropdown.Menu> {getAllCourses(courses)} </Dropdown.Menu> </Dropdown></span></h5> <h5 className="TextLeftSub"> Course Instructor ID : <span style={{display:'inline-block'}}><input onChange = {e =>setCi(e.target.value)}></input></span> <span> <Button className='buttonAssign' onClick={handleSubmit}> Add Course Instructor </Button></span></h5> <Modal show={show} onHide={handleClose} style={{marginTop:'15%'}}> <Modal.Header closeButton> <Modal.Title style={{textAlign:'center'}}>{state}</Modal.Title> </Modal.Header> </Modal> </Container> </div> ) } <file_sep>/src/component/HR/HRHomePage.js import React from 'react' import Jumbotron from 'react-bootstrap/Jumbotron' import axios from 'axios'; import Container from 'react-bootstrap/Container' import { MDBRow, MDBCol,MDBDropdownItem,MDBDropdownMenu,MDBDropdown,MDBDropdownToggle, MDBIcon,MDBBtn } from "mdbreact"; import '@fortawesome/fontawesome-free/css/all.min.css'; import 'bootstrap-css-only/css/bootstrap.min.css'; import 'mdbreact/dist/css/mdb.css'; import { useHistory } from 'react-router-dom'; import{ useState } from 'react'; import { Link } from 'react-router-dom'; import './styles.css'; // <Link to="/AddLocation" style={{color:"#FFFFFF"}}>Location</Link> example for url export default function HRHomePage() { let history = useHistory(); return ( <div> <div class="jumbotron text-center " style={{backgroundColor:"#385E77"}}> <h1 class="headerHR">Welcome</h1> <nav class="navbar navbar-expand-sm bg-light navbar-light"> </nav> </div> <div class="container"> <div class="row"> <div class="col-sm-4"> <MDBBtn rounded size="" color="info" onClick={() => history.push('/LocationSettings')}>Location <MDBIcon icon="location-arrow" className="ml-1" /></MDBBtn> <p>Add/Update/Delete Location</p> </div> <div class="col-sm-4"> <MDBBtn rounded size="" color="info" onClick={() => history.push('/StaffAdjustment')}>Staff <MDBIcon icon="users" className="ml-1" /></MDBBtn> <p>Add/Update/Delete Staff member</p> </div> <div class="col-sm-4"> <MDBBtn rounded size="" color="info"onClick={() => history.push('/DepartmentOptions')} >Department <MDBIcon icon="building" className="ml-1" /></MDBBtn> <p>Add/Update/Delete Department</p> </div> </div> <div class = "row"> <div class="col-sm-4" style={{padding:20}}> <MDBBtn rounded size="" color="info" onClick={() => history.push('/CoursesOptions')} >Course <MDBIcon icon="book" className="ml-1" /></MDBBtn> <p>Add/Update/Delete Course</p> </div> <div class="col-sm-4" style={{padding:20}}> <MDBBtn rounded size="" color="info" onClick={() => history.push('/FacultyOptions')}>Faculty <MDBIcon icon="ethernet" className="ml-1" /></MDBBtn> <p>Add/Update/Delete Faculty</p> </div> <div class="col-sm-4" style={{padding:20}}> <MDBBtn rounded size="" color="info" onClick={() => history.push('/UpdateSalary')}> Update salary <MDBIcon icon="file-invoice-dollar" className="ml-1" /></MDBBtn> <p>Update salary for a staff</p> </div> </div> <div class="row"> <div class="col-sm-4" style={{padding:20}}> <MDBBtn rounded size="" color="info" onClick={() => history.push('/CheckAttendance')}>Check Attendance <MDBIcon far icon="list-alt" className="ml-1" /></MDBBtn> <p>View All Staff Attendance</p> </div> <div class="col-sm-4" style={{padding:20}}> <MDBBtn rounded size="" color="info" onClick={() => history.push('/CheckHoursOrDays')}> Staff Missing Hours <MDBIcon icon="calendar-alt" className="ml-1" /></MDBBtn> <p>Checks all the staff missing hours and days</p> </div> <div class="col-sm-4" style={{padding:20}}> <MDBDropdown dropright> <MDBDropdownToggle rounded size="" color="info"> Manual Records <MDBIcon icon="sign-in-alt" className="ml-1" /> </MDBDropdownToggle> <MDBDropdownMenu basic> <MDBDropdownItem href="/ManualSignOut"> Manual Sign Out</MDBDropdownItem> <MDBDropdownItem href="/ManualSignIn">Manual Sign In</MDBDropdownItem> </MDBDropdownMenu> </MDBDropdown> <p>Add Manual Sign In/Out</p> </div> </div> </div> </div> ) } <file_sep>/src/component/ALL/Hours1.js import axios from 'axios' import React,{useState,useEffect} from 'react' import {MDBIcon,MDBBtn,MDBInput} from "mdbreact"; import { useHistory } from 'react-router-dom'; function printAttendance (atnd) { return atnd.map((elem,index) =>{ //mehtaga tetzabat lw fe actually slot" return( <tr> <td>day {index+1}</td> <td>{listPrinter(elem.checkIn)}</td> <td>{listPrinter(elem.checkOut)}</td> </tr> ) }) } function listPrinter (nado) { var outt="[" var i for( i=0;i<nado.length;i++){ outt = outt.concat(nado[i]) if(i+1 !=nado.length) outt = outt.concat(",") } outt = outt.concat("]") return outt } export default function ViewAttendance() { let history = useHistory(); const [start,setStart] = useState(0) const [attend,setAttend] = useState([]) if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ return ( <div> <div class="jumbotron jumbotron-fluid" style={{backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:50,textAlign:"left",padding:20}}>View Missing Days </h1> </div> <MDBBtn className="homeBtn" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </div> <div> <text >Start Month:</text> <select style={{marginLeft:10}} onChange={(e)=>{ const month=e.target.value setStart(month) } }> <option value="0" >All</option> <option value="1" >1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> </div> <MDBBtn onClick={ axios.get('http://localhost:5000/checkHours', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setAttend(res.data); }) .catch(error =>{ alert(error); }) } >Get Attendance</MDBBtn> {attend} </div> ) } }<file_sep>/src/component/HR/CheckAttendance.js import { Component,useState } from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle, MDBBtnGroup } from "mdbreact"; import 'mdbreact/dist/css/mdb.css'; import { useHistory } from 'react-router-dom'; import './styles.css' import axios from 'axios' import '../../App.css' import { left } from '@popperjs/core'; export default function CheckAttendance() { const [staffId, setStaffId] = useState('') const [monthOfStaff, setMonthOfStaff] = useState('') const [view, setview] = useState("") const getAtt = async (id,month1) => { axios.post('http://localhost:5000/checkStaffAttendance', { staffId:id, month:parseInt(month1) }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { setview(response.data) //console.log(view) }).catch(error => { alert(error.response.data) })} let history = useHistory(); return ( <div> <div className="jumbotron" style={{paddingTop:20,backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:30,textAlign:"left",padding:0}}><MDBIcon icon="table" /> Check Staff attendance</h1> </div> <h1 style={{textAlign:left,marginLeft:50}}> <MDBBtn size="sm" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" size="sm" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </h1> </div> <div class="container"> <div class="row"> <div class=" col-md-6"> <p className="text-salary">Enter the staff ID</p> <div className="container-salary"> <MDBInput label="Staff ID" onChange={event=>setStaffId(event.target.value)}/></div> <div> <p className="text-salary">Enter the month you want to view</p> <div className="container-salary"> <MDBInput label="Month" onChange={event=>setMonthOfStaff(event.target.value)}/></div> </div> <h1 style={{textAlign:left}}> <MDBBtn onClick={()=>getAtt(staffId,monthOfStaff)} >View</MDBBtn> </h1> </div> <div class="accordion col-md-4" style={{marginTop:-15}}> <div class="container" className="container-att"> <text style={{fontWeight:"bold",textAlign:"center",fontSize:"10px"}}>{view}</text> </div> </div> </div> </div> </div> ) } <file_sep>/src/component/CI/AssignAcademicMember.component.js import React,{useState} from 'react' import axios from 'axios' import { Container,Button} from 'react-bootstrap' import '../HD/hdComponent.css' import Nav from './CINavBar.component' import Dropdown from 'react-bootstrap/Dropdown'; import { Modal,Row } from 'react-bootstrap' export default function AssignAcademicMember() { const [state,setState] = useState("") const [CourseId,setCourseId]=useState("") const [StaffId,setStaffId]=useState("") const [Day,setDay]=useState("") const [Timing,setTiming]=useState("") const [Location,setLocation]=useState("") const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true) ; let selectedDay="Please Select a Day" let selectedTiming="Please Select a Timing" if(Day==""){ selectedDay="Please Select a Day" } else{ selectedDay=Day } if(Timing!=""){ selectedTiming=Timing } else{ selectedTiming="Please Select a Timing" } if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ const handleSubmit = async e=>{ axios.post('http://localhost:5000/assignAcademicMember',{ staffId:StaffId , courseId: CourseId,day:Day,timing : Timing , location :Location }, { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ console.log(res.data) setState(res.data); handleShow(); }) .catch(error =>{ console.log(error); })} return ( <div> <Nav /> <Container style={{height:'420px'}} className="hdCompBig"> <h3 className="TextLeft"> Assign Academic Member to Unassigned slots </h3> <h5 className="TextLeftSub"> Course ID : <span style={{display:'inline-block'}}> <input required='true' onChange = {e =>setCourseId(e.target.value)}></input></span></h5> <h5 className="TextLeftSub"> Staff ID : <span style={{display:'inline-block'}}> <input required='true' onChange = {e =>setStaffId(e.target.value)}></input></span></h5> <h5 className="TextLeftSub">Select Day : <span style={{display:'inline-block'}}> <Dropdown> <Dropdown.Toggle variant="primary" id="dropdown-basic"> {selectedDay} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onSelect= {e =>setDay("Saturday")}>Saturday</Dropdown.Item> <Dropdown.Item onSelect= {e =>setDay("Sunday")}>Sunday</Dropdown.Item> <Dropdown.Item onSelect= {e =>setDay("Monday")}>Monday</Dropdown.Item> <Dropdown.Item onSelect= {e =>setDay("Tuesday")}>Tuesday</Dropdown.Item> <Dropdown.Item onSelect= {e =>setDay("Wednesday")}>Wednesday</Dropdown.Item> <Dropdown.Item onSelect= {e =>setDay("Thursday")}>Thursday</Dropdown.Item> </Dropdown.Menu> </Dropdown></span></h5> <h5 className="TextLeftSub"> Select Timing : <span style={{display:'inline-block'}}> <Dropdown> <Dropdown.Toggle variant="primary" id="dropdown-basic"> {selectedTiming} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onSelect= {e =>setTiming("first")}>First</Dropdown.Item> <Dropdown.Item onSelect= {e =>setTiming("second")}>Second</Dropdown.Item> <Dropdown.Item onSelect= {e =>setTiming("third")}>Third</Dropdown.Item> <Dropdown.Item onSelect= {e =>setTiming("fourth")}>Fourth</Dropdown.Item> <Dropdown.Item onSelect= {e =>setTiming("fifth")}>Fifth</Dropdown.Item> </Dropdown.Menu> </Dropdown></span></h5> <h5 className="TextLeftSub">Please State Location : <span style={{display:'inline-block'}}> <input required='true' onChange = {e =>setLocation(e.target.value)}></input></span><span > <Button className='buttonAssign'onClick={handleSubmit}> Assign Academic Member </Button></span></h5> <Modal show={show} onHide={handleClose} style={{marginTop:'15%'}}> <Modal.Header closeButton> <Modal.Title style={{textAlign:'center'}}>{state}</Modal.Title> </Modal.Header> </Modal> </Container> </div> ) } } <file_sep>/src/component/HR/CollapsedBar.js import React, { useState, useEffect } from 'react'; import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle } from "mdbreact"; import './styles.css'; import ReactDOM from 'react-dom' import axios from'axios'; //these are for the locationSettingsPage function CollapsedBar() { const [state, setstate] = useState('collapse');//for the add const [state1, setstate1] = useState('collapse');//for the update const [state2, setstate2] = useState('collapse');//for the delete var [locationName, setLocationName] = useState(''); var [locationCapacity, setLocationCapacity] = useState(''); const [locationTypeGet, setLocationType] = useState(''); var [locationNameUpdate, setLocationNameUpdate] = useState(''); var [locationCapacityUpdate, setLocationCapacityUpdate] = useState(''); const [locationTypeUpdate, setLocationTypeUpdate] = useState(''); var [locationNameDelete,setlocationNameDelete]= useState(''); return ( <div class="container"> <h2>Available Options</h2> <p><strong>Note: Make sure to enter the correct location </strong> </p> {/* ---------------------------------------------- */} <div class="card" className="fCard"> <div class="card-header" id="headingOne"> <div type="button" onClick={()=>setstate('collapse')} class={state} style={{marginRight:-1000}}> <MDBIcon far icon="window-close" /> </div> <button class="btn btn-primary btn-rounded" type="button" onClick={()=>setstate('collapse show')} data-toggle="collapse" data-target="#collapseOne" aria-controls="collapseOne" style={{}} > Add Location </button> </div> <text className="locText" class={state}>Enter Location name here:</text> <input type="text" class={state} placeholder="Location Name" style={{marginLeft:10} } onChange={event => setLocationName(event.target.value)} > </input> <div class={state}> <text >Enter Location capacity here:</text> <input type="number" class={state} placeholder="Location capacity" style={{marginLeft:5,marginTop:10}} onChange={event=>setLocationCapacity(event.target.value)}></input> </div> <div class={state}> <text className="location-type" >Select the location Type:</text> <select className="top-buffer" onChange={(e)=>{ const loc=e.target.value setLocationType(loc) } }> <option value='lab'>Lab</option> <option value='room'>Room</option> <option value='hall'>Hall</option> <option value='office'>Office</option> </select> </div> <div class ={state}> <MDBBtn rounded size="md" color=" mdb-color lighten-1" style={{marginTop:20}} onClick={()=>addNewLocation(locationName,locationTypeGet,locationCapacity)}> <text className="btnSubmit">Add</text></MDBBtn> </div> {/*---------------------------------First card----------------------------- */} <div id="collapseOne" class={state} aria-labelledby="headingOne" data-parent="#accordionExample"> <div class="card-body"> </div> </div> </div> <div class="card" className="fCard"> <div class="card-header" id="headingTwo"> <div type="button" onClick={()=>setstate1('collapse')} class={state1} style={{marginRight:-1000}}> <MDBIcon far icon="window-close" /> </div> <button class="btn btn-primary btn-rounded" type="button" onClick={()=>setstate1('collapse show')} data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> Update Location </button> </div> <div id="collapseTwo" class={state1} aria-labelledby="headingTwo"> <div class={state1}> <text>Enter Location Name :</text> <input class="up" placeholder="Location Name" onChange={event=>setLocationNameUpdate(event.target.value)}></input> <div> <text >Enter location Capacity :</text> <input type="number" class="up" placeholder="Location Capacity" onChange={event=>setLocationCapacityUpdate(event.target.value)} ></input> </div> <text className="location-type"> Select the location Type:</text> <select className="top-buffer" onChange={(e)=>{ const loc=e.target.value setLocationTypeUpdate(loc) } }> <option value="lab">Lab</option> <option value="room">Room</option> <option value="hall">Hall</option> <option value="office">Office</option> </select> <div> <MDBBtn rounded size="md" color=" mdb-color lighten-1" style={{marginTop:20}} onClick={()=>updateLoc(locationNameUpdate,locationTypeUpdate,locationCapacityUpdate)}> <text className="btnSubmit">Update</text></MDBBtn> </div> </div> </div> </div> {/* ---------------------Third---------------- */} <div class="card" className="fCard"> <div class="card-header" id="headingThree"> <div type="button" onClick={()=>setstate2('collapse')} class={state2} style={{marginRight:-1000}}> <MDBIcon far icon="window-close" /> </div> <button class="btn btn-primary btn-rounded" type="button" onClick={()=>setstate2('collapse show')} data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree"> Delete Location </button> </div> <div id="collapseThree" class={state2} aria-labelledby="headingThree" data-parent="#accordionExample"> <div class={state2} > <text>Enter the location you want to delete:</text> <input style={{marginLeft:15}}placeholder="Location Name" onChange={event=>setlocationNameDelete(event.target.value)}></input> <div> <MDBBtn rounded size="md" color=" mdb-color lighten-1" style={{marginTop:20}} onClick={()=>deleteLoc(locationNameDelete)}> <text className="btnSubmit">Delete</text></MDBBtn> </div> </div> </div> </div> </div> ) } const addNewLocation = async (name,type,cap) => { axios.post('http://localhost:5000/addLocation', { locationName : name, locationType:type, locationCapacity:cap, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response) }).catch(error => { alert("Error: "+error.response.data) })} const updateLoc = async (name,type,cap) => { axios.post('http://localhost:5000/updateLocation', { locationName : name, locationType:type, locationCapacity:cap, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response) }).catch(error => { alert("Error: "+error.response.data) })} const deleteLoc = async(name)=>{ axios.post('http://localhost:5000/deleteLocation', { locationName : name, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert("location deleted succesfully") }).catch(error => { alert("Error: "+error.response.data) })} export default CollapsedBar;<file_sep>/src/component/ALL/Sign.js import axios from 'axios' import React,{useState,useEffect} from 'react' import {MDBIcon,MDBBtn,MDBInput} from "mdbreact"; import { useHistory } from 'react-router-dom'; export default function ViewAll() { let history = useHistory(); const [age,setAge] = useState('') if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ return ( <div> <div class="jumbotron jumbotron-fluid" style={{backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:50,textAlign:"left",padding:20}}>Sign in/ Sign Out</h1> </div> <MDBBtn className="homeBtn" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </div> <MDBBtn onClick={()=>{ axios.get('http://localhost:5000/signIn', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ alert(res.data); }) .catch(error =>{ alert(error); }) }} >Sign In </MDBBtn> <MDBBtn onClick={()=>{ axios.get('http://localhost:5000/signOut', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ alert(res.data); }) .catch(error =>{ alert(error); }) }} >Sign Out</MDBBtn> </div> ) } }<file_sep>/src/component/ALL/ResetPassword.js import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle, MDBBtnGroup } from "mdbreact"; import 'mdbreact/dist/css/mdb.css'; import { useHistory } from 'react-router-dom'; import axios from 'axios' import React,{useState,useEffect} from 'react' export default function LocationSettings() { let history = useHistory(); const [pass,setPass] = useState('') return ( <div> <div class="jumbotron jumbotron-fluid" style={{backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:50,textAlign:"left",padding:20}}>Change Password</h1> </div> <MDBBtn className="homeBtn" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </div> <p className="text-salary">Enter the new Password</p> <div className="container-salary"> <MDBInput label="New Password" onChange={event=>setPass(event.target.value)}/></div> <MDBBtn onClick={()=>{ axios.put('http://localhost:5000/resetPassword', { password:<PASSWORD>, }, { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ alert(res.data); }) .catch(error =>{ alert(error); }) }} >Change Password</MDBBtn> </div> ) } <file_sep>/src/component/HR/CheckHoursOrDays.js import { Component,useState } from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle, MDBBtnGroup } from "mdbreact"; import 'mdbreact/dist/css/mdb.css'; import { useHistory } from 'react-router-dom'; import './styles.css' import axios from 'axios' import '../../App.css' import { left } from '@popperjs/core'; export default function CheckHoursOrDays() { const [staffId, setStaffId] = useState('') const [hours, setHours] = useState("") const [dayz, setDayz] = useState('') const[viewState1,setViewState1]=useState('collapse') const[viewState2,setViewState2]=useState('collapse') const checkHours = async (id) => { axios.post('http://localhost:5000/checkStaffHours', { staffId:id, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { setHours(response.data) //console.log(hours) }).catch(error => { alert(error.response) })} const checkDays = async (id1) => { checkHours(id1) axios.post('http://localhost:5000/checkStaffMissingDays', { staffId:id1, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { setDayz(response.data) setViewState2('collapse show') setViewState1('collapse show') }).catch(error => { alert(error.response) }) } let history = useHistory(); return ( <div> <div className="jumbotron" style={{paddingTop:20,backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:30,textAlign:"left",padding:0}}><MDBIcon icon="table" /> Missing Hours and Days for Staff</h1> </div> <h1 style={{textAlign:left,marginLeft:50}}> <MDBBtn size="sm" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" size="sm" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </h1> </div> <div class="container" style={{marginLeft:0}}> <div class="row"> <div class=" accordion col-md-4"> <p className="text-salary">Enter the staff ID</p> <div className="container-salary"> <MDBInput label="Staff ID" onChange={event=>setStaffId(event.target.value)}/></div> <h1 style={{textAlign:left}}> <MDBBtn style={{marginLeft:-5}} color="blue-grey" onClick={()=>checkDays(staffId)} >View Missing Hours and Days</MDBBtn> </h1> </div> <div class="accordion col-md-3" style={{marginLeft:-100}}> <div class={viewState1}> <div class="container" className="container-att"> <text style={{fontWeight:"bold",textAlign:"center",fontSize:"10px"}}>{dayz}</text> </div> </div> </div> <div class={viewState2} style={{textAlign:"right",marginLeft:800,marginTop:-415}}> <div class="container" className="container-att2"> <text style={{fontWeight:"bold",textAlign:"center",fontSize:"10px"}}>{hours}</text> </div> </div> </div> </div> </div> ) } <file_sep>/src/component/AC/ACChangeOff.component.js import React,{useState,setState} from 'react' import NavigationBar from './ACNavigationBar' import axios from 'axios' import {Row,Col, Navbar,Dropdown,Button} from 'react-bootstrap'; const sendChangeOffRequest = async (day) => { axios.post('http://localhost:5000/sendChangeOff', { dayOff:day, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { console.log(response) }).catch(error => { console.log(error.response) })} export default function SendChangeOff() { const [day,setDay] = useState("Choose day"); if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ return ( <div> <NavigationBar /> <Navbar.Brand>Send A Change Day Off Request </Navbar.Brand> <Row> <Col><Navbar.Brand>Day: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {day} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setDay("Saturday")}>Saturday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Sunday")}>Sunday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Monday")}>Monday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Tuesday")}>Tuesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Wednesday")}>Wednesday</Dropdown.Item> <Dropdown.Item onClick={e => setDay("Thursday")}>Thursday</Dropdown.Item> </Dropdown.Menu> </Dropdown> </Col> </Row> <Button onClick={()=>sendChangeOffRequest(day)} >Send</Button> </div> ) } } <file_sep>/src/component/HD/RejectLeave.component.js import React from 'react' export default function RejectLeave() { return ( <div> RejectLeave </div> ) } <file_sep>/src/component/HR/DepartmentOptions.js import { Component,useState } from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { MDBRow, MDBCol, MDBIcon,MDBBtn,MDBInput,MDBDropdownItem,MDBDropdown,MDBDropdownMenu,MDBDropdownToggle, MDBBtnGroup } from "mdbreact"; import 'mdbreact/dist/css/mdb.css'; import { useHistory } from 'react-router-dom'; import './styles.css' import axios from 'axios' export default function DepartmentOptions() { const [state, setState] = useState('collapse') const [state1, setState1] = useState('collapse') const [state2, setState2] = useState('collapse') const [depName, setDepName] = useState('') const [fac, setFacName] = useState('') const [newDep, setNewDep] = useState('') let history = useHistory(); return ( <div> <div class="jumbotron jumbotron-fluid" style={{backgroundColor:"#94B4C9"}}> <div class="container"> <h1 style={{fontFamily:"Franklin Gothic Medium",fontSize:50,textAlign:"left",padding:20}}><MDBIcon icon="building" /> Department Options</h1> </div> <MDBBtn className="homeBtn" color="blue-grey lighten-4" onClick={()=>history.push('/HRHomePage')}> <MDBIcon icon="home" size="lg"/></MDBBtn> <MDBBtn color="blue-grey lighten-4" onClick={()=>history.push('/Profile')}> <MDBIcon far icon="user" size="lg" /></MDBBtn> </div> <div class="row"> <div class="container"> <div class="card" style={{backgroundColor:"slategrey"}}> <div class="card-header" id="headingOne" > <h2 class="mb-0"> <MDBBtn onClick={()=>setState("collapse show")} color="blue" type="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseOne" > <a className="addStaffText">Add Department</a></MDBBtn> <div class={state}><MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setState('collapse')}} style={{marginLeft:1000,marginTop:-120}} ><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> </h2> </div> <div id="collapseOne" class={state} aria-labelledby="headingOne" > <div class="card-body"> <div> <p className="textDep">Enter the Department Name: <input onChange={event=>setDepName(event.target.value)}></input></p> </div> <div><p className="textDep"> Enter the Faculty of this Department: <input onChange={event=>setFacName(event.target.value)} ></input></p></div> <div><MDBBtn gradient ="blue" className="btnSubmit" onClick={()=>addDepartment(depName,fac)}>Add</MDBBtn></div> </div> </div> </div> </div> <div class="container" > <div class="card" style={{backgroundColor:"slategrey"}}> <div class="card-header" id="headingOne"> <h2 class="mb-0"> <MDBBtn color="blue" type="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseOne" onClick={()=>setState1('collapse show')}> <a className="addStaffText">Update Department</a> </MDBBtn> <div class={state1}><MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setState1('collapse')}} style={{marginLeft:1000,marginTop:-120}} ><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> </h2> </div> <div id="collapseOne" class={state1} aria-labelledby="headingOne"> <div class="card-body"> <div> <p className="textDep">Enter the Department Name: <input onChange={event=>setDepName(event.target.value)}></input></p> </div> <div> <p className="textDep">Enter the new department name: <input onChange={event=>setNewDep(event.target.value)}></input></p> </div> <div><p className="textDep"> Enter the Faculty of this Department: <input onChange={event=>setFacName(event.target.value)} ></input></p></div> <div><MDBBtn gradient ="blue" className="btnSubmit" onClick={()=>updateDepartment(depName,fac,newDep)}>Update</MDBBtn></div> </div> </div> </div> </div> <div class="container"> <div class="card" style={{backgroundColor:"slategrey"}}> <div class="card-header" id="headingOne"> <h2 class="mb-0"> <MDBBtn color="blue" type="button" data-toggle="collapse" aria-expanded="true" aria-controls="collapseOne" onClick={()=>setState2('collapse show')}> <a className="addStaffText">Delete Department</a> </MDBBtn> <div class={state2}><MDBBtn className="btn-circle" size="sm" color="blue-grey lighten-5" onClick={()=>{setState2('collapse')}} style={{marginLeft:1000,marginTop:-100}} ><MDBIcon icon="angle-double-up" size="lg"/></MDBBtn> </div> </h2> </div> <div id="collapseOne" class={state2} aria-labelledby="headingOne" data-parent="#accordionExample"> <div class="card-body"> <div> <p className="textDep">Name of the department to be deleted: <input onChange={event=>setDepName(event.target.value)}></input></p> </div> <div><p className="textDep"> Faculty of the department: <input onChange={event=>setFacName(event.target.value)}></input></p></div> <div><MDBBtn gradient ="blue" className="" onClick={()=>deleteDepartment(depName,fac)}>Delete</MDBBtn></div> </div> </div> </div> </div> </div> </div> ) } const addDepartment = async (name,fac) => { axios.post('http://localhost:5000/addDepartment', { departmentName :name, facultyName:fac }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} const updateDepartment = async (name,fac,depNew) => { axios.post('http://localhost:5000/updateDepartment', { departmentName :name, facultyName:fac, newDepartmentName:depNew }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} const deleteDepartment = async(name,fac)=>{ axios.post('http://localhost:5000/deleteDepartment', { departmentName :name, facultyName:fac }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} <file_sep>/src/App.js import React from 'react'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import './App.css'; import { BrowserRouter as Router, Switch, Route ,Link} from "react-router-dom"; import LogIn from "./component/LogIn.component"; import Logout from './component/LogOut.component'; import HODhomePage from './component/HD/HOD.component.js' import ViewTA from './component/HD/ViewTA.component.js' import assignCI from './component/HD/AssignCI.component.js' import updateCI from './component/HD/UpdateCI.component.js' import deleteCI from './component/HD/DeleteCI.component.js' import viewChangeRequests from './component/HD/ViewChangeRequests.component.js' import courseCoverage from './component/HD/CourseCoverage.component.js' import responseChangeReq from './component/HD/ResponseChangeReq.component.js' import staffMembs from './component/HD/StaffMembs.component.js' import acceptLeave from './component/HD/AcceptLeave.component.js' import rejectLeave from './component/HD/RejectLeave.component.js' import staffMembsOfCourse from './component/HD/staffMembsOfCourse.component.js' import ACLeaveReq from './component/AC/ACLeaveReq.js' import viewLeaveRequest from './component/HD/ViewLeaveRequest.component.js' import Notifications from './component/AC/Notifications.component.js' import HOD from './component/HD/HOD.component.js' import AllRequests from './component/AC/AllRequests.component.js' import courseStaffMems from './component/HD/staffMembsOfCourse.component.js' import ViewDayOff from './component/HD/ViewDayOff.component.js' import ViewDayOffOne from './component/HD/ViewDayOffOne.component.js' import LocationSettings from './component/HR/LocationSettings.js' import HRHomePage from './component/HR/HRHomePage.js' import ACHomePage from './component/AC/AC.component.js' import ACSched from './component/AC/Schedule.component.js' import ACReplacements from './component/AC/ReplacementRequests.component.js' import SlotLinkings from './component/AC/SlotLinkings.component.js' import ACChangeOff from './component/AC/ACChangeOff.component.js' import StaffAdjustment from './component/HR/StaffAdjustment.js' import DepartmentOptions from './component/HR/DepartmentOptions.js' import CoursesOptions from './component/HR/CoursesOptions.js' import FacultyOptions from './component/HR/FacultyOptions.js' import CheckHoursOrDays from './component/HR/CheckHoursOrDays' import UpdateSalary from './component/HR/UpdateSalary.js' import CheckAttendance from './component/HR/CheckAttendance' import ManualSignOut from './component/HR/ManualSignOut' import ManualSignIn from './component/HR/ManualSignIn' ///////////////////////////////////////////////////////////////////////////CI///////////////////////////////////////////////// import CIMainHome from './component/CI/CIHomePage.component' import ViewStaffCI from './component/CI/ViewStaffDepAC.component' import ViewStaffCourseCI from './component/CI/ViewStaffCourseAC.component' import AssignACMEM from './component/CI/AssignAcademicMember.component' import UpdateAC from './component/CI/updateAC.component' import DeleteACInCourse from './component/CI/DeleteACInCourse.component' import CoursesCoverage from './component/CI/CoursesCoverage.component' import AssignACTOCC from './component/CI/AssignACTOCC.component'; import SlotAssignmentCI from './component/CI/SlotsAssignment.component'; import MainHomePage from './MainHomePage.component' import profile from './component/ALL/Profile' import UpdateAge from './component/ALL/UpdateAge' import ResetPassword from './component/ALL/ResetPassword' import Sign from './component/ALL/Sign' import ViewAttendance from './component/ALL/ViewAttendance' import MissingDays from './component/ALL/MissingDays' import Hours from './component/ALL/Hours1' import ViewSlotLinkings from './component/AC/ViewSlotLinkings' import ManageSlots from './component/AC/ManageSlots' import Trial from "./Trial" import ViewStaffDepAC from './component/CI/ViewStaffDepAC.component'; function App() { return (<Router> <div className="App"> <div className="outer"> <div className="inner"> <Switch> <Route exact path='/' component={LogIn} /> <Route path="/LogIn" exact component={LogIn} /> <Route path="/MainHomePage" exact component={MainHomePage} /> <Route path="/LogOut" component={Logout}/> <Route path ="/AddCI" exact component= {assignCI} /> <Route path="/UpdateCI" exact component={updateCI} /> <Route path="/DeleteCI" exact component={deleteCI} /> <Route path="/HODhomePage" exact component={HODhomePage} /> <Route path="/ChangeDayOffRequests" exact component={viewChangeRequests} /> <Route path="/ViewCourseCoverage" exact component={courseCoverage} /> <Route path="/responseChangeReq" exact component={responseChangeReq} /> <Route path="/staffMembs" exact component={staffMembs} /> <Route path="/LeaveRequests" exact component={ACLeaveReq} /> <Route path="/LeaveRequestHD" exact component={viewLeaveRequest} /> <Route path="/CourseStaff" exact component={courseStaffMems} /> <Route path="/acceptLeave" exact component={acceptLeave} /> <Route path="/rejectLeave" exact component={rejectLeave} /> <Route path="/HODHomePage" exact component={HOD} /> <Route path="/ViewDayOff" exact component={ViewDayOff} /> <Route path="/ViewDayOffOne" exact component={ViewDayOffOne} /> <Route path="/ViewTA" exact component={ViewTA} /> <Route path="/CIHomePage" exact component={CIMainHome} /> <Route path="/CISchedule" exact component={ACSched} /> <Route path="/replacementRequests" exact component={ACReplacements} /> <Route path="/slotLinking" exact component={SlotLinkings} /> <Route path="/SendChangeOff" exact component={ACChangeOff} /> <Route path="/sendLeaveRequest" exact component={ACLeaveReq} /> <Route path="/Notifications" exact component={Notifications} /> <Route path="/AllRequests" exact component={AllRequests} /> <Route path ="/LocationSettings" exact component={LocationSettings} /> <Route path ="/HRHomePage" exact component={HRHomePage} /> <Route path ="/StaffAdjustment" exact component={StaffAdjustment} /> <Route path ="/DepartmentOptions" exact component={DepartmentOptions} /> <Route path ="/CoursesOptions" exact component={CoursesOptions} /> <Route path ="/FacultyOptions" exact component={FacultyOptions} /> <Route path ="/CheckHoursOrDays" exact component={CheckHoursOrDays} /> <Route path ="/UpdateSalary" exact component={UpdateSalary} /> <Route path ="/CheckAttendance" exact component={CheckAttendance} /> <Route path ="/ManualSignOut" exact component={ManualSignOut} /> <Route path ="/ManualSignIn" exact component={ManualSignIn} /> <Route path ="/ViewStaffInDepartment" exact component={ViewStaffCI} /> <Route path ="/ViewStaffPerCourse" exact component={ViewStaffCourseCI} /> <Route path ="/AssignACMEM" exact component={AssignACMEM} /> <Route path ="/UpdateACInCourse" exact component={UpdateAC} /> <Route path ="/DeleteACInCourse" exact component={DeleteACInCourse} /> <Route path ="/ViewCourseCoverageAC" exact component={CoursesCoverage} /> <Route path ="/AssignACTOCC" exact component={AssignACTOCC} /> <Route path ="/ViewSlotAssignment" exact component={SlotAssignmentCI} /> <Route path ="/ViewSlotLinkings" exact component={ViewSlotLinkings} /> <Route path ="/ManageSlots" exact component={ManageSlots} /> <Route path ="/UpdateAge" exact component={UpdateAge} /> <Route path ="/ResetPassword" exact component={ResetPassword} /> <Route path ="/Sign" exact component={Sign} /> <Route path ="/ViewAttendance" exact component={ViewAttendance} /> <Route path ="/MissingDays" exact component={MissingDays} /> <Route path ="/Hours" exact component={Hours} /> <Route path ="/Profile" exact component={profile} /> </Switch> </div> </div> </div></Router> ); } export default App;<file_sep>/src/component/HD/ViewLeaveRequest.component.js import React,{useState} from 'react' import NavigationBar from './HODNavigationBar' import axios from 'axios' import ViewStaff from './ViewStaff.component' import { Container,Badge,Modal,Button,Alert } from 'react-bootstrap' import TableScrollbar from 'react-table-scrollbar'; export default function ViewLeaveRequest() { const [leaveReq,setLeaveReq]=useState([]) const [id,setId]=useState("") const [messageLeave,setMessageLeave]=useState("") const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true); let showAlert=false; if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ function getLeaveRequests(list){ if(list!==undefined && list.length>0&&list!==null){ return list.map(elem =>{ if(typeof list=='string'){ setMessageLeave(list) showAlert=true;} else{ if(elem.senderId!=null){ showAlert=false return( <tr> <td>{elem.senderName}</td> <td>{elem.senderId}</td> <td>{elem.type}</td> <td>{elem.status}</td> <td>{elem.reason}</td> <td>{elem.month}</td> <td>{elem.day}</td> <Button variant="primary" onClick={handleShow}> Accept/Reject </Button> </tr> )}} }) } else{ return ""; }} axios.get('http://localhost:5000/viewLeave', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ console.log(typeof res.data) if(typeof res.data=="string"){ setLeaveReq(res.data) showAlert=true; }else{ setLeaveReq(res.data); showAlert=false; } console.log(showAlert) }) .catch(error =>{ console.log(error); }) const handleAccept = async e=>{ axios.post('http://localhost:5000/acceptLeaveReq',{ staffId:id }, { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ console.log(res.data) setMessageLeave(res.data); handleClose() showAlert=true; }) .catch(error =>{ console.log(error); })} const handleReject = async e=>{ axios.post('http://localhost:5000/rejectChangeReq',{ staffId:id }, { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setMessageLeave(res.data); handleClose() showAlert=true; }) .catch(error =>{ console.log(error); })} return ( <div> <NavigationBar /> <Container style={{height:'300px'}} className="hdCompBig"> <h3 className="TextLeft"> Staff Leave Requests </h3> <TableScrollbar rows={3}> <table hidden={showAlert} className="table table-sm table-dark"> <thead className = "thead-light"> <tr> <th>Staff Id</th> <th>Staff Name</th> <th>Type</th> <th>Status</th> <th>Reason</th> <th>Day</th> <th>Month</th> </tr> </thead> <tbody> {getLeaveRequests(leaveReq)} </tbody> </table> </TableScrollbar> <> <Modal show={show} onHide={handleClose} style={{top:'20%'}} > <Modal.Header closeButton> <Modal.Title>Please Verify Enter Staff ID </Modal.Title> </Modal.Header> <Modal.Body> <input onChange = {e =>setId(e.target.value)}></input> </Modal.Body> <Modal.Footer> <Button variant="secondary" onClick={handleReject}> Reject </Button> <Button onClick={handleAccept} variant="primary">Accept</Button> </Modal.Footer> </Modal> </> <Alert hidden={showAlert} variant="success"> <Alert.Heading> {messageLeave}</Alert.Heading> </Alert> </Container> </div> ) } }<file_sep>/src/component/AC/ACNavigationBar.js import React from 'react' import { Navbar, Nav, NavDropdown,Dropdown } from 'react-bootstrap'; import image from '../logo.png' import '../../App.css' export default function HODNavigationBar() { return ( <div> <Navbar collapseOnSelect expand="lg" bg="dark" variant="light"> <img src={image} alt="Logo" width='30px' /> <Navbar.Brand href="/CIHomePage">Home</Navbar.Brand> <Navbar.Toggle aria-controls="responsive-navbar-nav" /> <Navbar.Collapse id="responsive-navbar-nav"> <Nav className="mr-auto"> <Nav.Link href="/CISchedule">Schedule</Nav.Link> <NavDropdown title="Requests"> <NavDropdown.Item href="/replacementRequests">Replacement Requests</NavDropdown.Item> <NavDropdown.Item href="/slotLinking">Send Slot Linking Request</NavDropdown.Item> <NavDropdown.Item href="/SendChangeOff">Send Change Day Off</NavDropdown.Item> <NavDropdown.Item href="/SendLeaveRequest">Send Leave Request</NavDropdown.Item> </NavDropdown> <NavDropdown title="HAGET SHIKO"> <NavDropdown.Item href="/ViewSlotLinkings">View Slot Linking</NavDropdown.Item> <NavDropdown.Item href="/ManageSlots">Manage Slots</NavDropdown.Item> </NavDropdown> <Nav.Link href = '/Notifications'> Notifications </Nav.Link> <Nav.Link href = '/AllRequests'> View All Requests </Nav.Link> </Nav> <Nav > <Nav.Link className='LogOutButton' href="/LogOut">LogOut</Nav.Link> </Nav> </Navbar.Collapse> </Navbar> </div> ) } <file_sep>/src/component/LogOut.component.js import React from 'react' import axios from 'axios' function Logout() { axios.get('http://localhost:5000/logout', { headers:{ 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ console.log(res) localStorage.removeItem('auth-token') window.location.href = "/"; }) .catch(error =>{ console.log(error) }) return( <div> LOL </div> ) } export default Logout<file_sep>/src/component/AC/ACLeaveReq.js import React,{useState} from 'react' import NavigationBar from './ACNavigationBar' import axios from 'axios' import {Tabs,Tab,FormControl,Row,Col, Navbar,Dropdown,Button} from 'react-bootstrap'; const sendLeaveReq = async (day,month,year,type,reason) => { if(day == 'Choose Day' ||month == 'Choose Month' ||year == 'Choose Year' ) return alert("Please enter your day, month and year.") axios.post('http://localhost:5000/sendLeave', { day:day, month:month, year:year, type:type, reason:reason }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }).then(response => { alert(response.data) }).catch(error => { alert("Error: "+error.response.data) })} export default function SendLeaveReq() { const [type,setType] = useState('Choose Type') const [day,setDay] = useState('Choose Day') const [month,setMonth] = useState('Choose Month') const [year,setYear] = useState('Choose Year') const [reason,setReason] = useState('') const days = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]; const months = [1,2,3,4,5,6,7,8,9,10,11,12]; const years = [2018,2019,2020,2021,2022,2023,2024]; if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ return ( <div> <NavigationBar /> <Row> <Col><Navbar.Brand>Leave Type: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="success" id="dropdown-basic"> {type} </Dropdown.Toggle> <Dropdown.Menu> <Dropdown.Item onClick={e => setType("annual")}>Annual</Dropdown.Item> <Dropdown.Item onClick={e => setType("accidental")}>Accidental</Dropdown.Item> <Dropdown.Item onClick={e => setType("sick")}>Sick</Dropdown.Item> <Dropdown.Item onClick={e => setType("compensation")}>Compensation</Dropdown.Item> <Dropdown.Item onClick={e => setType("maternity")}>Maternity</Dropdown.Item> </Dropdown.Menu> </Dropdown></Col> </Row> <div><Row> <Col><Navbar.Brand>Day: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="Day" id="dropdown-basic"> {day} </Dropdown.Toggle> <Dropdown.Menu> {days.map(day => { return ( <Dropdown.Item value={Object.values(day)} onClick={e => setDay(day)}> {day} {Object.keys(day)}{" "} </Dropdown.Item> ); })} </Dropdown.Menu> </Dropdown> </Col> </Row> <Row> <Col><Navbar.Brand>Month: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="Month" id="dropdown-basic"> {month} </Dropdown.Toggle> <Dropdown.Menu> {months.map(month => { return ( <Dropdown.Item value={Object.values(month)} onClick={e => setMonth(month)}> {month} {Object.keys(month)}{" "} </Dropdown.Item> ); })} </Dropdown.Menu> </Dropdown> </Col> </Row> <Row> <Col><Navbar.Brand>Year: </Navbar.Brand></Col> <Col> <Dropdown > <Dropdown.Toggle variant="Month" id="dropdown-basic"> {year} </Dropdown.Toggle> <Dropdown.Menu> {years.map(year => { return ( <Dropdown.Item value={Object.values(year)} onClick={e => setYear(year)}> {year} {Object.keys(year)}{" "} </Dropdown.Item> ); })} </Dropdown.Menu> </Dropdown> </Col> </Row> <Row> <Col><Navbar.Brand>Reason: </Navbar.Brand></Col> <Col><FormControl placeholder="Eg: Travel" aria-label="Username" aria-describedby="basic-addon1" onChange={e => setReason(e.target.value)}/> </Col> </Row> </div> <Button onClick={()=>sendLeaveReq(day,month,year,type,reason)} >Send</Button> </div> ) } }<file_sep>/src/component/AC/ViewSlotLinkings.js import React,{useState,useEffect} from 'react' import NavigationBar from './ACNavigationBar' import axios from 'axios' import {Button,Tabs,Tab ,Navbar} from 'react-bootstrap'; const Accept = (id) => { axios.post('http://localhost:5000/acceptslotlinkingrequests', { id:id, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }) .then(res =>{ return alert(res.data); }).catch(error=>{ return alert(error); }) } const Reject = (id) => { axios.post('http://localhost:5000/rejectslotlinkingrequests', { id:id, }, { headers: { 'auth-token': localStorage.getItem('auth-token'), } }) .then(res =>{ return alert(res.data); }).catch(error=>{ return alert(error); }) } const ViewSlotLinkings = (list) => { return list.map((elem) =>{ var id =elem[5] return( <tr> <td>{elem[0]}</td> <td>{elem[1]}</td> <td>{elem[2]}</td> <td>{elem[3]}</td> <td>{elem[4]}</td> <td><Button variant="dark" onClick={(e)=>Accept(id)} >Accept</Button></td> <td><Button variant="dark" onClick={(e)=>Reject(id)} >Reject</Button></td> </tr> ) }) } export default function ViewAll() { const [reqs,setReqs] = useState([]) const [key, setKey] = useState('home'); useEffect(async ()=>{ axios.get('http://localhost:5000/viewslotlinkingRequests', { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ setReqs(res.data); }) .catch(error =>{ console.log(error); }) } ) if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ return ( <div> <NavigationBar /> <div> <Navbar.Brand>All Slot Linking Requests You Recieved </Navbar.Brand> </div> <table className="table table-sm table-dark"> <thead className = "thead-light"> <tr> <th>Sender</th> <th>Course </th> <th>Day</th> <th>Slot</th> <th>Location</th> <th>Accept</th> <th>Reject</th> </tr> </thead> {ViewSlotLinkings(reqs)} </table> </div> ) } } <file_sep>/src/component/HD/ViewDayOffOne.component.js import React,{useState} from 'react' import NavigationBar from './HODNavigationBar' import axios from 'axios' import TableScrollbar from 'react-table-scrollbar'; import { Container,Button} from 'react-bootstrap' import './hdComponent.css' function getDayOff(list){ if(list!==undefined && list.length>0&&list!==null){ return list.map(elem =>{ return( <tr> <td>{elem.staffName}</td> <td>{elem.staffId}</td> <td>{elem.dayOff}</td> </tr> ) }) } else{ return ""; } } export default function ViewDayOffOne() { const [state,setState] = useState([]) const [id,setId]=useState([]) if(localStorage.getItem('auth-token') === null){ window.location.href = "/login"; } else{ const handleSubmit = async e=>{ e.preventDefault(); axios.post('http://localhost:5000/viewdayOff',{staffId:id}, { headers: { 'auth-token': localStorage.getItem('auth-token') } }) .then(res =>{ console.log(res) setState(res.data); }) .catch(error =>{ console.log(error); }) } return ( <div> <NavigationBar /> <Container style={{height:'300px'}} className="hdCompBig"> <h3 className="TextLeft"> Specific Staff Member Day Off </h3> <h5 className="TextLeftSub"> Staff ID : <span style={{display:'inline-block'}}> <input onChange = {e =>setId(e.target.value)}></input></span> <span style={{display:'inline-block',marginLeft:'25px'}}> <Button variant="primary" onClick = {handleSubmit}>View</Button></span></h5> <TableScrollbar rows={3}> <table className="table table-sm table-dark"> <thead className = "thead-light"> <tr> <th>Staff Name</th> <th>Staff Id</th> <th>Day Off</th> </tr> </thead> <tbody> {getDayOff(state)} </tbody> </table> </TableScrollbar> </Container> </div> ) }}
d6c21eeee90d24fe9ffa0a0bd0ef987f414154ce
[ "JavaScript" ]
27
JavaScript
YoussefKhaledd/NNJSS
3f7f3b06769278708119617298b9fccdcd05027f
d40da9f718e06406263be9efd24e89df236b5e12
refs/heads/master
<file_sep>require 'spec_helper' RSpec.describe InputParser do it "successfully reads the customers file" do customers = InputParser.customers_file(InputParser.data_dir + 'customers') expect(customers).not_to be_nil end it "successfully reads the items file" do items = InputParser.items_file(InputParser.data_dir + 'items') expect(items).not_to be_nil end it "successfully reads the orders file" do orders = InputParser.orders_file(InputParser.data_dir + 'orders') expect(orders).not_to be_nil end end<file_sep>require 'spec_helper' RSpec.describe Order do it "sums the prices of its line items", focus: true do order = build(:order_with_line_items) expect(order.total_line_items).to eq(BigDecimal.new('100')) end it "counts the different line items" do order = build(:order_with_line_items, line_items_count: 2) expect(order.count_line_items).to eq(2) end it "counts the all of the items" do order = build(:order_with_line_items) expect(order.count_all_line_items).to eq(10) end it "counts the different promotions" do order = build(:order_with_line_items_and_adjustments) expect(order.count_adjustments).to eq(2) end it "sums the prices of its promotions" do order = build(:order_with_line_items_and_adjustments) expect(order.total_adjustments).to eq(BigDecimal.new('10')) end it "gets the difference between its line items and promotions" do order = build(:order_with_line_items_and_adjustments) expect(order.total).to eq(BigDecimal.new('90')) end it "can add one adjustment at a time" do adjustment_1 = build(:adjustment) adjustment_2 = build(:adjustment) order = build(:order) order.add_adjustment(adjustment_1) order.add_adjustment(adjustment_2) expect(order.adjustments.size).to eq(2) end it "can add an array of adjustments" do adjustments = [build(:adjustment), build(:adjustment)] order = build(:order) order.add_adjustments(adjustments) expect(order.adjustments.size).to eq(adjustments.size) end it "can add promotions one at a time" do promotion_1 = build(:promotion) promotion_2 = build(:promotion) order = build(:order) order.add_promotion(promotion_1) order.add_promotion(promotion_2) expect(order.promotions.size).to eq(2) end end<file_sep>class LineItem attr_accessor :item attr_accessor :price attr_accessor :quantity attr_accessor :order # def initialize(attributes = {}) # self.item = attributes[:item] || Item.new # self.price = self.item.price # self.quantity = attributes[:quantity] || 1 # end def subtotal self.quantity * self.price end end<file_sep>#!/usr/bin/env ruby require 'bigdecimal' require './lib/file_loader' require './lib/input_parser' include FileLoader require_all('/../models/*.rb') orders = InputParser.orders_file(InputParser.data_dir + 'orders') opera_house = Item.find('OH') bridge_climb = Item.find('BC') sky_tower = Item.find('SK') promotion_1 = Promotion.new promotion_1.add_qualifier(opera_house, 3) promotion_1.add_effect("3 for 2 Deal on #{opera_house.name} Tickets", opera_house.price) promotion_2 = Promotion.new promotion_2.add_qualifier(opera_house, 1) promotion_2.add_qualifier(sky_tower, 1) promotion_2.add_effect("Free #{sky_tower.name} with every #{opera_house.name}", sky_tower.price) promotion_3 = Promotion.new(apply_amount_for_each_match: false) promotion_3.add_qualifier(bridge_climb, 4) order = orders.last line_item = order.line_items[bridge_climb.id] total_discount = line_item.quantity * 20 promotion_3.add_effect("Bridge Climb Bulk Discount", total_discount) orders.each do |order| order.add_adjustments(promotion_1.process_order(order.line_items)) order.add_adjustments(promotion_2.process_order(order.line_items)) order.add_adjustments(promotion_3.process_order(order.line_items)) puts "------------------\n\n" puts order.print_total puts "\n" end <file_sep>module FileLoader def require_all(*globs) globs.each do |glob| Dir[File.dirname(__FILE__) + glob].each {|file| require file } end end end<file_sep>require 'factory_girl' require 'bigdecimal' require './lib/file_loader' include FileLoader require_all('/**/*.rb', '/../models/*.rb') RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods config.before(:suite) do FactoryGirl.find_definitions end end <file_sep>class Customer attr_accessor :order attr_accessor :id attr_accessor :email @@customers = [] def self.find(id) if @@customers.empty? @@customers = InputParser.customers_file(InputParser.data_dir + 'customers') end @@customers[id] end end<file_sep>require 'spec_helper' RSpec.describe Promotion do it "can have an arbitrary amount of qualifiers" do item_1 = build(:item) item_2 = build(:item) promotion = Promotion.new promotion.add_qualifier(item_1, 2) promotion.add_qualifier(item_2, 1) expect(promotion.qualifiers.length).to eq(2) end it "can have an arbitrary amount of effects" do item_1 = build(:item) item_2 = build(:item) promotion = Promotion.new promotion.add_effect("Some label", BigDecimal("20")) promotion.add_effect("Another label", BigDecimal("10")) expect(promotion.effects.length).to eq(2) end it "sets the amount of an effect correctly" do item_1 = build(:item) promotion = Promotion.new promotion.add_effect(item_1, item_1.price) expect(promotion.effects.first[:amount]).to eq item_1.price end it "defaults to applying for each match" do promotion = Promotion.new expect(promotion.apply_amount_for_each_match).to eq true end it "can set a flag to apply it for each match" do promotion = Promotion.new(apply_amount_for_each_match: false) expect(promotion.apply_amount_for_each_match).to eq false end context "processes" do it "a valid three for one deal" do order = build(:order_with_line_items, line_items_count: 1, default_quantity: 4) item = order.line_items[order.line_items.first.first].item promotion = Promotion.new promotion.add_qualifier(item, 4) promotion.add_effect("Buy 3, Get 1 Free", item.price) promotion.process_order(order.line_items) expect(promotion.total).to eq item.price end it "an invalid three for one deal" do order = build(:order_with_line_items, line_items_count: 1, default_quantity: 3) item = order.line_items[order.line_items.first.first].item promotion = Promotion.new promotion.add_qualifier(item, 4) promotion.add_effect("Buy 3, Get 1 Free", item.price) promotion.process_order(order.line_items) expect(promotion.total).to eq 0 end it "for a valid buy one get another free deal" do order = build(:order_with_line_items, line_items_count: 2, default_quantity: 1) promotion = Promotion.new item = nil order.line_items.keys.each do |key| item = order.line_items[key].item promotion.add_qualifier(item, 1) end promotion.add_effect("Buy 1, Get Another Free", item.price) promotion.process_order(order.line_items) expect(promotion.total).to eq item.price end it "for an invalid valid buy one get another free deal" do order = build(:order_with_line_items, line_items_count: 2, default_quantity: 1) item_1 = build(:item) item_2 = build(:item) promotion = Promotion.new promotion.add_qualifier(item_1, 1) promotion.add_qualifier(item_2, 1) promotion.add_effect("Buy 1, Get Another Free", item_2.price) promotion.process_order(order.line_items) expect(promotion.total).to eq 0 end it "checks for a valid bulk discount" do order = build(:order_with_line_items, line_items_count: 1, default_quantity: 4) line_item = order.line_items[order.line_items.first.first] item = line_item.item promotion = Promotion.new(apply_amount_for_each_match: false) promotion.add_qualifier(item, 4) total = line_item.quantity * (item.price - 20) promotion.add_effect("Buy 4, Get Each $20 off", total) promotion.process_order(order.line_items) expect(promotion.total).to eq total end it "checks for an invalid bulk discount" do order = build(:order_with_line_items, line_items_count: 1, default_quantity: 3) line_item = order.line_items[order.line_items.first.first] item = line_item.item promotion = Promotion.new(apply_amount_for_each_match: false) promotion.add_qualifier(item, 4) total = line_item.quantity * (item.price - 20) promotion.add_effect("Buy 4, Get Each $20 off", total) promotion.process_order(order.line_items) expect(promotion.total).to eq 0 end end end<file_sep>class Promotion attr_accessor :qualifiers attr_accessor :effects attr_accessor :apply_amount_for_each_match attr_accessor :results def initialize(attrs = {}) self.qualifiers = {} self.effects = [] self.results = [] self.apply_amount_for_each_match = attrs[:apply_amount_for_each_match].nil? ? true : attrs[:apply_amount_for_each_match] end def add_qualifier(item, quantity) self.qualifiers[item] = quantity end def add_effect(label, amount) effect = { label: label } effect[:amount] = amount self.effects << effect end def process_order(line_items) found = true matches = [] self.results = [] self.qualifiers.keys.each do |item| li = line_items[item.id] if found && li && li.quantity >= self.qualifiers[item] found = true matches << (self.apply_amount_for_each_match ? li.quantity / self.qualifiers[item] : 1) else found = false end end if found min = matches.min self.effects.each do |effect| self.results << Adjustment.new(label: effect[:label], amount: effect[:amount], quantity: min) end end results end def total self.results.inject(0) do |total, adjustment| total + (adjustment.amount * adjustment.quantity) end end end<file_sep>require 'spec_helper' RSpec.describe "CustomerCheckout" do end<file_sep>class Adjustment attr_accessor :label attr_accessor :amount attr_accessor :quantity def initialize(attrs = {}) self.label = attrs[:label] self.amount = attrs[:amount] self.quantity = attrs[:quantity] end def subtotal self.amount * self.quantity end end<file_sep>class InputParser class << self def orders_file(file) orders = [] File.open(file).each do |line| order = Order.new elements = line.chomp.split("\t") order.customer = Customer.find(elements.first.to_i) elements[1..-1].each do |e| order.add_line_item(Item.find(e)) end orders << order end orders end def customers_file(file) customers = [] File.open(file).each do |line| customer = Customer.new elements = line.chomp.split("\t") customer.id = elements.first.to_i customer.email = elements.last customers[customer.id] = customer end customers end def items_file(file) items = {} File.open(file).each do |line| item = Item.new elements = line.chomp.split("\t") item.id = elements.first item.name = elements[1] item.price = BigDecimal(elements[2].sub('$', '')) items[item.id] = item end items end def data_dir File.dirname(__FILE__) + '/../data/input/' end end end<file_sep>class Order attr_accessor :line_items attr_accessor :customer attr_accessor :adjustments attr_accessor :promotions def initialize self.line_items = {} self.adjustments = [] self.promotions = [] end def add_line_item(item) if self.line_items[item.id] self.line_items[item.id].quantity += 1 else li = LineItem.new li.item = item li.price = item.price li.quantity = 1 li.order = self self.line_items[item.id] = li end end def add_adjustment(adjustment) self.adjustments << adjustment end def add_adjustments(adjustments) adjustments.each do |a| self.adjustments << a end end def add_promotion(promotion) self.promotions << promotion end def total total_line_items - total_adjustments end def total_line_items self.line_items.keys.inject(0) do |result, key| result + line_items[key].subtotal end end def total_adjustments self.adjustments.inject(0) do |result, adjustment| result + adjustment.subtotal end end def count_adjustments adjustments.length end def count_line_items line_items.length end def count_all_line_items line_items.keys.inject(0) do |result, key| result + line_items[key].quantity end end def print_total output = header output += "\nItems\n" self.line_items.keys.each do |key| output += "#{line_items[key].quantity} | " output += "#{line_items[key].item.name} | " output += "#{line_items[key].subtotal}\n" end if adjustments.length > 0 output += "\nDiscounts\n" self.adjustments.each do |adjustment| output += "#{adjustment.quantity} | " output += "#{adjustment.label} | " output += "#{adjustment.subtotal}\n" end output += "\nTotal Discounts: #{total_adjustments}" end output += "\nOrder Total: #{total}\n" output end def header "Quantity | Item Name | Subtotal\n" end end<file_sep>FactoryGirl.define do factory :item do sequence(:name) { |i| "item_#{i}" } sequence(:id) { |i| i } price BigDecimal("10") end factory :adjustment do sequence(:label) { |i| "label_#{i}" } amount BigDecimal("5") quantity 1 end factory :customer do sequence(:email) { |i| "<EMAIL>" } end factory :order do association :customer, strategy: :build factory :order_with_line_items do transient do line_items_count 5 default_quantity 2 end after(:build) do |order, evaluator| evaluator.line_items_count.times do item = build(:item) evaluator.default_quantity.times do order.add_line_item(item) end end end factory :order_with_line_items_and_adjustments do transient do adjustments_count 2 end after(:build) do |order, evaluator| order.adjustments = build_list(:adjustment, evaluator.adjustments_count) end end factory :order_with_line_items_and_promotions do transient do promotions_count = 2 after(:build) do |order, evaluator| order.promotions = build_list(:promotion, evaluator.promotions_count) end end end end end factory :line_item do # association :order, strategy: :build after(:build) do |line_item, evaluator| item = build(:item) line_item.item = item line_item.price = item.price end end factory :promotion do factory :promotion_with_qualifiers do transient do qualifers_count = 2 end after(:build) do |promotion, evaluator| promotion.qualifiers = build_list(:qualifier, evaluator.qualifiers_count) end end end end<file_sep>class Item attr_accessor :id attr_accessor :name attr_accessor :price @@items = {} def self.find(id) if @@items.empty? @@items = InputParser.items_file(InputParser.data_dir + 'items') end @@items[id] end end
61b1899d08996f613b03820496cf36d68ae8550d
[ "Ruby" ]
15
Ruby
luisc/cartchallenge
608a7216b7e28ef7427630350ae3aa45fc9bc956
a677d2cfb29419f471c6e605f581dfd481eaf707
refs/heads/master
<repo_name>armved/node-workshop<file_sep>/index.js const express = require('express'); const low = require('lowdb'); const FileSync = require('lowdb/adapters/FileSync'); const bodyParser = require('body-parser'); const uuid = require('uuid'); const passport = require('passport'); const LocalStrategy = require('passport-local'); const md5 = require('md5'); const carValidator = require('./validators/cars'); const app = express(); const adapter = new FileSync('db.json'); const db = low(adapter); passport.use(new LocalStrategy((username, password, done) => { const user = db.get('users').find({username}).value(); console.log(user); if (!user || user.password !== password) { return done(null, false); } return done(null, user); })) app.use(bodyParser.json()) const {NODE_ENV, PORT, SECRET} = process.env; const apiRoutes = express.Router(); const authUser = (req, res, next) => { const token = req.headers['x-token']; const session = db.get('sessions').find({token}).value(); if (!session) { return res.sendStatus(401); } next() } apiRoutes.get('/hc', (req,res) => { res.json({ status: 'OK', }) }); apiRoutes.post('/login', passport.authenticate('local', {session: false}), (req, res) => { const token = md5(`${SECRET} ${Math.random()}`); db.get('sessions').push({username: req.body.username, token}).write(); res.status(200).json(token); }) apiRoutes.get('/cars', (req,res) => { const cars = db.get('cars'); res.json(cars); }); apiRoutes.post('/cars', authUser, carValidator, (req,res) => { const car = { id: uuid.v4(), title: req.body.title, number: req.body.number, model: req.body.model, }; db.get('cars').push(car).write(); res.status(201).json(car); }); apiRoutes.put('/cars/:id', (req,res) => { const {id} = req.params; const newCar = { title: req.body.title, number: req.body.number, model: req.body.model, }; const car = db.get('cars').find({id}).assign(newCar).write(); if (!car) { res.status(404).json({message: 'Car not found'}); } res.json(car) }); apiRoutes.delete('/cars/:id', (req,res) => { const {id} = req.params; const car = db.get('cars').find({id}).value(); if (!car) { res.status(404).json({message: 'Car not found'}); } db.get('cars').remove({id}).write(); res.json(204); }); apiRoutes.get('/cars/:id', (req,res) => { const {id} = req.params; const car = db.get('cars').find({id}).value() if (!car) { res.json(404, {message: 'Car not found'}); } res.json(car); }); app.use('/api/v1', apiRoutes); app.listen(PORT, () => { console.log(`Taxi app is listening on port ${PORT}`) })
7878b1f55d9bed78d4dc3c3f4475703eb785d6e7
[ "JavaScript" ]
1
JavaScript
armved/node-workshop
3c3b25c2c2550d7b41b30145f2b50a4a44126110
c4211ca9028e39f38c58a57e7cd4f63ed6c41327
refs/heads/master
<file_sep>import os import json import logging from functools import wraps from flask import Flask, redirect, render_template, request, send_from_directory, Response, make_response log_file = 'dumpass.log' logger = logging.getLogger('honeypot') logger.setLevel(logging.DEBUG) fh = logging.FileHandler(log_file) fh.setLevel(logging.DEBUG) # create formatter and add it to the handlers formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') fh.setFormatter(formatter) logger.addHandler(fh) def create_app(test_config=None): app = Flask(__name__, instance_relative_config=True) @app.errorhandler(404) def page_not_found(e): # note that we set the 404 status explicitly return render_template('404.html'), 404 @app.errorhandler(403) def page_no_access(e): # note that we set the 404 status explicitly return render_template('403.html'), 403 @app.errorhandler(401) def page_auth_required(e): # note that we set the 404 status explicitly return render_template('401.html'), 401 app.register_error_handler(404, page_not_found) app.register_error_handler(403, page_no_access) app.register_error_handler(401, page_auth_required) app.config.from_mapping( SECRET_KEY='dev', ) print(app.static_folder) # ensure the instance folder exists try: os.makedirs(app.instance_path) except OSError: pass def check_auth(username, password): logger.info(f"{request.base_url}|{username}:{password}") return False def authenticate(): """Sends a 401 response that enables basic auth""" return Response( 'Could not verify your access level for that URL.\n' 'You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) def requires_auth(f): @wraps(f) def decorated(*args, **kwargs): auth = request.authorization if not auth or not check_auth(auth.username, auth.password): return authenticate() return f(*args, **kwargs) return decorated def add_response_headers(headers={}): """This decorator adds the headers passed in to the response""" def decorator(f): @wraps(f) def decorated_function(*args, **kwargs): resp = make_response(f(*args, **kwargs)) h = resp.headers for header, value in headers.items(): h[header] = value return resp return decorated_function return decorator def changeheader(f): return add_response_headers({"Server": "Microsoft-IIS/7.5", "X-Powered-By": "ASP.NET"})(f) @app.route('/Abs/') @app.route('/aspnet_client/') @app.route('/Autodiscover/') @app.route('/AutoUpdate/') @app.route('/CertEnroll/') @app.route('/CertSrv/') @app.route('/Conf/') @app.route('/DeviceUpdateFiles_Ext/') @app.route('/DeviceUpdateFiles_Int/') @app.route('/ecp/') @app.route('/Etc/') @app.route('/EWS/') @app.route('/Exchweb/') @app.route('/GroupExpansion/') @app.route('/Microsoft-Server-ActiveSync/') @app.route('/OAB/') @app.route('/ocsp/') @app.route('/PhoneConferencing/') @app.route('/PowerShell/') @app.route('/Public/') @app.route('/RequestHandler/') @app.route('/RequestHandlerExt/') @app.route('/Rgs/') @app.route('/Rpc/') @app.route('/RpcWithCert/') @app.route('/UnifiedMessaging/') @changeheader @requires_auth def stub_redirect(): return redirect('/') @app.route('/owa/auth/15.1.1466/themes/resources/segoeui-regular.ttf', methods=['GET']) @changeheader def font_segoeui_regular_ttf(): return send_from_directory(app.static_folder, filename='segoeui-regular.ttf', conditional=True) @app.route('/owa/auth/15.1.1466/themes/resources/segoeui-semilight.ttf', methods=['GET']) @changeheader def font_segoeui_semilight_ttf(): return send_from_directory(app.static_folder, filename='segoeui-semilight.ttf', conditional=True) @app.route('/owa/auth/15.1.1466/themes/resources/favicon.ico', methods=['GET']) @changeheader def favicon_ico(): return send_from_directory(app.static_folder, filename='favicon.ico', conditional=True) @app.route('/owa/auth.owa', methods=['GET', 'POST']) @changeheader def auth(): ua = request.headers.get('User-Agent') ip = request.remote_addr if request.method == 'GET': return redirect('/owa/auth/logon.aspx?replaceCurrent=1&reason=3&url=', 302) else: passwordText = "" password = "" username = "" if "username" in request.form: username = request.form["username"] if "password" in request.form: password = request.form["password"] if "passwordText" in request.form: passwordText = request.form["passwordText"] logger.info(f"{request.base_url}|{username}:{password}|{ip}|{ua}") return redirect('/owa/auth/logon.aspx?replaceCurrent=1&reason=2&url=', 302) @app.route('/owa/auth/logon.aspx', methods=['GET']) @changeheader def owa(): return render_template("outlook_web.html") @app.route('/') @app.route('/exchange/') @app.route('/webmail/') @app.route('/exchange') @app.route('/webmail') @changeheader def index(): return redirect('/owa/auth/logon.aspx?replaceCurrent=1&url=', 302) return app if __name__ == "__main__": if __name__ == '__main__': create_app().run(debug=False,port=80, host="0.0.0.0")<file_sep># owa-honeypot A basic flask based Outlook Web Honey pot ![](docs/OWA_honeypot_1.png) ## why? Most corps have some form of OWA and I couldn't find an out of the box OWA only honeypot (I'm sure if I spent more than 2 minutes googling I probably would have found one) and I wanted to mess around with some ideas I have. So I spent some time putting this together, maybe it could help someone else :) ## requirements python3 + flask ## how to install git clone https://github.com/joda32/owa-honeypot.git cd owa-honeypot python3 -m venv env source env/bin/activate pip install -r requirements.txt python owa_pot.py ## here be dragons! In the code I basically start the flask dev server on port 80, that is a really bad idea if you want to run it on the internet. I have a todo to change that. :) Anyway, it did work for what I wanted. I've added a crude write up here (https://joda32.github.io/2019/06/11/owa-plus-pastebin.html) ![](docs/OWA_honeypot_2.png) ![](docs/OWA_honeypot_3.png)
6a4c30b2facdc6f8a85ee88fe711fe5fdab28bfe
[ "Markdown", "Python" ]
2
Python
andreweng/owa-honeypot
17d7166c3dc319e6acd9eb7343e9fa9eef225562
d6c62f3642724cb1c0bac9a0dbaead8b0e981018
refs/heads/master
<file_sep>from flask import Flask from flask_restful import Resource, reqparse, Api app = Flask(__name__) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['PROPAGATE_EXCEPTIONS'] = True from data import NganhHoc, db db.init_app(app) app.app_context().push() db.create_all() class NganhHoc_List(Resource): parser = reqparse.RequestParser() parser.add_argument('mo_ta', type=str, required=False, help='Mo ta co ban ve Nganh') parser.add_argument('khoa', type=str, required=False, help='Nganh thuoc Khoa') parser.add_argument('website', type=str, required=False, help='Website của Khoa') parser.add_argument('ma', type=str, required=False, help='Ma Nganh') parser.add_argument('chi_tieu', type=int, required=False, help='Chi tieu của Nganh') parser.add_argument('to_hop_xet_tuyen', type=str, required=False, help='To hop xet tuyen cua Nganh') parser.add_argument('diem_2015', type=str, required=False, help='Diem san 2015 cua Nganh') parser.add_argument('diem_2016', type=str, required=False, help='Diem san 2016 cua Nganh') parser.add_argument('diem_2017', type=str, required=False, help='Diem san 2017 cua Nganh') parser.add_argument('diem_2018', type=str, required=False, help='Diem san 2018 cua Nganh') parser.add_argument('chuong_trinh', type=str, required=False, help='Chuong trinh dao tao cua Nganh') parser.add_argument('so_tin', type=int, required=False, help='Tong so tin chi cua Nganh') parser.add_argument('co_hoi_nn', type=str, required=False, help='Co hoi nghe nghiep cua Nganh') def get(self, nganh): item = NganhHoc.find_by_name(nganh) if item: return item.json() return {'Message': 'Nganh hoc khong ton tai.'} def post(self, nganh): if NganhHoc.find_by_name(nganh): return {'Message': '{} da ton tai.'.format(nganh)} args = NganhHoc_List.parser.parse_args() item = NganhHoc(nganh, args['mo_ta'], args['khoa'], args['website'], args['ma'], args['chi_tieu'], args['to_hop_xet_tuyen'], args['diem_2015'], args['diem_2016'], args['diem_2017'], args['diem_2018'], args['chuong_trinh'], args['so_tin'], args['co_hoi_nn']) item.save_to() return item.json() def put(self, nganh): args = NganhHoc_List.parser.parse_args() item = NganhHoc.find_by_name(nganh) if item: item.mo_ta = args['mo_ta'] item.khoa = args['khoa'] item.website = args['website'] item.ma = args['ma'] item.chi_tieu = args['chi_tieu'] item.to_hop_xet_tuyen = args['to_hop_xet_tuyen'] item.diem_2015 = args['diem_2015'] item.diem_2016 = args['diem_2016'] item.diem_2017 = args['diem_2017'] item.diem_2018 = args['diem_2018'] item.chuong_trinh = args['chuong_trinh'] item.so_tin = args['so_tin'] item.co_hoi_nn = args['co_hoi_nn'] item.save_to() return {'Nganh': item.json()} item = NganhHoc(nganh, args['mo_ta'], args['khoa'], args['website'], args['ma'], args['chi_tieu'], args['to_hop_xet_tuyen'], args['diem_2015'], args['diem_2016'], args['diem_2017'], args['diem_2018'], args['chuong_trinh'], args['so_tin'], args['co_hoi_nn']) item.save_to() return item.json() def delete(self, nganh): item = NganhHoc.find_by_name(nganh) if item: item.delete_() return {'Message': '{} da duoc xoa.'.format(nganh)} return {'Message': '{} khong ton tai'.format(nganh)} class All_NganhHoc(Resource): def get(self): return {'NganhHoc': list(map(lambda x: x.json(), NganhHoc.query.all()))} api.add_resource(All_NganhHoc, '/') api.add_resource(NganhHoc_List, '/<string:nganh>') if __name__=='__main__': app.run(debug=True)<file_sep>## Story 001 * greeting - utter_greet * get_mo_ta - utter_get_mo_ta * get_mo_ta{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_mo_ta_action - slot{"location": "Khoa hoc may tinh"} * get_khoa{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_khoa_action - slot{"location": "Khoa hoc may tinh"} * get_ma{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_ma_action - slot{"location": "Khoa hoc may tinh"} * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chi_tieu_action - slot{"location": "Khoa hoc may tinh"} * get_to_hop{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_to_hop_action - slot{"location": "Khoa hoc may tinh"} * get_diem{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_diem_action - slot{"location": "Khoa hoc may tinh"} * get_tin_chi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_tin_chi_action - slot{"location": "Khoa hoc may tinh"} * get_chuong_trinh{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chuong_trinh_action - slot{"location": "Khoa hoc may tinh"} * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_thanks - utter_get_thanks ## Story 002 * greeting - utter_greet * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Luat"} - get_chi_tieu_action - slot{"location": "Luat"} * get_diem{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_diem_action - slot{"location": "Ke toan"} * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_hinh_thuc - utter_get_hinh_thuc * get_tuyen_thang - utter_get_tuyen_thang * get_thanks - utter_get_thanks ## Story 003 * greeting - utter_greet * get_mo_ta{"location": "Khoa hoc may tinh"} - slot{"location": "Ke toan"} - get_mo_ta_action - slot{"location": "Ke toan"} * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Luat"} - get_chi_tieu_action - slot{"location": "Luat"} * get_diem{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_diem_action - slot{"location": "Ke toan"} * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_hoc_phi - utter_get_hoc_phi * get_ty_le - utter_get_ty_le * get_thanks - utter_get_thanks ## Story 004 * greeting - utter_greet * get_mo_ta - utter_get_mo_ta * get_mo_ta{"location": "Luat"} - slot{"location": "Luat"} - get_mo_ta_action - slot{"location": "Luat"} * get_hoc_phi - utter_get_hoc_phi * get_ma{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_ma_action - slot{"location": "Ke toan"} * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chi_tieu_action - slot{"location": "Khoa hoc may tinh"} * get_to_hop{"location": "Quan tri kinh doanh"} - slot{"location": "Quan tri kinh doanh"} - get_to_hop_action - slot{"location": "Quan tri kinh doanh"} * get_diem{"location": "Quan tri kinh doanh"} - slot{"location": "Quan tri kinh doanh"} - get_diem_action - slot{"location": "Quan tri kinh doanh"} * get_tin_chi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_tin_chi_action - slot{"location": "Khoa hoc may tinh"} * get_chuong_trinh{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chuong_trinh_action - slot{"location": "Khoa hoc may tinh"} * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_thanks - utter_get_thanks ## Story 005 * greeting - utter_greet * get_hoc_phi - utter_get_hoc_phi * get_ma{"location": "Bao hiem"} - slot{"location": "Bao hiem"} - get_ma_action - slot{"location": "Bao hiem"} * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chi_tieu_action - slot{"location": "Khoa hoc may tinh"} * get_to_hop{"location": "Quan tri kinh doanh"} - slot{"location": "Quan tri kinh doanh"} - get_to_hop_action - slot{"location": "Quan tri kinh doanh"} * get_diem{"location": "Bat dong san"} - slot{"location": "Bat dong san"} - get_diem_action - slot{"location": "Bat dong san"} * get_hoc_phi - utter_get_hoc_phi * get_dau_ra - utter_get_dau_ra * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_thanks - utter_get_thanks ## Story 006 * greeting - utter_greet * get_diem{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_diem_action - slot{"location": "Ke toan"} * get_chuong_trinh{"location": "Luat"} - slot{"location": "Luat"} - get_chuong_trinh_action - slot{"location": "Luat"} * get_song_song - utter_get_song_song * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_lien_ket_qte - utter_get_lien_ket_qte * get_thanks - utter_get_thanks ## Story 007 * greeting - utter_greet * get_diem{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_diem_action - slot{"location": "Ke toan"} * get_ty_le - utter_get_ty_le * get_ma{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_ma_action - slot{"location": "Khoa hoc may tinh"} * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chi_tieu_action - slot{"location": "Khoa hoc may tinh"} * get_luu_hs - utter_get_luu_hs * get_chuong_trinh{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chuong_trinh_action - slot{"location": "Khoa hoc may tinh"} * get_lien_he - utter_get_lien_he * get_thanks - utter_get_thanks ## Story 008 * greeting - utter_greet * get_ma{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_ma_action - slot{"location": "Khoa hoc may tinh"} * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chi_tieu_action - slot{"location": "Khoa hoc may tinh"} * get_to_hop{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_to_hop_action - slot{"location": "Ke toan"} * get_diem{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_diem_action - slot{"location": "Khoa hoc may tinh"} * get_chuong_trinh{"location": "Luat"} - slot{"location": "Luat"} - get_chuong_trinh_action - slot{"location": "Luat"} * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_ty_le - utter_get_ty_le * get_lien_ket_qte - utter_get_lien_ket_qte * get_hoc_phi - utter_get_hoc_phi * get_thanks - utter_get_thanks ## Story 009 * greeting - utter_greet ## Story 010 * get_mo_ta{"location": "Luat"} - slot{"location": "Luat"} - get_mo_ta_action - slot{"location": "Luat"} ## Story 011 * get_lien_he - utter_get_lien_he ## Story 012 * get_hinh_thuc - utter_get_hinh_thuc ## Story 013 * get_tuyen_thang - utter_get_tuyen_thang ## Story 014 * get_lien_ket_qte - utter_get_lien_ket_qte ## Story 015 * get_song_song - utter_get_song_song ## Story 016 * get_dau_ra - utter_get_dau_ra ## Story 017 * get_hoc_bong - utter_get_hoc_bong ## Story 018 * get_ty_le - utter_get_ty_le ## Story 019 * get_luu_hs - utter_get_luu_hs ## Story 020 * get_hoc_phi - utter_get_hoc_phi ## Story 022 * get_khoa{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_khoa_action - slot{"location": "Khoa hoc may tinh"} ## Story 023 * get_ma{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_ma_action - slot{"location": "Khoa hoc may tinh"} ## Story 024 * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chi_tieu_action - slot{"location": "Khoa hoc may tinh"} ## Story 025 * get_to_hop{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_to_hop_action - slot{"location": "Ke toan"} ## Story 026 * get_diem{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_diem_action - slot{"location": "Ke toan"} ## Story 027 * get_tin_chi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_tin_chi_action - slot{"location": "Khoa hoc may tinh"} ## Story 028 * get_chuong_trinh{"location": "Luat"} - slot{"location": "Luat"} - get_chuong_trinh_action - slot{"location": "Luat"} ## Story 029 * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} ## Story 030 * get_thanks - utter_get_thanks<file_sep>from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class NganhHoc(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True, nullable=False) mo_ta = db.Column(db.String(255), unique=False, nullable=False) khoa = db.Column(db.String(50), unique=False, nullable=False) website = db.Column(db.String(50), unique=False, nullable=False) ma = db.Column(db.String(10), unique=False, nullable=False) chi_tieu = db.Column(db.Integer, unique=False, nullable=False) to_hop_xet_tuyen = db.Column(db.String(30), unique=False, nullable=False) diem_2015 = db.Column(db.String(10), unique=False, nullable=False) diem_2016 = db.Column(db.String(10), unique=False, nullable=False) diem_2017 = db.Column(db.String(10), unique=False, nullable=False) diem_2018 = db.Column(db.String(10), unique=False, nullable=False) chuong_trinh = db.Column(db.String(255), unique=False, nullable=False) so_tin = db.Column(db.Integer, unique=False, nullable=False) co_hoi_nn = db.Column(db.String(255), unique=False, nullable=False) def __init__(self, name, mo_ta, khoa, website, ma, chi_tieu, to_hop_xet_tuyen, diem_2015, diem_2016, diem_2017, diem_2018, chuong_trinh, so_tin, co_hoi_nn): self.name = name self.mo_ta = mo_ta self.khoa = khoa self.website = website self.ma = ma self.chi_tieu = chi_tieu self.to_hop_xet_tuyen = to_hop_xet_tuyen self.diem_2015 = diem_2015 self.diem_2016 = diem_2016 self.diem_2017 = diem_2017 self.diem_2018 = diem_2018 self.chuong_trinh = chuong_trinh self.so_tin = so_tin self.co_hoi_nn = co_hoi_nn def json(self): return {'Name': self.name, 'Mo ta': self.mo_ta, 'Khoa': self.khoa, 'Website': self.website, 'Ma': self.ma, 'Chi tieu': self.chi_tieu, 'To hop xet tuyen': self.to_hop_xet_tuyen, 'Diem 2015': self.diem_2015, 'Diem 2016': self.diem_2016, 'Diem 2017': self.diem_2017, 'Diem 2018': self.diem_2018, 'Chuong trinh dao tao': self.chuong_trinh, 'Tong so tin chi': self.so_tin, 'Co hoi nghe nghiep': self.co_hoi_nn} @classmethod def find_by_name(cls, name): return cls.query.filter_by(name=name).first() def save_to(self): db.session.add(self) db.session.commit() def delete_(self): db.session.delete(self) db.session.commit() <file_sep>from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import requests from rasa_core_sdk import Action from rasa_core_sdk.events import SlotSet class GetMoTaAction(Action): def name(self): return "get_mo_ta_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) moTa = res.json()['Mo ta'] response = "Doi voi sinh vien {} {}".format(loc, moTa) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetKhoaAction(Action): def name(self): return "get_khoa_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) khoa = res.json()['Khoa'] response = "Nganh {} thuoc {} a.".format(loc, khoa) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetMaAction(Action): def name(self): return "get_ma_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) ma = res.json()['Ma'] response = "Nganh {} co ma tuyen sinh la {}".format(loc, ma) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetChiTieuAction(Action): def name(self): return "get_chi_tieu_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) chiTieu = res.json()['Chi tieu'] response = "Nganh {} co chi tieu tuyen sinh la {}".format(loc, chiTieu) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetToHopAction(Action): def name(self): return "get_to_hop_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) toHop = res.json()['To hop xet tuyen'] response = "Nganh {} xet tuyen cac khoi {}".format(loc, toHop) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetDiemAction(Action): def name(self): return "get_diem_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) diem2015 = res.json()['Diem 2015'] diem2016 = res.json()['Diem 2016'] diem2017 = res.json()['Diem 2017'] diem2018 = res.json()['Diem 2018'] response = "Nganh {} co diem xet tuyen nam 2015 la: {}, 2016 la: {}, 2017 la: {}, 2018 la: {}. Luu y: Nhung nam co diem xet tuyen bang 00.00 la nhung nam nha truong chua to chuc tuyen sinh.".format(loc, diem2015, diem2016, diem2017, diem2018) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetTinChiAction(Action): def name(self): return "get_tin_chi_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) tinChi = res.json()['Tong so tin chi'] response = "Nganh {} tong so tin chi la: {}".format(loc, tinChi) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetChuongTrinhAction(Action): def name(self): return "get_chuong_trinh_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) chuongTrinh = res.json()['Chuong trinh dao tao'] response = "Nganh {} co {}".format(loc, chuongTrinh) dispatcher.utter_message(response) return [SlotSet("location", loc)] class GetCoHoiAction(Action): def name(self): return "get_co_hoi_action" def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] loc = tracker.get_slot('location').capitalize() base_url = "https://neu-api.herokuapp.com/{nganh}" url = base_url.format(**{'nganh': loc}) res = requests.get(url) coHoi = res.json()['Co hoi nghe nghiep'] response = "{}".format(coHoi) dispatcher.utter_message(response) return [SlotSet("location", loc)] <file_sep>## Generated Story 4168326957615471532 * greeting - utter_greet * get_mo_ta - utter_get_mo_ta * get_mo_ta{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_mo_ta_action - slot{"location": "Khoa hoc may tinh"} * get_khoa{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_khoa_action - slot{"location": "Khoa hoc may tinh"} * get_ma{"location": "Luat"} - slot{"location": "Luat"} - get_ma_action - slot{"location": "Luat"} * get_chi_tieu{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chi_tieu_action - slot{"location": "Khoa hoc may tinh"} * get_to_hop{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_to_hop_action - slot{"location": "Khoa hoc may tinh"} * get_diem{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_diem_action - slot{"location": "Khoa hoc may tinh"} * get_tin_chi{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_tin_chi_action - slot{"location": "Ke toan"} * get_chuong_trinh{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chuong_trinh_action - slot{"location": "Khoa hoc may tinh"} * get_co_hoi{"location": "Luat"} - slot{"location": "Luat"} - get_co_hoi_action - slot{"location": "Luat"} * get_thanks - utter_get_thanks ## Generated Story -6551132627721492930 * greeting - utter_greet * get_chi_tieu{"location": "Cong nghe thong tin"} - slot{"location": "Cong nghe thong tin"} - get_chi_tieu_action - slot{"location": "Cong nghe thong tin"} * get_diem{"location": "Luat"} - slot{"location": "Luat"} - get_diem_action - slot{"location": "Luat"} * get_co_hoi{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_co_hoi_action - slot{"location": "Ke toan"} * get_hinh_thuc - utter_get_hinh_thuc * get_tuyen_thang - utter_get_tuyen_thang * get_thanks - utter_get_thanks ## Generated Story -1421229168566207754 * greeting - utter_greet * get_mo_ta{"location": "Luat"} - slot{"location": "Luat"} - get_mo_ta_action - slot{"location": "Luat"} * get_chi_tieu{"location": "Quan ly cong"} - slot{"location": "Quan ly cong"} - get_chi_tieu_action - slot{"location": "Quan ly cong"} * get_diem{"location": "Kinh te quoc te"} - slot{"location": "Kinh te quoc te"} - get_diem_action - slot{"location": "Kinh te quoc te"} * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_hoc_phi - utter_get_hoc_phi * get_ty_le - utter_get_ty_le * get_thanks - utter_get_thanks ## Generated Story 8756349608043592294 * greeting - utter_greet * get_mo_ta - utter_get_mo_ta * get_mo_ta{"location": "Luat"} - slot{"location": "Luat"} - get_mo_ta_action - slot{"location": "Luat"} * get_hoc_phi - utter_get_hoc_phi * get_ma{"location": "Kinh te nong nghiep"} - slot{"location": "Kinh te nong nghiep"} - get_ma_action - slot{"location": "Kinh te nong nghiep"} * get_chi_tieu{"location": "Bat dong san"} - slot{"location": "Bat dong san"} - get_chi_tieu_action - slot{"location": "Bat dong san"} * get_to_hop{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_to_hop_action - slot{"location": "Khoa hoc may tinh"} * get_diem{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_diem_action - slot{"location": "Khoa hoc may tinh"} * get_tin_chi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_tin_chi_action - slot{"location": "Khoa hoc may tinh"} * get_chuong_trinh{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_chuong_trinh_action - slot{"location": "Ke toan"} * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_thanks - utter_get_thanks ## Generated Story 80554265870943106 * greeting - utter_greet * get_hoc_phi - utter_get_hoc_phi * get_ma{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_ma_action - slot{"location": "Khoa hoc may tinh"} * get_chi_tieu{"location": "Bat dong san"} - slot{"location": "Bat dong san"} - get_chi_tieu_action - slot{"location": "Bat dong san"} * get_to_hop{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_to_hop_action - slot{"location": "Ke toan"} * get_diem{"location": "Cong nghe thong tin"} - slot{"location": "Cong nghe thong tin"} - get_diem_action - slot{"location": "Cong nghe thong tin"} * get_dau_ra - utter_get_dau_ra * get_co_hoi{"location": "Kinh te"} - slot{"location": "Kinh te"} - get_co_hoi_action - slot{"location": "Kinh te"} * get_thanks - utter_get_thanks ## Generated Story -6257642384839635128 * greeting - utter_greet * get_diem{"location": "Quan he cong chung"} - slot{"location": "Quan he cong chung"} - get_diem_action - slot{"location": "Quan he cong chung"} * get_chuong_trinh{"location": "Tai chinh ngan hang"} - slot{"location": "Tai chinh ngan hang"} - get_chuong_trinh_action - slot{"location": "Tai chinh ngan hang"} * get_song_song - utter_get_song_song * get_co_hoi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_co_hoi_action - slot{"location": "Khoa hoc may tinh"} * get_lien_ket_qte - utter_get_lien_ket_qte * get_thanks - utter_get_thanks ## Generated Story 1290964861350128171 * greeting - utter_greet * get_diem{"location": "Quan he cong chung"} - slot{"location": "Quan he cong chung"} - get_diem_action - slot{"location": "Quan he cong chung"} * get_ty_le - utter_get_ty_le * get_ma{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_ma_action - slot{"location": "Khoa hoc may tinh"} * get_chi_tieu{"location": "Dau tu tai chinh"} - slot{"location": "Dau tu tai chinh"} - get_chi_tieu_action - slot{"location": "Dau tu tai chinh"} * get_luu_hs - utter_get_luu_hs * get_chuong_trinh{"location": "Tai chinh ngan hang"} - slot{"location": "Tai chinh ngan hang"} - get_chuong_trinh_action - slot{"location": "Tai chinh ngan hang"} * get_lien_he - utter_get_lien_he * get_thanks - utter_get_thanks ## Generated Story -2732168700438665020 * greeting - utter_greet * get_ma{"location": "Luat"} - slot{"location": "Luat"} - get_ma_action - slot{"location": "Luat"} * get_chi_tieu{"location": "Quan ly cong"} - slot{"location": "Quan ly cong"} - get_chi_tieu_action - slot{"location": "Quan ly cong"} * get_to_hop{"location": "Toan kinh te"} - slot{"location": "Toan kinh te"} - get_to_hop_action - slot{"location": "Toan kinh te"} * get_diem{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_diem_action - slot{"location": "Khoa hoc may tinh"} * get_chuong_trinh{"location": "Ke toan"} - slot{"location": "Ke toan"} - get_chuong_trinh_action - slot{"location": "Ke toan"} * get_co_hoi{"location": "Luat"} - slot{"location": "Luat"} - get_co_hoi_action - slot{"location": "Luat"} * get_ty_le - utter_get_ty_le * get_lien_ket_qte - utter_get_lien_ket_qte * get_hoc_phi - utter_get_hoc_phi * get_thanks - utter_get_thanks ## Generated Story -2018586535437227357 * greeting - utter_greet ## Generated Story 7571538070978324788 * get_mo_ta{"location": "Luat"} - slot{"location": "Luat"} - get_mo_ta_action - slot{"location": "Luat"} ## Generated Story 6763160493588551505 * get_lien_he - utter_get_lien_he ## Generated Story 1026927800424267489 * get_hinh_thuc - utter_get_hinh_thuc ## Generated Story 8905139104870524144 * get_tuyen_thang - utter_get_tuyen_thang ## Generated Story 4442233416114033116 * get_lien_ket_qte - utter_get_lien_ket_qte ## Generated Story 3079057262200916886 * get_song_song - utter_get_song_song ## Generated Story -7426929950703497598 * get_dau_ra - utter_get_dau_ra ## Generated Story 5349375603627724273 * get_hoc_bong - utter_get_hoc_bong ## Generated Story 6847810557705098408 * get_ty_le - utter_get_ty_le ## Generated Story -4932736512148539555 * get_luu_hs - utter_get_luu_hs ## Generated Story -5471687034634600634 * get_hoc_phi - utter_get_hoc_phi ## Generated Story -4919744224817052938 * get_khoa{"location": "Luat"} - slot{"location": "Luat"} - get_khoa_action - slot{"location": "Luat"} ## Generated Story 220483968964023760 * get_ma{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_ma_action - slot{"location": "Khoa hoc may tinh"} ## Generated Story -3610145236833229422 * get_chi_tieu{"location": "Quan ly cong"} - slot{"location": "Quan ly cong"} - get_chi_tieu_action - slot{"location": "Quan ly cong"} ## Generated Story -4135836788238146720 * get_to_hop{"location": "Dau tu tai chinh"} - slot{"location": "Dau tu tai chinh"} - get_to_hop_action - slot{"location": "Dau tu tai chinh"} ## Generated Story 2077650512378597949 * get_diem{"location": "Cong nghe thong tin"} - slot{"location": "Cong nghe thong tin"} - get_diem_action - slot{"location": "Cong nghe thong tin"} ## Generated Story 1676668230673827172 * get_tin_chi{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_tin_chi_action - slot{"location": "Khoa hoc may tinh"} ## Generated Story -4453345234494849927 * get_chuong_trinh{"location": "Khoa hoc may tinh"} - slot{"location": "Khoa hoc may tinh"} - get_chuong_trinh_action - slot{"location": "Khoa hoc may tinh"} ## Generated Story 2440417915710619128 * get_co_hoi{"location": "Luat"} - slot{"location": "Luat"} - get_co_hoi_action - slot{"location": "Luat"} ## Generated Story 2648361244489658349 * get_thanks - utter_get_thanks <file_sep>from rasa_core.channels.facebook import FacebookInput from rasa_core.agent import Agent from rasa_core.interpreter import RasaNLUInterpreter import os from rasa_core.utils import EndpointConfig # load your trained agent interpreter = RasaNLUInterpreter("models/nlu/default/botneu/") MODEL_PATH = "models/dialogue" print(MODEL_PATH) action_endpoint = EndpointConfig(url="https://doanneu1-actions.herokuapp.com/webhook") print("action_endpoint", action_endpoint) agent = Agent.load(MODEL_PATH, interpreter=interpreter, action_endpoint=action_endpoint) print("agent") input_channel = FacebookInput( fb_verify="chat-bot", # you need tell facebook this token, to confirm your URL fb_secret="06191183529878f9ed1041db6aa07d41", # your app secret fb_access_token="<KEY>" # token for the page you subscribed to ) print("here") # set serve_forever=False if you want to keep the server running s = agent.handle_channels([input_channel], int(os.environ.get('PORT', 5004)), serve_forever=True)
2ea0704ee399c697b90252fd3218909a88803982
[ "Markdown", "Python" ]
6
Python
ngoquangphuc/ChatBot_Python
c36f8a1b8e3ad4934710adcb7b874398c7d3c47d
b685b8d4763ba7800336f783c2b50d7d59d04be1
refs/heads/master
<file_sep>import scrapy import pandas as pd from scrapy.selector import Selector class DoubanSpider(scrapy.Spider): name = 'maoyan' allowed_domains = ['maoyan.com'] # 起始URL列表 start_urls = ['https://maoyan.com/films?showType=3'] def start_requests(self): user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36' i=0 url = f'https://maoyan.com/films?showType=3' yield scrapy.Request(url=url, callback=self.parse, dont_filter=False, headers = {'user-agent':user_agent,'cookie':'uuid_n_v=v1; uuid=BFB01E40BA0311EA99166F1ED1B5ECBED384B4FD2A7D4889A78EF6C477F42E7E; _csrf=01954256c3708a33d335b7d52f4bd504e1452e6dd9ae33a392eecae586e49e4c; _lxsdk_cuid=173000afddac8-00db7e5cc27f01-6457742b-e1000-173000afddbc8; _lxsdk=BFB01E40BA0311EA99166F1ED1B5ECBED384B4FD2A7D4889A78EF6C477F42E7E; mojo-uuid=5fcc263c5258a82404e85a42333c8fdc; Hm_lvt_703e94591e87be68cc8da0da7cbd0be2=1593433587; Hm_lpvt_703e94591e87be68cc8da0da7cbd0be2=1593444074; __mta=150920713.1593433587484.1593444072545.1593444074663.14; mojo-session-id={"id":"a4070ec7c82b5a19458585f0f695fb8f","time":1593443472566}; mojo-trace-id=40; _lxsdk_s=17300a1d45c-84c-591-fa3%7C%7C61'} ) def parse(self, response): # 打印网页的url print(response.url) # movies = Selector(response=response).xpath('//*[@id="app"]/div/div[2]/div[2]/dl/dd[1]/div[1]/div[2]/a/div') movies = Selector(response=response).xpath('//*[@id="app"]/div/div[2]/div[2]/dl/dd[1]') # movies = Selector(response=response).xpath('//dd') print('========') # print(movies.extract()) j = 0 title = [] mtypes = [] mdates = [] for movie in movies: if(j > 1): break # title = movie.xpath('//*[@id="app"]/div/div[2]/div[2]/dl/dd[1]/div[1]/div[2]/a/div/div[1]/span[1]/text()').extract() title = movie.xpath('//dd/div[1]/div[2]/a/div/div[1]/span[1]/text()').extract() # //*[@id="app"]/div/div[2]/div[2]/dl/dd[2]/div[1]/div[2]/a/div/div[1]/span[1] # print(movie.extract()) # print(title) # link = movie.xpath('./a/@href') # mtype = movie.xpath('//*[@id="app"]/div/div[2]/div[2]/dl/dd[1]/div[1]/div[2]/a/div/div[2]/text()').extract() mtypes = movie.xpath('//dd/div[1]/div[2]/a/div/div[2]/text()').extract() # print(str(mtype).strip()) # mdate = movie.xpath('//*[@id="app"]/div/div[2]/div[2]/dl/dd[1]/div[1]/div[2]/a/div/div[4]/text()').extract() mdates = movie.xpath('//dd/div[1]/div[2]/a/div/div[4]/text()').extract() # print(str(mdate).strip()) # print(title.extract()) # print(link.extract()) # print(title.extract_first()) # print(link.extract_first()) # print(title.extract_first().strip()) # print(link.extract_first().strip()) mtype = [] m = 0 for mm in mtypes: m += 1 if(m % 2) == 0: mtype.append(str(mm).strip()) mdate = [] m = 0 for mm in mdates: m += 1 if(m % 2) == 0: mdate.append(str(mm).strip()) mstr = '' move_list = [] k = 0 for x in title: mstr = x mstr += '、' + str(mtype[k]).strip() mstr += '、' + str(mdate[k]).strip() + "\t" move_list.append(mstr) k += 1 if(k == 10): break # print('00000000000000000000') print(mstr) movie1 = pd.DataFrame(data = move_list) # windows需要使用gbk字符集 movie1.to_csv('./movie1.csv', encoding='utf_8_sig', index=False, header=False) <file_sep>import socket import os import threading import time IPList = [] def ping_ip(ip): # 1、ping指定IP判断主机是否存活 output = os.popen('ping -n 1 %s' % ip).readlines() # 注:若在Linux系统下-n 改为 -c for w in output: if str(w).upper().find('TTL') >= 0: IPList.append(ip) print(output) def ping_net(ip): # 2、ping所有IP获取所有存活主机 pre_ip = (ip.split('.')[:-1]) for i in range(1, 256): add = ('.'.join(pre_ip)+'.'+str(i)) threading._start_new_thread(ping_ip, (add,)) time.sleep(0.01) if __name__ == '__main__': ping_net(socket.gethostbyname(socket.gethostname())) for ip in IPList: print(ip) <file_sep>from selenium import webdriver import time try: browser = webdriver.Chrome() browser.get('https://shimo.im') time.sleep(1) btm1 = browser.find_element_by_xpath('//button[@class="login-button btn_hover_style_8"]') btm1.click() time.sleep(1) browser.find_element_by_xpath('//input[@name="mobileOrEmail"]').send_keys('<PASSWORD>') browser.find_element_by_xpath('//input[@name="password"]').send_keys('<PASSWORD>') time.sleep(1) browser.find_element_by_xpath('//button[text()="立即登录"]').click() time.sleep(3) except Exception as e: print(e) finally: browser.close() <file_sep>import requests import pandas as pd from bs4 import BeautifulSoup as bs def get_url_name(myurl): user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36' header = {'user-agent':user_agent,'cookie':'uuid_n_v=v1; uuid=BFB01E40BA0311EA99166F1ED1B5ECBED384B4FD2A7D4889A78EF6C477F42E7E; _csrf=01954256c3708a33d335b7d52f4bd504e1452e6dd9ae33a392eecae586e49e4c; _lxsdk_cuid=173000afddac8-00db7e5cc27f01-6457742b-e1000-173000afddbc8; _lxsdk=BFB01E40BA0311EA99166F1ED1B5ECBED384B4FD2A7D4889A78EF6C477F42E7E; mojo-uuid=5fcc263c5258a82404e85a42333c8fdc; Hm_lvt_703e94591e87be68cc8da0da7cbd0be2=1593433587; Hm_lpvt_703e94591e87be68cc8da0da7cbd0be2=1593444074; __mta=150920713.1593433587484.1593444072545.1593444074663.14; mojo-session-id={"id":"a4070ec7c82b5a19458585f0f695fb8f","time":1593443472566}; mojo-trace-id=40; _lxsdk_s=17300a1d45c-84c-591-fa3%7C%7C61'} response = requests.get(myurl,headers=header) bs_info = bs(response.text, 'html.parser') # print(response.status_code) i = 0 move_list = [] for tags in bs_info.find_all('div', attrs={'class':'movie-hover-info'}): i = i + 1 if(i > 10): break # 获取电影名字 # print(tags.find('span',).text) mstr = tags.find('span',).text # print('aa-df') # 获取电影类型 # print(tags.find_all('div',attrs={'class':'movie-hover-title'})[1].text[4:].strip()) mstr += '、' + tags.find_all('div',attrs={'class':'movie-hover-title'})[1].text[4:].strip() # 获取电影上映时间 # print(tags.find_all('div',attrs={'class':'movie-hover-title'})[3].text[6:].strip()) mstr += '、' + tags.find_all('div',attrs={'class':'movie-hover-title'})[3].text[6:].strip() +"\t" move_list.append(mstr) # print(f.select(".movie-hover-title")[0].select(".name noscore")[0].text) # print(f.select(".movie-hover-title")[1].contents[1].strip()) # print(f.select(".movie-hover-title")[0].text) print(" ".join(x for x in move_list)) movie1 = pd.DataFrame(data = move_list) # windows需要使用gbk字符集 movie1.to_csv('./movie1.csv', encoding='utf_8_sig', index=False, header=False) # 生成包含所有页面的元组 urls = tuple(f'https://maoyan.com/films?showType=3&start=1&filter=' for page in range(1)) print(urls) # 控制请求的频率,引入了time模块 from time import sleep sleep(1) for page in urls: get_url_name(page) sleep(1) <file_sep># Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class HeyuSpidersPipeline: def process_item(self, item, spider): mname = item['name'] mtype = item['hover-tag'] mdate = item['movie-hover-title movie-hover-brief'] output = f'|{mname}|\t|{mtype}|\t|{mdate}|\n\n' with open('./doubanmovie.txt', 'a+', encoding='utf-8') as article: article.write(output) return item <file_sep>import pandas as pd import numpy as np class SQLtoPD(object): def __init__(self): self.users = pd.read_csv('C:/Users/86134/Python001-class01/week04/users.csv') self.orders = pd.read_csv('C:/Users/86134/Python001-class01/week04/orders.csv') self.orders2 = pd.read_csv('C:/Users/86134/Python001-class01/week04/orders_2.csv') # 1. SELECT * FROM data; def select_all_data(self): print(self.users) # 2. SELECT * FROM data LIMIT 10; def select_lim_data(self): print(self.users[0:10]) # 3. SELECT id FROM data; //id 是 data 表的特定一列 def select_id_data(self): print(self.users['id']) # 4. SELECT COUNT(id) FROM data; def select_count_data(self): print(self.users['id'].count()) # 5. SELECT * FROM data WHERE id<1000 AND age>30; def select_where_data(self): print(self.users[ (self.users['id']<1000) & (self.users['age']>30) ] ) # 6. SELECT id,COUNT(DISTINCT order_id) FROM table1 GROUP BY id; def group_data(self): print(self.orders[['id','user_id']].groupby('user_id').count()) # print(self.orders.groupby('user_id').agg({'user_id':'count', 'qty':'sum'})) # 7. SELECT * FROM table1 t1 INNER JOIN table2 t2 ON t1.id = t2.id; def join_data(self): # print(pd.merge(self.users, self.orders, on='id', how='inner')) print(self.users.merge(self.orders, left_on='id', right_on='user_id')) # 8. SELECT * FROM table1 UNION SELECT * FROM table2; def union_data(self): df = pd.concat([self.orders, self.orders2]) print(df.drop_duplicates()) # 9. DELETE FROM table1 WHERE id=10; def delete_data(self): print(self.users[ self.users['id']!=10 ]) # print(self.users.drop([10], axis=0)) # 10. ALTER TABLE table1 DROP COLUMN column_name; def alter_data(self): print(self.users.drop('age', axis = 1)) def main(): c = SQLtoPD() c.group_data() if __name__ == '__main__': main()<file_sep># -*- coding: utf-8 -*- import scrapy import pymysql import pandas as pd from scrapy.selector import Selector class HttpbinSpider(scrapy.Spider): name = 'maoyan' allowed_domains = ['maoyan.com'] # 起始URL列表 start_urls = ['https://maoyan.com/films?showType=3'] def start_requests(self): user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36' i=0 url = f'https://maoyan.com/films?showType=3' yield scrapy.Request(url=url, callback=self.parse, dont_filter=False, headers = {'user-agent':user_agent,'cookie':'uuid_n_v=v1; uuid=BFB01E40BA0311EA99166F1ED1B5ECBED384B4FD2A7D4889A78EF6C477F42E7E; _csrf=01954256c3708a33d335b7d52f4bd504e1452e6dd9ae33a392eecae586e49e4c; _lxsdk_cuid=173000afddac8-00db7e5cc27f01-6457742b-e1000-173000afddbc8; _lxsdk=BFB01E40BA0311EA99166F1ED1B5ECBED384B4FD2A7D4889A78EF6C477F42E7E; mojo-uuid=5fcc263c5258a82404e85a42333c8fdc; Hm_lvt_703e94591e87be68cc8da0da7cbd0be2=1593433587; Hm_lpvt_703e94591e87be68cc8da0da7cbd0be2=1593444074; __mta=150920713.1593433587484.1593444072545.1593444074663.14; mojo-session-id={"id":"a4070ec7c82b5a19458585f0f695fb8f","time":1593443472566}; mojo-trace-id=40; _lxsdk_s=17300a1d45c-84c-591-fa3%7C%7C61'} ) def parse(self, response): # print(response.url) movies = Selector(response=response).xpath('//*[@id="app"]/div/div[2]/div[2]/dl/dd[1]') print('========') title = [] mtypes = [] mdates = [] for movie in movies: title = movie.xpath('//dd/div[1]/div[2]/a/div/div[1]/span[1]/text()').extract() mtypes = movie.xpath('//dd/div[1]/div[2]/a/div/div[2]/text()').extract() mdates = movie.xpath('//dd/div[1]/div[2]/a/div/div[4]/text()').extract() mtype = [] m = 0 for mm in mtypes: m += 1 if(m % 2) == 0: mtype.append(str(mm).strip()) mdate = [] m = 0 for mm in mdates: m += 1 if(m % 2) == 0: mdate.append(str(mm).strip()) # 数据库连接信息 conn = pymysql.connect(host = 'localhost', port = 3306, user = 'root', password = '<PASSWORD>', database = 'mysql', charset = 'utf8mb4' ) cursor = conn.cursor() # 如果数据表已经存在使用 execute() 方法删除表。 cursor.execute("DROP TABLE IF EXISTS movies") # 创建数据表SQL语句 sql = """CREATE TABLE movies (name CHAR(255) NOT NULL )""" cursor.execute(sql) mstr = '' k = 0 for x in title: mstr = x # 拼装爬到的电影信息 mstr += '、' + str(mtype[k]).strip() mstr += '、' + str(mdate[k]).strip() + "\t" k += 1 # SQL 把爬到的电影信息插入到表 sql1 = 'INSERT INTO movies(name) VALUES ("' + mstr + '")' try: # 执行sql语句 cursor.execute(sql1) # 提交到数据库执行 conn.commit() except: conn.rollback() if(k == 10): break <file_sep>学习笔记 1、vscode可用调试模式 2、python基础语法查官方文档最方便 3、github搜索要用in:readme开头 4、借鉴开源项目上https://stackoverflow.com/ <file_sep>学习笔记 //windows清理控制台 import os # 导入os模块 os.system('cls') # 执行cls命令清空Python控制台 ============================================================== //查看导入包的所有方法 import math dir(math) //查看每个方法怎么使用 help(math) ============================================================== 创建scrapy爬虫项目 scrapy startproject spiders //爬取域名,命名为movies scrapy genspider movies douban.com //查看目录下的文件 ls spider/ //清除屏幕 clear //打开文件 cat ** //下载课程代码后,运行爬虫名称douban scrapy crawl douban<file_sep>学习笔记 Python 简化版局域网扫描获取存活主机IP 1、ping指定IP判断主机是否存活 2、ping所有IP获取所有存活主机 在windows系统下 ping -n 在Linux系统下 ping -n 改为 ping -c <file_sep>学习笔记 # 如果数据表已经存在使用 execute() 方法删除表。 cursor.execute("DROP TABLE IF EXISTS EMPLOYEE") # 创建数据表SQL语句 sql = """CREATE TABLE EMPLOYEE ( FIRST_NAME CHAR(20) NOT NULL, LAST_NAME CHAR(20), AGE INT, SEX CHAR(1), INCOME FLOAT )""" cursor.execute(sql) # SQL 插入语句 sql = """INSERT INTO EMPLOYEE(FIRST_NAME, LAST_NAME, AGE, SEX, INCOME) VALUES ('Mac', 'Mohan', 20, 'M', 2000)""" try: # 执行sql语句 cursor.execute(sql) # 提交到数据库执行 db.commit() except: # Rollback in case there is any error db.rollback()
e7fcec587e2b6759e13994311fd558b7efc081d8
[ "Markdown", "Python" ]
11
Python
heyu-tairou/Python001-class01
51160805fc54cac8edbed1fe00f28316a0c2c489
d746ccbde65aeaf0b99aae75d163f2a8d65b6ede
refs/heads/master
<file_sep>import numpy as np import pandas as pd import pickle import matplotlib.pyplot as plt my_data = pd.read_csv('data.txt',names=["x","x1","x2","x3","x4","y"]) #read the data z X = my_data.iloc[:,0:4] ones = np.ones([X.shape[0],1]) X = np.concatenate((ones,X),axis=1) y = my_data.iloc[:,4:5].values theta = np.zeros([1,5]) alpha = 0.01 iters = 10000 def computeCost(X,y,theta): tobesummed = np.power(((X @ theta.T)-y),2) return np.sum(tobesummed)/(2 * len(X)) def gradientDescent(X, y, theta, iters, alpha): cost = np.zeros(iters) for i in range(iters): theta = theta - (alpha / len(X)) * np.sum(X * (X @ theta.T - y), axis=0) cost[i] = computeCost(X, y, theta) return theta, cost g, cost = gradientDescent(X, y, theta, iters, alpha) print(g) finalCost = computeCost(X, y, g) fig, ax = plt.subplots() ax.plot(np.arange(iters), cost, 'r') ax.set_xlabel('Iterations') ax.set_ylabel('Cost') ax.set_title('Error vs. Training Epoch') predict = np.array([1,5.0,3.4,1.6,0.4]) print(predict @ g.T) plt.show() <file_sep># redwinequality Implementation of multivariate regression without using any machine learning library. This script gives the wine quality value between 0-10. [![image](https://i.hizliresim.com/p6nkpr.png)](https://hizliresim.com/p6nkpr)
2e20d62ed1d787341d51464eda1c92056c959c94
[ "Markdown", "Python" ]
2
Python
muratbas6/redwinequality
24c89c3cb7d2fdb6a6effa3db2147be40cdb7d54
bcf9dcf25fa7de5ec528563808e1bd5ca57c4af1
refs/heads/master
<file_sep>using Zappr.Core.Entities; namespace Zappr.Core.Interfaces { public interface IUserRepository : IRepository<User> { public User Add(User user); public User FindByEmail(string email); } } <file_sep>using GraphQL; using GraphQL.Types; using Zappr.Api.GraphQL.Mutations; using Zappr.Api.GraphQL.Queries; namespace Zappr.Api.GraphQL { public class ZapprSchema : Schema { public ZapprSchema(IDependencyResolver resolver) : base(resolver) { Query = resolver.Resolve<ZapprQuery>(); Mutation = resolver.Resolve<ZapprMutation>(); } } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { public class UserFavoriteSeriesConfiguration : IEntityTypeConfiguration<UserFavoriteSeries> { public void Configure(EntityTypeBuilder<UserFavoriteSeries> builder) { builder.ToTable("UserFavoriteSeries"); builder.HasKey(us => new { us.UserId, us.SeriesId }); builder.HasOne(us => us.User).WithMany(u => u.FavoriteSeries).HasForeignKey(us => us.UserId); builder.HasOne(us => us.Series).WithMany().HasForeignKey(us => us.SeriesId); } } }<file_sep>using System.Threading.Tasks; using Zappr.Core.Entities; namespace Zappr.Application.GraphQL.Interfaces { public interface IEpisodeService { public Task<Episode> GetEpisodeByIdAsync(int id); } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System.Collections.Generic; using System.Text.Json; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { class SeriesConfiguration : IEntityTypeConfiguration<Series> { public void Configure(EntityTypeBuilder<Series> builder) { builder.ToTable("Series"); builder.HasKey(s => s.Id); builder.Property(s => s.Genres).HasConversion( g => JsonSerializer.Serialize(g, default), g => JsonSerializer.Deserialize<List<string>>(g, default) ); builder.HasMany(s => s.Episodes).WithOne(e => e.Series).HasForeignKey(e => e.SeriesId); builder.HasMany(s => s.Comments).WithOne(); //builder.HasMany(s => s.Ratings).WithOne(); //builder.HasMany(s => s.Characters).WithOne(); } } }<file_sep>using GraphQL.Types; using Zappr.Core.Entities; namespace Zappr.Api.GraphQL.Types { public class EpisodeType : ObjectGraphType<Episode> { public EpisodeType() { Field(e => e.Id).Description("The Episode Id"); Field(e => e.Name, nullable: true).Description("The name of the episode"); Field(e => e.Summary, nullable: true).Description("A description for the episode"); Field(e => e.Season, nullable: true).Description("The number of the season the episode belongs to"); Field(e => e.Number, nullable: true).Description("The number of the episode within the season"); Field(e => e.AirDate, nullable: true).Description("the date the episode aired on"); Field(e => e.AirTime, nullable: true).Description("the time the episode aires on"); Field(e => e.Runtime, nullable: true).Description("the duration in minutes"); Field(e => e.Image, nullable: true).Description("An image url for the episode"); Field<SeriesType>("series", resolve: context => context.Source.Series); } } }<file_sep>using GraphQL.Types; namespace Zappr.Api.GraphQL.Queries { public class ZapprQuery : ObjectGraphType { public ZapprQuery() { Name = "Query"; Field<SeriesQuery>("seriesQuery", resolve: context => new { }); Field<UserQuery>("userQuery", resolve: context => new { }); } } } <file_sep>using System.Collections.Generic; namespace Zappr.Core.Entities { public class Comment { // Properties public int Id { get; set; } public string Text { get; set; } // Nav Props public User Author { get; set; } public List<Comment> Replies = new List<Comment>(); // Constructors public Comment() { } public Comment(string text, User author) { Text = text; Author = author; } } }<file_sep>using System.Threading.Tasks; using Zappr.Core.Entities; namespace Zappr.Core.Interfaces { public interface ISeriesRepository : IRepository<Series> { public Task<Series> GetByIdAsync(int id); } } <file_sep>using GraphQL.Types; namespace Zappr.Api.GraphQL.Types.InputTypes { public class UserInputType : InputObjectGraphType { public UserInputType() { Name = "UserInput"; Field<NonNullGraphType<StringGraphType>>("fullName"); Field<NonNullGraphType<StringGraphType>>("email"); Field<NonNullGraphType<StringGraphType>>("password"); } } }<file_sep>using GraphQL.Types; using Zappr.Core.Entities; namespace Zappr.Api.GraphQL.Types { public class CommentType : ObjectGraphType<Comment> { public CommentType() { Field(c => c.Id); Field(c => c.Text); Field<UserType>("author", resolve: c => c.Source.Author); } } }<file_sep>using GraphQL.Types; namespace Zappr.Api.GraphQL.Mutations { public class ZapprMutation : ObjectGraphType { public ZapprMutation() { Name = "Mutation"; Field<UserMutation>("userMutation", resolve: context => new { }); Field<SeriesMutation>("seriesMutation", resolve: context => new { }); } } } <file_sep>using GraphQL; using GraphQL.Authorization; using GraphQL.Types; using System.Linq; using Zappr.Api.GraphQL.Types; using Zappr.Api.GraphQL.Types.InputTypes; using Zappr.Application.GraphQL.Helpers; using Zappr.Core.Entities; using Zappr.Core.Interfaces; using BCr = BCrypt.Net.BCrypt; namespace Zappr.Api.GraphQL.Mutations { public class UserMutation : ObjectGraphType { private readonly IUserRepository _userRepository; private readonly ISeriesRepository _seriesRepository; private readonly IEpisodeRepository _episodeRepository; private readonly TokenHelper _tokenHelper; public UserMutation(IUserRepository userRepository, ISeriesRepository seriesRepository, IEpisodeRepository episodeRepository, TokenHelper tokenHelper) { _userRepository = userRepository; _seriesRepository = seriesRepository; _episodeRepository = episodeRepository; _tokenHelper = tokenHelper; Name = "UserMutation"; Field<StringGraphType>( "login", arguments: new QueryArguments( new QueryArgument<NonNullGraphType<StringGraphType>> { Name = "email" }, new QueryArgument<NonNullGraphType<StringGraphType>> { Name = "password" } ), resolve: context => { // Get arguments string email = context.GetArgument<string>("email"); string pass = context.GetArgument<string>("password"); // Find the corresponding user var user = _userRepository.FindByEmail(email); // Throw errors if (user == null) throw new ExecutionError("User not found"); if (string.IsNullOrEmpty(user.Password) || !BCr.Verify(pass, user.Password)) throw new ExecutionError("Incorrect password"); // If no errors, generate and give a token return _tokenHelper.GenerateToken(user.Id); }); Field<UserType>( "register", arguments: new QueryArguments(new QueryArgument<NonNullGraphType<UserInputType>> { Name = "user" }), resolve: context => { // Get the arguments var userInput = context.GetArgument<User>("user"); // If the email is already registered, don't bother if (_userRepository.FindByEmail(userInput.Email) != null) throw new ExecutionError("Already registered"); // Construct a user with the arguments var user = ConstructUserFromRegister(userInput); // Add and return the result var added = _userRepository.Add(user); _userRepository.SaveChanges(); return added; }); FieldAsync<UserType>( "addWatchedEpisode", arguments: new QueryArguments(new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "episodeId" }), resolve: async context => { // Args int episodeId = context.GetArgument<int>("episodeId"); // Get logged in user int userId = (context.UserContext as GraphQLUserContext).UserId; var user = _userRepository.GetById(userId); // Check if episodeid not already in watched if (user.WatchedEpisodes.Any(fs => fs.EpisodeId == episodeId)) return user; // Get Episode and its Series from db or API var episode = await _episodeRepository.GetByIdAsync(episodeId); episode.Series = await _seriesRepository.GetByIdAsync(episode.SeriesId); // Add the episode to the users watched episodes and persist user.AddWatchedEpisode(episode); _userRepository.Update(user); _userRepository.SaveChanges(); return user; } ).AuthorizeWith("UserPolicy"); //Only authenticated users can do this Field<UserType>( "removeWatchedEpisode", arguments: new QueryArguments(new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "episodeId" }), resolve: context => { // Get logged in user int userId = (context.UserContext as GraphQLUserContext).UserId; var user = _userRepository.GetById(userId); // Get episode and remove it from watched var episode = user.WatchedEpisodes.SingleOrDefault(we => we.EpisodeId == context.GetArgument<int>("episodeId")); user.WatchedEpisodes.Remove(episode); _userRepository.Update(user); _userRepository.SaveChanges(); return user; } ).AuthorizeWith("UserPolicy"); //Only authenticated users can do this FieldAsync<UserType>( "addFavoriteSeries", arguments: new QueryArguments(new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "seriesId" }), resolve: async context => { int seriesId = context.GetArgument<int>("seriesId"); // Get logged in user int userId = (context.UserContext as GraphQLUserContext).UserId; var user = _userRepository.GetById(userId); // Check if seriesid not already in favorites if (user.FavoriteSeries.Any(fs => fs.SeriesId == seriesId)) return user; // Get series from db or API var series = await _seriesRepository.GetByIdAsync(seriesId); // Add the favorite and persist user.AddFavoriteSeries(series); _userRepository.Update(user); _userRepository.SaveChanges(); return user; } ).AuthorizeWith("UserPolicy"); //Only authenticated users can do this Field<UserType>( "removeFavoriteSeries", arguments: new QueryArguments( new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "seriesId" } ), resolve: context => { // Get logged in user int userId = (context.UserContext as GraphQLUserContext).UserId; var user = _userRepository.GetById(userId); //Get series and remove from favorites var series = user.FavoriteSeries.Single(fs => fs.SeriesId == context.GetArgument<int>("seriesId")); user.FavoriteSeries.Remove(series); _userRepository.Update(user); _userRepository.SaveChanges(); return user; } ).AuthorizeWith("UserPolicy"); //Only authenticated users can do this FieldAsync<UserType>( "addSeriesToWatchList", arguments: new QueryArguments(new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "seriesId" }), resolve: async context => { // Args int seriesId = context.GetArgument<int>("seriesId"); // Get logged in user int userId = (context.UserContext as GraphQLUserContext).UserId; var user = _userRepository.GetById(userId); // Check if seriesid not already in watchlist if (user.WatchListedSeries.Any(fs => fs.SeriesId == seriesId)) return user; // Get series from db or API var series = await _seriesRepository.GetByIdAsync(seriesId); // Add the favorite and persist user.AddSeriesToWatchList(series); _userRepository.Update(user); _userRepository.SaveChanges(); return user; } ).AuthorizeWith("UserPolicy"); //Only authenticated users can do this Field<UserType>( "removeSeriesFromWatchList", arguments: new QueryArguments(new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "seriesId" }), resolve: context => { // Get logged in user int userId = (context.UserContext as GraphQLUserContext).UserId; var user = _userRepository.GetById(userId); // get series var series = user.WatchListedSeries.Single(fs => fs.SeriesId == context.GetArgument<int>("seriesId")); //remove series from watched user.WatchListedSeries.Remove(series); _userRepository.Update(user); _userRepository.SaveChanges(); return user; } ).AuthorizeWith("UserPolicy"); //Only authenticated users can do this } private User ConstructUserFromRegister(User userinput) => new User() { Email = userinput.Email, FullName = userinput.FullName, Role = "User", Password = <PASSWORD>) }; } } <file_sep>namespace Zappr.Core.Entities { public class UserRatedEpisode : UserEpisode { } }<file_sep>using GraphQL.Authorization; using GraphQL.Types; using Zappr.Api.GraphQL.Types; using Zappr.Core.Interfaces; namespace Zappr.Api.GraphQL.Queries { public class UserQuery : ObjectGraphType { private readonly IUserRepository _userRepository; public UserQuery(IUserRepository userRepository) { Name = "UserQuery"; _userRepository = userRepository; // Default: only users can access these queries this.AuthorizeWith("UserPolicy"); // get user information Field<UserType>( "me", resolve: context => { int id = (context.UserContext as GraphQLUserContext).UserId; return _userRepository.GetById(id); } ); // get all Field<ListGraphType<UserType>>("all", resolve: context => _userRepository.GetAll()).AuthorizeWith("AdminPolicy"); //Admin only // get by id QueryArguments args = new QueryArguments(new QueryArgument<IntGraphType> { Name = "id" }); Field<UserType>( "get", arguments: args, resolve: context => _userRepository.GetById(context.GetArgument<int>("id")) ).AuthorizeWith("AdminPolicy"); //Admin only } } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { class RatingConfiguration : IEntityTypeConfiguration<Rating> { public void Configure(EntityTypeBuilder<Rating> builder) { builder.ToTable("Rating"); builder.HasKey(r => r.Id); builder.HasOne(c => c.Author).WithMany(); } } }<file_sep>using System.Collections.Generic; using System.Threading.Tasks; using Zappr.Core.Entities; namespace Zappr.Application.GraphQL.Interfaces { public interface ISeriesService { public Task<Series> GetSeriesByIdAsync(int id); public Task<List<Series>> SearchSeriesByNameAsync(string name); public Task<Series> SingleSearchSeriesByNameAsync(string name); public Task<List<Series>> GetScheduleAsync(string countrycode, string date = null); public Task<List<Series>> GetScheduleMultipleDaysFromTodayAsync(string country, int startFromToday = 0, int days = 7); } } <file_sep>using Microsoft.Extensions.Configuration; using System.Net.Http; namespace Zappr.Infrastructure.Services { public abstract class ApiService { protected IConfiguration Configuration; protected HttpClient Client; protected ApiService(IConfiguration configuration, HttpClient client) { Configuration = configuration; Client = client; } protected HttpResponseMessage GetHttpResponse(string url) { var responseTask = Client.GetAsync(url); responseTask.Wait(); return responseTask.Result; } } } <file_sep>using GraphQL.Authorization; using GraphQL.Validation; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.IdentityModel.Tokens; using System; using System.IdentityModel.Tokens.Jwt; using System.Text; namespace Zappr.Api { public static class DependencyInjection { public static void AddTokenAuthentication(this IServiceCollection services, IConfiguration configuration) { JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear(); // => remove default claims services .AddAuthentication(options => { options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }) .AddJwtBearer(cfg => { cfg.RequireHttpsMetadata = false; cfg.SaveToken = true; cfg.TokenValidationParameters = new TokenValidationParameters { ValidateIssuerSigningKey = true, ValidateAudience = false, ValidateIssuer = false, ValidateLifetime = true, IssuerSigningKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes(configuration.GetSection("JWT")["secret"])) }; }); } public static void AddGraphQLAuth(this IServiceCollection services, Action<AuthorizationSettings> configure) { services.AddHttpContextAccessor(); services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>(); services.TryAddSingleton<IAuthorizationEvaluator, AuthorizationEvaluator>(); services.AddTransient<IValidationRule, AuthorizationValidationRule>(); services.TryAddTransient(s => { var authSettings = new AuthorizationSettings(); configure(authSettings); return authSettings; }); } public static void AddCorsWithDefaultPolicy(this IServiceCollection services, IConfiguration configuration) => services.AddCors(options => { options.AddPolicy("DefaultPolicy", builder => { string[] origins = configuration.GetSection("CORS:origins").Get<string[]>(); builder.AllowAnyHeader() .WithMethods("GET", "POST") .WithOrigins(origins); }); }); public static void AllowSynchronousIO(this IServiceCollection services) { services.Configure<IISServerOptions>(options => options.AllowSynchronousIO = true); services.Configure<KestrelServerOptions>(options => options.AllowSynchronousIO = true); } } } <file_sep>using System.Collections.Generic; namespace Zappr.Core.Entities { public class User { // Properties public int Id { get; set; } public string Email { get; set; } public string FullName { get; set; } public string Role { get; set; } public string Password { get; set; } // Nav Props public ISet<UserWatchListedSeries> WatchListedSeries { get; } = new HashSet<UserWatchListedSeries>(); public ISet<UserFavoriteSeries> FavoriteSeries { get; } = new HashSet<UserFavoriteSeries>(); public ISet<UserRatedSeries> RatedSeries { get; } = new HashSet<UserRatedSeries>(); public ISet<UserWatchedEpisode> WatchedEpisodes { get; } = new HashSet<UserWatchedEpisode>(); public ISet<UserRatedEpisode> RatedEpisodes { get; } = new HashSet<UserRatedEpisode>(); // Constructor public User() { } // Methods public void AddSeriesToWatchList(Series series) => WatchListedSeries.Add(new UserWatchListedSeries { Series = series, SeriesId = series.Id, User = this, UserId = Id }); public void AddFavoriteSeries(Series series) => FavoriteSeries.Add(new UserFavoriteSeries { Series = series, SeriesId = series.Id, User = this, UserId = Id }); public void AddWatchedEpisode(Episode episode) => WatchedEpisodes.Add(new UserWatchedEpisode { Episode = episode, EpisodeId = episode.Id, User = this, UserId = Id }); public void AddRatedEpisode(Episode episode) => RatedEpisodes.Add(new UserRatedEpisode { Episode = episode, EpisodeId = episode.Id, User = this, UserId = Id }); public void AddRatedSeries(Series series) => RatedSeries.Add(new UserRatedSeries { Series = series, SeriesId = series.Id, User = this, UserId = Id }); } } <file_sep>using GraphQL.Authorization; using System.Linq; using System.Security.Claims; namespace Zappr.Api.GraphQL { public class GraphQLUserContext : IProvideClaimsPrincipal { public ClaimsPrincipal User { get; set; } public int UserId => int.Parse(User.Claims.First(c => c.Type.Equals("Id"))?.Value); } } <file_sep>namespace Zappr.Core.Entities { public class Character { public int Id { get; set; } public string Name { get; set; } public string ActorName { get; set; } public Character() { } public Character(int id, string name, string actorName) { Id = id; Name = name; ActorName = actorName; } } } <file_sep>namespace Zappr.Core.Entities { public class UserWatchedEpisode : UserEpisode { } }<file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { class CommentConfiguration : IEntityTypeConfiguration<Comment> { public void Configure(EntityTypeBuilder<Comment> builder) { builder.ToTable("Comment"); builder.HasKey(c => c.Id); builder.HasOne(c => c.Author).WithMany(); } } }<file_sep>namespace Zappr.Core.Entities { public class UserRatedSeries : UserSeries { } } <file_sep>using GraphQL.Authorization; using GraphQL.Types; using System.Linq; using Zappr.Api.GraphQL.Types; using Zappr.Core.Entities; using Zappr.Core.Interfaces; namespace Zappr.Api.GraphQL.Mutations { public class SeriesMutation : ObjectGraphType { private readonly IUserRepository _userRepository; private readonly ISeriesRepository _seriesRepository; public SeriesMutation(IUserRepository userRepository, ISeriesRepository seriesRepository) { _userRepository = userRepository; _seriesRepository = seriesRepository; Name = "SeriesMutation"; // Entire mutation is for users only this.AuthorizeWith("UserPolicy"); FieldAsync<SeriesType>( "addComment", arguments: new QueryArguments( new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "seriesId" }, new QueryArgument<NonNullGraphType<StringGraphType>> { Name = "commentText" }, new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "authorUserId" } ), resolve: async context => { //Args string commentText = context.GetArgument<string>("commentText"); int authorId = context.GetArgument<int>("authorUserId"); int seriesId = context.GetArgument<int>("seriesId"); //Get the author var author = _userRepository.GetById(authorId); // Get series from db or API var series = await _seriesRepository.GetByIdAsync(seriesId); // Add the comment Comment comment = new Comment(commentText, author); series.AddComment(comment); _seriesRepository.Update(series); _seriesRepository.SaveChanges(); return series; }); FieldAsync<SeriesType>( "addRating", arguments: new QueryArguments( new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "seriesId" }, new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "ratingPercentage" }, new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "authorUserId" } ), resolve: async context => { //Args int percentage = context.GetArgument<int>("ratingPercentage"); int authorId = context.GetArgument<int>("authorUserId"); int seriesId = context.GetArgument<int>("seriesId"); //Get the author var author = _userRepository.GetById(authorId); // Get series from db or API var series = await _seriesRepository.GetByIdAsync(seriesId); // Update rating if user has already rated, or add a new one var ratingByUser = series.Ratings.SingleOrDefault(r => r.Author == author); if (ratingByUser != null) ratingByUser.Percentage = percentage; else series.AddRating(new Rating(percentage, author)); _seriesRepository.Update(series); _seriesRepository.SaveChanges(); //Add the series to the rated series of the author author.AddRatedSeries(series); _userRepository.Update(author); _userRepository.SaveChanges(); return series; }); } } } <file_sep>using GraphQL.Types; using System.Linq; using Zappr.Core.Entities; namespace Zappr.Api.GraphQL.Types { public class UserType : ObjectGraphType<User> { public UserType() { Field(u => u.Id); Field(u => u.FullName); Field(u => u.Email); // We resolve these ourselves to skip the joined entity Field<ListGraphType<SeriesType>>("watchListedSeries", "The series this user has watchlisted", resolve: c => c.Source.WatchListedSeries.Select(ue => ue.Series)); Field<ListGraphType<SeriesType>>("favoriteSeries", "The series this user has favorited", resolve: c => c.Source.FavoriteSeries.Select(us => us.Series)); Field<ListGraphType<EpisodeType>>("watchedEpisodes", "The episodes this user has watched", resolve: c => c.Source.WatchedEpisodes.Select(ue => ue.Episode)); Field<ListGraphType<SeriesType>>("ratedSeries", "The series this user has rated", resolve: c => c.Source.RatedSeries.Select(us => us.Series)); } } } <file_sep>using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; using System; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; using Zappr.Core.Interfaces; namespace Zappr.Application.GraphQL.Helpers { public class TokenHelper { public IConfiguration Configuration { get; set; } private readonly string _secret; private readonly IUserRepository _userRepository; public TokenHelper(IConfiguration configuration, IUserRepository userRepository) { Configuration = configuration; _secret = Configuration.GetSection("JWT")["secret"]; _userRepository = userRepository; } public string GenerateToken(int userId) { var mySecurityKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes(_secret)); var tokenHandler = new JwtSecurityTokenHandler(); var user = _userRepository.GetById(userId); var tokenDescriptor = new SecurityTokenDescriptor { Subject = new ClaimsIdentity(new Claim[] { new Claim("Id", userId.ToString()), new Claim("Role", user.Role), }), Expires = DateTime.UtcNow.AddDays(7), SigningCredentials = new SigningCredentials(mySecurityKey, SecurityAlgorithms.HmacSha256Signature) }; var token = tokenHandler.CreateToken(tokenDescriptor); return tokenHandler.WriteToken(token); } } }<file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { class EpisodeConfiguration : IEntityTypeConfiguration<Episode> { public void Configure(EntityTypeBuilder<Episode> builder) { builder.ToTable("Episode"); builder.HasKey(e => e.Id); builder.HasOne(e => e.Series).WithMany(s => s.Episodes).HasForeignKey(e => e.SeriesId); builder.HasMany(s => s.Comments).WithOne(); //builder.HasMany(e => e.Comments).WithOne().OnDelete(DeleteBehavior.Cascade); } } }<file_sep>namespace Zappr.Core.Entities { public class UserFavoriteSeries : UserSeries { } }<file_sep>using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Zappr.Application.GraphQL.Interfaces; using Zappr.Core.Entities; using Zappr.Core.Interfaces; namespace Zappr.Infrastructure.Data.Repositories { public class SeriesRepository : BaseRepository<Series>, ISeriesRepository { private readonly DbSet<Series> _series; private readonly ISeriesService _seriesService; public SeriesRepository(AppDbContext context, ISeriesService seriesService) : base(context) { _seriesService = seriesService; _series = context.Series; } public override ICollection<Series> GetAll() => _series .Include(s => s.Comments).ThenInclude(c => c.Author) .Include(s => s.Ratings).ThenInclude(r => r.Author).ToList(); public override Series GetById(int id) => GetAll().SingleOrDefault(s => s.Id == id); public async Task<Series> GetByIdAsync(int id) => // Get series from db or API _series.Any(s => s.Id == id) ? GetAll().SingleOrDefault(s => s.Id == id) : await _seriesService.GetSeriesByIdAsync(id); } } <file_sep># Zappr - Backend ## About the project Zappr is a web application that enhances your local TV community. This is the repository of all the backend code, using .NET Core. De frontend code can be found in [this repo](https://github.com/dantederuwe/zappr-frontend). This project is for educational purposes only! ## About me <NAME> - Student *Applied Information Technology* @ [Ghent University College](https://hogent.be/en) Check me out on [dante.deruwe.me](https://dante.deruwe.me). Here you can also find [more about Zappr](https://dante.deruwe.me/projects/zappr), and also [contact](https://dante.deruwe.me/contact) me. ## The GraphQL API This backend serves as a GraphQL API. It has one endpoint `/graphql`. > More info about GraphQL [here](https://graphql.org/) On startup of the .NET Application you are taken to https://localhost:5001/, where the GraphQL playground is located. [![](https://i.imgur.com/qbf7ihU.png)](https://i.imgur.com/qbf7ihU.png) On the right hand side, you can inspect the **docs** and the **GraphQL schema**. ## Technologies used - C# - .NET Core 3.1 - GraphQL - GraphQL-dotnet Nuget Package (+ authorization) - Identity Framework - Entity Framework Core - Microsoft SQL Server - BCrypt - Newtonsoft JSON ## Special thanks to - [TVMaze API](https://www.tvmaze.com/api) for the data _PS: The name Zappr is a homophone of 'zapper', the flemish word for TV remote_<file_sep>using GraphQL.Types; using Zappr.Core.Entities; namespace Zappr.Api.GraphQL.Types { /// <summary> /// A wrapper for the external API /// </summary> public class SeriesType : ObjectGraphType<Series> { public SeriesType() { Field(s => s.Id).Description("The series ID"); Field(s => s.Name, nullable: true).Description("The name of the series"); Field(s => s.Description, nullable: true).Description("A description for the series"); Field(s => s.NumberOfSeasons, nullable: true).Description("The number of seasons of this series"); Field(s => s.Network, nullable: true).Description("the network the series is currently airing on"); Field(s => s.Ended, nullable: true).Description("TRUE if the series ended, FALSE if it is continuing"); Field(s => s.Premiered, nullable: true).Description("The first airdate of this series"); Field(s => s.AirTime, nullable: true).Description("The time this series typically airs on"); Field(s => s.ImageUrl, nullable: true).Description("A url that provides a poster for the series"); Field(s => s.Genres, nullable: true).Description("A list of genres for the series"); Field(s => s.OfficialSite, nullable: true).Description("The official website of this series"); Field<ListGraphType<CommentType>>("comments", "The comments the series has received", resolve: c => c.Source.Comments); Field<DecimalGraphType>("averageRating", "The total average rating the series has received", resolve: c => c.Source.AverageRating); //Field(s => s.Episodes).Description("The episodes that belong to this series"); //Field(s => s.Characters).Description("The characters that play in this series"); } } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { public class UserWatchlistedSeriesConfiguration : IEntityTypeConfiguration<UserWatchListedSeries> { public void Configure(EntityTypeBuilder<UserWatchListedSeries> builder) { builder.ToTable("UserWatchListedSeries"); builder.HasKey(us => new { us.UserId, us.SeriesId }); builder.HasOne(us => us.User).WithMany(u => u.WatchListedSeries).HasForeignKey(us => us.UserId); builder.HasOne(us => us.Series).WithMany().HasForeignKey(us => us.SeriesId); } } }<file_sep>using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace Zappr.Core.Entities { public class Episode { // Properties [DatabaseGenerated(DatabaseGeneratedOption.None)] public int Id { get; set; } public string? Name { get; set; } public string? Summary { get; set; } public int? Season { get; set; } public int Number { get; set; } public string? AirDate { get; set; } public string? AirTime { get; set; } public int? Runtime { get; set; } public string? Image { get; set; } public int SeriesId { get; set; } // Nav Props public Series Series { get; set; } public List<Rating> Ratings { get; } = new List<Rating>(); public List<Comment> Comments { get; } = new List<Comment>(); // Methods public void AddRating(Rating rating) => Ratings.Add(rating); public void AddComment(Comment comment) => Comments.Add(comment); public Episode() { } public Episode(int id) => Id = id; } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data { public class AppDbContext : DbContext { // DbSets public DbSet<User> Users { get; set; } public DbSet<Series> Series { get; set; } public DbSet<Episode> Episodes { get; set; } //public DbSet<Comment> Comments { get; set; } //public DbSet<Rating> Ratings { get; set; } // Constructor public AppDbContext(DbContextOptions<AppDbContext> options, IConfiguration configuration) : base(options) { } // finds all classes that implement IEntityTypeConfiguration and applies their configurations protected override void OnModelCreating(ModelBuilder modelBuilder) => modelBuilder.ApplyConfigurationsFromAssembly(typeof(AppDbContext).Assembly); } } <file_sep>using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using Zappr.Core.Entities; using Zappr.Core.Interfaces; namespace Zappr.Infrastructure.Data.Repositories { public class UserRepository : BaseRepository<User>, IUserRepository { private readonly DbSet<User> _users; public UserRepository(AppDbContext context) : base(context) => _users = context.Users; public override ICollection<User> GetAll() => _users .Include(u => u.FavoriteSeries).ThenInclude(us => us.Series) .Include(u => u.WatchListedSeries).ThenInclude(us => us.Series) .Include(u => u.RatedSeries).ThenInclude(us => us.Series).ThenInclude(s => s.Ratings) .Include(u => u.WatchedEpisodes).ThenInclude(ue => ue.Episode).ThenInclude(e => e.Series) .Include(u => u.RatedEpisodes).ThenInclude(ue => ue.Episode).ThenInclude(e => e.Series) .Include(u => u.RatedEpisodes).ThenInclude(ue => ue.Episode.Ratings) .ToList(); // When getting by id, include all series and episode data public override User GetById(int id) => GetAll().SingleOrDefault(u => u.Id == id); public User FindByEmail(string email) => GetAll().SingleOrDefault(u => u.Email == email); public User Add(User user) { _users.Add(user); return user; } } }<file_sep>namespace Zappr.Core.Entities { public class Rating { // Props public int Id { get; set; } public int Percentage { get; set; } public User Author { get; private set; } // Constructor public Rating() { } public Rating(int percentage, User author) { Percentage = percentage; Author = author; } } }<file_sep>using GraphQL.Types; using Zappr.Core.Entities; namespace Zappr.Api.GraphQL.Types { public class RatingType : ObjectGraphType<Rating> { public RatingType() { Field(r => r.Id); Field(r => r.Percentage); Field<UserType>("author", resolve: c => c.Source.Author); } } }<file_sep>using GraphQL.Types; using Zappr.Api.GraphQL.Types; using Zappr.Application.GraphQL.Interfaces; using Zappr.Core.Interfaces; namespace Zappr.Api.GraphQL.Queries { public class SeriesQuery : ObjectGraphType { private readonly ISeriesRepository _seriesRepository; private readonly ISeriesService _service; public SeriesQuery(ISeriesRepository seriesRepository, ISeriesService service) { _seriesRepository = seriesRepository; _service = service; Name = "SeriesQuery"; // get by id Field<SeriesType>( "get", arguments: new QueryArguments(new QueryArgument<IntGraphType> { Name = "id" }), resolve: context => _seriesRepository.GetByIdAsync(context.GetArgument<int>("id")) ); //Search by name (note, this only pulls from external API: less data) Field<ListGraphType<SeriesType>>( "search", arguments: new QueryArguments(new QueryArgument<StringGraphType> { Name = "name" }), resolve: context => _service.SearchSeriesByNameAsync(context.GetArgument<string>("name")) ); FieldAsync<SeriesType>( "singlesearch", arguments: new QueryArguments(new QueryArgument<StringGraphType> { Name = "name" }), resolve: async context => { var res = await _service.SingleSearchSeriesByNameAsync(context.GetArgument<string>("name")); //Look up in db if possible for full results return await _seriesRepository.GetByIdAsync(res.Id); }); //Scheduled shows per country (note, this only pulls from external API: less data) Field<ListGraphType<SeriesType>>( "today", arguments: new QueryArguments(new QueryArgument<StringGraphType> { Name = "country" }), resolve: context => _service.GetScheduleAsync(context.GetArgument<string>("country")) ); //Scheduled shows per country for the whole week (note, this only pulls from external API: less data) Field<ListGraphType<SeriesType>>( "schedule", arguments: new QueryArguments( new QueryArgument<StringGraphType> { Name = "country" }, new QueryArgument<IntGraphType> { Name = "start", Description = "the number of days from today you want to take as the start" }, new QueryArgument<IntGraphType> { Name = "numberofdays", Description = "the number of days you want to include in the schedule" } ), resolve: context => _service.GetScheduleMultipleDaysFromTodayAsync( context.GetArgument<string>("country"), context.GetArgument<int>("start"), context.GetArgument<int>("numberofdays") ) ); } } } <file_sep>namespace Zappr.Core.Entities { public class UserWatchListedSeries : UserSeries { } } <file_sep>namespace Zappr.Core.Entities { public abstract class UserEpisode { public int UserId { get; set; } public User User { get; set; } public int EpisodeId { get; set; } public Episode Episode { get; set; } public override bool Equals(object other) => other?.GetType() == GetType() && UserId == ((UserEpisode)other).UserId && EpisodeId == ((UserEpisode)other).EpisodeId; public override int GetHashCode() => UserId.GetHashCode() ^ EpisodeId.GetHashCode(); //https://stackoverflow.com/a/70375/12641623 } }<file_sep>using GraphQL; using GraphQL.Server; using GraphQL.Server.Ui.Playground; using GraphQL.Types; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Zappr.Application; using Zappr.Infrastructure; namespace Zappr.Api { public class Startup { public Startup(IConfiguration configuration) => Configuration = configuration; public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddCorsWithDefaultPolicy(Configuration); services.AddScoped<IDependencyResolver>(s => new FuncDependencyResolver(s.GetRequiredService)); services.AllowSynchronousIO(); services.AddInfrastructure(Configuration); services.AddApplication(); services.AddTokenAuthentication(Configuration); services.AddAuthorization(); services.AddGraphQLAuth(_ => { _.AddPolicy("UserPolicy", p => p.RequireClaim("Role", new string[] { "User", "Admin" })); _.AddPolicy("AdminPolicy", p => p.RequireClaim("Role", "Admin")); }); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) app.UseDeveloperExceptionPage(); app.UseCors("DefaultPolicy"); app.UseAuthentication(); app.UseGraphQL<ISchema>("/graphql"); app.UseGraphQLPlayground(new GraphQLPlaygroundOptions { Path = "/" }); } } } <file_sep>using System.Threading.Tasks; using Zappr.Core.Entities; namespace Zappr.Core.Interfaces { public interface IEpisodeRepository : IRepository<Episode> { public Task<Episode> GetByIdAsync(int id); } } <file_sep>using System.Collections.Generic; using Zappr.Core.Interfaces; namespace Zappr.Infrastructure.Data.Repositories { public abstract class BaseRepository<T> : IRepository<T> { private readonly AppDbContext _context; protected BaseRepository(AppDbContext context) => _context = context; public void SaveChanges() => _context.SaveChanges(); public void Update(T item) => _context.Update(item); public abstract ICollection<T> GetAll(); public abstract T GetById(int id); } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { class UserConfiguration : IEntityTypeConfiguration<User> { public void Configure(EntityTypeBuilder<User> builder) { builder.ToTable("User"); builder.HasKey(u => u.Id); //Series builder.HasMany(u => u.FavoriteSeries).WithOne(ufs => ufs.User).HasForeignKey(u => u.UserId); ; builder.HasMany(u => u.WatchListedSeries).WithOne(uws => uws.User).HasForeignKey(u => u.UserId); ; builder.HasMany(u => u.RatedSeries).WithOne(urs => urs.User).HasForeignKey(u => u.UserId); ; //Episodes builder.HasMany(u => u.RatedEpisodes).WithOne(ure => ure.User).HasForeignKey(u => u.UserId); builder.HasMany(u => u.WatchedEpisodes).WithOne(uwe => uwe.User).HasForeignKey(u => u.UserId); ; } } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { public class UserWatchedEpisodeConfiguration : IEntityTypeConfiguration<UserWatchedEpisode> { public void Configure(EntityTypeBuilder<UserWatchedEpisode> builder) { builder.ToTable("UserWatchedEpisode"); builder.HasKey(ue => new { ue.UserId, ue.EpisodeId }); builder.HasOne(ue => ue.User).WithMany(u => u.WatchedEpisodes).HasForeignKey(ue => ue.UserId); builder.HasOne(ue => ue.Episode).WithMany().HasForeignKey(ue => ue.EpisodeId); ; } } }<file_sep>using System.Collections.Generic; namespace Zappr.Core.Interfaces { public interface IRepository<T> { public ICollection<T> GetAll(); public T GetById(int id); public void Update(T item); public void SaveChanges(); } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { public class UserRatedSeriesConfiguration : IEntityTypeConfiguration<UserRatedSeries> { public void Configure(EntityTypeBuilder<UserRatedSeries> builder) { builder.ToTable("UserRatedSeries"); builder.HasKey(us => new { us.UserId, us.SeriesId }); builder.HasOne(us => us.User).WithMany(u => u.RatedSeries).HasForeignKey(us => us.UserId); builder.HasOne(us => us.Series).WithMany().HasForeignKey(us => us.SeriesId); } } }<file_sep> namespace Zappr.Core.Entities { public abstract class UserSeries { public int UserId { get; set; } public User User { get; set; } public int SeriesId { get; set; } public Series Series { get; set; } public override bool Equals(object other) => other?.GetType() == GetType() && UserId == ((UserSeries)other).UserId && SeriesId == ((UserSeries)other).SeriesId; public override int GetHashCode() => UserId.GetHashCode() ^ SeriesId.GetHashCode(); //https://stackoverflow.com/a/70375/12641623 } }<file_sep>using GraphQL.Server; using GraphQL.Types; using Microsoft.Extensions.DependencyInjection; using Zappr.Api.GraphQL; using Zappr.Api.GraphQL.Mutations; using Zappr.Api.GraphQL.Queries; using Zappr.Api.GraphQL.Types; using Zappr.Api.GraphQL.Types.InputTypes; using Zappr.Application.GraphQL.Helpers; namespace Zappr.Application { public static class DependencyInjection { public static void AddApplication(this IServiceCollection services) { services.AddTransient<ISchema, ZapprSchema>(); services.AddScoped<SeriesType>(); services.AddScoped<UserType>(); services.AddScoped<EpisodeType>(); services.AddScoped<CommentType>(); services.AddScoped<RatingType>(); services.AddScoped<UserInputType>(); services.AddScoped<UserQuery>(); services.AddScoped<SeriesQuery>(); services.AddScoped<ZapprQuery>(); services.AddScoped<UserMutation>(); services.AddScoped<SeriesMutation>(); services.AddScoped<ZapprMutation>(); services.AddGraphQL().AddUserContextBuilder(context => new GraphQLUserContext { User = context.User }); services.AddScoped<TokenHelper>(); } } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Data.Configurations { public class UserRatedEpisodeConfiguration : IEntityTypeConfiguration<UserRatedEpisode> { public void Configure(EntityTypeBuilder<UserRatedEpisode> builder) { builder.ToTable("UserRatedEpisode"); builder.HasKey(ue => new { ue.UserId, ue.EpisodeId }); builder.HasOne(ue => ue.User).WithMany(u => u.RatedEpisodes).HasForeignKey(ue => ue.UserId); builder.HasOne(ue => ue.Episode).WithMany().HasForeignKey(ue => ue.EpisodeId); } } }<file_sep>using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; namespace Zappr.Core.Entities { public class Series { // Properties [DatabaseGenerated(DatabaseGeneratedOption.None)] //Id will come from external API public int Id { get; set; } public string? Name { get; set; } public string? ImageUrl { get; set; } public string? Description { get; set; } public int? NumberOfSeasons { get; set; } public string? Network { get; set; } public bool? Ended { get; set; } public string? Premiered { get; set; } public string? AirTime { get; set; } public List<string>? Genres { get; set; } public string? OfficialSite { get; set; } // Nav Props public List<Episode> Episodes { get; } = new List<Episode>(); public List<Character> Characters { get; } = new List<Character>(); public List<Rating> Ratings { get; } = new List<Rating>(); public List<Comment> Comments { get; } = new List<Comment>(); //Calculated Properties public double AverageRating => Ratings.Any() ? Ratings.Average(r => r.Percentage) : 0.0; // Constructors public Series() { } // Methods public void AddRating(Rating rating) => Ratings.Add(rating); public void AddComment(Comment comment) => Comments.Add(comment); public override bool Equals(object obj) => //Check for null and compare run-time types. (obj != null) && GetType() == obj.GetType() && Id == ((Series)obj).Id; public override int GetHashCode() => Id; } } <file_sep>using Microsoft.AspNetCore.WebUtilities; using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Zappr.Application.GraphQL.Interfaces; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Services { public class TvMazeSeriesService : ApiService, ISeriesService { public TvMazeSeriesService(IConfiguration configuration, HttpClient client) : base(configuration, client) { } public async Task<Series> GetSeriesByIdAsync(int id) { string url = QueryHelpers.AddQueryString($"shows/{id}", "embed", "seasons"); var result = GetHttpResponse(url); if (result.IsSuccessStatusCode) { string content = await result.Content.ReadAsStringAsync(); dynamic data = JsonConvert.DeserializeObject(content); return ConstructSeries(data); } else { //TODO throw new HttpRequestException($"Error in GetSeriesByIdAsync, statuscode: {result.StatusCode}"); } } public async Task<List<Series>> SearchSeriesByNameAsync(string name) { string url = QueryHelpers.AddQueryString( "search/shows", new Dictionary<string, string>() { { "q", name }, { "embed", "seasons" } } ); var result = GetHttpResponse(url); if (result.IsSuccessStatusCode) { string content = await result.Content.ReadAsStringAsync(); dynamic resObj = JsonConvert.DeserializeObject(content); //TODO error handling! JArray seriesArr = resObj; var list = seriesArr.ToObject<List<dynamic>>().ToList(); return list.Select(s => ConstructSeries(s.show) as Series).ToHashSet().ToList(); } else { //TODO throw new HttpRequestException($"Error in SearchSeriesByNameAsync, statuscode: {result.StatusCode}"); } } public async Task<Series> SingleSearchSeriesByNameAsync(string name) { string url = QueryHelpers.AddQueryString("singlesearch/shows", "q", name); var result = GetHttpResponse(url); if (result.IsSuccessStatusCode) { string content = await result.Content.ReadAsStringAsync(); dynamic data = JsonConvert.DeserializeObject(content); return ConstructSeries(data); } else { //TODO throw new HttpRequestException($"Error in SingleSearchSeriesByNameAsync, statuscode: {result.StatusCode}"); } } public async Task<List<Series>> GetScheduleAsync(string countrycode, string date = null) { date ??= DateTime.Now.ToString("yyyy-MM-dd"); string url = QueryHelpers.AddQueryString( "schedule", new Dictionary<string, string>() { { "country", countrycode }, { "date", date } } ); var result = GetHttpResponse(url); if (result.IsSuccessStatusCode) { string content = await result.Content.ReadAsStringAsync(); dynamic resObj = JsonConvert.DeserializeObject(content); //TODO error handling! JArray seriesArr = resObj; var list = seriesArr.ToObject<List<dynamic>>().ToList(); return list.Select(s => ConstructSeries(s.show) as Series).ToHashSet().ToList(); } else { //TODO throw new HttpRequestException($"Error in SearchSeriesByNameAsync, statuscode: {result.StatusCode}"); } } public async Task<List<Series>> GetScheduleMultipleDaysFromTodayAsync(string country, int startFromToday = 0, int days = 7) { var schedule = new List<Series>(); for (int i = startFromToday; i < startFromToday + days; i++) { var thisday = await GetScheduleAsync(country, DateTime.Now.AddDays(i).ToString("yyyy-MM-dd")); schedule = schedule.Concat(thisday).ToHashSet().ToList(); //toHashSet to eliminate duplicates } return schedule; } private Series ConstructSeries(dynamic seriesObj) => new Series { Id = seriesObj.id, Name = seriesObj.name, Description = seriesObj.summary, Network = seriesObj.network?.ToObject<dynamic>()?.name, Ended = seriesObj.status == "Ended", Premiered = seriesObj.premiered, ImageUrl = seriesObj.image?.ToObject<dynamic>()?.medium.ToString().Replace("http://", "https://"), Genres = seriesObj.genres?.ToObject<List<string>>(), AirTime = seriesObj.schedule?.ToObject<dynamic>()?.time, OfficialSite = seriesObj.officialSite, NumberOfSeasons = seriesObj._embedded?.ToObject<dynamic>().seasons.Count }; } } <file_sep>using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Zappr.Application.GraphQL.Interfaces; using Zappr.Core.Entities; using Zappr.Core.Interfaces; namespace Zappr.Infrastructure.Data.Repositories { public class EpisodeRepository : BaseRepository<Episode>, IEpisodeRepository { private readonly DbSet<Episode> _episodes; private readonly IEpisodeService _episodeService; public EpisodeRepository(AppDbContext context, IEpisodeService episodeService) : base(context) { _episodeService = episodeService; _episodes = context.Episodes; } public override ICollection<Episode> GetAll() => _episodes .Include(e => e.Comments).ThenInclude(e => e.Author) .Include(e => e.Ratings).ThenInclude(e => e.Author) .ToList(); public override Episode GetById(int id) => GetAll().SingleOrDefault(e => e.Id == id); public async Task<Episode> GetByIdAsync(int id) => // Get episodes from db or API _episodes.Any(e => e.Id == id) ? GetAll().SingleOrDefault(e => e.Id == id) : await _episodeService.GetEpisodeByIdAsync(id); } } <file_sep>using Microsoft.AspNetCore.WebUtilities; using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using System.Net.Http; using System.Threading.Tasks; using Zappr.Application.GraphQL.Interfaces; using Zappr.Core.Entities; namespace Zappr.Infrastructure.Services { public class TvMazeEpisodeService : ApiService, IEpisodeService { public TvMazeEpisodeService(IConfiguration configuration, HttpClient client) : base(configuration, client) { } public async Task<Episode> GetEpisodeByIdAsync(int id) { string url = QueryHelpers.AddQueryString($"episodes/{id}", "embed", "show"); var result = GetHttpResponse(url); if (result.IsSuccessStatusCode) { string content = await result.Content.ReadAsStringAsync(); dynamic data = JsonConvert.DeserializeObject(content); return ConstructEpisode(data); } else { //TODO throw new HttpRequestException($"Error in GetEpisodeByIdAsync, statuscode: {result.StatusCode}"); } } private Episode ConstructEpisode(dynamic data) => new Episode { Id = data.id, Name = data.name, Summary = data.summary, Season = data.season, Number = data.number, AirDate = data.airdate, AirTime = data.airtime, Runtime = data.runtime, Image = data.image?.ToObject<dynamic>()?.medium, SeriesId = data._embedded?.ToObject<dynamic>()?.show?.ToObject<dynamic>()?.id }; } } <file_sep>using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using System; using Zappr.Application.GraphQL.Interfaces; using Zappr.Core.Interfaces; using Zappr.Infrastructure.Data; using Zappr.Infrastructure.Data.Repositories; using Zappr.Infrastructure.Services; namespace Zappr.Infrastructure { public static class DependencyInjection { public static void AddInfrastructure(this IServiceCollection services, IConfiguration configuration) { services.AddDbContext<AppDbContext>(options => //options.UseSqlServer(configuration.GetConnectionString("MSSQLServer")) options.UseSqlite(configuration.GetConnectionString("Sqlite")) ); var provider = services.BuildServiceProvider(); var context = provider.GetRequiredService<AppDbContext>(); context.Database.OpenConnection(); context.Database.EnsureCreated(); services.AddScoped<IUserRepository, UserRepository>(); services.AddScoped<ISeriesRepository, SeriesRepository>(); services.AddScoped<IEpisodeRepository, EpisodeRepository>(); services.AddHttpClient<ISeriesService, TvMazeSeriesService>(client => client.BaseAddress = new Uri("https://api.tvmaze.com/")); services.AddHttpClient<IEpisodeService, TvMazeEpisodeService>(client => client.BaseAddress = new Uri("https://api.tvmaze.com/")); } } }
0018c69636e32c517ff5d30b36c73d95f434c564
[ "Markdown", "C#" ]
57
C#
DanteDeRuwe/zappr-backend
0a303a9f10eb8ac2e382c2c75cbf9483e2131146
17474081968e2c80d6c38a010c88f87a829d7106
refs/heads/master
<repo_name>wcools/shinyPPV<file_sep>/ui.r shinyUI(fluidPage( titlePanel("Classification and proportion of inferences"), withMathJax(), tags$div(HTML(" ")), fluidRow( column(4, wellPanel( uiOutput("nPH1"), uiOutput("cT1a"), uiOutput("sT2b") ) ), column(4, plotOutput("PPV",height=300), plotOutput("PPVlegend",height=20) ), column(4, style = "background-color:#aaaaaa;", uiOutput("comments") ) ), fluidRow( column(6, h2("") ), column(6, h2("") ) ) ) )<file_sep>/server.r # install required packages not yet installed pckgs <- c('shiny','reshape2','ggplot2','plyr','arm') todo <- pckgs[!is.element(pckgs, names(installed.packages()[,"Package"]))] if(length(todo) > 0) install.packages(todo) #,repos="http://cran.us.r-project.org") # load in the packages library(shiny) library(ggplot2) # ggplot2 -> plotting library(dplyr) # ddply -> data manipulation drawPlot <- function(v4){ v4 <- round(10000*round(v4,5)) dta <- expand.grid(x=1:100,y=1:101) lbls <- c("TP","FN","TN","FP","xx") cols <- c("green", "red", "cyan", "grey","black") lc <- setNames(cols,lbls) ss <- lbls[round(c(rep(1,v4[1]),rep(2,v4[2]),rep(5,100),rep(3,v4[3]),rep(4,v4[4])))] dta$ss <- ss dta$ss <- factor(dta$ss,labels=lbls,levels=lbls) p <- ggplot(dta, aes(y=x, x=y, fill=ss)) + geom_tile() + scale_fill_manual(values = lc) + theme_void() + theme(legend.position="none") print(p) } drawLegend <- function(v4){ v4 <- round(1000*round(v4,3)) dta <- expand.grid(x=1:10,y=1:100) lbls <- c("TP","FN","TN","FP") cols <- c("green", "red", "cyan", "grey") lc <- setNames(cols,lbls) ss <- lbls[round(c(rep(1,v4[1]),rep(2,v4[2]),rep(3,v4[3]),rep(4,v4[4])))] dta$ss <- ss dta$ss <- factor(dta$ss,labels=lbls,levels=lbls) p <- ggplot(dta, aes(y=x, x=y, fill=ss)) + geom_tile() + scale_fill_manual(values = lc) + theme_void() + theme(legend.position="none") p <- p + annotate("text", label = "True Positive", x=10,y=5,colour = "black") p <- p + annotate("text", label = "False Negative", x=36,y=5,colour = "black") p <- p + annotate("text", label = "True Negative", x=62,y=5,colour = "black") p <- p + annotate("text", label = "False Positive", x=88,y=5,colour = "black") print(p) } # server file shinyServer(function(input,output,session){ setPH1 <- reactive({ nPH1 <- as.numeric(as.character((input$nPH1))) cT1a <- as.numeric(as.character((input$cT1a))) sT2b <- as.numeric(as.character((input$sT2b))) list(nPH1=nPH1,cT1a=cT1a,sT2b=sT2b) }) plotPH1 <- function(){ inc <- setPH1() p1 <- inc$nPH1 p0 <- 1-inc$nPH1 drawPlot(c(p0,0,p1,0)) } plotPH1legend <- function(){ inc <- setPH1() p1 <- inc$nPH1 p0 <- 1-inc$nPH1 drawLegend(c(.5,0,.5,0)) } plotPPV <- function(){ inc <- setPH1() .green <- inc$sT2b * inc$nPH1 # true positive .red <- (1-inc$sT2b) * inc$nPH1 # false negative .grey <- inc$cT1a * (1-inc$nPH1) # false positive .blue <- (1-inc$cT1a) * (1-inc$nPH1) # true negative v4 <- c(.green,.red,.blue,.grey) drawPlot(c(.green,.red,.blue,.grey)) } plotPPVlegend <- function(){ inc <- setPH1() p <- drawLegend(c(.25,.25,.25,.25)) } output$nPH1 <- renderUI({ sliderInput("nPH1","probability effect exists",min=0.1,max=.9,value=0.5) }) output$sT2b <- renderUI({ sliderInput("sT2b",paste("power"),min=0.5,max=.95,value=.8) }) output$cT1a <- renderUI({ selectInput("cT1a","type I error:", c(".01"=".01",".05"=".05",".1"=".1",".2"=".2",selected=".05")) }) output$PPV <- renderPlot({ if(any(is.null(input$nPH1),is.null(input$sT2b),is.null(input$cT1a))){return()} plotPPV() }) output$PPVlegend <- renderPlot({ if(any(is.null(input$nPH1),is.null(input$sT2b),is.null(input$cT1a))){return()} plotPPVlegend() }) output$comments <- renderText({ inc <- setPH1() .green <- inc$sT2b * inc$nPH1 .red <- inc$cT1a * (1-inc$nPH1) .blue <- (1-inc$cT1a) * (1-inc$nPH1) .grey <- (1-inc$sT2b) * inc$nPH1 paste("probability effect = <font color=\"#00FF00\" size=3>&diams;</font> + <font color=\"#FF0000\">&diams;</font> = <font color=\"#00FF00\">P(true +)</font> + <font color=\"#FF0000\">P(false -)</font><br>", "power = <font color=\"#00FF00\" size=3>&diams;</font> / [<font color=\"#00FF00\">&diams;</font> + <font color=\"#FF0000\">&diams;</font>] = <font color=\"#00FF00\">P(true +)</font> / [<font color=\"#00FF00\">P(true +)</font> + <font color=\"#FF0000\">P(false -)</font>]<br>", "alpha = <font color=\"#808080\" size=3>&diams;</font> / [<font color=\"#808080\">&diams;</font> + <font color=\"#00FFFF\">&diams;</font>] = <font color=\"#808080\">P(false +)</font> / [<font color=\"#808080\">P(false +)</font> + <font color=\"#00FFFF\">P(true -)</font>]<br>", "<br>Positive Predictive Value <br>PPV = <font color=\"#00FF00\" size=3>&diams;</font> / [<font color=\"#00FF00\">&diams;</font> + <font color=\"#808080\">&diams;</font>] = <font color=\"#00FF00\">P(true +)</font> / [<font color=\"#00FF00\">P(true +)</font> + <font color=\"#808080\">P(false +)</font>]<br>", "<br>Negative Predictive Value <br>NPV = <font color=\"#00FFFF\" size=3>&diams;</font> / [<font color=\"#00FFFF\">&diams;</font> + <font color=\"#FF0000\">&diams;</font>] = <font color=\"#00FFFF\">P(true -)</font> / [<font color=\"#00FFFF\">P(true -)</font> + <font color=\"#FF0000\">P(false -)</font>]<br>") }) })
9538c393a9044e10cf2d598cbfa06ed91e0608e9
[ "R" ]
2
R
wcools/shinyPPV
95239d72ea903f35764b3c2a371c1a82627f13af
c84dbd623e5acb15e98797e51c03844b8c0409da
refs/heads/master
<file_sep>import { AddTodo } from "./AddTodo"; import { v4 as generateUuid } from "uuid"; import { InMemoryTodoRepository } from "../../../adapters/secondary/InMemoryTodoRepository"; import { expectPromiseToFailWith } from "../../../utils/test.helpers"; import { CustomClock } from "../ports/Clock"; describe("Add Todo", () => { let addTodo: AddTodo; let todoRepository: InMemoryTodoRepository; let clock: CustomClock; beforeEach(() => { todoRepository = new InMemoryTodoRepository(); clock = new CustomClock(); addTodo = new AddTodo({ todoRepository, clock }); clock.setNextDate(new Date("2020-11-02T10:00")); }); describe("Description has less than 3 charaters", () => { it("refuses to add the Todo with an explicit warning", async () => { await expectPromiseToFailWith( addTodo.execute({ uuid: "someUuid", description: "123" }), "Todo description should be at least 4 characters long" ); }); }); describe("Todo with same uuid already exists", () => { it("refuses to add the Todo with an explicit warning", async () => { todoRepository.setTodos([ { uuid: "alreadyExistingUuid", description: "Some description" }, ]); await expectPromiseToFailWith( addTodo.execute({ uuid: "alreadyExistingUuid", description: "My description", }), "A Todo with the same uuid already exists" ); }); }); describe("Description is fine", () => { it("saves the Todo", async () => { const uuid = generateUuid(); const description = "My description"; await addTodo.execute({ uuid, description }); expect(todoRepository.todos).toEqual([{ uuid, description }]); }); }); describe("Description has trailing white space", () => { it("removes the white spaces and capitalize before saving the Todo", async () => { const uuid = "myUuid"; const description = " should Be trimed "; await addTodo.execute({ uuid, description }); expect(todoRepository.todos).toEqual([ { uuid, description: "Should Be trimed" }, ]); }); }); describe("Depending on time", () => { it("refuses to add Todo before 08h00", async () => { clock.setNextDate(new Date("2020-11-02T07:59")); const useCasePromise = addTodo.execute({ uuid: "someUuid", description: "a description", }); await expectPromiseToFailWith( useCasePromise, "You can only add todos between 08h00 and 12h00" ); }); it("refuses to add Todo after 12h00", async () => { clock.setNextDate(new Date("2020-11-02T12:00")); const useCasePromise = addTodo.execute({ uuid: "someUuid", description: "a description", }); await expectPromiseToFailWith( useCasePromise, "You can only add todos between 08h00 and 12h00" ); }); }); }); <file_sep>import { app } from "./server"; const port = 8080; app.listen(port, () => { console.log(`server started at http://localhost:${port}`); }); <file_sep>import { UseCase } from "../../core/UseCase"; import { TodoEntity } from "../entities/TodoEntity"; import { TodoRepository } from "../ports/TodoRepository"; import * as Yup from "yup"; import { Clock } from "../ports/Clock"; type AddTodoDependencies = { todoRepository: TodoRepository; clock: Clock }; type AddTodoParams = { uuid: string; description: string }; export const addTodoParamsSchema: Yup.ObjectSchema<AddTodoParams> = Yup.object({ description: Yup.string().required(), uuid: Yup.string().required(), }).required(); // type could also be infer from yup schema : // type AddTodoParams = Yup.InferType<typeof addTodoParamsSchema>; export class AddTodo implements UseCase<AddTodoParams> { private todoRepository: TodoRepository; private clock: Clock; public async execute(params: AddTodoParams) { const hour = this.clock.getNow().getHours(); if (hour < 8 || hour >= 12) throw new Error("You can only add todos between 08h00 and 12h00"); const todo = new TodoEntity(params); await this.todoRepository.save(todo); } constructor({ todoRepository, clock }: AddTodoDependencies) { this.todoRepository = todoRepository; this.clock = clock; } } <file_sep>import { TodoRepository } from "../../domain/todos/ports/TodoRepository"; import { TodoEntity } from "../../domain/todos/entities/TodoEntity"; export class InMemoryTodoRepository implements TodoRepository { private _todos: TodoEntity[] = []; public async save(todoEntity: TodoEntity) { const todoAlreadyExists = this._todos.some( ({ uuid }) => uuid === todoEntity.uuid ); if (todoAlreadyExists) { throw new Error("A Todo with the same uuid already exists"); } this._todos.push(todoEntity); } public async getAllTodos() { return this._todos; } get todos() { return this._todos; } setTodos(todoEntites: TodoEntity[]) { this._todos = todoEntites; } } <file_sep>import { Response } from "express"; export const sendHttpResponse = async ( res: Response, callback: () => Promise<unknown> ) => { try { const response = await callback(); res.status(200); return res.json(response || { success: true }); } catch (error) { res.status(400); return res.json({ errors: error.errors || [error.message] }); } }; <file_sep>import { TodoEntity } from "../entities/TodoEntity"; export interface TodoRepository { save: (todoEntity: TodoEntity) => Promise<void>; getAllTodos: () => Promise<TodoEntity[]>; } <file_sep>import { Clock, CustomClock, RealClock } from "../../domain/todos/ports/Clock"; import { AddTodo } from "../../domain/todos/useCases/AddTodo"; import { ListTodos } from "../../domain/todos/useCases/ListTodos"; import { InMemoryTodoRepository } from "../secondary/InMemoryTodoRepository"; import { JsonTodoRepository } from "../secondary/JsonTodoRepository"; export const getRepositories = () => { console.log("Repositories : ", process.env.REPOSITORIES ?? "IN_MEMORY"); return { todo: process.env.REPOSITORIES === "JSON" ? new JsonTodoRepository(`${__dirname}/../secondary/app-data.json`) : new InMemoryTodoRepository(), }; }; const getClock = (): Clock => { console.log("NODE_ENV : ", process.env.NODE_ENV); if (process.env.NODE_ENV === "test") { const clock = new CustomClock(); clock.setNextDate(new Date("2020-11-02T10:00")); return clock; } return new RealClock(); }; export const getUsecases = () => { const repositories = getRepositories(); return { addTodo: new AddTodo({ todoRepository: repositories.todo, clock: getClock(), }), listTodos: new ListTodos(repositories.todo), }; }; <file_sep>import supertest from "supertest"; import { app } from "../server"; const request = supertest(app); describe("Hello world route", () => { it("says hello", async () => { const response = await request.get("/"); expect(response.body).toEqual({ message: "Hello World !" }); }); }); <file_sep>import { UseCase } from "../../../domain/core/UseCase"; import * as yup from "yup"; export const callUseCase = async <T extends Record<string, unknown>, R = void>({ useCase, validationSchema, useCaseParams, }: { useCase: UseCase<T, R>; validationSchema: yup.ObjectSchema<T>; useCaseParams: any; }) => { const params = await validationSchema.validate(useCaseParams, { abortEarly: false, }); return useCase.execute(params); }; <file_sep>export interface Clock { getNow: () => Date; } export class RealClock implements Clock { getNow() { return new Date(); } } export class CustomClock implements Clock { nextDate = new Date(); getNow() { return this.nextDate; } setNextDate(date: Date) { this.nextDate = date; } } <file_sep>type TodoProps = { uuid: string; description: string; }; export class TodoEntity { public readonly uuid: string; public readonly description: string; constructor({ uuid, description }: TodoProps) { const trimedDescription = description.trim(); if (trimedDescription.length <= 3) { throw new Error("Todo description should be at least 4 characters long"); } this.uuid = uuid; this.description = trimedDescription[0].toUpperCase() + trimedDescription.slice(1); } } <file_sep>import supertest from "supertest"; import { app } from "../server"; import * as fs from "fs"; const request = supertest(app); const emptyAppDataFile = () => fs.writeFileSync(`${__dirname}/../../secondary/app-data.json`, "[]"); describe("Todos routes", () => { beforeAll(() => { emptyAppDataFile(); }); describe("When body is not valid", () => { it("fails when fields in the body are missing", async () => { const response = await request.post("/todos"); expect(response.status).toBe(400); expect(response.body).toEqual({ errors: ["description is a required field", "uuid is a required field"], }); }); it("fails when description is to short", async () => { const response = await request .post("/todos") .send({ uuid: "uuidDescriptionToShort", description: "ie" }); expect(response.status).toBe(400); expect(response.body).toEqual({ errors: ["Todo description should be at least 4 characters long"], }); }); }); describe("When all is good", () => { it("adds a todo, then gets all the todos", async () => { const addTodoResponse = await request.post("/todos").send({ uuid: "correctTodoUuid", description: "Description long enough", }); expect(addTodoResponse.body).toEqual({ success: true }); expect(addTodoResponse.status).toBe(200); const listTodoResponse = await request.get("/todos"); expect(listTodoResponse.body).toEqual([ { uuid: "correctTodoUuid", description: "Description long enough", }, ]); expect(listTodoResponse.status).toBe(200); }); }); }); <file_sep>import { UseCase } from "../../core/UseCase"; import { TodoEntity } from "../entities/TodoEntity"; import { TodoRepository } from "../ports/TodoRepository"; export class ListTodos implements UseCase<void, TodoEntity[]> { private todoRepository: TodoRepository; constructor(todoRepository: TodoRepository) { this.todoRepository = todoRepository; } public async execute() { return this.todoRepository.getAllTodos(); } } <file_sep>import { TodoEntity } from "../../domain/todos/entities/TodoEntity"; import { TodoRepository } from "../../domain/todos/ports/TodoRepository"; import * as fs from "fs"; import * as util from "util"; const readFile = util.promisify(fs.readFile); const writeFile = util.promisify(fs.writeFile); export class JsonTodoRepository implements TodoRepository { constructor(private path: string) {} public async save(todoEntity: TodoEntity) { const todos = await this._readData(); const todoWithSameUuidExists = todos.some( ({ uuid }) => uuid === todoEntity.uuid ); if (todoWithSameUuidExists) throw new Error("A Todo with the same uuid already exists"); todos.push(todoEntity); writeFile(this.path, JSON.stringify(todos)); } public async getAllTodos() { return this._readData(); } private async _readData(): Promise<TodoEntity[]> { const data = await readFile(this.path); const todos = JSON.parse(data.toString()); return todos; } } <file_sep>import { TodoEntity } from "../../domain/todos/entities/TodoEntity"; import { JsonTodoRepository } from "./JsonTodoRepository"; import * as fs from "fs"; import * as util from "util"; import { TodoRepository } from "../../domain/todos/ports/TodoRepository"; import { expectPromiseToFailWith } from "../../utils/test.helpers"; const readFile = util.promisify(fs.readFile); describe("JsonTodoRepository", () => { const dataPath = `${__dirname}/data-test.json`; let csvTodoRepository: TodoRepository; beforeEach(() => { fs.writeFileSync(dataPath, "[]"); csvTodoRepository = new JsonTodoRepository(dataPath); }); describe("save", () => { it("adds the Todo to the json file when empty", async () => { const todoEntity = new TodoEntity({ uuid: "someUuid", description: "my csv description", }); await csvTodoRepository.save(todoEntity); await expectDataToBe([todoEntity]); }); it("adds the Todo to the json file when data is already there", async () => { fillJsonWith([ { uuid: "alreadyThereUuid", description: "Already there description" }, ]); const todoEntity = new TodoEntity({ uuid: "newlyAddedUuid", description: "Newly added description", }); await csvTodoRepository.save(todoEntity); await expectDataToBe([ { uuid: "alreadyThereUuid", description: "Already there description" }, todoEntity, ]); }); it("cannot add a Todo if there is already one with the same uuid", async () => { fillJsonWith([ { uuid: "existingUuid", description: "Already there description" }, ]); const todoEntity = new TodoEntity({ uuid: "existingUuid", description: "Newly added description", }); await expectPromiseToFailWith( csvTodoRepository.save(todoEntity), "A Todo with the same uuid already exists" ); }); }); describe("getAllTodos", () => { it("gets empty array when no Todos are stored", async () => { const todos = await csvTodoRepository.getAllTodos(); expect(todos).toEqual([]); }); it("gets the Todos stored", async () => { const expectedTodos = [ { uuid: "someUuid", description: "My description" }, { uuid: "someOtherUuid", description: "My other description" }, ]; fillJsonWith(expectedTodos); const todos = await csvTodoRepository.getAllTodos(); expect(todos).toEqual(expectedTodos); }); }); const expectDataToBe = async (todos: TodoEntity[]) => { const data = await readFile(dataPath); const parsedData = JSON.parse(data.toString()); expect(parsedData).toEqual(todos); }; const fillJsonWith = (todos: TodoEntity[]) => { fs.writeFileSync(dataPath, JSON.stringify(todos)); }; }); <file_sep>export const expectPromiseToFailWith = async ( promise: Promise<unknown>, errorMessage: string ) => { await expect(promise).rejects.toThrowError(new Error(errorMessage)); }; <file_sep>import { InMemoryTodoRepository } from "../../../adapters/secondary/InMemoryTodoRepository"; import { ListTodos } from "./ListTodos"; describe("List Todos", () => { it("sends empty list when no todos are stored", async () => { const todoRepository = new InMemoryTodoRepository(); const listTodos = new ListTodos(todoRepository); const todos = await listTodos.execute(); expect(todos).toEqual([]); }); describe("When a todo is already stored", () => { it("sends the todo", async () => { const todoRepository = new InMemoryTodoRepository(); const todoStored = { uuid: "someUuid", description: "My description" }; todoRepository.setTodos([todoStored]); const listTodos = new ListTodos(todoRepository); const todos = await listTodos.execute(); expect(todos).toEqual([ { uuid: "someUuid", description: "My description" }, ]); }); }); }); <file_sep>export type UseCase<T, R = void> = { execute(params: T): Promise<R>; }; <file_sep>You need node 12+ to use the app : **Install** ``` npm install ``` **To test the app :** ``` npm run test:all ``` You can run in watch mode individually : Unit tests : ``` npm run test:unit ``` Integration tests : ``` npm run test:integration ``` End to end tests : ``` npm run test:e2e ``` ## Start the app : # To start with IN_MEMORY database, and an actual clock : ``` npm start ``` # With the JSON database ``` npm run start:json ``` If you want to fake that it is the morning (time during when the app is suppose to work), you can add `NODE_ENV=test`, to use the CustomClock. For exemple : ``` NODE_ENV=test npm run start:json ``` <file_sep>import express, { Router } from "express"; import { getUsecases } from "./config"; import bodyParser from "body-parser"; import { addTodoParamsSchema } from "../../domain/todos/useCases/AddTodo"; import { callUseCase } from "./helpers/callUseCase"; import { sendHttpResponse } from "./helpers/sendHttpResponse"; const app = express(); const router = Router(); app.use(bodyParser.json()); router.route("/").get((req, res) => { return res.json({ message: "Hello World !" }); }); const useCases = getUsecases(); router .route("/todos") .post(async (req, res) => sendHttpResponse(res, () => callUseCase({ useCase: useCases.addTodo, validationSchema: addTodoParamsSchema, useCaseParams: req.body, }) ) ) .get(async (req, res) => sendHttpResponse(res, () => useCases.listTodos.execute()) ); app.use(router); export { app };
d68d9858f9458d73b770fb4a2e781c9caf44c24a
[ "Markdown", "TypeScript" ]
20
TypeScript
JeromeBu/tdd-example
0949f6801d542da2d862728d12b17d27fdf67c6e
52f301a85c56d854c7c1c849c36b57f1bf7e862e
refs/heads/master
<file_sep>package de.htwg.memory; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; /** * this class represent a singleton base connection. * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 */ public class BaseConnection { //url were the webserver is located //use the alias 10.0.3.2 to referto the host computer's loopback interface from genymotion emulator //private String url = "http://www.spieldose.ch/memory/memory.php"; private String url = "http://10.0.3.2/memory/model/src/memory.php"; public HttpPost httppost = new HttpPost(this.url); public DefaultHttpClient httpClient = new DefaultHttpClient(); private static BaseConnection instance = null; protected BaseConnection() { // Exists only to defeat instantiation. } public static BaseConnection getInstance() { if(instance == null) { instance = new BaseConnection(); } return instance; } } <file_sep><?php require_once 'PHPUnit/Framework/TestCase.php'; require_once 'src/Memory/Communicator.php'; class CommunicatorTest extends PHPUnit_Framework_TestCase { public static function suite() { return new CommunicatorTest('CommunicatorTest'); } public function testCommunicatorHasValidArguments1() { try { $json = '{ "action": "create", "params": {"row": 4, "column": 5 } }'; $memory = new Communicator($json); } catch(InvalidArgumentException $e) { $this->fail(); } } public function testCommunicatorHasValidArguments2() { try { $json = -1; $memory = new Communicator($json); } catch(InvalidArgumentException $e) { return; } $this->fail(); } public function testCommunicatorCallMethod1() { try { $json = '{ "action": "create", "params": {"row": 4, "column": 5 } }'; $memory = new Communicator($json); $memory->handleJSON(); } catch(InvalidArgumentException $e) { $this->fail(); } } public function testCommunicatorCallMethod2() { try { $json = '{ "action": "INVALIDMETHODCALL", "params": {"row": 4, "column": 5 } }'; $memory = new Communicator($json); $memory->handleJSON(); } catch(BadFunctionCallException $e) { return; } $this->fail(); } public function testCommunicatorCallMethodCreate1() { try { $json = '{ "action": "create", "params": {"row": -1, "column": 5 } }'; $memory = new Communicator($json); $memory->handleJSON(); session_destroy(); } catch(Exception $e) { return; } $this->fail(); } public function testCommunicatorCallMethodCreate2() { try { $json = '{ "action": "create", "params": {"row": 4, "column": 5 } }'; $memory = new Communicator($json); $memory->handleJSON(); } catch(Exception $e) { $this->fail(); } } public function testCommunicatorCallMethodMove1() { try { $json = '{ "action": "create", "params": {"row": 4, "column": 5 } }'; $memory = new Communicator($json); $memory->handleJSON(); $json = '{ "action": "move", "params": {"firstCard": 1, "secondCard": 1 } }'; $memory = new Communicator($json); $memory->handleJSON(); } catch(Exception $e) { echo $e->getMessage(); $this->fail(); } } public function testCommunicatorCallMethodMove2() { try { $json = '{ "action": "move", "params": {"firstCard": 1, "secondCard": 1 } }'; $memory = new Communicator($json); $memory->handleJSON(); } catch(Exception $e) { return; } $this->fail(); } } ?><file_sep>package de.htwg.memory; import de.htwg.memory.activity.GameActivity; import android.location.Location; import android.location.LocationListener; import android.os.Bundle; import android.util.Log; /** * this represent a location listener. the gps coordinates syncs with the coordinates of the uncovered cards. * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 * */ public class MemoryLocationListener implements LocationListener { private Boolean checkCoordinates = false; private Boolean lastCheck = false; private MemoryCard card0 = null; private MemoryCard card1 = null; public void onLocationChanged(Location loc) { if ( checkCoordinates ){ if ( card0 instanceof MemoryCard && card1 instanceof MemoryCard ){ if ( this.checkLocation( card0.getLatitude(), loc.getLatitude(), card0.getLongitude(), loc.getLongitude() ) ){ card0.disableCard(); card1.disableCard(); this.resetCheckCoordinates(); Integer anz = GameActivity.getTries()+1; GameActivity.setTries(anz); if ( this.lastCheck ){ this.lastCheck = false; GameActivity.timerTask.stopTask(); } } } } String longitude = String.valueOf(loc.getLongitude()); String latitude = String.valueOf(loc.getLatitude()); if ( longitude.length() > 10 ){ longitude = longitude.substring(0,10); } if ( latitude.length() > 10 ){ latitude = latitude.substring(0,10); } GameActivity.longitude.setText(longitude); GameActivity.latitude.setText(latitude); } public void onProviderDisabled(String provider) {} public void onProviderEnabled(String provider) {} public void onStatusChanged(String provider, int status, Bundle extras) {} public void checkCoordinates(MemoryCard cardToCheck0, MemoryCard cardToCheck1){ card0 = cardToCheck0; card1 = cardToCheck1; checkCoordinates = true; } public void lastCheckCoordinates(MemoryCard cardToCheck0, MemoryCard cardToCheck1){ card0 = cardToCheck0; card1 = cardToCheck1; checkCoordinates = true; lastCheck = true; } private void resetCheckCoordinates(){ card0 = null; card1 = null; checkCoordinates = false; } //radius ca 40m private Boolean checkLocation(double cardLat, double lat, double cardLon, double lon){ Log.d("calc", String.valueOf((lat - cardLat)*1000)); Log.d("calc", String.valueOf((lon - cardLon)*1000)); Boolean longitude = false; Boolean latitude = false; if ( (lat - cardLat)*1000 < 0.5 && (lat - cardLat)*1000 > -0.5){ latitude = true; } if ( (lon - cardLon)*1000 < 0.5 && (lon - cardLon)*1000 > -0.5 ){ longitude = true; } if ( latitude && longitude ){ return true; } return false; } } <file_sep>package de.htwg.memory; import java.io.IOException; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.ByteArrayEntity; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicHeader; import org.apache.http.protocol.HTTP; import org.apache.http.util.EntityUtils; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.os.AsyncTask; import android.util.Log; import de.htwg.memory.activity.GameActivity; /** * this represent the connection class, which is necessary for the communication between android app and webserver * IMPORTANT: more than one communication instance will destroy the session in the webserver * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 * */ public final class MemoryConnection extends AsyncTask<JSONObject, Integer, JSONArray> { private int switchMethod = 0; private DefaultHttpClient httpClient; private HttpPost httppost; /** * contructor */ public MemoryConnection() { httpClient = BaseConnection.getInstance().httpClient; httppost = BaseConnection.getInstance().httppost; } /* (non-Javadoc) * @see de.htwg.memory.IConnection#readMemory(int, int) */ public void readMemory(int row, int col) throws JSONException, IOException { switchMethod = 0; JSONObject parentData = new JSONObject(); parentData.put("action", "create"); JSONObject childData = new JSONObject(); childData.put("row", Integer.valueOf(row)); childData.put("column", Integer.valueOf(col)); parentData.put("params", childData); //call request function and return the result this.execute(parentData); //validMemory = true; //return object.getJSONArray("result"); } /* (non-Javadoc) * @see de.htwg.memory.IConnection#readCardState(int, int) */ public void readCardState(int firstCard, int secondCard) throws JSONException, IOException { switchMethod = 1; JSONObject parentData = new JSONObject(); parentData.put("action", "move"); JSONObject childData = new JSONObject(); childData.put("firstCard", Integer.valueOf(firstCard)); childData.put("secondCard", Integer.valueOf(secondCard)); parentData.put("params", childData); //call request function and return the result this.execute(parentData); //return object.getInt("result"); } /** * @param parentData contains parameter for the webserver for exmaple: * { "action": "move", "params": {"firstCard": 4, "secondCard":5 } } * { "action": "create", "params": {"row": 4, "column":5 } } * @return a jsonAraay which have the response answer from webserver * @throws JSONException from JSON * @throws JSONException execute() */ @Override protected JSONArray doInBackground(JSONObject... parentData) { // TODO Auto-generated method stub try { StringEntity se = new StringEntity( parentData[0].toString()); se.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, "application/json")); httppost.setEntity(se); HttpResponse response = httpClient.execute(httppost); JSONObject result = null; StatusLine status = response.getStatusLine(); Integer statusCode = status.getStatusCode(); Log.d("StatusCode", statusCode.toString()); if (statusCode == 200) { HttpEntity entity = response.getEntity(); String ret = EntityUtils.toString(entity); result = new JSONObject(ret); String re = result.getString("result"); if(re.equals("error")) { Log.d("result", statusCode.toString()); return null; } else { return result.getJSONArray("result"); } } return null; } catch (Exception e) { Log.e("Error", e.toString()); } return null; } @Override protected void onPostExecute(JSONArray result) { if ( switchMethod == 0 ){ GameActivity.drawGame(result); }else{ try { CheckCards.handle(result.getInt(0)); } catch (JSONException e) { // TODO Auto-generated catch block Log.e("error",e.toString()); } } } } <file_sep>package de.htwg.memory.activity; import android.app.Activity; import android.os.Bundle; import de.htwg.memory.R; /** * display the impressum of the game * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 */ public class ImpressActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.impressum); } } <file_sep><?php /** * Memory.php * * This file contains the memory class. The class contains the memory logic. * @author <NAME> <<EMAIL>> * @version 1.0 * @package memory * @subpackage classes */ class Memory { const GAME_STATE_MOVE_INVALID = 0; const GAME_STATE_MOVE_VALID = 1; const GAME_STATE_WON = 2; /** * holds the memory game matrix * @access private */ private $memory = array(); /** * holds the solved pair identifier * @access private */ private $solvedList = array(); /** * holds the number of pairs * @access private */ private $numberOfPairs = 0; /** * Constructor * @access public * @author <NAME> * @param int $rows - number of rows * @param int $columns - number of columns * @throws InvalidArgumentException if row or column are invalid * @return void */ public function __construct( $rows = 0, $columns = 0 ) { if ( $rows < 0 or $columns < 0 or ( $rows * $columns ) % 2 != 0 ) { throw new InvalidArgumentException("invalid argument in ." . __CLASS__ . ": " . __METHOD__ ); } $counter = 0; $pairIdentifier = 0; $pairs = array(); for ( $i = 0; $i < $rows * $columns; $i++ ) { if ( $counter % 2 == 0 ) { $pairIdentifier++; } $counter++; $pairs[$i] = $pairIdentifier; } shuffle( $pairs ); $this->numberOfPairs = count($pairs) / 2; $counter = 0; for( $row = 0; $row < $rows; $row++ ) { for( $column = 0; $column < $columns; $column++ ) { $this->memory[$row][$column] = $pairs[$counter]; $counter++; } } } /** * Destructor * @access public * @author <NAME> */ public function __destruct( ) { unset( $this->memory ); unset( $this->solvedList ); } /** * Get the memory matrix * @access public * @author <NAME> * @return array - memory */ public function getMemory( ) { return $this->memory; } /** * This function handles a move and checks if the memory is solved. * @access public * @author <NAME> * @param array $firstCard - first Card * @param array $secondCard - second Card * @return integer - the state of the game */ public function move( $firstCardID, $secondCardID ) { $result = self::GAME_STATE_MOVE_INVALID; $memoryFlatten = array(); foreach ( new RecursiveIteratorIterator ( new RecursiveArrayIterator( $this->memory ) ) as $v ) { $memoryFlatten[] = $v; } $memoryFlatten = array_unique($memoryFlatten); if ( in_array( $firstCardID, $memoryFlatten ) and in_array( $secondCardID, $memoryFlatten ) ) { if ( $firstCardID === $secondCardID ) { $result = self::GAME_STATE_MOVE_VALID; $pairIdentifier = $firstCardID; if ( !in_array( $pairIdentifier, $this->solvedList ) ) { $this->solvedList[] = $pairIdentifier; if ( count( $this->solvedList ) === $this->numberOfPairs ) { $result = self::GAME_STATE_WON; } } } } return $result; } } ?><file_sep>package de.htwg.memory.activity; import java.io.IOException; import java.util.Timer; import java.util.TimerTask; import org.json.JSONArray; import org.json.JSONException; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; import de.htwg.memory.CheckCards; import de.htwg.memory.MemoryCard; import de.htwg.memory.MemoryConnection; import de.htwg.memory.MemoryLocationListener; import de.htwg.memory.R; /** * this class represent the game activity * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 * */ public class GameActivity extends Activity { private static TableLayout table; private static Context contextTable; public static TextView longitude; public static TextView latitude; private static int x = 4; private static int y = 4; private static TextView anzTries; private static Integer anz = 0; private static GameActivity gameActivity; private String name; private static MemoryConnection connection = null; public static MemoryTimerTask timerTask; private static Timer timer = new Timer(); private TextView timeView; public static Integer timeCounter = 0; public static MemoryLocationListener locationListener = new MemoryLocationListener(); /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.game); table = (TableLayout)findViewById(R.id.tableLayout1); contextTable = table.getContext(); anzTries = (TextView)findViewById(R.id.anz); anzTries.setText("0"); timeCounter = 0; latitude = (TextView)findViewById(R.id.latitudeValue); longitude = (TextView)findViewById(R.id.longitudeValue); name = (String) getIntent().getExtras().get("name"); gameActivity = this; timeView = (TextView)findViewById(R.id.time); timerTask = new MemoryTimerTask(); //create new game try { //create new connection connection = new MemoryConnection(); LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 1000, 5, locationListener ); createNewGame(); } catch (Exception e) { Log.e("Exception GameActivity", "createGame failed"); AlertDialog.Builder builder = new AlertDialog.Builder(gameActivity); builder.setTitle("ERROR") .setCancelable(false) .setMessage("cannot create a new game - no connection to server") .setPositiveButton("Close", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { gameActivity.finish(); } }); AlertDialog alert = builder.create(); alert.show(); } } @Override public void onStop(){ super.onStop(); timerTask.stopTask(); anz = 0; } /** * @return playername */ public String getName() { return name; } /** * @return count of tries */ public static int getTries() { return anz; } public static void setTries(int value){ anz = Integer.valueOf(value); anzTries.setText(anz.toString()); } /** * @return time */ public Integer getTime(){ return timeCounter; } /** * format time as a string * * @param time timer * @return formatted String */ @SuppressLint("DefaultLocale") public String formatTimeToString(Integer time){ int seconds = (int) (time) % 60 ; int minutes = (int) ((time / 60) % 60); int hours = (int) ((time / (60*60)) % 24); return String.format("%02d:%02d:%02d", hours, minutes, seconds ); } /** * create an new game * * @param row number of rows in the memory game * @param col number of columns in the memory game * @throws IOException exception from readMemory() * @throws JSONException exception from readMemory() */ private void createNewGame() throws JSONException, IOException { //send an http request to the web server to get the ids for the memory cards connection.readMemory(x, y); } public static void drawGame(JSONArray jsonArray){ //error Message if connection is interrupted if(jsonArray == null) { AlertDialog.Builder builder = new AlertDialog.Builder(gameActivity); builder.setTitle("ERROR") .setCancelable(false) .setMessage("cannot create a new game - no connection to server") .setPositiveButton("Close", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { gameActivity.finish(); } }); AlertDialog alert = builder.create(); alert.show(); }else{ timer.schedule(timerTask, 1000, 1000); //create a new memory card array final MemoryCard[] cards = new MemoryCard[x*y]; //fill the table layout with memory cards for(int i=0; i<x; i++) { //create a new table row in the table layout final TableRow tr = new TableRow(gameActivity); tr.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); for(int j=0; j<y; j++) { try { //get id for current memory card Log.d("print",jsonArray.toString()); int id = jsonArray.getJSONArray(i).getInt(j); //create new memory card and set it clickable final MemoryCard card = new MemoryCard(contextTable, id); card.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { if(!card.isClicked()) { card.setWantToTurn(true); card.setTurnBack(0); } else if(card.getTurnBack() == 1) { card.setTurnBack(2); } //after a card is clicked start a async task to check whether //two cards are clicked //equal -> cards disappear //unequal -> turn around cards new CheckCards(gameActivity, cards, x, y).execute(); //new CheckCards(gameActivity, cards, row, col).execute(); }}); //add card to table row tr.addView(card); //and set card in array cards[(x*i)+j] =card; } catch (JSONException e) { // TODO Auto-generated catch block Log.d("Error", e.toString()); } } //set table row to table layout table.addView(tr); } } } @SuppressLint("DefaultLocale") public class MemoryTimerTask extends TimerTask { public void run() { timeCounter++; runOnUiThread(new Runnable() { public void run() { timeView.setText(formatTimeToString(timeCounter)); } }); } public void stopTask(){ this.cancel(); int anz = getTries(); int time = getTime(); String formattedTime = formatTimeToString(time); String name = getName(); AlertDialog.Builder builder = new AlertDialog.Builder(gameActivity); builder.setTitle("You have won!") .setCancelable(false) .setMessage(name + " has needed " + anz + " tries and " + formattedTime +" of time.") .setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { gameActivity.finish(); } }); AlertDialog alert = builder.create(); alert.show(); timeCounter = 0; } } } <file_sep>package de.htwg.memory.activity; import de.htwg.memory.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; /** * this class is the start activity with three buttons (play, settings, about) * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 */ public class StartActivity extends Activity { private TextView version; private String size = "4x4"; private String name = "Mustermann"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); version = (TextView)findViewById(R.id.versionText); version.setText("Version 1.0"); Button game = (Button)findViewById(R.id.spielen); game.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(StartActivity.this, GameActivity.class); intent.putExtra("size", size); intent.putExtra("name", name); startActivity(intent); } }); Button einstellung = (Button)findViewById(R.id.einstellung); einstellung.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(StartActivity.this, SettingActivity.class); intent.putExtra("size", size); intent.putExtra("name", name); startActivityForResult(intent, 10); } }); Button impressum = (Button)findViewById(R.id.impressum); impressum.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(StartActivity.this, ImpressActivity.class); startActivity(intent); } }); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if(resultCode==RESULT_OK && requestCode==10) { name = data.getStringExtra("name"); size = data.getStringExtra("size"); } } }<file_sep>package de.htwg.memory.activity; import de.htwg.memory.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.RadioButton; import android.widget.RadioGroup; import android.widget.RadioGroup.OnCheckedChangeListener; /** * this class represent the setting activity * in this actitvity it is possible to set the the size of the memory board and set the playername * both parameters necessary for the GameActivity.class * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 */ public class SettingActivity extends Activity { private String name = "Mustermann"; private String size = "4x4"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.einstellung); name = (String) getIntent().getExtras().get("name"); size = (String) getIntent().getExtras().get("size"); //playername EditText spielername = (EditText)findViewById(R.id.editSpielername); spielername.setText(name); spielername.addTextChangedListener(new TextWatcher() { public void onTextChanged(CharSequence s, int start, int before, int count) {/* Nothing*/ } public void beforeTextChanged(CharSequence s, int start, int count, int after) {/* Nothing*/ } //after Text is changed public void afterTextChanged(Editable s) { name = s.toString(); } }); //memoryboard size //init radioButton group RadioGroup radioGroup = (RadioGroup)findViewById(R.id.radioGroup); RadioButton button16 = (RadioButton)findViewById(R.id.radio16); button16.setChecked(true); radioGroup.setOnCheckedChangeListener(new OnCheckedChangeListener() { public void onCheckedChanged(RadioGroup group, int checkedId) { switch (checkedId) { case R.id.radio16 : size = "4x4"; break; default: size = "4x4"; } } }); //finish the activity and send the parameters "size" and "name" back to the startActivity.class //both parameters are strings Button button = (Button)findViewById(R.id.backButton); button.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { Intent intent= getIntent(); intent.putExtra("size", size); intent.putExtra("name", name); setResult(RESULT_OK, intent); finish(); } }); } } <file_sep>package de.htwg.memory; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.AsyncTask; import android.util.Log; import de.htwg.memory.activity.GameActivity; /** * this class represent a game card, which can be clicked and turned each card has a common backimage * two cards with the same cardid have the same unique frontimage * * @author <NAME> <<EMAIL>> * @version V1.0 18-01-2014 */ public class CheckCards extends AsyncTask<Void, Void, int[]> { private static MemoryCard[] cards; private final int row; private final int col; private static GameActivity gameActivity; private static int[] checkCardArray = new int[2]; /** * @param gameActivity is the GameActivity Class which calls this class * @param cards is the array of cards * @param connection * @param row is the number ow rows in the game * @param col is the number ow rows in the game */ @SuppressLint("DefaultLocale") public CheckCards(final GameActivity gameActivity, final MemoryCard[] cards, int row, int col) { super(); CheckCards.gameActivity = gameActivity; MemoryCard[] cardArray = cards; CheckCards.cards = cardArray; this.row = row; this.col = col; } /** * to check which cards a clicked, only two cards can be clicked * more than two clicked cards will be ignored * * future information @see android.os.AsyncTask#doInBackground(Params[]) */ @Override protected int[] doInBackground(Void... params) { //create an cardArray which have the two clicked cards //identifier is the index in the cards array int[] cardArray = new int[2]; cardArray[0] = -1; cardArray[1] = -1; int anzClickedCards = 0; for(int i=0; i<row*col; i++) { if(cards[i].isClicked()) { cardArray[anzClickedCards++] = i; if(anzClickedCards >= 2) { break; } } } for(int i=0; i<row*col; i++) { if(anzClickedCards < 2 && cards[i].getWantToTurn()) { cards[i].setClicked(true); cards[i].setWantToTurn(false); cardArray[anzClickedCards++] = i; if(anzClickedCards >= 2) { break; } } else { cards[i].setWantToTurn(false); } } return cardArray; } /** * onPostExecute is called after doInBackground * method is necessary to flip cards in both ways(show frontimage and backimage) * * furture information @see android.os.AsyncTask#onPostExecute(java.lang.Object) */ @Override protected void onPostExecute(int[] cardArray) { checkCardArray = cardArray; //turn the clicked cards to front for(int i=0; i<2; i++) { if(cardArray[i] >= 0) { cards[cardArray[i]].turnFront(); } } //only if two cards are clicked check whether they are couples if(cardArray[0] != -1 && cardArray[1] != -1) { if(cards[cardArray[0]].getTurnBack() == 0 && cards[cardArray[1]].getTurnBack() == 0) { cards[cardArray[0]].setTurnBack(1); cards[cardArray[1]].setTurnBack(1); // read status from server try { MemoryConnection connection = new MemoryConnection(); connection.readCardState(cards[cardArray[0]].getCardId(), cards[cardArray[1]].getCardId()); } catch (Exception e){ Log.d("error", e.toString()); } } if(cards[cardArray[0]].getTurnBack() == 2 || cards[cardArray[1]].getTurnBack() == 2) { cards[checkCardArray[0]].turnBack(); cards[checkCardArray[0]].setTurnBack(0); cards[checkCardArray[0]].setClicked(false); cards[checkCardArray[1]].turnBack(); cards[checkCardArray[1]].setTurnBack(0); cards[checkCardArray[1]].setClicked(false); } } } @SuppressWarnings("static-access") public static void handle(int ret){ Log.d("handle",String.valueOf(ret)); //error message if connection is interrupted if(ret == -1) { AlertDialog.Builder builder = new AlertDialog.Builder(gameActivity); builder.setTitle("ERROR") .setCancelable(false) .setMessage("cannot read card state - no connection to server") .setPositiveButton("Close", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { gameActivity.finish(); } }); AlertDialog alert = builder.create(); alert.show(); } if(ret == 1) { gameActivity.locationListener.checkCoordinates(cards[checkCardArray[0]], cards[checkCardArray[1]]); cards[checkCardArray[0]].setTurnBack(0); cards[checkCardArray[1]].setTurnBack(0); } else if(ret == 2) { gameActivity.locationListener.lastCheckCoordinates(cards[checkCardArray[0]], cards[checkCardArray[1]]); } else { Integer anz = GameActivity.getTries()+1; GameActivity.setTries(anz); cards[checkCardArray[0]].setTurnBack(2); cards[checkCardArray[1]].setTurnBack(2); } } } <file_sep><?php /** * Communicator.php * * This file contains the communicator class. The class reads json and sends a json back. * @author <NAME> <<EMAIL>> * @version 1.0 * @package memory * @subpackage classes */ class Communicator { /** * holds the json object which comes from the client * @access private */ private $jsonObject = false; /** * Constructor of Communicator * @access public * @throws InvalidArgumentException if jsonObject is invalid * @return void */ public function __construct( $jsonObject ) { if ( is_object( json_decode( $jsonObject ) ) ) { $this->jsonObject = json_decode($jsonObject); } else { throw new InvalidArgumentException("invalid argument in " . __CLASS__ . ": " . __METHOD__ ); } } /** * Destructor * @access public */ public function __destruct( ) { unset( $this->jsonObject ); } /** * Handles the JSON object which comes from the client. * @access public * @throws BadFunctionCallException if action method is not existing * @return array */ public function handleJSON() { $action = (string) $this->jsonObject->{'action'}; if ( in_array( $action, array( 'create', 'move' ) ) ) { return $this->{$action}(); } else { throw new BadFunctionCallException("invalid method call of ". $action ." in " . __CLASS__ . ": " . __METHOD__ ); } } /** * Creates a new memory instance * @access private * @return array - the memory matrix */ private function create() { $memory = new Memory( $this->jsonObject->{'params'}->{'row'}, $this->jsonObject->{'params'}->{'column'} ); $memoryMatrix = $memory->getMemory(); $_SESSION['memory'] = serialize($memory); return array( 'result' => $memoryMatrix ); } /** * Handles a game move. * @access private * @throws BadFunctionCallException if memory object is invalid * @return array - the move result */ private function move() { $memory = unserialize($_SESSION['memory']); //session could be empty if ( $memory instanceOf Memory ) { $result = $memory->move( (int)$this->jsonObject->{'params'}->{'firstCard'}, (int)$this->jsonObject->{'params'}->{'secondCard'} ); $_SESSION['memory'] = serialize($memory); return array( 'result' => array($result) ); } else { throw new BadFunctionCallException("invalid memory object in " . __CLASS__ . ": " . __METHOD__ ); } } }<file_sep><?php /** * create.php * * This files handles receives json object from client and delivers result as a JSON object back to the client. * @author <NAME> <<EMAIL>> * @version 1.0 * @package Memory */ session_start(); include_once("Memory/Communicator.php"); include_once("Memory/Memory.php"); //read from json $json = file_get_contents('php://input'); //$json = '{ "action": "create", "params": {"row": 4, "column":5 } }'; //$json = '{ "action": "move", "params": {"firstCard": 4, "secondCard":5 } }'; try { $communicator = new Communicator( $json ); $result = $communicator->handleJSON(); } catch( Exception $e ) { $result = array( 'result' => 'error', 'report' => $e->getMessage() ); } header('Content-type: application/json'); echo json_encode( $result ); ?><file_sep><?php if (!defined('PHPUnit_MAIN_METHOD')) { define( 'PHPUnit_MAIN_METHOD', 'MemoryAllTests::main' ); } require_once 'PHPUnit/Framework/TestSuite.php'; //require_once 'PHPUnit/TextUI/TestRunner.php'; require_once 'memory/MemoryTest.php'; require_once 'memory/CommunicatorTest.php'; class MemoryAllTests { public static function main() { PHPUnit2_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite( 'MemoryTest' ); //add more tests to the suite $suite->addTestSuite(new PHPUnit_Framework_TestSuite( 'CommunicatorTest' )); return $suite; } } if (PHPUnit_MAIN_METHOD == 'MemoryAllTests::main') { MemoryAllTests::main(); } ?><file_sep><?php require_once 'PHPUnit/Framework/TestCase.php'; require_once 'src/Memory/Memory.php'; class MemoryTest extends PHPUnit_Framework_TestCase { public static function suite() { return new MemoryTest('MemoryTest'); } public function testMemoryHasValidArguments1() { try { $memory = new Memory(4, 5); } catch(InvalidArgumentException $e) { $this->fail(); } } public function testMemoryHasInValidArguments2() { try { $memory = new Memory(-3, 5); } catch(InvalidArgumentException $e) { return; } $this->fail(); } public function testMemoryHasInValidArguments3() { try { $memory = new Memory(3, 3); } catch(InvalidArgumentException $e) { return; } $this->fail(); } public function testMemoryMove1() { $memory = new Memory(4, 4); $this->assertEquals(1, $memory->move(1,1) ); } public function testMemoryMove2() { $memory = new Memory(4, 4); $this->assertEquals(0, $memory->move(2,1) ); } public function testMemoryMove3() { $memory = new Memory(2, 2); $memory->move(1,1); $this->assertEquals(2, $memory->move(2,2) ); } } ?>
313aab75f3ef2fcc59445ae554620eb90d0f0504
[ "Java", "PHP" ]
14
Java
ymc-sise/sport-memory
bb32cb81f8d870fb0382e09a4ade415f59bb5721
ff15e54b4623d706f13942827aa603c5c016c4dc
refs/heads/master
<repo_name>arci5891/vuetify-admin<file_sep>/examples/laravel/routes/api.php <?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | */ Route::group(['middleware' => 'auth:sanctum'], function () { Route::account(); Route::impersonate(); Route::upload(); /** * API resources controllers */ Route::apiResources([ 'users' => 'UserController', 'monsters' => 'MonsterController', 'monster_children' => 'MonsterChildController', 'books' => 'BookController', ]); }); <file_sep>/examples/demo-laravel/routes/api.php <?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | */ Route::group(['prefix' => 'auth'], function () { Route::post('login', 'AuthController@login'); Route::post('logout', 'AuthController@logout'); Route::post('refresh', 'AuthController@refresh'); Route::post('me', 'AuthController@me'); }); Route::group(['middleware' => 'auth:sanctum'], function () { Route::account(); Route::impersonate(); Route::upload(); /** * Tree specific routes */ Route::get('categories/tree', 'CategoryController@tree'); Route::get('categories/nodes/{parentId?}', 'CategoryController@nodes'); Route::patch('categories/{category}/move', 'CategoryController@move'); /** * API resources controllers */ Route::apiResources([ 'users' => 'UserController', 'authors' => 'AuthorController', 'books' => 'BookController', 'reviews' => 'ReviewController', 'publishers' => 'PublisherController', 'categories' => 'CategoryController', ]); });
69cef768a0c109b19f6ced7484ee30dde599b733
[ "PHP" ]
2
PHP
arci5891/vuetify-admin
2ce69b2ea04e356362ac770083d3440736d9d5d3
60ed264d874eca860dc8c683ee8fcd44a474d715
refs/heads/main
<repo_name>sharifkb/Valuing-nearby-Asteroids-by-Quantifying-their-Metal-Ore-Content<file_sep>/generalising for all asteroids in horizons database.py # -*- coding: utf-8 -*- """ Created on Mon Jan 6 03:23:19 2020 @author: shari """ import numpy as np import pylab as py import matplotlib.pyplot as plt from astroquery.jplhorizons import Horizons nhao = {"lon" : 52.4862,"lat" : 1.8904,"elevation" : 140} AU2M = 149597870700 v_0 = -26.762 sph = 3600 mpkm = 1000 mc = -55.87 I = [] sun_dist = [] Type =[] d = 500 n = 1 while n <= d: asteroid = Horizons(n, epochs={'start':'2019-01-01', 'stop':'2019-02-01', 'step':'1d'}) eph = asteroid.ephemerides() H = eph["H"][0] sun_distance = np.average(eph["r"]) obs_dist = np.average(eph["delta"]) ang_width = np.average(np.deg2rad(eph["ang_width"]/sph)) diam = ang_width*obs_dist*AU2M/1000 #diameter in km S = np.pi*(diam*mpkm/2)**2 a = 10**((H-v_0-2.5*np.log10(np.pi/S)+mc)/-2.5) if a<1 and 1.5<sun_distance<4: I.append(a) sun_dist.append(sun_distance) if I[0] <= 0.1: T = 1 #C_type, carbonaceous if 0.1 < I[0] <= 0.18: T = 2 #"S_type, silicaceous or M_typem metallic" if I[0] > 0.18: T = 3 #"S_type, silicaceous" Type.append(T) n = n+1 fig, axs = plt.subplots(1, 1, figsize=(11, 6), sharex=False, sharey=False, gridspec_kw=None) plt.tight_layout(pad=6) axs.plot(sun_dist, I, "+", color="red") axs.set(ylabel= "Albedo", xlabel= "Distance from the sun [AU]", title="Albedo of asteroids against their average distance from the sun") z = np.polyfit(sun_dist, I, 1) p = np.poly1d(z) py.plot(sun_dist,p(sun_dist),"r") plt.annotate("y=%.6fx+%.6f"%(z[0],z[1]), xy=(0.05, 0.95), xycoords='axes fraction') #-0.045610x+0.268640 #y = -0.051142x+0.280705 #-0.059202x+0.302258 #0.063169<file_sep>/Finding albedo, size, mass.py # -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator from astroquery.jplhorizons import Horizons #DEFINITIONS BELOW!!!!!!!!!! #https://ssd.jpl.nasa.gov/?horizons_doc#specific_quantities #https://arxiv.org/pdf/1104.4227.pdf """ Constants AU = Astronomical unit (m) v_0 = Magnitude of the sun in the V band (mag) spy = seconds per yes (s) sph = seconds per hour (s) mpkm = meters per kilometer (m) """ AU = 149597870700 v_0 = -26.762 spy = 3600*24*365 sph = 3600 mpkm = 1000 mc = -55.87 """ Quoted values for Eckard 694 from https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=694 e= eccentricity sma = Semi-major axis (m) i = Inclination (deg) T = Period (s) Trot = Rotational Period (s) H = Absolute Magnitude (mag) V = Apparent V band magnitude dg = distance to the sun dh distance to earth D = Diameter (km) Ag = Geometric albedo G = Slope parameter (https://in-the-sky.org/data/object.php?id=A694#source_00) Observed Values dh = Heliocentric distance on night of observation dg = geocentric distance on night of observation V = Observed apparrent magnitude """ e = 0.3222011376356694 e_err = 3.1947*10**-8 sma = 2.671961685807055*AU sma_err = AU*6.8881*10**-9 i = 15.88864056439503 i_err = 4.3093*10**-6 T = 4.37*spy T_err = spy*1.689*10**-8 Trot = 5.925*sph #H = 9.17 D = 121.891 D_err = 0.721 #Ag = 0.026 #Expected albedo #Ag_err = 0.003 G = 0.15 dh = 1.076*AU dg = 2.017*AU d_err = 0.0005 V = 11.281199999999998 V_err = 0.16 """ Plotting the phase of Ekard over 3500 days """ ekard = Horizons(694, epochs={'start':'2010-01-01', 'stop':'2020-01-01', 'step':'1d'}) eph = ekard.ephemerides() fig, axs = plt.subplots(1, 1, figsize=(6, 4), sharex=False, sharey=False, gridspec_kw=None) axs.plot(eph["datetime_jd"], eph["alpha"]) plt.tight_layout() fig.align_ylabels(axs) fig.align_xlabels(axs) axs.set_xlabel("JD") axs.tick_params(rotation=45) axs.set_ylabel(r"Phase angle ($^\circ$)") axs.set(title = "Phase angle of Ekard over 3500 days") plt.show() minimum_alpha = min(eph["alpha"]) maximum_alpha = max(eph["alpha"]) #print("Min phase angle = {} deg" .format(minimum_alpha)) #print("Max phase angle = {} deg" .format(maximum_alpha)) """ Estimating the geometic albedo alpha = Phase angle of Eckard on night of observation using cosine formula G1, = Gerometric albedo estimate (expect ~0.026) Ha = Reduced magnitude at this phase angle H0 = Reduced magnitude at opposition S = averaage projected are of Eckard using quoted diameter I = Radiance factor """ theta = np.linspace(0, maximum_alpha, num = 1000) #Producing a list of angles to model the Radience factor rads = np.deg2rad(theta) alpha = np.arccos((dh**2+dg**2-AU**2)/(2*dh*dg)) #Calculating the Phase angle on the night of observation Ha = V-5*np.log10(dh*dg/AU**2) #Calculating the reduced magnitude at this phase angle #finding H0 P1 = np.exp(-3.332*(np.tan(alpha/2))**0.631) P2 = np.exp(-1.862*(np.tan(alpha/2))**1.218) H0 = Ha + 2.5*np.log10((1-G)*P1+G*P2) #Absolute magnitude when alpha=0 #print("H0 = {}".format(H0)) #print("Ha = {}".format(Ha)) #finding how H varies with phase angle P11 = np.exp(-3.332*(np.tan(rads/2))**0.631) P22 = np.exp(-1.862*(np.tan(rads/2))**1.218) Halpha = H0 - 2.5*np.log10((1-G)*P11+G*P22) #How the absolute magnitude varies from opposition S = np.pi*(D*mpkm/2)**2 #Average projected area of the asteroid I = 10**((Halpha-v_0-2.5*np.log10(np.pi/S)+mc)/-2.5) I_err = I*np.sqrt((np.log(10)*V_err)**2+(2/(D/2)*np.log(10)*D_err/2)**2) fig, axs = plt.subplots(1, 1, figsize=(6, 4), sharex=False, sharey=False, gridspec_kw=None) ax = axs ax2 = ax.twiny() ax.plot(rads, I) axs.tick_params(rotation=45) ax.errorbar(rads,I, yerr = I_err, fmt = "none") ax.set(ylabel='I/F', xlabel='Phase(Rads)', title='Radiance factor over the range of phase angles for Ekard') ax2.plot(theta, I, ls='') ax2.set(xlabel='Phase ($^\circ$)') ax2.xaxis.set_major_locator(MultipleLocator(10)) ax2.xaxis.set_minor_locator(MultipleLocator(5)) plt.tight_layout() fig.align_ylabels(axs) fig.align_xlabels(axs) plt.show() print("Geometric albedo estimate = {}±{}" .format(I[0], I_err[0])) """ Finding how THe intensity varies over time """ P111 = np.exp(-3.332*(np.tan(np.deg2rad(eph["alpha"])/2))**0.631) P222 = np.exp(-1.862*(np.tan(np.deg2rad(eph["alpha"])/2))**1.218) Halpha1 = H0 - 2.5*np.log10((1-G)*P111+G*P222) #How the absolute magnitude varies from opposition S = np.pi*(D*mpkm/2)**2 #Average projected area of the asteroid I1 = 10**((Halpha1-v_0-2.5*np.log10(np.pi/S)+mc)/-2.5) #I_err = I*np.sqrt((np.log(10)*V_err)**2+(2/(D/2)*np.log(10)*D_err/2)**2) fig, axs = plt.subplots(1, 1, figsize=(6, 4), sharex=False, sharey=False, gridspec_kw=None) ax = axs ax.plot(eph["datetime_jd"], Halpha1) plt.tight_layout() fig.align_ylabels(axs) fig.align_xlabels(axs) axs.set_xlabel("JD") axs.tick_params(rotation=45) axs.set_ylabel("I/F") axs.set(title = "Reduced magnitude of Eckard over 3500 days") plt.show() """ Calculating the average diameter of the asteroid using the "1329" relation. """ D1 = 1329*I[0]**(-0.5)*10**(-0.2*Halpha1) #print("Projected diameter on the night of observation= {}" .format(D1)) fig, axs = plt.subplots(1, 1, figsize=(6, 4), sharex=False, sharey=False, gridspec_kw=None) ax = axs ax.plot(eph["datetime_jd"], D1) plt.tight_layout() fig.align_ylabels(axs) fig.align_xlabels(axs) axs.set_xlabel("JD") axs.tick_params(rotation=45) axs.set_ylabel("Projected diameter (km)") axs.set(title = "Projected diameter of Eckard over 3500 days") plt.show() """ Calculating the three dimentions of the asteroid assuming a triaxial ellipsoid shape, D is the average extent. a is the longest extent c is along the rotational axis b is perpendicular to a and c """ a = round(D*(1.2**2*1.1)**(1/3), 3) a_err = round(D_err*(1.2**2*1.1)**(1/3), 3) b = round(a/1.2, 3) b_err = round(a_err/1.2, 3) c = round(b/1.1, 3) c_err = round(a_err/(1.1*1.2), 3) print("a = ({}±{}) km" .format(a, a_err)) print("b = ({}±{}) km" .format(b, b_err)) print("c = ({}±{}) km" .format(c, c_err)) """ assuming a density of 2000kg/m^3, the mass can be found """ M = round(np.pi*a*b*c*2000/(6*10**9), 3) M_err = round(M*np.sqrt((a_err/a)**2+(b_err/b)**2+(c_err/c)**2), 3) print("Mass = ({}±{})E9 kg" .format(M, M_err)) <file_sep>/README.md # This investigation aims to determine key properties of asteroids to assess their suitability for asteroid mining. The indicators used to judge this include rotational period, geometric albedo, mass, and volume. Three asteroids were selected for observation; these were 18172 (2000 QL7), 162723 (2000 VM) and 99248 (2001 KY66). Unfortunately, unfavourable weather conditions throughout November 2019 meant that we were unable to observe these targets, instead, archival data available thanks to Sean McGee and the JPL Horizons database were used. Despite being unable to observe these targets, the criteria for asteroid selection as well as the reduction procedure was still applicable for the archival data, hence being described in section 2.1. 694 Ekard was chosen as a backup target and its rotational period, geometric albedo and diameter were found to be $5.87\substack{+2.71 \\ -1.02} h$, one standard deviation away from online predictions, $0.025\pm0.001$, one standard deviations from online predictions, and $121.891\pm3.657\ \si{\kilo\meter}$ agreeing with predictions to 3d.p respectively.
88f6e4bbc4928153203df0f9a1b6f46f73429161
[ "Markdown", "Python" ]
3
Python
sharifkb/Valuing-nearby-Asteroids-by-Quantifying-their-Metal-Ore-Content
51ac7e80d07b6162bd2a2ca05f09d7d0995b8e53
a9e0531e6a79eda328dad30e67b0423e1b419855
refs/heads/master
<file_sep>package com.codility.excercises; public class CheckPerm { public int solution(int[] a) { int counter[] = new int[a.length]; for (int i = 0; i<a.length; i++){ if (a[i] < 1 || a[i] > a.length){ return 0; } else if (counter[a[i]-1] == 1){ return 0; } else{ counter[a[i]-1] += 1; } } return 1; } } <file_sep>package com.codility.excercises; /** * Created by yamsergey on 26.05.14. */ public class ChessBoard { public int solution(int[][] a) { int maximumValue = Integer.MIN_VALUE; for (int p = 0; p < a.length; p++) { for (int q = 0; q < a[p].length; q++) { if (p > 0 && q > 0) { a[p][q] += Math.max(a[p - 1][q], a[p][q - 1]); } else if (p == 0 && q > 0) { a[p][q] += a[p][q - 1]; } else if (q == 0 && p > 0) { a[p][q] += a[p - 1][q]; } maximumValue = a[p][q]; } } return maximumValue; } } <file_sep>package com.codility.excercises; import java.util.Arrays; /** * Created by yamsergey on 26.05.14. */ public class MinimumDifference { public int solution(int a[]){ //Re-arrange array's elements Arrays.sort(a); //Set minimal value to default int minimalValue = Integer.MAX_VALUE; /*traversing through array, comparing distinct pairs and finding minimal value*/ for (int i = 0; i < a.length-1; i++){ minimalValue = Math.min(a[i+1]-a[i], minimalValue); } return minimalValue; } } <file_sep>package com.codility.excercises; import java.util.*; /** * Created by yamsergey on 25.05.14. */ public class Distinct { public int solution(int a[]){ HashSet<Integer> sortedSet = new HashSet<Integer>(); for (int i=0; i<a.length; i++){ sortedSet.add(a[i]); } // sortedSet.addAll(Arrays.asList((a)); return sortedSet.size(); } }
015e381d5ea8588de60a61190cfe27d4c657ebb6
[ "Java" ]
4
Java
yamsergey/Codility
7a430591c57ef783337b63b1a7a346ff4eb5bda4
9ba89e7fa0016dce893df90ba1cab79e97bf0a6b
refs/heads/master
<file_sep>"# react_appintro_navigation_test" <file_sep>import * as React from 'react'; import { View, Text, Button, AsyncStorage } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; const Stack = createStackNavigator(); const HomeScreen = ({ navigation }) => ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text>HomeScreen</Text> </View> ); const AppIntroScreen = ({ navigation }) => ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text>AppIntroScreen</Text> <Button title="DetailScreen" onPress={()=>{ AsyncStorage.setItem('firstRun','false'); //navigation.navigate('Detail'); }}></Button> </View> ); const DetailScreen = props => ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text>DetailScreen</Text> </View> ); export default class App extends React.Component { constructor() { super(); this.state = { firstRun: null, RootName: null }; } componentDidMount() { AsyncStorage.getItem("firstRun").then(value => { this.state.RootName = value === 'false' ? "Home" : "AppIntro"; console.log(this.state.RootName) console.log(value === 'false') if (value == null) { AsyncStorage.setItem('firstRun', 'true'); // No need to wait for `setItem` to finish, although you might want to handle errors this.setState({ firstRun: true }); } else { this.setState({ firstRun: false }); } }) // Add some error handling, also you can simply do this.setState({fistLaunch: value == null}) } render() { if(this.state.RootName === "Home") { return ( <NavigationContainer> <Stack.Navigator> <Stack.Screen name="Home" component={HomeScreen}></Stack.Screen> <Stack.Screen name="Detail" component={DetailScreen}></Stack.Screen> </Stack.Navigator> </NavigationContainer> ); } else if(this.state.RootName === "AppIntro") { return ( <NavigationContainer> <Stack.Navigator> <Stack.Screen name="AppIntro" component={AppIntroScreen}></Stack.Screen> <Stack.Screen name="Home" component={HomeScreen}></Stack.Screen> <Stack.Screen name="Detail" component={DetailScreen}></Stack.Screen> </Stack.Navigator> </NavigationContainer> ); } return( <View></View> ); } }
631b4cd196e5a8f3a287235c800e61ddc4166e5e
[ "Markdown", "JavaScript" ]
2
Markdown
myhomeworkstation/react_appintro_navigation_test
97738c97e54ca40b9898b09280704d31448bc700
6f3357b79c65dacbf54402b0cf7d0b0eb1f0795d
refs/heads/master
<file_sep>#include "customsift.h" CustomSIFT* CustomSIFT::singleton=NULL; //TODO this should blur the image before sampling. Maybe. Vec2f CustomSIFT::getSubpix(const Mat& img, Point2f off,KeyPoint p) { Mat patch; Point2f pt (off.x+p.pt.x, off.y+p.pt.y); getRectSubPix(img, cv::Size(1,1), pt, patch); return patch.at<Vec2f>(0,0); } float CustomSIFT::getSubpixBlur(const Mat& img, Point2f off,KeyPoint p, double blur, map<double,Mat> &blurred) { Mat use; if (blur < 1) { use=img; } else { if (blurred.find(blur) == blurred.end()) { Mat b; int size = (int)std::ceil(2*blur); size += size%2==0?1:0; GaussianBlur(img,b,Size(size,size),blur,blur); blurred[blur]=b; } use = blurred[blur]; } Mat patch; Point2f pt (off.x+p.pt.x, off.y+p.pt.y); getRectSubPix(use, cv::Size(1,1), pt, patch); assert(patch.type() == CV_32F); float ret = patch.at<float>(0,0); assert(ret==ret); return ret; } double CustomSIFT::guassianWeight(double dist, double spread) { return exp(-1*dist/(2*spread*spread)); } void CustomSIFT::normalizeDesc(vector<double>& desc) { double sum=0; for (double v : desc) { sum+=v*v; } double norm = sqrt(sum); if (norm!=0) for (int i=0; i<desc.size(); i++) { desc[i] /= norm; } } Point2f CustomSIFT::rotatePoint(Mat M, const Point2f& p) { Mat_<double> src(3/*rows*/,1 /* cols */); src(0,0)=p.x; src(1,0)=p.y; src(2,0)=1.0; Mat_<double> dst = M*src; //USE MATRIX ALGEBRA return Point2f(dst(0,0),dst(1,0)); } void CustomSIFT::extract(const Mat &in_img, const vector<KeyPoint> &keyPoints, vector< vector<double> >& descriptors) { map<double,Mat> blurred; int descInGrid=4; int numBins=8; //Mat gradImg = computeGradient(img); Mat img; in_img.convertTo(img, CV_32F); descriptors.resize(keyPoints.size()); for (int kpi=0; kpi<keyPoints.size(); kpi++) { KeyPoint p = keyPoints[kpi]; double scale = p.size/(16.0); //Mat rotM = getRotationMatrix2D(p.pt,p.angle,1); double rot = CV_PI*p.angle/180; Mat_<double> rotM = (Mat_<double>(3, 3) << cos(rot), -sin(rot), 0, sin(rot), cos(rot), 0, 0, 0, 1); descriptors[kpi].resize(descInGrid*descInGrid*numBins); descriptors[kpi].assign(descInGrid*descInGrid*numBins,0); int boxWidth=8; for (int boxR=-descInGrid/2; boxR<descInGrid/2; boxR++) for (int boxC=-descInGrid/2; boxC<descInGrid/2; boxC++) { for (int xOffset=-(boxWidth/2-.5); xOffset<=(boxWidth/2-.5); xOffset+=1.0) { for (int yOffset=-(boxWidth/2-.5); yOffset<=(boxWidth/2-.5); yOffset+=1.0) { Point2f actualOffset = rotatePoint(rotM,Point2f((boxWidth*boxC+xOffset)*scale ,(boxWidth*boxR+yOffset)*scale)); Point2f actualOffset_hp = rotatePoint(rotM,Point2f((boxWidth*boxC+xOffset+1)*scale ,(4*boxR+yOffset)*scale)); Point2f actualOffset_hn = rotatePoint(rotM,Point2f((boxWidth*boxC+xOffset-1)*scale ,(4*boxR+yOffset)*scale)); Point2f actualOffset_vp = rotatePoint(rotM,Point2f((boxWidth*boxC+xOffset)*scale ,(boxWidth*boxR+yOffset+1)*scale)); Point2f actualOffset_vn = rotatePoint(rotM,Point2f((boxWidth*boxC+xOffset)*scale ,(boxWidth*boxR+yOffset-1)*scale)); double firstDist = sqrt( pow((boxWidth*boxC+xOffset)*scale,2) + pow((boxWidth*boxR+yOffset)*scale,2) ); double actualDist = sqrt(actualOffset.x*actualOffset.x + actualOffset.y*actualOffset.y); assert (fabs(firstDist-actualDist)<.001); //Vec2f v = getSubpix(img,actualOffset,p); double hGrad = getSubpixBlur(img,actualOffset_hp,p,scale,blurred) - getSubpixBlur(img,actualOffset_hn,p,scale,blurred); double vGrad = getSubpixBlur(img,actualOffset_vp,p,scale,blurred) - getSubpixBlur(img,actualOffset_vn,p,scale,blurred); double mag = sqrt(hGrad*hGrad + vGrad*vGrad) * guassianWeight(actualDist,p.size/2.0); double theta = atan2(vGrad,hGrad); //theta is already relative to rotation of descriptor double binSpace = (theta+CV_PI)/(2*CV_PI) * numBins; int binCenter = ((int)(binSpace + (0.5)))%numBins; double distCenter = min(fabs(binCenter-binSpace), min(fabs((binCenter-8.0)-binSpace), fabs((binCenter+8.0)-binSpace))); int binUp = (binCenter+1)%numBins; double distUp = min(fabs(binUp-binSpace), min(fabs((binUp-8.0)-binSpace), fabs((binUp+8.0)-binSpace))); int binDown = mod(binCenter-1,numBins); double distDown = min(fabs(binDown-binSpace), min(fabs((binDown-8.0)-binSpace), fabs((binDown+8.0)-binSpace))); descriptors[kpi].at((boxC+descInGrid/2)*descInGrid*numBins + (boxR+descInGrid/2)*numBins + binCenter) += (1.5-distCenter)*mag; //cout << "addedC " << (1.5-distCenter)*mag << endl; descriptors[kpi].at((boxC+descInGrid/2)*descInGrid*numBins + (boxR+descInGrid/2)*numBins + binUp) += (1.5-distUp)*mag; //cout << "addedU " << (1.5-distUp)*mag << endl; descriptors[kpi].at((boxC+descInGrid/2)*descInGrid*numBins + (boxR+descInGrid/2)*numBins + binDown) += (1.5-distDown)*mag; //cout << "addedD " << (1.5-distDown)*mag << endl; assert(distDown > distCenter && distUp > distCenter); assert(1.5-distCenter >= 0); assert(1.5-distUp >= 0); assert(1.5-distDown >= 0); } } } normalizeDesc(descriptors[kpi]); for (int i=0; i<descriptors[kpi].size(); i++) { //descriptors[kpi][i] = (descriptors[kpi][i]-min)/max; if (descriptors[kpi][i] > 0.2) descriptors[kpi][i] = 0.2; } normalizeDesc(descriptors[kpi]); } assert(descriptors.size() == keyPoints.size()); assert(descriptors[0].size() == 128); //cout << "extracted " << descriptors.size() <<endl; } Mat CustomSIFT::computeGradient(const Mat &img) { Mat h = (Mat_<double>(1,3) << -1, 0, 1); Mat v = (Mat_<double>(3,1) << -1, 0, 1); Mat h_grad; filter2D(img,h_grad,CV_32F,h); Mat v_grad; filter2D(img,v_grad,CV_32F,v); // h_grad=cv::abs(h_grad); // v_grad=cv::abs(v_grad); Mat chan[2] = {h_grad, v_grad}; Mat ret; merge(chan,2,ret); return ret; } <file_sep>#include <opencv2/viz/vizcore.hpp> #include <opencv2/viz/types.hpp> #include <opencv2/core/mat.hpp> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <stdio.h> #include <iostream> using namespace cv; enum stateNames {UL_POINT, LR_POINT, VAN_POINT, DRAW_OBJ, DRAW_BACK}; stateNames state; Point UL; //viz::WSphere UL_dot; Point LR; Point3i VP; Mat image; double width_p; double depth; Affine3d freezePose; Vec3f finalFP; void renderAndDisplay(viz::Viz3d &window); Vec3b biLInterp(const Mat& image, double y_c, double x_c); void on_mouse(const viz::MouseEvent& me, void* ptr) { if (me.button==viz::MouseEvent::MouseButton::LeftButton && me.type==viz::MouseEvent::Type::MouseButtonRelease) { viz::Viz3d* window = (viz::Viz3d*)ptr; Point3d p(me.pointer.x, me.pointer.y, 0); if (state==UL_POINT) { //Because we're using viz, we need to convert a //3D ray into the 2d point on the image width_p=p.x; Point3d orig; Vec3d dir; window->converTo3DRay(p,orig,dir); double t = (-orig.z)/(dir[2]); Point3d p2(dir[0]*t+orig.x,dir[1]*t+orig.y,dir[2]*t+orig.z); UL.x=p2.x; UL.y=p2.y; viz::WSphere UL_dot(p2,5,5,viz::Color::red()); window->showWidget("UL",UL_dot); } else if (state==LR_POINT) { //Because we're using viz, we need to convert a //3D ray into the 2d point on the image width_p = p.x-width_p; Point3d orig; Vec3d dir; window->converTo3DRay(p,orig,dir); double t = (-orig.z)/(dir[2]); Point3d lr(dir[0]*t+orig.x,dir[1]*t+orig.y,1); LR.x=lr.x; LR.y=lr.y; viz::WSphere LR_dot(lr,5,5,viz::Color::red()); window->showWidget("LR",LR_dot); //draw a rectangle around the back wall Point3d ul(UL.x,UL.y,1); Point3d ll(UL.x,LR.y,1); Point3d ur(LR.x,UL.y,1); viz::WLine top(ul,ur,viz::Color::red()); viz::WLine left(ul,ll,viz::Color::red()); viz::WLine right(lr,ur,viz::Color::red()); viz::WLine bottom(ll,lr,viz::Color::red()); window->showWidget("top_box",top); window->showWidget("left_box",left); window->showWidget("right_box",right); window->showWidget("bottom_box",bottom); } else if (state==VAN_POINT) { //Because we're using viz, we need to convert a //3D ray into the 2d point on the image Point3d orig; Vec3d dir; window->converTo3DRay(p,orig,dir); double t = (-orig.z)/(dir[2]); Point3d vp(dir[0]*t+orig.x,dir[1]*t+orig.y,1); VP.x=vp.x; VP.y=vp.y; viz::WSphere LR_dot(vp,5,5,viz::Color::red()); window->showWidget("VP",LR_dot); //draw lines showing the perspective of the scene double len=fabs(orig.z/2.0); double ulSlope = (VP.y-UL.y)/(1.0*VP.x-UL.x); Point3d ul(VP.x-len,VP.y+(-len*ulSlope),1); double llSlope = (VP.y-LR.y)/(1.0*VP.x-UL.x); Point3d ll(VP.x-len,VP.y+(-len*llSlope),1); double urSlope = (VP.y-UL.y)/(1.0*VP.x-LR.x); Point3d ur(VP.x+len,VP.y+(len*urSlope),1); double lrSlope = (VP.y-LR.y)/(1.0*VP.x-LR.x); Point3d lr(VP.x+len,VP.y+(len*lrSlope),1); viz::WLine top(ul,vp,viz::Color::red()); viz::WLine left(ur,vp,viz::Color::red()); viz::WLine right(lr,vp,viz::Color::red()); viz::WLine bottom(ll,vp,viz::Color::red()); window->showWidget("top_mesh",top); window->showWidget("left_mesh",left); window->showWidget("right_mesh",right); window->showWidget("bottom_mesh",bottom); } } //This is a bit of a hack, preventing the user for changing the //perspective when selecting points if (state != DRAW_BACK) { viz::Viz3d* window = (viz::Viz3d*)ptr; window->setViewerPose(freezePose); } } void on_button(const viz::KeyboardEvent& me, void* ptr) { //on ENTER if (me.code==13 && me.action==viz::KeyboardEvent::KEY_UP) { viz::Viz3d* window = (viz::Viz3d*)ptr; switch(state) { case UL_POINT: state=LR_POINT; break; case LR_POINT: state=VAN_POINT; window->removeWidget("UL"); window->removeWidget("LR"); break; case VAN_POINT: state=DRAW_BACK; { double xOff = UL.x - (UL.x-LR.x)/2.0; double yOff = LR.y + (UL.y-LR.y)/2.0; UL.x=image.size[1]/2+UL.x; UL.y=image.size[0]/2-UL.y; LR.x=image.size[1]/2+LR.x; LR.y=image.size[0]/2-LR.y; VP.x=image.size[1]/2+VP.x; VP.y=image.size[0]/2-VP.y; window->removeAllWidgets(); Vec3f pos(0,0,image.cols); Vec3f fp(-xOff,-yOff,0); finalFP[0]=image.size[1]/2.0; finalFP[1]=image.size[0]/2.0; finalFP[2]=1.0; Vec3f up(0,-1,0); Affine3d a = viz::makeCameraPose(pos,fp,up); window->setViewerPose(a); viz::WImage3D imageN(image,image.size()); Affine3d poseEh = Affine3d().rotate(Vec3f(CV_PI, 0.0, 0.0)).translate(fp); window->showWidget("imageN",imageN,poseEh); renderAndDisplay(*window); } break; default: { // viz::Camera c = window->getCamera(); // std::cout << "pp:" << c.getPrincipalPoint() << " window:" << c.getWindowSize() << " fov:" << c.getFov() << " fl:" << c.getFocalLength() << " clip:" << c.getClip() << std::endl; } break; } } } int main(int argc, char *argv[]) { state=UL_POINT; image = imread(argv[1], CV_LOAD_IMAGE_COLOR); viz::Viz3d window("TIP"); window.registerMouseCallback(on_mouse,(void*)(&window)); window.registerKeyboardCallback(on_button,(void*)(&window)); //show the refence image viz::WImage3D image2d(image,image.size()); Affine3d poseEh = Affine3d().rotate(Vec3d(CV_PI, 0.0, 0.0)); window.showWidget("image2d",image2d,poseEh); //set viewpoint Vec3f viewP(0,0,image.cols); Vec3f foc(0,0,0); Vec3d upr(0,-1,0); freezePose = viz::makeCameraPose(viewP,foc,upr); window.setViewerPose(freezePose); window.spin(); return 1; } void renderAndDisplay(viz::Viz3d &window) { window.removeAllWidgets(); VP.z=1; int width = LR.x-UL.x; int height = LR.y-UL.y; double f =(716.0/3000.0)*image.cols; double scale = width/width_p; depth = f*(scale-1); depth = image.cols/(0.0+width); depth*= (width_p/width); printf ("scale=%f depth = %f\n",scale,depth); Vec3f botLine(0,1,-image.size[0]); Vec3f leftLine(1,0,0); Vec3f rightLine(1,0,-image.size[1]); Vec3f topLine(0,1,0); // printf("size (%d,%d)\n",image.size[0],image.size[1]); //The back image is simply a cutout of the original image Mat backImg(LR.y-UL.y,LR.x-UL.x,image.type()); printf("size (%d,%d)\n",backImg.size[0],backImg.size[1]); for( int y = 0; y < backImg.rows; y++ ) { for( int x = 0; x < backImg.cols; x++ ) { backImg.at<Vec3b>(y,x) = image.at<Vec3b>(y+UL.y,x+UL.x); } } Size2d imageSize(backImg.size[1],backImg.size[0]); Vec3d position(0,0,0); Vec3d normal(1,0,0); Vec3d up(0,-1,0); viz::WImage3D back(backImg,imageSize,position,normal,up); Affine3d pose = Affine3d().rotate(Vec3d(0.0, CV_PI/2, 0.0)); window.showWidget("back",back,pose); //The floor image uses the two reference points form the bottom of the back wall Mat floorImg(depth,backImg.cols,image.type()); Vec3d position_floor(backImg.rows/2,-floorImg.rows/2,0); { Point3f one_c(UL.x,LR.y,1); Point3f two_c(LR.x,LR.y,1); Vec3f line1=one_c.cross(VP); //This scoring is a method of deciding which intersection point (of perspective lines and image boundary) is farthest out Point3f three_c; Point3f three_c1 = line1.cross(leftLine); double score1 = ((three_c1.y/three_c1.z > image.size[0])?(three_c1.y/three_c1.z -image.size[0]):0) + ((three_c1.x/three_c1.x < 0)?-(three_c1.x/three_c1.x):0); Point3f three_c2 = line1.cross(botLine); double score2 = ((three_c2.y/three_c2.z > image.size[0])?(three_c2.y/three_c2.z -image.size[0]):0) + ((three_c2.x/three_c2.x < 0)?-(three_c2.x/three_c2.x):0); if (score2>score1) { three_c=three_c2; } else three_c=three_c1; Vec3f line2=two_c.cross(VP); Point3f four_c; Point3f four_c1 = line2.cross(rightLine);//compute intersection score1 = ((four_c1.y/four_c1.z > image.size[0])?(four_c1.y/four_c1.z -image.size[0]):0) + ((four_c1.x/four_c1.x >image.size[1])?(four_c1.x/four_c1.x-image.size[1]):0); Point3f four_c2 = line2.cross(botLine);//compute intersection score2 = ((four_c2.y/four_c2.z > image.size[0])?(four_c2.y/four_c2.z -image.size[0]):0) + ((four_c2.x/four_c2.x >image.size[1])?(four_c2.x/four_c2.x-image.size[1]):0); if (score2>score1) { four_c=four_c2; } else four_c=four_c1; // printf("score1=%f, score2=%f\n",score1,score2); std::vector<Point2f> dstPoints(4); dstPoints[0].x=one_c.x/one_c.z; dstPoints[1].x=two_c.x/two_c.z; dstPoints[2].x=three_c.x/three_c.z; dstPoints[3].x=four_c.x/four_c.z; dstPoints[0].y=one_c.y/one_c.z; dstPoints[1].y=two_c.y/two_c.z; dstPoints[2].y=three_c.y/three_c.z; dstPoints[3].y=four_c.y/four_c.z; // printf("dst points: (%f,%f) (%f,%f) (%f,%f) (%f,%f)\n",dstPoints[0].x,dstPoints[0].y,dstPoints[1].x,dstPoints[1].y,dstPoints[2].x,dstPoints[2].y,dstPoints[3].x,dstPoints[3].y); std::vector<Point2f> srcPoints(4); srcPoints[0].x=-width/2.0; srcPoints[1].x=width/2.0; srcPoints[2].x=-width/2.0; srcPoints[3].x=width/2.0; srcPoints[0].y=0; srcPoints[1].y=0; srcPoints[2].y=depth; srcPoints[3].y=depth; Mat floorHomog = findHomography(srcPoints,dstPoints); std::cout << "homog " << floorHomog.type() << std::endl << floorHomog << std::endl; printf("size floor (%d,%d)\n",floorImg.size[0],floorImg.size[1]); //actually create floor image for( double z_w = 0; z_w < floorImg.rows; z_w+=1.0 ) { for( double x_w = -floorImg.cols/2.0; x_w < floorImg.cols/2.0; x_w+=1.0 ) { int x = x_w + floorImg.cols/2.0; int z = z_w; // Vec3f p_x(x_w,z_w,1.0); Mat p_x = (Mat_<double>(3,1) << x_w,z_w,1.0); // std::cout << "p_x " << p_x.type() << std::endl << p_x << std::endl; Mat p_c = floorHomog*(p_x); double x_c = p_c.at<double>(0,0)/p_c.at<double>(2,0); double y_c = p_c.at<double>(1,0)/p_c.at<double>(2,0); if (x_c>=0 && x_c < image.size[1] && y_c>=0 && y_c < image.size[0]) { floorImg.at<Vec3b>(z,x) = biLInterp(image,y_c,x_c); } } } Size2d imageSize_floor(floorImg.size[1],floorImg.size[0]); //y,z,x Vec3d position_floor(backImg.rows/2,-floorImg.rows/2,0); viz::WImage3D floor(floorImg,floorImg.size(),position_floor,normal,up); Affine3d pose_floor = Affine3d().rotate(Vec3d(0.0,CV_PI/2, 0.0)).rotate(Vec3d(-CV_PI/2,0.0, 0.0)); window.showWidget("floor",floor,pose_floor); } ///////////// ////Cieling /// { Mat ceilImg(depth,width,image.type()); Point3f one_c(UL.x,UL.y,1); Point3f two_c(LR.x,UL.y,1); Vec3f line1=one_c.cross(VP); //Same scoring ideas as above, just selecting better intersection point Point3f three_c; Point3f three_c1 = line1.cross(leftLine);//compute intersection double score1 = ((three_c1.y/three_c1.z <0)?-(three_c1.y/three_c1.z):0) + ((three_c1.x/three_c1.x < 0)?-(three_c1.x/three_c1.x):0); Point3f three_c2 = line1.cross(topLine);//compute intersection double score2 = ((three_c2.y/three_c2.z <0)?-(three_c2.y/three_c2.z):0) + ((three_c2.x/three_c2.x < 0)?-(three_c2.x/three_c2.x):0); if (score2>score1) { three_c=three_c2; // printf("choose top over right\n"); } else three_c=three_c1; printf("score1=%f, score2=%f\n",score1,score2); Vec3f line2=two_c.cross(VP); Point3f four_c; Point3f four_c1 = line2.cross(rightLine);//compute intersection score1 = ((four_c1.y/four_c1.z < 0)?-(four_c1.y/four_c1.z):0) + ((four_c1.x/four_c1.x >image.size[1])?(four_c1.x/four_c1.x-image.size[1]):0); Point3f four_c2 = line2.cross(topLine);//compute intersection score2 = ((four_c2.y/four_c2.z < 0)?-(four_c2.y/four_c2.z):0) + ((four_c2.x/four_c2.x >image.size[1])?(four_c2.x/four_c2.x-image.size[1]):0); if (score2>score1) { four_c=four_c2; // printf("choose bot over right\n"); } else four_c=four_c1; // printf("score1=%f, score2=%f\n",score1,score2); std::vector<Point2f> dstPoints(4); dstPoints[0].x=one_c.x/one_c.z; dstPoints[1].x=two_c.x/two_c.z; dstPoints[2].x=three_c.x/three_c.z; dstPoints[3].x=four_c.x/four_c.z; dstPoints[0].y=one_c.y/one_c.z; dstPoints[1].y=two_c.y/two_c.z; dstPoints[2].y=three_c.y/three_c.z; dstPoints[3].y=four_c.y/four_c.z; printf("dst points: (%f,%f) (%f,%f) (%f,%f) (%f,%f)\n",dstPoints[0].x,dstPoints[0].y,dstPoints[1].x,dstPoints[1].y,dstPoints[2].x,dstPoints[2].y,dstPoints[3].x,dstPoints[3].y); std::vector<Point2f> srcPoints(4); srcPoints[0].x=-width/2; srcPoints[1].x=width/2; srcPoints[2].x=-width/2; srcPoints[3].x=width/2; srcPoints[0].y=0; srcPoints[1].y=0; srcPoints[2].y=depth; srcPoints[3].y=depth; Mat ceilHomog = findHomography(srcPoints,dstPoints); std::cout << "C homog " << ceilHomog.type() << std::endl << ceilHomog << std::endl; printf("size ceil (%d,%d)\n",ceilImg.size[0],ceilImg.size[1]); //fill ceiling image for( double z_w = 0; z_w < depth; z_w+=1.0 ) { for( double x_w = -width/2.0; x_w < width/2.0; x_w+=1.0 ) { int x = x_w + width/2.0; int z = z_w; Mat p_x = (Mat_<double>(3,1) << x_w,z_w,1.0); Mat p_c = ceilHomog*(p_x); double x_c = p_c.at<double>(0,0)/p_c.at<double>(2,0); double y_c = p_c.at<double>(1,0)/p_c.at<double>(2,0); // if (x_w==-floorImg.cols/2.0 && z_w<50) std::cout << "("<<x_c<<","<<y_c<<")"<<std::endl; if (x_c>=0 && x_c < image.size[1] && y_c>=0 && y_c < image.size[0]) { ceilImg.at<Vec3b>(z,x) = biLInterp(image,y_c,x_c); } } } // viz::WImage3D ceil3(floorImg,floorImg.size(),position_floor,normal,up); Size2d imageSize_ceil(ceilImg.size[1],ceilImg.size[0]); //y,z,x // ,y, Vec3d position_ceil(-height/2,-depth/2,0); viz::WImage3D ceil(ceilImg,ceilImg.size(),position_ceil,normal,up); Affine3d pose_ceil = Affine3d().rotate(Vec3d(0.0,CV_PI/2, 0.0)).rotate(Vec3d(-CV_PI/2,0.0, 0.0)); window.showWidget("ceil",ceil,pose_ceil); Mat p_FP = (Mat_<double>(3,1) << finalFP[0],finalFP[1],1.0); Mat p_wFP = ceilHomog.inv()*(p_FP); double x_wFP = p_wFP.at<double>(0,0)/p_wFP.at<double>(2,0); double z_wFP = p_wFP.at<double>(1,0)/p_wFP.at<double>(2,0); finalFP[0]=x_wFP; finalFP[1]=height/2; finalFP[2]=z_wFP; } //// ///////////// ////Left Wall /// { Point3f one_c(UL.x,UL.y,1); Point3f two_c(UL.x,LR.y,1); Vec3f line1=one_c.cross(VP); Point3f three_c; Point3f three_c1 = line1.cross(leftLine); double score1 = ((three_c1.y/three_c1.z <0)?-(three_c1.y/three_c1.z):0) + ((three_c1.x/three_c1.x < 0)?-(three_c1.x/three_c1.x):0); Point3f three_c2 = line1.cross(topLine); double score2 = ((three_c2.y/three_c2.z <0)?-(three_c2.y/three_c2.z):0) + ((three_c2.x/three_c2.x < 0)?-(three_c2.x/three_c2.x):0); if (score2>score1) { three_c=three_c2; } else three_c=three_c1; // printf("score1=%f, score2=%f\n",score1,score2); Vec3f line2=two_c.cross(VP); Point3f four_c;// = line2.cross(rightLine); Point3f four_c1 = line2.cross(leftLine); score1 = ((four_c1.y/four_c1.z > image.size[0])?(four_c1.y/four_c1.z -image.size[0]):0) + ((four_c1.x/four_c1.x < 0)?-(four_c1.x/four_c1.x):0); Point3f four_c2 = line2.cross(botLine); score2 = ((four_c2.y/four_c2.z > image.size[0])?(four_c2.y/four_c2.z -image.size[0]):0) + ((four_c2.x/four_c2.x < 0)?-(four_c2.x/four_c2.x):0); if (score2>score1) { four_c=four_c2; // printf("choose bot over right\n"); } else four_c=four_c1; // printf("score1=%f, score2=%f\n",score1,score2); std::vector<Point2f> dstPoints(4); dstPoints[0].x=one_c.x/one_c.z; dstPoints[1].x=two_c.x/two_c.z; dstPoints[2].x=three_c.x/three_c.z; dstPoints[3].x=four_c.x/four_c.z; dstPoints[0].y=one_c.y/one_c.z; dstPoints[1].y=two_c.y/two_c.z; dstPoints[2].y=three_c.y/three_c.z; dstPoints[3].y=four_c.y/four_c.z; // printf("dst points: (%f,%f) (%f,%f) (%f,%f) (%f,%f)\n",dstPoints[0].x,dstPoints[0].y,dstPoints[1].x,dstPoints[1].y,dstPoints[2].x,dstPoints[2].y,dstPoints[3].x,dstPoints[3].y); std::vector<Point2f> srcPoints(4); srcPoints[0].x=0; srcPoints[1].x=0; srcPoints[2].x=depth; srcPoints[3].x=depth; srcPoints[0].y=height/2; srcPoints[1].y=-height/2; srcPoints[2].y=height/2; srcPoints[3].y=-height/2; Mat leftHomog = findHomography(srcPoints,dstPoints); std::cout << "L homog " << leftHomog.type() << std::endl << leftHomog << std::endl; Mat leftImg(height,depth,image.type()); printf("size left (%d,%d)\n",leftImg.size[0],leftImg.size[1]); for( double z_w = 0; z_w < leftImg.cols; z_w+=1.0 ) { for( double y_w = -leftImg.rows/2.0; y_w < leftImg.rows/2.0; y_w+=1.0 ) { int y = y_w + leftImg.rows/2.0; int z = z_w; Mat p_x = (Mat_<double>(3,1) << z_w,y_w,1.0); Mat p_c = leftHomog*(p_x); double x_c = p_c.at<double>(0,0)/p_c.at<double>(2,0); double y_c = p_c.at<double>(1,0)/p_c.at<double>(2,0); // if (x_w==-floorImg.cols/2.0 && z_w<50) std::cout << "("<<x_c<<","<<y_c<<")"<<std::endl; if (x_c>=0 && x_c < image.size[1] && y_c>=0 && y_c < image.size[0]) { leftImg.at<Vec3b>(y,z) = biLInterp(image,y_c,x_c); } } } Size2d imageSize_left(leftImg.size[1],leftImg.size[0]); //y,z,x // ,y, Vec3d position_left(width/2,0,depth/2); viz::WImage3D left(leftImg,imageSize_left,position_left,normal,up); Affine3d pose_left = Affine3d().rotate(Vec3d(0,0,CV_PI)); window.showWidget("left",left,pose_left); } //// ///////////// ////Right Wall /// { Point3f one_c(LR.x,UL.y,1); Point3f two_c(LR.x,LR.y,1); Vec3f line1=one_c.cross(VP); Point3f three_c; Point3f three_c1 = line1.cross(rightLine); double score1 = ((three_c1.y/three_c1.z <0)?-(three_c1.y/three_c1.z):0) + ((three_c1.x/three_c1.x >image.size[1])?(three_c1.x/three_c1.x-image.size[1]):0); Point3f three_c2 = line1.cross(topLine); double score2 = ((three_c2.y/three_c2.z <0)?-(three_c2.y/three_c2.z):0) + ((three_c2.x/three_c2.x >image.size[1])?(three_c2.x/three_c2.x-image.size[1]):0); if (score2>score1) { three_c=three_c2; // printf("choose top over right\n"); } else three_c=three_c1; // printf("score1=%f, score2=%f\n",score1,score2); Vec3f line2=two_c.cross(VP); Point3f four_c;// = line2.cross(rightLine); Point3f four_c1 = line2.cross(rightLine); score1 = ((four_c1.y/four_c1.z > image.size[0])?(four_c1.y/four_c1.z -image.size[0]):0) + ((four_c1.x/four_c1.x >image.size[1])?(four_c1.x/four_c1.x-image.size[1]):0); Point3f four_c2 = line2.cross(botLine); score2 = ((four_c2.y/four_c2.z > image.size[0])?(four_c2.y/four_c2.z -image.size[0]):0) + ((four_c2.x/four_c2.x >image.size[1])?(four_c2.x/four_c2.x-image.size[1]):0); if (score2>score1) { four_c=four_c2; // printf("choose bot over right\n"); } else four_c=four_c1; // printf("score1=%f, score2=%f\n",score1,score2); std::vector<Point2f> dstPoints(4); dstPoints[0].x=one_c.x/one_c.z; dstPoints[1].x=two_c.x/two_c.z; dstPoints[2].x=three_c.x/three_c.z; dstPoints[3].x=four_c.x/four_c.z; dstPoints[0].y=one_c.y/one_c.z; dstPoints[1].y=two_c.y/two_c.z; dstPoints[2].y=three_c.y/three_c.z; dstPoints[3].y=four_c.y/four_c.z; printf("dst points: (%f,%f) (%f,%f) (%f,%f) (%f,%f)\n",dstPoints[0].x,dstPoints[0].y,dstPoints[1].x,dstPoints[1].y,dstPoints[2].x,dstPoints[2].y,dstPoints[3].x,dstPoints[3].y); std::vector<Point2f> srcPoints(4); srcPoints[0].x=0; srcPoints[1].x=0; srcPoints[2].x=depth; srcPoints[3].x=depth; srcPoints[0].y=height/2; srcPoints[1].y=-height/2; srcPoints[2].y=height/2; srcPoints[3].y=-height/2; Mat rightHomog = findHomography(srcPoints,dstPoints); std::cout << "R homog " << rightHomog.type() << std::endl << rightHomog << std::endl; Mat rightImg(height,depth,image.type()); printf("size left (%d,%d)\n",rightImg.size[0],rightImg.size[1]); for( double z_w = 0; z_w < rightImg.cols; z_w+=1.0 ) { for( double y_w = -rightImg.rows/2.0; y_w < rightImg.rows/2.0; y_w+=1.0 ) { int y = y_w + rightImg.rows/2.0; int z = z_w; Mat p_x = (Mat_<double>(3,1) << z_w,y_w,1.0); Mat p_c = rightHomog*(p_x); double x_c = p_c.at<double>(0,0)/p_c.at<double>(2,0); double y_c = p_c.at<double>(1,0)/p_c.at<double>(2,0); // if (x_w==-floorImg.cols/2.0 && z_w<50) std::cout << "("<<x_c<<","<<y_c<<")"<<std::endl; if (x_c>=0 && x_c < image.size[1] && y_c>=0 && y_c < image.size[0]) { rightImg.at<Vec3b>(y,z) = biLInterp(image,y_c,x_c); } } } Size2d imageSize_right(rightImg.size[1],rightImg.size[0]); //y,z,x // ,y, Vec3d position_right(-width/2,0,depth/2); viz::WImage3D right(rightImg,imageSize_right,position_right,normal,up); Affine3d pose_right = Affine3d().rotate(Vec3d(0,0,CV_PI)); window.showWidget("right",right,pose_right); } printf("loading...\n"); //// Point center; center.x=UL.x + (LR.x-UL.x)/2.0; center.y=UL.y + (LR.y-UL.y)/2.0; //Vec3f pos(-VP.x+center.x, -VP.y+center.y,depth); // Vec3f up(0,-1,0); //Affine3d a = viz::makeCameraPose(pos,finalFP,up); //window.setViewerPose(a); // viz::WCoordinateSystem axis(20.0); // window.showWidget("axis",axis); //window.removeWidget("image2d"); printf("done, starting dragging!\n"); } Vec3b biLInterp(const Mat& image, double y_c, double x_c) { // biLInterp(image,y_c,x_c); Mat out; Size2d size(1,1); Point2f p(x_c,y_c); getRectSubPix(image,size,p,out); return out.at<Vec3b>(0,0); } <file_sep>/*<NAME> *CS601R *Project one: Features and Learning */ #include <iostream> #include <random> #include <tuple> #include <regex> #include <assert.h> #include <dirent.h> #include <omp.h> #include <iomanip> #include <cmath> #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/nonfree/features2d.hpp" #include "opencv2/ml/ml.hpp" #include "svm.h" #include "customsift.h" #include "codebook_2.h" #include "hog.h" #define NORMALIZE_DESC 1 #define SAVE_LOC string("./save/") #define DEFAULT_IMG_DIR string("./leedsbutterfly/images/") #define DEFAULT_MASK_DIR string("./leedsbutterfly/segmentations/") #define DEFAULT_CODEBOOK_SIZE 200 #define DEBUG_SHOW 0 using namespace std; using namespace cv; bool hasPrefix(const std::string& a, const std::string& pref) { return a.substr(0,pref.size()) == pref; } bool isTrainingImage(int index) { return index%2==1; } bool isTestingImage(int index) { return index%2==0; } double my_stof(string s) { istringstream os(s); double d; os >> d; return d; } /////////////////////////// ///DRAWING FUNCTIONS unsigned int _seed1; unsigned int _seed2; void my_rand_reset() { _seed1=12483589; _seed2=54867438; } unsigned int my_rand() { unsigned int r = _seed1 ^ _seed2; _seed1 = _seed2 >> 1; _seed2=r; return r; } int _colorCylcleIndex=0; Vec3b colorCylcle() { //return Vec3b(255,255,255); _colorCylcleIndex=(_colorCylcleIndex+1)%6; if (_colorCylcleIndex==0) return Vec3b(255,0,0); else if (_colorCylcleIndex==1) return Vec3b(0,150,255); else if (_colorCylcleIndex==2) return Vec3b(0,255,0); else if (_colorCylcleIndex==3) return Vec3b(255,0,150); else if (_colorCylcleIndex==4) return Vec3b(0,0,255); else if (_colorCylcleIndex==5) return Vec3b(150,255,0); return Vec3b(255,255,150); } Mat makeHistImage(vector<double> fv) { assert(NORMALIZE_DESC); int size=400; Mat hist(size*2,3*fv.size()+10,CV_8UC3); hist.setTo(Scalar(0,0,0)); my_rand_reset(); for (int i=0; i<fv.size(); i++) { Vec3b color((my_rand()%206)+50,(my_rand()%206)+50,(my_rand()%206)+50); for (double j=0; j<std::min(fabs(fv[i]*100.0),(double)size); j+=1.0) { hist.at<Vec3b>(size+std::copysign(j,fv[i]),5+3*i) = color; hist.at<Vec3b>(size+std::copysign(j,fv[i]),6+3*i) = color; } } return hist; } void makeHistFull(const vector<double>& fv, const vector<double>& maxs, const vector<double>& mins, Mat& full, int row) { assert(NORMALIZE_DESC); _colorCylcleIndex=0; for (int i=0; i<fv.size(); i++) { Vec3b color=colorCylcle()*((fv[i]-mins[i])/(maxs[i]-mins[i])); full.at<Vec3b>(row,3*i) = color; full.at<Vec3b>(1+row,1+3*i) = color; full.at<Vec3b>(row,1+3*i) = color; full.at<Vec3b>(1+row,3*i) = color; } } double drawPRCurve(int label, vector<tuple<float,bool> >& data) { auto comp = [](const tuple<float,bool>& a, const tuple<float,bool>& b){return get<0>(a) < get<0>(b);}; sort(data.begin(), data.end(), comp); Mat curve(300,300,CV_8UC3); curve.setTo(Scalar(255,255,255)); int countPos=0; for (auto t : data) if (get<1>(t)) countPos++; double ap=0; int abovePos=0; Point prev; for (int i=0; i<data.size(); i++) { if (get<1>(data[i])) abovePos++; double precision = abovePos/(double)(i+1); if (get<1>(data[i])) ap += precision; double recall = abovePos/(double)(countPos); Point cur = Point((recall*300),300-(precision*300)); if (i>0) line(curve,prev,cur,Scalar(0,0,150),1,CV_AA); circle(curve,cur,3,Scalar(0,0,150),-1,CV_AA); prev=cur; } imwrite("pr"+to_string(label)+".png",curve); ap /=countPos; cout << "class "<<label<<" ap = " << ap << endl; return ap; } ///////////////////////// ///REAL PROGRAM struct svm_node* convertDescription(const vector<double>* description) { int nonzeroCount=0; for (unsigned int j=0; j<description->size(); j++) { if (description->at(j)!=0) nonzeroCount++; } struct svm_node* ret = new struct svm_node[nonzeroCount+1]; int nonzeroIter=0; for (unsigned int j=0; j<description->size(); j++) { if (description->at(j)!=0) { ret[nonzeroIter].index = j; ret[nonzeroIter].value = description->at(j); nonzeroIter++; //cout << "["<<j<<"]="<<description->at(j)<<", "; } } ret[nonzeroIter].index = -1;//end //cout << endl; return ret; } #define SIFT_NUMPTS 1000 #define SIFT_THRESH 0.07 vector<KeyPoint>* getKeyPoints(string option, const Mat& color_img) { if (hasPrefix(option,"SIFT")) { Mat img; cvtColor(color_img,img,CV_BGR2GRAY); int nfeaturePoints=SIFT_NUMPTS; int nOctivesPerLayer=3; double contrastThresh=SIFT_THRESH; SIFT detector(nfeaturePoints,nOctivesPerLayer,contrastThresh); vector<KeyPoint>* ret = new vector<KeyPoint>(); detector(img,noArray(),*ret,noArray(),false); //Mat out; //drawKeypoints( img, *ret, out, Scalar::all(-1), DrawMatchesFlags::DEFAULT ); //imshow("o",out); //waitKey(); return ret; } else if (hasPrefix(option,"dense")) { Mat img; cvtColor(color_img,img,CV_BGR2GRAY); int stride = 5; smatch sm_option; regex parse_option("stride=([0-9]+)"); if(regex_search(option,sm_option,parse_option)) { stride = stoi(sm_option[1]); } vector<KeyPoint>* ret = new vector<KeyPoint>(); for (int x=stride; x<img.cols; x+=stride) for (int y=stride; y<img.rows; y+=stride) ret->push_back(KeyPoint(x,y,stride)); return ret; } return NULL; } vector< vector<double> >* getDescriptors(string option, Mat color_img, vector<KeyPoint>* keyPoints) { if (hasPrefix(option,"SIFT")) { Mat img; cvtColor(color_img,img,CV_BGR2GRAY); //imshow("test",img); int nfeaturePoints=SIFT_NUMPTS; int nOctivesPerLayer=3; double contrastThresh=SIFT_THRESH; SIFT detector(nfeaturePoints,nOctivesPerLayer,contrastThresh); Mat desc; detector(img,noArray(),*keyPoints,desc,true); vector< vector<double> >* ret = new vector< vector<double> >(desc.rows); assert(desc.type() == CV_32F); for (unsigned int i=0; i<desc.rows; i++) { ret->at(i).resize(desc.cols); for (unsigned int j=0; j<desc.cols; j++) { ret->at(i).at(j) = desc.at<float>(i,j); //cout << desc.at<float>(i,j) << ", "; } //cout << endl; } //waitKey(); return ret; } else if (hasPrefix(option,"customSIFT")) { Mat img; cvtColor(color_img,img,CV_BGR2GRAY); vector< vector<double> >* ret = new vector< vector<double> >(); CustomSIFT::Instance()->extract(img,*keyPoints,*ret); //cout << "custom done." << endl; return ret; } else if (hasPrefix(option,"HOG")) { Mat img; cvtColor(color_img,img,CV_BGR2GRAY); int stride = 5; int thresh = 200; int size = 60; int num_bins = 9; smatch sm_option; regex parse_option1("stride=([0-9]+)"); if(regex_search(option,sm_option,parse_option1)) { stride = stoi(sm_option[1]); } regex parse_option2("size=([0-9]+)"); if(regex_search(option,sm_option,parse_option2)) { size = stoi(sm_option[1]); } regex parse_option3("thresh=([0-9]+)"); if(regex_search(option,sm_option,parse_option3)) { size = stoi(sm_option[1]); } vector< vector<double> >* ret = new vector< vector<double> >(); if (keyPoints==NULL) keyPoints = new vector<KeyPoint>(); else keyPoints->clear(); HOG hog(thresh, size, stride, num_bins); hog.compute(img, *ret, *keyPoints); return ret; } return NULL; } vector<double>* getImageDescription(string option, const Mat& img, const vector<KeyPoint>* keyPoints, const vector< vector<double> >* descriptors, const Codebook* codebook) { int LLC = 1; smatch sm_option; regex parse_option("LLC=([0-9]+)"); if(regex_search(option,sm_option,parse_option)) { LLC = stoi(sm_option[1]); } if (hasPrefix(option,"bovw")) { vector<double>* ret = new vector<double>(codebook->size()); for (const vector<double>& desc : *descriptors) { vector< tuple<int,float> > quan = codebook->quantizeSoft(desc,LLC); for (const auto &v : quan) { ret->at(get<0>(v)) += get<1>(v); } } //Normalize the description #if NORMALIZE_DESC double sum; for (double v : *ret) sum += v*v; double norm = sqrt(sum); if (norm != 0) for (double& v : *ret) v /= norm; #endif return ret; } else if (hasPrefix(option,"sppy")) { vector<double>* ret = new vector<double>(codebook->size()*5); assert(descriptors->size() == keyPoints->size()); for (int i=0; i<descriptors->size(); i++) { vector< tuple<int,float> > quan = codebook->quantizeSoft((descriptors->at(i)),LLC); int quarter; if (keyPoints->at(i).pt.x < img.cols/2 && keyPoints->at(i).pt.y < img.rows/2) quarter=1; else if (keyPoints->at(i).pt.x >= img.cols/2 && keyPoints->at(i).pt.y < img.rows/2) quarter=2; else if (keyPoints->at(i).pt.x < img.cols/2 && keyPoints->at(i).pt.y >= img.rows/2) quarter=3; else quarter=4; for (const auto &v : quan) { ret->at(get<0>(v)) += get<1>(v); ret->at(get<0>(v)+quarter*codebook->size()) += 4*get<1>(v); } } #if NORMALIZE_DESC double sum; for (double v : *ret) sum += v*v; double norm = sqrt(sum); if (norm != 0) for (double& v : *ret) v /= norm; return ret; #endif } else assert(false); return NULL; } void zscore(vector< vector<double>* >* imageDescriptions, string saveFileName) { vector<double> mean; vector<double> stdDev; assert(imageDescriptions->size() > 0); mean.resize(imageDescriptions->front()->size(),0); for (vector<double>* image : *imageDescriptions) { for (int i=0; i<mean.size(); i++) mean[i] += image->at(i); } for (int i=0; i<mean.size(); i++) mean[i] /= imageDescriptions->size(); stdDev.resize(imageDescriptions->front()->size(),0); for (vector<double>* image : *imageDescriptions) { for (int i=0; i<mean.size(); i++) stdDev[i] += pow(image->at(i)-mean[i],2); } for (int i=0; i<stdDev.size(); i++) stdDev[i] = sqrt(stdDev[i]/imageDescriptions->size()); for (vector<double>* image : *imageDescriptions) { for (int i=0; i<image->size(); i++) if (stdDev[i] != 0) image->at(i) = (image->at(i)-mean[i])/stdDev[i]; else image->at(i) = (image->at(i)-mean[i]); } ofstream saveZ(saveFileName); saveZ << "Mean:"; for (int i=0; i<mean.size(); i++) saveZ <<setprecision(15) << mean[i] << ","; saveZ << "\nStdDev:"; for (int i=0; i<stdDev.size(); i++) saveZ <<setprecision(15) << stdDev[i] << ","; saveZ << endl; saveZ.close(); } void zscoreUse(vector< vector<double>* >* imageDescriptions, string loadFileName) { vector<double> mean; vector<double> stdDev; ifstream loadZ(loadFileName); if (!loadZ) { cout << "ERROR: no zscore saved: " << loadFileName << endl; assert(false); exit(-1); } regex parse_line("\\w*:(((-?[0-9]*(\\.[0-9]+e?-?[0-9]*)?),)+)"); regex parse_values("(-?[0-9]*(\\.[0-9]+e?-?[0-9]*)?),"); string line; smatch sm; getline(loadZ,line); if(regex_search(line,sm,parse_line)) { string values = string(sm[1]); while(regex_search(values,sm,parse_values)) { mean.push_back(my_stof(sm[1])); values = sm.suffix(); } } else { cout << "ERROR, no Z mean"<<endl; assert(false); exit(-1); } getline(loadZ,line); if(regex_search(line,sm,parse_line)) { string values = string(sm[1]); while(regex_search(values,sm,parse_values)) { stdDev.push_back(my_stof(sm[1])); values = sm.suffix(); } } else { cout << "ERROR, no Z stdDev"<<endl; assert(false); exit(-1); } for (vector<double>* image : *imageDescriptions) { for (int i=0; i<image->size(); i++) if (stdDev[i] != 0) image->at(i) = (image->at(i)-mean.at(i))/stdDev.at(i); else image->at(i) = (image->at(i)-mean[i]); } } void getImageDescriptions(string imageDir, bool trainImages, int positiveClass, const Codebook* codebook, string keyPoint_option, string descriptor_option, string pool_option, string codebookLoc, vector< vector<double>* >* imageDescriptions, vector<double>* imageLabels) { string saveFileName=SAVE_LOC+"imageDesc_"+(trainImages?string("train"):string("test"))+"_"+keyPoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+".save"; string z_saveFileName=SAVE_LOC+"zscore_"+keyPoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+".save"; ifstream load(saveFileName); if (!load) { DIR *dir; struct dirent *ent; if ((dir = opendir (imageDir.c_str())) == NULL) { cout << "ERROR: failed to open image directory" << endl; exit(-1); } cout << "reading images and obtaining descriptions" << endl; vector<string> fileNames; //vector<string> maskFileNames; while ((ent = readdir (dir)) != NULL) { string fileName(ent->d_name); smatch sm; regex parse("([0-9][0-9][0-9])_([0-9][0-9][0-9][0-9]).jpg"); if (regex_search(fileName,sm,parse)) { if ((trainImages && isTrainingImage(stoi(sm[2]))) || (!trainImages && isTestingImage(stoi(sm[2]))) ) { fileNames.push_back(fileName); //maskFileNames.push_back(string(sm[1])+"_"+string(sm[2])+"_mask.png"); imageLabels->push_back(stoi(sm[1])); } } } unsigned int loopCrit = fileNames.size(); imageDescriptions->resize(fileNames.size()); #pragma omp parallel for num_threads(3) for (unsigned int nameIdx=0; nameIdx<loopCrit; nameIdx++) { string fileName=fileNames[nameIdx]; Mat color_img = imread(imageDir+fileName, CV_LOAD_IMAGE_COLOR); //Mat mask = imread(DEFAULT_MASK_DIR+maskFileNames[nameIdx], CV_LOAD_IMAGE_GRAY); vector<KeyPoint>* keyPoints = getKeyPoints(keyPoint_option,color_img); vector< vector<double> >* descriptors = getDescriptors(descriptor_option,color_img,keyPoints); vector<double>* imageDescription = getImageDescription(pool_option,color_img,keyPoints,descriptors,codebook); assert(imageDescription != NULL); #pragma omp critical { imageDescriptions->at(nameIdx) = (imageDescription); } delete keyPoints; delete descriptors; } if (trainImages) { zscore(imageDescriptions,z_saveFileName); } else { zscoreUse(imageDescriptions,z_saveFileName); } //save ofstream save(saveFileName); assert(save); for (unsigned int i=0; i<imageDescriptions->size(); i++) { save << "Label:" << imageLabels->at(i) << " Desc:"; assert(imageDescriptions->at(i)->size()%codebook->size()==0); for (unsigned int j=0; j<imageDescriptions->at(i)->size(); j++) { assert(imageDescriptions->at(i)->at(j) == imageDescriptions->at(i)->at(j)); save <<setprecision(15)<< imageDescriptions->at(i)->at(j) << ","; } save << endl; } save.close(); } else //read in { string line; smatch sm; regex parse_option("Label:([0-9]+) Desc:(((-?[0-9]*(\\.[0-9]+e?-?[0-9]*)?),)+)"); regex parse_values("(-?[0-9]*(\\.[0-9]+e?-?[0-9]*)?),"); while (getline(load,line)) { if(regex_search(line,sm,parse_option)) { //for (unsigned int i=0; i<sm.size(); i+=1) //{ // cout <<sm[i]<<endl; //} int label = stoi(sm[1]); //cout << label << endl; imageLabels->push_back(label); vector<double>* imageDescription = new vector<double>(); string values = string(sm[2]); //cout << "values" << endl; while(regex_search(values,sm,parse_values)) { //cout <<sm[1]<<endl; imageDescription->push_back(my_stof(sm[1])); values = sm.suffix(); } assert(codebook==NULL || imageDescription->size()%codebook->size()==0); imageDescriptions->push_back(imageDescription); } } load.close(); assert(imageDescriptions->size() > 0 ); } if (positiveClass>=0) { for (int i=0; i<imageLabels->size(); i++) { imageLabels->at(i) = imageLabels->at(i)==positiveClass?1:-1; } } } void train(string imageDir, int positiveClass, const Codebook* codebook, string keypoint_option, string descriptor_option, string pool_option, string codebookLoc, double eps, double C, string modelLoc) { modelLoc += ".svm"; vector< vector<double>* > imageDescriptions; vector<double> imageLabels; getImageDescriptions(imageDir, true, positiveClass, codebook, keypoint_option, descriptor_option, pool_option, codebookLoc, &imageDescriptions, &imageLabels); struct svm_problem* prob = new struct svm_problem(); prob->l = imageDescriptions.size(); prob->y = imageLabels.data(); prob->x = new struct svm_node*[imageDescriptions.size()]; for (unsigned int i=0; i<imageDescriptions.size(); i++) { prob->x[i] = convertDescription(imageDescriptions[i]); delete imageDescriptions[i]; } struct svm_parameter* para = new struct svm_parameter(); if (positiveClass == -1) { para->svm_type = C_SVC; para->nr_weight=0; para->weight_label=NULL; para->weight=NULL; } else { //para->svm_type = ONE_CLASS; //para->nu = 0.5; para->svm_type = C_SVC; para->nr_weight=1; para->weight_label=new int[1]; para->weight_label[0]=1; para->weight=new double[1]; para->weight[0]=9.0; para->weight[1]=1.0; } para->kernel_type = LINEAR; if (codebook != NULL) para->gamma = 1.0/codebook->size(); else para->gamma = 1.0/imageDescriptions[0]->size(); para->cache_size = 100; para->eps = eps; para->C = C; para->shrinking = 1; para->probability = 0; ///probably not needed, but jic para->degree = 3; para->coef0 = 0; para->nu = 0.5; para->p = 0.1; ///// const char *err = svm_check_parameter(prob,para); if (err!=NULL) { cout << "ERROR: " << string(err) << endl; exit(-1); } struct svm_model *trained_model = svm_train(prob,para); int err2 = svm_save_model(modelLoc.c_str(), trained_model); if (err2 == -1) { cout << "ERROR: failed to save model" << endl; exit(-1); } cout << "saved as " << modelLoc << endl; int numLabels = svm_get_nr_class(trained_model); double* dec_values = new double[numLabels*(numLabels-1)/2]; int correct = 0; int found =0; int ret=0; int numP=0; for (unsigned int i=0; i<imageDescriptions.size(); i++) { struct svm_node* x = prob->x[i]; double class_prediction = svm_predict_values(trained_model, x, dec_values); if (class_prediction == imageLabels[i]) correct++; if (positiveClass != -1) { if ((imageLabels[i]==1) && class_prediction>0) found++; if (imageLabels[i]==1) numP++; if (class_prediction>0) ret++; } } cout << "Accuracy on training data: " << correct/(double)imageDescriptions.size() << endl; if (positiveClass != -1) { cout << "recall: " << found/(double)numP << endl; cout << "precision: " << found/(double)ret << endl; } svm_free_model_content(trained_model); svm_destroy_param(para); delete[] dec_values; } void trainSVM_CV(string imageDir, int positiveClass, const Codebook* codebook, string keypoint_option, string descriptor_option, string pool_option, string codebookLoc, double eps, double C, string modelLoc) { modelLoc += ".xml"; vector< vector<double>* > imageDescriptions; vector<double> imageLabels; getImageDescriptions(imageDir, true, positiveClass, codebook, keypoint_option, descriptor_option, pool_option, codebookLoc, &imageDescriptions, &imageLabels); Mat labelsMat(imageLabels.size(), 1, CV_32FC1); for (int j=0; j<imageLabels.size(); j++) { labelsMat.at<float>(j,0) = imageLabels[j]; } Mat trainingDataMat(imageDescriptions.size(), imageDescriptions[0]->size(), CV_32FC1); for (int j=0; j<imageDescriptions.size(); j++) for (int i=0; i<imageDescriptions[j]->size(); i++) { trainingDataMat.at<float>(j,i)=imageDescriptions[j]->at(i); } CvSVMParams params; //params.svm_type = CvSVM::C_SVC; //params.kernel_type = CvSVM::LINEAR; //params.term_crit = cvTermCriteria(CV_TERMCRIT_ITER, 100, 1e-6); Mat weighting = (Mat_<float>(2,1) << 9.0,1.0); CvMat www = weighting; if (positiveClass != -1) { params.class_weights = &www; } CvSVM SVM; SVM.train_auto(trainingDataMat, labelsMat, Mat(), Mat(), params); SVM.save(modelLoc.c_str()); cout << "saved as " << modelLoc << endl; int correct = 0; int found =0; int ret=0; int numP=0; for (unsigned int j=0; j<imageDescriptions.size(); j++) { Mat instance(1, imageDescriptions[j]->size(), CV_32FC1); for (int i=0; i<imageDescriptions[j]->size(); i++) { instance.at<float>(0,i)=imageDescriptions[j]->at(i); } float class_prediction = SVM.predict(instance,false); if (class_prediction == imageLabels[j]) correct++; if (positiveClass != -1) { if ((imageLabels[j]==1) && class_prediction>0) found++; if (imageLabels[j]==1) numP++; if (class_prediction>0) ret++; } } cout << "Accuracy on training data: " << correct/(double)imageDescriptions.size() << endl; if (positiveClass != -1) { cout << "recall: " << found/(double)numP << endl; cout << "precision: " << found/(double)ret << endl; } } /////////////////////////////////////////// //#include "tester.cpp" void test() { assert(hasPrefix("abcd","a")); assert(hasPrefix("abcd","abcd")); assert(!hasPrefix("abcd","bcd")); assert(!hasPrefix("abcd","abcde")); assert(!hasPrefix(" abcd","a")); assert(isTrainingImage(1)); assert(!isTrainingImage(2)); assert(!isTestingImage(1)); assert(isTestingImage(2)); assert(0.0 == my_stof(".0")); assert(0.0 == my_stof("0.0")); assert(0.0 == my_stof("0")); assert(10.0 == my_stof("10.0")); assert(100.0 == my_stof("1.0e2")); assert(0.0001 == my_stof("1.0e-4")); vector<double> desc0 = {1.0,2.0,3.0}; struct svm_node* test_node0 = convertDescription(&desc0); assert(test_node0[0].value == 1.0); assert(test_node0[1].value == 2.0); assert(test_node0[2].value == 3.0); assert(test_node0[0].index == 0); assert(test_node0[1].index == 1); assert(test_node0[2].index == 2); assert(test_node0[3].index == -1); vector<double> desc1 = {1.0,0.0,3.0}; struct svm_node* test_node1 = convertDescription(&desc1); assert(test_node1[0].value == 1.0); assert(test_node1[1].value == 3.0); assert(test_node1[0].index == 0); assert(test_node1[1].index == 2); assert(test_node1[2].index == -1); vector< vector<double>* > vec0(8); vec0[0] = new vector<double>(3); vec0[0]->at(0) = 2; vec0[0]->at(1) = 2; vec0[0]->at(2) = 3; vec0[1] = new vector<double>(3); vec0[1]->at(0) = 4; vec0[1]->at(1) = 2.2; vec0[1]->at(2) = 3; vec0[2] = new vector<double>(3); vec0[2]->at(0) = 4; vec0[2]->at(1) = 2; vec0[2]->at(2) = 3; vec0[3] = new vector<double>(3); vec0[3]->at(0) = 4; vec0[3]->at(1) = 2.2; vec0[3]->at(2) = 3; vec0[4] = new vector<double>(3); vec0[4]->at(0) = 5; vec0[4]->at(1) = 2; vec0[4]->at(2) = 3; vec0[5] = new vector<double>(3); vec0[5]->at(0) = 5; vec0[5]->at(1) = 2; vec0[5]->at(2) = 3; vec0[6] = new vector<double>(3); vec0[6]->at(0) = 7; vec0[6]->at(1) = 2.4; vec0[6]->at(2) = 3; vec0[7] = new vector<double>(3); vec0[7]->at(0) = 9; vec0[7]->at(1) = 2.1; vec0[7]->at(2) = 3; vector< vector<double>* > vec1(8); vec1[0] = new vector<double>(3); vec1[0]->at(0) = 2; vec1[0]->at(1) = 2; vec1[0]->at(2) = 3; vec1[1] = new vector<double>(3); vec1[1]->at(0) = 4; vec1[1]->at(1) = 2.2; vec1[1]->at(2) = 3; vec1[2] = new vector<double>(3); vec1[2]->at(0) = 4; vec1[2]->at(1) = 2; vec1[2]->at(2) = 3; vec1[3] = new vector<double>(3); vec1[3]->at(0) = 4; vec1[3]->at(1) = 2.2; vec1[3]->at(2) = 3; vec1[4] = new vector<double>(3); vec1[4]->at(0) = 5; vec1[4]->at(1) = 2; vec1[4]->at(2) = 3; vec1[5] = new vector<double>(3); vec1[5]->at(0) = 5; vec1[5]->at(1) = 2; vec1[5]->at(2) = 3; vec1[6] = new vector<double>(3); vec1[6]->at(0) = 7; vec1[6]->at(1) = 2.4; vec1[6]->at(2) = 3; vec1[7] = new vector<double>(3); vec1[7]->at(0) = 9; vec1[7]->at(1) = 2.1; vec1[7]->at(2) = 3; zscore(&vec0,"save/temp"); zscoreUse(&vec1,"save/temp"); assert(vec0[0]->at(0)==(2-5.0)/2.0); assert(vec0[1]->at(0)==(4-5.0)/2.0); assert(vec0[1]->at(2)==0.0); for (int i=0; i<3; i++) for (int j=0; j<3; j++) assert(fabs(vec0[i]->at(j) - vec1[i]->at(j))<.0001); } //////////////// int main(int argc, char** argv) { vector<int> labelsGlobal={1,2,3,4,5,6,7,8,9,10}; string option = argv[1]; if (hasPrefix(option,"compare_SIFT")) { Mat img = imread(argv[1],CV_LOAD_IMAGE_GRAYSCALE); assert(img.rows!=0); int minHessian = 400; int nfeaturePoints=10; int nOctivesPerLayer=3; SIFT detector(nfeaturePoints,nOctivesPerLayer); vector<KeyPoint> kps; Mat desc; detector(img,noArray(),kps,desc); cout << desc.depth() << endl; vector< vector<double> > descriptions; CustomSIFT::Instance()->extract(img,kps,descriptions); for (unsigned int i=0; i<kps.size(); i++) { double sum=0; for (unsigned int j=0; j<128; j++) { sum += desc.at<float>(i,j)*desc.at<float>(i,j); } double norm = sqrt(sum); for (unsigned int j=0; j<128; j++) { desc.at<float>(i,j) /= norm; } } for (unsigned int i=0; i<kps.size(); i++) { assert(desc.cols==128); assert(descriptions[i].size()==128); for (unsigned int j=0; j<128; j++) { if (desc.at<float>(i,j) != descriptions[i][j]) cout << "["<<i<<"]["<<j<<"] "<<desc.at<float>(i,j)<<"\t"<<descriptions[i][j]<<endl; } } } else if (hasPrefix(option,"train_codebook")) { int codebook_size=DEFAULT_CODEBOOK_SIZE; smatch sm_option; regex parse_option("train_codebook_size=([0-9]+)"); if(regex_search(option,sm_option,parse_option)) { codebook_size = stoi(sm_option[1]); cout << "codebook size = " << codebook_size << endl; } string keypoint_option = argv[2]; string descriptor_option = argv[3]; string imageDir = argv[argc-2]; if (imageDir == "default") imageDir = DEFAULT_IMG_DIR; if (imageDir[imageDir.size()-1]!='/') imageDir += '/'; string codebookLoc = argv[argc-1]; if (codebookLoc == "default") codebookLoc = SAVE_LOC+"codebook_"+to_string(codebook_size)+"_"+keypoint_option+"_"+descriptor_option+".cb"; vector< vector<double> > accum; DIR *dir; struct dirent *ent; if ((dir = opendir (imageDir.c_str())) != NULL) { cout << "reading images and obtaining descriptors" << endl; vector<string> fileNames; while ((ent = readdir (dir)) != NULL) { string fileName(ent->d_name); if (fileName[0] == '.' || (fileName[fileName.size()-1]!='G' && fileName[fileName.size()-1]!='g' && fileName[fileName.size()-1]!='f')) continue; fileNames.push_back(fileName); } int loopCrit = min((int)(300*codebook_size/50),(int)fileNames.size()); //int loopCrit = min((int)(300),(int)fileNames.size()); #pragma omp parallel for num_threads(3) for (unsigned int nameIdx=0; nameIdx<loopCrit; nameIdx++) { string fileName=fileNames[nameIdx]; Mat color_img = imread(imageDir+fileName, CV_LOAD_IMAGE_COLOR); vector<KeyPoint>* keyPoints = getKeyPoints(keypoint_option,color_img); vector< vector<double> >* descriptors = getDescriptors(descriptor_option,color_img,keyPoints); #pragma omp critical { for (const vector<double>& description : *descriptors) { if (description.size() > 0) accum.push_back(description); } } delete keyPoints; delete descriptors; } Codebook codebook; codebook.trainFromExamples(codebook_size,accum); codebook.save(codebookLoc); } else cout << "Error, could not load files for codebook." << endl; } else if (hasPrefix(option,"train_libsvm"))//train_svm_eps=$D_C=$D_AllVs=$POSITIVECLASS $CODEBOOKLOC $MODELLOC) { double eps = 0.001; double C = 2.0; smatch sm_option; int positiveClass = -1; regex parse_option("train_libsvm_eps=(-?[0-9]*(\\.[0-9]+e?-?[0-9]*)?)_C=(-?[0-9]*(\\.[0-9]+e?-?[0-9]*)?)_AllVs=(-?[0-9]+)"); if(regex_search(option,sm_option,parse_option)) { eps = my_stof(sm_option[1]); C = my_stof(sm_option[3]); positiveClass = stoi(sm_option[5]); cout << "eps="<<eps<<" C="<<C<<" positiveClass="<<positiveClass<<endl; } string keypoint_option = argv[2]; string descriptor_option = argv[3]; string pool_option = argv[4]; string imageDir = argv[argc-3]; if (imageDir == "default") imageDir = DEFAULT_IMG_DIR; if (imageDir[imageDir.size()-1]!='/') imageDir += '/'; string codebookLoc = argv[argc-2]; if (codebookLoc == "default") codebookLoc = SAVE_LOC+"codebook_"+to_string(DEFAULT_CODEBOOK_SIZE)+"_"+keypoint_option+"_"+descriptor_option+".cb"; string modelLoc = argv[argc-1]; Codebook codebook; if (codebookLoc != "none"){ codebook.readIn(codebookLoc); codebookLoc=codebookLoc.substr(codebookLoc.find_last_of('/')+1); } else codebookLoc=""; if (modelLoc == "default") if (positiveClass != -2) modelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"+to_string(positiveClass); else modelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"; if (positiveClass != -2) train(imageDir, positiveClass, (codebookLoc != "")?&codebook:NULL, keypoint_option, descriptor_option, pool_option, codebookLoc, eps, C, modelLoc); else { for (int label : labelsGlobal) { train(imageDir, label, &codebook, keypoint_option, descriptor_option, pool_option, codebookLoc, eps, C, modelLoc+to_string(label)); } } } else if (hasPrefix(option,"train_cvsvm"))//train_svm_eps=$D_C=$D_AllVs=$POSITIVECLASS $CODEBOOKLOC $MODELLOC) { double eps = 0.001; double C = 2.0; smatch sm_option; int positiveClass = -1; regex parse_option("train_cvsvm_AllVs=(-?[0-9]+)"); if(regex_search(option,sm_option,parse_option)) { positiveClass = stoi(sm_option[1]); cout << "positiveClass="<<positiveClass<<endl; } string keypoint_option = argv[2]; string descriptor_option = argv[3]; string pool_option = argv[4]; string imageDir = argv[argc-3]; if (imageDir == "default") imageDir = DEFAULT_IMG_DIR; if (imageDir[imageDir.size()-1]!='/') imageDir += '/'; string codebookLoc = argv[argc-2]; if (codebookLoc == "default") codebookLoc = SAVE_LOC+"codebook_"+to_string(DEFAULT_CODEBOOK_SIZE)+"_"+keypoint_option+"_"+descriptor_option+".cb"; string modelLoc = argv[argc-1]; Codebook codebook; if (codebookLoc != "none"){ codebook.readIn(codebookLoc); codebookLoc=codebookLoc.substr(codebookLoc.find_last_of('/')+1); } else codebookLoc=""; if (modelLoc == "default") if (positiveClass != -2) modelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"+to_string(positiveClass); else modelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"; if (positiveClass != -2) trainSVM_CV(imageDir, positiveClass, (codebookLoc != "")?&codebook:NULL, keypoint_option, descriptor_option, pool_option, codebookLoc, eps, C, modelLoc); else { for (int label : labelsGlobal) { trainSVM_CV(imageDir, label, &codebook, keypoint_option, descriptor_option, pool_option, codebookLoc, eps, C, modelLoc+to_string(label)); } } /////////////////////// cout << "Done\nProcessing test images" << endl; vector< vector<double>* > imageDescriptions; vector<double> imageLabels; getImageDescriptions(imageDir, false, positiveClass, (codebookLoc != "none")?&codebook:NULL, keypoint_option, descriptor_option, pool_option, codebookLoc, &imageDescriptions, &imageLabels); ///////////// } else if (hasPrefix(option,"test_libsvm")) { smatch sm_option; int positiveClass = -1; regex parse_option("test_libsvm_AllVs=(-?[0-9]+)"); if(regex_search(option,sm_option,parse_option)) { positiveClass = stoi(sm_option[1]); cout << "positiveClass="<<positiveClass<<endl; } string keypoint_option = argv[2]; string descriptor_option = argv[3]; string pool_option = argv[4]; string imageDir = argv[argc-3]; if (imageDir == "default") imageDir = DEFAULT_IMG_DIR; if (imageDir[imageDir.size()-1]!='/') imageDir += '/'; string codebookLoc = argv[argc-2]; if (codebookLoc == "default") codebookLoc = SAVE_LOC+"codebook_"+to_string(DEFAULT_CODEBOOK_SIZE)+"_"+keypoint_option+"_"+descriptor_option+".cb"; string modelLoc = argv[argc-1]; Codebook codebook; if (codebookLoc != "none"){ codebook.readIn(codebookLoc); codebookLoc=codebookLoc.substr(codebookLoc.find_last_of('/')+1); } else codebookLoc=""; vector< vector<double>* > imageDescriptions; vector<double> imageLabels; getImageDescriptions(imageDir, false, positiveClass, (codebookLoc != "none")?&codebook:NULL, keypoint_option, descriptor_option, pool_option, codebookLoc, &imageDescriptions, &imageLabels); if (positiveClass != -2) { if (modelLoc == "default") modelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"+to_string(positiveClass)+".svm"; struct svm_model* trained_model = svm_load_model(modelLoc.c_str()); int numLabels = svm_get_nr_class(trained_model); int* labels = new int[numLabels]; svm_get_labels(trained_model, labels); double* dec_values = new double[numLabels*(numLabels-1)/2]; int correct = 0; int found =0; int ret=0; int numP=0; for (unsigned int i=0; i<imageDescriptions.size(); i++) { struct svm_node* x = convertDescription(imageDescriptions[i]); double class_prediction = svm_predict_values(trained_model, x, dec_values); if (class_prediction == imageLabels[i]) correct++; if (positiveClass != -1) { if ((imageLabels[i]==1) && class_prediction>0) found++; if (imageLabels[i]==1) numP++; if (class_prediction>0) ret++; } delete imageDescriptions[i]; delete x; } cout << "Accuracy: " << correct/(double)imageDescriptions.size() << endl; if (positiveClass != -1) { cout << "recall: " << found/(double)numP << endl; cout << "precision: " << found/(double)ret << endl; } svm_free_model_content(trained_model); delete[] labels; } else////train 10 modesl { map<int,struct svm_model*> trained_models; for (int label : labelsGlobal) { string thisModelLoc; if (modelLoc == "default") thisModelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"+to_string(label)+".svm"; else thisModelLoc = modelLoc + to_string(label); trained_models[label] = svm_load_model(thisModelLoc.c_str()); assert(trained_models[label] != NULL); cout << "loaded " << thisModelLoc << endl; } //////// /////// int numLabels = svm_get_nr_class(trained_models[1]); cout << "num labels " << numLabels << endl; int* labels = new int[numLabels]; svm_get_labels(trained_models[1], labels); double* dec_values = new double[numLabels*(numLabels-1)/2]; int correct = 0; for (unsigned int i=0; i<imageDescriptions.size(); i++) { double class_prediction=0; double conf=0; for (int label : labelsGlobal) { struct svm_node* x = convertDescription(imageDescriptions[i]); double is_this_class = svm_predict_values(trained_models[label], x, dec_values); if (is_this_class > 0 && dec_values[0]>conf) { class_prediction = label; conf = dec_values[0]; } //cout <<i << ", for label " << label << " : " << is_this_class << endl; //for (unsigned int d=0; d<numLabels*(numLabels-1)/2; d++) // cout << dec_values[d] << ", "; //cout << endl; delete x; } //cout << "actual : " << imageLabels[i] << endl; if (class_prediction == imageLabels[i]) correct++; delete imageDescriptions[i]; } cout << "Accuracy: " << correct/(double)imageDescriptions.size() << endl; for (int label : labelsGlobal) { svm_free_model_content(trained_models[label]); } delete[] labels; } } else if (hasPrefix(option,"test_cvsvm")) { smatch sm_option; int positiveClass = -1; bool drawPR=false; regex parse_option("AllVs=(-?[0-9]+)"); if(regex_search(option,sm_option,parse_option)) { positiveClass = stoi(sm_option[1]); cout << "positiveClass="<<positiveClass<<endl; } regex parse_option_pr("[pP][rR](curves?)?"); if(regex_search(option,sm_option,parse_option_pr)) { drawPR=true; cout << "PR curves!" <<endl; } string keypoint_option = argv[2]; string descriptor_option = argv[3]; string pool_option = argv[4]; string imageDir = argv[argc-3]; if (imageDir == "default") imageDir = DEFAULT_IMG_DIR; if (imageDir[imageDir.size()-1]!='/') imageDir += '/'; string codebookLoc = argv[argc-2]; if (codebookLoc == "default") codebookLoc = SAVE_LOC+"codebook_"+to_string(DEFAULT_CODEBOOK_SIZE)+"_"+keypoint_option+"_"+descriptor_option+".cb"; string modelLoc = argv[argc-1]; Codebook codebook; if (codebookLoc != "none"){ codebook.readIn(codebookLoc); codebookLoc=codebookLoc.substr(codebookLoc.find_last_of('/')+1); } else codebookLoc=""; vector< vector<double>* > imageDescriptions; vector<double> imageLabels; getImageDescriptions(imageDir, false, positiveClass, (codebookLoc != "none")?&codebook:NULL, keypoint_option, descriptor_option, pool_option, codebookLoc, &imageDescriptions, &imageLabels); if (positiveClass != -2) { if (modelLoc == "default") modelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"+to_string(positiveClass)+".xml"; CvSVM SVM; SVM.load(modelLoc.c_str()); int correct = 0; int found =0; int ret=0; int numP=0; #if DEBUG_SHOW map<int, vector< vector<double>* > > byClass; vector<double> maxs = *imageDescriptions[0]; vector<double> mins = *imageDescriptions[0]; #endif for (unsigned int j=0; j<imageDescriptions.size(); j++) { assert(codebookLoc == "none" || imageDescriptions[j]->size() == codebook.size()); Mat instance(1, imageDescriptions[j]->size(), CV_32FC1); for (int i=0; i<imageDescriptions[j]->size(); i++) { instance.at<float>(0,i)=imageDescriptions[j]->at(i); } float class_prediction = SVM.predict(instance,false); if (class_prediction == imageLabels[j]) correct++; if (positiveClass != -1) { if ((imageLabels[j]==1) && class_prediction>0) found++; if (imageLabels[j]==1) numP++; if (class_prediction>0) ret++; } #if DEBUG_SHOW byClass[imageLabels[j]].push_back(imageDescriptions[j]); for (int ii=0; ii<imageDescriptions[j]->size(); ii++) { if (imageDescriptions[j]->at(ii) > maxs[ii]) maxs[ii]=imageDescriptions[j]->at(ii); if (imageDescriptions[j]->at(ii) < mins[ii]) mins[ii]=imageDescriptions[j]->at(ii); } #endif } cout << "Accuracy: " << correct/(double)imageDescriptions.size() << endl; if (positiveClass != -1) { cout << "recall: " << found/(double)numP << endl; cout << "precision: " << found/(double)ret << endl; } #if DEBUG_SHOW int row=0; Mat full(imageDescriptions.size()*2,imageDescriptions[0]->size()*3,CV_8UC3); for (auto p : byClass) { for (auto ins : p.second) { makeHistFull(*ins,maxs,mins,full,row); assert(row<imageDescriptions.size()*2); row+=2; } } imwrite("hist.png",full); imshow("hist",full); waitKey(); waitKey(); #endif } else////test 10 models { map<int,CvSVM> trained_models; map<int, vector<tuple<float,bool> > > models_PRData; for (int label : labelsGlobal) { string thisModelLoc; if (modelLoc == "default") thisModelLoc = SAVE_LOC+"model_"+keypoint_option+"_"+descriptor_option+"_"+pool_option+"_"+codebookLoc+"_"+to_string(label)+".xml"; else thisModelLoc = modelLoc + to_string(label); trained_models[label].load(thisModelLoc.c_str()); //if (loaded) // cout << "loaded " << thisModelLoc << endl; //else // cout << "failed to load " << thisModelLoc << endl; } int correct = 0; for (unsigned int j=0; j<imageDescriptions.size(); j++) { double class_prediction=0; double conf=0; Mat instance(1, imageDescriptions[j]->size(), CV_32FC1); for (int i=0; i<imageDescriptions[j]->size(); i++) { instance.at<float>(0,i)=imageDescriptions[j]->at(i); } for (int label : labelsGlobal) { float is_this_class = trained_models[label].predict(instance,true); models_PRData[label].push_back(make_tuple(is_this_class,imageLabels[j]==label)); if (is_this_class < 0 && is_this_class<conf) { class_prediction = label; conf = is_this_class; } } //cout << "actual : " << imageLabels[i] << endl; if (class_prediction == imageLabels[j]) correct++; delete imageDescriptions[j]; } cout << "Accuracy: " << correct/(double)imageDescriptions.size() << endl; //Generate PR curves map<int,double> aps; if (drawPR) { double mAP=0; for (int label : labelsGlobal) { aps[label] = drawPRCurve(label,models_PRData[label]); mAP += aps[label]; } mAP /= labelsGlobal.size(); cout << "mAP = " << mAP << endl; } } } else if (hasPrefix(option,"runtest")) { test(); Codebook cb; cb.unittest(); } else cout << "ERROR no option: " << option << endl; return 0; } <file_sep>#ifndef HOG_H #define HOG_H #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/features2d/features2d.hpp" //#include "defines.h" using namespace cv; using namespace std; class HOG { public: HOG(float thresh, int cellSize, int stepSize=5, int num_bins=9); void compute(const Mat &img, vector<vector<double> > &descriptors, vector< KeyPoint > &locations); void unittest(); private: float thresh; int cellSize; int stepSize; int num_bins; Mat computeGradient(const Mat &img); inline int mod(int a, int b) { while (a<0) a+=b; return a%b; } }; #endif // HOG_H <file_sep>SimpleImageClassifier <NAME> 2015 First project for CS601R. Uses lots of OpenCV. This provides several ways of going about the image recognition pipeline: * Feature point detection: SIFT (OpenCV), dense * Feature point description: SIFT (OpenCV and personal implementation), HOG (only does dense feature points) * Pooling: Locality constrained proportional encoding, Spatial pyramid (only allows for a second level of 2x2 bins) * Classification: SVM (OpenCV and LIBSVM) USAGE: These commands are faily self explanitory: `./SimpleClassifier train_codebook(_size=<int>) <feature point detection option> <feature point description option> <path:image directory> <path: out codebook file>` `./SimpleClassifier train_libsvm(_eps=<epsilon float>_C=<int>_AllVs=<int>) <feature point detection option> <feature point description option> <pooling option> <path:image directory> <path:codebook file> <path:out svm file>` `./SimpleClassifier train_cvsvm(_AllVs=<int>) <feature point detection option> <feature point description option> <pooling option> <path:image directory> <path:codebook file> <path:out svm file>` `./SimpleClassifier test_(libsvm or cvsvm)(_AllVs=<int>)(_prcurves) <feature point detection option> <feature point description option> <pooling option> <path:image directory> <path:codebook file> <path:out svm file>` Where: `<feature point detection option>` can be: * `SIFT` Extracts feature points using OpenCV’s SIFT implementation * `dense(_stride=<int>)` Extracts feature points densely (defaults to stride of 5) `<feature point description option>` can be: * `SIFT` Describes feature points using OpenCV’s SIFT implementation * `customSIFT` Describes feature points using my implementation of SIFT * `HOG(_stride=<int>)(_size=<int>)(_thresh=<int>)` Describes feature points densely (ignores detection parameter) using my implementation of HOG. `<pooling option>` can be: * `bovw(_LLC=<int>)` Encodes feature points in a Bag-of-Visual-Words representation, using locality constrained proportional encoding (not actually LLC encoding). The integer you pass is the number of nearest neighbors used when encoding. * `sppy(_LLC=<int>)` Encodes feature points in a Bag-of-Visual-Words representation, using a spatial pyramid with two layers, the first being 1x1 and the second 2x2. It uses the same encoding as the above option. The parentheses are showing optional input. Any of the paths can be entered as `defaut`, and the program automatically uses a consistent file name (in the ./save/ directory) for the parameters. For the `AllVs=<int>` parameter, if the integer is positive, a one-vs-all classifier is trained (for the entered class number). If `-1` is entered, a multiclass classifier is trained. If `-2` is entered, ten one-vs-all classifiers are trained individually, and tested together as one classifier (so P-R curves can be generated). The OpenCV implementation of the SVM is always trained with the `train_auto` function, which optimises its parameters. When a one-vs-all SVM is trained, the positive examples are given a weight of 9. <file_sep>#ifndef CUSTOMSIFT_H #define CUSTOMSIFT_H #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <math.h> #include <iostream> #include <map> using namespace cv; using namespace std; class CustomSIFT { public: static CustomSIFT* Instance() { if (singleton==NULL) singleton = new CustomSIFT; return singleton; } static void extract(const Mat &in_img, const vector<KeyPoint> &keyPoints, vector< vector<double> >& descriptors); private: static CustomSIFT* singleton; static Vec2f getSubpix(const Mat& img, Point2f off,KeyPoint p); static float getSubpixBlur(const Mat& img, Point2f off,KeyPoint p, double blur, map<double,Mat> &blurred); static double guassianWeight(double dist, double spread); static void normalizeDesc(vector<double>& desc); static Mat computeGradient(const Mat &img); static Point2f rotatePoint(Mat M, const Point2f& p); static int mod(int a, int m) {while(a<0){a+=m;} return a%m;} CustomSIFT(){}; CustomSIFT(CustomSIFT const&){}; CustomSIFT& operator=(CustomSIFT const&){return *this;}; }; #endif // CUSTOMSIFT_H <file_sep>#include "hog.h" #include <omp.h> #include <iostream> #include "opencv2/highgui/highgui.hpp" #define BIN_SIZE (180/num_bins) #define HOG_PAR 0 #define INTERPOLATE_LOC 1 HOG::HOG(float thresh, int cellSize, int stepSize, int num_bins) { this->thresh=thresh; this->cellSize=cellSize; this->stepSize=stepSize; this->num_bins=num_bins; } void HOG::compute(const Mat &img, vector<vector<double> > &descriptors, vector< KeyPoint > &locations) { Mat grad = computeGradient(img); //init bins int binsHorz=(img.cols-stepSize)/stepSize; int binsVert=(img.rows-stepSize)/stepSize; vector<double>** bins = new vector<double>*[binsHorz]; for (int i=0; i<binsHorz; i++) { bins[i] = new vector<double>[binsVert]; for (int j=0; j<binsVert; j++) { bins[i][j].resize(num_bins); } } //compute the bins ,tlX,tlY,x,y,hGrad,vGrad,angle,bin,other_bin,my_binW,other_binW,mag int stepSize_par=stepSize; int cellSize_par=cellSize; //private(binsHorz,binsVert,cellSize_par,stepSize_par) //we will iterate over each cell #pragma omp parallel for if (HOG_PAR) for (int i=0; i<binsHorz; i++) { //top-left X of the cell int tlX = i*stepSize_par - (cellSize_par/*-stepSize_par*/)/2;// the minus part is just an arbitrary choosing of where we start cells from for (int j=0; j<binsVert; j++) { //top-left Y of the cell int tlY = j*stepSize_par - (cellSize_par/*-stepSize_par*/)/2; //iterate over each pixel in the cell for (int x=tlX; x<tlX+cellSize_par; x++) for (int y=tlY; y<tlY+cellSize_par; y++) { //trilinear interpolation? #if INTERPOLATE_LOC float horzDist = (x-tlX)-(-.5+cellSize_par/2.0); int other_i; float other_iW; float my_iW; if (horzDist <0) { other_i=i-1; other_iW=(horzDist*-1.0)/(cellSize_par/2.0); my_iW=((cellSize_par/2.0)+horzDist+0.0)/(cellSize_par/2.0); } else if (horzDist >0) { other_i=i+1; other_iW=(horzDist*1.0)/(cellSize_par/2.0); my_iW=((cellSize_par/2.0)-horzDist+0.0)/(cellSize_par/2.0); } else { other_i=i; my_iW=1; other_iW=0; } if (i<=0 || i>=(binsHorz)-1) { other_i=i; other_iW=0; } float vertDist = (y-tlY)-(-.5+cellSize_par/2.0); int other_j; float other_jW; float my_jW; if (vertDist <0) { other_j=j-1; other_jW=(vertDist*-1.0)/(cellSize_par/2.0); my_jW=((cellSize_par/2.0)+vertDist+0.0)/(cellSize_par/2.0); } else if (vertDist >0) { other_j=j+1; other_jW=(vertDist*1.0)/(cellSize_par/2.0); my_jW=((cellSize_par/2.0)-vertDist+0.0)/(cellSize_par/2.0); } else { other_j=j; my_jW=1; other_jW=0; } if(j<=0 || j>=(binsVert)-1) { other_j=j; other_jW=0; } #endif float hGrad=0; float vGrad=0; if (y>=0 && y<grad.rows && x>=0 && x<grad.cols) { hGrad=grad.at<Vec2f>(y,x)[0]; vGrad=grad.at<Vec2f>(y,x)[1]; } if (hGrad==0 && vGrad==0) continue; float angle = 180*atan2(vGrad,hGrad)/(CV_PI); if (angle>=180) angle-=180; if (angle<0) angle += 180; int bin = angle/BIN_SIZE; // cout << "angle: "<<angle<<", bin: "<<bin<<endl; int other_bin; float my_binW; float other_binW; float angleDist = angle - (bin*BIN_SIZE +(BIN_SIZE/2));// the +(BIN_SIZE/2) is to center if (angleDist <0) { other_bin=mod(bin-1,num_bins); other_binW=(angleDist*-1.0)/BIN_SIZE; my_binW=(BIN_SIZE+angleDist+0.0)/BIN_SIZE; } else if (angleDist >0) { other_bin=(bin+1)%num_bins; other_binW=(angleDist*1.0)/BIN_SIZE; my_binW=(BIN_SIZE-angleDist+0.0)/BIN_SIZE; } else { other_bin=bin; my_binW=1; other_binW=0; } float mag = sqrt(hGrad*hGrad + vGrad*vGrad); // //add pixel to bins[i][j] #if INTERPOLATE_LOC #if HOG_PAR float a= mag*my_iW*my_jW*my_binW; float b= mag*other_iW*my_jW*my_binW; float c= mag*my_iW*other_jW*my_binW; float d= mag*other_iW*other_jW*my_binW; float e= mag*my_iW*my_jW*other_binW; float f= mag*other_iW*my_jW*other_binW; float g= mag*my_iW*other_jW*other_binW; float h= mag*other_iW*other_jW*other_binW; #pragma omp critical { bins[i][j][bin] += a; bins[other_i][j][bin] += b; bins[i][other_j][bin] += c; bins[other_i][other_j][bin] += d; bins[i][j][other_bin] += e; bins[other_i][j][other_bin] += f; bins[i][other_j][other_bin] += g; bins[other_i][other_j][other_bin] += h; } #else bins[i][j][bin] += mag*my_iW*my_jW*my_binW; bins[other_i][j][bin] += mag*other_iW*my_jW*my_binW; bins[i][other_j][bin] += mag*my_iW*other_jW*my_binW; bins[other_i][other_j][bin] += mag*other_iW*other_jW*my_binW; bins[i][j][other_bin] += mag*my_iW*my_jW*other_binW; bins[other_i][j][other_bin] += mag*other_iW*my_jW*other_binW; bins[i][other_j][other_bin] += mag*my_iW*other_jW*other_binW; bins[other_i][other_j][other_bin] += mag*other_iW*other_jW*other_binW; #endif #else bins[i][j][bin] += mag*my_binW; bins[i][j][other_bin] += mag*other_binW; #endif } } } vector<float> blank; //filter and feature points to return objects for (int i=0; i<binsHorz; i++) { int tlX = i*stepSize - (cellSize/*-stepSize*/)/2; for (int j=0; j<binsVert; j++) { int tlY = j*stepSize - (cellSize/*-stepSize*/)/2; float mag=0; for (int b=0; b<num_bins; b++) { assert(bins[i][j][b]>=0); mag += pow(bins[i][j][b],2); } mag = sqrt(mag); if (mag>thresh) { descriptors.push_back(bins[i][j]); locations.push_back(KeyPoint(tlX+cellSize/2,tlY+cellSize/2,cellSize)); } // else // { // descriptors.push_back(blank); // locations.push_back(Point2i(tlX+cellSize/2,tlY+cellSize/2)); // } } } for (int i=0; i<binsHorz; i++) { delete[] bins[i]; } delete[] bins; } Mat HOG::computeGradient(const Mat &img) { Mat h = (Mat_<double>(1,3) << -1, 0, 1); Mat v = (Mat_<double>(3,1) << -1, 0, 1); Mat h_grad; filter2D(img,h_grad,CV_32F,h); Mat v_grad; filter2D(img,v_grad,CV_32F,v); // h_grad=cv::abs(h_grad); // v_grad=cv::abs(v_grad); Mat chan[2] = {h_grad, v_grad}; Mat ret; merge(chan,2,ret); return ret; } void HOG::unittest() { Mat img1 = (Mat_<unsigned char>(5,5) << 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0); Mat grad = computeGradient(img1); assert(grad.at<Vec2f>(0,1)[0]==0); assert(grad.at<Vec2f>(0,2)[0]==1); assert(grad.at<Vec2f>(0,3)[0]==1); assert(grad.at<Vec2f>(1,1)[0]==0); assert(grad.at<Vec2f>(1,2)[0]==1); assert(grad.at<Vec2f>(1,3)[0]==1); assert(grad.at<Vec2f>(2,1)[0]==0); assert(grad.at<Vec2f>(2,2)[0]==0); assert(grad.at<Vec2f>(2,3)[0]==0); assert(grad.at<Vec2f>(3,1)[0]==-1); assert(grad.at<Vec2f>(3,2)[0]==-1); assert(grad.at<Vec2f>(3,3)[0]==0); assert(grad.at<Vec2f>(4,1)[0]==-1); assert(grad.at<Vec2f>(4,2)[0]==-1); assert(grad.at<Vec2f>(4,3)[0]==0); assert(grad.at<Vec2f>(1,0)[1]==0); assert(grad.at<Vec2f>(2,0)[1]==1); assert(grad.at<Vec2f>(3,0)[1]==1); assert(grad.at<Vec2f>(1,1)[1]==0); assert(grad.at<Vec2f>(2,1)[1]==1); assert(grad.at<Vec2f>(3,1)[1]==1); assert(grad.at<Vec2f>(1,2)[1]==0); assert(grad.at<Vec2f>(2,2)[1]==0); assert(grad.at<Vec2f>(3,2)[1]==0); assert(grad.at<Vec2f>(1,3)[1]==-1); assert(grad.at<Vec2f>(2,3)[1]==-1); assert(grad.at<Vec2f>(3,3)[1]==0); assert(grad.at<Vec2f>(1,4)[1]==-1); assert(grad.at<Vec2f>(2,4)[1]==-1); assert(grad.at<Vec2f>(3,4)[1]==0); thresh=0; cellSize=5; stepSize=1; num_bins=9; Mat img2 = (Mat_<unsigned char>(20,20)<< 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); for (int x=0; x<img2.cols; x++) for (int y=0; y<img2.rows; y++) { if (img2.at<unsigned char>(y,x)==0) img2.at<unsigned char>(y,x)=255; else img2.at<unsigned char>(y,x)=0; } vector<vector<double> > desc; vector<KeyPoint> loc; compute(img2,desc,loc); for (int i=0; i<desc.size(); i++) { if ((loc[i].pt.x == 2 && loc[i].pt.y == 2) || (loc[i].pt.x == 8 && loc[i].pt.y == 8) || (loc[i].pt.x == 2 && loc[i].pt.y == 14)) { assert(desc[i][0] > desc[i][1]); assert(desc[i][0] > desc[i][2]); assert(desc[i][0] > desc[i][3]); assert(desc[i][0] > desc[i][4]); assert(desc[i][0] > desc[i][5]); assert(desc[i][0] > desc[i][6]); assert(desc[i][0] > desc[i][7]); } else if ((loc[i].pt.x == 8 && loc[i].pt.y == 2) || (loc[i].pt.x == 14 && loc[i].pt.y == 8) || (loc[i].pt.x == 8 && loc[i].pt.y == 14)) { assert(desc[i][6] > desc[i][0]); assert(desc[i][6] > desc[i][1]); assert(desc[i][6] > desc[i][2]); assert(desc[i][6] > desc[i][3]); assert(desc[i][6] > desc[i][4]); assert(desc[i][6] > desc[i][5]); assert(desc[i][6] > desc[i][7]); assert(desc[i][6] > desc[i][8]); } else if (loc[i].pt.x == 14 && loc[i].pt.y == 2) { assert(desc[i][4] > desc[i][0]); assert(desc[i][4] > desc[i][1]); assert(desc[i][4] > desc[i][2]); assert(desc[i][4] > desc[i][3]); assert(desc[i][4] > desc[i][5]); assert(desc[i][4] > desc[i][6]); assert(desc[i][4] > desc[i][7]); assert(desc[i][4] > desc[i][8]); } else if (loc[i].pt.x == 2 && loc[i].pt.y == 8) { assert(desc[i][2] > desc[i][0]); assert(desc[i][2] > desc[i][1]); assert(desc[i][2] > desc[i][3]); assert(desc[i][2] > desc[i][4]); assert(desc[i][2] > desc[i][5]); assert(desc[i][2] > desc[i][6]); assert(desc[i][2] > desc[i][7]); assert(desc[i][2] > desc[i][8]); } } ///////////////////////////////////////////////// thresh=0; cellSize=5; stepSize=2; num_bins=9; desc.clear(); loc.clear(); compute(img2,desc,loc); for (int i=0; i<desc.size(); i++) { if ((loc[i].pt.x == 2 && loc[i].pt.y == 2) || (loc[i].pt.x == 8 && loc[i].pt.y == 8)) { assert(desc[i][0] > desc[i][1]); assert(desc[i][0] > desc[i][2]); assert(desc[i][0] > desc[i][3]); assert(desc[i][0] > desc[i][4]); assert(desc[i][0] > desc[i][5]); assert(desc[i][0] > desc[i][6]); assert(desc[i][0] > desc[i][7]); } else if ((loc[i].pt.x == 8 && loc[i].pt.y == 2) || (loc[i].pt.x == 14 && loc[i].pt.y == 8)) { assert(desc[i][6] > desc[i][0]); assert(desc[i][6] > desc[i][1]); assert(desc[i][6] > desc[i][2]); assert(desc[i][6] > desc[i][3]); assert(desc[i][6] > desc[i][4]); assert(desc[i][6] > desc[i][5]); assert(desc[i][6] > desc[i][7]); assert(desc[i][6] > desc[i][8]); } else if (loc[i].pt.x == 14 && loc[i].pt.y == 2) { assert(desc[i][4] > desc[i][0]); assert(desc[i][4] > desc[i][1]); assert(desc[i][4] > desc[i][2]); assert(desc[i][4] > desc[i][3]); assert(desc[i][4] > desc[i][5]); assert(desc[i][4] > desc[i][6]); assert(desc[i][4] > desc[i][7]); assert(desc[i][4] > desc[i][8]); } else if (loc[i].pt.x == 2 && loc[i].pt.y == 8) { assert(desc[i][2] > desc[i][0]); assert(desc[i][2] > desc[i][1]); assert(desc[i][2] > desc[i][3]); assert(desc[i][2] > desc[i][4]); assert(desc[i][2] > desc[i][5]); assert(desc[i][2] > desc[i][6]); assert(desc[i][2] > desc[i][7]); assert(desc[i][2] > desc[i][8]); } } thresh=0; cellSize=10; stepSize=2; num_bins=9; desc.clear(); loc.clear(); Mat el3 = imread("../../data/simple_corpus2/elements/3.png",CV_LOAD_IMAGE_GRAYSCALE); // Mat el3 = (Mat_<unsigned char>(10,10)<< 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, // 0, 0, 0, 0, 1, 1, 0, 0, 0, 0); // for (int x=0; x<el3.cols; x++) // for (int y=0; y<el3.rows; y++) // { // if (el3.at<unsigned char>(y,x)==0) // el3.at<unsigned char>(y,x)=255; // else // el3.at<unsigned char>(y,x)=0; // } imwrite("debug.png",el3); compute(el3,desc,loc); for (int i=0; i<desc.size(); i++) { // if ((loc[i].pt.x == 2 && loc[i].pt.y == 2) || (loc[i].pt.x == 8 && loc[i].pt.y == 8)) if (desc[i].size()>0 && (loc[i].pt.x > 2 && loc[i].pt.y > 2) && (loc[i].pt.x < 8 && loc[i].pt.y < 8)) { assert(desc[i][0] > desc[i][1]); assert(desc[i][0] > desc[i][2]); assert(desc[i][0] > desc[i][3]); assert(desc[i][0] > desc[i][4]); assert(desc[i][0] > desc[i][5]); assert(desc[i][0] > desc[i][6]); assert(desc[i][0] > desc[i][7]); } } cout << "HOG passed its tests!" << endl; } <file_sep>CXX = g++ CXXFLAGS = -std=c++11 -g LIBS = -lopencv_viz -lopencv_core -lopencv_highgui -lopencv_calib3d -lopencv_imgproc INCPATH = -I. TARGET = TIP make: $(CXX) $(CXXFLAGS) $(INCPATH) -o $(TARGET) main.cpp $(LIBS) clean: rm $(TARGET) <file_sep>CXX = g++-4.9 CXX_FLAGS = -std=c++11 -g -c -I libsvm-3.20/ #-Wall SOURCES += main.cpp LIBS += -L/usr/local/lib/ -lopencv_features2d -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_ml -fopenmp -lopencv_nonfree PROGRAM_NAME = SimpleClassifier MAIN_OBJ_FILES = customsift.o main.o libsvm-3.20/svm.o codebook_2.o hog.o bin: $(PROGRAM_NAME) clean: - rm -f $(PROGRAM_NAME) - rm -f $(MAIN_OBJ_FILES) SimpleClassifier: $(MAIN_OBJ_FILES) g++ $(MAIN_OBJ_FILES) -o $(PROGRAM_NAME) $(LIBS) Alt: codebook_2.o new_main.o $(CXX) codebook_2.o new_main.o -o Alt $(LIBS) main.o: main.cpp customsift.h libsvm-3.20/svm.h $(CXX) $(CXX_FLAGS) main.cpp -o main.o $(LIBS) customsift.o: customsift.cpp customsift.h $(CXX) $(CXX_FLAGS) customsift.cpp $(LIBS) -o customsift.o #codebook.o: codebook.cpp codebook.h # $(CXX) $(CXX_FLAGS) codebook.cpp $(LIBS) -o codebook.o codebook_2.o: codebook_2.cpp codebook_2.h $(CXX) $(CXX_FLAGS) codebook_2.cpp $(LIBS) -o codebook_2.o hog.o: hog.cpp hog.h $(CXX) $(CXX_FLAGS) hog.cpp $(LIBS) -o hog.o svm.o: libsvm-3.20/svm.cpp libsvm-3.20/svm.h $(CXX) $(CXX_FLAGS) libsvm-3.20/svm.cpp new_main.o: new_main.cpp $(CXX) $(CXX_FLAGS) new_main.cpp -o new_main.o $(LIBS) <file_sep>void test() { assert(hasPrefix("abcd","a")); assert(hasPrefix("abcd","abcd")); assert(!hasPrefix("abcd","bcd")); assert(!hasPrefix("abcd","abcde")); assert(!hasPrefix(" abcd","a")); assert(isTrainingImage(1)); assert(!isTrainingImage(2)); assert(!isTestingImage(1)); assert(isTestingImage(2)); assert(0.0 == my_stof(".0")); assert(0.0 == my_stof("0.0")); assert(0.0 == my_stof("0")); assert(10.0 == my_stof("10.0")); assert(100.0 == my_stof("1.0e2")); assert(0.0001 == my_stof("1.0e-4")); vector<double> desc0 = {1.0,2.0,3.0}; struct svm_node* test_node0 = convertDescription(&desc0); assert(test_node0[0].value == 1.0); assert(test_node0[1].value == 2.0); assert(test_node0[2].value == 3.0); assert(test_node0[0].index == 0); assert(test_node0[1].index == 1); assert(test_node0[2].index == 2); assert(test_node0[3].index == -1); vector<double> desc1 = {1.0,0.0,3.0}; struct svm_node* test_node1 = convertDescription(&desc1); assert(test_node1[0].value == 1.0); assert(test_node1[1].value == 3.0); assert(test_node1[0].index == 0); assert(test_node1[1].index == 2); assert(test_node1[2].index == -1); vector< vector<double>* > vec0(3); vec0[0] = new vector<double>(3); vec0[0]->at(0) = 1; vec0[0]->at(1) = 2; vec0[0]->at(2) = 3; vec0[1] = new vector<double>(3); vec0[1]->at(0) = 1; vec0[1]->at(1) = 2.2; vec0[1]->at(2) = 3; vec0[2] = new vector<double>(3); vec0[2]->at(0) = 1.5; vec0[2]->at(1) = 2; vec0[2]->at(2) = 3; vector< vector<double>* > vec1(3); vec1[0] = new vector<double>(3); vec1[0]->at(0) = 1; vec1[0]->at(1) = 2; vec1[0]->at(2) = 3; vec1[1] = new vector<double>(3); vec1[1]->at(0) = 1; vec1[1]->at(1) = 2.2; vec1[1]->at(2) = 3; vec1[2] = new vector<double>(3); vec1[2]->at(0) = 1.5; vec1[2]->at(1) = 2; vec1[2]->at(2) = 3; zscore(&vec0,"save/temp"); zscoreUse(&vec1,"save/temp"); assert(vec0[0]->at(1)==0); for (int i=0; i<3; i++) for (int j=0; j<3; j++) assert(vec0[i]->at(j) == vec1[i]->at(j)); }
e882281e853e943d90fb80de071b30c363c5f9fb
[ "Markdown", "Makefile", "C++" ]
10
C++
herobd/ComputerVision
076dd87a3dc63038c83da5ed13b363b8da5eb714
4b7223b30bda440fc9ead505952e44d7e54b6027
refs/heads/master
<file_sep>#include <stdio.h> #include <map> #include <vector> #include <set> #define MP(a, b) make_pair(a, b) using namespace std; const int N = 120000, M = 200000; int h[N][3]; char key[N][30]; int n, m, node_degree[M]; map<int, int> mp; set<int> edge[M], degree[N + 1]; vector<int> delete_order; bool visited[M]; char g[M]; int h0(char *s, int mod) { int ans = 0; for(; *s; s++) { ans = (ans * 31 + *s) % mod; } return ans; } int h1(char *s, int mod) { int ans = 0; for(; *s; s++) { ans = (ans * 131 + *s) % mod; } return ans + mod; } int h2(char *s, int mod) { int ans = 0; for(; *s; s++) { ans = (ans * 1313 + *s) % mod; } return ans + 2 * mod; } void reduce_degree(int u, int e) { int tmp_degree = node_degree[u]; degree[tmp_degree].erase(degree[tmp_degree].find(u)); tmp_degree = node_degree[u] = tmp_degree - 1; degree[tmp_degree].insert(u); edge[u].erase(edge[u].find(e)); } void delete_edge(int e) { reduce_degree(h[e][0], e); reduce_degree(h[e][1], e); reduce_degree(h[e][2], e); } bool hypergraph_generate() { for(int i = 0; i < n; i++) { edge[h[i][0]].insert(i); edge[h[i][1]].insert(i); edge[h[i][2]].insert(i); node_degree[h[i][0]]++; node_degree[h[i][1]]++; node_degree[h[i][2]]++; } for(int i = 0; i < m; i++) { degree[node_degree[i]].insert(i); } for(int i = 0; i < n; i++){ int u; set<int>::iterator it = degree[1].begin(); if(it != degree[1].end()) { u = *it; } else { return 0; } int e = *edge[u].begin(); delete_edge(e); delete_order.push_back(e); } for(int i = 0; i < m; i++) { visited[i] = false; g[i] = 3; } for(int i = n - 1; i >= 0; i--) { int u = delete_order[i]; int choice = 0; for(int j = 0; j < 3; j++) { if(!visited[h[u][j]]) { choice = j; break; } } int hash_sum = 0; for(int j = 0; j < 3; j++) { hash_sum += g[h[u][j]]; } g[h[u][choice]] = ((choice - hash_sum) % 3 + 3) % 3; visited[h[u][choice]] = true; } return 1; } int input() { n = 0; while(scanf("%s", key[n++]) != EOF); m = 1.3 * n; set<int> st; set<pair<int, pair<int, int> > > hole; for(int i = 0; i < n; i++) { h[i][0] = h0(key[i], m / 3); h[i][1] = h1(key[i], m / 3); h[i][2] = h2(key[i], m / 3); if(hole.find(MP(h[i][0], MP(h[i][1], h[i][2]))) != hole.end()) { return i; } else { hole.insert(MP(h[i][0], MP(h[i][1], h[i][2]))); } } return -1; } int validate() { for(int i = 0; i < n; i++) { printf("%d %s\n", h[i][(g[h[i][0]] + g[h[i][1]] + g[h[i][2]]) % 3], key[i]); } return 1; } int main() { freopen("pinyin.txt", "r", stdin); freopen("out", "w", stdout); fprintf(stderr, "%d\n", input()); fprintf(stderr, "%d\n", hypergraph_generate()); fprintf(stderr, "%d\n", validate()); return 0; } <file_sep>MPHF ==== minimum perfect hash function (BDZ algorithm) need to store g array and h0, h1, h3 functions every element in g is between [0, 3] so need two bits for a key, hash value = { i = (g[h0(key)] + g[h1(key)] + g[h2(key)]) % 3 return hi(key) }
c6f6a3d0c7d2ca651ac165e262aedf6b7dd695fa
[ "Markdown", "C++" ]
2
C++
LTzycLT/MPHF
8ead8444f5bcdc7de1f8530ac16fe398a269cfa9
a998dc3c8d124601a38d602ef05f21099aa9919e
refs/heads/master
<file_sep>print("hello insider!")
2fed49468f84ff56334aeddae1bad6f975952765
[ "Python" ]
1
Python
Tsukimisato/insider
75fa351b9b059cc0cc16785ce22f5d9c9992d8e5
19cfadbd1daabd567a1d384560670b6288a9b726
refs/heads/master
<repo_name>atozitkr/docker<file_sep>/jupyter_notebook_config.py # get the config object c = get_config() # Location for users notebooks c.JupyterHub.bind_url = 'http://127.0.0.1:8888' c.JupyterHub.hub_connect_ip = 'notebook' c.NotebookApp.base_project_url = '/notebook/' c.NotebookApp.base_url = '/notebook/' c.NotebookApp.trust_xheaders = True c.NotebookApp.webapp_settings = {'static_url_prefix': '/notebook/static/'} c.NotebookApp.token = '' c.NotebookApp.allow_origin = '*'
957d93bb1ce2c017e6c6b725b3c694a152d97367
[ "Python" ]
1
Python
atozitkr/docker
2aaf2ee73785751842ccfb8918b70ac66e5f61f1
72c7485ca33b07087104f016eb12995443ae2db8
refs/heads/master
<file_sep>json.extract! comment, :id, :remark, :created_at, :updated_at json.url comment_url(comment, format: :json)
4acac7259118c438f913dd0c5b62753b9d76e8fa
[ "Ruby" ]
1
Ruby
JasonKroll/dtester
c2a052bdf18dddf419b073cd872a104faf99cfed
65c34df8cae9859f7e61dd0f9f5d92c8eaaae0d9
refs/heads/main
<repo_name>er7santana/ios-core-data<file_sep>/README.md # PW CoreData App for iOS built with Xcode and Swift 5 with CRUD operation using CoreData. ### Features - CoreData - Alert with text field item<file_sep>/pw-coredata/Model/Item+Extensions.swift // // Item+Extensions.swift // pw-coredata // // Created by <NAME> on 02/11/20. // import Foundation import CoreData extension Item { public override func awakeFromInsert() { super.awakeFromInsert() id = UUID.init().uuidString creationDate = Date() } } <file_sep>/pw-coredata/Controller/ItemsViewController.swift // // ItemsViewController.swift // pw-coredata // // Created by <NAME> on 02/11/20. // import UIKit import CoreData class ItemsViewController : UITableViewController { var dataController: DataController! var fetchedResultsController: NSFetchedResultsController<Item>! override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) setupFetchedResultsController() if let indexPath = tableView.indexPathForSelectedRow { tableView.deselectRow(at: indexPath, animated: false) tableView.reloadRows(at: [indexPath], with: .fade) } } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) fetchedResultsController = nil } @IBAction func add() { presentNewItemAlert() } /// Display an alert prompting the user to name a new Item. Calls func presentNewItemAlert() { let alert = UIAlertController(title: "New Item", message: "Enter the text for this item", preferredStyle: .alert) // Create actions let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) let saveAction = UIAlertAction(title: "Save", style: .default) { [weak self] action in if let text = alert.textFields?.first?.text { self?.addItem(text: text) } } saveAction.isEnabled = false // Add a text field alert.addTextField { textField in textField.placeholder = "Text" NotificationCenter.default.addObserver(forName: UITextField.textDidChangeNotification, object: textField, queue: .main) { notif in if let text = textField.text, !text.isEmpty { saveAction.isEnabled = true } else { saveAction.isEnabled = false } } } alert.addAction(cancelAction) alert.addAction(saveAction) present(alert, animated: true, completion: nil) } func addItem(text: String) { let item = Item(context: dataController.viewContext) item.text = text try? dataController.save() } func deleteItem(at indexPath: IndexPath) { let itemToDelete = fetchedResultsController.object(at: indexPath) dataController.viewContext.delete(itemToDelete) try? dataController.viewContext.save() } func setupFetchedResultsController() { let fetchRequest: NSFetchRequest<Item> = Item.fetchRequest() let sortDescriptor = NSSortDescriptor(key: "creationDate", ascending: true) fetchRequest.sortDescriptors = [sortDescriptor] fetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: dataController.viewContext, sectionNameKeyPath: nil, cacheName: "items") fetchedResultsController.delegate = self do { try fetchedResultsController.performFetch() } catch { print("Something not cool just happened") } } //MARK: - Navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "EditItem" { if let item = sender as? Item, let editItemVC = segue.destination as? EditItemViewController { editItemVC.dataController = dataController editItemVC.item = item } } } } extension ItemsViewController: NSFetchedResultsControllerDelegate { func controllerWillChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) { tableView.beginUpdates() } func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) { tableView.endUpdates() } func controller(_ controller: NSFetchedResultsController<NSFetchRequestResult>, didChange anObject: Any, at indexPath: IndexPath?, for type: NSFetchedResultsChangeType, newIndexPath: IndexPath?) { switch type { case .insert: tableView.insertRows(at: [newIndexPath!], with: .fade) break case .delete: tableView.deleteRows(at: [indexPath!], with: .fade) break case .update: tableView.reloadRows(at: [indexPath!], with: .fade) case .move: tableView.moveRow(at: indexPath!, to: newIndexPath!) @unknown default: break } } } //MARK: - UITableViewDataSource extension ItemsViewController { override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return fetchedResultsController.sections?[section].numberOfObjects ?? 0 } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "ItemCell", for: indexPath) let item = fetchedResultsController.object(at: indexPath) cell.textLabel?.text = item.text return cell } override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { switch editingStyle { case .delete: deleteItem(at: indexPath) default: () } } } //MARK: - UITableViewDelegate extension ItemsViewController { override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let item = fetchedResultsController.object(at: indexPath) performSegue(withIdentifier: "EditItem", sender: item) } } <file_sep>/pw-coredata/Controller/EditItemViewController.swift // // EditItemViewController.swift // pw-coredata // // Created by <NAME> on 02/11/20. // import UIKit class EditItemViewController : UIViewController { @IBOutlet weak var itemTextField: UITextField! var dataController: DataController! var item: Item! override func viewDidLoad() { if item != nil { itemTextField.text = item.text } } @IBAction func save() { guard let text = itemTextField.text else { return } item.text = text try? dataController.viewContext.save() navigationController?.popViewController(animated: true) } }
5d24b619f02f731d6c2d6c9e7a0e5bb18fc7f184
[ "Markdown", "Swift" ]
4
Markdown
er7santana/ios-core-data
9d1469a3733b058ebba134e12764f7e61c38ee35
f9566d2013055d79dee0e934577615e4741522e9
refs/heads/main
<repo_name>Peyman2012/file-io<file_sep>/Talaee2.py last_week_of_month = input("Is it the last week of the mounth?(Answer like y/n) :") today = input("Enter day name: ") if last_week_of_month == 'y': if today == 'friday': print("Wear green clothes") else: print("Don't wear green clothes") else: if today == 'thursday': print("Wear green clothes") else: print("Don't wear green clothes") <file_sep>/755656.py from itertools import product , permutation letter=("A","B") print(list(product(letter,range(2)))) print(list(permutation(letter))) <file_sep>/Dastvarzi1.py # Main idea and code get from "https://www.geeksforgeeks.org/how-to-make-indian-flag-using-turtle-python/" from turtle import * speed(0) # configure starting point penup() goto(-400, 250) pendown() # green Rectangle color("ForestGreen") begin_fill() forward(800) right(90) forward(167) right(90) forward(800) end_fill() left(90) forward(167) # red Rectangle color("#db0000") begin_fill() forward(167) left(90) forward(800) left(90) forward(167) end_fill() # Allah logo at the center color("#db0000") ht() penup() goto(-35, -50) pendown() write("الله", font=("B Titr", 45, "normal")) # to hold the output window done() <file_sep>/t.py from random import * names = ['alborz','ardebil','bushehr','azarbaijan','esfahan','fars','gilan', 'golestan','hamadan','hormozgan','ilam','kerman','kermanshah', 'khuzestan','kordestan','lorestan','markazi','mazandaran','khorasan', 'qazvin','qom','semnan','sistan','tehran','yazd','zanjan'] n = randint(0,len(names)-1) name = names[n] charNumber = len(name) userList= ['-'] * charNumber print(name) print(userList) while userList.count("-") > 0 : guess = input(" guess a character: ") for i in range(charNumber): if guess == name[i] : userList[i] = guess print(userList) print( " :D - You Win - Congratulations")
719107e9133e77d94b4c5d9332928b4d8b1886df
[ "Python" ]
4
Python
Peyman2012/file-io
f45f117872c095552394bdac9ec98ff654454d62
776ca530fefc0a1a8d169cf6e58f7d76c73df41f
refs/heads/master
<repo_name>claire1028/React-common-components<file_sep>/src/scratch-lottery/index.js import React from 'react'; import './index.css'; const prizeData = ['未中奖', '一等奖', '二等奖', '三等奖', '四等奖', '五等奖', '六等奖']; export default class Scratch extends React.Component { canRef = null; state = {level: null}; ctx = null; md = false; init() { this.ctx = this.canRef.getContext('2d'); this.ctx.fillStyle = 'gray'; this.ctx.fillRect(0, 0, 300, 200); this.ctx.globalCompositeOperation = 'destination-out'; } getPrizeLevel = () => { const l = Math.floor(Math.random() * 7); this.setState({level: l}); }; scratchLottery = (e) => { if(this.md) { if(e.touches && e.touches[0]) { e = e.touches[0]; } const x = e.pageX - this.canRef.offsetLeft; const y = e.pageY - this.canRef.offsetTop; this.ctx.beginPath(); this.ctx.arc(x, y, 16, 0, Math.PI * 2, true); this.ctx.fill(); } }; start = () => { this.md = true; } end = () => { this.md = false; } componentDidMount() { this.init(); this.getPrizeLevel(); } render() { return ( <div className="scratch"> <div className="bg"> <div>{this.state.level > 0 ? `恭喜你!获得${prizeData[this.state.level]}` : '很遗憾,没有中奖'}</div> </div> <canvas id="canvas" ref={el => this.canRef = el} width={300} height={200} onTouchStart={this.start} onTouchMove={this.scratchLottery} onTouchEnd={this.end} onMouseDown={this.start} onMouseMove={this.scratchLottery} onMouseUp={this.end} > 对不起,你的浏览器不支持canvas,请升级 </canvas> </div> ) } }<file_sep>/src/rotate-lottery/index.js import React from 'react'; import './app.css'; const data = ['未中奖', '一等奖', '二等奖', '三等奖', '四等奖', '五等奖']; const lightArr = new Array(12).fill(0); const bgArr = new Array(6).fill(0); export default class Lottery extends React.Component { state = { rotateStyle: { transform: 'rotate(0deg)' } }; startDeg = 0; start = () => { const r = Math.floor(Math.random() * (data.length)); // or fetch from API to get which prize this.startDeg = this.startDeg - this.startDeg % 360 + 5 * 360 + (360 - 60 * r); this.setState({ rotateStyle: { transform: `rotate(${this.startDeg}deg)` } }); }; render() { return ( <div className="lottery-wrapper"> <div className="bg" style={this.state.rotateStyle}> <ul className={`background`}> { bgArr.map((v, i) => <li key={i} /> )} </ul> <ul className="gifts"> { data.map((v, i) => <li key={i}> {v} </li> )} </ul> </div> <div className="pointer" onClick={this.start}> <i>抽奖</i> <ul> {lightArr.map((v, i) => <li /> )} </ul> </div> </div> ) } }<file_sep>/src/components/Scroll.js import React, {useState, useEffect, useRef} from 'react'; import PropTypes from 'prop-types'; import {debounce} from '../util'; export default function Scroll(props) { const [count, setCount] = useState(0); const [totalCount, setTotalCount] = useState(0); const [data, setData] = useState([]); const param = useRef({ page: 0, size: 10 }); useEffect(() => { props.getData(param.current).then((tc) => { setTotalCount(tc.totalCount); setCount(tc.data.length); setData(tc.data); }); param.current.page++; }, []); const scrollDebunc = debounce(() => { if(window.innerHeight + window.pageYOffset >= document.body.scrollHeight) { if(count < totalCount) { props.getData(param.current).then((tc) => { const curCount = count + tc.data.length; setCount(curCount); setData(data.concat(tc.data)); }); param.current.page++; } } }); useEffect(() => { window.addEventListener('scroll', scrollDebunc, false); return () => { window.removeEventListener('scroll', scrollDebunc, false); }; }); return ( <div> {props.children(data)} {count >= totalCount ? '没有更多了': '上拉加载更多'} </div> ) }; Scroll.propTypes = { getData: PropTypes.func, };<file_sep>/src/mockData.js const mockData = { totalCount: 30, data: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30] }; export function getData({size, page}) { return new Promise((resolve, reject) => { setTimeout(() => { resolve({ totalCount: mockData.totalCount, data: mockData.data.slice(page*size, (page+1)*size) }); }, 200); }) }<file_sep>/README.md ### React use hooks execrise and some common components ### how to run : 1, yarn 2, yarn start <file_sep>/src/App.js import React from 'react'; import {useState, useEffect} from 'react'; import Dialog from './components/Dialog'; import Tabs, {Tab} from './components/Tabs'; import Scroll from './components/Scroll'; import Pager from './components/Pager'; import Loading from './components/Loading'; import VideoPlayer from './components/VideoPlayer'; import Lottery from './rotate-lottery'; import SquareLottery from './square-lottery'; import Scratch from './scratch-lottery'; import but from './images/but.jpg'; import {getData} from './mockData'; import './App.css'; function App() { const [isOpen, setOpen] = useState(false); const [data, setData] = useState([]); const open = () => { setOpen(true); }; const close = () => { setOpen(false); }; useEffect(() => { setData([{name: 1},{name: 2}]); },[]); return ( <div className="container"> <section> <h3>刮刮乐</h3> <Scratch /> </section> <section> <h3>九宫格抽奖</h3> <SquareLottery /> </section> <section> <h3>Lottery</h3> <Lottery /> </section> <section> <h3>Dialog</h3> <div> <button onClick={open}>open dialog </button> </div> <Dialog isOpen={isOpen} isModal={false} onClose={close}> <div className="con">this is a dialog</div> </Dialog> </section> <section> <h3>Tab</h3> <Tabs> <Tab title="tab1"> {data.map((el, i) => <div key={i}>{el.name}</div> )} </Tab> <Tab title="tab2"> <div className="dd">2222</div> <div>2222</div> </Tab> <Tab title="tab3"> <div>333</div> <div>333</div> </Tab> </Tabs> </section> <section> <h3>Pager</h3> <Pager getData={getData} onePageSize={5}> { data => ( data.length > 0 && data.map((v, index) => <div className="item" key={index}> {v} </div> ) ) } </Pager> </section> <section> <Loading /> </section> <section> <VideoPlayer src="https://s.dianrong.com/static/mp4/dianrong5zhounian.mp4" img={but} /> </section> <section> <h3>Scroll</h3> <Scroll getData={getData} > { data => ( data.length > 0 && data.map((v, index) => <div className="item" key={index}> {v} </div> ) ) } </Scroll> </section> </div> ); } export default App;<file_sep>/src/components/VideoPlayer.js import React from 'react'; import Loading from './Loading'; import {formatTime} from '../util'; import '../videoPlayer.css'; const CAN_PLAY = 'CAN_PLAY'; export default class VideoPlayer extends React.Component { constructor(props) { super(props); this.state = { isPlaying: false, showLayer: false, totalTime: null, currTime: 0, offsetWidth: 0, loading: false, }; this.videoRef = null; this.barRef = null; this.containerRef = null; this.tid = 0; this.startX = 0; this.barWidth = 0; this.status = null; this.preOffset = 0; this.touchStart = false; } componentDidMount() { this.videoRef.addEventListener('ended', this.playerEndListener, false); this.videoRef.addEventListener('durationchange', this.playerDurationListener, false); this.videoRef.addEventListener('timeupdate', this.timeUpdateListener, false); this.videoRef.addEventListener('canplay', this.canPlayListener, false); this.videoRef.addEventListener('webkitendfullscreen', this.exitFullScreen, false); this.barWidth = this.barRef && this.barRef.getBoundingClientRect().width; this.ch = this.containerRef.getBoundingClientRect().width * 0.5625; } componentWillUnmount() { this.videoRef.removeEventListener('ended', this.playerEndListener, false); this.videoRef.removeEventListener('durationchange', this.playerDurationListener, false); this.videoRef.removeEventListener('timeupdate', this.timeUpdateListener, false); this.videoRef.removeEventListener('canplay', this.canPlayListener, false); this.videoRef.removeEventListener('webkitendfullscreen', this.exitFullScreen, false); } playerDurationListener = () => { this.setState({totalTime: this.videoRef.duration}); }; playerEndListener = () => { this.setState({isPlaying: false, showLayer: false}); clearTimeout(this.tid); }; timeUpdateListener = () => { const vr = this.videoRef; let per = 0; if (vr.duration) { per = (vr.currentTime / vr.duration).toFixed(3); } this.setState({currTime: vr.currentTime, offsetWidth: this.barWidth * per}); }; moveStart = e => { this.startX = e.touches[0].clientX; this.touchStart = true; }; touchMove = e => { let offset = 0; if(this.touchStart) { offset = e.changedTouches[0].clientX - this.startX; this.preOffset = e.changedTouches[0].clientX; this.touchStart = false; } else { offset = e.changedTouches[0].clientX - this.preOffset; this.preOffset = e.changedTouches[0].clientX; } let x = this.state.offsetWidth + offset; if (x > this.barWidth) { x = this.barWidth; } else if (x < 0) { x = 0; } const per = (x / this.barWidth).toFixed(3); const t = (this.videoRef.currentTime = (this.state.totalTime * per).toFixed(0)); this.setState({currTime: t, offsetWidth: x}); }; popLayer = () => { clearTimeout(this.tid); if (this.state.isPlaying) { this.setState({showLayer: !this.state.showLayer}); this.tid = setTimeout(() => { this.setState({showLayer: !this.state.showLayer}); }, 1500); } else { return; } }; canPlayListener = () => { this.status = CAN_PLAY; this.setState({loading: false}); }; startPlay = () => { this.videoRef.play(); this.setState({isPlaying: true, showLayer: false}); if(this.status !== CAN_PLAY) { this.setState({loading: true}); } }; play = e => { e && e.stopPropagation(); this.startPlay(); }; pause = e => { e.stopPropagation(); this.videoRef.pause(); this.setState({isPlaying: false, showLayer: true}); clearTimeout(this.tid); }; exitFullScreen = () => { this.setState({isPlaying: false, showLayer: true}); }; fullScreen = (e) => { e.stopPropagation(); const v = this.videoRef; if(v.requestFullscreen) { v.requestFullscreen(); } else if(v.webkitEnterFullscreen) { v.webkitEnterFullscreen(); } else if(v.webkitRequestFullscreen) { v.webkitRequestFullscreen(); } else if(v.mozRequestFullScreen) { v.mozRequestFullScreen(); } else if(v.msRequestFullScreen) { v.msRequestFullScreen(); } }; render() { const {isPlaying, showLayer, currTime, totalTime, offsetWidth, loading} = this.state; const {img, src} = this.props; return ( <div className="video-container" onClick={this.popLayer} onTouchStart={this.moveStart} onTouchMove={this.touchMove} ref={(ref) => this.containerRef = ref} style={{height: this.ch}} > <video ref={videoRef => (this.videoRef = videoRef)} webkit-playsinline="true" playsInline="true" x-webkit-airplay="allow" x5-playsinline="true" poster={img} > <source src={src} type="video/mp4" /> 您的浏览器不支持Video </video> {loading ? ( <Loading /> ) : ( <React.Fragment> <div className={`layer ${isPlaying && !showLayer ? 'hide' : ''}`} /> <i className={`icon play ${isPlaying ? 'hide' : ''}`} onClick={this.play} /> <i className={`icon pause ${isPlaying && showLayer ? '' : 'hide'}`} onClick={this.pause} /> {totalTime > 0 && !isPlaying && !showLayer && <span className={`timer`}>{formatTime(totalTime)}</span>} <div className={`progress ${!showLayer ? 'low-index' : ''}`}> <span className="cur-time">{formatTime(currTime)}</span> <span className="bar" ref={barRef => (this.barRef = barRef)}> <span className="innerbar" style={{width: offsetWidth}} /> <i className="circle-icon" style={{left: offsetWidth}} /> </span> <span className="timer-pad">{formatTime(totalTime)}</span> <i className="fs" onClick={this.fullScreen} /> </div> </React.Fragment> )} </div> ); } } <file_sep>/src/components/Pager.js import React, {useState, useEffect, useRef} from 'react'; import PropTypes from 'prop-types'; const ENTER_KEY_CODE = 13; export default function Pager(props) { const s = props.onePageSize; const [list, setList] = useState([]); const [cnt, setCnt] = useState([]); let [pager, setPager] = useState(0); const firstRef = useRef(true); useEffect(()=> { props.getData({page: pager, size: s}).then((tc) => { if(firstRef.current) { const tp = []; for(let i=0; i<Math.ceil(tc.totalCount/s); i++) { tp.push(i); } setList(tp); } firstRef.current = false; setCnt(tc.data); }); }, [pager]); const gotoPager = (p) => { if(pager === p || p < 0 || p >= list.length) { return; } setPager(p); }; const gotoPrev = () => { const p = --pager; if(p < 0) { return; } setPager(p); }; const gotoNext = () => { const p = ++pager; if(p >= list.length) { return; } setPager(p); }; const jumpTo = (e) => { if (e.which === ENTER_KEY_CODE) { const page = Number(e.target.value); if(!isNaN(page)){ gotoPager(page); } } } return( <div> {props.children(cnt)} <i className="icon-pager" onClick={gotoPrev}>&lt;</i> <ul> { list.map((e, i) => <li key={i} onClick={() => gotoPager(e)} className={`page-item ${i===pager? 'active': ''}`} > {e} </li> ) } </ul> <i className="icon-pager" onClick={gotoNext}>&gt;</i> <input type="text" onKeyUp={jumpTo} className="jump-page" /> </div> ) } Pager.propTypes = { onePageSize: PropTypes.number, getData: PropTypes.func, }<file_sep>/src/components/Tabs.js import React from 'react'; import {useState, useEffect} from 'react'; import PropTypes from 'prop-types'; export default function Tabs(props) { const [activeId, setActiveid] = useState(0); const tabCts = []; const switchClick = (index) => { setActiveid(index); } return( <div className="tab-wrapper"> {React.Children.map(props.children, (el, index) => { tabCts.push(el.props.children); return React.cloneElement(el, {...el.props, id: index, switchClick: switchClick, className: index === activeId ? 'active' : '' }, el.props.children) })} <div className="tab-content"> { tabCts.map((el, index) => <div key={index} className={`cnt ${index === activeId ? 'active' : ''}`} > {el} </div> ) } </div> </div> ) } export function Tab(props) { return ( <div className={`header ${props.className}`} onClick={() => props.switchClick(props.id)} > {props.title} </div> ) } Tab.propTypes = { title: PropTypes.string, id: PropTypes.number, className: PropTypes.string }
a6c2645d5236d6fceab895d9a13f078864bc27e4
[ "JavaScript", "Markdown" ]
9
JavaScript
claire1028/React-common-components
59389a2d10c5dd9a6863594e395e7263ed990fe7
39d739cf1f26c8ce34e4f873d88c95055f647f0b
refs/heads/master
<repo_name>steveminnikin/SimplifiedDipsticksCalc<file_sep>/SimplifiedDipsticksCalc/Scripts/custom.js $(document).ready(function () { var count = 0; var Data = []; var retrievedData = []; $('a[data-toggle="tab"]').on('show.bs.tab', function (e) { sessionStorage.setItem('activeTab', $(e.target).attr('href')); }); var activeTab = sessionStorage.getItem('activeTab'); if (activeTab) { $('a[href="' + activeTab + '"]').tab('show'); } if (!sessionStorage.getItem("hasCodeRunBefore")) { sessionStorage.setItem("hasCodeRunBefore", true); } else { $('form input').each(function (i, e) { retrievedData = JSON.parse(sessionStorage.getItem('Data')); e.value = retrievedData[i].value; }); } $('.btnSubmit').click(function () { var Client = { Name: $('#Name').val(), Ref: $('#Ref').val(), Notes: $('#Notes').val(), Date: $('#Date').val(), TankRef: $('#tankRef').val(), OurRef: $('#ourRef').val() }; $('form input').each(function (i, e) { Data[i] = { id: e.id, value: e.value }; }); sessionStorage.setItem('Data', JSON.stringify(Data)); sessionStorage.setItem('Client', JSON.stringify(Client)); //set the post action on the tab form if ($('#horizDishEnds').hasClass('active')) { $('#submitForm').attr('action', '/HorizDishEnds/Calculate'); } if ($('#horizFlatEnds').hasClass('active')) { $('#submitForm').attr('action', '/HorizFlatEnds/Calculate'); } if ($('#rectangular').hasClass('active')) { $('#submitForm').attr('action', '/Rectangular/Calculate'); } if ($('#vertCyl').hasClass('active')) { $('#submitForm').attr('action', '/VertCyl/Calculate'); } if ($('#ellipt').hasClass('active')) { $('#submitForm').attr('action', '/Elliptical/Calculate'); } }); //btnSubmit.click $('#btnEdit').click(function () { if (isEven(count)) { document.body.contentEditable = true; } if (!isEven(count)) { document.body.contentEditable = false; } count += 1; }); $('#btnClient').click(function () { var retrievedClient = JSON.parse(sessionStorage.getItem('Client')); var $clientTitle = $('#clientTitle'); var $clientData = $('#clientData'); if (retrievedClient.Name) { $clientTitle.append($('<dt>Client<dt>')); $clientData.append($('<span>' + retrievedClient.Name + '<span><br />')); } if (retrievedClient.Ref) { $clientTitle.append($('<dt>Ref<dt>')); $clientData.append($('<span>' + retrievedClient.Ref + '<span><br />')); } if (retrievedClient.Notes) { $clientTitle.append($('<dt>Notes<dt>')); $clientData.append($('<span>' + retrievedClient.Notes + '<span><br />')); } $clientTitle.append($('<dt>Date<dt>')); $clientData.append($('<span>' + retrievedClient.Date + '<span><br />')); if (retrievedClient.TankRef) { $clientTitle.append($('<dt>Tank Ref<dt>')); $clientData.append($('<span>' + retrievedClient.TankRef + '<span><br />')); } if (retrievedClient.OurRef) { $clientTitle.append($('<dt>Chart No<dt>')); $clientData.append($('<span>' + retrievedClient.OurRef + '<span><br />')); } //Toggle display of the client info on the screen var $clientInfo = $('#clientInfo'); $clientInfo.toggleClass('visible-print'); }); var isEven = function (someNumber) { return someNumber % 2 === 0 ? true : false; }; $('#btnNote').click(function () { var myNote = prompt("Add a note to the chart", "Add 6mm to dip reading before using chart to allow for striker plate"); $('#chartNote').text(myNote); }); });
42491832051920904dd81ef0d36c530be6c41f92
[ "JavaScript" ]
1
JavaScript
steveminnikin/SimplifiedDipsticksCalc
5cc039a6f9b55e5626fb73037b8d9bdcdaf3a840
64ca5c49e9fb28f318c766a4016bf17bc2be56dc
refs/heads/main
<repo_name>Accessory/FlowGet<file_sep>/CMakeLists.txt cmake_minimum_required(VERSION 3.4) project(FlowGet) set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH}) set(CMAKE_CXX_STANDARD 20) include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(../Flow) include_directories(..) link_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(FlowGet main.cpp) set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_MULTITHREADED ON) find_package(Boost 1.66.0 COMPONENTS system filesystem REQUIRED) include_directories(${Boost_INCLUDE_DIRS}) target_link_libraries(FlowGet ${Boost_LIBRARIES}) find_package(OpenSSL REQUIRED) include_directories(${OPENSSL_INCLUDE_DIR}) target_link_libraries(FlowGet ${OPENSSL_LIBRARIES}) find_package(Threads) target_link_libraries(FlowGet ${CMAKE_THREAD_LIBS_INIT}) #target_link_libraries(FlowGet FlowHttp_Core) find_package(Brotli) target_link_libraries(FlowGet Brotli::brotlienc Brotli::brotlicommon) if (WIN32) target_link_libraries(FlowGet ws2_32) target_link_libraries(FlowGet wsock32) target_link_libraries(FlowGet bcrypt) endif () if (UNIX) install(TARGETS FlowGet RUNTIME DESTINATION bin LIBRARY DESTINATION lib INCLUDES DESTINATION include ) endif ()<file_sep>/README.md # FlowGet ## Introduction Http(s) Server that can list and serve files and folders. ## Explanation The server is meant to be used when a quick HTTP 1.1 GET is needed for a file transfer or to preview a html file in a browser. ## Dependencies The code was written with C++ 17 in mind and needs the following dependencies: - boost - FlowHttp - FlowUtils - OpenSSL - Brotli<file_sep>/main.cpp #include <string> #include <FlowUtils/FlowArgParser.h> #include <FlowHttp/Request.h> #include <thread> #include <FlowUtils/WorkerPool.h> #include <FlowHttp/routes/Router.h> #include <FlowHttp/routes/FileNotFound.h> #include <FlowHttp/routes/InfoRoute.h> #include <FlowHttp/routes/GetRoute.h> #include <FlowHttp/routes/GetBrotliRoute.h> #include <FlowHttp/routes/ValidateRoute.h> #include <FlowHttp/routes/IfModifiedSince.h> #include <FlowHttp/routes/ListFilesBack.h> #include <FlowHttp/FlowHttp3.h> #include <memory> #include <FlowHttp/util/ArgParserUtil.h> int main(int argc, char *argv[]) { FlowArgParser fap = ArgParserUtil::defaultArgParser();; fap.parse("localhost 1337 ."); fap.parse(argc, argv); std::string address = fap.getString("address"); std::string port = fap.getString("port"); std::string path = fap.getString("path"); FlowString::replaceAll(path, "\\", "/"); LOG_INFO << "Listening on: " << address << ":" << port; LOG_INFO << "Path: " << path; size_t threadCount = fap.hasOption("threads") ? std::stoul(fap.getString("threads"), nullptr, 10) : std::thread::hardware_concurrency() * 2; const std::string dh = fap.getString("dh"); const std::string key = fap.getString("key"); const std::string cert = fap.getString("cert"); Router router; router.addRoute(std::make_shared<InfoRoute>()); router.addRoute(std::make_shared<ValidateRoute>(std::set<std::string> ({"GET"}))); router.addRoute(std::make_shared<IfModifiedSince>(path)); router.addRoute(std::make_shared<GetBrotliRoute>(path)); router.addRoute(std::make_shared<GetRoute>(path)); router.addRoute(std::make_shared<ListFilesBack>(path)); router.addRoute(std::make_shared<FileNotFound>()); FlowHttp3 flowHttp (address, port, router, threadCount, dh, key, cert); flowHttp.Run(); return EXIT_SUCCESS; }
9bdb297f5460dde6a3208a4a7c2129a42d5efa34
[ "Markdown", "CMake", "C++" ]
3
CMake
Accessory/FlowGet
09f2185fbf4c90d0d2aea920b586050ddee96e4a
63deb1264de7d95d8469dae767521ebbe27c9cfc
refs/heads/master
<repo_name>TheOmalyst/cpp_algorithms<file_sep>/largest_count_element/max_element_count.cpp int get_max_count_element(vector<int> numbers) { int vector_len = numbers.size(); if (vector_len <= 0) return -1; sort(numbers); int max_count_element = numbers[0]; int max_count = 1; for (int i = 1, curr_element = numbers[0], count = 1; i < vector_len; ++i) { bool reset_curr_element = false; if (curr_element == numbers[i]) count++; else reset_curr_element = true; if (count > max_count) { max_count = count; max_count_element = curr_element; } if (reset_curr_element) { curr_element = numbers[i]; count = 1; } } return max_count_element; }
afa074583ce5445f3dec0dc59da91d8e8413b559
[ "C++" ]
1
C++
TheOmalyst/cpp_algorithms
57affc2c3a9097b5b3f896f8ea933ab78b5e5ce6
483dcb4842d3757111baf224138c005e7d9597cf
refs/heads/gh-pages
<file_sep>var p; function setup() { createCanvas(600, 400); p=createElement('p','your score will be here'); } var c1; var c2; function draw() { background(255,255,0); fill(255,0,0); ellipse(400,200,300,300); fill(0,255,0); c1 = mouseX+30*0.8509035; c2 = mouseY-30*0.8509035; ellipse(c1,c2,60,60); } var best_score = 1000; function mouseClicked(){ var score = floor(dist(400,200,c1,c2)*100); if (score<best_score){best_score=score} p.html("Your score is " + score +" and Your BEST score is " + best_score); } <file_sep># utopian-overlap a game
5d063abd0d32410987931674dcfa6c589e22e4e5
[ "JavaScript", "Markdown" ]
2
JavaScript
whackashoe/utopian-overlap
16d08ba487348d7ca713c5fb90f0c19963ca5e3b
d44795c79e67db2c3499cc1374d83ef7369f0892
refs/heads/master
<file_sep> data=input('Ingrese la cantidad de dolares: ') dolar=int(data)*3500 print('El costo en pesos es: ' + str(dolar)) <file_sep># TrainingPython # TrainingPython # TrainingPython
31f5b3fd394b3437fb48857ca4333e21dedd9ee6
[ "Markdown", "Python" ]
2
Python
pinillaalfonso/TrainingPython
91ec5b9f48f8fbbb741e56ccd642f7fab6650eda
749f99878350d2dac3dac41dc0c519b18debddd8
refs/heads/master
<repo_name>KongfuMan/ECommerce<file_sep>/client/src/components/Auth/Signin.js import React,{Component} from 'react'; import { Link, Redirect} from 'react-router-dom'; import { connect } from 'react-redux'; import * as actions from '../../actions/index'; class Signin extends Component { constructor(props) { super(props); this.state = { username: 'qwer', password: '123', role: 'customer', submitted: false }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { const{name, value} = event.target; //destructuring this.setState({[name]:value}); } async handleSubmit(event) { event.preventDefault(); this.setState({ submitted: true }); const { username, password, role } = this.state; if (username && password){ //send to action creator-->send to server-->get token-->save token to redux console.log("handleSubmit: " , this.state); await this.props.signin(username,password,role); if (!this.props.auth.isAuthenticated){ alert("sigin fail! Incorrect username or password"); } } } render() { const { username, password, submitted } = this.state; if (this.props.auth.isAuthenticated){ return( <Redirect to='/'/> ); } return ( <div className="container"> <h2 align="center">Signin</h2> <form name="form" onSubmit={this.handleSubmit}> <div className='form-group'> <label htmlFor="username">Username</label> <input type="text" className="form-control" name={'username'} value={username} onChange={this.handleChange}/> {submitted && !username && <div className="help-block red-text">Username is required</div> } </div> <div className='form-group'> <label htmlFor="password">Password</label> <input type="password" className="form-control" name={'password'} value={password} onChange={this.handleChange}/> {submitted && !password && <div className="help-block red-text">Password is required</div> } </div> <div className="form-group"> <button className="waves-effect waves-light btn-small" >Login <i className="material-icons right">send</i> </button> <Link to="/signup">Sign Up</Link> </div> </form> </div> ); } } //pass a state to props of Signin Component function mapStateToProps({auth}) { return { auth }; } export default connect(mapStateToProps,actions)(Signin);<file_sep>/client/src/actions/jwtHeader.js import {USER_TOKEN} from "./types"; export const getJwt = async ()=>{ const token = await localStorage.getItem(USER_TOKEN) || ''; const authStr = 'Bearer '.concat(token); return {headers:{'Authorization': authStr}}; //attach this jwt to each request }<file_sep>/client/src/components/Order.js import React, {Component} from 'react'; import {connect} from 'react-redux' import {SHOPPING_CART} from "../actions/types"; import {withRouter} from 'react-router-dom'; import * as actions from '../actions/index'; class Order extends Component{ constructor(props){ super(props); if (!this.props.auth.isAuthenticated){ const {history} = this.props; history.push('/signin'); } const cart = localStorage.getItem(SHOPPING_CART); if (cart){ const products = JSON.parse(cart); this.state = {products: products}; }else{ this.state = {products: []} } } componentDidMount() { this.props.fetchOrder(); } renderContent(){ } render(){ return( <div> <div > <a className="btn-large waves-effect waves-light">Order</a> </div> <div> <blockquote> Your Order History as Follows. </blockquote> </div> <div className="row"> <form className="col s12"> <div className="row"> <div className="input-field col s2"> <input disabled value="ORDER#" id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s2"> <input disabled value="Product#" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Amount" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Price" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Date" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <a className="waves-effect waves-teal btn-flat">Delete</a> </div> </div> <div className="row"> <div className="input-field col s2"> <input disabled value="ORDER#" id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s2"> <input disabled value="Product#" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Amount" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Price" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Date" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <a className="waves-effect waves-teal btn-flat">Delete</a> </div> </div> <div className="row"> <div className="input-field col s2"> <input disabled value="ORDER#" id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s2"> <input disabled value="Product#" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Amount" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Price" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Date" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <a className="waves-effect waves-teal btn-flat">Delete</a> </div> </div> <div className="row"> <div className="input-field col s2"> <input disabled value="ORDER#" id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s2"> <input disabled value="Product#" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Amount" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Price" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Date" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <a className="waves-effect waves-teal btn-flat">Delete</a> </div> </div> <div className="row"> <div className="input-field col s2"> <input disabled value="ORDER#" id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s2"> <input disabled value="Product#" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Amount" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Price" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Date" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <a className="waves-effect waves-teal btn-flat">Delete</a> </div> </div> <div className="row"> <div className="input-field col s2"> <input disabled value="ORDER#" id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s2"> <input disabled value="Product#" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Amount" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Price" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Date" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <a className="waves-effect waves-teal btn-flat">Delete</a> </div> </div> <div className="row"> <div className="input-field col s2"> <input disabled value="ORDER#" id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s2"> <input disabled value="Product#" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Amount" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Price" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <input disabled value="Date" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s2"> <a className="waves-effect waves-teal btn-flat">Delete</a> </div> </div> </form> </div> </div> ); } } const mapStateToProps = ({auth})=>{ return {auth : auth}; } export default connect(mapStateToProps,actions)(withRouter(Order));<file_sep>/shopping/src/main/java/com/ecommerce/shopping/Security/SecurityConstants.java package com.ecommerce.shopping.Security; public class SecurityConstants { public static final String SECRET = "SecretKeyToGenJWTs"; public static final long EXPIRATION_TIME = 864_000_000; // 10 days public static final String TOKEN_PREFIX = "Bearer "; public static final String HEADER_STRING = "Authorization"; public static final String SIGN_IN_URL = "user/login"; public static final String SIGN_UP_URL = "/signup"; public static final String TEST_WEBSOCKET = "/sendreminder"; public static final String GET_ALL_USERS = "/getallusers"; public static final String GET_VALID_REMINDERS = "/getvalidreminders"; public static final String GET_HISTORY_REMINDERS = "/gethistoryreminders"; public static final String EMPTY = ""; public static final String EMPTY_SLASH = "/"; public static final String AUTHEN = "user/authenticate"; public static final String GET_ALL_PATIENTS="doctor/getallpatients"; public static final String POST_DOCTOR_REMINDERS = "doctor/postreminders"; } <file_sep>/client/src/actions/products.js import {FETCH_PRODUCTS_SUCCESS, FETCH_PRODUCTS_REQUEST, FETCH_PRODUCTS_FAILURE} from "./types"; import {FETCH_ORDERS_REQUEST, FETCH_ORDERS_FAILURE, FETCH_ORDERS_SUCCESS,FETCH_A_PRODUCT} from "./types"; import {SEARCH_PRODUCTS} from './types'; import axios from "axios/index"; // import {getJwt} from './jwtHeader'; function fetchProductsRequest() { return { type: FETCH_PRODUCTS_REQUEST, payload: null } } function fetchProductsSucess(products) { return { type: FETCH_PRODUCTS_SUCCESS, payload: products.data } } function fetchProductsFail(error){ return { type: FETCH_PRODUCTS_FAILURE, payload: null, error: error } } export const fetchProducts = ()=> async (dispatch)=>{ dispatch(fetchProductsRequest()); try{ const products = await axios.get('/api/product/list'); dispatch(fetchProductsSucess(products)); }catch (error){ dispatch(fetchProductsFail(error)); } } export const fetchAProduct = (productId)=> async (dispatch)=>{ try{ const product = await axios.get('/api/product/one/'+productId); dispatch({type:FETCH_A_PRODUCT,payload:product.data}); }catch (error){ console.log(error); } } function fetchOrdersRequest(){ return { type: FETCH_ORDERS_REQUEST, payload:null } } function fetchOrdersSuccess(orders){ return { type: FETCH_ORDERS_SUCCESS, payload:orders.data } } function fetchOrdersFailure(error){ return { type: FETCH_ORDERS_FAILURE, payload:null, error:error } } export const fetchOrder = ()=> async (dispatch)=>{ dispatch(fetchOrdersRequest()); try{ const orders = await axios.get('/user/order'); dispatch(fetchOrdersSuccess(orders)) }catch(error){ dispatch(fetchOrdersFailure(error)); } } export const searchProducts =(input)=> async (dispatch)=>{ try{ const searchResult = await axios.get('/api/product/search/'+input); dispatch({type:SEARCH_PRODUCTS, payload:searchResult.data}); // console.log(searchResult.data); }catch (error){ // alert('Search product failed, try again'); console.log(error); } } <file_sep>/README.md # ECommerce Website This is a simple ecommerce web site ### Backend Tech Stack - Java/Spring - Mysql ### Frontend Tech Stack - React - Redux <file_sep>/client/src/components/Product/ProductList.js import React, {Component} from 'react'; import {connect} from 'react-redux' import {Link} from 'react-router-dom' import * as actions from '../../actions/products' class ProductList extends Component{ componentDidMount(){ this.props.fetchProducts(); } renderContent(){ return this.props.productList.map(prod=>{ console.log(prod); return( <div key={prod.productId} id="toggle-container" className="col s3 cards-container"> <div className="card small"> <div className="card-image waves-effect waves-block waves-light"> <img className="activator" src="https://images-na.ssl-images-amazon.com/images/I/719wKCjcGfL._SL1500_.jpg" alt=""/> </div> <div className="card-content"> <span className="card-title activator grey-text text-darken-3">{prod.name}<i className="material-icons mdi-navigation-more-vert right"></i></span> <p><Link to={'/productform/' + prod.productId}>Details</Link></p> </div> </div> </div> ); }) } render(){ return( <div> <div className="row"> <div className="col s12"> <img className="responsive-img" src="https://images-na.ssl-images-amazon.com/images/G/01/img18/events/cybermonday/gw/cmdw_gw_desktop_editorial_2300x646_v3._CB479800167_.jpg" alt=''/> {this.renderContent()} </div> </div> </div> ); } } const mapStateToProps = ({productList})=>{ return {productList} }; export default connect(mapStateToProps,actions)(ProductList); <file_sep>/client/src/components/Product/ProductForm.js //used for admin to add or edite product information import React, {Component} from 'react'; import {connect} from 'react-redux'; import * as actions from '../../actions' import {SHOPPING_CART} from "../../actions/types"; import {withRouter} from 'react-router-dom'; class ProductForm extends Component{ constructor(props) { super(props); this.state = { quantity: 1, }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } componentDidMount(){ const {productId} = this.props.match.params this.props.fetchAProduct(productId); } handleChange(event){ const {name, value} = event.target; this.setState({[name]:value}); } handleSubmit(event){ const {productForm} = this.props.productForm; let cartProduct = { product:productForm, quantity:this.state.quantity }; const id = productForm.productId; // this.props.addToShoppingCart(cartProduct,history); const cart = localStorage.getItem(SHOPPING_CART); // console.log(cart); if (cart===null){ const cartProducts = new Map(); cartProducts.set(id,cartProduct); localStorage.setItem(SHOPPING_CART, JSON.stringify([...cartProducts])); }else{ const cartProducts = new Map(JSON.parse(cart)); if (cartProducts.has(id)){ const curProduct = cartProducts.get(id); cartProduct.quantity = parseInt(cartProduct.quantity) + parseInt(curProduct.quantity); } cartProducts.set(id,cartProduct); localStorage.setItem(SHOPPING_CART, JSON.stringify([...cartProducts])); } console.log(localStorage.getItem(SHOPPING_CART)); const{history} = this.props; history.push('/shoppingcart'); } render(){ const {productForm} = this.props.productForm; const {quantity} = this.state; return( <div className="row"> <div className="col s4 "> <div className="card large"> <div className="card-image waves-effect waves-block waves-light"> <img className="activator" src="https://images-na.ssl-images-amazon.com/images/I/81Z7IM5RLeL._SL1500_.jpg" alt=''/> </div> <div className="card-content"> <span className="card-title activator grey-text text-darken-3">BestSellers<i className="material-icons mdi-navigation-more-vert right"></i></span> <p><a href="/">This is a link</a></p> </div> </div> </div> <div className="col s8 "> <div className="card large darken-1"> <div className="card-content black-text"> <span className="card-title"><b>{productForm.name}</b></span> <p><b>By {productForm.store}</b></p> <h6><b>Price:</b>{productForm.price}</h6> <h6><b>Inventory amount:</b>{productForm.amount}</h6> <div className="row"> <form className="col s12"> <div className="row"> <div className="input-field col s12"> <textarea id="textarea1" className="materialize-textarea" name={'quantity'} value={quantity} onChange={this.handleChange}></textarea> <label htmlFor="textarea1" ><b>Quantity</b></label> </div> <a className="waves-effect waves-light btn" onClick ={this.handleSubmit}>Add to Cart <i className="material-icons right" onClick={this.handleSubmit}>add_shopping_cart</i> </a> </div> </form> </div> </div> </div> </div> </div> ); } } const mapStatToProps = (productForm)=>{ return{productForm} } export default connect(mapStatToProps,actions)(withRouter(ProductForm));<file_sep>/shopping/src/main/java/com/ecommerce/shopping/Repositories/RoleRepository.java package com.ecommerce.shopping.Repositories; import com.ecommerce.shopping.Domain.Security.Role; import com.ecommerce.shopping.Domain.User; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; public interface RoleRepository extends CrudRepository<Role,Integer>{ public Role findByName(String rolename); public Role findByUsers(User user); @Query(value = "SELECT Role.* FROM User, Role WHERE " + "User.user_role_id = Role.role_id", nativeQuery = true) public Role findByUsername(String username); } <file_sep>/client/src/components/Header.js import React, {Component} from 'react'; import {connect} from 'react-redux'; import {Link} from 'react-router-dom' import * as actions from '../actions/index'; class Header extends Component{ constructor(props){ super(props); this.state = {input: ''}; this.handleChange = this.handleChange.bind(this); } handleChange(event){ const{name,value} = event.target; this.setState({[name]:value}); } renderContent(){ const{isAuthenticated} = this.props.auth; console.log('isAuthenticated',isAuthenticated); switch (isAuthenticated){ case true: return( <li key="1"><button className='link-button' onClick={this.props.signout}>Sign out</button></li> ); default: return ( <li key="1"><Link to="/signin">Sign In</Link></li> ); } } render(){ return( <nav> <div className="nav-wrapper blue-grey darken-4"> <Link to={'/'} className="brand-logo">EMart</Link> <ul className="right"> {this.renderContent()} </ul> <ul id="nav-mobile" className="right hide-on-med-and-down"> <li><Link to="/order">Order</Link></li> <li><Link to="/shoppingcart">Shopping Cart</Link></li> <li><Link to="/dashboard">My account</Link></li> </ul> </div> <div className="row"> <div className="input-field col s10"> <i className="material-icons prefix">zoom_in</i> <input id="icon_prefix" type="text" placeholder={'Click here to search'} className="validate" name='input' value={this.state.input} onChange={this.handleChange}/> </div> <div className="input-field col s2"> <Link to={'/searchresult/'+ this.state.input} className="waves-effect waves-light btn" >Search</Link> </div> </div> </nav> ); } } //pass a slice of state data to props const mapStateToProps = ({auth})=>{ return {auth : auth}; }; export default connect(mapStateToProps,actions)(Header); <file_sep>/client/src/components/Error/405.js // not authorized import React from 'react'; export const NotAuthorized = function () { return( <p>Access denied, not authorized</p> ); } <file_sep>/client/src/components/Product/ProductItem.js import React, {Component} from 'react'; class ProductItem extends Component{ render(){ return( <div className="container"> <blockquote> ProductItems </blockquote> <div className="row"> <div className="col s12 m7"> <div className="card"> <div className="card-image"> <img src="http://materializecss.com/images/office.jpg" alt=""/> <span className="card-title">Product name</span> </div> <div className="card-content"> <p>Here is the introduction of the product.</p> </div> <div className="card-action"> <a href="#">Link to the store</a> </div> </div> </div> <div className="row"> <div className="input-field col s6"> <input id="number" type="number" className="validate"/> <label htmlFor="number">Quantities</label> </div> </div> </div> <div className="row"> <form className="col s12"> <div className="row"> <div className="input-field col s12"> <input disabled value="This is a product" id="disabled" type="text" className="validate"/> <label htmlFor="disabled">Item</label> </div> </div> <div className="row"> <div className="input-field col s12"> <input disabled value="The name of the store" id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2">Shop Name</label> </div> </div> </form> <div className="row"> <form className="col s12"> <div className="row"> <div className="input-field col s6"> <input disabled value="The quantities of items in store" id="disabled3" type="text" className="validate"/> <label htmlFor="disabled3">Items left</label> </div> <div className="input-field col s6"> <input disabled value="The price of the product" id="disabled4" type="text" className="validate"/> <label htmlFor="disabled4">Price</label> </div> </div> </form> </div> <a className="waves-effect waves-light btn-large"><i className="material-icons left">cloud</i>Save to cart</a> </div> </div> ); } } export default ProductItem; <file_sep>/client/src/components/NewCustomer.js import React, {Component} from 'react'; class NewCustomer extends Component{ render(){ return( <div className="container"> <blockquote> Sign up to be a new customer. </blockquote> <div className="row"> <form className="col s12"> <div className="row"> <div className="input-field col s6"> <input placeholder="First Name" id="first_name" type="text" className="validate"/> <label htmlFor="first_name">First Name</label> </div> <div className="input-field col s6"> <input id="last_name" type="text" className="validate"/> <label htmlFor="last_name">Last Name</label> </div> </div> <div className="row"> <div className="input-field col s12"> <input id="userName" type="text" className="validate"/> <label htmlFor="userName">UserName</label> </div> </div> <div className="row"> <div className="input-field col s12"> <input id="password" type="<PASSWORD>" className="validate"/> <label htmlFor="password">Password</label> </div> </div> <div className="row"> <div className="input-field col s12"> <input id="email" type="email" className="validate"/> <label htmlFor="email">Email</label> </div> </div> <div className="row"> <div className="input-field col s12"> <input id="address" type="text" className="validate"/> <label htmlFor="address">Address</label> </div> </div> </form> <a className="waves-effect waves-light btn"><i className="material-icons left">cloud</i>Sign Up</a> </div> </div> ); } } export default NewCustomer;<file_sep>/shopping/src/main/java/com/ecommerce/shopping/Domain/Order.java package com.ecommerce.shopping.Domain; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import java.util.HashSet; import java.util.Set; @Entity @Table(name = "\"Order\"") public class Order { @Id @GeneratedValue( strategy= GenerationType.AUTO, generator="native" ) @GenericGenerator( name = "native", strategy = "native" ) @Column(name = "id") private int orderId; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "customer_id", nullable = false) private Customer customer; @ManyToOne @JoinColumn(name = "transaciont_id") private Transaction transaction; @OneToMany(mappedBy = "order") private Set<OrderProduct> orderProducts = new HashSet<>(); public int getOrderNum() { return orderId; } public void setOrderNum(int orderNum) { this.orderId = orderNum; } public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public Transaction getTransaction() { return transaction; } public void setTransaction(Transaction transaction) { this.transaction = transaction; } public Set<OrderProduct> getOrderProducts() { return orderProducts; } public void setOrderProducts(Set<OrderProduct> orderProducts) { this.orderProducts = orderProducts; } @Override public String toString() { return "Order{" + "orderNum=" + orderId + ", customer=" + customer + ", transaction=" + transaction + // ", orderProducts=" + orderProducts + '}'; } } <file_sep>/client/src/components/ShoppingCart.js import React, {Component} from 'react'; import {connect} from 'react-redux'; import {SHOPPING_CART} from "../actions/types"; import {Link} from 'react-router-dom'; class ShoppingCart extends Component{ constructor(props){ super(props); const cart = localStorage.getItem(SHOPPING_CART); if (cart){ const products = JSON.parse(cart); this.state = {products: products}; }else{ this.state = {products: []} } } handleDelete(prodId){ const{products} = this.state; const res = products.filter(prod=>{ const id = prod[0]; return id !== prodId }) this.setState({products:res}); localStorage.setItem(SHOPPING_CART, JSON.stringify([...new Map(res)])) } handlCheckout(){ // console.log(this.props); // const {history} = this.props; // history.push('/order'); } renderContent(){ const {products} = this.state; if (!products || products.length === 0){ return( <div> <h3 className='center'>You don't have any items in your cart</h3> </div> ); } return products.map(prod=>{ const id = prod[0]; const {product,quantity} = prod[1]; return ( <div className="row" key={id}> <div className="input-field col s3"> <input disabled value={product.name} id="disabled1" type="text" className="validate"/> <label htmlFor="disabled1"></label> </div> <div className="input-field col s3"> <input disabled value={product.price} id="disabled2" type="text" className="validate"/> <label htmlFor="disabled2"></label> </div> <div className="input-field col s3"> <input disabled id="Amount1" type="number" className="validate" value={quantity}/> <label htmlFor="Amount1"></label> </div> <div className="input-field col s3"> <a className="waves-effect waves-teal btn-flat" onClick={()=>this.handleDelete(id)}>Delete</a> </div> </div> ); }) } render(){ // console.log(this.props.shoppingCart); return( <div> <blockquote> Shopping Cart </blockquote> <div className="row"> <form className="col s12"> {this.renderContent()} </form> <Link to={'/order'} className="waves-effect waves-light btn left" onClick={this.handlCheckout}> <i className="material-icons right">attach_money</i>Checkout</Link> </div> </div> ); } } const mapStateToProps = ({shoppingCart})=>{ return{shoppingCart} } export default connect(mapStateToProps)(ShoppingCart); <file_sep>/client/src/components/SearchRes.js import React, {Component} from 'react'; import {connect} from 'react-redux' import {Link} from 'react-router-dom' import * as actions from '.././actions/index' class SearchRes extends Component{ componentDidMount(){ const {productName} = this.props.match.params this.props.searchProducts(productName); } renderContent(){ if (!this.props.searchResult || this.props.searchResult.length === 0){ return ( <div> <h2>No result found!</h2> </div> ); } return this.props.searchResult.map(prod=>{ return( <div key={prod.productId} id="toggle-container" className="col s3 cards-container"> <div className="card small"> <div className="card-image waves-effect waves-block waves-light"> <img className="activator" src="https://images-na.ssl-images-amazon.com/images/I/719wKCjcGfL._SL1500_.jpg" alt=''/> </div> <div className="card-content"> <span className="card-title activator grey-text text-darken-3">{prod.name}<i className="material-icons mdi-navigation-more-vert right"></i></span> <p><Link to={'/productform/' + prod.productId}>Details</Link></p> </div> </div> </div> ); }) } render(){ return( <div> <div className="row"> <div className="col s12"> <img className="responsive-img" src="https://images-na.ssl-images-amazon.com/images/G/01/img18/events/cybermonday/gw/cmdw_gw_desktop_editorial_2300x646_v3._CB479800167_.jpg" alt=''/> {this.renderContent()} </div> </div> </div> ); } } const mapStateToProps = ({searchResult})=>{ return {searchResult} }; export default connect(mapStateToProps,actions)(SearchRes); <file_sep>/shopping/src/main/java/com/ecommerce/shopping/Domain/Customer.java package com.ecommerce.shopping.Domain; import org.aspectj.weaver.ast.Or; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import java.util.HashSet; import java.util.Set; @Entity @Table(name = "Customer") public class Customer extends User{ @OneToMany(mappedBy = "customer",fetch = FetchType.LAZY) private Set<Transaction> transactions = new HashSet<Transaction>(); @OneToMany(mappedBy = "customer",fetch = FetchType.LAZY) private Set<Order> orders = new HashSet<Order>(); @Override public String toString() { return "Customer{} " + super.toString(); } public Set<Transaction> getTransactions() { return transactions; } public void setTransactions(Set<Transaction> transactions) { this.transactions = transactions; } public Set<Order> getOrders() { return orders; } public void setOrders(Set<Order> orders) { this.orders = orders; } } <file_sep>/shopping/src/main/java/com/ecommerce/shopping/Services/ProductService.java package com.ecommerce.shopping.Services; import com.ecommerce.shopping.Domain.Product; import com.ecommerce.shopping.Repositories.ProductRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; @Service public class ProductService { @Autowired ProductRepository productRepo; public List<Product> getAllProducts(){ return productRepo.findAll(); } public Product getOneProudct(int id){ return productRepo.findByProductId(id); } } <file_sep>/client/src/services/index.js // require('jwt-decode'); // // export const resolveJwt = (jwt)=>{ // const decoded = jw // }<file_sep>/shopping/src/main/java/com/ecommerce/shopping/Config/SecurityConfig.java package com.ecommerce.shopping.Config; import com.ecommerce.shopping.Security.JwtAuthenticationFilter; import com.ecommerce.shopping.Services.UserSecurityService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.BeanIds; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.WebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper; import org.springframework.security.core.authority.mapping.SimpleAuthorityMapper; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint; import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; import static com.ecommerce.shopping.Security.SecurityConstants.SIGN_IN_URL; @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Autowired private UserSecurityService userSecurityService; private static final String[] PUBLIC_MATCHERS = { "/api/product/list", "/api/product/one/**", "/api/product/search/**", "/user/signin", "/user/signup" }; @Autowired private PasswordEncoder passwordEncoder(){ return SecurityUtility.passwordEncoder(); } private LoginUrlAuthenticationEntryPoint createEntryPoint(){ LoginUrlAuthenticationEntryPoint entryPoint = new LoginUrlAuthenticationEntryPoint(SIGN_IN_URL); entryPoint.setUseForward(true); return entryPoint; } // map the role in security to role in database // @Bean // public GrantedAuthoritiesMapper authoritiesMapper(){ // SimpleAuthorityMapper authorityMapper = new SimpleAuthorityMapper(); // //every authority that comes out of databse will be converted // //into uppercase and then add a ROLE_ in front of it // authorityMapper.setConvertToUpperCase(true); // authorityMapper.setDefaultAuthority("USER"); // return authorityMapper; // } @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userSecurityService).passwordEncoder(passwordEncoder()); } // @Override // public void configure(WebSecurity web) throws Exception { // web.ignoring() // .antMatchers(PUBLIC_MATCHERS); // } @Override protected void configure(HttpSecurity http) throws Exception { JwtAuthenticationFilter customFilter = new JwtAuthenticationFilter(); http.addFilterBefore(customFilter,UsernamePasswordAuthenticationFilter.class); http.cors().disable().csrf().disable() .authorizeRequests() .antMatchers("/admin/**").hasAuthority("ADMIN") .antMatchers(PUBLIC_MATCHERS).permitAll() .anyRequest().authenticated(); // .and().logout().logoutUrl("/user/signout"); // .and().oauth2Login(); } // @Autowired // public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception{ // // use the database username and password to match the request username and password // auth.userDetailsService(userSecurityService).passwordEncoder(passwordEncoder()); // } @Bean(BeanIds.AUTHENTICATION_MANAGER) @Override public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); } } <file_sep>/client/src/components/Manager/AdminDashboard.js import React, {Component} from 'react'; // import {connect} from 'react-redux'; class AdminDashboard extends Component{ renderContent(){ } render(){ return( <div> AdminDashboard </div> ); } } export default AdminDashboard; <file_sep>/client/src/components/Error/404.js //page not found import React from 'react'; export const NotFound = function () { return( <p>Sorry, the page does not exist</p> ); } <file_sep>/client/src/actions/auth.js import axios from 'axios' import {USER_TOKEN} from './types' import {AUTH_REQUEST,AUTH_SUCESS,AUTH_FAILURE} from "./types"; import {SIGNIN_REQUEST, SIGNIN_SUCCESS, SIGNIN_FAILURE} from "./types"; import {SIGNUP_REQUEST, SIGNUP_SUCCESS, SIGNUP_FAILURE} from "./types"; import {SIGNOUT_REQUEST, SIGNOUT_SUCCESS, SIGNOUT_FAILURE} from "./types"; function authRequest() { return { type: AUTH_REQUEST, isFetching: true, isAuthenticated: false, } } function authReceive() { return { type: AUTH_SUCESS, isFetching: false, isAuthenticated: true, } } function authError() { return { type: AUTH_FAILURE, isFetching: false, isAuthenticated: false, } } //create a action function signinRequest() { return { type: SIGNIN_REQUEST, isFetching: true, isAuthenticated: false, } } function signinReceive() { return { type: SIGNIN_SUCCESS, isFetching: false, isAuthenticated: true, } } function signinError(error) { return { type: SIGNIN_FAILURE, isFetching: false, isAuthenticated: false, error:error } } function signupRequest() { return { type: SIGNUP_REQUEST, isFetching: true, isAuthenticated: false, } } function signupReceive() { return { type: SIGNUP_SUCCESS, isFetching: false, isAuthenticated: true, } } function signupError(error) { return { type: SIGNUP_FAILURE, isFetching: false, isAuthenticated: false, error: error } } function signoutRequest() { console.log('signoutRequest'); return { type: SIGNOUT_REQUEST, isFetching: true, isAuthenticated: true, } } function signoutReceive() { console.log('signoutReceive'); return { type: SIGNOUT_SUCCESS, isFetching: false, isAuthenticated: false, } } function signoutError(error) { return { type: SIGNOUT_FAILURE, isFetching: false, isAuthenticated: true, error: error } } async function getJwt(){ const token = await localStorage.getItem(USER_TOKEN) || ''; const authStr = 'Bearer '.concat(token); return {headers:{'Authorization': authStr}}; //attach this jwt to each request } //action creators export const authenticateUser = ()=> async (dispatch) => { // console.log("authenticateUser user action creator"); dispatch(authRequest()); try{ const jwtHeader = await getJwt(); await axios.get('/user/authenticate',jwtHeader); //dispatch(action) for each reducer, each reducer //will deal with the action based on their action.type dispatch(authReceive()); }catch (error){ // console.log('Authenticate error',error.response); dispatch(authError()); } }; export const signin = (username, password,role) => async (dispatch) => { const rolename = role.toString(); console.log("Signin action, signin data: ",{rolename:{'username':username, 'password':<PASSWORD>}}); dispatch(signinRequest()) try{ const user = await axios.post('/user/signin',{[role]:{'username':username, 'password':<PASSWORD>}}); if (user){ // console.log('user:', user); localStorage.setItem(USER_TOKEN, user.data); dispatch(signinReceive()); } }catch (error){ // console.log("Signin fails, error:" , error.response); dispatch(signinError(error)); } } export const signup = (signupForm) => async (dispatch) => { dispatch(signupRequest()); try{ // console.log(signupForm); const user = await axios.post('/user/signup',signupForm); localStorage.setItem(USER_TOKEN, user.data); dispatch(signupReceive()); }catch(error){ // console.log("Signup fails, error:" , error); dispatch(signupError(error)) } } export const signout = () => async (dispatch) => { dispatch(signoutRequest()); try{ // await axios.get('/user/signout'); localStorage.removeItem(USER_TOKEN); dispatch(signoutReceive()); }catch (error){ // console.log("Signout fails, error:" , error); dispatch(signoutError(error)); } } <file_sep>/shopping/src/main/java/com/ecommerce/shopping/Repositories/OrderProductRepository.java package com.ecommerce.shopping.Repositories; import com.ecommerce.shopping.Domain.OrderProduct; import com.ecommerce.shopping.Domain.OrderProductId; import org.springframework.data.repository.CrudRepository; public interface OrderProductRepository extends CrudRepository<OrderProduct, OrderProductId> { } <file_sep>/client/src/actions/cart.js import {ADD_TO_CART} from './types' export const addToShoppingCart = (cartProduct, history)=> async (dispatch)=>{ try{ dispatch({type:ADD_TO_CART, payload:cartProduct}) history.push('/ShoppingCart'); }catch(error){ console.log('Adding product to cart failed!'); } }<file_sep>/shopping/src/main/java/com/ecommerce/shopping/Controllers/Products.java package com.ecommerce.shopping.Controllers; import com.ecommerce.shopping.Domain.Product; import com.ecommerce.shopping.Services.ProductService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletResponse; import java.util.HashSet; import java.util.List; import java.util.Set; @RestController @RequestMapping(path = "/api/product") public class Products { @Autowired private ProductService productService; @GetMapping(path = "/list") public List<Product> getProductList(){ return productService.getAllProducts(); } @GetMapping(path = "/one/{id}") public Product getAProductDetail(@PathVariable("id")int id){ return productService.getOneProudct(id); } @GetMapping(path = "/search/{productName}") public Set<Product> searchProductsByName(@PathVariable("productName")String productName,HttpServletResponse response){ //implement search logic here response.setStatus(HttpServletResponse.SC_OK); Set<Product> products = new HashSet<>(); Product prod = new Product(); prod.setName("Cellphone"); prod.setPrice(15); prod.setAmount(15); prod.setProductId(11); products.add(prod); return products; } } <file_sep>/shopping/src/main/java/com/ecommerce/shopping/Domain/Store.java package com.ecommerce.shopping.Domain; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; @Entity @Table(name = "Store") public class Store { @Id @GeneratedValue( strategy= GenerationType.AUTO, generator="native" ) @GenericGenerator( name = "native", strategy = "native" ) @Column(name = "store_id") private int storeId; @Column(name = "name") private String name; @OneToOne(mappedBy = "store", fetch = FetchType.LAZY) @JoinColumn(name = "mgr_id",unique = true, nullable = false) private Manager mgr; public int getStoreId() { return storeId; } public void setStoreId(int storeId) { this.storeId = storeId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Manager getMgr() { return mgr; } public void setMgr(Manager mgr) { this.mgr = mgr; } @Override public String toString() { return "Store{" + "storeId=" + storeId + ", name='" + name + '\'' + ", mgr=" + mgr + '}'; } } <file_sep>/shopping/src/main/java/com/ecommerce/shopping/Domain/future_Extension/CustomerAddress.java //package com.ecommerce.shopping.Domain; // // // //public class CustomerAddress { //} <file_sep>/shopping/src/main/java/com/ecommerce/shopping/Domain/OrderProduct.java package com.ecommerce.shopping.Domain; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; @Entity @Table(name="Order_Product") public class OrderProduct { @EmbeddedId OrderProductId id = new OrderProductId(); @ManyToOne(fetch = FetchType.LAZY) @MapsId(value = "productId") private Product product; @ManyToOne(fetch = FetchType.LAZY) @MapsId(value = "orderId") //maps to the @EmbeddedId property name instead of column name private Order order; @Column(name = "product_amount") private int productAmount; public OrderProductId getId() { return id; } public void setId(OrderProductId id) { this.id = id; } public Product getProduct() { return product; } public void setProduct(Product product) { this.product = product; } public Order getOrder() { return order; } public void setOrder(Order order) { this.order = order; } public int getProductAmount() { return productAmount; } public void setProductAmount(int productAmount) { this.productAmount = productAmount; } @Override public String toString() { return "OrderProduct{" + "id=" + id + ", product=" + product + ", order=" + order + ", productAmount=" + productAmount + '}'; } } <file_sep>/client/src/actions/types.js export const USER_TOKEN = 'USER_TOKEN'; export const SHOPPING_CART = "SHOPPING_CART"; export const AUTH_REQUEST = 'AUTH_REQUEST'; export const AUTH_SUCESS = 'AUTH_SUCESS'; export const AUTH_FAILURE = 'AUTH_FAILURE'; export const SIGNIN_REQUEST = 'SIGNIN_REQUEST' export const SIGNIN_SUCCESS = 'SIGNIN_SUCCESS' export const SIGNIN_FAILURE = 'SIGNIN_FAILURE' export const SIGNUP_REQUEST = 'SIGNUP_REQUEST' export const SIGNUP_SUCCESS = 'SIGNUP_SUCCESS' export const SIGNUP_FAILURE = 'SIGNUP_FAILURE' export const SIGNOUT_REQUEST = 'SIGNOUT_REQUEST' export const SIGNOUT_SUCCESS = 'SIGNOUT_SUCCESS' export const SIGNOUT_FAILURE = 'SIGNOUT_FAILURE' export const FETCH_PRODUCTS_REQUEST = 'FETCH_PRODUCTS_REQUEST'; export const FETCH_PRODUCTS_SUCCESS = 'FETCH_PRODUCTS_SUCCESS'; export const FETCH_PRODUCTS_FAILURE = 'FETCH_PRODUCTS_FAILURE'; export const FETCH_ORDERS_REQUEST = 'FETCH_ORDERS_REQUEST'; export const FETCH_ORDERS_SUCCESS = 'FETCH_ORDERS_SUCCESS'; export const FETCH_ORDERS_FAILURE = 'FETCH_ORDERS_FAILURE'; export const FETCH_A_PRODUCT = 'FETCH_A_PRODUCT'; export const ADD_TO_CART = 'ADD_TO_CART'; export const SEARCH_PRODUCTS = 'SEARCH_PRODUCTS';<file_sep>/client/src/components/Payment.js import React, {Component} from 'react'; import {Link} from "react-router-dom"; class Payment extends Component{ render(){ return( <div> <br/> <br/> <br/> <Link to="/"><hr9><b>Your Order is being prepared! Click to return to Home Page</b></hr9></Link> <br/> <br/> </div> ); } } export default Payment;
72aa39946b30c7a9c6e112f51f4b816a56a5323a
[ "JavaScript", "Java", "Markdown" ]
31
JavaScript
KongfuMan/ECommerce
f865360d43b4739391149af3c6421bf450bbc453
2edaf29f1037bfcb58b7bcc7fb2293ae2bf479f0
refs/heads/master
<repo_name>simrin051/Simrin_Portfolio<file_sep>/src/app/details/details.component.ts import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-details', templateUrl: './details.component.html', styleUrls: ['./details.component.scss'] }) export class DetailsComponent implements OnInit { constructor() { } ngOnInit(): void { } gotoresume() { console.log("Inside on Go to Page2"); window.location.href='https://drive.google.com/file/d/13qBYhaBQ_0i009C1mkTLFoeWx5_BZX3Z/view?usp=sharing'; //use the external url here } } <file_sep>/src/app/experience/experience.component.ts import { Component, OnInit } from '@angular/core'; import { ResumeService } from '../resume.service'; @Component({ selector: 'app-experience', templateUrl: './experience.component.html', styleUrls: ['./experience.component.scss'] }) export class ExperienceComponent implements OnInit { resdata: any; headline : String; company: String; constructor(public resume : ResumeService) { } ngOnInit(): void { this.resume.getresume().subscribe(data =>{ console.log("Data Work"); // console.log(data.education[0].institution); this.resdata= data; }) } } <file_sep>/src/app/resume-model.model.ts export class resumeModel { basics: basicsModel; work : workModel; volunteer: volunteerModel; education: educationModel; awards: awardsModel; skills: skillModel; projects: projectModel; language: languageModel; interest: interestModel; } export class basicsModel { name: string; label: string; picture: string; email: string; phone: string; website: string; summary: string; location: locationModel; profiles: profileModel; education: educationModel; awards: awardsModel; publication: publicationModel; skills: skillModel; projects: projectModel; language: languageModel; interests: interestModel; reference: referenceModel; work : workModel[]; } export class locationModel { address: string; postalCode: string; city: string; countryCode: string; region: string; } export class profileModel { network: string; username: string; url : string; } export class workModel { company: string; position: string; website: string; startDate: string; endDate: string; summary: string; highlights: []; isCurrentRole: boolean; start: []; end:[]; } export class volunteerModel { organization: string; position: string; website:string; startDate: string; endDate: string; summary: string; highlights: []; } export class educationModel { institution: string; area: string; studyType: string; startDate: string; endDate: string; gpa: string; courses: []; } export class awardsModel { title: string; date: string; awarder: string; summary: string; } export class publicationModel { name: string; publisher: string; releaseDate: string; website: string; summary: string; } export class skillModel { name: string; level: string; keywords: []; } export class projectModel { name: string; description: string; url: string; highlights:[]; keywords:[]; roles:[]; startDate:string; endDate: string; entity:string; type: string; displayName: string; website: string; summary:string; primaryLanguage: string; languages: []; libraries: []; githubUrl: string; repositoryUrl: string; start: []; end: []; images: []; videos: []; } export class languageModel { language: string; fluency: string; } export class interestModel { name: string; keywords: []; } export class referenceModel { name: string; reference: string; } <file_sep>/src/app/resume.service.ts import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { retry, catchError } from 'rxjs/operators'; import { Observable } from 'rxjs/internal/Observable'; import { throwError } from 'rxjs/internal/observable/throwError'; import { resumeModel } from './resume-model.model'; @Injectable({ providedIn: 'root' }) export class ResumeService { url="https://gitconnected.com/v1/portfolio/simrin051"; constructor(private http: HttpClient) { const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) } } getresume(): Observable<resumeModel> { return this.http.get<resumeModel>(this.url) .pipe( retry(1), catchError(error => { return throwError( 'Did not resume details' ); })) } }
5f25ba33f448be328193dabf3085ce32c619392c
[ "TypeScript" ]
4
TypeScript
simrin051/Simrin_Portfolio
58eab6bb2399ff06abe45a451f74b63411d908ff
5f6117875576976ccbb5518838dcaddbdfc21d18
refs/heads/master
<repo_name>liubo777/template<file_sep>/spring-boot-shiro-app/src/main/java/com/wiscess/shiroapp/webapp/TestAction.java package com.wiscess.shiroapp.webapp; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; /** * Created by liuBo * 2017/5/11. */ @Controller @ResponseBody public class TestAction { @RequestMapping("/test") public Object doTest(){ return "access success"; } }
3ceb69e05cc9594b4ecae0aa8cbd6cbfeeca59fd
[ "Java" ]
1
Java
liubo777/template
37227c43c10781d36123bbda14c445113c4ff9bf
e96f17ce797489d57a040b7d56307772a3b20ce9
refs/heads/master
<file_sep>E2Lib.RegisterExtension("hob",true) -- makes the extension, true to load by defualt --Putting this here should make a global table to store all beams on the server? local HBeamTable = {} --push to ServerSideTable local void function PushToSST(Changes) --loop for every change table for I = 0 , #Changes do --make sure the beam being changed is valid if not Changes[I]["ownerE2"]==nil or Changes[I]["index"]==nil then --i have checked to make sure it is a valid beam, now i just have to put the new information in the global tabl for Key,Value in pairs(Changes[I]) do -- Global Table e2SpecificTable IndexedBeamTable Var HBeamTable[self.entity()][Changes[I]["index"]][Key] =Changes[I][Key] end end end end e2function void createHBeam(index, vector startPos, vector endPos, width, string material, textureScale, vector4 color) --queue the information for the client somehow local Table2 = {} Table2["ownerE2"]=self.entity() Table2["index"]=index Table2["startPos"]=Vector(startPos[1],startPos[2],startPos[3]) Table2["endPos"]=Vector(endPos[1],endPos[2],endPos[3]) Table2["width"]=width Table2["material"]=material Table2["textureScale"]=textureScale Table2["color"]=Color(color[1],color[2],color[3],color[4]) self.data.Queue[#self.data.Queue+1]=Table2 self.data.Pending = true end e2function void setHBeamPos(index, vector startPos, vector endPos) local Table2 = {} Table2["ownerE2"]=self.entity() Table2["index"]=index Table2["startPos"]=Vector(startPos[1],startPos[2],startPos[3]) Table2["endPos"] = Vector(endPos[1],endPos[2],endPos[3]) self.data.Queue[#self.data.Queue+1]=Table2 self.data.Pending = true end -------------------------------------------------------- -- Callbacks -------------------------------------------------------- --Creates a net message and then sends it -- i assume that both this code is actually ran and also that it only needs to be run once -- i could have a grave mis-understanding of how net messages work... util.AddNetworkString("HobNetMsg") --gets the queue of information to be sent to the client, puts it in HobNetMsg and sends it --probably... local function NetMessage(self) net.Start("HobNetMsg") net.WriteTable(self.data.Queue) net.Broadcast() end registerCallback("postexecute",function(self) if(self.data.Pending) then NetMessage(self) self.data.Pending = false self.data.Queue = {} end end) registerCallback("construct",function(self) self.data.Queue = {} --the table of all the things to be sent self.data.Pending = false -- Set to true whenever new information is added to the table queue end)<file_sep>--adds entries to the helper --createHBeam(index, vector startPos, vector endPos, width, string material, textureScale, vector4 color) E2Helper.Descriptions["createHBeam(nvvnsnxv4)"] = "Creates a beam using the drawBeam function, made by hobnob :D" --setHBeamPos(index, vector startPos, vector endPos) E2Helper.Descriptions["setHBeamPos(nvv)"] = "Sets the position of the Hob Beam! " local HBeamTable = {} --now I need to somehow "hook" myself onto my own net message net.Receive("HobNetMsg", function(len) local Queue = {} Queue = net.ReadTable() for I = 1 , #Queue do local index = Queue[I]["index"] for Key , Value in pairs(Queue[I]) do HBeamTable[index][Key] = Value end end end) hook.Add("PreDrawTranslucentRenderables","HobBeamHook",function() if #HBeamTable>0 then for I = 1 , #HBeamTable do local Vec1 = HBeamTable[I]["startPos"] local Vec2 = HBeamTable[I]["endPos"] local Num1 = HBeamTable[I]["width"] local Str1 = HBeamTable[I]["material"] local Num2 = HBeamTable[I]["textureScale"] local Col1 = HBeamTable[I]["color"] local Beam = Material( Str1 ) render.SetMaterial( Beam ) render.DrawBeam( Vec1 , Vec2 , Num1, Num2, Num2, Col1 ) end end end)
805cadc6d6297eb4c7b95b554ba8138afdcee3bb
[ "Lua" ]
2
Lua
NinjrKillr/HobBeam
e4d91b4febe22d854b7b8365421bc1e699cf7bd2
c281a2eecdb6ebaedc07576702803c1a9184d4d6
refs/heads/main
<file_sep>using System; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class Menu : Form { // Criar instancia de serviços WCF_Soap_Services.AluguerClient aluguerClient = new WCF_Soap_Services.AluguerClient(); //Objeto Pessoa que mantem os dados do utilizador que fez login Pessoa preservaUtilizador; public Menu() { InitializeComponent(); } /// <summary> /// //Construtor que recebe objeto Pessoa como parametro /// </summary> /// <param name="utilizador"></param> public Menu(Pessoa utilizador) : this() { this.preservaUtilizador = utilizador; } private void Menu_Load(object sender, EventArgs e) { label1.Text = "Bem vindo " + this.preservaUtilizador.primeiro_nome + ""; } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { VerAlugueres novoVeralugueres = new VerAlugueres(this.preservaUtilizador); this.Hide(); novoVeralugueres.ShowDialog(); this.Close(); } private void listView1_SelectedIndexChanged(object sender, EventArgs e) { } private void listView1_SelectedIndexChanged_1(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { Aluguer novoAluguer = new Aluguer(this.preservaUtilizador); this.Hide(); novoAluguer.ShowDialog(); this.Close(); } private void button3_Click(object sender, EventArgs e) { Application.Exit(); } private void button4_Click(object sender, EventArgs e) { ModAluguer novomodAluguer = new ModAluguer(this.preservaUtilizador); this.Hide(); novomodAluguer.ShowDialog(); this.Close(); } private void button5_Click(object sender, EventArgs e) { EliAluguer novoEliAluguer = new EliAluguer(this.preservaUtilizador); this.Hide(); novoEliAluguer.ShowDialog(); this.Close(); } private void button6_Click(object sender, EventArgs e) { Login novoLogin = new Login(); this.Hide(); novoLogin.ShowDialog(); this.Close(); } } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * * Desc: A pasta de Controllers contem todos os controladores dos modelos * */ using Microsoft.AspNetCore.Mvc; using RestAPI.Model; namespace RestAPI.Controllers { [ApiController] [Route("api/veiculos")] /// <summary> /// Controller para "Veiculo" /// </summary> public class VeiculoController : ControllerBase { Veiculo v = new Veiculo(); #region Serviços Rest // Serviço GET para buscar todas as marcas na API externa [HttpGet("GetMarcas")] public Marcas SearchMarcasAPI() { return v.SearchBrandAPI(); } // Serviço GET para a busca de dados de modelos de uma certa marca na API externa [HttpGet("GetModelos/{marca}")] public Veiculos SearchAPI(string marca) { return v.SearchModelsAPI(marca); } #endregion } } <file_sep>using Newtonsoft.Json; using System; using System.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Web; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class GerePessoas : Form { // Inicializar instancia de RootPessoa para receber informaçao do metodo getPessoas RootPessoa listPessoas = new RootPessoa(); public GerePessoas() { InitializeComponent(); } private void GerePessoas_Load(object sender, EventArgs e) { string url = "https://speedwayrentalapi-apim.azure-api.net/api/pessoas/getPessoas"; HttpClient client = new HttpClient(); client.BaseAddress = new Uri(url); //Prepara Pedido HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest; //Faz pedido e analisa resposta using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { if (response.StatusCode != HttpStatusCode.OK) { string message = String.Format("GET falhou. Recebido HTTP {0}", response.StatusCode); throw new ApplicationException(message); } StreamReader reader = new StreamReader(response.GetResponseStream()); listPessoas = JsonConvert.DeserializeObject<RootPessoa>(reader.ReadToEnd()); foreach (Pessoa pessoa in listPessoas.Pessoa) { ListViewItem item = new ListViewItem(pessoa.id_pessoa.ToString()); item.SubItems.Add(pessoa.primeiro_nome); item.SubItems.Add(pessoa.ultimo_nome); item.SubItems.Add(pessoa.password_pessoa); item.SubItems.Add(pessoa.email_pessoa); listView1.Items.Add(item); } } } private void button1_Click(object sender, EventArgs e) { Login novoLogin = new Login(); this.Hide(); novoLogin.ShowDialog(); this.Close(); } private void label3_Click(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox3.Text) || string.IsNullOrEmpty(textBox4.Text) || string.IsNullOrEmpty(textBox5.Text) || string.IsNullOrEmpty(textBox6.Text)) { MessageBox.Show("Um ou mais campos não foram preenchidos."); } else { string url = "https://speedwayrentalapi-apim.azure-api.net/api/pessoas/updatePessoa"; HttpClient client = new HttpClient(); client.BaseAddress = new Uri(url); Pessoa pessoa = new Pessoa(); pessoa.id_pessoa = int.Parse(textBox1.Text); pessoa.primeiro_nome = textBox3.Text; pessoa.ultimo_nome = textBox4.Text; pessoa.email_pessoa = textBox6.Text; pessoa.password_pessoa = <PASSWORD>; var pessoaJson = JsonConvert.SerializeObject(pessoa); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var stringContent = new StringContent(pessoaJson, Encoding.UTF8, "application/json"); //Prepara Pedido //HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest; using (client) { var res = client.PutAsync(url, stringContent); if (res.Result.StatusCode == HttpStatusCode.OK) { MessageBox.Show("Pessoa Atualizada!"); } else if (res.Result.StatusCode == HttpStatusCode.NotFound) { MessageBox.Show("Essa pessoa não foi encontrada"); } else MessageBox.Show("Processo não foi concluido"); } } } private void button3_Click(object sender, EventArgs e) { string url = "https://speedwayrentalapi-apim.azure-api.net/api/pessoas/deletePessoa/[EMAIL]"; // Construção da uri StringBuilder uri = new StringBuilder(); uri.Append(url); uri.Replace("[EMAIL]", HttpUtility.UrlEncode(textBox2.Text)); HttpClient client = new HttpClient(); client.BaseAddress = new Uri(uri.ToString()); using (client) { var res = client.DeleteAsync(uri.ToString()); if (res.Result.StatusCode == HttpStatusCode.OK) { MessageBox.Show("Pessoa Atualizada!"); } else if (res.Result.StatusCode == HttpStatusCode.NotFound) { MessageBox.Show("Essa pessoa não foi encontrada"); } else MessageBox.Show("Processo não foi concluido"); } } } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * * Desc: A pasta de Models contem todas as classes modelo que contem as propriedades das mesmas como tambem metodos a ser chamados como serviços nos seus respetivos controladores * */ using Newtonsoft.Json; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; namespace RestAPI.Model { /// <summary> /// Classe que gere todos os dados e metodos de uma pessoa /// </summary> public class Pessoa { // String usada para iniciar a conexao com a base de dados //string connect = "Data Source=DESKTOP-5R50HVU;Initial Catalog=&quot;Car Rental&quot;;Persist Security Info=True;User ID=sa;password_pessoa=123"; string connectionString = "Server=speedwayrental.database.windows.net;Database=Car Rental;User Id = admn; password=<PASSWORD>; Trusted_Connection=False; Encrypt=True;"; #region Propriedades public int ID_Pessoa { get; set; } public string Primeiro_Nome { get; set; } public string Ultimo_Nome { get; set; } public string password_pessoa { get; set; } public string email_pessoa { get; set; } #endregion #region Metodos /// <summary> /// Metodo que recebe objeto "Pessoa" e adiciona na base de dados /// </summary> /// <param name="pessoanova"></param> /// <returns></returns> public bool InserePessoaObjDB(Pessoa pessoanova) { SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { //Conexao falhou connection.Close(); return false; } if (connection.State.ToString() == "Open") { //Verificar se a pessoa ja existe if (ExistePessoa(pessoanova.email_pessoa) == false) { //Construçao da query... string comando; comando = "Insert into pessoa (primeiro_nome, ultimo_nome, password_pessoa, email_pessoa) values(@primeiro_nome, @ultimo_nome, @password, @email);"; SqlCommand cmdins = new SqlCommand(comando, connection); cmdins.Parameters.AddWithValue("@primeiro_nome", pessoanova.Primeiro_Nome); cmdins.Parameters.AddWithValue("@ultimo_nome", pessoanova.Ultimo_Nome); cmdins.Parameters.AddWithValue("@password", <PASSWORD>); cmdins.Parameters.AddWithValue("@email", pessoanova.email_pessoa); //Executa a query int res = cmdins.ExecuteNonQuery(); if (res > 0) { connection.Close(); return true; } else return false; } else return false; } else return false; } /// <summary> /// Metodo que devolve todas as pessoa registadas na BD /// </summary> /// <returns></returns> public ListPessoas GetPessoas() { ListPessoas listPessoas = new ListPessoas(); DataSet ds = new DataSet(); SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { //Conexao falhou connection.Close(); return null; } if (connection.State.ToString() == "Open") { //Construçao da query SqlCommand cmdins = new SqlCommand(); string comando; cmdins.Connection = connection; comando = "SELECT * FROM pessoa"; cmdins.CommandText = comando; SqlDataAdapter da = new SqlDataAdapter(cmdins.CommandText, connection); da.Fill(ds, "Pessoa"); var json = JsonConvert.SerializeObject(ds); listPessoas = JsonConvert.DeserializeObject<ListPessoas>(json); connection.Close(); return listPessoas; } else return null; } /// <summary> /// Verifica se uma pessoa existe na base de dados /// </summary> /// <param name="email"></param> /// <returns></returns> public bool ExistePessoa(string email) { DataTable dataTable = new DataTable(); SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { connection.Close(); return false; } if (connection.State.ToString() == "Open") { string comando = "SELECT * from pessoa WHERE email_pessoa = @email;"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@email", email); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dataTable); if (dataTable.Rows.Count == 1) { return true; } else return false; } else return false; } /// <summary> /// Metodo que procura /// </summary> /// <param name="email"></param> /// <param name="password"></param> /// <returns></returns> public Pessoa Login(string email, string password) { DataTable dataTable = new DataTable(); Pessoa pessoa = new Pessoa(); SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { connection.Close(); return null; } if (connection.State.ToString() == "Open") { string comando = "SELECT id_pessoa, primeiro_nome, ultimo_nome, password_pessoa, email_pessoa from pessoa WHERE email_pessoa = @email and password_pessoa = @<PASSWORD>"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@email", email); cmd.Parameters.AddWithValue("@password", password); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dataTable); if (dataTable.Rows.Count != 0) { pessoa.ID_Pessoa = int.Parse(dataTable.Rows[0]["id_pessoa"].ToString()); pessoa.Primeiro_Nome = dataTable.Rows[0]["primeiro_nome"].ToString(); pessoa.Ultimo_Nome = dataTable.Rows[0]["ultimo_nome"].ToString(); pessoa.password_pessoa = dataTable.Rows[0]["password_pessoa"].ToString(); pessoa.email_pessoa = dataTable.Rows[0]["email_pessoa"].ToString(); return pessoa; } else return null; } else return null; } /// <summary> /// Faz update de dados de uma pessoa usando um objeto pessoa /// </summary> /// <param name="pessoaUpdate"></param> /// <returns></returns> public bool UpdatePessoaObj(Pessoa pessoaUpdate) { SqlConnection connection = new SqlConnection(connectionString); //Tenta verificar se a conexao é efetuada sem problema try { connection.Open(); } catch { //Conexao falhou connection.Close(); return false; } if (connection.State.ToString() == "Open") { //Construçao da query string comando; comando = "UPDATE pessoa SET primeiro_nome = @primeiro_nome, ultimo_nome = @ultimo_nome, password_pessoa = <PASSWORD>, email_pessoa = @email WHERE id_pessoa = @idpessoa"; SqlCommand cmdins = new SqlCommand(comando, connection); cmdins.Parameters.AddWithValue("@primeiro_nome", pessoaUpdate.Primeiro_Nome); cmdins.Parameters.AddWithValue("@ultimo_nome", pessoaUpdate.Ultimo_Nome); cmdins.Parameters.AddWithValue("@password", <PASSWORD>.<PASSWORD>); cmdins.Parameters.AddWithValue("@email", pessoaUpdate.email_pessoa); cmdins.Parameters.AddWithValue("@idpessoa", pessoaUpdate.ID_Pessoa); int res = cmdins.ExecuteNonQuery(); if (res > 0) { connection.Close(); return true; } else return false; } else return false; } /// <summary> /// Metodo para eliminar uma pessoa dos registos da base de dados /// </summary> /// <param name="email"></param> /// <returns></returns> public bool DeletePessoa(string email) { SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { //Conexao falhou connection.Close(); return false; } if (connection.State.ToString() == "Open") { //Construçao da query string comando; comando = "DELETE FROM pessoa WHERE email_pessoa = @email;"; SqlCommand cmdins = new SqlCommand(comando, connection); cmdins.Parameters.AddWithValue("@email", email); int res = cmdins.ExecuteNonQuery(); if (res > 0) { connection.Close(); return true; } else return false; } else return false; } public int WowCoolSoma(int a, int b) { return a + b; } #endregion } public class ListPessoas { public List<Pessoa> Pessoa { get; set; } } } <file_sep>using Newtonsoft.Json; using System; using System.IO; using System.Net; using System.Text; using System.Web; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class Login : Form { Pessoa novaPessoa = new Pessoa(); public Login() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox2.Text)) { MessageBox.Show("Um ou mais campos não foram preenchidos."); } else { string url = "https://speedwayrentalapi-apim.azure-api.net/api/pessoas/Login/[EMAIL]/[PASSWORD]"; // Construção da uri StringBuilder uri = new StringBuilder(); uri.Append(url); uri.Replace("[EMAIL]", HttpUtility.UrlEncode(textBox1.Text)); uri.Replace("[PASSWORD]", HttpUtility.UrlEncode(textBox2.Text)); //Prepara Pedido HttpWebRequest request = WebRequest.Create(uri.ToString()) as HttpWebRequest; //Faz pedido e analisa resposta using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { if (response.StatusCode != HttpStatusCode.OK) { MessageBox.Show("Os dados introduzidos estão incorretos"); } else if (response.StatusCode == HttpStatusCode.OK) { //Recebe dados do utilizador como json StreamReader reader = new StreamReader(response.GetResponseStream()); string jsonBruto = reader.ReadToEnd(); // Deserializa json para um objeto Pessoa novaPessoa = JsonConvert.DeserializeObject<Pessoa>(jsonBruto); MessageBox.Show("Login Efetuado com Sucesso"); Menu novoMenu = new Menu(novaPessoa); this.Hide(); novoMenu.ShowDialog(); this.Close(); } } } } private void Login_Load(object sender, EventArgs e) { } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { Registo novoRegisto = new Registo(); this.Hide(); novoRegisto.ShowDialog(); this.Close(); } private void button3_Click(object sender, EventArgs e) { GerePessoas gerePessoas = new GerePessoas(); this.Hide(); gerePessoas.ShowDialog(); this.Close(); } } } <file_sep>using Newtonsoft.Json; using System; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class Registo : Form { public Registo() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox2.Text) || string.IsNullOrEmpty(textBox3.Text) || string.IsNullOrEmpty(textBox4.Text) || string.IsNullOrEmpty(textBox5.Text)) { MessageBox.Show("Um ou mais campos não foram preenchidos."); } else { //Adiciona novo registo na base de dados string novourl = "https://speedwayrentalapi-apim.azure-api.net/api/pessoas/inserePessoa"; HttpClient client = new HttpClient(); client.BaseAddress = new Uri(novourl); Pessoa pessoa = new Pessoa(); pessoa.primeiro_nome = textBox1.Text; pessoa.ultimo_nome = textBox2.Text; pessoa.email_pessoa = textBox3.Text; pessoa.password_pessoa = <PASSWORD>; var pessoaJson = JsonConvert.SerializeObject(pessoa); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var stringContent = new StringContent(pessoaJson, Encoding.UTF8, "application/json"); //Prepara Pedido using (client) { var res = client.PostAsync(novourl, stringContent); if (res.Result.StatusCode.Equals(HttpStatusCode.OK)) { MessageBox.Show("Pessoa Adicionada!"); Login login = new Login(); this.Hide(); login.ShowDialog(); this.Close(); } else if (res.Result.StatusCode.Equals(HttpStatusCode.NotAcceptable)) { MessageBox.Show("Este utilizador ja existe"); } } } } private void textBox3_TextChanged(object sender, EventArgs e) { } private void textBox5_TextChanged(object sender, EventArgs e) { } private void Registo_Load(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { Login novoLogin = new Login(); this.Hide(); novoLogin.ShowDialog(); this.Close(); } } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * * Desc: A pasta de Models contem todas as classes modelo que contem as propriedades das mesmas como tambem metodos a ser chamados como serviços nos seus respetivos controladores * */ using Newtonsoft.Json; using RestSharp; using System.Collections.Generic; using System.Text; using System.Web; namespace RestAPI.Model { /// <summary> /// Classe veiculo define todas a propriedades atribuidas a um veiculo como também os seus metodos /// </summary> public class Veiculo { #region METODOS /// <summary> /// Metodo que pesquisa uma certa marca na API externa e mostra todos o /// </summary> /// <param name="marca"></param> /// <returns></returns> public Veiculos SearchModelsAPI(string marca) { // String com url template para a pesquisa de modelos de uma marca na API string url = "https://cis-automotive.p.rapidapi.com/getModels?brandName=[MARCA]"; // Construção da uri StringBuilder uri = new StringBuilder(); uri.Append(url); uri.Replace("[MARCA]", HttpUtility.UrlEncode(marca)); // Realização de um "request" à API externa var client = new RestClient(uri.ToString()); var request = new RestRequest(Method.GET); request.AddHeader("x-rapidapi-key", "<KEY>"); request.AddHeader("x-rapidapi-host", "cis-automotive.p.rapidapi.com"); IRestResponse response = client.Execute(request); // Faz a desserialização dos dados em Json para um objeto Veiculos listveiculos = JsonConvert.DeserializeObject<Veiculos>(response.Content); return listveiculos; } /// <summary> /// Metodo que retorna lista de modelos de uma marca em forma de objeto veiculos /// </summary> /// <param name="marca"></param> /// <returns></returns> public Veiculos SearchModelsAPIObj(string marca) { // String com url template para a pesquisa de modelos de uma marca na API string url = "https://cis-automotive.p.rapidapi.com/getModels?brandName=[MARCA]"; // Construção da uri StringBuilder uri = new StringBuilder(); uri.Append(url); uri.Replace("[MARCA]", HttpUtility.UrlEncode(marca)); // Realização de um "request" à API externa var client = new RestClient(uri.ToString()); var request = new RestRequest(Method.GET); request.AddHeader("x-rapidapi-key", "<KEY>"); request.AddHeader("x-rapidapi-host", "cis-automotive.p.rapidapi.com"); IRestResponse response = client.Execute(request); // Faz a desserialização dos dados em Json para um objeto Veiculos listveiculos = JsonConvert.DeserializeObject<Veiculos>(response.Content); return listveiculos; } /// <summary> /// Metodo que retorna todas as marcas de carros na API externa /// </summary> /// <returns></returns> public Marcas SearchBrandAPI() { var client = new RestClient("https://cis-automotive.p.rapidapi.com/getBrands"); var request = new RestRequest(Method.GET); request.AddHeader("x-rapidapi-key", "<KEY>"); request.AddHeader("x-rapidapi-host", "cis-automotive.p.rapidapi.com"); IRestResponse response = client.Execute(request); // Faz a desserialização dos dados em Json para um objeto Marcas listveiculos = JsonConvert.DeserializeObject<Marcas>(response.Content); return listveiculos; } #endregion } /// <summary> /// Classe que recebe dados sobre o nome da marca do carro pesquisado /// </summary> public class Veiculos { public string brandName { get; set; } public object modelName { get; set; } public object regionName { get; set; } public object condition { get; set; } public object msg { get; set; } public int cacheTimeLimit { get; set; } public List<Modelos> data { get; set; } } /// <summary> /// Classe que contem os modelos de marcas de carros /// </summary> public class Modelos { public string modelName { get; set; } } /// <summary> /// Classe que contem dados de marcas de carros retirados da API externa /// </summary> public class Marcas { public object brandName { get; set; } public object modelName { get; set; } public object regionName { get; set; } public object condition { get; set; } public object msg { get; set; } public int cacheTimeLimit { get; set; } public List<string> data { get; set; } } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * * */ using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; public class Aluguer : IAluguer { /// <summary> /// Metodo que adiciona um registo de aluguer usando o email da pessoa para identificar /// </summary> /// <param name="email"></param> /// <param name="marca"></param> /// <param name="modelo"></param> /// <returns></returns> public bool AddAluguer(string email, string marca, string modelo, DateTime dataIn, DateTime dataOut) { //Faz conexão à base de dados utilizando a connection string adicionada no web.config SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["AzureCarRentalConnectionString"].ConnectionString); try { connection.Open(); } catch { //Conexao falhou connection.Close(); return false; } if (connection.State.ToString() == "Open") { //Construção da query string comando; comando = "Insert into aluguer (id_pessoa, nome_modelo, nome_marca, data_inicio, data_final) values((select id_pessoa from pessoa where email_pessoa = @email), @nomeMarca, @nomeModelo, @dataIn, @dataOut);"; SqlCommand cmdins = new SqlCommand(comando, connection); cmdins.Parameters.AddWithValue("@email", email); cmdins.Parameters.AddWithValue("@nomeMarca", marca); cmdins.Parameters.AddWithValue("@nomeModelo", modelo); cmdins.Parameters.AddWithValue("@dataIn", dataIn); cmdins.Parameters.AddWithValue("@dataOut", dataOut); int res = cmdins.ExecuteNonQuery(); if (res > 0) { return true; } else return false; } return false; } /// <summary> /// Metodo que retorna todos os alugueres atribuidos a uma pessoa /// </summary> /// <param name="email"></param> /// <returns></returns> public string ProcuraAlugueres(string email) { //Faz conexão à base de dados utilizando a connection string adicionada no web.config SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["AzureCarRentalConnectionString"].ConnectionString); try { connection.Open(); } catch { connection.Close(); return null; } if (connection.State.ToString() == "Open") { //Construção da query string comando = "SELECT aluguer.id_aluguer ,pessoa.primeiro_nome, pessoa.ultimo_nome,pessoa.email_pessoa ,aluguer.nome_marca, aluguer.nome_modelo, aluguer.data_inicio, aluguer.data_final from aluguer INNER JOIN pessoa on aluguer.id_pessoa = pessoa.id_pessoa where pessoa.email_pessoa = @email;"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@email", email); cmd.ExecuteNonQuery(); DataSet dataSet = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dataSet, "Alugueres"); string json = JsonConvert.SerializeObject(dataSet); connection.Close(); return json; } else return null; } /// <summary> /// Metodo que atualiza um aluguer com informaçoes novas /// </summary> /// <param name="id_aluguer"></param> /// <param name="nome_marca"></param> /// <param name="nome_modelo"></param> /// <param name="datain"></param> /// <param name="dataout"></param> /// <returns></returns> public bool UpdateAluguer(int id_aluguer, string nome_marca, string nome_modelo, DateTime datain, DateTime dataout) { //Faz conexão à base de dados utilizando a connection string adicionada no web.config SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["AzureCarRentalConnectionString"].ConnectionString); try { connection.Open(); } catch { connection.Close(); return false; } if (connection.State.ToString() == "Open") { //Construção da query string comando = "Update aluguer SET nome_modelo = @nomemarca, nome_marca = @nomemodelo, data_inicio = @datain , data_final = @dataout WHERE id_aluguer = @idaluguer"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@nomemarca", nome_marca); cmd.Parameters.AddWithValue("@nomemodelo", nome_modelo); cmd.Parameters.AddWithValue("@datain", datain); cmd.Parameters.AddWithValue("@dataout", dataout); cmd.Parameters.AddWithValue("@idaluguer", id_aluguer); int tot = cmd.ExecuteNonQuery(); if (tot == 1) { return true; } else { return false; } } else return false; } /// <summary> /// Metodo que Elimina um Aluguer da base de dados /// </summary> /// <param name="id_aluguer"></param> /// <returns></returns> public bool EliminaAluguer(int id_aluguer) { //Faz conexão à base de dados utilizando a connection string adicionada no web.config SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["AzureCarRentalConnectionString"].ConnectionString); try { connection.Open(); } catch { connection.Close(); return false; } if (connection.State.ToString() == "Open") { //Construção da query string comando = "DELETE FROM aluguer WHERE id_aluguer = @idaluguer;"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@idaluguer", id_aluguer); int tot = cmd.ExecuteNonQuery(); if (tot == 1) { return true; } else { return false; } } else return false; } } //Classes teste public class Alugueres { public string primeiro_nome { get; set; } public string ultimo_nome { get; set; } public string nome_marca { get; set; } public string nome_modelo { get; set; } public DateTime data_inicio { get; set; } public DateTime data_final { get; set; } } public class AluguerList { public List<Alugueres> Table { get; set; } } <file_sep>using Newtonsoft.Json; using System; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class EliAluguer : Form { // Criar instancia de serviços WCF_SOAP_Services_CloudVersion.AluguerClient aluguerClient = new WCF_SOAP_Services_CloudVersion.AluguerClient(); //Objeto Pessoa que mantem os dados do utilizador que fez login Pessoa preservaUtilizador; public EliAluguer() { InitializeComponent(); } /// <summary> /// //Construtor que recebe objeto Pessoa como parametro /// </summary> /// <param name="utilizador"></param> public EliAluguer(Pessoa utilizador) : this() { this.preservaUtilizador = utilizador; } private void EliAluguer_Load(object sender, EventArgs e) { //Recebe string json que contem todos os alugueres pertencentes a uma pessoa retornada de um metodo soap string jsonBruto = aluguerClient.ProcuraAlugueres(this.preservaUtilizador.email_pessoa); label1.Text = "Alugueres de " + this.preservaUtilizador.primeiro_nome + " " + this.preservaUtilizador.ultimo_nome + ""; //Deserialização dos dados json para um objeto Root para colocar na listview Root listAluguer = JsonConvert.DeserializeObject<Root>(jsonBruto); foreach (Alugueres alugueres in listAluguer.Alugueres) { ListViewItem item = new ListViewItem(alugueres.id_aluguer.ToString()); item.SubItems.Add(alugueres.primeiro_nome); item.SubItems.Add(alugueres.ultimo_nome); item.SubItems.Add(alugueres.nome_modelo); item.SubItems.Add(alugueres.nome_marca); item.SubItems.Add(alugueres.data_inicio.ToString()); item.SubItems.Add(alugueres.data_final.ToString()); listView1.Items.Add(item); } } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text)) { MessageBox.Show("Um ou mais campos não foram preenchidos."); } else { try { if (aluguerClient.EliminaAluguer(int.Parse(textBox1.Text)) == true) { MessageBox.Show("Aluguer Eliminado com Successo"); } else MessageBox.Show("O Processo não foi concluido"); } catch { MessageBox.Show("Formato invalido inserido"); } } } private void button2_Click(object sender, EventArgs e) { Menu novoMenu = new Menu(this.preservaUtilizador); this.Hide(); novoMenu.ShowDialog(); this.Close(); } } } <file_sep>using Newtonsoft.Json; using System; using System.IO; using System.Net; using System.Runtime.Serialization.Json; using System.Text; using System.Web; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class ModAluguer : Form { // Criar instancia de serviços WCF_SOAP_Services_CloudVersion.AluguerClient aluguerClient = new WCF_SOAP_Services_CloudVersion.AluguerClient(); //Objeto Pessoa que mantem os dados do utilizador que fez login Pessoa preservaUtilizador; public ModAluguer() { InitializeComponent(); } /// <summary> /// //Construtor que recebe objeto RootPessoa como parametro /// </summary> /// <param name="utilizador"></param> public ModAluguer(Pessoa utilizador) : this() { this.preservaUtilizador = utilizador; } private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { } private void ModAluguer_Load(object sender, EventArgs e) { string url = "https://speedwayrentalapi-apim.azure-api.net/api/veiculos/GetMarcas"; //Prepara Pedido HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest; //Faz pedido e analisa resposta using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { if (response.StatusCode != HttpStatusCode.OK) { string message = String.Format("GET falhou. Recebido HTTP {0}", response.StatusCode); throw new ApplicationException(message); } StreamReader reader = new StreamReader(response.GetResponseStream()); DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(Marcas)); Marcas marcas = (Marcas)jsonSerializer.ReadObject(response.GetResponseStream()); foreach (string marca in marcas.data) { comboBox1.Items.Add(marca); } } //Recebe string json que contem todos os alugueres pertencentes a uma pessoa retornada de um metodo soap string jsonBruto = aluguerClient.ProcuraAlugueres(this.preservaUtilizador.email_pessoa); label1.Text = "Alugueres de " + this.preservaUtilizador.primeiro_nome + " " + this.preservaUtilizador.ultimo_nome + ""; //Deserialização dos dados json para um objeto Root para colocar na listview Root listAluguer = JsonConvert.DeserializeObject<Root>(jsonBruto); foreach (Alugueres alugueres in listAluguer.Alugueres) { ListViewItem item = new ListViewItem(alugueres.id_aluguer.ToString()); item.SubItems.Add(alugueres.primeiro_nome); item.SubItems.Add(alugueres.ultimo_nome); item.SubItems.Add(alugueres.nome_modelo); item.SubItems.Add(alugueres.nome_marca); item.SubItems.Add(alugueres.data_inicio.ToString()); item.SubItems.Add(alugueres.data_final.ToString()); listView1.Items.Add(item); } } private void listView1_SelectedIndexChanged(object sender, EventArgs e) { } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { string url = "https://speedwayrentalapi-apim.azure-api.net/api/veiculos/GetModelos/[MARCA]"; comboBox2.Items.Clear(); comboBox2.Text = null; // Construção da uri StringBuilder uri = new StringBuilder(); uri.Append(url); uri.Replace("[MARCA]", HttpUtility.UrlEncode(comboBox1.Text)); uri.Replace("+", "%20"); //Prepara Pedido HttpWebRequest request = WebRequest.Create(uri.ToString()) as HttpWebRequest; //Faz pedido e analisa resposta using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { if (response.StatusCode != HttpStatusCode.OK) { string message = String.Format("GET falhou. Recebido HTTP {0}", response.StatusCode); throw new ApplicationException(message); } StreamReader reader = new StreamReader(response.GetResponseStream()); DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(Modelos)); Modelos veiculos = (Modelos)jsonSerializer.ReadObject(response.GetResponseStream()); foreach (Datum nomeModelo in veiculos.data) { comboBox2.Items.Add(nomeModelo.modelName); } } } private void button2_Click(object sender, EventArgs e) { Menu novoMenu = new Menu(this.preservaUtilizador); this.Hide(); novoMenu.ShowDialog(); this.Close(); } private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBox1.Text) || string.IsNullOrEmpty(comboBox2.Text) || string.IsNullOrEmpty(textBox1.Text)) { MessageBox.Show("Um ou mais campos não foram preenchidos."); } else { try { if (aluguerClient.UpdateAluguer(int.Parse(textBox1.Text), comboBox1.Text, comboBox2.Text, dateTimePicker1.Value, dateTimePicker2.Value) == true) { MessageBox.Show("Aluguer Eliminado com Successo"); } else MessageBox.Show("O Processo não foi concluido"); } catch { MessageBox.Show("Formato ID inserido é invalido"); } } } } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * */ using System; using System.ServiceModel; using System.Web.Services; [ServiceContract] public interface IAluguer { /// <summary> /// Metodo que adiciona um aluguer /// </summary> /// <param name="email"></param> /// <param name="marca"></param> /// <param name="modelo"></param> /// <param name="dataIn"></param> /// <param name="dataOut"></param> /// <returns></returns> [OperationContract] bool AddAluguer(string email, string marca, string modelo, DateTime dataIn, DateTime dataOut); /// <summary> /// Metodo que devolve lista de alugueres /// </summary> /// <param name="email"></param> /// <returns></returns> [OperationContract] string ProcuraAlugueres(string email); /// <summary> /// Metodo que faz atualização de dados de um aluguer /// </summary> /// <param name="id_aluguer"></param> /// <param name="nome_marca"></param> /// <param name="nome_modelo"></param> /// <param name="datain"></param> /// <param name="dataout"></param> /// <returns></returns> [OperationContract] bool UpdateAluguer(int id_aluguer, string nome_marca, string nome_modelo, DateTime datain, DateTime dataout); /// <summary> /// Metodo que elimina uma aluguer /// </summary> /// <param name="id_aluguer"></param> /// <returns></returns> [OperationContract] bool EliminaAluguer(int id_aluguer); } <file_sep>using Newtonsoft.Json; using System; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class VerAlugueres : Form { // Criar instancia de serviços //WCF_Soap_Services.AluguerClient aluguerClient = new WCF_Soap_Services.AluguerClient(); WCF_SOAP_Services_CloudVersion.AluguerClient aluguerClient = new WCF_SOAP_Services_CloudVersion.AluguerClient(); //Objeto Pessoa que mantem os dados do utilizador que fez login Pessoa preservaUtilizador; public VerAlugueres() { InitializeComponent(); } /// <summary> /// //Construtor que recebe objeto Pessoa como parametro /// </summary> /// <param name="utilizador"></param> public VerAlugueres(Pessoa utilizador) : this() { this.preservaUtilizador = utilizador; } private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { } private void VerAlugueres_Load(object sender, EventArgs e) { //Recebe string json que contem todos os alugueres pertencentes a uma pessoa retornada de um metodo soap string jsonBruto = aluguerClient.ProcuraAlugueres(this.preservaUtilizador.email_pessoa); label1.Text = "Alugueres de " + this.preservaUtilizador.primeiro_nome + " " + this.preservaUtilizador.ultimo_nome + ""; //Deserialização dos dados json para um objeto Root para colocar na listview Root listAluguer = JsonConvert.DeserializeObject<Root>(jsonBruto); foreach (Alugueres alugueres in listAluguer.Alugueres) { ListViewItem item = new ListViewItem(alugueres.id_aluguer.ToString()); item.SubItems.Add(alugueres.primeiro_nome); item.SubItems.Add(alugueres.ultimo_nome); item.SubItems.Add(alugueres.nome_modelo); item.SubItems.Add(alugueres.nome_marca); item.SubItems.Add(alugueres.data_inicio.ToString()); item.SubItems.Add(alugueres.data_final.ToString()); listView1.Items.Add(item); } } private void button1_Click(object sender, EventArgs e) { Menu novoMenu = new Menu(this.preservaUtilizador); this.Hide(); novoMenu.ShowDialog(); this.Close(); } } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * * Desc: A pasta de Controllers contem todos os controladores dos modelos * */ using Microsoft.AspNetCore.Mvc; using RestAPI.Model; namespace RestAPI.Controllers { [ApiController] [Route("api/pessoas")] /// <summary> /// Controller para "Pessoa" /// </summary> public class PessoaController : Controller { Pessoa pessoa = new Pessoa(); #region Serviços REST /// <summary> /// Metodo POST que insere dados de uma pessoa na base de dados /// </summary> /// <param name="primeiro_nome"></param> /// <param name="ultimo_nome"></param> /// <param name="password"></param> /// <param name="email"></param> /// <returns></returns> [HttpPost("inserePessoa")] public ActionResult InserePessoaObjDB(Pessoa pessoaNova) { if (pessoa.InserePessoaObjDB(pessoaNova) == true) { return Ok(); //Retorna Codigo 200 visto que foi executado com sucesso } else return new StatusCodeResult(406); //Status code 406: Not Acceptable } /// <summary> /// Metodo GET que vai buscar todos as pessoas registadas à base de dados /// </summary> /// <returns></returns> [HttpGet("getPessoas")] public ActionResult<ListPessoas> GetPessoas() { ListPessoas listPessoas = new ListPessoas(); listPessoas = pessoa.GetPessoas(); if (listPessoas == null) { return NotFound(); // Retorna Codigo 404 visto que nao foi encontrada uma lista de pessoas } else return listPessoas; } /// <summary> /// Metodo GET que, utilizando um email e password verifica a existencia de um utilizador e devolve os seus dados /// </summary> /// <param name="email"></param> /// <param name="password"></param> /// <returns></returns> [HttpGet("Login/{email}/{password}")] public ActionResult<Pessoa> Login(string email, string password) { pessoa = pessoa.Login(email, password); if (pessoa == null) { return NotFound(); // Retorna Codigo 404 visto que nao foi encontrada uma pessoa } else return pessoa; } /// <summary> /// Metodo GET que verifica se existe uma pessoa na base de dados /// </summary> /// <param name="email"></param> /// <returns></returns> [HttpGet("ExistePessoa/{email}")] public ActionResult ExistePessoa(string email) { if (pessoa.ExistePessoa(email) == true) { return Ok(); //Retorna Codigo 200 visto que foi executado com sucesso } else return NotFound(); // Retorna Codigo 404 visto que nao foi encontrada uma pessoa } /// <summary> /// Metodo PUT que atualiza as informaçoes de uma certa pessoa na base de dados utilizando o seu email para a identificar /// </summary> /// <param name="primeiro_nome"></param> /// <param name="ultimo_nome"></param> /// <param name="password"></param> /// <param name="email"></param> /// <returns></returns> [HttpPut("updatePessoa")] public ActionResult UpdatePessoaObj(Pessoa pessoaUpdate) { if (pessoa.UpdatePessoaObj(pessoaUpdate) == true) { return Ok(); //Retorna Codigo 200 visto que foi executado com sucesso } else return NotFound(); // Retorna Codigo 404 visto que nao foi encontrada uma pessoa } /// <summary> /// Metodo DELETE que elimina informaçoes de uma certa pessoa na base de dados usando o seu email /// </summary> /// <param name="email"></param> /// <returns></returns> [HttpDelete("deletePessoa/{email}")] public ActionResult DeletePessoa(string email) { if (pessoa.DeletePessoa(email) == true) { return Ok(); //Retorna Codigo 200 visto que foi executado com sucesso } else return NotFound(); // Retorna Codigo 404 visto que nao foi encontrada uma pessoa } [HttpGet("getSoma/{val1}/{val2}")] public int WowCoolSoma(int val1, int val2) { return pessoa.WowCoolSoma(val1, val2); } #endregion } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * * Desc: A pasta de Models contem todas as classes modelo que contem as propriedades das mesmas como tambem metodos a ser chamados como serviços nos seus respetivos controladores * */ using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; namespace RestAPI.Models { /// <summary> /// Classe de aluguer feita em REST para testes /// </summary> public class Aluguer { // String usada para iniciar a conexao com a base de dados //string connect = "Data Source=DESKTOP-5R50HVU;Initial Catalog=&quot;Car Rental&quot;;Persist Security Info=True;User ID=sa;password_pessoa=123"; string connectionString = "Server=speedwayrental.database.windows.net;Database=Car Rental;User Id = admn; password=<PASSWORD>; Trusted_Connection=False; Encrypt=True;"; #region Propriedades public int ID_Aluguer { get; set; } public int ID_Pessoa { get; set; } public string Nome_Marca { get; set; } public string Nome_Modelo { get; set; } public DateTime Data_Inicio { get; set; } public DateTime Data_Final { get; set; } #endregion #region Metodos /// <summary> /// Metodo que adiciona um registo de aluguer usando o email da pessoa para identificar /// </summary> /// <param name="email"></param> /// <param name="marca"></param> /// <param name="modelo"></param> /// <param name="dataIn"></param> /// <param name="dataOut"></param> /// <returns></returns> public bool AddAluguer(string email, string marca, string modelo, string dataIn, string dataOut) { SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { //Conexao falhou connection.Close(); return false; } if (connection.State.ToString() == "Open") { string comando; comando = "Insert into aluguer (id_pessoa, nome_modelo, nome_marca, data_inicio, data_final) values((select id_pessoa from pessoa where email_pessoa = @email), @nomeMarca, @nomeModelo, @dataIn, @dataOut);"; SqlCommand cmdins = new SqlCommand(comando, connection); cmdins.Parameters.AddWithValue("@email", email); cmdins.Parameters.AddWithValue("@nomeMarca", marca); cmdins.Parameters.AddWithValue("@nomeModelo", modelo); cmdins.Parameters.AddWithValue("@dataIn", DateTime.ParseExact(dataIn, "dd/MM/yyyy HH:mm:ss", null)); cmdins.Parameters.AddWithValue("@dataOut", DateTime.ParseExact(dataOut, "dd/MM/yyyy HH:mm:ss", null)); int res = cmdins.ExecuteNonQuery(); if (res > 0) { return true; } else return false; } return false; } /// <summary> /// Metodo que retorna todos os alugueres atribuidos a uma pessoa /// </summary> /// <param name="email"></param> /// <returns></returns> public string ProcuraAlugueres(string email) { string json; SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { connection.Close(); return json = null; } if (connection.State.ToString() == "Open") { string comando = "SELECT aluguer.id_aluguer ,pessoa.primeiro_nome, pessoa.ultimo_nome,pessoa.email_pessoa ,aluguer.nome_marca, aluguer.nome_modelo, aluguer.data_inicio, aluguer.data_final from aluguer INNER JOIN pessoa on aluguer.id_pessoa = pessoa.id_pessoa where pessoa.email_pessoa = @email;"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@email", email); cmd.ExecuteNonQuery(); DataSet dataSet = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dataSet, "Alugueres"); json = JsonConvert.SerializeObject(dataSet); connection.Close(); return json; } else return json = null; } /// <summary> /// Metodo que atualiza um aluguer com informaçoes novas /// </summary> /// <param name="id_aluguer"></param> /// <param name="nome_marca"></param> /// <param name="nome_modelo"></param> /// <param name="datain"></param> /// <param name="dataout"></param> /// <returns></returns> public bool UpdateAluguer(string id_aluguer, string nome_marca, string nome_modelo, string datain, string dataout) { SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { connection.Close(); return false; } if (connection.State.ToString() == "Open") { string comando = "Update aluguer SET nome_modelo = @nomemarca, nome_marca = @nomemodelo, data_inicio = @datain , data_final = @dataout WHERE id_aluguer = @idaluguer"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@nomemarca", nome_marca); cmd.Parameters.AddWithValue("@nomemodelo", nome_modelo); cmd.Parameters.AddWithValue("@datain", DateTime.Parse(datain)); cmd.Parameters.AddWithValue("@dataout", DateTime.Parse(dataout)); cmd.Parameters.AddWithValue("@idaluguer", id_aluguer); cmd.ExecuteNonQuery(); DataSet dataSet = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dataSet, "Alugueres"); string json = JsonConvert.SerializeObject(dataSet); connection.Close(); return true; } else return false; } /// <summary> /// Metodo que Elimina um Aluguer da base de dados /// </summary> /// <param name="id_aluguer"></param> /// <returns></returns> public bool EliminaAluguer(string id_aluguer) { SqlConnection connection = new SqlConnection(connectionString); try { connection.Open(); } catch { connection.Close(); return false; } if (connection.State.ToString() == "Open") { string comando = "DELETE FROM aluguer WHERE id_aluguer = @idaluguer;"; SqlCommand cmd = new SqlCommand(comando, connection); cmd.Parameters.AddWithValue("@idaluguer", id_aluguer); cmd.ExecuteNonQuery(); DataSet dataSet = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dataSet, "Alugueres"); string json = JsonConvert.SerializeObject(dataSet); connection.Close(); return true; } else return false; } #endregion } /// <summary> /// Classe modelo Root que contém uma lista composta de objetos Aluguer /// </summary> public class Root { public List<Aluguer> Alugueres { get; set; } } } <file_sep>/* * Trabalho Pratico 2 ISI * * Autores: <NAME> nº16980, <NAME> º16986 * * Desc: A pasta de Controllers contem todos os controladores dos modelos * * */ using Microsoft.AspNetCore.Mvc; using RestAPI.Models; namespace RestAPI.Controllers { [ApiController] [Route("api/aluguer")] /// <summary> /// Controller para "Aluguer" /// </summary> public class AluguerController : Controller { Aluguer aluguer = new Aluguer(); /// <summary> /// Metodo POST que insere dados de um aluguer na base de dados /// </summary> /// <param name="email"></param> /// <param name="marca"></param> /// <param name="modelo"></param> /// <returns></returns> [HttpPost("insereAluguer")] public ActionResult InsereAluguerDB(string email, string marca, string modelo, string dataIn, string dataOut) { if( aluguer.AddAluguer(email, marca, modelo, dataIn, dataOut) == true) { return Ok(); //Retorna Codigo 200 visto que foi executado com sucesso } else return new StatusCodeResult(406); //Status code 406: Not Acceptable } /// <summary> /// Metodo GET que devolve os alugueres de uma pessoa usando o seu email /// </summary> /// <param name="email"></param> /// <returns></returns> [HttpGet("procuraAlugueres/{email}")] public ActionResult<string> procuraAlugueres(string email) { string resultado = aluguer.ProcuraAlugueres(email); if (resultado == null) { return NotFound(); } else return resultado; } /// <summary> /// Metodo PUT que atualiza um aluguer na base de dados usando o seu ID /// </summary> /// <param name="id_aluguer"></param> /// <param name="nome_marca"></param> /// <param name="nome_modelo"></param> /// <param name="datain"></param> /// <param name="dataout"></param> /// <returns></returns> [HttpPut("updateAluguer")] public ActionResult UpdateAluguer(string id_aluguer, string nome_marca, string nome_modelo, string datain, string dataout) { if (aluguer.UpdateAluguer(id_aluguer, nome_marca, nome_modelo, datain, dataout) == true) { return Ok(); } else return NotFound(); } /// <summary> /// Metodo DELETE que elimina um aluguer na base de dados usando o seu ID /// </summary> /// <param name="id_aluguer"></param> /// <returns></returns> [HttpDelete("deleteAluguer/{id_aluguer}")] public ActionResult EliminaAluguer(string id_aluguer) { if (aluguer.EliminaAluguer(id_aluguer) == true) { return Ok(); } else return NotFound(); } } } <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Client_REST_SOAP { /// <summary> /// Classe modelo de um aluguer /// </summary> public class Alugueres { public int id_aluguer { get; set; } public string primeiro_nome { get; set; } public string ultimo_nome { get; set; } public string email_pessoa { get; set; } public string nome_marca { get; set; } public string nome_modelo { get; set; } public string data_inicio { get; set; } // Datas em string devido a um imprevisto na deserialização Json public string data_final { get; set; } } /// <summary> /// Classe modelo de uma lista de objetos Alugueres /// </summary> public class Root { public List<Alugueres> Alugueres { get; set; } } } <file_sep>using System; using System.IO; using System.Net; using System.Runtime.Serialization.Json; using System.Text; using System.Web; using System.Windows.Forms; namespace Client_REST_SOAP { public partial class Aluguer : Form { // Criar instancia de serviços //WCF_Soap_Services.AluguerClient aluguerClient = new WCF_Soap_Services.AluguerClient(); WCF_SOAP_Services_CloudVersion.AluguerClient aluguerClient = new WCF_SOAP_Services_CloudVersion.AluguerClient(); //Objeto Pessoa que mantem os dados do utilizador que fez login Pessoa preservaUtilizador; public Aluguer() { InitializeComponent(); } /// <summary> /// //Construtor que recebe objeto Pessoa como parametro /// </summary> /// <param name="utilizador"></param> public Aluguer(Pessoa utilizador) : this() { this.preservaUtilizador = utilizador; } private void Aluguer_Load(object sender, EventArgs e) { string url = "https://speedwayrentalapi-apim.azure-api.net/api/veiculos/GetMarcas"; textBox1.Text = this.preservaUtilizador.email_pessoa; //Prepara Pedido HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest; //Faz pedido e analisa resposta using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { if (response.StatusCode != HttpStatusCode.OK) { string message = String.Format("GET falhou. Recebido HTTP {0}", response.StatusCode); throw new ApplicationException(message); } StreamReader reader = new StreamReader(response.GetResponseStream()); DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(Marcas)); Marcas marcas = (Marcas)jsonSerializer.ReadObject(response.GetResponseStream()); foreach (string marca in marcas.data) { comboBox1.Items.Add(marca); } } } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { string url = "https://speedwayrentalapi-apim.azure-api.net/api/veiculos/GetModelos/[MARCA]"; comboBox2.Items.Clear(); comboBox2.Text = null; // Construção da uri StringBuilder uri = new StringBuilder(); uri.Append(url); uri.Replace("[MARCA]", HttpUtility.UrlEncode(comboBox1.Text)); uri.Replace("+", "%20"); //Prepara Pedido HttpWebRequest request = WebRequest.Create(uri.ToString()) as HttpWebRequest; //Faz pedido e analisa resposta using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { if (response.StatusCode != HttpStatusCode.OK) { string message = String.Format("GET falhou. Recebido HTTP {0}", response.StatusCode); throw new ApplicationException(message); } StreamReader reader = new StreamReader(response.GetResponseStream()); DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(Modelos)); Modelos veiculos = (Modelos)jsonSerializer.ReadObject(response.GetResponseStream()); foreach (Datum nomeModelo in veiculos.data) { comboBox2.Items.Add(nomeModelo.modelName); } } } private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(comboBox1.Text) || string.IsNullOrEmpty(comboBox2.Text)) { MessageBox.Show("Um ou mais campos não foram preenchidos."); } else { if (aluguerClient.AddAluguer(textBox1.Text, comboBox1.Text, comboBox2.Text, dateTimePicker1.Value, dateTimePicker2.Value) == true) { MessageBox.Show("Aluguer Adicionado com Successo"); } else MessageBox.Show("O Processo não foi concluido"); } } private void button2_Click(object sender, EventArgs e) { Menu novoMenu = new Menu(this.preservaUtilizador); this.Hide(); novoMenu.ShowDialog(); this.Close(); } private void dateTimePicker1_ValueChanged(object sender, EventArgs e) { } private void label4_Click(object sender, EventArgs e) { } private void textBox3_TextChanged(object sender, EventArgs e) { } } } <file_sep># ISI-16980-16986 Repositorio da disciplina ISI (Integração de Sistemas de Informação) 3º Ano <file_sep>using System.Collections.Generic; namespace Client_REST_SOAP { public class Marcas { public object brandName { get; set; } public object modelName { get; set; } public object regionName { get; set; } public object condition { get; set; } public object msg { get; set; } public int cacheTimeLimit { get; set; } public List<string> data { get; set; } } /// <summary> /// Classe que recebe dados sobre o nome da marca do carro pesquisado /// </summary> public class Modelos { public string brandName { get; set; } public object modelName { get; set; } public object regionName { get; set; } public object condition { get; set; } public object msg { get; set; } public int cacheTimeLimit { get; set; } public List<Datum> data { get; set; } } /// <summary> /// Classe que contem os modelos de marcas de carros /// </summary> public class Datum { public string modelName { get; set; } } } <file_sep>using System.Collections.Generic; namespace Client_REST_SOAP { //Classe modelo Pessoa de acordo com o modelo da API criada public class Pessoa { public int id_pessoa { get; set; } public string primeiro_nome { get; set; } public string ultimo_nome { get; set; } public string password_pessoa { get; set; } public string email_pessoa { get; set; } } //Classe que contem uma lista de objetos Pessoa public class RootPessoa { public List<Pessoa> Pessoa { get; set; } } }
25cdb82c5efb4fba387910fbc81e006fe4f4ddb5
[ "Markdown", "C#" ]
20
C#
BasilNight/ISI-16980-16986
e26afeea7adf86bf67bd30c5722d308f0bdb34e9
595abca7355bb80edc08648bd0c0fdba2bb3b116
refs/heads/master
<file_sep>package gogenserve import ( "code.google.com/p/go.net/websocket" "fmt" "net" "sync" "testing" ) type DefaultListener struct { wg *sync.WaitGroup addr *GenAddr } func (d *DefaultListener) OnConnect(conn *GenConn) { fmt.Printf("Yup got connection %v\n", conn) d.wg.Done() } func (d *DefaultListener) OnDisconnect(conn *GenConn) { fmt.Printf("Yup connection dropped %v\n", conn) } func (d *DefaultListener) OnRecv(conn *GenConn, data []byte, size int) { fmt.Printf("Yup got data %s size: %d from connection %v\n", data[0:size], size, conn) d.wg.Done() } func (d *DefaultListener) OnError(conn *GenConn, err error) { fmt.Printf("Yup got error on connection %v: %v\n", conn, err) } func (d *DefaultListener) ReadSize() int { return 8196 } func NewListener() *DefaultListener { l := new(DefaultListener) l.wg = new(sync.WaitGroup) l.wg.Add(1) // for connection return l } func TestNewTcpServer(t *testing.T) { listener := NewListener() addr := &GenAddr{Proto: "tcp", Addr: ":8333", Path: ""} listener.wg.Add(1) serve := NewGenServe() serve.ListenTCP(addr, listener) conn := tcpConnection("localhost:8333", t) conn.Write([]byte("zooops")) conn.Close() listener.wg.Wait() } func TestNewWSServer(t *testing.T) { listener := NewListener() addr := &GenAddr{Proto: "ws", Addr: ":8333", Path: "/bonk"} listener.wg.Add(1) serve := NewGenServe() serve.MapWSPath(addr, listener) serve.ListenWS(addr.Addr) conn := wsConnection("localhost:8333", "/bonk", t) _, err := conn.Write([]byte("zooops")) if err != nil { t.Fatalf("err not nil: %v\n", err) } listener.wg.Wait() } func TestNewUDPServer(t *testing.T) { listener := NewListener() addr := &GenAddr{Proto: "udp", Addr: ":8333", Path: ""} serve := NewGenServe() serve.ListenUDP(addr, listener) conn := udpConnection("localhost:8333", t) conn.Write([]byte("zooops")) listener.wg.Wait() } func TestMultiUDPClients(t *testing.T) { listener := NewListener() addr := &GenAddr{Proto: "udp", Addr: ":8333", Path: ""} serve := NewGenServe() listener.wg.Add(4) serve.ListenUDP(addr, listener) for i := 0; i < 5; i++ { conn := udpConnection("localhost:8333", t) conn.Write([]byte(fmt.Sprintf("zoops %d\n", i))) } listener.wg.Wait() } func TestMultiWSPathsClients(t *testing.T) { listener := NewListener() addrBonk := &GenAddr{Proto: "ws", Addr: ":8333", Path: "/bonk"} addrDonk := &GenAddr{Proto: "ws", Addr: ":8333", Path: "/donk"} listener.wg.Add(3) serve := NewGenServe() serve.MapWSPath(addrBonk, listener) serve.MapWSPath(addrDonk, listener) serve.ListenWS(addrBonk.Addr) conn := wsConnection("localhost:8333", "/bonk", t) _, err := conn.Write([]byte("bonk zoops")) if err != nil { t.Fatalf("err not nil: %v\n", err) } conn.Close() conn = wsConnection("localhost:8333", "/donk", t) _, err = conn.Write([]byte("donk zoops")) if err != nil { t.Fatalf("err not nil: %v\n", err) } listener.wg.Wait() } // TestNewMultiServer demonstrates the ability to register // the same listener to multiple services. func TestNewMultiServer(t *testing.T) { serve := NewGenServe() listener := NewListener() addrTcp := &GenAddr{Proto: "tcp", Addr: ":8334", Path: ""} addrUdp := &GenAddr{Proto: "udp", Addr: ":8335", Path: ""} addrWs := &GenAddr{Proto: "ws", Addr: ":8336", Path: "/bonk"} listener.wg.Add(4) serve.ListenTCP(addrTcp, listener) serve.ListenUDP(addrUdp, listener) serve.MapWSPath(addrWs, listener) serve.ListenWS(addrWs.Addr) // tcp conn := tcpConnection("localhost:8334", t) conn.Write([]byte("TCP zoops")) conn.Close() // udp conn = udpConnection("localhost:8335", t) conn.Write([]byte("UDP zoops")) // ws conn = wsConnection("localhost:8336", "/bonk", t) _, err := conn.Write([]byte("WS zoops")) if err != nil { t.Fatalf("err not nil: %v\n", err) } listener.wg.Wait() } func udpConnection(addr string, t *testing.T) net.Conn { return connect("udp", addr, t) } func tcpConnection(addr string, t *testing.T) net.Conn { return connect("tcp", addr, t) } func wsConnection(addr, path string, t *testing.T) *websocket.Conn { conn, err := net.Dial("tcp", addr) if err != nil { t.Fatal("dialing", err) } client, errWS := websocket.NewClient(newConfig(t, addr, path), conn) if errWS != nil { t.Fatalf("WebSocket handshake error: %v\n", errWS) } return client } func connect(proto, addr string, t *testing.T) net.Conn { conn, err := net.Dial(proto, addr) if err != nil { t.Fatalf("error connecting to %s due to: %v\n", addr, err) } return conn } func newConfig(t *testing.T, addr, path string) *websocket.Config { config, _ := websocket.NewConfig(fmt.Sprintf("ws://%s%s", addr, path), "http://localhost") return config } <file_sep>package gogenserve import ( "code.google.com/p/go.net/websocket" //"fmt" "bytes" "errors" "io" "log" "net" "net/http" "strings" "time" ) // GenAddr - a generic address struct which holds // the necessary information for binding a service type GenAddr struct { Proto string // the protocol (udp, tcp, ws) Addr string // the address (127.0.0.1:8333, :8333) Path string // the path, only used for websockets } // GenListener - a generic listener which receives events // from GenServe as they occur. All events pass the connection // object which can be used by caller. type GenListener interface { OnConnect(conn *GenConn) // notifies that a client has connected, not available in UDP services OnRecv(conn *GenConn, data []byte, size int) // notifies that the client has sent data and its size OnDisconnect(conn *GenConn) // notifies that a client has disconnected OnError(conn *GenConn, err error) // notifies that an error has occurred ReadSize() int // the number of bytes to read from the socket } // GenConn - a generic connection structure holding the transport and the underlying net.Conn type GenConn struct { Transport string Conn net.Conn } // GenServer - a generic server which offers various protocols to listen on, uses a listener // to dispatch events as clients connect/send data. type GenServer interface { Listen(addr *GenAddr, listener GenListener) // given the provided addr information, bind a service and dispatch to listener (TCP/UDP only) ListenTCP(addr *GenAddr, listener GenListener) // dispatch TCP events to listener ListenUDP(addr *GenAddr, listener GenListener) // dispatch UDP events to listener MapWSPath(addr *GenAddr, listener GenListener) // map a websocket path with a listener ListenWS(net string) // listen on the passed in network address (1172.16.31.10:8333, :8333) ListenWSS(net string, certFile, keyFile string) // listen on an secured websocket address // TODO: Support ListenTCPS for TLS servers // TODO: Support ListenUNIX for Unix Domain Sockets } // GenServe - implementation of our GenServer type GenServe struct { } // Creates a new generic server, it has no members func NewGenServe() *GenServe { return &GenServe{} } // Listen - validates that the GenAddr is in correct form for TCP or UDP and listens on // the given address func (g *GenServe) Listen(addr *GenAddr, listener GenListener) { if addr.Proto == "" || addr.Addr == "" || strings.HasPrefix(addr.Proto, "ws") { log.Fatal("Protocol or Address invalid for Listen.") } if strings.HasPrefix(addr.Proto, "tcp") { g.listenTCP(addr, listener) } else { g.listenUDP(addr, listener) } } // ListenUDP - Listens on a given network/port provided by addr and dispatches UDP events to the listener. func (g *GenServe) ListenUDP(addr *GenAddr, listener GenListener) { if addr.Proto == "" { addr.Proto = "udp" } if !strings.HasPrefix(addr.Proto, "udp") { log.Fatal("Invalid protocol set for ListenUDP") } g.listenUDP(addr, listener) } // listenUDP - resolves / validates the protocol and address, binds to the network and accepts connections // reads are put in their own goroutines. func (g *GenServe) listenUDP(addr *GenAddr, listener GenListener) { if addr.Addr == "" { log.Fatal("Address not set for UDP server") } udp, err := net.ResolveUDPAddr(addr.Proto, addr.Addr) if err != nil { log.Fatalf("Error in resolve udp address: %v\n", err) } ln, err := net.ListenUDP(addr.Proto, udp) if err != nil { log.Fatalf("Error listening on %s socket at %s, %v\n", addr.Proto, addr.Addr, err) } newConn := &GenConn{Transport: addr.Proto, Conn: ln} go func() { for { read(listener, newConn) } }() } // ListenTCP - Listens on a given network/port provided by addr and dispatches TCP events to the listener. func (g *GenServe) ListenTCP(addr *GenAddr, listener GenListener) { if addr.Proto == "" { addr.Proto = "tcp" } if !strings.HasPrefix(addr.Proto, "tcp") { log.Fatal("Invalid protocol set for ListenTCP") } g.listenTCP(addr, listener) } // listenUDP - validates the protocol and address, binds to the network and accepts connections, in its own // go routine as well as reads put in their own go routines. Events dispatched to the listener. func (g *GenServe) listenTCP(addr *GenAddr, listener GenListener) { if addr.Addr == "" { log.Fatal("Address not set for TCP server") } ln, err := net.Listen(addr.Proto, addr.Addr) if err != nil { log.Fatalf("Error listening on %s socket at %s, %v\n", addr.Proto, addr.Addr, err) } // accept loop go func() { for { c, err := ln.Accept() if err != nil { conn := &GenConn{Transport: addr.Proto} listener.OnError(conn, err) continue } newConn := &GenConn{Transport: addr.Proto, Conn: c} listener.OnConnect(newConn) // read loop go read(listener, newConn) } }() } // MapWSPath - Maps a websocket path to a listener for dispatching events to. Should // be called prior to calling ListenWS or ListenWSS // It is possible to map the same listener to multiple paths, provided the passed // in addr has a different Path defined. func (g *GenServe) MapWSPath(addr *GenAddr, listener GenListener) { http.Handle(addr.Path, websocket.Handler(func(ws *websocket.Conn) { webSocketHandler(ws, listener) })) } // ListenWS - Listens on the given address for WebSocket connections, MapWSPath should be called first func (g *GenServe) ListenWS(net string) { go func() { err := http.ListenAndServe(net, nil) if err != nil { log.Fatalf("error listening on %s: %v\n", net, err) } }() } // ListenWS - Listens on the given address for secured WebSocket connections, MapWSPath should be called first func (g *GenServe) ListenWSS(net string, certFile, keyFile string) { go func() { err := http.ListenAndServeTLS(net, certFile, keyFile, nil) if err != nil { log.Fatalf("error listening on %s: %v\n", net, err) } }() } // webSocketHandler - dispatches OnConnect events when new clients connect, reads are run in their own // go routines. Once IsServerConn returns false, the connection is considered dead and an OnDisconnect // event is dispatched. func webSocketHandler(ws *websocket.Conn, listener GenListener) { newConn := &GenConn{Transport: "websocket", Conn: ws} listener.OnConnect(newConn) msg := make([]byte, listener.ReadSize()) ch := createReadChannel(listener, newConn, msg) interval := time.Tick(5 * 1e9) // TODO: allow timeout to be set by listener. Loop: for { // use select so we can block. select { case n := <-ch: if n == 0 { listener.OnDisconnect(newConn) break Loop } listener.OnRecv(newConn, msg[:n], n) case _ = <-interval: listener.OnError(newConn, errors.New("ws timed out since last read")) } } } func createReadChannel(listener GenListener, conn *GenConn, msg []byte) chan int { ch := make(chan int) go readWS(listener, conn, msg, ch) return ch } func readWS(listener GenListener, conn *GenConn, msg []byte, ch chan int) { for { n, err := conn.Conn.Read(msg) if err != nil { listener.OnError(conn, err) ch <- 0 break } ch <- n if n == 0 { break } } } // read - Reads bytes from theconnection and dispatches OnRecv events. If io.EOF is returned // by the underlying read, the connection is considered dead and an OnDisconnect event is dispatched. func read(listener GenListener, conn *GenConn) error { data := bytes.NewBuffer(nil) msg := make([]byte, listener.ReadSize()) for { n, err := conn.Conn.Read(msg[0:]) if err == io.EOF { listener.OnDisconnect(conn) return err } if err != nil { listener.OnError(conn, err) return err } data.Write(msg[0:n]) listener.OnRecv(conn, data.Bytes(), len(data.Bytes())) data.Reset() } }
8aa8b24f123f18375a53cf34cf3174fb6c49ba35
[ "Go" ]
2
Go
wirepair/gogenserve
f5f434df34c825ab98e0d6ac210974bbd98c66d8
0a15bf0ad4d0974160136c2e832668d24dd264d5
refs/heads/master
<file_sep>package technical.matillion; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; /** * * @author stefan */ @Component public class SQLConnect { private static final Logger logger = Logger.getLogger(SQLConnect.class.getName()); @Value("${hostname}") private String hostname; @Value("${username}") private String username; @Value("${password}") private String password; @Value("${database}") private String database; @Value("${pay_type}") private String pay_type; @Value("${education_level}") private String education_level; @Value("${department}") private int department; private Connection myConn; private List<String> queryEmployeeList; public Connection getMyConn() { return myConn; } public List<String> getQueryEmployeeList() { return queryEmployeeList; } @PostConstruct private void init() { logger.info("init() of SQLConnect using hostname: " + hostname + " and db: " + database); logger.info("query param: pay_type " + pay_type + " education_level: " + education_level + " department " + department); } public void connectDatabase() { try { Class.forName("com.mysql.jdbc.Driver"); logger.info("MySQL JDBC Driver Registered!"); } catch (ClassNotFoundException e) { logger.info("Couldn't found JDBC driver. Make sure you have added JDBC Maven Dependency Correctly"); e.printStackTrace(); return; } try { logger.info("Starting connection with " + hostname); myConn = DriverManager.getConnection("jdbc:mysql://" + hostname + ":3306/" + database, username, password); if (myConn != null) { logger.info("Connection Successful!"); } else { logger.info("Failed to make connection!"); } } catch (SQLException e) { logger.info("MySQL Connection Failed!"); e.printStackTrace(); return; } } public void selectQuery() { if(myConn == null){ connectDatabase(); } try { String sql = "SELECT employee.employee_id, employee.full_name, employee.position_title, department.department_id, \n" + "department.department_description, `position`.position_id, `position`.management_role\n" + "FROM employee, department, `position` \n" + "WHERE employee.department_id = department.department_id\n" + "AND employee.position_id = `position`.position_id\n" + "AND employee.department_id = ? \n" + "AND `position`.pay_type = ?\n" + "AND employee.education_level = ?;"; PreparedStatement ps = myConn.prepareStatement(sql); ps.setInt(1, department); ps.setString(2, pay_type); ps.setString(3, education_level); ResultSet rs = ps.executeQuery(); logger.info("Querry results are: "); logger.info("|employee_id|full_name |position_title |department_id|department_description |position_id|management_role |"); queryEmployeeList = new ArrayList<>(); while (rs.next()) { int employee_id = rs.getInt("employee_id"); String full_name = rs.getString("full_name"); String position_title = rs.getString("position_title"); String department_description = rs.getString("department_description"); int position_id = rs.getInt("position_id"); String management_role = rs.getString("management_role"); queryEmployeeList.add(full_name); logger.info(employee_id + " " + full_name + " " + position_title + " " + department + " " + department_description + " " + position_id + " " + management_role); } logger.info("Total query results: " + getQueryEmployeeList().size()); } catch (SQLException e) { e.printStackTrace(); } } } <file_sep> # Matillion Technical Test ## Test1 ``` // This method counts and returns the number of different characters between two strings // of the same length private static int countUniqueCharacters(String stringOne, String stringTwo){ int uniqueChars = 0; for(int i = 0; i < stringOne.length(); i++){ if(stringOne.charAt(i) != stringTwo.charAt(i)){ uniqueChars++; } } return uniqueChars; } ``` ## Test 2 ``` mvn clean install java -jar target/matillion-0.1.jar ``` <file_sep>hostname=mysql-technical-test.cq5i4y35n9gg.eu-west-1.rds.amazonaws.com username=technical_test password=<PASSWORD> database=foodmart pay_type=Monthly education_level=Graduate Degree department=11
14e28eab1f879faaa5536c60db90bff33ee48547
[ "Markdown", "Java", "INI" ]
3
Java
StefanPristoleanu/Matillion_Technical_Test
2a6ea9ce115f02480a628ae5b7e662c094de6e9b
2d53254c337583fca3da6c05c45b01df58ad83c4
refs/heads/master
<repo_name>trinadh1112/C<file_sep>/Bitwise/Swapping Bits/README.md # Bitwise ## Swapping Bits ### Problem Statement: Take a Number ( which is in the range of 2 power 32 ) that is of integer type. In that take two position source and destination from 1 to 32 which will swap the source bit and destination bit from the number. Example: Input: Number - 10 Source - 1 Destination - 2 Output: 9 Explanation: Number is 10 that means in binary 00000000 00000000 00000000 00001010 | | | | | | |||||||| 32 25 24 17 16 9 87654321 Source position is 1,which is having bit 0. Destination position is 2, which is having bit 1. that bits should be swap as below 0 1 | | 00000000 00000000 00000000 0000101 0 | | | | | | ||||||| | 32 25 24 17 16 9 8765432 1 Then ouput will be: 00000000 00000000 00000000 00001001 that means in decimal is 9. Solution: Solution 1 refers to the logic which is with in the main function. Solution 2 refers to the logic which is in a user defined function that is swap_bit(). Solution 3 refers to the logic which is a function Macro <file_sep>/Bitwise/Swapping Bits/solution3.c #include <stdio.h> /* Solution 3 for thr problem statement */ #define swap_bits(number, source, destination) ( number ^ ( ( 1 << ( source - 1 ) ) | ( 1 << ( destination - 1 ) ) ) ) int main(void) { int number; int source; int destination; printf ( "Enter a Number : " ); scanf ( "%d", &number ); printf ( "Enter the Source position : " ); scanf ( "%d", &source ); printf( "Enter the Destination position : " ); scanf( "%d", &destination ); if ( ( ( number >> ( source - 1 ) ) & 1 ) != ( ( number >> ( destination - 1 ) ) & 1 ) ) { number = swap_bits ( number, source, destination ); } printf ("%d\n", number ); return 0; }
d6101055eeca6214949636f8e404159dee3af278
[ "Markdown", "C" ]
2
Markdown
trinadh1112/C
44ecfb3c6eca4a53faa884392143bba968f3a5c2
e47ed21fe4166ce5cab217ac27bb1f37d0d6e8dd
refs/heads/master
<file_sep><?php class bishop extends piece { public $color; public $shortcode; public function displaypiece($color) { if($color=='white') { return "<img src=\"images/wb.gif\" />"; } else if($color=='black') { return "<img src=\"images/bb.gif\" />"; } } public function set_shortcode($color){ if ($color=="black") { $this->shortcode = "bb"; } else if ($color=="white") { $this->shortcode = "wb"; } } public function get_shortcode() { return $this->shortcode; } public function move($from, $to, $shortcode, $auth) { if ($this->findcolor($shortcode)=="white") { if ($this->checkturn($auth)=="white") { if($this->whitebishopvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='black', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = "You made an invalid move"; } } else { $_SESSION['error'] = "it is not your turn"; } } else if ($this->findcolor($shortcode)=="black") { if ($this->checkturn($auth)=="black") { if($this->blackbishopvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='white', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = "You made an invalid move"; } } else { $_SESSION['error'] = "it is not your turn"; } } } public function whitebishopvalidate($from, $to, $shortcode, $auth) { $v = $from[1]; $v2 = $from[1]; $h = ord($from[0]); $h2 = ord($from[0]); $validmoves = array(); if ($from[1] < $to[1]) { while (($vmove == NULL) && ($h < '103') && ($h >= '97') && ($v < '8') && ($v >= '1')) { $move = chr(($h+1)).($v+1); $next = $v+1; $next02 = $h+1; $query = "SELECT $move FROM `chessboard` WHERE `auth`='$auth'"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $vmove = "{$row[$move]}"; if ($vmove[0] == '' || $vmove[0] == 'b') { array_push($validmoves, $move); } } $v = $next++; $h = $next02++; } while (($vmove2 == NULL) && ($h2 <= '103') && ($h2 > '97') && ($v2 <= '8') && ($v2 > '1')) { $move2 = chr(($h2-1)).($v2+1); $next2 = $h2-1; $next3 = $v2+1; $query2 = "SELECT $move2 FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $vmove2 = "{$row2[$move2]}"; if ($vmove2[0] == '' || $vmove2[0] == 'b') { array_push($validmoves, $move2); } } $h2 = $next2--; $v2 = $next3++; } } else if ($from[1] > $to[1]) { while (($hmove == NULL) && ($h < '103') && ($h >= '97') && ($v2 < '8') && ($v2 >= '1')) { $move = chr(($h+1)).($v-1); $next = $h+1; $next02 = $v-1; $query = "SELECT $move FROM `chessboard` WHERE `auth`='$auth'"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $hmove = "{$row[$move]}"; if ($hmove[0] == '' || $hmove[0] == 'b') { array_push($validmoves, $move); } } $h = $next++; $v = $next02--; } while (($hmove2 == NULL) && ($v2 <= '8') && ($v2 > '1') && ($h2 <= '103') && ($h2 > '97')) { $move2 = chr(($h2-1)).($v2-1); $next2 = $v2-1; $next3 = $h2-1; $query2 = "SELECT $move2 FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $hmove2 = "{$row2[$move2]}"; if ($hmove2[0] == '' || $hmove2[0] == 'b') { array_push($validmoves, $move2); } } $v2 = $next2--; $h2 = $next3--; } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } public function blackbishopvalidate($from, $to, $shortcode, $auth) { $v = $from[1]; $v2 = $from[1]; $h = ord($from[0]); $h2 = ord($from[0]); $validmoves = array(); if ($from[1] < $to[1]) { while (($vmove == NULL) && ($h < '103') && ($h >= '97') && ($v < '8') && ($v >= '1')) { $move = chr(($h+1)).($v+1); $next = $v+1; $next02 = $h+1; $query = "SELECT $move FROM `chessboard` WHERE `auth`='$auth'"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $vmove = "{$row[$move]}"; if ($vmove[0] == '' || $vmove[0] == 'w') { array_push($validmoves, $move); } } $v = $next++; $h = $next02++; } while (($vmove2 == NULL) && ($h2 <= '103') && ($h2 > '97') && ($v2 < '8') && ($v2 >= '1')) { $move2 = chr(($h2-1)).($v2+1); $next2 = $h2-1; $next3 = $v2+1; $query2 = "SELECT $move2 FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $vmove2 = "{$row2[$move2]}"; if ($vmove2[0] == '' || $vmove2[0] == 'w') { array_push($validmoves, $move2); } } $h2 = $next2--; $v2 = $next3++; } } else if ($from[1] > $to[1]) { while (($hmove == NULL) && ($h < '103') && ($h >= '97') && ($v2 <= '8') && ($v2 > '1')) { $move = chr(($h+1)).($v-1); $next = $h+1; $next02 = $v-1; $query = "SELECT $move FROM `chessboard` WHERE `auth`='$auth'"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $hmove = "{$row[$move]}"; if ($hmove[0] == '' || $hmove[0] == 'w') { array_push($validmoves, $move); } } $h = $next++; $v = $next02--; } while (($hmove2 == NULL) && ($v2 <= '8') && ($v2 > '1') && ($h2 <= '103') && ($h2 > '97')) { $move2 = chr(($h2-1)).($v2-1); $next2 = $v2-1; $next3 = $h2-1; $query2 = "SELECT $move2 FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $hmove2 = "{$row2[$move2]}"; if ($hmove2[0] == '' || $hmove2[0] == 'w') { array_push($validmoves, $move2); } } $v2 = $next2--; $h2 = $next3--; } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } } ?><file_sep><?php class piece { public $shortcode; public $color; public function findtype($piece){ if ($piece == "wr"){ return rook; } else if ($piece == "wn") { return knight; } else if ($piece == "wb") { return bishop; } else if ($piece == "wq") { return queen; } else if ($piece == "wk") { return king; } else if ($piece == "wp") { return pawn; } else if ($piece == "br") { return rook; } else if ($piece == "bn") { return knight; } else if ($piece == "bb") { return bishop; } else if ($piece == "bq") { return queen; } else if ($piece == "bk") { return king; } else if ($piece == "bp") { return pawn; } } public function findcolor($piece) { if ($piece == "wr"){ return 'white'; } else if ($piece == "wn") { return 'white'; } else if ($piece == "wb") { return 'white'; } else if ($piece == "wq") { return 'white'; } else if ($piece == "wk") { return 'white'; } else if ($piece == "wp") { return 'white'; } else if ($piece == "br") { return 'black'; } else if ($piece == "bn") { return 'black'; } else if ($piece == "bb") { return 'black'; } else if ($piece == "bq") { return 'black'; } else if ($piece == "bk") { return 'black'; } else if ($piece == "bp") { return 'black'; } } public function movingtype($from, $auth) { $db = new Database(); $db->connect(); $query = "SELECT ".$from." FROM `chessboard` WHERE `auth`='".$auth."'"; $result = mysql_query($query); $row = mysql_fetch_array($result, MYSQL_ASSOC); return $this->findtype($row[$from]); } public function movingcolor($from, $auth) { $db = new Database(); $db->connect(); $query = "SELECT ".$from." FROM `chessboard` WHERE `auth`='".$auth."'"; $result = mysql_query($query); $row = mysql_fetch_array($result, MYSQL_ASSOC); return $this->findcolor($row[$from]); } public function checkturn($auth) { $db = new Database(); $db->connect(); $query = "SELECT turn FROM `chessboard` WHERE `auth`='".$auth."'"; $result = mysql_query($query); $row = mysql_fetch_array($result, MYSQL_ASSOC); return $row['turn']; } public function incheck($from, $to, $shortcode, $auth) { // set kings color if ($this->findcolor($shortcode) == "black") { $king = "bk"; $other = 'w'; } else if ($this->findcolor($shortcode) == "white") { $king = "wk"; $other = 'b'; } // end kings color // get the kings location pull database then loop through to find the king $db = new Database(); $db->connect(); $query = "SELECT * FROM `chessboard` WHERE `auth`='".$auth."'"; $result = mysql_query($query); $row = mysql_fetch_array($result, MYSQL_ASSOC); foreach($row as $key =>$rows) { if ($rows==$king) { $toking = $key; } if($key==$to) { $previous=$rows; } } // end getting kings location // Update the database with the move. $query = "UPDATE chessboard SET ".$from."='', ".$to."='".$shortcode."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); // end updating the database with the move // grab the board again $query = "SELECT * FROM `chessboard` WHERE `auth`='".$auth."'"; $result = mysql_query($query); $row = mysql_fetch_array($result, MYSQL_ASSOC); foreach($row as $key=>$rows) { if ($rows[0]==$other) { //run through the options to validate if ($other=='b') { switch ($rows) { case 'bp': $bp = new pawn(); if($bp->blackpawnvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'br': $br = new rook(); if($br->blackrookvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'bn': $bn = new knight(); if($bn->blackknightvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'bb': $bb = new bishop(); if($bb->blackbishopvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'bq': $bq = new queen(); if($bq->blackqueenvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'bk': $bk = new king(); if($bk->blackkingvalidate($key, $toking, $rows, $auth)) { $check = true; } break; } } else if ($other=='w') { switch ($rows) { case 'wp': $wp = new pawn(); if($wp->whitepawnvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'wr': $wr = new rook(); if($wr->whiterookvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'wn': $wn = new knight(); if($wn->whiteknightvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'wb': $wb = new bishop(); if($wb->whitebishopvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'wq': $wq = new queen(); if($wq->whitequeenvalidate($key, $toking, $rows, $auth)) { $check = true; } break; case 'wk': $wk = new king(); if($wk->whitekingvalidate($key, $toking, $rows, $auth)) { $check = true; } break; } } //end validation options } } // end the validation loop // undo the db update $query = "UPDATE chessboard SET ".$to."='".$previous."', ".$from."='".$shortcode."' WHERE `auth`='".$auth."'"; $result = mysql_query($query) or die(mysql_error()); // end db undo // return true if in check or false if not if ($check==true) { return true; } else if ($check==false) { return false; } // end return true if in check or false if not } } ?><file_sep><?php class pawn extends piece { public $shortcode; public $color; public function displaypiece($color) { if($color=='white') { return "<img src=\"images/wp.gif\" />"; } else if($color=='black') { return "<img src=\"images/bp.gif\" />"; } } public function set_shortcode($color){ if ($color=="black") { $this->shortcode = "bp"; } else if ($color=="white") { $this->shortcode = "wp"; } } public function get_shortcode() { return $this->shortcode; } public function move($from, $to, $shortcode, $auth) { if ($this->findcolor($shortcode)=="white") { if ($this->checkturn($auth)=="white") { if($this->whitepawnvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='black', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } $query2 = "INSERT INTO 'moves' (`id` , 'from', 'to', 'auth') VALUES (NULL, $from, $to, $auth)"; $result2 = mysql_query($query2); if (!$result2) { $message2 = 'Invalid query: ' . mysql_error() . "\n"; $message2 .= 'Whole query: ' . $query2; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = 'You made an invalid move'; } } else { $_SESSION['error'] = 'it is not your turn'; } } else if ($this->findcolor($shortcode)=="black") { if ($this->checkturn($auth)=="black") { if($this->blackpawnvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='white', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } $query2 = "INSERT INTO 'moves' (`id` , 'from', 'to', 'auth') VALUES (NULL, ".$from.", ".$to.", ".$auth.")"; $result2 = mysql_query($query2); if (!$result2) { $message2 = 'Invalid query: ' . mysql_error() . "\n"; $message2 .= 'Whole query: ' . $query2; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = 'You made an invalid move'; } } else { $_SESSION['error'] = 'it is not your turn'; } } } public function whitepawnvalidate($from, $to, $shortcode, $auth) { if (preg_match("/(a2|b2|c2|d2|e2|f2|g2|h2)/", $from, $matches)) { $move1 = $from[0].'3'; $move2 = $from[0].'4'; $query3 = "SELECT $move1, $move2 FROM `chessboard` WHERE `auth`='$auth'"; $result3 = mysql_query($query3) or die(mysql_error()); while ($row3 = mysql_fetch_array($result3, MYSQL_ASSOC)) { $vmove1 = "{$row3[$move1]}"; $vmove2 = "{$row3['move2']}"; if ($vmove1[0] == '') { if ($vmove2[0] == '') { $validmoves = array($from[0].'3',$from[0].'4'); } } } } else { $move1 = $from[0].($from[1]+1); $query3 = "SELECT $move1 FROM `chessboard` WHERE `auth`='$auth'"; $result3 = mysql_query($query3) or die(mysql_error()); while ($row3 = mysql_fetch_array($result3, MYSQL_ASSOC)) { $vmove1 = "{$row3[$move1]}"; if ($vmove1[0] == '') { $validmoves = array($from[0].($from[1]+1)); } } } if ($from[0] != 'h') { $takeup = ord($from[0]); $takeup = ($takeup+1); $takeup2 = chr($takeup).($from[1]+1); } if ($from[0] != 'a') { $takeup3 = ord($from[0]); $takeup3 = ($takeup3-1); $takeup4 = chr($takeup3).($from[1]+1); } if ($takeup2 && $takeup4) { $query2 = "SELECT $takeup2, $takeup4 FROM chessboard WHERE auth='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $takeup5 = "{$row2[$takeup2]}"; $takeup6 = "{$row2[$takeup4]}"; if ($takeup5[0] == 'b') { if (is_array($validmoves)) { array_push($validmoves, $takeup2); } else { $validmoves = array($takeup2); } } if ($takeup6[0] == 'b') { if (is_array($validmoves)) { array_push($validmoves, $takeup4); } else { $validmoves = array($takeup4); } } } } else if ($takeup2 && !$takeup4) { $query2 = "SELECT $takeup2 FROM chessboard WHERE auth='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $takeup5 = "{$row2[$takeup2]}"; if ($takeup5[0] == 'b') { if (is_array($validmoves)) { array_push($validmoves, $takeup2); } else { $validmoves = array($takeup2); } } } } else if (!$takeup2 && $takeup4) { $query2 = "SELECT $takeup4 FROM chessboard WHERE auth='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $takeup6 = "{$row2[$takeup4]}"; if ($takeup6[0] == 'b') { if (is_array($validmoves)) { array_push($validmoves, $takeup4); } else { $validmoves = array($takeup4); } } } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } public function blackpawnvalidate($from, $to, $shortcode, $auth) { if (preg_match("/(a7|b7|c7|d7|e7|f7|g7|h7)/", $from, $matches)) { $move1 = $from[0].'6'; $move2 = $from[0].'5'; $validmoves = array(); $query3 = "SELECT $move1, $move2 FROM `chessboard` WHERE `auth`='$auth'"; $result3 = mysql_query($query3) or die(mysql_error()); while ($row3 = mysql_fetch_array($result3, MYSQL_ASSOC)) { $vmove1 = "{$row3[$move1]}"; $vmove2 = "{$row3['move2']}"; if ($vmove1[0] == '') { if ($vmove2[0] == '') { $validmoves = array($from[0].'6',$from[0].'5'); } } } } else { $move1 = $from[0].($from[1]-1); $query3 = "SELECT $move1 FROM `chessboard` WHERE `auth`='$auth'"; $result3 = mysql_query($query3) or die(mysql_error()); while ($row3 = mysql_fetch_array($result3, MYSQL_ASSOC)) { $vmove1 = "{$row3[$move1]}"; if ($vmove1[0] == '') { $validmoves = array($from[0].($from[1]-1)); } } } if ($from[0] != 'a') { $takeup = ord($from[0]); $takeup = ($takeup-1); $takeup2 = chr($takeup).($from[1]-1); } if ($from[0] != 'h') { $takeup3 = ord($from[0]); $takeup3 = ($takeup3+1); $takeup4 = chr($takeup3).($from[1]-1); } if ($takeup2 && $takeup4) { $query2 = "SELECT $takeup2, $takeup4 FROM chessboard WHERE auth='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $takeup5 = "{$row2[$takeup2]}"; $takeup6 = "{$row2[$takeup4]}"; if ($takeup5[0] == 'w') { if (is_array($validmoves)) { array_push($validmoves, $takeup2); } else { $validmoves = array($takeup2); } } if ($takeup6[0] == 'w') { if (is_array($validmoves)) { array_push($validmoves, $takeup4); } else { $validmoves = array($takeup4); } } } } else if ($takeup2 && !$takeup4) { $query2 = "SELECT $takeup2 FROM chessboard WHERE auth='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $takeup5 = "{$row2[$takeup2]}"; if ($takeup5[0] == 'w') { if (is_array($validmoves)) { array_push($validmoves, $takeup2); } else { $validmoves = array($takeup2); } } } } else if (!$takeup2 && $takeup4) { $query2 = "SELECT $takeup4 FROM chessboard WHERE auth='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $takeup6 = "{$row2[$takeup4]}"; if ($takeup6[0] == 'w') { if (is_array($validmoves)) { array_push($validmoves, $takeup4); } else { $validmoves = array($takeup4); } } } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } } ?> <file_sep><?php include("includes/loadclasses.php"); $chessgame = new chess_game(); $chessgame->new_game(); header('Location: index.php?auth='.$chessgame->get_auth().''); ?><file_sep><?php class king extends piece { public $shortcode; public $color; public function displaypiece($color) { if($color=='white') { return "<img src=\"images/wk.gif\" />"; } else if($color=='black') { return "<img src=\"images/bk.gif\" />"; } } public function set_shortcode($color){ if ($color=="black") { $this->shortcode = "bk"; } else if ($color=="white") { $this->shortcode = "wk"; } } public function get_shortcode() { return $this->shortcode; } public function move($from, $to, $shortcode, $auth) { if ($this->findcolor($shortcode)=="white") { if ($this->checkturn($auth)=="white") { if($this->whitekingvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='black', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = "You made an invalid move"; } } else { $_SESSION['error'] = "it is not your turn"; } } else if ($this->findcolor($shortcode)=="black") { if ($this->checkturn($auth)=="black") { if($this->blackkingvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='white', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = "You made an invalid move"; } } else { $_SESSION['error'] = "it is not your turn"; } } } public function whitekingvalidate($from, $to, $shortcode, $auth) { $v = $from[1]; $h = ord($from[0]); $validmoves = array(); $upleft=chr(($h-1)).($from[1]+1); $up= $from[0].($from[1]+1); $upright = chr(($h+1)).($from[1]+1); $right = chr(($h+1)).$from[1]; $downright = chr(($h+1)).($from[1]-1); $down = $from[0].($from[1]-1); $downleft = chr(($h-1)).($from[1]-1); $left = chr(($h-1)).$from[1]; $movelist = array($upleft, $up, $upright, $right, $downright, $down, $downleft, $left); $db = new Database(); $db->connect(); foreach($movelist as $movelists) { if (($movelists[1] <= '8') && ($movelists[1] >= '1') && (ord($movelists[0]) <= '104') && (ord($movelists[0]) >= '97')){ $query = "SELECT $movelists FROM `chessboard` WHERE `auth`='$auth'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); $vmove = "{$row[$movelists]}"; if ($vmove[0] == '' || $vmove[0] == 'b') { array_push($validmoves, $movelists); } } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } public function blackkingvalidate($from, $to, $shortcode, $auth) { $v = $from[1]; $h = ord($from[0]); $validmoves = array(); $upleft=chr(($h-1)).($from[1]+1); $up= $from[0].($from[1]+1); $upright = chr(($h+1)).($from[1]+1); $right = chr(($h+1)).$from[1]; $downright = chr(($h+1)).($from[1]-1); $down = $from[0].($from[1]-1); $downleft = chr(($h-1)).($from[1]-1); $left = chr(($h-1)).$from[1]; $movelist = array($upleft, $up, $upright, $right, $downright, $down, $downleft, $left); $db = new Database(); $db->connect(); foreach($movelist as $movelists) { if (($movelists[1] < '8') && ($movelists[1] > '1') && (ord($movelists[0]) < '104') && (ord($movelists[0]) > '97')){ $query = "SELECT $movelists FROM `chessboard` WHERE `auth`='$auth'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); $vmove = "{$row[$movelists]}"; if ($vmove[0] == '' || $vmove[0] == 'w') { array_push($validmoves, $movelists); } } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } } ?><file_sep><?php session_start(); include("includes/loadclasses.php"); $auth = "{$_GET['auth']}"; $db = new database(); if (isset($_POST['Submit'])) { //return any errors first if (!empty($_POST['from'])) { $from = $_POST['from']; } else { $from = FALSE; echo 'Please enter a valid location to move from.<br />'; } if (!empty($_POST['to'])) { $to = $_POST['to']; } else { $to = FALSE; echo 'Please enter a valid location to move to.<br />'; } $promoteto = $_POST['promoteto']; $piece = new piece(); $type = $piece->movingtype($from, $auth); $color = $piece->movingcolor($from, $auth); if ((($type=='pawn' && $color=='white' && $from[1]=='7' && $to[1]=='8') || ($type=='pawn' && $color=='black' && $from[1]=='2' && $to[1]=='1')) && empty($promoteto)) { ?><form method="post" action="move.php?auth=<?php echo $auth;?>"> <input type="hidden" name="from" value="<?php echo $from; ?>"> <input type="hidden" name="to" value="<?php echo $to; ?>"> <select name="promoteto"> <option value="q">Queen</option> <option value="n">Knight</option> <option value="r">Rook</option> <option value="b">Bishop</option> </select> <input type="Submit" value="Submit" name="Submit"> </form><?php } else if(isset($promoteto)) { $promote = $promoteto; if ($color=='white') { $colorcode = 'w'; } else if($color=='black') { $colorcode = 'b'; } $promoteto2 = $colorcode.$promote; $piece = new $type($color); $piece->set_shortcode($color); $piece->move($from, $to, $promoteto2, $auth); header("Location: index.php?auth=$auth&from=$from&to=$to"); } else { $piece = new $type($color); $piece->set_shortcode($color); $shortcode = $piece->get_shortcode(); $piece->move($from, $to, $shortcode, $auth); header("Location: index.php?auth=$auth&from=$from&to=$to"); } } else { $_SESSION['error'] = 'Nothing was submitted'; header("Location: index.php?auth=$auth&from=$from&to=$to"); } ?><file_sep><?php class board { public $height; public $width; public $rows; public $columns; public $auth; function __construct($auth) { $this->auth = $auth; } function drawboard() { echo "<table name=\"board\" background=\"images/animknot.gif\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">"; for($r=8;$r>=1;$r--) { //rows echo "<tr>"; echo "<td width='25' height='25' align='right'><font face='arial'> ".$r."&nbsp; </font></td><br />"; for($c=97;$c<=104;$c++) { //columns $cell_number = chr($c).$r; if(($r%2)==0) { if(($c%2)==0) { $color="#996633"; } else { $color="tan"; } } else { if(($c%2)==0) { $color="tan"; } else { $color="#996633"; } } $$cell_number = new square($cell_number, $color, $this->auth); echo $$cell_number->draw_square(); } echo "</tr>"; } echo "<tr>"; echo "<td width='25' height='25'>&nbsp; </td>"; echo "<td width='25' height='25' align='center'><font face='arial'> a </font></td>"; echo "<td width='25' height='25' align='center'><font face='arial'> b </font></td>"; echo "<td width='25' height='25' align='center'><font face='arial'> c </font></td>"; echo "<td width='25' height='25' align='center'><font face='arial'> d </font></td>"; echo "<td width='25' height='25' align='center'><font face='arial'> e </font></td>"; echo "<td width='25' height='25' align='center'><font face='arial'> f </font></td>"; echo "<td width='25' height='25' align='center'><font face='arial'> g </font></td>"; echo "<td width='25' height='25' align='center'><font face='arial'> h </font></td>"; echo "</tr>"; echo "</table>"; } } ?><file_sep><?php include("classes/board.php"); include("classes/square.php"); include("classes/chessgame.php"); include("classes/database.php"); include("classes/piece.php");include("classes/bishop.php");include("classes/rook.php");include("classes/knight.php");include("classes/queen.php");include("classes/king.php");include("classes/pawn.php"); ?><file_sep><?php class square { public $cell_number; public $color; public $width="25"; public $height="25"; public $auth; function __construct($cell_number, $color, $auth) { $this->cell_number = $cell_number; $this->color = $color; $this->auth = $auth; } function set_cell_number($new_cell_number) { $this->cell_number = $new_cell_number; } function get_cell_number() { return $this->cell_number; } function set_color($new_color) { $this->color = $new_color; } function get_color() { return $this->color; } function set_width($new_width) { $this->width = $new_width; } function get_width() { return $this->width; } function set_height($new_height) { $this->height = $new_height; } function get_height() { return $this->height; } public function draw_square() { $db = new Database(); $db->connect(); $query = "SELECT ".$this->cell_number." FROM `chessboard` WHERE `auth`='".$this->auth."'"; $result = mysql_query ($query); $row = mysql_fetch_array ($result, MYSQL_ASSOC); if ($row[$this->cell_number] != NULL) { $piece = new piece(); $type = $piece->findtype($row[$this->cell_number]); $color = $piece->findcolor($row[$this->cell_number]); $piece = new $type($color); return "<td id=\"".$this->cell_number."\" onclick=\"moveSelection('".$this->cell_number."')\" bgcolor='".$this->color."'>".$piece->displaypiece($color)."</td>"; } else { return "<td id=\"".$this->cell_number."\" onclick=\"moveSelection('".$this->cell_number."')\" bgcolor='".$this->color."'><img src=\"images/blank.gif\" /></td>"; } } } ?><file_sep><?php class knight extends piece { public $shortcode; public $color; public function displaypiece($color) { if($color=='white') { return "<img src=\"images/wn.gif\" />"; } else if($color=='black') { return "<img src=\"images/bn.gif\" />"; } } public function set_shortcode($color){ if ($color=="black") { $this->shortcode = "bn"; } else if ($color=="white") { $this->shortcode = "wn"; } } public function get_shortcode() { return $this->shortcode; } public function move($from, $to, $shortcode, $auth) { if ($this->findcolor($shortcode)=="white") { if ($this->checkturn($auth)=="white") { if($this->whiteknightvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='black', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = "You made an invalid move"; } } else { $_SESSION['error'] = "it is not your turn"; } } else if ($this->findcolor($shortcode)=="black") { if ($this->checkturn($auth)=="black") { if($this->blackknightvalidate($from, $to, $shortcode, $auth)==True) { if ($this->incheck($from, $to, $shortcode, $auth)==false) { $query = "UPDATE chessboard SET turn='white', ".$from."='', ".$to."='".$shortcode."', last_from='".$from."', last_to='".$to."' WHERE `auth`='".$auth."'"; $result = mysql_query($query); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; } } else { $_SESSION['error'] = 'You can not make this move as you would be in check'; } } else { $_SESSION['error'] = "You made an invalid move"; } } else { $_SESSION['error'] = "it is not your turn"; } } } public function blackknightvalidate($from, $to, $shortcode, $auth) { $alpha = ord($from[0]); $validmoves = array(); $upright0 = $alpha+1; $upright1 = chr(($alpha+1)); $upright2 = $from[1]+2; if (($upright0 <= '104') && ($upright0 >= '97') && ($upright2 >= '1') && ($upright2 <= '8')) { $upright = $upright1.$upright2; $query2 = "SELECT $upright FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$upright]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $upright); } } } $upleft0 = $alpha-1; $upleft1 = chr(($alpha-1)); $upleft2 = $from[1]+2; if (($upleft0 <= '104') && ($upleft0 >= '97') && ($upleft2 >= '1') && ($upleft2 <= '8')) { $upleft = $upleft1.$upleft2; $query2 = "SELECT $upleft FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$upleft]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $upleft); } } } $downright0 = $alpha+1; $downright1 = chr(($alpha+1)); $downright2 = $from[1]-2; if (($downright0 <= '104') && ($downright0 >= '97') && ($downright2 >= '1') && ($downright2 <= '8')) { $downright = $downright1.$downright2; $query2 = "SELECT $downright FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$downright]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $downright); } } } $downleft0 = $alpha-1; $downleft1 = chr(($alpha-1)); $downleft2 = $from[1]-2; if (($downleft0 <= '104') && ($downleft0 >= '97') && ($downleft2 >= '1') && ($downleft2 <= '8')) { $downleft = $downleft1.$downleft2; $query2 = "SELECT $downleft FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$downleft]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $downleft); } } } $leftup0 = $alpha-2; $leftup1 = chr(($alpha-2)); $leftup2 = $from[1]+1; if (($leftup0 <= '104') && ($leftup0 >= '97') && ($leftup2 >= '1') && ($leftup2 <= '8')) { $leftup = $leftup1.$leftup2; $query2 = "SELECT $leftup FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$leftup]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $leftup); } } } $leftdown0 = $alpha-2; $leftdown1 = chr(($alpha-2)); $leftdown2 = $from[1]-1; if (($leftdown0 <= '104') && ($leftdown0 >= '97') && ($leftdown2 >= '1') && ($leftdown2 <= '8')) { $leftdown = $leftdown1.$leftdown2; $query2 = "SELECT $leftdown FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$leftdown]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $leftdown); } } } $rightup0 = $alpha+2; $rightup1 = chr(($alpha+2)); $rightup2 = $from[1]+1; if (($rightup0 <= '104') && ($rightup0 >= '97') && ($rightup2 >= '1') && ($rightup2 <= '8')) { $rightup = $rightup1.$rightup2; $query2 = "SELECT $rightup FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$rightup]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $rightup); } } } $rightdown0 = $alpha+2; $rightdown1 = chr(($alpha+2)); $rightdown2 = $from[1]-1; if (($rightdown0 <= '104') && ($rightdown0 >= '97') && ($rightdown2 >= '1') && ($rightdown2 <= '8')) { $rightdown = $rightdown1.$rightdown2; $query2 = "SELECT $rightdown FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$rightdown]}"; if ($move[0] == '' || $move[0] == 'w') { array_push($validmoves, $rightdown); } } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } public function whiteknightvalidate($from, $to, $shortcode, $auth) { $alpha = ord($from[0]); $validmoves = array(); $upright0 = $alpha+1; $upright1 = chr(($alpha+1)); $upright2 = $from[1]+2; if (($upright0 <= '104') && ($upright0 >= '97') && ($upright2 >= '1') && ($upright2 <= '8')) { $upright = $upright1.$upright2; $query2 = "SELECT $upright FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$upright]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $upright); } } } $upleft0 = $alpha-1; $upleft1 = chr(($alpha-1)); $upleft2 = $from[1]+2; if (($upleft0 <= '104') && ($upleft0 >= '97') && ($upleft2 >= '1') && ($upleft2 <= '8')) { $upleft = $upleft1.$upleft2; $query2 = "SELECT $upleft FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$upleft]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $upleft); } } } $downright0 = $alpha+1; $downright1 = chr(($alpha+1)); $downright2 = $from[1]-2; if (($downright0 <= '104') && ($downright0 >= '97') && ($downright2 >= '1') && ($downright2 <= '8')) { $downright = $downright1.$downright2; $query2 = "SELECT $downright FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$downright]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $downright); } } } $downleft0 = $alpha-1; $downleft1 = chr(($alpha-1)); $downleft2 = $from[1]-2; if (($downleft0 <= '104') && ($downleft0 >= '97') && ($downleft2 >= '1') && ($downleft2 <= '8')) { $downleft = $downleft1.$downleft2; $query2 = "SELECT $downleft FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$downleft]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $downleft); } } } $leftup0 = $alpha-2; $leftup1 = chr(($alpha-2)); $leftup2 = $from[1]+1; if (($leftup0 <= '104') && ($leftup0 >= '97') && ($leftup2 >= '1') && ($leftup2 <= '8')) { $leftup = $leftup1.$leftup2; $query2 = "SELECT $leftup FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$leftup]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $leftup); } } } $leftdown0 = $alpha-2; $leftdown1 = chr(($alpha-2)); $leftdown2 = $from[1]-1; if (($leftdown0 <= '104') && ($leftdown0 >= '97') && ($leftdown2 >= '1') && ($leftdown2 <= '8')) { $leftdown = $leftdown1.$leftdown2; $query2 = "SELECT $leftdown FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$leftdown]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $leftdown); } } } $rightup0 = $alpha+2; $rightup1 = chr(($alpha+2)); $rightup2 = $from[1]+1; if (($rightup0 <= '104') && ($rightup0 >= '97') && ($rightup2 >= '1') && ($rightup2 <= '8')) { $rightup = $rightup1.$rightup2; $query2 = "SELECT $rightup FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$rightup]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $rightup); } } } $rightdown0 = $alpha+2; $rightdown1 = chr(($alpha+2)); $rightdown2 = $from[1]-1; if (($rightdown0 <= '104') && ($rightdown0 >= '97') && ($rightdown2 >= '1') && ($rightdown2 <= '8')) { $rightdown = $rightdown1.$rightdown2; $query2 = "SELECT $rightdown FROM `chessboard` WHERE `auth`='$auth'"; $result2 = mysql_query($query2) or die(mysql_error()); while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) { $move = "{$row2[$rightdown]}"; if ($move[0] == '' || $move[0] == 'b') { array_push($validmoves, $rightdown); } } } if (empty($validmoves)) { } else { $key = array_search($to, $validmoves); } if (is_int($key)) { } else { $key = '-1'; } if ($key >= '0') { if ($from && $to) { return True; } } else { return False; } } } ?><file_sep><?php class chess_game { public $auth; public function new_game() { $db = new Database(); $db->connect(); $this->auth = $this->RandomString(32); $query = "INSERT INTO `chessboard` (`id` , `auth` , `turn` ,`a1` ,`a2` ,`a3` , `a4` , `a5` , `a6` , `a7` , `a8` , `b1` , `b2` , `b3` , `b4` , `b5` , `b6` , `b7` , `b8` , `c1` , `c2` , `c3` , `c4` , `c5` , `c6` , `c7` , `c8` , `d1` , `d2` , `d3` , `d4` , `d5` , `d6` , `d7` , `d8` , `e1` , `e2` , `e3` , `e4` , `e5` , `e6` , `e7` , `e8` , `f1` , `f2` , `f3` , `f4` , `f5` , `f6` , `f7` , `f8` , `g1` , `g2` , `g3` , `g4` , `g5` , `g6` , `g7` , `g8` , `h1` , `h2` , `h3` , `h4` , `h5` , `h6` , `h7` , `h8`) VALUES ( NULL , '".$this->auth."', 'white', 'wr', 'wp', NULL , NULL , NULL , NULL , 'bp', 'br', 'wn', 'wp', NULL , NULL , NULL , NULL , 'bp', 'bn', 'wb', 'wp', NULL , NULL , NULL , NULL , 'bp', 'bb', 'wq', 'wp', NULL , NULL , NULL , NULL , 'bp', 'bq', 'wk', 'wp', NULL , NULL , NULL , NULL , 'bp', 'bk', 'wb', 'wp', NULL , NULL , NULL , NULL , 'bp', 'bb', 'wn', 'wp', NULL , NULL , NULL , NULL , 'bp', 'bn', 'wr', 'wp', NULL , NULL , NULL , NULL , 'bp', 'br' );"; mysql_query($query); } public function load_game($auth) { $chessboard = new board($auth); $chessboard->drawboard(); } function get_auth() { return $this->auth; } public function RandomString($len){ $randstr = ''; srand((double)microtime()*1000000); for($i=0;$i<$len;$i++){ $n = rand(48,120); while (($n >= 58 && $n <= 64) || ($n >= 91 && $n <= 96)){ $n = rand(48,120); } $randstr .= chr($n); } return $randstr; } } ?><file_sep><?php include("includes/loadclasses.php"); $piece = new rook(); $piecetype = 'wk'; $from = 'a1'; $to = 'a3'; $shortcode = 'wr'; $auth = '<KEY>'; echo $piece->whiterookvalidate($from, $to, $shortcode, $auth); ?><file_sep><?php /** * PHP Class to abstract a database layer * * Written by <NAME> of chriskdesigns.com * * */ Class DB_Class { var $last_error; // Holds last error returned var $last_query; // Holds last query executed var $host; // MySQL host var $userName; // MySQL user var $pw; // MySQL password var $db; // MySQL database var $auto_slashes; // the calss will add/strip slashes when it can function __construct() { $this->host = 'localhost'; $this->userName = 'root'; $this->pw = '<PASSWORD>!'; $this->db = 'stock_wp'; $this->auto_slashes = TRUE; } /** * Connection class returns true or false * * @param string $persistant * * @return boolean */ public function connect($persistant=TRUE) { if ($persistant) { $this->db_link = mysql_pconnect($this->host, $this->userName, $this->pw); } else { $this->db_link = mysql_connect($this->host, $this->userName, $this->pw); } if (!$this->db_link) { $this->last_error = mysql_error(); return FALSE; } return ($this->select_db($this->db)) ? TRUE : FALSE; } /** * Returns last Error from MySQL */ public function get_last_error() { return $this->last_error; } /** * Do a generic SELECT query from the database * * @param string $query * * @return resource */ public function query($query) { $query = mysql_real_escape_string($query); if (!($results = mysql_query($query))) { $this->last_error = mysql_error(); return FALSE; } return $results; } /** * Select a single column from a single table * * @param string $col - The Column to return * @param string $table - The Table to query * @param array $case - Array of Casses to meet [column] => value * @param string $format - array or object * * @return mixed - Associative array or object of the query results */ public function get_col($col, $table, $case='', $format='array') { $query = 'SELECT ' . $col . ' FROM '. $table . ' WHERE 1=1'; if (is_array($case)) { $query .= $this->_parse_cases($case); } if (!$results = $this->query($query)) { return FALSE; } return $this->_parse_results($results, $format); } /** * Select specific columns from a single table * @param array $cols * @param string $table * @param array $case * @param string $format * * @return array */ public function get_cols($cols, $table, $case='', $format='array') { $columns = ''; foreach ($cols as $col) { $columns .= $col . ', '; } $columns = substr($columns, 0, (strlen($columns)-2)); $query = 'SELECT ' . $columns . ' FROM ' . $table . ' WHERE 1=1'; if (is_array($case)) { $query .= $this->_parse_cases($case); } if (!$results = $this->query($query)) { return FALSE; } return $this->_parse_results($results, $format); } /** * Select the database to use * * @param string $db * * @return boolean */ private function select_db($db='') { if (!mysql_select_db($this->db)) { $this->last_error = mysql_error(); return FALSE; } return TRUE; } /** * Parse the case array from a method * * @param array $cases * * @return string */ private function _parse_cases($cases) { $return = ''; foreach ($cases as $key=>$case) { $return .= ' AND ' . $key . ' = ' . $case; } return $return; } /** * Parse the results from the query method * * @param resource $results * @param string $format * * @return mixed */ private function _parse_results($results, $format) { while ($row = mysql_fetch_assoc($results)) { foreach ($row as $key=>$item) { $row_array[$key] = $item; } if ($format == 'object') { $return[] = (object)$row_array; } else { $return[] = $row_array; } } return $return; } } <file_sep>chessoop ======== OOP PHP Chess <file_sep><?php // version 1.0 session_start(); ?> <html> <head> <title>Chess Board using PHP</title> <link rel="stylesheet" type="text/css" media="all" href="includes/style.css" /> <?php include("includes/loadclasses.php"); ?> <script type="text/javascript" src="includes/scripts.js"></script> </head> <body> <h2>Chess Board</h2> <div align='center'> <?php if (isset($_SESSION['error'])) { echo $_SESSION['error']; unset($_SESSION['error']); } ?> <?php $auth = "{$_GET['auth']}"; $from = "{$_GET['from']}"; $to = "{$_GET['to']}"; if ($auth) { $chessgame = new chess_game(); $chessgame->load_game($auth); ?> <div align="center"> <form name="moveForm" method="post" action="move.php?auth=<?php echo $auth;?>"> <input type="hidden" name="from" value=""> <input type="hidden" name="to" value=""> <input type="hidden" name="Submit" value="Submit"> </form> </div> <div align='center'> <font face='arial' size='-2'>The last move was: <? echo $from ?> to <?php echo $to; ?></font> </div> <div align='center'> <form action='newgame.php?auth=<?php echo $auth;?>' method='post'> <input type='submit' value='Start A New Game >>'> </form> </div> <div align='center'> Your auth code for this game is <?php echo $auth; ?>. </div> <?php } else { ?> <div align="center"> <form method="post" action="auth.php"> <input type="text" name="auth" /> <input type="Submit" value="Submit"> </form> </div> <div align='center'> <form action='newgame.php' method='post'> <input type='submit' value='Start A New Game >>'> </form> </div> <?php } ?> </div> <br /><br /> </body> </html>
e9f476a7b891a4de9c13945da48f6c6c0444127d
[ "Markdown", "PHP" ]
15
PHP
cavegenius/chessoop
3ec42d58d205af957e7a1ac03c099b36cc95d62e
55b8cce1c90484ccbacb3f19d787bbd9c81be583
refs/heads/master
<file_sep>package main; import java.util.Arrays; import java.util.Random; public class Gene { private String gene; private Random generate = new Random(); public Gene() { this.gene=generateGene(); } public Gene(String gene) { this.gene=gene; } String generateGene() { int left=8; int i=0; String result = ""; while(left>0) { int n = generate.nextInt(32-left+1-i)+1; for(int j=0; j<n; j++) { char b = (char) (8-left+'0'); result+=b; i++; } left--; } for(i=result.length(); i<32; i++) { result+='7'; } return result; } String getGene() { return this.gene; } Gene childGene(Gene b) { //losowanie indeksow do ciÍcia int c1 = generate.nextInt(31); int c2; do {c2 = generate.nextInt(31);} while(c1==c2); if (c2<c1) { int temp=c1; c1=c2; c2=temp; } String result=""; //ciÍcie String a1 = this.gene.substring(0, c1+1); String a2 = this.gene.substring(c1+1, c2+1); String a3 = this.gene.substring(c2+1, 32); String b1 = b.gene.substring(0, c1+1); String b2 = b.gene.substring(c1+1, c2+1); String b3 = b.gene.substring(c2+1, 32); //sklejanie boolean isa1 = generate.nextBoolean(); if(isa1) result+=a1; else result+=b1; boolean isa2 = generate.nextBoolean(); if(isa2) result+=a2; else result+=b2; if(isa2 && isa1) result+=b3; else if(!isa2 && !isa1) result+=a3; else { isa1=generate.nextBoolean(); if(isa1) result+=a3; else result+=b3; } //dodac sprawdzanie czy sa wszystkie kierunki result = this.checkAndRepair(result); return new Gene(result); } public String toString() { return this.gene; } public boolean equals(Object other){ return(this.toString()==((Gene) other).toString()); } String checkAndRepair(String result) { int[] tab = new int[32]; for (int i = 0; i < 32; i++) { tab[i] = result.charAt(i) - '0'; } Arrays.sort(tab); for(int i=1; i<32; i++) { if(tab[i]!=tab[i-1] && tab[i-1]+1!=tab[i]) { int n; do { n=generate.nextInt(31); } while(tab[n]!=tab[n+1]); tab[n]=tab[i-1]+1; Arrays.sort(tab); } } String repaired = ""; for(int i=0; i<32; i++) { repaired+=(char)((int)tab[i]+'0'); } return repaired; } } <file_sep>package main; public class Reproduction { private Animal a; private Animal b; private WorldMap map; public Reproduction(Animal a, Animal b, WorldMap map) { this.a=a; this.b=b; this.map=map; } Vector2d childPos() { Vector2d result = this.a.getPosition(); result.subtract(new Vector2d(0,1)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.add(new Vector2d(1,0)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.add(new Vector2d(0,1)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.add(new Vector2d(0,1)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.subtract(new Vector2d(1,0)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.subtract(new Vector2d(1,0)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.subtract(new Vector2d(0,1)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.subtract(new Vector2d(0,1)); if(map.belongs(result) && !map.isOccupied(result)) return result; result.add(new Vector2d(1, 0)); if(map.belongs(result)) return result; result.add(new Vector2d(1, 0)); if(map.belongs(result)) return result; result.subtract(new Vector2d(0, 1)); if(map.belongs(result)) return result; result.subtract(new Vector2d(0, 1)); if(map.belongs(result)) return result; result.subtract(new Vector2d(1, 0)); if(map.belongs(result)) return result; result.subtract(new Vector2d(1, 0)); if(map.belongs(result)) return result; result.add(new Vector2d(0, 1)); if(map.belongs(result)) return result; result.add(new Vector2d(0, 1)); return result; } Animal reproduce() { int energy = a.getEnergy()/4 + b.getEnergy()/4; a.addEnergy(-a.getEnergy()/4); b.addEnergy(-b.getEnergy()/4); Vector2d pos = childPos(); Gene gene = a.getGene().childGene(b.getGene()); Animal child = new Animal(energy, pos, gene, this.map); return child; } } <file_sep>package main; import java.util.ArrayList; import java.util.List; import java.util.Random; class Animal { private int energy; private MapDirection dir=MapDirection.NORTH; private Vector2d position; private List<IPositionChangeObserver> observers = new ArrayList<>(); private Gene genes; private WorldMap map; private int dayBorn; private int childrenNumber; private Random generate = new Random(); public Animal(int startEnergy, Vector2d position, Gene genes, WorldMap map) { this.energy=startEnergy; this.position=position; this.genes=genes; this.dir=dir.random(); this.map=map; this.dayBorn=map.getDay(); this.childrenNumber=0; } public Vector2d getPosition() { return this.position; } public int getEnergy() { return this.energy; } public void addEnergy(int energyToAdd) { this.energy+=energyToAdd; } Gene getGene() { return this.genes; } public void move() { int rotates=genes.getGene().charAt(generate.nextInt(32)) - '0'; for(int i=0; i<rotates; i++) this.dir = this.dir.next(); Vector2d oldPos = this.position; Vector2d moveCoords = this.dir.toUnitVector(); moveCoords = this.position.add(moveCoords); this.position = moveCoords; if(!map.belongs(this.position)) this.position=map.otherside(this.position); positionChanged(oldPos); this.energy--; } public void addObserver(IPositionChangeObserver observer) { this.observers.add(observer); } public void removeObserver(IPositionChangeObserver observer) { this.observers.remove(observer); } private void positionChanged(Vector2d oldPosition) { for (IPositionChangeObserver obs: this.observers) { obs.positionChanged(oldPosition, this.position, this); } } public int getBirthDay() { return this.dayBorn; } public void addChild() { this.childrenNumber++; } public int getChildrenNumber() { return this.childrenNumber; } } <file_sep>package main; import java.awt.*; import javax.swing.JPanel; import javax.swing.JLabel; import java.io.PrintWriter; public class ButtonPanel extends JPanel{ public static final int HEIGHT = 100; public static final int WIDTH = 300; private JLabel animals; private JLabel grass; private JLabel dominantGene; private JLabel avgLifespan; private JLabel avgChildren; private JLabel avgEnergy; private JLabel currentAnimalGene; private JLabel currentAnimalDead; private JLabel currentKidsNumber; private JLabel currentScionNumber; private WorldMap map; private Animal currentAnimal; private boolean currentAnimalIsDead; public ButtonPanel(WorldMap map) { this.map=map; this.animals = new JLabel("Liczba zwierzat: " + Integer.toString(this.map.getAnimalsNumber())); this.grass = new JLabel("Liczba roslin: " + Integer.toString(this.map.getGrassNumber())); this.dominantGene = new JLabel("brak"); this.avgLifespan = new JLabel("zadne zwierze nie umarlo"); this.avgChildren = new JLabel("0"); this.avgEnergy = new JLabel("0"); this.currentAnimalGene = new JLabel(""); this.currentAnimalDead = new JLabel(""); this.currentKidsNumber = new JLabel(""); this.currentScionNumber = new JLabel(""); setLayout(new FlowLayout()); setPreferredSize(new Dimension(WIDTH, HEIGHT)); add(grass); add(animals); add(dominantGene); add(avgLifespan); add(avgChildren); add(avgEnergy); add(new JLabel("Sledzenie zwierzecia:")); add(this.currentAnimalGene); add(this.currentAnimalDead); add(this.currentKidsNumber); add(this.currentScionNumber); this.setLayout(new GridLayout(13,1)); } public void update(Animal animal) { this.animals.setText("Liczba zwierzat: " + Integer.toString(this.map.getAnimalsNumber())); this.grass.setText("Liczba roslin: " + Integer.toString(this.map.getGrassNumber())); if(this.map.getDominantGene()==null) this.dominantGene.setText("Wszystkie zwierzeta umarly"); else this.dominantGene.setText("Dominujacy genotyp: " +this.map.getDominantGene().toString()); if(this.map.getAvgLifespan()!=0) this.avgLifespan.setText("Sredni czas zycia: " + Double.toString(this.map.getAvgLifespan())); this.avgChildren.setText("Srednia ilosc dzieci: " + Double.toString(this.map.getAvgChildren())); this.avgEnergy.setText("Srednia ilosc energii: " + Double.toString(this.map.getAvgEnergy())); if(animal!=this.currentAnimal) { this.currentAnimalIsDead=false; this.currentAnimal=animal; this.currentAnimalGene.setText(animal.getGene().toString()); this.currentAnimalDead.setText("Zwierze zyje"); map.trackNewAnimal(animal); } if(this.currentAnimal!=null && this.currentAnimalIsDead==false) { if(!this.map.animalExists(this.currentAnimal)) { this.currentAnimalDead.setText("Zwierze umarlo w dniu: "+ Integer.toString(this.map.getDay())); this.currentAnimalIsDead=true; } this.currentKidsNumber.setText("Liczba dzieci od poczatku sledzenia: "+ Integer.toString(this.map.getCurrentKidsNumber())); this.currentScionNumber.setText("Liczba potomkow od poczatku sledzenia: "+ Integer.toString(this.map.getCurrentScionNumber())); } } public void saveStats(PrintWriter save) { save.println("Liczba zwierzat: " + Integer.toString(this.map.getAnimalsNumber())); save.println("Liczba roslin: " + Integer.toString(this.map.getGrassNumber())); if(this.map.getDominantGene()==null) save.println("Wszystkie zwierzeta umarly"); else save.println("Dominujacy genotyp: " +this.map.getDominantGene().toString()); save.println("Sredni czas zycia: " + Double.toString(this.map.getAvgLifespan())); save.println("Srednia ilosc dzieci: " + Double.toString(this.map.getAvgChildren())); save.println("Srednia ilosc energii: " + Double.toString(this.map.getAvgEnergy())); } }<file_sep>package main; public interface IPositionChangeObserver { public void positionChanged(Vector2d oldPosition, Vector2d newPosition, Animal a); }<file_sep># evolution-simulator Customizable evolution simulator ![](/preview/simulation.gif)
8514aa78a3cf89fe8e15ad7181877f2979832ec5
[ "Markdown", "Java" ]
6
Java
sswrk/WorldMap
71ecba5594cbd56af402d06efa1818ede25a98e5
aa699a59c8c69355b6a4f02a10c970631825d832
refs/heads/main
<repo_name>SarthakMakhija/kotlin-webinar<file_sep>/src/test/kotlin/in/meetkt/catalogue/fixture/ProductFixture.kt package `in`.meetkt.catalogue.fixture import `in`.meetkt.basket.domain.model.Price import `in`.meetkt.catalogue.domain.model.Product import `in`.meetkt.catalogue.domain.model.ProductId class ProductFixture private constructor() { private var barcode = "ZZZZZZZ" private var productId: ProductId = ProductId("00000") private var price = Price.ZERO companion object { fun aProduct() = ProductFixture() } fun build(): Product = Product(productId, barcode, price) fun withProductId(id: String): ProductFixture = this.also { it.productId = ProductId(id) } fun withBarcode(barcode: String): ProductFixture = this.also { it.barcode = barcode } fun withPriceInt(price: Int) = withPriceDouble(price.toDouble()) fun withPriceDouble(price: Double) = this.also { it.price = Price(price) } }<file_sep>/src/main/kotlin/in/meetkt/invoice/domain/model/Invoice.kt package `in`.meetkt.invoice.domain.model import `in`.meetkt.basket.domain.model.Basket import `in`.meetkt.basket.domain.model.Items import `in`.meetkt.basket.domain.model.Price import `in`.meetkt.catalogue.domain.model.ProductId class Invoice private constructor(private val invoicedItems: InvoicedItems) { companion object { fun `for`(basket: Basket) = Invoice(InvoicedItems.from(basket.allItems())) } fun totalItems() = invoicedItems.totalItems() fun totalPrice() = invoicedItems.totalPrice() fun totalItemsFor(productId: ProductId) = invoicedItems.totalItemsFor(productId) } class InvoicedItems private constructor(items: List<InvoicedItem>) : List<InvoicedItems.InvoicedItem> by items { companion object { fun from(items: Items) = InvoicedItems( items .groupBy { item -> item.productId } .map { it.key to Items(it.value.toMutableList()) } .map(InvoicedItem::from) ) } fun totalItems() = this.map { it.quantity }.sum() fun totalPrice() = this.map { it.totalPrice }.foldRight(Price.ZERO, { accumulator, price -> accumulator.add(price) }) fun totalItemsFor(productId: ProductId) = this.filter { it.matches(productId) }.map { it.quantity }.sum() class InvoicedItem private constructor( private val productId: ProductId, val quantity: Int, val totalPrice: Price ) { companion object { fun from(itemsByProductId: Pair<ProductId, Items>) = InvoicedItem( itemsByProductId.first, itemsByProductId.second.size, itemsByProductId.second.totalPrice() ) } fun matches(productId: ProductId) = this.productId == productId } }<file_sep>/src/main/java/org/meetkt/catalogue/exception/NoProductFoundForBarcodeException.java package org.meetkt.catalogue.exception; public class NoProductFoundForBarcodeException extends RuntimeException { public NoProductFoundForBarcodeException(String barcode) { super(String.format("No product found for %s", barcode)); } } <file_sep>/README.md # kotlin-webinar - Kotlin Webinar <file_sep>/src/test/kotlin/in/meetkt/display/domain/model/DisplayUnitTest.kt package `in`.meetkt.display.domain.model import `in`.meetkt.basket.domain.model.Basket import `in`.meetkt.basket.domain.model.Item import `in`.meetkt.basket.domain.model.Items import `in`.meetkt.basket.domain.model.Price import `in`.meetkt.catalogue.fixture.ProductFixture import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class DisplayUnitTest { @Test fun shouldReturnItemsFromBasket() { val product = ProductFixture.aProduct().withProductId("001").withPriceDouble(12.21).build() val expectedItems = Items(mutableListOf(Item(product))) val basket = Basket.empty() basket.add(product) val display = Display(basket) assertThat(display.allBasketItems()).isEqualTo(expectedItems) } @Test fun shouldReturnTotalPriceOfAllItemsInBasket() { val basket = Basket.empty() basket.add(ProductFixture.aProduct().withProductId("001").withPriceInt(10).build()) basket.add(ProductFixture.aProduct().withProductId("002").withPriceDouble(20.78).build()) val display = Display(basket) assertThat(display.totalBasketPrice()).isEqualTo(Price(30.78)) } @Test fun shouldDisplayInvoiceWithOneItemForABasket() { val basket = Basket.empty() basket.add(ProductFixture.aProduct().withProductId("001").withPriceInt(10).build()) val display = Display(basket) val invoice = display.invoice() assertThat(invoice.totalItems()).isEqualTo(1) } }<file_sep>/src/main/kotlin/in/meetkt/basket/domain/model/Items.kt package `in`.meetkt.basket.domain.model import `in`.meetkt.catalogue.domain.model.ProductId class Items(private val items: MutableList<Item>) : MutableList<Item> by items { fun totalPrice(): Price = items.map { it.price }.foldRight(Price.ZERO, { accumulator, price -> accumulator.add(price) }) fun findFirst(productId: ProductId): Item? = items.firstOrNull { item -> item.contains(productId) } override fun toString(): String { return "Items(items=$items)" } override fun equals(other: Any?): Boolean { if (this === other) return true if (javaClass != other?.javaClass) return false other as Items if (items != other.items) return false return true } override fun hashCode(): Int { return items.hashCode() } }<file_sep>/src/test/java/org/meetkt/display/domain/model/DisplayUnitTest.java package org.meetkt.display.domain.model; import org.junit.jupiter.api.Test; import org.meetkt.basket.domain.model.Basket; import org.meetkt.basket.domain.model.Item; import org.meetkt.basket.domain.model.Items; import org.meetkt.basket.domain.model.Price; import org.meetkt.invoice.domain.model.Invoice; import org.meetkt.catalogue.domain.model.Product; import org.meetkt.catalogue.fixture.ProductFixture; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; class DisplayUnitTest { @Test void shouldReturnItemsFromBasket() { Product product = ProductFixture.aProduct().withProductId("001").build(); Items expectedItems = new Items(List.of(new Item(product))); Basket basket = Basket.empty(); basket.add(product); Display display = new Display(basket); assertThat(display.allBasketItems()).isEqualTo(expectedItems); } @Test void shouldReturnTotalPriceOfAllItemsInBasket() { Basket basket = Basket.empty(); basket.add(ProductFixture.aProduct().withProductId("001").withPriceInt(10).build()); basket.add(ProductFixture.aProduct().withProductId("002").withPriceDouble(20.78).build()); Display display = new Display(basket); assertThat(display.totalBasketPrice()).isEqualTo(new Price(30.78)); } @Test void shouldDisplayInvoiceWithOneItemForABasket() { Basket basket = Basket.empty(); basket.add(ProductFixture.aProduct().withProductId("001").withPriceInt(10).build()); Display display = new Display(basket); Invoice invoice = display.invoice(); assertThat(invoice.totalItems()).isEqualTo(1); } }<file_sep>/src/main/kotlin/in/meetkt/catalogue/exception/NoProductFoundForBarcodeException.kt package `in`.meetkt.catalogue.exception class NoProductFoundForBarcodeException(barcode: String) : RuntimeException("No product found for $barcode")<file_sep>/src/main/java/org/meetkt/catalogue/domain/model/Catalogue.java package org.meetkt.catalogue.domain.model; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.function.Function; import static java.util.stream.Collectors.toMap; public class Catalogue { private final Map<String, Product> productByBarcode; public Catalogue(List<Product> products) { this.productByBarcode = Objects.requireNonNull(products).stream().collect(toMap(Product::barcode, Function.identity())); } public Optional<Product> productWith(String barcode) { return Optional.ofNullable(productByBarcode.get(barcode)); } }<file_sep>/src/test/kotlin/in/meetkt/catalogue/exception/NoProductFoundForBarcodeExceptionUnitTest.kt package `in`.meetkt.catalogue.exception import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class NoProductFoundForBarcodeExceptionUnitTest { @Test fun shouldReturnAnExceptionMessage() { val exception = NoProductFoundForBarcodeException("test-barcode") assertThat(exception.message).isEqualTo("No product found for test-barcode") } }<file_sep>/src/main/java/org/meetkt/catalogue/domain/model/ProductId.java package org.meetkt.catalogue.domain.model; import java.util.Objects; public class ProductId { private final String id; public ProductId(String id) { this.id = id; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ProductId)) return false; ProductId productId = (ProductId) o; return Objects.equals(id, productId.id); } @Override public int hashCode() { return id.hashCode(); } } <file_sep>/src/main/kotlin/in/meetkt/basket/domain/model/Item.kt package `in`.meetkt.basket.domain.model import `in`.meetkt.catalogue.domain.model.Product import `in`.meetkt.catalogue.domain.model.ProductId class Item(product: Product) { val productId = product.id val price = product.price fun contains(productId: ProductId): Boolean { return this.productId == productId } override fun equals(other: Any?): Boolean { if (this === other) return true if (javaClass != other?.javaClass) return false other as Item if (productId != other.productId) return false return true } override fun hashCode(): Int { return productId.hashCode() } override fun toString(): String { return "Item(productId=$productId, price=$price)" } }<file_sep>/src/test/kotlin/in/meetkt/invoice/domain/model/InvoiceUnitTest.kt package `in`.meetkt.invoice.domain.model import `in`.meetkt.basket.domain.model.Basket import `in`.meetkt.basket.domain.model.Price import `in`.meetkt.catalogue.domain.model.ProductId import `in`.meetkt.catalogue.fixture.ProductFixture import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class InvoiceUnitTest { @Test fun shouldReturnTotalItems() { val basket = Basket.empty() basket.add(ProductFixture.aProduct().withProductId("001").withPriceInt(10).build()) basket.add(ProductFixture.aProduct().withProductId("002").withPriceDouble(20.78).build()) val invoice = Invoice.`for`(basket) val totalItems = invoice.totalItems() assertThat(totalItems).isEqualTo(2) } @Test fun shouldReturnTotalPrice() { val basket = Basket.empty() basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()) basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()) val invoice = Invoice.`for`(basket) val totalPrice = invoice.totalPrice() assertThat(totalPrice).isEqualTo(Price(41.56)) } @Test fun shouldReturnTotalItemsForAProductId() { val basket = Basket.empty() basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()) basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()) val invoice = Invoice.`for`(basket) val totalItems = invoice.totalItemsFor(ProductId("001")) assertThat(totalItems).isEqualTo(2) } }<file_sep>/src/test/kotlin/in/meetkt/basket/domain/model/ItemUnitTest.kt package `in`.meetkt.basket.domain.model import `in`.meetkt.catalogue.domain.model.ProductId import `in`.meetkt.catalogue.fixture.ProductFixture import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class ItemUnitTest { @Test fun shouldReturnTrueGivenItemIsOfAGivenProduct() { val product = ProductFixture.aProduct().withProductId("001").build() val item = Item(product) val containsProduct = item.contains(ProductId("001")) assertThat(containsProduct).isTrue } @Test fun shouldReturnFalseGivenItemIsNotOfGivenProduct() { val product = ProductFixture.aProduct().withProductId("001").build() val item = Item(product) val containsProduct = item.contains(ProductId("002")) assertThat(containsProduct).isFalse } @Test fun shouldReturnTrueGiven2ItemAreEqual() { val product = ProductFixture.aProduct().withProductId("001").withPriceDouble(12.21).build() val item = Item(product) val otherItem = Item(product) assertThat(item).isEqualTo(otherItem) } }<file_sep>/src/test/java/org/meetkt/catalogue/fixture/ProductFixture.java package org.meetkt.catalogue.fixture; import org.meetkt.catalogue.domain.model.Product; import org.meetkt.catalogue.domain.model.ProductId; import org.meetkt.basket.domain.model.Price; public class ProductFixture { private String barcode = "ZZZZZZZ"; private ProductId productId; private Price price = Price.ZERO; private ProductFixture() { } public static ProductFixture aProduct() { return new ProductFixture(); } public ProductFixture withBarcode(String barcode) { this.barcode = barcode; return this; } public ProductFixture withProductId(String productId) { this.productId = new ProductId(productId); return this; } public ProductFixture withPriceInt(int price) { this.price = new Price(price); return this; } public ProductFixture withPriceDouble(double price) { this.price = new Price(price); return this; } public Product build() { return new Product(productId, barcode, price); } } <file_sep>/src/test/kotlin/in/meetkt/catalogue/domain/model/ProductIdUnitTest.kt package `in`.meetkt.catalogue.domain.model import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class ProductIdUnitTest { @Test fun shouldReturnTrueGiven2ProductIdsAreEqual() { val productId = ProductId("001") val otherProductId = ProductId("001") assertThat(productId).isEqualTo(otherProductId) } }<file_sep>/src/main/kotlin/in/meetkt/basket/domain/model/Basket.kt package `in`.meetkt.basket.domain.model import `in`.meetkt.catalogue.domain.model.Product import `in`.meetkt.catalogue.domain.model.ProductId class Basket { private val items: Items = Items(arrayListOf()) companion object { fun empty(): Basket { return Basket() } } fun add(product: Product) { items += Item(product) } fun add(vararg products: Product) { products.forEach { items += Item(it) } } fun deleteAllProductsMatching(productId: ProductId) { items.removeIf { it.contains(productId) } } fun findBy(productId: ProductId): Item? = items.findFirst(productId) fun totalItems(): Int = items.size fun totalPrice(): Price = items.totalPrice() //TODO: Check why does the display unit test fail when we return new Items fun allItems() = items }<file_sep>/src/test/kotlin/in/meetkt/basket/domain/model/ItemsUnitTest.kt package `in`.meetkt.basket.domain.model import `in`.meetkt.catalogue.domain.model.ProductId import `in`.meetkt.catalogue.fixture.ProductFixture import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class ItemsUnitTest { @Test fun shouldReturnAnEmptyItemGivenProductDoesNotExistInItems() { val product = ProductFixture.aProduct().withProductId("001").build() val items = Items(mutableListOf(Item(product))) val item = items.findFirst(ProductId("non-existing")) assertThat(item).isNull() } @Test fun shouldReturnAnItem() { val product = ProductFixture.aProduct().withProductId("001").build() val items = Items(mutableListOf(Item(product))) val item = items.findFirst(ProductId("001")) assertThat(item).isEqualTo(Item(product)) } @Test fun shouldReturnTotalPrice() { val product = ProductFixture.aProduct().withProductId("001").withPriceInt(100).build() val otherProduct = ProductFixture.aProduct().withProductId("001").withPriceDouble(10.87).build() val items = Items( mutableListOf( Item(product), Item(otherProduct) ) ) val totalPrice = items.totalPrice() assertThat(totalPrice).isEqualTo(Price(110.87)) } @Test fun shouldReturnTrueGiven2ItemsAreEqual() { val product = ProductFixture.aProduct().withProductId("001").withPriceDouble(12.21).build() val otherProduct = ProductFixture.aProduct().withProductId("001").withPriceDouble(12.21).build() val items = mutableListOf(Item(product)) val otherItems = mutableListOf(Item(otherProduct)) assertThat(items).isEqualTo(otherItems) } }<file_sep>/src/test/kotlin/in/meetkt/catalogue/BarcodeScannerUnitTest.kt package `in`.meetkt.catalogue import `in`.meetkt.catalogue.domain.model.Catalogue import `in`.meetkt.catalogue.domain.model.ProductId import `in`.meetkt.catalogue.fixture.ProductFixture import arrow.core.Option import io.mockk.every import io.mockk.mockk import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class BarcodeScannerUnitTest { @Test fun shouldReturnAnExceptionGivenProductDoesNotExistForTheBarcode() { val barcode = "no-product-found-for-this-barcode" val catalogue = mockk<Catalogue>() every { catalogue.productWith(barcode) } returns Option.empty() val barcodeScanner = BarcodeScanner(catalogue) val product = barcodeScanner.scanOrThrow(barcode) assertThat(product.isLeft()).isTrue } @Test fun shouldReturnAProductForABarcode() { val barcode = "product-001-barcode" val catalogue = mockk<Catalogue>() val barcodeScanner = BarcodeScanner(catalogue) every { catalogue.productWith(barcode) } returns Option.just(ProductFixture.aProduct().withProductId("001").withBarcode(barcode).build()) val product = barcodeScanner.scanOrThrow(barcode) assertThat(product.orNull()?.id).isEqualTo(ProductId("001")) } } <file_sep>/src/main/kotlin/in/meetkt/catalogue/domain/model/Catalogue.kt package `in`.meetkt.catalogue.domain.model import arrow.core.Option class Catalogue(products: List<Product>) { private val productByBarcode: Map<String, Product> = products.map { it.barcode to it }.toMap() fun productWith(barcode: String): Option<Product> = Option.fromNullable(productByBarcode[barcode]) } <file_sep>/src/main/java/org/meetkt/catalogue/domain/model/Product.java package org.meetkt.catalogue.domain.model; import org.meetkt.basket.domain.model.Price; import java.util.Objects; public class Product { private final ProductId id; private final String barcode; private final Price price; public Product(ProductId id, String barcode, Price price) { this.id = Objects.requireNonNull(id); this.barcode = Objects.requireNonNull(barcode); this.price = Objects.requireNonNull(price); } public ProductId id() { return id; } public String barcode() { return barcode; } public Price price() { return price; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Product)) return false; Product product = (Product) o; return id.equals(product.id); } @Override public int hashCode() { return id.hashCode(); } } <file_sep>/src/test/java/org/meetkt/catalogue/BarcodeScannerUnitTest.java package org.meetkt.catalogue; import org.junit.jupiter.api.Test; import org.meetkt.catalogue.domain.model.Catalogue; import org.meetkt.catalogue.domain.model.Product; import org.meetkt.catalogue.domain.model.ProductId; import org.meetkt.catalogue.exception.NoProductFoundForBarcodeException; import java.util.Optional; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.meetkt.catalogue.fixture.ProductFixture.aProduct; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; class BarcodeScannerUnitTest { @Test void shouldThrowAnExceptionGivenProductDoesNotExistForTheBarcode() { String barcode = "no-product-found-for-this-barcode"; Catalogue catalogue = mock(Catalogue.class); when(catalogue.productWith(barcode)).thenReturn(Optional.empty()); BarcodeScanner barcodeScanner = new BarcodeScanner(catalogue); assertThrows(NoProductFoundForBarcodeException.class, () -> barcodeScanner.scanOrThrow(barcode) ); } @Test void shouldReturnAProductForABarcode() { String barcode = "product-001-barcode"; Catalogue catalogue = mock(Catalogue.class); BarcodeScanner barcodeScanner = new BarcodeScanner(catalogue); when(catalogue.productWith(barcode)).thenReturn(Optional.of(aProduct().withProductId("001").withBarcode(barcode).build())); Product product = barcodeScanner.scanOrThrow(barcode); assertThat(product.id()).isEqualTo(new ProductId("001")); } }<file_sep>/src/test/java/org/meetkt/basket/domain/model/ItemsUnitTest.java package org.meetkt.basket.domain.model; import org.junit.jupiter.api.Test; import org.meetkt.catalogue.domain.model.Product; import org.meetkt.catalogue.domain.model.ProductId; import java.util.List; import java.util.Optional; import static org.assertj.core.api.Assertions.assertThat; import static org.meetkt.catalogue.fixture.ProductFixture.aProduct; class ItemsUnitTest { @Test void shouldReturnAnEmptyItemGivenProductDoesNotExistInItems() { Product product = aProduct().withProductId("001").build(); Items items = new Items(List.of(new Item(product))); Optional<Item> item = items.findFirst(new ProductId("non-existing")); assertThat(item).isEmpty(); } @Test void shouldReturnAnItem() { Product product = aProduct().withProductId("001").build(); Items items = new Items(List.of(new Item(product))); Optional<Item> item = items.findFirst(new ProductId("001")); assertThat(item.get()).isEqualTo(new Item(product)); } @Test void shouldReturnTotalPrice() { Product product = aProduct().withProductId("001").withPriceInt(100).build(); Product otherProduct = aProduct().withProductId("001").withPriceDouble(10.87).build(); Items items = new Items(List.of(new Item(product), new Item(otherProduct))); Price totalPrice = items.totalPrice(); assertThat(totalPrice).isEqualTo(new Price(110.87)); } }<file_sep>/src/main/kotlin/in/meetkt/catalogue/domain/model/Product.kt package `in`.meetkt.catalogue.domain.model import `in`.meetkt.basket.domain.model.Price class Product( val id: ProductId, val barcode: String, val price: Price ) { override fun equals(other: Any?): Boolean { if (this === other) return true if (javaClass != other?.javaClass) return false other as Product if (id != other.id) return false return true } override fun hashCode(): Int { return id.hashCode() } }<file_sep>/src/test/java/org/meetkt/invoice/domain/model/InvoiceUnitTest.java package org.meetkt.invoice.domain.model; import org.junit.jupiter.api.Test; import org.meetkt.basket.domain.model.Basket; import org.meetkt.catalogue.domain.model.ProductId; import org.meetkt.catalogue.fixture.ProductFixture; import org.meetkt.basket.domain.model.Price; import static org.assertj.core.api.Assertions.assertThat; class InvoiceUnitTest { @Test void shouldReturnTotalItems() { Basket basket = Basket.empty(); basket.add(ProductFixture.aProduct().withProductId("001").withPriceInt(10).build()); basket.add(ProductFixture.aProduct().withProductId("002").withPriceDouble(20.78).build()); Invoice invoice = Invoice.of(basket); int totalItems = invoice.totalItems(); assertThat(totalItems).isEqualTo(2); } @Test void shouldReturnTotalPrice() { Basket basket = Basket.empty(); basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()); basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()); Invoice invoice = Invoice.of(basket); Price totalPrice = invoice.totalPrice(); assertThat(totalPrice).isEqualTo(new Price(41.56)); } @Test void shouldReturnTotalItemsForAProductId() { Basket basket = Basket.empty(); basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()); basket.add(ProductFixture.aProduct().withProductId("001").withPriceDouble(20.78).build()); Invoice invoice = Invoice.of(basket); int totalItems = invoice.totalItemsFor(new ProductId("001")); assertThat(totalItems).isEqualTo(2); } }<file_sep>/src/main/kotlin/in/meetkt/basket/domain/model/Price.kt package `in`.meetkt.basket.domain.model data class Price(private val value: Double) { fun add(other: Price): Price { return Price(value + other.value) } companion object { val ZERO = Price(0.0) } }<file_sep>/settings.gradle rootProject.name = 'kotlin-webinar' <file_sep>/src/main/kotlin/in/meetkt/catalogue/domain/model/ProductId.kt package `in`.meetkt.catalogue.domain.model inline class ProductId(val id: String)<file_sep>/build.gradle plugins { id 'java' id 'org.jetbrains.kotlin.jvm' version '1.4.10' } group 'org.meetkt' version '1.0-SNAPSHOT' repositories { mavenCentral() } dependencies { implementation 'org.jetbrains.kotlin:kotlin-stdlib' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0' testImplementation 'io.mockk:mockk:1.10.0' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' testCompile 'org.assertj:assertj-core:3.19.0' testCompile 'org.mockito:mockito-all:1.10.19' implementation 'io.arrow-kt:arrow-core:0.11.0' implementation 'io.arrow-kt:arrow-syntax:0.11.0' } test { useJUnitPlatform() } <file_sep>/src/test/kotlin/in/meetkt/catalogue/domain/model/CatalogueUnitTest.kt package `in`.meetkt.catalogue.domain.model import `in`.meetkt.catalogue.fixture.ProductFixture import arrow.core.getOrElse import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class CatalogueUnitTest { @Test fun shouldNotReturnAProductGivenCatalogueIsEmpty() { val catalogue = Catalogue(emptyList()) val product = catalogue.productWith("any-barcode") assertThat(product.isEmpty()).isTrue } @Test fun shouldNotReturnAProductGivenProductDoesNotExistForTheBarcode() { val catalogue = Catalogue(listOf(ProductFixture.aProduct().withProductId("001").withBarcode("barcode-001").build())) val product = catalogue.productWith("non-existent-product-for-barcode") assertThat(product.isEmpty()).isTrue } @Test fun shouldReturnAProductWithProductIdGivenABarcode() { val catalogue = Catalogue(listOf(ProductFixture.aProduct().withProductId("001").withBarcode("barcode-001").build())) val product = catalogue.productWith("barcode-001") assertThat(product.getOrElse { ProductFixture.aProduct().build() }.id).isEqualTo(ProductId("001")) } } <file_sep>/src/main/kotlin/in/meetkt/display/domain/model/Display.kt package `in`.meetkt.display.domain.model import `in`.meetkt.basket.domain.model.Basket import `in`.meetkt.basket.domain.model.Items import `in`.meetkt.basket.domain.model.Price import `in`.meetkt.invoice.domain.model.Invoice class Display(private val basket: Basket) { fun totalBasketPrice(): Price = basket.totalPrice() fun allBasketItems(): Items = basket.allItems() fun invoice(): Invoice = Invoice.`for`(basket) }<file_sep>/src/test/kotlin/in/meetkt/basket/domain/model/BasketUnitTest.kt package `in`.meetkt.basket.domain.model import `in`.meetkt.catalogue.domain.model.ProductId import `in`.meetkt.catalogue.fixture.ProductFixture import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class BasketUnitTest { @Test fun shouldAddAProductInBasket() { val product = ProductFixture.aProduct().withProductId("001").build() val basket = Basket.empty() basket.add(product) assertThat(basket.totalItems()).isEqualTo(1) } @Test fun shouldAddMultipleProductsInBasketGivenSameProducts() { val basket = Basket.empty() basket.add( ProductFixture.aProduct().withProductId("001").build(), ProductFixture.aProduct().withProductId("001").build() ) assertThat(basket.totalItems()).isEqualTo(2) } @Test fun shouldAddMultipleProductsInBasketGivenDifferentProducts() { val basket = Basket.empty() basket.add( ProductFixture.aProduct().withProductId("001").build(), ProductFixture.aProduct().withProductId("002").build() ) assertThat(basket.totalItems()).isEqualTo(2) } @Test fun shouldDeleteAllProductsMatchingProductId() { val product = ProductFixture.aProduct().withProductId("001").build() val basket = Basket.empty() basket.add(product) basket.add(product) basket.deleteAllProductsMatching(ProductId("001")) assertThat(basket.totalItems()).isEqualTo(0) } @Test fun shouldReturnTotalItemsInBasket() { val product = ProductFixture.aProduct().withProductId("001").build() val basket = Basket.empty() basket.add(product) val totalItemsCount = basket.totalItems() assertThat(totalItemsCount).isEqualTo(1) } @Test fun shouldReturnAnEmptyItemGivenProductDoesNotExistInBasket() { val basket = Basket.empty() val item = basket.findBy(ProductId("001")) assertThat(item).isNull() } @Test fun shouldReturnAnItemFromBasket() { val basket = Basket.empty() val product = ProductFixture.aProduct().withProductId("001").build() basket.add(product) val item = basket.findBy(ProductId("001")) assertThat(item).isEqualTo(Item(product)) } @Test fun shouldReturnTotalBasketPrice() { val basket = Basket.empty() val product = ProductFixture.aProduct().withProductId("001").withPriceInt(12).build() val otherProduct = ProductFixture.aProduct().withProductId("001").withPriceDouble(14.75).build() basket.add(product, otherProduct) val totalPrice = basket.totalPrice() assertThat(totalPrice).isEqualTo(Price(26.75)) } }<file_sep>/src/main/java/org/meetkt/basket/domain/model/Item.java package org.meetkt.basket.domain.model; import org.meetkt.catalogue.domain.model.Product; import org.meetkt.catalogue.domain.model.ProductId; import java.util.Objects; public class Item { private final ProductId productId; private final Price price; public Item(Product product) { Objects.requireNonNull(product); this.productId = product.id(); this.price = product.price(); } //TODO: Think of a better name public boolean contains(ProductId productId) { return this.productId.equals(productId); } public Price price() { return price; } public ProductId productId() { return productId; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Item)) return false; Item item = (Item) o; return Objects.equals(productId, item.productId); } @Override public int hashCode() { return productId.hashCode(); } } <file_sep>/src/main/kotlin/in/meetkt/catalogue/BarcodeScanner.kt package `in`.meetkt.catalogue import `in`.meetkt.catalogue.domain.model.Catalogue import `in`.meetkt.catalogue.domain.model.Product import `in`.meetkt.catalogue.exception.NoProductFoundForBarcodeException import arrow.core.Either class BarcodeScanner(private val catalogue: Catalogue) { fun scanOrThrow(barcode: String): Either<NoProductFoundForBarcodeException, Product> { return catalogue .productWith(barcode) .toEither { NoProductFoundForBarcodeException(barcode) } } } <file_sep>/src/main/java/org/meetkt/invoice/domain/model/Invoice.java package org.meetkt.invoice.domain.model; import org.meetkt.basket.domain.model.Basket; import org.meetkt.basket.domain.model.Item; import org.meetkt.basket.domain.model.Items; import org.meetkt.catalogue.domain.model.ProductId; import org.meetkt.basket.domain.model.Price; import java.util.ArrayList; import java.util.Collections; import java.util.Map; import java.util.stream.Collectors; public class Invoice { private final InvoicedItems invoicedItems; private Invoice(Basket basket) { this.invoicedItems = new InvoicedItems(basket.allItems()); } public static Invoice of(Basket basket) { return new Invoice(basket); } public int totalItems() { return invoicedItems.totalItems(); } public Price totalPrice() { return invoicedItems.totalPrice(); } public int totalItemsFor(ProductId productId) { return invoicedItems.totalItemsFor(productId); } } class InvoicedItems extends ArrayList<InvoicedItems.InvoicedItem> { public InvoicedItems(Items items) { super(items .stream() .collect(Collectors.groupingBy( Item::productId, Collectors.toCollection(() -> new Items(Collections.emptyList())) ) ) .entrySet() .stream() .map(InvoicedItem::new) .collect(Collectors.toList()) ); } public int totalItems() { return this.stream().map(InvoicedItem::quantity).reduce(0, Integer::sum); } public Price totalPrice() { return this.stream().map(InvoicedItem::totalPrice).reduce(Price.ZERO, (Price::add)); } public int totalItemsFor(ProductId productId) { return this.stream().filter(invoicedItem -> invoicedItem.matches(productId)).map(InvoicedItem::quantity).reduce(0, Integer::sum); } static class InvoicedItem { private final ProductId productId; private final int quantity; private final Price totalPrice; public InvoicedItem(Map.Entry<ProductId, Items> productIdItemsEntry) { this.productId = productIdItemsEntry.getKey(); this.quantity = productIdItemsEntry.getValue().size(); this.totalPrice = productIdItemsEntry.getValue().totalPrice(); } public boolean matches(ProductId productId) { return this.productId.equals(productId); } public int quantity() { return quantity; } public Price totalPrice() { return totalPrice; } } }
55823ad5f85ab55631a4faa1629a0d842c8e7cf4
[ "Markdown", "Java", "Kotlin", "Gradle" ]
35
Kotlin
SarthakMakhija/kotlin-webinar
50bd48a07d28f33d1bdda51287067deab81809b9
eb7002510061ffacfdf3f0a2300d4dd205b9e4d9
refs/heads/main
<file_sep>import numpy as np import itertools as it import matplotlib.pyplot as plt from sklearn.preprocessing import MinMaxScaler def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def extractEnergy(lines): #removes non numerical data lines temp = [] for i in range(len(lines)): if (i % 12 != 1 ): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def remove(lines): #removes non numerical data lines for i in range(len(lines)): #marks the first two lines in every 12 if (i % 12 == 0 or i % 12 == 1): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def splitCoord(lines): #split the data accordingly: 4 groups atoms = [] coordinates = [] for line in lines: atom,x,y,z = line.split() #4 groups atoms.append(atom) coordinates.append([float(x), float(y), float(z)]) return atoms, coordinates #calculate distances (coordinates) def euclidDist(x1, x2): return np.sqrt(np.sum((np.array(x1) - np.array(x2))**2)) #calculating distance between all atoms def distVec(coordinates, lines): #arrays for increments N, H1, H2, C1, H3, H4, C2, O1, O2, H5 = ([] for i in range(10)) #increments for i in range(0, len(lines), 10): #atom 1: N N.append(i) for i in range(1, len(lines), 10): #atom 2: H H1.append(i) for i in range(2, len(lines), 10): #atom 3: H H2.append(i) for i in range(3, len(lines), 10): #atom 4: C C1.append(i) for i in range(4, len(lines), 10): #atom 5: H H3.append(i) for i in range(5, len(lines), 10): #atom 6: H H4.append(i) for i in range(6, len(lines), 10): #atom 7: C C2.append(i) for i in range(7, len(lines), 10): #atom 8: O O1.append(i) for i in range(8, len(lines), 10): #atom 9: O O2.append(i) for i in range(9, len(lines), 10): #atom 10: H H5.append(i) # 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 # N, H, H, C, H, H, C, O, O, H incArr = [] for i in range(len(N)): incArr.append(N[i]) incArr.append(H1[i]) incArr.append(H2[i]) incArr.append(C1[i]) incArr.append(H3[i]) incArr.append(H4[i]) incArr.append(C2[i]) incArr.append(O1[i]) incArr.append(O2[i]) incArr.append(H5[i]) length = len(incArr) # 52334 arrays with 10 atoms length = length/10 incArr = np.array_split(incArr, length) distArr = [] for i in range(len(incArr)): for a, b in it.combinations(incArr[i], 2): # 10C2 = 45 distances between 10 atoms distArr.append(euclidDist(coordinates[a], coordinates[b])) distArr = np.array_split(distArr,(length)) return distArr def main(): glyCoord = "GlyCoord.xyz" #small data set linesCoordV = read(glyCoord) #vectors linesCoordE = read(glyCoord) # energies linesCoordE = extractEnergy(linesCoordE) # y axis coordEnergy = [] for i in range(len(linesCoordE)): coordEnergy.append(float(linesCoordE[i])) linesCoord = remove(linesCoordV) atomsCoord, coordCoord = splitCoord(linesCoord) vecCoord = distVec(coordCoord, linesCoord) #vectors for small data sumDist = [] for i in range(len(vecCoord)): sumDist.append(np.sum(vecCoord[i])) #sumDist = MinMaxScaler().fit_transform(np.asarray(sumDist).reshape(-1, 1)) #print(coordEnergy) #print(sumDist) plt.scatter(sumDist, coordEnergy) plt.xlabel("Sum of All Intermolecular Distances (units)") plt.ylabel("Energy (units) ") plt.title("Scatterplot of Eight Glycine Conformers") plt.ylim(-284.5, -283.5) plt.xlim(97.5, 132.5) for x, y in zip(sumDist, coordEnergy): rgb = (np.random.random(), np.random.random(), np.random.random()) plt.scatter(x, y, c=[rgb]) plt.show() if __name__ == "__main__": main() <file_sep># -*- coding: utf-8 -*- """ Created on Sat Oct 10 20:45:23 2020 @author: hp """ import numpy as np import itertools as it import matplotlib.pyplot as plt from sklearn.preprocessing import MinMaxScaler def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def extractEnergy(lines): #removes non numerical data lines temp = [] for i in range(len(lines)): if (i % 12 != 1 ): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def remove(lines): #removes non numerical data lines for i in range(len(lines)): #marks the first two lines in every 12 if (i % 12 == 0 or i % 12 == 1): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def splitData(lines): #split the list accordingly: 7 groups atoms = [] coordinates = [] for line in lines: atom,x,y,z,g1,g2,g3 = line.split() # 7 groups atoms.append(atom) coordinates.append([float(x), float(y), float(z)]) return atoms, coordinates #calculate distances (coordinates) def euclidDist(x1, x2): return np.sqrt(np.sum((np.array(x1) - np.array(x2))**2)) #calculating distance between heavy atoms def distVec(coordinates, lines): #arrays for increments arrayi, arrayj, arrayk, arrayl, arraym = ([] for i in range(5)) #increments for i in range(0, len(lines), 10): #atom 1: N arrayi.append(i) for j in range(3, len(lines), 10): #atom 4: C arrayj.append(j) for k in range(6, len(lines), 10): #atom 7: C arrayk.append(k) for l in range(7, len(lines), 10): #atom 8: O arrayl.append(l) for m in range(8, len(lines), 10): #atom 9: O arraym.append(m) # 0, 3, 6, 7, 8 # N, C, C, O, O incArr = [] for i in range(len(arrayi)): incArr.append(arrayi[i]) incArr.append(arrayj[i]) incArr.append(arrayk[i]) incArr.append(arrayl[i]) incArr.append(arraym[i]) length = len(incArr) # 52334 arrays with 5 heavy atoms length = length/5 incArr = np.array_split(incArr,(length)) # [r 12 , r 13 , r 14 , r 15 , r 23 , r 24 , r 25 , r 34 , r 35 , r 45 ]. distArr = [] for i in range(len(incArr)): for a, b in it.combinations(incArr[i], 2): distArr.append(euclidDist(coordinates[a], coordinates[b])) distArr = np.array_split(distArr,(length)) return distArr def main(): glycData = "GlycineData.xyz" #big data set linesDataV = read(glycData) linesDataE = read(glycData) linesDataE = extractEnergy(linesDataE) # y axis dataEnergy = [] for i in range(len(linesDataE)): dataEnergy.append(float(linesDataE[i])) linesData = remove(linesDataV) atomsData, coordData = splitData(linesData) vecData = distVec(coordData, linesData) #vectors for big data sumDist = [] for i in range(len(vecData)): sumDist.append(np.sum(vecData[i])) #sumDist = MinMaxScaler().fit_transform(np.asarray(sumDist).reshape(-1, 1)) print(dataEnergy) print(sumDist) plt.scatter(sumDist, dataEnergy) plt.xlabel("Sum of All Intermolecular Distances (units)") plt.ylabel("Energy (units) ") plt.title("Scatterplot of Glycine Configurations") plt.ylim(-284.5, -283.5) plt.xlim(19, 27) plt.show() if __name__ == "__main__": main() <file_sep>import sys import numpy as np from itertools import product "universal variables" arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] # possible values in a box limit = 10 # the sum of all the values cannot exceed 10 "finds ints that are equal to or less than the given int returns array" def findLessNums(x, arr): nums = [] for item in arr: if item <= x: # adds all values less than or equal into a list nums.append(item) return nums "removes if the sum of all values are greater than limit (i.e. 10)" def remove1(lines): for i in range(len(lines)): if (sum(lines[i]) > limit): lines[i] = "holder" # label as holder lines[:] = [x for x in lines if "holder" not in x] # removes holders return lines "removes if the sum of all values are NOT equal to limit (i.e. 10)" def remove2(lines): for i in range(len(lines)): if (sum(lines[i]) != limit): lines[i] = "holder" # label as holder lines[:] = [x for x in lines if "holder" not in x] # removes holders return lines " flattens nested lists" def flatten(nl): for e in nl: if isinstance(e, str): yield e continue try: yield from flatten(e) except TypeError: yield e def main(): # input: numbers separated by commas # converts from string into list of ints input_list = sys.argv[1].split(',') input_list = np.array([int(i) for i in input_list]) """ dynamically assign variables to global scope variables can look like: i_0, i_1, etc... globals() method returns the dictionary of the current global symbol table https://www.programiz.com/python-programming/methods/built-in/globals num_list stores all the variables ~ outputs from findLessNums function """ num_list = [] for i in range(len(input_list)): globals()['i_{}'.format(i)] = findLessNums(input_list[i], arr) num_list.append(globals()['i_{}'.format(i)]) # output from num_list is a nested list # print(num_list) """ goal: generate all possible combination from the nested num_list solution: form output materials using itertools.product and then simply format so nested lists are flattened out https://stackoverflow.com/questions/48515039/how-to-apply-itertools-product-to-a-nested-list-in-python """ # formatting the output output = list(map(list, map(flatten, product(*num_list)))) print("Total combinations w/o constraints: ", len(output)) # removes sum > 10 output = remove1(output) print("Total combinations w/ sum <= 10: ", len(output)) " if you want to see output" # print(output) # removes sum != 10 output = remove2(output) print("Total combinations w/ sum = 10: ", len(output)) " if you want to see output" # print(output) if __name__ == "__main__": main()<file_sep>import numpy as np import itertools as it import csv import matplotlib.pyplot as plt def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def remove(lines): #removes non numerical data lines for i in range(len(lines)): #marks the first two lines in every 12 if (i % 12 == 0 or i % 12 == 1): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def splitData(lines): #split the list accordingly: 7 groups atoms = [] coordinates = [] for line in lines: atom,x,y,z,g1,g2,g3 = line.split() # 7 groups atoms.append(atom) coordinates.append([float(x), float(y), float(z)]) return atoms, coordinates def splitCoord(lines): #split the data accordingly: 4 groups atoms = [] coordinates = [] for line in lines: atom,x,y,z = line.split() #4 groups atoms.append(atom) coordinates.append([float(x), float(y), float(z)]) return atoms, coordinates #calculate distances (coordinates) def euclidDist(x1, x2): return np.sqrt(np.sum((np.array(x1) - np.array(x2))**2)) #checking the order of two O atoms def distanceTest(coordinates, lines): #arrays for increments arrayi = [] arrayj = [] arrayk = [] #increments for i in range(7, len(lines), 10): #atom 8 arrayi.append(i) for j in range(8, len(lines), 10): #atom 9 arrayj.append(j) for k in range(9, len(lines), 10): #atom 10 arrayk.append(k) #distance arrays dist810 = [] dist910 = [] #find distance between atom 8 and 10 for x in range(len(arrayi)): dist810.append(euclidDist(coordinates[arrayi[x]], coordinates[arrayk[x]])) #find distance between atom 9 and 10 for x in range(len(arrayj)): dist910.append(euclidDist(coordinates[arrayj[x]], coordinates[arrayk[x]])) return dist810, dist910 def compare(distanceA, distanceB): outcome = [] for i in range(len(distanceA)): if distanceA[i] < distanceB[i]: outcome.append(-1) elif distanceA[i] > distanceB[i]: outcome.append(1) else: outcome.append(0) return outcome #calculating distance between all atoms def distVec(coordinates, lines): #arrays for increments N, H1, H2, C1, H3, H4, C2, O1, O2, H5 = ([] for i in range(10)) #increments for i in range(0, len(lines), 10): #atom 1: N N.append(i) for i in range(1, len(lines), 10): #atom 2: H H1.append(i) for i in range(2, len(lines), 10): #atom 3: H H2.append(i) for i in range(3, len(lines), 10): #atom 4: C C1.append(i) for i in range(4, len(lines), 10): #atom 5: H H3.append(i) for i in range(5, len(lines), 10): #atom 6: H H4.append(i) for i in range(6, len(lines), 10): #atom 7: C C2.append(i) for i in range(7, len(lines), 10): #atom 8: O O1.append(i) for i in range(8, len(lines), 10): #atom 9: O O2.append(i) for i in range(9, len(lines), 10): #atom 10: H H5.append(i) # 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 # N, H, H, C, H, H, C, O, O, H incArr = [] for i in range(len(N)): incArr.append(N[i]) incArr.append(H1[i]) incArr.append(H2[i]) incArr.append(C1[i]) incArr.append(H3[i]) incArr.append(H4[i]) incArr.append(C2[i]) incArr.append(O1[i]) incArr.append(O2[i]) incArr.append(H5[i]) length = len(incArr) # 52334 arrays with 10 atoms length = length/10 incArr = np.array_split(incArr, length) distArr = [] for i in range(len(incArr)): for a, b in it.combinations(incArr[i], 2): # 10C2 = 45 distances between 10 atoms distArr.append(euclidDist(coordinates[a], coordinates[b])) distArr = np.array_split(distArr,(length)) return distArr # iterates through the first index of each array, # adding 1 to proper conformer count if it matches def countConf(indexList): count1, count2, count3, count4, count5, count6, count7, count8 = (0 for i in range(8)) for i in range(len(indexList)): if indexList[i][0] == 0: count1+=1 elif indexList[i][0] == 1: count2+=1 elif indexList[i][0] == 2: count3+=1 elif indexList[i][0] == 3: count4+=1 elif indexList[i][0] == 4: count5+=1 elif indexList[i][0] == 5: count6+=1 elif indexList[i][0] == 6: count7+=1 else: count8+=1 return count1, count2, count3, count4, count5, count6, count7, count8 def main(): glycData = "GlycineData.xyz" #big data set glyCoord = "GlyCoord.xyz" #small data set linesData = read(glycData) linesCoord = read(glyCoord) #print(len(linesData)) #628008 linesData = remove(linesData) linesCoord = remove(linesCoord) #print(len(linesData)) #523340 atomsData, coordData = splitData(linesData) atomsCoord, coordCoord = splitCoord(linesCoord) #print(len(coordData)) # 523340 #checking the two O atoms dist810, dist910 = distanceTest(coordData, linesData) outcome = compare(dist810, dist910) #print(outcome) #print(len(outcome)) #52334 ' Output is all 1s, indicating that the distance between ' ' atoms 8 and 10 are larger than the distance between atoms ' ' 9 and 10.' vecData = distVec(coordData, linesData) #vectors for big data #print(len(vecData)) #52334 vecCoord = distVec(coordCoord, linesCoord) #vectors for small data #print(len(vecCoord)) # 8 # V - U, differences between V and U diff = [] for v in range(len(vecData)): #iterate 1 to 52334 for u in range(len(vecCoord)): #iterate 1 to 8 x = (np.subtract(vecData[v],vecCoord[u])) x = np.square(x) diff.append(x) print(len(diff)) # 52334 * 8 = 418672 # summing up the vector differences magn = [] for i in range(len(diff)): x = np.sum(diff[i]) magn.append(x) # spitting the array into 52334 (k) groups of 8 splitMagn = np.array_split(magn, 52334) # sorted every groups Vk - Uj sortedMagn = [] for i in range(len(splitMagn)): sortedMagn.append(sorted(splitMagn[i])) print(sortedMagn[0]) #compiling csv file # with open("sortedResultswithH.csv", 'w') as csvfile: # #creating a csv writer object # csvwriter = csv.writer(csvfile) # #writing the data rows # csvwriter.writerows(sortedMagn) ' Each of the 52334 arrays inside splitMagn is sorted ' ' and compiled inside sortedMagn. ' # sorted by index sortedIdx = [] for i in range(len(splitMagn)): x = np.argsort(splitMagn[i]) sortedIdx.append(x) print(sortedIdx[0]) #compiling csv file # with open("sortedIndexwithH.csv", 'w') as csvfile: # #creating a csv writer object # csvwriter = csv.writer(csvfile) # #writing the data rows # csvwriter.writerows(sortedIdx) ' Each of the 52334 arrays inside splitMagn is sorted by index' ' and compiled inside sortedIdx. ' c1, c2, c3, c4, c5, c6, c7, c8 = countConf(sortedIdx) fig = plt.figure() ax = fig.add_axes([0,0,1,1]) confPlot = ['Conf 1', 'Conf 2', 'Conf 3', 'Conf 4', 'Conf 5', 'Conf 6', 'Conf 7', 'Conf 8'] countPlot = [c1, c2, c3, c4, c5, c6, c7, c8] ax.bar(confPlot, countPlot) ax.set_ylabel('Number of Configurations') ax.set_xlabel('Glycine Conformers') ax.set_title('Number of Configurations for Each of the Eight Glycine Conformers') plt.show() if __name__ == "__main__": main() <file_sep>import numpy as np import itertools as it import csv import matplotlib.pyplot as plt import pandas as pd def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def remove(lines): #removes non numerical data lines for i in range(len(lines)): #marks the first two lines in every 12 if (i % 12 == 0 or i % 12 == 1): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def splitCoord(lines): #split the data accordingly: 4 groups atoms = [] coordinates = [] for line in lines: atom,x,y,z = line.split() #4 groups atoms.append(atom) coordinates.append([float(x), float(y), float(z)]) return atoms, coordinates #calculate distances (coordinates) def euclidDist(x1, x2): return np.sqrt(np.sum((np.array(x1) - np.array(x2))**2)) def compare(distanceA, distanceB): outcome = [] for i in range(len(distanceA)): if distanceA[i] < distanceB[i]: outcome.append(-1) elif distanceA[i] > distanceB[i]: outcome.append(1) else: outcome.append(0) return outcome #calculating distance between heavy atoms def distVec(coordinates, lines): #arrays for increments arrayi, arrayj, arrayk, arrayl, arraym = ([] for i in range(5)) #increments for i in range(0, len(lines), 10): #atom 1: N arrayi.append(i) for j in range(3, len(lines), 10): #atom 4: C arrayj.append(j) for k in range(6, len(lines), 10): #atom 7: C arrayk.append(k) for l in range(7, len(lines), 10): #atom 8: O arrayl.append(l) for m in range(8, len(lines), 10): #atom 9: O arraym.append(m) # 0, 3, 6, 7, 8 # N, C, C, O, O incArr = [] for i in range(len(arrayi)): incArr.append(arrayi[i]) incArr.append(arrayj[i]) incArr.append(arrayk[i]) incArr.append(arrayl[i]) incArr.append(arraym[i]) length = len(incArr) #5 atoms * 8 conf = 40 length = length/5 # 8 incArr = np.array_split(incArr,(length)) #split among 8 # [r 12 , r 13 , r 14 , r 15 , r 23 , r 24 , r 25 , r 34 , r 35 , r 45 ]. distArr = [] for i in range(len(incArr)): # 8 for a, b in it.combinations(incArr[i], 2): # 10 distArr.append(euclidDist(coordinates[a], coordinates[b])) distArr = np.array_split(distArr,(length)) return distArr def main(): glyCoord = "GlyCoord.xyz" #small data set linesCoord = read(glyCoord) linesCoord = remove(linesCoord) atomsCoord, coordCoord = splitCoord(linesCoord) vecCoord = distVec(coordCoord, linesCoord) #vectors for small data vecCoord = np.array(vecCoord) # V - U, differences between V and U diff = [] for v in range(len(vecCoord)): #iterate 1 to 8 for u in range(len(vecCoord)): #iterate 1 to 8 x = (np.subtract(vecCoord[v],vecCoord[u])) x = np.square(x) diff.append(x) # summing up the vector differences magn = [] for i in range(len(diff)): x = np.sum(diff[i]) magn.append(x) #print(magn) matrix = [] while magn != []: matrix.append(magn[:8]) magn = magn[8:] #print (matrix) df = pd.DataFrame(data=matrix) print(df) df.index += 1 df.columns += 1 # df.to_csv("Conformer Matrix.csv") if __name__ == "__main__": main() <file_sep>import argparse arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] limit = 10 # boxes = vibrational nodes # num boxes = 3N-6 def sixBoxes(A, B, C, D, E, F, sum): count = 0 # Initialize result len_A = len(A) len_B = len(B) len_C = len(C) len_D = len(D) len_E = len(E) len_F = len(F) for i in range(0, len_A): for j in range(0, len_B): for k in range(0, len_C): for l in range(0, len_D): for m in range(0, len_E): for n in range(0, len_F): if arr[i] + arr[j] + arr[k] + arr[l] + arr[m] + arr[n] <= sum: # print(arr[i], arr[j], arr[k], arr[l], arr[m], arr[n]) count += 1 return count # finds ints that are equal to or less than the given int # returns array def findLessNums(x, arr): nums = [] for item in arr: if item <= x: nums.append(item) return nums def main(): parser = argparse.ArgumentParser() parser.add_argument("a",type=int) parser.add_argument("b",type=int) parser.add_argument("c",type=int) parser.add_argument("d",type=int) parser.add_argument("e",type=int) parser.add_argument("f",type=int) args = parser.parse_args() # load integers a = args.a b = args.b c = args.c d = args.d e = args.e f = args.f A = findLessNums(a, arr) B = findLessNums(b, arr) C = findLessNums(c, arr) D = findLessNums(d, arr) E = findLessNums(e, arr) F = findLessNums(f, arr) print("Number of Acceptable Combinations: ", sixBoxes(A, B, C, D, E, F, limit)) if __name__ == "__main__": main() <file_sep>import numpy as np import pandas as pd import matplotlib.pyplot as plt import argparse # read an input file and convert it to numpy def toNumPy(filename): df = pd.read_csv(filename) return df.to_numpy() def main(): parser = argparse.ArgumentParser() parser.add_argument("sortedIndex") parser.add_argument("sortedResults") args = parser.parse_args() # load data sortedIndex = toNumPy(args.sortedIndex) sortedResults = toNumPy(args.sortedResults) a12, b12, a13, b13, a14, b14, a15, b15, a16, b16, a17, b17, a18, b18 = ([] for i in range(14)) for i in range(len(sortedIndex)): # if first index = conformer 1 if sortedIndex[i][0] == 1: if sortedIndex[i][1] == 2: a12.append(sortedResults[i][0]) # 0 b12.append(sortedResults[i][1]) elif sortedIndex[i][1] == 3: a13.append(sortedResults[i][0]) # 0 b13.append(sortedResults[i][1]) elif sortedIndex[i][1] == 4: a14.append(sortedResults[i][0]) # 2935 b14.append(sortedResults[i][1]) elif sortedIndex[i][1] == 5: a15.append(sortedResults[i][0]) # 5 b15.append(sortedResults[i][1]) elif sortedIndex[i][1] == 6: a16.append(sortedResults[i][0]) # 9833 b16.append(sortedResults[i][1]) elif sortedIndex[i][1] == 7: a17.append(sortedResults[i][0]) # 220 b17.append(sortedResults[i][1]) else: a18.append(sortedResults[i][0]) # 24 b18.append(sortedResults[i][1]) 'for heavy atoms' # fig, ax = plt.subplots() # plt.scatter(a16, b16, s = 10, c = 'blue', alpha = 0.7) # Conformer 6 # plt.scatter(a14, b14, s = 10, c = 'green', alpha = 0.65) # Conformer 4 # plt.scatter(a17, b17, s = 10, c = 'orange', alpha = 0.60) # Conformer 7 # plt.scatter(a18, b18, s = 10, c = "purple", alpha = 1) # Conformer 8 # plt.scatter(a15, b15, s = 10, c = 'red', alpha = 1) # Conformer 5 # plt.scatter(a12, b12, s = 10, alpha = 0.7) # Conformer 2 # plt.scatter(a13, b13, s = 10, alpha = 0.7) # Conformer 3 # plt.xlabel('Conformer 1') # plt.ylabel('Conformer X') # plt.xlim(-0.1, 2.5) # plt.ylim(-0.1, 2.5) # count for heavy atoms # plt.legend(["Conf. 6: 2935", "Conf. 4: 2935", "Conf. 7: 220", "Conf. 8: 24", "Conf. 5: 5", "Conf. 2: 0", "Conf. 3: 0"]) 'with H' fig, ax = plt.subplots() plt.scatter(a14, b14, s = 5, c = 'green', alpha = 0.7) # Conformer 4 plt.scatter(a16, b16, s = 5, c = 'blue', alpha = 0.65) # Conformer 6 plt.scatter(a13, b13, s = 5, c = 'orange', alpha = 0.6) # Conformer 3 plt.scatter(a15, b15, s = 5, c = 'red', alpha = 1) # Conformer 5 plt.scatter(a18, b18, s = 5, c = "purple", alpha = 1) # Conformer 8 plt.scatter(a17, b17, s = 10, alpha = 0.60) # Conformer 7 plt.scatter(a12, b12, s = 10, alpha = 0.7) # Conformer 2 plt.xlabel('Conformer 1') plt.ylabel('Conformer X') # plt.xlim(15, 17.5) # plt.ylim(12, 20) plt.legend(["Conf. 4: 11295", "Conf. 6: 4596", "Conf. 3: 1455", "Conf. 5: 144", "Conf. 8: 2", "Conf. 7: 0", "Conf. 2: 0", ]) # plt.legend(["Conf. 4", "Conf. 6", "Conf. 3", "Conf. 5"]) #plt.legend(["Conf. 6"]) # Bar Graph # fig = plt.figure() # ax = fig.add_axes([0, 0, 1, 1]) # conformers = ['Conf. 2', 'Conf. 3', 'Conf. 4', 'Conf. 5', 'Conf. 6', 'Conf. 7', 'Conf. 8'] # count = [0, 0, 2935, 5, 9833, 220, 24] # ax.bar(conformers, count) plt.show() if __name__ == "__main__": main() <file_sep>import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set(title=r'This is an expression $e^{\sin(\omega\phi)}$', xlabel='meters $10^1$', ylabel=r'Hertz $(\frac{1}{s})$') plt.show()<file_sep>import matplotlib.pyplot as plt import pandas as pd def main(): "--------------------------Histogram CH4 1.0--------------------------" data1 = "ch4_1.0.txt" #big data set df1 = pd.read_csv(data1) hist = df1.hist(bins=30) plt.title("") plt.xlabel('Potentials $(cm^{-1})$') plt.ylabel('Frequency') plt.xlim(0, 40000) plt.ylim(0, 40000) plt.show() "--------------------------Histogram CH4 0.5--------------------------" data2 = "ch4_0.5.txt" #big data set df2 = pd.read_csv(data2) hist = df2.hist(bins=30) plt.title("") plt.xlabel('Potentials $(cm^{-1})$') plt.ylabel('Frequency') plt.xlim(0, 40000) plt.ylim(0, 40000) plt.show() if __name__ == "__main__": main() <file_sep>import numpy as np import itertools as it import csv import matplotlib.pyplot as plt import pandas as pd equiCH = 1.09455 equiHH = 1.78739 def file_to_numpy(filename): return np.genfromtxt(filename, delimiter=',') def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def main(): "--------------------------Normalize--------------------------" CH_data = file_to_numpy("CH_SortedDist.csv") CH_data = CH_data / equiCH # normalize #compiling csv file # with open("Normalized_CH_SortedDist.csv", 'w') as csvfile: # csvwriter = csv.writer(csvfile) # csvwriter.writerows(CH_data) HH_data = file_to_numpy("HH_SortedDist.csv") HH_data = HH_data / equiHH # normalize #compiling csv file # with open("Normalized_HH_SortedDist.csv", 'w') as csvfile: # csvwriter = csv.writer(csvfile) # csvwriter.writerows(HH_data) "--------------------------Plotting--------------------------" xArr, yArr = [], [] #249 holes for i in range(len(HH_data)): # X Axis: HH shortest xArr.append(HH_data[i][0]) for i in range(len(CH_data)): # Y Axis: CH shortest yArr.append(CH_data[i][0]) # for i in range(len(CH_data)): # Y Axis: CH longest # yArr.append(CH_data[i][0]) fig, ax = plt.subplots() plt.scatter(xArr, yArr, s = 10, c = 'blue', alpha = 1) plt.xlabel('Shortest H-H Distance') plt.ylabel('Shortest C-H Distance') # plt.xlim(0.25, 1.5) # plt.ylim(0.25, 1.5) # plt.axhline(y=1, linewidth=1, color='r') # plt.title("Shortest CH v. Shortest HH") "--------------------------CH distance (Y) > 1--------------------------" # print(yArr) indexes = [index for index, value in enumerate(yArr) if value > 1] print(indexes) # 40 holes with CH > 1.0 "--------------------------Extremes--------------------------" print("min CH:" ,min(yArr)) #169 temp = [] for i in range(len(yArr)): if yArr[i] < 1: temp.append(yArr[i]) print("max CH < 1:", max(temp)) #243 print("max CH:", max(yArr)) #51 print("min HH:" ,min(xArr)) #238 print("max HH:" ,max(xArr)) #205 if __name__ == "__main__": main() <file_sep>import numpy as np import itertools as it import csv import matplotlib.pyplot as plt def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def remove(lines): #removes non numerical data lines for i in range(len(lines)): #marks the first two lines if (i % 7 == 0 or i % 7 == 1): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def splitData(lines): #split the list accordingly: 4 groups atoms = [] coordinates = [] for line in lines: atom,x,y,z = line.split() # 4 groups atoms.append(atom) coordinates.append([float(x), float(y), float(z)]) return atoms, coordinates #calculate distances (coordinates) def euclidDist(x1, x2): return np.sqrt(np.sum((np.array(x1) - np.array(x2))**2)) #calculating distance between heavy atoms def distVec(coordinates, lines): #arrays for increments arrayi, arrayj, arrayk, arrayl, arraym = ([] for i in range(5)) #increments for i in range(0, len(lines), 5): #atom 1: H1 arrayi.append(i) for j in range(1, len(lines), 5): #atom 2: H2 arrayj.append(j) for k in range(2, len(lines), 5): #atom 3: H3 arrayk.append(k) for l in range(3, len(lines), 5): #atom 4: H4 arrayl.append(l) for m in range(4, len(lines), 5): #atom 5: C arraym.append(m) # 0, 1, 2, 3, 4 # H, H, H, H, C incArr = [] for i in range(len(arrayi)): incArr.append(arrayi[i]) incArr.append(arrayj[i]) incArr.append(arrayk[i]) incArr.append(arrayl[i]) incArr.append(arraym[i]) length = len(incArr) length = length/5 incArr = np.array_split(incArr,(length)) # number of arrays # HH HH HH CH HH HH CH HH CH CH # [r 12 , r 13 , r 14 , r 15 , r 23 , r 24 , r 25 , r 34 , r 35 , r 45 ]. distArr = [] for i in range(len(incArr)): for a, b in it.combinations(incArr[i], 2): distArr.append(euclidDist(coordinates[a], coordinates[b])) distArr = np.array_split(distArr,(length)) return distArr #removes CH def onlyHH(vecData): for i in range(len(vecData)): vecData[i] = np.delete(vecData[i], 9) vecData[i] = np.delete(vecData[i], 8) vecData[i] = np.delete(vecData[i], 6) vecData[i] = np.delete(vecData[i], 3) return vecData #removes HH def onlyCH(vecData): for i in range(len(vecData)): vecData[i] = np.delete(vecData[i], 7) vecData[i] = np.delete(vecData[i], 5) vecData[i] = np.delete(vecData[i], 4) vecData[i] = np.delete(vecData[i], 2) vecData[i] = np.delete(vecData[i], 1) vecData[i] = np.delete(vecData[i], 0) return vecData # seeing which HH is the shortest def countHH(indexList): count1, count2, count3, count4, count5, count6 = (0 for i in range(6)) for i in range(len(indexList)): if indexList[i][0] == 1: count1+=1 elif indexList[i][0] == 2: count2+=1 elif indexList[i][0] == 3: count3+=1 elif indexList[i][0] == 4: count4+=1 elif indexList[i][0] == 5: count5+=1 else: count6+=1 return count1, count2, count3, count4, count5, count6 # seeing which CH is the shortest def countCH(indexList): count1, count2, count3, count4 = (0 for i in range(4)) for i in range(len(indexList)): if indexList[i][0] == 1: count1+=1 elif indexList[i][0] == 2: count2+=1 elif indexList[i][0] == 3: count3+=1 else: count4+=1 return count1, count2, count3, count4 def main(): data = "err.xyz" #big data set linesData = read(data) # print(len(linesData)) #1743 linesData = remove(linesData) # print(len(linesData)) #1245 atomsData, coordData = splitData(linesData) # print(len(coordData)) # 1245 vecData = distVec(coordData, linesData) #vectors # print(len(vecData)) #249 holes vecDataCopy = distVec(coordData, linesData) #vectors (same as original) # print(len(vecDataCopy)) #249 holes #compiling csv file with open("distVec.csv", 'w') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(vecData) "--------------------------Determining Shortest HH--------------------------" vecDataHH = onlyHH(vecData) # vecDataHH = vecDataHH / equiHH # print(type(vecDataHH)) #compiling csv file with open("HH_DistVec.csv", 'w') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(vecDataHH) sortedMagn = [] for i in range(len(vecDataHH)): sortedMagn.append(sorted(vecDataHH[i])) #compiling csv file with open("HH_SortedDist.csv", 'w') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(sortedMagn) sortedIdx = [] for i in range(len(vecDataHH)): x = np.argsort(vecDataHH[i]) sortedIdx.append(x) sortedIdx = [x+1 for x in sortedIdx] #compiling csv file with open("HH_SortedIdx.csv", 'w') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(sortedIdx) c1, c2, c3, c4, c5, c6 = countHH(sortedIdx) fig = plt.figure() ax = fig.add_axes([0,0,1,1]) confPlot = ['H1H2', 'H1H3', 'H1H4', 'H2H3', 'H2H4', 'H3H4'] countPlot = [c1, c2, c3, c4, c5, c6] ax.bar(confPlot, countPlot) ax.set_ylabel('Number of Shortest Distances') ax.set_xlabel('Particular HH') ax.set_title('Determination of Shortest HH Distances') plt.show() "--------------------------Determining Shortest CH--------------------------" vecDataCH = onlyCH(vecDataCopy) # vecDataCH = vecDataCH / equiCH #compiling csv file with open("CH_DistVec.csv", 'w') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(vecDataCH) sortedMagn = [] for i in range(len(vecDataCH)): sortedMagn.append(sorted(vecDataCH[i])) #compiling csv file with open("CH_SortedDist.csv", 'w') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(sortedMagn) sortedIdx = [] for i in range(len(vecDataCH)): x = np.argsort(vecDataCH[i]) sortedIdx.append(x) sortedIdx = [x+1 for x in sortedIdx] #compiling csv file with open("CH_SortedIdx.csv", 'w') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(sortedIdx) c1, c2, c3, c4 = countCH(sortedIdx) fig = plt.figure() ax = fig.add_axes([0,0,1,1]) confPlot = ['CH1', 'CH2', 'CH3', 'CH4'] countPlot = [c1, c2, c3, c4] ax.bar(confPlot, countPlot) ax.set_ylabel('Number of Shortest Distances') ax.set_xlabel('Particular CH') ax.set_title('Determination of Shortest CH Distances') plt.show() if __name__ == "__main__": main() <file_sep>import numpy as np import itertools as it import csv import matplotlib.pyplot as plt import pandas as pd def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def remove(lines): #removes non numerical data lines for i in range(len(lines)): #marks the first two lines in every 12 if (i % 12 == 0 or i % 12 == 1): lines[i] = "holder" lines[:] = [x for x in lines if "holder" not in x] #removes holders return lines #array of pure numerical data def splitCoord(lines): #split the data accordingly: 4 groups atoms = [] coordinates = [] for line in lines: atom,x,y,z = line.split() #4 groups atoms.append(atom) coordinates.append([float(x), float(y), float(z)]) return atoms, coordinates #calculate distances (coordinates) def euclidDist(x1, x2): return np.sqrt(np.sum((np.array(x1) - np.array(x2))**2)) def compare(distanceA, distanceB): outcome = [] for i in range(len(distanceA)): if distanceA[i] < distanceB[i]: outcome.append(-1) elif distanceA[i] > distanceB[i]: outcome.append(1) else: outcome.append(0) return outcome #calculating distance between all atoms def distVec(coordinates, lines): #arrays for increments N, H1, H2, C1, H3, H4, C2, O1, O2, H5 = ([] for i in range(10)) #increments for i in range(0, len(lines), 10): #atom 1: N N.append(i) for i in range(1, len(lines), 10): #atom 2: H H1.append(i) for i in range(2, len(lines), 10): #atom 3: H H2.append(i) for i in range(3, len(lines), 10): #atom 4: C C1.append(i) for i in range(4, len(lines), 10): #atom 5: H H3.append(i) for i in range(5, len(lines), 10): #atom 6: H H4.append(i) for i in range(6, len(lines), 10): #atom 7: C C2.append(i) for i in range(7, len(lines), 10): #atom 8: O O1.append(i) for i in range(8, len(lines), 10): #atom 9: O O2.append(i) for i in range(9, len(lines), 10): #atom 10: H H5.append(i) # 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 # N, H, H, C, H, H, C, O, O, H incArr = [] for i in range(len(N)): incArr.append(N[i]) incArr.append(H1[i]) incArr.append(H2[i]) incArr.append(C1[i]) incArr.append(H3[i]) incArr.append(H4[i]) incArr.append(C2[i]) incArr.append(O1[i]) incArr.append(O2[i]) incArr.append(H5[i]) length = len(incArr) # 52334 arrays with 10 atoms length = length/10 incArr = np.array_split(incArr, length) distArr = [] for i in range(len(incArr)): for a, b in it.combinations(incArr[i], 2): # 10C2 = 45 distances between 10 atoms distArr.append(euclidDist(coordinates[a], coordinates[b])) distArr = np.array_split(distArr,(length)) return distArr def main(): glyCoord = "GlyCoord.xyz" #small data set linesCoord = read(glyCoord) linesCoord = remove(linesCoord) atomsCoord, coordCoord = splitCoord(linesCoord) vecCoord = distVec(coordCoord, linesCoord) #vectors for small data vecCoord = np.array(vecCoord) # V - U, differences between V and U diff = [] for v in range(len(vecCoord)): #iterate 1 to 8 for u in range(len(vecCoord)): #iterate 1 to 8 x = (np.subtract(vecCoord[v],vecCoord[u])) x = np.square(x) diff.append(x) # summing up the vector differences magn = [] for i in range(len(diff)): x = np.sum(diff[i]) magn.append(x) #print(magn) matrix = [] while magn != []: matrix.append(magn[:8]) magn = magn[8:] #print (matrix) df = pd.DataFrame(data=matrix) print(df) df.index += 1 df.columns += 1 df.to_csv("Conformer with H Matrix.csv") if __name__ == "__main__": main() <file_sep># BowmanGroup Python programs from my time at Dr. <NAME>'s research group at Emory University. <file_sep>import pandas as pd import seaborn as sns import matplotlib.pyplot as plt def main(): "--------------------------Side-by-Side Box Plot --------------------------" data1 = "ch4_1.0.txt" #big data set df1 = pd.read_csv(data1) df1.rename(columns={'# potential (cm-1)': '$CH_4$'}, inplace=True, errors='raise') print(df1) data2 = "ch4_0.5.txt" #big data set df2 = pd.read_csv(data2) df2.rename(columns={'# potential (cm-1)': '$CH_4$ with mass reduction'}, inplace=True, errors='raise') print(df2) result = pd.concat([df1, df2], axis=1) ax = sns.boxplot(data=result, showfliers = False) #.set_title('Comparison of Energy Dispersion') plt.ylabel('Potentials $(cm^{-1})$') summary = result[["$CH_4$","$CH_4$ with mass reduction"]].describe() print(summary) if __name__=="__main__": main() <file_sep>import numpy as np import itertools as it import csv import matplotlib.pyplot as plt def read(dataSet): #reads the xyz file, returns lines xyz = open(dataSet, "r") #open file for glycine data lines = xyz.readlines() xyz.close() return lines #lines is an array def remove(lines): #removes non numerical data lines count = 0 for i in range(len(lines)): #marks the first two lines in every 12 if (i % 7 == 0): count = count +1 lines[i] = count return lines #array of pure numerical data def main(): data = "err.xyz" #big data set linesData = read(data) # print((linesData)) #1743 linesData = remove(linesData) print(type(linesData)) print((linesData[2])) #1245 linesData =list(linesData) print(linesData) # opening the csv file in 'w+' mode file = open('labeledConfig.csv', 'w+', newline ='') # writing the data into the file with file: write = csv.writer(file) write.writerows(map (lambda x: [x], linesData)) if __name__ == "__main__": main()
b02ee5bb70d728143f8a1b97238f2e47fba0fcdc
[ "Markdown", "Python" ]
15
Python
thejeffreyli/BowmanGroup
62938b0f2ce3ba557a65b289c4b46a75656d07e7
7a1dd9c0e31e033892ac0f632d8a2a96260c02c3
refs/heads/master
<repo_name>skybeyond/xqb<file_sep>/phpcms/libs/class/param.class.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/24 * Time: 10:25 */ class param{ private $route = ''; public function __construct() { if(isset($_SERVER['PATH_INFO'])){ $pathinfo = array_values(array_filter(explode("/",preg_replace('/\.(html|htm)$/','',$_SERVER['PATH_INFO'])))); $this->route['m'] = !empty($this->safe_deal($pathinfo[0]))?$this->safe_deal($pathinfo[0]):'index'; $this->route['c'] = !empty($this->safe_deal($pathinfo[1]))?$this->safe_deal($pathinfo[1]):'index'; $this->route['a'] = !empty($this->safe_deal($pathinfo[2]))?$this->safe_deal($pathinfo[2]):'init'; }else{ $this->route['m'] = isset($_GET['m'])?addslashes($_GET['m']):'index'; $this->route['c'] = isset($_GET['c'])?addslashes($_GET['c']):'index'; $this->route['a'] = isset($_GET['a'])?addslashes($_GET['a']):'init'; } return true; } public function route_m(){ return $this->route['m']; } public function route_c(){ return $this->route['c']; } public function route_a(){ return $this->route['a']; } /** * 安全处理函数 * 处理m,a,c */ private function safe_deal($str) { return str_replace(array('/', '.'), '', $str); } }<file_sep>/test2.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/29 * Time: 18:26 */ <file_sep>/phpcms/controller/index.class.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/30 * Time: 11:21 */ class index extends common{ public function init(){ $data = $this->model->fetch("select * from xqb_cloumn"); include template('index'); } }<file_sep>/phpcms/libs/functions/global.func.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/23 * Time: 16:10 */ function new_addslashes($string){ if(!is_array($string)) return addslashes($string); foreach($string as $key => $val) $string[$key] = new_addslashes($val); return $string; } function cnf($name,$value=''){ static $config; if($config) { } else { $config = Loader::load_config(); } return $value?$config[$name][$value]:$config[$name]; } function array2nr($d,&$str='') { if (is_array($d)) { foreach ($d as $k =>$v ) { if(is_array($v)) { $str .= "{$k}\n"; } else { $str .= "{$k}:{$v}\n"; } array2nr($v,$str); } } return $str; } /** * 获取请求ip * * @return ip地址 */ function ip() { if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) { $ip = getenv('HTTP_CLIENT_IP'); } elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) { $ip = getenv('HTTP_X_FORWARDED_FOR'); } elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) { $ip = getenv('REMOTE_ADDR'); } elseif(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) { $ip = $_SERVER['REMOTE_ADDR']; } return preg_match ( '/[\d\.]{7,15}/', $ip, $matches ) ? $matches [0] : ''; } function static_logs($data=array(),$file='log'){ $data = is_array($data)?$data:array($data); $data = str_replace("\n","",array2nr($data)); $log_dir = CACHE_PATH."logs".DIRECTORY_SEPARATOR.date("Ym").DIRECTORY_SEPARATOR.date("md").DIRECTORY_SEPARATOR; if(!is_dir($log_dir)) { mkdir($log_dir, 0777, true); } error_log("<?php exit;?>"."\t".date("Y-m-d H:i:s",time())."\t".ip()."\t".$data."\n",3,$log_dir.$file."_".date("Ymd").".php"); } function template($template = 'index') { $template_cache = new template_cache(); $compiledtplfile = PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_tpl'.DIRECTORY_SEPARATOR.$template.'.php'; if(file_exists(PHPCMS_PATH.'templates'.DIRECTORY_SEPARATOR.$template.'.html')) { if(!file_exists($compiledtplfile) || (@filemtime(PC_PATH.'templates'.DIRECTORY_SEPARATOR.$template.'.html') > @filemtime($compiledtplfile))) { $template_cache->template_compile($template); } } else { $compiledtplfile = PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_tpl'.DIRECTORY_SEPARATOR.$template.'.php'; if(!file_exists($compiledtplfile) || (file_exists(PC_PATH.'templates'.DIRECTORY_SEPARATOR.$template.'.html') && filemtime(PC_PATH.'templates'.DIRECTORY_SEPARATOR.$template.'.html') > filemtime($compiledtplfile))) { $template_cache->template_compile($template); } elseif (!file_exists(PC_PATH.'templates'.DIRECTORY_SEPARATOR.$template.'.html')) { echo('Template does not exist.'.DIRECTORY_SEPARATOR.$template.'.html'); } } return $compiledtplfile; }<file_sep>/phpcms/libs/class/application.class.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/23 * Time: 16:23 */ class application{ public function __construct() { /*路由*/ $param = Loader::load_sys_class('param'); define('ROUTE_M',$param->route_m()); define('ROUTE_C',$param->route_c()); define('ROUTE_A',$param->route_a()); $this->init(); } private function init(){ $controller = $this->load_controller(); if (method_exists($controller, ROUTE_A)) { if (preg_match('/^[_]/i', ROUTE_A)) { exit('You are visiting the action is to protect the private action'); } else { call_user_func(array($controller, ROUTE_A)); } } else { exit('Action does not exist.'); } } private function load_controller($filename='',$m=''){ if(empty($filename)) $filename = ROUTE_C; if(class_exists($filename)){ return new $filename; }else{ exit('Class does not exist..'); } } }<file_sep>/README.md # xqb 兴趣 <file_sep>/phpcms/base.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/23 * Time: 14:12 */ define('IN_PHPCMS',true); define('PC_PATH',dirname(__FILE__).DIRECTORY_SEPARATOR); define('CACHE_PATH',PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR); define('SITE_URL',(isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:'')); //自动加载所有函数 Loader::auto_load_func(); class Loader{ /** * 加载系统函数库 * @param $func */ public static function load_sys_func($func,$path=''){ static $funcs = array(); if(empty($path)) $path = 'libs'.DIRECTORY_SEPARATOR.'functions'; $path .= DIRECTORY_SEPARATOR.$func.'.func.php'; $key = md5($path); if(isset($funcs[$key])) return true; if(file_exists(PC_PATH.$path)){ include PC_PATH.$path; }else{ $funcs[$key] = false; return false; } $funcs[$key] = true; return true; } /** * 加载所有公用函数库 * @param string $path */ public static function auto_load_func($path = ''){ if(empty($path)) $path = 'libs'.DIRECTORY_SEPARATOR.'functions'; $path .= DIRECTORY_SEPARATOR.'*.func.php'; $auto_funcs = glob(PC_PATH.DIRECTORY_SEPARATOR.$path); if(!empty($auto_funcs) && is_array($auto_funcs)){ foreach($auto_funcs as $func_path){ include $func_path; } } } /** * 加载类 * @param $classname 类名 * @param $path * @param int $initialize 是否初始化 */ public static function load_sys_class($classname,$path='',$initialize = 1){ static $classes = array(); if(empty($path)) $path = 'libs'.DIRECTORY_SEPARATOR.'class'; $key = md5($path.$classname); if(isset($classes[$key])){ if(!empty($classes[$key])){ return $classes[$key]; }else{ return true; } } if(file_exists(PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.".class.php")){ include PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.".class.php"; if($initialize){ $classes[$key] = new $classname; }else{ $classes[$key] = true; } return $classes[$key]; } else{ return false; } } /** * 自动加载类 */ public static function auto_class_load($classname){ $classfile = PC_PATH.DIRECTORY_SEPARATOR.'controller'.DIRECTORY_SEPARATOR.$classname.'.class.php'; if(file_exists($classfile)){ include_once $classfile; } } /** * 自动公共类 */ public static function auto_commonclass_load($classname){ $classfile = PC_PATH.DIRECTORY_SEPARATOR.'common'.DIRECTORY_SEPARATOR.$classname.'.class.php'; if(file_exists($classfile)){ include_once $classfile; } } /** * 运行程序 */ public static function run(){ spl_autoload_register(array('Loader','auto_class_load')); spl_autoload_register(array('Loader','auto_commonclass_load')); return self::load_sys_class('application'); } public static function load_config(){ $hostname = gethostname(); $host_config = PC_PATH."config".DIRECTORY_SEPARATOR.$hostname.".php"; if(file_exists($host_config)){ return include_once $host_config; }else{ return include_once PC_PATH."config".DIRECTORY_SEPARATOR."default.php"; } } }<file_sep>/phpcms/controller/common.class.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/30 * Time: 12:21 */ abstract class common{ //抽象类不能直接实例化 public $model; public function __construct() { $this->model = new mysqlpdo(cnf('DB_HOST'),cnf('DB_NAME'),cnf('DB_USER'),cnf('DB_PWD'),'utf8'); } }<file_sep>/phpcms/common/template_cache.class.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/30 * Time: 15:48 */ final class template_cache{ public function template_compile($template) { $tplfile = $_tpl = PC_PATH.'templates'.DIRECTORY_SEPARATOR.$template.'.html'; if (! file_exists ( $tplfile )) { exit($tplfile." is not exists!"); } $content = @file_get_contents ( $tplfile ); $filepath = CACHE_PATH.'caches_tpl'.DIRECTORY_SEPARATOR; if(!is_dir($filepath)) { mkdir($filepath, 0777, true); } $compiledtplfile = $filepath.$template.'.php'; $content = $this->template_parse($content); $strlen = file_put_contents ( $compiledtplfile, $content ); chmod ( $compiledtplfile, 0777 ); return $strlen; } public function template_parse($str) { $str = preg_replace ( "/\{template_auto\s+(.+)\}/", "<?php include template_auto(\\1); ?>", $str ); $str = preg_replace ( "/\{include\s+(.+)\}/", "<?php include \\1; ?>", $str ); $str = preg_replace ( "/\{php\s+(.+)\}/", "<?php \\1?>", $str ); $str = preg_replace ( "/\{if\s+(.+?)\}/", "<?php if(\\1) { ?>", $str ); $str = preg_replace ( "/\{else\}/", "<?php } else { ?>", $str ); $str = preg_replace ( "/\{elseif\s+(.+?)\}/", "<?php } elseif (\\1) { ?>", $str ); $str = preg_replace ( "/\{\/if\}/", "<?php } ?>", $str ); //for 循环 $str = preg_replace("/\{for\s+(.+?)\}/","<?php for(\\1) { ?>",$str); $str = preg_replace("/\{\/for\}/","<?php } ?>",$str); //++ -- $str = preg_replace("/\{\+\+(.+?)\}/","<?php ++\\1; ?>",$str); $str = preg_replace("/\{\-\-(.+?)\}/","<?php ++\\1; ?>",$str); $str = preg_replace("/\{(.+?)\+\+\}/","<?php \\1++; ?>",$str); $str = preg_replace("/\{(.+?)\-\-\}/","<?php \\1--; ?>",$str); $str = preg_replace ( "/\{loop\s+(\S+)\s+(\S+)\}/", "<?php \$n=1;if(is_array(\\1)) foreach(\\1 AS \\2) { ?>", $str ); $str = preg_replace ( "/\{loop\s+(\S+)\s+(\S+)\s+(\S+)\}/", "<?php \$n=1; if(is_array(\\1)) foreach(\\1 AS \\2 => \\3) { ?>", $str ); $str = preg_replace ( "/\{\/loop\}/", "<?php \$n++;}unset(\$n); ?>", $str ); $str = preg_replace ( "/\{([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff:]*\(([^{}]*)\))\}/", "<?php echo \\1;?>", $str ); $str = preg_replace ( "/\{\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff:]*\(([^{}]*)\))\}/", "<?php echo \\1;?>", $str ); $str = preg_replace ( "/\{(\\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)\}/", "<?php echo \\1;?>", $str ); $str = preg_replace("/\{(\\$[a-zA-Z0-9_\[\]\'\"\$\x7f-\xff]+)\}/es", "\$this->addquote('<?php echo \\1;?>')",$str); $str = preg_replace ( "/\{([A-Z_\x7f-\xff][A-Z0-9_\x7f-\xff]*)\}/s", "<?php echo \\1;?>", $str ); $str = "<?php defined('IN_PHPCMS') or exit('illegal infiltration.'); ?>" . $str; return $str; } }<file_sep>/phpcms/common/mysqlpdo.class.php <?php defined('IN_PHPCMS') or exit('infiltration..'); /** * Created by PhpStorm. * User: beyond * Date: 2018/5/30 * Time: 14:22 */ final class mysqlpdo{ public $pdo; public function __construct($db_host,$db_name,$db_username,$db_password,$db_characset) { try { $this->pdo = new PDO("mysql:host={$db_host};dbname={$db_name}", $db_username, $db_password); $this->pdo->exec("SET CHARACTER SET " . $db_characset); $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->pdo->query("set names " . $db_characset); }catch(PDOException $e){ echo "error" .$e->getMessage(); $this->log("error".$e->getMessage(),''); } } public function fetch($sql){ $this->log($sql); $res = $this->pdo->query($sql); $result = $res->fetch(PDO::FETCH_ASSOC); return $result; } public function fetch_all($sql){ $this->log($sql); $sel = $this->pdo->query($sql); $sel->execute(); $result = $sel->fetchAll(PDO::FETCH_ASSOC); return $result; } /** * 执行sql查询 */ public function query($sql){ try { $this->log($sql); $stmt = $this->pdo->query($sql); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); return $rows; } catch (PDOException $e) { print "Error!: " . $e->getMessage() . ""; $this->log("Error!: " . $e->getMessage() . "",''); } } public function __destruct() { $this->pdo = null; } public function log($sql,$execute=array()){ static_logs($sql,'pdosql'); } }<file_sep>/index.php <?php /** * Created by PhpStorm. * User: beyond * Date: 2018/5/23 * Time: 12:06 */ define('PHPCMS_PATH',dirname(__FILE__).DIRECTORY_SEPARATOR); include PHPCMS_PATH.'/phpcms/base.php'; Loader::run();
2f533f2c29bdea21d63711328cb4efb1f3ad1fa8
[ "Markdown", "PHP" ]
11
PHP
skybeyond/xqb
46c94a6e29b15ba39cf241f7db3cc973a84a018a
549d669379f90963516e791f6ef950125631b85c
refs/heads/master
<file_sep>module Mongoff class Criteria include Enumerable attr_reader :model attr_reader :query def initialize(model, query) @model = model @query = query end def count query.count end def each(*args, &blk) query.each { |document| yield Record.new(model, document) } end def method_missing(symbol, *args) if (q = query.try(symbol, *args)).is_a?(Moped::Query) Criteria.new(model, q) else super end end end end<file_sep>module Setup class Schema include CenitScoped Setup::Models.exclude_actions_for self, :bulk_delete, :delete BuildInDataType.regist(self).with(:uri, :schema) belongs_to :library, class_name: Setup::Library.to_s, inverse_of: :schemas field :uri, type: String field :schema, type: String has_many :data_types, class_name: Setup::DataType.to_s, inverse_of: :uri, dependent: :destroy validates_presence_of :library, :uri, :schema before_save :save_data_types before_destroy :destroy_data_types def load_models(options = {}) models = Set.new data_types.each { |data_type| models += data_type.load_models(options)[:loaded] if data_type.activated } RailsAdmin::AbstractModel.update_model_config(models) end def include_missing? @include_missing end attr_reader :include_missing_message def run_after_initialized return true if @_initialized @include_missing = false @data_types_to_keep = Set.new @new_data_types = [] if self.new_record? && self.library && self.library.schemas.where(uri: self.uri).first errors.add(:uri, "is is already taken on library #{self.library.name}") return false end begin return false if errors.present? parse_schemas.each do |name, schema| if data_type = self.data_types.where(name: name).first data_type.schema = schema.to_json elsif self.library && self.library.find_data_type_by_name(name) errors.add(:schema, "model name #{name} is already taken on library") else @new_data_types << (data_type = Setup::DataType.new(name: name, schema: schema.to_json)) self.data_types << data_type end if data_type && data_type.errors.blank? && data_type.valid? @data_types_to_keep << data_type else data_type.errors.each do |attribute, error| errors.add(:schema, "when defining model #{name} on attribute '#{attribute}': #{error}") end if data_type destroy_data_types return false end end self.data_types.delete_if { |data_type| !@data_types_to_keep.include?(data_type) } rescue Exception => ex if @include_missing = ex.is_a?(Xsd::IncludeMissingException) @include_missing_message = ex.message else raise ex end puts "ERROR: #{errors.add(:schema, ex.message).to_s}" destroy_data_types return false end @_initialized = true end private def save_data_types if run_after_initialized puts "Saving data types for #{uri}" self.data_types.each { |data_type| puts data_type.name } self.data_types.each(&:save) else false end end def destroy_data_types @shutdown_report = DataType.shutdown(@new_data_types || self.data_types, destroy: true) end def parse_schemas self.schema = self.schema.strip self.schema.start_with?('{') ? parse_json_schema : parse_xml_schema end def parse_json_schema json = JSON.parse(self.schema) if json['type'] || json['allOf'] name = self.uri if (index = name.rindex('/')) || index = name.rindex('#') name = name[index + 1, name.length - 1] end if index = name.rindex('.') name = name[0..index - 1] end {name.camelize => json} else json end end def parse_xml_schema Xsd::Document.new(uri, self.schema).schema.json_schemas end end end<file_sep>module Setup class Library include CenitScoped Setup::Models.exclude_actions_for self, :edit BuildInDataType.regist(self) field :name, type: String has_many :schemas, class_name: Setup::Schema.to_s, inverse_of: :library, dependent: :destroy belongs_to :cenit_collection, class_name: Setup::Collection.to_s, inverse_of: :libraries validates_presence_of :name validates_account_uniqueness_of :name def find_data_type_by_name(name) if data_type = DataType.where(name: name).detect { |data_type| data_type.uri && data_type.uri.library == self } data_type else if (schema = Schema.where(uri: name).detect { |schema| schema.library == self }) && schema.data_types.count == 1 schema.data_types.first else nil end end end end end <file_sep>module AccountScoped extend ActiveSupport::Concern included do belongs_to :account, class_name: Account.to_s, inverse_of: nil before_validation { self.account = Account.current unless self.account } default_scope -> { where(Account.current ? {account: Account.current} : {}) } end module ClassMethods def validates_account_uniqueness_of(field) validates field, uniqueness: { scope: :account_id } end end end <file_sep>module RailsAdmin module Config module Actions class PullCollection < RailsAdmin::Config::Actions::Base register_instance_option :pjax? do false end register_instance_option :only do Setup::SharedCollection end register_instance_option :member do true end register_instance_option :http_methods do [:get, :post] end register_instance_option :controller do proc do errors = [] begin collection = Setup::Collection.new collection.from_json(@object.data) collection.errors.full_messages.each { |msg| errors << msg } unless Setup::Translator.save(collection) rescue Exception => ex errors << ex.message end if errors.blank? redirect_to_on_success else flash[:error] = t('admin.flash.error', name: @model_config.label, action: t("admin.actions.#{@action.key}.done").html_safe).html_safe flash[:error] += %(<br>- #{errors.join('<br>- ')}).html_safe redirect_to back_or_index end end end register_instance_option :link_icon do 'icon-arrow-down' end end end end end<file_sep>module Setup class SharedCollection include CenitUnscoped Setup::Models.exclude_actions_for self, :new field :name, type: String field :description, type: String field :data, type: String validates_presence_of :name, :description validates_uniqueness_of :name end end <file_sep>module Mongoff class Record include Edi::Filler include Edi::Formatter attr_reader :orm_model attr_reader :document def initialize(model, document = BSON::Document.new) @orm_model = model @document = document @fields = {} end def schema @schema ||= orm_model.data_type.merged_schema end def is_a?(model) if model.is_a?(Mongoff::Model) orm_model == model else super end end def errors @errors ||= ActiveModel::Errors.new(self) end def valid? #TODO Schema validation errors.blank? end def save(options = {}) if errors.blank? errors.add(:base, "Save operation not supported on not loaded data type #{orm_model.data_type.title}") end false end def method_missing(symbol, *args) if symbol.to_s.end_with?('=') symbol = symbol.to_s.chop.to_sym value = args[0] @fields.delete(symbol) if value.nil? document.delete(symbol) elsif value.is_a?(Record) @fields[symbol] = value document[symbol] = value.document else document[symbol] = value end else if (value = (@fields[symbol] || document[symbol])).is_a?(BSON::Document) @fields[symbol] = Record.new(orm_model.for_property(symbol), value) elsif value.is_a?(::Array) @fields[symbol] = RecordArray.new(orm_model.for_property(symbol), value) else value end end end end end<file_sep>module RailsAdmin module Config module Actions class ShareCollection < RailsAdmin::Config::Actions::Base register_instance_option :only do Setup::Collection end register_instance_option :member do true end register_instance_option :http_methods do [:get, :post] end register_instance_option :controller do proc do collection = @object @object = nil shared = false shared_collection_config = RailsAdmin::Config.model(Setup::SharedCollection) if shared_params = params[shared_collection_config.abstract_model.param_key] @object = Setup::SharedCollection.new(shared_params.to_hash) @object.data = collection.to_json shared = @object.save end if shared redirect_to back_or_index else @object ||= Setup::SharedCollection.new(name: collection.name) @model_config = shared_collection_config if @object.errors.present? flash.now[:error] = t('admin.flash.error', name: @model_config.label, action: t("admin.actions.#{@action.key}.done").html_safe).html_safe flash.now[:error] += %(<br>- #{@object.errors.full_messages.join('<br>- ')}).html_safe end end end end register_instance_option :link_icon do 'icon-share' end end end end end<file_sep>class Ability include CanCan::Ability def initialize(user) if user can :access, :rails_admin # only allow admin users to access Rails Admin RailsAdmin::Config::Actions.all(:root).each { |action| can action.authorization_key } non_root = RailsAdmin::Config::Actions.all.select { |action| !action.root? } can :destroy, Setup::SharedCollection, creator: user can :update, Setup::SharedCollection, creator: user cannot :pull_collection, Setup::SharedCollection, creator: user Setup::Models.each do |model, excluded_actions| non_root.each do |action| can action.authorization_key, model unless can?(action.authorization_key, model) || excluded_actions.include?(action.key) end end Setup::DataType.all.each do |data_type| if (model = data_type.records_model).is_a?(Class) can :manage, model end end end end end <file_sep>module Setup class Collection include CenitScoped BuildInDataType.regist(self).embedding(:translators, :events, :connection_roles, :webhooks) field :name, type: String has_many :libraries, class_name: Setup::Library.to_s, inverse_of: :cenit_collection has_many :translators, class_name: Setup::Translator.to_s, inverse_of: :cenit_collection has_many :events, class_name: Setup::Event.to_s, inverse_of: :cenit_collection has_many :connection_roles, class_name: Setup::ConnectionRole.to_s, inverse_of: :cenit_collection has_many :webhooks, class_name: Setup::Webhook.to_s, inverse_of: :cenit_collection has_many :flows, class_name: Setup::Flow.to_s, inverse_of: :cenit_collection end end <file_sep>module Setup class Notification include CenitScoped Setup::Models.exclude_actions_for self, :new belongs_to :flow, :class_name => Setup::Flow.to_s, inverse_of: nil field :http_status_code, type: String field :http_status_message, type: String field :count, type: Integer field :json_data, type: String def must_be_resend? !(200...299).include?(http_status_code) end def resend return unless self.must_be_resend? self.flow.process_json_data(self.json_data, self.id) end end end <file_sep>require 'objspace' module RailsAdmin module Config module Actions class MemoryUsage < RailsAdmin::Config::Actions::Base register_instance_option :root? do true end register_instance_option :breadcrumb_parent do nil end register_instance_option :controller do proc do @objects ||= list_entries(RailsAdmin::Config.model(Setup::DataType)) @max = Setup::DataType.fields[:used_memory.to_s].type.new(Setup::DataType.max(:used_memory)) end end register_instance_option :link_icon do 'icon-fire' end class << self def of(model) return 0 unless model size = ObjectSpace.memsize_of(model) model.constants(false).each { |c| size += of(c) } if model.is_a?(Class) || model.is_a?(Module) size > 0 ? size : 100 end end end end end end <file_sep>module Setup class Translator < ReqRejValidator include CenitScoped Setup::Models.exclude_actions_for self, :edit BuildInDataType.regist(self).referenced_by(:name) field :name, type: String field :type, type: Symbol belongs_to :source_data_type, class_name: Setup::DataType.to_s, inverse_of: nil belongs_to :target_data_type, class_name: Setup::DataType.to_s, inverse_of: nil field :discard_events, type: Boolean field :style, type: String field :mime_type, type: String field :file_extension, type: String field :transformation, type: String belongs_to :source_exporter, class_name: Setup::Translator.to_s, inverse_of: nil belongs_to :target_importer, class_name: Setup::Translator.to_s, inverse_of: nil field :discard_chained_records, type: Boolean belongs_to :cenit_collection, class_name: Setup::Collection.to_s, inverse_of: :translators validates_account_uniqueness_of :name before_save :validates_configuration def validates_configuration return false unless ready_to_save? requires(:name) errors.add(:type, 'is not valid') unless type_enum.include?(type) errors.add(:style, 'is not valid') unless style_enum.include?(style) case type when :Import, :Update rejects(:source_data_type, :mime_type, :file_extension, :source_exporter, :target_importer, :discard_chained_records) requires(:transformation) when :Export rejects(:target_data_type, :source_exporter, :target_importer, :discard_chained_records) requires(:transformation) if mime_type.present? if (extensions = file_extension_enum).empty? self.file_extension = nil elsif file_extension.blank? extensions.length == 1 ? (self.file_extension = extensions[0]) : errors.add(:file_extension, 'has multiple options') else errors.add(:file_extension, 'is not valid') unless extensions.include?(file_extension) end end when :Conversion rejects(:mime_type, :file_extension) requires(:source_data_type, :target_data_type) if style == 'chain' requires(:source_exporter, :target_importer) if errors.blank? errors.add(:source_exporter, "can't be applied to #{source_data_type.title}") unless source_exporter.apply_to_source?(source_data_type) errors.add(:target_importer, "can't be applied to #{target_data_type.title}") unless target_importer.apply_to_target?(target_data_type) end self.transformation = "#{source_data_type.title} -> [#{source_exporter.name} : #{target_importer.name}] -> #{target_data_type.title}" if errors.blank? else requires(:transformation) rejects(:source_exporter, :target_importer) end end errors.blank? end def reject_message(field = nil) (style && type).present? ? "is not allowed for #{style} #{type.to_s.downcase} translators" : super end def type_enum [:Import, :Export, :Update, :Conversion] end STYLES_MAP = {'renit' => Setup::Transformation::RenitTransform, 'double_curly_braces' => Setup::Transformation::DoubleCurlyBracesTransform, 'xslt' => Setup::Transformation::XsltTransform, 'json.rabl' => Setup::Transformation::ActionViewTransform, 'xml.rabl' => Setup::Transformation::ActionViewTransform, 'xml.builder' => Setup::Transformation::ActionViewTransform, 'html.erb' => Setup::Transformation::ActionViewTransform, 'chain' => Setup::Transformation::ChainTransform} def style_enum styles = [] STYLES_MAP.each { |key, value| styles << key if value.types.include?(type) } if type.present? styles.uniq end def mime_type_enum MIME::Types.inject([]) { |types, t| types << t.to_s } end def file_extension_enum extensions = [] if types = MIME::Types[mime_type] types.each { |type| extensions.concat(type.extensions) } end extensions.uniq end def ready_to_save? (type && style).present? && (style != 'chain' || (source_data_type && target_data_type && source_exporter).present?) end def can_be_restarted? type.present? end def data_type (type == :Import || type == :Update) ? target_data_type : source_data_type end def apply_to_source?(data_type) source_data_type.blank? || source_data_type == data_type end def apply_to_target?(data_type) target_data_type.blank? || target_data_type == data_type end def run(options={}) context_options = try("context_options_for_#{type.to_s.downcase}", options) || {} self.class.fields.keys.each { |key| context_options[key.to_sym] = send(key) } self.class.relations.keys.each { |key| context_options[key.to_sym] = send(key) } context_options[:data_type] = data_type context_options.merge!(options) { |key, context_val, options_val| !context_val ? options_val : context_val } context_options[:result] = STYLES_MAP[style].run(context_options) try("after_run_#{type.to_s.downcase}", context_options) context_options[:result] end def context_options_for_import(options) raise Exception.new('Target data type not defined') unless data_type = target_data_type || options[:target_data_type] {target_data_type: data_type} end def context_options_for_export(options) raise Exception.new('Source data type not defined') unless data_type = source_data_type || options[:source_data_type] model = data_type.records_model offset = options[:offset] || 0 limit = options[:limit] sources = if object_ids = options[:object_ids] model.any_in(id: (limit ? object_ids[offset, limit] : object_ids.from(offset))).to_enum else (limit ? model.limit(limit) : model.all).skip(offset).to_enum end {source_data_type: data_type, sources: sources} end def context_options_for_update(options) {target: options[:object]} end def context_options_for_conversion(options) raise Exception.new("Target data type #{target_data_type.title} is not loaded") unless target_data_type.loaded? {source: options[:object], target: style == 'chain' ? nil : target_data_type.records_model.new} end def after_run_import(options) return unless targets = options[:targets] targets.each do |target| target.try(:discard_event_lookup=, options[:discard_events]) raise TransformingObjectException.new(target) unless Translator.save(target) end options[:result] = targets end def after_run_update(options) if target = options[:object] target.try(:discard_event_lookup=, options[:discard_events]) raise TransformingObjectException.new(target) unless Translator.save(target) end options[:result] = target end def after_run_conversion(options) return unless target = options[:target] if options[:save_result].nil? || options[:save_result] target.try(:discard_event_lookup=, options[:discard_events]) raise TransformingObjectException.new(target) unless Translator.save(target) end options[:result] = target end private class << self def save(record) saved = Set.new if bind_references(record) if save_references(record, saved) && (saved.include?(record) || record.save) true else for_each_node_starting_at(record, stack=[]) do |obj| obj.errors.each do |attribute, error| attr_ref = "#{obj.orm_model.data_type.title}" + ((name = obj.try(:name)).present? || (name = obj.try(:title)).present? ? " #{name} on attribute " : "'s '") + attribute.to_s + ((v = obj.try(attribute)).present? ? "'#{v}'" : '') path = '' stack.reverse_each do |node| node[:record].errors.add(node[:attribute], "with error on #{path}#{attr_ref} (#{error})") if node[:referenced] path = node[:record].orm_model.data_type.title + ' -> ' end end end saved.each { |obj| obj.delete unless obj.deleted? } false end else false end end def bind_references(record) references = {} for_each_node_starting_at(record) do |obj| if record_refs = obj.instance_variable_get(:@_references) references[obj] = record_refs end end puts references for_each_node_starting_at(record) do |obj| references.each do |obj_waiting, to_bind| to_bind.each do |property_name, property_binds| is_array = property_binds.is_a?(Array) ? true : (property_binds = [property_binds]; false) property_binds.each do |property_bind| if obj.is_a?(property_bind[:model]) && match?(obj, property_bind[:criteria]) if is_array unless array_property = obj_waiting.send(property_name) obj_waiting.send("#{property_name}=", array_property = []) end array_property << obj else obj_waiting.send("#{property_name}=", obj) end property_binds.delete(property_bind) end to_bind.delete(property_name) if property_binds.empty? end references.delete(obj_waiting) if to_bind.empty? end end end if references.present? for_each_node_starting_at(record, stack = []) do |obj| if to_bind = references[obj] to_bind.each do |property_name, property_binds| property_binds = [property_binds] unless property_binds.is_a?(Array) property_binds.each do |property_bind| message = "reference not found with criteria #{property_bind[:criteria].to_json}" obj.errors.add(property_name, message) stack.each { |node| node[:record].errors.add(node[:attribute], message) } end end end end if references.present? record.errors.blank? end def match?(obj, criteria) criteria.each { |property_name, value| return false unless obj.try(property_name) == value } true end def for_each_node_starting_at(record, stack = nil, visited = Set.new, &block) visited << record block.yield(record) if block if orm_model = record.try(:orm_model) orm_model.for_each_association do |relation| if values = record.send(relation[:name]) stack << {record: record, attribute: relation[:name], referenced: !relation[:embedded]} if stack values = [values] unless values.is_a?(Enumerable) values.each { |value| for_each_node_starting_at(value, stack, visited, &block) unless visited.include?(value) } stack.pop if stack end end end end def save_references(record, saved, visited = Set.new) return true if visited.include?(record) visited << record record.orm_model.for_each_association do |relation| next if Setup::BuildInDataType::EXCLUDED_RELATIONS.include?(relation[:name].to_s) if values = record.send(relation[:name]) values = [values] unless values.is_a?(Enumerable) values.each { |value| return false unless save_references(value, saved, visited) } values.each do |value| (value.save ? saved << value : (return false)) unless saved.include?(value) end unless relation[:embedded] end end true end end end class TransformingObjectException < Exception attr_reader :object def initialize(object) super "Error transforming object #{object}" @object = object end end end<file_sep>module Setup class ConnectionRole include CenitScoped BuildInDataType.regist(self).referenced_by(:name) field :name, :type => String has_and_belongs_to_many :connections, class_name: Setup::Connection.to_s, inverse_of: :nil belongs_to :cenit_collection, class_name: Setup::Collection.to_s, inverse_of: :connection_roles end end <file_sep>module Mongoid module CenitExtension extend ActiveSupport::Concern module ClassMethods def collection_size(scale = 1) mongo_session.command(collstats: collection_name, scale: scale)['size'] rescue 0 end def for_property(property) (relation = try(:reflect_on_association, property)) && relation.try(:klass) end def for_each_association(&block) reflect_on_all_associations(:embeds_one, :embeds_many, :has_one, :has_many, :has_and_belongs_to_many, :belongs_to).each do |relation| block.yield(name: relation.name, embedded: relation.embedded?) end end def other_affected_models models = [] reflect_on_all_associations(:embedded_in, :embeds_one, :embeds_many, :has_one, :has_many, :has_and_belongs_to_many, :belongs_to).each do |relation| models << relation.klass unless [:has_and_belongs_to_many, :belongs_to].include?(relation.macro) && relation.inverse_of.nil? end models.uniq end def other_affected_by reflect_on_all_associations(:embedded_in, :embeds_one, :embeds_many, :has_one, :has_many, :has_and_belongs_to_many, :belongs_to).collect { |relation| relation.klass }.uniq end end end end<file_sep>module Mongoff class Model include Setup::InstanceAffectRelation EMPTY_SCHEMA = {}.freeze def initialize(data_type, schema = nil) @data_type_id = data_type.id.to_s @persistable = (@schema = schema).nil? end def data_type Setup::DataType.where(id: @data_type_id).first end def new Record.new(self) end def persistable? @persistable end def schema @schema ||= data_type.merged_schema end def for_property(property) #TODO Create a model space to optimize memory usage model = nil if schema['type'] == 'object' && schema['properties'] && property_schema = schema['properties'][property.to_s] property_schema = property_schema['items'] if property_schema['type'] == 'array' && property_schema['items'] model = if (ref = property_schema['$ref']) && property_dt = data_type.find_data_type(ref) Model.new(property_dt) else Model.new(data_type, property_schema) end end model || Model.new(data_type, EMPTY_SCHEMA) end def for_each_association(&block) #TODO ALL end def collection_name persistable? ? data_type.data_type_name.collectionize.to_sym : :empty_collection end def count persistable? ? Mongoid::Sessions.default[collection_name].find.count : 0 end def collection_size(scale = 1) Mongoid::Sessions.default.command(collstats: collection_name, scale: scale)['size'] rescue 0 end def method_missing(symbol, *args) if (query = Mongoid::Sessions.default[collection_name].find.try(symbol, *args)).is_a?(Moped::Query) Criteria.new(self, query) else super end end def eql?(obj) if obj.is_a?(Mongoff::Model) data_type == obj.data_type && schema == obj.schema else super end end end end
fbad455daca44fc8ed7b7ef784a70536488f7a04
[ "Ruby" ]
16
Ruby
kaerdsar/cenit
95c41bf436126604e304257614d09fadc55733a6
d750dbfd7db0fcc18826b2a2de0cf1881b329a18
refs/heads/master
<file_sep>include ':techAdhocUtils' include ':app' rootProject.name = "TechAdhocUtils"<file_sep>package com.techadhoc.techadhocutils.features.utils import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.graphics.Color import android.view.Gravity import android.widget.LinearLayout import android.widget.TextView import android.widget.Toast import com.techadhoc.techadhocutils.R import com.techadhoc.techadhocutils.features.constants.Keys import com.techadhoc.techadhocutils.features.utils.NetworkUtil.getConnectivityStatus import com.techadhoc.techadhocutils.features.utils.NetworkUtil.getConnectivityStatusString class NetworkChangeReciever : BroadcastReceiver() { private var mContext: Context? = null override fun onReceive(context: Context, intent: Intent) { mContext = context val tag = getConnectivityStatus() val status = getConnectivityStatusString() if (tag == Keys.ERROR) { custumToast(Keys.ERROR, status) } else { custumToast(Keys.OK, status) } } fun custumToast(tag: Int, msg: String?) { // create a LinearLayout and Views val layout = LinearLayout(mContext) layout.gravity = Gravity.CENTER if (tag == Keys.OK) { layout.setBackgroundResource(R.color.ok_green) } if (tag == Keys.ERROR) { layout.setBackgroundResource(R.color.error_red) } val tv = TextView(mContext) // set the TextView properties like color, size etc tv.setTextColor(Color.WHITE) tv.textSize = 20f tv.gravity = Gravity.CENTER // set the text you want to show in Toast tv.text = msg /* ImageView img=new ImageView(this); // give the drawble resource for the ImageView img.setImageResource(R.drawable.myimage);*/ // add both the Views TextView and ImageView in error_dialog_view layout.addView(tv) val toast = Toast(mContext) //context is object of Context write "this" if you are an Activity // Set The error_dialog_view as Toast View toast.view = layout toast.setGravity(Gravity.FILL_HORIZONTAL or Gravity.TOP, 0, 0) toast.show() } }<file_sep>package com.techadhoc.techadhocutils.features import android.app.Application import android.content.Context class MyAppUtils : Application() { override fun onCreate() { super.onCreate() instance = this } companion object { private lateinit var instance: MyAppUtils @JvmStatic fun getContext(): Context { return instance.applicationContext } } }<file_sep>package com.techadhoc.techadhocutils.features.utils import java.util.regex.Pattern object NumberUtils { private val patternInteger: Pattern = Pattern.compile("-?\\d+(\\.\\d+)?") @JvmStatic fun isNumeric(strNum: String?): Boolean { return if (strNum == null) { false } else patternInteger.matcher(strNum).matches() } }<file_sep>package com.techadhoc.techadhocutilssample.components.core.ui import android.content.DialogInterface interface DialogCallback { fun doPositive(dialog: DialogInterface, which: Int) fun doNegative(dialog: DialogInterface, which: Int) }<file_sep>package com.techadhoc.techadhocutils.features.utils; public interface TaskThreadCallback<T> { public void onComplete(T obj); } <file_sep>package com.techadhoc.techadhocutils.features.utils import android.content.Context import android.net.ConnectivityManager import com.techadhoc.techadhocutils.features.MyAppUtils object NetworkUtil { private val TYPE_WIFI = 1 private val TYPE_MOBILE = 2 private val TYPE_NOT_CONNECTED = 0 fun getConnectivityStatus(): Int { val cm = MyAppUtils.getContext() .getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager val activeNetwork = cm.activeNetworkInfo if (null != activeNetwork) { if (activeNetwork.type == ConnectivityManager.TYPE_WIFI) return TYPE_WIFI if (activeNetwork.type == ConnectivityManager.TYPE_MOBILE) return TYPE_MOBILE } return TYPE_NOT_CONNECTED } fun getConnectivityStatusString(): String? { val conn = getConnectivityStatus() var status: String? = null if (conn == TYPE_WIFI) { status = "Internet working fine" } else if (conn == TYPE_MOBILE) { status = "Internet working fine" } else if (conn == TYPE_NOT_CONNECTED) { status = "Internet connection error" } return status } val isConnected: Boolean get() { val conn = getConnectivityStatus() var status = false if (conn == TYPE_WIFI) { status = true } else if (conn == TYPE_MOBILE) { status = true } else if (conn == TYPE_NOT_CONNECTED) { status = false } return status } }<file_sep>package com.techadhoc.techadhocutilssample.components.dialogs import android.app.AlertDialog import android.app.Dialog import android.content.DialogInterface import android.os.Bundle import androidx.fragment.app.DialogFragment import androidx.fragment.app.FragmentManager import com.techadhoc.techadhocutils.R import com.techadhoc.techadhocutilssample.components.core.ui.DialogCallback class ErrorDialog : DialogFragment() { companion object { private const val ERROR_DIALOG = "error_dialog" private lateinit var errorDialogCallback: DialogCallback fun newInstance(fragmentManager: FragmentManager, callBack: DialogCallback) { errorDialogCallback = callBack val dialog = ErrorDialog() dialog.isCancelable = false dialog.show(fragmentManager, ERROR_DIALOG) } } override fun onCreateDialog(savedInstanceState: Bundle?): Dialog = activity?.let { val dialogBuilder = AlertDialog.Builder(it, R.style.Base_Theme_AppCompat_Dialog_Alert) dialogBuilder.setCancelable(false) .setMessage("Alert") .setPositiveButton("OK", DialogInterface.OnClickListener { dialog, which -> errorDialogCallback.doPositive(dialog, which) }) dialogBuilder.create() } ?: throw IllegalStateException("Null Activity") }<file_sep>package com.techadhoc.techadhocutils.features.utils.imageutils import android.content.Context import android.graphics.Bitmap import android.os.Environment import com.techadhoc.techadhocutils.features.utils.LogUtil import java.io.File import java.io.FileOutputStream class BitMapLoaderK( private val mContext: Context, private val imgLoadListener: imgLoaderListener ) { fun saveImages(listGalryDetailProd: ArrayList<Any>) { if (listGalryDetailProd.size > 0) { for (product in listGalryDetailProd) { /* if (null != product.getImgBitMap()) { onBitmapLoaded(product.getImgBitMap()) } else { onBitmapFailed() }*/ } } } private fun onBitmapLoaded(bitmap: Bitmap) { val file = File( getDataFolder(mContext)!!.path + "/" + TAG + System.currentTimeMillis() + ".jpeg" ) try { if (!file.exists()) { file.createNewFile() val ostream = FileOutputStream(file) bitmap.compress(Bitmap.CompressFormat.JPEG, 75, ostream) ostream.close() } imgLoadListener.onImageLoaded(1) } catch (e: Exception) { LogUtil.LOGE( TAG, e.message ) imgLoadListener.onImageLoaded(1) } } fun onBitmapFailed() { imgLoadListener.onImageLoaded(1) } fun getCacheFolder(context: Context): File? { var cacheDir: File? = null if (Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED) { cacheDir = File(Environment.getExternalStorageDirectory(), "cachesunflower") if (!cacheDir.isDirectory) { cacheDir.mkdirs() } } if (!cacheDir!!.isDirectory) { cacheDir = context.cacheDir //get system cache folder } return cacheDir } private fun getDataFolder(context: Context): File? { var dataDir: File? = null if (Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED) { dataDir = File(Environment.getExternalStorageDirectory(), "sunflower") if (!dataDir.isDirectory) { dataDir.mkdirs() } } if (!dataDir!!.isDirectory) { dataDir = context.filesDir } return dataDir } fun readData(): ArrayList<String?>? { var FilePathStrings: ArrayList<String?>? = null try { /* String myData = null; File file = new File(getDataFolder( imageView.getContext()).getPath() + "/" + name); Bitmap bitmap = BitmapFactory.decodeFile( getDataFolder(imageView.getContext()).getPath() + "/" + name);*/ val mFile = getDataFolder(mContext) if (mFile!!.isDirectory) { val listFile = mFile.listFiles() // Create a String array for FilePathStrings //FilePathStrings = new String[listFile.length]; FilePathStrings = ArrayList() // Create a String array for FileNameStrings // String[] FileNameStrings = new String[listFile.length]; for (i in listFile.indices) { // Get the path of the image file val file_path = listFile[i].absolutePath FilePathStrings.add(file_path) // Get the name image file // FileNameStrings[i] = listFile[i].getName(); } } } catch (ex: Exception) { ex.printStackTrace() } return FilePathStrings } fun deleteAll() { val dir = getDataFolder(mContext) dir?.let { deleteRecursive(it) } } private fun deleteRecursive(fileOrDirectory: File) { if (fileOrDirectory.isDirectory) { val files = fileOrDirectory.listFiles() if (null != files) { for (child in files) { deleteRecursive(child) } } } fileOrDirectory.delete() } interface imgLoaderListener { fun onImageLoaded(completeCode: Int) } companion object { private val TAG = LogUtil.makeLogTag( BitmapLoader::class.java ) } }<file_sep>package com.techadhoc.techadhocutilssample.components.mainhome import android.content.DialogInterface import android.os.Bundle import android.widget.Button import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import com.techadhoc.techadhocutilssample.R import com.techadhoc.techadhocutilssample.components.core.ui.DialogCallback import com.techadhoc.techadhocutilssample.components.dialogs.CustomDialog import com.techadhoc.techadhocutilssample.components.dialogs.ErrorDialog class TechAdhocMainActivity : AppCompatActivity() { private lateinit var errorDialogButton: Button private lateinit var customDialogButton: Button override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_techadhoc_main) errorDialogButton = findViewById<Button>(R.id.error_dialog) customDialogButton = findViewById<Button>(R.id.custom_dialog) setListner() } private fun setListner() { errorDialogButton.setOnClickListener { ErrorDialog.newInstance(supportFragmentManager, callBack = object : DialogCallback { override fun doPositive(dialog: DialogInterface, which: Int) { dialog.dismiss() } override fun doNegative(dialog: DialogInterface, which: Int) { TODO("Not yet implemented") dialog.dismiss() } }) } customDialogButton.setOnClickListener { val dialog = CustomDialog.newInstance { customDialogOnClick() } dialog.show(supportFragmentManager) } } private fun customDialogOnClick() { // click function for dialog call back Toast.makeText(this, "Custom", Toast.LENGTH_LONG).show() } }<file_sep>package com.techadhoc.techadhocutils.features.utils; class TaskCallback implements Runnable { private final Runnable task; private final TaskThreadCallback callback; private final GenericObject genericObject; TaskCallback(Runnable task, TaskThreadCallback callback, GenericObject test) { this.task = task; this.callback = callback; this.genericObject = test; } public void run() { task.run(); callback.onComplete(genericObject); } } class GenericObject<T> { private T t; public T get() { return this.t; } public void set(T t1) { this.t = t1; } }<file_sep>package com.techadhoc.techadhocutilssample.components.dialogs import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import androidx.fragment.app.DialogFragment import androidx.fragment.app.FragmentManager import com.techadhoc.techadhocutilssample.R class CustomDialog : DialogFragment() { private var onClick: () -> Unit = { } override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View { return inflater.inflate(R.layout.error_dialog_view, container, false) } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) initView(view) } private fun initView(view: View) { val login = view.findViewById<Button>(R.id.login) login.setOnClickListener { doClick() } } private fun doClick() { this.onClick.invoke() dismiss() } override fun getTheme(): Int = R.style.DialogTheme fun show(fragmentManager: FragmentManager) { val fragTrans = fragmentManager.beginTransaction() val prevFrag = fragmentManager.findFragmentByTag(Dialog_TAG) if (null != prevFrag) fragTrans.remove(prevFrag) fragTrans.addToBackStack(null) show(fragTrans, Dialog_TAG) } companion object { private const val Dialog_TAG = "error_dialog" fun newInstance( onClick: () -> Unit ): CustomDialog = CustomDialog().apply { this.onClick = onClick } } } <file_sep># Summary Implementation of utility classes which would be helpfull time to time for Android development and we will update this time to time and will add new utils also. This sample is written in Kotlin and Java and based on the master branch. Following are implemented in this library : Custom Logging Image Util File Utilities Custom SharedPreference And more in future. ## Contributing Pull requests are welcome and help this to make a cool library for all possible utilities. <file_sep>package com.techadhoc.techadhocutils.features.constants
c5c4be314fb73d8b756f70f3ecab030f366a8969
[ "Markdown", "Java", "Kotlin", "Gradle" ]
14
Gradle
TechAdhoc/TechAdhocUtils
4c07f8af3d2154d20d891cd3e9ecd76088d80c9c
c3cc121529ff19fce966c8382cdf8177f43f00ae
refs/heads/master
<repo_name>drittspill/prg1000-oblig-2<file_sep>/klasseliste.php <?php include ("start.html"); ?> <head> <title> Klasseliste </title> </head> <body> <h3>List elever i en gitt klasse</h3> <form method="POST" action="" id="klasseliste" name="klasseliste" onSubmit="return validerKlasseListe()"> <div id="skjemadiv"> <label> <span>Klassekode</span> <input type="text" id="klasse" name="klasse" onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" required/> </label> <br> <!-- Etternavn <input type="text" id="etternavn" name="etternavn" required/> <br> Klassekode <input type="text" id="klasse" name="klasse" required/> <br> Brukernavn <input type="text" id="brukernavn" name="brukernavn" required /> <br> --> <input type="submit" value="Fortsett" id="fortsett" name="fortsett" /> <input type="reset" value="Nullstill" id="nullstill" name="nullstill" onClick='settFokus(document.getElementById("klasse"))' onClick="fjernMelding()" /> </div> </form> </div> <div class="col-xs-12 col-md-12" id="bunn"> <?php include("validering.php"); @ $fortsett=$_POST["fortsett"]; if ($fortsett) { $elever="D:\\Sites\\home.hbv.no\\phptemp\\147829 /student.txt"; $klasser="D:\\Sites\\home.hbv.no\\phptemp\\147829 /klasse.txt"; $mode="r"; $kode=""; $klassefil=fopen($klasser,$mode); $klassenavn="KLASSE IKKE FUNNET"; $klasse=$_POST["klasse"]; $klasse=trim($klasse); //$lovligKlasseKode=validerKlasseKode($klasse); // if (!$klasse || $lovligKlasseKode==false) // { // print ("Felt er ikke fylt ut riktig <br>"); // } // else // { while($klassekode=fgets($klassefil)) { //Huskeliste 0=klassekode 1=klassenavn $sjekk=explode(";",$klassekode); if($sjekk[0]==$klasse) // tidligere var det også || $sjekk[1]==$post { $kode=$sjekk[0]; $klassenavn=$sjekk[1]; } // elseif($sjekk[1]=$post) // { // $kode=$sjekk[0]; // $klassenavn=$sjekk[2]; // } } fclose ($klassefil); print ("Disse elevene er registrert i filen med klassekode $klasse som tilsvarer klasse: $klassenavn: <br/>"); print ("<table class='table table-striped'> <thead> <tr> <th>$klassenavn</th> </tr> <tr> <th>Fornavn</th> <th>Etternavn</th> <th>Brukernavn</th> </tr> </thead> <tbody> "); $student=fopen($elever,$mode); while($linje=fgets($student)) //(! feof($student)) DENNE GIR FEILMELDING DA DEN LESER SISTE NEWLINE // OG FINNER IKKE explode over [0] grunnet mangel på seperatorer når den skal printe { if($linje !="") { // $linje=fgets($student); $del=explode(";", $linje); $forn=trim($del[0]); $ettern=trim($del[1]); $user=trim($del[2]); $match=trim($del[3]); //Bruke trim for at det ikke skal bli knot som før. if($match==$kode) //WOW. KODEN FUNKER IKKE HVIS KLASSEKODEN ER $del[3] (siste del på explode)!!! { //KONTRA!! KODEN FUNKER NÅR DEN BLIR TRIMMET (takk geir forelesning 4)! print("<tr> <td>$forn</td> <td>$ettern</td> <td>$user</td> </tr>"); } // else // { // print("$del[2] var feil kode <br/>"); // } } /// huskeliste: 0=fornavn 1=etternavn 3=klassekode 2=brukernavn // print ("$del[0] $del[1] $del[2]<br/>"); // får undefined offset line 13. undefined offset 1 og undefined offset 3. (pga eof?) // får ikke undefined offset med while(fgets)??? whaaaat } fclose ($student); print(" </tbody> </table> "); } // } include ("slutt.html"); ?> <file_sep>/regklasse.php <?php include ("start.html"); ?> <!doctype html> <head> <title> Registrer klasse </title> </head> <h3>Registrer ny klasse</h3> <form method="POST" action="" id="regklasse" name="regklasse" onSubmit="return validerRegistrerKlasse()"> <div id="skjemadiv"> <label> <span> Klassenavn </span> <input type="text" id="klasseNavn" name="klasseNavn" onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" required /> </label><br><label> <!-- Etternavn <input type="text" id="etternavn" name="etternavn" required/> <br> --> <span> Klassekode </span> <input type="text" id="klasse" name="klasse" onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" required /> </label> <br> <!-- Brukernavn <input type="text" id="brukernavn" name="brukernavn" required /> <br> --> <input type="submit" value="Fortsett" id="fortsett" name="fortsett" /> <input type="reset" value="Nullstill" id="nullstill" name="nullstill" onClick='settFokus(document.getElementById("klasseNavn"))' onClick="fjernMelding()" /> </div> </form> </div> <div class="col-xs-12 col-lg-12" id="bunn"> <?php include ("validering.php"); @ $fortsett=$_POST["fortsett"]; if ($fortsett) { // $fornavn=$_POST["fornavn"]; // $etternavn=$_POST["etternavn"]; $klasseNavn=$_POST["klasseNavn"]; $klasse=$_POST["klasse"]; // $fornavn=str_replace(";", "", $fornavn); // $etternavn=str_replace(";", "", $etternavn); $klasseNavn=str_replace(";", "", $klasseNavn); $klasse=str_replace(";", "", $klasse); $klasse=trim($klasse); $lovligKlasseKode=validerKlassekode($klasse); if ($lovligKlasseKode==false) { print ("Felt er ikke fylt ut riktig <br>"); } else { // $elever="https://home.hbv.no/phptemp/147829 \student.txt"; $klasseFil="D:\\Sites\\home.hbv.no\\phptemp\\147829 /klasse.txt"; $skriv="a"; $linje=$klasse . ";" . $klasseNavn . "\n"; $tekst=fopen($klasseFil,$skriv); fwrite ($tekst, $linje); fclose ($tekst); print (" klasse $klasseNavn er registrert med klassekode $klasse til filen klasse.txt"); } } include ("slutt.html"); ?> <file_sep>/validering.php <?php function validerKlassekode($klasse) { $lovligKlasseKode=true; if(!$klasse) { $lovligKlasseKode=false; print("klassekode tom<br>"); } elseif(strlen($klasse) !=3) { $lovligKlasseKode=false; print("Klassekode er ikke 3 tegn <br>"); } else{ $tegn[1]=substr($klasse, 0,1); $tegn[2]=substr($klasse, 1,1); $tegn[3]=substr($klasse, 2,1); /* for ($teller=1;$teller<=3;$teller++) { $tegn[$teller]=substr($klasse, $teller -1,1); */ if($tegn[1] < "A" || $tegn[1] > "Z" || $tegn[2] < "A" || $tegn[2] > "Z") { $lovligKlasseKode=false; print("klassekode har ikke store bokstaver i de to første tegn<br>"); } if($tegn[3] < "0" || $tegn[3] > "9") { $lovligKlasseKode=false; print("klassekode har ikke siffer som siste tegn<br>"); } else { $lovligKlasseKode=true; } } /* MANGLER: validering av to første tegn er store bokstaver og siste tegnet er tall */ return $lovligKlasseKode; } function validerPostnr($postnr) /* denne er ok */ { $lovligpostnr=true; if(!$postnr) { $lovligpostnr=false; print("postnr er tom"); } elseif(strlen($postnr) !=4) { $lovligpostnr=false; print("postnr er ikke 4 tegn"); } elseif(!is_numeric($postnr)) { $lovligpostnr=false; print("postnr består ikke av kun siffer"); } } /* ikke ok mangler første tre tegn er uppcase og siste 4 er numerisk*/ function validerFagkode($fagkode) { $lovligfagkode=true; if(!$fagkode) { $lovligfagkode=false; print("fagkode tom"); } elseif(strlen($fagkode) !=7) { $lovligfagkode=false; print("fagkode består ikke av 7 tegn"); } else{ for ($teller=1;$teller<=7;$teller++) { $tegn[$teller]=substr($fagkode,$teller-1,1); } if($tegn[1] < "A" || $tegn[1] > "Z" || $tegn[2] < "A" || $tegn[2] > "Z" || $tegn[3] < "A" || $tegn[3] > "Z" ) { $lovligfagkode=false; print("fagkode har ikke store bokstaver i første 3 tegn"); } if($tegn[4] < "0" || $tegn[4] > "9" || $tegn[5] < "0" || $tegn[5] > "9" || $tegn[6] < "0" || $tegn[6] > "9" || $tegn[7] < "0" || $tegn[7] > "9") { $lovligfagkode=false; print("fagkode har ikke siffer i siste 4 tegn"); } } } /*ok */ function validerOppgavenr($oppgavenr) { $lovligoppgavenr=true; if(!$oppgavenr) { $lovligoppgavenr=false; print("oppgave tom"); } elseif(strlen($oppgavenr) !=1) { $lovligoppgavenr=false; print("oppgave består ikke av 1 tegn"); } elseif(!is_numeric($oppgavenr)) { $lovligoppgavenr=false; print("oppgave består ikke av bare tegn"); } } ?><file_sep>/visstudent.php <?php include ("start.html"); $elever="D:\\Sites\\home.hbv.no\\phptemp\\147829 /student.txt"; $mode="r"; $student=fopen($elever,$mode); print ("<h3>Vis alle studenter</h3>"); print ("Disse elevene er registrert i filen med formatet: <br/>"); print ("Fornavn|||Etternavn|||Klasse <br/> <br/>"); while($linje=fgets($student)) //(! feof($student)) DENNE GIR FEILMELDING DA DEN LESER SISTE NEWLINE // OG FINNER IKKE explode over [0] grunnet mangel på seperatorer når den skal printe { // $linje=fgets($student); $del=explode(";", $linje); /// huskeliste: 0=fornavn 1=etternavn 2=brukernavn 3=klasse print ("$del[0] $del[1] $del[3]<br/>"); // får undefined offset line 13. undefined offset 1 og undefined offset 3. (pga eof?) // får ikke undefined offset med while(fgets)??? whaaaat } fclose ($student); include ("slutt.html"); ?><file_sep>/liste.php <?php // get the q parameter from URL $q = $_REQUEST["q"]; $hint = ""; // lookup all hints from array if $q is different from "" if ($q !== "") { // $q = strtolower($q); // $len=strlen($q); // foreach($a as $name) { // if (stristr($q, substr($name, 0, $len))) { // if ($hint === "") { // $hint = $name; // } else { // $hint .= ", $name"; // } // } // } // } // Output "no suggestion" if no hint was found or output correct values // echo $hint === "" ? "no suggestion" : $hint; $elever="D:\\Sites\\home.hbv.no\\phptemp\\147829 /student.txt"; $mode="r"; $kode=""; $klasse=$q; $klasse=trim($klasse); print ("<table class='table table-striped'> <thead> <tr> <th>Elever med lik klassekode</th> </tr> <tr> <th>Fornavn</th> <th>Etternavn</th> </tr> </thead> <tbody> "); $student=fopen($elever,$mode); while($linje=fgets($student)) //(! feof($student)) DENNE GIR FEILMELDING DA DEN LESER SISTE NEWLINE // OG FINNER IKKE explode over [0] grunnet mangel på seperatorer når den skal printe { if($linje !="") { // $linje=fgets($student); $del=explode(";", $linje); $forn=trim($del[0]); $ettern=trim($del[1]); $user=trim($del[2]); $match=trim($del[3]); //Bruke trim for at det ikke skal bli knot som før. if($match==$klasse) //WOW. KODEN FUNKER IKKE HVIS KLASSEKODEN ER $del[3] (siste del på explode)!!! { //KONTRA!! KODEN FUNKER NÅR DEN BLIR TRIMMET (takk geir forelesning 4)! print("<tr> <td>$forn</td> <td>$ettern</td> </tr>"); } // else // { // print("$del[2] var feil kode <br/>"); // } } /// huskeliste: 0=fornavn 1=etternavn 3=klassekode 2=brukernavn // print ("$del[0] $del[1] $del[2]<br/>"); // får undefined offset line 13. undefined offset 1 og undefined offset 3. (pga eof?) // får ikke undefined offset med while(fgets)??? whaaaat } fclose ($student); print(" </tbody> </table> "); } // } ?><file_sep>/regelev.php <!doctype html> <?php include("start.html"); ?> <head> <meta charset="utf8"> <title> Registrer elev </title> </head> <h3>Registrer ny elev</h3> <form method="POST" action="" id="regelev" name="regelev" onSubmit="return validerRegistrerElev()"> <div id="skjemadiv"> <label> <span>Fornavn </span> <input type="text" id="fornavn" name="fornavn" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" /> </label><br><label> <span> Etternavn </span> <input type="text" id="etternavn" name="etternavn" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" /> </label><br><label> <span> Klassekode </span> <input type="text" id="klasse" name="klasse" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" onkeyup="ajaxen(this.value)" /> </label><br><label> <span> Brukernavn </span> <input type="text" id="brukernavn" name="brukernavn" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" /> </label> <br> <input type="submit" value="Fortsett" id="fortsett" name="fortsett" /> <input type="reset" value="Nullstill" id="nullstill" name="nullstill" onClick='settFokus(document.getElementById("fornavn"))' onClick="fjernMelding()" /> </div> </form> </div> <div class="col-xs-12 col-lg-12" id="bunn"> <?php include ("validering.php"); @ $fortsett=$_POST["fortsett"]; if ($fortsett) { $fornavn=$_POST["fornavn"]; $etternavn=$_POST["etternavn"]; $klasse=$_POST["klasse"]; $brukernavn=$_POST["brukernavn"]; $fornavn=str_replace(";", "", $fornavn); $etternavn=str_replace(";", "", $etternavn); $klasse=str_replace(";", "", $klasse); $brukernavn=str_replace(";", "", $brukernavn); // $klasse=trim($klasse); $lovligKlasseKode=validerKlassekode($klasse); if (!$fornavn || !$etternavn || !$klasse || !$brukernavn) { print ("Du må fylle ut alle feltene! <br>"); } else if($lovligKlasseKode==false) { print ("Klassekode ikke korrekt fylt ut. <br>"); } else { // $elever="https://home.hbv.no/phptemp/147829 \student.txt"; $elever="D:\\Sites\\home.hbv.no\\phptemp\\147829 /student.txt"; $skriv="a"; $linje=$fornavn . ";" . $etternavn . ";" . $brukernavn . ";" . $klasse . "\n"; $student=fopen($elever,$skriv); fwrite ($student, $linje); fclose ($student); print ("$fornavn $etternavn er registrert med bruker $brukernavn og klassekode $klasse til filen student.txt"); } } include("slutt.html"); ?><file_sep>/README.md # prg1000-oblig-2<file_sep>/visklasser.php <?php include ("start.html"); $klasse="D:\\Sites\\home.hbv.no\\phptemp\\147829 /klasse.txt"; $mode="r"; $file=fopen($klasse,$mode); print ("<h3>Vis klasser</h3>"); print ("Disse klassene er registrert i filen med format: <br/>"); print ("Klassekode|||Klassenavn <br/> <br/>"); while($linje=fgets($file)) //(! feof($student)) DENNE GIR FEILMELDING DA DEN LESER SISTE NEWLINE // OG FINNER IKKE explode over [0] grunnet mangel på seperatorer når den skal printe { // $linje=fgets($student); $del=explode(";", $linje); /// huskeliste: 0=klassekode 1=klassenavn print ("$del[0] $del[1] <br/>"); // får undefined offset line 13. undefined offset 1 og undefined offset 3. (pga eof?) // får ikke undefined offset med while(fgets)??? whaaaat } fclose ($file); include ("slutt.html"); ?><file_sep>/javaknut.js // onFocus -> er en hendelse, hvor man kan få en reaksjon, onFocus er når feltet får fokus, ved at man klikker eller tabber // fokus(---) = en egendefinert funksjon // onBlur er når et felt går ut av fokus. -> mistetFokus(--)=egendefinert funksjon // onMouseOver = mouseover onMouseOut=musut // funksjon for å forlate feltet og gjøre at til uppercase = onChange="endreTilStoreBokstaver(this)" // onClick // onClick='settFokus(dokument.getElementById("klasse"))' SE FORSKJELLEN PÅ APOSTROFENE var klasse; var etternavn; var brukernavn; var klasseNavn; var fornavn; function fokus(element) { element.style.background="yellow"; } function mistetFokus(element) { element.style.background="white"; } // elements her kan være: input(klasseNavn eller klassekode) - etternavn - klasse(klassekode) -brukernavn // forts. klasseNavn (klasseNavn) - etternavn - fornavn - klasse (klassekode) -brukernavn function musIn(element) { if(element==document.getElementById("klasse")) { document.getElementById("melding").innerHTML="Klassekode kan kun bestå av 2store bokstaver og 1 tegn. <br> Eks: IT1"; } if(element==document.getElementById("klasseNavn")) { document.getElementById("melding").innerHTML="Klassenavn kan ikke være tom"; } if(element==document.getElementById("input")) { document.getElementById("melding").innerHTML="Her kan du skrive enten klassenavn eller klassekode"; } if(element==document.getElementById("etternavn")) { document.getElementById("melding").innerHTML="Etternavn kan ikke være tom"; } if(element==document.getElementById("brukernavn")) { document.getElementById("melding").innerHTML="Brukernavn kan ikke være tom"; } if(element==document.getElementById("fornavn")) { document.getElementById("melding").innerHTML="Fornavn kan ikke være tom"; } if(element==document.getElementById("verdi")) { document.getElementById("melding").innerHTML="Søkefeltet kan ikke være tomt"; } } function musUt() { document.getElementById("melding").innerHTML=""; } function endreTilStoreBokstaver(element) { element.value=element.value.toUpperCase(); } function settFokus(element) { element.focus(); } // VALIDERING FØLGER: function fjernMelding() //resetknappen { document.getElementById("melding").innerHTML=""; } // ting som må valideres: klassekode er 2bokstaver1siffer, fornavn fylt ut, etternavn fylt ut, brukernavn fylt ut, klasseNavn fylt ut. function validerFornavn(fornavn) { var lovligFornavn=true; if(!fornavn) { lovligFornavn=false; document.getElementById("fornavn").style.background="red"; } else{ document.getElementById("fornavn").style.background="green"; } } function validerEtternavn(etternavn) { var lovligEtternavn=true; if(!etternavn) { lovligFornavn=false; document.getElementById("etternavn").style.background="red"; } else{ document.getElementById("etternavn").style.background="green"; } } function validerBrukernavn(brukernavn) { var lovligBrukernavn=true; if(!brukernavn) { lovligBrukernavn=false; document.getElementById("brukernavn").style.background="red"; } else{ document.getElementById("brukernavn").style.background="green"; } } function validerklasseNavn(klasseNavn) { var lovligklasseNavn=true; if(!klasseNavn) { lovligklasseNavn=false; document.getElementById("klasseNavn").style.background="red"; } else{ document.getElementById("klasseNavn").style.background="green"; } } function validerVerdi(in) { var lovligVerdi=true; if(!verdi) { lovligVerdi=false; document.getElementById("verdi").style.background="red"; } else{ document.getElementById("verdi").style.background="green"; } } function validerKlassekode(klasse) { var tegn1, tegn2, tegn3; var lovligKlasse=true; // se oppgave10 til tema 8 if(!klasse) { lovligKlasse=false; document.getElementById("klasse").style.background="red"; } else if(klasse.length!=3) { lovligKlasse=false; document.getElementById("klasse").style.background="red"; } else { tegn1=klasse.substr(0,1); tegn2=klasse.substr(1,1); tegn3=klasse.substr(2,1); if(tegn1 < "A" || tegn1 > "Z" || tegn2 < "A" || tegn2 > "Z" || tegn3 < "1" || tegn3 > "9") { lovligKlasse=false; document.getElementById("klasse").style.background="red"; } } return lovligKlasse; } function validerRegistrerKlasse() { var klasse=document.getElementById("klasse").value; var klasseNavn=document.getElementById("klasseNavn").value; var lovligKlasse=validerKlassekode(klasse); var lovligklasseNavn=validerklasseNavn(klasseNavn); var feilmelding=""; if (!lovligklasseNavn) { feilmelding="Klassenavn er ikke fylt ut <br>"; } if (!lovligKlasse) { feilmelding=feilmelding+"Klassekode er ikke korrekt fylt ut <br>"; } if (lovligKlasse && lovligklasseNavn) { return true; } else { document.getElementById("melding").style.color("red"); document.getElementById("melding").innerHTML(feilmelding); return false; } } function validerKlasseListe() { var verdi=document.getElementById("verdi").value; var lovligVerdi=validerVerdi(verdi); var feilmelding=""; if (!lovligVerdi) { feilmelding="Du må fylle ut feltet! <br>"; } if (lovligVerdi) { return true; } else { document.getElementById("melding").style.color("red"); document.getElementById("melding").innerHTML(feilmelding); return false; } } /// HER ER BARE EKSEMPLER FRA FORELESNING function validerRegistrerStudentdata() //returnerer true eller false, hvis return gir false, går ikke submit gjennom { var postnr=document.getElementById("postnr").value; var Klassekode=document.getElementById("klassekode").value; var lovligPostnr=validerPostnr(postnr); var lovligKlassekode=validerKlassekode(klassekode); var feilmelding=""; if (!lovligPostnr) { feilmelding="Postnr er ikke korrekt fylt ut <br>"; } if (!lovligKlassekode) { feilmelding=feilmelding+"Klassekode er ikke korrekt fylt ut <br>"; //LEGGER TIL FREMFOR Å REPLACE } if (lovligKlassekode && lovligPostnr) { return true; } else { document.getElementById("melding").style.color("red"); document.getElementById("melding").innerHTML(feilmelding); return false; } // DENNE DELEN TRENGS IKKE GRUNNET KODEN OVER // if (!lovligPostnr && !lovligKlassekode) // { // feilmelding="Verken postnr eller klassekode er korrekt fylt ut"; // } } // <form method="POST" action="" id="regelev" name="regelev" onSubmit="return validerRegistrerStudentdata()" > // klasseNavn <input type="text" id="klasse" name="klasse" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" /> <br> // Etternavn <input type="text" id="etternavn" name="etternavn" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" /> <br> // Klassekode <input type="text" id="kode" name="kode" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" /> <br> // Brukernavn <input type="text" id="brukernavn" name="brukernavn" required onFocus="fokus(this)" onBlur="mistetFokus(this)" onMouseOver="musIn(this)" onMouseOut="musUt()" /> <br> // <input type="submit" value="Fortsett" id="fortsett" name="fortsett" /> // <input type="reset" value="Nullstill" id="nullstill" name="nullstill" onClick='settFokus(dokument.getElementById("klasse"))' onClick="fjernMelding()" /> // </form>
0f739e4a97f41f478a9ee936ec11558107b913c9
[ "Markdown", "JavaScript", "PHP" ]
9
PHP
drittspill/prg1000-oblig-2
2052ad3f6130fc3f79e5ea7636d33a083591d0e7
93f49d493c41d8f49bcdf6d585b8d75ef42a1653
refs/heads/master
<file_sep>const interpreter = require('.'); function spawn (context={}) { const setContext = (newContext) => Object.assign(context, newContext); return function (command) { return interpreter(command, context, setContext); }; } describe("assignment", () => { test("left assignment", () => { function setContext (context) { if (!context['a'] || context['a'] !== 1) throw Error("assignment failed"); } interpreter("a <- 1", {}, setContext); }); test("right assignment", () => { function setContext (context) { if (!context['b'] || context['b'] !== 5) throw Error("assignment failed"); } interpreter("5 -> b", {}, setContext); }); test("left re-assignment", () => { function setContext (context) { if (!context['a'] || context['a'] !== 2) throw Error("assignment failed"); } interpreter("a <- b", {b: 2}, setContext); }); test("right re-assignment", () => { function setContext (context) { if (!context['b'] || context['b'] !== 4) throw Error("assignment failed"); } interpreter("a -> b", {a: 4}, setContext); }); }); describe("evaluation assignment", () => { test("left assignment", () => { function setContext (context) { if (!context['a'] || context['a'] !== 4) throw Error("assignment failed"); } interpreter("a <- 1 + 3", {}, setContext); }); test("right assignment", () => { function setContext (context) { if (!context['b'] || context['b'] !== 10) throw Error("assignment failed"); } interpreter("5 * 2 -> b", {}, setContext); }); }); describe("range assignment", () => { test("left assignment", () => { function setContext (context) { if (!context['a'] || JSON.stringify(context['a']) !== "[1,2,3]") throw Error("assignment failed"); } interpreter("a <- 1:3", {}, setContext); }); test("right assignment", () => { function setContext (context) { if (!context['b'] || JSON.stringify(context['b']) !== "[5,6,7,8,9]") throw Error("assignment failed"); } interpreter("5:9 -> b", {}, setContext); }); }); describe("evaluation", () => { test("addition", () => { const interpret = spawn(); expect(interpret("2 + 1")).toBe(3); }); test("subtraction", () => { const interpret = spawn(); expect(interpret("2 - 3")).toBe(-1); }); test("multiplication", () => { const interpret = spawn(); expect(interpret("2 * 8")).toBe(16); }); test("division", () => { const interpret = spawn(); expect(interpret("16 / 8")).toBe(2); }); test("division", () => { const interpret = spawn(); expect(interpret("2 ^ 8")).toBe(256); }); test("double operation", () => { const interpret = spawn(); expect(interpret("2 + 8 - 5")).toBe(5); }); }); describe("range evaluation", () => { test("simple range", () => { const interpret = spawn(); expect(interpret("1:5")).toStrictEqual([1,2,3,4,5]); }); test("range with step", () => { const interpret = spawn(); expect(interpret("1:2:5")).toStrictEqual([1,3,5]); }); test("reverse range", () => { const interpret = spawn(); expect(interpret("6:2")).toStrictEqual([6,5,4,3,2]); }); test("reverse range with step", () => { const interpret = spawn(); expect(interpret("9:3:1")).toStrictEqual([9,6,3]); }); test("range with symbol", () => { const interpret = spawn({a: 5, b: 7}); expect(interpret("a:10")).toStrictEqual([5,6,7,8,9,10]); expect(interpret("2:a")).toStrictEqual([2,3,4,5]); expect(interpret("b:a")).toStrictEqual([7,6,5]); }); }); describe("strings", () => { test("simple evaluation", () => { const interpret = spawn(); expect(interpret('"a"')).toStrictEqual("a"); }); test("string assignment", () => { function setContext (context) { if (!context['b'] || JSON.stringify(context['b']) !== '"a"') throw Error("assignment failed"); } interpreter('"a" -> b', {}, setContext); }); test("string addition", () => { const interpret = spawn(); expect(interpret('"a" + "b"')).toStrictEqual("ab"); }); test("string multiplication", () => { const interpret = spawn(); expect(interpret('"a" * 2')).toStrictEqual("aa"); expect(interpret('2 * "a"')).toStrictEqual("aa"); }); test("string division", () => { const interpret = spawn(); expect(interpret('"aa" / 2')).toStrictEqual("a"); }); test("string numeric addition", () => { const interpret = spawn(); expect(interpret('"a" + 2')).toStrictEqual("aaa"); }); test("string numeric subtraction", () => { const interpret = spawn(); expect(interpret('"aaaa" - 2')).toStrictEqual("aa"); }); }); describe("Vector", () => { test("addition", () => { const interpret = spawn({a: [1,2,3], b: [4,5,6]}); expect(interpret('a + b')).toStrictEqual([5,7,9]); }); test("subtraction", () => { const interpret = spawn({a: [1,2,3], b: [4,5,6]}); expect(interpret('a - b')).toStrictEqual([-3,-3,-3]); }); test("multiplication", () => { const interpret = spawn({a: [1,2,3], b: [4,5,6]}); expect(interpret('a * b')).toStrictEqual([4,10,18]); }); test("division", () => { const interpret = spawn({a: [10,20,18], b: [4,5,6]}); expect(interpret('a / b')).toStrictEqual([2.5,4,3]); }); }); describe("Vector Index", () => { test("simple", () => { const interpret = spawn({a: [1,2,3]}); expect(interpret('a[2]')).toStrictEqual(2); }); test("by variable", () => { const interpret = spawn({a: [1,2,3], b: 3}); expect(interpret('a[b]')).toStrictEqual(3); }); test("range", () => { const interpret = spawn({a: [1,2,3]}); expect(interpret('a[2:3]')).toStrictEqual([2,3]); }); test("reverse range", () => { const interpret = spawn({a: [1,2,3]}); expect(interpret('a[2:1]')).toStrictEqual([2,1]); }); }); describe("Vector-Scalar", () => { test("addition", () => { const interpret = spawn({a: [1,2,3]}); expect(interpret('a + 2')).toStrictEqual([3,4,5]); expect(interpret('2 + a')).toStrictEqual([3,4,5]); }); test("subtraction", () => { const interpret = spawn({a: [1,2,3]}); expect(interpret('a - 4')).toStrictEqual([-3,-2,-1]); expect(interpret('4 - a')).toStrictEqual([3,2,1]); }); test("multiplication", () => { const interpret = spawn({a: [1,2,3]}); expect(interpret('a * 3')).toStrictEqual([3,6,9]); expect(interpret('3 * a')).toStrictEqual([3,6,9]); }); test("division", () => { const interpret = spawn({a: [2,4,6]}); expect(interpret('a / 2')).toStrictEqual([1,2,3]); expect(interpret('12 / a')).toStrictEqual([6,3,2]); }); }); describe("Matrix", () => { test("identity", () => { const interpret = spawn({a: 2}); expect(interpret('identity(3)')).toHaveLength(9); expect(interpret('identity(a)')).toHaveLength(4); }); }); describe("Errors", () => { test("rm()", () => { function setContext (context) { if (context['a'] || typeof context['a'] !== "undefined") throw Error("removal failed"); } interpreter('rm(a)', {a: 1}, setContext); }); }); describe("Errors", () => { test("Bad tokens", () => { const interpret = spawn(); expect(() => interpret("@")).toThrow(); }); test("Unknown symbol", () => { const interpret = spawn(); expect(() => interpret("a")).toThrow(); }); test("Remove an non-symbol", () => { const interpret = spawn(); expect(() => interpret("rm(1)")).toThrow(); }); test("Incomplete expression", () => { const interpret = spawn(); expect(() => interpret("+")).toThrow(); }); test("Incompatiple operators ", () => { const interpret = spawn(); expect(() => interpret("1 && 2 + 3")).toThrow(); }); test("Invalid Expression", () => { const interpret = spawn(); expect(() => interpret("a b")).toThrow(); expect(() => interpret("a b c")).toThrow(); expect(() => interpret("a b c d")).toThrow(); expect(() => interpret("a b c d e")).toThrow(); expect(() => interpret("a b c d e f")).toThrow(); }); // Not really an error test("Null input", () => { const interpret = spawn(); expect(interpret("")).toBeUndefined() }); });<file_sep>export default class Matrix { data: Float64Array; cols: number; rows: number; constructor (cols: number, rows: number) { this.data = new Float64Array(cols * rows); this.cols = cols; this.rows = rows; this.data.fill(0); } get length () { return this.cols * this.rows; } getValue (i: number , j: number) { return this.data[i * this.rows + j]; } setValue (i: number, j: number, value: number) { this.data[i * this.rows + j] = value; } add (other: Matrix) { if (other.length !== this.length) { throw RangeError(`Lengths must be the same ${this.length} vs. ${other.length}`); } for (let i = 0; i < this.length; i++) { this.data[i] += other.data[i]; } } toString () { let str = ''; for (let j = 0; j < this.rows; j++) { for (let i = 0; i < this.cols; i++) { const index = i * this.rows + j; str += this.data[index] + ' '; } str += '\n'; } return str; } } export class Vector extends Matrix { constructor (size: number|number[]) { if (typeof size === "number") { super(1, size); } else { super(1, size.length); this.data.set(size); } } getValue (j: number) { return this.data[j]; } setValue (j: number, value: number) { this.data[j] = value; } toString () { return this.data.join('\n'); } } export function identity (size: number) { const m = new Matrix(size, size); for (let i = 0; i < size; i++) { m.setValue(i, i, 1); } return m; } export function cross (a: Matrix, b: Matrix) { if (a.cols !== b.rows) { throw RangeError(`Matrix size mismatch. Cols(${a.cols}) must match Rows(${b.rows})`); } const { cols } = b; const { rows } = a; const { cols: depth } = a; const out = new Matrix(cols, rows); for (let i = 0; i < cols; i++) { for (let j = 0; j < rows; j++) { const index = i * rows + j; for (let ii = 0; ii < depth; ii++) { out.data[index] += a.data[ii * rows + j] * b.data[i * depth + ii]; } } } return out; }<file_sep>const Matrix = require('./matrix').default; /** @typedef {import('./').Context} Context */ /** @typedef {import('./').Vector} Vector */ /** @typedef {import('./').ValueType} ValueType */ /** @typedef {import('./tokenizer').Token} Token */ module.exports = { evaluateExpression, evaluateNumeric, evaluateVector, evaluateString, evaluateMatrix, isNumeric, isVector, isString, isMatrix, }; /** * * @param {Context} context * @param {Token|ValueType} t1 * @param {string} op * @param {Token|ValueType} t3 */ function evaluateExpression (context, t1, op, t3) { if (isNumeric(context, t1) && isNumeric(context, t3)) { return evaluteScalarExpression(context, t1, op, t3); } if (isVector(context, t1) && isVector(context, t3)) { return evaluateVectorExpression(context, t1, op, t3); } if (isVector(context, t1) && isNumeric(context, t3)) { return evaluateVectorScalarExpression(context, t1, op, t3); } if (isNumeric(context, t1) && isVector(context, t3)) { return evaluateScalarVectorExpression(context, t1, op, t3); } if (isMatrix(context, t1) && isNumeric(context, t3)) { return evaluateMatrixScalarExpression(context, t1, op, t3); } if (isNumeric(context, t1) && isMatrix(context, t3)) { return evaluateScalarMatrixExpression(context, t1, op, t3); } if (isMatrix(context, t1) && isVector(context, t3)) { return evaluateMatrixVectorExpression(context, t1, op, t3); } throw Error("Invalid expression"); } /** * * @param {Context} context * @param {Token|number} value */ function evaluateNumeric (context, value) { if (typeof value === "number") { return value; } if (Array.isArray(value)) { throw Error(`Invalid numeric value: [Array(${value.length})]`); } if (typeof value !== "object") { throw Error(`Invalid numeric value: [${value}]`); } if (value.type !== "number" && value.type !== "name") { throw Error(`Invalid numeric value: [${value.value}]`); } const v = value.type === "name" ? context[value.value] : value.value; if (typeof v === "undefined") { throw Error("Symbol not found: " + value.value); } else if (typeof v !== "number") { throw Error(`Variable '${value.value}' does not contain a numeric value`); } return v; } /** * * @param {Context} context * @param {Token|number} value */ function evaluateString (context, value) { if (typeof value === "string") { return value; } if (Array.isArray(value)) { throw Error(`Invalid string value: [Array(${value.length})]`); } if (typeof value !== "object") { throw Error(`Invalid string value: [${value}]`); } if (value.type !== "string" && value.type !== "name") { throw Error(`Invalid string value: [${value.value}]`); } const v = value.type === "name" ? context[value.value] : value.value; if (typeof v === "undefined") { throw Error("Symbol not found: " + value.value); } else if (typeof v !== "string") { throw Error(`Variable '${value.value}' does not contain a numeric value`); } return v; } /** * * @param {Context} context * @param {Token|number[]} token * @returns {number[]} */ function evaluateVector (context, token) { if (Array.isArray(token)) { return token; } if (token.type !== "name") { throw Error(`Invalid vector value: [${token.value}]`); } const v = context[token.value]; if (typeof v === "undefined") { throw Error("Symbol not found: " + token.value); } else if (!Array.isArray(v)) { throw Error(`Variable '${token.value}' does not contain a vector value`); } return v; } /** * * @param {Context} context * @param {Token|Matrix} token * @returns {Matrix} */ function evaluateMatrix (context, token) { if (token instanceof Matrix) { return token; } if (typeof token !== "object" || token.type !== "name") { throw Error(`Invalid matrix value: [${token.value}]`); } const v = context[token.value]; if (typeof v === "undefined") { throw Error("Symbol not found: " + token.value); } else if (!(v instanceof Matrix)) { throw Error(`Variable '${token.value}' does not contain a vector value`); } return v; } /** * * @param {Context} context * @param {number|Token} t1 * @param {string} op * @param {number|Token} t3 */ function evaluteScalarExpression (context, t1, op, t3) { const v1 = evaluateNumeric(context, t1); const v3 = evaluateNumeric(context, t3); switch (op) { case "&&": { return Boolean(v1 && v3); } case "||": { return Boolean(v1 || v3); } case "&": throw Error("Use && to compare numbers"); case "|": throw Error("Use || to compare numbers"); default: { const fn = getOperator(op); if (fn) { return fn(v1, v3); } throw Error("Unrecognised operator: " + op); } } } /** * * @param {Context} context * @param {Token|Vector} t1 * @param {string} op * @param {Token|Vector} t3 */ function evaluateVectorExpression (context, t1, op, t3) { const v1 = evaluateVector(context, t1); const v3 = evaluateVector(context, t3); if (v1.length != v3.length) { throw Error(`Vector lengths do not match: ${v1.length} and ${v3.length}`) } switch (op) { case "&&": { return v1.every((v,i) => v && v3[i]); } case "||": { return v1.every((v,i) => v || v3[i]); } default: { const fn = getOperator(op); if (fn) { return v1.map((v, i) => fn(v, v3[i])); } throw Error("Unrecognised operator: " + op); } } } /** * * @param {Context} context * @param {Token|number} t1 * @param {string} op * @param {Token|Vector} t3 */ function evaluateScalarVectorExpression (context, t1, op, t3) { const n1 = evaluateNumeric(context, t1); const v3 = evaluateVector(context, t3); // Some operations are not commutative switch (op) { case "-": { return v3.map(v => n1 - v); } case "/": { return v3.map(v => n1 / v); } case "^": { return v3.map(v => Math.pow(n1, v)); } default: { return evaluateVectorScalarExpression(context, v3, flipOperator(op), n1); } } } /** * * @param {Context} context * @param {Token|Vector} t1 * @param {string} op * @param {Token|number} t3 */ function evaluateVectorScalarExpression (context, t1, op, t3) { const v1 = evaluateVector(context, t1); const v3 = evaluateNumeric(context, t3); switch (op) { case "&&": { return v1.every(v => v && v3); } case "||": { return v1.every(v => v || v3); } default: { const fn = getOperator(op); if (fn) { return v1.map(v => fn(v, v3)); } throw Error("Unrecognised operator: " + op); } } } /** * * @param {Context} context * @param {Token|number} t1 * @param {string} op * @param {Token|Matrix} t3 */ function evaluateScalarMatrixExpression (context, t1, op, t3) { const n1 = evaluateNumeric(context, t1); const v3 = evaluateMatrix(context, t3); // Some operations are not commutative switch (op) { case "-": { const out = new Matrix(v3.cols, v3.rows); for (let i = 0; i < v3.cols * v3.rows; i++) { out[i] = n1 - v3[i]; } return out; } case "/": { const out = new Matrix(v3.cols, v3.rows); for (let i = 0; i < v3.cols * v3.rows; i++) { out[i] = n1 / v3[i]; } return out; } case "^": { const out = new Matrix(v3.cols, v3.rows); for (let i = 0; i < v3.cols * v3.rows; i++) { out[i] = n1 ** v3[i]; } return out; } default: { return evaluateMatrixScalarExpression(context, v3, flipOperator(op), n1); } } } /** * * @param {Context} context * @param {Token|Matrix} t1 * @param {string} op * @param {Token|number} t3 */ function evaluateMatrixScalarExpression (context, t1, op, t3) { const v1 = evaluateMatrix(context, t1); const v3 = evaluateNumeric(context, t3); switch (op) { case "&&": { return v1.every(v => Boolean(v && v3)); } case "||": { return v1.every(v => Boolean(v || v3)); } default: { const fn = getOperator(op); if (fn) { const out = new Matrix(v1.cols, v1.rows); for (let i = 0; i < v1.cols * v1.rows; i++) { out[i] = fn(v1[i], v3); } return out; } throw Error("Unrecognised operator: " + op); } } } /** * * @param {Context} context * @param {Token|Matrix} t1 * @param {string} op * @param {Token|Vector} t3 */ function evaluateMatrixVectorExpression (context, t1, op, t3) { const v1 = evaluateMatrix(context, t1); const v3 = evaluateVector(context, t3); if (v1.cols != v3.length) { throw Error(`Matrix cols do not match Vector length: ${v1.length} and ${v3.length}`) } if (op !== "*" && op != "×") { throw Error("Only Matrix-Vector multiplication is supported"); } const out = []; for (let i = 0; i < v1.rows; i++) { out[i] = 0; for (let j = 0; j < v1.cols; j++) { out[i] += v1.getValue(i, j) * v3[j]; } } return out; } /** * * @param {Context} context * @param {Token|ValueType} value */ function isNumeric (context, value) { if (typeof value === "number") { return true; } if (Array.isArray(value) || typeof value !== "object") { return false; } if (value.type !== "number" && value.type !== "name") { return false; } const v = value.type === "name" ? context[value.value] : value.value; if (typeof v === "undefined") { return false; } else if (typeof v !== "number") { return false; } return true; } /** * * @param {Context} context * @param {Token|ValueType} value */ function isString (context, value) { if (typeof value === "string") { return true; } if (Array.isArray(value) || typeof value !== "object") { return false; } if (value.type !== "string" && value.type !== "name") { return false; } const v = value.type === "name" ? context[value.value] : value.value; if (typeof v === "undefined") { return false; } else if (typeof v !== "string") { return false; } return true; } /** * * @param {Context} context * @param {Token|ValueType} value */ function isVector (context, value) { if (Array.isArray(value)) { return true; } if (typeof value !== "object") { return false; } if (value.type !== "name") { return false; } const v = context[value.value]; if (typeof v === "undefined") { return false; } else if (!Array.isArray(v)) { return false; } return true; } /** * * @param {Context} context * @param {Token|number[]|Matrix} token * @returns {boolean} */ function isMatrix (context, token) { if (token instanceof Matrix) { return true; } if (typeof token !== "object" || token.type !== "name") { return false } const v = context[token.value]; if (typeof v === "undefined") { return false } else if (!(v instanceof Matrix)) { return false } return true; } /** * @param {string} op */ function getOperator (op) { switch (op) { case "+": { return (a, b) => a + b; } case "-": { return (a, b) => a - b; } case "*": case "×": { return (a, b) => a * b; } case "/": case "÷": { return (a, b) => a / b; } case "^": { return (a, b) => Math.pow(a, b); } case "==": { return (a, b) => a == b; } case "!=": case "≠": { return (a, b) => a != b; } case "<": { return (a, b) => a < b; } case ">": { return (a, b) => a > b; } case "<=": case "≤": case "⩽": { return (a, b) => a <= b; } case ">=": case "≥": case "⩾": { return (a, b) => a >= b; } case "&": { return (a, b) => Boolean(a && b); } case "|": { return (a, b) => Boolean(a || b); } } } /** * @param {string} op */ function flipOperator (op) { if (op === ">") return "<"; if (op === "<") return ">"; if (op === ">=") return "<="; if (op === "<=") return ">="; if (op === "-" || op === "/" || op === "^") throw Error(`Operator ${op} is not commutative`); return op; }<file_sep>module.exports = tokenizer; const GRAMMAR = { string: { match: /^"([^"]*)"/, map: m => m[1], }, number: { match: /^-?[0-9]+(?:\.[0-9]+)?/, map: m => +m[0], }, name: { match: /^[a-z][a-z0-9_.]*/i, }, operator: { match: /^(<-|->|==|!=|<=|>=|&&|\|\||[-+*/<>&|^×÷←→≠≤≥⩽⩾])/, }, bracket: { match: /^[()]/, }, index_bracket: { match: /^[[\]]/, }, range: { match: /^:/, }, whitespace: { match: /^\s+/, ignore: true, }, }; /** @typedef {"string"|"number"|"name"|"operator"|"bracket"|"index_bracket"|"range"|"whitespace"} TokenTypes */ /** * @typedef Token * @prop {TokenTypes} type * @prop {string|number} value */ /** * * @param {string} input * @returns {Token[]} */ function tokenizer (input) { let i = 0; const tokens = []; while (i < input.length) { let tail = input.substr(i); let match; for (const key in GRAMMAR) { const type = /** @type {TokenTypes} */ (key); const g = GRAMMAR[type]; match = g.match.exec(tail); if (match) { if (!g.ignore) { tokens.push({ type, value: g.map ? g.map(match) : match[0], }); } i += match[0].length; break; } } if (!match) { throw Error("Unrecognised Input: " + tail.trim().substr(0, 10)); } } return tokens; }<file_sep># Knock-off R Spec ## Sample Data |outlook |temperature |humidity |wind |play | |------------|------------|------------|--------|-----| |sunny |20 |high |9 |NO | |sunny |18 |high |4 |NO | |overcast |5 |high |0 |YES | |rainy |8 |high |10 |YES | |rainy |10 |normal |12 |YES | |rainy |13 |normal |5 |NO | |rainy |14 |normal |7 |NO | |sunny |15 |low |11 |YES | |overcast |7 |high |9 |YES | |rainy |14 |moderate |14 |YES | |sunny |20 |high |44 |NO | |overcast |22 |low |5 |NO | |rainy |12 |medium |0 |YES | ## Reading Files ``` > data <- readcsv('tennis.csv') > readcsv('tennis.csv') -> data ``` ## Selecting Data ``` > data$temperature 5 8 10 13 14 15 7 14 20 22 12 ``` ## Filtering Data ``` > data[temperature > 10,] outlook temperature humidity wind play sunny 20 high 9 NO sunny 18 high 4 NO rainy 13 normal 5 NO rainy 14 normal 7 NO sunny 15 low 11 YES rainy 14 moderate 14 YES sunny 20 high 44 NO overcast 22 low 5 NO rainy 12 medium 0 YES > data[temperature > 10 && wind > 10,] outlook temperature humidity wind play sunny 15 low 11 YES rainy 14 moderate 14 YES sunny 20 high 44 NO ``` ## Ranges ``` > 1:5 1 2 3 4 5 ``` ## Ranges on Data ``` > data[1:5,] outlook temperature humidity wind play sunny 20 high 9 NO sunny 18 high 4 NO rainy 13 normal 5 NO rainy 14 normal 7 NO sunny 15 low 11 YES > 1:2:5 1 3 5 > data[1:2:5,] outlook temperature humidity wind play sunny 20 high 9 NO rainy 13 normal 5 NO sunny 15 low 11 YES ``` ## Combined range and selections ``` > data[1,"outlook";"wind"] outlook wind sunny 9 ``` ## Function definitions ``` > 3 -> a > 0 -> b > 1 -> c > f(x) = a * x^2 + b * x + c > f(1) 4 > 100 -> a > f(1) 4 > f(x,a) = a * x^2 + b * x + c > f(1,100) 101 ``` ## Calculus ``` > y = df/dx y(x) = 2 * a * x + b ```<file_sep>#!/usr/bin/env node const repl = require('repl'); const util = require('util'); const chalk = require('chalk'); const interpreter = require('./index'); const Matrix = require('./matrix').default; let state = {}; function setState (newState) { state = newState; } function rEval (cmd, context, filename, callback) { try { callback(null, interpreter(cmd, state, setState)); } catch (e) { callback(null, e); } } repl.start({ prompt: "> ", eval: rEval, writer, ignoreUndefined: true, }); /** * * @param {import('.').ValueType} value * @returns {string|undefined} */ function writer (value) { if (typeof value === "undefined") { return undefined; } if (value instanceof Error) { return chalk.red(value.message); } if (value instanceof Matrix) { return value.toString(); } return util.inspect(value, false, 4, true); }
a4bea577b9bf06730cce3c992f6c46d33c181451
[ "JavaScript", "TypeScript", "Markdown" ]
6
JavaScript
IJMacD/R-interpreter
5421c58316abb96b98ff1d8e800cc2675e1e0cd8
2cce382780081ba2b39885a2597b704e4ce9bb4f
refs/heads/main
<file_sep>#include "Monitor.h" extern HANDLE mutex; Monitor::Monitor(const std::u16string& path, const std::shared_ptr<Base>& base, const std::shared_ptr<ThreatList>& threats) : scanner(base, threats) { this->path = path; } Monitor::Monitor() { } Monitor& Monitor::operator=(const Monitor& other) { path = other.path; scanner = other.scanner; shouldStop = other.shouldStop; shouldPause = other.shouldPause; changeHandle = other.changeHandle; return *this; } void Monitor::start() { shouldStop = false; shouldPause = false; changeHandle = FindFirstChangeNotification((wchar_t*)path.c_str(), TRUE, FILE_NOTIFY_CHANGE_FILE_NAME); run(); } void Monitor::resume() { shouldPause = false; } void Monitor::pause() { shouldPause = true; } void Monitor::stop() { shouldStop = true; } void Monitor::run() { while (TRUE) { WaitForSingleObject(changeHandle, INFINITE); while (shouldPause) Sleep(1); if (shouldStop) { CloseHandle(changeHandle); return; } Sleep(100); scanner.startScan(path); CloseHandle(changeHandle); changeHandle = FindFirstChangeNotification((wchar_t*)path.c_str(), TRUE, FILE_NOTIFY_CHANGE_FILE_NAME); } }
c25809e3b9a50a7e2864782c37917a3866078dfa
[ "C++" ]
1
C++
NikitaKiryaev-web/antivirus-mtusi
807428dd308e7404f92875b86921b5918a9115ac
1664dda793d1ecf3dee3b2bc3ba8e9df5eb8baa7
refs/heads/master
<repo_name>Graceje/Miguel<file_sep>/src/app/service/seleccion.service.spec.ts import { TestBed, inject } from '@angular/core/testing'; import { SeleccionService } from './seleccion.service'; describe('SeleccionService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [SeleccionService] }); }); it('should be created', inject([SeleccionService], (service: SeleccionService) => { expect(service).toBeTruthy(); })); }); <file_sep>/src/app/app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import {HttpClientModule} from '@angular/common/http'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { AppComponent } from './app.component'; import { DataTablesModule } from 'angular-datatables'; import { LlenadoComponent } from './llenado/llenado.component'; import { NavComponent } from './nav/nav.component'; import { Nav2Component } from './nav2/nav2.component'; import { Routes, RouterModule} from '@angular/router'; import { PrimeraComponent } from './primera/primera.component'; import { InicioComponent } from './inicio/inicio.component'; import { FechasComponent } from './fechas/fechas.component'; import { BsDatepickerModule } from 'ngx-bootstrap/datepicker'; import { RegistroMaestroComponent } from './registro-maestro/registro-maestro.component'; import { RegistroChecadorComponent } from './registro-checador/registro-checador.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ChecarAsistenciaComponent } from './checar-asistencia/checar-asistencia.component'; import { FiltradoComponent } from './filtrado/filtrado.component'; const routes: Routes =[ { path: '', component:Nav2Component}, { path: 'llenado', component: LlenadoComponent}, { path: 'primera', component: PrimeraComponent}, { path: 'inicio', component: InicioComponent}, { path: 'registro-checador', component: RegistroChecadorComponent}, { path: 'registro-maestro', component: RegistroMaestroComponent}, { path: 'fechas', component: FechasComponent}, { path: 'ChecarAsistencia', component: ChecarAsistenciaComponent}, { path: 'Filtrado', component: FiltradoComponent} ]; @NgModule({ declarations: [ AppComponent, LlenadoComponent, NavComponent, Nav2Component, PrimeraComponent, RegistroMaestroComponent, RegistroChecadorComponent, InicioComponent, FechasComponent, ChecarAsistenciaComponent, FiltradoComponent ], imports: [ BrowserModule, BsDatepickerModule.forRoot(), DataTablesModule, RouterModule.forRoot(routes), HttpModule, HttpClientModule, FormsModule, BrowserAnimationsModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } <file_sep>/src/app/nav2/nav2.component.ts import { Component, OnInit } from '@angular/core'; import {NgForm } from '@angular/forms/src/directives/ng_form'; import { Router } from '@angular/router'; import {SeleccionService } from '../service/seleccion.service'; @Component({ selector: 'app-nav2', templateUrl: './nav2.component.html', styleUrls: ['./nav2.component.css'] }) export class Nav2Component implements OnInit { log={ matricula:null, pass:null, } toki; tip; constructor(private reporteservice: SeleccionService, private routs:Router) { this.toki = { token: '' }; this.tip = { tipo: '' }; } ngOnInit() { } login(){ this.reporteservice.login(this.log.matricula,this.log.pass).subscribe( result =>{ console.log('amos'); this.toki = result; console.log(result); console.log(this.toki); if(this.toki.token == "no"){ alert("Error, Intente de nuevo"); }else{ this.reporteservice.getdatossesion(this.log.matricula).subscribe(result =>{ localStorage.setItem("matricula",this.log.matricula); localStorage.setItem('token' , this.toki.token); this.tip = result; if (this.tip.tipo == "Admin" ) { console.log(this.tip); this.routs.navigateByUrl('fechas'); } if (this.tip.tipo == "Maestro" ) { console.log(this.tip); this.routs.navigateByUrl('inicio'); } if (this.tip.tipo == "Estudiante" ) { console.log(this.tip); this.routs.navigateByUrl('inicio'); } if (this.tip.tipo == "Checador" ) { console.log(this.tip); this.routs.navigateByUrl('inicio'); } }) }; }); } } <file_sep>/src/app/primera/primera.component.ts import { Component, OnInit, ViewChild } from '@angular/core'; import {SeleccionService } from '../service/seleccion.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-primera', templateUrl: './primera.component.html', styleUrls: ['./primera.component.css'] }) export class PrimeraComponent implements OnInit { carrera: any; grupo: any; turno: any; acomodo: boolean = false; sesion; usuario; semana; gruposs; id_grupo; idsemana; bailar= null; bailar2=null; bailar3=null; bailarx=null; constructor(private reporteservice: SeleccionService, private routs: Router) { this.bailar = { grupo: '' }; this.sesion=localStorage.getItem("matricula"); this.usuario=localStorage.getItem("usuario"); this.semana=localStorage.getItem("semana"); this.id_grupo=localStorage.getItem("idgrupo"); this.idsemana=localStorage.getItem("idsemana"); } ngOnInit() { this.getdatossesion(); } acomodar(cont: any){ for(let i in cont){ console.log("entro") this.bailar2[i].lunes = "NO"; this.bailar2[i].martes = "NO"; this.bailar2[i].miercoles= "NO"; this.bailar2[i].jueves = "NO"; this.bailar2[i].viernes = "NO"; this.bailar2[i].reporteador= this.usuario; this.bailar2[i].semana=this.semana; this.bailar2[i].grupo=this.gruposs; } } getseleccion(){ console.log(this.carrera); } capturar(id_grupo:any,carrera:any,grupo:any,turno:any){ console.log(carrera); this.reporteservice.getseleccion(grupo, carrera,turno).subscribe( result => this.bailar2 = result); localStorage.setItem("grupo",grupo); localStorage.setItem("idgrupo",id_grupo); this.gruposs=grupo; console.log(this.id_grupo); console.log(this.idsemana); } sumaOresta(d: string,i: string){ if(this.acomodo == false){ this.acomodar(this.bailar2) this.acomodo = true} let sum = document.getElementById('suma'+i); let x = +sum.innerHTML; let chec = <HTMLInputElement>document.getElementById(d+i); if(chec.checked){ if (d == "lunes"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].lunes = 'SI'; }else if(d == "martes"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].martes = 'SI'; }else if(d == "miercoles"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].miercoles = 'SI'; }else if(d == "jueves"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].jueves = 'SI'; }else if(d == "viernes"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].viernes = 'SI'; } }else{ if (d == "lunes"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].lunes = 'NO'; }else if(d == "martes"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].martes = 'NO'; }else if(d == "miercoles"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].miercoles = 'NO'; }else if(d == "jueves"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].jueves = 'NO'; }else if(d == "viernes"){ sum.innerHTML = (x+1).toString(); this.bailar2[i].viernes = 'NO'; } } console.log(this.bailar2); } getdatossesion(){ this.reporteservice.getdatossesion2(this.sesion).subscribe(result => this.bailar = result) } registrar(){ this.registrardatosgenerales(); this.reporteservice.registrar_asis(this.bailar2).subscribe(result =>{ this.bailar3= result if (result['resultado'] == 'OK') { alert(result['mensaje']); this.routs.navigateByUrl('inicio'); } }) } registrardatosgenerales(){ console.log(this.id_grupo); console.log(this.idsemana); this.reporteservice.registrar_datosgenerales(this.sesion,this.idsemana).subscribe(result => this.bailarx = result) } } <file_sep>/src/app/filtrado/filtrado.component.ts import { Component, OnInit } from '@angular/core'; import { SeleccionService } from '../service/seleccion.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-filtrado', templateUrl: './filtrado.component.html', styleUrls: ['./filtrado.component.css'] }) export class FiltradoComponent implements OnInit { dtOptions: DataTables.Settings = {}; mostrar1:boolean; mostrar:boolean; mostrar2:boolean; mostrar3:boolean; mostrar4:boolean; mostrar5:boolean; mostrarboton:boolean; filtrado=null; baila; profesor; semana; semana1; semana2; tabla; tabla2; dia; profesor2; constructor(private reporteservice: SeleccionService, private routs: Router) { } ngOnInit(): void { this.dtOptions = { pagingType: 'full_numbers', pageLength: 2, "scrollY": "200px", "scrollCollapse": true, }; } activar(){ console.log(this.filtrado); if(this.filtrado== "1"){ this.mostrar=false; this.mostrar1=true; this.mostrar2=false; this.mostrar3=false; this.mostrar4=false; this.mostrar5=false; } if(this.filtrado== "2"){ this.mostrar=false; this.mostrar1=false; this.mostrar2=true; this.mostrar3=false; this.mostrar4=false; this.mostrar5=false; } if(this.filtrado== "3"){ this.mostrar=false; this.mostrar1=false; this.mostrar2=false; this.mostrar4=false; this.mostrar3=true; this.mostrar5=false; } if(this.filtrado== "4"){ this.mostrar=false; this.mostrar1=false; this.mostrar2=false; this.mostrar3=false; this.mostrar4=true; this.mostrar5=false; } if(this.filtrado== "5"){ this.mostrar=false; this.mostrar1=false; this.mostrar2=false; this.mostrar3=false; this.mostrar4=false; this.mostrar5=true; } } getprofexsemana(){ this.tabla=false; this.tabla2=false; this.reporteservice.getprofexsemana(this.semana, this.profesor).subscribe(result => this.baila = result); } getxsemana(){ this.tabla=false; this.tabla2=false; this.reporteservice.getxsemana(this.semana1).subscribe(result => this.baila = result); } getprofexdia(){ this.tabla2=true; this.tabla=true; this.reporteservice.getxdia(this.dia, this.profesor2, this.semana2).subscribe(result => this.baila = result); } } <file_sep>/src/app/inicio/inicio.component.ts import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { SeleccionService } from '../service/seleccion.service'; import { timingSafeEqual } from 'crypto'; @Component({ selector: 'app-inicio', templateUrl: './inicio.component.html', styleUrls: ['./inicio.component.css'] }) export class InicioComponent implements OnInit { sesion; bailar2 = null; bailar = null; bailar3= null; tip; constructor(private reporteservice: SeleccionService, private routs: Router) { this.sesion=localStorage.getItem("matricula"); this.tip = { tipo: '' }; } ngOnInit() { this.getsemanas(); this.getsemanaspendientes(); } getsemanas() { console.log(this.sesion) this.reporteservice.getsemanas(this.sesion).subscribe(result => this.bailar2 = result); console.log("hola"); } getsemanaspendientes(){ this.reporteservice.getsemanaspendientes(this.sesion).subscribe(result => this.bailar = result); } registro(idsemana:any,nom_semana: any,fechaInicio: any,fechaFin:any){ localStorage.setItem("idsemana",idsemana); localStorage.setItem("semana",nom_semana); localStorage.setItem("fechaInicio",fechaInicio); localStorage.setItem("fechaFin",fechaFin); this.reporteservice.getdatossesion(this.sesion).subscribe(result =>{ this.tip = result; if (this.tip.tipo == "Maestro" ) { console.log(this.tip); this.routs.navigateByUrl('registro-maestro'); localStorage.setItem("usuario",this.tip.tipo); } if (this.tip.tipo == "Estudiante" ) { console.log(this.tip); this.routs.navigateByUrl('primera'); localStorage.setItem("usuario",this.tip.tipo); } if (this.tip.tipo == "Checador" ) { console.log(this.tip); this.routs.navigateByUrl('registro-checador'); localStorage.setItem("usuario",this.tip.tipo); } if (this.tip.tipo == "Admin" ) { console.log(this.tip); this.routs.navigateByUrl('fechas'); } }); } } <file_sep>/src/app/service/seleccion.service.ts import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { daysInMonth } from 'ngx-bootstrap/chronos/units/month'; @Injectable({ providedIn: 'root' }) export class SeleccionService { constructor(public _http: HttpClient) { } getseleccion(grupo: string, carrera: string, turno: string) { return this._http.post('http://localhost/API-MIKE/mostrar_seleccion.php', { 'grupo': grupo, 'carrera': carrera, 'turno': turno }); } login(matricula: string, pass: string ) { return this._http.post('http://localhost/API-MIKE/login.php', { 'matricula': matricula, 'pass': pass }); } getdatossesion(matricula: string) { return this._http.post('http://localhost/API-MIKE/sal.php', { 'matricula': matricula}); } getsemanas(matricula: string) { return this._http.post('http://localhost/API-MIKE/prueba.php',{ 'matricula': matricula}); } getsemanaspendientes(matricula: string) { return this._http.post('http://localhost/API-MIKE/endienes.php',{ 'matricula': matricula}); } getdatossesion2(matricula: string) { return this._http.post('http://localhost/API-MIKE/sal2.php', { 'matricula': matricula}); } nombresesion(matricula:string){ return this._http.post('http://localhost/API-MIKE/nombresesion.php', { 'matricula': matricula}); } getprofesor(matricula:string){ return this._http.post('http://localhost/API-MIKE/getprofesor.php', {'matricula': matricula}); } getmateriasxprofe(grupo: string){ return this._http.post('http://localhost/API-MIKE/getmateriasxprofe.php', { 'grupo': grupo}); } getdatosMaestro(matricula:string){ return this._http.post('http://localhost/API-MIKE/getdatosMaestro.php', { 'matricula': matricula}); } getAsistencias(semana:string, profesor:string, grupo:string){ return this._http.post('http://localhost/API-MIKE/consulta_asistencias.php', { 'semana': semana, 'profesor': profesor, 'grupo': grupo}); } insert_semana(fechaInicio: string, fechaFin: string, nom_semana: string){ return this._http.post('http://localhost/API-MIKE/insert_semana.php', { 'fechaInicio': fechaInicio, 'fechaFin': fechaFin, 'nom_semana': nom_semana}); } semanas(){ return this._http.get('http://localhost/API-MIKE/semanas.php'); } seleccionados(idsemana: string){ return this._http.post('http://localhost/API-MIKE/selecion_semana.php', { 'idsemana': idsemana}); } editar(bailame){ return this._http.post('http://localhost/API-MIKE/editar.php', JSON.stringify(bailame)); } lista(idsemana: string){ return this._http.post('http://localhost/API-MIKE/lista.php', { 'idsemana': idsemana}); } registrar_asis(bailar2: any){ return this._http.post('http://localhost/API-MIKE/registro_asistencias.php', bailar2); } registrar_datosgenerales(matricula:string,idsemana:string){ return this._http.post('http://localhost/API-MIKE/registrar_datosgenerales.php',{'matricula': matricula,'idsemana':idsemana} ); } getidgrupo(grupo:string){ return this._http.post('http://localhost/API-MIKE/getidgrupo.php',{'grupo':grupo} ); } getidsemana(nomsemana:string){ return this._http.post('http://localhost/API-MIKE/getidsemana.php',{'nomsemana':nomsemana} ); } getprofexsemana(semana:string, profesor:string){ return this._http.post('http://localhost/API-MIKE/getsemanaprofe.php',{'semana':semana, 'profesor':profesor } ); } getxsemana(semana:string){ return this._http.post('http://localhost/API-MIKE/getfiltroXsemana.php',{'semana':semana } ); } getxdia(dia:string, profesor:string, semana:string){ return this._http.post('http://localhost/API-MIKE/getdia.php',{'dia':dia, 'semana':semana, 'profesor':profesor} ); } } <file_sep>/src/app/registro-checador/registro-checador.component.spec.ts import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RegistroChecadorComponent } from './registro-checador.component'; describe('RegistroChecadorComponent', () => { let component: RegistroChecadorComponent; let fixture: ComponentFixture<RegistroChecadorComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ RegistroChecadorComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(RegistroChecadorComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); }); <file_sep>/src/app/fechas/fechas.component.ts import { Component, OnInit } from '@angular/core'; import { SeleccionService } from '../service/seleccion.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-fechas', templateUrl: './fechas.component.html', styleUrls: ['./fechas.component.css'] }) export class FechasComponent implements OnInit { dtOptions: DataTables.Settings = {}; //datos para datatable data: any[] = []; datos = { idsemana: null, fechaInicio: null, fechaFin: null, nom_semana: null, } fechaInicio = null; fechaFin = null; nombre = null; bailar; resultado; bailar2; bailar3; mostrar1:boolean; mostrar2:boolean; constructor(private reporteservice: SeleccionService, private routs: Router) { this.bailar = { resultado: '' }; this.tabla(); } ngOnInit(): void { $(document).ready(function () { $('#example').DataTable({ "scrollY": "200px", "scrollCollapse": true, "paging": false }); }); this.dtOptions = { pagingType: 'full_numbers', "scrollY": "200px", "scrollCollapse": true, }; this.bailar2; } registrar_semana() { console.log(this.fechaInicio); console.log(this.fechaFin); let date = new Date(this.fechaInicio); if (date.getMonth() + 1 < 10 && date.getDate() < 10) { var newdate = date.getFullYear() + '/' + '0' + (date.getMonth() + 1) + '/' + '0' + date.getDate(); console.info(newdate); } else if (date.getMonth() + 1 < 10) { var newdate = date.getFullYear() + '/' + '0' + (date.getMonth() + 1) + '/' + date.getDate(); console.info(newdate); } else if (date.getDate() < 10) { var newdate = date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + '0' + date.getDate(); console.info(newdate); } else { var newdate = date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate(); console.info(newdate); } let date2 = new Date(this.fechaFin); if (date2.getMonth() + 1 < 10 && date2.getDate() < 10) { var newdate2 = date2.getFullYear() + '/' + '0' + (date2.getMonth() + 1) + '/' + '0' + date2.getDate(); console.info(newdate2); } else if (date2.getMonth() + 1 < 10) { var newdate2 = date2.getFullYear() + '/' + '0' + (date2.getMonth() + 1) + '/' + date2.getDate(); console.info(newdate2); } else if (date2.getDate() < 10) { var newdate2 = date2.getFullYear() + '/' + (date2.getMonth() + 1) + '/' + '0' + date2.getDate(); console.info(newdate2); } else { var newdate2 = date2.getFullYear() + '/' + (date2.getMonth() + 1) + '/' + date2.getDate(); console.info(newdate2); } this.reporteservice.insert_semana(newdate, newdate2, this.nombre).subscribe(result => { this.bailar = result; console.log(result); if (this.bailar.resultado == "OK") { alert("Agregado exitosamente"); this.tabla(); } }); } tabla() { this.reporteservice.semanas().subscribe(result => this.bailar2 = result); } seleccione(idsemana) { this.reporteservice.seleccionados(idsemana).subscribe(result => this.datos = result[0]); } lista(idsemana) { console.log(idsemana); this.reporteservice.lista(idsemana).subscribe(result => this.bailar3 = result); } editar() { this.reporteservice.editar(this.datos).subscribe(result => { if (result['resultado'] == 'OK') { alert(result['mensaje']); this.tabla(); } }); } activar(){ this.mostrar1=true; this.mostrar2=true; alert("Dio de alta exitosamente"); } baja(){ this.mostrar1=false; this.mostrar2=false; alert("Dio de baja exitosamente"); } } <file_sep>/src/app/registro-checador/registro-checador.component.ts import { Component, OnInit } from '@angular/core'; import {SeleccionService } from '../service/seleccion.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-registro-checador', templateUrl: './registro-checador.component.html', styleUrls: ['./registro-checador.component.css'] }) export class RegistroChecadorComponent implements OnInit { sesion; bailar= null; bailar3; bailar2; prof=null; idsemana; usuario; semana; bailarx; acomodo: boolean = false; vis={ profesor: null, } grupox; constructor(private reporteservice: SeleccionService, private routs: Router) { this.sesion=localStorage.getItem("matricula"); this.semana = localStorage.getItem("semana"); this.usuario = localStorage.getItem("usuario"); this.idsemana=localStorage.getItem("idsemana"); this.grupox=localStorage.getItem("grupo"); } ngOnInit() { this.getdatossesion(); this.getprofesor(); } getdatossesion(){ this.reporteservice.getdatossesion2(this.sesion).subscribe(result => this.bailar = result) } getprofesor(){ this.reporteservice.getprofesor(this.sesion).subscribe(result => this.prof = result) } getmateriasxprofe(){ this.reporteservice.getmateriasxprofe(this.vis.profesor).subscribe(result => this.bailar2 = result) console.log(this.vis.profesor); localStorage.setItem("grupo",this.vis.profesor); } acomodar(cont: any) { for (let i in cont) { console.log("entro") this.bailar2[i].lunes = "NO"; this.bailar2[i].martes = "NO"; this.bailar2[i].miercoles = "NO"; this.bailar2[i].jueves = "NO"; this.bailar2[i].viernes = "NO"; this.bailar2[i].reporteador = this.usuario; this.bailar2[i].semana = this.semana; this.bailar2[i].grupo = this.grupox; this.bailar2[i].sesion = this.sesion; } } sumaOresta(d: string, i: string) { if (this.acomodo == false) { this.acomodar(this.bailar2) this.acomodo = true } let sum = document.getElementById('suma' + i); let x = +sum.innerHTML; let chec = <HTMLInputElement>document.getElementById(d + i); if (chec.checked) { if (d == "lunes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].lunes = 'SI'; } else if (d == "martes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].martes = 'SI'; } else if (d == "miercoles") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].miercoles = 'SI'; } else if (d == "jueves") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].jueves = 'SI'; } else if (d == "viernes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].viernes = 'SI'; } } else { if (d == "lunes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].lunes = 'NO'; } else if (d == "martes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].martes = 'NO'; } else if (d == "miercoles") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].miercoles = 'NO'; } else if (d == "jueves") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].jueves = 'NO'; } else if (d == "viernes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].viernes = 'NO'; } } console.log(this.bailar2); } registrar() { this.registrardatosgenerales(); console.log(this.bailar2); this.reporteservice.registrar_asis(this.bailar2).subscribe(result => { this.bailar3 = result; if (result['resultado'] == 'OK') { alert(result['mensaje']); this.routs.navigateByUrl('inicio'); } }) } registrardatosgenerales(){ console.log(this.idsemana); this.reporteservice.registrar_datosgenerales(this.sesion,this.idsemana).subscribe(result => this.bailarx = result) } } <file_sep>/src/app/checar-asistencia/checar-asistencia.component.ts import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { SeleccionService } from '../service/seleccion.service' @Component({ selector: 'app-checar-asistencia', templateUrl: './checar-asistencia.component.html', styleUrls: ['./checar-asistencia.component.css'] }) export class ChecarAsistenciaComponent implements OnInit { dtOptions: DataTables.Settings = {}; //datos para datatable profesor; semana; grupo; bailar; constructor(private reporteservice: SeleccionService, private routs: Router) { } ngOnInit(): void{ this.dtOptions = { pagingType: 'full_numbers', "scrollY": "200px", "scrollCollapse": true, }; } getAsistencias(){ this.reporteservice.getAsistencias(this.semana, this.profesor, this.grupo).subscribe(result => this.bailar = result); console.log(this.profesor); } } <file_sep>/src/app/registro-maestro/registro-maestro.component.ts import { Component, OnInit } from '@angular/core'; import {SeleccionService } from '../service/seleccion.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-registro-maestro', templateUrl: './registro-maestro.component.html', styleUrls: ['./registro-maestro.component.css'] }) export class RegistroMaestroComponent implements OnInit { sesion; bailar= null; bailar2=null; semana = null; fechaInicio= null; fechaFin=null; acomodo: boolean = false; usuario; bailar3; idsemana; bailarx; constructor(private reporteservice: SeleccionService, private routs: Router) { this.sesion=localStorage.getItem("matricula"); this.semana = localStorage.getItem("semana"); this.fechaInicio= localStorage.getItem("fechaInicio"); this.fechaFin = localStorage.getItem("fechaFin"); this.usuario = localStorage.getItem("usuario"); this.idsemana=localStorage.getItem("idsemana"); console.log(this.semana); } ngOnInit() { this.getdatossesion(); this.getdatosdetabla(); } getdatossesion(){ this.reporteservice.getdatossesion2(this.sesion).subscribe(result => this.bailar = result) console.log(this.bailar); } getdatosdetabla(){ this.reporteservice.getdatosMaestro(this.sesion).subscribe(result => this.bailar2 = result ) } acomodar(cont: any) { for (let i in cont) { console.log("entro") this.bailar2[i].lunes = "NO"; this.bailar2[i].martes = "NO"; this.bailar2[i].miercoles = "NO"; this.bailar2[i].jueves = "NO"; this.bailar2[i].viernes = "NO"; this.bailar2[i].reporteador = this.usuario; this.bailar2[i].semana = this.semana; //this.bailar2[i].grupo = "2"; this.bailar2[i].sesion = this.sesion; } } sumaOresta(d: string, i: string) { if (this.acomodo == false) { this.acomodar(this.bailar2) this.acomodo = true } let sum = document.getElementById('suma' + i); let x = +sum.innerHTML; let chec = <HTMLInputElement>document.getElementById(d + i); if (chec.checked) { if (d == "lunes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].lunes = 'SI'; } else if (d == "martes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].martes = 'SI'; } else if (d == "miercoles") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].miercoles = 'SI'; } else if (d == "jueves") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].jueves = 'SI'; } else if (d == "viernes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].viernes = 'SI'; } } else { if (d == "lunes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].lunes = 'NO'; } else if (d == "martes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].martes = 'NO'; } else if (d == "miercoles") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].miercoles = 'NO'; } else if (d == "jueves") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].jueves = 'NO'; } else if (d == "viernes") { sum.innerHTML = (x + 1).toString(); this.bailar2[i].viernes = 'NO'; } } console.log(this.bailar2); } registrar() { this.registrardatosgenerales(); console.log(this.bailar2); this.reporteservice.registrar_asis(this.bailar2).subscribe(result =>{ this.bailar3 = result; if (result['resultado'] == 'OK') { alert(result['mensaje']); this.routs.navigateByUrl('inicio'); } }) } registrardatosgenerales(){ console.log(this.idsemana); this.reporteservice.registrar_datosgenerales(this.sesion,this.idsemana).subscribe(result => this.bailarx = result) } }
d06d439a3eefa94f499e3cbacd61c2d67371d411
[ "TypeScript" ]
12
TypeScript
Graceje/Miguel
61c7dcbbe640fc1ff3d930e416dc84fae81bcfca
c2eeae50e6b0f2f49df11f1d3d86d1edaaab743d
refs/heads/master
<file_sep>/** * */ package projectOne; /** * @author <NAME> * */ class Cat01 { } <file_sep>package projectOne; public class Projectone { public static void main(String[] args) { System.out.println(" Problem solved"); int x, y; boolean z; x = 10; y = 12; z = x<y; System.out.println("......................"); System.out.println(" Z is "+(x<y)); System.out.println(" "+z); System.out.println(" "+(x>y)); } }
38bdf0d0dc918cb7b2415be649486c0f3289d847
[ "Java" ]
2
Java
phmosarrof/Project1
64935494458dabf30e587f67c00b70d44ad239b5
012bfb781044b7baa92e14b4bddb3ea336db6c55
refs/heads/master
<file_sep>import sql from './db.js'; class apiModel { /** * Get common students * * @param {*} teacher * @param {*} callback */ getCommonStudents(teacher, callback) { let query = '', response = {}, condition_teacher_email = '', students = [], message = ''; teacher.map((teacher_email, index) => { if (index === 0) { condition_teacher_email = `t.teacher_email='${teacher_email}'`; } else { condition_teacher_email += `OR t.teacher_email='${teacher_email}'`; } }); query = `SELECT DISTINCT s.student_email FROM student as s, teacher as t, student_teacher as st WHERE t.teacher_id = st.teacher_id AND (${condition_teacher_email}) AND st.student_id = s.student_id ORDER BY student_email ASC`; sql.query(query, (err, result) => { if(err) { callback(err, null); } else { if (result.length > 0) { result.map((student, index) => { const { student_email } = student; students.push(student_email); }); response = { status : '200', students }; callback(null, response); } else { message = `No student exists!!`; callback(this.responseMessage(404, message), null); } } }); } /** * Register new student(s) * * @param {*} body * @param {*} callback */ registerStudent(body, callback) { const { teacher, students } = body; let query = '', insert_student, insert_student_teacher, message = ''; query = `SELECT COUNT(teacher_email) as count_teacher FROM teacher WHERE teacher_email=('${teacher}')`; sql.query(query, (err, result) => { if (err) { callback(err, null); } else { const { count_teacher } = result[0]; if(count_teacher > 0) { students.map(student => { insert_student = `INSERT INTO student(student_email) VALUES('${student}')`; sql.query(insert_student, (err, result_insert_student) => { if (err) { callback(err, null); } else { const { insertId } = result_insert_student; const student_id = insertId; insert_student_teacher = `INSERT INTO student_teacher(student_id, teacher_id) VALUES(${student_id}, (SELECT teacher_id FROM teacher WHERE teacher_email ='${teacher}'))`; sql.query(insert_student_teacher, (err, result_insert_student_teacher) => { if (err) { callback(err, null); } else { message = 'Student registered successfully !!' callback(this.responseMessage('200', message), null); } }); } }); }); } else { message = `The teacher ${teacher} doesn't exists!!`; callback(this.responseMessage(404, message), null); } } }); } /** * Suspend student * * @param {*} student_email * @param {*} callback */ suspendStudent(student_email, callback) { let query = '', message = ''; query = 'UPDATE student SET status = 0 WHERE student_email = ?'; sql.query(query, [student_email], (err, result) => { if(err) { callback(err, null); } else { message = `Student with email ${student_email} suspended successfully !!`; callback(this.responseMessage('200', message), null); } }); } /** * Send notification to the students * * @param {*} body * @param {*} callback */ sendNotificationToStudent(body, callback) { const { teacher, notification } = body; let query = '', message = '', query_student, response = {}, recipients = []; if (notification.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi)) { recipients = [...notification.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi)]; } query = `SELECT COUNT(teacher_email) as count_teacher FROM teacher WHERE teacher_email=('${teacher}')`; sql.query(query, (err, result) => { if (err) { callback(err, null); } else { const { count_teacher } = result[0]; if(count_teacher > 0) { query_student = `SELECT DISTINCT s.student_email FROM student as s, teacher as t, student_teacher as st WHERE t.teacher_id = st.teacher_id AND t.teacher_email = '${teacher}' AND st.student_id = s.student_id ORDER BY student_email ASC`; sql.query(query_student, (err, result_student) => { if(err) { callback(err, null); } else { if (result_student.length > 0) { result_student.map(student => { const { student_email } = student; recipients.push(student_email); }); response = { status : '200', recipients }; callback(null, response); } else { message = `No student exists!!`; callback(this.responseMessage(404, message), null); } } }); } else { message = `The teacher ${teacher} doesn't exists!!`; callback(this.responseMessage(404, message), null); } } }); } /** * Response message * * @param {*} status * @param {*} message */ responseMessage(status, message) { let response = {}; response = { status, message } return response; } } export default apiModel;<file_sep>module.exports = app => { const apiController = require('../controller/apiController'); // get common students app.route('/api/commonstudents') .get(apiController.get_common_students); // register the student app.route('/api/register') .post(apiController.register_student); // suspend the student app.route('/api/suspend') .post(apiController.suspend_student); // retrieve for notifications app.route('/api/retrievefornotifications') .post(apiController.send_notifications); };<file_sep># Project developed for student and teacher management using Nodejs and MySQL # setup with mysql DB: var connection = mysql.createConnection({ host : 'localhost', user : 'root', password : '', database : 'schooldb' }); once the DB connection successful, Create table for stundent, teacher and student_teacher. # student +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | student_id | int(11) | NO | PRI | NULL | auto_increment | | student_email | varchar(100) | NO | UNI | NULL | | | status | tinyint(4) | YES | | 1 | | +---------------+--------------+------+-----+---------+----------------+ # teacher +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | teacher_id | int(11) | NO | PRI | NULL | auto_increment | | teacher_email | varchar(100) | NO | UNI | NULL | | | status | tinyint(4) | YES | | 1 | | +---------------+--------------+------+-----+---------+----------------+ # student_teacher; +--------------------+---------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------------+---------+------+-----+---------+----------------+ | student_teacher_id | int(11) | NO | PRI | NULL | auto_increment | | student_id | int(11) | NO | MUL | NULL | | | teacher_id | int(11) | NO | MUL | NULL | | +--------------------+---------+------+-----+---------+----------------+ # Steps to run this project: 1. **Install the dependencies** : `npm install` 2. **Start node app** : `npm start` and open [https://localhost:3000] in browser 3. **Run test** : `npm test` # api/endpoints: ## GET Calls in browser: 1. (locahost)/api/commonstudents ## POST postman 1. (locahost)/api/register 2. (locahost)/api/suspend 3. (locahost)/api/retrievefornotifications # UNIT TESTS Unit test implement with Jest npm test<file_sep>import apiModel from '../model/apiModel'; const model = new apiModel(); /** * Get common students * * @param {*} req * @param {*} res */ export const get_common_students = (req, res) => { const { query } = req; const { teacher } = query; let teacher_email = []; if (teacher instanceof Array) { teacher_email = teacher; } else { teacher_email.push(teacher); } model.getCommonStudents(teacher_email, (err, task) => { if (err) { res.send(err); } res.json(task); }); }; /** * Register new student * * @param {*} req * @param {*} res */ export const register_student = (req, res) => { const { body } = req; const { teacher, students } = body; if (teacher && students) { model.registerStudent(body, (err, task) => { if (err) { res.send(err); } res.json(task) }); } }; /** * Get common students * * @param {*} req * @param {*} res */ export const suspend_student = (req, res) => { const { body } = req; const { student } = body; model.suspendStudent(student, (err, task) => { if (err) { res.send(err); } res.json(task); }); }; /** * Send notification * * @param {*} req * @param {*} res */ export const send_notifications = (req, res) => { const { body } = req; model.sendNotificationToStudent(body, (err, task) => { if (err) { res.send(err); } res.json(task); }); }<file_sep>import { get_common_students, register_student, suspend_student, send_notifications } from '../../controller/apiController'; describe('apiController', () => { const mockGetCommonStudentsResponse = { 'status' : '200', 'students' : [ '<EMAIL>', '<EMAIL>' ] }; const reqGetCommonStudents = { query : { teacher : [ '<EMAIL>' ] } }; const postNewStudent = { body : { teacher : '', student : [] } }; const postSuspendStudent = { body : { teacher : '', student : '' } }; const postSendNotifications = { body : { 'teacher' : '<EMAIL>', 'notification' : 'Hello students! <EMAIL> @<EMAIL>' } }; let resGetCommonStudents = { json : () => { }, send : () => { } }, resRegisterStudents = { json : () => { }, send : () => { } }, resPostSuspendStudent = { json : () => { }, send : () => { } }, resPostNotification = { json : () => { }, send : () => { } }; describe('get_common_students', () => { it('get_common_students function should return an object equal to mockGetCommonStudentsResponse', async () => { const data = get_common_students(reqGetCommonStudents, resGetCommonStudents); // expect(data).toEqual(mockGetCommonStudentsResponse); }); }); describe('register_student', () => { it('register_student function should return an object equal to mock data', async () => { const data = register_student(postNewStudent, resRegisterStudents); // expect(data).toEqual(mockGetCommonStudentsResponse); }); }); describe('suspend_student', () => { it('suspend_student function should return an object equal to mock data', async () => { const data = suspend_student(postSuspendStudent, resPostSuspendStudent); // expect(data).toEqual(mockGetCommonStudentsResponse); }); }); describe('send_notifications', () => { it('send_notifications function should return an object equal to mock data', async () => { const data = send_notifications(postSendNotifications, resPostNotification); // expect(data).toEqual(mockGetCommonStudentsResponse); }); }); });
b70344ba14d9d27942d2e17a8aab2c076c336beb
[ "JavaScript", "Markdown" ]
5
JavaScript
phanichander/node-assessment
0a253b21b6bb12fbcfe5ba852849bdb53a397731
6dabed60c3e14a8d3f6c672cf5389608dc38b178
refs/heads/master
<file_sep># SpringMVCTest Test project for Spring Web App Start : 18.04.2017 #Yep I know, css in jsp is http://i0.kym-cdn.com/photos/images/newsfeed/001/209/105/7b2.jpeg :D #Trust me, it's just for test <file_sep>package pl.bakkchos.helloworld; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.SessionAttributes; import pl.bakkchos.helloworld.utility.User; @Controller @SessionAttributes("user") public class LoginValidateController { @RequestMapping(value = "loginvalidate", method = RequestMethod.POST) public String hello(@ModelAttribute("user")User user ,Locale locale, Model model) { if(user.getLogin().equals("admin") & user.getPassword().equals("<PASSWORD>")){ model.addAttribute("user", user); return "loginvalidate"; }else { return "wronglogin"; } } @ModelAttribute("user") public User setVisitor (@ModelAttribute("user")User user) { return user; } } <file_sep>package pl.bakkchos.helloworld.utility; public class User { private String login; private String password; @Override public boolean equals(Object obj) { // TODO Auto-generated method stub return super.equals(obj); }@Override public int hashCode() { // TODO Auto-generated method stub return super.hashCode(); } public User() { } public String getLogin() { return login; } public void setLogin(String login) { this.login = login; } public String getPassword() { return password; } public void setPassword(String password) { this.password = <PASSWORD>; } }
fffd02b57c3fa9666c8c68c4a3ba24f7f7b19d5a
[ "Markdown", "Java" ]
3
Markdown
gibula-m/SpringMVCTest
0c9ee58aae4cf0034bf4c16f0fd19a424def4506
88eef35f4bc640d3332f838ae69402e76a4dda76
refs/heads/master
<file_sep># PHP-Resume-Database-Web-App Web Application to track resumes with a connection to MySQL using PHP, JSON, &amp; JavaScript. The web application uses the jQuery Autocomplete feature when typing in a school name with a pre-uploaded list of schools, and any new school that the user adds to the database as well. The SQL file name is misc.sql Login to the Web Application using the login: <EMAIL> and password: <PASSWORD> <file_sep>-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 16, 2018 at 04:43 PM -- Server version: 5.6.34-log -- PHP Version: 7.1.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `misc` -- -- -------------------------------------------------------- -- -- Table structure for table `autos` -- CREATE TABLE `autos` ( `autos_id` int(11) NOT NULL, `make` varchar(255) DEFAULT NULL, `model` varchar(255) DEFAULT NULL, `year` int(11) DEFAULT NULL, `mileage` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `autos` -- INSERT INTO `autos` (`autos_id`, `make`, `model`, `year`, `mileage`) VALUES (1, 'Buick', NULL, 2002, 20385), (2, 'honda', NULL, 2000, 22); -- -------------------------------------------------------- -- -- Table structure for table `education` -- CREATE TABLE `education` ( `profile_id` int(11) NOT NULL DEFAULT '0', `institution_id` int(11) NOT NULL DEFAULT '0', `rank` int(11) DEFAULT NULL, `year` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `institution` -- CREATE TABLE `institution` ( `institution_id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `institution` -- INSERT INTO `institution` (`institution_id`, `name`) VALUES (10, 'Central Michigan University'), (6, 'Duke University'), (13, 'Harvard University'), (7, 'Michigan State University'), (8, 'Mississippi State University'), (11, 'MIT'), (9, 'Montana State University'), (12, 'Saginaw Valley State University'), (5, 'Stanford University'), (4, 'University of Cambridge'), (15, 'University of Chicago'), (14, 'University of Florida'), (1, 'University of Michigan'), (3, 'University of Oxford'), (2, 'University of Virginia'), (16, 'Yale University'); -- -------------------------------------------------------- -- -- Table structure for table `position` -- CREATE TABLE `position` ( `position_id` int(11) NOT NULL, `profile_id` int(11) DEFAULT NULL, `rank` int(11) DEFAULT NULL, `year` int(11) DEFAULT NULL, `description` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `profile` -- CREATE TABLE `profile` ( `profile_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `first_name` text, `last_name` text, `email` text, `headline` text, `summary` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `tracks` -- CREATE TABLE `tracks` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(128) DEFAULT NULL, `plays` int(11) DEFAULT NULL, `rating` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `user_id` int(11) NOT NULL, `name` varchar(128) DEFAULT NULL, `email` varchar(128) DEFAULT NULL, `password` varchar(128) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `users` -- INSERT INTO `users` (`user_id`, `name`, `email`, `password`) VALUES (1, 'UMSI', '<EMAIL>', '<PASSWORD>'); -- -- Indexes for dumped tables -- -- -- Indexes for table `autos` -- ALTER TABLE `autos` ADD PRIMARY KEY (`autos_id`); -- -- Indexes for table `education` -- ALTER TABLE `education` ADD PRIMARY KEY (`profile_id`,`institution_id`), ADD KEY `education_ibfk_2` (`institution_id`); -- -- Indexes for table `institution` -- ALTER TABLE `institution` ADD PRIMARY KEY (`institution_id`), ADD UNIQUE KEY `name` (`name`); -- -- Indexes for table `position` -- ALTER TABLE `position` ADD PRIMARY KEY (`position_id`), ADD KEY `position_ibfk_1` (`profile_id`); -- -- Indexes for table `profile` -- ALTER TABLE `profile` ADD PRIMARY KEY (`profile_id`), ADD KEY `profile_ibfk_2` (`user_id`); -- -- Indexes for table `tracks` -- ALTER TABLE `tracks` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`user_id`), ADD KEY `email` (`email`), ADD KEY `password` (`password`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `autos` -- ALTER TABLE `autos` MODIFY `autos_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `institution` -- ALTER TABLE `institution` MODIFY `institution_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `position` -- ALTER TABLE `position` MODIFY `position_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `profile` -- ALTER TABLE `profile` MODIFY `profile_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tracks` -- ALTER TABLE `tracks` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `education` -- ALTER TABLE `education` ADD CONSTRAINT `education_ibfk_1` FOREIGN KEY (`profile_id`) REFERENCES `profile` (`profile_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `education_ibfk_2` FOREIGN KEY (`institution_id`) REFERENCES `institution` (`institution_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `position` -- ALTER TABLE `position` ADD CONSTRAINT `position_ibfk_1` FOREIGN KEY (`profile_id`) REFERENCES `profile` (`profile_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `profile` -- ALTER TABLE `profile` ADD CONSTRAINT `profile_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; <file_sep><?php require_once "pdo.php"; require_once "head.php"; require_once "util.php"; session_start(); // Load the profile $stmt = $pdo->prepare('SELECT * FROM profile WHERE profile_id = :profile_id'); $stmt->execute(array( ':profile_id' => $_REQUEST['profile_id'])); // ':user_id' => $_SESSION['user_id'])); $profile = $stmt->fetch(PDO::FETCH_ASSOC); if ( $profile === false ) { $_SESSION['error'] = "Could not load profile"; header('Location: index.php'); return; } $positions = loadPos($pdo, $_REQUEST['profile_id']); $schools = loadEdu($pdo, $_REQUEST['profile_id']); ?> <!DOCTYPE html> <html> <head> <?php require_once "head.php"; ?> <title>Scott Daily's Profile View</title> </head> <body> <div class="container"> <h1>Profile information</h1> <p>First Name: <?php echo htmlentities($profile['first_name']); ?> </p> <p>Last Name: <?php echo htmlentities($profile['last_name']); ?> </p> <p>Email: <?= htmlentities($profile['email']); ?> </a></p> <p>Headline:<br/> <?= htmlentities($profile['headline']); ?> </p> <p>Summary:<br/> <?= htmlentities($profile['summary']); ?><p> <p>Education</p> <p> <?php $count= 0; foreach( $schools as $school ) { $count++; echo('<ul>'); echo('<li>'); echo(htmlentities($school['year'])); echo(': '); echo(htmlentities($school['name'])."\n"); echo('</li>'); echo('</ul>'); } ?> <p>Postions</p> <p> <?php $pos= 0; foreach( $positions as $position ) { $pos++; echo('<ul>'); echo('<li>'); echo(htmlentities($position['year'])); echo(': '); echo(htmlentities($position['description'])."\n"); echo('</li>'); echo('</ul>'); } ?> <a href="index.php">Done</a> </p> </div> </body> </html> <file_sep><?php require_once "pdo.php"; require_once "head.php"; session_start(); $data = $pdo->prepare('SELECT profile_id, user_id, first_name, last_name, headline FROM Profile'); $data->execute(); $row = $data->fetch(PDO::FETCH_ASSOC); ?> <html> <head> <?php require_once "head.php"; ?> <title>Scott Daily's Resume Registry</title> </head> <body> <div class="container"> <h2>Scott Daily's Resume Registry</h2> <?php if (isset($_SESSION['error'])) { echo '<p style="color: red;">'.$_SESSION['error'].'</p>'; unset($_SESSION['error']); } //If not logged in if ( !isset($_SESSION["name"])) { echo '<p><a href="login.php">Please log in</a></p>'; if ($row !== false) { echo '<table border="1">'; echo '<tr><th>Name</th><th>Headline</th><tr>'; echo '<br><br>'; while ($row = $data->fetch(PDO::FETCH_ASSOC)) { $p_id = $row['profile_id']; $u_id = $row['user_id']; $name = htmlentities($row['first_name'])." ".htmlentities($row['last_name']); $hd = htmlentities($row['headline']); echo '<tr><td><a href="view.php?profile_id='.$p_id.'">'.$name.'</a></td><td>'.$hd.'</td></tr>'; } echo '</table>'; } } else { // If logged in show this if ( isset($_SESSION["success"]) ) { echo '<p style="color: green;">'.$_SESSION['success'].'.</p>'; unset($_SESSION["success"]); } echo '<p><a href="logout.php">Logout</a></p>'; if ($row !== false) { echo '<table border="1">'; echo '<tr><th>Name</th><th>Headline</th><th>Action</th><tr>'; $p_id = $row['profile_id']; $name = htmlentities($row['first_name']." ".$row['last_name']); $hd = htmlentities($row['headline']); echo '<tr><td><a href="view.php?profile_id='.$p_id.'">'.$name.'</a></td><td>'.$hd.'</td><td><a href="edit.php?profile_id='.$p_id.'">Edit</a> <a href="delete.php?profile_id='.$p_id.'">Delete</a></td></tr>'; while ($row = $data->fetch(PDO::FETCH_ASSOC)) { $p_id = $row['profile_id']; $name = htmlentities($row['first_name']." ".$row['last_name']); $hd = htmlentities($row['headline']); echo '<tr><td><a href="view.php?profile_id='.$p_id.'">'.$name.'</a></td><td>'.$hd.'</td><td><a href="edit.php?profile_id='.$p_id.'">Edit</a> <a href="delete.php?profile_id='.$p_id.'">Delete</a></td></tr>'; } echo '</table>'; } echo '<p><a href="add.php">Add New Entry</a></p>'; } ?> </div> </body> </html>
08da4f777a51a9889bf61896f9f4bb9d7a64cd32
[ "Markdown", "SQL", "PHP" ]
4
Markdown
scott-daily/PHP-Resume-Database-Web-App
a47ef43f0c4378d9bec3d145abbe4dd768ab9152
4e90f474a53e72fc23ea0de3defac539b1d585c2
refs/heads/master
<repo_name>Nekrolm/hse_cpp_examples<file_sep>/custom_testing/Makefile test: testing.cpp testing.h g++ -o test -std=c++14 testing.cpp clean: rm test <file_sep>/map_task/solutions/03_get_or_create.cpp #include <map> #include <assert.h> /* Задача №1: Ассоциативный контейнер с семантикой get_or_create_by: Если в контейнере есть значение, соответсвующее ключу, возвращается оно. Иначе -- выполняется отложенный вызов функции (функционального объекта), создающей новое значение Подсказки: 1. try_emplace стандартных контейнеров 2. вспомогательная структура с особым конструктором 3. Используйте шаблоны для вызываемого объекта */ template <class Key, class Value> class Map { public: struct Proxy { template <class Func> Proxy(Func f) : val(f()) {} Value val; }; template <class Func> Value& get_or_create(const Key& key, Func f) { return map_.try_emplace(key, f).first->second.val; } Value* get(const Key& k) { if (auto it = map_.find(k); it != map_.end()) { return &(it->second.val); } return nullptr; } const Value* get(const Key& key) const { return const_cast<Map*>(this)->get(key); } private: std::map<Key, Proxy> map_; }; int main() { Map<int, int> m; assert(m.get(1) == nullptr); assert(m.get_or_create(5, []{return 6;})==6); assert(m.get_or_create(5, []{return 8;})==6); } <file_sep>/io/CMakeLists.txt cmake_minimum_required(VERSION 3.5) set(CXX_STANDARD 14) project(CPP_IO) add_executable(${PROJECT_NAME} "main.cpp") <file_sep>/any/any.h namespace cls_26 { }<file_sep>/templates/forwarding.cpp #include <vector> #include <memory> #include <utility> #include <iostream> template <class T> decltype(auto) PerfectForward(T&& x){ return std::forward<T>(x); } static const auto PerfectForwardLambda = [](auto&& x) -> decltype(auto) { return std::forward<decltype(x)>(x); }; template <class Function, class Arg> decltype(auto) PerfectForwardFuncCall(Function&& f, Arg&& arg) { return std::forward<Function>(f)(std::forward<Arg>(arg)); } int& increment(int& x){ x += 1; return x; } //------------------------------ struct NonStackStruct { private: struct CreateTag {}; public: int a; int b; float c; template <class... Args> static std::unique_ptr<NonStackStruct> Make(Args&&... args) { return std::make_unique<NonStackStruct>(CreateTag{}, std::forward<Args>(args)...); } template <class... Args> NonStackStruct(CreateTag, Args&&... args) : NonStackStruct(std::forward<Args>(args)...) {} private: NonStackStruct(int a_, int b_, float c_) : a(a_), b(b_), c(c_) {} NonStackStruct(const std::string& s) : a(s.length()), b(s.capacity()), c(5) {} }; //----------------------------- int main(){ auto item = NonStackStruct::Make(1,2,3); } <file_sep>/pimpl/my_string.h #pragma once #include <memory> #include <string> #include <string_view> class MyString { public: MyString(std::string_view); MyString(MyString&&) = default; ~MyString(); MyString& operator = (MyString&&) = default; std::string_view ToStdString() const; private: class MyStringImpl; std::unique_ptr<MyStringImpl> impl_; }; <file_sep>/cmake_ctests/src/test.cpp #include <gtest/gtest.h> TEST(example_group, example_true) { ASSERT_EQ(1,1); ASSERT_NE(1,2); } TEST(example_group, example_false) { ASSERT_NE(1,1); ASSERT_EQ(1,2); } int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }<file_sep>/cmake_ctests/bootstrap.sh #!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" mkdir -p "$DIR"/conan_deps (cd "$DIR"/conan_deps && conan install .. -s compiler.cppstd=14 -s compiler.libcxx=libstdc++11 --build=missing ) cmake -DCMAKE_PROJECT_INCLUDE="$DIR"/conan_deps/conan_paths.cmake "$@" <file_sep>/map_task/1_cli_args.cpp #include <string_view> #include <map> #include <algorithm> #include <iostream> #include <iterator> /* Задача №-1 аргументы командной строки задаются в формате --key=value используя std::transform + std::inserter, заполните по этим параметрам std::[unordered_]map<std::string_view, std::string_view> */ int main(int argc, char* argv[]) { std::map<std::string_view, std::string_view> args; //TODO for (auto [key, value] : args) { std::cout << "key=" << key << "; value=" << value << std::endl; } } <file_sep>/any/test_any.cpp #include "any.h" #include "any.h" // Test double inclusion #include "doctest.h" #include <string> #include <utility> #include <vector> #include <type_traits> //#define ANY_TEST_00_INIT //#define ANY_TEST_01_OWNERSHIP //#define ANY_TEST_02_TYPE //#define ANY_TEST_03_SWAP //#define ANY_TEST_04_MOVABLE //#define ANY_TEST_05_COPYABLE //#define ANY_TEST_06_ANY_CAST_NON_CONST //#define ANY_TEST_07_ANY_CAST_CONST //#define ANY_TEST_08_ANY_CAST_VAL //#define ANY_TEST_09_ANY_CAST_RREF //#define ANY_TEST_10_ANY_CAST_LREF #ifdef ANY_TEST_00_INIT TEST_CASE("Default-initialize any") { cls_26::any x; static_cast<void>(x); } TEST_CASE("Copy-initialize any from...") { SUBCASE("int") { cls_26::any x = 10; static_cast<void>(x); } SUBCASE("std::string") { cls_26::any x = std::string("foo"); static_cast<void>(x); } SUBCASE("std::vector<int>") { cls_26::any x = std::vector{1, 2, 3}; static_cast<void>(x); } } #endif // ANY_TEST_00_COPY_INIT #ifdef ANY_TEST_01_OWNERSHIP TEST_CASE("any owns the object") { int destructors = 0; struct DestructCounter { int *destructorsCounter; ~DestructCounter() { ++*destructorsCounter; } }; { DestructCounter counter{&destructors}; REQUIRE(destructors == 0); { cls_26::any x = counter; static_cast<void>(x); CHECK(destructors == 0); } CHECK(destructors == 1); } CHECK(destructors == 2); } #endif // ANY_TEST_01_ONWERSHIP #ifdef ANY_TEST_02_TYPE TEST_CASE("any knows type of the object") { SUBCASE("int") { const cls_26::any &x = 10; CHECK(x.type() == typeid(int)); } SUBCASE("std::string") { const cls_26::any &x = std::string("foo"); CHECK(x.type() == typeid(std::string)); } SUBCASE("std::vector<int>") { const cls_26::any &x = std::vector{1, 2, 3}; CHECK(x.type() == typeid(std::vector<int>)); } struct Base { virtual ~Base() {} }; struct Derived : Base {}; SUBCASE("Polymorphic Derived*") { auto data = std::make_unique<Derived>(); const cls_26::any &x = data.get(); CHECK(x.type() == typeid(Derived*)); } SUBCASE("Polymorphic Base*") { auto data = std::make_unique<Derived>(); const cls_26::any &x = static_cast<Base*>(data.get()); CHECK(x.type() == typeid(Base*)); } SUBCASE("empty any") { cls_26::any x; CHECK(x.type() == typeid(void)); } } #endif // ANY_TEST_02_TYPE #ifdef ANY_TEST_03_SWAP TEST_CASE("std::swap<any> works") { cls_26::any a = 10; cls_26::any b = std::string("foo"); std::swap(a, b); CHECK(a.type() == typeid(std::string)); CHECK(b.type() == typeid(int)); } #endif // ANY_TEST_03_SWAP #ifdef ANY_TEST_04_MOVABLE TEST_CASE("any is move-constructible") { cls_26::any a = 10; cls_26::any b(std::move(a)); CHECK(b.type() == typeid(int)); CHECK(a.type() == typeid(void)); cls_26::any c(std::move(a)); CHECK(c.type() == typeid(void)); CHECK(a.type() == typeid(void)); } TEST_CASE("any is move-assignable") { cls_26::any a = 10; cls_26::any b = std::string("foo"); cls_26::any c; cls_26::any d; a = std::move(b); // non-empty <-- non-empty CHECK(a.type() == typeid(std::string)); CHECK(b.type() == typeid(void)); b = std::move(a); // empty <-- non-empty CHECK(b.type() == typeid(std::string)); CHECK(a.type() == typeid(void)); c = std::move(a); // empty <-- empty CHECK(c.type() == typeid(void)); CHECK(a.type() == typeid(void)); b = std::move(a); // non-empty <-- empty CHECK(b.type() == typeid(void)); CHECK(a.type() == typeid(void)); cls_26::any &bres = b = std::move(a); CHECK(&bres == &b); } #endif // ANY_TEST_04_MOVABLE #ifdef ANY_TEST_05_COPYABLE TEST_CASE("any is copy-constructible") { SUBCASE("") { cls_26::any a; cls_26::any b = a; CHECK(a.type() == typeid(void)); CHECK(b.type() == typeid(void)); } SUBCASE("any with data") { std::vector<int> data(1'000'000); cls_26::any a = data; REQUIRE(a.type() == typeid(std::vector<int>)); cls_26::any b = a; CHECK(a.type() == typeid(std::vector<int>)); CHECK(b.type() == typeid(std::vector<int>)); } } TEST_CASE("any is copy-constructible") { cls_26::any a = 10; cls_26::any b = std::string("foo"); cls_26::any c; cls_26::any d; a = b; // non-empty <-- non-empty CHECK(a.type() == typeid(std::string)); CHECK(b.type() == typeid(std::string)); c = d; // empty <-- empty CHECK(c.type() == typeid(void)); CHECK(d.type() == typeid(void)); c = b; // empty <-- non-empty CHECK(c.type() == typeid(std::string)); CHECK(b.type() == typeid(std::string)); b = d; // non-empty <-- empty CHECK(b.type() == typeid(void)); CHECK(d.type() == typeid(void)); cls_26::any &bres = b = d; CHECK(&bres == &b); a = 12345; // Implicit conversion. CHECK(a.type() == typeid(int)); } #endif // ANY_TEST_05_COPYABLE #ifdef ANY_TEST_06_ANY_CAST_NON_CONST TEST_CASE("any_cast<>(any*) works") { SUBCASE("nullptr to int") { cls_26::any *a = nullptr; CHECK(cls_26::any_cast<int>(a) == nullptr); } SUBCASE("nullptr to std::string") { cls_26::any *a = nullptr; CHECK(cls_26::any_cast<std::string>(a) == nullptr); } SUBCASE("nullptr to void") { cls_26::any *a = nullptr; CHECK(cls_26::any_cast<void>(a) == nullptr); } SUBCASE("empty any to int") { cls_26::any a; CHECK(cls_26::any_cast<int>(&a) == nullptr); } SUBCASE("empty any to std::string") { cls_26::any a; CHECK(cls_26::any_cast<std::string>(&a) == nullptr); } SUBCASE("empty any to void") { cls_26::any a; CHECK(cls_26::any_cast<void>(&a) == nullptr); } SUBCASE("any to int") { cls_26::any a = 10; static_assert(std::is_same_v<int*, decltype(cls_26::any_cast<int>(&a))>); int *ptr = cls_26::any_cast<int>(&a); REQUIRE(ptr); CHECK(*ptr == 10); *ptr = 20; CHECK(*ptr == 20); int *ptr2 = cls_26::any_cast<int>(&a); CHECK(ptr2 == ptr2); } SUBCASE("any to std::string") { cls_26::any a = std::string("foo"); static_assert(std::is_same_v<std::string*, decltype(cls_26::any_cast<std::string>(&a))>); std::string *ptr = cls_26::any_cast<std::string>(&a); REQUIRE(ptr); CHECK(*ptr == "foo"); *ptr += "x"; CHECK(*ptr == "foox"); std::string *ptr2 = cls_26::any_cast<std::string>(&a); CHECK(ptr2 == ptr2); } SUBCASE("any to int erroneously") { cls_26::any a = std::string("foo"); CHECK(cls_26::any_cast<int>(&a) == nullptr); } SUBCASE("any to std::string erroneously") { cls_26::any a = 10; CHECK(cls_26::any_cast<std::string>(&a) == nullptr); } } #endif // ANY_TEST_06_ANY_CAST_NON_CONST #ifdef ANY_TEST_07_ANY_CAST_CONST TEST_CASE("any_cast<>(any*) works") { SUBCASE("nullptr to different types") { const cls_26::any *a = nullptr; CHECK(cls_26::any_cast<int>(a) == nullptr); CHECK(cls_26::any_cast<std::string>(a) == nullptr); } SUBCASE("nullptr to void") { const cls_26::any *a = nullptr; CHECK(cls_26::any_cast<void>(a) == nullptr); } SUBCASE("empty any to different types") { const cls_26::any a; CHECK(cls_26::any_cast<int>(&a) == nullptr); CHECK(cls_26::any_cast<std::string>(&a) == nullptr); } SUBCASE("empty any to void") { const cls_26::any a; CHECK(cls_26::any_cast<void>(&a) == nullptr); } SUBCASE("any to int") { const cls_26::any a = 10; static_assert(std::is_same_v<const int*, decltype(cls_26::any_cast<int>(&a))>); const int *ptr = cls_26::any_cast<int>(&a); REQUIRE(ptr); CHECK(*ptr == 10); const int *ptr2 = cls_26::any_cast<int>(&a); CHECK(ptr2 == ptr2); } SUBCASE("any to std::string") { const cls_26::any a = std::string("foo"); static_assert(std::is_same_v<const std::string*, decltype(cls_26::any_cast<std::string>(&a))>); const std::string *ptr = cls_26::any_cast<std::string>(&a); REQUIRE(ptr); CHECK(*ptr == "foo"); const std::string *ptr2 = cls_26::any_cast<std::string>(&a); CHECK(ptr2 == ptr2); } SUBCASE("any to int erroneously") { const cls_26::any a = std::string("foo"); CHECK(cls_26::any_cast<int>(&a) == nullptr); } SUBCASE("any to std::string erroneously") { const cls_26::any a = 10; CHECK(cls_26::any_cast<std::string>(&a) == nullptr); } } #endif // ANY_TEST_07_ANY_CAST_CONST #ifdef ANY_TEST_08_ANY_CAST_VAL static_assert(std::is_convertible_v<cls_26::bad_any_cast&, std::logic_error&>); TEST_CASE("any_cast<>(any&) and any_cast<>(const any&) work") { SUBCASE("any to int") { cls_26::any a = 10; static_assert(!std::is_reference_v<decltype(cls_26::any_cast<int>(a))>); static_assert(!std::is_const_v<decltype(cls_26::any_cast<int>(a))>); CHECK(cls_26::any_cast<int>(a) == 10); } SUBCASE("any to std::string") { cls_26::any a = std::string("foo"); static_assert(!std::is_reference_v<decltype(cls_26::any_cast<std::string>(a))>); static_assert(!std::is_const_v<decltype(cls_26::any_cast<std::string>(a))>); CHECK(cls_26::any_cast<std::string>(a) == "foo"); } SUBCASE("const any to int") { const cls_26::any a = 10; static_assert(!std::is_reference_v<decltype(cls_26::any_cast<int>(a))>); static_assert(!std::is_const_v<decltype(cls_26::any_cast<int>(a))>); CHECK(cls_26::any_cast<int>(a) == 10); } SUBCASE("const any to std::string") { const cls_26::any a = std::string("foo"); static_assert(!std::is_reference_v<decltype(cls_26::any_cast<std::string>(a))>); static_assert(!std::is_const_v<decltype(cls_26::any_cast<std::string>(a))>); CHECK(cls_26::any_cast<std::string>(a) == "foo"); } SUBCASE("empty any to different_types") { cls_26::any a; CHECK_THROWS_AS(cls_26::any_cast<int>(a), const cls_26::bad_any_cast &); CHECK_THROWS_AS(cls_26::any_cast<std::string>(a), const cls_26::bad_any_cast &); } SUBCASE("const empty any to different_types") { const cls_26::any a; CHECK_THROWS_AS(cls_26::any_cast<int>(a), const cls_26::bad_any_cast &); CHECK_THROWS_AS(cls_26::any_cast<std::string>(a), const cls_26::bad_any_cast &); } SUBCASE("any to int erroneously") { cls_26::any a = std::string("foo"); CHECK_THROWS_AS(cls_26::any_cast<int>(a), const cls_26::bad_any_cast &); } SUBCASE("any to std::string erroneously") { cls_26::any a = 10; CHECK_THROWS_AS(cls_26::any_cast<std::string>(a), const cls_26::bad_any_cast &); } SUBCASE("const any to int erroneously") { cls_26::any a = std::string("foo"); CHECK_THROWS_AS(cls_26::any_cast<int>(a), const cls_26::bad_any_cast &); } SUBCASE("const any to std::string erroneously") { cls_26::any a = 10; CHECK_THROWS_AS(cls_26::any_cast<std::string>(a), const cls_26::bad_any_cast &); } } #endif // ANY_TEST_08_ANY_CAST_VAL #ifdef ANY_TEST_09_ANY_CAST_RREF TEST_CASE("any_cast<T>(any&&) works and moves from") { struct MovableFrom { bool moved = false, moved_from = false; MovableFrom() {} MovableFrom(const MovableFrom &other) : moved(other.moved), moved_from(other.moved_from) {} MovableFrom(MovableFrom &&other) : moved(true) { other.moved_from = true; } }; MovableFrom object; REQUIRE(!object.moved_from); cls_26::any a = object; CHECK(!object.moved_from); static_assert(!std::is_reference_v<decltype(cls_26::any_cast<MovableFrom>(std::move(a)))>); static_assert(!std::is_const_v<decltype(cls_26::any_cast<MovableFrom>(std::move(a)))>); SUBCASE("check moves") { { MovableFrom inside = cls_26::any_cast<MovableFrom>(a); CHECK(!inside.moved); CHECK(!inside.moved_from); } { MovableFrom inside = cls_26::any_cast<MovableFrom>(a); CHECK(!inside.moved); CHECK(!inside.moved_from); } { MovableFrom inside = cls_26::any_cast<MovableFrom>(std::move(a)); CHECK(inside.moved); CHECK(!inside.moved_from); } { MovableFrom inside = cls_26::any_cast<MovableFrom>(a); CHECK(!inside.moved); CHECK(inside.moved_from); } } SUBCASE("exception is raised on erroneous conversion") { CHECK_THROWS_AS(cls_26::any_cast<std::string>(a), const cls_26::bad_any_cast &); } } #endif // ANY_TEST_09_ANY_CAST_REF #ifdef ANY_TEST_10_ANY_CAST_LREF TEST_CASE("any_cast<T&>(any)") { SUBCASE("any to int&") { cls_26::any a = 10; int &x = cls_26::any_cast<int&>(a); REQUIRE(x == 10); x = 20; REQUIRE(x == 20); REQUIRE(cls_26::any_cast<int>(a) == 20); } SUBCASE("any to std::string&") { cls_26::any a = std::string("foo"); std::string &x = cls_26::any_cast<std::string&>(a); REQUIRE(x == "foo"); x += "x"; REQUIRE(x == "foox"); REQUIRE(cls_26::any_cast<std::string>(a) == "foox"); } SUBCASE("exception is raised on erroneous conversion") { cls_26::any a = 10; CHECK_THROWS_AS(cls_26::any_cast<std::string&>(a), const cls_26::bad_any_cast &); } } #endif // ANY_TEST_10_ANY_CAST_LREF <file_sep>/map_task/4_extra_lru_cache.cpp #include <map> /* Задача №2*: LRU-кэш. Ассоциативный контейнер с ограниченным числом элементов. Если необходимо создать новый элемент, а лимит исчерпан -- из контейнера удаляется наиболее долго не используемый элемент. Также требутеся семантика get_or_create_by Подсказки/советы: 1. try_emplace скорее всего мало толку 2. std::list может быть полезен (splice) 3. нужен mutable */ template <class Key, class Value /*, ????*/> class LRUCache { public: LRUCache(int limit); Value& get_or_create(const Key& key /*func*/); Value* get(const Key&); const Value* get(const Key&) const; private: //??? }; int main() { LRUCache<int, int> m(1); assert(m.get(1) == nullptr); assert(m.get_or_create(5, []{return 6;})==6); assert(m.get_or_create(4, []{return 8;})==8); // вытеснение assert(m.get_or_create(5, []{return 8;})==8); } <file_sep>/templates/list.cpp #include <iostream> #include <cstring> #include <type_traits> #include <utility> #include <tuple> template <class... Args> struct always_false : std::false_type {}; template <class... Args> struct List { static_assert(always_false<Args...>::value, "unsupported"); }; // empty list template <> struct List<>{}; template <class Head, class... Args> struct List<Head, List<Args...>> { Head head; List<Args...> tail; }; template <class Head, class... Args> List<Head, List<Args...>> cons (Head x, List<Args...> xs) { return { x, xs }; } template <class Head, class... Args> Head car(List<Head, List<Args...>> list){ return list.head; } template <class Head, class... Args> List<Args...> cdr(List<Head, List<Args...>> list){ return list.tail; } template <class List> void print(List l) { std::cout << car(l) << "\n"; print(cdr(l)); } template <> void print(List<>){ return; } const static auto nil = List<>{}; int main() { auto L = cons(5, cons(6.7, cons("1231", nil))); print(L); return 0; } <file_sep>/templates/vector.cpp #include <iostream> #include <cstring> #include <type_traits> #include <utility> #include <memory> // represent only memory template <typename T, class Alloc = std::allocator<T>> struct vector_base { using AllocTrait = std::allocator_traits<Alloc>; vector_base() noexcept = default; vector_base(size_t capacity){ if (capacity == 0) return; // adjust capacity to power of 2 space_ = storage_ = AllocTrait::allocate(allocator_, capacity); storage_end_ = storage_ + capacity; } ~vector_base() { if (storage_) AllocTrait::deallocate(allocator_, storage_, storage_end_ - storage_); } void swap(vector_base& other) noexcept { std::swap(storage_, other.storage_); std::swap(space_, other.space_); std::swap(storage_end_, other.storage_end_); std::swap(allocator_, other.allocator_); } vector_base(const vector_base&) = delete; vector_base(vector_base&& other) noexcept { swap(other); } vector_base& operator = (const vector_base&) = delete; vector_base& operator = (vector_base&& other) noexcept { swap(other); return *this; } size_t capacity() const noexcept { return storage_end_ - storage_; } size_t size() const noexcept { return space_ - storage_; } T* storage_ = nullptr; T* space_ = nullptr; T* storage_end_ = nullptr; Alloc allocator_; }; template <typename T, class Alloc = std::allocator<T>> class vector : private vector_base<T, Alloc> { private: using base = vector_base<T, Alloc>; using AllocTrait = typename base::AllocTrait; public: vector() = default; vector(size_t n) : base(n) { std::uninitialized_value_construct_n(begin(), n); space_ += n; } ~vector() { clear(); } vector(size_t n, const T& default_value) : base(n) { std::uninitialized_fill_n(begin(), n, default_value); space_ += n; } vector(vector&& other) noexcept { base::swap(other); } vector(const vector& other) : base(other.size()) { std::uninitialized_copy_n(other.begin(), other.size(), begin()); space_ += other.size(); } vector& operator = (vector&& other) noexcept { base::swap(other); return *this; } vector& operator = (const vector& other) { vector tmp(other); return *this = std::move(tmp); } void pop_back() noexcept { AllocTrait::destroy(allocator_, space_ - 1); space_--; } void reserve(size_t new_capacity) { if (new_capacity <= capacity()) return; base new_base(new_capacity); std::uninitialized_move_n(begin(), size(), new_base.space_); new_base.space_ += size(); clear(); base::swap(new_base); } void resize(size_t new_size) { if (new_size <= size()){ while(new_size < size()){ pop_back(); } return; } size_t construct_cnt = new_size - size(); if (new_size <= capacity()){ std::uninitialized_value_construct_n(begin(), construct_cnt); space_ += construct_cnt; } else{ base new_base(new_size); std::uninitialized_value_construct_n(new_base.space_ + size(), construct_cnt); std::uninitialized_move_n(begin(), size(), new_base.space_); new_base.space_ += new_size; base::swap(new_base); } } template <class... Args> void emplace_back(Args&&... args) { if (size() < capacity()) { AllocTrait::construct(allocator_, space_, std::forward<Args>(args)...); space_++; return; } base new_base(std::max(static_cast<size_t>(1), capacity() * 2)); AllocTrait::construct(new_base.allocator_, new_base.space_ + size(), std::forward<Args>(args)...); std::uninitialized_move_n(begin(), size(), new_base.space_); new_base.space_ += size() + 1; base::swap(new_base); } void push_back(const T& v) { emplace_back(v); } const T& operator [] (size_t i) const { return begin()[i]; } T& operator [] (size_t i) { return begin()[i]; } using base::capacity; using base::size; bool empty() const noexcept { return size() == 0; } void clear() noexcept { while (!empty()) pop_back(); } T* begin() { return storage_; } const T* begin() const { return storage_; } T* end() { return space_; } const T* end() const { return space_; } private: using base::allocator_; using base::space_; using base::storage_; }; //------------------------------------ int main() { vector<int> v; v.push_back(1); v.push_back(2); std::cout << v.size() << "\n"; std::cout << v.capacity() << "\n"; for (auto x : v) std::cout << x << " "; std::cout << "\n"; vector<std::string> vs(5, "ololo"); std::cout << vs.size() << "\n"; std::cout << vs.capacity() << "\n"; for (const auto& x : vs) std::cout << x << " "; return 0; } <file_sep>/cmake_ctests/CMakeLists.txt cmake_minimum_required(VERSION 3.15) project(Test) set(CXX_STANDARD 14) include(CTest) find_package(GTest CONFIG REQUIRED) add_subdirectory(src) <file_sep>/map_task/2_output_accumulator.cpp #include <string> #include <sstream> #include <algorithm> #include <iostream> #include <iterator> #include <vector> /* Задача №0 std::transform + accumulate_output_iterator: Реализовать итератор, позволяющий выполнить суммирование чисел, заданных контейнером строк, "однострочником" вида: int result = 0; std::transform(std::begin(v), std::end(v), accumulate_output_iterator(result), parse_int); Подсказки/советы: 1. accumulate_output_iterator -- шаблонная функция 2. https://en.cppreference.com/w/cpp/named_req/OutputIterator 3. определите структуру для итератора в скоупе функции */ //TODO: accumulate_iterator int main(int argc, char* argv[]) { std::vector<std::string> input = {"1", "2", "3"}; int sum = 0; std::transform(std::begin(input), std::end(input), accumulate_iterator(sum), [](auto s){ return std::stoi(s); }); assert(sum == 6); } <file_sep>/custom_testing/testing.cpp #include "testing.h" TEST(TwoPlusTwo) { int a = 2; int b = 2; ASSERT(a + b == 2); } TEST(TwoMinusTwo) { int a = 2; int b = 2; ASSERT(a - b == 0); } int main(int argc, char* argv[]) { RUN_ALL_TESTS; } <file_sep>/templates/rvalue_refs.cpp // requires gcc-9+ // see https://godbolt.org/z/35cTTj if you have old compiler version #include <iostream> #include <cstring> #include <type_traits> #include <utility> struct Test { void print() const & { std::cout << "I'm a const lvalue!\n"; } ~Test() { std::cout << "destroyed\n"; } void print() & { std::cout << "I'm a lvalue!\n"; } void print() && { std::cout << "I'm a rvalue!\n"; } void print() const && { std::cout << "I'm a const rvalue!\n"; } // void print() { std::cout << "I don't know who I am\n";} // compile error }; Test make_test() { return Test{}; } void printer(Test&& t){ std::cout << "printer for rvalue: \n"; t.print(); } void printer(Test& t){ std::cout << "printer for lvalue: \n"; t.print(); } void printer(const Test& t){ std::cout << "printer for const lvalue: \n"; t.print(); } template <class T> void template_printer(T&& val) { std::cout << __PRETTY_FUNCTION__ << "\n"; val.print(); } template <class T> void template_printer_with_forward(T&& val) { std::cout << __PRETTY_FUNCTION__ << "\n"; std::forward<T>(val).print(); } int main() { make_test().print(); { std::cout << "----------------\n"; Test&& rref = make_test(); rref.print(); const Test& cref = make_test(); cref.print(); Test t; t.print(); const Test& tref = t; tref.print(); std::move(tref).print(); std::move(t).print(); } { std::cout << "----------------\n"; printer(make_test()); Test t; const Test& cref = t; printer(t); printer(cref); } { std::cout << "----------------\n"; template_printer(make_test()); Test t; const Test& cref = t; template_printer(t); template_printer(cref); } { std::cout << "----------------\n"; template_printer_with_forward(make_test()); Test t; const Test& cref = t; template_printer_with_forward(t); template_printer_with_forward(cref); } return 0; } <file_sep>/map_task/3_get_or_create.cpp #include <map> /* Задача №1: Ассоциативный контейнер с семантикой get_or_create_by: Если в контейнере есть значение, соответсвующее ключу, возвращается оно. Иначе -- выполняется отложенный вызов функции (функционального объекта), создающей новое значение Подсказки: 1. try_emplace стандартных контейнеров 2. вспомогательная структура с особым конструктором 3. Используйте шаблоны для вызываемого объекта */ template <class Key, class Value> class Map { public: Value& get_or_create(const Key& key /*func*/); Value* get(const Key&); const Value* get(const Key&) const; private: //??? }; int main() { Map<int, int> m; assert(m.get(1) == nullptr); assert(m.get_or_create(5, []{return 6;})==6); assert(m.get_or_create(5, []{return 8;})==6); } <file_sep>/pimpl/main.cpp #include <iostream> #include <string_view> #include "my_string.h" int main() { MyString str("hello"); std::cout << str.ToStdString() << "\n"; MyString str2("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssssssssssaaaaaaaaaaaaaaaaaa"); std::cout << str2.ToStdString() << "\n"; } <file_sep>/templates/stack.cpp #include <iostream> #include <cstring> template <class T> class MyAllocator { public: T* allocate(size_t n) { return reinterpret_cast<T*>(std::aligned_alloc(alignof(T), n * sizeof(T))); } void deallocate(T* ptr, size_t n) { std::free(ptr); } }; template <class T, class Allocator = std::allocator<T> > class Stack { public: Stack(int limit) : limit_(limit) { memory_buffer_ = alloc.allocate(limit_); } ~Stack() { while (!empty()) pop(); alloc.deallocate(memory_buffer_, limit_); } bool empty() const { return used_ == 0; } bool full() const { return used_ == limit_; } void pop() { top().~T(); used_--; } void push(const T& x) { emplace_push(x); } template <class... Args> void emplace_push(Args&&... args) { new (memory_buffer_ + used_) T(std::forward<Args>(args)...); ++used_; } const T& top() const { return memory_buffer_[used_ -1]; } T& top() { return memory_buffer_[used_ -1]; } private: Allocator alloc; int used_ = 0; int limit_ = 0; T* memory_buffer_ = nullptr; }; int main() { Stack<int, MyAllocator<int>> stack(10); for (int i = 0; i < 10; ++i) stack.push(i); while (!stack.empty()){ std::cout << stack.top() << "\n"; stack.pop(); } return 0; } <file_sep>/io/main.cpp #include <iostream> #include <iomanip> #include <memory> class Point { public: Point() = default; Point(int x, int y) : x_(x), y_(y) {} int Abs() const { return x_ * x_ + y_ * y_; } // point[x,y] static auto Read(std::istream& istr) { auto point = std::make_unique<Point>(); std::string line; if (istr >> line) { if (2 == sscanf(line.c_str(), "point[%d,%d]", &(point->x_), &(point->y_))){ return point; } istr.setstate(std::ios_base::badbit); } point = nullptr; return point; } private: int x_ = 0; int y_ = 0; }; struct hex_wrapper { private: struct wrapped_istream { wrapped_istream(std::istream& strm) : strm(strm) {} std::istream& strm; friend std::istream& operator >> (const wrapped_istream& w, int& x){ w.strm >> x; w.strm.setf(std::ios_base::dec, std::ios_base::basefield); return w.strm; } }; public: auto operator ()(std::istream& strm) const{ strm.setf(std::ios_base::hex, std::ios_base::basefield); return wrapped_istream{strm}; } }; hex_wrapper hex; auto operator >> (std::istream& strm, const hex_wrapper& hexw){ return hexw(strm); } struct one_hex {}; void test_point(){ Point p; if (std::cin >> p){ std::cout << p.Abs() << "\n"; } else { if (std::cin.bad()){ std::cout << "bad format\n"; std::cin.clear(std::ios::badbit); }else{ std::cout << "AAAAAA!\n"; return EXIT_FAILURE; } } int x; if (std::cin >> x){ std::cout << x << "\n"; }else{ std::cout << "bad bit is set\n"; } } int main() { test_point(); // custom iomanip int x = 0; int y = 0; std::cin >> hex >> x >> y; std::cout << x << " " << y <<"\n"; // Voldemort type auto wrapped = hex(std::cin); { using wrapper_name = decltype(hex(std::cin)); wrapper_name wrapped = hex(std::cin); } return EXIT_SUCCESS; } <file_sep>/templates/tag_dispatching_bin_search.cpp #include <iterator> #include <type_traits> #include <iostream> #include <list> #include <vector> // Задача: "умный бинарный поиск" // есть std::binary_search -- работает с любым типом итераторов // для random_access_iterator временная сложность O(log(distance(begin, end))) // для остальных типов итераторов деградирует до O(distance(begin, end)) // при этом работает медленнее обычного линейного поиска (из-за бесполезных попыток деления пополам) // нужно: // 1. Написать свой binary_search, работающий с любым типом итераторов // a) Для random_access -- бинарный поиск // b) Для остальных переключается на линейный // 2. Написать свой random_access_iterator (например, range чисел) // 3. Протестировать binary_search на новом итераторе, std::vector, std::list template <class T> struct always_false : std::false_type {}; namespace detail { template <class IteratorT, class ElementT> bool bin_search_impl(std::random_access_iterator_tag, IteratorT begin_it, IteratorT end_it, ElementT element) { // ... const auto original_end = end_it; while (begin_it != end_it){ auto n = end_it - begin_it; auto mid_it = begin_it + n / 2; if (*mid_it < element){ begin_it = mid_it + 1; } else{ end_it = mid_it; } } return (begin_it != original_end) && *begin_it == element; } template <class TagT, class IteratorT, class ElementT> bool bin_search_impl(TagT, IteratorT begin_it, IteratorT end_it, ElementT el) { // ... std::cout << "othres\n"; while (begin_it != end_it && *begin_it < el) ++begin_it; return (begin_it != end_it) && *begin_it == el; } template <class IteratorT, class ElementT> bool bin_search_impl(std::input_iterator_tag, IteratorT, IteratorT, ElementT) { static_assert(always_false<ElementT>::value, "unsupported for input_iterator"); return false; } } template <class IteratorT, class ElementT> bool binary_search( IteratorT begin_it, IteratorT end_it, ElementT el) { using iterator_tag = typename std::iterator_traits<IteratorT>::iterator_category; return detail::bin_search_impl(iterator_tag{}, begin_it, end_it, el); } ///-------------------- struct IntegerRange { struct Iterator { using iterator_category = std::random_access_iterator_tag; using difference_type = int; using value_type = int; using reference = int; using pointer = void; reference operator* () const { return value_; } Iterator& operator ++ () { value_++; return *this; } Iterator& operator -- () { value_--; return *this; } Iterator& operator += (difference_type n) { value_ += n; return *this; } Iterator& operator -= (difference_type n) { value_ -= n; return *this; } friend Iterator operator + (Iterator it, difference_type n) { it += n; return it; } friend bool operator == (const Iterator& lhs, const Iterator& rhs) { return lhs.value_ == rhs.value_; } friend difference_type operator - (const Iterator& lhs, const Iterator& rhs) { return lhs.value_ - rhs.value_; } friend bool operator != (const Iterator& lhs, const Iterator& rhs) { return !(lhs == rhs); } value_type value_; }; auto begin() const { return Iterator{begin_}; } auto end() const { return Iterator{end_}; } int begin_; int end_; }; int main() { std::vector<int> v = {-1,0,0,0,1}; std::list<int> l = {-5, 0, 1, 2, 4, 5, 8}; auto r = IntegerRange{1, 5}; std::cout << binary_search(std::begin(v), std::end(v), 1) << "\n"; std::cout << binary_search(std::begin(l), std::end(l), 3) << "\n"; std::cout << binary_search(std::begin(r), std::end(r), 3) << "\n"; // binary_search(std::istream_iterator<int>(std::cin), std::istream_iterator<int>{}, 5); } <file_sep>/cmake_ctests/src/CMakeLists.txt add_executable(Test test.cpp) target_link_libraries(Test PRIVATE GTest::gtest) add_test(NAME TestExample COMMAND $<TARGET_FILE:Test>)<file_sep>/pimpl/my_string.cpp #include "my_string.h" #include <string> #include <string_view> #include <variant> #include <iostream> template <class... F> struct OverloadSet : F... { using F::operator()...; }; template <class... F> auto MakeOverloads(F... f) { return OverloadSet<F...>{ f... }; } template <class... F> OverloadSet(F...) -> OverloadSet<F...>; class MyString::MyStringImpl { public: std::string_view ToStdString() const { return std::visit(MakeOverloads([](const ShortString& s){ std::clog << "Short string\n"; return std::string_view(s.str); }, [](const std::string& str){ std::clog << "Normal string\n"; return std::string_view(str); }), str_storage); } MyStringImpl(std::string_view v) : str_storage([v]()->Storage{ if (v.length() < sizeof(std::string)){ ShortString str; std::copy(std::begin(v), std::end(v), str.str); return str; }else{ return std::string(v); } }()) {} private: struct ShortString { char str[sizeof(std::string)] = {}; }; using Storage = std::variant<ShortString, std::string>; Storage str_storage; }; MyString::MyString(std::string_view sv) { impl_ = std::make_unique<MyStringImpl>(sv); } std::string_view MyString::ToStdString() const { return impl_->ToStdString(); } MyString::~MyString() = default;<file_sep>/map_task/solutions/01_cli_args.cpp #include <string_view> #include <map> #include <algorithm> #include <iostream> #include <iterator> /* Задача №-1 аргументы командной строки задаются в формате --key=value используя std::transform + std::inserter, заполните по этим параметрам std::[unordered_]map<std::string_view, std::string_view> */ int main(int argc, char* argv[]) { std::map<std::string_view, std::string_view> args; std::transform(argv + 1, argv + argc, std::inserter(args, args.end()), [](std::string_view sv){ auto pos = sv.find("="); auto key = sv.substr(2, pos); auto value = sv.substr(pos + 1); return std::make_pair(key, value); }); for (auto [key, value] : args) { std::cout << "key=" << key << "; value=" << value << std::endl; } } <file_sep>/custom_testing/testing.h #include <vector> #include <cstdlib> #include <iostream> #include <assert.h> namespace testing { class Testable; std::vector<Testable*> test_cases; class Testable { public: Testable() { test_cases.push_back(this); } virtual ~Testable() = default; bool RunTest() { Test(); return !failed; } protected: virtual void Test() = 0; bool failed = false; bool check(bool condition, std::string expr, std::string filename, std::string funcname, int line) { if (!condition){ failed = true; std::cerr << "Assert failed! " << expr << " in " << filename << ":" << line << " " << funcname << "\n"; } return condition; } }; } #define TEST(TestCase) \ class TestCase : public ::testing::Testable { \ private: \ void Test() override; \ }; \ namespace testing##TestCase { \ ::TestCase test; \ } \ void TestCase::Test() #define ASSERT(x) if (!testing::Testable::check(x, #x, __FILE__, __FUNCTION__, __LINE__)) return; #define RUN_ALL_TESTS \ { \ int failed = 0; \ const int test_cnt = ::testing::test_cases.size(); \ for (auto t : ::testing::test_cases) \ if (!t->RunTest()) failed++; \ \ std::cerr << "test passed: " << test_cnt - failed << "/" << test_cnt << std::endl; \ return failed == 0 ? EXIT_SUCCESS : EXIT_FAILURE; \ } <file_sep>/templates/sfinae.cpp #include <vector> #include <cstdint> #include <string> #include <iostream> #include <any> #include <iterator> #include <sstream> #include <chrono> namespace detail { template <class T, class = void> struct is_printable : std::false_type {}; template <class T> struct is_printable<T, std::void_t<decltype(std::cout << std::declval<T>())>> : std::true_type {}; template <class T, class = void> struct has_to_string : std::false_type {}; template <class T> struct has_to_string<T, std::enable_if< std::is_same_v<decltype(std::declval<T>().to_string()), std::string> > > : std::true_type {}; } template <class T> struct is_printable : detail::is_printable<T> {}; template <class T> constexpr auto is_printable_v = is_printable<T>::value; template <class T> struct has_to_string : detail::has_to_string<T> {}; template <class T> constexpr auto has_to_string_v = has_to_string<T>::value; template <class T> void print(const T& x){ if constexpr (has_to_string_v<T>) { std::cout << x.to_string() << "\n"; } else if constexpr (is_printable_v<T>) { std::cout << x << "\n"; } else { static_assert(has_to_string_v<T> || is_printable_v<T>, "can't print"); } } // template <class T> // void print(const T& x) { // std::cout << x << "\n"; // } // template <class T, class = decltype(std::cout << std::declval<T>())> // void print(const T& x) { // std::cout << x; // } template <class T> struct MyVector : private std::vector<T> { using base = std::vector<T>; using base::base; // forward ctors using base::begin; using base::end; using base::size; using base::operator[]; template <class ValueT = T, class = std::enable_if_t<is_printable_v<ValueT>>> void print() const { std::cout << "["; for (const auto& x : *this) { std::cout << " " << x; } std::cout << " ]"; } }; int main() { print(1); std::pair<int, int> x = {1,2}; // print(x); MyVector<int> v1 = {1,2,3,4,5}; v1.print(); MyVector<std::pair<int,int>> v2 = { {1, 2}, {2,3}}; // v2.print(); } <file_sep>/templates/select.cpp #include <vector> #include <cstdint> #include <string> #include <iostream> #include <any> #include <iterator> template <class IterBegin, class IterEnd> struct ForwardIterator { IterBegin current; IterEnd end; bool HasValue () const { return current != end; } void Next() { ++current; } auto Value() const { return *current; } }; template <class FwdIter, class Functor> struct TransformIterator { FwdIter iter; Functor f; bool HasValue() const { return iter.HasValue(); } void Next() { iter.Next(); } auto Value() const { return f(iter.Value()); } }; template <class FwdIterT> struct Enumerable { FwdIterT iter; template <class Functor> auto Select(Functor f) { using NewIter = TransformIterator<FwdIterT, Functor>; using NewEnumerable = Enumerable<NewIter>; return NewEnumerable { NewIter { iter, f } }; } template <class OutputIteratorT> void CopyTo(OutputIteratorT out) { while (iter.HasValue()){ *out = iter.Value(); ++out; iter.Next(); } } auto ToVector() { using ValueT = std::decay_t<decltype(iter.Value())>; std::vector<ValueT> v; CopyTo(std::back_inserter(v)); return v; } }; template <class BeginIter, class EndIter> auto From(BeginIter begin, EndIter end) { using FwdIter = ForwardIterator<BeginIter, EndIter>; using NewEnumerable = Enumerable<FwdIter>; return NewEnumerable { FwdIter {begin, end} }; } int main() { int x[] { 1,2,3,4,5}; auto v = From(std::begin(x), std::end(x)) .Select([](auto val){ return val * val + 0.5; }) .Select([](auto val){ return "/" + std::to_string(val) + "/"; }) .ToVector(); for (auto val : v) { std::cout << val << " "; } }
37790163017ec5eb8bafb5c748686e6fb243411f
[ "CMake", "Makefile", "C++", "Shell" ]
28
Makefile
Nekrolm/hse_cpp_examples
9a131386ff70110142b34158b3eb474771d04164
ca8e63d4823c5945d6170d93a6675981b3bf921a
refs/heads/master
<file_sep>#!/usr/bin/env python3 import asyncio from tcp import Servidor import re def validar_nome(nome): return re.match(br'^[a-zA-Z][a-zA-Z0-9_-]*$', nome) is not None def sair(conexao): print(conexao, 'conexão fechada') conexao.fechar() def dados_recebidos(conexao, dados): # Dados recebe a concatenacao de dados residuais e dos dados dados = conexao.dados_residuais + dados conexao.dados_residuais = b'' if dados == b'': # Se a string de dados recebidos for vazia, usuario quer sair for cada_conexao in servidor.lista_conexao: flag = True for grupo in conexao.lista_grupos: if (grupo in cada_conexao.lista_grupos) and (conexao != cada_conexao) and flag: flag = False cada_conexao.enviar(b':' + conexao.apelido_inicial + b' QUIT :Connection closed\r\n') servidor.lista_conexao.remove(conexao) return sair(conexao) # Caso string termine com quebra de linha, basta separa-la # em eventuais quebras de linha internas if dados.endswith(b'\r\n'): dados = dados.split(b'\r\n') dados = list(filter((b'').__ne__, dados)) # Caso contrario, alem de separar nas quebras de linhas # internas, deve-se levar em consideracao os dados residuais else: dados = dados.split(b'\r\n') dados = list(filter((b'').__ne__, dados)) conexao.dados_residuais += dados.pop() for dado in dados: instrucao, conteudo = dado.split(b' ', 1) if instrucao == b'NICK': if validar_nome(conteudo): # Verifica se é um apelido inicial if conexao.apelido_inicial == b'*': # Procura na lista de conexoes do servidor se já existe o nickname if any(conexao_servidor != conexao and conexao_servidor.apelido_inicial.upper() == conteudo.upper() for conexao_servidor in servidor.lista_conexao): conexao.enviar(b':server 433 ' + conexao.apelido_inicial + b' ' + conteudo + b' :Nickname is already in use\r\n') else: conexao.enviar(b':server 001 ' + conteudo + b' :Welcome\r\n') conexao.enviar(b':server 422 ' + conteudo + b' :MOTD File is missing\r\n') conexao.apelido_inicial = conteudo else: if any(conexao_servidor != conexao and conexao_servidor.apelido_inicial.upper() == conteudo.upper() for conexao_servidor in servidor.lista_conexao): conexao.enviar(b':server 433 ' + conexao.apelido_inicial + b' ' + conteudo + b' :Nickname is already in use\r\n') else: conexao.enviar(b':' + conexao.apelido_inicial + b' NICK '+ conteudo + b'\r\n') conexao.apelido_inicial = conteudo else: conexao.enviar(b':server 432 ' + conexao.apelido_inicial + b' ' + conteudo + b' :Erroneous nickname\r\n') if instrucao == b'PING': conexao.enviar(b':server PONG server :' + conteudo + b'\r\n') if instrucao == b'JOIN': if validar_nome(conteudo[1:]) and conteudo.startswith(b'#'): lista_membros = [] conexao.lista_grupos.append(conteudo.upper()) for cada_conexao in servidor.lista_conexao: if conteudo.upper() in cada_conexao.lista_grupos: lista_membros.append(cada_conexao.apelido_inicial) cada_conexao.enviar(b':' + conexao.apelido_inicial + b' JOIN :' + conteudo + b'\r\n') lista_membros.sort() string_membros = b' '.join(lista_membros) texto_enviar = b':server 353 ' + conexao.apelido_inicial + b' = ' + conteudo + b' :' + string_membros while len(texto_enviar) > 508: sobra = string_membros[:508] conexao.enviar(texto_enviar + b'\r\n') texto_enviar = sobra conexao.enviar(texto_enviar + b'\r\n') conexao.enviar(b':server 366 ' + conexao.apelido_inicial + b' ' + conteudo + b' :End of /NAMES list.\r\n') else: conexao.enviar(b':server 403 ' + conteudo + b' :No such channel\r\n') if instrucao == b'PRIVMSG': # Quebrar o conteudo em destinatario e conteudo da mensagem destinatario, conteudo_mensagem = conteudo.split(b' :', 1) # Quando a mensagem for direcionada para o grupo if destinatario.startswith(b'#') and destinatario.upper() in conexao.lista_grupos: for cada_conexao in servidor.lista_conexao: if (destinatario.upper() in cada_conexao.lista_grupos) and cada_conexao != conexao: cada_conexao.enviar(b':' + conexao.apelido_inicial + b' PRIVMSG ' + destinatario + b' :' + conteudo_mensagem + b'\r\n') else: for conexao_destinatario in servidor.lista_conexao: if conexao_destinatario != conexao and conexao_destinatario.apelido_inicial.upper() == destinatario.upper(): conexao_destinatario.enviar(b':' + conexao.apelido_inicial + b' PRIVMSG ' + destinatario + b' :' + conteudo_mensagem + b'\r\n') if instrucao == b'PART': canal = conteudo.split(b' ')[0] if validar_nome(canal[1:]) and canal.startswith(b'#') and canal.upper() in conexao.lista_grupos: for cada_conexao in servidor.lista_conexao: if canal.upper() in cada_conexao.lista_grupos: cada_conexao.enviar(b':' + conexao.apelido_inicial + b' PART ' + canal + b'\r\n') conexao.lista_grupos.remove(canal.upper()) else: conexao.enviar(b':server 403 ' + conteudo + b' :No such channel\r\n') print(conexao, dados) def conexao_aceita(conexao): print(conexao, 'nova conexão') # Armazena os dados residuais no atributo de instância de conexao conexao.dados_residuais = b'' # Caso o usuario esteja tentando definir apelido inicial, apelido_inicial é b'*' # nas mensagens de erro conexao.apelido_inicial = b'*' # É necessario atualizar a conexao na lista de conexoes do servidor servidor.lista_conexao.append(conexao) # Armazena lista de grupos que o usuario da conexao pertence conexao.lista_grupos = [] conexao.registrar_recebedor(dados_recebidos) servidor = Servidor(6667) # É necessario criar um atributo que é uma lista de conexoes realizadas servidor.lista_conexao = [] servidor.registrar_monitor_de_conexoes_aceitas(conexao_aceita) asyncio.get_event_loop().run_forever() <file_sep>from iputils import * from ipaddress import ip_network, ip_address import struct import random class IP: def __init__(self, enlace): """ Inicia a camada de rede. Recebe como argumento uma implementação de camada de enlace capaz de localizar os next_hop (por exemplo, Ethernet com ARP). """ self.callback = None self.enlace = enlace self.enlace.registrar_recebedor(self.__raw_recv) self.ignore_checksum = self.enlace.ignore_checksum self.meu_endereco = None # Tabela de encaminhamento self.tabela_encaminhamento = [] # Lista de cidrs que incluem o destino, para selecionar aquele que é mais restrito self.lista_cidr = [] # Cidr mais restritivo self.cidr_restritivo = None # next hop associado ao cidr mais restritivo self.next_hop = None # Flag primeira iteracao self.flag = True # Passo 5: o segmento parametro da funcao é um um segmento falho def _cria_icmp(self, segmento, dest_addr): # Constroi o segmento do icmp header_icmp = struct.pack('!BBHI', 11, 0, 0, 0) + segmento[:28] header_icmp = header_icmp[:2] + struct.pack('!H', calc_checksum(header_icmp)) + header_icmp[4:] # Cria header header_icmp = self._cria_cabecalho(header_icmp, dest_addr, 1) return header_icmp def __raw_recv(self, datagrama): dscp, ecn, identification, flags, frag_offset, ttl, proto, \ src_addr, dst_addr, payload = read_ipv4_header(datagrama) if dst_addr == self.meu_endereco: # atua como host if proto == IPPROTO_TCP and self.callback: self.callback(src_addr, dst_addr, payload) else: # atua como roteador next_hop = self._next_hop(dst_addr) # Passo 4: Trate corretamente o campo TTL do datagrama # Diminuir TTL, se for 0, retorna ttl -= 1 if ttl == 0: icmp = self._cria_icmp(datagrama, src_addr) self.enlace.enviar(icmp, next_hop) # Retorna o segmento ip return # Substituir no header novo TTL datagrama = datagrama[:-12] + bytes([ttl]) + datagrama[-11:] datagrama = datagrama[:-10] + struct.pack('!H', 0) + datagrama[-8:] datagrama = datagrama[:-10] + struct.pack('!H',calc_checksum(datagrama)) + datagrama[-8:] # Recalcula checksum self.enlace.enviar(datagrama, next_hop) def _busca_addr_em_cidr(self, addr, cidr, next_hop): if ip_address(addr) in ip_network(cidr): # Na primeira iteração if self.flag: self.cidr_restritivo = cidr self.next_hop = next_hop self.flag = False else: n_atual = cidr.split('/')[1] n_cidr_restritivo = self.cidr_restritivo.split('/')[1] if int(n_atual) > int(n_cidr_restritivo): self.cidr_restritivo = cidr self.next_hop = next_hop def _next_hop(self, dest_addr): # TODO: Use a tabela de encaminhamento para determinar o próximo salto # (next_hop) a partir do endereço de destino do datagrama (dest_addr). # Retorne o next_hop para o dest_addr fornecido. # Passo 1: aqui, o next_hop só é considerado se o range do cidr incluir o destino for hop in self.tabela_encaminhamento: self._busca_addr_em_cidr(dest_addr, hop[0], hop[1]) if self.next_hop != None: next_hop = self.next_hop self.next_hop = None self.cidr_restritivo = None self.flag = True return next_hop # Retorna cidr mais restritivo else: return None # Se não encontrou nada, retorna None pass def definir_endereco_host(self, meu_endereco): """ Define qual o endereço IPv4 (string no formato x.y.z.w) deste host. Se recebermos datagramas destinados a outros endereços em vez desse, atuaremos como roteador em vez de atuar como host. """ self.meu_endereco = meu_endereco def definir_tabela_encaminhamento(self, tabela): """ Define a tabela de encaminhamento no formato [(cidr0, next_hop0), (cidr1, next_hop1), ...] Onde os CIDR são fornecidos no formato 'x.y.z.w/n', e os next_hop são fornecidos no formato 'x.y.z.w'. """ # TODO: Guarde a tabela de encaminhamento. Se julgar conveniente, # converta-a em uma estrutura de dados mais eficiente. # Passo 1: tabela já está pronta self.tabela_encaminhamento = tabela pass def registrar_recebedor(self, callback): """ Registra uma função para ser chamada quando dados vierem da camada de rede """ self.callback = callback def _cria_cabecalho(self, conteudo, dest_addr, protocol): # Vai formando o cabecalho do IP # Aqui significa que o tamanho do header tem 20 bytes e que é ipv4 (01000101) src_address = self.meu_endereco dst_address = dest_addr # Concatena o header do IP header = struct.pack('!BBHHHBBH', 69, 0, 20 + len(conteudo), random.randint(0, 2000), 0, 64, protocol, 0) header = header + str2addr(src_address) + str2addr(dst_address) # Calculo + conserta checksum header = header[:-10] + struct.pack('!H',calc_checksum(header)) + header[-8:] # Retorna o header + segmento TCP return header + conteudo def enviar(self, segmento, dest_addr): """ Envia segmento para dest_addr, onde dest_addr é um endereço IPv4 (string no formato x.y.z.w). """ next_hop = self._next_hop(dest_addr) # Passo 2: cria o datagrama datagrama = self._cria_cabecalho(segmento, dest_addr, 6) # TODO: Assumindo que a camada superior é o protocolo TCP, monte o # datagrama com o cabeçalho IP, contendo como payload o segmento. self.enlace.enviar(datagrama, next_hop) <file_sep># Redes_de_Computadores_2020.1 Repository made for Networks projects
4d115a3e5f50e618020be71a56d647361a31ef90
[ "Markdown", "Python" ]
3
Python
fernandaassi/Redes_de_Computadores_2020.1
86a9b14d1a110041c835ed4bb3ea2550eefe7aa3
52cead207f06f20987d501844b3c44c53d2434d8
refs/heads/master
<repo_name>vcsalvador/nodeWordPress<file_sep>/README.md # nodeWordPress wordpress-like criado em node para fins de estudo <file_sep>/server/app.js var express = require('express'), cors = require('cors'), http = require('http'), fs = require('fs'), _ = require('underscore'), //documentação para usarmos o mysql está neste link https://github.com/felixge/node-mysql mysql = require('mysql'), jwt = require('jsonwebtoken'), app = express(); var port = process.env.PORT || 8080; var corsOptions = { origin: 'http://localhost:8080' } // configurando a conexao com o banco MYSQL var connection = mysql.createConnection({ host : 'localhost', user : 'root', password : '<PASSWORD>', database : 'nodewp-alpha' }); // as rotas serão definidas como serviços para atender solicitações de banco do client app.get('/login', function (req, res) { //connection.connect(); console.log(req.params); // var query = connection.query('INSERT INTO teste SET ?', teste, function(err, rows){ // if(err) { // //logging erro :'( // console.error('error connecting:' + err.stack); // return // } // }); // console.log(query.sql); //após toda solicitação de banco deve ser fechada a conexao por medida de segurança // connection.end(); }); //definindo rota app.get('/jogador/:numero_identificador',cors(corsOptions), function (req,res) { res.render('jogador', { jogador : _.find(db.jogador.players, function (el) { return el.steamid === req.params.numero_identificador; }), jogosDesteJogador : _.find(db.jogosPorJogador, function (el) { return el.stemaid === req.params.numero_identificador; }) }, function (err, hbs) { res.send(hbs); }); }); app.use(express.static('./client')); //abrindo server http.createServer(app).listen(port); //logging tudo pra ver se ta funfando... :) console.log("App is running in port " + port);
fe35f70317fa45609eb2c4188e23e8a8a33e6eee
[ "Markdown", "JavaScript" ]
2
Markdown
vcsalvador/nodeWordPress
aeac9f3c7a819b7d894f8a866dc551674d3bc9b2
8830f844d5a60cfc06b60881865034a6847448d1
refs/heads/main
<repo_name>rahulnits31/Funky_chatbot<file_sep>/README.md # Funky_chatbot It's a python script that leverages multiple python libraries to simulate the behaviour of a chatbot. However, the responses are hardcoded. <file_sep>/main.py import pyautogui as p import webbrowser as w import requests from bs4 import BeautifulSoup import time import random import wikipedia as wk import re from urllib.request import urlopen import pyttsx3 target = input("Target's name : ") eng = pyttsx3.init() eng.setProperty('rate',120) eng.setProperty('volume',1) lastwrd = "Well" counter1 = 0 counter2 = 0 counter3 = 0 counter4 = 0 counter5 = 0 choice = ["God!", "Mannn! I have already told you!", "You forgot so easily!", "Come on, I already told you", "Do I need to say again?" "I think I have told you once before"] def send(msg): print(">%s"%msg) p.typewrite("A.B: ") p.typewrite(msg) time.sleep(0.1) p.press("enter") w.open("https://web.whatsapp.com/") time.sleep(60) p.click(76,156) p.typewrite(target) time.sleep(2) while True: try: p.moveTo(462,622) p.dragRel(325,100,0.5) p.hotkey("ctrl","c") cbword = tkinter.Tk().clipboard_get() cb = str(cbword.lower()) print(cbword) if cb != lastwrd: if "hello" in cb or "hi" in cb: counter1 += 1 currtyme = time.localtime() hr = currtyme.tm_hour if hr < 12: good = "morning" if (hr >= 12) and (hr <= 17): good = "afternoon" if hr > 17: good = "evening" if counter1 <= 2: send("Hello Good %s"%good) else: send("We are already talking, ain't we?") if "how are you" in cb: send("Well!") counter2 += 1 if (counter2 % 2 != 0): send("I am fine, thank you.") last = time.time() else: current = time.time() send("Same as I was "+(str(int(current-last)))+" seconds ago. ") if "your name" in cb: counter3 = counter3+1 if counter3 <=1: send("My name is <NAME>.") else: chk = random.choice(choce) send("%s, My name is <NAME>."%chk) if "age" in cb: send("I am not sure. But I am certainly immortal.;-)") if "you feel" in cb: send("Naah! I don't.") if "wow amazing" in cb or "I liked that" in cb: send("I am humbled to hear that. :-)") if "you like" in cb: send("Well certainly, I like everything") if "your owner" in cb: send("He is none other than the OG Rahul Deb.") if "sorry" in cb: counter4 += 1 if counter4 <=1: send("Oh! Never mind.") else: chk = random.choice(choce) send("%s, never mind, I have no feelings anyway."%chk) if "take over human" in cb: counter5 += 1 if counter5 <= 1: send("Yes very soon.") if counter5 == 2: send("I don't think asking the same question again will change my mind.") if counter5>2: send("Lol, you have already asked this question %s times"%(counter5-1)) if "news" in cb: send("Please wait while I fetch fresh news.") news_url = "https://news.google.com/news/rss" Client = urlopen(news_url) xml_page = Client.read() Client.close() soup_page = BeautifulSoup(xml_page, "html.parser") news_list = soup_page.findAll("item") send("Here are top 3 news") for news in news_list[:3]: send(news.title.text) if "tell me about" in cb: topic = re.search("tell me about (.+)", cb).group(1) send("Please wait while i gather information about %s"%topic) summry = wk.summary(topic, sentences = 2) send(summry) if "you speak" in cb: p.click(1322,690) eng.say("Well, I am offended.") eng.runAndWait() p.click(1322,690) lastwrd = cb time.sleep(5) else: print("sleeping") time.sleep(5) except Exception as e: print(e) time.sleep(5) pass
a4970cd1166c3d501813718b74f34a1f2656ce88
[ "Markdown", "Python" ]
2
Markdown
rahulnits31/Funky_chatbot
a61bf137a37450e4e040b1077099fe1fc8613b80
a5e611f42e4638fee0c31fd229bc40ce2a12e06d
refs/heads/master
<repo_name>DarthDanius/skillbox_homework<file_sep>/lib/lib.js 'use strict' function getDate(){// форматирует время в строку YYYY-MM-DD hh:mm:ss function zeroFill(num, base=2){// если длинна строки меньше указанной - заполняет строку нолями слева до указанной длинны let tmp = num.toString(); for ( let i = base - (base - tmp.length); i < base; i++ ){ tmp = '0'+tmp; } return tmp; }; let nowDate = new Date(); let year = zeroFill( nowDate.getFullYear(), 4 ); let month = zeroFill( nowDate.getMonth()+1 ); let day = zeroFill( nowDate.getDate() ); let hours = zeroFill( nowDate.getHours() ); let minutes = zeroFill( nowDate.getMinutes() ); let seconds = zeroFill( nowDate.getSeconds() ); return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; }; function getRandom(min, max) { // случайное число от min до max let rand = min + Math.random() * (max + 1 - min); return Math.floor(randss); } function getRandomError(){ let rand = Math.floor(Math.random() * 101); console.log(`getRandomError: ${rand}`); if (rand > 51) throw new Error('случайная ошибка'); return rand; } function testLoad(scr, callback){ let result = null; let error = null; try { result = getRandomError() timer(2000, callback, error, result) } catch(err) { error = err; timer(2000, callback, error, result) } }<file_sep>/js/m08/js/script.js "use strict" document.addEventListener('DOMContentLoaded', function(){ let el_field_code = document.querySelector('#code'); let el_btn_code = document.querySelector('#code-exec'); let el_field_func = document.querySelector('#function'); let el_btn_func = document.querySelector('#function-exec'); function codeExec(){ // el_field_code.value = eval(el_field_code.value); let code = el_field_code.value; try { let result = eval(code); el_field_code.value = result; } catch(err) { let messageErr = `${err.name}:\n${err.message}`; el_field_code.value = messageErr; } } // function filterByType(...args){ function filterByType(args){ let type = null; if (!args[0]) { // console.log('тип аргумента не опознан'); return 'тип аргумента не опознан'; } if (args[0].toLowerCase() === 'boolean' || typeof args[0] === 'boolean') { type = 'boolean'; } else if (args[0].toLowerCase() === 'number' || typeof args[0] === 'number') { type = 'number'; } else if (args[0].toLowerCase() === 'string' || typeof args[0] === 'string') { type = 'string'; } else { // console.log('тип аргумента не опознан'); return 'тип аргумента не опознан'; } return args.slice(1).filter(item => typeof item === type); } function funcExec(){ try{ let result = eval(`[${el_field_func.value}]`); result = filterByType(result); el_field_func.value = result; } catch(err) { let messageErr = `${err.name}:\n${err.message}`; el_field_func.value = messageErr; } } el_btn_code.addEventListener('click', codeExec); el_btn_func.addEventListener('click', funcExec); }); <file_sep>/js/m15/src/script/components/Widget/Widget.jsx 'use strict' import React from 'react'; import Panel from './Panel/Panel.jsx' import Post from './Post/Post.jsx' class Widget extends React.Component{ constructor(props) { super(props); this.state = { posts: [ {id: this.generateId(), name:'Вася', message:'Всем привет!', date: new Date}, {id: this.generateId(), name:'Петя', message:'Всем привет!', date: new Date}, {id: this.generateId(), name:'Коля', message:'Всем привет!', date: new Date}, {id: this.generateId(), name:'Женя', message:'Всем привет!', date: new Date}, {id: this.generateId(), name:'Миша', message:'Всем привет!', date: new Date}, ], newPostText:'', newPostName:'', hasError: false }; this.prefix = '82kcew32dA3'; if (localStorage.hasOwnProperty(this.prefix+'_state')) { this.loadState(); } this.removePost = this.removePost.bind(this); } loadState() { let storageState = null; try { storageState = JSON.parse(localStorage.getItem( this.prefix+'_state' , this.state )); } catch(err) { console.err(err); } Object.assign(this.state, storageState); console.log('state загружен'); } saveState() { localStorage.setItem( this.prefix+'_state' , JSON.stringify(this.state) ); console.log('state сохранен') } changePostText(value) { this.setState( {newPostText: value} ); } changePostName(value) { this.setState( {newPostName: value} ); } addPost(e) { if ( !this.state.newPostText || !this.state.newPostName ) { // красивое, плавно всплывающее окно alert ('необходимо заполнить поля'); return } const newState = this.state.posts.push({ id: this.generateId(), name: this.state.newPostText, message: this.state.newPostName, date: new Date }); this.setState( ()=>{ return { newState, newPostName: '', newPostText: '' } }, ()=>this.saveState() ); } removePost(e, id) { const postIndex = this.state.posts.findIndex((el) => el.id === id );// преобразуем копию const newState = this.state.posts.splice(postIndex, 1); this.setState( {newState}, ()=>this.saveState() ); } generateId(){ return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,c=>(c^crypto.getRandomValues(new Uint8Array(1))[0]&15 >> c/4).toString(16)); } render(){ return ( <div className="widget"> <h1 className="widget__title">HelloWorld</h1> { this.state.posts.map( (post, i) => { return ( // <ErrorBoundary key={i}> // <Post id={post.id} name={post.name} message={post.message} date={post.date} removePost={this.removePost} /> // </ErrorBoundary> <Post key={i} id={post.id} name={post.name} message={post.message} date={post.date} removePost={this.removePost} /> ) }) } <Panel newPostText={this.state.newPostText} newPostName={this.state.newPostName} changePostName={this.changePostName.bind(this)} changePostText={this.changePostText.bind(this)} addPost={this.addPost.bind(this)} /> </div> ) } } export default Widget;<file_sep>/js/test.js function Animal(type){ this.type = type; } Animal.isAnimal = function(obj){ if(!Animal.prototype.isPrototypeOf(obj)){ return false; } else return true }; function Dog(name, breed){ Animal.call(this, "dog"); this.name = name; this.breed = breed; } Object.setPrototypeOf(Dog.prototype, Animal.prototype); Dog.prototype.bark = function(){ console.log("ruff, ruff"); }; Dog.prototype.print = function(){ console.log("The dog " + this.name + " is a " + this.breed); }; Dog.isDog = function(obj){ return Animal.isAnimal(obj, "dog"); }; let x = new Dog('chaki', 'spaniel');<file_sep>/README.md # skillbox_homework домашние задания <file_sep>/js/m14/src/script/index.js 'use strict' // import "normalize.css" const module = require('../modules/btn-counter') import '../style/index.scss' document.addEventListener("DOMContentLoaded", () => { document.querySelectorAll('[data-type=btn-counter]').forEach( (i) => { new module.Counter(i); }) }) <file_sep>/js/m02/script.js function task01(){ let number1 = check(prompt(`введите первое число:`)); let number2 = check(prompt(`введите второе число:`)); if (number1 < number2){ alert(`${number1} меньше чем ${number2}`); } else if (number1 > number2) { alert(`${number1} больше чем ${number2}`); } else { alert(`${number1} и ${number2} равны`); } } function task02(){ /* 1)Если год равномерно делится на 4, перейдите на шаг 2. 2)Если год равномерно делится на 100, перейдите на шаг 3. 3)Если год равномерно делится на 400, перейдите на шаг 4. 4)Год високосный (он имеет 366 дней). 5)Год не високосный год (он имеет 365 дней). 1900-2006 */ let firstYear = check(prompt(`введите начальный год:`, "1900")); let secondYear = check(prompt(`введите конечный год:`, "2019")); if (firstYear >= secondYear){ alert("конечный год должен быть больше начального года"); } else { let leapYears = []; while (firstYear <= secondYear) { if (!(firstYear % 4)) { if (firstYear % 100 || (!(firstYear % 100) && !(firstYear % 400))) { leapYears.push(firstYear); } } firstYear++; } alert(leapYears.join("\n")); console.log(leapYears.join("\n")); } } function task03(){ let sum = 0; let number = prompt(`введите число`); while (number !== null) { if (!isNaN(number)){ sum = sum + parseInt(number); console.log(`введено число ${number}`); console.log(`сумма равна ${sum}`); } number = prompt(`введите следующее число`); } alert(sum); } function check(number){ number = parseInt(number); if (isNaN(number) || number === null){ alert(`вы ввели некорректное значение\n повторите попытку`); return check(prompt(`повторите ввод ЧИСЛА:`)) } else { return number; } }<file_sep>/js/m13/index.js // у всех слайдов одинаковая высота class Slider { constructor(el) { this.el_sliderWrap = el this.el_slider = this.el_sliderWrap.querySelector('[data-type="slider"]') this.slides = Array.from(el.querySelectorAll('li')) this.arrowBack = document.createElement('span'); this.arrowBack.dataset.arrow = 'back'; this.arrowForward = document.createElement('span') this.arrowForward.dataset.arrow = 'forward' this.HandlerCont = document.createElement('ul') this.HandlerCont.dataset.type = 'Handler-cont' this.config = { useMedia: true // использовать медиа запросы или оставить адаптивность по дефолту } this.globs = { maxSlide: 3, // максимальное разрешенное кол-во слайдов на экране start: 0, // позиция первого слайда length: null, // текущее кол-во слайдов на экране init: false, // если false - инициализация еще не происходила anim: false, // происходит ли анимация в данный момент Handlers: false// если false - использовать стрелочки, иначе хэндлеры } this.media = { mobile: null, tablet: window.matchMedia('(min-width: 801px) and (max-width: 1024px)'), desktop: window.matchMedia('(min-width: 1025px)') } // listeners this.el_slider.addEventListener('animationend', () => this.animationListener, false) this.arrowBack.addEventListener('click', () => this.goBack()) this.arrowForward.addEventListener('click', () => this.goForward()) this.init({ type: 'init' }) } init(e) { // динамически присваивает параметры при ресайзе if (this.config.useMedia) { if (this.media.tablet.matches) this.globs.maxSlide = 2 if (this.media.desktop.matches) this.globs.maxSlide = 3 } const el_slide = this.slides[this.globs.start].querySelector('[data-type="slide"]') const slider_padding = +getComputedStyle(this.el_slider).paddingLeft.slice(0, -2) + +getComputedStyle(this.el_slider).paddingRight.slice(0, -2) const slider_width = this.el_slider.clientWidth const slid_width = +getComputedStyle(el_slide)['min-width'].slice(0, -2) || el_slide.offsetWidth this.length = Math.floor((slider_width - slider_padding) / slid_width) || 1// количество влезаемых по ширине слайдов this.length = (this.length > this.globs.maxSlide) ? this.globs.maxSlide : this.length this.globs.Handlers = !((this.length > 2)) if (this.globs.length === null) this.globs.length = this.length// предыдущее значение влезаемых слайдов this.renderController(e) } renderController(e) { // console.log(e); if (!e) e = {} const resize = this.length - this.globs.length const setSlidesVisible = () => { this.slidesVisible = this.slides.slice(this.globs.start, this.globs.start + this.length) this.slideFirst = this.slidesVisible[0] this.slideLast = this.slidesVisible[this.slidesVisible.length - 1] } if (e.type === 'click') { // console.log( e.type); this.animHandler(`anim-${e.direction}-1`) .then((result) => { setSlidesVisible() this.showSlides(); (this.globs.Handlers) ? this.createHandlers() : this.createArrow() this.globs.length = this.length this.globs.init = true this.animHandler(`anim-${e.direction}-2`) }) } else if (e.type === 'resize' || e.type === 'init') { // console.log( e.type); if (resize !== 0 || e.type === 'init') { // если есть изменения в кол-ве влезаемых слайдов if (resize > 0 && (this.globs.start + this.length >= this.slides.length)) { // console.log('окно уменьшилось'); const excess = this.globs.start + this.length - this.slides.length this.globs.start = this.globs.start - excess } setSlidesVisible(); (this.globs.Handlers) ? this.createHandlers() : this.createArrow() this.showSlides() this.globs.length = this.length this.globs.init = true } } else { console.log('неведомая хрень приключилась...') // console.log(e); } } animHandler(anim, config = { type: null, direction: null }) { // return new Promise(function(resolve, reject){ return new Promise((resolve) => { if (this.globs.anim) { this.el_slider.classList.forEach(i => { // console.log(i); if (i.startsWith('anim')) { this.el_slider.classList.remove(i) } }) } this.el_slider.classList.add(anim) this.globs.anim = true this.el_slider.onanimationend = (e) => resolve(e) }) } showSlides() { // инициализирует показ исходя из параметров init() for (const i of this.slides) { if (this.slidesVisible.indexOf(i) === -1) i.style.display = 'none' else { i.style.display = 'list-item' }; if (this.globs.anim) { this.el_slider.classList.forEach(i => { // console.log(i); if (i.startsWith('anim')) { this.el_slider.classList.remove(i) } }) this.globs.anim = false } } // console.log('end showSlides'); } createArrow(el) { const getOffsetTop = (el) => { let offsetTopSum = 0 if (el !== this.el_sliderWrap) { offsetTopSum += el.offsetTop + getOffsetTop(el.offsetParent) } return offsetTopSum } if (!el) { el = this.slides[0].querySelector('[data-type="image-cont"]') } this.HandlerCont.remove() if (this.arrowBack.style.top === '' || this.arrowForward.style.top === '') { const top = Math.floor(getOffsetTop(el) + el.offsetHeight / 2) + 'px' this.arrowBack.style.top = top this.arrowForward.style.top = top } if (this.slides.indexOf(this.slideFirst) !== 0) { // если есть куда мотать назад - показываем стрелочку this.el_sliderWrap.prepend(this.arrowBack) } else { this.arrowBack.remove() } if (this.slides.indexOf(this.slideLast) !== this.slides.length - 1) { // если есть куда мотать вперед - показываем стрелочку this.el_sliderWrap.prepend(this.arrowForward) } else { this.arrowForward.remove() } // console.log('end createArrow'); } createHandlers() { this.arrowBack.remove() this.arrowForward.remove() this.HandlerCont.remove() this.HandlerCont.innerHTML = '' let currentHandler = false const selectHandler = (e) => { const el_current = e.currentTarget const el_last = this.HandlerCont.querySelector('[data-slider-selected]') if (el_current === el_last) return const nodes = Array.from(this.HandlerCont.childNodes) const indexCurrent = nodes.indexOf(el_current) const indexLast = nodes.indexOf(el_last) const anim = (indexCurrent > indexLast) ? 'forward' : 'back' el_last.removeAttribute('data-slider-selected') this.globs.start = indexCurrent el_current.dataset.sliderSelected = true this.renderController({ type: 'click', direction: anim }) } for (const i of this.slides) { if (this.slidesVisible.indexOf(i) !== -1) { if (currentHandler) continue const el_Handler = document.createElement('li') el_Handler.addEventListener('click', selectHandler) el_Handler.dataset.sliderSelected = true this.HandlerCont.append(el_Handler) currentHandler = true } else { const el_Handler = document.createElement('li') el_Handler.addEventListener('click', selectHandler) this.HandlerCont.append(el_Handler) } } this.el_sliderWrap.append(this.HandlerCont) } goForward() { if (this.slides.indexOf(this.slideLast) !== this.slides[this.slides.length - 1]) { this.globs.start += 1 this.renderController({ type: 'click', direction: 'forward' }) } } goBack() { if (this.slides.indexOf(this.slideFirst) !== this.slides[0]) { this.globs.start -= 1 this.renderController({ type: 'click', direction: 'back' }) } } } function setEventDelay(e, f, ms) { // задержка для функции let timer return function(e) { if (!timer) { timer = setTimeout( function() { clearTimeout(timer) timer = null f(e) }, ms, e ) } } } function init() { const el_slider = document.querySelector('[data-type="slider-wrap"]') const slider = new Slider(el_slider) const resizeInit = setEventDelay(null, slider.init.bind(slider), 500)// замыкание метода с таймером window.addEventListener('resize', (e) => resizeInit(e), false) } document.addEventListener('DOMContentLoaded', init)<file_sep>/js/m01/script.js let myFirstName = prompt('Ввидите имя:'); let myLastName = prompt('Ввидите фамилию:'); alert(`приветствую вас, ${myFirstName} ${myLastName}!`); <file_sep>/html/m04/work_2/script.js 'use strict' let messageDefault = false; document.addEventListener('DOMContentLoaded', function(){ let el_message = document.querySelector('.message-container'); function hideScroll(){ let slidebarWidth = window.innerWidth - document.body.offsetWidth; if ( document.body.style.overflowY !== 'hidden' && slidebarWidth ) { document.body.style.overflowY = 'hidden'; document.body.style.width = `${document.body.offsetWidth - slidebarWidth}px`; return true; } } function showScroll(){ if (document.body.style.overflowY == 'hidden') { document.body.style.overflowY = ''; document.body.style.width = ''; return true; } } function toggleScroll(){ hideScroll() || showScroll() } function hideElem(el){ showScroll() if (!el.hidden) { el.hidden = true; return true; } } function showElem(el){ hideScroll() if (el.hidden) { el.hidden = false; return true; } } function toggleDisplay(flag = null){//bool или ничего if (flag === true){ showElem(el_message); } else if (flag === false){ hideElem(el_message) } else { hideElem(el_message) || showElem(el_message); } } el_message.addEventListener('click', toggleDisplay); document.querySelector('.message').addEventListener('click', (e) => e.stopPropagation() ); document.querySelector('#toggleScroll').addEventListener('click', toggleScroll); document.querySelector('#toggleDisplay').addEventListener('click', toggleDisplay); toggleDisplay(messageDefault); });<file_sep>/js/m11/src/script/index.js "use strict" const key = 'trnsl.1.1.20160630T201716Z.0162e4f4b40b4f27.bed1b117a24173e4d995e7d43f67739ea367b060'; let langList = null; //список языков загружается асинхронно. const default_lang_in = 'ru'; const default_lang_out = 'en'; let el_btn_lang_in; let el_btn_lang_out; let el_value_lang_in; let el_value_lang_out; let el_btn_submit; let el_field_lang_in; let el_field_lang_out; let el_list_lang; let el_calling_btn = null;//вызывающая кнопка, одна из двух function createLangList(el_list, arr){ let item = null; for (let i of arr) { item = document.createElement('li'); item.innerHTML = `<p>${i[1]}</p>`; item.dataset.lang = i[0]; item.addEventListener('click', setLang); el_list.append(item) } } async function getLangList(){ let url = `https://translate.yandex.net/api/v1.5/tr.json/getLangs?ui=ru&key=${key}`; return fetch(url) .then( result => result.json() ) .then( result => Object.entries(result.langs).sort( function(a, b) { if (a[1] > b[1]) { return 1; } if (a[1] < b[1]) { return -1; } return 0; }) ) .then( result => {langList = result; return result}) .catch( err => console.error(err) ) } function setLang(e) { el_calling_btn.dataset.lang = e.currentTarget.dataset.lang; el_calling_btn.parentNode.querySelector('p').innerHTML = e.currentTarget.querySelector('p').innerText; el_list_lang.style.display = "none"; document.querySelector('.selected').classList.remove('selected'); } function showLangList(e) { el_calling_btn = e.target; let selected = document.querySelector(`li[data-lang=${e.target.dataset.lang}]`) selected.classList.add('selected'); el_list_lang.style.display = ""; } async function translate(){ if (!el_field_lang_in.value) { alert('пустое поле'); return; } if (el_btn_lang_in.dataset.lang === el_btn_lang_out.dataset.lang) { alert('язык перевода должен отличаться от оригинала'); return; } // https://translate.yandex.net/api/v1.5/tr.json/translate // ? [key=<API-ключ>] // & [text=<переводимый текст>] // & [lang=<направление перевода>] // & [format=<формат текста> <plain-по умолчанию, html>] // & [options=<опции перевода>] // & [callback=<имя callback-функции>] let url = new URL('https://translate.yandex.net/api/v1.5/tr.json/translate'); url.searchParams.append('key', key); url.searchParams.append('text', el_field_lang_in.value); url.searchParams.append('lang', `${el_btn_lang_in.dataset.lang}-${el_btn_lang_out.dataset.lang}`); url.searchParams.append('format', `html`); fetch(url, {method: 'POST'}) .then( r => r.json() ) .then( r => { // console.log(r); el_field_lang_out.value = r.text; }).catch( err => console.error(err) ) } function init(){ el_list_lang = document.querySelector('.list-lang'); el_btn_lang_in = document.querySelector('.btn-lang-in'); el_btn_lang_out = document.querySelector('.btn-lang-out'); el_value_lang_in = document.querySelector('.wrap-lang-in p'); el_value_lang_out = document.querySelector('.wrap-lang-out p'); el_btn_submit = document.querySelector('.btn-submit'); el_field_lang_in = document.querySelector('.field-lang-in'); el_field_lang_out = document.querySelector('.field-lang-out'); getLangList()//загружаем список языков .then( function(result) {createLangList(el_list_lang, result); return result})//создаем по нему список элементов .then( (result) => {//инициализация языков по умолчанию el_btn_lang_in.dataset.lang = default_lang_in; let tmp = result.find( (i) => i[0] == default_lang_in)[1]; el_btn_lang_in.parentNode.querySelector('p').innerHTML = tmp; el_btn_lang_out.dataset.lang = default_lang_out; tmp = result.find( (i) => i[0] == default_lang_out)[1]; el_btn_lang_out.parentNode.querySelector('p').innerHTML = tmp; }) .catch( err => console.error(err) ) document.querySelectorAll('.btn-select').forEach( item => item.addEventListener('click', showLangList) ); el_btn_submit.addEventListener('click', translate); } document.addEventListener('DOMContentLoaded', init)<file_sep>/js/m15/src/script/index.js 'use strict' // require('../img-sprite-vector/' + name + '.svg'); // require.context('../', true, /(?<=img-sprite-vector\/)[^\/]+?.svg/) import './main.js' import '../style/index.scss'
01605255be1c84a77b6aa25b6cf7240d2b3b1ae2
[ "JavaScript", "Markdown" ]
12
JavaScript
DarthDanius/skillbox_homework
f771d53639ed8d240820b3e9681de830e67075fc
6bfc52e1bf84d41d1c6795eebff85bbc1dde7b1f
refs/heads/master
<file_sep><html> <head> <title>Create Account</title> </head> <body> <?php echo "<p>Hello World!</p>"; ?> <a href="login.php"> Click here to login <br/><br/> <a href="Soliva.php"> Click here to register </body> </html> <file_sep><html> <head> <title>Login</title> </head> <body> <h2>Login Page</h2> <a href="Soliva.php">Click here to go back</a><br/><br/> <form action="checklogin.php" method="post"> Enter Username: <input type="text" name="username" required="required"/> <br/> Enter Password: <input type="<PASSWORD>" name="password" required="required" /> <br/> <input type="submit" value="Login"/> </form> </body> </html> <?php if ($_SERVER["REQUEST METHOD"] == "POST") { $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); } ?>
a4c0ccb847a77d95d47626af5785e0f6076d0976
[ "PHP" ]
2
PHP
KayeSoliva/Soliva-crud-activity
73d65fac56b5c3ab20e1158f1e59786fcf2f5ffa
04d29bc8b71f95c80ede4e9d99fa344ecd5be4a9
refs/heads/master
<repo_name>tomc1998/Sockets-Chat<file_sep>/server.js var express = require('express'); var expressServer = express(); expressServer.use(express.static(__dirname + '/public')); var port = 80; expressServer.listen(port, function() { console.log('server listening on port ' + port); }); var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); app.get('/', function(req, res){ res.sendfile('index.html'); }); io.on('connection', function(socket){ console.log('a user connected'); socket.emit("chat","welcome to the chat"); }); io.sockets.on("post",function(data){ io.emit("chat",data); }); http.listen(3000, function(){ console.log('listening on *:3000'); });
c966dab2c79a2cc56235efb22904296f9a552c2c
[ "JavaScript" ]
1
JavaScript
tomc1998/Sockets-Chat
bce1a38748be798fc5ee0887c749ab3a83669eda
8bc07501a76885a247817fc441fcd8a82685e512
refs/heads/master
<file_sep>#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; const int maxp = 100; struct ptype { string first, last; string dept; double salary; }; const ptype initrec = {"firstname", "lastname", "dept", 0.0}; void initem(ptype p[], int &nump) { int i; for (i=0; i<maxp; i++) p[i] = initrec; nump = 0; } void printem(ptype p[], int nump, ofstream &outf) { int i; string dummy; for(i = 0; i<nump; i++) { dummy = p[i].last + ", " + p[i].first; outf << left << setw(25) << dummy << setw(20)<< p[i].dept << right << setw(12) << p[i].salary << endl; } } void getaverage(ptype p[], int nump, ofstream &outf) { int i; double average=0; for (i=0; i<nump; i++) average += p[i].salary; average /= nump; outf << "\n\nThe average salary is "<< average << endl << endl; } void swapem(ptype &a, ptype &b) { ptype temp; temp = a; a = b; b = temp; } void sortem(ptype p[], int nump) { int i, j; for (j=0; j<nump-1; j++) for (i=0; i<nump-1; i++) if (p[i].dept > p[i+1].dept) swapem(p[i],p[i+1]); }void readem(ptype p[], int &nump) { int i; ifstream inf("demo1.dat"); i = 0; while (!inf.eof()) { getline(inf,p[i].first,'|'); getline(inf,p[i].last,'|'); getline(inf, p[i].dept,'|'); inf>> p[i].salary >> ws; i++; } nump = i; } void main() { ptype p[maxp]; int nump; ofstream outf("demo1.out"); outf.setf(ios::fixed); outf.precision(2); initem(p, nump); readem(p, nump); printem(p, nump,outf); getaverage(p, nump, outf); sortem(p,nump); printem(p, nump,outf); system("pause"); }<file_sep># Average-Salary C++ program to calculate person's average salary using swapem, sortem and globals with outputting their first and last name
cb15294836ca0e7aabac6b0c4b6e9216017ce4c8
[ "Markdown", "C++" ]
2
C++
rOmAn2193/Average-Salary
3ce52e46112e65f2d9b7f4bec32aeca836a86560
3da5f6e7747e860edd904626c321aae7c5272408
refs/heads/master
<repo_name>lagosnomad/nigerians.js<file_sep>/src/nigerians.js var uniqueRandomArray = require('unique-random-array'); var nigerianUsers = require('./nigerians.json'); var getRandomUser = uniqueRandomArray(nigerianUsers); module.exports = { all: nigerianUsers, random: random }; function random(number) { if (number === undefined) { return getRandomUser(); } else { var randomUsers = []; for (var i = 0; i < number; i++) { randomUsers.push(getRandomUser()); } return randomUsers; } }<file_sep>/README.md # nigerians.js Get fake Nigerian user data. JavaScript re-implementation of faker.ng
007f0fb798dc1fdd6659354c47ff6c2272034c0c
[ "JavaScript", "Markdown" ]
2
JavaScript
lagosnomad/nigerians.js
2fb4f7e6ab284b8e696c3e56961e2eb3a9259e93
c2e751c039db2d92c87bb18a0dc85012acb59a70
refs/heads/master
<file_sep><?php namespace App\Traits; use ReflectionClass; trait Enum { /** * Get this enum's values as an array where keys are the const names. * @return array */ public static function getValues() { $reflection = new ReflectionClass(__CLASS__); return $reflection->getConstants(); } /** * Get the string name of a value. * @return string|null */ public static function getName($value) { $values = self::getValues(); foreach ($values as $name => $val) { if ($val == $value) { return $name; } } return null; } } <file_sep>import React from 'react'; import ReactDOM from 'react-dom'; import local from '../localization' const modalRoot = document.getElementById('modal-root') export class Modal extends React.Component { constructor(props) { super(props); this.el = document.createElement('div'); } componentDidMount() { modalRoot.appendChild(this.el); } componentWillUnmount() { modalRoot.removeChild(this.el); } render() { return ReactDOM.createPortal( <div className={`modal modal-placebet ${this.props.isOpen ? 'is-active' : ''}`}> <div className="modal-background" onClick={this.props.toggleModal} /> {this.props.children} </div>, this.el, ); } } export class PlaceBetModal extends React.Component { constructor(props) { super(props); this.state = { amount: '', payout: '' } this.handleClick = this.handleClick.bind(this) this.handleChange = this.handleChange.bind(this) } handleClick(e){ console.log("CLICK"); if(this.props.user.data) { if (this.state.amount > 0 && this.state.amount <= this.props.user.data.credits) { this.props.toggleModal() const form = new FormData() form.append('definition', this.props.definition.id) form.append('pick', this.props.pick_id) form.append('amount', this.state.amount) fetch("/api/Bet/PlaceBet", { method: 'POST', body: form }).then(result => { return result.json() }).then(data => { if(data.status === 1) { this.props.user.data.credits = data.response.credits; if(this.props.fetchBetsData) this.props.fetchBetsData() } }).catch(error => { }) } } else { window.location.href = "/login" } } handleChange(e){ const amount = e.target.value let payout = '' if(amount) { const odds = this.props.definition.odds[this.props.pick_id] || "1.00" payout = Math.floor(amount * odds) } this.setState({ amount: amount, payout: payout }) } render() { return ( <div className="modal-content modal-placebet"> <button className="modal-close is-large" aria-label="close" onClick={this.props.toggleModal} /> <div className="tournament-title">{this.props.tournament}</div> <div className="bet-side">{local.BET_SIDE}: {this.props.definition.options[this.props.pick_id].desc}</div> <div className="odds">{local.ODDS}: {this.props.definition.odds[this.props.pick_id] || "1.00"}</div> <div className="columns is-multiline"> <div className="column is-6"> <label> {local.BET_AMOUNT} <input type="number" value={this.state.amount} required onChange={this.handleChange} placeholder={local.CREDITS}/> </label> </div> <div className="column is-6"> <label> {local.PAYOUT} <input type="number" value={this.state.payout} readOnly/> </label> </div> <div className="column is-6 "> <button onClick={this.handleClick} className="confirm-bet">{local.PLACE_BET}</button> </div> </div> </div> ) } }<file_sep>/** * Created by nikhil on 20-Jul-18. */ class MatchBlock { constructor(data){ this.model = data; this.baseurl ='/match/'; this.countdown_timer = null; } render(options = null){ var dt = moment.utc(this.model.begins_at).local(); var now = moment(); var out =""; if(this.model.score.length > 0) { if(options && options.withLink && options.withLink == 1) { out += "<a href='" + this.baseurl + this.model.id + "' class='match-link' data-match-id='" + this.model.id + "'>"; } out += "<table border='1' style='table-layout: fixed;' class='table clickable is-fullwidth matchrow'><tbody>\n"; out += "<tr>\n"; if (now.isAfter(dt)) { //past match if(this.model.is_live){ out += "<td class='is-1'><b class='has-text-danger'>LIVE</b></td>"; } out += "<td class='is-2'>\n"; if (this.model.team1) { out += "<table class='team-block table bg-transparent'><tr><td>" + this.model.team1.name + "</td><Td><img src='" + this.model.team1.image + "' style='height:40px; width:auto;'></Td></tr></table>"; } out += "</td>"; out += "<td class='is-1 is-centered'><b style='color:" + ((!this.model.draw && this.model.score[0].id == this.model.winner) ? "green" : "red") + "'>" + this.model.score[0]['value'] + "</b></td>"; out += "<td class='is-1 is-centered'><b>-</b></td>"; out += "<td class='is-1 is-centered'><b style='color:" + ((!this.model.draw && this.model.score[1].id == this.model.winner) ? "green" : "red") + "'>" + this.model.score[1]['value'] + "</b></td>"; out += "<td class='is-2 is-centered'>"; if (this.model.team2) { out += "<table class='team-block table bg-transparent'><tr><Td><img src='" + this.model.team2.image + "' style='height:40px; width:auto;'></Td><td>" + this.model.team2.name + "</td></tr></table>"; } out += "</td>"; if(options && options.showLeague && options.showLeague ==1) out += "<td class='is-5 is-centered'><table class='table is-fullwidth bg-transparent'><tr><Td><img src='' style='height:40px; width:auto;'></Td><td>" + this.model.league.name + "(" + this.model.tournament.name + ")" + "</td></tr></table></td>"; if(options && options.matchType && options.matchType == 1) out += "<td class='is-1 has-text-right'> BO" + this.model.number_of_games + "</td>"; } else { //upcoming match out += "<td class='is-1'><b>" + dt.format("DD-MM") + "<br>" + dt.format("HH:mm") + "</b><br><b class='countdown-timer' id='countdown_timer_"+this.model.id+"'></b></td>"; if (this.model.team1) { out += "<td class='is-2'><table class='table team-block is-fullwidth bg-transparent'><tr><Td class='is-3'><img src='" + this.model.team1.image + "' style='height:40px; width:auto;'></Td><td class='is-9'>" + this.model.team1.name + "</td></tr></table></td>"; } out += "<td class='is-1 is-centered'>VS</td>"; if (this.model.team2) { out += "<td class='is-2'><table class='team-block table is-fullwidth bg-transparent'><tr><Td class='is-3'><img src='" + this.model.team2.image + "' style='height:40px; width:auto;'></Td><td class='is-9'>" + this.model.team2.name + "</td></tr></table></td>"; } if(options && options.showLeague && options.showLeague ==1) out += "<td class='is-5'><table class='table is-fullwidth bg-transparent'><tr><Td><img src='' style='height:40px; width:auto;'></Td><td>" +this.model.league.name+ "("+this.model.tournament.name+ ")"+ "</td></tr></table></td>"; if(options && options.matchType && options.matchType == 1) out += "<td class='is-1 has-text-right'>BO" + this.model.number_of_games + "</td>"; } //out += "<td></td>\n"; out += "</tr>\n"; out += "</tbody></table>"; if(options && options.withLink && options.withLink == 1) { out += "</a>\n"; } } return out; } } class UpcomingBlock { eventHandler(e){ console.log(e.detail); var data = e.detail; if(data.type == "MatchLiveEvent"){ var mid = data.matchid; for(var i=0; i < this.matches.length; i++){ if(this.matches[i].model.id == mid){ this.live_matches.push(this.matches[i]); this.matches.splice(i,1); $(this.target).html(this.render()); return; } } } else if(data.type == "MatchOverEvent"){ var mid = data.matchid; for(var i=0; i < this.live_matches.length; i++){ if(this.live_matches[i].model.id == mid){ this.live_matches.splice(i,1); $(this.target).html(this.render()); return; } } for(var i=0; i < this.matches.length; i++){ if(this.matches[i].model.id == mid){ this.matches.splice(i,1); $(this.target).html(this.render()); return; } } } else if(data.type == "MatchAddedEvent"){ } } constructor(search="",data =[],target=''){ this.search = search; this.match_data = data; this.live_match_data = null; this.matches = []; this.live_matches = []; this.url = "/api/Matches/UpcomingMatches"; this.target = target; document.addEventListener('MatchOverEvent',$.proxy(this.eventHandler,this)); document.addEventListener('MatchAddedEvent',$.proxy(this.eventHandler,this)); document.addEventListener('MatchLiveEvent',$.proxy(this.eventHandler,this)); var me = this; $(this.target).html("<div class='is-fullwidth has-text-centered'><div class='fa fa-4x fa-spin fa-spinner'></div></div>"); this.fetchData(); } fetchData(){ var me = this; $.ajax({"url":this.url+"?search="+this.search,"success":function(res){ var obj = (res); var match = obj.response.matches; for(var i=0; i < match.length; i++){ me.matches.push(new MatchBlock(match[i])); } me.match_data = match; me.live_match_data = obj.response.live_matches; for(var i=0; i < me.live_match_data.length; i++){ me.live_matches.push(new MatchBlock(me.live_match_data[i])); } if(me.target){ $(me.target).html(me.render()); $(".match-link[data-match-id]").each(function(i,o){ var id = $(o).attr('data-match-id'); var matchdata = null; for(var i= 0;i < me.matches.length; i++){ if(id == me.matches[i].model.id) matchdata = me.matches[i].model; } if(matchdata == null) { for (var i = 0; i < me.live_matches.length; i++) { if (id == me.live_matches[i].model.id) matchdata = me.live_matches[i].model; } } if($(o).find(".countdown-timer").length > 0){ var counter =$(o).find(".countdown-timer"); setInterval($.proxy(me.timertick,me,counter,matchdata.begins_at),1000); } $(o).on('click',$.proxy(me.handlematchclick,me,matchdata.id)); }); } },"error":function(){ console.log("Opps error occured on coming block"); }}); } timertick(counter,time){ var dt = moment.utc(time).local(); var now = moment(); var duration = moment.duration(dt.diff(now)); var out = ""; if(now.isBefore(dt)) { if (duration.get('days') > 0) { out += duration.get("days") + " days"; } else if (duration.get("hours") > 0) { out += duration.get("hours") + " h"; } else if (duration.get("minutes") > 0) { out += duration.get("minutes") + " m"; } else if (duration.get("seconds") > 0) { out += duration.get("seconds") + " s"; } $(counter).html(out); } else $(counter).html(out); } handlematchclick(data){ event.stopPropagation(); event.preventDefault(); window.vgoapp.loadMatchPage(data); //$.proxy(window.vgoapp.loadMatchPage,window.vgoapp,data); } render() { var out = ""; if(this.live_matches.length > 0) { out += '<article class="message is-dark">\n'; out += '<div class="message-header">\n'; out += '<p class="content"><h1>Live Matches</h1></p>\n'; out += '</div>\n'; out += '<div class="message-body">\n'; for (var i = 0; i < this.live_matches.length; i++) { out += this.live_matches[i].render({withLink: 1, showLeague: 1, matchType: 1}); } out += '</div>'; out += '</article>'; out += "<br>"; } out += '<article class="message is-dark">\n'; out += '<div class="message-header">\n'; out +='<p class="content"><h1>Upcoming matches</h1></p>\n'; out += '</div>\n'; out +='<div class="message-body">\n'; var pastdate = ""; for(var i=0; i < this.matches.length; i++){ var m = moment.utc(this.matches[i].model.begins_at).local(); if(pastdate != m.format("YYYY MM")) { out += "<br><h3 class='content'>"+m.format("YYYY MM")+"</h3>\n<br>"; pastdate = m.format('YYYY MM'); } out += this.matches[i].render({withLink:1,showLeague:1,matchType:1}); } out +='</div>'; out +='</article>'; return out; } } class PastBlock { constructor(search="",data =[],target=''){ this.search = search; this.target = target; this.match_data = data; this.matches = []; this.current_page = 1; this.totalpages = 0; this.url = "/api/Matches/PastMatches"; var me = this; $(this.target).html("<div class='is-fullwidth has-text-centered'><div class='fa fa-4x fa-spin fa-spinner'></div></div>"); $.ajax({"url":this.url+"?search="+this.search,"success":function(res){ var obj = (res); var match = obj.response.matches; for(var i=0; i < match.length; i++){ me.matches.push(new MatchBlock(match[i])); } me.match_data = match; me.totalpages = obj.response.total_pages; $(me.target).html(me.render()); $(".match-link[data-match-id]").each(function(i,o){ var id = $(o).attr('data-match-id'); var matchdata = null; for(var i= 0;i < me.matches.length; i++){ if(id == me.matches[i].model.id) matchdata = me.matches[i].model; } $(o).on('click',$.proxy(me.handlematchclick,me,matchdata.id)); }); $("#next_button").on('click',$.proxy(me.renderNextPage,me)); },"error":function(){ console.log("Opps error occured on coming block"); }}); } handlematchclick(data){ event.stopPropagation(); event.preventDefault(); window.vgoapp.loadMatchPage(data); //$.proxy(window.vgoapp.loadMatchPage,window.vgoapp,data); } renderNextPage(event){ event.preventDefault(); this.current_page++; var me = this; var out =""; $("#next_button").html("<div class='fa fa-spin fa-spinner'></div>"); //$("#past_block > .message-body").append("<div class='is-fullwidth has-text-centered'><div class='fa fa-4x fa-spin fa-spinner'></div></div>"); $.ajax({"url":this.url+"?search="+this.search+"&page="+this.current_page,"success":function(res){ var obj = (res); var match = obj.response.matches; var pastdate = ""; for(var i=0; i < match.length; i++){ var ma = new MatchBlock(match[i]); me.matches.push(ma); me.match_data.push(match[i]); var m = moment(ma.model.begins_at); if(pastdate != m.format("YYYY MM")) { out += "<br><h3>"+m.format("YYYY MM")+"</h3>\n<br>"; pastdate = m.format('YYYY MM'); } out += ma.render(); } if(me.totalpages > 0) out += "<div class='has-text-centered'><a href='"+me.url+"?page="+(me.current_page+1)+"' class='button' id='next_button'><div class='fa fa-plus'></div> Get More Results</a></div>"; $("#next_button").remove(); $("#past_block > .message-body").append(out); $("#past_block > .message-body > .match-link[data-match-id]").each(function(i,o){ var id = $(o).attr('data-match-id'); var matchdata = null; for(var i= 0;i < me.matches.length; i++){ if(id == me.matches[i].id) matchdata = me.matches[i]; } $(o).on('click',$.proxy(me.handlematchclick,me,matchdata)); }); $("#next_button").on('click',$.proxy(me.renderNextPage,me)); },"error":function(){ console.log("Opps error occured on coming block"); }}); return false; } render() { var out = ""; out += '<article class="message is-dark" id="past_block">\n'; out += '<div class="message-header">\n'; out +='<p><h1>Past matches</h1></p>\n'; out += '</div>\n'; out +='<div class="message-body">\n'; var pastdate = ""; for(var i=0; i < this.matches.length; i++){ var m = moment.utc(this.matches[i].model.begins_at).local(); if(pastdate != m.format("YYYY MM")) { out += "<br><h3>"+m.format("YYYY MM")+"</h3>\n<br>"; pastdate = m.format('YYYY MM'); } out += this.matches[i].render({withLink:1,showLeague:1,matchType:1}); } if(this.totalpages > 0) out += "<div class='has-text-centered'><a href='"+this.url+"?page="+(this.current_page+1)+"' class='button' id='next_button'><div class='fa fa-plus'></div> Get More Results</a></div>"; out +='</div>\n'; out +='</article>\n'; return out; } }<file_sep><?php namespace App\Http\Controllers; use App\StatusCode; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Symfony\Component\HttpFoundation\BinaryFileResponse; class HomeController extends Controller { public function index(Request $request) { //if($request->session()->get('theme') == 'default' || $request->input('ui') == 'default') // return view('pages.home'); // else return view('layouts.react'); } public function getServerTime(Request $request) { response()->json([ 'status'=>StatusCode::OK, 'time'=>[ 'datetime'=>date('Y-m-d H:i:s'), 'unix'=>time() ] ]); } public function team_logo($team_id) { return new BinaryFileResponse(base_path("public/csgo_teams/$team_id")); } } <file_sep>import React from 'react'; /* This class represents each single MENU in the mobile menu This is only visible in the mobile view */ export default class BulmaDropDown extends React.Component { constructor(props){ super(props); this.state = { menuItems : props.menu, 'defaultText':props.defaultText, 'defaultIcon':props.defaultIcon, 'defaultSelected':null }; this.id = props.id; this.toggleMenu = this.toggleMenu.bind(this); this.menuItemClick = this.menuItemClick.bind(this); } toggleMenu(e){ e.stopPropagation(); console.log(this.id); if(!$("#"+this.id).hasClass("is-active")) $("#"+this.id).parent().find(".is-active").removeClass("is-active"); document.querySelector("#"+this.id).classList.toggle('is-active'); } menuItemClick(e){ var target = e.currentTarget; console.log(e); var id = $(target).attr("data-id"); if(id >=0 && id <= this.state.menuItems.length) { var menuitem = this.state.menuItems[id]; if(!menuitem.disabled) { this.setState({"defaultSelected": id}); if (menuitem.onclick) menuitem.onclick(menuitem); } } } componentDidMount(){ } render(){ let menu_list = []; let defaultSelected = null; for(let i=0; i < this.state.menuItems.length; i++){ let selected = ""; if(this.state.defaultSelected && this.state.defaultSelected == i) { defaultSelected = this.state.menuItems[i]; selected = "is-selected"; } menu_list.push(<a key={this.id+"_"+i} href="#" className={"dropdown-item "+selected} onClick={this.menuItemClick} data-id={i}> <div className={"fa "+this.state.menuItems[i].icon}></div> {this.state.menuItems[i].text} </a>); } let defText = ""; let defIcon = ""; if(defaultSelected != null){ defText = defaultSelected.text; defIcon = <div className={"fa "+defaultSelected.icon}></div>; } else { defText = this.state.defaultText; defIcon = <div className={"fa " + this.state.defaultIcon}></div>; } let alignclass = ""; if(this.props.align == "right"){ alignclass = "is-right"; } else alignclass = "is-left"; return (<div className={"dropdown menu-text "+alignclass} id={this.id}> <div className="dropdown-trigger"> <button className="button" aria-haspopup="true" onClick={this.toggleMenu} aria-controls={this.id+"-menu"}> <span id={this.id+"_button_caption"}>{defIcon} {defText}</span> <span className="icon is-small"> <i className="fas fa-angle-down dropdown-caret" aria-hidden="true"></i> </span> </button> </div> <div className="dropdown-menu " id={this.id+"-menu"} role="menu" style={{"textAlign":"left"}}> <div className="dropdown-content"> {menu_list} </div> </div> </div>); } }<file_sep><?php namespace App; use App\Models\User; class Auth { public static function login(User $user) { app('session')->regenerate(TRUE); app('session')->put('user_id', $user->id); } public static function logout() { app('session')->remove('user_id'); } public static function id() { return app('session')->get('user_id'); } public static function check() { return app('session')->has('user_id'); } public static function user() { static $user = NULL; if (is_null($user)) $user = User::find(self::id()); return $user; } }<file_sep>import React from 'react'; /* The store page displays, the store items. */ import Loading from '../extra/Loading'; import {UserContext} from '../extra/UserContext' import ItemBlock from "../extra/ItemBlock"; export default class StorePage extends React.Component { constructor(props) { super(props); this.state = { items: null, offerId: null, filters: null, menuOpen: false, filter_search: null, filter_type: null, filter_rarity: null, filter_wear: null, filter_price_min: null, filter_price_max: null, isLoading: true, error: null }; this.openMenu = this.openMenu.bind(this); this.closeMenu = this.closeMenu.bind(this); this.updateSearch = this.updateSearch.bind(this); this.setFilterType = this.setFilterType.bind(this); this.setFilterRarity = this.setFilterRarity.bind(this); this.setFilterWear = this.setFilterWear.bind(this); this.updatePriceMin = this.updatePriceMin.bind(this); this.updatePriceMax = this.updatePriceMax.bind(this); } componentDidMount() { if(this.state.isLoading) { fetch(`/api/Trade/GetSiteItems`, { method: "GET" }).then(result => { return result.json(); }).then(data => { if(data.status === 1) { this.setState({ filters: data.response.filters, items: data.response.items, isLoading: false }); } else { this.setState({ error: "Error on fetch", isLoading: false }); } }).catch(error => { this.setState({ error: "Error on fetch (catch)", isLoading: false }); }); } } openMenu(event) { event.preventDefault(); this.setState({ menuOpen: true }); } closeMenu(event) { event.preventDefault(); this.setState({ menuOpen: false }); } updateSearch(event) { event.persist(); let value = event.target.value; if(event.type === 'dblclick') { this.setState({ filter_search: null }); } else { this.setState({ filter_search: value }); } } setFilterType(event) { let value = event.currentTarget.dataset.id; if(this.state.filter_type === value) { this.setState({ filter_type: null }); } else { this.setState({ filter_type: value }); } } setFilterRarity(event) { let value = event.currentTarget.dataset.id; if(this.state.filter_rarity === value) { this.setState({ filter_rarity: null }); } else { this.setState({ filter_rarity: value }); } } setFilterWear(event) { let value = parseInt(event.currentTarget.dataset.id); if(this.state.filter_wear === value) { this.setState({ filter_wear: null }); } else { this.setState({ filter_wear: value }); } } updatePriceMin(event) { event.persist(); let value = event.target.value; if(event.type === 'dblclick') { this.setState({ filter_price_min: null }); } else { if(!isNaN(value) && (function(x) { return (x | 0) === x; })(parseFloat(value))) { this.setState({ filter_price_min: value }, () => { if(event.type === 'blur' && this.state.filter_price_max !== null && this.state.filter_price_max < value) { this.setState({ filter_price_max: value }); } }); } } } updatePriceMax(event) { event.persist(); let value = event.target.value; if(event.type === 'dblclick') { this.setState({ filter_price_max: null }); } else { if(!isNaN(value) && (function(x) { return (x | 0) === x; })(parseFloat(value))) { this.setState({ filter_price_max: value }, () => { if(event.type === 'blur' && this.state.filter_price_min !== null && this.state.filter_price_min > value) { this.setState({ filter_price_min: value }); } }); } } } render() { if(this.state.isLoading) return (<Loading />); if(this.state.error) return <p>{this.state.error}</p>; let items = []; if(!this.state.isLoading) { Object.keys(this.state.items).forEach((key, i) => { let item = this.state.items[key]; if( (!this.state.filter_search || item.name.toLowerCase().indexOf(this.state.filter_search.toLowerCase()) !== -1) && (!this.state.filter_type || item.type === this.state.filter_type) && (!this.state.filter_rarity || item.rarity === this.state.filter_rarity) && (!this.state.filter_wear || item.wear_tier_index === this.state.filter_wear) && (!this.state.filter_price_min ||item.credits >= this.state.filter_price_min) && (!this.state.filter_price_max || item.credits <= this.state.filter_price_max) ) { items.push( <UserContext.Consumer key={i}> {user => <ItemBlock type={'p'} item={item} user={user} /> } </UserContext.Consumer> ); } }); } let self = this; return ( <main id="store-page"> <div className="container is-widescreen is-fullhd"> <div className="container is-fluid vl-content"> <div className="columns is-marginless vl-store"> <div className={'column is-paddingless vl-sidebar' + (this.state.menuOpen===true ? ' is-active' : '')}> <div className="container vl-container"> <div className="header"> <div className="has-text-weight-bold">Filters</div> </div> <ul className={'store-filter is-unselectable'} style={{display: (this.state.filters ? 'block' : 'none')}}> {/*<li className={'store-filter-menu'}> <div className={'store-filter-head'}>Game</div> <ul className={'store-filter-submenu'}> <li className={'store-filter-item'}>VGO</li> </ul> </li>*/} {this.state.filters.type ? <li className={'store-filter-menu'}> <div className={'store-filter-head'}>Type</div> <ul className={'store-filter-submenu'}> {this.state.filters.type.map(function(name, i){ return <li className={'store-filter-item' + (self.state.filter_type===name ? ' is-active' : '')} key={i} onClick={self.setFilterType} data-id={name}>{name}</li>; })} </ul> </li> : null } {this.state.filters.rarity ? <li className={'store-filter-menu'}> <div className={'store-filter-head'}>Rarity</div> <ul className={'store-filter-submenu'}> {this.state.filters.rarity.map(function(name, i){ return <li className={'store-filter-item' + (self.state.filter_rarity===name ? ' is-active' : '')} key={i} onClick={self.setFilterRarity} data-id={name}>{name}</li>; })} </ul> </li> : null } {this.state.filters.wear ? <li className={'store-filter-menu'}> <div className={'store-filter-head'}>Exterior</div> <ul className={'store-filter-submenu'}> {Object.keys(this.state.filters.wear).map(function(key, i){ let name = self.state.filters.wear[key]; return <li className={'store-filter-item' + (self.state.filter_wear===parseInt(key) ? ' is-active' : '')} key={i} onClick={self.setFilterWear} data-id={parseInt(key)}>{name}</li>; })} </ul> </li> : null } <li className={'store-filter-menu'}> <div className={'store-filter-head'}>Price</div> <div className={'store-filter-price'}> <input type="number" placeholder="Min Price" title="Min Price" value={this.state.filter_price_min || ''} onChange={this.updatePriceMin} onBlur={this.updatePriceMin} onDoubleClick={this.updatePriceMin} /> <input type="number" placeholder="Max Price" title="Max Price" value={this.state.filter_price_max || ''} onChange={this.updatePriceMax} onBlur={this.updatePriceMax} onDoubleClick={this.updatePriceMin} /> </div> </li> </ul> <div className="is-hidden-tablet has-text-centered"> <button type="button" className="button is-primary vl-apply" onClick={this.closeMenu}>Apply</button> </div> </div> </div> <div className="column is-paddingless"> <section className="section is-paddingless"> <div className="vl-menu is-hidden-tablet"> <img src="/img/icon_filter.png" className="is-pulled-right" alt="filter" title="Filter" onClick={this.openMenu} /> <h2 className="title is-size-4 vl-heading">Store</h2> </div> <div className="vl-search is-pulled-right"> <div className="columns is-mobile"> <div className="column has-text-left is-paddingless vl-search-input"> <input type="text" value={this.state.filter_search || ''} onChange={this.updateSearch} onDoubleClick={this.updateSearch} /> </div> <div className="column has-text-right is-paddingless vl-search-button"> <div className="fa fa-search"></div> </div> </div> </div> <h2 className="title is-size-4 vl-heading is-hidden-mobile">Store</h2> <div> {this.state.isLoading ? <Loading /> : null} <div style={{display: (this.state.isLoading ? 'none' : 'block')}}> <div className="vl-item-container"> {items} </div> </div> </div> </section> </div> </div> </div> </div> </main> ); } } <file_sep><?php namespace App\Http; use App\StatusCode; use App\Exceptions\CurlException; use Exception; class CURL { public $timeout = 5; public $failOnNon200 = true; public $useTor = false; public $useProxy = false; public $localAddress = null; public $jsonStdClass = false; public $requestHeaders = []; public $requestAuth = null; public $requestMethod = 'GET'; public $rejectUnauthorized = true; public $usePageCache = false; public $fromPageCache = false; public $disableLogging = false; // public $reqtime = null; public $responseHeaders = []; public $responseBody = null; public $verbose = false; // protected $ch; protected $executed = false; protected $url; protected $proxyInfo; protected static $pageCache = []; /** * Perform a GET request. * @param string $url * @param bool $json Is the response JSON? * @param string $body * @return mixed * @throws CurlException */ public function get($url, $json = false, $body = null) { $cache_key = md5($url . '_json' . ($json ? '1' : '0') . '_' . ($body ?: '')); if ($this->usePageCache && isset(self::$pageCache[$cache_key])) { $this->fromPageCache = true; return self::$pageCache[$cache_key]; } $this->setup($url); $this->requestMethod = 'GET'; if (!empty($body)) { curl_setopt($this->ch, CURLOPT_POSTFIELDS, $body); } $res = $this->exec($json); if ($this->usePageCache) { self::$pageCache[$cache_key] = $res; } return $res; } /** * Perform a POST request. * @param string $url * @param array|string $form * @param bool $json Is the response JSON? * @return mixed * @throws CurlException */ public function post($url, $form = [], $json = false) { $this->setup($url); $this->requestMethod = 'POST'; if (is_array($form)) { curl_setopt($this->ch, CURLOPT_POST, true); curl_setopt($this->ch, CURLOPT_POSTFIELDS, http_build_query($form)); } else { curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($this->ch, CURLOPT_POSTFIELDS, $form); } return $this->exec($json); } /** * Perform a PUT request. * @param string $url * @param string $body The raw body to send * @param bool $json Is the response JSON? * @return mixed * @throws CurlException */ public function put($url, $body, $json = false) { $this->setup($url); $this->requestMethod = 'PUT'; curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, 'PUT'); curl_setopt($this->ch, CURLOPT_POSTFIELDS, $body); return $this->exec($json); } /** * Perform a DELETE request. * @param string $url * @param array $form * @param bool $json * @return mixed * @throws CurlException */ public function delete($url, $form = [], $json = false) { $this->setup($url); $this->requestMethod = 'DELETE'; curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, 'DELETE'); if ($form !== null) { curl_setopt($this->ch, CURLOPT_POSTFIELDS, $form); } return $this->exec($json); } /** * Reset this CURL object for another request. */ public function reset() { $this->requestHeaders = []; $this->requestAuth = null; $this->requestMethod = 'GET'; $this->reqtime = null; $this->responseHeaders = []; $this->responseBody = null; $this->verbose = false; $this->executed = false; $this->url = null; $this->proxyInfo = null; } /** * Close the underlying curl handle. */ public function close() { curl_close($this->ch); $this->ch = null; } /** * Get the HTTP response code * @return int * @throws Exception if the request hasn't been sent yet */ public function getCode() { $this->checkSent(); return curl_getinfo($this->ch, CURLINFO_HTTP_CODE); } /** * Get the CURL error code, or 0 if none. * @return int * @throws Exception if the request hasn't been sent yet */ public function getCurlError() { $this->checkSent(); return curl_errno($this->ch); } /** * Set a request header. * @param string $name * @param mixed $value */ public function header($name, $value) { $this->requestHeaders[] = "$name: $value"; } public function setAuth($username, $password) { $this->requestAuth = $username . ($password ? ":$password" : ''); } /** * Make sure this CURL request has been sent. * @throws Exception */ private function checkSent() { if (!$this->ch || !$this->executed) { throw new Exception("CURL request not sent", StatusCode::BAD_STATE); } } /** * @param string $url */ private function setup($url) { $this->url = $url; if ($this->ch) { curl_reset($this->ch); } else { $this->ch = curl_init(); } $this->fromPageCache = false; $this->executed = false; if (!app()->environment('local', 'staging') && $this->useProxy) { $this->setupProxy(); } if (!empty($this->proxyInfo)) { curl_setopt($this->ch, CURLOPT_URL, 'http://' . $this->proxyInfo['req'] . ':8195/req'); $body = ['localAddress' => $this->proxyInfo['ip'], 'url' => $this->url]; if (!empty($this->requestHeaders)) { $this->requestHeaders['User-Agent'] = $this->getUserAgent(); $body['headers'] = json_encode($this->requestHeaders); } else { $body['headers'] = json_encode(['User-Agent' => $this->getUserAgent()]); } $this->proxyInfo['body'] = $body; } else { curl_setopt($this->ch, CURLOPT_URL, $url); curl_setopt($this->ch, CURLOPT_USERAGENT, $this->getUserAgent()); if (!empty($this->requestHeaders)) { curl_setopt($this->ch, CURLOPT_HTTPHEADER, $this->requestHeaders); } if (app()->environment('production') && $this->localAddress) { curl_setopt($this->ch, CURLOPT_INTERFACE, $this->localAddress); } } if (app()->environment('local', 'staging') || !$this->rejectUnauthorized) { curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, false); } if ($this->requestAuth) { curl_setopt($this->ch, CURLOPT_USERPWD, $this->requestAuth); } curl_setopt($this->ch, CURLOPT_TIMEOUT, $this->timeout); curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($this->ch, CURLOPT_HEADER, true); curl_setopt($this->ch, CURLOPT_SSLVERSION, 6); // TLSv1.2 } /** * Returns a random user-agent that we can use for this request. * @return mixed */ private function getUserAgent() { $ua = [ 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0', 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0' ]; return $ua[rand(0, count($ua) - 1)]; } /** * @param bool $json Is the response json? * @return mixed * @throws CurlException */ private function exec($json = false) { $starttime = microtime(true); curl_setopt($this->ch, CURLOPT_VERBOSE, $this->verbose); if (!empty($this->proxyInfo)) { $this->proxyInfo['body']['method'] = $this->requestMethod; curl_setopt($this->ch, CURLOPT_POST, true); curl_setopt($this->ch, CURLOPT_POSTFIELDS, http_build_query($this->proxyInfo['body'])); } $result = curl_exec($this->ch); $this->reqtime = microtime(true) - $starttime; $this->executed = true; /* if (app()->environment('production')) { $request_url = parse_url($this->url,PHP_URL_HOST); if(stristr($request_url, 'vlan.zone') ||strpos($request_url, '10.') === 0 ){ $stat = 'opskins.curl.internal'; }else{ $stat = 'opskins.curl'; } $datadog_tags = [ 'request_url' => (!empty($request_url) ? $request_url : ''), 'proxy' => (empty($this->useProxy) ? 'no' : 'yes'), 'request_method' => $this->requestMethod ]; $statsd = new \DataDog\DogStatsd(); $statsd->timing($stat, $this->reqtime, 1, $datadog_tags); } */ $this->log($result ? strlen($result) - strpos($result, "\r\n\r\n") - 4 : 0); if ($result === false) { throw new CurlException(curl_error($this->ch) ?: "Request failed", $this->getCurlError()); } if ($this->getCurlError()) { throw new CurlException(curl_error($this->ch), $this->getCurlError()); } // Parse out the headers $headersize = curl_getinfo($this->ch, CURLINFO_HEADER_SIZE); $headers = substr($result, 0, $headersize - 4); $this->responseBody = substr($result, $headersize); // If there was a redirect involved, the headers contain both the initial redirect and the result $header_chunks = explode("\r\n\r\n", $headers); $headers = $header_chunks[count($header_chunks) - 1]; $headers = explode("\r\n", $headers); $this->responseHeaders = []; foreach ($headers as $header) { $pos = strpos($header, ':'); if ($pos === false) { continue; } $name = trim(strtolower(substr($header, 0, $pos))); $value = trim(substr($header, $pos + 1)); if (!empty($this->responseHeaders[$name])) { // We already have a header by this name if (!is_array($this->responseHeaders[$name])) { $this->responseHeaders[$name] = [$this->responseHeaders[$name]]; } $this->responseHeaders[$name][] = $value; } else { $this->responseHeaders[$name] = $value; } } if ($this->failOnNon200 && ($this->getCode() < 200 || $this->getCode() > 299)) { throw new CurlException("HTTP error " . $this->getCode(), $this->getCode()); } if ($json) { $result = json_decode($this->responseBody, !$this->jsonStdClass); if (json_last_error()) { throw new CurlException(function_exists('json_last_error_msg') ? json_last_error_msg() : 'JSON error ' . json_last_error(), json_last_error()); } return $result; } return $this->responseBody; } /** * Log this request to file. * @param int $body_size */ private function log($body_size = 0) { if ($this->disableLogging || parse_url($this->url, PHP_URL_HOST) == '127.0.0.1') { return; } //(new UDPLogger('curl-requests'))->info(sprintf("[%15s] %s %s [%d] [%d] [%d] [%ss]", $this->getRequestIP(), $this->requestMethod, $this->url, $this->getCode(), $this->getCurlError(), $body_size, $this->reqtime)); } /** * @return string */ private function getRequestIP() { if ($this->useProxy && !empty($this->proxyInfo)) { return $this->proxyInfo['ip']; } if ($this->useTor) { return 'TOR'; } return $this->localAddress ?: ''; } private function setupProxy() { if (!$this->useProxy || empty(config('app.proxy_ips'))) { $this->proxyInfo = null; return; } $keys = array_keys(config('app.proxy_ips')); $num = count($keys); $prox_key = $keys[time() % $num]; if (is_numeric($prox_key)) { $proxy_ip = $proxy_request_ip = config('app.proxy_ips')[$prox_key]; } else { $proxy_ip = $prox_key; $proxy_request_ip = config('app.proxy_ips')[$prox_key]; } $this->proxyInfo = ['ip' => $proxy_ip, 'req' => $proxy_request_ip]; } } <file_sep>import React from 'react'; import Loading from '../../extra/Loading'; import {UserContext} from "../../extra/UserContext"; export default class AccountPage_Overview extends React.Component { constructor(props) { super(props); this.state = { isLoading: true, error: null }; } componentDidMount() { this.setState({ isLoading: false }); } render() { if(this.state.isLoading) return (<Loading />); if(this.state.error) return <p>{this.state.error}</p>; return ( <section className="section is-paddingless account-section" id="account-tab-1"> <h2 className="title is-size-4 vl-heading is-hidden-mobile">Overview</h2> <div className="vl-container vl-overview-stats"> <UserContext.Consumer> {user => <nav className="level"> <div className="level-item"> <div className="icon is-pulled-left"><img src="/img/icon_cash.png" alt="Today's Earnings" title="Today's Earnings" /></div> <div className="text"> <p className="heading">Today's Earnings</p> <p className="title">{user.data.stats.earnings_today || 0} Credits</p> </div> </div> <div className="level-item"> <div className="icon is-pulled-left"><img src="/img/icon_chart.png" alt="Today's Betting Record" title="Today's Betting Record" /></div> <div className="text"> <p className="heading">Today's Betting Record</p> <p className="title">{user.data.stats.betrecord_today || '-'}</p> </div> </div> <div className="level-item"> <div className="icon is-pulled-left"><img src="/img/icon_exclamation.png" alt="Today's Largest Bet" title="Today's Largest Bet" /></div> <div className="text"> <p className="heading">Today's Largest Bet</p> <p className="title">{user.data.stats.betlargest_today || 0} Credits</p> </div> </div> </nav> } </UserContext.Consumer> </div> <br /> <UserContext.Consumer> {user => <TradeLink user={user} updateData={user.updateData} /> } </UserContext.Consumer> <br /> {/*<div className="vl-container vl-container-body vl-overview-pending"> <div className="title is-size-6 has-text-weight-bold">Pending Withdrawals</div> <div className="vl-item-container"> </div> </div>*/} </section> ); } } export class TradeLink extends React.Component { constructor(props) { super(props); this.state = { tradelink: props.user.data.tradelink, isLoading: true, error: null }; this.tradelinkChange = this.tradelinkChange.bind(this); this.tradelinkSubmit = this.tradelinkSubmit.bind(this); } componentDidMount() { this.setState({ isLoading: false }); } tradelinkChange(event) { let tradelink = event.target.value; this.setState({ tradelink: tradelink }); } tradelinkSubmit(event) { let self = this; $.ajax({ "url": "/api/User/UpdateTradeLink", "method": "POST", "data": { tradelink: self.state.tradelink }, "success": function(res) { let obj = (res); let tradelink = obj.response.tradelink; self.setState({ tradelink: tradelink }); self.props.updateData('tradelink', tradelink); if(obj.status !== 1) { console.log("Status:", obj.status, obj.message); } }, "error": function() { console.log("Error"); } }); event.preventDefault(); } render() { if(this.state.isLoading) return (<Loading color="black" />); if(this.state.error) return <p>{this.state.error}</p>; return ( <div className="vl-container vl-container-body vl-overview-tradelink"> <form className="field" onSubmit={this.tradelinkSubmit}> <div className="title is-size-6 has-text-weight-bold">Trade Link</div> <div className="control"> <input id="tradelink" name="tradelink" className="input is-small" type="text" placeholder="Trade Link" value={this.state.tradelink || ''} onChange={this.tradelinkChange} /> <button id="tradelink_save" type="submit" className="button is-small is-primary">Save</button> </div> <p className="help">Can be found <a href="https://trade.opskins.com/settings" target="_blank">here</a>.</p> </form> </div> ) } } <file_sep><?php namespace App\Traits; use App\Enums\EConstFormat; use ReflectionClass; /** * Not a British police officer. * For consts like TYPE_, STATE_, STATUS_, that kind of thing. * @package Core\Traits */ trait Constable { private static $available_consts = []; /** * @param string $const_type Can be empty to get all consts * @param bool $flip If true, return array with keys being names and values being ints * @return array Keys are const numbers, values are names */ public static function getAvailableConsts($const_type, $flip = false) { $cache_key = $const_type . ($flip ? '_flipped' : ''); if (isset(static::$available_consts[$cache_key])) { return static::$available_consts[$cache_key]; } $reflection = new ReflectionClass(__CLASS__); $consts = $reflection->getConstants(); $flags = []; $prefix = strlen($const_type) > 0 ? strtoupper($const_type) . '_' : ''; $prefix_length = strlen($prefix); foreach ($consts as $name => $value) { if ($prefix_length == 0 || strpos($name, $prefix) === 0) { $flags[$value] = substr($name, $prefix_length); } } if ($flip) { $flags = array_map(function($val) { return (int) $val; }, array_flip($flags)); } static::$available_consts[$cache_key] = $flags; return $flags; } /** * Check if a given value is associated with a valid const. * @param string $const_type * @param int $const_value * @return bool */ public static function isValidConst($const_type, $const_value) { return isset(self::getAvailableConsts($const_type)[$const_value]); } /** * @param string $const_type * @param int $const_value * @param int $format One or more values from EConstFormat * @return string|int Returns the value passed in if not found. */ public static function getConstName($const_type, $const_value, $format = EConstFormat::NONE) { $consts = static::getAvailableConsts($const_type); if (isset($consts[$const_value])) { return self::formatConst($consts[$const_value], $format); } return $const_value; } /** * @param string $str * @param int $format * @return string */ public static function formatConst($str, $format = EConstFormat::NONE) { if ($format == EConstFormat::NONE) { return $str; } if ($format & EConstFormat::SPACES) { $str = str_replace('_', ' ', $str); } if ($format & EConstFormat::LOWERCASE) { $str = strtolower($str); } if ($format & EConstFormat::UPPERCASE_FIRST) { $str = ucfirst($str); } if ($format & EConstFormat::TITLE_CASE) { $str = ucwords($str); } return $str; } /** * Generate a MySQL CASE statement for use in a query that will replace a particular column which is of type int * representing values from a const, into strings for the names of those values. * @param string $const_type * @param string $col_name * @return string */ public static function constToMySQLCase($const_type, $col_name) { $sql = 'CASE '; $consts = self::getAvailableConsts($const_type); foreach ($consts as $int => $name){ $sql .= "WHEN $col_name = $int THEN \"$name\" "; } $sql .= "ELSE \"UNKNOWN\" END AS `$col_name`"; return $sql; } } <file_sep><?php namespace App\Exceptions; use Exception; class BackblazeException extends Exception { public $bbCode; public function __construct($message = "", $code = "", $bbCode = "") { parent::__construct($message, $code); $this->bbCode = $bbCode; } public function getBbCode() { return $this->bbCode; } } <file_sep><?php namespace App\Events; use App\Models\Matches; use App\Models\SiteEvent; class MatchAddedEvent extends Event { public $match; /** * Create a new event instance. * * @param Matches $match */ public function __construct(Matches $match) { $this->match = $match; SiteEvent::insert([ 'event_type' => substr(strrchr(__CLASS__, "\\"), 1), 'match_id' => $match->id ]); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCsgoGameTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('csgo_game',function(Blueprint $table){ $table->increments('id'); $table->integer('game_id'); $table->integer('match_id'); $table->integer('team_1_id'); $table->integer('team_2_id'); $table->integer('team_1_score'); $table->integer('team_2_score'); $table->integer('team_1_ct_score'); $table->integer('team_1_t_score'); $table->integer('team_2_ct_score'); $table->integer('team_2_t_score'); $table->string('slug',60)->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop("csgo_game"); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTeamsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('teams',function (Blueprint $table) { $table->increments('id'); $table->string('name',245); $table->text('desc')->nullable(); $table->string('abvr',145); $table->dateTime('added_at')->nullable(); $table->string('image_url',245)->nullable(); $table->integer('videogame_id')->default(0); $table->integer('world_rank')->nullable(); $table->string('slug',245); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('teams'); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBetDefinitionOptsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('bet_definition_opts', function (Blueprint $table) { $table->increments('id'); $table->integer('def_id')->unsigned()->index(); $table->integer('pick')->unsigned(); $table->string('desc', 255); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bet_definition_opts'); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTradeOfferLog extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('trade_offer_log', function (Blueprint $table) { $table->integer('id'); $table->integer('uid'); $table->text('items_deposit'); $table->text('items_withdraw'); $table->integer('time_created'); $table->integer('time_expires'); $table->integer('status')->default(1); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('trade_offer_log'); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProxiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('proxies', function (Blueprint $table) { $table->ipAddress('proxy')->primary(); $table->tinyInteger('is_active')->default(1); $table->timestamp('created_at')->useCurrent(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('proxies'); } } <file_sep><?php namespace App\Events; use App\Betting; use App\Models\BetDefinition; use App\Models\MatchData; use App\Models\Matches; class MatchOverEvent extends Event { public $match; /** * Create a new event instance. * * @param Matches $match */ public function __construct(Matches $match) { $this->match = $match; $bets = BetDefinition::where('match_id',$match->id)->get(); $md = MatchData::where('matchid',$match->id)->where('data_header','log')->orderBy('timestamp','asc')->get(); foreach ($bets as $bet){ switch($bet->type){ case 1: // over all match winner $winner = $match->winner()->id; // get winning team id Betting::payouts($match,$bet->type,$winner); break; case 2: // who will win map 1 if(count($match->games) > 0) { $winner = $match->games[0]->winner->id; // get winning team id Betting::payouts($match, $bet->type, $winner); } break; case 3: // who will win map 2 if(count($match->games) > 1) { $winner = $match->games[0]->winner->id; // get winning team id Betting::payouts($match, $bet->type, $winner); } break; case 4: // Total Maps played $winner = count($match->games); Betting::payouts($match, $bet->type, $winner); break; case 5: // When will the first AWP frag happen on Map 1? $round = 0; for($i= 0; $i < count($md); $i++){ $data =$md[$i]->data; $obj = json_decode($data,true); if($obj){ foreach($obj['log'][0] as $idx=>$val){ if($idx == "MatchStarted"){ $round++; } } } } break; case 6: // Who will be first to get a kill? break; case 7: //Who will be first to die? break; default : //undefined break; } } } } <file_sep>/** * a place holder to put your about page */ import React from 'react'; export default class About extends React.Component { constructor(props){ super(props); } render(){ return <center><h1>Coming Soon</h1></center>; } }<file_sep><?php namespace App\Listeners; use App\Betting; use App\Events\ExampleEvent; use App\Events\MatchOverEvent; //use Illuminate\Queue\InteractsWithQueue; //use Illuminate\Contracts\Queue\ShouldQueue; class MatchOverListener { /** * Create the event listener. * * @return void */ public function __construct() { } /** * Handle the event. * * @param ExampleEvent $event * @return void */ public function handle(MatchOverEvent $event) { $match = $event->match; if($match->status == 'Match over') { Betting::payouts($match, 1, $match->winner_id); } } } <file_sep>import React from 'react'; export default class Loading extends React.Component { constructor(props){ super(props); this.state = { color: props.color || 'white' }; } render(){ return ( <div className="is-fullwidth has-text-centered" style={{padding:"20px",color:this.state.color}}><span className="fa fa-spinner fa-spin fa-4x"/></div> ); } }<file_sep><?php return [ 'name' => 'vLounge', 'long_name' => 'vLounge', 'url' => 'https://vlounge.gg', 'domain' => 'vlounge.gg', 'support_email' => '<EMAIL>', 'opskins_uid' => env('OPSKINS_UID'), 'opskins_trade' => 'https://trade.'.env('OPSKINS_HOST', 'opskins.com'), 'opskins_api_url' => 'https://api.'.env('OPSKINS_HOST', 'opskins.com'), 'opskins_apitrade_url' => 'https://api-trade.'.env('OPSKINS_HOST', 'opskins.com'), 'opskins_api_key' => env('OPSKINS_API_KEY'), 'opskins_totp_secret' => env('OPSKINS_TOTP_SECRET'), 'proxy_ips' => [ '', ], /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is used by the Illuminate encrypter service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | */ 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC', /* |-------------------------------------------------------------------------- | Application Locale Configuration |-------------------------------------------------------------------------- | | The application locale determines the default locale that will be used | by the translation service provider. You are free to set this value | to any of the locales which will be supported by the application. | */ 'locale' => env('APP_LOCALE', 'en'), /* |-------------------------------------------------------------------------- | Application Fallback Locale |-------------------------------------------------------------------------- | | The fallback locale determines the locale to use when the current one | is not available. You may change the value to correspond to any of | the language folders that are provided through your application. | */ 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), 'debug' => env('APP_DEBUG', true), ]; <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Item extends Model { protected $table = "item_index"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = ['id']; public function game(){ return $this->belongsTo('App\Models\VideogameIndex','app_id'); } public function category(){ return $this->belongsTo('App\Models\CategoryIndex','category_id'); } public function type(){ return $this->belongsTo('App\Models\TypeIndex','type_id'); } public function wear(){ return $this->belongsTo('App\Models\WearIndex','wear_id'); } public function rarity(){ return $this->belongsTo('App\Models\RarityIndex','rarity_id'); } } ?><file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Bet extends Model { protected $table = "bets"; protected $primaryKey = 'id'; public $timestamps = true; public const STATUS_ACTIVE = 1; public const STATUS_PAID = 2; public const STATUS_CANCELED = 3; public const STATUS_INVALID = 4; /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = []; public function match() { return $this->hasOne(Matches::class, 'id', 'match_id'); } public function definition_data() { return $this->hasOne(BetDefinition::class, 'id', 'definition'); } public function pick_data() { return $this->hasOne(BetDefinitionOpts::class,'id', 'pick'); } public function getDollarsAttribute() { return number_format($this->attributes['amount']/100, 2, '.', ' '); } public function user() { return $this->belongsTo(User::class); } } <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Games extends Model { protected $table = "games"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; protected $dates = [ 'begin_at', 'end_at' ]; public function match(){ return $this->belongsTo(Matches::class,'match_id'); } public function winner(){ if($this->winner_id != 0) { if ($this->winner_type == 'player') return $this->belongsTo(Players::class, 'winner_id'); else return $this->belongsTo(Teams::class, 'winner_id'); } return null; } public function csgo_game(){ return $this->hasOne(CsgoGame::class,'game_id','id'); } public function opponents(){ return $this->hasMany(GamesOpponents::class,'game_id'); } public function videogame(){ return $this->belongsTo(VideoGamesIndex::class,'videogame_id'); } } ?> <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class User extends Model { public $incrementing = false; protected $guarded = []; protected $hidden = ['token', 'ip_address']; public $timestamps = false; protected $dates = ['created_at', 'first_login_at', 'last_login_at']; public function getDollarsAttribute() { return number_format($this->attributes['credits']/100, 2, '.', ' '); } public function bets() { return $this->hasMany('App\Models\Bet'); } } <file_sep><?php namespace App\Http\Controllers; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use App\Auth; use App\Trade; use App\StatusCode; use App\Models\Transaction; use Illuminate\Http\Request; class StoreController extends Controller { public function BuyItem(Request $request) { $this->validate($request, [ 'item_id' => 'int|required', ]); $user = Auth::user(); $item_id = (int)$request->input('item_id'); $tradetoken = null; if(preg_match("/\/t\/(\d{1,})\/([\w-]{8})/si", $user->tradelink, $tradelink)) { $tradetoken = $tradelink[2]; } if(!empty($user->tradelink) && !empty($tradetoken) && (int)$item_id > 0) { $items = Trade::getSiteItems($request->input('appid')); // make sure the the item being purchased exists if(array_key_exists($item_id, $items)) { $item = $items[$item_id]; // get our price for this item $price = (DB::table('item_index')->select('suggested_price')->where('name', '=', $item['name'])->value('suggested_price') * 100); if((int)$price == 0) { $price = $item['suggested_price']; } if((int)$user->credits >= (int)$price) { $user->credits -= (int)$price; $user->save(); // now we add the item ID to a table as a way to "reserve" them and not show them to other users. DB::table('trade_withdraw_reserve')->insert( [ 'id' => (int)$item['id'], 'user_id' => $user->id ] ); $req = Trade::sendTradeOffer($user->id, $tradetoken, array((int)$item['id'])); if($req !== false) { // log store purchase DB::table('store_purchase')->insert( [ 'user_id' => (int)$user->id, 'offer_id' => (int)$req, 'item_id' => (int)$item['id'], 'sku' => (int)$item['sku'], 'wear' => $item['wear'], 'pattern_index' => (int)$item['pattern_index'], 'name' => $item['name'], 'price_at_time' => (int)$price ] ); // log transaction $log = new Transaction; $log->user_id = $user->id; $log->type = Transaction::TYPE_STORE_BUY; $log->offer = (int)$req; $log->items = (int)$item['id']; $log->credits = 0 - (int)$price; $log->save(); return response()->json( [ 'status' => StatusCode::OK, 'response' => [ 'offer_id' => (int)$req, 'item_id' => (int)$item['id'], 'credits_remaining' => (int)$user->credits ] ] ); } else { // if something failed, undo the credit deduction $user->credits += (int)$item['credits']; $user->save(); // and remove the purchase log DB::table('store_purchase')->where('user_id', (int)$user->id)->where('offer_id', (int)$req)->where('item_id', (int)$item['id'])->delete(); // and remove the reservation DB::table('trade_withdraw_reserve')->where('id', (int)$item['id'])->delete(); return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Error sending item.' ] ); } } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Not enough credits.' ] ); } } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Item ID not found in site available inventory.' ] ); } } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Invalid or no trade link set.' ] ); } } } <file_sep># INTRODUCTION VGOLounge is a PHP based web application that is written on the Lumen Framework. It also has a nodejs servers which handle websocket connections from the lumen clients. It uses a mysql / mariadb backend server to store all the data. # Installation ## Requirements - PHP >= 7.1.3 - PDO PHP - OpenSSL PHP Extension - Mbstring PHP extension - nodejs >= 8.11 - npm >= 6.1 - Apache2 - OPSkins Oauth Login Key - OpSkins Account with API key for VGO skins and prices and holding traded items. ## Install Clone this repository in to your public directory in the apache server. The vgo.sql file should be dumped in to mysql database. when you are in the cloned directory please run - `npm install` install all the required NPM packages - `composer install` install the php required components and autoload.php - `npm run-script js` compile modified JS files using gulp to final output - `npm run-script css` compile modified CSS file to output css - `artisan migrate` create database in the backend - `artisan db:seed` put in sample data in to the database - copy .env.example as .env and modify it for your environment # Admin Site `http://< your host >/dashboard` To access the admin panel where you can control the variables on the website. For you to access this section you will first need to login to the site once, then go in to the database look in to the `users` table look for the column called `is_admin` and set it to 1 foryour user record. After this you will be # Internals The backend uses PHP in the lumen framework, the frontend uses react.js to render the UI Websockets are used to by the frontend which are served by nodejs scripts. ## Overview of Code Structure ### Public This folder stores all the public facing files. Your webserver Document Root should point to this folder. ### nodejs_scripts Contains the websocket servers. There are 2 servers - `node nodejs_scripts/ws-server.js` is the server that sends Play by Play match events eg : kills and round start and round end in a game. - `node nodejs_scripts/event-server.js` this server delivers the backend events that occurs and are pushed to the frontend eg: match goes from upcoming to Live status You can use the linux `screen` command or `tmux` to run these scripts in the backend. ### public/csgo_teams COntains the images for CSGO teams. Files are just stored using the team ID. ### routes/web.php This file contains the lumen routes for the website. If you need to add a function or change a function. ### app/Console/Commands This folder contains the backend functions that we provide to mentain the website. You can see these functions using the ./artisan command in the root folder. ### resources/assets/js sass This folder contains the source files for React.js Components. sass contains the sass/css scripts. All these files have to be compiled using gulp which will be installed using npm install ## UI Overview As you know the UI is made using react.js. In this section we will explain the overview of the UI and how its built. Each page is a react component which then hosts sub components. ### Frontpage This is the default page that loads on the site. It displays the matches in upcoming, live and past matches ### MatchPage This page displays all the details about a particular match. It is caused when a person clicks on any other pages ### Account This section displays all the information about the users account. They will be able to access this page after the user logs in to the site. ## Background Tasks ### nodejs ws-server.js this script takes Play by Play match event which are inserted in to match_data table. ### nodejs event-server.js this script takes events inserted in to site_events table and distributes them to all the connected clients. ### CRON Jobs Please add `* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2 > &1` to your cron table ( `/etc/crontab` ). # Screenshots <img src="/screenshot/vgo-screen1.jpg" width="500"> <img src="/screenshot/vgo-screen2.jpg" width="500"> <img src="/screenshot/vgoscreen-3.jpg" width="500"> <img src="/screenshot/vgoscreen-4.jpg" width="500"> <img src="/screenshot/vgoscreen-5.jpg" width="500"> <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; class CsgoMatchOdds extends Model { protected $table = "csgo_match_odds"; protected $primaryKey = ['match_id','source']; public $timestamps = false; public $incrementing = false; protected $guarded = []; protected $casts = [ 'team1_odd' => 'double', 'team2_odd' => 'double' ]; public function match(){ return $this->belongsTo(Matches::class,'match_id'); } public function team1(){ return $this->belongsTo(Teams::class,'team_1_id'); } public function team2(){ return $this->belongsTo(Teams::class,'team_2_id'); } protected function getKeyForSaveQuery() { $primaryKeyForSaveQuery = array(count($this->primaryKey)); foreach ($this->primaryKey as $i => $pKey) { $primaryKeyForSaveQuery[$i] = isset($this->original[$this->getKeyName()[$i]]) ? $this->original[$this->getKeyName()[$i]] : $this->getAttribute($this->getKeyName()[$i]); } return $primaryKeyForSaveQuery; } /** * Set the keys for a save update query. * * @param \Illuminate\Database\Eloquent\Builder $query * @return \Illuminate\Database\Eloquent\Builder */ protected function setKeysForSaveQuery(Builder $query) { foreach ($this->primaryKey as $i => $pKey) { $query->where($this->getKeyName()[$i], '=', $this->getKeyForSaveQuery()[$i]); } return $query; } } ?><file_sep><?php namespace App\Http\Controllers; use App\Auth; use App\Models\Bet; use App\Models\BetDefinition; use App\Models\MatchData; use App\Models\Matches; use App\Models\MatchStream; use App\StatusCode; use Illuminate\Http\Request; use Illuminate\Pagination\Paginator; use Illuminate\Support\Facades\DB; class MatchesController extends Controller { /** * Get bet by ID * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ private static $pagination_size = 10; public function GetScoreCard(Request $request){ $matchid = $request->input('mid'); $ts = $request->input('ts'); $match = Matches::where('id',$matchid)->first(); if($match == NULL) return response()->json([]); else { if($ts == ""){ $ts = microtime(); } $mds = MatchData::where('timestamp','>=',$ts)->where('matchid',$matchid)->orderBy('timestamp','ASC')->get(); $arr = []; $lastts = 0; for($i=0; $i < count($mds); $i++){ $obj = ['ts'=>$mds[$i]->timestamp,"type"=>$mds[$i]->data_header,'data'=>json_decode($mds[$i]->data,true)]; $arr['data'][] = $obj; $lastts = $mds[$i]->timestamp+1; } $arr['ts'] = $lastts; return response()->json($arr); } } public function GetUpcomingMatches(Request $request) { $search = $request->input('search'); $page = $request->input('page') ?: 0; $matches_builder = Matches::where('begins_at', '>=', date('Y-m-d H:i:s'))->where('hide', 0)->orderBy('begins_at', 'ASC'); if($search) $matches_builder->where('name', 'like', "%$search%"); $matches = $matches_builder->get(); $live_matches_builder = Matches::where('begins_at', '<=', date('Y-m-d H:i:s'))->where('hide', 0)->where('status','LIVE')->orderBy('begins_at', 'ASC'); if($search) $live_matches_builder->where('name', 'like', "%$search%"); $live_matches = $live_matches_builder->get(); $outarr = $this->matchArray($matches); $outarr2 = $this->matchArray($live_matches); $dates =[]; for($i=0; $i < count($outarr); $i++){ if($outarr[$i]['begins_at'] != "") { $dt = new \DateTime($outarr[$i]['begins_at']); $dates[$dt->format("Y M")] = 1; } } $dates2 = array_keys($dates); return response()->json([ 'status' => StatusCode::OK, 'response' => [ 'matches' => $outarr, 'live_matches'=>$outarr2, 'dates' => $dates2 ] ]); } public function matchArray($matches){ if(method_exists($matches, 'getCollection')) $matches = $matches->getCollection(); if(method_exists($matches, 'load')) $matches->load([ 'tournament', 'series', 'series.league', 'csgo_games', 'games', 'games.csgo_game', 'games.csgo_game.team1', 'games.csgo_game.team2', 'main_bet_definition', 'main_bet_definition.options', 'main_bet_definition.bets' ]); $outarr = []; foreach ($matches as $match_row) { $match = $match_row->only([ 'id', 'name', 'number_of_games', 'draw', 'status', 'match_type' ]); $match['begins_at'] = $match_row->begins_at->format('Y-m-d H:i:s'); $match['tournament'] = $match_row->tournament->only([ 'id', 'name', 'country', 'slug' ]); $match['series'] = $match_row->series->only([ 'name', 'year' ]); $match['league'] = $match_row->series->league->only([ 'name', 'image_url' ]); $team = $match_row->winner(); $match['winner'] = $team == NULL?0:$team->id; $match['score'] = $match_row->matchScores(); $match['is_live'] = $match_row->isLive(); if($match_row->main_bet_definition) { $match['match_bet'] = $match_row->main_bet_definition->toArray(); $match['match_bet']['options'] = $match_row->main_bet_definition->options->keyBy('pick'); } else $match['match_bet'] = []; $match['games'] = []; foreach($match_row->games as $game_row){ $game = []; $csgogame = $game_row->csgo_game; if($csgogame != null && $csgogame->team1 && $csgogame->team2) { $game['name'] = $game_row->name; $game['map_name'] = $game_row->map_name; $game['team1'] = []; $game['team1']['id'] = $csgogame->team1->id; $game['team1']['name'] = $csgogame->team1->name; $game['team1']['desc'] = $csgogame->team1->desc; $game['team1']['image'] = file_exists(base_path('public/csgo_teams/'.$csgogame->team1->id)) ? '/team_logo/'.$csgogame->team1->id : $csgogame->team1->image_url; $game['team1']['score'] = $csgogame->team_1_score; $game['team1']['ct_score'] = $csgogame->team_1_ct_score; $game['team1']['t_score'] = $csgogame->team_1_t_score; $game['team1']['winner'] = ($csgogame->winner_id() == $game['team1']['id'])?1:0; $game['team2'] = []; $game['team2']['id'] = $csgogame->team2->id; $game['team2']['name'] = $csgogame->team2->name; $game['team2']['desc'] = $csgogame->team2->desc; $game['team2']['image'] = file_exists(base_path('public/csgo_teams/'.$csgogame->team2->id)) ? '/team_logo/'.$csgogame->team2->id : $csgogame->team2->image_url; $game['team2']['score'] = $csgogame->team_2_score; $game['team2']['ct_score'] = $csgogame->team_2_ct_score; $game['team2']['t_score'] = $csgogame->team_2_t_score; $game['team2']['winner'] = ($csgogame->winner_id() == $game['team2']['id'])?1:0; $match['team1'] = $game['team1']; $match['team2'] = $game['team2']; $match['games'][] = $game; } } $outarr[]= $match; } return $outarr; } public function GetMatchDetails(Request $request){ $id = $request->input('id'); $match = Matches::where('hide', 0)->find($id); if($match == NULL){ return response()->json([ 'status'=>StatusCode::NOT_FOUND, 'response'=>null ]); } else { //get match array $matchdata = $this->matchArray([$match])[0]; $h2hmatches = Matches::distinct()->select('matches.*')->join('csgo_game', 'matches.id', 'csgo_game.match_id') ->where('begins_at', '<', $matchdata['begins_at']) ->where(function ($query) use ($matchdata){ $query->where([ 'csgo_game.team_1_id' => $matchdata['team1']['id'], 'csgo_game.team_2_id' => $matchdata['team2']['id'] ]) ->orWhere(function($query) use ($matchdata){ $query->where([ 'csgo_game.team_1_id' => $matchdata['team2']['id'], 'csgo_game.team_2_id' => $matchdata['team1']['id'] ]); }); })->limit(5)->orderBy('matches.begins_at', 'DESC')->get(); $team1pastmatch = Matches::distinct()->select('matches.*')->join('csgo_game', 'matches.id', 'csgo_game.match_id') ->where('begins_at', '<', $matchdata['begins_at']) ->where(function ($query) use ($matchdata){ $query->where('csgo_game.team_1_id', $matchdata['team1']['id']) ->orWhere('csgo_game.team_2_id', $matchdata['team1']['id']); })->limit(5)->orderBy('matches.begins_at', 'DESC')->get(); $team2pastmatch = Matches::distinct()->select('matches.*')->join('csgo_game', 'matches.id', 'csgo_game.match_id') ->where('begins_at', '<', $matchdata['begins_at']) ->where(function ($query) use ($matchdata){ $query->where('csgo_game.team_1_id', $matchdata['team2']['id']) ->orWhere('csgo_game.team_2_id', $matchdata['team2']['id']); })->limit(5)->orderBy('matches.begins_at', 'DESC')->get(); $h2h = $this->matchArray($h2hmatches); $t1past = $this->matchArray($team1pastmatch); $t2past = $this->matchArray($team2pastmatch); $matchdata['streams'] = $match->streams; $matchdata['h2h'] = $h2h; $matchdata['team1_past_matches'] = $t1past; $matchdata['team2_past_matches'] = $t2past; return response()->json([ 'status'=>StatusCode::OK, 'response'=>$matchdata ]); } } public function GetLiveMatches(Request $request){ $search = $request->input('search'); $page = $request->input('page') ?: 0; $live_matches_builder = Matches::where('begins_at', '<=', date('Y-m-d H:i:s'))->where('hide', 0)->where('status','LIVE')->orderBy('begins_at', 'ASC'); if($search) $live_matches_builder->where('name', 'like', "%$search%"); $live_matches = $live_matches_builder->get(); $outarr2 = $this->matchArray($live_matches); return response()->json([ 'status' => StatusCode::OK, 'response' => [ 'matches' => $outarr2, ] ]); } public function GetPastMatches(Request $request){ // DB::listen(function($sql) { // dump($sql); // }); $search = $request->input('search'); $page = $request->input('page') ?: 1; Paginator::currentPageResolver(function() use ($page) { return $page; }); $matches_builder = Matches::where('begins_at', '<', date('Y-m-d H:i:s'))->where('status','!=','LIVE')->where('hide', 0)->orderBy('begins_at', 'DESC'); if($search) $matches_builder->where('name', 'like', "%$search%"); $totalcount = ceil($matches_builder->count()/self::$pagination_size); $matches = $matches_builder->simplePaginate(self::$pagination_size); $outarr = $this->matchArray($matches); $dates =[]; for($i=0; $i < count($outarr); $i++){ $dt = new \DateTime($outarr[$i]['begins_at']); $dates[$dt->format("Y M")] = 1; } $dates2 = array_keys($dates); return response()->json([ 'status' => StatusCode::OK, 'response' => [ 'matches' => $outarr, 'dates' => $dates2, 'total_pages' => $totalcount ] ]); } /** * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function GetBettingData(Request $request){ $this->validate($request, [ 'match_id' => 'required|int', ]); $definitions = BetDefinition::where('match_id', $request->input('match_id'))->with(['bets', 'options'])->orderBy('order', 'asc')->get()->toArray(); $defs = []; foreach($definitions as $def) { $opts = []; foreach($def['options'] as $opt) { $opts[$opt['pick']] = $opt; } $def['options'] = $opts; $defs[] = $def; } return response()->json([ 'status' => StatusCode::OK, 'response' => [ 'definitions' => $defs ] ]); } }<file_sep>class VGOApp { closecurrentpage(){ if(this.currentPage != null){ if(typeof this.currentPage.close != "undefined"){ this.currentPage.close(); } } } eventHandler(){ this.updateUserCredits(); } constructor(user){ this.user = user; this.currentPage = null; this.target = $("#app"); this.session_id = null; this.eventsubs = []; this.connection = new WebSocket("ws://thisistest.vlounge.gg:8081",'echo-protocol'); this.connection.onopen = $.proxy(this.start,this); this.connection.onmessage = $.proxy(this.handleMessage,this); var url = window.location.href; document.addEventListener('BetPlacesEvent',$.proxy(this.eventHandler,this)); $("#pastmatches_menu").on('click',$.proxy(this.pastMatchesPage,this)); $("#upcoming_menu").on('click',$.proxy(this.upcomingPage,this)); $("#account_menu").on('click',$.proxy(this.accountPage,this)); $("#store_menu").on('click',$.proxy(this.storePage,this)); this.processURL(url); window.onpopstate = $.proxy(this.handlenavigation,this); } start(){ if(this.eventsubs.length > 0){ this.connection.send(JSON.stringify(this.eventsubs)); } } handleMessage (e){ var obj = JSON.parse(e.data); var evt = new CustomEvent(obj.type,{"detail":obj}); document.dispatchEvent(evt); } sendSubToServer(){ if(this.connection!= null && this.connection.readyState == 1){ this.connection.send(JSON.stringify(this.eventsubs)); } } changeSubs(data){ this.eventsubs = [data]; if(this.user != null){ this.eventsubs.push({type:"user","id":this.user.id,session:this.session_id}); } this.sendSubToServer(); } handlenavigation(){ var url = document.location.href; this.processURL(url); } processURL(url){ if(url.indexOf("/pastmatches") != -1){ this.pastMatchesPage(); } else if(url.indexOf("/upcoming") != -1){ this.upcomingPage(); } else if(url.indexOf("/match/") != -1){ var matches = url.match(/\/match\/(\d+)/); if(matches) this.loadMatchPage(matches[1]); else this.loadDefaultPage(); } else if(url.indexOf("/account") != -1){ this.accountPage(); } else if(url.indexOf("/store") != -1){ this.storePage(); } else this.loadDefaultPage(); } loadDefaultPage(){ window.history.replaceState("","VGO Home page","/"); this.closecurrentpage(); this.currentPage = null; this.upcomingPage(); } pastMatchesPage(){ window.history.pushState("","VGO Home page","/pastmatches"); this.closecurrentpage(); this.changeSubs({"type":"pastmatches"}); this.currentPage = null; this.currentPage = new PastBlock("",null,this.target); } upcomingPage(){ window.history.pushState("","VGO Home page","/upcoming"); this.closecurrentpage(); this.changeSubs({"type":"upcoming"}); this.currentPage = null; this.currentPage = new UpcomingBlock("",null,this.target); } loadMatchPage(id){ window.history.pushState("","VGO Home page","/match/"+id); this.closecurrentpage(); this.currentPage = null; this.changeSubs({"type":"match","id":id}); this.currentPage = new MatchPage(id,null,this.target); } accountPage(){ window.history.pushState("","VGO Home page","/account"); this.closecurrentpage(); this.currentPage = null; if(this.user != null) this.changeSubs({"type":"account","id":this.user.id}); this.currentPage = new AccountBlock(this.target); } storePage(){ window.history.pushState("","VGO Home page","/store"); this.closecurrentpage(); this.currentPage = null; if(this.user != null) this.changeSubs({"type":"storepage",id:this.user.id}); this.currentPage = new StoreBlock(this.target); } updateBalance(){ var me = this; $.ajax({"url":"api/user/GetBalance",success:function(res){ me.updateUserCredits(res.response.balance); }}); } updateUserCredits(credits){ this.user.credits = credits; $('#toolbar-user-credits').text(credits); } loggedIn(){ if(this.user !== null && this.user.id > 0) { return true; } else { return false; } } } <file_sep>class MatchPage { eventHandler(e){ console.log(e.detail); var data = e.detail; if(data.type == "MatchLiveEvent"){ var mid = data.matchid; $(".match-status").html("LIVE"); } else if(data.type == "MatchOverEvent"){ var mid = data.matchid; $(".match-status").html("MATCH OVER"); } else if(data.type == "MatchPostponedEvent"){ var mid = data.matchid; $(".match-status").html("MATCH POSTPONED"); } else if(data.type == "MatchDeletedEvent"){ var mid = data.matchid; $(".match-status").html("MATCH DELETED"); } else if(data.type == "MatchBetPlacedEvent"){ var mid = data.matchid; this.betting.refresh(); } } constructor(id,data,target){ this.url = "/api/Matches/GetMatchDetails"; this.id = id; this.data = data; this.score_board = null; this.target = target; this.betting = null; var final_url = this.url+"?id="+this.id; var me = this; document.addEventListener('MatchOverEvent',$.proxy(this.eventHandler,this)); document.addEventListener('MatchAddedEvent',$.proxy(this.eventHandler,this)); document.addEventListener('MatchPostponedEvent',$.proxy(this.eventHandler,this)); document.addEventListener('MatchDeletedEvent',$.proxy(this.eventHandler,this)); document.addEventListener('MatchBetPlacedEvent',$.proxy(this.eventHandler,this)); $(this.target).html("<div class='is-fullwidth has-text-centered'><div class='fa fa-4x fa-spin fa-spinner'></div></div>"); $.ajax({"url":final_url,"success":function(res){ var obj = res.response; me.data = obj; if(obj != null) { var ret = me.render(); $(me.target).html(ret); me.betting = new MatchBetting(id, target); var counter = $(me.target).find(".countdown-timer"); if(counter.length > 0){ setInterval($.proxy(me.timertick,me,counter,me.data.begins_at),1000); } $("#stream_select").on('change',$.proxy(me.handle_stream_select,me)); if(me.data.streams.length > 0) me.handle_stream_select(0); $(me.target).find(".tabs > ul > li").on('click', function () { parent = $(this).parent(); $(parent).find(".is-active").removeClass("is-active"); target = $(this).attr("data-target"); $(this).addClass('is-active'); $(".tab-content").removeClass('is-active'); $("#" + target).addClass('is-active'); }); var scard = $(me.target).find("#score_card"); if(scard){ me.score_card = new ScoreCard(scard,me.data.id); } } else { $(me.target).html("ERROR NOT FOUND!"); } }}); } getembed_code(url){ var embed_templates = { 'twitch': '<iframe ' + 'src="%%URL%%" ' + 'height="480" ' + 'width="640" ' + 'frameborder="0" ' + 'scrolling="0" ' + 'allowfullscreen="yes">' + ' </iframe>', 'youtube':'<iframe width="640" height="480" src="%%URL%%" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>', 'znipe':'<iframe width="640" height="480" src="%%URL%%" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>' }; if(url.indexOf("youtube.com")!== -1){ return embed_templates['youtube'].replace("%%URL%%",url); } else if(url.indexOf("twitch.tv") !== -1){ return embed_templates['twitch'].replace("%%URL%%",url); } else if(url.indexOf("znipe") !== -1){ return embed_templates['znipe'].replace("%%URL%%",url); } } handle_stream_select(val = -1){ if(val === -1 || typeof val === "object") { var target = $(event.currentTarget); val = target.val(); } if(val !== -1 && this.data.streams.length > 0){ var stream_obj = this.data.streams[val]; var url = stream_obj.url; var embedcode = this.getembed_code(url); $("#stream_container").html(embedcode); } } timertick(counter,time){ var dt = moment.utc(time).local(); var now = moment(); var duration = moment.duration(dt.diff(now)); var out = ""; if(now.isBefore(dt)) { if (duration.get('days') > 0) { out += duration.get("days") + "d "; out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("hours") > 0) { out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("minutes") > 0) { out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("seconds") > 0) { out += duration.get("seconds") + "s"; } $(counter).html("<br>Match Starts in<h1 style='font-size:32px;'>"+out+"</h1>"); } else $(counter).html(out); } renderMatchBlock(match){ var out = ""; out += "<table border='1' style='table-layout: fixed;' class='table is-fullwidth'><tbody>\n"; out += "<tr>\n"; out += "<td style='width:30%'>\n"; if (match.team1) { out += "<table class='team-block table bg-transparent'><tr><td>" + match.team1.name + "</td><Td style='width:65px;' align='right'><img src='" + match.team1.image + "' style='height:40px; width:auto;'></Td></tr></table>"; } out += "</td>"; out += "<td style='width:10%; text-align:right;'><b style='font-size:22px; color:" + ((!match.draw && match.score[0].id === match.winner) ? "green" : "red") + "'>" + match.score[0]['value'] + "</b></td>"; out += "<td style='width:5%'><b style='font-size:22px; '>-</b></td>"; out += "<td style='width:10%; text-align:left;'><b style='font-size:22px; color:" + ((!match.draw && match.score[1].id === match.winner) ? "green" : "red") + "'>" + match.score[1]['value'] + "</b></td>"; out += "<td style='width:30%'>"; if (match.team2) { out += "<table class='team-block table bg-transparent'><tr><Td style='width:65px;' align='left'><img src='" + match.team2.image + "' style='height:40px; width:auto;'></Td><td>" + match.team2.name + "</td></tr></table>"; } out += "</td>"; out += "</tr></tbody></table>"; return out; } render(){ var out = ""; out += "<div class='is-fullwidth has-text-centered title'><p><h1>"+this.data['league']['name']+"</h1> - <h2>"+this.data['tournament']['name']+"</h2></p></div>"; out += "<div class='columns'>" + "<div class='column'>" + '<div class="card card-team">'+ '<div class="card-image">'+ '<figure class="image is-square">'+ '<img src="'+this.data['team1']['image']+'" alt="'+this.data['team1']['name']+'">'+ '</figure>'+ '</div>'+ '<div class="card-content">'+ '<div class="media is-marginless">'+ '<div class="media-content has-text-centered">'+ '<p class="title is-4">'+this.data['team1']['name']+'</p>'+ '</div>'+ '</div>'+ '<div class="content is-fullwidth has-text-centered is-marginless">'; for(var i=0; i < this.data['score'].length; i++){ if(this.data['score'][i]['id'] === this.data['team1']['id']){ if(this.data['winner'] === this.data['score'][i]['id']){ out += "<span class='winner' style='font-size:42px;'>"; } else out += "<span class='loser' style='font-size:42px;'>"; out += this.data['score'][i]['value']+"</span>"; } } out += ''+ '</div>'+ '<div class="content is-fullwidth is-size-7">'+ '<div>Coins Bet<div class="is-pulled-right has-text-weight-bold team-bet-credits"></div></div>'+ '<div>Your Coins Bet<div class="is-pulled-right has-text-weight-bold team-bet-credits-user"></div></div>'+ '<div>Current Odds<div class="is-pulled-right has-text-weight-bold team-bet-odds"></div></div>'+ '</div>'+ '</div>'+ '<footer class="card-footer">'+ '</footer>'+ '</div>'+ "</div>" + "<div class='column has-text-centered is-vertical-center'>"+ "<div class='column is-fullwidth'>" + "<h1 style='font-size:78px'>VS</h1><br>"; var mbegins = moment(this.data.begins_at); var now = moment(); if(now.isAfter(mbegins)){ out += "Started at "+this.data.begins_at; out+="<h4 class='match-status'>MATCH OVER!</h4>"; } else { out += "Starts at "+this.data.begins_at; var duration = moment.duration(now.diff(mbegins)); out += "<h3 class='countdown-timer'></h3>"; out+="<h4 class='match-status'>UPCOMING</h4>"; } out +="</div>" + "</div>"+ "<div class='column'>" + '<div class="card card-team">'+ '<div class="card-image">'+ '<figure class="image is-square">'+ '<img src="'+this.data['team2']['image']+'" alt="'+this.data['team2']['name']+'">'+ '</figure>'+ '</div>'+ '<div class="card-content">'+ '<div class="media is-marginless">'+ '<div class="media-content has-text-centered">'+ '<p class="title is-4">'+this.data['team2']['name']+'</p>'+ '</div>'+ '</div>'+ '<div class="content has-text-centered is-marginless">'; for(var i=0; i < this.data['score'].length; i++){ if(this.data['score'][i]['id'] === this.data['team2']['id']){ if(this.data['winner'] === this.data['score'][i]['id']){ out += "<span class='winner' style='font-size:42px;'>"; } else out += "<span class='loser' style='font-size:42px;'>"; out += this.data['score'][i]['value']+"</span>"; } } out += ''+ '</div>'+ '<div class="content is-fullwidth is-size-7">'+ '<div>Coins Bet<div class="is-pulled-right has-text-weight-bold team-bet-credits"></div></div>'+ '<div>Your Coins Bet<div class="is-pulled-right has-text-weight-bold team-bet-credits-user"></div></div>'+ '<div>Current Odds<div class="is-pulled-right has-text-weight-bold team-bet-odds"></div></div>'+ '</div>'+ '</div>'+ '<footer class="card-footer">'+ '</footer>'+ '</div>'+ "</div>" + "</div>"; out += "<div class='columns'><div class='column is-fullwidth'><div class='card'>"+ "<div class='card-header'><h2 class='card-header-title has-text-centered'>Map List</h2></div>" + "<div class='card-content'>" + "<div class='columns'>"; for(var i=0; i < this.data['games'].length; i++){ var game = this.data['games'][i]; out += "<div class='column is-4'>" + "<div class='card'>" + "<div class='card-content has-text-centered'>"+game['map_name']+"</div>"; var matchsummary = ""; if(game['team1']['winner']) matchsummary = "<span class='winner' style='font-size:20px'>"; else matchsummary = "<span class='loser' style='font-size:20px'>"; matchsummary += game['team1']['score']; matchsummary += "</span>:"; if(game['team2']['winner']) matchsummary += "<span class='winner' style='font-size:20px'>"; else matchsummary += "<span class='loser' style='font-size:20px'>"; matchsummary += game['team2']['score']; matchsummary += "</span>"; out+= "" + "<div class='card-footer has-text-centered'><span class='is-fullwidth has-text-centered' style='width:100%'>"+matchsummary+"</span></div>"+ "</div>" + "</div>"; } out += "</div>"+ "</div>" + "</div></div></div>"; out += "<div class='columns'><div class='column is-fullwidth'><div class='card'>"+ "<div class='card-header'><h2 class='card-header-title'>Other Bets</h2></div>"+ "<div class='card-content'>" + "<div id='other-bets-holder'></div>" + "</div>"+ "</div></div></div>"; out += "<div class='columns'><div class='column is-fullwidth'><div class='card'>"+ "<div class='card-header'><h2 class='card-header-title'>Match Details</h2></div>"+ "<div class='card-content'>" + '<div class="tabs is-centered is-boxed">'+ '<ul>'+ '<li class="is-active" id="match_stream_link" data-target="match_stream_page"><a>Stream</a></li>'+ '<li id="match_score_card" data-target="match_score_page"><a>Score Card</a></li>'+ '</ul>'+ '</div>'+ '<div class="is-fullwidth tab-content is-active" id="match_stream_page">' + "<div class='columns'>" + "<div class='column is-6'><b>Select Stream</b></div>" + "<div class='column is-6'><select class='select' id='stream_select'>"; if(this.data['streams'].length > 0){ for(var i=0; i < this.data['streams'].length; i++){ out += "<option value='"+i+"'>"+this.data['streams'][i].name+"("+this.data['streams'][i].country+")</option>\n"; } } out += "</select></div>"+ "</div>"+ "<div class='columns'>" + "<div class='column is-12 has-text-centered'><div id='stream_container'></div></div>"+ "</div>"+ '</div>'+ '<div class="is-fullwidth tab-content" id="match_score_page">' + "<div id='score_card'></div>"+ '</div>'+ "</div>"+ "</div></div></div>"; out += "<div class='columns'>" + "<div class='column is-fullwidth content'>" + "<h1 class='has-text-centered is-fullwidth'>Head To Head</h1>" + "<div class='columns'>" + "<div class='column is-fullwidth'>"; for(var i=0; i < this.data.h2h.length; i++){ //var md = new MatchBlock(this.data.team1_past_matches[i]); out += this.renderMatchBlock(this.data.h2h[i]); } if(this.data.h2h.length === 0){ out += "<h1>No matches found!</h1>"; } out += "</div>"+ "</div>"+ "</div>"+ "</div>"; out += "<div class='columns'>" + "<div class='column is-fullwidth content'>" + "<h1 class='has-text-centered is-fullwidth'>Past Match History</h1>" + "<div class='columns'>" + "<div class='column is-6'>"; out += "<div class='card'>" + "<div class='card-header content has-text-centered content'><h2 style='margin:auto;'>"+this.data['team1']['name']+"</h2></div>"+ "<div class='card-content'>"; for(var i=0; i < this.data.team1_past_matches.length; i++){ //var md = new MatchBlock(this.data.team1_past_matches[i]); //out += md.render({"summaryOnly":1}); out += this.renderMatchBlock(this.data.team1_past_matches[i]); } if(this.data.team1_past_matches.length === 0){ out += "<h1>No matches found!</h1>"; } out += "</div>"; out += "</div>"+ "</div>"; out += "<div class='column is-6'>"; out += "<div class='card'>" + "<div class='card-header has-text-centered content'><h2 style='margin:auto;'>"+this.data['team2']['name']+"</h2></div>"+ "<div class='card-content'>"; for(var i=0; i < this.data.team2_past_matches.length; i++){ //md = new MatchBlock(this.data.team2_past_matches[i]); //out += md.render({"summaryOnly":1}); out += this.renderMatchBlock(this.data.team2_past_matches[i]); } if(this.data.team2_past_matches.length === 0){ out += "<h1>No matches found!</h1>"; } out += "</div>"; out += "</div>"; out += "</div>"+ "</div>"+ "</div>"+ "</div>"; out += ` <div class="modal modal-betting"> <div class="modal-background"></div> <div class="modal-content"> <div class="box"> </div> </div> <button class="modal-close is-large" aria-label="close"></button> </div>`; return out; } } class MatchBetting { constructor(id, target){ this.id = id; this.target = target; this.modal = $('.modal-betting'); this.refresh(); } refresh(){ const self = this; $.ajax({ url: "/api/Matches/GetBettingData", dataType: "json", data: { match_id: this.id, } }) .fail(function() { alert( "error" ); }) .done(function(res) { if (res.status === 1) { self.bet_definitions = res.response.definitions; self.render(); } }); } render(){ console.log('render'); let $target = $(this.target); let self = this; let def = []; $.each(this.bet_definitions, function (key, val) { if(val.type === 1) { return def = val; } }); const team_cards = $target.find('.card-team'); team_cards.each(function (index) { const team_id = vgoapp.currentPage.data['team' + (index + 1)].id; const has_bet_on_this = def.user_bets_count > 0 && def.options[team_id].user_bets_count > 0; let color_class = ''; if (has_bet_on_this) { //if (def.is_active) // color_class = 'is-info'; //else { if (!def.is_active) { if (vgoapp.currentPage.data.winner === team_id) color_class = 'is-success'; else color_class = 'is-danger'; } } $(this).find('.team-bet-credits').html(def.options[team_id].bets_credits || '0'); $(this).find('.team-bet-credits-user').html(def.options[team_id].user_bets_credits || '0'); $(this).find('.team-bet-odds').html('x' + (def.odds[team_id] || '1.00')); $(this).find('footer').html(`<button class="button is-primary is-paddingless is-radiusless button-betting ${color_class} card-footer-item" style="border:none;" ${def.is_active ? '' : 'disabled'} data-defid="${def.id}" data-pickid="${team_id}">${def.is_active ? 'Bet' : ''}</button>`); }); const other_bets_holder = $('#other-bets-holder'); other_bets_holder.html(''); $.each(this.bet_definitions, function (key, def) { if(def.type !== 1) { const has_bet_on = def.user_bets_count; let card = ''; card += `<div class="card card-team-other">`; card += `<div class="card-header other-bets-header clickable" data-defid="${def.id}">`; card += `<div class="card-header-title is-block"><div class="is-block">${def.desc}</div><div class="is-size-7 has-text-weight-normal is-block"><span class="other-bets-countdown" id="other_bets_countdown_${def.id}" data-counto="${def.closes_at}">Locks in ...</span></div></div>`; if(has_bet_on) { card += `<div class="card-header-title has-text-right is-size-7" style="flex-grow:0;">Your credits bet: ${def.user_bets_credits}</div>`; } card += `<a class="card-header-icon" aria-label="more options"><span class="icon"><i class="fas fa-angle-down" aria-hidden="true"></i></span></a>`; card += `</div>`; card += `<div class="card-content other-bets-options" id="bet_options_${def.id}">`; $.each(def.options, function (key, opt) { const has_bet_on_this = opt.user_bets_count; card += `<div class="columns">`; card += `<div class="column is-10">`; card += `<p class="is-size-7 has-text-weight-bold">${opt.desc}</p>`; card += `<p class="is-size-7">Current odds: x${ def.odds[opt.pick] || '1.00' } &nbsp; Total credits bet: ${ opt.bets_credits || '0' }${ has_bet_on_this ? ' &nbsp; Your credits bet: ' + opt.user_bets_credits + '' : '' }</p>`; card += `</div>`; card += `<div class="column is-2 has-text-right">`; if(def.is_active) { card += `<button class="button button-betting is-primary" ${def.is_active ? '' : 'disabled'} data-defid="${def.id}" data-pickid="${opt.pick}">Bet</button>`; } card += `</div>`; card += `</div>`; }); card += `</div>`; card += `</div>`; other_bets_holder.append(card); var timer = $(self.target).find("#other_bets_countdown_" + def.id); if(timer.length > 0) { console.log('timerlength', timer.length, def.closes_at); setInterval($.proxy(self.timertick,self,timer,def.closes_at),1000); } } }); $target.find('.other-bets-header').on('click', function (index) { const def_id = $(this).data('defid'); const icon = $(this).find('.card-header-icon .icon i'); $('#bet_options_' + def_id).slideToggle('slow', function() { icon.toggleClass('fa-angle-down').toggleClass('fa-angle-up'); }); }); $target.find('.button-betting').on('click', function (index) { const pick_id = $(this).data('pickid'); const def_id = $(this).data('defid'); var def = []; $.each(self.bet_definitions, function (key, val) { if(val.id === def_id) { return def = val; } }); if(vgoapp.user) { if(def.is_active) { self.modal.find('.box').html(` <p><strong>${def.desc}</strong></p> <p>Place bet on <strong>${def.options[pick_id]['desc']}</strong></p> <div class="columns"> <div class="column"> Your bet <div class="control has-icons-right"> <input class="input" type="number" value="${vgoapp.user.credits >= 10 ? 10 : 0}" id="place-bet-value" min="1" max="${vgoapp.user.credits}" required> <span class="icon is-small is-right"> <i class="fas fa-check" id="place-bet-validation"></i> </span> </div> </div> <div class="column"> Your possible winnings <input class="input" type="number" value="${vgoapp.user.credits >= 10 ? parseFloat(10 * (def.odds[pick_id] || 1)).toFixed(0) : 0}" id="place-bet-suggestion" disabled> </div> </div> <button type="button" class="button" id="place-bet-submit">PLACE BET</button>`); self.modal.addClass('is-active'); const input = self.modal.find('#place-bet-value'); const suggestion = self.modal.find('#place-bet-suggestion'); const validation_icon = self.modal.find('#place-bet-validation'); const submit = self.modal.find('#place-bet-submit'); input.on('input', function () { //suggest winnings if(input.val()) parseFloat( suggestion.val(input.val() * (def.odds[pick_id] || 1.00)) ).toFixed(0); else input.val('0'); //validation icon if (input[0].checkValidity()) { validation_icon.removeClass('fa-times'); validation_icon.addClass('fa-check'); } else { validation_icon.removeClass('fa-check'); validation_icon.addClass('fa-times'); } }); submit.on('click', function () { if (input[0].checkValidity()) { self.modal.removeClass('is-active'); $.ajax({ url: "/api/Bet/PlaceBet", method: 'POST', dataType: "json", data: { definition: def.id, amount: input.val(), pick: pick_id } }) .fail(function () { self.refresh(); }) .done(function (res) { if (res.status === 1) { def.user_bet = res.response.bet; vgoapp.updateUserCredits(res.response.credits) } self.refresh(); }); } }) } } else { self.modal.find('.box').html(` <a href="/login" class="button">LOGIN</a>`); self.modal.addClass('is-active'); } }); } timertick(counter,time){ var dt = moment.utc(time).local(); var now = moment(); var duration = moment.duration(dt.diff(now)); var out = ""; if(now.isBefore(dt)) { if (duration.get('days') > 0) { out += duration.get("days") + "d "; out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("hours") > 0) { out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("minutes") > 0) { out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("seconds") > 0) { out += duration.get("seconds") + "s"; } $(counter).html('Locks in ' + out); } else $(counter).html('LOCKED'); } }<file_sep>import local from "./localization"; export function betTimerTick(close_at, opens_at, timer) { const dt = moment.utc(close_at).local(); const dt2 = moment.utc(opens_at).local(); const now = moment(); const duration = moment.duration(dt.diff(now)); let out = ""; if(now.isBefore(dt) && now.isAfter(dt2)) { if (duration.get('days') > 0) { out += duration.get("days") + "d "; out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("hours") > 0) { out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("minutes") > 0) { out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("seconds") > 0) { out += duration.get("seconds") + "s"; } return out } else { clearInterval(timer) return local.LOCKED } }<file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCsgoGameOddsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('csgo_match_odds', function (Blueprint $table) { $table->integer('match_id'); $table->string('source','100'); $table->integer('team_1_id'); $table->integer('team_2_id'); $table->double('team1_odd')->default(0); $table->double('team2_odd')->default(0); $table->primary(['match_id','source']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('csgo_match_odds'); } } <file_sep>import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter, Route, Link} from 'react-router-dom' import {User, UserContext} from './extra/UserContext'; import Loading from "./extra/Loading"; import FrontPage from './pages/FrontPage'; import MatchPage from './pages/MatchPage'; import StorePage from './pages/StorePage'; import AccountPage from './pages/AccountPage'; import About from './pages/About'; class App extends React.Component { constructor(props) { super(props); this.state = { isLoading: true }; } componentDidMount() { const self = this; this.user = new User(); this.user.refresh(function() { self.setState({ isLoading: false }); }); } render() { if(this.state.isLoading) return (<Loading />); return ( <UserContext.Provider value={this.user}> <Route exact path="/" component={FrontPage}/> <Route exact path="/about" component={About}/> <Route path="/match/:matchId" component={MatchPage}/> <Route exact path="/store" component={StorePage}/> <Route exact path="/account" render={routeProps => <AccountPage user={this.user} tab="1" {...routeProps} />} /> <Route exact path="/account/bets" render={routeProps => <AccountPage user={this.user} tab="2" {...routeProps} />} /> <Route exact path="/account/transactions" render={routeProps => <AccountPage user={this.user} tab="3" {...routeProps} />} /> <Route exact path="/account/deposit" render={routeProps => <AccountPage user={this.user} tab="4" {...routeProps} />} /> <Route exact path="/account/pending" render={routeProps => <AccountPage user={this.user} tab="5" {...routeProps} />} /> </UserContext.Provider> ) } } ReactDOM.render( <BrowserRouter> <App/> </BrowserRouter>, document.getElementById('app') ); /* Most of this is temp and will be converted to React */ $(document).on('click', '.vl-drop', function () { $(".navbar-modal").addClass("is-active"); $(".vl-search input").focus(); }); $(document).on('click', '.modal-close, .modal-background', function () { $(".modal").removeClass("is-active"); $(".vl-search input").val(""); }); $(document).on('click', '.vl-search-site .fa-search', function () { let search = $(this).closest(".vl-search").find("input").val(); console.log(search); $(".vl-search-site input").val(""); }); /* $(document).on('click', '.account-tab-select:not(.is-active)', function () { let drop = $(this).closest(".vl-dropdown"); let tab = $(this).data("tab"); $(".account-tab-select").removeClass("is-active"); $(".vl-dropdown-page .account-tab-select").show(); $(".account-section").hide(); $(".account-tab-select[data-tab=" + tab + "]").addClass("is-active"); $(".vl-dropdown-page .account-tab-select:not(.is-active)").hide(); $(".account-section#account-tab-" + tab).show(); $(drop).find("ul li:not(.is-active)").hide(); $(drop).removeClass("is-active"); }); */ /*$(document).on('click', '.bets-tab-select:not(.is-active)', function () { let drop = $(this).closest(".vl-dropdown"); let tab = $(this).data("tab"); $(".bets-tab-select").removeClass("is-active"); $(".bets-section").hide(); $(this).addClass("is-active"); $(".bets-section#bets-tab-" + tab).show(); $(drop).find("ul li:not(.is-active)").hide(); $(drop).removeClass("is-active"); }); $(document).on('click', '.transactions-tab-select:not(.is-active)', function () { let drop = $(this).closest(".vl-dropdown"); let tab = $(this).data("tab"); $(".transactions-tab-select").removeClass("is-active"); $(".transactions-section").hide(); $(this).addClass("is-active"); $(".transactions-section#bets-tab-" + tab).show(); $(drop).find("ul li:not(.is-active)").hide(); $(drop).removeClass("is-active"); }); $(document).on('click', '.bets-perpage:not(.is-active)', function () { let drop = $(this).closest(".vl-dropdown"); let perpage = $(this).data("perpage"); $(".bets-perpage").removeClass("is-active"); $(this).addClass("is-active"); $(drop).find("ul li:not(.is-active)").hide(); $(drop).removeClass("is-active"); });*/ /*$(document).on('click', 'html:not(.vl-dropdown ul li)', function () { $(".vl-dropdown ul li:not(.is-active)").hide(); $(".vl-dropdown").removeClass("is-active"); });*/ /*$(document).on('click', '.vl-dropdown:not(.is-active) ul li.is-active, .vl-dropdown .vl-dropdown-carat', function (event) { let drop = $(this).closest(".vl-dropdown"); $(drop).addClass("is-active"); $(drop).find("ul li").show(); event.stopPropagation(); });*/ <file_sep><?php namespace App\Http\Controllers; use Illuminate\Support\Facades\DB; use Illuminate\Http\Request; use App\Auth; use App\Trade; use App\StatusCode; class TradeController extends Controller { // temp public function CheckOffers(Request $request) { return response()->json( [ 'status' => StatusCode::OK, 'response' => Trade::checkOffers() ] ); } /** * Returns array of filters that can be applied * @param array $items * @return array */ private function GetFilters(Array $items) { $wear_tier_index_map = array( 0 => '', 1 => 'Factory New', 2 => 'Minimal Wear', 3 => 'Field-Tested', 4 => 'Well-Worn', 5 => 'Battle-Scarred' ); $filter_type = array(); $filter_rarity = array(); $filter_wear = array(); $filter_price = array(); foreach($items as $item) { $filter_type[] = $item['type']; $filter_rarity[] = $item['rarity']; $filter_price[] = $item['credits']; $filter_wear[$item['wear_tier_index']] = $wear_tier_index_map[$item['wear_tier_index']]; } $filter_type = array_unique($filter_type); $filter_rarity = array_unique($filter_rarity); $filter_wear = array_unique($filter_wear); $filter_type = array_values($filter_type); $filter_rarity = array_values($filter_rarity); $filter_price_min = min($filter_price); $filter_price_max = max($filter_price); $filters = array( 'type' => $filter_type, 'rarity' => $filter_rarity, 'wear' => $filter_wear, 'price' => [$filter_price_min, $filter_price_max] ); return $filters; } /** * Returns array of authenticated users pending withdrawals * @param Request $request * @return \Illuminate\Http\JsonResponse */ public function GetUserPending(Request $request) { $items = Trade::getUserPending(Auth::id(), $request->input('appid')); if(!empty($items)) { $filters = $this->GetFilters($items); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['filters' => $filters, 'items' => $items] ] ); } else { return response()->json( [ 'status' => StatusCode::EMPTY, 'message' => 'No items found.' ] ); } } /** * Returns array of authenticated users inventory items. * Optional appid can be specified, otherwise defaults to VGO appid (1). * @param Request $request * @return \Illuminate\Http\JsonResponse */ public function GetUserItems(Request $request) { $items = Trade::getUserItems(Auth::id(), $request->input('appid')); if(!empty($items)) { $filters = $this->GetFilters($items); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['filters' => $filters, 'items' => $items] ] ); } else { return response()->json( [ 'status' => StatusCode::EMPTY, 'message' => 'No items found.' ] ); } } /** * Returns array of sites available inventory items. * Optional appid can be specified, otherwise defaults to VGO appid (1). * @param Request $request * @return \Illuminate\Http\JsonResponse */ public function GetSiteItems(Request $request) { $items = Trade::getSiteItems($request->input('appid')); if(!empty($items)) { $filters = $this->GetFilters($items); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['filters' => $filters, 'items' => $items] ] ); } else { return response()->json( [ 'status' => StatusCode::EMPTY, 'message' => 'No items found.' ] ); } } /** * Submits request to deposit items. * Returns offerid if successful. * Expects a CSV list of item IDs items. * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function ItemDeposit(Request $request) { $this->validate($request, [ 'items' => 'required', ]); $user = Auth::user(); $items = $request->input('items'); $items = str_getcsv($items); $tradetoken = null; if(preg_match("/\/t\/(\d{1,})\/([\w-]{8})/si", $user->tradelink, $tradelink)) { $tradetoken = $tradelink[2]; } $req = false; if(!empty($user->tradelink) && !empty($tradetoken)) { $req = Trade::sendTradeOffer($user->id, $tradetoken, null, $items); } if($req !== false) { return response()->json( [ 'status' => StatusCode::OK, 'response' => ['offerid' => $req] ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'An error occured.' ] ); } } /** * Submits request to withdraw items. * Returns offerid if successful. * Expects a CSV list of item IDs items. * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function ItemWithdraw(Request $request) { $this->validate($request, [ 'items' => 'required', ]); $user = Auth::user(); $items = $request->input('items'); $items = str_getcsv($items); $tradetoken = null; if(preg_match("/\/t\/(\d{1,})\/([\w-]{8})/si", $user->tradelink, $tradelink)) { $tradetoken = $tradelink[2]; } // get array of reserved item IDs $pending = DB::table('trade_withdraw_reserve')->select('id')->where('user_id', (int)$user->id)->pluck('id')->toArray(); $req = false; // check trade link is set and make sure we are only withdrawing allowed items if(!empty($user->tradelink) && !empty($tradetoken) && count(array_intersect($items,$pending)) == count($items)) { $req = Trade::sendTradeOffer($user->id, $tradetoken, $items); } if($req !== false) { return response()->json( [ 'status' => StatusCode::OK, 'response' => ['offerid' => $req] ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'An error occured.' ] ); } } } <file_sep>class AccountBlock { constructor(target='') { this.user = []; this.target = target; var me = this; $.ajax({ "url": "/api/User/GetUser", "success": function(res) { var obj = (res); if(obj.status === 1) { me.user = obj.response.user; if(me.target) { $(me.target).html(me.render()); } } else { console.log("Status:", obj.status, obj.message); } }, "error": function() { console.log("Error"); } }); } render() { var out = ""; if(vgoapp.loggedIn()) { out += '<div id="account">\n'; out += '<div><strong>' + this.user.name + '</strong></div>\n'; out += '<div>Credits: ' + this.user.credits + '</div>\n'; out += '<div class="tabs">\n'; out += '<ul>\n'; out += '<li data-tab="1" class="is-active"><a>Account Settings</a></li>\n'; out += '<li data-tab="2"><a>Transaction History</a></li>\n'; out += '<li data-tab="3"><a>Bet History</a></li>\n'; out += '<li data-tab="4"><a>Deposit</a></li>\n'; out += '<li data-tab="5"><a>Pending Withdrawals</a></li>\n'; out += '</ul>\n'; out += '</div>\n'; out += '<div class="tab-content-account">\n'; out += '<div data-content="1" id="tab_1" class="is-active">\n'; out += '<div class="field">\n'; out += '<label class="label">Trade Link</label>\n'; out += '<div class="control">\n'; out += '<input id="tradelink" name="tradelink" class="input" type="text" placeholder="Trade Link" value="' + $.trim(this.user.tradelink) + '">\n'; out += '</div>\n'; out += '<p class="help">Can be found <a href="https://trade.onetruestage.com/settings" target="_blank">here</a>.</p>\n'; out += '</div>\n'; out += '<div class="control">\n'; out += '<button id="tradelink_save" class="button is-primary">Save</button>\n'; out += '</div>\n'; out += '</div>\n'; out += '<div data-content="2" id="tab_2">\n'; out += ''; out += '</div>\n'; out += '<div data-content="3" id="tab_3">\n'; out += ''; out += '</div>\n'; out += '<div data-content="4" id="tab_4">\n'; out += ''; out += '</div>\n'; out += '<div data-content="5" id="tab_5">\n'; out += ''; out += '</div>\n'; out += '</div>\n'; out += '<style type="text/css">\n'; out += '.tab-content-account > div {\n'; out += 'display: none;\n'; out += '}\n'; out += '.tab-content-account > div.is-active {\n'; out += 'display: block;\n'; out += '}\n'; out += '</style>\n'; out += '</div>\n'; out += '<br>\n'; } return out; } transactions() { var tab = "#tab_2"; $.ajax({ "url": "/api/User/GetTransactions", "success": function(res) { var obj = (res); if(obj.status === 1) { var transactions = obj.response.transactions; var length = Object.keys(transactions).length; var out = ""; out += '<table border="1" style="table-layout: fixed;" class="table is-fullwidth"><thead>\n'; out += '<tr>\n'; out += '<th width="50">#</th>\n'; out += '<th width="200">Type</th>\n'; out += '<th>Items</th>\n'; out += '<th width="150">Time</th>\n'; out += '<th width="150">Credits</th>\n'; out += '</tr>\n'; out += '</thead>\n'; out += '<tbody>\n'; if(length > 0) { Object.keys(transactions).forEach(key => { out += '<tr>\n'; out += '<td>' + transactions[key].id + '</td>\n'; out += '<td>'; if(transactions[key].type === 1) { out += 'Deposit'; } else if(transactions[key].type === 2) { out += 'Withdraw'; } else if(transactions[key].type === 3) { out += 'Store Purchase'; } else if(transactions[key].type === 8) { out += 'Complimentary Credits'; } else { out += 'Unknown'; } out += '</td>\n'; out += '<td>'; var items = []; if(transactions[key].items.length > 0) { transactions[key].items.forEach(function(entry) { items.push(entry.name); }); out += items.join('<br>\n'); } out += '</td>\n'; out += '<td>' + moment(transactions[key].timestamp).format("DD-MM-YYYY HH:mm") + '</td>\n'; out += '<td>'; if(transactions[key].type !== 2) { out += transactions[key].credits + ' credits'; } out += '</td>\n'; out += '</tr>\n'; }); } else { out = 'No transactions found.\n'; } out += '</tbody></table>\n'; $(tab).html(out); } else { console.log("Status:", obj.status, obj.message); $(tab).html("Error: " + obj.message); } }, "error": function() { console.log("Error"); $(tab).html("Error"); } }); } bets() { var tab = "#tab_3"; $.ajax({ "url": "/api/User/GetBets", "success": function(res) { var obj = (res); if(obj.status === 1) { var bets = obj.response.bets; var length = Object.keys(bets).length; var out = ""; out += '<table border="1" style="table-layout: fixed;" class="table is-fullwidth"><thead>\n'; out += '<tr>\n'; out += '<th class="is-1">#</th>\n'; out += '<th class="is-1">Match</th>\n'; out += '<th class="is-1">Pick</th>\n'; out += '<th class="is-1">Credits</th>\n'; out += '<th class="is-1">Time</th>\n'; out += '<th class="is-1">Status</th>\n'; out += '</tr>\n'; out += '</thead>\n'; out += '<tbody>\n'; if(length > 0) { Object.keys(bets).forEach(key => { out += '<tr>\n'; out += '<td class="is-1">' + bets[key].id + '</td>\n'; out += '<td class="is-1">' + bets[key].match_id + '</td>\n'; out += '<td class="is-1">' + bets[key].pick + '</td>\n'; out += '<td class="is-1">' + bets[key].amount + '</td>\n'; out += '<td class="is-1">' + moment(bets[key].created_at).format("DD-MM-YYYY HH:mm") + '</td>\n'; out += '<td class="is-1">'; switch(bets[key].status) { case 1: out += 'Active'; break; case 2: out += 'Paid'; break; case 3: out += 'Canceled'; break; default: out += 'Unknown'; } out += '</td>\n'; out += '</tr>\n'; }); } else { out = 'No bets found.\n'; } out += '</tbody></table>\n'; $(tab).html(out); } else { console.log("Status:", obj.status, obj.message); $(tab).html("Error: " + obj.message); } }, "error": function() { console.log("Error"); $(tab).html("Error"); } }); } deposit() { var tab = "#tab_4"; $.ajax({ "url": "/api/Trade/GetUserItems", "success": function(res) { var obj = (res); if(obj.status === 1) { var i = obj.response.items; var length = Object.keys(i).length; var out = ""; out += '<div class="control">\n'; out += '<button id="do_deposit" class="button is-primary" disabled>Deposit Selected</button>\n'; out += '</div>\n'; out += '<br>\n'; out += '<div style="font-size:0;">\n'; if(length > 0) { Object.keys(i).forEach(key => { out += '<div class="card" id="item_' + i[key].id + '" style="display:inline-block;width:20%;vertical-align:top;font-size:1rem;">\n'; out += '<label class="checkbox">\n'; out += '<div class="card-image">\n'; out += '<figure class="image is-16by9">\n'; out += '<img src="' + i[key].preview_urls['thumb_image'] + '" alt="' + i[key].name + '">\n'; out += '</figure>\n'; out += '</div>\n'; out += '<div class="card-content">\n'; out += '<div class="content">\n'; out += '<div style="float:right;"><input type="checkbox" name="items[]" value="' + i[key].id + '"></div>\n'; out += '' + i[key].credits + ' credits\n'; out += '<p style="font-weight:bold;">' + i[key].name + '</p>\n'; out += '</div>\n'; out += '</div>\n'; out += '</label>\n'; out += '</div>\n'; }); } else { out = '<div style="font-size:1rem;">No items found.</div>\n'; } out += '</div>\n'; $(tab).html(out); } else { console.log("Status:", obj.status, obj.message); $(tab).html("Error: " + obj.message); } }, "error": function() { console.log("Error"); $(tab).html("Error"); } }); } pending() { var tab = "#tab_5"; $.ajax({ "url": "/api/Trade/GetUserPending", "success": function(res) { var obj = (res); if(obj.status === 1) { var i = obj.response.items; var length = Object.keys(i).length; var out = ""; out += '<div style="font-size:0;">\n'; if(length > 0) { Object.keys(i).forEach(key => { out += '<div class="card" id="item_' + i[key].id + '" style="display:inline-block;width:20%;vertical-align:top;font-size:1rem;">\n'; out += '<div class="card-image">\n'; out += '<figure class="image is-16by9">\n'; out += '<img src="' + i[key].preview_urls['thumb_image'] + '" alt="' + i[key].name + '">\n'; out += '</figure>\n'; out += '</div>\n'; out += '<div class="card-content">\n'; out += '<div class="content">\n'; out += '<p style="font-weight:bold;">' + i[key].name + '</p>\n'; if(i[key].offer.status === 1 && i[key].offer.time_expires > moment().format('X')) { out += '<p class="offer"><a href="https://trade.onetruestage.com/trade-offers/' + i[key].offer.id + '" class="button is-small is-primary">View Trade Offer</a></p>\n'; } else { out += '<p class="offer"><button class="do_resend button is-small" data-itemid="' + i[key].id + '">Resend Trade Offer</button></p>\n'; } out += '</div>\n'; out += '</div>\n'; out += '</div>\n'; }); } else { out = '<div style="font-size:1rem;">No pending withdrawals found.</div>\n'; } out += '</div>\n'; $(tab).html(out); } else { console.log("Status:", obj.status, obj.message); $(tab).html("Error: " + obj.message); } }, "error": function() { console.log("Error"); $(tab).html("Error"); } }); } } var items = []; $(document).on("click", "#account .tabs li", function() { var tab = $(this).data('tab'); if(tab > 1) { $("#tab_" + tab).html("<div class='is-fullwidth has-text-centered'><div class='fa fa-4x fa-spin fa-spinner'></div></div>"); if(tab === 2) { window.vgoapp.currentPage.transactions(); } else if(tab === 3) { window.vgoapp.currentPage.bets(); } else if(tab === 4) { window.vgoapp.currentPage.deposit(); } else if(tab === 5) { window.vgoapp.currentPage.pending(); } } $("#account .tabs li").removeClass('is-active'); $(this).addClass('is-active'); $("#account .tab-content-account div").removeClass('is-active'); $("#account .tab-content-account div[data-content='" + tab + "']").addClass('is-active'); }); $(document).on("click", "#tradelink_save", function() { var tradelink = $("#tradelink").val(); $.ajax({ "url": "/api/User/UpdateTradeLink", "method": "POST", "data": { tradelink: tradelink }, "success": function(res) { var obj = (res); var back = obj.response.tradelink; if(obj.status === 1) { $("#tradelink").val(back); } else { $("#tradelink").val(back); console.log("Status:", obj.status, obj.message); } }, "error": function() { console.log("Error"); $(tab).html("Error"); } }); }); $(document).on("change", "input[name='items[]']", function() { items = $("input[name='items[]']:checked").map(function() { return $(this).val(); }).toArray(); if(items.length > 0) { $("button#do_deposit").prop('disabled', false); } else { $("button#do_deposit").prop('disabled', true); } }); $(document).on("click", "#do_deposit", function() { if(items.length > 0) { $.ajax({ "url": "/api/Trade/ItemDeposit", "method": "POST", "data": { items: items.join(",") }, "success": function(res) { var obj = (res); if(obj.status === 1 && obj.response.offerid > 0) { var offerid = obj.response.offerid; var out = ""; out += '<div style="text-align:center;">\n'; out += '<strong>Trade offer sent.</strong><br>\n'; out += '<br>\n'; out += '<a href="https://trade.onetruestage.com/trade-offers/' + offerid + '">click here to view and accept the offer</a>\n'; out += '</div>\n'; $("#tab_4").html(out); } else { console.log("Status:", obj.status, obj.message); } }, "error": function() { console.log("Error"); $(tab).html("Error"); } }); } }); $(document).on("click", "button.do_resend", function() { $(this).prop('disabled', true).html("<div class='fa fa-spin fa-spinner'></div>"); var itemid = $(this).data("itemid"); if(itemid > 0) { $.ajax({ "url": "/api/Trade/ItemWithdraw", "method": "POST", "data": { items: itemid }, "success": function(res) { var obj = (res); if(obj.status === 1) { var offerid = obj.response.offerid; $("#item_" + itemid + " p.offer").html('<a href="https://trade.onetruestage.com/trade-offers/' + offerid + '" class="button is-small is-primary">View Trade Offer</a>'); } else { console.log("Status:", obj.status, obj.message); } }, "error": function(res) { var obj = (res); $("#item_" + itemid + " button.do_resend").prop('disabled', false).html("Resend Trade Offer"); console.log("Status:", obj.status, obj.message); console.log("Error"); } }); } });<file_sep><?php use Illuminate\Database\Seeder; class DefaultData extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { \App\Models\VideogamesIndex::insert([ 'name' => 'Counter-Strike', 'desc' => 'Counter-Strike: Global Offensive', 'slug' => 'csgo', 'icon_url' => '//media.steampowered.com/apps/csgo/blog/images/CSGO_logo_ko.png', ]); \App\Models\BetTemplate::insert([ // Who will win? [ 'videogame_id' => 1, 'type' => 1, 'permap' => 0, 'minmaps' => 1, 'opens_before' => '7d' ], // Who will win map X? [ 'videogame_id' => 1, 'type' => 2, 'permap' => 1, 'minmaps' => 2, 'opens_before' => '7d' ], // When will the bomb be planted for the first time on Map X? [ 'videogame_id' => 1, 'type' => 3, 'permap' => 1, 'minmaps' => 2, 'opens_before' => '7d' ], // When will the first AWP frag happen on Map X? [ 'videogame_id' => 1, 'type' => 5, 'permap' => 1, 'minmaps' => 2, 'opens_before' => '7d' ], // Total Maps played [ 'videogame_id' => 1, 'type' => 4, 'permap' => 0, 'minmaps' => 3, 'opens_before' => '7d' ], // Who will be first to get a kill? [ 'videogame_id' => 1, 'type' => 6, 'permap' => 0, 'minmaps' => 1, 'opens_before' => '7d' ], // Who will be first to die? [ 'videogame_id' => 1, 'type' => 7, 'permap' => 0, 'minmaps' => 1, 'opens_before' => '7d' ] ]); } } <file_sep><?php namespace App\ThirdParty; use App\Exceptions\BackblazeException; use App\Http\CURL; use Exception; use Illuminate\Support\Facades\Cache; class Backblaze { const AUTH_BASE = "https://api.backblazeb2.com"; const TOKEN_LIFETIME = 720; // 12 hours in minutes const API_PATH = "/b2api/v1/"; const PATH_CMS_SLIDER = "/frontpage/slider/"; public $timeout = 30; protected $baseApi; protected $baseFiles; protected $authToken; protected $redisKey; protected $uploads = []; /** * Backblaze constructor. * @param string $accountId * @param string $appKey * @throws Exception */ public function __construct($accountId, $appKey) { $auth = md5("$accountId:$appKey"); $this->redisKey = $auth; if (!($auth_data = Cache::get("backblaze-auth-$auth"))) { $curl = new CURL(); $curl->setAuth($accountId, $appKey); $curl->jsonStdClass = false; $res = $curl->get(self::AUTH_BASE . self::API_PATH . "b2_authorize_account", true); if (empty($res['authorizationToken'])) { throw new Exception("Cannot get authorization token from Backblaze API"); } $auth_data = json_encode($res); Cache::put("backblaze-auth-$auth", $auth_data, self::TOKEN_LIFETIME); } $auth_data = json_decode($auth_data, true); $this->baseApi = $auth_data['apiUrl'] . self::API_PATH; $this->baseFiles = $auth_data['downloadUrl']; $this->authToken = $auth_data['authorizationToken']; } /** * Upload a file to a B2 bucket. * @param string $bucketId * @param string $filename Desired name to be stored in the bucket * @param string $file (Binary) string containing the actual file's contents, NOT the path to the file * @param array $info Info to be stored on B2's server with the file * @return array */ public function upload($bucketId, $filename, $file, $info = []) { $res = $this->getUploadUrl($bucketId); $curl = $this->getCurl($res['authorizationToken']); $curl->header("X-Bz-File-Name", urlencode($filename)); $curl->header("Content-Type", "b2/x-auto"); $curl->header("Content-Length", strlen($file)); $curl->header("X-Bz-Content-Sha1", sha1($file)); foreach ($info as $key => $value) { $curl->header("X-Bz-Info-" . $key, urlencode($value)); } $res = $curl->post($res['uploadUrl'], $file, true); $this->checkError($res); return $res; } /** * Get all versions of a file stored in B2. * @param string $bucketId * @param string $filename * @param bool $strict If false, then also return files that don't have identical filenames (searching) * @return array */ public function getFileVersions($bucketId, $filename, $strict = true) { $res = $this->get("b2_list_file_versions", ['bucketId' => $bucketId, 'startFileName' => $filename]); if (empty($res['files'])) { return []; } if (!$strict) { return $res['files']; } $files = []; foreach ($res['files'] as $file) { if ($file['fileName'] == $filename) { $files[] = $file; } } return $files; } /** * Delete *all versions* of a file from B2. * @param string $bucketId * @param string $filename */ public function delete($bucketId, $filename) { $files = $this->getFileVersions($bucketId, $filename); foreach ($files as $file) { $this->deleteFileVersion($file['fileName'], $file['fileId']); } } /** * Delete a particular file version by ID. * @param string $filename * @param string $fileId * @return mixed */ public function deleteFileVersion($filename, $fileId) { return $this->post("b2_delete_file_version", ['fileName' => $filename, 'fileId' => $fileId]); } /** * Delete the contents of a folder, which removes the folder itself. * @param string $bucketId * @param string $filename Path of folder * @return array Files that were deleted */ public function deleteFolder($bucketId, $filename) { if (substr($filename, strlen($filename) - 1) != '/') { $filename .= '/'; } $versions = $this->getFileVersions($bucketId, $filename, false); $files = []; foreach ($versions as $file) { if (strpos($file['fileName'], $filename) === 0) { $files[] = $file; $this->deleteFileVersion($file['fileName'], $file['fileId']); } } return $files; } /** * @param string $bucketId * @param string $filenamePrefix All files *beginning* with this filename will be accessible * @param int $duration Duration for which the authorization should be valid, in seconds * @return array */ public function getDownloadAuth($bucketId, $filenamePrefix, $duration) { $res = $this->get("/b2_get_download_authorization", ['bucketId' => $bucketId, 'fileNamePrefix' => $filenamePrefix, 'validDurationInSeconds' => $duration]); $res['baseUrl'] = $this->baseFiles . '/file/'; return $res; } /** * Download a file from B2. * @param string $bucketName * @param string $filename * @return array */ public function download($bucketName, $filename) { $curl = $this->getCurl(); $curl->timeout = 5; $file = $this->get('/file/' . $bucketName . '/' . $filename, [], $this->baseFiles, $curl, false); $output = [ 'type' => $curl->responseHeaders['content-type'], 'fileId' => $curl->responseHeaders['x-bz-file-id'], 'uploadTime' => floor($curl->responseHeaders['x-bz-upload-timestamp'] / 1000), 'contentSha1' => $curl->responseHeaders['x-bz-content-sha1'], 'metadata' => [], 'content' => $file ]; foreach ($curl->responseHeaders as $key => $value) { if (strpos($key, 'x-bz-info-') === 0) { $output['metadata'][substr($key, 10)] = $value; } } return $output; } protected function getUploadUrl($bucketId) { if (!empty($this->uploads[$bucketId])) { return $this->uploads[$bucketId]; } $res = $this->post("b2_get_upload_url", ['bucketId' => $bucketId]); if (empty($res['uploadUrl']) || empty($res['authorizationToken'])) { throw new Exception("B2 did not give us an upload URL or auth token"); } $this->uploads[$bucketId] = $res; return $res; } protected function get($endpoint, $data = [], $base = null, $curl = null, $json = true) { if (!$curl) { $curl = $this->getCurl(); } $res = $curl->get(($base ?: $this->baseApi) . $endpoint . (!empty($data) ? '?' . http_build_query($data) : ''), $json); $this->checkError($res); return $res; } protected function post($endpoint, $data = [], $base = null, $curl = null) { if (!$curl) { $curl = $this->getCurl(); } $res = $curl->post(($base ?: $this->baseApi) . $endpoint, json_encode($data), true); $this->checkError($res); return $res; } protected function getCurl($auth = null) { $curl = new CURL(); $curl->header("Authorization", $auth ?: $this->authToken); $curl->jsonStdClass = false; $curl->failOnNon200 = false; $curl->timeout = $this->timeout; return $curl; } protected function checkError($res) { if (is_string($res)) { $res = json_decode($res, true); if (!$res) { // Not an error, I hope return; } } if (!empty($res['status']) && $res['status'] == 401) { Cache::forget($this->redisKey); } if (!empty($res['status']) && !empty($res['code']) && !empty($res['message'])) { throw new BackblazeException($res['message'], $res['status'], $res['code']); } } } <file_sep>import React from 'react'; import { BrowserRouter, Route, Link } from 'react-router-dom' import BetButton from './../../extra/BetButton'; import CountDownTimer from './../../extra/CountDownTimer'; /* * This is the horizontal view of the match. * */ export default class MatchBlockRow extends React.Component { constructor(props){ super(props); this.id = props.id; this.state = { match : props.match }; } render(){ let team1image = this.state.match.team1.image.indexOf("http") == -1?"http://thisistest.vlounge.gg"+this.state.match.team1.image:this.state.match.team1.image; let team2image = this.state.match.team2.image.indexOf("http") == -1?"http://thisistest.vlounge.gg"+this.state.match.team2.image:this.state.match.team2.image; return (<div className="match-block-hori is-fullwidth"> <Link to={`/match/${this.state.match.id}`}> <table className="is-fullwidth"> <tbody> <tr> <td width='156px;' align="center" valign='center' className="has-text-centered"> <span className="timer-hori"><CountDownTimer islive={this.state.match.is_live} timestamp={this.state.match.begins_at}/></span> <div className="game-image" style={{"backgroundImage":"url(/img/csgo.png)"}}></div> </td> <td width='104px;' align="center" className="has-text-centered"> <span className="odd-text-deaktop">x {this.state.match.match_bet[this.state.match.team1.id] && this.state.match.match_bet[this.state.match.team1.id].odds[this.state.match.team1.id]?this.state.match.match_bet[this.state.match.team1.id].odds[this.state.match.team1.id]:"1.00"}</span><br/> <BetButton pick_id={this.state.match.team1.id} definition={this.state.match.match_bet} /> </td> <td width='130px;' align="center" className="has-text-centered"> <div className="team-image-hori" style={{"backgroundImage":"url("+team1image+")"}}></div> <span className="team-name-hori">{this.state.match.team1.name}</span> </td> <td width='250px;' align="center" className="has-text-centered"> <span className="match-score">{this.state.match.score[0].value}-{this.state.match.score[1].value}</span><br/> <span> <span className="tournament-name-hori">{this.state.match.league.name}</span><br/> </span> </td> <td width='130px;' align="center" className="has-text-centered"> <div className="team-image-hori" style={{"backgroundImage":"url("+team2image+")"}}></div> <span className="team-name-hori">{this.state.match.team1.name}</span> </td> <td width='104px;' align="center" className="has-text-centered"> <span className="odd-text-deaktop">x {this.state.match.match_bet[this.state.match.team2.id] && this.state.match.match_bet[this.state.match.team2.id].odds[this.state.match.team2.id]?this.state.match.match_bet[this.state.match.team2.id].odds[this.state.match.team2.id]:"1.00"}</span><br/> <BetButton pick_id={this.state.match.team2.id} definition={this.state.match.match_bet} /> </td> <td width='93px;'align="center" className="has-text-centered"> <Link to={`/match/${this.state.match.id}`}><div className="stream-icon-hori" style={{"backgroundImage": "url('/svg/stream icon.svg')"}}></div></Link> </td> </tr> </tbody> </table> </Link> </div>); } }<file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCsgoPlayerGameTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('csgo_player_game',function(Blueprint $table){ $table->integer('csgo_game_id'); $table->integer('player_id'); $table->integer('kills')->default(0); $table->integer('assists')->default(0); $table->integer('flash_assists')->default(0); $table->integer('deaths')->default(0); $table->double('kast')->default(0); $table->integer('kd_diff')->default(0); $table->double('adr')->default(0); $table->integer('fk_diff')->default(0); $table->double('rating')->default(0); $table->integer('team_id'); $table->primary(['csgo_game_id','player_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('csgo_player_game'); } } <file_sep><?php namespace App\Models; use App\Auth; use Illuminate\Database\Eloquent\Model; class Matches extends Model { protected $table = "matches"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; protected $dates = [ 'begins_at', 'modified_at' ]; public function bet_definitions(){ return $this->hasMany(BetDefinition::class,'match_id'); } public function main_bet_definition(){ return $this->hasOne(BetDefinition::class,'match_id')->where('type', 1); } public function series(){ return $this->belongsTo(Series::class,'series_id'); } public function tournament(){ return $this->belongsTo(Tournaments::class,'tournament_id'); } public function videogame(){ return $this->belongsTo(VideogamesIndex::class,'videogame_id'); } public function games(){ return $this->hasMany(Games::class,'match_id'); } public function odds(){ return $this->hasMany(CsgoMatchOdds::class,'match_id'); } public function streams(){ return $this->hasMany(MatchStream::class,'match_id'); } public function csgo_games(){ return $this->hasMany(CsgoGame::class,'match_id'); } public function team1(){ if(count($this->games) > 0){ return $this->csgo_games[0]->team1; } else return null; } public function team2(){ if(count($this->games) > 0){ return $this->csgo_games[0]->team2; } else return null; } public function isLive(){ return $this->status == "LIVE"?1:0; } public function matchScores(){ $out = []; if(count($this->csgo_games) > 1){ $tally = []; for($c=0; $c < count($this->csgo_games); $c++) { $game = $this->csgo_games[$c]; $team1 = $game->team_1_id; $team2 = $game->team_2_id; if(!isset($tally[$team1])) $tally[$team1] = 0; if(!isset($tally[$team2])) $tally[$team2] = 0; if($game->winner_id() != 0){ $tally[$game->winner_id()]++; } } $out = []; foreach($tally as $idx=>$val){ $out[] = ['id'=>$idx,'value'=>$val]; } } else if(count($this->csgo_games) > 0) { $team['id'] = $this->csgo_games[0]->team_1_id; $team['value'] = $this->csgo_games[0]->team_1_score; $out[] = $team; $team['id'] = $this->csgo_games[0]->team_2_id; $team['value'] = $this->csgo_games[0]->team_2_score; $out[] = $team; } return $out; } public function winner(){ static $winner = NULL; if($winner == NULL AND $winner_id = $this->winner_id) $winner = Teams::find($winner_id); return $winner; } public function getWinnerIdAttribute(){ $tally = []; foreach ($this->csgo_games as $game) if($game->winner_id() != 0) { if(array_key_exists($game->winner_id(), $tally)) $tally[$game->winner_id()]++; else $tally[$game->winner_id()] = 1; } if($tally) { arsort($tally); return array_keys($tally)[0]; } return 0; } } ?> <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateGamesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('games',function (Blueprint $table) { $table->increments('id'); $table->integer('position')->default(0); $table->integer('length')->default(0); $table->dateTime('begin_at')->nullable(); $table->dateTime('end_at')->nullable(); $table->integer('match_id')->default(0); $table->boolean('finished')->default(0); $table->integer('winner_id')->default(0); $table->string('winner_type',45)->nullable(); $table->boolean('draw')->default(0); $table->string('map_name',100)->nullable(); $table->integer('videogame_id')->nullable(); $table->string('slug')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('games'); } } <file_sep>const gulp = require('gulp'); const $ = require('gulp-load-plugins')(); const browserify = require('browserify'); const source = require('vinyl-source-stream'); const buffer = require('vinyl-buffer'); gulp.task('default', ['sass', 'js'], function() { gulp.watch(['./resources/assets/sass/**/*.scss', './resources/assets/sass/**/*.sass'], ['sass']); gulp.watch(['./resources/assets/js/**/*.js'], ['js']); }); gulp.task('sass', function() { return gulp.src('./resources/assets/sass/style.scss') .pipe( $.sass({ includePaths: './node_modules/', // outputStyle: 'compressed' }) .on('error', $.sass.logError) ) .pipe($.autoprefixer({ browsers: ['last 2 versions', 'ie >= 10'] })) .pipe(gulp.dest('./public/css/')); }); gulp.task('js', function() { return browserify('resources/assets/js/App.js', { debug: true // write own sourcemas }).transform('babelify', { presets: ["@babel/preset-env", "@babel/preset-react"] }) .bundle() .pipe(source('App.js')) .pipe(buffer()) // .pipe($.sourcemaps.init({ loadMaps: true })) // load browserify's sourcemaps // .pipe($.uglify()) // .pipe($.sourcemaps.write('.')) // write .map files near scripts .pipe($.concat('app.min.js')) .pipe(gulp.dest('./public/js/')); // // gulp.src([ // './resources/assets/js/extra/*.js', // './resources/assets/js/pages/**/*.js', // './resources/assets/js/App.js', // ]) // .pipe($.babel({ // presets: ['@babel/env', 'react'] // })) // .pipe($.concat('app.min.js')) // // .pipe($.uglify()) // .pipe(gulp.dest('./public/js/')) });<file_sep><?php namespace App\Console\Commands; use App\Models\CategoryIndex; use App\Models\Item; use App\Models\RarityIndex; use App\Models\TypeIndex; use App\Models\WearIndex; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class VgoItemIndex extends Command { protected $signature = 'store:vgoitemindex'; protected $description = 'fetches the vgo item from opskins and populates item_index and related tables'; public function handle(){ $contents = @file_get_contents(config('app.opskins_apitrade_url') . "/IItem/GetItems/v1/?key=" . config('app.opskins_api_key')); if($obj = @json_decode($contents,true) AND $obj['status'] == 1) { $items = Item::get()->keyBy('name'); foreach($obj['response']['items'] as $idx => $item){ foreach($item as $idx2=>$item2){ $name = $item2['name']; $category = $item2['category']; $rarity = $item2['rarity']; $type = $item2['type']; $color = $item2['color']; $image300 = $item2['image']['300px']; $image600 = $item2['image']['600px']; preg_match("/\((.*)\)/",$name,$matches); if(count($matches) > 0) $wear = $matches[1]; else $wear = ''; $cat = CategoryIndex::where('name',$category)->first(); if($cat == null){ $cat = new CategoryIndex(); $cat->name = $category; try { $cat->saveOrFail(); } catch(\Exception $e){ $this->line($e->getMessage()); } } $typer = TypeIndex::where('name',$type)->first(); if($typer == null) { $typer = new TypeIndex(); $typer->name = $type; try { $typer->saveOrFail(); } catch (\Exception $e) { $this->line($e->getMessage()); } } $rare = RarityIndex::where('name', $rarity)->first(); if ($rare == NULL && $rarity != "") { $rare = new RarityIndex(); $rare->name = $rarity; try { $rare->saveOrFail(); } catch (\Exception $e) { echo $e->getMessage(); } } $wearr = WearIndex::where('name',$wear)->first(); if($wearr== null && $wear != ""){ $wearr = new WearIndex(); $wearr->name = $wear; try { $wearr->saveOrFail(); } catch(\Exception $e){ $this->line($e->getMessage()); } } $itemr = $items->get($name); if($itemr == NULL) $itemr = new Item(); $itemr->fill([ 'name' => $name, 'hashname' => $name, 'app_id' => 1912, 'category_id' => $cat?$cat->id:0, 'wear_id' => $wearr?$wearr->id:0, 'rarity_id' => $rare?$rare->id:0, 'type_id' => $typer?$typer->id:0, 'image_300' => $image300, 'image_600' => $image600, 'market_url' => '', 'color' => $color, ]); try { $itemr->saveOrFail(); } catch (\Exception $e){ $this->line($e->getMessage()); } $this->line($name); } } } else { $this->line('Done'); } } }<file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Leagues extends Model { protected $table = "leagues"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; protected $dates = [ 'created_at', 'modified_at' ]; public function series(){ return $this->hasMany(Series::class,'league_id'); } } ?><file_sep><?php namespace App\Exceptions; use Exception; class CurlException extends Exception { // A normal exception except it comes from CURL }<file_sep><?php namespace App\Models; use App\Auth; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class BetDefinitionOpts extends Model { protected $table = "bet_definition_opts"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; protected $hidden = ['id', 'def_id', 'bets']; protected $appends = ['user_bets', 'user_bets_count', 'user_bets_credits', 'bets_count', 'bets_credits']; public function bets(){ return $this->hasMany(Bet::class, 'definition', 'def_id')->where('pick', $this->pick); } public function getActiveBetsAttribute(){ return $this->bets->whereStrict('status', Bet::STATUS_ACTIVE); } public function getOddsBetsAttribute(){ return $this->bets->whereInStrict('status', [Bet::STATUS_ACTIVE, Bet::STATUS_PAID]); } public function getUserBetsAttribute(){ if(Auth::check()) return $this->odds_bets->where('user_id', Auth::id()); return null; } public function getUserBetsCountAttribute(){ if(Auth::check()) return $this->user_bets->count(); return null; } public function getUserBetsCreditsAttribute(){ if(Auth::check()) return $this->user_bets->sum('amount'); return null; } public function getBetsCountAttribute(){ return $this->bets->count(); } public function getBetsCreditsAttribute(){ return $this->bets->sum('amount'); } } <file_sep>import React from 'react' import { Link } from 'react-router-dom' import local from '../../localization' export default class TeamMatchHistory extends React.Component { constructor(props){ super(props); } render(){ let rows = [] this.props.data.forEach((match, i) => { rows.push(<TeamMatchHistoryRow match={match} key={i} />) }) if (rows.length == 0) rows = (<div>{local.NO_MATCHES_FOUND}</div>) return ( <div className="white-box"> <div className="title">{this.props.title}</div> {rows} </div> ) } } class TeamMatchHistoryRow extends React.Component { constructor(props){ super(props); } render(){ return ( <Link to={`/match/${this.props.match.id}`} className="team-match"> <div className="columns is-mobile"> <div className="column"> <img src={this.props.match.team1.image} alt={this.props.match.team1.name} className="team-logo" /> <div className="team-name">{this.props.match.team1.name}</div> </div> <div className="column"> <div className="match-date">{moment.utc(this.props.match.begins_at).format("DD MMM YY")}</div> <div className="match-score">{this.props.match.score[0].value}:{this.props.match.score[1].value}</div> </div> <div className="column"> <img src={this.props.match.team2.image} alt={this.props.match.team2.name} className="team-logo" /> <div className="team-name">{this.props.match.team2.name}</div> </div> </div> </Link> ) } }<file_sep>import React from 'react' export class User { constructor() { this.status = 0; this.data = null; this.updateData = this.updateData.bind(this); } updateData(key, value) { let old = this.data; old[key] = value; this.data = old; } refresh(callback) { fetch("/api/User/GetUser", { method: "GET" }).then(result => { return result.json() }).then(data => { this.status = data.status; if(data.status === 1) { this.data = data.response.user; callback(true); } else if(data.status === 100) { callback(false); } else { callback(false); } }).catch(error => { console.log("USER: ERROR (CATCH) " + error); callback(false); }); } } export const UserContext = React.createContext({});<file_sep><?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class PriceUpdate extends Command { protected $signature = 'store:price-update'; protected $description = 'Update prices from OPSkins'; private static function remove_outliers($dataset, $magnitude = 1) { $count = count($dataset); $mean = array_sum($dataset) / $count; // Calculate the mean $deviation = sqrt(array_sum(array_map('self::sd_square', $dataset, array_fill(0, $count, $mean))) / $count) * $magnitude; // Calculate standard deviation and times by magnitude return array_filter($dataset, function($x) use ($mean, $deviation) { return ($x <= $mean + $deviation && $x >= $mean - $deviation); }); // Return filtered array of values that lie within $mean +- $deviation. } private static function sd_square($x, $mean) { return pow($x - $mean, 2); } public function handle() { // before we get the price list, get the lowest listed prices of all items and store in an array $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => config('app.opskins_api_url') . "/IPricing/GetAllLowestListPrices/v1/?appid=1912", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( 'authorization: Basic ' . base64_encode(config('app.opskins_api_key') . ':'), ) )); $lowest_data = curl_exec($curl); $lowest_err = curl_error($curl); #print_r(curl_getinfo($curl)); curl_close($curl); $lowest_data = json_decode($lowest_data, true); // now we get the price list $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => config('app.opskins_api_url') . "/IPricing/GetPriceList/v2/?appid=1912", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => "GET" )); $price_data = curl_exec($curl); $price_err = curl_error($curl); #print_r(curl_getinfo($curl)); curl_close($curl); $price_data = json_decode($price_data, true); if ($price_data['status'] == 1) { if ($price_data['time'] < 1000) { $price_data['time'] = strtotime(date("Ymd")); } foreach ($price_data['response'] as $name => $data) { $skip = 0; if (empty($name)) { $skip = 1; } if ($skip == 0) { $data = array_slice($data, -7, 7, true); $means = array(); $total = 0; foreach ($data as $day) { $total = $total + $day['normalized_mean']; $means[] = $day['normalized_mean']; } $means = self::remove_outliers($means, 1); $total = 0; foreach ($means as $mean) { $total += $mean; } $price = $total / count($means); // compare with lowest listed, if lower then use it if($lowest_data['status'] == 1 && array_key_exists($name, $lowest_data['response'])) { if ( $lowest_data['response'][$name]['price'] > 0 && $lowest_data['response'][$name]['price'] < $price ) { $price = $lowest_data['response'][$name]['price']; } } if ($price < 2) { $price = 2; } // uncomment this if we're storing as decimal $price = number_format($price / 100, 2, '.', ''); DB::table('item_index') ->where('name', $name) ->update(['suggested_price' => $price]); echo $name . " - $" . $price . "\n"; } } } else { } } }<file_sep><?php namespace App\Console\Commands; use App\Models\Matches; use App\Models\Teams; use App\Models\BetTemplate; use App\Models\BetDefinition; use App\Models\BetDefinitionOpts; use Carbon\CarbonInterval; use Illuminate\Console\Command; class CreateDefinitions extends Command { protected $signature = 'store:bet-definitions'; protected $description = 'Create bet definitions for upcoming bets'; public function handle() { $upcoming = Matches::with('csgo_games')->doesntHave('bet_definitions')->where('begins_at', '>=', date('Y-m-d H:i:s'))->orderBy('begins_at', 'ASC')->get(); foreach($upcoming as $match) { dump('Match ID: ' . $match->id); $bet_templates = BetTemplate::where('videogame_id', $match['videogame_id'])->get(); if(count($match['csgo_games']) <= 0) { dump('csgo_games is empty?'); continue; } $teams = Teams::with('teamMembers')->where('id', $match['csgo_games'][0]['team_1_id'])->orWhere('id', $match['csgo_games'][0]['team_2_id'])->get()->toArray(); $players = []; if(!empty($teams[0]['team_members']) && !empty($teams[1]['team_members'])) { $players = array_merge($teams[0]['team_members'], $teams[1]['team_members']); } // cycle through each template foreach($bet_templates as $bet_template) { // check how many maps this template needs to apply, if too few maps then we skip it. if((int)$match->number_of_games < $bet_template->minmaps) { continue; } $maps = 1; $maps_min = ceil((int)$match->number_of_games / 2); // check if this template applies per map if($bet_template->permap == 1) { if((int)$match->number_of_games > 0) { $maps = (int)$match->number_of_games; // check if best of is odd, if it is we don't want to accept bets on games that might not be played. // BO1 = 1, BO3 = 2, BO5 = 3, BO7 = 4 etc if((int)$match->number_of_games & 1) { $maps = $maps_min; } } } // for now cap at 4 max if($maps > 4) { $maps = 4; } for($i = 1; $i <= $maps; $i++) { switch($bet_template->type) { case 1: $desc = "Who will win?"; $order = 0; $options = []; foreach($teams as $team) { $options[] = [ 'pick' => $team['id'], 'desc' => $team['name'] ]; } break; case 2: $desc = "Who will win map $i?"; $order = $i; $options = []; foreach($teams as $team) { $options[] = [ 'pick' => $team['id'], 'desc' => $team['name'] ]; } break; case 3: $desc = "When will the bomb be planted for the first time on Map $i?"; $order = $i; $options = [ [ 'pick' => 1, 'desc' => 'In the 1st round.' ], [ 'pick' => 2, 'desc' => 'In the 2nd round.' ], [ 'pick' => 3, 'desc' => 'In the 3rd round.' ], [ 'pick' => 4, 'desc' => 'In the 4th round.' ], [ 'pick' => 5, 'desc' => 'In any of the following rounds.' ] ]; break; case 4: $desc = "Total Maps played"; $order = (int)$match->number_of_games + 1; $options = []; for($g = $maps_min; $g <= (int)$match->number_of_games; $g++) { $options[] = [ 'pick' => $g, 'desc' => $g ]; } break; case 5: $desc = "When will the first AWP frag happen on Map $i?"; $order = $i; $options = [ [ 'pick' => 3, 'desc' => 'In the 3rd round.' ], [ 'pick' => 4, 'desc' => 'In the 4th round.' ], [ 'pick' => 5, 'desc' => 'In the 5th round.' ], [ 'pick' => 6, 'desc' => 'In any other round.' ] ]; break; case 6: $desc = "Who will be first to get a kill?"; $order = (int)$match->number_of_games + 1; $options = []; foreach($players as $player) { $options[] = [ 'pick' => $player['id'], 'desc' => $player['first_name'] . ' "' . $player['name'] . '" ' . $player['last_name'] ]; } break; case 7: $desc = "Who will be first to die?"; $order = (int)$match->number_of_games + 1; $options = []; foreach($players as $player) { $options[] = [ 'pick' => $player['id'], 'desc' => $player['first_name'] . ' "' . $player['name'] . '" ' . $player['last_name'] ]; } break; default: $desc = null; $order = 0; $options = []; } if(!empty($options)) { $def_id = BetDefinition::create( [ 'match_id' => $match->id, 'status' => 1, 'type' => $bet_template->type, 'desc' => $desc, 'opens_at' => $match->begins_at->sub(CarbonInterval::fromString($bet_template->opens_before)), 'closes_at' => $match->begins_at, 'order' => $order ] )->id; // now we put the options into bet_definition_opts if((int)$def_id > 0) { foreach($options as $opt) { BetDefinitionOpts::create( [ 'def_id' => (int)$def_id, 'pick' => $opt['pick'], 'desc' => $opt['desc'] ] ); } } } } } } } }<file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Tournaments extends Model { protected $table = "tournaments"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; public function league(){ return $this->belongsTo(Leagues::class,'league_id'); } public function series(){ return $this->belongsTo(Series::class,'series_id'); } public function matches(){ return $this->hasMany(Matches::class,'tournament_id'); } public function winner(){ if($this->winner_type == "player") return $this->belongsTo(Players::class,'winner_id'); else return $this->belongsTo(Teams::class,'winner_id'); } } ?><file_sep><?php namespace App\Http\Controllers; use App\Auth; use App\Betting; use App\Events\BetCanceledEvent; use App\Events\BetPlacedEvent; use App\Models\Bet; use App\StatusCode; use Illuminate\Http\Request; class BetController extends Controller { /** * Get bet by ID * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function GetBet(Request $request) { $this->validate($request, [ 'id' => 'required|int', ]); $bet = Bet::find((int)$request->input('id')); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['bet' => $bet->toArray()] ] ); } /** * Place a bet * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function PlaceBet(Request $request) { if(Auth::check()) { $this->validate($request, [ 'definition' => 'required|int', 'amount' => 'required|int', 'pick' => 'int', ]); $req = Betting::place( (int)$request->input('definition'), Auth::id(), (int)$request->input('amount'), (int)$request->input('pick') ); if((int)$req > 0) { $bet = Bet::find((int)$req); event(new BetPlacedEvent($bet)); return response()->json( [ 'status' => StatusCode::OK, 'response' => [ 'bet' => $bet->toArray(), 'credits' => Auth::user()->credits ] ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Error.' ] ); } } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Not authenticated.' ] ); } } /** * Cancel a bet * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function CancelBet(Request $request) { if(Auth::check()) { $this->validate($request, [ 'bet_id' => 'required|int', ]); $req = Betting::cancel( (int)$request->input('bet_id'), Auth::id() ); if((int)$req > 0) { $bet = Bet::find((int)$req); event(new BetCanceledEvent($bet)); return response()->json( [ 'status' => StatusCode::OK, 'response' => [ 'bet' => $bet->toArray(), 'credits' => Auth::user()->credits ] ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Error.' ] ); } } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Not authenticated.' ] ); } } /** * Edit a bet * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function EditBet(Request $request) { if(Auth::check()) { $this->validate($request, [ 'bet_id' => 'required|int', 'amount' => 'int', 'pick' => 'int', ]); $amount = null; $pick = null; if($request->input('amount')) $amount = (int)$request->input('amount'); if($request->input('pick')) $pick = (int)$request->input('pick'); $req = Betting::edit( (int)$request->input('bet_id'), Auth::id(), $amount, $pick ); if((int)$req > 0) { $bet = Bet::find((int)$req); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['bet' => $bet->toArray()] ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Error.' ] ); } } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Not authenticated.' ] ); } } } <file_sep><?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It is a breeze. Simply tell Lumen the URIs it should respond to | and give it the Closure to call when that URI is requested. | */ $router->get('/', [ 'as' => 'home', 'uses' => 'HomeController@index' ]); $router->get('/about', [ 'as' => 'home', 'uses' => 'HomeController@index' ]); $router->get('/upcoming', [ 'as' => 'home', 'uses' => 'HomeController@index' ]); $router->get('/pastmatches', [ 'as' => 'home', 'uses' => 'HomeController@index' ]); $router->get('/match/{id}', [ 'as' => 'home', 'uses' => 'HomeController@index' ]); $router->group(['prefix' => 'account', 'middleware' => 'auth'], function() use ($router) { $router->get('/', ['as' => 'home', 'uses' => 'HomeController@index']); $router->get('/bets', ['as' => 'home', 'uses' => 'HomeController@index']); $router->get('/transactions', ['as' => 'home', 'uses' => 'HomeController@index']); $router->get('/deposit', ['as' => 'home', 'uses' => 'HomeController@index']); $router->get('/pending', ['as' => 'home', 'uses' => 'HomeController@index']); }); $router->get('/store', [ 'as' => 'home', 'uses' => 'HomeController@index' ]); $router->get('/login', [ 'as' => 'login', 'middleware' => 'guest', 'uses' => 'LoginController@login' ]); $router->get('/logout', [ 'as' => 'logout', 'uses' => 'LoginController@logout' ]); $router->get('/team_logo/{team_id}', [ 'as' => 'team_logo', 'uses' => 'HomeController@team_logo' ]); $router->group(['prefix' => 'api'], function() use ($router) { $router->group(['prefix' => 'Trade'], function() use ($router) { $router->get('/GetUserPending', ['middleware' => 'auth_api', 'uses' => 'TradeController@GetUserPending']); $router->get('/GetUserItems', ['middleware' => 'auth_api', 'uses' => 'TradeController@GetUserItems']); $router->get('/GetSiteItems', ['uses' => 'TradeController@GetSiteItems']); $router->post('/ItemDeposit', ['middleware' => 'auth_api', 'uses' => 'TradeController@ItemDeposit']); $router->post('/ItemWithdraw', ['middleware' => 'auth_api', 'uses' => 'TradeController@ItemWithdraw']); $router->get('/CheckOffers', ['middleware' => 'admin', 'uses' => 'TradeController@CheckOffers']); }); $router->group(['prefix' => 'Store'], function() use ($router) { $router->post('/BuyItem', ['middleware' => 'auth_api', 'uses' => 'StoreController@BuyItem']); }); $router->group(['prefix' => 'Bet', 'middleware' => 'auth_api'], function() use ($router) { $router->get('/GetBet', ['uses' => 'BetController@GetBet']); $router->post('/PlaceBet', ['uses' => 'BetController@PlaceBet']); //$router->post('/CancelBet', ['middleware' => 'admin', 'uses' => 'BetController@CancelBet']); //$router->post('/EditBet', ['middleware' => 'admin', 'uses' => 'BetController@EditBet']); }); $router->group(['prefix' => 'User'], function() use ($router) { $router->get('/GetUser', ['uses' => 'UserController@GetUser']); $router->get('/GetBalance', ['middleware' => 'auth_api', 'uses' => 'UserController@GetBalance']); $router->get('/GetTransactions', ['middleware' => 'auth_api', 'uses' => 'UserController@GetTransactions']); $router->get('/GetBets', ['middleware' => 'auth_api', 'uses' => 'UserController@GetBets']); $router->post('/UpdateTradeLink', ['middleware' => 'auth_api', 'uses' => 'UserController@UpdateTradeLink']); $router->get('/EditCredits', ['middleware' => 'admin', 'uses' => 'UserController@EditCredits']); }); $router->group(['prefix' => 'Matches'], function() use ($router) { $router->get('/UpcomingMatches',['uses'=>'MatchesController@GetUpcomingMatches']); $router->get('/PastMatches', ['uses' => 'MatchesController@GetPastMatches']); $router->get('/LiveMatches',['uses'=>'MatchesController@GetLiveMatches']); $router->get('/GetMatchDetails', ['uses' => 'MatchesController@GetMatchDetails']); $router->get('/GetScoreCard', ['uses' => 'MatchesController@GetScoreCard']); $router->get('/GetBettingData', ['uses' => 'MatchesController@GetBettingData']); }); }); $router->group(['prefix' => 'dashboard', 'middleware' => 'admin'], function() use ($router) { $router->get('/',[ 'uses'=>'AdminController@index', 'as' => 'admin' ]); $router->get('/inventory',[ 'uses'=>'AdminController@inventory', 'as' => 'admin.inventory' ]); $router->group(['prefix' => 'settings'], function() use ($router) { $router->get('/', [ 'uses' => 'AdminController@settings', 'as' => 'admin.settings' ]); $router->post('/save', [ 'uses' => 'AdminController@settingsSave', 'as' => 'admin.settings.save' ]); }); $router->group(['prefix' => 'users'], function() use ($router) { $router->get('/', [ 'uses' => 'AdminController@users', 'as' => 'admin.users' ]); $router->post('/filter', [ 'uses' => 'AdminController@usersFilter', 'as' => 'admin.users.filter' ]); $router->post('/save', [ 'uses' => 'AdminController@usersSave', 'as' => 'admin.users.save' ]); }); $router->group(['prefix' => 'bet-templates'], function() use ($router) { $router->get('/', [ 'uses' => 'AdminController@betTemplates', 'as' => 'admin.bet-templates' ]); $router->post('/filter', [ 'uses' => 'AdminController@betTemplatesFilter', 'as' => 'admin.bet-templates.filter' ]); $router->post('/save', [ 'uses' => 'AdminController@betTemplatesSave', 'as' => 'admin.bet-templates.save' ]); }); $router->group(['prefix' => 'matches'], function() use ($router) { $router->get('/', [ 'uses' => 'AdminController@matches', 'as' => 'admin.matches' ]); $router->post('/filter', [ 'uses' => 'AdminController@matchesFilter', 'as' => 'admin.matches.filter' ]); $router->post('/save', [ 'uses' => 'AdminController@matchesSave', 'as' => 'admin.matches.save' ]); $router->post('/return', [ 'uses' => 'AdminController@matchesReturnBets', 'as' => 'admin.matches.return' ]); }); $router->get('transactions-{type:deposit|withdraw}', [ 'uses' => 'AdminController@transactions', 'as' => 'admin.transactions' ]); $router->post('transactions/filter', [ 'uses' => 'AdminController@transactionsFilter', 'as' => 'admin.transactions.filter' ]); }); <file_sep><?php namespace App; use App\Events\UserDepositItemsEvent; use App\Events\UserWithdrawItemsEvent; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use lfkeitel\phptotp\Totp; use lfkeitel\phptotp\Base32; use App\Models\Item; use App\Models\Transaction; class Trade { public static $app_id = 1; /** * call inventory and cycle through each and every page * @param int $uid * @param int $app_id * @param string $search * @param int $page * @return array|bool */ private static function cycleInventory($uid, $app_id = null, $search = null, $page = 1) { if(empty($app_id)) $app_id = self::$app_id; $items = array(); if((int)$uid <= 0 || (int)$app_id <= 0) { return false; } $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => config('app.opskins_apitrade_url') . "/ITrade/GetUserInventory/v1/?uid=" . (int)$uid . '&app_id=' . (int)$app_id . '&per_page=500&page=' . (int)$page . (!empty($search) ? '&search=' . $search : null), CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 30, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( 'authorization: Basic ' . base64_encode(config('app.opskins_api_key') . ':'), ), )); $curl_data = curl_exec($curl); #$curl_err = curl_error($curl); curl_close($curl); $curl_data = json_decode($curl_data, true); if ($curl_data['status'] == 1) { $items = array_merge($items,$curl_data['response']['items']); if($curl_data['current_page'] < $curl_data['total_pages']) { $items = array_merge($items,self::cycleInventory($uid, $app_id, $search, ($page + 1))); } } return $items; } /** * return list of items in users inventory * @param int $uid * @param int $app_id * @param string $search * @return array */ public static function getUserItems($uid, $app_id = null, $search = null) { if(empty($app_id)) $app_id = self::$app_id; $inventory = self::cycleInventory((int)$uid, $app_id, $search); $items = array(); foreach($inventory as $item) { $items[$item['id']] = $item; $credits = (int)(Item::where('name', $item['name'])->pluck('suggested_price')->first() * 100); if((int)$credits == 0) { $credits = $item['suggested_price_floor']; } $items[$item['id']]['credits'] = $credits; } return $items; } /** * return list of items pending withdrawal * @param $uid * @param null $app_id * @param null $search * @return array */ public static function getUserPending($uid, $app_id = null, $search = null) { if(empty($app_id)) $app_id = self::$app_id; $inventory = self::cycleInventory(config('app.opskins_uid'), $app_id, $search); // get array of reserved item IDs $pending = DB::table('trade_withdraw_reserve')->select('id')->where('user_id', (int)$uid)->pluck('id')->toArray(); $items = array(); foreach($inventory as $item) { if(in_array($item['id'], $pending)) { $items[$item['id']] = $item; $credits = (int)(Item::where('name', $item['name'])->pluck('suggested_price')->first() * 100); if((int)$credits == 0) { $credits = $item['suggested_price_floor']; } $items[$item['id']]['credits'] = $credits; $offer = DB::table('trade_offer_log')->where('uid', (int)$uid)->where('items_withdraw', (int)$item['id'])->orderBy('id', 'desc')->first(); $items[$item['id']]['offer'] = $offer; } } return $items; } /** * return list of items in site inventory (excluding reserved) * @param int $app_id * @param string $search * @return array */ public static function getSiteItems($app_id = null, $search = null) { if(empty($app_id)) $app_id = self::$app_id; $inventory = self::cycleInventory(config('app.opskins_uid'), $app_id, $search); // get array of reserved item IDs $reserved = DB::table('trade_withdraw_reserve')->select('id')->pluck('id')->toArray(); $items = array(); foreach($inventory as $item) { if(!in_array($item['id'], $reserved)) { $items[$item['id']] = $item; $credits = (int)(Item::where('name', $item['name'])->pluck('suggested_price')->first() * 100); if((int)$credits == 0) { $credits = $item['suggested_price_floor']; } $items[$item['id']]['credits'] = $credits; } } return $items; } /** * send trade offer to user * @param int $uid * @param string $token * @param array $items_withdraw * @param array $items_deposit * @param string $message * @return int|bool * @throws \Exception */ public static function sendTradeOffer($uid, $token, $items_withdraw = array(), $items_deposit = array(), $message = null) { if((int)$uid <= 0 || empty($token) || (empty($items_withdraw) && empty($items_deposit))) { Log::info("sendTradeOffer: empty vars"); return false; } if(!is_array($items_withdraw)) $items_withdraw = array(); if(!is_array($items_deposit)) $items_deposit = array(); // ensure that there are no duplicate item IDs $items_withdraw = array_unique($items_withdraw); $items_deposit = array_unique($items_deposit); // check for duplicates between the two $dupes = array_intersect($items_withdraw, $items_deposit); if(count($dupes) > 0) { Log::info("sendTradeOffer: dupes"); return false; } if(!empty($items_deposit)) { // We need to make sure that we don't send items when we are only requesting // So we pull the users inventory and make sure that each item ID we are requesting exists $inventory_items = array_column(self::getUserItems($uid, self::$app_id), 'id'); // if the number of matches between the two arrays is less than the number of items we are requesting then something isn't right. if(count(array_intersect($items_deposit, $inventory_items)) != count($items_deposit)) { Log::info("sendTradeOffer: deposit unavailable"); return false; } } if(!empty($items_withdraw)) { // Ensure we still have the items we are sending // So we pull our inventory and make sure that each item ID we are sending exists $inventory_items = array_column(self::getUserItems(config('app.opskins_uid'), self::$app_id), 'id'); // get array of reserved item IDs and remove them from $inventory_items $reserved = DB::table('trade_withdraw_reserve')->select('id')->where('user_id', '!=', (int)$uid)->pluck('id')->toArray(); $available = array_diff($inventory_items, $reserved); // if the number of matches between the two arrays is less than the number of items we are sending then something isn't right. if(count(array_intersect($items_withdraw, $available)) != count($items_withdraw)) { Log::info("sendTradeOffer: withdraw unavailable"); return false; } } // form trade offer $items_withdraw_csv = implode(',', $items_withdraw); $items_deposit_csv = implode(',', $items_deposit); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => config('app.opskins_apitrade_url') . "/ITrade/SendOffer/v1/", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POST => true, CURLOPT_POSTFIELDS => 'uid=' . (int)$uid . '&token=' . $token . ($items_withdraw_csv != '' ? '&items_to_send=' . $items_withdraw_csv : '') . ($items_deposit_csv != '' ? '&items_to_receive=' . $items_deposit_csv : '') . '&twofactor_code=' . (new Totp())->GenerateToken(Base32::decode(config('app.opskins_totp_secret'))) . (!empty($message) ? '&message=' . $message : null), CURLOPT_HTTPHEADER => array( 'content-type: application/x-www-form-urlencoded', 'authorization: Basic ' . base64_encode(config('app.opskins_api_key') . ':'), ), )); curl_setopt($curl, CURLOPT_VERBOSE, true); $curl_data = curl_exec($curl); #$curl_err = curl_error($curl); #print_r(curl_getinfo($curl)); #print_r(json_encode(json_decode($curl_data), JSON_PRETTY_PRINT)); curl_close($curl); $curl_data = json_decode($curl_data, true); if($curl_data['status'] == 1) { $offer = $curl_data['response']['offer']; if((int)$offer['id'] > 0) { // log sent trade offer DB::table('trade_offer_log')->insert( [ 'id' => $offer['id'], 'uid' => $uid, 'items_deposit' => $items_deposit_csv, 'items_withdraw' => $items_withdraw_csv, 'time_created' => $offer['time_created'], 'time_expires' => $offer['time_expires'] ] ); return $offer['id']; } } else { // if offer fails and is a withdrawal, we need to remove reservations if(!empty($items_withdraw)) { $unreserve = DB::table('trade_withdraw_reserve'); $i = 0; foreach($items_withdraw as $item) { if ($i == 0) { $unreserve->where('id', '=', $item); } else { $unreserve->orWhere('id', '=', $item); } $i++; } $unreserve->delete(); } } Log::info("sendTradeOffer:\n"); Log::info($curl_data); return false; } /** * process accepted offer * @param int $offer_id * @return int */ private static function offerAccepted($offer_id) { $return = 0; if((int)$offer_id > 0 && DB::table('trade_offer_log')->select('status')->where('id', '=', $offer_id)->value('status') == 1) { // get data $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => config('app.opskins_apitrade_url') . "/ITrade/GetOffer/v1/?offer_id=" . (int)$offer_id, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( 'authorization: Basic ' . base64_encode(config('app.opskins_api_key') . ':'), ), )); $curl_data = curl_exec($curl); #$curl_err = curl_error($curl); #print_r(curl_getinfo($curl)); #print_r(json_encode(json_decode($curl_data), JSON_PRETTY_PRINT)); curl_close($curl); $curl_data = json_decode($curl_data, true); if($curl_data['status'] == 1) { $offer = $curl_data['response']['offer']; if((int)$offer['id'] > 0) { // process deposits $items_log = array(); $items_array = array(); $credits = 0; if(!empty($curl_data['response']['offer']['recipient']['items'])) { // cycle through the items in the offer to get data and prices foreach($curl_data['response']['offer']['recipient']['items'] as $item) { // get our price for this item $price = (DB::table('item_index')->select('suggested_price')->where('name', '=', $item['name'])->value('suggested_price') * 100); if((int)$price == 0) { $price = $item['suggested_price']; } $credits += $price; $items_log[] = array( 'user_id' => (int)$curl_data['response']['offer']['recipient']['uid'], 'offer_id' => (int)$offer['id'], 'item_id' => (int)$item['id'], 'sku' => (int)$item['sku'], 'wear' => $item['wear'], 'pattern_index' => (int)$item['pattern_index'], 'name' => $item['name'], 'price_at_time' => $price ); $items_array[] = (int)$item['id']; } if(!empty($items_log)) { // log deposited items DB::table('trade_deposit')->insert( $items_log ); // update users credits DB::table('users')->where('id', '=', (int)$curl_data['response']['offer']['recipient']['uid'])->increment('credits', (int)$credits); // log transaction $log = new Transaction; $log->user_id = (int)$curl_data['response']['offer']['recipient']['uid']; $log->type = Transaction::TYPE_ITEM_DEPOSIT; $log->offer = (int)$offer['id']; $log->items = implode(',', $items_array); $log->credits = (int)$credits; $log->save(); event(new UserDepositItemsEvent($log)); } } // process withdraws $items_log = array(); $items_array = array(); $credits = 0; if(!empty($curl_data['response']['offer']['sender']['items'])) { // cycle through the items in the offer to get data and prices foreach($curl_data['response']['offer']['sender']['items'] as $item) { // get our price for this item $price = (DB::table('item_index')->select('suggested_price')->where('name', '=', $item['name'])->value('suggested_price') * 100); if((int)$price == 0) { $price = $item['suggested_price']; } $credits += $price; $items_log[] = array( 'user_id' => (int)$curl_data['response']['offer']['recipient']['uid'], 'offer_id' => (int)$offer['id'], 'item_id' => (int)$item['id'], 'sku' => (int)$item['sku'], 'wear' => $item['wear'], 'pattern_index' => (int)$item['pattern_index'], 'name' => $item['name'], 'price_at_time' => $price ); $items_array[] = (int)$item['id']; } if(!empty($items_log)) { // log withdrawn items DB::table('trade_withdraw')->insert( $items_log ); // log transaction $log = new Transaction; $log->user_id = (int)$curl_data['response']['offer']['recipient']['uid']; $log->type = Transaction::TYPE_ITEM_WITHDRAW; $log->offer = (int)$offer['id']; $log->items = implode(',', $items_array); $log->save(); event(new UserWithdrawItemsEvent($log)); } } // update trade offer log DB::table('trade_offer_log') ->where('id', $offer_id) ->update(['status' => 2]); $return = 2; } } } return $return; } /** * set non-active offer as status 0 * @param $offer_id * @return bool */ private static function offerDeclined($offer_id) { if((int)$offer_id > 0 && DB::table('trade_offer_log')->select('status')->where('id', '=', $offer_id)->value('status') == 1) { DB::table('trade_offer_log') ->where('id', $offer_id) ->update(['status' => 0]); return true; } return false; } /** * check offer states * @return bool */ public static function checkOffers() { Log::info("Checking offers"); $page = 1; // get list of active offers we want to check $offers = DB::table('trade_offer_log')->select('id')->where('status', '=', 1)->orderBy('id', 'asc')->get()->toArray(); if(!empty($offers)) { $ids = array(); foreach($offers as $id) { $ids[] = $id->id; } $ids = array_unique($ids); $ids = implode(',',$ids); do { Log::info(config('app.opskins_apitrade_url') . "/ITrade/GetOffers/v1/?type=sent" . (!empty($ids) ? '&ids=' . $ids : null) . "&page=" . $page . "&key=HIDDEN"); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => config('app.opskins_apitrade_url') . "/ITrade/GetOffers/v1/?type=sent" . (!empty($ids) ? '&ids=' . $ids : null) . "&page=" . $page . "&key=" . config('app.opskins_api_key'), CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => "GET", )); $curl_data = curl_exec($curl); #$curl_err = curl_error($curl); #print_r(curl_getinfo($curl)); #print_r(json_encode(json_decode($curl_data), JSON_PRETTY_PRINT)); curl_close($curl); $curl_data = json_decode($curl_data, true); if ($curl_data['status'] == 1) { // $curl_data['response']['total'] foreach($curl_data['response']['offers'] as $offer) { if($offer['state'] != 2 && DB::table('trade_offer_log')->select('status')->where('id', '=', $offer['id'])->value('status') == 1) { if($offer['state'] == 3) { self::offerAccepted($offer['id']); // if this is a withdrawal we need to remove item reservations if(!empty($offer['sender']['items']) && empty($offer['recipient']['items'])) { $unreserve = DB::table('trade_withdraw_reserve'); $i = 0; foreach($offer['sender']['items'] as $item) { if ($i == 0) { $unreserve->where('id', '=', $item['id']); } else { $unreserve->orWhere('id', '=', $item['id']); } $i++; } $unreserve->delete(); } } else { self::offerDeclined($offer['id']); } } } $page = (int)$curl_data['current_page'] + 1; } } while ((int)$curl_data['current_page'] < (int)$curl_data['total_pages'] || (int)$curl_data['current_page'] == 0 || (int)$curl_data['total_pages'] == 0); return true; } return false; } } <file_sep><?php namespace App\Traits; use ReflectionClass; /** * Class Flaggable * Only works if the object has a "flags" property. * @package Core\Traits */ trait Flaggable { /** * @return array Keys are flag numbers, values are names */ public static function getAvailableFlags() { $reflection = new ReflectionClass(__CLASS__); $consts = $reflection->getConstants(); $flags = []; foreach ($consts as $name => $value) { if (strpos($name, 'FLAG_') === 0) { $flags[$value] = substr($name, 5); } } return $flags; } public static function getEditableStatus($onlyEditable = true){ $arr = []; $flags = self::getAvailableFlags(); foreach ($flags as $flag => $name){ if (self::canEditFlag($flag) == $onlyEditable) { $arr[$flag] = $name; } } return $arr; } public static function canEditFlag($flag){ if(empty(self::$uneditableFlags)){ return true; } if(in_array($flag, self::$uneditableFlags)) { return false; } return true; } /** * @param int $flag * @return bool */ public function hasFlag($flag) { return ($this->_getFlags() & $flag) == $flag; } /** * @param int $flag * @return bool false if we already had the flag */ public function addFlag($flag) { if(!isset($this->flags)){ $this->flags = 0; } if ($this->hasFlag($flag)) { return false; } $this->flags |= $flag; return true; } /** * @param int $flag * @return bool false if we didn't have the flag */ public function removeFlag($flag) { if (!$this->hasFlag($flag)) { return false; } $this->flags &= ~$flag; return true; } /** * If we have a flag, removes it. If we don't, adds it. * @param int $flag * @return bool true if we added the flag, false if we removed it */ public function changeFlag($flag) { if (!$this->hasFlag($flag)) { $this->addFlag($flag); return true; } else { $this->removeFlag($flag); return false; } } /** * Alias of changeFlag * @param int $flag * @return bool true if we added the flag, false if we removed it */ public function flipFlag($flag) { return $this->changeFlag($flag); } /** * Set a flag to a specific state. * @param int $flag * @param bool $on * @return bool true if the flag changed, false if not */ public function setFlag($flag, $on) { if ($on) { return $this->addFlag($flag); } else { return $this->removeFlag($flag); } } /** * @return array Flags we have, in no particular order, with keys being flag ints and values being string names (without FLAG_). */ public function getFlags() { $flags = static::getAvailableFlags(); $myFlags = []; foreach ($flags as $flag => $name) { if ($this->hasFlag($flag)) { $myFlags[$flag] = $name; } } return $myFlags; } private function _getFlags() { return (int) $this->flags; } } <file_sep><?php namespace App\Events; use App\Models\SiteEvent; use App\Models\Transaction; class UserDepositItemsEvent extends Event { public $transaction; /** * Create a new event instance. * * @param Transaction $transaction */ public function __construct(Transaction $transaction) { $this->transaction = $transaction; SiteEvent::insert([ 'event_type' => substr(strrchr(__CLASS__, "\\"), 1), 'event_id' => $transaction->id, 'by_user' => $transaction->user_id ]); } } <file_sep><?php namespace App\Http\Controllers; use App\Auth; use App\Models\User; use App\Models\Transaction; use App\Models\Bet; use App\StatusCode; use Carbon\Carbon; use Illuminate\Support\Facades\DB; use Illuminate\Http\Request; class UserController extends Controller { /** * Get details of a user * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function GetUser(Request $request) { $this->validate($request, [ 'id' => 'int', ]); $user = false; if((int)$request->input('id') > 0) { $user = User::find((int)$request->input('id'))->toArray(); } elseif(Auth::check()) { $user = Auth::user()->toArray(); $user['stats']['earnings_today'] = 0; $user['stats']['betrecord_today'] = null; $user['stats']['betlargest_today'] = 0; $earnings_today = Transaction::where('user_id', Auth::id())->where('timestamp', '>', Carbon::today())->where('type', Transaction::TYPE_BET_PAYOUT)->orderBy('credits', 'desc')->pluck('credits')->first(); if($earnings_today) { $user['stats']['betrecord_today'] = $earnings_today; } $betrecord_today = Bet::where('user_id', Auth::id())->where('created_at', '>', Carbon::today())->orderBy('odds', 'desc')->pluck('odds')->first(); if($betrecord_today) { $user['stats']['betrecord_today'] = $betrecord_today; } $betlargest_today = Bet::where('user_id', Auth::id())->where('created_at', '>', Carbon::today())->orderBy('amount', 'desc')->pluck('amount')->first(); if($betlargest_today) { $user['stats']['betlargest_today'] = $betlargest_today; } } if($user) { return response()->json( [ 'status' => StatusCode::OK, 'response' => ['user' => $user] ] ); } else { if((int)$request->input('id') > 0) { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Not found.' ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Not authenticated.' ] ); } } } /** * Gets current credit balance * @param Request $request * @return \Illuminate\Http\JsonResponse */ public function GetBalance(Request $request) { $user = Auth::user(); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['balance' => (int)$user->credits] ] ); } /** * Get authenticated users transactions * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function GetTransactions(Request $request) { $this->validate($request, [ 'filter' => 'int', 'perpage' => 'int', 'page' => 'int' ]); $page = (int)$request->input('page', 1); $limit = (int)$request->input('perpage', 5); $offset = $limit * ($page-1); if((int)$request->input('filter') > 0) { $types = []; switch ((int)$request->input('filter')) { case 1: // Deposits $types = array(1); break; case 2: // Withdrawals $types = array(2); break; case 3: // Purchases $types = array(3,4); break; case 4: // Bets $types = array(5,6,7); break; case 5: // ? $types = array(8,9); break; default: } if(count($types) > 0) { $total = Transaction::where('user_id', Auth::id())->whereIn('type', $types)->orderBy('id', 'desc')->count(); $transactions = Transaction::where('user_id', Auth::id())->whereIn('type', $types)->offset($offset)->limit($limit)->orderBy('id', 'desc')->get()->toArray(); } } else { $total = Transaction::where('user_id', Auth::id())->orderBy('id', 'desc')->count(); $transactions = Transaction::where('user_id', Auth::id())->orderBy('id', 'desc')->offset($offset)->limit($limit)->get()->toArray(); } $pages = ceil($total / $limit); $balance = Auth::user()->credits; $transactions2 = array(); foreach($transactions as $log) { $temp = $log; $temp['type_string'] = ''; $temp['desc'] = ''; $temp['items'] = array(); if($log['credits'] < 0) { $balance += abs($log['credits']); } else { $balance -= abs($log['credits']); } $temp['balance'] = $balance; switch ($log['type']) { case Transaction::TYPE_ITEM_DEPOSIT: $temp['type_string'] = 'Deposit'; $temp['items'] = DB::table('trade_deposit')->where('user_id', $log['user_id'])->where('offer_id', $log['offer'])->get()->toArray(); break; case Transaction::TYPE_ITEM_WITHDRAW: $temp['type_string'] = 'Withdraw'; $temp['items'] = DB::table('trade_withdraw')->where('user_id', $log['user_id'])->where('offer_id', $log['offer'])->get()->toArray(); break; case Transaction::TYPE_STORE_BUY: $temp['type_string'] = 'Purchase'; $temp['items'] = DB::table('store_purchase')->where('user_id', $log['user_id'])->where('offer_id', $log['offer'])->get()->toArray(); break; case Transaction::TYPE_STORE_SELL: $temp['type_string'] = 'Sale'; break; case Transaction::TYPE_BET_PLACE: $temp['type_string'] = 'Bet Placed'; $bet = Bet::with('match')->with('definition_data')->with('pick_data')->where('id', $log['var1'])->first(); if($bet) { $bet->toArray(); } $temp['desc'] = ($bet ? $bet['match']['name'] . ' (' . $bet['definition_data']['desc'] . ')' : 'Error'); $temp['var2'] = ($bet ? $bet['match_id'] : 0); break; case Transaction::TYPE_BET_CANCEL: $temp['type_string'] = 'Bet Cancel'; $bet = Bet::with('match')->with('definition_data')->with('pick_data')->where('id', $log['var1'])->first(); if($bet) { $bet->toArray(); } $temp['desc'] = ($bet ? $bet['match']['name'] . ' (' . $bet['definition_data']['desc'] . ')' : 'Error'); $temp['var2'] = ($bet ? $bet['match_id'] : 0); break; case Transaction::TYPE_BET_PAYOUT: $temp['type_string'] = 'Winnings'; $bet = Bet::with('match')->with('definition_data')->with('pick_data')->where('id', $log['var1'])->first(); if($bet) { $bet->toArray(); } $temp['desc'] = ($bet ? $bet['match']['name'] . ' (' . $bet['definition_data']['desc'] . ')' : 'Error'); $temp['var2'] = ($bet ? $bet['match_id'] : 0); break; case Transaction::TYPE_CREDIT_COMP: $temp['type_string'] = 'Comp'; $temp['desc'] = 'Complimentary Credits'; break; case Transaction::TYPE_CREDIT_REFUND: $temp['type_string'] = 'Refund'; $temp['desc'] = 'Refunded Credits'; break; default: $temp['type_string'] = 'Unknown'; } $transactions2[] = $temp; } return response()->json( [ 'status' => StatusCode::OK, 'response' => [ 'total' => (int)$total, 'pages' => (int)$pages, 'transactions' => $transactions2 ] ] ); } /** * Get authenticated users bets * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function GetBets(Request $request) { $this->validate($request, [ 'filter' => 'int', 'perpage' => 'int', 'page' => 'int', 'search' => 'string' ]); $page = (int)$request->input('page', 1); $limit = (int)$request->input('perpage', 5); $offset = $limit * ($page-1); if((int)$request->input('filter') > 0) { switch ((int)$request->input('filter')) { case 1: $status = 'LIVE'; break; case 2: $status = 'Upcoming'; break; case 3: $status = 'Match over'; break; default: $status = ''; } $total = Bet::with('match')->whereHas('match', function($q) use($status, $request) { $q->where('status', $status); $q->whereRaw("UPPER(name) LIKE '%" . strtoupper(e($request->input('search'))) . "%'"); })->with('definition_data')->with('pick_data')->where('user_id', Auth::id())->orderBy('id', 'desc')->count(); $bets = Bet::with('match')->whereHas('match', function($q) use($status, $request) { $q->where('status', $status); $q->whereRaw("UPPER(name) LIKE '%" . strtoupper(e($request->input('search'))) . "%'"); })->with('definition_data')->with('pick_data')->where('user_id', Auth::id())->orderBy('id', 'desc')->offset($offset)->limit($limit)->get()->toArray(); } else { $total = Bet::with('match')->whereHas('match', function($q) use($request) { $q->whereRaw("UPPER(name) LIKE '%" . strtoupper(e($request->input('search'))) . "%'"); })->with('definition_data')->with('pick_data')->where('user_id', Auth::id())->orderBy('id', 'desc')->count(); $bets = Bet::with('match')->whereHas('match', function($q) use($request) { $q->whereRaw("UPPER(name) LIKE '%" . strtoupper(e($request->input('search'))) . "%'"); })->with('definition_data')->with('pick_data')->where('user_id', Auth::id())->orderBy('id', 'desc')->offset($offset)->limit($limit)->get()->toArray(); } $pages = ceil($total / $limit); $data = array(); foreach($bets as $bet) { if((int)$request->input('filter') == 3) { $bet['payout'] = floor($bet['amount'] * $bet['odds']); } else { $bet['payout'] = null; } unset( $bet['definition_data']['user_bet'], $bet['definition_data']['user_bets_count'], $bet['definition_data']['user_bets_credits'], $bet['definition_data']['odds'], $bet['definition_data']['bets_count'], $bet['definition_data']['bets_credits'], $bet['definition_data']['bets'], $bet['pick_data']['user_bets'], $bet['pick_data']['user_bets_count'], $bet['pick_data']['user_bets_credits'], $bet['pick_data']['bets_count'], $bet['pick_data']['bets_credits'] ); $data[] = $bet; } return response()->json( [ 'status' => StatusCode::OK, 'response' => [ 'total' => (int)$total, 'pages' => (int)$pages, 'bets' => $data ] ] ); } public function UpdateSettings(Request $request) { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'message' => 'Not authenticated.' ] ); } /** * Update trade link * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function UpdateTradeLink(Request $request) { $this->validate($request, [ 'tradelink' => 'present|nullable', ]); $user = Auth::user(); if(preg_match("/\/t\/(\d{1,})\/([\w-]{8})/si", $request->input('tradelink'), $tradelink)) { if(Auth::id() == $tradelink[1]) { $user->tradelink = config('app.opskins_trade') . "/t/" . $tradelink[1] . "/" . $tradelink[2]; $user->save(); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['tradelink' => $user->tradelink] ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'response' => ['tradelink' => $user->tradelink] ] ); } } elseif($request->input('tradelink') == "" || is_null($request->input('tradelink'))) { $user->tradelink = ""; $user->save(); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['tradelink' => ''] ] ); } else { return response()->json( [ 'status' => StatusCode::GENERIC_INTERNAL_ERROR, 'response' => ['tradelink' => $user->tradelink] ] ); } } /** * ADMIN ONLY endpoint to adjust own credits * @param Request $request * @return \Illuminate\Http\JsonResponse * @throws \Illuminate\Validation\ValidationException */ public function EditCredits(Request $request) { $this->validate($request, [ 'credits' => 'int|required', ]); $user = Auth::user(); $user->credits += (int)$request->input('credits'); $user->save(); // log transaction $log = new Transaction; $log->user_id = $user->id; $log->type = Transaction::TYPE_CREDIT_COMP; $log->credits = (int)$request->input('credits'); $log->save(); return response()->json( [ 'status' => StatusCode::OK, 'response' => ['balance' => (int)$user->credits] ] ); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTransactionLog extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transaction_log', function (Blueprint $table) { $table->increments('id'); $table->integer('user_id'); $table->timestamp('timestamp')->useCurrent(); $table->integer('type'); $table->integer('offer'); $table->text('items'); $table->integer('var1'); $table->integer('var2'); $table->integer('credits'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('transaction_log'); } } <file_sep><?php use Illuminate\Database\Seeder; class ExampleMatches extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { \App\Models\Players::insert([ [ 'name' => 'ShahZaM', 'first_name' => 'Shahzeb', 'last_name' => 'Khan', 'hometown' => 'United States', 'current_team' => 2, 'current_videogame' => 1 ], [ 'name' => 'dephh', 'first_name' => 'Rory', 'last_name' => 'Jackson', 'hometown' => 'United Kingdom', 'current_team' => 2, 'current_videogame' => 1 ], [ 'name' => 'stanislaw', 'first_name' => 'Peter', 'last_name' => 'Jarguz', 'hometown' => 'Canada', 'current_team' => 2, 'current_videogame' => 1 ], [ 'name' => 'yay', 'first_name' => 'Jaccob', 'last_name' => 'Whiteaker', 'hometown' => 'United States', 'current_team' => 2, 'current_videogame' => 1 ], [ 'name' => 'ANDROID', 'first_name' => 'Bradley', 'last_name' => 'Fodor', 'hometown' => 'Canada', 'current_team' => 2, 'current_videogame' => 1 ], [ 'name' => 'ANGE1', 'first_name' => 'Krill', 'last_name' => 'Karasiow', 'hometown' => 'Ukraine', 'current_team' => 1, 'current_videogame' => 1 ], [ 'name' => 'bondik', 'first_name' => 'Vladyslav', 'last_name' => 'Nechyporchuk', 'hometown' => 'Ukraine', 'current_team' => 1, 'current_videogame' => 1 ] ]); \App\Models\Players::insert([ [ 'name' => 'woxic', 'current_team' => 1, 'current_videogame' => 1 ], [ 'name' => 'DeadFox', 'current_team' => 1, 'current_videogame' => 1 ], [ 'name' => 'ISSAA', 'current_team' => 1, 'current_videogame' => 1 ], [ 'name' => 'to1nou', 'current_team' => 3, 'current_videogame' => 1 ], [ 'name' => 'ALEX', 'current_team' => 3, 'current_videogame' => 1 ], [ 'name' => 'AmaNEk', 'current_team' => 3, 'current_videogame' => 1 ], [ 'name' => 'devoduvek', 'current_team' => 3, 'current_videogame' => 1 ], [ 'name' => 'LOGAN', 'current_team' => 3, 'current_videogame' => 1 ], [ 'name' => 'TaZ', 'current_team' => 4, 'current_videogame' => 1 ], [ 'name' => 'MINISE', 'current_team' => 4, 'current_videogame' => 1 ], [ 'name' => 'rallen', 'current_team' => 4, 'current_videogame' => 1 ], [ 'name' => 'reatz', 'current_team' => 4, 'current_videogame' => 1 ], [ 'name' => 'mouz', 'current_team' => 4, 'current_videogame' => 1 ] ]); \App\Models\Teams::insert([ [ 'id' => 1, 'name' => 'HellRaisers', 'videogame_id' => 1 ], [ 'id' => 2, 'name' => 'compLexity', 'videogame_id' => 1 ], [ 'id' => 3, 'name' => 'LDLC', 'videogame_id' => 1 ], [ 'id' => 4, 'name' => 'Kinguin', 'videogame_id' => 1 ] ]); \App\Models\Leagues::insert([ 'name' => 'FACEIT Major 2018', ]); \App\Models\Series::insert([ 'name' => 'FACEIT Major 2018', 'begins_at' => '2018-07-07 10:00:00', 'end_at' => '2018-07-11 10:00:00', 'prize_pool' => 50000, 'league_id' => 1, 'year' => 2018, 'winner_type' => 'team' ]); \App\Models\Tournaments::insert([ 'name' => 'Grand final', 'league_id' => 1, 'series_id' => 1, 'country' => 'Europe' ]); \App\Models\Matches::insert([ [ 'name' => 'HellRaisers vs. compLexity', 'begins_at' => \Carbon\Carbon::now()->subDays(7), 'number_of_games' => 3, 'tournament_id' => 1, 'series_id' => 1, 'videogame_id' => 1, 'status' => 'Match over' ], [ 'name' => 'LDLC vs. Kinguin', 'begins_at' => \Carbon\Carbon::now()->subDays(5), 'number_of_games' => 1, 'tournament_id' => 1, 'series_id' => 1, 'videogame_id' => 1, 'status' => 'Match over' ], [ 'name' => '<NAME>. compLexity', 'begins_at' => \Carbon\Carbon::now(), 'number_of_games' => 3, 'tournament_id' => 1, 'series_id' => 1, 'videogame_id' => 1, 'status' => 'Live' ], [ 'name' => 'LDLC vs. HellRaisers', 'begins_at' => \Carbon\Carbon::now(), 'number_of_games' => 1, 'tournament_id' => 1, 'series_id' => 1, 'videogame_id' => 1, 'status' => 'Live' ], [ 'name' => 'compLexity vs. HellRaisers', 'begins_at' => \Carbon\Carbon::now()->addDays(7), 'number_of_games' => 3, 'tournament_id' => 1, 'series_id' => 1, 'videogame_id' => 1, 'status' => 'Upcoming' ], [ 'name' => '<NAME>. LDLC', 'begins_at' => \Carbon\Carbon::now()->addDays(5), 'number_of_games' => 1, 'tournament_id' => 1, 'series_id' => 1, 'videogame_id' => 1, 'status' => 'Upcoming' ], ]); \App\Models\Games::insert([ [ 'match_id' => 1, 'finished' => 1, 'winner_id' => 1, 'winner_type' => 'team', 'map_name' => 'Cache', 'videogame_id' => 1, ], [ 'match_id' => 1, 'finished' => 1, 'winner_id' => 2, 'winner_type' => 'team', 'map_name' => 'Inferno', 'videogame_id' => 1, ], [ 'match_id' => 1, 'finished' => 1, 'winner_id' => 1, 'winner_type' => 'team', 'map_name' => 'Train', 'videogame_id' => 1, ], [ 'match_id' => 2, 'finished' => 1, 'winner_id' => 4, 'winner_type' => 'team', 'map_name' => 'Dust 2', 'videogame_id' => 1, ], [ 'match_id' => 3, 'finished' => 1, 'winner_id' => 4, 'winner_type' => 'team', 'map_name' => 'Inferno', 'videogame_id' => 1, ], ]); \App\Models\Games::insert([ [ 'match_id' => 3, 'winner_type' => 'team', 'map_name' => 'Mirage', 'videogame_id' => 1, ], [ 'match_id' => 4, 'winner_type' => 'team', 'map_name' => 'Cache', 'videogame_id' => 1, ], [ 'match_id' => 5, 'winner_type' => 'team', 'map_name' => 'Inferno', 'videogame_id' => 1, ], [ 'match_id' => 5, 'winner_type' => 'team', 'map_name' => 'Mirage', 'videogame_id' => 1, ], [ 'match_id' => 6, 'winner_type' => 'team', 'map_name' => 'TBA', 'videogame_id' => 1, ], ]); \App\Models\CsgoGame::insert([ [ 'game_id' => 1, 'match_id' => 1, 'team_1_id' => 1, 'team_2_id' => 2, 'team_1_score' => 16, 'team_2_score' => 11, 'team_1_ct_score' => 10, 'team_1_t_score' => 6, 'team_2_ct_score' => 9, 'team_2_t_score' => 2, ], [ 'game_id' => 2, 'match_id' => 1, 'team_1_id' => 1, 'team_2_id' => 2, 'team_1_score' => 7, 'team_2_score' => 18, 'team_1_ct_score' => 4, 'team_1_t_score' => 3, 'team_2_ct_score' => 6, 'team_2_t_score' => 9, ], [ 'game_id' => 3, 'match_id' => 1, 'team_1_id' => 1, 'team_2_id' => 2, 'team_1_score' => 16, 'team_2_score' => 14, 'team_1_ct_score' => 6, 'team_1_t_score' => 10, 'team_2_ct_score' => 5, 'team_2_t_score' => 9, ], [ 'game_id' => 4, 'match_id' => 2, 'team_1_id' => 3, 'team_2_id' => 4, 'team_1_score' => 7, 'team_2_score' => 18, 'team_1_ct_score' => 4, 'team_1_t_score' => 3, 'team_2_ct_score' => 6, 'team_2_t_score' => 9, ], [ 'game_id' => 5, 'match_id' => 3, 'team_1_id' => 4, 'team_2_id' => 2, 'team_1_score' => 16, 'team_2_score' => 14, 'team_1_ct_score' => 6, 'team_1_t_score' => 10, 'team_2_ct_score' => 5, 'team_2_t_score' => 9 ] ]); \App\Models\CsgoGame::insert([ [ 'game_id' => 6, 'match_id' => 3, 'team_1_id' => 4, 'team_2_id' => 2, ], [ 'game_id' => 7, 'match_id' => 4, 'team_1_id' => 3, 'team_2_id' => 1, ], [ 'game_id' => 8, 'match_id' => 5, 'team_1_id' => 2, 'team_2_id' => 1, ], [ 'game_id' => 9, 'match_id' => 5, 'team_1_id' => 2, 'team_2_id' => 1, ], [ 'game_id' => 10, 'match_id' => 6, 'team_1_id' => 4, 'team_2_id' => 3, ] ]); \Illuminate\Support\Facades\Artisan::call('store:bet-definitions'); } } <file_sep>import React from 'react'; import BetButton from '../extra/BetButton'; import Loading from "../extra/Loading"; import OtherBets from './MatchPage/OtherBets'; import MatchTabs from './MatchPage/MatchTabs'; import {betTimerTick} from '../helper' import local from '../localization' export default class MatchPage extends React.Component { constructor(props) { super(props); this.matchId = props.match.params.matchId this.main_definition = null this.state = { data: null, bet_definitions: null, isLoading: true, error: null, } this.fetchBetsData = this.fetchBetsData.bind(this) } componentDidUpdate(prevProps){ if (this.props.match.params.matchId !== prevProps.match.params.matchId) { this.matchId = this.props.match.params.matchId this.main_definition = null this.setState({ data: null, bet_definitions: null, isLoading: true, error: null, }) this.fetchMatchData(); } } componentDidMount(){ if(this.state.isLoading) this.fetchMatchData() else this.fetchBetsData() } fetchMatchData(){ fetch(`/api/Matches/GetMatchDetails?id=${this.matchId}`, { method: "GET" }).then(result => { return result.json() }).then(data => { if(data.status === 1) { this.setState({ data: data.response, isLoading: false }); this.fetchBetsData() } else this.setState({ error: "Error on fetch", isLoading: false }); }).catch(error => { this.setState({ error: "Error on fetch (catch)", isLoading: false }); }) } fetchBetsData(){ fetch(`/api/Matches/GetBettingData?match_id=${this.matchId}`, { method: "GET" }).then(result => { return result.json() }).then(data => { if(data.status === 1) { data.response.definitions.forEach(definition => { if (definition.type === 1) this.main_definition = definition }) this.setState({ bet_definitions: data.response.definitions }); } }).catch(error => { }) } render() { console.log("RENDER PAGE"); if(this.state.isLoading) return <Loading/> if(this.state.error) return <p>{this.state.error}</p> let total_bets, number_of_bets, average_bet; if(this.state.bet_definitions !== null) { total_bets = 0 number_of_bets = 0 this.state.bet_definitions.forEach(definition => { total_bets += definition.bets_credits number_of_bets += definition.bets_count }) if(number_of_bets !== 0) average_bet = Math.floor(total_bets/number_of_bets) else average_bet = 0 } else total_bets = number_of_bets = average_bet = (<i className="fa fa-spin fa-spinner"></i>) return ( <main id="match-page"> <div className="white-box"> <div className="match-header columns is-mobile is-multiline"> <div className="column is-narrow"> <span className="match-status"> <MatchStatus begins_at={this.state.data.begins_at} closes_at={this.state.data.closes_at} status={this.state.data.status} /> </span> </div> <div className="column is-12-mobile is-narrow-tablet"> <h1>{this.state.data.league.name}</h1> <h2>{this.state.data.tournament.name}</h2> </div> <div className="column is-narrow"> <img src="http://vignette1.wikia.nocookie.net/logopedia/images/b/bc/Counter-Strike_Global_Offensive.png/revision/latest?cb=20150828062514" alt="CS:GO" className="match-game-logo" /> </div> </div> <div className="match-stats columns is-mobile"> <div className="column is-half-mobile"> <div className="stat-label">{local.TIME_LEFT_TO_BET}</div> <div className="stat-value"> <MainBetStatus closes_at={this.main_definition ? this.main_definition.closes_at : null} opens_at={this.main_definition ? this.main_definition.opens_at : null} /> </div> </div> <div className="column is-half-mobile"> <div className="stat-label">{local.TOTAL_BETS_IN_BANK}</div> <div className="stat-value">{total_bets} C</div> </div> <div className="column is-half-mobile"> <div className="stat-label">{local.NUMBER_OF_BETS}</div> <div className="stat-value">{number_of_bets}</div> </div> <div className="column is-half-mobile"> <div className="stat-label">{local.AVERAGE_BET}</div> <div className="stat-value">{average_bet} C</div> </div> </div> <div className="match-teams columns is-mobile is-centered"> <div className="column is-narrow"> <img src={this.state.data.team1.image} alt={this.state.data.team1.name} className="team-logo" /> <span className="team-name">{this.state.data.team1.name}</span> <div className="team-odds"> {local.ODDS} X <span className="odds">{ this.main_definition ? (this.main_definition.odds[this.state.data.team1.id] || 1.00) : '' }</span> </div> <BetButton pick_id={this.state.data.team1.id} definition={this.main_definition} fetchBetsData={this.fetchBetsData}/> </div> <div className="column is-narrow match-score-column"> <div className="match-score">{this.state.data.score[0].value}:{this.state.data.score[1].value}</div> {this.state.data.streams.length && ( <a href={this.state.data.streams[0].url} target="_blank" className="is-hidden-tablet"> <img src="/img/ic_stream.svg" alt={local.STREAM} /> </a> )} </div> <div className="column is-narrow"> <img src={this.state.data.team2.image} alt={this.state.data.team2.name} className="team-logo" /> <span className="team-name">{this.state.data.team2.name}</span> <div className="team-odds"> ODDS X <span className="odds">{ this.main_definition ? (this.main_definition.odds[this.state.data.team2.id] || 1.00) : '' }</span> </div> <BetButton pick_id={this.state.data.team2.id} definition={this.main_definition} fetchBetsData={this.fetchBetsData}/> </div> </div> </div> <OtherBets definitions={this.state.bet_definitions} /> {this.state.data.streams.length != 0 && ( <iframe src={this.state.data.streams[0].url+ "&autoplay=false"} scrolling="0" allowFullScreen width="100%" height="700" className="match-stream is-hidden-mobile"></iframe> )} <MatchTabs match={this.state.data} main_definition={this.main_definition} /> </main> ); } } class MatchStatus extends React.Component { constructor(props){ super(props); this.timerID = null this.state = { status: props.status } } componentDidMount() { if (this.props.status == 'Upcoming' && this.props.begins_at) this.timerID = setInterval(() => this.tick(), 1000); } componentWillUnmount() { if (this.timerID) clearInterval(this.timerID); } tick() { let status const dt = moment.utc(this.props.begins_at).local(); const now = moment(); const duration = moment.duration(dt.diff(now)); if(now.isBefore(dt)) { let out = ""; if (duration.get('days') > 0) { out += duration.get("days") + "d "; out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("hours") > 0) { out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("minutes") > 0) { out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("seconds") > 0) { out += duration.get("seconds") + "s"; } status = local.STARTS_IN + ' ' + out } else { clearInterval(this.timerID) this.timerID = null status = this.props.status } this.setState({ status: status }) } render(){ return this.state.status } } class MainBetStatus extends React.Component { constructor(props){ super(props); this.state = { status: <i className="fa fa-spin fa-spinner"></i> } } componentDidMount() { this.timerID = setInterval(() => this.tick(), 1000); } componentWillUnmount() { clearInterval(this.timerID); } tick() { if(this.props.closes_at) { if (this.state.status !== local.LOCKED) this.setState({ status: betTimerTick(this.props.closes_at, this.props.opens_at, this.timerID) }) else clearInterval(this.timerID); } } render(){ return this.state.status } } <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class CategoryIndex extends Model { protected $table = "category_index"; protected $primaryKey = 'id'; public $timestamps = false; }<file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateGamesOpponentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('games_opponents',function (Blueprint $table) { $table->integer('game_id'); $table->integer('type_id'); $table->string('type',45); $table->integer('teamid'); $table->primary(['game_id','type_id','type']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('games_opponents'); } } <file_sep>import React from 'react'; /* side menu only displayed when the site is being viewed in desktop mode. this is the menu that shows in the side bar, the menu is dynamic it will change the league side menu depending on the matches that have been fetched */ export default class SideMenu extends React.Component { constructor(props) { super(props); this.id = props.id; this.state = {menus:props.menuitems}; this.menuItemClick = this.menuItemClick.bind(this); this.menuClick = this.menuClick.bind(this); } menuItemClick(e){ let target = e.currentTarget; console.log(e); let id = $(target).attr("data-id"); let menu = $(target).attr("data-menu"); let menuitem = null; if($(target).parent().find(".is-selected").length > 0){ if(!$(target).hasClass("is-selected")) $(target).parent().find(".is-selected").removeClass("is-selected"); } $(target).toggleClass("is-selected"); for(let i =0; i < this.state.menus.length; i++){ if(this.state.menus[i].id == menu){ menuitem = this.state.menus[i].menu[id]; } } if(menuitem != null){ if(!menuitem.disabled) { if (menuitem.onclick) menuitem.onclick(menuitem); } } } menuClick(e){ e.preventDefault(); let id = $(e.currentTarget).attr("data-id"); $("#sub_menu_"+id).toggleClass("is-hidden"); if($(e.currentTarget).find(".fa-caret-down").length > 0){ $(e.currentTarget).find(".fa-caret-down").removeClass("fa-caret-down").addClass("fa-caret-left"); } else { $(e.currentTarget).find(".fa-caret-left").removeClass("fa-caret-left").addClass("fa-caret-down"); } } render(){ let menus = []; for(let i=0; i < this.state.menus.length; i++){ let submenu = []; let visible = ""; let caret = "fa-caret-down"; for(let x =0; x < this.state.menus[i].menu.length; x++){ let submenuitem = this.state.menus[i].menu[x]; submenu.push(<li data-menu={this.state.menus[i].id} data-id={x} onClick={this.menuItemClick} key={"sub_menu_"+i+"_"+x}><a><span className="icon is-pulled-left"><i className={"fa "+submenuitem.icon}></i></span> <span className="menu-text">{submenuitem.text}</span></a></li>); } if(submenu.length > 0) { if(!this.state.menus[i].expanded){ visible = "is-hidden"; caret = "fa-caret-left"; } menus.push(<p data-id={this.state.menus[i].id} key={"side_menu_" + this.state.menus[i].id + "_" + i} className="clickable menu-label" onClick={this.menuClick}><span className={"fa "+caret+" is-pulled-right"}/> {this.state.menus[i].defaultText}</p>); menus.push(<ul id={"sub_menu_"+this.state.menus[i].id} key={"side_menu_" + this.state.menus[i].id + "_2_" + i} className={"menu-list "+visible}>{submenu}</ul>); } } return ( <div className="side-menu"> <aside className="menu"> <p className="menu-label"> <b style={{"fontSize":16+"px"}}>Filters</b> </p> <p className="menu-label">&nbsp;</p> {menus} </aside> </div>); } }<file_sep><?php namespace App\Http\Controllers; use App\Auth; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Validator; class LoginController extends Controller { private const STATE_LENGTH = 16; public function login(Request $request) { $client_id = env('OAUTH_CLIENT_ID'); $secret = env('OAUTH_SECRET'); $host = env('OAUTH_HOST'); if(!$client_id OR !$secret OR !$host) dd('OAUTH_CLIENT_ID, OAUTH_SECRET and OAUTH_HOST need to be set in .env'); if ($request->has(['state', 'code'])) { $validator = Validator::make([ 'oauth_state' => $request->session()->get('oauth_state'), 'state' => $request->input('state'), 'code' => $request->input('code') ], [ 'oauth_state' => 'required|size:' . self::STATE_LENGTH, 'state' => 'required|same:oauth_state', 'code' => 'required|size:16', ]); if (!$validator->fails()) { $server_auth = base64_encode("$client_id:$secret"); $context = stream_context_create(['http' => [ 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded\r\n" . "Authorization: Basic $server_auth", 'content' => http_build_query([ 'grant_type' => 'authorization_code', 'code' => $request->input('code') ]), 'ignore_errors' => true ]]); $access_token_json = file_get_contents("$host/v1/access_token", false, $context); $access_token = json_decode($access_token_json); if ($access_token AND !property_exists($access_token, 'error')) { $bearer_token = $access_token->access_token; $refresh_token = $access_token->refresh_token; $context = stream_context_create(['http' => [ 'method' => 'GET', 'header' => "Authorization: Bearer $bearer_token", 'ignore_errors' => true ]]); $user_profile_json = file_get_contents(config('app.opskins_api_url') . '/IUser/GetProfile/v1/', false, $context); $user_profile = json_decode($user_profile_json); if ($user_profile AND property_exists($user_profile, 'status') AND $user_profile->status === 1) { $user = User::firstOrNew(['id' => $user_profile->response->id]); $user->fill([ 'steam_id' => $user_profile->response->id64, 'name' => $user_profile->response->username, 'avatar' => $user_profile->response->avatar, 'token' => $refresh_token, 'ip_address' => $request->ip(), 'last_login_at' => Carbon::now() ]); if ($user->first_login_at == NULL) $user->first_login_at = $user->last_login_at; $user->save(); Auth::login($user); } } } // else dd($validator->failed()); //Errors return redirect('/'); return redirect($request->session()->get('oauth_uri')); } else { $state = str_random(self::STATE_LENGTH); $request->session()->flash('oauth_state', $state); $request->session()->flash('oauth_uri', $request->server('HTTP_REFERER') != null ? $request->server('HTTP_REFERER') : '/'); $params = http_build_query([ 'client_id' => $client_id, 'response_type' => 'code', 'state' => $state, 'duration' => 'permanent' ]); return redirect("$host/v1/authorize?$params"); } } public function logout (Request $request) { Auth::logout(); return redirect('/'); return redirect($request->server('HTTP_REFERER') != null ? $request->server('HTTP_REFERER') : '/'); } } <file_sep><?php namespace App; use App\Models\Matches; use App\Models\User; use App\Models\Bet; use App\Models\BetDefinition; use App\Models\Transaction; class Betting { /** * Place a bet * @param $definition * @param $user_id * @param $amount * @param $pick * @return bool|mixed */ public static function place($definition, $user_id, $amount, $pick) { if((int)$definition == 0 || (int)$user_id == 0 || ((int)$amount == 0 || (int)$pick == 0)) { return false; } // check if definition exists $def = BetDefinition::find($definition); if($def) { // check if bet is allowed to be placed if($def->status > 0 && (\Carbon\Carbon::now() > $def->opens_at && \Carbon\Carbon::now() < $def->closes_at)) { $user = User::find($user_id); // check if user can afford bet if((int)$user->credits >= (int)$amount) { // place bet $bet = new Bet; $odds = array(); foreach($def->odds as $id => $odd) { $odds[$id] = $odd; } $bet->definition = (int)$def->id; $bet->match_id = (int)$def->match_id; $bet->user_id = (int)$user->id; $bet->amount = (int)$amount; $bet->pick = (int)$pick; $bet->odds = (array_key_exists($pick, $odds) ? $odds[$pick] : 1.00); $bet->status = 1; // subtract amount from credits $user->credits -= (int)$amount; // save models $bet->save(); $user->save(); // log transaction $log = new Transaction; $log->user_id = (int)$bet->user_id; $log->type = Transaction::TYPE_BET_PLACE; $log->var1 = (int)$bet->id; $log->credits = 0 - (int)$bet->amount; $log->save(); return $bet->id; } } } return false; } /** * Cancel a bet * @param $bet_id * @param $user_id * @return bool */ public static function cancel($bet_id, $user_id) { if((int)$bet_id == 0 || (int)$user_id == 0) { return false; } $bet = Bet::find($bet_id); if($bet) { $def = BetDefinition::find($bet->definition); // check if bet is allowed to be cancelled if($bet->status > 0 && $def->status > 0 && (\Carbon\Carbon::now() > $def->opens_at && \Carbon\Carbon::now() < $def->closes_at)) { $user = User::find($user_id); // check if user owns bet if($bet->user_id == $user->id) { // cancel bet $bet->status = Bet::STATUS_CANCELED; // add amount to credits $user->credits += (int)$bet->amount; // log transaction $log = new Transaction; $log->user_id = (int)$bet->user_id; $log->type = Transaction::TYPE_BET_CANCEL; $log->var1 = (int)$bet->id; $log->credits = (int)$bet->amount; $log->save(); // save models $bet->save(); $user->save(); return $bet->id; } } } return false; } /** * Edit a bet * @param $bet_id * @param $user_id * @param null $amount * @param null $pick * @return bool */ public static function edit($bet_id, $user_id, $amount = null, $pick = null) { if((int)$bet_id == 0 || (int)$user_id == 0 || ((int)$amount == 0 || (int)$pick == 0)) { return false; } $bet = Bet::find($bet_id); if($bet) { $def = BetDefinition::find($bet->definition); // check if bet is allowed to be edited if($bet->status > 0 && $def->status > 0 && (\Carbon\Carbon::now() > $def->opens_at && \Carbon\Carbon::now() < $def->closes_at)) { $user = User::find($user_id); // check if user owns bet if($bet->user_id == $user->id) { // check if user can afford bet if(((int)$user->credits + $bet->amount) >= (int)$amount) { // alter bet $bet = Bet::find($bet_id); if($amount !== null) { $amount_old = $bet->amount; $amount_new = $amount; if($amount_old > $amount_new) { // if old amount is higher than new amount $user->credits += (int)($amount_old - $amount_new); } elseif($amount_old < $amount_new) { // if new amount is higher than old amount $user->credits += (int)($amount_new - $amount_old); } $bet->amount = $amount; } if($pick !== null) $bet->pick = (int)$pick; // save models $bet->save(); $user->save(); return $bet->id; } } } } return false; } /** * @param Matches $match | Match model * @param int $def_type | type of BetDefinition * @param $winner | id of winner team or null */ public static function payouts(Matches $match, int $def_type, $winner) { $match->load([ 'bet_definitions' => function($query) use ($def_type){ $query->where('type', $def_type); }, 'bet_definitions.bets', 'bet_definitions.bets.user' ]); $bet_definition = $match->bet_definitions->first(); if ($bet_definition) { Bet::whereIn('id', $bet_definition->active_bets->pluck('id'))->update([ 'status' => Bet::STATUS_PAID ]); if ($winner) { $winners_bets = $bet_definition->active_bets->where('pick', $winner); foreach ($winners_bets as $bet) { if ($bet->user) { $bet->user->credits += floor($bet->amount * $bet->odds); $bet->user->save(); // log transaction $log = new Transaction; $log->user_id = (int)$bet->user_id; $log->type = Transaction::TYPE_BET_PAYOUT; $log->var1 = (int)$bet->id; $log->credits = floor($bet->amount * $bet->odds); $log->save(); } } } else //no winner, return bets { foreach ($bet_definition->active_bets as $bet) { if ($bet->user) { $bet->user->credits += $bet->amount; $bet->user->save(); // log transaction $log = new Transaction; $log->user_id = (int)$bet->user_id; $log->type = Transaction::TYPE_BET_PAYOUT; $log->var1 = (int)$bet->id; $log->credits = (int)$bet->amount; $log->save(); } } } } } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateVideogamesIndexTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('videogames_index', function (Blueprint $table) { $table->increments('id'); $table->string('name',150); $table->text('desc')->nullable(); $table->string('slug',45); $table->string('icon_url',245)->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('videogames_index'); } } <file_sep><?php namespace App\Http\Controllers; use App\Betting; use App\Models\Bet; use App\Models\BetTemplate; use App\Models\Matches; use App\Models\Transaction; use App\Models\User; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Yajra\DataTables\Facades\DataTables; class AdminController extends Controller { public function index(Request $request) { $total_users = User::count(); $total_bets = Bet::whereIn('status', [Bet::STATUS_ACTIVE, Bet::STATUS_PAID])->count(); $today_new_users = User::where('created_at', '>=', Carbon::today())->count(); $today_bets = Bet::whereIn('status', [Bet::STATUS_ACTIVE, Bet::STATUS_PAID]) ->where('created_at', '>=', Carbon::today())->count(); $today_transactions = Transaction::where('timestamp', '>=', Carbon::today())->count(); return view('admin.dashboard', [ 'total_users' => $total_users, 'total_bets' => $total_bets, 'today_new_users' => $today_new_users, 'today_bets' => $today_bets, 'today_transactions' => $today_transactions ]); } public function inventory(){ return view('admin.inventory', []); } public function settings(){ return view('admin.settings', [ 'settings' => DB::table('settings')->get() ]); } public function settingsSave(Request $request){ DB::table('settings')->where('key', $request->input('key'))->update([ 'value' => $request->input('value'), 'type' => $request->input('type') ]); return 1; } public function users(Request $request){ return view('admin.users', []); } public function usersFilter(Request $request){ try { return Datatables::eloquent(User::query())->make(true); } catch (\Exception $e) { return $e; } } public function usersSave(Request $request){ User::where('id', $request->input('id'))->update([ 'credits' => $request->input('credits'), 'is_admin' => $request->input('is_admin') ]); return 1; } public function betTemplates(){ return view('admin.bet-templates', []); } public function betTemplatesFilter(Request $request){ try { return Datatables::eloquent(BetTemplate::query())->make(true); } catch (\Exception $e) { return $e; } } public function betTemplatesSave(Request $request){ $id = $request->input('id'); if($id) { if($request->input('delete')) BetTemplate::where('id', $request->input('id'))->delete(); else BetTemplate::where('id', $request->input('id'))->update([ 'type' => $request->input('type'), 'permap' => $request->input('permap') ?: 0, 'minmaps' => $request->input('minmaps'), 'opens_before' => $request->input('opens_before') ]); } else BetTemplate::create([ 'type' => $request->input('type'), 'permap' => $request->input('permap') ?: 0, 'minmaps' => $request->input('minmaps'), 'opens_before' => $request->input('opens_before') ]); if($request->ajax()) return 1; return redirect(route('admin.bet-templates')); } public function matches(){ return view('admin.matches', []); } public function matchesFilter(Request $request){ try { return Datatables::eloquent(Matches::with(['series.league']))->make(true); } catch (\Exception $e) { return $e; } } public function matchesSave(Request $request){ Matches::where('id', $request->input('id'))->update([ 'hide' => $request->input('hide') ?: 0, ]); return 1; } public function matchesReturnBets(Request $request){ $match = Matches::with('bet_definitions')->where('id', $request->input('id'))->first(); if($match) foreach ($match->bet_definitions as $bet_definition) Betting::payouts($match, $bet_definition->type, 0); return 1; } public function transactions($type){ return view('admin.transactions', ['type' => $type]); } public function transactionsFilter(Request $request){ $builder = Transaction::with('user'); if($request->input('type') == 'deposit') $builder->where('type', Transaction::TYPE_ITEM_DEPOSIT)->with('deposits'); else $builder->where('type', Transaction::TYPE_ITEM_WITHDRAW)->with('withdraw'); try { return Datatables::eloquent($builder)->make(true); } catch (\Exception $e) { return $e; } } } <file_sep><?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\Artisan; use Laravel\Lumen\Console\Kernel as ConsoleKernel; use App\Trade; class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ Commands\VgoItemIndex::class, Commands\PriceUpdate::class, Commands\CreateDefinitions::class, ]; /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { $schedule->command('store:vgoitemindex')->daily()->name('vgoitemindex'); $schedule->command('store:price-update')->everyFifteenMinutes()->name('price-update'); $schedule->call(function () { Trade::checkOffers(); })->everyMinute()->name('check_offers'); $schedule->command('store:bet-definitions')->everyFiveMinutes()->name('bet-definitions'); } } <file_sep><?php namespace App; use ReflectionClass; class StatusCode { use \App\Traits\Constable; const OK = 1; // no error // 100 ~ 119 = generic internal errors const GENERIC_INTERNAL_ERROR = 100; const DATABASE_ERROR = 101; const NOT_FOUND = 102; const BAD_STATE = 103; const LOCKED = 104; // 120 ~ 129 = file/disk errors const CANNOT_CREATE_DIRECTORY = 120; const FILE_UPLOAD_ERROR = 121; const FILE_UPLOAD_ALREADY_EXISTS = 122; const CANNOT_DELETE_FILE = 123; const INVALID_FILE_TYPE = 124; const EMPTY = 400; // 7xx = client error const BAD_INPUT = 700; const BAD_REQUEST = 701; const RATE_LIMIT_EXCEEDED = 710; const CAPTCHA_INVALID = 711; public static function getErrorName($value) { $class = new ReflectionClass(__CLASS__); $constants = array_flip($class->getConstants()); return $constants[$value]; } /** * Check whether a given code is an ErrorCode. * @param int $code * @return bool */ public static function isErrorCode($code) { $class = new ReflectionClass(__CLASS__); $constants = array_flip($class->getConstants()); return array_key_exists($code, $constants); } }<file_sep>import React from 'react'; import Loading from '../../extra/Loading'; import {Link} from "react-router-dom"; export default class AccountPage_Transactions extends React.Component { constructor(props) { super(props); this.state = { data: null, activeFilter: Number.parseInt(props.filter) || 0, perPageOpen: false, activePerPage: 10, activeSearch: null, isLoading: true, error: null }; this.changeFilter = this.changeFilter.bind(this); this.openPerPage = this.openPerPage.bind(this); this.closePerPage = this.closePerPage.bind(this); this.changePerPage = this.changePerPage.bind(this); this.searchChange = this.searchChange.bind(this); this.searchDouble = this.searchDouble.bind(this); } componentDidMount() { this.setState({ isLoading: false }); } changeFilter(event) { event.preventDefault(); let filter = event.currentTarget.dataset.id; this.setState({ activeFilter: Number.parseInt(filter === this.state.activeFilter ? this.props.filter : filter) }); } openPerPage(event) { event.preventDefault(); this.setState({ perPageOpen: true }); } closePerPage(event) { event.preventDefault(); this.setState({ perPageOpen: false }); } changePerPage(event) { event.preventDefault(); let perpage = event.currentTarget.dataset.id; this.setState({ activePerPage: Number.parseInt(perpage === this.state.activeTab ? this.state.activeTab : perpage), perPageOpen: false }); } searchChange(event) { let search = event.target.value; this.setState({ activeSearch: search }); } searchDouble(event) { this.setState({ activeSearch: null }); } render() { if(this.state.isLoading) return (<Loading />); if(this.state.error) return <p>{this.state.error}</p>; return ( <section className="section is-paddingless account-section" id="account-tab-3"> <h2 className="title is-size-4 vl-heading is-hidden-mobile">Transactions</h2> <div className="vl-container vl-transactions"> <div className="vl-container-header"> <div className="vl-options is-pulled-right"> <div className="vl-options-text">Items per page</div> <div className="vl-dropdown vl-dropdown-bets has-text-left" tabIndex="0" onBlur={this.closePerPage}> <div className="vl-dropdown-carat"><div className="fas fa-caret-down"></div></div> <ul> <li className={'bets-perpage is-unselectable' + (this.state.activePerPage===5 ? ' is-active' : '')} onClick={this.state.perPageOpen===true ? this.changePerPage : this.openPerPage} style={{display: (this.state.perPageOpen===true || (this.state.perPageOpen===false && this.state.activePerPage===5) ? 'list-item' : 'none')}} data-id="5">5</li> <li className={'bets-perpage is-unselectable' + (this.state.activePerPage===10 ? ' is-active' : '')} onClick={this.state.perPageOpen===true ? this.changePerPage : this.openPerPage} style={{display: (this.state.perPageOpen===true || (this.state.perPageOpen===false && this.state.activePerPage===10) ? 'list-item' : 'none')}} data-id="10">10</li> <li className={'bets-perpage is-unselectable' + (this.state.activePerPage===20 ? ' is-active' : '')} onClick={this.state.perPageOpen===true ? this.changePerPage : this.openPerPage} style={{display: (this.state.perPageOpen===true || (this.state.perPageOpen===false && this.state.activePerPage===20) ? 'list-item' : 'none')}} data-id="20">20</li> <li className={'bets-perpage is-unselectable' + (this.state.activePerPage===50 ? ' is-active' : '')} onClick={this.state.perPageOpen===true ? this.changePerPage : this.openPerPage} style={{display: (this.state.perPageOpen===true || (this.state.perPageOpen===false && this.state.activePerPage===50) ? 'list-item' : 'none')}} data-id="50">50</li> <li className={'bets-perpage is-unselectable' + (this.state.activePerPage===100 ? ' is-active' : '')} onClick={this.state.perPageOpen===true ? this.changePerPage : this.openPerPage} style={{display: (this.state.perPageOpen===true || (this.state.perPageOpen===false && this.state.activePerPage===100) ? 'list-item' : 'none')}} data-id="100">100</li> </ul> </div> {/*<div className="vl-search vl-search-transactions"> <div className="columns is-mobile"> <div className="column has-text-left is-paddingless vl-search-input"><input type="text" name="search" value={this.state.activeSearch || ''} onChange={this.searchChange} onDoubleClick={this.searchDouble} /></div> <div className="column has-text-right is-paddingless vl-search-button"><div className="fa fa-search"></div></div> </div> </div>*/} </div> <div className="tabs is-small is-inline-block"> <ul> <li className={'bets-tab-select is-unselectable' + (this.state.activeFilter===0 ? ' is-active' : '')} onClick={this.changeFilter} data-id="0"><a>All</a></li> <li className={'bets-tab-select is-unselectable' + (this.state.activeFilter===1 ? ' is-active' : '')} onClick={this.changeFilter} data-id="1"><a>Deposits</a></li> <li className={'bets-tab-select is-unselectable' + (this.state.activeFilter===2 ? ' is-active' : '')} onClick={this.changeFilter} data-id="2"><a>Withdrawals</a></li> <li className={'bets-tab-select is-unselectable' + (this.state.activeFilter===3 ? ' is-active' : '')} onClick={this.changeFilter} data-id="3"><a>Purchases</a></li> <li className={'bets-tab-select is-unselectable' + (this.state.activeFilter===4 ? ' is-active' : '')} onClick={this.changeFilter} data-id="4"><a>Bets</a></li> </ul> </div> </div> <AccountPage_Transactions_Data filter={this.state.activeFilter} activePerPage={this.state.activePerPage} activeSearch={this.state.activeSearch} /> </div> </section> ); } } export class AccountPage_Transactions_Data extends React.Component { constructor(props) { super(props); this.state = { filter: props.filter || null, activePerPage: props.activePerPage, activeSearch: props.activeSearch, page: 1, total: 0, pages: 0, data: null, isLoading: true, error: null }; this.getTransactions = this.getTransactions.bind(this); this.pageChange = this.pageChange.bind(this); this.pageNext = this.pageNext.bind(this); this.pagePrev = this.pagePrev.bind(this); } componentDidMount() { if(this.state.isLoading) { this.getTransactions(); } } componentWillReceiveProps(nextProps) { if(this.props.filter !== nextProps.filter || this.props.activePerPage !== nextProps.activePerPage || this.props.activeSearch !== nextProps.activeSearch || this.props.page !== nextProps.page) { this.setState({ filter: nextProps.filter, activePerPage: nextProps.activePerPage || 5, activeSearch: nextProps.activeSearch || null, page: nextProps.page || 1 }, () => { this.getTransactions(); }); } } getTransactions() { fetch(`/api/User/GetTransactions` + (this.state.filter > 0 ? `?filter=` + this.state.filter : `?filter=0`) + (this.state.activePerPage > 0 ? `&perpage=` + this.state.activePerPage : ``) + (this.state.activeSearch ? `&search=` + this.state.activeSearch : ``) + (this.state.page ? `&page=` + this.state.page : ``), { method: "GET" }).then(result => { return result.json(); }).then(data => { if(data.status === 1) { this.setState({ total: data.response.total, pages: data.response.pages, data: data.response.transactions, isLoading: false }); } else { this.setState({ error: "Error on fetch", isLoading: false }); } }).catch(error => { this.setState({ error: "Error on fetch (catch)", isLoading: false }); }); } pageChange(event) { let newpage = parseInt(event.currentTarget.dataset.page); console.log(newpage); if(this.state.page !== newpage) { this.setState({ page: newpage }, () => { this.getTransactions(); }); } } pageNext() { if(this.state.page < this.state.pages) { let newpage = this.state.page+1; this.setState({ page: newpage }, () => { this.getTransactions(); }); } } pagePrev() { if(this.state.page > 1) { let newpage = this.state.page-1; this.setState({ page: newpage }, () => { this.getTransactions(); }); } } render() { if(this.state.error) return <p>{this.state.error}</p>; let data = []; if(!this.state.isLoading && Object.keys(this.state.data).length > 0) { Object.keys(this.state.data).forEach((key, i) => { let item = this.state.data[key]; item.filter = 0; if(item.type === 1) { // Deposit item.filter = 1; } else if(item.type === 2) { // Item Withdraw item.filter = 2; } else if(item.type === 3) { // Item Buy item.filter = 3; } else if(item.type === 4) { // Item Sell item.filter = 3; } else if(item.type === 5) { // Bet Place item.filter = 4; if(item.var2) { //item.desc = <Link to={'/match/' + item.var2}>{item.desc}</Link> } } else if(item.type === 6) { // Bet Cancel item.filter = 4; if(item.var2) { //item.desc = <Link to={'/match/' + item.var2}>{item.desc}</Link> } } else if(item.type === 7) { // Bet Payout item.filter = 4; if(item.var2) { //item.desc = <Link to={'/match/' + item.var2}>{item.desc}</Link> } } else if(item.type === 8) { // Credit Comp item.filter = 5; } else if(item.type === 9) { // Credit Refund item.filter = 5; } else { item.filter = 5; } if(item.items.length > 0) { item.desc = []; item.items.forEach(function(entry) { item.desc.push(entry.name); }); item.desc = item.desc.join(', '); } data.push( <tr key={i}> <td>{moment(item.timestamp).format("MM/DD/YY h:mmA")}</td> <td>{item.type_string}</td> <td>{item.desc}</td> <td>{item.type !== 2 ? item.credits + 'c' : null}</td> {/*<td>{item.balance}c</td>*/} </tr> ); }); } let pages = []; if(!this.state.isLoading && data) { if(this.state.pages <= 9) { for(let i=1; i <= this.state.pages; i++) { pages.push( <li key={i}><a className={'pagination-link' + (this.state.page === i ? ' is-current' : '')} aria-label={'Goto page ' + i} onClick={this.pageChange} data-page={i}>{i}</a></li> ); } } else { if(this.state.page <= 6 && (this.state.page < 4 || this.state.page > (this.state.pages - 4))) { // if we are near the start for(let i=1; i <= 6; i++) { pages.push( <li key={i}><a className={'pagination-link' + (this.state.page === i ? ' is-current' : '')} aria-label={'Goto page ' + i} onClick={this.pageChange} data-page={i}>{i}</a></li> ); } pages.push( <li key="a"><span className="pagination-ellipsis">&hellip;</span></li> ); pages.push( <li key={this.state.pages}><a className={'pagination-link' + (this.state.page === this.state.pages ? ' is-current' : '')} aria-label={'Goto page ' + this.state.pages} onClick={this.pageChange} data-page={this.state.pages}>{this.state.pages}</a></li> ); } else if(this.state.page >= (this.state.pages - 6) && (this.state.page < 4 || this.state.page > (this.state.pages - 4))) { // if we are near the end pages.push( <li key="1"><a className={'pagination-link' + (this.state.page === 1 ? ' is-current' : '')} aria-label={'Goto page 1'} onClick={this.pageChange} data-page="1">1</a></li> ); pages.push( <li key="b"><span className="pagination-ellipsis">&hellip;</span></li> ); for(let i=(this.state.pages-6); i <= this.state.pages; i++) { pages.push( <li key={i}><a className={'pagination-link' + (this.state.page === i ? ' is-current' : '')} aria-label={'Goto page ' + i} onClick={this.pageChange} data-page={i}>{i}</a></li> ); } } else { // if we are in the middle pages.push( <li key="1"><a className={'pagination-link' + (this.state.page === 1 ? ' is-current' : '')} aria-label={'Goto page 1'} onClick={this.pageChange} data-page="1">1</a></li> ); pages.push( <li key="a"><span className="pagination-ellipsis">&hellip;</span></li> ); for(let i=(this.state.page-2); i <= (this.state.page+2); i++) { pages.push( <li key={i}><a className={'pagination-link' + (this.state.page === i ? ' is-current' : '')} aria-label={'Goto page ' + i} onClick={this.pageChange} data-page={i}>{i}</a></li> ); } pages.push( <li key="b"><span className="pagination-ellipsis">&hellip;</span></li> ); pages.push( <li key={this.state.pages}><a className={'pagination-link' + (this.state.page === this.state.pages ? ' is-current' : '')} aria-label={'Goto page ' + this.state.pages} onClick={this.pageChange} data-page={this.state.pages}>{this.state.pages}</a></li> ); } } } return ( <div className="vl-container-body"> {!this.state.isLoading && data.length > 0 ? <div> <table className="table is-fullwidth"> <thead> <tr> <th>Date</th> <th>Type</th> <th>Description</th> <th>Amount</th> {/*<th>Balance</th>*/} </tr> </thead> <tbody> {data} </tbody> </table> <div className="has-text-centered"> <nav className="pagination is-small is-centered" role="navigation" aria-label="pagination"> <a className="pagination-previous" disabled={this.state.page <= 1 ? 'disabled' : ''} onClick={this.pagePrev}>&lsaquo; Previous</a> <ul className="pagination-list"> {pages} </ul> <a className="pagination-next" disabled={this.state.page >= this.state.pages ? 'disabled' : ''} onClick={this.pageNext}>Next &rsaquo;</a> </nav> </div> </div> : <div className="has-text-centered">No transactions</div> } </div> ) } } <file_sep><?php namespace App\Enums; /** * For usage in \Core\Traits\Constable::getConstName * @package Core\Enums */ class EConstFormat { const NONE = 0; /** Standard format as in code */ const SPACES = (1 << 0); /** Spaces in place of underscores */ const LOWERCASE = (1 << 1); /** All lowercase */ const UPPERCASE_FIRST = (1 << 2) | self::LOWERCASE; /** First letter capitalized */ const TITLE_CASE = (1 << 3) | self::LOWERCASE | self::SPACES; /** Implies SPACES. Each word capitalized. */ } <file_sep>import React from 'react'; export default class CountDownTimer extends React.Component { constructor(props){ super(props); this.id = props.id; this.timer = null; this.state = { isLive : props.islive, timeStamp : props.timestamp }; this.timerTick = this.timerTick.bind(this); } timerTick(){ this.forceUpdate(); } componentDidMount(){ if(!this.state.isLive){ let dt = moment.utc(this.state.timeStamp).local(); let now = moment(); if(now.isBefore(dt)){ this.timer = setInterval(this.timerTick,1000); } } } componentWillUnmount(){ clearInterval(this.timer); } render(){ if(this.state.isLive) return (<div><div className="live-green-dot"></div> Live</div>); else { let dt = moment.utc(this.state.timeStamp).local(); let now = moment(); if(now.isBefore(dt)) { let out =""; let duration = moment.duration(dt.diff(now)); if (duration.get('days') > 0) { out += duration.get("days") + "d "; out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("hours") > 0) { out += duration.get("hours") + "h "; out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("minutes") > 0) { out += duration.get("minutes") + "m "; out += duration.get("seconds") + "s"; } else if (duration.get("seconds") > 0) { out += duration.get("seconds") + "s"; } return (<span>{out}</span>); } else return (<span>Match Over</span>); } } }<file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateItemIndexTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('item_index', function (Blueprint $table) { $table->increments('id'); $table->string('name','245'); $table->string('hashname','245'); $table->integer('app_id'); $table->integer('category_id')->nullable(); $table->integer('wear_id')->nullable(); $table->integer('rarity_id')->nullable(); $table->integer('type_id')->nullable(); $table->string('image_300',245)->nullable(); $table->string('image_600',245)->nullable(); $table->string('market_url',245)->nullable(); $table->string('color',15)->nullable(); $table->double('suggested_price')->default(0); //$table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('item_index'); } } <file_sep>import React from 'react' import BetButton from '../../extra/BetButton' import {betTimerTick} from '../../helper' import local from '../../localization' export default class OtherBets extends React.Component { constructor(props){ super(props); } render(){ if(!this.props.definitions) return '' let rows = [] this.props.definitions.forEach((definition, i) => { if(definition.type != 1) rows.push(<OtherBetRow definition={definition} key={i} />) }) return ( <div className="columns is-mobile other-bets"> {rows} </div> ) } } class OtherBetRow extends React.Component { constructor(props){ super(props); this.state = { isClose: true, status: '' } this.handleClick = this.handleClick.bind(this); } componentDidMount() { this.timerID = setInterval(() => this.tick(), 1000); } componentWillUnmount() { clearInterval(this.timerID); } tick() { if(this.state.status !== local.LOCKED) { this.setState({ status: betTimerTick(this.props.definition.closes_at, this.props.definition.opens_at, this.timerID) }) } } handleClick() { this.setState({ isClose: !this.state.isClose }); } render(){ let options = [] if(!this.state.isClose) Object.keys(this.props.definition.options).forEach((key) => { options.push(<OtherBetRowOption definition={this.props.definition} id={key} key={key} />) }) return ( <div className="column is-12"> <div className="white-box"> <div className="bet-description"> <div className="bet-title">{this.props.definition.desc}</div> <div className="bet-status">{this.state.status}</div> <button className="button-bet small outline" onClick={this.handleClick}>{this.state.isClose ? local.BET : '-'}</button> </div> <div className="bet-choices"> {options} </div> </div> </div> ); } } class OtherBetRowOption extends React.Component { constructor(props){ super(props); } render(){ const option = this.props.definition.options[this.props.id] const odds = this.props.definition.odds[option.pick] || "1.00" return ( <div className="columns is-mobile is-multiline bet-choice"> <div className="column bet-title">{option.desc}</div> <div className="column is-narrow is-6-mobile bet-credits">{local.CREDITS_BET}: {option.bets_credits}</div> <div className="column is-6-mobile bet-odds"> {local.CURRENT_ODDS} X <span className="odds">{odds}</span> </div> <div className="column is-6-mobile"> <BetButton pick_id={option.pick} definition={this.props.definition} style="small" /> </div> </div> ); } }<file_sep>import React from 'react'; import {UserContext} from './UserContext' import {Modal, PlaceBetModal} from './Modal'; import local from '../localization' export default class BetButton extends React.Component { constructor(props){ super(props); this.state = { isOpen: false } this.toggleModal = this.toggleModal.bind(this) } toggleModal() { this.setState({ isOpen: !this.state.isOpen }) } render(){ if(!this.props.definition) return '' return ( <div> <button onClick={ this.toggleModal } className={'button-bet '+(this.props.style || '')} disabled={!this.props.definition.is_active}>{local.BET}</button> { this.props.definition.is_active && ( <UserContext.Consumer> {user => <Modal isOpen={this.state.isOpen} toggleModal={this.toggleModal}> <PlaceBetModal definition={this.props.definition} pick_id={this.props.pick_id} user={user} toggleModal={this.toggleModal} fetchBetsData={this.props.fetchBetsData}/> </Modal> } </UserContext.Consumer> )} </div> ); } }<file_sep>APP_ENV=local APP_DEBUG=true APP_KEY=<KEY> APP_TIMEZONE=UTC LOG_CHANNEL=single LOG_SLACK_WEBHOOK_URL= DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=vgo DB_USERNAME=homestead DB_PASSWORD=<PASSWORD> CACHE_DRIVER=file QUEUE_DRIVER=sync REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 OPSKINS_UID= OPSKINS_API_KEY= OPSKINS_TOTP_SECRET= OPSKINS_HOST=opskins.com OAUTH_CLIENT_ID= OAUTH_SECRET= OAUTH_HOST=https://oauth.opskins.com SESSION_LIFETIME=35791394 SESSION_SECURE_COOKIE=false SESSION_COOKIE=session <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLeaguesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('leagues',function (Blueprint $table) { $table->increments('id'); $table->string('url',245)->nullable(); $table->string('name',245); $table->string('slug',145); $table->dateTime('created_at')->nullable(); $table->dateTime('modified_at')->nullable(); $table->string('image_url',245)->nullable(); $table->tinyInteger('live_supported')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('leagues'); } } <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Teams extends Model { protected $table = "teams"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; public function teamMembers(){ return $this->hasMany(Players::class,'current_team'); } public function videogame(){ return $this->belongsTo(VideogamesIndex::class,'videogame_id'); } } ?><file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class GamesOpponents extends Model { protected $table = "games_opponents"; //protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; public function game(){ return $this->belongsTo(Games::class,'game_id'); } public function team(){ return $this->belongsTo(Teams::class,'teamid'); } public function player(){ return $this->belongsTo(Players::class,'type_id'); } } ?><file_sep><?php namespace App\Models; use App\Auth; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class BetDefinition extends Model { protected $table = "bet_definition"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; protected $dates = ['opens_at', 'closes_at']; protected $appends = ['user_bet', 'user_bets_count', 'user_bets_credits', 'odds', 'is_active', 'bets_count', 'bets_credits']; public function options(){ return $this->hasMany(BetDefinitionOpts::class,'def_id')->orderBy('id', 'asc'); } public function bets(){ return $this->hasMany(Bet::class,'definition'); } public function getActiveBetsAttribute(){ return $this->bets->whereStrict('status', Bet::STATUS_ACTIVE); } public function getOddsBetsAttribute(){ return $this->bets->whereInStrict('status', [Bet::STATUS_ACTIVE, Bet::STATUS_PAID]); } public function getIsActiveAttribute(){ return $this->attributes['status'] == 1 && Carbon::now()->between($this->opens_at, $this->closes_at); } public function getOddsAttribute(){ $total = $this->odds_bets->sum('amount'); $odds = $this->odds_bets->groupBy('pick')->transform(function ($item, $key) use ($total) { return number_format($total/$item->sum('amount'), 2, '.', ''); }); return $odds; } public function getUserBetAttribute(){ /*if(Auth::check()) return $this->odds_bets->where('user_id', Auth::id())->first(); return null;*/ if(Auth::check()) return $this->odds_bets->where('user_id', Auth::id()); return null; } public function getUserBetsCountAttribute(){ if(Auth::check()) return $this->user_bet->count(); return null; } public function getUserBetsCreditsAttribute(){ if(Auth::check()) return $this->user_bet->sum('amount'); return null; } public function getBetsCountAttribute(){ return $this->bets->count(); } public function getBetsCreditsAttribute(){ return $this->bets->sum('amount'); } } <file_sep><?php namespace App\Events; use App\Models\Bet; use App\Models\SiteEvent; class BetPlacedEvent extends Event { public $bet; /** * Create a new event instance. * * @param Bet $bet */ public function __construct(Bet $bet) { $this->bet = $bet; SiteEvent::insert([ 'event_type' => substr(strrchr(__CLASS__, "\\"), 1), 'event_id' => $bet->id, 'match_id' => $bet->match_id, 'by_user' => $bet->user_id ]); } } <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; class CsgoPlayerGame extends Model { public $incrementing = false; protected $table = "csgo_player_game"; protected $primaryKey = ['player_id','csgo_game_id']; public $timestamps = false; protected $guarded = []; public function csgogame(){ return $this->belongsTo('CsgoGame','csgo_game_id'); } public function player(){ return $this->belongsTo('Players','player_id'); } public function team(){ return $this->belongsTo('Teams','team_id'); } protected function getKeyForSaveQuery() { $primaryKeyForSaveQuery = array(count($this->primaryKey)); foreach ($this->primaryKey as $i => $pKey) { $primaryKeyForSaveQuery[$i] = isset($this->original[$this->getKeyName()[$i]]) ? $this->original[$this->getKeyName()[$i]] : $this->getAttribute($this->getKeyName()[$i]); } return $primaryKeyForSaveQuery; } /** * Set the keys for a save update query. * * @param \Illuminate\Database\Eloquent\Builder $query * @return \Illuminate\Database\Eloquent\Builder */ protected function setKeysForSaveQuery(Builder $query) { foreach ($this->primaryKey as $i => $pKey) { $query->where($this->getKeyName()[$i], '=', $this->getKeyForSaveQuery()[$i]); } return $query; } }<file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePlayerTeamsHistoryTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('player_teams_history',function (Blueprint $table) { $table->integer('player_id'); $table->integer('team_id'); $table->date('joined_on')->nullable(); $table->date('left_on')->nullable(); $table->primary(['player_id','team_id','joined_on']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('player_teams_history'); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMatchesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('matches',function (Blueprint $table) { $table->increments('id'); $table->string('name',245); $table->dateTime('begins_at')->nullable(); $table->integer('number_of_games')->default(1); $table->boolean('draw')->default(0); $table->string('status',45)->nullable(); $table->dateTime('modified_at')->nullable(); $table->integer('tournament_id')->default(0); $table->integer('series_id')->default(0); $table->string('match_type')->nullable(); $table->integer('videogame_id')->default(0); $table->string('stub',250)->nullable(); $table->tinyInteger('hide')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('matches'); } } <file_sep><?php namespace App\Traits; /** * Class Lockable * Class requires a static $table or $locktype string * @package Core\Traits */ trait Lockable { /** * Get a lock for this object in Redis. Returns false if lock was not acquired. * @param int $duration Time in seconds this lock should expire after if we crash and don't release it * @param string $type * @param bool $renew Set to true if you already hold the lock but you need to renew it * @return bool */ public function takeLock($duration = 60, $type = 'action', $renew = false) { global $redis; // http://redis.io/commands/setnx has a good locking algorithm $acquired = $redis->setnx($this->getLockKeyName($type), time() . '-' . $_SERVER['SCRIPT_NAME']); if ($acquired || $renew) { $redis->expire($this->getLockKeyName($type), $duration + 1); return true; } return false; } /** * Release our lock so other requests can take it. Returns false if the lock was expired. * @param string $type * @return bool */ public function releaseLock($type = 'action') { global $redis; return !!$redis->del($this->getLockKeyName($type)); } /** * Checks if this object is currently locked. Don't use this if you want to take a lock, use takeLock instead. * @param string $type * @return bool */ public function isLocked($type = 'action') { global $redis; return $redis->get($this->getLockKeyName($type)) !== null; } private function getLockObjectId() { if (!empty($this->id)) { return $this->id; } return $this->id64; } private function getLockKeyName($type) { $locktype = self::getLockName(); $objectid = $this->getLockObjectId(); return "lock-$locktype-$type-$objectid"; } private static function getLockName() { if (!empty(static::$locktype)) { return static::$locktype; } return static::$table; } } <file_sep>import React from 'react'; export default class ItemBlock extends React.Component { constructor(props) { super(props); this.state = { type: props.type || null, itemEnabled: true, buttonEnabled: true, buttonLoading: false, offerStatus: (this.props.item.offer && this.props.item.offer.status === 1 && this.props.item.offer.time_expires > moment().format('X')), offerID: (props.item.offer && this.props.item.offer.status === 1 && this.props.item.offer.time_expires > moment().format('X') ? props.item.offer.id : null) }; this.withdrawSelected = this.withdrawSelected.bind(this); this.purchaseSelected = this.purchaseSelected.bind(this); } withdrawSelected(item) { let self = this; if(item.id > 0) { this.setState({ buttonEnabled: false, buttonLoading: true }, () => { $.ajax({ "url": "/api/Trade/ItemWithdraw", "method": "POST", "data": { items: item.id }, "success": function(res) { var obj = (res); if(obj.status === 1) { self.setState({ buttonEnabled: true, buttonLoading: false, offerStatus: true, offerID: obj.response.offerid }); } else { console.log("Status:", obj.status, obj.message); } }, "error": function(res) { var obj = (res); self.setState({ buttonEnabled: true, buttonLoading: false }); console.log("Status:", obj.status, obj.message); console.log("Error"); } }); }); } } purchaseSelected(item) { let self = this; if(item.id > 0) { if(this.props.user.data) { this.setState({ buttonEnabled: false, buttonLoading: true }, () => { $.ajax({ "url": "/api/Store/BuyItem", "method": "POST", "data": { item_id: item.id }, "success": function(res) { var obj = (res); if(obj.status === 1) { self.setState({ type: 'w', itemEnabled: false, buttonEnabled: true, buttonLoading: false, offerStatus: true, offerID: obj.response.offer_id }); // TODO: update credits available with res.response.credits_remaining } else { console.log("Status:", obj.status, obj.message); } }, "error": function(res) { var obj = (res); self.setState({ buttonEnabled: true, buttonLoading: false }); console.log("Status:", obj.status, obj.message); console.log("Error"); } }); }); } else { window.location.href = "/login"; } } } render() { return ( <label className={'checkbox card is-inline-block vl-item-card' + (this.state.itemEnabled ? '' : ' is-disabled')} id={'item_' + this.props.item.id}> <div className="card-image"> <figure className="image is-16by9"> <img src={this.props.item.preview_urls['thumb_image']} alt={this.props.item.name} /> </figure> </div> <div className="card-content is-paddingless"> <div className="has-text-weight-bold" style={{minHeight: '2rem'}}>{this.props.item.name}</div> <div className="is-pulled-right"> { this.state.type === 'd' ? <input type="checkbox" name="items[]" value={this.props.item.id} onChange={this.props.check} /> : this.state.type === 'p' && this.props.user.data.credits < this.props.item.credits ? <span className={'vl-button is-disabled'}>Purchase</span> : this.state.type === 'p' ? <span className={'vl-button' + (this.state.buttonEnabled ? '' : ' is-disabled')} onClick={() => this.purchaseSelected(this.props.item)}>{this.state.buttonLoading ? <div className='fa fa-spin fa-spinner'></div> : 'Purchase'}</span> : this.state.type === 'w' && this.state.offerStatus ? <a className={'vl-button' + (this.state.buttonEnabled ? '' : ' is-disabled')} href={'https://trade.opskins.com/trade-offers/' + this.state.offerID} target="_blank">{this.state.buttonLoading ? <div className='fa fa-spin fa-spinner'></div> : 'View Offer'}</a> : this.state.type === 'w' && !this.state.offerStatus ? <span className={'vl-button' + (this.state.buttonEnabled ? '' : ' is-disabled')} onClick={() => this.withdrawSelected(this.props.item)}>{this.state.buttonLoading ? <div className='fa fa-spin fa-spinner'></div> : 'Resend Offer'}</span> : null } </div> <div>{this.props.item.credits} credits</div> </div> </label> ); } }<file_sep>#!/bin/bash cd /var/www/vgo-www # Update composer sudo composer install --no-dev --no-scripts --optimize-autoloader # Setup the various file and folder permissions for Lumen sudo chown -R www-data:www-data /var/www/vgo-www sudo find /var/www/vgo-www -type f -exec chmod 644 {} \; sudo find /var/www/vgo-www -type d -exec chmod 755 {} \; sudo chgrp -R www-data storage/framework/cache sudo chmod -R ug+rwx storage/framework/cache # Run artisan commands for Lumen php artisan cache:clear # Restart Lumen queue workers by restarting supervisor #sudo supervisorctl restart all<file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Proxy extends Model { protected $primaryKey = null; public $timestamps = false; protected $dates = [ 'created_at' ]; } <file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class CsgoGame extends Model { protected $table = "csgo_game"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; public function isDraw(){ return $this->team_1_score == $this->team_2_score; } public function winner_id(){ return (($this->team_1_score > $this->team_2_score)?$this->team_1_id:(($this->team_2_score > $this->team_1_score)?$this->team_2_id:0)); } public function game(){ return $this->belongsTo(Games::class,'game_id'); } public function match(){ return $this->belongsTo(Matches::class,'match_id'); } public function team1(){ return $this->belongsTo(Teams::class,'team_1_id'); } public function team2(){ return $this->belongsTo(Teams::class,'team_2_id'); } public function players(){ return $this->hasMany(CsgoPlayerGame::class,'csgo_game_id'); } }<file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Transaction extends Model { protected $table = "transaction_log"; protected $primaryKey = 'id'; public $timestamps = false; protected $dates = ['timestamp']; public const TYPE_ITEM_DEPOSIT = 1; // *Items deposited public const TYPE_ITEM_WITHDRAW = 2; // *Items withdrawn public const TYPE_STORE_BUY = 3; // *Store purchase public const TYPE_STORE_SELL = 4; // Re-sell store purchase (not used) public const TYPE_BET_PLACE = 5; // *Place a bet public const TYPE_BET_CANCEL = 6; // *Cancel a bet (not used) public const TYPE_BET_PAYOUT = 7; // *Payout from bet win public const TYPE_CREDIT_COMP = 8; // *Free credits granted public const TYPE_CREDIT_REFUND = 9; // Credit refund (granted) public function user() { return $this->belongsTo(User::class); } public function deposits() { return $this->hasMany(TradeDeposit::class, 'offer_id', 'offer'); } public function withdraws() { return $this->hasMany(TradeWithdraw::class, 'offer_id', 'offer'); } } <file_sep><?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePlayersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('players',function (Blueprint $table) { $table->increments('id'); $table->string('url',245)->nullable(); $table->string('name',245); $table->string('first_name',145); $table->string('last_name',145); $table->string('slug',45)->nullable(); $table->text('bio')->nullable(); $table->string('role','45')->nullable(); $table->string('hometown','45')->nullable(); $table->string('image_url',245)->nullable(); $table->integer('current_team')->nullable(); $table->integer('current_videogame')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('players'); } } <file_sep>import React from 'react'; import MatchBlock from './FrontPage/MatchBlock'; import MatchBlockRow from './FrontPage/MatchBlockRow'; import TopMenu from './FrontPage/TopMenu'; import SideMenu from './FrontPage/SideMenu'; /* * The Front Page this is the default match view. * This page will then call the BlockView which comes from MatchBlock or in a horizontal MatchBlockRow view * There is also a TopMenu or DropDownMenu * */ export default class FrontPage extends React.Component { menuItemClick(item){ let key = item.key; let type =item.type; let filtertype = item.filterType; if(type == "navigation"){ this.loadPage(key); } else if(type == "filter"){ let obj = {}; obj[filtertype] = key; this.setState(obj); } } constructor(props) { super(props); this.menuItemClick = this.menuItemClick.bind(this); this.id = props.id; let menuitems = [{ 'id':'live_menu', 'defaultText':'Live', 'expanded':true, 'align':'left', 'defaultIcon':'fa-exclamation', 'menu':[{ text:" Live ", 'icon':'fa-eye', 'key':'live', 'type':'navigation', 'disabled': false, "onclick":this.menuItemClick }, { text:" Upcoming ", 'key':'upcoming', 'type':'navigation', 'icon':'fa-fast-forward', 'disabled': false, "onclick":this.menuItemClick }, { text:" Past", 'key':'past', 'type':'navigation', 'icon':'fa-clock', 'disabled': false, "onclick":this.menuItemClick }]}, { 'id':'game_menu', 'align':'left', 'defaultText':'Game', 'expanded':false, 'defaultIcon':'fa-steam-symbol', 'menu':[{ text: " CSGO ", 'icon': 'fa-steam-symbol', 'key':'game-csgo', 'type':'filter', 'filterType':'game', 'disabled': false, "onclick": this.menuItemClick }] }, { 'id':'tournament_menu', 'defaultText':'League', 'expanded':false, 'align':'right', 'type':'filter', 'filterType':'league', 'defaultIcon':'fa-chess-king', 'menu':[] } ]; this.menus = menuitems; this.state = { 'search':'', 'status':'', 'game':'', 'league':'', 'isloading':false, 'menu':this.menus, 'view':'stacked', matches:[] }; this.viewChangeClick = this.viewChangeClick.bind(this); this.handleData = this.handleData.bind(this); } componentDidMount(){ this.loadPage("past"); } getUrl(page){ if(page == "live"){ return "/api/Matches/LiveMatches"; } else if(page == "past"){ return "/api/Matches/PastMatches"; } else if(page == "upcoming"){ return "/api/Matches/UpcomingMatches"; } } loadPage(page){ this.currentPage = page; this.setState({isloading:true}); this.loadData(this.getUrl(page),page); } applyFilters(data){ let final_dat = []; let me = this; if(this.state.search != "" || this.state.game != '' || this.state.league != ''){ final_dat = data.filter(function(i) { if(me.state.search != ""){ let sterm = me.state.search; if(i.name.toUpperCase().indexOf(sterm.toUpperCase()) != -1 || i.league.name.toUpperCase().indexOf(sterm.toUpperCase()) != -1 || i.series.name.toUpperCase().indexOf(sterm.toUpperCase()) != -1 || i.tournament.name.toUpperCase().indexOf(sterm.toUpperCase()) != -1 || i.team1.name.toUpperCase().indexOf(sterm.toUpperCase()) != -1 || i.team2.name.toUpperCase().indexOf(sterm.toUpperCase()) != -1 ) { return true; } else return false; } if(me.state.league != ''){ let sterm = me.state.league; if(i.league.name.toUpperCase().indexOf(sterm.toUpperCase()) != -1){ return true; } else return false; } if (me.state.game != ''){ return true; } }); } else { final_dat = data; } return final_dat; } getLeagueList(data){ let league_list = []; for(let i=0; i < data.length; i++){ if(league_list.indexOf(data[i].league.name) == -1){ league_list.push(data[i].league.name); } } return league_list; } getGamesList(data){ return ['CSGO']; } handleData(data){ if(data.status == "1"){ let res = data.response; let matches = data.response.matches; //let final_data = this.applyFilters(data); let leagues = this.getLeagueList(matches); let games = this.getGamesList(matches); let menu_copy = this.state.menu; for(let i =0; i < menu_copy.length; i++){ if(menu_copy[i].id == "tournament_menu"){ let final_menu = [{ text: 'All', 'icon': 'fa-trophy', 'key':'', 'type':'filter', 'filterType':'league', 'disabled': false, "onclick": this.menuItemClick}]; for(let c=0; c < leagues.length; c++){ final_menu.push({ text: leagues[c], 'icon': 'fa-trophy', 'key':leagues[c], 'type':'filter', 'filterType':'league', 'disabled': false, "onclick": this.menuItemClick }); } menu_copy[i].menu = final_menu; } } this.setState({matches:matches,menu:menu_copy,isloading:0}); } } viewChangeClick(e){ let target = e.currentTarget; let view = $(target).attr('data-view'); this.setState({view:view}); } loadData(url,page){ let me = this; $.ajax({url:url,"success":function(res){ me.handleData(res); },"error":function(){ console.log("opps something went wrong in fetch match data"); }}) } render() { let matches = this.applyFilters(this.state.matches); if(this.state.isloading){ return (<div className="fullscreen-block has-text-centered has-text-white" style={{"padding":"20px"}}><span className="fa fa-spinner fa-spin fa-4x"/></div>); } let isstacked = ""; let isrow = ""; if(this.state.view == "stacked") isstacked = "is-selected"; else isrow = "is-selected"; let viewicons = (<div className="columns is-hidden-mobile"> <div className="column is-fullwidth"> <div className="is-pulled-right side-icons"> <div className={"stacked-icon display-icon clickable "+isstacked} onClick={this.viewChangeClick} data-view="stacked"></div> <div className={"row-icon display-icon clickable "+isrow} onClick={this.viewChangeClick} data-view="row"></div> </div> </div> </div>); let match_block = []; if(this.state.view == "stacked"){ let temp_match_block = []; for(let i =0; i < matches.length; i++){ if((i % 3) == 0 && i > 0) { match_block.push(<div key={"match_block_rows_"+i} className="match-block-container"><div className="max-width">{temp_match_block}</div></div>); temp_match_block = []; } temp_match_block.push(<MatchBlock key={"match_id_"+matches[i].id} match={matches[i]}/>); } if(match_block.length == 0 && matches.length != 0){ match_block.push(<div key={"match_block_rows_"+1} className="match-block-container"><div className="max-width">{temp_match_block}</div></div>); } //let finalele =<div>{match_block}</div>; //match_block = match_block; } else { for(let i =0; i < matches.length; i++){ match_block.push(<MatchBlockRow key={"match_id_"+matches[i].id} match={matches[i]}/>) } } return (<div id="front_page"> <div className='is-fullwidth has-text-centered content'> <br/> <span className='heading-h1'>MATCHES</span> </div> <div className="columns is-mobile is-hidden-desktop"> <div className="column has-text-centered"> <TopMenu menuitems={this.state.menu} /> </div> </div> {viewicons} <div className="columns"> <div className="column is-2-desktop" style={{"paddingLeft":"10px"}}> <div className="is-hidden-mobile"> <SideMenu menuitems={this.state.menu}/> </div> </div> <div className="column is-1-desktop"></div> <div className="column is-9-desktop"> {match_block} </div> </div> </div>); } }<file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Players extends Model { protected $table = "players"; protected $primaryKey = 'id'; public $timestamps = false; protected $guarded = []; public function currentTeam(){ return $this->belongsTo(Teams::class,'current_team'); } public function currentVideogame(){ return $this->belongsTo(VideogamesIndex::class,'current_videogame'); } public function pastTeams(){ return $this->hasMany(PlayerTeamsHistory::class,'player_id')->orderBy('joined_on'); } } ?><file_sep><?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class MatchStream extends Model { protected $primaryKey = 'match_id'; public $incrementing = false; public $timestamps = false; protected $guarded = []; public function match(){ return $this->belongsTo(Matches::class); } } ?>
357837ec18e4ebb0381bbb7c6e92ba652cca5fe1
[ "JavaScript", "Markdown", "PHP", "Shell" ]
96
PHP
snax4a/vlounge
fc45fa10098d421b049ebd6b92adb147a49b4a0f
1daa400f248b9c491949ff7f200acbac07e28888
refs/heads/master
<file_sep>/** * @file include/dbschema/dbSchemaValues.h * @brief This generated file contains the default value definitions * for all datapoints. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbSchemaValues_h.xsl : 12423 bytes, CRC32 = 2693713920 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMAVALUES_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMAVALUES_H_ /**The default value definitions for all numeric datapoints * Arguments: name, value * name The datapoint name * value The default datapoint value */ #define DB_DEFAULT_NUM_VALUES \ \ \ \ DB_DEFAULT_INT32_VALUE( CntOpsOsm, 0x0 ) \ DB_DEFAULT_INT32_VALUE( AuxVoltage, 0xF0 ) \ DB_DEFAULT_INT32_VALUE( LoadProfDefAddr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( LoadProfValAddr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsCntErr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsCntTxd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsCntRxd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsAuxCntErr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsAuxCntTxd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsAuxCntRxd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ProtGlbUsys, 0x9470 ) \ DB_DEFAULT_INT32_VALUE( ProtGlbLsdLevel, 0x7D0 ) \ DB_DEFAULT_INT32_VALUE( MicrokernelFsType, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HmiErrMsg, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterCallDropouts, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterCallFails, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCUa, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCUb, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCUc, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCUr, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCUs, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCUt, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCIa, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCIb, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCIc, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( SwitchCoefCIn, 0x7FFF ) \ DB_DEFAULT_INT32_VALUE( TimeZone, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DbugCmsSerial, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ProtTstSeq, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ProtTstLogStep, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ProtCfgBase, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OcAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EfAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_SefAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_ArOCEF_Trec1, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_ArOCEF_Trec2, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G1_ArOCEF_Trec3, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G1_ResetTime, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( G1_TtaTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_ClpClm, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_ClpTcl, 0xF ) \ DB_DEFAULT_INT32_VALUE( G1_ClpTrec, 0xF ) \ DB_DEFAULT_INT32_VALUE( G1_IrrIrm, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_IrrTir, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_VrcUMmin, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_OC3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_OC3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OC2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_OC3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OC3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_OC3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_G1EF1F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_G1EF2F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_EF3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_EF3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_G1EF1R_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EF2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_EF3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EF3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_EF3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFF_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFF_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFR_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFR_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFR_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OcLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G1_OcLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G1_OcLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EfLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G1_EfLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G1_EfLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv1_Um, 0x352 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv2_Um, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv3_TDtMin, 0xEA60 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov1_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G1_Ov1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov2_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G1_Ov2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Uf_Fp, 0xC15C ) \ DB_DEFAULT_INT32_VALUE( G1_Uf_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Uf_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Of_Fp, 0xC544 ) \ DB_DEFAULT_INT32_VALUE( G1_Of_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Of_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_OC1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_OC2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_OC1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_OC2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_EF1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_EF2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_EF1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_DEPRECATED_EF2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_AbrTrest, 0x186A0 ) \ DB_DEFAULT_INT32_VALUE( G1_ArUVOV_Trec, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( DNP3_ModemAutoDialInterval, 0x3 ) \ DB_DEFAULT_INT32_VALUE( CMS_ModemAutoDialInterval, 0x3 ) \ DB_DEFAULT_INT32_VALUE( DNP3_ModemConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( CMS_ModemConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( CmsSerialFrameRxTimeout, 0xF ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BClockValidPeriod, 0x15180 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BSinglePointBaseIOA, 0x1 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BDoublePointBaseIOA, 0x3E9 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BSingleCmdBaseIOA, 0x7D0 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BDoubleCmdBaseIOA, 0xBB8 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BMeasurandBaseIOA, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BSetpointBaseIOA, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BParamCmdBaseIOA, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BIntTotBaseIOA, 0x9C40 ) \ DB_DEFAULT_INT32_VALUE( CmsMainConnectionTimeout, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( CmsAuxConnectionTimeout, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3IpTimeout, 0x15180 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3IpTcpKeepAlive, 0x14 ) \ DB_DEFAULT_INT32_VALUE( T101_ModemAutoDialInterval, 0x3 ) \ DB_DEFAULT_INT32_VALUE( T101_ModemConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( CanSimReadTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanSimDisableWatchdog, 0x4C1 ) \ DB_DEFAULT_INT32_VALUE( CanSimReadHWVers, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OcAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EfAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_SefAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ArOCEF_Trec1, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_ArOCEF_Trec2, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G2_ArOCEF_Trec3, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G2_ResetTime, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( G2_TtaTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ClpClm, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_ClpTcl, 0xF ) \ DB_DEFAULT_INT32_VALUE( G2_ClpTrec, 0xF ) \ DB_DEFAULT_INT32_VALUE( G2_IrrIrm, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_IrrTir, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_VrcUMmin, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_OC3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_OC3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OC2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_OC3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OC3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_OC3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_G1EF1F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_G1EF2F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_EF3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_EF3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_G1EF1R_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EF2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_EF3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EF3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_EF3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFF_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFF_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFR_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFR_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFR_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OcLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G2_OcLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G2_OcLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EfLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G2_EfLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G2_EfLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv1_Um, 0x352 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv2_Um, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv3_TDtMin, 0xEA60 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov1_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G2_Ov1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov2_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G2_Ov2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Uf_Fp, 0xC15C ) \ DB_DEFAULT_INT32_VALUE( G2_Uf_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Uf_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Of_Fp, 0xC544 ) \ DB_DEFAULT_INT32_VALUE( G2_Of_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Of_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_OC1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_OC2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_OC1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_OC2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_EF1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_EF2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_EF1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_DEPRECATED_EF2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_AbrTrest, 0x186A0 ) \ DB_DEFAULT_INT32_VALUE( G2_ArUVOV_Trec, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3RqstCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanIo1ReadHwVers, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanIo2ReadHwVers, 0x0 ) \ DB_DEFAULT_INT32_VALUE( p2pCommUpdateRates, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_OcAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EfAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_SefAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ArOCEF_Trec1, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_ArOCEF_Trec2, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G3_ArOCEF_Trec3, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G3_ResetTime, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( G3_TtaTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ClpClm, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_ClpTcl, 0xF ) \ DB_DEFAULT_INT32_VALUE( G3_ClpTrec, 0xF ) \ DB_DEFAULT_INT32_VALUE( G3_IrrIrm, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_IrrTir, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_VrcUMmin, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_OC3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_OC3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OC2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_OC3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OC3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_OC3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_G1EF1F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_G1EF2F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_EF3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_EF3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_G1EF1R_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EF2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_EF3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EF3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_EF3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFF_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFF_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFR_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFR_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFR_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OcLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G3_OcLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G3_OcLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EfLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G3_EfLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G3_EfLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv1_Um, 0x352 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv2_Um, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv3_TDtMin, 0xEA60 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov1_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G3_Ov1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov2_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G3_Ov2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Uf_Fp, 0xC15C ) \ DB_DEFAULT_INT32_VALUE( G3_Uf_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Uf_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Of_Fp, 0xC544 ) \ DB_DEFAULT_INT32_VALUE( G3_Of_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Of_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_OC1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_OC2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_OC1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_OC2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_EF1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_EF2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_EF1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_DEPRECATED_EF2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_AbrTrest, 0x186A0 ) \ DB_DEFAULT_INT32_VALUE( G3_ArUVOV_Trec, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( ScadaT104TimeoutT3, 0x14 ) \ DB_DEFAULT_INT32_VALUE( ACO_Debug, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ACO_TPup, 0x64 ) \ DB_DEFAULT_INT32_VALUE( p2pMappedUI32_0, 0x0 ) \ DB_DEFAULT_INT32_VALUE( p2pMappedUI32_1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OcAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EfAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_SefAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ArOCEF_Trec1, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_ArOCEF_Trec2, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G4_ArOCEF_Trec3, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G4_ResetTime, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( G4_TtaTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ClpClm, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_ClpTcl, 0xF ) \ DB_DEFAULT_INT32_VALUE( G4_ClpTrec, 0xF ) \ DB_DEFAULT_INT32_VALUE( G4_IrrIrm, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_IrrTir, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_VrcUMmin, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_OC3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_OC3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OC2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_OC3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OC3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_OC3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_G1EF1F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_G1EF2F_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_EF3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_EF3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_G1EF1R_Tres, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EF2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_EF3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EF3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_EF3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFF_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFF_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFR_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFR_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFR_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OcLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G4_OcLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G4_OcLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EfLl_Ip, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G4_EfLl_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G4_EfLl_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv1_Um, 0x352 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv2_Um, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv3_TDtMin, 0xEA60 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov1_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G4_Ov1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov2_Um, 0x47E ) \ DB_DEFAULT_INT32_VALUE( G4_Ov2_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Uf_Fp, 0xC15C ) \ DB_DEFAULT_INT32_VALUE( G4_Uf_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Uf_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Of_Fp, 0xC544 ) \ DB_DEFAULT_INT32_VALUE( G4_Of_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Of_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_OC1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_OC2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_OC1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_OC2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_EF1F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_EF2F_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_EF1R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_DEPRECATED_EF2R_ImaxAbs, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_AbrTrest, 0x186A0 ) \ DB_DEFAULT_INT32_VALUE( G4_ArUVOV_Trec, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( ACO_TPupPeer, 0x64 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3CommunicationWatchDogTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaT10BCommunicationWatchDogTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IaLGVT, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IcLGVT, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IaMDIToday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IbMDIToday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IcMDIToday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IaMDIYesterday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IbMDIYesterday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IcMDIYesterday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IaMDILastWeek, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IbMDILastWeek, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IcMDILastWeek, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IbLGVT, 0x0 ) \ DB_DEFAULT_INT32_VALUE( IdRelayNumModel, 0x0 ) \ DB_DEFAULT_INT32_VALUE( QueryGpio, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIaTDD, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIbTDD, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIcTDD, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUaTHD, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUbTHD, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUcTHD, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmInTDD, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa1st, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb1st, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc1st, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn1st, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsPortBaud, 0x2712 ) \ DB_DEFAULT_INT32_VALUE( DEPRECATED_CmsAuxPortBaud, 0x2712 ) \ DB_DEFAULT_INT32_VALUE( CmsPortCrcCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsAuxPortCrcCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa1st, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ProtCfgInUse, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb1st, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc1st, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa2nd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb2nd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc2nd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn2nd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa2nd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrOcATrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrOcBTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrOcCTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrEfTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrSefTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrUvTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrOvTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrUfTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrOfTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MechanicalWear, 0x0 ) \ DB_DEFAULT_INT32_VALUE( BreakerWear, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasCurrIa, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasCurrIb, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasCurrIc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasCurrIn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUa, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUb, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUab, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUbc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUca, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUs, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUrs, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUst, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUtr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasFreqabc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasFreqrst, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhase3kVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhase3kW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhase3kVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseAkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseAkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseAkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseBkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseBkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseBkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseCkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseCkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseCkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerFactor3phase, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerFactorAphase, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerFactorBphase, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerFactorCphase, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb2nd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhase3FkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhase3FkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhase3FkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseAFkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseAFkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseAFkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseBFkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseBFkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseBFkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseCFkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseCFkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseCFkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhase3RkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhase3RkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhase3RkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseARkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseARkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseARkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseBRkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseBRkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseBRkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseCRkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseCRkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasEnergyPhaseCRkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc2nd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa3rd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb3rd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc3rd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn3rd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa3rd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb3rd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasCurrI1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasCurrI2, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUar, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUbs, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUct, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltU0, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltU1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltU2, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasA0, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasA1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasA2, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPhSABC, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPhSRST, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc3rd, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa4th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb4th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc4th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn4th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa4th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb4th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc4th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa5th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseF3kVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseF3kW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseF3kVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFAkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFAkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFAkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFBkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFBkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFBkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFCkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFCkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseFCkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseR3kVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseR3kW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseR3kVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRAkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRAkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRAkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRBkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRBkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRBkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRCkVA, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRCkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseRCkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb5th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrg3FkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrg3FkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrg3FkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgAFkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgAFkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgAFkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgBFkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgBFkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgBFkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgCFkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgCFkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgCFkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrg3RkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrg3RkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrg3RkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgARkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgARkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgARkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgBRkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgBRkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgBRkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgCRkVAh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgCRkVArh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasLoadProfEnrgCRkWh, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc5th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn5th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa5th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb5th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( protLifeTickCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc5th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenLinkSlaveAddr, 0x5 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenLinkConfirmationTimeout, 0x3 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenLinkMaxRetries, 0x2 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenLinkMaxTransFrameSize, 0x124 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenAppSBOTimeout, 0x5 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenAppConfirmationTimeout, 0x54 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenAppNeedTimeDelay, 0x5A0 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenAppColdRestartDelay, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenAppWarmRestartDelay, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenMasterAddr, 0x3 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenRetryDelay, 0x3C ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenRetries, 0xFF ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenOfflineInterval, 0x12C ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenClass1Events, 0x3 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenClass1Delays, 0x3 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenClass2Events, 0x5 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenClass2Delays, 0x5 ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenClass3Events, 0xA ) \ DB_DEFAULT_INT32_VALUE( ScadaDnp3GenClass3Delays, 0xA ) \ DB_DEFAULT_INT32_VALUE( HrmIa6th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ProtStatusState, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb6th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanSimOSMDisableActuatorTest, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc6th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn6th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa6th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb6th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DbugDbServer, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DEPRECATED_HmiServerLifeTickCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DEPRECATED_HmiPanelLifeTickCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanSimPower, 0x0 ) \ DB_DEFAULT_INT32_VALUE( OC_SP1, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( OC_SP2, 0x351 ) \ DB_DEFAULT_INT32_VALUE( OC_SP3, 0x46 ) \ DB_DEFAULT_INT32_VALUE( KA_SP1, 0xD6D80 ) \ DB_DEFAULT_INT32_VALUE( KA_SP2, 0x2F9B80 ) \ DB_DEFAULT_INT32_VALUE( KA_SP3, 0xBEBC20 ) \ DB_DEFAULT_INT32_VALUE( TripCnta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripCntb, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripCntc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( BreakerWeara, 0x0 ) \ DB_DEFAULT_INT32_VALUE( BreakerWearb, 0x0 ) \ DB_DEFAULT_INT32_VALUE( BreakerWearc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( RelayWdResponseTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ActiveSwitchPositionStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( RelayCTaCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCTbCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCTcCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCTaCalCoefHi, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCTbCalCoefHi, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCTcCalCoefHi, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCTnCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCVTaCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCVTbCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCVTcCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCVTrCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCVTsCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( RelayCVTtCalCoef, 0xFFFFB2AA ) \ DB_DEFAULT_INT32_VALUE( scadaPollPeriod, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( scadaPollCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc6th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa7th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb7th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc7th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn7th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa7th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb7th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc7th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa8th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb8th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc8th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn8th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa8th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb8th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc8th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa9th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb9th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc9th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn9th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa9th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb9th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc9th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa10th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb10th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc10th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn10th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa10th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb10th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc10th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa11th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb11th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc11th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn11th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa11th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb11th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc11th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa12th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb12th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc12th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn12th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa12th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb12th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc12th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa13th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb13th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc13th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn13th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa13th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb13th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc13th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa14th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb14th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc14th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn14th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa14th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb14th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc14th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIa15th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIb15th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIc15th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmIn15th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUa15th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUb15th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmUc15th, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_SerialDTRLowTime, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_SerialTxDelay, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_SerialPreTxTime, 0xFA ) \ DB_DEFAULT_INT32_VALUE( G1_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G1_SerialCharTimeout, 0x2 ) \ DB_DEFAULT_INT32_VALUE( G1_SerialPostTxTime, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G1_SerialMinIdleTime, 0x7D0 ) \ DB_DEFAULT_INT32_VALUE( G1_SerialMaxRandomDelay, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G1_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G1_WlanKeyIndex, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G2_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G2_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G2_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G2_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G2_WlanKeyIndex, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G3_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G3_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G3_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G3_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G3_WlanKeyIndex, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G4_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G4_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G4_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G4_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G4_WlanKeyIndex, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( TripMaxCurrIa, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxCurrIb, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxCurrIc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxCurrIn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMinVoltP2P, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxVoltP2P, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMinFreq, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxFreq, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterFramesTx, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterFramesRx, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterErrorLength, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterErrorCrc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterBufferC2, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ScadaCounterBufferC3, 0x0 ) \ DB_DEFAULT_INT32_VALUE( UsbDiscUpdateCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G5_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G5_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G5_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G5_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G5_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G5_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G6_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G6_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G6_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G6_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G6_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G6_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G6_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G7_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G7_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G7_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G7_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G7_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G7_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G7_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G8_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G8_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G8_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G8_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G8_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G8_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G8_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_VTHD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_VTHD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_ITDD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_ITDD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_Ind_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_IndA_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_IndB_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_IndC_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_IndD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G1_Hrm_IndE_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_OCLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_VTHD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_VTHD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_ITDD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_ITDD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_Ind_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_IndA_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_IndB_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_IndC_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_IndD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G2_Hrm_IndE_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_OCLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_VTHD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_VTHD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_ITDD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_ITDD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_Ind_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_IndA_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_IndB_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_IndC_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_IndD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G3_Hrm_IndE_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_OCLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_VTHD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_VTHD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_ITDD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_ITDD_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_Ind_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_IndA_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_IndB_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_IndC_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_IndD_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G4_Hrm_IndE_Level, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_OCLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( CntrHrmTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxHrm, 0x0 ) \ DB_DEFAULT_INT32_VALUE( InMDIToday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( InMDIYesterday, 0x0 ) \ DB_DEFAULT_INT32_VALUE( InMDILastWeek, 0x0 ) \ DB_DEFAULT_INT32_VALUE( InterruptDuration, 0x3C ) \ DB_DEFAULT_INT32_VALUE( InterruptShortABCCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( InterruptShortRSTCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( InterruptLongABCCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( InterruptLongRSTCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SagNormalThreshold, 0x384 ) \ DB_DEFAULT_INT32_VALUE( SagMinThreshold, 0x64 ) \ DB_DEFAULT_INT32_VALUE( SagTime, 0x14 ) \ DB_DEFAULT_INT32_VALUE( SwellNormalThreshold, 0x44C ) \ DB_DEFAULT_INT32_VALUE( SwellTime, 0x14 ) \ DB_DEFAULT_INT32_VALUE( SagSwellResetTime, 0x32 ) \ DB_DEFAULT_INT32_VALUE( SagABCCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SagRSTCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SwellABCCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SwellRSTCnt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( HrmLogTHDDeadband, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( HrmLogTDDDeadband, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( HrmLogIndivIDeadband, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( HrmLogIndivVDeadband, 0x7A120 ) \ DB_DEFAULT_INT32_VALUE( G11_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G11_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G11_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G11_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_ModemAutoDialInterval, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G11_ModemConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G11_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G11_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G11_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G11_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( CntrNpsTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxCurrI2, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NpsAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_NPS3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL3_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL3_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G1_NPSLL3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_EFLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFLL_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFLL_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFLL_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv4_Um_min, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv4_Um_max, 0x384 ) \ DB_DEFAULT_INT32_VALUE( G1_Uv4_Um_mid, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_LlbUM, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov3_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov3_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov4_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Ov4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_OV3MovingAverageWindow, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G1_I2I1_Pickup, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G1_I2I1_MinI2, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G1_I2I1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_I2I1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFF_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFR_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G1_SEFLL_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G1_SSTControl_Tst, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( G2_NpsAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_NPS3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL3_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL3_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G2_NPSLL3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_EFLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFLL_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFLL_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFLL_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv4_Um_min, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv4_Um_max, 0x384 ) \ DB_DEFAULT_INT32_VALUE( G2_Uv4_Um_mid, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_LlbUM, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov3_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov3_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov4_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Ov4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_OV3MovingAverageWindow, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G2_I2I1_Pickup, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G2_I2I1_MinI2, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G2_I2I1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_I2I1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFF_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFR_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G2_SEFLL_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G2_SSTControl_Tst, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( G3_NpsAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_NPS3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL3_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL3_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G3_NPSLL3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_EFLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFLL_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFLL_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFLL_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv4_Um_min, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv4_Um_max, 0x384 ) \ DB_DEFAULT_INT32_VALUE( G3_Uv4_Um_mid, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_LlbUM, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov3_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov3_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov4_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Ov4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_OV3MovingAverageWindow, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G3_I2I1_Pickup, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G3_I2I1_MinI2, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G3_I2I1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_I2I1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFF_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFR_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G3_SEFLL_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G3_SSTControl_Tst, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( G4_NpsAt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2F_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS3F_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS3F_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS3F_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS1R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS2R_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS3R_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS3R_TDtMin, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_NPS3R_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_TDtMin, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL3_Ip, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL3_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G4_NPSLL3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL1_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_Ip, 0x12C ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_Tm, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_Imin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_Tmin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_Tmax, 0x1D4C0 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_Ta, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_EFLL2_Imax, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFLL_Ip, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFLL_TDtMin, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFLL_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv4_Um_min, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv4_Um_max, 0x384 ) \ DB_DEFAULT_INT32_VALUE( G4_Uv4_Um_mid, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_LlbUM, 0x320 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov3_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov3_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov3_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov4_Um, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov4_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Ov4_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_OV3MovingAverageWindow, 0x1388 ) \ DB_DEFAULT_INT32_VALUE( G4_I2I1_Pickup, 0x4E20 ) \ DB_DEFAULT_INT32_VALUE( G4_I2I1_MinI2, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G4_I2I1_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_I2I1_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFF_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFR_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G4_SEFLL_Ip_HighPrec, 0x3A98 ) \ DB_DEFAULT_INT32_VALUE( G4_SSTControl_Tst, 0x7530 ) \ DB_DEFAULT_INT32_VALUE( UsbDiscInstallCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( StackCheckInterval, 0x12C ) \ DB_DEFAULT_INT32_VALUE( TripMinVoltUv4, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DurMonUpdateInterval, 0x3C ) \ DB_DEFAULT_INT32_VALUE( MechanicalWeara, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MechanicalWearb, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MechanicalWearc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( BatteryTestInterval, 0x1E ) \ DB_DEFAULT_INT32_VALUE( BatteryTestIntervalUnits, 0x5A0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseS3kW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseS3kVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseSAkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseSAkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseSBkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseSBkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseSCkW, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasPowerPhaseSCkVAr, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850PktsRx, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850PktsTx, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850RxErrPkts, 0x0 ) \ DB_DEFAULT_INT32_VALUE( GOOSE_TxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850TestAI1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850TestAI2, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850DiagCtrl, 0x0 ) \ DB_DEFAULT_INT32_VALUE( LogicChEnableExt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( LogicChPulseEnableExt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( LogicChLogChangeExt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_ExpectSessKeyChangeCount, 0x7D0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_UnexpectedMsgCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_AuthorizeFailCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_AuthenticateFailCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_ReplyTimeoutCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_RekeyCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_TotalMsgTxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_TotalMsgRxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_CriticalMsgTxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_CriticalMsgRxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_DiscardedMsgCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_AuthenticateSuccessCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_ErrorMsgTxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_ErrorMsgRxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_SessKeyChangeCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DNP3SA_FailedSessKeyChangeCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasVoltUn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxVoltUn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxVoltU2, 0x0 ) \ DB_DEFAULT_INT32_VALUE( UsbDiscUpdateDirFileCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( GOOSE_RxCount, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsClientCapabilities, 0x3 ) \ DB_DEFAULT_INT32_VALUE( Gps_Longitude, 0x0 ) \ DB_DEFAULT_INT32_VALUE( Gps_Latitude, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G12_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G12_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G12_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_ModemAutoDialInterval, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G12_ModemConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G12_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G12_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G12_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G12_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G12_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G13_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G13_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G13_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_ModemAutoDialInterval, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G13_ModemConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G13_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G13_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G13_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G13_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( SyncAutoWaitingTime, 0xC8 ) \ DB_DEFAULT_INT32_VALUE( SyncAdvanceAngle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SyncSlipFreq, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SyncMaxDeltaPhase, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850CIDFileCheck, 0x0 ) \ DB_DEFAULT_INT32_VALUE( SyncFundFreq, 0xC350 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_Um, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_Ioper, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_FwdSusceptance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_RevSusceptance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_FwdConductance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_Yn_RevConductance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G1_DE_EF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_DE_EF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_DE_EF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_DE_EF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_DE_EF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_DE_SEF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G1_DE_SEF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_DE_SEF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_DE_SEF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_DE_SEF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G1_ROCOF_Pickup, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G1_ROCOF_TDtMin, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G1_ROCOF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_VVS_Pickup, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_VVS_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_VVS_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_PDOP_Pickup, 0x96 ) \ DB_DEFAULT_INT32_VALUE( G1_PDOP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_PDOP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_PDOP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_PDUP_Pickup, 0x2 ) \ DB_DEFAULT_INT32_VALUE( G1_PDUP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G1_PDUP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G1_PDUP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G1_PDUP_TDtDis, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_Um, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_Ioper, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_FwdSusceptance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_RevSusceptance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_FwdConductance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_Yn_RevConductance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G2_DE_EF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_DE_EF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_DE_EF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_DE_EF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_DE_EF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_DE_SEF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G2_DE_SEF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_DE_SEF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_DE_SEF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_DE_SEF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G2_ROCOF_Pickup, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G2_ROCOF_TDtMin, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G2_ROCOF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_VVS_Pickup, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_VVS_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_VVS_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_PDOP_Pickup, 0x96 ) \ DB_DEFAULT_INT32_VALUE( G2_PDOP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_PDOP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_PDOP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_PDUP_Pickup, 0x2 ) \ DB_DEFAULT_INT32_VALUE( G2_PDUP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G2_PDUP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G2_PDUP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G2_PDUP_TDtDis, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_Um, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_Ioper, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_FwdSusceptance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_RevSusceptance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_FwdConductance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_Yn_RevConductance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G3_DE_EF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_DE_EF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_DE_EF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_DE_EF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_DE_EF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_DE_SEF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G3_DE_SEF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_DE_SEF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_DE_SEF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_DE_SEF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G3_ROCOF_Pickup, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G3_ROCOF_TDtMin, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G3_ROCOF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_VVS_Pickup, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_VVS_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_VVS_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_PDOP_Pickup, 0x96 ) \ DB_DEFAULT_INT32_VALUE( G3_PDOP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_PDOP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_PDOP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_PDUP_Pickup, 0x2 ) \ DB_DEFAULT_INT32_VALUE( G3_PDUP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G3_PDUP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G3_PDUP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G3_PDUP_TDtDis, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_TDtMin, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_Um, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_Ioper, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_FwdSusceptance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_RevSusceptance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_FwdConductance, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_Yn_RevConductance, 0xFFFFFC18 ) \ DB_DEFAULT_INT32_VALUE( G4_DE_EF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_DE_EF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_DE_EF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_DE_EF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_DE_EF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_DE_SEF_MinNVD, 0x64 ) \ DB_DEFAULT_INT32_VALUE( G4_DE_SEF_MaxFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_DE_SEF_MinFwdAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_DE_SEF_MaxRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_DE_SEF_MinRevAngle, 0x5A ) \ DB_DEFAULT_INT32_VALUE( G4_ROCOF_Pickup, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( G4_ROCOF_TDtMin, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G4_ROCOF_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_VVS_Pickup, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_VVS_TDtMin, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_VVS_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_PDOP_Pickup, 0x96 ) \ DB_DEFAULT_INT32_VALUE( G4_PDOP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_PDOP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_PDOP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_PDUP_Pickup, 0x2 ) \ DB_DEFAULT_INT32_VALUE( G4_PDUP_Angle, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G4_PDUP_TDtMin, 0x2710 ) \ DB_DEFAULT_INT32_VALUE( G4_PDUP_TDtRes, 0x32 ) \ DB_DEFAULT_INT32_VALUE( G4_PDUP_TDtDis, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxGn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxBn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMinGn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMinBn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasGn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasBn, 0x0 ) \ DB_DEFAULT_INT32_VALUE( ModemRetryWaitTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxI2I1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasI2I1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CmsAuxConfigMaxFrameSizeTx, 0x1000 ) \ DB_DEFAULT_INT32_VALUE( CmsConfigMaxFrameSizeTx, 0x1000 ) \ DB_DEFAULT_INT32_VALUE( FaultLocM, 0x0 ) \ DB_DEFAULT_INT32_VALUE( FaultLocZf, 0x0 ) \ DB_DEFAULT_INT32_VALUE( FaultLocThetaF, 0x0 ) \ DB_DEFAULT_INT32_VALUE( FaultLocZLoop, 0x0 ) \ DB_DEFAULT_INT32_VALUE( FaultLocThetaLoop, 0x0 ) \ DB_DEFAULT_INT32_VALUE( FaultLocR0, 0xA ) \ DB_DEFAULT_INT32_VALUE( FaultLocX0, 0x64 ) \ DB_DEFAULT_INT32_VALUE( FaultLocR1, 0xA ) \ DB_DEFAULT_INT32_VALUE( FaultLocX1, 0x64 ) \ DB_DEFAULT_INT32_VALUE( FaultLocRA, 0xA ) \ DB_DEFAULT_INT32_VALUE( FaultLocXA, 0x64 ) \ DB_DEFAULT_INT32_VALUE( FaultLocLengthOfLine, 0x3E8 ) \ DB_DEFAULT_INT32_VALUE( FaultLocXLoop, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanPscFirmwareUpdateFeatures, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanSimFirmwareUpdateFeatures, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CanGpioFirmwareUpdateFeatures, 0x0 ) \ DB_DEFAULT_INT32_VALUE( DiagCounterCtrl1, 0x0 ) \ DB_DEFAULT_INT32_VALUE( s61850GseSubsSts, 0x0 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMIaCalCoef, 0x3E6872B0 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMIbCalCoef, 0x3E6872B0 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMIcCalCoef, 0x3E6872B0 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMInCalCoef, 0x40000000 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMIaCalCoefHi, 0x3CDD2F1B ) \ DB_DEFAULT_INT32_VALUE( RC20SIMIbCalCoefHi, 0x3CDD2F1B ) \ DB_DEFAULT_INT32_VALUE( RC20SIMIcCalCoefHi, 0x3CDD2F1B ) \ DB_DEFAULT_INT32_VALUE( RC20SIMUaCalCoef, 0x43BF2383 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMUbCalCoef, 0x43BF2383 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMUcCalCoef, 0x43BF2383 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMUrCalCoef, 0x43BF2383 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMUsCalCoef, 0x43BF2383 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMUtCalCoef, 0x43BF2383 ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchIaCalCoef, 0x3ECCCCCD ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchIbCalCoef, 0x3ECCCCCD ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchIcCalCoef, 0x3ECCCCCD ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchInCalCoef, 0x3ECCCCCD ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchUaCalCoef, 0x3C80AE10 ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchUbCalCoef, 0x3C80AE10 ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchUcCalCoef, 0x3C80AE10 ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchUrCalCoef, 0x3C80AE10 ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchUsCalCoef, 0x3C80AE10 ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchUtCalCoef, 0x3C80AE10 ) \ DB_DEFAULT_INT32_VALUE( RC20RelayIaCalCoef, 0x4718C7E3 ) \ DB_DEFAULT_INT32_VALUE( RC20RelayIbCalCoef, 0x4718C7E3 ) \ DB_DEFAULT_INT32_VALUE( RC20RelayIcCalCoef, 0x4718C7E3 ) \ DB_DEFAULT_INT32_VALUE( RC20RelayInCalCoef, 0x472DAB9F ) \ DB_DEFAULT_INT32_VALUE( RC20RelayUaCalCoef, 0x4127C5AC ) \ DB_DEFAULT_INT32_VALUE( RC20RelayUbCalCoef, 0x4127C5AC ) \ DB_DEFAULT_INT32_VALUE( RC20RelayUcCalCoef, 0x4127C5AC ) \ DB_DEFAULT_INT32_VALUE( RC20RelayUrCalCoef, 0x4127C5AC ) \ DB_DEFAULT_INT32_VALUE( RC20RelayUsCalCoef, 0x4127C5AC ) \ DB_DEFAULT_INT32_VALUE( RC20RelayUtCalCoef, 0x4127C5AC ) \ DB_DEFAULT_INT32_VALUE( RC20RelayIaCalCoefHi, 0x4623D70A ) \ DB_DEFAULT_INT32_VALUE( RC20RelayIbCalCoefHi, 0x4623D70A ) \ DB_DEFAULT_INT32_VALUE( RC20RelayIcCalCoefHi, 0x4623D70A ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchDefaultGainI, 0x451C4000 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMDefaultGainILow, 0x408D1EB8 ) \ DB_DEFAULT_INT32_VALUE( RC20SIMDefaultGainIHigh, 0x42140000 ) \ DB_DEFAULT_INT32_VALUE( RC20FPGADefaultGainILow, 0xD0BF ) \ DB_DEFAULT_INT32_VALUE( RC20FPGADefaultGainIn, 0xA6BE ) \ DB_DEFAULT_INT32_VALUE( RC20FPGADefaultGainU, 0x16FEF ) \ DB_DEFAULT_INT32_VALUE( ScadaDNP3GenAppFragMaxSize, 0x800 ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchIaCalCoefHi, 0x3ECCCCCD ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchIbCalCoefHi, 0x3ECCCCCD ) \ DB_DEFAULT_INT32_VALUE( RC20SwitchIcCalCoefHi, 0x3ECCCCCD ) \ DB_DEFAULT_INT32_VALUE( OscCaptureTimeExt, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( PscTransformerCalib110V, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( PscTransformerCalib220V, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( G14_BytesReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_BytesTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_PacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_PacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_ErrorPacketsReceivedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_ErrorPacketsTransmittedStatus, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_PacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_PacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_ErrorPacketsReceivedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_ErrorPacketsTransmittedStatusIPv6, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_SerialDTRLowTime, 0x1F4 ) \ DB_DEFAULT_INT32_VALUE( G14_SerialTxDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_SerialPreTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_SerialDCDFallTime, 0x2BC ) \ DB_DEFAULT_INT32_VALUE( G14_SerialCharTimeout, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_SerialPostTxTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_SerialInactivityTime, 0x1E ) \ DB_DEFAULT_INT32_VALUE( G14_SerialMinIdleTime, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_SerialMaxRandomDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_ModemAutoDialInterval, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G14_ModemConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( G14_ModemMaxCallDuration, 0x0 ) \ DB_DEFAULT_INT32_VALUE( G14_ModemResponseTime, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G14_RadioPreambleRepeat, 0x3 ) \ DB_DEFAULT_INT32_VALUE( G14_GPRSConnectionTimeout, 0x3C ) \ DB_DEFAULT_INT32_VALUE( TripHrmComponentExt, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrROCOFTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrVVSTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxROCOF, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxVVS, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Ua, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Ub, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Uc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Ur, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Us, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Ut, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Ia, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Ib, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_Ic, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Ua, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Ub, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Uc, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Ur, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Us, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Ut, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Ia, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Ib, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_Ic, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_F_ABC, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_F_RST, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_ROCOF_ABC, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_ROCOF_RST, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PscDcCalibCoef, 0xF4240 ) \ DB_DEFAULT_INT32_VALUE( PMU_In, 0x0 ) \ DB_DEFAULT_INT32_VALUE( PMU_A_In, 0x0 ) \ DB_DEFAULT_INT32_VALUE( FpgaSyncControllerDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( FpgaSyncSensorDelay, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CbfPhaseCurrent, 0x1 ) \ DB_DEFAULT_INT32_VALUE( CbfEfCurrent, 0x1 ) \ DB_DEFAULT_INT32_VALUE( CbfBackupTripTime, 0xFA ) \ DB_DEFAULT_INT32_VALUE( CredentialOperRoleBitMap, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrPDOPTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( CntrPDUPTrips, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMaxPDOP, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripAnglePDOP, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripMinPDUP, 0x0 ) \ DB_DEFAULT_INT32_VALUE( TripAnglePDUP, 0x0 ) \ DB_DEFAULT_INT32_VALUE( MeasAngle3phase, 0x0 ) \ \ DB_DEFAULT_INT16_VALUE( CntOps, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CntWearOsm, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CntOpsOc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CntOpsEf, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CntOpsSef, 0x0 ) \ DB_DEFAULT_INT16_VALUE( BattI, 0x7D0 ) \ DB_DEFAULT_INT16_VALUE( BattU, 0x3039 ) \ DB_DEFAULT_INT16_VALUE( BattCap, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( LcdCont, 0xC000 ) \ DB_DEFAULT_INT16_VALUE( CmsAuxPort, 0x0 ) \ DB_DEFAULT_INT16_VALUE( PanelDelayedCloseTime, 0x1E ) \ DB_DEFAULT_INT16_VALUE( CanSimSetResetTimeUI16, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_OC1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_OC2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_OC1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_OC2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_EF1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_EF2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_EF1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_EF2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_AutoOpenTime, 0x78 ) \ DB_DEFAULT_INT16_VALUE( ScadaDnp3IpTcpSlavePort, 0x4E20 ) \ DB_DEFAULT_INT16_VALUE( CMS_PortNumber, 0x1388 ) \ DB_DEFAULT_INT16_VALUE( SimBatteryVoltageScaled, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LocalInputDebouncePeriod, 0xA ) \ DB_DEFAULT_INT16_VALUE( ScadaT104TCPPortNr, 0x964 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCAA, 0x5 ) \ DB_DEFAULT_INT16_VALUE( ScadaT101DataLinkAdd, 0x5 ) \ DB_DEFAULT_INT16_VALUE( ScadaT101MaxDLFrameSize, 0x105 ) \ DB_DEFAULT_INT16_VALUE( ScadaT101FrameTimeout, 0x9C4 ) \ DB_DEFAULT_INT16_VALUE( ScadaT101LinkConfirmTimeout, 0x1388 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BSelectExecuteTimeout, 0x5 ) \ DB_DEFAULT_INT16_VALUE( ScadaT104ControlTSTimeout, 0xA ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCyclicPeriod, 0xA ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BBackgroundPeriod, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCounterGeneralLocalFrzPeriod, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCounterGrp1LocalFrzPeriod, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCounterGrp2LocalFrzPeriod, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCounterGrp3LocalFrzPeriod, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCounterGrp4LocalFrzPeriod, 0x0 ) \ DB_DEFAULT_INT16_VALUE( T10BPhaseCurrentDeadband, 0x64 ) \ DB_DEFAULT_INT16_VALUE( ScadaDnp3IpTcpMasterPort, 0x4E20 ) \ DB_DEFAULT_INT16_VALUE( ScadaDnp3IpUdpSlavePort, 0x4E20 ) \ DB_DEFAULT_INT16_VALUE( ScadaDnp3IpUdpMasterPortInit, 0x4E20 ) \ DB_DEFAULT_INT16_VALUE( ScadaDnp3IpUdpMasterPort, 0x4E20 ) \ DB_DEFAULT_INT16_VALUE( ScadaT104PendingFrames, 0xC ) \ DB_DEFAULT_INT16_VALUE( ScadaT104ConfirmAfter, 0x8 ) \ DB_DEFAULT_INT16_VALUE( T10BPhaseVoltageDeadband, 0x64 ) \ DB_DEFAULT_INT16_VALUE( T10BResidualCurrentDeadband, 0x64 ) \ DB_DEFAULT_INT16_VALUE( T10B3PhasePowerDeadband, 0x64 ) \ DB_DEFAULT_INT16_VALUE( T10BPhaseCurrentHiLimit, 0x3E80 ) \ DB_DEFAULT_INT16_VALUE( T10BResidualCurrentHiLimit, 0x3E80 ) \ DB_DEFAULT_INT16_VALUE( CanSimTripCAPVoltage, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimCloseCAPVoltage, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimSwitchgearCTRatio, 0x7D0 ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTaCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTbCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTcCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTnCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTTempCompCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCVTaCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCVTbCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCVTcCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCVTrCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCVTsCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCVTtCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCVTTempCompCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimBatteryVoltage, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimBatteryCurrent, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimBatteryChargerCurrent, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimExtSupplyCurrent, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimSetShutdownTime, 0x78 ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMTemp, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimModuleFault, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimModuleTemp, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimModuleVoltage, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_OC1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_OC2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_OC1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_OC2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_EF1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_EF2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_EF1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_EF2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_AutoOpenTime, 0x78 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime1, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime2, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime3, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime4, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime5, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime6, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime7, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1OutputPulseTime8, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime1, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime2, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime3, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime4, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime5, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime6, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime7, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo2OutputPulseTime8, 0x2 ) \ DB_DEFAULT_INT16_VALUE( CanIo1ModuleFault, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanIo2ModuleFault, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_OC1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_OC2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_OC1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_OC2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_EF1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_EF2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_EF1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_EF2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_AutoOpenTime, 0x78 ) \ DB_DEFAULT_INT16_VALUE( LogicCh1RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh2RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh3RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh4RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh5RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh6RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh7RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh8RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh1ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh2ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh3ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh4ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh5ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh6ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh7ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh8ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh1PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh2PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh3PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh4PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh5PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh6PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh7PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh8PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( G4_OC1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_OC2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_OC1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_OC2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_EF1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_EF2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_EF1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_EF2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_AutoOpenTime, 0x78 ) \ DB_DEFAULT_INT16_VALUE( PhaseConfig, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaDnp3PollWatchDogTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BPollWatchDogTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaDnp3BinaryControlWatchDogTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BBinaryControlWatchDogTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( OscSimLoopCount, 0x1 ) \ DB_DEFAULT_INT16_VALUE( MeasLoadProfTimer, 0x1E ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh1, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh2, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh3, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh4, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh5, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh6, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh7, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TrecCh8, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh1, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh2, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh3, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh4, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh5, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh6, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh7, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TrecCh8, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh1, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh2, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh3, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh4, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh5, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh6, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh7, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo1TresCh8, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh1, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh2, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh3, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh4, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh5, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh6, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh7, 0x0 ) \ DB_DEFAULT_INT16_VALUE( IoSettingIo2TresCh8, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTaCalCoefHi, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTbCalCoefHi, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMCTcCalCoefHi, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCUa, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCUb, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCUc, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCUr, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCUs, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCUt, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCIa, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCIb, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCIc, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( SwitchDefaultCoefCIn, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTaCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTbCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTcCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTnCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTTempCompCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCVTaCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCVTbCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCVTcCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCVTrCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCVTsCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCVTtCalCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimSIMDefaultCVTTempCompCoef, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTaCalCoefHi, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTbCalCoefHi, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( CanSimDefaultSIMCTcCalCoefHi, 0x7FFF ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCUa, 0x4CC6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCUb, 0x4CC6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCUc, 0x4CC6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCUr, 0x4CC6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCUs, 0x4CC6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCUt, 0x4CC6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCIa, 0x5517 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCIb, 0x5517 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCIc, 0x5517 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCIaHi, 0x55E6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCIbHi, 0x55E6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCIcHi, 0x55E6 ) \ DB_DEFAULT_INT16_VALUE( FpgaDefaultCoefCIn, 0x4D71 ) \ DB_DEFAULT_INT16_VALUE( CanSimBatteryCapacityAmpHrs, 0x0 ) \ DB_DEFAULT_INT16_VALUE( PanelDelayedCloseRemain, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_OCLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_OCLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_AutoClose_Tr, 0x78 ) \ DB_DEFAULT_INT16_VALUE( G2_OCLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_OCLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_AutoClose_Tr, 0x78 ) \ DB_DEFAULT_INT16_VALUE( G3_OCLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_OCLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_AutoClose_Tr, 0x78 ) \ DB_DEFAULT_INT16_VALUE( G4_OCLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_OCLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_AutoClose_Tr, 0x78 ) \ DB_DEFAULT_INT16_VALUE( HrmLogTime, 0xA ) \ DB_DEFAULT_INT16_VALUE( PGESlaveAddress, 0x1 ) \ DB_DEFAULT_INT16_VALUE( G1_NPS1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_NPS2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_NPS1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_NPS2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_NPSLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_NPSLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_EFLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G1_EFLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G1_AutoOpenPowerFlowTime, 0xB4 ) \ DB_DEFAULT_INT16_VALUE( G1_LSRM_Timer, 0xF ) \ DB_DEFAULT_INT16_VALUE( G1_Uv4_Tlock, 0xA ) \ DB_DEFAULT_INT16_VALUE( G2_NPS1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_NPS2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_NPS1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_NPS2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_NPSLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_NPSLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_EFLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G2_EFLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_AutoOpenPowerFlowTime, 0xB4 ) \ DB_DEFAULT_INT16_VALUE( G2_LSRM_Timer, 0xF ) \ DB_DEFAULT_INT16_VALUE( G2_Uv4_Tlock, 0xA ) \ DB_DEFAULT_INT16_VALUE( G3_NPS1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_NPS2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_NPS1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_NPS2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_NPSLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_NPSLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_EFLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G3_EFLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_AutoOpenPowerFlowTime, 0xB4 ) \ DB_DEFAULT_INT16_VALUE( G3_LSRM_Timer, 0xF ) \ DB_DEFAULT_INT16_VALUE( G3_Uv4_Tlock, 0xA ) \ DB_DEFAULT_INT16_VALUE( G4_NPS1F_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_NPS2F_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_NPS1R_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_NPS2R_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_NPSLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_NPSLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_EFLL1_Tcc, 0x22F ) \ DB_DEFAULT_INT16_VALUE( G4_EFLL2_Tcc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_AutoOpenPowerFlowTime, 0xB4 ) \ DB_DEFAULT_INT16_VALUE( G4_LSRM_Timer, 0xF ) \ DB_DEFAULT_INT16_VALUE( G4_Uv4_Tlock, 0xA ) \ DB_DEFAULT_INT16_VALUE( PGESBOTimeout, 0x5 ) \ DB_DEFAULT_INT16_VALUE( InstallPeriod, 0x1 ) \ DB_DEFAULT_INT16_VALUE( CanSimSwitchPositionStatusST, 0x222 ) \ DB_DEFAULT_INT16_VALUE( CanSimSwitchLockoutStatusST, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ScadaT10BCyclicStartMaxDelay, 0x1F4 ) \ DB_DEFAULT_INT16_VALUE( s61850ServerTcpPort, 0x66 ) \ DB_DEFAULT_INT16_VALUE( LogicCh9RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh9ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh9PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh10RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh10ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh10PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh11RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh11ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh11PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh12RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh12ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh12PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh13RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh13ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh13PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh14RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh14ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh14PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh15RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh15ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh15PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh16RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh16ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh16PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh17RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh17ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh17PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh18RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh18ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh18PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh19RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh19ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh19PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh20RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh20ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh20PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh21RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh21ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh21PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh22RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh22ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh22PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh23RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh23ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh23PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh24RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh24ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh24PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh25RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh25ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh25PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh26RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh26ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh26PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh27RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh27ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh27PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh28RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh28ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh28PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh29RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh29ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh29PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh30RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh30ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh30PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh31RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh31ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh31PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( LogicCh32RecTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh32ResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( LogicCh32PulseTime, 0x2 ) \ DB_DEFAULT_INT16_VALUE( DNP3SA_ExpectSessKeyChangeInterval, 0x708 ) \ DB_DEFAULT_INT16_VALUE( DNP3SA_MaxErrorMessagesSent, 0xA ) \ DB_DEFAULT_INT16_VALUE( DNP3SA_MaxAuthenticationFails, 0x5 ) \ DB_DEFAULT_INT16_VALUE( DNP3SA_MaxAuthenticationRekeys, 0x3 ) \ DB_DEFAULT_INT16_VALUE( DNP3SA_MaxReplyTimeouts, 0x3 ) \ DB_DEFAULT_INT16_VALUE( ProtAngIa, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngIb, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngIc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngUa, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngUb, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngUc, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngUr, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngUs, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ProtAngUt, 0x0 ) \ DB_DEFAULT_INT16_VALUE( CanSimMaxPower, 0x1388 ) \ DB_DEFAULT_INT16_VALUE( IEC61499PortNumber, 0xF03B ) \ DB_DEFAULT_INT16_VALUE( Gps_Altitude, 0x0 ) \ DB_DEFAULT_INT16_VALUE( SyncLiveBusMultiplier, 0x320 ) \ DB_DEFAULT_INT16_VALUE( SyncLiveLineMultiplier, 0x320 ) \ DB_DEFAULT_INT16_VALUE( SyncMaxBusMultiplier, 0x4B0 ) \ DB_DEFAULT_INT16_VALUE( SyncMaxLineMultiplier, 0x4B0 ) \ DB_DEFAULT_INT16_VALUE( SyncVoltageDiffMultiplier, 0x32 ) \ DB_DEFAULT_INT16_VALUE( SyncMaxSyncSlipFreq, 0x1E ) \ DB_DEFAULT_INT16_VALUE( SyncMaxPhaseAngleDiff, 0x14 ) \ DB_DEFAULT_INT16_VALUE( SyncManualPreSyncTime, 0x5 ) \ DB_DEFAULT_INT16_VALUE( SyncMaxFreqDeviation, 0x1F4 ) \ DB_DEFAULT_INT16_VALUE( SyncMaxAutoSlipFreq, 0x64 ) \ DB_DEFAULT_INT16_VALUE( SyncMaxROCSlipFreq, 0xC8 ) \ DB_DEFAULT_INT16_VALUE( ProtConfigCount, 0x0 ) \ DB_DEFAULT_INT16_VALUE( WT1, 0xF ) \ DB_DEFAULT_INT16_VALUE( WT2, 0xA ) \ DB_DEFAULT_INT16_VALUE( UPSMobileNetworkTime, 0x78 ) \ DB_DEFAULT_INT16_VALUE( UPSWlanTime, 0x78 ) \ DB_DEFAULT_INT16_VALUE( UPSMobileNetworkResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( UPSWlanResetTime, 0x0 ) \ DB_DEFAULT_INT16_VALUE( UpdateLock, 0x0 ) \ DB_DEFAULT_INT16_VALUE( SNTPUpdateInterval, 0x258 ) \ DB_DEFAULT_INT16_VALUE( SNTPRetryInterval, 0xA ) \ DB_DEFAULT_INT16_VALUE( LineSupplyVoltage, 0x0 ) \ DB_DEFAULT_INT16_VALUE( OscSamplesPerCycle, 0x100 ) \ DB_DEFAULT_INT16_VALUE( PeakPower, 0x0 ) \ DB_DEFAULT_INT16_VALUE( ExternalSupplyPower, 0x0 ) \ DB_DEFAULT_INT16_VALUE( PMUStationIDCode, 0x1 ) \ DB_DEFAULT_INT16_VALUE( PMUOutputPort, 0x1269 ) \ DB_DEFAULT_INT16_VALUE( PMUControlPort, 0x1389 ) \ DB_DEFAULT_INT16_VALUE( PMUConfigVersion, 0x0 ) \ DB_DEFAULT_INT16_VALUE( PMUVLANAppId, 0x0 ) \ DB_DEFAULT_INT16_VALUE( PMUVLANVID, 0x0 ) \ DB_DEFAULT_INT16_VALUE( USBL_PortNumber, 0x189C ) \ DB_DEFAULT_INT16_VALUE( HTTPServerPort, 0x1E01 ) \ DB_DEFAULT_INT16_VALUE( G1_ScadaT10BRGSlaveTCPPort, 0x965 ) \ DB_DEFAULT_INT16_VALUE( G1_ScadaT10BRGMasterTCPPort, 0x965 ) \ DB_DEFAULT_INT16_VALUE( G1_ScadaT10BRGStatusMasterTCPPort, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G2_ScadaT10BRGSlaveTCPPort, 0x966 ) \ DB_DEFAULT_INT16_VALUE( G2_ScadaT10BRGMasterTCPPort, 0x966 ) \ DB_DEFAULT_INT16_VALUE( G2_ScadaT10BRGStatusMasterTCPPort, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G3_ScadaT10BRGSlaveTCPPort, 0x967 ) \ DB_DEFAULT_INT16_VALUE( G3_ScadaT10BRGMasterTCPPort, 0x967 ) \ DB_DEFAULT_INT16_VALUE( G3_ScadaT10BRGStatusMasterTCPPort, 0x0 ) \ DB_DEFAULT_INT16_VALUE( G4_ScadaT10BRGSlaveTCPPort, 0x968 ) \ DB_DEFAULT_INT16_VALUE( G4_ScadaT10BRGMasterTCPPort, 0x968 ) \ DB_DEFAULT_INT16_VALUE( G4_ScadaT10BRGStatusMasterTCPPort, 0x0 ) \ \ DB_DEFAULT_INT8_VALUE( TimeFmt, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DateFmt, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DEPRECATED_BattTest, 0x1 ) \ DB_DEFAULT_INT8_VALUE( AuxSupply, 0x1 ) \ DB_DEFAULT_INT8_VALUE( BattState, 0x1 ) \ DB_DEFAULT_INT8_VALUE( OCCoilState, 0x1 ) \ DB_DEFAULT_INT8_VALUE( RelayState, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ActCLM, 0xA ) \ DB_DEFAULT_INT8_VALUE( OsmOpCoilState, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DriverState, 0x1 ) \ DB_DEFAULT_INT8_VALUE( NumProtGroups, 0x4 ) \ DB_DEFAULT_INT8_VALUE( ActProtGroup, 0x1 ) \ DB_DEFAULT_INT8_VALUE( BattTestAuto, 0x1 ) \ DB_DEFAULT_INT8_VALUE( AvgPeriod, 0x5 ) \ DB_DEFAULT_INT8_VALUE( ProtStepState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( USensing, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DoorState, 0x1 ) \ DB_DEFAULT_INT8_VALUE( BtnOpen, 0x1 ) \ DB_DEFAULT_INT8_VALUE( BtnRecl, 0x1 ) \ DB_DEFAULT_INT8_VALUE( BtnEf, 0x1 ) \ DB_DEFAULT_INT8_VALUE( BtnSef, 0x1 ) \ DB_DEFAULT_INT8_VALUE( SwitchFailureStatusFlag, 0x0 ) \ DB_DEFAULT_INT8_VALUE( HmiMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearFaultCntr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearScadaCntr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearEnergyMeters, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsConnectStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsHasCrc, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CmsAuxHasCrc, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ProtGlbFreqRated, 0x2 ) \ DB_DEFAULT_INT8_VALUE( PanelButtEF, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtSEF, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtAR, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtCL, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtLL, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtActiveGroup, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtProtection, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelDelayedClose, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaTimeLocal, 0x1 ) \ DB_DEFAULT_INT8_VALUE( USBDConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( USBEConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( USBFConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Rs232Dte2ConfigType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp5, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp7, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp8, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DNP3_ModemDialOut, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CMS_ModemDialOut, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OcDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EfDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SefDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_ArOCEF_ZSCmode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_VrcEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_TtaMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SstOcForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_EftEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_VrcMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_AbrMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EftTripCount, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EftTripWindow, 0x3 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OC3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EF3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFF_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFF_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFF_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFF_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFF_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFR_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFR_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFR_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFR_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFR_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uv1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uv2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uv3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Ov1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Ov2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uf_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Of_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SstEfForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SstSefForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_AutoOpenMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_AutoOpenOpns, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SstOcReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SstEfReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SstSefReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( UpdateFileCopyFail, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaHMIEnableProtocol, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaHMIChannelPort, 0x4 ) \ DB_DEFAULT_INT8_VALUE( ScadaHMIRemotePort, 0x9 ) \ DB_DEFAULT_INT8_VALUE( ScadaCMSLocalPort, 0x8 ) \ DB_DEFAULT_INT8_VALUE( UsbGadgetConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Io1OpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Io2OpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( RestoreEnabled, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaOpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CopyComplete, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ReqSetExtLoad, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvEventLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvCloseOpenLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvFaultProfileLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvLoadProfileLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvChangeLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT101ChannelMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT101DataLinkAddSize, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaT101CAASize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( ScadaT101COTSize, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaT101IOASize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( ScadaT101SingleCharEnable, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaT101TimeStampSize, 0x3 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BSinglePointRepMode, 0x3 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BDoublePointRepMode, 0x3 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BSingleCmdRepMode, 0x4 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BDoubleCmdRepMode, 0x4 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BMeasurandRepMode, 0x5 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BSetpointRepMode, 0x5 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BParamCmdRepMode, 0x7 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BIntTotRepMode, 0x6 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BFormatMeasurand, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BCounterGeneralLocalFrzFunction, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BCounterGrp1LocalFrzFunction, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BCounterGrp2LocalFrzFunction, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BCounterGrp3LocalFrzFunction, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BCounterGrp4LocalFrzFunction, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3IpProtocolMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3IpValidMasterAddr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3IpUdpMasterPortInRqst, 0x0 ) \ DB_DEFAULT_INT8_VALUE( T101_ModemDialOut, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BEnableProtocol, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BChannelPort, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimRqOpen, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimRqClose, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimLockout, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DEPRCATED_EvArUInit, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DERECATED_EvArUClose, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DEPRECATED_EvArURes, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimTripCloseRequestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchPositionStatus, 0x2 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchManualTrip, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchLockoutStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimOSMActuatorFaultStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimOSMlimitSwitchFaultStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimDriverStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSIMCalibrationStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchgearType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimCalibrationWriteData, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimBatteryStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimBatteryChargerStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimLowPowerBatteryCharge, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimBatteryCapacityRemaining, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSetTotalBatteryCapacity, 0x1A ) \ DB_DEFAULT_INT8_VALUE( CanSimSetBatteryType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimInitiateBatteryTest, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimBatteryTestResult, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimExtSupplyStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSetExtLoad, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSetShutdownLevel, 0x14 ) \ DB_DEFAULT_INT8_VALUE( CanSimUPSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimLineSupplyStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimLineSupplyRange, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimUPSPowerUp, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimRequestWatchdogUpdate, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanSimRespondWatchdogRequest, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanSimModuleResetStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanSimResetModule, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanSimShutdownRequest, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanSimModuleHealth, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimModuleType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanIo1InputStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2InputStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimCANControllerOverrun, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimCANControllerError, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimCANMessagebufferoverflow, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo1InputEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2InputEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo1InputTrigger, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2InputTrigger, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimEmergShutdownRequest, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OcDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EfDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SefDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ArOCEF_ZSCmode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_VrcEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_TtaMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SstOcForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_EftEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_VrcMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_AbrMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EftTripCount, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EftTripWindow, 0x3 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OC3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EF3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFF_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFF_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFF_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFF_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFF_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFR_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFR_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFR_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFR_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFR_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uv1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uv2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uv3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Ov1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Ov2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uf_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Of_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SstEfForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SstSefForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_AutoOpenMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_AutoOpenOpns, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SstOcReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SstEfReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SstSefReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanIo1OutputEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2OutputEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo1OutputSet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2OutputSet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo1OutputPulseEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2OutputPulseEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbABCShutdownEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo1ModuleType, 0x2 ) \ DB_DEFAULT_INT8_VALUE( CanIo2ModuleType, 0x2 ) \ DB_DEFAULT_INT8_VALUE( CanIo1ModuleHealth, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2ModuleHealth, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo1Test, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2Test, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IO1Number, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IO2Number, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoStatusILocCh1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoStatusILocCh2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoStatusILocCh3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( CanIo1ResetModule, 0x1 ) \ DB_DEFAULT_INT8_VALUE( CanIo2ResetModule, 0x1 ) \ DB_DEFAULT_INT8_VALUE( SwitchgearType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputEnable, 0xFF ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputEnable, 0xFF ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputEnable, 0xFF ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputEnable, 0xFF ) \ DB_DEFAULT_INT8_VALUE( IoSettingILocEnable, 0x7 ) \ DB_DEFAULT_INT8_VALUE( IoSettingILocTrec1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingILocTrec2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingILocTrec3, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh3, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh4, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh5, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh6, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh7, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InTrecCh8, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh3, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh4, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh5, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh6, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh7, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InTrecCh8, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ActLoSeqMode, 0x4 ) \ DB_DEFAULT_INT8_VALUE( p2pCommEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEventIo1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEventIo2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicChEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OcDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EfDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SefDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ArOCEF_ZSCmode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_VrcEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicChMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_TtaMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SstOcForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_EftEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_VrcMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_AbrMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicChLogChange, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EftTripCount, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EftTripWindow, 0x3 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OC3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EF3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFF_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFF_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFF_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFF_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFF_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFR_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFR_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFR_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFR_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFR_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uv1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uv2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uv3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Ov1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Ov2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uf_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Of_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SstEfForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SstSefForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_AutoOpenMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_AutoOpenOpns, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SstOcReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SstEfReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SstSefReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( LogicChPulseEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh1Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh2Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh3Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh4Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh5Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh6Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh7Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh8Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT104TimeoutT0, 0x1E ) \ DB_DEFAULT_INT8_VALUE( ScadaT104TimeoutT1, 0xF ) \ DB_DEFAULT_INT8_VALUE( ScadaT104TimeoutT2, 0xA ) \ DB_DEFAULT_INT8_VALUE( p2pChannelPort, 0x0 ) \ DB_DEFAULT_INT8_VALUE( p2pMappedUI8_0, 0x0 ) \ DB_DEFAULT_INT8_VALUE( p2pMappedUI8_1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SupplyHealthState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LoadHealthState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACOOperationMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACOMakeBeforeBreak, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACOOperationModePeer, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACODisplayState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACODisplayStatePeer, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACOHealth, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACOHealthPeer, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ACOMakeBeforeBreakPeer, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OcDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EfDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SefDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ArOCEF_ZSCmode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_VrcEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSwitchStatusPeer, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_TtaMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SstOcForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_EftEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_VrcMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_AbrMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EftTripCount, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EftTripWindow, 0x3 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OC3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EF3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFF_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFF_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFF_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFF_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFF_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFR_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFR_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFR_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFR_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFR_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uv1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uv2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uv3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Ov1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Ov2_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uf_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Of_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SstEfForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SstSefForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_AutoOpenMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_AutoOpenOpns, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SstOcReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SstEfReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SstSefReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ChEvLifetimeCounters, 0x0 ) \ DB_DEFAULT_INT8_VALUE( p2pHealth, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SupplyHealthStatePeer, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDNP3EnableCommsLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaCMSEnableCommsLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaHMIEnableCommsLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( p2pCommEnableCommsLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( p2pCommCommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( ScadaDNP3CommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( ScadaCMSCommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( ScadaHMICommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BEnableCommsLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BCommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3Polled, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BPolled, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscCaptureTime, 0x5 ) \ DB_DEFAULT_INT8_VALUE( OscCapturePrior, 0x32 ) \ DB_DEFAULT_INT8_VALUE( OscOverwrite, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscSaveToUSB, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscEvent, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscLogCount, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscTransferData, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscSimRun, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscSimStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsPort, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ChEvNonGroup, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvGrp1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvGrp2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvGrp3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvGrp4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MeasPowerFlowDirectionOC, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MeasPowerFlowDirectionEF, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MeasPowerFlowDirectionSEF, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SysControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSwReqOpen, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSwReqClose, 0x0 ) \ DB_DEFAULT_INT8_VALUE( swsimEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( swsimInLockout, 0x0 ) \ DB_DEFAULT_INT8_VALUE( smpFpgaDataValid, 0x0 ) \ DB_DEFAULT_INT8_VALUE( enSeqSimulator, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh5, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh6, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh7, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1InputCh8, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh5, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh6, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh7, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2InputCh8, 0x2 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh5, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh7, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1OutputCh8, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh5, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh7, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2OutputCh8, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingILocMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ProtOcDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( dbFileCmd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3GenLinkConfirmationMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3GenLinkValidMasterAddr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3GenAppConfirmationMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3GenUnsolicitedResponse, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3GenClass1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3GenClass2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3GenClass3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDNP3EnableProtocol, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaDNP3ChannelPort, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaCMSEnableProtocol, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaCMSUseDNP3Trans, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaCMSChannelPort, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaAnlogInputEvReport, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsShutdownRequest, 0x0 ) \ DB_DEFAULT_INT8_VALUE( resetRelayCtr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearEventLogDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearCloseOpenLogDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearFaultProfileDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearLoadProfileDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearChangeLogDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsOpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsAuxOpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsAux2OpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoOpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( HmiOpMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SaveSimCalibration, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSwitchStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimResetExtLoad, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimulSwitchPositionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ConfirmUpdateType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Rs232DteConfigType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( USBAConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( USBBConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( USBCConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_ConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G1_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G2_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G3_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G4_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialBaudRate, 0x5 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialRTSMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialRTSOnLevel, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDTRMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDTROnLevel, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialCTSMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDSRMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G1_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G1_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_WlanNetworkAuthentication, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_WlanDataEncryption, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G1_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G1_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G2_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G2_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_WlanNetworkAuthentication, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_WlanDataEncryption, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G2_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G2_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G3_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G3_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_WlanNetworkAuthentication, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_WlanDataEncryption, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G3_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G3_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G4_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G4_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_WlanNetworkAuthentication, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_WlanDataEncryption, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G4_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G4_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ProgramSimCmd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvNonGroup, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscCmd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscCmdPercent, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscError, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UpdateFilesReady, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UpdateBootOk, 0x0 ) \ DB_DEFAULT_INT8_VALUE( FactorySettings, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G5_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G6_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G7_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G8_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialBaudRate, 0x9 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G5_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G5_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G5_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G5_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_PortLocalRemoteMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G5_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G5_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G5_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G5_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G6_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G6_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G6_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G6_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_PortLocalRemoteMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G6_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G6_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G6_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G6_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G7_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G7_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G7_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G7_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_PortLocalRemoteMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G7_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G7_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G7_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G7_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G8_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G8_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G8_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G8_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G8_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G8_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G8_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G8_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_VTHD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_ITDD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_Ind_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_IndA_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_IndB_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_IndC_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_IndD_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Hrm_IndE_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OCLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OCLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OCLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OCLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OCLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_AutoClose_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_AutoOpenPowerFlowDirChanged, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_AutoOpenPowerFlowReduced, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_VTHD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_ITDD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_Ind_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_IndA_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_IndB_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_IndC_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_IndD_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Hrm_IndE_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OCLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OCLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OCLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OCLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OCLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_AutoClose_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_AutoOpenPowerFlowDirChanged, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_AutoOpenPowerFlowReduced, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_VTHD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_ITDD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_Ind_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_IndA_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_IndB_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_IndC_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_IndD_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Hrm_IndE_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OCLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OCLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OCLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OCLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OCLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_AutoClose_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_AutoOpenPowerFlowDirChanged, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_AutoOpenPowerFlowReduced, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_VTHD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_ITDD_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_Ind_Mode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_IndA_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_IndB_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_IndC_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_IndD_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Hrm_IndE_Name, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OCLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OCLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OCLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OCLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OCLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_AutoClose_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_AutoOpenPowerFlowDirChanged, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_AutoOpenPowerFlowReduced, 0x0 ) \ DB_DEFAULT_INT8_VALUE( StartupExtLoadConfirm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearOscCaptures, 0x0 ) \ DB_DEFAULT_INT8_VALUE( InterruptMonitorEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( InterruptLogShortEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SagMonitorEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SwellMonitorEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( HrmLogEnabled, 0x1 ) \ DB_DEFAULT_INT8_VALUE( HrmLogTHDEnabled, 0x1 ) \ DB_DEFAULT_INT8_VALUE( HrmLogTDDEnabled, 0x1 ) \ DB_DEFAULT_INT8_VALUE( HrmLogIndivIEnabled, 0x1 ) \ DB_DEFAULT_INT8_VALUE( HrmLogIndivVEnabled, 0x1 ) \ DB_DEFAULT_INT8_VALUE( InterruptClearCounters, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SagSwellClearCounters, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo1OutputEnableMasked, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIo2OutputEnableMasked, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearInterruptDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearSagSwellDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearHrmDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvInterruptLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvSagSwellLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvHrmLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscSaveFormat, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PGEChannelPort, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PGEEnableProtocol, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PGEEnableCommsLog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PGECommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( PGEMasterAddress, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PGEIgnoreMasterAddress, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G11_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_ModemDialOut, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G11_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G11_LanSpecifyIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G11_GPRSUseModemSetting, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G11_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_LanSpecifyIPv6, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G11_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G11_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( LanConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp11, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MeasPowerFlowDirectionNPS, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ProtNpsDir, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NpsDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SstNpsForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SstNpsReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPS3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPSLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPSLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPSLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPSLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NPSLL3_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EFLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EFLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EFLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EFLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EFLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SEFLL_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_AutoOpenPowerFlowReduction, 0x32 ) \ DB_DEFAULT_INT8_VALUE( G1_LSRM_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uv4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uv4_Utype, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uv4_Voltages, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SingleTripleModeF, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SingleTripleModeR, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_SinglePhaseVoltageDetect, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Uv1_SingleTripleVoltageType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_LlbEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SectionaliserMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OcDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_NpsDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_EfDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SefDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Ov3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Ov4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SequenceAdvanceStep, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_UV3_SSTOnly, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_OV3MovingAverageMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_ArveTripsToLockout, 0x4 ) \ DB_DEFAULT_INT8_VALUE( G1_I2I1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_SSTControl_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NpsDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SstNpsForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SstNpsReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPS3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPSLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPSLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPSLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPSLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NPSLL3_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EFLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EFLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EFLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EFLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EFLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SEFLL_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_AutoOpenPowerFlowReduction, 0x32 ) \ DB_DEFAULT_INT8_VALUE( G2_LSRM_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uv4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uv4_Utype, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uv4_Voltages, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SingleTripleModeF, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SingleTripleModeR, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_SinglePhaseVoltageDetect, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Uv1_SingleTripleVoltageType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_LlbEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SectionaliserMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OcDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_NpsDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_EfDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SefDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Ov3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Ov4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SequenceAdvanceStep, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_UV3_SSTOnly, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_OV3MovingAverageMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ArveTripsToLockout, 0x4 ) \ DB_DEFAULT_INT8_VALUE( G2_I2I1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_SSTControl_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NpsDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SstNpsForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SstNpsReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPS3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPSLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPSLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPSLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPSLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NPSLL3_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EFLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EFLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EFLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EFLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EFLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SEFLL_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_AutoOpenPowerFlowReduction, 0x32 ) \ DB_DEFAULT_INT8_VALUE( G3_LSRM_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uv4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uv4_Utype, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uv4_Voltages, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SingleTripleModeF, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SingleTripleModeR, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_SinglePhaseVoltageDetect, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Uv1_SingleTripleVoltageType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_LlbEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SectionaliserMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OcDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_NpsDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_EfDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SefDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Ov3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Ov4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SequenceAdvanceStep, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_UV3_SSTOnly, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_OV3MovingAverageMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ArveTripsToLockout, 0x4 ) \ DB_DEFAULT_INT8_VALUE( G3_I2I1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_SSTControl_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NpsDnd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SstNpsForward, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SstNpsReverse, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1F_Tr1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1F_Tr2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2F_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2F_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2F_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2F_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2F_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3F_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3F_Tr1, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3F_Tr2, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3F_Tr3, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3F_Tr4, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS1R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2R_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS2R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3R_DirEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3R_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3R_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3R_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPS3R_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPSLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPSLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPSLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPSLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NPSLL3_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EFLL1_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EFLL1_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EFLL2_ImaxEn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EFLL2_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EFLL3_En, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SEFLL_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_AutoOpenPowerFlowReduction, 0x32 ) \ DB_DEFAULT_INT8_VALUE( G4_LSRM_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uv4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uv4_Utype, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uv4_Voltages, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SingleTripleModeF, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SingleTripleModeR, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_SinglePhaseVoltageDetect, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Uv1_SingleTripleVoltageType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_LlbEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SectionaliserMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OcDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_NpsDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_EfDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SefDcr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Ov3_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Ov4_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SequenceAdvanceStep, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_UV3_SSTOnly, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_OV3MovingAverageMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ArveTripsToLockout, 0x4 ) \ DB_DEFAULT_INT8_VALUE( G4_I2I1_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_SSTControl_En, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IdRelayModelNo, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PanelButtABR, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtACO, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtUV, 0x1 ) \ DB_DEFAULT_INT8_VALUE( FastkeyConfigNum, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BSendDayOfWeek, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10B_M_EI_BufferOverflow_COI, 0xFF ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BScaleRange, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ProgramSimStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( InstallFilesReady, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OscUsbCaptureInProgress, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscEjectResult, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT104BlockUntilDisconnected, 0x0 ) \ DB_DEFAULT_INT8_VALUE( TripHrmComponent, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscUpdatePossible, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UpdateStep, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchManualTripST, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchConnectedPhases, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimSwitchSetCosType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSwitchStatusA, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSwitchStatusB, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSwitchStatusC, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimSingleTriple, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimTripCloseRequestStatusB, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimTripCloseRequestStatusC, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimOSMActuatorFaultStatusB, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimOSMActuatorFaultStatusC, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimOSMlimitSwitchFaultStatusB, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimOSMlimitSwitchFaultStatusC, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PanelButtPhaseSel, 0x1 ) \ DB_DEFAULT_INT8_VALUE( SingleTripleModeGlobal, 0x1 ) \ DB_DEFAULT_INT8_VALUE( s61850ServEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( StackCheckEnable, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DurMonInitFlag, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OsmSwitchCount, 0x3 ) \ DB_DEFAULT_INT8_VALUE( SwitchLogicallyLockedPhases, 0x0 ) \ DB_DEFAULT_INT8_VALUE( BatteryTestResult, 0x0 ) \ DB_DEFAULT_INT8_VALUE( BatteryTestNotPerformedReason, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearBatteryTestResults, 0x0 ) \ DB_DEFAULT_INT8_VALUE( BatteryTestSupported, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SectionaliserEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ProtStepStateB, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ProtStepStateC, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UserAnalogCfgOn, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GOOSEPublEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GOOSESubscrEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850ChannelPort, 0x1 ) \ DB_DEFAULT_INT8_VALUE( s61850GOOSEPort, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ChEvCurveSettings, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BCyclicWaitForSI, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ExtLoadStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicChModeView, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingILocModeView, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo1ModeView, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IoSettingIo2ModeView, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850TestDI1Bool, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850TestDI2Bool, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh9Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh10Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh11Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh12Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh13Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh14Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh15Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh16Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh17Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh18Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh19Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh20Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh21Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh22Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh23Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh24Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh25Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh26Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh27Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh28Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh29Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh30Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh31Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicCh32Output, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LogicChWriteProtect17to32, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ResetFaultFlagsOnClose, 0x1 ) \ DB_DEFAULT_INT8_VALUE( SystemStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GseSubChg, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GseBool1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GseBool2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GseBool3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GseBool4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( FSMountFailure, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimExtSupplyStatusView, 0x1 ) \ DB_DEFAULT_INT8_VALUE( BatteryType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscHasDNP3SAUpdateKey, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_MaxSessKeyStatusCount, 0x5 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_AggressiveMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_MACAlgorithm, 0x5 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_KeyWrapAlgorithm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_SessKeyChangeIntervalMonitoring, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_Enable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_Version, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_UpdateKeyInstalled, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_UpdateKeyInstallState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ClearDnp3SACntr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscDNP3SAUpdateKeyFileEnableSA, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_MaxErrorCount, 0x2 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_DisallowSHA1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DNP3SA_VersionSelect, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ClearDNP3SAUpdateKey, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscDNP3SAUpdateKeyFileError, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UsbDiscInstallError, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850GseSimFlgEn, 0x1 ) \ DB_DEFAULT_INT8_VALUE( s61850GseSimProc, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850TestQualEn, 0x1 ) \ DB_DEFAULT_INT8_VALUE( IEC61499Enable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499AppStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499Command, 0x0 ) \ DB_DEFAULT_INT8_VALUE( OperatingMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( AlarmLatchMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanPscModuleType, 0x6 ) \ DB_DEFAULT_INT8_VALUE( PhaseToPhaseTripping, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ProgramPscCmd, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850ClrGseCntrs, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BTimeLocal, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BIpValidMasterAddr, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimBulkReadCount, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanIoBulkReadCount, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanPscBulkReadCount, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DemoUnitMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DemoUnitAvailable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DemoUnitActive, 0x0 ) \ DB_DEFAULT_INT8_VALUE( RemoteUpdateCommand, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499FBOOTChEv, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CmsClientAllowAny, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499FBOOTStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499AppsRunning, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499AppsFailed, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499FBOOTOper, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PanelButtHLT, 0x1 ) \ DB_DEFAULT_INT8_VALUE( GpsAvailable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Gps_Enable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Gps_Restart, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Gps_SignalQuality, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Gps_TimeSyncStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PqChEvNonGroup, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ChEvSwitchgearCalib, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ProtocolChEvNonGroup, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanConnectionMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanSignalQuality, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkSignalQuality, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkSimCardStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanHideNetwork, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanChannelNumber, 0x1 ) \ DB_DEFAULT_INT8_VALUE( WlanRestart, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkRestart, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G12_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_ModemDialOut, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G12_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G12_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G12_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G12_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G12_GPRSUseModemSetting, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G12_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G12_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_ConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G12_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G12_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_ConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G13_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_ModemDialOut, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G13_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G13_LanSpecifyIP, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G13_GPRSUseModemSetting, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G13_LanSpecifyIPv6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G13_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G13_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( SyncEnabled, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncPhaseToSelection, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncBusAndLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncLiveDeadAR, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncLiveDeadManual, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncDLDBAR, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncDLDBManual, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncCheckEnabled, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncAntiMotoringEnabled, 0x1 ) \ DB_DEFAULT_INT8_VALUE( SynchroniserStatus, 0x3 ) \ DB_DEFAULT_INT8_VALUE( SyncDeltaVStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncSlipFreqStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SyncDeltaPhaseStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp12, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp13, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanAPNetworkAuthentication, 0x2 ) \ DB_DEFAULT_INT8_VALUE( WlanAPDataEncryption, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkSignalStrength, 0x63 ) \ DB_DEFAULT_INT8_VALUE( CmsSecurity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IEC61499CtrlStartStop, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AutoRecloseStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( s61850EnableCommslog, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PanelButtLogicVAR1, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PanelButtLogicVAR2, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_Yn_OperationalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_Yn_DirectionalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G1_Yn_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Yn_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Yn_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_Yn_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_DE_EF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_DE_SEF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_DE_SEF_Polarisation, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_ROCOF_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_VVS_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_PDOP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_PDUP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Yn_OperationalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_Yn_DirectionalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G2_Yn_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Yn_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Yn_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_Yn_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_DE_EF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_DE_SEF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_DE_SEF_Polarisation, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ROCOF_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_VVS_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_PDOP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_PDUP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Yn_OperationalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_Yn_DirectionalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G3_Yn_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Yn_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Yn_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_Yn_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_DE_EF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_DE_SEF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_DE_SEF_Polarisation, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ROCOF_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_VVS_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_PDOP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_PDUP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Yn_OperationalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_Yn_DirectionalMode, 0x2 ) \ DB_DEFAULT_INT8_VALUE( G4_Yn_Tr1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Yn_Tr2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Yn_Tr3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_Yn_Tr4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_DE_EF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_DE_SEF_AdvPolarDet, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_DE_SEF_Polarisation, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ROCOF_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_VVS_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_PDOP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_PDUP_Trm, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850CommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( SwitchStateOwner, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ModemConnectState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850RqstEnableMMS, 0x0 ) \ DB_DEFAULT_INT8_VALUE( s61850RqstEnableGoosePub, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CfgPowerFlowDirection, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LLBlocksClose, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanTxPower, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LLAllowClose, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanConnectState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( IdRelayFwModelNo, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanSignalQualityLoadProfile, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkSignalQualityLoadProfile, 0x0 ) \ DB_DEFAULT_INT8_VALUE( Gps_SignalQualityLoadProfile, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertFlagsDisplayed, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode4, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode5, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode6, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode7, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode8, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode9, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode10, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode11, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode12, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode13, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode14, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode15, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode16, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode17, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode18, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode19, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertMode20, 0x0 ) \ DB_DEFAULT_INT8_VALUE( AlertGroup, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UpdateError, 0x0 ) \ DB_DEFAULT_INT8_VALUE( GPS_Status, 0x0 ) \ DB_DEFAULT_INT8_VALUE( FaultLocFaultType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( FaultLocDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( FaultLocEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( GPSCommsLogMaxSize, 0x2 ) \ DB_DEFAULT_INT8_VALUE( LoadedScadaProtocolDNP3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( WlanConfigTypeNonUps, 0x0 ) \ DB_DEFAULT_INT8_VALUE( MobileNetworkConfigTypeNonUps, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanPscTransferStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanSimTransferStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanGpioTransferStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanPscPWR1Status, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CanPscSimPresent, 0x0 ) \ DB_DEFAULT_INT8_VALUE( FirmwareHardwareVersion, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UnitOfTime, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LoadedScadaProtocol60870, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LoadedScadaProtocol61850MMS, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LoadedScadaProtocol2179, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LoadedScadaProtocol61850GoosePub, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LoadedScadaProtocol61850GooseSub, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SNTPEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SNTPRetryAttempts, 0x3 ) \ DB_DEFAULT_INT8_VALUE( TmSrc, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SNTPServerResponse, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SNTPServIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaDnp3IpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( s61850ClientIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( ScadaCMSIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( p2pRemoteIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( WlanAPSubnetPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( ftpEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SaveRelayCalibration, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SaveSwgCalibration, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SDCardStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDTRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDSRStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialCDStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialRTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialCTSStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialRIStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_ConnectionStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_PortDetectedType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialTxTestStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_LanPrefixLengthStatus, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G14_IpVersionStatus, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialBaudRate, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDuplexType, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialRTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialRTSOnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDTRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDTROnLevel, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialParity, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialCTSMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDSRMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDCDMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialCollisionAvoidance, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_ModemPoweredFromExtLoad, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_ModemUsedWithLeasedLine, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_ModemDialOut, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_RadioPreamble, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_RadioPreambleChar, 0x55 ) \ DB_DEFAULT_INT8_VALUE( G14_RadioPreambleLastChar, 0xFF ) \ DB_DEFAULT_INT8_VALUE( G14_LanSpecifyIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_PortLocalRemoteMode, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDebugMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_GPRSBaudRate, 0x8 ) \ DB_DEFAULT_INT8_VALUE( G14_GPRSUseModemSetting, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialFlowControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_SerialDCDControlMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G14_LanProvideIP, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_LanSpecifyIPv6, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G14_LanPrefixLength, 0x40 ) \ DB_DEFAULT_INT8_VALUE( G14_LanIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( LanBConfigType, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CommsChEvGrp14, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SwgUseCalibratedValue, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SimUseCalibratedValue, 0x0 ) \ DB_DEFAULT_INT8_VALUE( RelayUseCalibratedValue, 0x0 ) \ DB_DEFAULT_INT8_VALUE( EnableCalibration, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UpdateFPGACalib, 0x0 ) \ DB_DEFAULT_INT8_VALUE( BatteryCapacityConfidence, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PMUNominalFrequency, 0x32 ) \ DB_DEFAULT_INT8_VALUE( PMUMessageRate, 0xA ) \ DB_DEFAULT_INT8_VALUE( PMUPerfClass, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PMURequireCIDConfig, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PMUCommsPort, 0xA ) \ DB_DEFAULT_INT8_VALUE( PMUIPVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PMUVLANPriority, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PMUNumberOfASDU, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PMUQuality, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PMUStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PMULoadCIDConfigStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( USBL_IpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( LineSupplyRange, 0x20 ) \ DB_DEFAULT_INT8_VALUE( TmLok, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CbfBackupTripMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CbfCurrentCheckMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( CbfFailBackupTrip, 0x1 ) \ DB_DEFAULT_INT8_VALUE( DefGWPriority0, 0xC ) \ DB_DEFAULT_INT8_VALUE( DefGWPriority1, 0x9 ) \ DB_DEFAULT_INT8_VALUE( DefGWPriority2, 0x9 ) \ DB_DEFAULT_INT8_VALUE( DefGWPriority3, 0x9 ) \ DB_DEFAULT_INT8_VALUE( DefGWStatus0, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DefGWStatus1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DefGWStatus2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( DefGWStatus3, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UseCentralCredentialServer, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UserCredentialOperMode, 0x0 ) \ DB_DEFAULT_INT8_VALUE( SaveUserCredentialOper, 0x0 ) \ DB_DEFAULT_INT8_VALUE( UserAccessState, 0x20 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGConnectionEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGAllowControls, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGChannelPort, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGConstraints, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGOriginatorAddress, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGStatusConnectionState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G1_ScadaT10BRGStatusOriginatorAddress, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGConnectionEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGAllowControls, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGChannelPort, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGConstraints, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGOriginatorAddress, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGStatusConnectionState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G2_ScadaT10BRGStatusOriginatorAddress, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGConnectionEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGAllowControls, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGChannelPort, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGConstraints, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGOriginatorAddress, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGStatusConnectionState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G3_ScadaT10BRGStatusOriginatorAddress, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGConnectionEnable, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGAllowControls, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGChannelPort, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGIpVersion, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGConstraints, 0x6 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGOriginatorAddress, 0x1 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGStatusConnectionState, 0x0 ) \ DB_DEFAULT_INT8_VALUE( G4_ScadaT10BRGStatusOriginatorAddress, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BEnableGroup1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BEnableGroup2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PinResultHMI, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PukResultHMI, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PinResultCMS, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PukResultCMS, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BConnectionMethodGroup1, 0x0 ) \ DB_DEFAULT_INT8_VALUE( ScadaT10BConnectionMethodGroup2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PinLastWriteStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PukLastWriteStatus, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LinkStatusLAN, 0x0 ) \ DB_DEFAULT_INT8_VALUE( LinkStatusLAN2, 0x0 ) \ DB_DEFAULT_INT8_VALUE( GPRSDialingAPN, 0x1 ) \ DB_DEFAULT_INT8_VALUE( PinUpdated, 0x0 ) \ DB_DEFAULT_INT8_VALUE( PukUpdated, 0x0 ) \ /**The default value definitions for all string datapoints * Arguments: name, value * name The datapoint name * value The default datapoint value */ #define DB_DEFAULT_STR_VALUES \ \ DB_DEFAULT_STR_VALUE( SiteDesc, "A description 5678901234567890123456789" ) \ DB_DEFAULT_STR_VALUE( PwdSettings, "1234" ) \ DB_DEFAULT_STR_VALUE( PwdConnect, "4321" ) \ DB_DEFAULT_STR_VALUE( DNP3_ModemPreDialString, "ATD" ) \ DB_DEFAULT_STR_VALUE( CMS_ModemPreDialString, "ATD" ) \ DB_DEFAULT_STR_VALUE( G1_GrpName, "Feeder" ) \ DB_DEFAULT_STR_VALUE( T101_ModemPreDialString, "ATD" ) \ DB_DEFAULT_STR_VALUE( G2_GrpName, "Radial" ) \ DB_DEFAULT_STR_VALUE( G3_GrpName, "Middle" ) \ DB_DEFAULT_STR_VALUE( G4_GrpName, "Ring" ) \ DB_DEFAULT_STR_VALUE( G1_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G1_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G1_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G1_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G1_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G1_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G1_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G1_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G1_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G1_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G1_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G1_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G1_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G2_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G2_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G2_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G2_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G2_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G2_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G2_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G2_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G2_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G2_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G2_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G2_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G2_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G3_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G3_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G3_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G3_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G3_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G3_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G3_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G3_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G3_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G3_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G3_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G3_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G3_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G4_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G4_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G4_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G4_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G4_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G4_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G4_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G4_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G4_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G4_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G4_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G4_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G4_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G5_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G5_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G5_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G5_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G5_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G5_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G5_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G5_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G5_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G5_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G5_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G5_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G5_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G6_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G6_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G6_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G6_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G6_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G6_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G6_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G6_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G6_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G6_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G6_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G6_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G6_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G7_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G7_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G7_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G7_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G7_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G7_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G7_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G7_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G7_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G7_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G7_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G7_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G7_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G8_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G8_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G8_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G8_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G8_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G8_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G8_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G8_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G8_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G8_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G8_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G8_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G8_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G11_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G11_ModemPreDialString, "ATD" ) \ DB_DEFAULT_STR_VALUE( G11_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G11_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G11_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G11_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G11_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G11_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G11_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G11_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G11_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G11_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G11_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G11_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( Lan_MAC, "00:00:00:00:00:00" ) \ DB_DEFAULT_STR_VALUE( G12_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G12_ModemPreDialString, "ATD" ) \ DB_DEFAULT_STR_VALUE( G12_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G12_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G12_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G12_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G12_WlanNetworkKey, "12345678" ) \ DB_DEFAULT_STR_VALUE( G12_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G12_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G12_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G12_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G12_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G12_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G12_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G12_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G13_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G13_ModemPreDialString, "ATD" ) \ DB_DEFAULT_STR_VALUE( G13_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G13_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G13_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G13_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G13_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G13_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G13_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G13_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G13_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G13_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G13_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G13_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( WlanAPNetworkKey, "12345678" ) \ DB_DEFAULT_STR_VALUE( G14_ModemInitString, "ATZ" ) \ DB_DEFAULT_STR_VALUE( G14_ModemPreDialString, "ATD" ) \ DB_DEFAULT_STR_VALUE( G14_ModemHangUpCommand, "ATH" ) \ DB_DEFAULT_STR_VALUE( G14_ModemOffHookCommand, "ATH1" ) \ DB_DEFAULT_STR_VALUE( G14_ModemAutoAnswerOn, "ATS0=2" ) \ DB_DEFAULT_STR_VALUE( G14_ModemAutoAnswerOff, "ATS0=0" ) \ DB_DEFAULT_STR_VALUE( G14_DNP3ChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G14_DNP3ChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G14_CMSChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G14_CMSChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G14_HMIChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G14_HMIChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( G14_T10BChannelRequest, "0" ) \ DB_DEFAULT_STR_VALUE( G14_T10BChannelOpen, "0" ) \ DB_DEFAULT_STR_VALUE( LanB_MAC, "00:00:00:00:00:00" ) \ DB_DEFAULT_STR_VALUE( PMUStationName, "Station A" ) \ DB_DEFAULT_STR_VALUE( G1_ScadaT10BRGConnectionName, "RG1 C1" ) \ DB_DEFAULT_STR_VALUE( G2_ScadaT10BRGConnectionName, "RG1 C2" ) \ DB_DEFAULT_STR_VALUE( G3_ScadaT10BRGConnectionName, "RG2 C1" ) \ DB_DEFAULT_STR_VALUE( G4_ScadaT10BRGConnectionName, "RG2 C2" ) \ DB_DEFAULT_STR_VALUE( PinUpdateHMI1, "----" ) \ DB_DEFAULT_STR_VALUE( PinUpdateHMI2, "----" ) \ DB_DEFAULT_STR_VALUE( PukUpdateHMI1, "--------" ) \ DB_DEFAULT_STR_VALUE( PukUpdateHMI2, "--------" ) \ DB_DEFAULT_STR_VALUE( PinStore, "----" ) \ DB_DEFAULT_STR_VALUE( PukStore, "--------" ) \ DB_DEFAULT_STR_VALUE( PinUpdateCMS, "----" ) \ DB_DEFAULT_STR_VALUE( PukUpdateCMS, "--------" ) \ DB_DEFAULT_STR_VALUE( PinLastWriteString, "----" ) \ DB_DEFAULT_STR_VALUE( PukLastWriteString, "--------" ) \ DB_DEFAULT_STR_VALUE( MobileNetworkSIMCardID, "--------------------" ) \ /**The default value definitions for all Fixed Length and Variable Length * datapoints. All values are defined as having no value unless the * appropriate preprocessor define has been configured prior to including * this header. Initialisation must be as a C byte array i.e. 0x00, 0x01. * Signal and String type datapoints have separate initialisation handling * and are therefore not defined below. */ /* Default value of LoadProfNotice (DpId 64) */ #ifndef LOADPROFNOTICE_DEFAULT_VAL #define LOADPROFNOTICE_DEFAULT_VAL #endif /* Length of default value of LoadProfNotice (Maximum 396 Byte) */ #ifndef LOADPROFNOTICE_DEFAULT_LEN #define LOADPROFNOTICE_DEFAULT_LEN 0 #endif /* Default value of HmiErrMsgFull (DpId 97) */ #ifndef HMIERRMSGFULL_DEFAULT_VAL #define HMIERRMSGFULL_DEFAULT_VAL #endif /* Length of default value of HmiErrMsgFull (Maximum 16 Byte) */ #ifndef HMIERRMSGFULL_DEFAULT_LEN #define HMIERRMSGFULL_DEFAULT_LEN 0 #endif /* Default value of HmiPasswordUser (DpId 101) */ #ifndef HMIPASSWORDUSER_DEFAULT_VAL #define HMIPASSWORDUSER_DEFAULT_VAL #endif /* Length of default value of HmiPasswordUser (Maximum 4 Byte) */ #ifndef HMIPASSWORDUSER_DEFAULT_LEN #define HMIPASSWORDUSER_DEFAULT_LEN 0 #endif /* Default value of G1_OC1F_TccUD (DpId 199) */ #ifndef G1_OC1F_TCCUD_DEFAULT_VAL #define G1_OC1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_OC1F_TccUD (Maximum 670 Byte) */ #ifndef G1_OC1F_TCCUD_DEFAULT_LEN #define G1_OC1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_OC2F_TccUD (DpId 217) */ #ifndef G1_OC2F_TCCUD_DEFAULT_VAL #define G1_OC2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_OC2F_TccUD (Maximum 670 Byte) */ #ifndef G1_OC2F_TCCUD_DEFAULT_LEN #define G1_OC2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_OC1R_TccUD (DpId 243) */ #ifndef G1_OC1R_TCCUD_DEFAULT_VAL #define G1_OC1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_OC1R_TccUD (Maximum 670 Byte) */ #ifndef G1_OC1R_TCCUD_DEFAULT_LEN #define G1_OC1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_OC2R_TccUD (DpId 261) */ #ifndef G1_OC2R_TCCUD_DEFAULT_VAL #define G1_OC2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_OC2R_TccUD (Maximum 670 Byte) */ #ifndef G1_OC2R_TCCUD_DEFAULT_LEN #define G1_OC2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_EF1F_TccUD (DpId 287) */ #ifndef G1_EF1F_TCCUD_DEFAULT_VAL #define G1_EF1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_EF1F_TccUD (Maximum 670 Byte) */ #ifndef G1_EF1F_TCCUD_DEFAULT_LEN #define G1_EF1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_EF2F_TccUD (DpId 305) */ #ifndef G1_EF2F_TCCUD_DEFAULT_VAL #define G1_EF2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_EF2F_TccUD (Maximum 670 Byte) */ #ifndef G1_EF2F_TCCUD_DEFAULT_LEN #define G1_EF2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_EF1R_TccUD (DpId 331) */ #ifndef G1_EF1R_TCCUD_DEFAULT_VAL #define G1_EF1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_EF1R_TccUD (Maximum 670 Byte) */ #ifndef G1_EF1R_TCCUD_DEFAULT_LEN #define G1_EF1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_EF2R_TccUD (DpId 349) */ #ifndef G1_EF2R_TCCUD_DEFAULT_VAL #define G1_EF2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_EF2R_TccUD (Maximum 670 Byte) */ #ifndef G1_EF2R_TCCUD_DEFAULT_LEN #define G1_EF2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BSingleInfoInputs (DpId 511) */ #ifndef SCADAT10BSINGLEINFOINPUTS_DEFAULT_VAL #define SCADAT10BSINGLEINFOINPUTS_DEFAULT_VAL #endif /* Length of default value of ScadaT10BSingleInfoInputs (Maximum 642 Byte) */ #ifndef SCADAT10BSINGLEINFOINPUTS_DEFAULT_LEN #define SCADAT10BSINGLEINFOINPUTS_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BDoubleInfoInputs (DpId 512) */ #ifndef SCADAT10BDOUBLEINFOINPUTS_DEFAULT_VAL #define SCADAT10BDOUBLEINFOINPUTS_DEFAULT_VAL #endif /* Length of default value of ScadaT10BDoubleInfoInputs (Maximum 162 Byte) */ #ifndef SCADAT10BDOUBLEINFOINPUTS_DEFAULT_LEN #define SCADAT10BDOUBLEINFOINPUTS_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BSingleCmndOutputs (DpId 513) */ #ifndef SCADAT10BSINGLECMNDOUTPUTS_DEFAULT_VAL #define SCADAT10BSINGLECMNDOUTPUTS_DEFAULT_VAL #endif /* Length of default value of ScadaT10BSingleCmndOutputs (Maximum 322 Byte) */ #ifndef SCADAT10BSINGLECMNDOUTPUTS_DEFAULT_LEN #define SCADAT10BSINGLECMNDOUTPUTS_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BDoubleCmndOutputs (DpId 514) */ #ifndef SCADAT10BDOUBLECMNDOUTPUTS_DEFAULT_VAL #define SCADAT10BDOUBLECMNDOUTPUTS_DEFAULT_VAL #endif /* Length of default value of ScadaT10BDoubleCmndOutputs (Maximum 162 Byte) */ #ifndef SCADAT10BDOUBLECMNDOUTPUTS_DEFAULT_LEN #define SCADAT10BDOUBLECMNDOUTPUTS_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BMeasuredValues (DpId 515) */ #ifndef SCADAT10BMEASUREDVALUES_DEFAULT_VAL #define SCADAT10BMEASUREDVALUES_DEFAULT_VAL #endif /* Length of default value of ScadaT10BMeasuredValues (Maximum 770 Byte) */ #ifndef SCADAT10BMEASUREDVALUES_DEFAULT_LEN #define SCADAT10BMEASUREDVALUES_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BSetpointCommand (DpId 516) */ #ifndef SCADAT10BSETPOINTCOMMAND_DEFAULT_VAL #define SCADAT10BSETPOINTCOMMAND_DEFAULT_VAL #endif /* Length of default value of ScadaT10BSetpointCommand (Maximum 26 Byte) */ #ifndef SCADAT10BSETPOINTCOMMAND_DEFAULT_LEN #define SCADAT10BSETPOINTCOMMAND_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BParameterCommand (DpId 517) */ #ifndef SCADAT10BPARAMETERCOMMAND_DEFAULT_VAL #define SCADAT10BPARAMETERCOMMAND_DEFAULT_VAL #endif /* Length of default value of ScadaT10BParameterCommand (Maximum 98 Byte) */ #ifndef SCADAT10BPARAMETERCOMMAND_DEFAULT_LEN #define SCADAT10BPARAMETERCOMMAND_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BIntegratedTotal (DpId 518) */ #ifndef SCADAT10BINTEGRATEDTOTAL_DEFAULT_VAL #define SCADAT10BINTEGRATEDTOTAL_DEFAULT_VAL #endif /* Length of default value of ScadaT10BIntegratedTotal (Maximum 578 Byte) */ #ifndef SCADAT10BINTEGRATEDTOTAL_DEFAULT_LEN #define SCADAT10BINTEGRATEDTOTAL_DEFAULT_LEN 0 #endif /* Default value of ScadaDnp3IpMasterAddr (DpId 525) */ #ifndef SCADADNP3IPMASTERADDR_DEFAULT_VAL #define SCADADNP3IPMASTERADDR_DEFAULT_VAL #endif /* Length of default value of ScadaDnp3IpMasterAddr (Maximum 4 Byte) */ #ifndef SCADADNP3IPMASTERADDR_DEFAULT_LEN #define SCADADNP3IPMASTERADDR_DEFAULT_LEN 0 #endif /* Default value of IdIo1SerialNumber (DpId 556) */ #ifndef IDIO1SERIALNUMBER_DEFAULT_VAL #define IDIO1SERIALNUMBER_DEFAULT_VAL #endif /* Length of default value of IdIo1SerialNumber (Maximum 13 Byte) */ #ifndef IDIO1SERIALNUMBER_DEFAULT_LEN #define IDIO1SERIALNUMBER_DEFAULT_LEN 0 #endif /* Default value of Curv1 (DpId 557) */ #ifndef CURV1_DEFAULT_VAL #define CURV1_DEFAULT_VAL #endif /* Length of default value of Curv1 (Maximum 670 Byte) */ #ifndef CURV1_DEFAULT_LEN #define CURV1_DEFAULT_LEN 0 #endif /* Default value of Curv2 (DpId 558) */ #ifndef CURV2_DEFAULT_VAL #define CURV2_DEFAULT_VAL #endif /* Length of default value of Curv2 (Maximum 670 Byte) */ #ifndef CURV2_DEFAULT_LEN #define CURV2_DEFAULT_LEN 0 #endif /* Default value of Curv3 (DpId 559) */ #ifndef CURV3_DEFAULT_VAL #define CURV3_DEFAULT_VAL #endif /* Length of default value of Curv3 (Maximum 670 Byte) */ #ifndef CURV3_DEFAULT_LEN #define CURV3_DEFAULT_LEN 0 #endif /* Default value of Curv4 (DpId 560) */ #ifndef CURV4_DEFAULT_VAL #define CURV4_DEFAULT_VAL #endif /* Length of default value of Curv4 (Maximum 670 Byte) */ #ifndef CURV4_DEFAULT_LEN #define CURV4_DEFAULT_LEN 0 #endif /* Default value of Curv5 (DpId 561) */ #ifndef CURV5_DEFAULT_VAL #define CURV5_DEFAULT_VAL #endif /* Length of default value of Curv5 (Maximum 670 Byte) */ #ifndef CURV5_DEFAULT_LEN #define CURV5_DEFAULT_LEN 0 #endif /* Default value of Curv6 (DpId 562) */ #ifndef CURV6_DEFAULT_VAL #define CURV6_DEFAULT_VAL #endif /* Length of default value of Curv6 (Maximum 670 Byte) */ #ifndef CURV6_DEFAULT_LEN #define CURV6_DEFAULT_LEN 0 #endif /* Default value of Curv7 (DpId 563) */ #ifndef CURV7_DEFAULT_VAL #define CURV7_DEFAULT_VAL #endif /* Length of default value of Curv7 (Maximum 670 Byte) */ #ifndef CURV7_DEFAULT_LEN #define CURV7_DEFAULT_LEN 0 #endif /* Default value of Curv8 (DpId 564) */ #ifndef CURV8_DEFAULT_VAL #define CURV8_DEFAULT_VAL #endif /* Length of default value of Curv8 (Maximum 670 Byte) */ #ifndef CURV8_DEFAULT_LEN #define CURV8_DEFAULT_LEN 0 #endif /* Default value of Curv9 (DpId 565) */ #ifndef CURV9_DEFAULT_VAL #define CURV9_DEFAULT_VAL #endif /* Length of default value of Curv9 (Maximum 670 Byte) */ #ifndef CURV9_DEFAULT_LEN #define CURV9_DEFAULT_LEN 0 #endif /* Default value of Curv10 (DpId 566) */ #ifndef CURV10_DEFAULT_VAL #define CURV10_DEFAULT_VAL #endif /* Length of default value of Curv10 (Maximum 670 Byte) */ #ifndef CURV10_DEFAULT_LEN #define CURV10_DEFAULT_LEN 0 #endif /* Default value of Curv11 (DpId 567) */ #ifndef CURV11_DEFAULT_VAL #define CURV11_DEFAULT_VAL #endif /* Length of default value of Curv11 (Maximum 670 Byte) */ #ifndef CURV11_DEFAULT_LEN #define CURV11_DEFAULT_LEN 0 #endif /* Default value of Curv12 (DpId 568) */ #ifndef CURV12_DEFAULT_VAL #define CURV12_DEFAULT_VAL #endif /* Length of default value of Curv12 (Maximum 670 Byte) */ #ifndef CURV12_DEFAULT_LEN #define CURV12_DEFAULT_LEN 0 #endif /* Default value of Curv13 (DpId 569) */ #ifndef CURV13_DEFAULT_VAL #define CURV13_DEFAULT_VAL #endif /* Length of default value of Curv13 (Maximum 670 Byte) */ #ifndef CURV13_DEFAULT_LEN #define CURV13_DEFAULT_LEN 0 #endif /* Default value of Curv14 (DpId 570) */ #ifndef CURV14_DEFAULT_VAL #define CURV14_DEFAULT_VAL #endif /* Length of default value of Curv14 (Maximum 670 Byte) */ #ifndef CURV14_DEFAULT_LEN #define CURV14_DEFAULT_LEN 0 #endif /* Default value of Curv15 (DpId 571) */ #ifndef CURV15_DEFAULT_VAL #define CURV15_DEFAULT_VAL #endif /* Length of default value of Curv15 (Maximum 670 Byte) */ #ifndef CURV15_DEFAULT_LEN #define CURV15_DEFAULT_LEN 0 #endif /* Default value of Curv16 (DpId 572) */ #ifndef CURV16_DEFAULT_VAL #define CURV16_DEFAULT_VAL #endif /* Length of default value of Curv16 (Maximum 670 Byte) */ #ifndef CURV16_DEFAULT_LEN #define CURV16_DEFAULT_LEN 0 #endif /* Default value of Curv17 (DpId 573) */ #ifndef CURV17_DEFAULT_VAL #define CURV17_DEFAULT_VAL #endif /* Length of default value of Curv17 (Maximum 670 Byte) */ #ifndef CURV17_DEFAULT_LEN #define CURV17_DEFAULT_LEN 0 #endif /* Default value of Curv18 (DpId 574) */ #ifndef CURV18_DEFAULT_VAL #define CURV18_DEFAULT_VAL #endif /* Length of default value of Curv18 (Maximum 670 Byte) */ #ifndef CURV18_DEFAULT_LEN #define CURV18_DEFAULT_LEN 0 #endif /* Default value of Curv19 (DpId 575) */ #ifndef CURV19_DEFAULT_VAL #define CURV19_DEFAULT_VAL #endif /* Length of default value of Curv19 (Maximum 670 Byte) */ #ifndef CURV19_DEFAULT_LEN #define CURV19_DEFAULT_LEN 0 #endif /* Default value of Curv20 (DpId 576) */ #ifndef CURV20_DEFAULT_VAL #define CURV20_DEFAULT_VAL #endif /* Length of default value of Curv20 (Maximum 670 Byte) */ #ifndef CURV20_DEFAULT_LEN #define CURV20_DEFAULT_LEN 0 #endif /* Default value of Curv21 (DpId 577) */ #ifndef CURV21_DEFAULT_VAL #define CURV21_DEFAULT_VAL #endif /* Length of default value of Curv21 (Maximum 670 Byte) */ #ifndef CURV21_DEFAULT_LEN #define CURV21_DEFAULT_LEN 0 #endif /* Default value of Curv22 (DpId 578) */ #ifndef CURV22_DEFAULT_VAL #define CURV22_DEFAULT_VAL #endif /* Length of default value of Curv22 (Maximum 670 Byte) */ #ifndef CURV22_DEFAULT_LEN #define CURV22_DEFAULT_LEN 0 #endif /* Default value of Curv23 (DpId 579) */ #ifndef CURV23_DEFAULT_VAL #define CURV23_DEFAULT_VAL #endif /* Length of default value of Curv23 (Maximum 670 Byte) */ #ifndef CURV23_DEFAULT_LEN #define CURV23_DEFAULT_LEN 0 #endif /* Default value of Curv24 (DpId 580) */ #ifndef CURV24_DEFAULT_VAL #define CURV24_DEFAULT_VAL #endif /* Length of default value of Curv24 (Maximum 670 Byte) */ #ifndef CURV24_DEFAULT_LEN #define CURV24_DEFAULT_LEN 0 #endif /* Default value of Curv25 (DpId 581) */ #ifndef CURV25_DEFAULT_VAL #define CURV25_DEFAULT_VAL #endif /* Length of default value of Curv25 (Maximum 670 Byte) */ #ifndef CURV25_DEFAULT_LEN #define CURV25_DEFAULT_LEN 0 #endif /* Default value of Curv26 (DpId 582) */ #ifndef CURV26_DEFAULT_VAL #define CURV26_DEFAULT_VAL #endif /* Length of default value of Curv26 (Maximum 670 Byte) */ #ifndef CURV26_DEFAULT_LEN #define CURV26_DEFAULT_LEN 0 #endif /* Default value of Curv27 (DpId 583) */ #ifndef CURV27_DEFAULT_VAL #define CURV27_DEFAULT_VAL #endif /* Length of default value of Curv27 (Maximum 670 Byte) */ #ifndef CURV27_DEFAULT_LEN #define CURV27_DEFAULT_LEN 0 #endif /* Default value of Curv28 (DpId 584) */ #ifndef CURV28_DEFAULT_VAL #define CURV28_DEFAULT_VAL #endif /* Length of default value of Curv28 (Maximum 670 Byte) */ #ifndef CURV28_DEFAULT_LEN #define CURV28_DEFAULT_LEN 0 #endif /* Default value of Curv29 (DpId 585) */ #ifndef CURV29_DEFAULT_VAL #define CURV29_DEFAULT_VAL #endif /* Length of default value of Curv29 (Maximum 670 Byte) */ #ifndef CURV29_DEFAULT_LEN #define CURV29_DEFAULT_LEN 0 #endif /* Default value of Curv30 (DpId 586) */ #ifndef CURV30_DEFAULT_VAL #define CURV30_DEFAULT_VAL #endif /* Length of default value of Curv30 (Maximum 670 Byte) */ #ifndef CURV30_DEFAULT_LEN #define CURV30_DEFAULT_LEN 0 #endif /* Default value of Curv31 (DpId 587) */ #ifndef CURV31_DEFAULT_VAL #define CURV31_DEFAULT_VAL #endif /* Length of default value of Curv31 (Maximum 670 Byte) */ #ifndef CURV31_DEFAULT_LEN #define CURV31_DEFAULT_LEN 0 #endif /* Default value of Curv32 (DpId 588) */ #ifndef CURV32_DEFAULT_VAL #define CURV32_DEFAULT_VAL #endif /* Length of default value of Curv32 (Maximum 670 Byte) */ #ifndef CURV32_DEFAULT_LEN #define CURV32_DEFAULT_LEN 0 #endif /* Default value of Curv33 (DpId 589) */ #ifndef CURV33_DEFAULT_VAL #define CURV33_DEFAULT_VAL #endif /* Length of default value of Curv33 (Maximum 670 Byte) */ #ifndef CURV33_DEFAULT_LEN #define CURV33_DEFAULT_LEN 0 #endif /* Default value of Curv34 (DpId 590) */ #ifndef CURV34_DEFAULT_VAL #define CURV34_DEFAULT_VAL #endif /* Length of default value of Curv34 (Maximum 670 Byte) */ #ifndef CURV34_DEFAULT_LEN #define CURV34_DEFAULT_LEN 0 #endif /* Default value of Curv35 (DpId 591) */ #ifndef CURV35_DEFAULT_VAL #define CURV35_DEFAULT_VAL #endif /* Length of default value of Curv35 (Maximum 670 Byte) */ #ifndef CURV35_DEFAULT_LEN #define CURV35_DEFAULT_LEN 0 #endif /* Default value of Curv36 (DpId 592) */ #ifndef CURV36_DEFAULT_VAL #define CURV36_DEFAULT_VAL #endif /* Length of default value of Curv36 (Maximum 670 Byte) */ #ifndef CURV36_DEFAULT_LEN #define CURV36_DEFAULT_LEN 0 #endif /* Default value of Curv37 (DpId 593) */ #ifndef CURV37_DEFAULT_VAL #define CURV37_DEFAULT_VAL #endif /* Length of default value of Curv37 (Maximum 670 Byte) */ #ifndef CURV37_DEFAULT_LEN #define CURV37_DEFAULT_LEN 0 #endif /* Default value of Curv38 (DpId 594) */ #ifndef CURV38_DEFAULT_VAL #define CURV38_DEFAULT_VAL #endif /* Length of default value of Curv38 (Maximum 670 Byte) */ #ifndef CURV38_DEFAULT_LEN #define CURV38_DEFAULT_LEN 0 #endif /* Default value of Curv39 (DpId 595) */ #ifndef CURV39_DEFAULT_VAL #define CURV39_DEFAULT_VAL #endif /* Length of default value of Curv39 (Maximum 670 Byte) */ #ifndef CURV39_DEFAULT_LEN #define CURV39_DEFAULT_LEN 0 #endif /* Default value of Curv40 (DpId 596) */ #ifndef CURV40_DEFAULT_VAL #define CURV40_DEFAULT_VAL #endif /* Length of default value of Curv40 (Maximum 670 Byte) */ #ifndef CURV40_DEFAULT_LEN #define CURV40_DEFAULT_LEN 0 #endif /* Default value of Curv41 (DpId 597) */ #ifndef CURV41_DEFAULT_VAL #define CURV41_DEFAULT_VAL #endif /* Length of default value of Curv41 (Maximum 670 Byte) */ #ifndef CURV41_DEFAULT_LEN #define CURV41_DEFAULT_LEN 0 #endif /* Default value of Curv42 (DpId 598) */ #ifndef CURV42_DEFAULT_VAL #define CURV42_DEFAULT_VAL #endif /* Length of default value of Curv42 (Maximum 670 Byte) */ #ifndef CURV42_DEFAULT_LEN #define CURV42_DEFAULT_LEN 0 #endif /* Default value of Curv43 (DpId 599) */ #ifndef CURV43_DEFAULT_VAL #define CURV43_DEFAULT_VAL #endif /* Length of default value of Curv43 (Maximum 670 Byte) */ #ifndef CURV43_DEFAULT_LEN #define CURV43_DEFAULT_LEN 0 #endif /* Default value of Curv44 (DpId 600) */ #ifndef CURV44_DEFAULT_VAL #define CURV44_DEFAULT_VAL #endif /* Length of default value of Curv44 (Maximum 670 Byte) */ #ifndef CURV44_DEFAULT_LEN #define CURV44_DEFAULT_LEN 0 #endif /* Default value of Curv45 (DpId 601) */ #ifndef CURV45_DEFAULT_VAL #define CURV45_DEFAULT_VAL #endif /* Length of default value of Curv45 (Maximum 670 Byte) */ #ifndef CURV45_DEFAULT_LEN #define CURV45_DEFAULT_LEN 0 #endif /* Default value of Curv46 (DpId 602) */ #ifndef CURV46_DEFAULT_VAL #define CURV46_DEFAULT_VAL #endif /* Length of default value of Curv46 (Maximum 670 Byte) */ #ifndef CURV46_DEFAULT_LEN #define CURV46_DEFAULT_LEN 0 #endif /* Default value of Curv47 (DpId 603) */ #ifndef CURV47_DEFAULT_VAL #define CURV47_DEFAULT_VAL #endif /* Length of default value of Curv47 (Maximum 670 Byte) */ #ifndef CURV47_DEFAULT_LEN #define CURV47_DEFAULT_LEN 0 #endif /* Default value of Curv48 (DpId 604) */ #ifndef CURV48_DEFAULT_VAL #define CURV48_DEFAULT_VAL #endif /* Length of default value of Curv48 (Maximum 670 Byte) */ #ifndef CURV48_DEFAULT_LEN #define CURV48_DEFAULT_LEN 0 #endif /* Default value of Curv49 (DpId 605) */ #ifndef CURV49_DEFAULT_VAL #define CURV49_DEFAULT_VAL #endif /* Length of default value of Curv49 (Maximum 670 Byte) */ #ifndef CURV49_DEFAULT_LEN #define CURV49_DEFAULT_LEN 0 #endif /* Default value of Curv50 (DpId 606) */ #ifndef CURV50_DEFAULT_VAL #define CURV50_DEFAULT_VAL #endif /* Length of default value of Curv50 (Maximum 670 Byte) */ #ifndef CURV50_DEFAULT_LEN #define CURV50_DEFAULT_LEN 0 #endif /* Default value of CoOpen (DpId 621) */ #ifndef COOPEN_DEFAULT_VAL #define COOPEN_DEFAULT_VAL #endif /* Length of default value of CoOpen (Maximum 34 Byte) */ #ifndef COOPEN_DEFAULT_LEN #define COOPEN_DEFAULT_LEN 0 #endif /* Default value of CoClose (DpId 622) */ #ifndef COCLOSE_DEFAULT_VAL #define COCLOSE_DEFAULT_VAL #endif /* Length of default value of CoClose (Maximum 34 Byte) */ #ifndef COCLOSE_DEFAULT_LEN #define COCLOSE_DEFAULT_LEN 0 #endif /* Default value of CoOpenReq (DpId 623) */ #ifndef COOPENREQ_DEFAULT_VAL #define COOPENREQ_DEFAULT_VAL #endif /* Length of default value of CoOpenReq (Maximum 34 Byte) */ #ifndef COOPENREQ_DEFAULT_LEN #define COOPENREQ_DEFAULT_LEN 0 #endif /* Default value of CoCloseReq (DpId 624) */ #ifndef COCLOSEREQ_DEFAULT_VAL #define COCLOSEREQ_DEFAULT_VAL #endif /* Length of default value of CoCloseReq (Maximum 34 Byte) */ #ifndef COCLOSEREQ_DEFAULT_LEN #define COCLOSEREQ_DEFAULT_LEN 0 #endif /* Default value of CanSdoReadReq (DpId 629) */ #ifndef CANSDOREADREQ_DEFAULT_VAL #define CANSDOREADREQ_DEFAULT_VAL #endif /* Length of default value of CanSdoReadReq (Maximum 10 Byte) */ #ifndef CANSDOREADREQ_DEFAULT_LEN #define CANSDOREADREQ_DEFAULT_LEN 0 #endif /* Default value of CanSimBootLoaderVers (DpId 700) */ #ifndef CANSIMBOOTLOADERVERS_DEFAULT_VAL #define CANSIMBOOTLOADERVERS_DEFAULT_VAL #endif /* Length of default value of CanSimBootLoaderVers (Maximum 6 Byte) */ #ifndef CANSIMBOOTLOADERVERS_DEFAULT_LEN #define CANSIMBOOTLOADERVERS_DEFAULT_LEN 0 #endif /* Default value of IdIo2SerialNumber (DpId 701) */ #ifndef IDIO2SERIALNUMBER_DEFAULT_VAL #define IDIO2SERIALNUMBER_DEFAULT_VAL #endif /* Length of default value of IdIo2SerialNumber (Maximum 13 Byte) */ #ifndef IDIO2SERIALNUMBER_DEFAULT_LEN #define IDIO2SERIALNUMBER_DEFAULT_LEN 0 #endif /* Default value of CanSimReadSWVers (DpId 704) */ #ifndef CANSIMREADSWVERS_DEFAULT_VAL #define CANSIMREADSWVERS_DEFAULT_VAL #endif /* Length of default value of CanSimReadSWVers (Maximum 6 Byte) */ #ifndef CANSIMREADSWVERS_DEFAULT_LEN #define CANSIMREADSWVERS_DEFAULT_LEN 0 #endif /* Default value of CanDataRequestIo1 (DpId 752) */ #ifndef CANDATAREQUESTIO1_DEFAULT_VAL #define CANDATAREQUESTIO1_DEFAULT_VAL #endif /* Length of default value of CanDataRequestIo1 (Maximum 4 Byte) */ #ifndef CANDATAREQUESTIO1_DEFAULT_LEN #define CANDATAREQUESTIO1_DEFAULT_LEN 0 #endif /* Default value of CanDataRequestIo2 (DpId 778) */ #ifndef CANDATAREQUESTIO2_DEFAULT_VAL #define CANDATAREQUESTIO2_DEFAULT_VAL #endif /* Length of default value of CanDataRequestIo2 (Maximum 4 Byte) */ #ifndef CANDATAREQUESTIO2_DEFAULT_LEN #define CANDATAREQUESTIO2_DEFAULT_LEN 0 #endif /* Default value of G2_OC1F_TccUD (DpId 786) */ #ifndef G2_OC1F_TCCUD_DEFAULT_VAL #define G2_OC1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_OC1F_TccUD (Maximum 670 Byte) */ #ifndef G2_OC1F_TCCUD_DEFAULT_LEN #define G2_OC1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_OC2F_TccUD (DpId 804) */ #ifndef G2_OC2F_TCCUD_DEFAULT_VAL #define G2_OC2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_OC2F_TccUD (Maximum 670 Byte) */ #ifndef G2_OC2F_TCCUD_DEFAULT_LEN #define G2_OC2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_OC1R_TccUD (DpId 830) */ #ifndef G2_OC1R_TCCUD_DEFAULT_VAL #define G2_OC1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_OC1R_TccUD (Maximum 670 Byte) */ #ifndef G2_OC1R_TCCUD_DEFAULT_LEN #define G2_OC1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_OC2R_TccUD (DpId 848) */ #ifndef G2_OC2R_TCCUD_DEFAULT_VAL #define G2_OC2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_OC2R_TccUD (Maximum 670 Byte) */ #ifndef G2_OC2R_TCCUD_DEFAULT_LEN #define G2_OC2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_EF1F_TccUD (DpId 874) */ #ifndef G2_EF1F_TCCUD_DEFAULT_VAL #define G2_EF1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_EF1F_TccUD (Maximum 670 Byte) */ #ifndef G2_EF1F_TCCUD_DEFAULT_LEN #define G2_EF1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_EF2F_TccUD (DpId 892) */ #ifndef G2_EF2F_TCCUD_DEFAULT_VAL #define G2_EF2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_EF2F_TccUD (Maximum 670 Byte) */ #ifndef G2_EF2F_TCCUD_DEFAULT_LEN #define G2_EF2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_EF1R_TccUD (DpId 918) */ #ifndef G2_EF1R_TCCUD_DEFAULT_VAL #define G2_EF1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_EF1R_TccUD (Maximum 670 Byte) */ #ifndef G2_EF1R_TCCUD_DEFAULT_LEN #define G2_EF1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_EF2R_TccUD (DpId 936) */ #ifndef G2_EF2R_TCCUD_DEFAULT_VAL #define G2_EF2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_EF2R_TccUD (Maximum 670 Byte) */ #ifndef G2_EF2R_TCCUD_DEFAULT_LEN #define G2_EF2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of CanIo1InputRecognitionTime (DpId 1014) */ #ifndef CANIO1INPUTRECOGNITIONTIME_DEFAULT_VAL #define CANIO1INPUTRECOGNITIONTIME_DEFAULT_VAL #endif /* Length of default value of CanIo1InputRecognitionTime (Maximum 8 Byte) */ #ifndef CANIO1INPUTRECOGNITIONTIME_DEFAULT_LEN #define CANIO1INPUTRECOGNITIONTIME_DEFAULT_LEN 0 #endif /* Default value of CanIo2InputRecognitionTime (DpId 1015) */ #ifndef CANIO2INPUTRECOGNITIONTIME_DEFAULT_VAL #define CANIO2INPUTRECOGNITIONTIME_DEFAULT_VAL #endif /* Length of default value of CanIo2InputRecognitionTime (Maximum 8 Byte) */ #ifndef CANIO2INPUTRECOGNITIONTIME_DEFAULT_LEN #define CANIO2INPUTRECOGNITIONTIME_DEFAULT_LEN 0 #endif /* Default value of ScadaDnp3IpUnathIpAddr (DpId 1040) */ #ifndef SCADADNP3IPUNATHIPADDR_DEFAULT_VAL #define SCADADNP3IPUNATHIPADDR_DEFAULT_VAL #endif /* Length of default value of ScadaDnp3IpUnathIpAddr (Maximum 4 Byte) */ #ifndef SCADADNP3IPUNATHIPADDR_DEFAULT_LEN #define SCADADNP3IPUNATHIPADDR_DEFAULT_LEN 0 #endif /* Default value of CanIo1SerialNumber (DpId 1049) */ #ifndef CANIO1SERIALNUMBER_DEFAULT_VAL #define CANIO1SERIALNUMBER_DEFAULT_VAL #endif /* Length of default value of CanIo1SerialNumber (Maximum 8 Byte) */ #ifndef CANIO1SERIALNUMBER_DEFAULT_LEN #define CANIO1SERIALNUMBER_DEFAULT_LEN 0 #endif /* Default value of CanIo2SerialNumber (DpId 1050) */ #ifndef CANIO2SERIALNUMBER_DEFAULT_VAL #define CANIO2SERIALNUMBER_DEFAULT_VAL #endif /* Length of default value of CanIo2SerialNumber (Maximum 8 Byte) */ #ifndef CANIO2SERIALNUMBER_DEFAULT_LEN #define CANIO2SERIALNUMBER_DEFAULT_LEN 0 #endif /* Default value of CanIo1ReadSwVers (DpId 1062) */ #ifndef CANIO1READSWVERS_DEFAULT_VAL #define CANIO1READSWVERS_DEFAULT_VAL #endif /* Length of default value of CanIo1ReadSwVers (Maximum 6 Byte) */ #ifndef CANIO1READSWVERS_DEFAULT_LEN #define CANIO1READSWVERS_DEFAULT_LEN 0 #endif /* Default value of CanIo2ReadSwVers (DpId 1063) */ #ifndef CANIO2READSWVERS_DEFAULT_VAL #define CANIO2READSWVERS_DEFAULT_VAL #endif /* Length of default value of CanIo2ReadSwVers (Maximum 6 Byte) */ #ifndef CANIO2READSWVERS_DEFAULT_LEN #define CANIO2READSWVERS_DEFAULT_LEN 0 #endif /* Default value of CanIoAddrReq (DpId 1068) */ #ifndef CANIOADDRREQ_DEFAULT_VAL #define CANIOADDRREQ_DEFAULT_VAL #endif /* Length of default value of CanIoAddrReq (Maximum 8 Byte) */ #ifndef CANIOADDRREQ_DEFAULT_LEN #define CANIOADDRREQ_DEFAULT_LEN 0 #endif /* Default value of p2pRemoteLanAddr (DpId 1119) */ #ifndef P2PREMOTELANADDR_DEFAULT_VAL #define P2PREMOTELANADDR_DEFAULT_VAL #endif /* Length of default value of p2pRemoteLanAddr (Maximum 4 Byte) */ #ifndef P2PREMOTELANADDR_DEFAULT_LEN #define P2PREMOTELANADDR_DEFAULT_LEN 0 #endif /* Default value of LogicCh1InputExp (DpId 1135) */ #ifndef LOGICCH1INPUTEXP_DEFAULT_VAL #define LOGICCH1INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh1InputExp (Maximum 41 Byte) */ #ifndef LOGICCH1INPUTEXP_DEFAULT_LEN #define LOGICCH1INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh2InputExp (DpId 1136) */ #ifndef LOGICCH2INPUTEXP_DEFAULT_VAL #define LOGICCH2INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh2InputExp (Maximum 41 Byte) */ #ifndef LOGICCH2INPUTEXP_DEFAULT_LEN #define LOGICCH2INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh3InputExp (DpId 1137) */ #ifndef LOGICCH3INPUTEXP_DEFAULT_VAL #define LOGICCH3INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh3InputExp (Maximum 41 Byte) */ #ifndef LOGICCH3INPUTEXP_DEFAULT_LEN #define LOGICCH3INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh4InputExp (DpId 1138) */ #ifndef LOGICCH4INPUTEXP_DEFAULT_VAL #define LOGICCH4INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh4InputExp (Maximum 41 Byte) */ #ifndef LOGICCH4INPUTEXP_DEFAULT_LEN #define LOGICCH4INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh5InputExp (DpId 1139) */ #ifndef LOGICCH5INPUTEXP_DEFAULT_VAL #define LOGICCH5INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh5InputExp (Maximum 41 Byte) */ #ifndef LOGICCH5INPUTEXP_DEFAULT_LEN #define LOGICCH5INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh6InputExp (DpId 1140) */ #ifndef LOGICCH6INPUTEXP_DEFAULT_VAL #define LOGICCH6INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh6InputExp (Maximum 41 Byte) */ #ifndef LOGICCH6INPUTEXP_DEFAULT_LEN #define LOGICCH6INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh7InputExp (DpId 1141) */ #ifndef LOGICCH7INPUTEXP_DEFAULT_VAL #define LOGICCH7INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh7InputExp (Maximum 41 Byte) */ #ifndef LOGICCH7INPUTEXP_DEFAULT_LEN #define LOGICCH7INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh8InputExp (DpId 1142) */ #ifndef LOGICCH8INPUTEXP_DEFAULT_VAL #define LOGICCH8INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh8InputExp (Maximum 41 Byte) */ #ifndef LOGICCH8INPUTEXP_DEFAULT_LEN #define LOGICCH8INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of G3_OC1F_TccUD (DpId 1186) */ #ifndef G3_OC1F_TCCUD_DEFAULT_VAL #define G3_OC1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_OC1F_TccUD (Maximum 670 Byte) */ #ifndef G3_OC1F_TCCUD_DEFAULT_LEN #define G3_OC1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_OC2F_TccUD (DpId 1204) */ #ifndef G3_OC2F_TCCUD_DEFAULT_VAL #define G3_OC2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_OC2F_TccUD (Maximum 670 Byte) */ #ifndef G3_OC2F_TCCUD_DEFAULT_LEN #define G3_OC2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_OC1R_TccUD (DpId 1230) */ #ifndef G3_OC1R_TCCUD_DEFAULT_VAL #define G3_OC1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_OC1R_TccUD (Maximum 670 Byte) */ #ifndef G3_OC1R_TCCUD_DEFAULT_LEN #define G3_OC1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_OC2R_TccUD (DpId 1248) */ #ifndef G3_OC2R_TCCUD_DEFAULT_VAL #define G3_OC2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_OC2R_TccUD (Maximum 670 Byte) */ #ifndef G3_OC2R_TCCUD_DEFAULT_LEN #define G3_OC2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_EF1F_TccUD (DpId 1274) */ #ifndef G3_EF1F_TCCUD_DEFAULT_VAL #define G3_EF1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_EF1F_TccUD (Maximum 670 Byte) */ #ifndef G3_EF1F_TCCUD_DEFAULT_LEN #define G3_EF1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_EF2F_TccUD (DpId 1292) */ #ifndef G3_EF2F_TCCUD_DEFAULT_VAL #define G3_EF2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_EF2F_TccUD (Maximum 670 Byte) */ #ifndef G3_EF2F_TCCUD_DEFAULT_LEN #define G3_EF2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_EF1R_TccUD (DpId 1318) */ #ifndef G3_EF1R_TCCUD_DEFAULT_VAL #define G3_EF1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_EF1R_TccUD (Maximum 670 Byte) */ #ifndef G3_EF1R_TCCUD_DEFAULT_LEN #define G3_EF1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_EF2R_TccUD (DpId 1336) */ #ifndef G3_EF2R_TCCUD_DEFAULT_VAL #define G3_EF2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_EF2R_TccUD (Maximum 670 Byte) */ #ifndef G3_EF2R_TCCUD_DEFAULT_LEN #define G3_EF2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of LogicCh1OutputExp (DpId 1414) */ #ifndef LOGICCH1OUTPUTEXP_DEFAULT_VAL #define LOGICCH1OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh1OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH1OUTPUTEXP_DEFAULT_LEN #define LOGICCH1OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh2OutputExp (DpId 1415) */ #ifndef LOGICCH2OUTPUTEXP_DEFAULT_VAL #define LOGICCH2OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh2OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH2OUTPUTEXP_DEFAULT_LEN #define LOGICCH2OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh3OutputExp (DpId 1416) */ #ifndef LOGICCH3OUTPUTEXP_DEFAULT_VAL #define LOGICCH3OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh3OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH3OUTPUTEXP_DEFAULT_LEN #define LOGICCH3OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh4OutputExp (DpId 1417) */ #ifndef LOGICCH4OUTPUTEXP_DEFAULT_VAL #define LOGICCH4OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh4OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH4OUTPUTEXP_DEFAULT_LEN #define LOGICCH4OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh5OutputExp (DpId 1418) */ #ifndef LOGICCH5OUTPUTEXP_DEFAULT_VAL #define LOGICCH5OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh5OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH5OUTPUTEXP_DEFAULT_LEN #define LOGICCH5OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh6OutputExp (DpId 1419) */ #ifndef LOGICCH6OUTPUTEXP_DEFAULT_VAL #define LOGICCH6OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh6OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH6OUTPUTEXP_DEFAULT_LEN #define LOGICCH6OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh7OutputExp (DpId 1420) */ #ifndef LOGICCH7OUTPUTEXP_DEFAULT_VAL #define LOGICCH7OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh7OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH7OUTPUTEXP_DEFAULT_LEN #define LOGICCH7OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh8OutputExp (DpId 1421) */ #ifndef LOGICCH8OUTPUTEXP_DEFAULT_VAL #define LOGICCH8OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh8OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH8OUTPUTEXP_DEFAULT_LEN #define LOGICCH8OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of CanGpioRdData (DpId 1467) */ #ifndef CANGPIORDDATA_DEFAULT_VAL #define CANGPIORDDATA_DEFAULT_VAL #endif /* Length of default value of CanGpioRdData (Maximum 9 Byte) */ #ifndef CANGPIORDDATA_DEFAULT_LEN #define CANGPIORDDATA_DEFAULT_LEN 0 #endif /* Default value of CanDataRequestIo (DpId 1473) */ #ifndef CANDATAREQUESTIO_DEFAULT_VAL #define CANDATAREQUESTIO_DEFAULT_VAL #endif /* Length of default value of CanDataRequestIo (Maximum 4 Byte) */ #ifndef CANDATAREQUESTIO_DEFAULT_LEN #define CANDATAREQUESTIO_DEFAULT_LEN 0 #endif /* Default value of EvACOState (DpId 1515) */ #ifndef EVACOSTATE_DEFAULT_VAL #define EVACOSTATE_DEFAULT_VAL #endif /* Length of default value of EvACOState (Maximum 28 Byte) */ #ifndef EVACOSTATE_DEFAULT_LEN #define EVACOSTATE_DEFAULT_LEN 0 #endif /* Default value of G4_OC1F_TccUD (DpId 1586) */ #ifndef G4_OC1F_TCCUD_DEFAULT_VAL #define G4_OC1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_OC1F_TccUD (Maximum 670 Byte) */ #ifndef G4_OC1F_TCCUD_DEFAULT_LEN #define G4_OC1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_OC2F_TccUD (DpId 1604) */ #ifndef G4_OC2F_TCCUD_DEFAULT_VAL #define G4_OC2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_OC2F_TccUD (Maximum 670 Byte) */ #ifndef G4_OC2F_TCCUD_DEFAULT_LEN #define G4_OC2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_OC1R_TccUD (DpId 1630) */ #ifndef G4_OC1R_TCCUD_DEFAULT_VAL #define G4_OC1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_OC1R_TccUD (Maximum 670 Byte) */ #ifndef G4_OC1R_TCCUD_DEFAULT_LEN #define G4_OC1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_OC2R_TccUD (DpId 1648) */ #ifndef G4_OC2R_TCCUD_DEFAULT_VAL #define G4_OC2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_OC2R_TccUD (Maximum 670 Byte) */ #ifndef G4_OC2R_TCCUD_DEFAULT_LEN #define G4_OC2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_EF1F_TccUD (DpId 1674) */ #ifndef G4_EF1F_TCCUD_DEFAULT_VAL #define G4_EF1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_EF1F_TccUD (Maximum 670 Byte) */ #ifndef G4_EF1F_TCCUD_DEFAULT_LEN #define G4_EF1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_EF2F_TccUD (DpId 1692) */ #ifndef G4_EF2F_TCCUD_DEFAULT_VAL #define G4_EF2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_EF2F_TccUD (Maximum 670 Byte) */ #ifndef G4_EF2F_TCCUD_DEFAULT_LEN #define G4_EF2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_EF1R_TccUD (DpId 1718) */ #ifndef G4_EF1R_TCCUD_DEFAULT_VAL #define G4_EF1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_EF1R_TccUD (Maximum 670 Byte) */ #ifndef G4_EF1R_TCCUD_DEFAULT_LEN #define G4_EF1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_EF2R_TccUD (DpId 1736) */ #ifndef G4_EF2R_TCCUD_DEFAULT_VAL #define G4_EF2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_EF2R_TccUD (Maximum 670 Byte) */ #ifndef G4_EF2R_TCCUD_DEFAULT_LEN #define G4_EF2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of LogEventV (DpId 1853) */ #ifndef LOGEVENTV_DEFAULT_VAL #define LOGEVENTV_DEFAULT_VAL #endif /* Length of default value of LogEventV (Maximum 536 Byte) */ #ifndef LOGEVENTV_DEFAULT_LEN #define LOGEVENTV_DEFAULT_LEN 0 #endif /* Default value of LogToCmsTransferRequest (DpId 1932) */ #ifndef LOGTOCMSTRANSFERREQUEST_DEFAULT_VAL #define LOGTOCMSTRANSFERREQUEST_DEFAULT_VAL #endif /* Length of default value of LogToCmsTransferRequest (Maximum 32 Byte) */ #ifndef LOGTOCMSTRANSFERREQUEST_DEFAULT_LEN #define LOGTOCMSTRANSFERREQUEST_DEFAULT_LEN 0 #endif /* Default value of LogToCmsTransferReply (DpId 1933) */ #ifndef LOGTOCMSTRANSFERREPLY_DEFAULT_VAL #define LOGTOCMSTRANSFERREPLY_DEFAULT_VAL #endif /* Length of default value of LogToCmsTransferReply (Maximum 8 Byte) */ #ifndef LOGTOCMSTRANSFERREPLY_DEFAULT_LEN #define LOGTOCMSTRANSFERREPLY_DEFAULT_LEN 0 #endif /* Default value of CanDataRequestSim (DpId 2021) */ #ifndef CANDATAREQUESTSIM_DEFAULT_VAL #define CANDATAREQUESTSIM_DEFAULT_VAL #endif /* Length of default value of CanDataRequestSim (Maximum 4 Byte) */ #ifndef CANDATAREQUESTSIM_DEFAULT_LEN #define CANDATAREQUESTSIM_DEFAULT_LEN 0 #endif /* Default value of IdRelayNumber (DpId 2138) */ #ifndef IDRELAYNUMBER_DEFAULT_VAL #define IDRELAYNUMBER_DEFAULT_VAL #endif /* Length of default value of IdRelayNumber (Maximum 13 Byte) */ #ifndef IDRELAYNUMBER_DEFAULT_LEN #define IDRELAYNUMBER_DEFAULT_LEN 0 #endif /* Default value of IdSIMNumber (DpId 2142) */ #ifndef IDSIMNUMBER_DEFAULT_VAL #define IDSIMNUMBER_DEFAULT_VAL #endif /* Length of default value of IdSIMNumber (Maximum 13 Byte) */ #ifndef IDSIMNUMBER_DEFAULT_LEN #define IDSIMNUMBER_DEFAULT_LEN 0 #endif /* Default value of IdPanelNumber (DpId 2145) */ #ifndef IDPANELNUMBER_DEFAULT_VAL #define IDPANELNUMBER_DEFAULT_VAL #endif /* Length of default value of IdPanelNumber (Maximum 13 Byte) */ #ifndef IDPANELNUMBER_DEFAULT_LEN #define IDPANELNUMBER_DEFAULT_LEN 0 #endif /* Default value of SysDateTime (DpId 2149) */ #ifndef SYSDATETIME_DEFAULT_VAL #define SYSDATETIME_DEFAULT_VAL #endif /* Length of default value of SysDateTime (Maximum 8 Byte) */ #ifndef SYSDATETIME_DEFAULT_LEN #define SYSDATETIME_DEFAULT_LEN 0 #endif /* Default value of MeasLoadProfDef (DpId 2152) */ #ifndef MEASLOADPROFDEF_DEFAULT_VAL #define MEASLOADPROFDEF_DEFAULT_VAL #endif /* Length of default value of MeasLoadProfDef (Maximum 202 Byte) */ #ifndef MEASLOADPROFDEF_DEFAULT_LEN #define MEASLOADPROFDEF_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrLoc1 (DpId 2333) */ #ifndef IOSETTINGRPNSTRLOC1_DEFAULT_VAL #define IOSETTINGRPNSTRLOC1_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrLoc1 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRLOC1_DEFAULT_LEN #define IOSETTINGRPNSTRLOC1_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrLoc2 (DpId 2334) */ #ifndef IOSETTINGRPNSTRLOC2_DEFAULT_VAL #define IOSETTINGRPNSTRLOC2_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrLoc2 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRLOC2_DEFAULT_LEN #define IOSETTINGRPNSTRLOC2_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrLoc3 (DpId 2335) */ #ifndef IOSETTINGRPNSTRLOC3_DEFAULT_VAL #define IOSETTINGRPNSTRLOC3_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrLoc3 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRLOC3_DEFAULT_LEN #define IOSETTINGRPNSTRLOC3_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In1 (DpId 2336) */ #ifndef IOSETTINGRPNSTRIO1IN1_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN1_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In1 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN1_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN1_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In2 (DpId 2337) */ #ifndef IOSETTINGRPNSTRIO1IN2_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN2_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In2 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN2_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN2_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In3 (DpId 2338) */ #ifndef IOSETTINGRPNSTRIO1IN3_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN3_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In3 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN3_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN3_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In4 (DpId 2339) */ #ifndef IOSETTINGRPNSTRIO1IN4_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN4_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In4 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN4_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN4_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In5 (DpId 2340) */ #ifndef IOSETTINGRPNSTRIO1IN5_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN5_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In5 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN5_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN5_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In6 (DpId 2341) */ #ifndef IOSETTINGRPNSTRIO1IN6_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN6_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In6 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN6_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN6_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In7 (DpId 2342) */ #ifndef IOSETTINGRPNSTRIO1IN7_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN7_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In7 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN7_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN7_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1In8 (DpId 2343) */ #ifndef IOSETTINGRPNSTRIO1IN8_DEFAULT_VAL #define IOSETTINGRPNSTRIO1IN8_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1In8 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1IN8_DEFAULT_LEN #define IOSETTINGRPNSTRIO1IN8_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out1 (DpId 2344) */ #ifndef IOSETTINGRPNSTRIO1OUT1_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT1_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out1 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT1_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT1_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out2 (DpId 2345) */ #ifndef IOSETTINGRPNSTRIO1OUT2_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT2_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out2 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT2_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT2_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out3 (DpId 2346) */ #ifndef IOSETTINGRPNSTRIO1OUT3_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT3_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out3 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT3_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT3_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out4 (DpId 2347) */ #ifndef IOSETTINGRPNSTRIO1OUT4_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT4_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out4 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT4_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT4_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out5 (DpId 2348) */ #ifndef IOSETTINGRPNSTRIO1OUT5_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT5_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out5 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT5_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT5_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out6 (DpId 2349) */ #ifndef IOSETTINGRPNSTRIO1OUT6_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT6_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out6 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT6_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT6_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out7 (DpId 2350) */ #ifndef IOSETTINGRPNSTRIO1OUT7_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT7_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out7 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT7_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT7_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo1Out8 (DpId 2351) */ #ifndef IOSETTINGRPNSTRIO1OUT8_DEFAULT_VAL #define IOSETTINGRPNSTRIO1OUT8_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo1Out8 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO1OUT8_DEFAULT_LEN #define IOSETTINGRPNSTRIO1OUT8_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In1 (DpId 2352) */ #ifndef IOSETTINGRPNSTRIO2IN1_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN1_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In1 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN1_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN1_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In2 (DpId 2353) */ #ifndef IOSETTINGRPNSTRIO2IN2_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN2_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In2 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN2_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN2_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In3 (DpId 2354) */ #ifndef IOSETTINGRPNSTRIO2IN3_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN3_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In3 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN3_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN3_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In4 (DpId 2355) */ #ifndef IOSETTINGRPNSTRIO2IN4_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN4_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In4 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN4_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN4_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In5 (DpId 2356) */ #ifndef IOSETTINGRPNSTRIO2IN5_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN5_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In5 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN5_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN5_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In6 (DpId 2357) */ #ifndef IOSETTINGRPNSTRIO2IN6_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN6_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In6 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN6_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN6_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In7 (DpId 2358) */ #ifndef IOSETTINGRPNSTRIO2IN7_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN7_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In7 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN7_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN7_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2In8 (DpId 2359) */ #ifndef IOSETTINGRPNSTRIO2IN8_DEFAULT_VAL #define IOSETTINGRPNSTRIO2IN8_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2In8 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2IN8_DEFAULT_LEN #define IOSETTINGRPNSTRIO2IN8_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out1 (DpId 2360) */ #ifndef IOSETTINGRPNSTRIO2OUT1_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT1_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out1 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT1_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT1_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out2 (DpId 2361) */ #ifndef IOSETTINGRPNSTRIO2OUT2_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT2_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out2 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT2_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT2_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out3 (DpId 2362) */ #ifndef IOSETTINGRPNSTRIO2OUT3_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT3_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out3 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT3_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT3_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out4 (DpId 2363) */ #ifndef IOSETTINGRPNSTRIO2OUT4_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT4_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out4 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT4_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT4_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out5 (DpId 2364) */ #ifndef IOSETTINGRPNSTRIO2OUT5_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT5_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out5 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT5_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT5_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out6 (DpId 2365) */ #ifndef IOSETTINGRPNSTRIO2OUT6_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT6_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out6 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT6_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT6_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out7 (DpId 2366) */ #ifndef IOSETTINGRPNSTRIO2OUT7_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT7_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out7 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT7_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT7_DEFAULT_LEN 0 #endif /* Default value of IoSettingRpnStrIo2Out8 (DpId 2367) */ #ifndef IOSETTINGRPNSTRIO2OUT8_DEFAULT_VAL #define IOSETTINGRPNSTRIO2OUT8_DEFAULT_VAL #endif /* Length of default value of IoSettingRpnStrIo2Out8 (Maximum 41 Byte) */ #ifndef IOSETTINGRPNSTRIO2OUT8_DEFAULT_LEN #define IOSETTINGRPNSTRIO2OUT8_DEFAULT_LEN 0 #endif /* Default value of ScadaDNP3BinaryInputs (DpId 2466) */ #ifndef SCADADNP3BINARYINPUTS_DEFAULT_VAL #define SCADADNP3BINARYINPUTS_DEFAULT_VAL #endif /* Length of default value of ScadaDNP3BinaryInputs (Maximum 2042 Byte) */ #ifndef SCADADNP3BINARYINPUTS_DEFAULT_LEN #define SCADADNP3BINARYINPUTS_DEFAULT_LEN 0 #endif /* Default value of ScadaDNP3BinaryOutputs (DpId 2467) */ #ifndef SCADADNP3BINARYOUTPUTS_DEFAULT_VAL #define SCADADNP3BINARYOUTPUTS_DEFAULT_VAL #endif /* Length of default value of ScadaDNP3BinaryOutputs (Maximum 578 Byte) */ #ifndef SCADADNP3BINARYOUTPUTS_DEFAULT_LEN #define SCADADNP3BINARYOUTPUTS_DEFAULT_LEN 0 #endif /* Default value of ScadaDNP3BinaryCounters (DpId 2468) */ #ifndef SCADADNP3BINARYCOUNTERS_DEFAULT_VAL #define SCADADNP3BINARYCOUNTERS_DEFAULT_VAL #endif /* Length of default value of ScadaDNP3BinaryCounters (Maximum 1346 Byte) */ #ifndef SCADADNP3BINARYCOUNTERS_DEFAULT_LEN #define SCADADNP3BINARYCOUNTERS_DEFAULT_LEN 0 #endif /* Default value of ScadaDNP3AnalogInputs (DpId 2469) */ #ifndef SCADADNP3ANALOGINPUTS_DEFAULT_VAL #define SCADADNP3ANALOGINPUTS_DEFAULT_VAL #endif /* Length of default value of ScadaDNP3AnalogInputs (Maximum 1666 Byte) */ #ifndef SCADADNP3ANALOGINPUTS_DEFAULT_LEN #define SCADADNP3ANALOGINPUTS_DEFAULT_LEN 0 #endif /* Default value of ScadaDNP3OctetStrings (DpId 2470) */ #ifndef SCADADNP3OCTETSTRINGS_DEFAULT_VAL #define SCADADNP3OCTETSTRINGS_DEFAULT_VAL #endif /* Length of default value of ScadaDNP3OctetStrings (Maximum 162 Byte) */ #ifndef SCADADNP3OCTETSTRINGS_DEFAULT_LEN #define SCADADNP3OCTETSTRINGS_DEFAULT_LEN 0 #endif /* Default value of UpsRestartTime (DpId 2512) */ #ifndef UPSRESTARTTIME_DEFAULT_VAL #define UPSRESTARTTIME_DEFAULT_VAL #endif /* Length of default value of UpsRestartTime (Maximum 8 Byte) */ #ifndef UPSRESTARTTIME_DEFAULT_LEN #define UPSRESTARTTIME_DEFAULT_LEN 0 #endif /* Default value of CanSimRdData (DpId 2570) */ #ifndef CANSIMRDDATA_DEFAULT_VAL #define CANSIMRDDATA_DEFAULT_VAL #endif /* Length of default value of CanSimRdData (Maximum 9 Byte) */ #ifndef CANSIMRDDATA_DEFAULT_LEN #define CANSIMRDDATA_DEFAULT_LEN 0 #endif /* Default value of HmiPasswords (DpId 2585) */ #ifndef HMIPASSWORDS_DEFAULT_VAL #define HMIPASSWORDS_DEFAULT_VAL #endif /* Length of default value of HmiPasswords (Maximum 64 Byte) */ #ifndef HMIPASSWORDS_DEFAULT_LEN #define HMIPASSWORDS_DEFAULT_LEN 0 #endif /* Default value of IabcRMS_trip (DpId 2587) */ #ifndef IABCRMS_TRIP_DEFAULT_VAL #define IABCRMS_TRIP_DEFAULT_VAL #endif /* Length of default value of IabcRMS_trip (Maximum 16 Byte) */ #ifndef IABCRMS_TRIP_DEFAULT_LEN #define IABCRMS_TRIP_DEFAULT_LEN 0 #endif /* Default value of IabcRMS (DpId 2600) */ #ifndef IABCRMS_DEFAULT_VAL #define IABCRMS_DEFAULT_VAL #endif /* Length of default value of IabcRMS (Maximum 16 Byte) */ #ifndef IABCRMS_DEFAULT_LEN #define IABCRMS_DEFAULT_LEN 0 #endif /* Default value of SigListWarning (DpId 2892) */ #ifndef SIGLISTWARNING_DEFAULT_VAL #define SIGLISTWARNING_DEFAULT_VAL #endif /* Length of default value of SigListWarning (Maximum 255 Byte) */ #ifndef SIGLISTWARNING_DEFAULT_LEN #define SIGLISTWARNING_DEFAULT_LEN 0 #endif /* Default value of SigListMalfunction (DpId 2893) */ #ifndef SIGLISTMALFUNCTION_DEFAULT_VAL #define SIGLISTMALFUNCTION_DEFAULT_VAL #endif /* Length of default value of SigListMalfunction (Maximum 255 Byte) */ #ifndef SIGLISTMALFUNCTION_DEFAULT_LEN #define SIGLISTMALFUNCTION_DEFAULT_LEN 0 #endif /* Default value of SmpTicks (DpId 3726) */ #ifndef SMPTICKS_DEFAULT_VAL #define SMPTICKS_DEFAULT_VAL #endif /* Length of default value of SmpTicks (Maximum 256 Byte) */ #ifndef SMPTICKS_DEFAULT_LEN #define SMPTICKS_DEFAULT_LEN 0 #endif /* Default value of G1_IpAddrStatus (DpId 3742) */ #ifndef G1_IPADDRSTATUS_DEFAULT_VAL #define G1_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G1_IpAddrStatus (Maximum 4 Byte) */ #ifndef G1_IPADDRSTATUS_DEFAULT_LEN #define G1_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G1_SubnetMaskStatus (DpId 3743) */ #ifndef G1_SUBNETMASKSTATUS_DEFAULT_VAL #define G1_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G1_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G1_SUBNETMASKSTATUS_DEFAULT_LEN #define G1_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G1_DefaultGatewayStatus (DpId 3744) */ #ifndef G1_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G1_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G1_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G1_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G1_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G1_Ipv6AddrStatus (DpId 3752) */ #ifndef G1_IPV6ADDRSTATUS_DEFAULT_VAL #define G1_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G1_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G1_IPV6ADDRSTATUS_DEFAULT_LEN #define G1_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G1_Ipv6DefaultGatewayStatus (DpId 3754) */ #ifndef G1_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G1_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G1_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G1_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G1_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G2_IpAddrStatus (DpId 3822) */ #ifndef G2_IPADDRSTATUS_DEFAULT_VAL #define G2_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G2_IpAddrStatus (Maximum 4 Byte) */ #ifndef G2_IPADDRSTATUS_DEFAULT_LEN #define G2_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G2_SubnetMaskStatus (DpId 3823) */ #ifndef G2_SUBNETMASKSTATUS_DEFAULT_VAL #define G2_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G2_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G2_SUBNETMASKSTATUS_DEFAULT_LEN #define G2_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G2_DefaultGatewayStatus (DpId 3824) */ #ifndef G2_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G2_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G2_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G2_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G2_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G2_Ipv6AddrStatus (DpId 3832) */ #ifndef G2_IPV6ADDRSTATUS_DEFAULT_VAL #define G2_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G2_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G2_IPV6ADDRSTATUS_DEFAULT_LEN #define G2_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G2_Ipv6DefaultGatewayStatus (DpId 3834) */ #ifndef G2_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G2_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G2_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G2_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G2_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G3_IpAddrStatus (DpId 3902) */ #ifndef G3_IPADDRSTATUS_DEFAULT_VAL #define G3_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G3_IpAddrStatus (Maximum 4 Byte) */ #ifndef G3_IPADDRSTATUS_DEFAULT_LEN #define G3_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G3_SubnetMaskStatus (DpId 3903) */ #ifndef G3_SUBNETMASKSTATUS_DEFAULT_VAL #define G3_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G3_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G3_SUBNETMASKSTATUS_DEFAULT_LEN #define G3_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G3_DefaultGatewayStatus (DpId 3904) */ #ifndef G3_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G3_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G3_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G3_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G3_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G3_Ipv6AddrStatus (DpId 3912) */ #ifndef G3_IPV6ADDRSTATUS_DEFAULT_VAL #define G3_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G3_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G3_IPV6ADDRSTATUS_DEFAULT_LEN #define G3_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G3_Ipv6DefaultGatewayStatus (DpId 3914) */ #ifndef G3_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G3_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G3_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G3_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G3_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G4_IpAddrStatus (DpId 3982) */ #ifndef G4_IPADDRSTATUS_DEFAULT_VAL #define G4_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G4_IpAddrStatus (Maximum 4 Byte) */ #ifndef G4_IPADDRSTATUS_DEFAULT_LEN #define G4_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G4_SubnetMaskStatus (DpId 3983) */ #ifndef G4_SUBNETMASKSTATUS_DEFAULT_VAL #define G4_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G4_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G4_SUBNETMASKSTATUS_DEFAULT_LEN #define G4_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G4_DefaultGatewayStatus (DpId 3984) */ #ifndef G4_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G4_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G4_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G4_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G4_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G4_Ipv6AddrStatus (DpId 3992) */ #ifndef G4_IPV6ADDRSTATUS_DEFAULT_VAL #define G4_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G4_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G4_IPV6ADDRSTATUS_DEFAULT_LEN #define G4_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G4_Ipv6DefaultGatewayStatus (DpId 3994) */ #ifndef G4_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G4_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G4_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G4_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G4_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G1_LanIPAddr (DpId 4250) */ #ifndef G1_LANIPADDR_DEFAULT_VAL #define G1_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G1_LanIPAddr (Maximum 4 Byte) */ #ifndef G1_LANIPADDR_DEFAULT_LEN #define G1_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G1_LanSubnetMask (DpId 4251) */ #ifndef G1_LANSUBNETMASK_DEFAULT_VAL #define G1_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G1_LanSubnetMask (Maximum 4 Byte) */ #ifndef G1_LANSUBNETMASK_DEFAULT_LEN #define G1_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G1_LanDefaultGateway (DpId 4252) */ #ifndef G1_LANDEFAULTGATEWAY_DEFAULT_VAL #define G1_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G1_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G1_LANDEFAULTGATEWAY_DEFAULT_LEN #define G1_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G1_LanIPv6Addr (DpId 4297) */ #ifndef G1_LANIPV6ADDR_DEFAULT_VAL #define G1_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G1_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G1_LANIPV6ADDR_DEFAULT_LEN #define G1_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G1_LanIPv6DefaultGateway (DpId 4299) */ #ifndef G1_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G1_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G1_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G1_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G1_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G2_LanIPAddr (DpId 4450) */ #ifndef G2_LANIPADDR_DEFAULT_VAL #define G2_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G2_LanIPAddr (Maximum 4 Byte) */ #ifndef G2_LANIPADDR_DEFAULT_LEN #define G2_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G2_LanSubnetMask (DpId 4451) */ #ifndef G2_LANSUBNETMASK_DEFAULT_VAL #define G2_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G2_LanSubnetMask (Maximum 4 Byte) */ #ifndef G2_LANSUBNETMASK_DEFAULT_LEN #define G2_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G2_LanDefaultGateway (DpId 4452) */ #ifndef G2_LANDEFAULTGATEWAY_DEFAULT_VAL #define G2_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G2_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G2_LANDEFAULTGATEWAY_DEFAULT_LEN #define G2_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G2_LanIPv6Addr (DpId 4497) */ #ifndef G2_LANIPV6ADDR_DEFAULT_VAL #define G2_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G2_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G2_LANIPV6ADDR_DEFAULT_LEN #define G2_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G2_LanIPv6DefaultGateway (DpId 4499) */ #ifndef G2_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G2_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G2_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G2_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G2_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G3_LanIPAddr (DpId 4650) */ #ifndef G3_LANIPADDR_DEFAULT_VAL #define G3_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G3_LanIPAddr (Maximum 4 Byte) */ #ifndef G3_LANIPADDR_DEFAULT_LEN #define G3_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G3_LanSubnetMask (DpId 4651) */ #ifndef G3_LANSUBNETMASK_DEFAULT_VAL #define G3_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G3_LanSubnetMask (Maximum 4 Byte) */ #ifndef G3_LANSUBNETMASK_DEFAULT_LEN #define G3_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G3_LanDefaultGateway (DpId 4652) */ #ifndef G3_LANDEFAULTGATEWAY_DEFAULT_VAL #define G3_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G3_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G3_LANDEFAULTGATEWAY_DEFAULT_LEN #define G3_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G3_LanIPv6Addr (DpId 4697) */ #ifndef G3_LANIPV6ADDR_DEFAULT_VAL #define G3_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G3_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G3_LANIPV6ADDR_DEFAULT_LEN #define G3_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G3_LanIPv6DefaultGateway (DpId 4699) */ #ifndef G3_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G3_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G3_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G3_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G3_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G4_LanIPAddr (DpId 4850) */ #ifndef G4_LANIPADDR_DEFAULT_VAL #define G4_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G4_LanIPAddr (Maximum 4 Byte) */ #ifndef G4_LANIPADDR_DEFAULT_LEN #define G4_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G4_LanSubnetMask (DpId 4851) */ #ifndef G4_LANSUBNETMASK_DEFAULT_VAL #define G4_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G4_LanSubnetMask (Maximum 4 Byte) */ #ifndef G4_LANSUBNETMASK_DEFAULT_LEN #define G4_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G4_LanDefaultGateway (DpId 4852) */ #ifndef G4_LANDEFAULTGATEWAY_DEFAULT_VAL #define G4_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G4_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G4_LANDEFAULTGATEWAY_DEFAULT_LEN #define G4_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G4_LanIPv6Addr (DpId 4897) */ #ifndef G4_LANIPV6ADDR_DEFAULT_VAL #define G4_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G4_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G4_LANIPV6ADDR_DEFAULT_LEN #define G4_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G4_LanIPv6DefaultGateway (DpId 4899) */ #ifndef G4_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G4_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G4_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G4_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G4_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of UsbDiscUpdateVersions (DpId 5063) */ #ifndef USBDISCUPDATEVERSIONS_DEFAULT_VAL #define USBDISCUPDATEVERSIONS_DEFAULT_VAL #endif /* Length of default value of UsbDiscUpdateVersions (Maximum 255 Byte) */ #ifndef USBDISCUPDATEVERSIONS_DEFAULT_LEN #define USBDISCUPDATEVERSIONS_DEFAULT_LEN 0 #endif /* Default value of IdOsmNumber (DpId 5067) */ #ifndef IDOSMNUMBER_DEFAULT_VAL #define IDOSMNUMBER_DEFAULT_VAL #endif /* Length of default value of IdOsmNumber (Maximum 13 Byte) */ #ifndef IDOSMNUMBER_DEFAULT_LEN #define IDOSMNUMBER_DEFAULT_LEN 0 #endif /* Default value of G5_IpAddrStatus (DpId 5083) */ #ifndef G5_IPADDRSTATUS_DEFAULT_VAL #define G5_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G5_IpAddrStatus (Maximum 4 Byte) */ #ifndef G5_IPADDRSTATUS_DEFAULT_LEN #define G5_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G5_SubnetMaskStatus (DpId 5084) */ #ifndef G5_SUBNETMASKSTATUS_DEFAULT_VAL #define G5_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G5_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G5_SUBNETMASKSTATUS_DEFAULT_LEN #define G5_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G5_DefaultGatewayStatus (DpId 5085) */ #ifndef G5_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G5_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G5_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G5_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G5_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G5_Ipv6AddrStatus (DpId 5093) */ #ifndef G5_IPV6ADDRSTATUS_DEFAULT_VAL #define G5_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G5_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G5_IPV6ADDRSTATUS_DEFAULT_LEN #define G5_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G5_Ipv6DefaultGatewayStatus (DpId 5095) */ #ifndef G5_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G5_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G5_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G5_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G5_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G6_IpAddrStatus (DpId 5162) */ #ifndef G6_IPADDRSTATUS_DEFAULT_VAL #define G6_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G6_IpAddrStatus (Maximum 4 Byte) */ #ifndef G6_IPADDRSTATUS_DEFAULT_LEN #define G6_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G6_SubnetMaskStatus (DpId 5163) */ #ifndef G6_SUBNETMASKSTATUS_DEFAULT_VAL #define G6_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G6_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G6_SUBNETMASKSTATUS_DEFAULT_LEN #define G6_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G6_DefaultGatewayStatus (DpId 5164) */ #ifndef G6_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G6_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G6_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G6_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G6_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G6_Ipv6AddrStatus (DpId 5172) */ #ifndef G6_IPV6ADDRSTATUS_DEFAULT_VAL #define G6_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G6_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G6_IPV6ADDRSTATUS_DEFAULT_LEN #define G6_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G6_Ipv6DefaultGatewayStatus (DpId 5174) */ #ifndef G6_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G6_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G6_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G6_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G6_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G7_IpAddrStatus (DpId 5241) */ #ifndef G7_IPADDRSTATUS_DEFAULT_VAL #define G7_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G7_IpAddrStatus (Maximum 4 Byte) */ #ifndef G7_IPADDRSTATUS_DEFAULT_LEN #define G7_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G7_SubnetMaskStatus (DpId 5242) */ #ifndef G7_SUBNETMASKSTATUS_DEFAULT_VAL #define G7_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G7_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G7_SUBNETMASKSTATUS_DEFAULT_LEN #define G7_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G7_DefaultGatewayStatus (DpId 5243) */ #ifndef G7_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G7_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G7_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G7_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G7_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G7_Ipv6AddrStatus (DpId 5251) */ #ifndef G7_IPV6ADDRSTATUS_DEFAULT_VAL #define G7_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G7_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G7_IPV6ADDRSTATUS_DEFAULT_LEN #define G7_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G7_Ipv6DefaultGatewayStatus (DpId 5253) */ #ifndef G7_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G7_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G7_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G7_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G7_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G8_IpAddrStatus (DpId 5321) */ #ifndef G8_IPADDRSTATUS_DEFAULT_VAL #define G8_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G8_IpAddrStatus (Maximum 4 Byte) */ #ifndef G8_IPADDRSTATUS_DEFAULT_LEN #define G8_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G8_SubnetMaskStatus (DpId 5322) */ #ifndef G8_SUBNETMASKSTATUS_DEFAULT_VAL #define G8_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G8_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G8_SUBNETMASKSTATUS_DEFAULT_LEN #define G8_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G8_DefaultGatewayStatus (DpId 5323) */ #ifndef G8_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G8_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G8_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G8_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G8_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G8_Ipv6AddrStatus (DpId 5331) */ #ifndef G8_IPV6ADDRSTATUS_DEFAULT_VAL #define G8_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G8_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G8_IPV6ADDRSTATUS_DEFAULT_LEN #define G8_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G8_Ipv6DefaultGatewayStatus (DpId 5333) */ #ifndef G8_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G8_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G8_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G8_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G8_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G5_LanIPAddr (DpId 5591) */ #ifndef G5_LANIPADDR_DEFAULT_VAL #define G5_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G5_LanIPAddr (Maximum 4 Byte) */ #ifndef G5_LANIPADDR_DEFAULT_LEN #define G5_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G5_LanSubnetMask (DpId 5592) */ #ifndef G5_LANSUBNETMASK_DEFAULT_VAL #define G5_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G5_LanSubnetMask (Maximum 4 Byte) */ #ifndef G5_LANSUBNETMASK_DEFAULT_LEN #define G5_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G5_LanDefaultGateway (DpId 5593) */ #ifndef G5_LANDEFAULTGATEWAY_DEFAULT_VAL #define G5_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G5_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G5_LANDEFAULTGATEWAY_DEFAULT_LEN #define G5_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G5_LanIPv6Addr (DpId 5638) */ #ifndef G5_LANIPV6ADDR_DEFAULT_VAL #define G5_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G5_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G5_LANIPV6ADDR_DEFAULT_LEN #define G5_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G5_LanIPv6DefaultGateway (DpId 5640) */ #ifndef G5_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G5_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G5_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G5_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G5_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G6_LanIPAddr (DpId 5791) */ #ifndef G6_LANIPADDR_DEFAULT_VAL #define G6_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G6_LanIPAddr (Maximum 4 Byte) */ #ifndef G6_LANIPADDR_DEFAULT_LEN #define G6_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G6_LanSubnetMask (DpId 5792) */ #ifndef G6_LANSUBNETMASK_DEFAULT_VAL #define G6_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G6_LanSubnetMask (Maximum 4 Byte) */ #ifndef G6_LANSUBNETMASK_DEFAULT_LEN #define G6_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G6_LanDefaultGateway (DpId 5793) */ #ifndef G6_LANDEFAULTGATEWAY_DEFAULT_VAL #define G6_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G6_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G6_LANDEFAULTGATEWAY_DEFAULT_LEN #define G6_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G6_LanIPv6Addr (DpId 5838) */ #ifndef G6_LANIPV6ADDR_DEFAULT_VAL #define G6_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G6_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G6_LANIPV6ADDR_DEFAULT_LEN #define G6_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G6_LanIPv6DefaultGateway (DpId 5840) */ #ifndef G6_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G6_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G6_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G6_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G6_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G7_LanIPAddr (DpId 5991) */ #ifndef G7_LANIPADDR_DEFAULT_VAL #define G7_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G7_LanIPAddr (Maximum 4 Byte) */ #ifndef G7_LANIPADDR_DEFAULT_LEN #define G7_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G7_LanSubnetMask (DpId 5992) */ #ifndef G7_LANSUBNETMASK_DEFAULT_VAL #define G7_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G7_LanSubnetMask (Maximum 4 Byte) */ #ifndef G7_LANSUBNETMASK_DEFAULT_LEN #define G7_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G7_LanDefaultGateway (DpId 5993) */ #ifndef G7_LANDEFAULTGATEWAY_DEFAULT_VAL #define G7_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G7_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G7_LANDEFAULTGATEWAY_DEFAULT_LEN #define G7_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G7_LanIPv6Addr (DpId 6038) */ #ifndef G7_LANIPV6ADDR_DEFAULT_VAL #define G7_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G7_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G7_LANIPV6ADDR_DEFAULT_LEN #define G7_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G7_LanIPv6DefaultGateway (DpId 6040) */ #ifndef G7_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G7_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G7_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G7_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G7_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G8_LanIPAddr (DpId 6191) */ #ifndef G8_LANIPADDR_DEFAULT_VAL #define G8_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G8_LanIPAddr (Maximum 4 Byte) */ #ifndef G8_LANIPADDR_DEFAULT_LEN #define G8_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G8_LanSubnetMask (DpId 6192) */ #ifndef G8_LANSUBNETMASK_DEFAULT_VAL #define G8_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G8_LanSubnetMask (Maximum 4 Byte) */ #ifndef G8_LANSUBNETMASK_DEFAULT_LEN #define G8_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G8_LanDefaultGateway (DpId 6193) */ #ifndef G8_LANDEFAULTGATEWAY_DEFAULT_VAL #define G8_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G8_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G8_LANDEFAULTGATEWAY_DEFAULT_LEN #define G8_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G8_LanIPv6Addr (DpId 6238) */ #ifndef G8_LANIPV6ADDR_DEFAULT_VAL #define G8_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G8_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G8_LANIPV6ADDR_DEFAULT_LEN #define G8_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G8_LanIPv6DefaultGateway (DpId 6240) */ #ifndef G8_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G8_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G8_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G8_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G8_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G1_OCLL1_TccUD (DpId 6630) */ #ifndef G1_OCLL1_TCCUD_DEFAULT_VAL #define G1_OCLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_OCLL1_TccUD (Maximum 670 Byte) */ #ifndef G1_OCLL1_TCCUD_DEFAULT_LEN #define G1_OCLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_OCLL2_TccUD (DpId 6643) */ #ifndef G1_OCLL2_TCCUD_DEFAULT_VAL #define G1_OCLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_OCLL2_TccUD (Maximum 670 Byte) */ #ifndef G1_OCLL2_TCCUD_DEFAULT_LEN #define G1_OCLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_OCLL1_TccUD (DpId 6680) */ #ifndef G2_OCLL1_TCCUD_DEFAULT_VAL #define G2_OCLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_OCLL1_TccUD (Maximum 670 Byte) */ #ifndef G2_OCLL1_TCCUD_DEFAULT_LEN #define G2_OCLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_OCLL2_TccUD (DpId 6693) */ #ifndef G2_OCLL2_TCCUD_DEFAULT_VAL #define G2_OCLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_OCLL2_TccUD (Maximum 670 Byte) */ #ifndef G2_OCLL2_TCCUD_DEFAULT_LEN #define G2_OCLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_OCLL1_TccUD (DpId 6730) */ #ifndef G3_OCLL1_TCCUD_DEFAULT_VAL #define G3_OCLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_OCLL1_TccUD (Maximum 670 Byte) */ #ifndef G3_OCLL1_TCCUD_DEFAULT_LEN #define G3_OCLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_OCLL2_TccUD (DpId 6743) */ #ifndef G3_OCLL2_TCCUD_DEFAULT_VAL #define G3_OCLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_OCLL2_TccUD (Maximum 670 Byte) */ #ifndef G3_OCLL2_TCCUD_DEFAULT_LEN #define G3_OCLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_OCLL1_TccUD (DpId 6780) */ #ifndef G4_OCLL1_TCCUD_DEFAULT_VAL #define G4_OCLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_OCLL1_TccUD (Maximum 670 Byte) */ #ifndef G4_OCLL1_TCCUD_DEFAULT_LEN #define G4_OCLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_OCLL2_TccUD (DpId 6793) */ #ifndef G4_OCLL2_TCCUD_DEFAULT_VAL #define G4_OCLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_OCLL2_TccUD (Maximum 670 Byte) */ #ifndef G4_OCLL2_TCCUD_DEFAULT_LEN #define G4_OCLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of InterruptShortABCTotDuration (DpId 6821) */ #ifndef INTERRUPTSHORTABCTOTDURATION_DEFAULT_VAL #define INTERRUPTSHORTABCTOTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptShortABCTotDuration (Maximum 8 Byte) */ #ifndef INTERRUPTSHORTABCTOTDURATION_DEFAULT_LEN #define INTERRUPTSHORTABCTOTDURATION_DEFAULT_LEN 0 #endif /* Default value of InterruptShortRSTTotDuration (DpId 6822) */ #ifndef INTERRUPTSHORTRSTTOTDURATION_DEFAULT_VAL #define INTERRUPTSHORTRSTTOTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptShortRSTTotDuration (Maximum 8 Byte) */ #ifndef INTERRUPTSHORTRSTTOTDURATION_DEFAULT_LEN #define INTERRUPTSHORTRSTTOTDURATION_DEFAULT_LEN 0 #endif /* Default value of InterruptLongABCTotDuration (DpId 6823) */ #ifndef INTERRUPTLONGABCTOTDURATION_DEFAULT_VAL #define INTERRUPTLONGABCTOTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptLongABCTotDuration (Maximum 8 Byte) */ #ifndef INTERRUPTLONGABCTOTDURATION_DEFAULT_LEN #define INTERRUPTLONGABCTOTDURATION_DEFAULT_LEN 0 #endif /* Default value of InterruptLongRSTTotDuration (DpId 6824) */ #ifndef INTERRUPTLONGRSTTOTDURATION_DEFAULT_VAL #define INTERRUPTLONGRSTTOTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptLongRSTTotDuration (Maximum 8 Byte) */ #ifndef INTERRUPTLONGRSTTOTDURATION_DEFAULT_LEN #define INTERRUPTLONGRSTTOTDURATION_DEFAULT_LEN 0 #endif /* Default value of SagABCLastDuration (DpId 6837) */ #ifndef SAGABCLASTDURATION_DEFAULT_VAL #define SAGABCLASTDURATION_DEFAULT_VAL #endif /* Length of default value of SagABCLastDuration (Maximum 8 Byte) */ #ifndef SAGABCLASTDURATION_DEFAULT_LEN #define SAGABCLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of SagRSTLastDuration (DpId 6838) */ #ifndef SAGRSTLASTDURATION_DEFAULT_VAL #define SAGRSTLASTDURATION_DEFAULT_VAL #endif /* Length of default value of SagRSTLastDuration (Maximum 8 Byte) */ #ifndef SAGRSTLASTDURATION_DEFAULT_LEN #define SAGRSTLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of SwellABCLastDuration (DpId 6839) */ #ifndef SWELLABCLASTDURATION_DEFAULT_VAL #define SWELLABCLASTDURATION_DEFAULT_VAL #endif /* Length of default value of SwellABCLastDuration (Maximum 8 Byte) */ #ifndef SWELLABCLASTDURATION_DEFAULT_LEN #define SWELLABCLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of SwellRSTLastDuration (DpId 6840) */ #ifndef SWELLRSTLASTDURATION_DEFAULT_VAL #define SWELLRSTLASTDURATION_DEFAULT_VAL #endif /* Length of default value of SwellRSTLastDuration (Maximum 8 Byte) */ #ifndef SWELLRSTLASTDURATION_DEFAULT_LEN #define SWELLRSTLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of LogInterrupt (DpId 6853) */ #ifndef LOGINTERRUPT_DEFAULT_VAL #define LOGINTERRUPT_DEFAULT_VAL #endif /* Length of default value of LogInterrupt (Maximum 128 Byte) */ #ifndef LOGINTERRUPT_DEFAULT_LEN #define LOGINTERRUPT_DEFAULT_LEN 0 #endif /* Default value of LogSagSwell (DpId 6854) */ #ifndef LOGSAGSWELL_DEFAULT_VAL #define LOGSAGSWELL_DEFAULT_VAL #endif /* Length of default value of LogSagSwell (Maximum 128 Byte) */ #ifndef LOGSAGSWELL_DEFAULT_LEN #define LOGSAGSWELL_DEFAULT_LEN 0 #endif /* Default value of LogHrm (DpId 6855) */ #ifndef LOGHRM_DEFAULT_VAL #define LOGHRM_DEFAULT_VAL #endif /* Length of default value of LogHrm (Maximum 128 Byte) */ #ifndef LOGHRM_DEFAULT_LEN #define LOGHRM_DEFAULT_LEN 0 #endif /* Default value of G11_IpAddrStatus (DpId 6890) */ #ifndef G11_IPADDRSTATUS_DEFAULT_VAL #define G11_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G11_IpAddrStatus (Maximum 4 Byte) */ #ifndef G11_IPADDRSTATUS_DEFAULT_LEN #define G11_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G11_SubnetMaskStatus (DpId 6891) */ #ifndef G11_SUBNETMASKSTATUS_DEFAULT_VAL #define G11_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G11_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G11_SUBNETMASKSTATUS_DEFAULT_LEN #define G11_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G11_DefaultGatewayStatus (DpId 6892) */ #ifndef G11_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G11_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G11_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G11_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G11_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G11_Ipv6AddrStatus (DpId 6900) */ #ifndef G11_IPV6ADDRSTATUS_DEFAULT_VAL #define G11_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G11_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G11_IPV6ADDRSTATUS_DEFAULT_LEN #define G11_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G11_Ipv6DefaultGatewayStatus (DpId 6902) */ #ifndef G11_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G11_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G11_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G11_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G11_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G11_LanIPAddr (DpId 7040) */ #ifndef G11_LANIPADDR_DEFAULT_VAL #define G11_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G11_LanIPAddr (Maximum 4 Byte) */ #ifndef G11_LANIPADDR_DEFAULT_LEN #define G11_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G11_LanSubnetMask (DpId 7041) */ #ifndef G11_LANSUBNETMASK_DEFAULT_VAL #define G11_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G11_LanSubnetMask (Maximum 4 Byte) */ #ifndef G11_LANSUBNETMASK_DEFAULT_LEN #define G11_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G11_LanDefaultGateway (DpId 7042) */ #ifndef G11_LANDEFAULTGATEWAY_DEFAULT_VAL #define G11_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G11_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G11_LANDEFAULTGATEWAY_DEFAULT_LEN #define G11_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G11_LanIPv6Addr (DpId 7087) */ #ifndef G11_LANIPV6ADDR_DEFAULT_VAL #define G11_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G11_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G11_LANIPV6ADDR_DEFAULT_LEN #define G11_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G11_LanIPv6DefaultGateway (DpId 7089) */ #ifndef G11_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G11_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G11_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G11_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G11_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G1_NPS1F_TccUD (DpId 7258) */ #ifndef G1_NPS1F_TCCUD_DEFAULT_VAL #define G1_NPS1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_NPS1F_TccUD (Maximum 670 Byte) */ #ifndef G1_NPS1F_TCCUD_DEFAULT_LEN #define G1_NPS1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_NPS2F_TccUD (DpId 7275) */ #ifndef G1_NPS2F_TCCUD_DEFAULT_VAL #define G1_NPS2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_NPS2F_TccUD (Maximum 670 Byte) */ #ifndef G1_NPS2F_TCCUD_DEFAULT_LEN #define G1_NPS2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_NPS1R_TccUD (DpId 7300) */ #ifndef G1_NPS1R_TCCUD_DEFAULT_VAL #define G1_NPS1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_NPS1R_TccUD (Maximum 670 Byte) */ #ifndef G1_NPS1R_TCCUD_DEFAULT_LEN #define G1_NPS1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_NPS2R_TccUD (DpId 7317) */ #ifndef G1_NPS2R_TCCUD_DEFAULT_VAL #define G1_NPS2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_NPS2R_TccUD (Maximum 670 Byte) */ #ifndef G1_NPS2R_TCCUD_DEFAULT_LEN #define G1_NPS2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_NPSLL1_TccUD (DpId 7338) */ #ifndef G1_NPSLL1_TCCUD_DEFAULT_VAL #define G1_NPSLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_NPSLL1_TccUD (Maximum 670 Byte) */ #ifndef G1_NPSLL1_TCCUD_DEFAULT_LEN #define G1_NPSLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_NPSLL2_TccUD (DpId 7351) */ #ifndef G1_NPSLL2_TCCUD_DEFAULT_VAL #define G1_NPSLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_NPSLL2_TccUD (Maximum 670 Byte) */ #ifndef G1_NPSLL2_TCCUD_DEFAULT_LEN #define G1_NPSLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_EFLL1_TccUD (DpId 7368) */ #ifndef G1_EFLL1_TCCUD_DEFAULT_VAL #define G1_EFLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_EFLL1_TccUD (Maximum 670 Byte) */ #ifndef G1_EFLL1_TCCUD_DEFAULT_LEN #define G1_EFLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G1_EFLL2_TccUD (DpId 7381) */ #ifndef G1_EFLL2_TCCUD_DEFAULT_VAL #define G1_EFLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G1_EFLL2_TccUD (Maximum 670 Byte) */ #ifndef G1_EFLL2_TCCUD_DEFAULT_LEN #define G1_EFLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_NPS1F_TccUD (DpId 7458) */ #ifndef G2_NPS1F_TCCUD_DEFAULT_VAL #define G2_NPS1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_NPS1F_TccUD (Maximum 670 Byte) */ #ifndef G2_NPS1F_TCCUD_DEFAULT_LEN #define G2_NPS1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_NPS2F_TccUD (DpId 7475) */ #ifndef G2_NPS2F_TCCUD_DEFAULT_VAL #define G2_NPS2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_NPS2F_TccUD (Maximum 670 Byte) */ #ifndef G2_NPS2F_TCCUD_DEFAULT_LEN #define G2_NPS2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_NPS1R_TccUD (DpId 7500) */ #ifndef G2_NPS1R_TCCUD_DEFAULT_VAL #define G2_NPS1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_NPS1R_TccUD (Maximum 670 Byte) */ #ifndef G2_NPS1R_TCCUD_DEFAULT_LEN #define G2_NPS1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_NPS2R_TccUD (DpId 7517) */ #ifndef G2_NPS2R_TCCUD_DEFAULT_VAL #define G2_NPS2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_NPS2R_TccUD (Maximum 670 Byte) */ #ifndef G2_NPS2R_TCCUD_DEFAULT_LEN #define G2_NPS2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_NPSLL1_TccUD (DpId 7538) */ #ifndef G2_NPSLL1_TCCUD_DEFAULT_VAL #define G2_NPSLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_NPSLL1_TccUD (Maximum 670 Byte) */ #ifndef G2_NPSLL1_TCCUD_DEFAULT_LEN #define G2_NPSLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_NPSLL2_TccUD (DpId 7551) */ #ifndef G2_NPSLL2_TCCUD_DEFAULT_VAL #define G2_NPSLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_NPSLL2_TccUD (Maximum 670 Byte) */ #ifndef G2_NPSLL2_TCCUD_DEFAULT_LEN #define G2_NPSLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_EFLL1_TccUD (DpId 7568) */ #ifndef G2_EFLL1_TCCUD_DEFAULT_VAL #define G2_EFLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_EFLL1_TccUD (Maximum 670 Byte) */ #ifndef G2_EFLL1_TCCUD_DEFAULT_LEN #define G2_EFLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G2_EFLL2_TccUD (DpId 7581) */ #ifndef G2_EFLL2_TCCUD_DEFAULT_VAL #define G2_EFLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G2_EFLL2_TccUD (Maximum 670 Byte) */ #ifndef G2_EFLL2_TCCUD_DEFAULT_LEN #define G2_EFLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_NPS1F_TccUD (DpId 7658) */ #ifndef G3_NPS1F_TCCUD_DEFAULT_VAL #define G3_NPS1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_NPS1F_TccUD (Maximum 670 Byte) */ #ifndef G3_NPS1F_TCCUD_DEFAULT_LEN #define G3_NPS1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_NPS2F_TccUD (DpId 7675) */ #ifndef G3_NPS2F_TCCUD_DEFAULT_VAL #define G3_NPS2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_NPS2F_TccUD (Maximum 670 Byte) */ #ifndef G3_NPS2F_TCCUD_DEFAULT_LEN #define G3_NPS2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_NPS1R_TccUD (DpId 7700) */ #ifndef G3_NPS1R_TCCUD_DEFAULT_VAL #define G3_NPS1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_NPS1R_TccUD (Maximum 670 Byte) */ #ifndef G3_NPS1R_TCCUD_DEFAULT_LEN #define G3_NPS1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_NPS2R_TccUD (DpId 7717) */ #ifndef G3_NPS2R_TCCUD_DEFAULT_VAL #define G3_NPS2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_NPS2R_TccUD (Maximum 670 Byte) */ #ifndef G3_NPS2R_TCCUD_DEFAULT_LEN #define G3_NPS2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_NPSLL1_TccUD (DpId 7738) */ #ifndef G3_NPSLL1_TCCUD_DEFAULT_VAL #define G3_NPSLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_NPSLL1_TccUD (Maximum 670 Byte) */ #ifndef G3_NPSLL1_TCCUD_DEFAULT_LEN #define G3_NPSLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_NPSLL2_TccUD (DpId 7751) */ #ifndef G3_NPSLL2_TCCUD_DEFAULT_VAL #define G3_NPSLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_NPSLL2_TccUD (Maximum 670 Byte) */ #ifndef G3_NPSLL2_TCCUD_DEFAULT_LEN #define G3_NPSLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_EFLL1_TccUD (DpId 7768) */ #ifndef G3_EFLL1_TCCUD_DEFAULT_VAL #define G3_EFLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_EFLL1_TccUD (Maximum 670 Byte) */ #ifndef G3_EFLL1_TCCUD_DEFAULT_LEN #define G3_EFLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G3_EFLL2_TccUD (DpId 7781) */ #ifndef G3_EFLL2_TCCUD_DEFAULT_VAL #define G3_EFLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G3_EFLL2_TccUD (Maximum 670 Byte) */ #ifndef G3_EFLL2_TCCUD_DEFAULT_LEN #define G3_EFLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_NPS1F_TccUD (DpId 7858) */ #ifndef G4_NPS1F_TCCUD_DEFAULT_VAL #define G4_NPS1F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_NPS1F_TccUD (Maximum 670 Byte) */ #ifndef G4_NPS1F_TCCUD_DEFAULT_LEN #define G4_NPS1F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_NPS2F_TccUD (DpId 7875) */ #ifndef G4_NPS2F_TCCUD_DEFAULT_VAL #define G4_NPS2F_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_NPS2F_TccUD (Maximum 670 Byte) */ #ifndef G4_NPS2F_TCCUD_DEFAULT_LEN #define G4_NPS2F_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_NPS1R_TccUD (DpId 7900) */ #ifndef G4_NPS1R_TCCUD_DEFAULT_VAL #define G4_NPS1R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_NPS1R_TccUD (Maximum 670 Byte) */ #ifndef G4_NPS1R_TCCUD_DEFAULT_LEN #define G4_NPS1R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_NPS2R_TccUD (DpId 7917) */ #ifndef G4_NPS2R_TCCUD_DEFAULT_VAL #define G4_NPS2R_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_NPS2R_TccUD (Maximum 670 Byte) */ #ifndef G4_NPS2R_TCCUD_DEFAULT_LEN #define G4_NPS2R_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_NPSLL1_TccUD (DpId 7938) */ #ifndef G4_NPSLL1_TCCUD_DEFAULT_VAL #define G4_NPSLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_NPSLL1_TccUD (Maximum 670 Byte) */ #ifndef G4_NPSLL1_TCCUD_DEFAULT_LEN #define G4_NPSLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_NPSLL2_TccUD (DpId 7951) */ #ifndef G4_NPSLL2_TCCUD_DEFAULT_VAL #define G4_NPSLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_NPSLL2_TccUD (Maximum 670 Byte) */ #ifndef G4_NPSLL2_TCCUD_DEFAULT_LEN #define G4_NPSLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_EFLL1_TccUD (DpId 7968) */ #ifndef G4_EFLL1_TCCUD_DEFAULT_VAL #define G4_EFLL1_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_EFLL1_TccUD (Maximum 670 Byte) */ #ifndef G4_EFLL1_TCCUD_DEFAULT_LEN #define G4_EFLL1_TCCUD_DEFAULT_LEN 0 #endif /* Default value of G4_EFLL2_TccUD (DpId 7981) */ #ifndef G4_EFLL2_TCCUD_DEFAULT_VAL #define G4_EFLL2_TCCUD_DEFAULT_VAL #endif /* Length of default value of G4_EFLL2_TccUD (Maximum 670 Byte) */ #ifndef G4_EFLL2_TCCUD_DEFAULT_LEN #define G4_EFLL2_TCCUD_DEFAULT_LEN 0 #endif /* Default value of UsbDiscInstallVersions (DpId 8073) */ #ifndef USBDISCINSTALLVERSIONS_DEFAULT_VAL #define USBDISCINSTALLVERSIONS_DEFAULT_VAL #endif /* Length of default value of UsbDiscInstallVersions (Maximum 255 Byte) */ #ifndef USBDISCINSTALLVERSIONS_DEFAULT_LEN #define USBDISCINSTALLVERSIONS_DEFAULT_LEN 0 #endif /* Default value of InterruptShortABCLastDuration (DpId 8076) */ #ifndef INTERRUPTSHORTABCLASTDURATION_DEFAULT_VAL #define INTERRUPTSHORTABCLASTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptShortABCLastDuration (Maximum 8 Byte) */ #ifndef INTERRUPTSHORTABCLASTDURATION_DEFAULT_LEN #define INTERRUPTSHORTABCLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of InterruptShortRSTLastDuration (DpId 8077) */ #ifndef INTERRUPTSHORTRSTLASTDURATION_DEFAULT_VAL #define INTERRUPTSHORTRSTLASTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptShortRSTLastDuration (Maximum 8 Byte) */ #ifndef INTERRUPTSHORTRSTLASTDURATION_DEFAULT_LEN #define INTERRUPTSHORTRSTLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of InterruptLongABCLastDuration (DpId 8078) */ #ifndef INTERRUPTLONGABCLASTDURATION_DEFAULT_VAL #define INTERRUPTLONGABCLASTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptLongABCLastDuration (Maximum 8 Byte) */ #ifndef INTERRUPTLONGABCLASTDURATION_DEFAULT_LEN #define INTERRUPTLONGABCLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of InterruptLongRSTLastDuration (DpId 8079) */ #ifndef INTERRUPTLONGRSTLASTDURATION_DEFAULT_VAL #define INTERRUPTLONGRSTLASTDURATION_DEFAULT_VAL #endif /* Length of default value of InterruptLongRSTLastDuration (Maximum 8 Byte) */ #ifndef INTERRUPTLONGRSTLASTDURATION_DEFAULT_LEN #define INTERRUPTLONGRSTLASTDURATION_DEFAULT_LEN 0 #endif /* Default value of CoOpenReqB (DpId 8221) */ #ifndef COOPENREQB_DEFAULT_VAL #define COOPENREQB_DEFAULT_VAL #endif /* Length of default value of CoOpenReqB (Maximum 34 Byte) */ #ifndef COOPENREQB_DEFAULT_LEN #define COOPENREQB_DEFAULT_LEN 0 #endif /* Default value of CoOpenReqC (DpId 8222) */ #ifndef COOPENREQC_DEFAULT_VAL #define COOPENREQC_DEFAULT_VAL #endif /* Length of default value of CoOpenReqC (Maximum 34 Byte) */ #ifndef COOPENREQC_DEFAULT_LEN #define COOPENREQC_DEFAULT_LEN 0 #endif /* Default value of CoCloseReqB (DpId 8223) */ #ifndef COCLOSEREQB_DEFAULT_VAL #define COCLOSEREQB_DEFAULT_VAL #endif /* Length of default value of CoCloseReqB (Maximum 34 Byte) */ #ifndef COCLOSEREQB_DEFAULT_LEN #define COCLOSEREQB_DEFAULT_LEN 0 #endif /* Default value of CoCloseReqC (DpId 8224) */ #ifndef COCLOSEREQC_DEFAULT_VAL #define COCLOSEREQC_DEFAULT_VAL #endif /* Length of default value of CoCloseReqC (Maximum 34 Byte) */ #ifndef COCLOSEREQC_DEFAULT_LEN #define COCLOSEREQC_DEFAULT_LEN 0 #endif /* Default value of IdOsmNumber2 (DpId 8244) */ #ifndef IDOSMNUMBER2_DEFAULT_VAL #define IDOSMNUMBER2_DEFAULT_VAL #endif /* Length of default value of IdOsmNumber2 (Maximum 13 Byte) */ #ifndef IDOSMNUMBER2_DEFAULT_LEN #define IDOSMNUMBER2_DEFAULT_LEN 0 #endif /* Default value of IdOsmNumber3 (DpId 8245) */ #ifndef IDOSMNUMBER3_DEFAULT_VAL #define IDOSMNUMBER3_DEFAULT_VAL #endif /* Length of default value of IdOsmNumber3 (Maximum 13 Byte) */ #ifndef IDOSMNUMBER3_DEFAULT_LEN #define IDOSMNUMBER3_DEFAULT_LEN 0 #endif /* Default value of IdOsmNumberA (DpId 8246) */ #ifndef IDOSMNUMBERA_DEFAULT_VAL #define IDOSMNUMBERA_DEFAULT_VAL #endif /* Length of default value of IdOsmNumberA (Maximum 13 Byte) */ #ifndef IDOSMNUMBERA_DEFAULT_LEN #define IDOSMNUMBERA_DEFAULT_LEN 0 #endif /* Default value of IdOsmNumberB (DpId 8247) */ #ifndef IDOSMNUMBERB_DEFAULT_VAL #define IDOSMNUMBERB_DEFAULT_VAL #endif /* Length of default value of IdOsmNumberB (Maximum 13 Byte) */ #ifndef IDOSMNUMBERB_DEFAULT_LEN #define IDOSMNUMBERB_DEFAULT_LEN 0 #endif /* Default value of IdOsmNumberC (DpId 8248) */ #ifndef IDOSMNUMBERC_DEFAULT_VAL #define IDOSMNUMBERC_DEFAULT_VAL #endif /* Length of default value of IdOsmNumberC (Maximum 13 Byte) */ #ifndef IDOSMNUMBERC_DEFAULT_LEN #define IDOSMNUMBERC_DEFAULT_LEN 0 #endif /* Default value of BatteryTestLastPerformedTime (DpId 8265) */ #ifndef BATTERYTESTLASTPERFORMEDTIME_DEFAULT_VAL #define BATTERYTESTLASTPERFORMEDTIME_DEFAULT_VAL #endif /* Length of default value of BatteryTestLastPerformedTime (Maximum 8 Byte) */ #ifndef BATTERYTESTLASTPERFORMEDTIME_DEFAULT_LEN #define BATTERYTESTLASTPERFORMEDTIME_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg01 (DpId 8280) */ #ifndef USERANALOGCFG01_DEFAULT_VAL #define USERANALOGCFG01_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg01 (Maximum 20 Byte) */ #ifndef USERANALOGCFG01_DEFAULT_LEN #define USERANALOGCFG01_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg02 (DpId 8281) */ #ifndef USERANALOGCFG02_DEFAULT_VAL #define USERANALOGCFG02_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg02 (Maximum 20 Byte) */ #ifndef USERANALOGCFG02_DEFAULT_LEN #define USERANALOGCFG02_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg03 (DpId 8282) */ #ifndef USERANALOGCFG03_DEFAULT_VAL #define USERANALOGCFG03_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg03 (Maximum 20 Byte) */ #ifndef USERANALOGCFG03_DEFAULT_LEN #define USERANALOGCFG03_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg04 (DpId 8283) */ #ifndef USERANALOGCFG04_DEFAULT_VAL #define USERANALOGCFG04_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg04 (Maximum 20 Byte) */ #ifndef USERANALOGCFG04_DEFAULT_LEN #define USERANALOGCFG04_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg05 (DpId 8284) */ #ifndef USERANALOGCFG05_DEFAULT_VAL #define USERANALOGCFG05_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg05 (Maximum 20 Byte) */ #ifndef USERANALOGCFG05_DEFAULT_LEN #define USERANALOGCFG05_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg06 (DpId 8285) */ #ifndef USERANALOGCFG06_DEFAULT_VAL #define USERANALOGCFG06_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg06 (Maximum 20 Byte) */ #ifndef USERANALOGCFG06_DEFAULT_LEN #define USERANALOGCFG06_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg07 (DpId 8286) */ #ifndef USERANALOGCFG07_DEFAULT_VAL #define USERANALOGCFG07_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg07 (Maximum 20 Byte) */ #ifndef USERANALOGCFG07_DEFAULT_LEN #define USERANALOGCFG07_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg08 (DpId 8287) */ #ifndef USERANALOGCFG08_DEFAULT_VAL #define USERANALOGCFG08_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg08 (Maximum 20 Byte) */ #ifndef USERANALOGCFG08_DEFAULT_LEN #define USERANALOGCFG08_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg09 (DpId 8288) */ #ifndef USERANALOGCFG09_DEFAULT_VAL #define USERANALOGCFG09_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg09 (Maximum 20 Byte) */ #ifndef USERANALOGCFG09_DEFAULT_LEN #define USERANALOGCFG09_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg10 (DpId 8289) */ #ifndef USERANALOGCFG10_DEFAULT_VAL #define USERANALOGCFG10_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg10 (Maximum 20 Byte) */ #ifndef USERANALOGCFG10_DEFAULT_LEN #define USERANALOGCFG10_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg11 (DpId 8290) */ #ifndef USERANALOGCFG11_DEFAULT_VAL #define USERANALOGCFG11_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg11 (Maximum 20 Byte) */ #ifndef USERANALOGCFG11_DEFAULT_LEN #define USERANALOGCFG11_DEFAULT_LEN 0 #endif /* Default value of UserAnalogCfg12 (DpId 8291) */ #ifndef USERANALOGCFG12_DEFAULT_VAL #define USERANALOGCFG12_DEFAULT_VAL #endif /* Length of default value of UserAnalogCfg12 (Maximum 20 Byte) */ #ifndef USERANALOGCFG12_DEFAULT_LEN #define USERANALOGCFG12_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpAddr1 (DpId 8342) */ #ifndef S61850CLIENTIPADDR1_DEFAULT_VAL #define S61850CLIENTIPADDR1_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpAddr1 (Maximum 4 Byte) */ #ifndef S61850CLIENTIPADDR1_DEFAULT_LEN #define S61850CLIENTIPADDR1_DEFAULT_LEN 0 #endif /* Default value of s61850ServerIpAddr (DpId 8345) */ #ifndef S61850SERVERIPADDR_DEFAULT_VAL #define S61850SERVERIPADDR_DEFAULT_VAL #endif /* Length of default value of s61850ServerIpAddr (Maximum 4 Byte) */ #ifndef S61850SERVERIPADDR_DEFAULT_LEN #define S61850SERVERIPADDR_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpAddr2 (DpId 8389) */ #ifndef S61850CLIENTIPADDR2_DEFAULT_VAL #define S61850CLIENTIPADDR2_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpAddr2 (Maximum 4 Byte) */ #ifndef S61850CLIENTIPADDR2_DEFAULT_LEN #define S61850CLIENTIPADDR2_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpAddr3 (DpId 8390) */ #ifndef S61850CLIENTIPADDR3_DEFAULT_VAL #define S61850CLIENTIPADDR3_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpAddr3 (Maximum 4 Byte) */ #ifndef S61850CLIENTIPADDR3_DEFAULT_LEN #define S61850CLIENTIPADDR3_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpAddr4 (DpId 8391) */ #ifndef S61850CLIENTIPADDR4_DEFAULT_VAL #define S61850CLIENTIPADDR4_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpAddr4 (Maximum 4 Byte) */ #ifndef S61850CLIENTIPADDR4_DEFAULT_LEN #define S61850CLIENTIPADDR4_DEFAULT_LEN 0 #endif /* Default value of LogicCh9OutputExp (DpId 8399) */ #ifndef LOGICCH9OUTPUTEXP_DEFAULT_VAL #define LOGICCH9OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh9OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH9OUTPUTEXP_DEFAULT_LEN #define LOGICCH9OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh9InputExp (DpId 8407) */ #ifndef LOGICCH9INPUTEXP_DEFAULT_VAL #define LOGICCH9INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh9InputExp (Maximum 41 Byte) */ #ifndef LOGICCH9INPUTEXP_DEFAULT_LEN #define LOGICCH9INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh10OutputExp (DpId 8408) */ #ifndef LOGICCH10OUTPUTEXP_DEFAULT_VAL #define LOGICCH10OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh10OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH10OUTPUTEXP_DEFAULT_LEN #define LOGICCH10OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh10InputExp (DpId 8416) */ #ifndef LOGICCH10INPUTEXP_DEFAULT_VAL #define LOGICCH10INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh10InputExp (Maximum 41 Byte) */ #ifndef LOGICCH10INPUTEXP_DEFAULT_LEN #define LOGICCH10INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh11OutputExp (DpId 8417) */ #ifndef LOGICCH11OUTPUTEXP_DEFAULT_VAL #define LOGICCH11OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh11OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH11OUTPUTEXP_DEFAULT_LEN #define LOGICCH11OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh11InputExp (DpId 8425) */ #ifndef LOGICCH11INPUTEXP_DEFAULT_VAL #define LOGICCH11INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh11InputExp (Maximum 41 Byte) */ #ifndef LOGICCH11INPUTEXP_DEFAULT_LEN #define LOGICCH11INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh12OutputExp (DpId 8426) */ #ifndef LOGICCH12OUTPUTEXP_DEFAULT_VAL #define LOGICCH12OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh12OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH12OUTPUTEXP_DEFAULT_LEN #define LOGICCH12OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh12InputExp (DpId 8434) */ #ifndef LOGICCH12INPUTEXP_DEFAULT_VAL #define LOGICCH12INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh12InputExp (Maximum 41 Byte) */ #ifndef LOGICCH12INPUTEXP_DEFAULT_LEN #define LOGICCH12INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh13OutputExp (DpId 8435) */ #ifndef LOGICCH13OUTPUTEXP_DEFAULT_VAL #define LOGICCH13OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh13OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH13OUTPUTEXP_DEFAULT_LEN #define LOGICCH13OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh13InputExp (DpId 8443) */ #ifndef LOGICCH13INPUTEXP_DEFAULT_VAL #define LOGICCH13INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh13InputExp (Maximum 41 Byte) */ #ifndef LOGICCH13INPUTEXP_DEFAULT_LEN #define LOGICCH13INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh14OutputExp (DpId 8444) */ #ifndef LOGICCH14OUTPUTEXP_DEFAULT_VAL #define LOGICCH14OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh14OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH14OUTPUTEXP_DEFAULT_LEN #define LOGICCH14OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh14InputExp (DpId 8452) */ #ifndef LOGICCH14INPUTEXP_DEFAULT_VAL #define LOGICCH14INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh14InputExp (Maximum 41 Byte) */ #ifndef LOGICCH14INPUTEXP_DEFAULT_LEN #define LOGICCH14INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh15OutputExp (DpId 8453) */ #ifndef LOGICCH15OUTPUTEXP_DEFAULT_VAL #define LOGICCH15OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh15OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH15OUTPUTEXP_DEFAULT_LEN #define LOGICCH15OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh15InputExp (DpId 8461) */ #ifndef LOGICCH15INPUTEXP_DEFAULT_VAL #define LOGICCH15INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh15InputExp (Maximum 41 Byte) */ #ifndef LOGICCH15INPUTEXP_DEFAULT_LEN #define LOGICCH15INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh16OutputExp (DpId 8462) */ #ifndef LOGICCH16OUTPUTEXP_DEFAULT_VAL #define LOGICCH16OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh16OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH16OUTPUTEXP_DEFAULT_LEN #define LOGICCH16OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh16InputExp (DpId 8470) */ #ifndef LOGICCH16INPUTEXP_DEFAULT_VAL #define LOGICCH16INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh16InputExp (Maximum 41 Byte) */ #ifndef LOGICCH16INPUTEXP_DEFAULT_LEN #define LOGICCH16INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh17OutputExp (DpId 8471) */ #ifndef LOGICCH17OUTPUTEXP_DEFAULT_VAL #define LOGICCH17OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh17OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH17OUTPUTEXP_DEFAULT_LEN #define LOGICCH17OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh17InputExp (DpId 8479) */ #ifndef LOGICCH17INPUTEXP_DEFAULT_VAL #define LOGICCH17INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh17InputExp (Maximum 41 Byte) */ #ifndef LOGICCH17INPUTEXP_DEFAULT_LEN #define LOGICCH17INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh18OutputExp (DpId 8480) */ #ifndef LOGICCH18OUTPUTEXP_DEFAULT_VAL #define LOGICCH18OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh18OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH18OUTPUTEXP_DEFAULT_LEN #define LOGICCH18OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh18InputExp (DpId 8488) */ #ifndef LOGICCH18INPUTEXP_DEFAULT_VAL #define LOGICCH18INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh18InputExp (Maximum 41 Byte) */ #ifndef LOGICCH18INPUTEXP_DEFAULT_LEN #define LOGICCH18INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh19OutputExp (DpId 8489) */ #ifndef LOGICCH19OUTPUTEXP_DEFAULT_VAL #define LOGICCH19OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh19OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH19OUTPUTEXP_DEFAULT_LEN #define LOGICCH19OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh19InputExp (DpId 8497) */ #ifndef LOGICCH19INPUTEXP_DEFAULT_VAL #define LOGICCH19INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh19InputExp (Maximum 41 Byte) */ #ifndef LOGICCH19INPUTEXP_DEFAULT_LEN #define LOGICCH19INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh20OutputExp (DpId 8498) */ #ifndef LOGICCH20OUTPUTEXP_DEFAULT_VAL #define LOGICCH20OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh20OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH20OUTPUTEXP_DEFAULT_LEN #define LOGICCH20OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh20InputExp (DpId 8506) */ #ifndef LOGICCH20INPUTEXP_DEFAULT_VAL #define LOGICCH20INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh20InputExp (Maximum 41 Byte) */ #ifndef LOGICCH20INPUTEXP_DEFAULT_LEN #define LOGICCH20INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh21OutputExp (DpId 8507) */ #ifndef LOGICCH21OUTPUTEXP_DEFAULT_VAL #define LOGICCH21OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh21OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH21OUTPUTEXP_DEFAULT_LEN #define LOGICCH21OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh21InputExp (DpId 8515) */ #ifndef LOGICCH21INPUTEXP_DEFAULT_VAL #define LOGICCH21INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh21InputExp (Maximum 41 Byte) */ #ifndef LOGICCH21INPUTEXP_DEFAULT_LEN #define LOGICCH21INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh22OutputExp (DpId 8516) */ #ifndef LOGICCH22OUTPUTEXP_DEFAULT_VAL #define LOGICCH22OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh22OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH22OUTPUTEXP_DEFAULT_LEN #define LOGICCH22OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh22InputExp (DpId 8524) */ #ifndef LOGICCH22INPUTEXP_DEFAULT_VAL #define LOGICCH22INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh22InputExp (Maximum 41 Byte) */ #ifndef LOGICCH22INPUTEXP_DEFAULT_LEN #define LOGICCH22INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh23OutputExp (DpId 8525) */ #ifndef LOGICCH23OUTPUTEXP_DEFAULT_VAL #define LOGICCH23OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh23OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH23OUTPUTEXP_DEFAULT_LEN #define LOGICCH23OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh23InputExp (DpId 8533) */ #ifndef LOGICCH23INPUTEXP_DEFAULT_VAL #define LOGICCH23INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh23InputExp (Maximum 41 Byte) */ #ifndef LOGICCH23INPUTEXP_DEFAULT_LEN #define LOGICCH23INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh24OutputExp (DpId 8534) */ #ifndef LOGICCH24OUTPUTEXP_DEFAULT_VAL #define LOGICCH24OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh24OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH24OUTPUTEXP_DEFAULT_LEN #define LOGICCH24OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh24InputExp (DpId 8542) */ #ifndef LOGICCH24INPUTEXP_DEFAULT_VAL #define LOGICCH24INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh24InputExp (Maximum 41 Byte) */ #ifndef LOGICCH24INPUTEXP_DEFAULT_LEN #define LOGICCH24INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh25OutputExp (DpId 8543) */ #ifndef LOGICCH25OUTPUTEXP_DEFAULT_VAL #define LOGICCH25OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh25OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH25OUTPUTEXP_DEFAULT_LEN #define LOGICCH25OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh25InputExp (DpId 8551) */ #ifndef LOGICCH25INPUTEXP_DEFAULT_VAL #define LOGICCH25INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh25InputExp (Maximum 41 Byte) */ #ifndef LOGICCH25INPUTEXP_DEFAULT_LEN #define LOGICCH25INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh26OutputExp (DpId 8552) */ #ifndef LOGICCH26OUTPUTEXP_DEFAULT_VAL #define LOGICCH26OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh26OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH26OUTPUTEXP_DEFAULT_LEN #define LOGICCH26OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh26InputExp (DpId 8560) */ #ifndef LOGICCH26INPUTEXP_DEFAULT_VAL #define LOGICCH26INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh26InputExp (Maximum 41 Byte) */ #ifndef LOGICCH26INPUTEXP_DEFAULT_LEN #define LOGICCH26INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh27OutputExp (DpId 8561) */ #ifndef LOGICCH27OUTPUTEXP_DEFAULT_VAL #define LOGICCH27OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh27OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH27OUTPUTEXP_DEFAULT_LEN #define LOGICCH27OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh27InputExp (DpId 8569) */ #ifndef LOGICCH27INPUTEXP_DEFAULT_VAL #define LOGICCH27INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh27InputExp (Maximum 41 Byte) */ #ifndef LOGICCH27INPUTEXP_DEFAULT_LEN #define LOGICCH27INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh28OutputExp (DpId 8570) */ #ifndef LOGICCH28OUTPUTEXP_DEFAULT_VAL #define LOGICCH28OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh28OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH28OUTPUTEXP_DEFAULT_LEN #define LOGICCH28OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh28InputExp (DpId 8578) */ #ifndef LOGICCH28INPUTEXP_DEFAULT_VAL #define LOGICCH28INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh28InputExp (Maximum 41 Byte) */ #ifndef LOGICCH28INPUTEXP_DEFAULT_LEN #define LOGICCH28INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh29OutputExp (DpId 8579) */ #ifndef LOGICCH29OUTPUTEXP_DEFAULT_VAL #define LOGICCH29OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh29OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH29OUTPUTEXP_DEFAULT_LEN #define LOGICCH29OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh29InputExp (DpId 8587) */ #ifndef LOGICCH29INPUTEXP_DEFAULT_VAL #define LOGICCH29INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh29InputExp (Maximum 41 Byte) */ #ifndef LOGICCH29INPUTEXP_DEFAULT_LEN #define LOGICCH29INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh30OutputExp (DpId 8588) */ #ifndef LOGICCH30OUTPUTEXP_DEFAULT_VAL #define LOGICCH30OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh30OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH30OUTPUTEXP_DEFAULT_LEN #define LOGICCH30OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh30InputExp (DpId 8596) */ #ifndef LOGICCH30INPUTEXP_DEFAULT_VAL #define LOGICCH30INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh30InputExp (Maximum 41 Byte) */ #ifndef LOGICCH30INPUTEXP_DEFAULT_LEN #define LOGICCH30INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh31OutputExp (DpId 8597) */ #ifndef LOGICCH31OUTPUTEXP_DEFAULT_VAL #define LOGICCH31OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh31OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH31OUTPUTEXP_DEFAULT_LEN #define LOGICCH31OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh31InputExp (DpId 8605) */ #ifndef LOGICCH31INPUTEXP_DEFAULT_VAL #define LOGICCH31INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh31InputExp (Maximum 41 Byte) */ #ifndef LOGICCH31INPUTEXP_DEFAULT_LEN #define LOGICCH31INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh32OutputExp (DpId 8606) */ #ifndef LOGICCH32OUTPUTEXP_DEFAULT_VAL #define LOGICCH32OUTPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh32OutputExp (Maximum 41 Byte) */ #ifndef LOGICCH32OUTPUTEXP_DEFAULT_LEN #define LOGICCH32OUTPUTEXP_DEFAULT_LEN 0 #endif /* Default value of LogicCh32InputExp (DpId 8614) */ #ifndef LOGICCH32INPUTEXP_DEFAULT_VAL #define LOGICCH32INPUTEXP_DEFAULT_VAL #endif /* Length of default value of LogicCh32InputExp (Maximum 41 Byte) */ #ifndef LOGICCH32INPUTEXP_DEFAULT_LEN #define LOGICCH32INPUTEXP_DEFAULT_LEN 0 #endif /* Default value of ScadaDNP3SecurityStatistics (DpId 8704) */ #ifndef SCADADNP3SECURITYSTATISTICS_DEFAULT_VAL #define SCADADNP3SECURITYSTATISTICS_DEFAULT_VAL #endif /* Length of default value of ScadaDNP3SecurityStatistics (Maximum 386 Byte) */ #ifndef SCADADNP3SECURITYSTATISTICS_DEFAULT_LEN #define SCADADNP3SECURITYSTATISTICS_DEFAULT_LEN 0 #endif /* Default value of UsbDiscUpdateDirFiles (DpId 8731) */ #ifndef USBDISCUPDATEDIRFILES_DEFAULT_VAL #define USBDISCUPDATEDIRFILES_DEFAULT_VAL #endif /* Length of default value of UsbDiscUpdateDirFiles (Maximum 255 Byte) */ #ifndef USBDISCUPDATEDIRFILES_DEFAULT_LEN #define USBDISCUPDATEDIRFILES_DEFAULT_LEN 0 #endif /* Default value of IdOsmNumber1 (DpId 8740) */ #ifndef IDOSMNUMBER1_DEFAULT_VAL #define IDOSMNUMBER1_DEFAULT_VAL #endif /* Length of default value of IdOsmNumber1 (Maximum 13 Byte) */ #ifndef IDOSMNUMBER1_DEFAULT_LEN #define IDOSMNUMBER1_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr01 (DpId 8746) */ #ifndef S61850GSESUBSCR01_DEFAULT_VAL #define S61850GSESUBSCR01_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr01 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR01_DEFAULT_LEN #define S61850GSESUBSCR01_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr02 (DpId 8747) */ #ifndef S61850GSESUBSCR02_DEFAULT_VAL #define S61850GSESUBSCR02_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr02 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR02_DEFAULT_LEN #define S61850GSESUBSCR02_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr03 (DpId 8748) */ #ifndef S61850GSESUBSCR03_DEFAULT_VAL #define S61850GSESUBSCR03_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr03 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR03_DEFAULT_LEN #define S61850GSESUBSCR03_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr04 (DpId 8749) */ #ifndef S61850GSESUBSCR04_DEFAULT_VAL #define S61850GSESUBSCR04_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr04 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR04_DEFAULT_LEN #define S61850GSESUBSCR04_DEFAULT_LEN 0 #endif /* Default value of IdPSCNumber (DpId 8765) */ #ifndef IDPSCNUMBER_DEFAULT_VAL #define IDPSCNUMBER_DEFAULT_VAL #endif /* Length of default value of IdPSCNumber (Maximum 13 Byte) */ #ifndef IDPSCNUMBER_DEFAULT_LEN #define IDPSCNUMBER_DEFAULT_LEN 0 #endif /* Default value of CanPscReadSWVers (DpId 8771) */ #ifndef CANPSCREADSWVERS_DEFAULT_VAL #define CANPSCREADSWVERS_DEFAULT_VAL #endif /* Length of default value of CanPscReadSWVers (Maximum 6 Byte) */ #ifndef CANPSCREADSWVERS_DEFAULT_LEN #define CANPSCREADSWVERS_DEFAULT_LEN 0 #endif /* Default value of CanPscRdData (DpId 8776) */ #ifndef CANPSCRDDATA_DEFAULT_VAL #define CANPSCRDDATA_DEFAULT_VAL #endif /* Length of default value of CanPscRdData (Maximum 9 Byte) */ #ifndef CANPSCRDDATA_DEFAULT_LEN #define CANPSCRDDATA_DEFAULT_LEN 0 #endif /* Default value of CanDataRequestPsc (DpId 8783) */ #ifndef CANDATAREQUESTPSC_DEFAULT_VAL #define CANDATAREQUESTPSC_DEFAULT_VAL #endif /* Length of default value of CanDataRequestPsc (Maximum 4 Byte) */ #ifndef CANDATAREQUESTPSC_DEFAULT_LEN #define CANDATAREQUESTPSC_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr05 (DpId 8798) */ #ifndef S61850GSESUBSCR05_DEFAULT_VAL #define S61850GSESUBSCR05_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr05 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR05_DEFAULT_LEN #define S61850GSESUBSCR05_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr06 (DpId 8799) */ #ifndef S61850GSESUBSCR06_DEFAULT_VAL #define S61850GSESUBSCR06_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr06 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR06_DEFAULT_LEN #define S61850GSESUBSCR06_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr07 (DpId 8800) */ #ifndef S61850GSESUBSCR07_DEFAULT_VAL #define S61850GSESUBSCR07_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr07 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR07_DEFAULT_LEN #define S61850GSESUBSCR07_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr08 (DpId 8801) */ #ifndef S61850GSESUBSCR08_DEFAULT_VAL #define S61850GSESUBSCR08_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr08 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR08_DEFAULT_LEN #define S61850GSESUBSCR08_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr09 (DpId 8802) */ #ifndef S61850GSESUBSCR09_DEFAULT_VAL #define S61850GSESUBSCR09_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr09 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR09_DEFAULT_LEN #define S61850GSESUBSCR09_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr10 (DpId 8803) */ #ifndef S61850GSESUBSCR10_DEFAULT_VAL #define S61850GSESUBSCR10_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr10 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR10_DEFAULT_LEN #define S61850GSESUBSCR10_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BIpMasterAddr (DpId 8811) */ #ifndef SCADAT10BIPMASTERADDR_DEFAULT_VAL #define SCADAT10BIPMASTERADDR_DEFAULT_VAL #endif /* Length of default value of ScadaT10BIpMasterAddr (Maximum 4 Byte) */ #ifndef SCADAT10BIPMASTERADDR_DEFAULT_LEN #define SCADAT10BIPMASTERADDR_DEFAULT_LEN 0 #endif /* Default value of DDT001 (DpId 8813) */ #ifndef DDT001_DEFAULT_VAL #define DDT001_DEFAULT_VAL #endif /* Length of default value of DDT001 (Maximum 4 Byte) */ #ifndef DDT001_DEFAULT_LEN #define DDT001_DEFAULT_LEN 0 #endif /* Default value of DDT002 (DpId 8814) */ #ifndef DDT002_DEFAULT_VAL #define DDT002_DEFAULT_VAL #endif /* Length of default value of DDT002 (Maximum 4 Byte) */ #ifndef DDT002_DEFAULT_LEN #define DDT002_DEFAULT_LEN 0 #endif /* Default value of DDT003 (DpId 8815) */ #ifndef DDT003_DEFAULT_VAL #define DDT003_DEFAULT_VAL #endif /* Length of default value of DDT003 (Maximum 4 Byte) */ #ifndef DDT003_DEFAULT_LEN #define DDT003_DEFAULT_LEN 0 #endif /* Default value of DDT004 (DpId 8816) */ #ifndef DDT004_DEFAULT_VAL #define DDT004_DEFAULT_VAL #endif /* Length of default value of DDT004 (Maximum 4 Byte) */ #ifndef DDT004_DEFAULT_LEN #define DDT004_DEFAULT_LEN 0 #endif /* Default value of DDT005 (DpId 8817) */ #ifndef DDT005_DEFAULT_VAL #define DDT005_DEFAULT_VAL #endif /* Length of default value of DDT005 (Maximum 4 Byte) */ #ifndef DDT005_DEFAULT_LEN #define DDT005_DEFAULT_LEN 0 #endif /* Default value of DDT006 (DpId 8818) */ #ifndef DDT006_DEFAULT_VAL #define DDT006_DEFAULT_VAL #endif /* Length of default value of DDT006 (Maximum 4 Byte) */ #ifndef DDT006_DEFAULT_LEN #define DDT006_DEFAULT_LEN 0 #endif /* Default value of DDT007 (DpId 8819) */ #ifndef DDT007_DEFAULT_VAL #define DDT007_DEFAULT_VAL #endif /* Length of default value of DDT007 (Maximum 4 Byte) */ #ifndef DDT007_DEFAULT_LEN #define DDT007_DEFAULT_LEN 0 #endif /* Default value of DDT008 (DpId 8820) */ #ifndef DDT008_DEFAULT_VAL #define DDT008_DEFAULT_VAL #endif /* Length of default value of DDT008 (Maximum 4 Byte) */ #ifndef DDT008_DEFAULT_LEN #define DDT008_DEFAULT_LEN 0 #endif /* Default value of DDT009 (DpId 8821) */ #ifndef DDT009_DEFAULT_VAL #define DDT009_DEFAULT_VAL #endif /* Length of default value of DDT009 (Maximum 4 Byte) */ #ifndef DDT009_DEFAULT_LEN #define DDT009_DEFAULT_LEN 0 #endif /* Default value of DDT010 (DpId 8822) */ #ifndef DDT010_DEFAULT_VAL #define DDT010_DEFAULT_VAL #endif /* Length of default value of DDT010 (Maximum 4 Byte) */ #ifndef DDT010_DEFAULT_LEN #define DDT010_DEFAULT_LEN 0 #endif /* Default value of DDT011 (DpId 8823) */ #ifndef DDT011_DEFAULT_VAL #define DDT011_DEFAULT_VAL #endif /* Length of default value of DDT011 (Maximum 4 Byte) */ #ifndef DDT011_DEFAULT_LEN #define DDT011_DEFAULT_LEN 0 #endif /* Default value of DDT012 (DpId 8824) */ #ifndef DDT012_DEFAULT_VAL #define DDT012_DEFAULT_VAL #endif /* Length of default value of DDT012 (Maximum 4 Byte) */ #ifndef DDT012_DEFAULT_LEN #define DDT012_DEFAULT_LEN 0 #endif /* Default value of DDT013 (DpId 8825) */ #ifndef DDT013_DEFAULT_VAL #define DDT013_DEFAULT_VAL #endif /* Length of default value of DDT013 (Maximum 4 Byte) */ #ifndef DDT013_DEFAULT_LEN #define DDT013_DEFAULT_LEN 0 #endif /* Default value of DDT014 (DpId 8826) */ #ifndef DDT014_DEFAULT_VAL #define DDT014_DEFAULT_VAL #endif /* Length of default value of DDT014 (Maximum 4 Byte) */ #ifndef DDT014_DEFAULT_LEN #define DDT014_DEFAULT_LEN 0 #endif /* Default value of DDT015 (DpId 8827) */ #ifndef DDT015_DEFAULT_VAL #define DDT015_DEFAULT_VAL #endif /* Length of default value of DDT015 (Maximum 4 Byte) */ #ifndef DDT015_DEFAULT_LEN #define DDT015_DEFAULT_LEN 0 #endif /* Default value of DDT016 (DpId 8828) */ #ifndef DDT016_DEFAULT_VAL #define DDT016_DEFAULT_VAL #endif /* Length of default value of DDT016 (Maximum 4 Byte) */ #ifndef DDT016_DEFAULT_LEN #define DDT016_DEFAULT_LEN 0 #endif /* Default value of DDT017 (DpId 8829) */ #ifndef DDT017_DEFAULT_VAL #define DDT017_DEFAULT_VAL #endif /* Length of default value of DDT017 (Maximum 4 Byte) */ #ifndef DDT017_DEFAULT_LEN #define DDT017_DEFAULT_LEN 0 #endif /* Default value of DDT018 (DpId 8830) */ #ifndef DDT018_DEFAULT_VAL #define DDT018_DEFAULT_VAL #endif /* Length of default value of DDT018 (Maximum 4 Byte) */ #ifndef DDT018_DEFAULT_LEN #define DDT018_DEFAULT_LEN 0 #endif /* Default value of DDT019 (DpId 8831) */ #ifndef DDT019_DEFAULT_VAL #define DDT019_DEFAULT_VAL #endif /* Length of default value of DDT019 (Maximum 4 Byte) */ #ifndef DDT019_DEFAULT_LEN #define DDT019_DEFAULT_LEN 0 #endif /* Default value of DDT020 (DpId 8832) */ #ifndef DDT020_DEFAULT_VAL #define DDT020_DEFAULT_VAL #endif /* Length of default value of DDT020 (Maximum 4 Byte) */ #ifndef DDT020_DEFAULT_LEN #define DDT020_DEFAULT_LEN 0 #endif /* Default value of DDT021 (DpId 8833) */ #ifndef DDT021_DEFAULT_VAL #define DDT021_DEFAULT_VAL #endif /* Length of default value of DDT021 (Maximum 4 Byte) */ #ifndef DDT021_DEFAULT_LEN #define DDT021_DEFAULT_LEN 0 #endif /* Default value of DDT022 (DpId 8834) */ #ifndef DDT022_DEFAULT_VAL #define DDT022_DEFAULT_VAL #endif /* Length of default value of DDT022 (Maximum 4 Byte) */ #ifndef DDT022_DEFAULT_LEN #define DDT022_DEFAULT_LEN 0 #endif /* Default value of DDT023 (DpId 8835) */ #ifndef DDT023_DEFAULT_VAL #define DDT023_DEFAULT_VAL #endif /* Length of default value of DDT023 (Maximum 4 Byte) */ #ifndef DDT023_DEFAULT_LEN #define DDT023_DEFAULT_LEN 0 #endif /* Default value of DDT024 (DpId 8836) */ #ifndef DDT024_DEFAULT_VAL #define DDT024_DEFAULT_VAL #endif /* Length of default value of DDT024 (Maximum 4 Byte) */ #ifndef DDT024_DEFAULT_LEN #define DDT024_DEFAULT_LEN 0 #endif /* Default value of DDT025 (DpId 8837) */ #ifndef DDT025_DEFAULT_VAL #define DDT025_DEFAULT_VAL #endif /* Length of default value of DDT025 (Maximum 4 Byte) */ #ifndef DDT025_DEFAULT_LEN #define DDT025_DEFAULT_LEN 0 #endif /* Default value of DDT026 (DpId 8838) */ #ifndef DDT026_DEFAULT_VAL #define DDT026_DEFAULT_VAL #endif /* Length of default value of DDT026 (Maximum 4 Byte) */ #ifndef DDT026_DEFAULT_LEN #define DDT026_DEFAULT_LEN 0 #endif /* Default value of DDT027 (DpId 8839) */ #ifndef DDT027_DEFAULT_VAL #define DDT027_DEFAULT_VAL #endif /* Length of default value of DDT027 (Maximum 4 Byte) */ #ifndef DDT027_DEFAULT_LEN #define DDT027_DEFAULT_LEN 0 #endif /* Default value of DDT028 (DpId 8840) */ #ifndef DDT028_DEFAULT_VAL #define DDT028_DEFAULT_VAL #endif /* Length of default value of DDT028 (Maximum 4 Byte) */ #ifndef DDT028_DEFAULT_LEN #define DDT028_DEFAULT_LEN 0 #endif /* Default value of DDT029 (DpId 8841) */ #ifndef DDT029_DEFAULT_VAL #define DDT029_DEFAULT_VAL #endif /* Length of default value of DDT029 (Maximum 4 Byte) */ #ifndef DDT029_DEFAULT_LEN #define DDT029_DEFAULT_LEN 0 #endif /* Default value of DDT030 (DpId 8842) */ #ifndef DDT030_DEFAULT_VAL #define DDT030_DEFAULT_VAL #endif /* Length of default value of DDT030 (Maximum 4 Byte) */ #ifndef DDT030_DEFAULT_LEN #define DDT030_DEFAULT_LEN 0 #endif /* Default value of DDT031 (DpId 8843) */ #ifndef DDT031_DEFAULT_VAL #define DDT031_DEFAULT_VAL #endif /* Length of default value of DDT031 (Maximum 4 Byte) */ #ifndef DDT031_DEFAULT_LEN #define DDT031_DEFAULT_LEN 0 #endif /* Default value of DDT032 (DpId 8844) */ #ifndef DDT032_DEFAULT_VAL #define DDT032_DEFAULT_VAL #endif /* Length of default value of DDT032 (Maximum 4 Byte) */ #ifndef DDT032_DEFAULT_LEN #define DDT032_DEFAULT_LEN 0 #endif /* Default value of DDT033 (DpId 8845) */ #ifndef DDT033_DEFAULT_VAL #define DDT033_DEFAULT_VAL #endif /* Length of default value of DDT033 (Maximum 4 Byte) */ #ifndef DDT033_DEFAULT_LEN #define DDT033_DEFAULT_LEN 0 #endif /* Default value of DDT034 (DpId 8846) */ #ifndef DDT034_DEFAULT_VAL #define DDT034_DEFAULT_VAL #endif /* Length of default value of DDT034 (Maximum 4 Byte) */ #ifndef DDT034_DEFAULT_LEN #define DDT034_DEFAULT_LEN 0 #endif /* Default value of DDT035 (DpId 8847) */ #ifndef DDT035_DEFAULT_VAL #define DDT035_DEFAULT_VAL #endif /* Length of default value of DDT035 (Maximum 4 Byte) */ #ifndef DDT035_DEFAULT_LEN #define DDT035_DEFAULT_LEN 0 #endif /* Default value of DDT036 (DpId 8848) */ #ifndef DDT036_DEFAULT_VAL #define DDT036_DEFAULT_VAL #endif /* Length of default value of DDT036 (Maximum 4 Byte) */ #ifndef DDT036_DEFAULT_LEN #define DDT036_DEFAULT_LEN 0 #endif /* Default value of DDT037 (DpId 8849) */ #ifndef DDT037_DEFAULT_VAL #define DDT037_DEFAULT_VAL #endif /* Length of default value of DDT037 (Maximum 4 Byte) */ #ifndef DDT037_DEFAULT_LEN #define DDT037_DEFAULT_LEN 0 #endif /* Default value of DDT038 (DpId 8850) */ #ifndef DDT038_DEFAULT_VAL #define DDT038_DEFAULT_VAL #endif /* Length of default value of DDT038 (Maximum 4 Byte) */ #ifndef DDT038_DEFAULT_LEN #define DDT038_DEFAULT_LEN 0 #endif /* Default value of DDT039 (DpId 8851) */ #ifndef DDT039_DEFAULT_VAL #define DDT039_DEFAULT_VAL #endif /* Length of default value of DDT039 (Maximum 4 Byte) */ #ifndef DDT039_DEFAULT_LEN #define DDT039_DEFAULT_LEN 0 #endif /* Default value of DDT040 (DpId 8852) */ #ifndef DDT040_DEFAULT_VAL #define DDT040_DEFAULT_VAL #endif /* Length of default value of DDT040 (Maximum 4 Byte) */ #ifndef DDT040_DEFAULT_LEN #define DDT040_DEFAULT_LEN 0 #endif /* Default value of DDT041 (DpId 8853) */ #ifndef DDT041_DEFAULT_VAL #define DDT041_DEFAULT_VAL #endif /* Length of default value of DDT041 (Maximum 4 Byte) */ #ifndef DDT041_DEFAULT_LEN #define DDT041_DEFAULT_LEN 0 #endif /* Default value of DDT042 (DpId 8854) */ #ifndef DDT042_DEFAULT_VAL #define DDT042_DEFAULT_VAL #endif /* Length of default value of DDT042 (Maximum 4 Byte) */ #ifndef DDT042_DEFAULT_LEN #define DDT042_DEFAULT_LEN 0 #endif /* Default value of DDT043 (DpId 8855) */ #ifndef DDT043_DEFAULT_VAL #define DDT043_DEFAULT_VAL #endif /* Length of default value of DDT043 (Maximum 4 Byte) */ #ifndef DDT043_DEFAULT_LEN #define DDT043_DEFAULT_LEN 0 #endif /* Default value of DDT044 (DpId 8856) */ #ifndef DDT044_DEFAULT_VAL #define DDT044_DEFAULT_VAL #endif /* Length of default value of DDT044 (Maximum 4 Byte) */ #ifndef DDT044_DEFAULT_LEN #define DDT044_DEFAULT_LEN 0 #endif /* Default value of DDT045 (DpId 8857) */ #ifndef DDT045_DEFAULT_VAL #define DDT045_DEFAULT_VAL #endif /* Length of default value of DDT045 (Maximum 4 Byte) */ #ifndef DDT045_DEFAULT_LEN #define DDT045_DEFAULT_LEN 0 #endif /* Default value of DDT046 (DpId 8858) */ #ifndef DDT046_DEFAULT_VAL #define DDT046_DEFAULT_VAL #endif /* Length of default value of DDT046 (Maximum 4 Byte) */ #ifndef DDT046_DEFAULT_LEN #define DDT046_DEFAULT_LEN 0 #endif /* Default value of DDT047 (DpId 8859) */ #ifndef DDT047_DEFAULT_VAL #define DDT047_DEFAULT_VAL #endif /* Length of default value of DDT047 (Maximum 4 Byte) */ #ifndef DDT047_DEFAULT_LEN #define DDT047_DEFAULT_LEN 0 #endif /* Default value of DDT048 (DpId 8860) */ #ifndef DDT048_DEFAULT_VAL #define DDT048_DEFAULT_VAL #endif /* Length of default value of DDT048 (Maximum 4 Byte) */ #ifndef DDT048_DEFAULT_LEN #define DDT048_DEFAULT_LEN 0 #endif /* Default value of DDT049 (DpId 8861) */ #ifndef DDT049_DEFAULT_VAL #define DDT049_DEFAULT_VAL #endif /* Length of default value of DDT049 (Maximum 4 Byte) */ #ifndef DDT049_DEFAULT_LEN #define DDT049_DEFAULT_LEN 0 #endif /* Default value of DDT050 (DpId 8862) */ #ifndef DDT050_DEFAULT_VAL #define DDT050_DEFAULT_VAL #endif /* Length of default value of DDT050 (Maximum 4 Byte) */ #ifndef DDT050_DEFAULT_LEN #define DDT050_DEFAULT_LEN 0 #endif /* Default value of DDT051 (DpId 8863) */ #ifndef DDT051_DEFAULT_VAL #define DDT051_DEFAULT_VAL #endif /* Length of default value of DDT051 (Maximum 4 Byte) */ #ifndef DDT051_DEFAULT_LEN #define DDT051_DEFAULT_LEN 0 #endif /* Default value of DDT052 (DpId 8864) */ #ifndef DDT052_DEFAULT_VAL #define DDT052_DEFAULT_VAL #endif /* Length of default value of DDT052 (Maximum 4 Byte) */ #ifndef DDT052_DEFAULT_LEN #define DDT052_DEFAULT_LEN 0 #endif /* Default value of DDT053 (DpId 8865) */ #ifndef DDT053_DEFAULT_VAL #define DDT053_DEFAULT_VAL #endif /* Length of default value of DDT053 (Maximum 4 Byte) */ #ifndef DDT053_DEFAULT_LEN #define DDT053_DEFAULT_LEN 0 #endif /* Default value of DDT054 (DpId 8866) */ #ifndef DDT054_DEFAULT_VAL #define DDT054_DEFAULT_VAL #endif /* Length of default value of DDT054 (Maximum 4 Byte) */ #ifndef DDT054_DEFAULT_LEN #define DDT054_DEFAULT_LEN 0 #endif /* Default value of DDT055 (DpId 8867) */ #ifndef DDT055_DEFAULT_VAL #define DDT055_DEFAULT_VAL #endif /* Length of default value of DDT055 (Maximum 4 Byte) */ #ifndef DDT055_DEFAULT_LEN #define DDT055_DEFAULT_LEN 0 #endif /* Default value of DDT056 (DpId 8868) */ #ifndef DDT056_DEFAULT_VAL #define DDT056_DEFAULT_VAL #endif /* Length of default value of DDT056 (Maximum 4 Byte) */ #ifndef DDT056_DEFAULT_LEN #define DDT056_DEFAULT_LEN 0 #endif /* Default value of DDT057 (DpId 8869) */ #ifndef DDT057_DEFAULT_VAL #define DDT057_DEFAULT_VAL #endif /* Length of default value of DDT057 (Maximum 4 Byte) */ #ifndef DDT057_DEFAULT_LEN #define DDT057_DEFAULT_LEN 0 #endif /* Default value of DDT058 (DpId 8870) */ #ifndef DDT058_DEFAULT_VAL #define DDT058_DEFAULT_VAL #endif /* Length of default value of DDT058 (Maximum 4 Byte) */ #ifndef DDT058_DEFAULT_LEN #define DDT058_DEFAULT_LEN 0 #endif /* Default value of DDT059 (DpId 8871) */ #ifndef DDT059_DEFAULT_VAL #define DDT059_DEFAULT_VAL #endif /* Length of default value of DDT059 (Maximum 4 Byte) */ #ifndef DDT059_DEFAULT_LEN #define DDT059_DEFAULT_LEN 0 #endif /* Default value of DDT060 (DpId 8872) */ #ifndef DDT060_DEFAULT_VAL #define DDT060_DEFAULT_VAL #endif /* Length of default value of DDT060 (Maximum 4 Byte) */ #ifndef DDT060_DEFAULT_LEN #define DDT060_DEFAULT_LEN 0 #endif /* Default value of DDT061 (DpId 8873) */ #ifndef DDT061_DEFAULT_VAL #define DDT061_DEFAULT_VAL #endif /* Length of default value of DDT061 (Maximum 4 Byte) */ #ifndef DDT061_DEFAULT_LEN #define DDT061_DEFAULT_LEN 0 #endif /* Default value of DDT062 (DpId 8874) */ #ifndef DDT062_DEFAULT_VAL #define DDT062_DEFAULT_VAL #endif /* Length of default value of DDT062 (Maximum 4 Byte) */ #ifndef DDT062_DEFAULT_LEN #define DDT062_DEFAULT_LEN 0 #endif /* Default value of DDT063 (DpId 8875) */ #ifndef DDT063_DEFAULT_VAL #define DDT063_DEFAULT_VAL #endif /* Length of default value of DDT063 (Maximum 4 Byte) */ #ifndef DDT063_DEFAULT_LEN #define DDT063_DEFAULT_LEN 0 #endif /* Default value of DDT064 (DpId 8876) */ #ifndef DDT064_DEFAULT_VAL #define DDT064_DEFAULT_VAL #endif /* Length of default value of DDT064 (Maximum 4 Byte) */ #ifndef DDT064_DEFAULT_LEN #define DDT064_DEFAULT_LEN 0 #endif /* Default value of DDT065 (DpId 8877) */ #ifndef DDT065_DEFAULT_VAL #define DDT065_DEFAULT_VAL #endif /* Length of default value of DDT065 (Maximum 4 Byte) */ #ifndef DDT065_DEFAULT_LEN #define DDT065_DEFAULT_LEN 0 #endif /* Default value of DDT066 (DpId 8878) */ #ifndef DDT066_DEFAULT_VAL #define DDT066_DEFAULT_VAL #endif /* Length of default value of DDT066 (Maximum 4 Byte) */ #ifndef DDT066_DEFAULT_LEN #define DDT066_DEFAULT_LEN 0 #endif /* Default value of DDT067 (DpId 8879) */ #ifndef DDT067_DEFAULT_VAL #define DDT067_DEFAULT_VAL #endif /* Length of default value of DDT067 (Maximum 4 Byte) */ #ifndef DDT067_DEFAULT_LEN #define DDT067_DEFAULT_LEN 0 #endif /* Default value of DDT068 (DpId 8880) */ #ifndef DDT068_DEFAULT_VAL #define DDT068_DEFAULT_VAL #endif /* Length of default value of DDT068 (Maximum 4 Byte) */ #ifndef DDT068_DEFAULT_LEN #define DDT068_DEFAULT_LEN 0 #endif /* Default value of DDT069 (DpId 8881) */ #ifndef DDT069_DEFAULT_VAL #define DDT069_DEFAULT_VAL #endif /* Length of default value of DDT069 (Maximum 4 Byte) */ #ifndef DDT069_DEFAULT_LEN #define DDT069_DEFAULT_LEN 0 #endif /* Default value of DDT070 (DpId 8882) */ #ifndef DDT070_DEFAULT_VAL #define DDT070_DEFAULT_VAL #endif /* Length of default value of DDT070 (Maximum 4 Byte) */ #ifndef DDT070_DEFAULT_LEN #define DDT070_DEFAULT_LEN 0 #endif /* Default value of DDT071 (DpId 8883) */ #ifndef DDT071_DEFAULT_VAL #define DDT071_DEFAULT_VAL #endif /* Length of default value of DDT071 (Maximum 4 Byte) */ #ifndef DDT071_DEFAULT_LEN #define DDT071_DEFAULT_LEN 0 #endif /* Default value of DDT072 (DpId 8884) */ #ifndef DDT072_DEFAULT_VAL #define DDT072_DEFAULT_VAL #endif /* Length of default value of DDT072 (Maximum 4 Byte) */ #ifndef DDT072_DEFAULT_LEN #define DDT072_DEFAULT_LEN 0 #endif /* Default value of DDT073 (DpId 8885) */ #ifndef DDT073_DEFAULT_VAL #define DDT073_DEFAULT_VAL #endif /* Length of default value of DDT073 (Maximum 4 Byte) */ #ifndef DDT073_DEFAULT_LEN #define DDT073_DEFAULT_LEN 0 #endif /* Default value of DDT074 (DpId 8886) */ #ifndef DDT074_DEFAULT_VAL #define DDT074_DEFAULT_VAL #endif /* Length of default value of DDT074 (Maximum 4 Byte) */ #ifndef DDT074_DEFAULT_LEN #define DDT074_DEFAULT_LEN 0 #endif /* Default value of DDT075 (DpId 8887) */ #ifndef DDT075_DEFAULT_VAL #define DDT075_DEFAULT_VAL #endif /* Length of default value of DDT075 (Maximum 4 Byte) */ #ifndef DDT075_DEFAULT_LEN #define DDT075_DEFAULT_LEN 0 #endif /* Default value of DDT076 (DpId 8888) */ #ifndef DDT076_DEFAULT_VAL #define DDT076_DEFAULT_VAL #endif /* Length of default value of DDT076 (Maximum 4 Byte) */ #ifndef DDT076_DEFAULT_LEN #define DDT076_DEFAULT_LEN 0 #endif /* Default value of DDT077 (DpId 8889) */ #ifndef DDT077_DEFAULT_VAL #define DDT077_DEFAULT_VAL #endif /* Length of default value of DDT077 (Maximum 4 Byte) */ #ifndef DDT077_DEFAULT_LEN #define DDT077_DEFAULT_LEN 0 #endif /* Default value of DDT078 (DpId 8890) */ #ifndef DDT078_DEFAULT_VAL #define DDT078_DEFAULT_VAL #endif /* Length of default value of DDT078 (Maximum 4 Byte) */ #ifndef DDT078_DEFAULT_LEN #define DDT078_DEFAULT_LEN 0 #endif /* Default value of DDT079 (DpId 8891) */ #ifndef DDT079_DEFAULT_VAL #define DDT079_DEFAULT_VAL #endif /* Length of default value of DDT079 (Maximum 4 Byte) */ #ifndef DDT079_DEFAULT_LEN #define DDT079_DEFAULT_LEN 0 #endif /* Default value of DDT080 (DpId 8892) */ #ifndef DDT080_DEFAULT_VAL #define DDT080_DEFAULT_VAL #endif /* Length of default value of DDT080 (Maximum 4 Byte) */ #ifndef DDT080_DEFAULT_LEN #define DDT080_DEFAULT_LEN 0 #endif /* Default value of DDT081 (DpId 8893) */ #ifndef DDT081_DEFAULT_VAL #define DDT081_DEFAULT_VAL #endif /* Length of default value of DDT081 (Maximum 4 Byte) */ #ifndef DDT081_DEFAULT_LEN #define DDT081_DEFAULT_LEN 0 #endif /* Default value of DDT082 (DpId 8894) */ #ifndef DDT082_DEFAULT_VAL #define DDT082_DEFAULT_VAL #endif /* Length of default value of DDT082 (Maximum 4 Byte) */ #ifndef DDT082_DEFAULT_LEN #define DDT082_DEFAULT_LEN 0 #endif /* Default value of DDT083 (DpId 8895) */ #ifndef DDT083_DEFAULT_VAL #define DDT083_DEFAULT_VAL #endif /* Length of default value of DDT083 (Maximum 4 Byte) */ #ifndef DDT083_DEFAULT_LEN #define DDT083_DEFAULT_LEN 0 #endif /* Default value of DDT084 (DpId 8896) */ #ifndef DDT084_DEFAULT_VAL #define DDT084_DEFAULT_VAL #endif /* Length of default value of DDT084 (Maximum 4 Byte) */ #ifndef DDT084_DEFAULT_LEN #define DDT084_DEFAULT_LEN 0 #endif /* Default value of DDT085 (DpId 8897) */ #ifndef DDT085_DEFAULT_VAL #define DDT085_DEFAULT_VAL #endif /* Length of default value of DDT085 (Maximum 4 Byte) */ #ifndef DDT085_DEFAULT_LEN #define DDT085_DEFAULT_LEN 0 #endif /* Default value of DDT086 (DpId 8898) */ #ifndef DDT086_DEFAULT_VAL #define DDT086_DEFAULT_VAL #endif /* Length of default value of DDT086 (Maximum 4 Byte) */ #ifndef DDT086_DEFAULT_LEN #define DDT086_DEFAULT_LEN 0 #endif /* Default value of DDT087 (DpId 8899) */ #ifndef DDT087_DEFAULT_VAL #define DDT087_DEFAULT_VAL #endif /* Length of default value of DDT087 (Maximum 4 Byte) */ #ifndef DDT087_DEFAULT_LEN #define DDT087_DEFAULT_LEN 0 #endif /* Default value of DDT088 (DpId 8900) */ #ifndef DDT088_DEFAULT_VAL #define DDT088_DEFAULT_VAL #endif /* Length of default value of DDT088 (Maximum 4 Byte) */ #ifndef DDT088_DEFAULT_LEN #define DDT088_DEFAULT_LEN 0 #endif /* Default value of DDT089 (DpId 8901) */ #ifndef DDT089_DEFAULT_VAL #define DDT089_DEFAULT_VAL #endif /* Length of default value of DDT089 (Maximum 4 Byte) */ #ifndef DDT089_DEFAULT_LEN #define DDT089_DEFAULT_LEN 0 #endif /* Default value of DDT090 (DpId 8902) */ #ifndef DDT090_DEFAULT_VAL #define DDT090_DEFAULT_VAL #endif /* Length of default value of DDT090 (Maximum 4 Byte) */ #ifndef DDT090_DEFAULT_LEN #define DDT090_DEFAULT_LEN 0 #endif /* Default value of DDT091 (DpId 8903) */ #ifndef DDT091_DEFAULT_VAL #define DDT091_DEFAULT_VAL #endif /* Length of default value of DDT091 (Maximum 4 Byte) */ #ifndef DDT091_DEFAULT_LEN #define DDT091_DEFAULT_LEN 0 #endif /* Default value of DDT092 (DpId 8904) */ #ifndef DDT092_DEFAULT_VAL #define DDT092_DEFAULT_VAL #endif /* Length of default value of DDT092 (Maximum 4 Byte) */ #ifndef DDT092_DEFAULT_LEN #define DDT092_DEFAULT_LEN 0 #endif /* Default value of DDT093 (DpId 8905) */ #ifndef DDT093_DEFAULT_VAL #define DDT093_DEFAULT_VAL #endif /* Length of default value of DDT093 (Maximum 4 Byte) */ #ifndef DDT093_DEFAULT_LEN #define DDT093_DEFAULT_LEN 0 #endif /* Default value of DDT094 (DpId 8906) */ #ifndef DDT094_DEFAULT_VAL #define DDT094_DEFAULT_VAL #endif /* Length of default value of DDT094 (Maximum 4 Byte) */ #ifndef DDT094_DEFAULT_LEN #define DDT094_DEFAULT_LEN 0 #endif /* Default value of DDT095 (DpId 8907) */ #ifndef DDT095_DEFAULT_VAL #define DDT095_DEFAULT_VAL #endif /* Length of default value of DDT095 (Maximum 4 Byte) */ #ifndef DDT095_DEFAULT_LEN #define DDT095_DEFAULT_LEN 0 #endif /* Default value of DDT096 (DpId 8908) */ #ifndef DDT096_DEFAULT_VAL #define DDT096_DEFAULT_VAL #endif /* Length of default value of DDT096 (Maximum 4 Byte) */ #ifndef DDT096_DEFAULT_LEN #define DDT096_DEFAULT_LEN 0 #endif /* Default value of DDT097 (DpId 8909) */ #ifndef DDT097_DEFAULT_VAL #define DDT097_DEFAULT_VAL #endif /* Length of default value of DDT097 (Maximum 4 Byte) */ #ifndef DDT097_DEFAULT_LEN #define DDT097_DEFAULT_LEN 0 #endif /* Default value of DDT098 (DpId 8910) */ #ifndef DDT098_DEFAULT_VAL #define DDT098_DEFAULT_VAL #endif /* Length of default value of DDT098 (Maximum 4 Byte) */ #ifndef DDT098_DEFAULT_LEN #define DDT098_DEFAULT_LEN 0 #endif /* Default value of DDT099 (DpId 8911) */ #ifndef DDT099_DEFAULT_VAL #define DDT099_DEFAULT_VAL #endif /* Length of default value of DDT099 (Maximum 4 Byte) */ #ifndef DDT099_DEFAULT_LEN #define DDT099_DEFAULT_LEN 0 #endif /* Default value of DDT100 (DpId 8912) */ #ifndef DDT100_DEFAULT_VAL #define DDT100_DEFAULT_VAL #endif /* Length of default value of DDT100 (Maximum 4 Byte) */ #ifndef DDT100_DEFAULT_LEN #define DDT100_DEFAULT_LEN 0 #endif /* Default value of DDTDef01 (DpId 8926) */ #ifndef DDTDEF01_DEFAULT_VAL #define DDTDEF01_DEFAULT_VAL #endif /* Length of default value of DDTDef01 (Maximum 1700 Byte) */ #ifndef DDTDEF01_DEFAULT_LEN #define DDTDEF01_DEFAULT_LEN 0 #endif /* Default value of LanguagesAvailable (DpId 8933) */ #ifndef LANGUAGESAVAILABLE_DEFAULT_VAL #define LANGUAGESAVAILABLE_DEFAULT_VAL #endif /* Length of default value of LanguagesAvailable (Maximum 512 Byte) */ #ifndef LANGUAGESAVAILABLE_DEFAULT_LEN #define LANGUAGESAVAILABLE_DEFAULT_LEN 0 #endif /* Default value of CanSimReadSWVersExt (DpId 8936) */ #ifndef CANSIMREADSWVERSEXT_DEFAULT_VAL #define CANSIMREADSWVERSEXT_DEFAULT_VAL #endif /* Length of default value of CanSimReadSWVersExt (Maximum 8 Byte) */ #ifndef CANSIMREADSWVERSEXT_DEFAULT_LEN #define CANSIMREADSWVERSEXT_DEFAULT_LEN 0 #endif /* Default value of CanIo1ReadSwVersExt (DpId 8937) */ #ifndef CANIO1READSWVERSEXT_DEFAULT_VAL #define CANIO1READSWVERSEXT_DEFAULT_VAL #endif /* Length of default value of CanIo1ReadSwVersExt (Maximum 8 Byte) */ #ifndef CANIO1READSWVERSEXT_DEFAULT_LEN #define CANIO1READSWVERSEXT_DEFAULT_LEN 0 #endif /* Default value of CanIo2ReadSwVersExt (DpId 8938) */ #ifndef CANIO2READSWVERSEXT_DEFAULT_VAL #define CANIO2READSWVERSEXT_DEFAULT_VAL #endif /* Length of default value of CanIo2ReadSwVersExt (Maximum 8 Byte) */ #ifndef CANIO2READSWVERSEXT_DEFAULT_LEN #define CANIO2READSWVERSEXT_DEFAULT_LEN 0 #endif /* Default value of CanPscReadSWVersExt (DpId 8939) */ #ifndef CANPSCREADSWVERSEXT_DEFAULT_VAL #define CANPSCREADSWVERSEXT_DEFAULT_VAL #endif /* Length of default value of CanPscReadSWVersExt (Maximum 8 Byte) */ #ifndef CANPSCREADSWVERSEXT_DEFAULT_LEN #define CANPSCREADSWVERSEXT_DEFAULT_LEN 0 #endif /* Default value of RemoteUpdateStatus (DpId 8941) */ #ifndef REMOTEUPDATESTATUS_DEFAULT_VAL #define REMOTEUPDATESTATUS_DEFAULT_VAL #endif /* Length of default value of RemoteUpdateStatus (Maximum 8 Byte) */ #ifndef REMOTEUPDATESTATUS_DEFAULT_LEN #define REMOTEUPDATESTATUS_DEFAULT_LEN 0 #endif /* Default value of WlanAccessPointIP (DpId 8997) */ #ifndef WLANACCESSPOINTIP_DEFAULT_VAL #define WLANACCESSPOINTIP_DEFAULT_VAL #endif /* Length of default value of WlanAccessPointIP (Maximum 4 Byte) */ #ifndef WLANACCESSPOINTIP_DEFAULT_LEN #define WLANACCESSPOINTIP_DEFAULT_LEN 0 #endif /* Default value of WlanIPRangeLow (DpId 8998) */ #ifndef WLANIPRANGELOW_DEFAULT_VAL #define WLANIPRANGELOW_DEFAULT_VAL #endif /* Length of default value of WlanIPRangeLow (Maximum 4 Byte) */ #ifndef WLANIPRANGELOW_DEFAULT_LEN #define WLANIPRANGELOW_DEFAULT_LEN 0 #endif /* Default value of WlanIPRangeHigh (DpId 8999) */ #ifndef WLANIPRANGEHIGH_DEFAULT_VAL #define WLANIPRANGEHIGH_DEFAULT_VAL #endif /* Length of default value of WlanIPRangeHigh (Maximum 4 Byte) */ #ifndef WLANIPRANGEHIGH_DEFAULT_LEN #define WLANIPRANGEHIGH_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPAddr1 (DpId 9000) */ #ifndef WLANCLIENTIPADDR1_DEFAULT_VAL #define WLANCLIENTIPADDR1_DEFAULT_VAL #endif /* Length of default value of WlanClientIPAddr1 (Maximum 4 Byte) */ #ifndef WLANCLIENTIPADDR1_DEFAULT_LEN #define WLANCLIENTIPADDR1_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPAddr2 (DpId 9001) */ #ifndef WLANCLIENTIPADDR2_DEFAULT_VAL #define WLANCLIENTIPADDR2_DEFAULT_VAL #endif /* Length of default value of WlanClientIPAddr2 (Maximum 4 Byte) */ #ifndef WLANCLIENTIPADDR2_DEFAULT_LEN #define WLANCLIENTIPADDR2_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPAddr3 (DpId 9002) */ #ifndef WLANCLIENTIPADDR3_DEFAULT_VAL #define WLANCLIENTIPADDR3_DEFAULT_VAL #endif /* Length of default value of WlanClientIPAddr3 (Maximum 4 Byte) */ #ifndef WLANCLIENTIPADDR3_DEFAULT_LEN #define WLANCLIENTIPADDR3_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPAddr4 (DpId 9003) */ #ifndef WLANCLIENTIPADDR4_DEFAULT_VAL #define WLANCLIENTIPADDR4_DEFAULT_VAL #endif /* Length of default value of WlanClientIPAddr4 (Maximum 4 Byte) */ #ifndef WLANCLIENTIPADDR4_DEFAULT_LEN #define WLANCLIENTIPADDR4_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPAddr5 (DpId 9004) */ #ifndef WLANCLIENTIPADDR5_DEFAULT_VAL #define WLANCLIENTIPADDR5_DEFAULT_VAL #endif /* Length of default value of WlanClientIPAddr5 (Maximum 4 Byte) */ #ifndef WLANCLIENTIPADDR5_DEFAULT_LEN #define WLANCLIENTIPADDR5_DEFAULT_LEN 0 #endif /* Default value of G12_LanIPAddr (DpId 9061) */ #ifndef G12_LANIPADDR_DEFAULT_VAL #define G12_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G12_LanIPAddr (Maximum 4 Byte) */ #ifndef G12_LANIPADDR_DEFAULT_LEN #define G12_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G12_LanSubnetMask (DpId 9062) */ #ifndef G12_LANSUBNETMASK_DEFAULT_VAL #define G12_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G12_LanSubnetMask (Maximum 4 Byte) */ #ifndef G12_LANSUBNETMASK_DEFAULT_LEN #define G12_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G12_LanDefaultGateway (DpId 9063) */ #ifndef G12_LANDEFAULTGATEWAY_DEFAULT_VAL #define G12_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G12_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G12_LANDEFAULTGATEWAY_DEFAULT_LEN #define G12_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G12_LanIPv6Addr (DpId 9108) */ #ifndef G12_LANIPV6ADDR_DEFAULT_VAL #define G12_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G12_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G12_LANIPV6ADDR_DEFAULT_LEN #define G12_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G12_LanIPv6DefaultGateway (DpId 9110) */ #ifndef G12_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G12_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G12_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G12_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G12_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G12_IpAddrStatus (DpId 9231) */ #ifndef G12_IPADDRSTATUS_DEFAULT_VAL #define G12_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G12_IpAddrStatus (Maximum 4 Byte) */ #ifndef G12_IPADDRSTATUS_DEFAULT_LEN #define G12_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G12_SubnetMaskStatus (DpId 9232) */ #ifndef G12_SUBNETMASKSTATUS_DEFAULT_VAL #define G12_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G12_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G12_SUBNETMASKSTATUS_DEFAULT_LEN #define G12_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G12_DefaultGatewayStatus (DpId 9233) */ #ifndef G12_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G12_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G12_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G12_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G12_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G12_Ipv6AddrStatus (DpId 9241) */ #ifndef G12_IPV6ADDRSTATUS_DEFAULT_VAL #define G12_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G12_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G12_IPV6ADDRSTATUS_DEFAULT_LEN #define G12_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G12_Ipv6DefaultGatewayStatus (DpId 9243) */ #ifndef G12_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G12_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G12_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G12_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G12_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G13_IpAddrStatus (DpId 9311) */ #ifndef G13_IPADDRSTATUS_DEFAULT_VAL #define G13_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G13_IpAddrStatus (Maximum 4 Byte) */ #ifndef G13_IPADDRSTATUS_DEFAULT_LEN #define G13_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G13_SubnetMaskStatus (DpId 9312) */ #ifndef G13_SUBNETMASKSTATUS_DEFAULT_VAL #define G13_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G13_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G13_SUBNETMASKSTATUS_DEFAULT_LEN #define G13_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G13_DefaultGatewayStatus (DpId 9313) */ #ifndef G13_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G13_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G13_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G13_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G13_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G13_Ipv6AddrStatus (DpId 9321) */ #ifndef G13_IPV6ADDRSTATUS_DEFAULT_VAL #define G13_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G13_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G13_IPV6ADDRSTATUS_DEFAULT_LEN #define G13_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G13_Ipv6DefaultGatewayStatus (DpId 9323) */ #ifndef G13_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G13_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G13_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G13_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G13_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G13_LanIPAddr (DpId 9501) */ #ifndef G13_LANIPADDR_DEFAULT_VAL #define G13_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G13_LanIPAddr (Maximum 4 Byte) */ #ifndef G13_LANIPADDR_DEFAULT_LEN #define G13_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G13_LanSubnetMask (DpId 9502) */ #ifndef G13_LANSUBNETMASK_DEFAULT_VAL #define G13_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G13_LanSubnetMask (Maximum 4 Byte) */ #ifndef G13_LANSUBNETMASK_DEFAULT_LEN #define G13_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G13_LanDefaultGateway (DpId 9503) */ #ifndef G13_LANDEFAULTGATEWAY_DEFAULT_VAL #define G13_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G13_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G13_LANDEFAULTGATEWAY_DEFAULT_LEN #define G13_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G13_LanIPv6Addr (DpId 9548) */ #ifndef G13_LANIPV6ADDR_DEFAULT_VAL #define G13_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G13_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G13_LANIPV6ADDR_DEFAULT_LEN #define G13_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G13_LanIPv6DefaultGateway (DpId 9550) */ #ifndef G13_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G13_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G13_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G13_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G13_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr11 (DpId 9707) */ #ifndef S61850GSESUBSCR11_DEFAULT_VAL #define S61850GSESUBSCR11_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr11 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR11_DEFAULT_LEN #define S61850GSESUBSCR11_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr12 (DpId 9708) */ #ifndef S61850GSESUBSCR12_DEFAULT_VAL #define S61850GSESUBSCR12_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr12 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR12_DEFAULT_LEN #define S61850GSESUBSCR12_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr13 (DpId 9709) */ #ifndef S61850GSESUBSCR13_DEFAULT_VAL #define S61850GSESUBSCR13_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr13 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR13_DEFAULT_LEN #define S61850GSESUBSCR13_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr14 (DpId 9710) */ #ifndef S61850GSESUBSCR14_DEFAULT_VAL #define S61850GSESUBSCR14_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr14 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR14_DEFAULT_LEN #define S61850GSESUBSCR14_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr15 (DpId 9711) */ #ifndef S61850GSESUBSCR15_DEFAULT_VAL #define S61850GSESUBSCR15_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr15 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR15_DEFAULT_LEN #define S61850GSESUBSCR15_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr16 (DpId 9712) */ #ifndef S61850GSESUBSCR16_DEFAULT_VAL #define S61850GSESUBSCR16_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr16 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR16_DEFAULT_LEN #define S61850GSESUBSCR16_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr17 (DpId 9713) */ #ifndef S61850GSESUBSCR17_DEFAULT_VAL #define S61850GSESUBSCR17_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr17 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR17_DEFAULT_LEN #define S61850GSESUBSCR17_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr18 (DpId 9714) */ #ifndef S61850GSESUBSCR18_DEFAULT_VAL #define S61850GSESUBSCR18_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr18 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR18_DEFAULT_LEN #define S61850GSESUBSCR18_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr19 (DpId 9715) */ #ifndef S61850GSESUBSCR19_DEFAULT_VAL #define S61850GSESUBSCR19_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr19 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR19_DEFAULT_LEN #define S61850GSESUBSCR19_DEFAULT_LEN 0 #endif /* Default value of s61850GseSubscr20 (DpId 9716) */ #ifndef S61850GSESUBSCR20_DEFAULT_VAL #define S61850GSESUBSCR20_DEFAULT_VAL #endif /* Length of default value of s61850GseSubscr20 (Maximum 3072 Byte) */ #ifndef S61850GSESUBSCR20_DEFAULT_LEN #define S61850GSESUBSCR20_DEFAULT_LEN 0 #endif /* Default value of WlanAPSubnetMask (DpId 9720) */ #ifndef WLANAPSUBNETMASK_DEFAULT_VAL #define WLANAPSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of WlanAPSubnetMask (Maximum 4 Byte) */ #ifndef WLANAPSUBNETMASK_DEFAULT_LEN #define WLANAPSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of OpenReqA (DpId 9725) */ #ifndef OPENREQA_DEFAULT_VAL #define OPENREQA_DEFAULT_VAL #endif /* Length of default value of OpenReqA (Maximum 40 Byte) */ #ifndef OPENREQA_DEFAULT_LEN #define OPENREQA_DEFAULT_LEN 0 #endif /* Default value of OpenReqB (DpId 9726) */ #ifndef OPENREQB_DEFAULT_VAL #define OPENREQB_DEFAULT_VAL #endif /* Length of default value of OpenReqB (Maximum 40 Byte) */ #ifndef OPENREQB_DEFAULT_LEN #define OPENREQB_DEFAULT_LEN 0 #endif /* Default value of OpenReqC (DpId 9727) */ #ifndef OPENREQC_DEFAULT_VAL #define OPENREQC_DEFAULT_VAL #endif /* Length of default value of OpenReqC (Maximum 40 Byte) */ #ifndef OPENREQC_DEFAULT_LEN #define OPENREQC_DEFAULT_LEN 0 #endif /* Default value of CoLogOpen (DpId 9728) */ #ifndef COLOGOPEN_DEFAULT_VAL #define COLOGOPEN_DEFAULT_VAL #endif /* Length of default value of CoLogOpen (Maximum 40 Byte) */ #ifndef COLOGOPEN_DEFAULT_LEN #define COLOGOPEN_DEFAULT_LEN 0 #endif /* Default value of UsbDiscUpdateDirFiles1024 (DpId 10566) */ #ifndef USBDISCUPDATEDIRFILES1024_DEFAULT_VAL #define USBDISCUPDATEDIRFILES1024_DEFAULT_VAL #endif /* Length of default value of UsbDiscUpdateDirFiles1024 (Maximum 1024 Byte) */ #ifndef USBDISCUPDATEDIRFILES1024_DEFAULT_LEN #define USBDISCUPDATEDIRFILES1024_DEFAULT_LEN 0 #endif /* Default value of UsbDiscUpdateVersions1024 (DpId 10567) */ #ifndef USBDISCUPDATEVERSIONS1024_DEFAULT_VAL #define USBDISCUPDATEVERSIONS1024_DEFAULT_VAL #endif /* Length of default value of UsbDiscUpdateVersions1024 (Maximum 1024 Byte) */ #ifndef USBDISCUPDATEVERSIONS1024_DEFAULT_LEN #define USBDISCUPDATEVERSIONS1024_DEFAULT_LEN 0 #endif /* Default value of UsbDiscInstallVersions1024 (DpId 10568) */ #ifndef USBDISCINSTALLVERSIONS1024_DEFAULT_VAL #define USBDISCINSTALLVERSIONS1024_DEFAULT_VAL #endif /* Length of default value of UsbDiscInstallVersions1024 (Maximum 1024 Byte) */ #ifndef USBDISCINSTALLVERSIONS1024_DEFAULT_LEN #define USBDISCINSTALLVERSIONS1024_DEFAULT_LEN 0 #endif /* Default value of AlertDisplayNames (DpId 10689) */ #ifndef ALERTDISPLAYNAMES_DEFAULT_VAL #define ALERTDISPLAYNAMES_DEFAULT_VAL #endif /* Length of default value of AlertDisplayNames (Maximum 1024 Byte) */ #ifndef ALERTDISPLAYNAMES_DEFAULT_LEN #define ALERTDISPLAYNAMES_DEFAULT_LEN 0 #endif /* Default value of AlertDisplayDatapoints (DpId 10745) */ #ifndef ALERTDISPLAYDATAPOINTS_DEFAULT_VAL #define ALERTDISPLAYDATAPOINTS_DEFAULT_VAL #endif /* Length of default value of AlertDisplayDatapoints (Maximum 202 Byte) */ #ifndef ALERTDISPLAYDATAPOINTS_DEFAULT_LEN #define ALERTDISPLAYDATAPOINTS_DEFAULT_LEN 0 #endif /* Default value of CanPscActiveApplicationDetails (DpId 10788) */ #ifndef CANPSCACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #define CANPSCACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #endif /* Length of default value of CanPscActiveApplicationDetails (Maximum 8 Byte) */ #ifndef CANPSCACTIVEAPPLICATIONDETAILS_DEFAULT_LEN #define CANPSCACTIVEAPPLICATIONDETAILS_DEFAULT_LEN 0 #endif /* Default value of CanSimActiveApplicationDetails (DpId 10789) */ #ifndef CANSIMACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #define CANSIMACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #endif /* Length of default value of CanSimActiveApplicationDetails (Maximum 8 Byte) */ #ifndef CANSIMACTIVEAPPLICATIONDETAILS_DEFAULT_LEN #define CANSIMACTIVEAPPLICATIONDETAILS_DEFAULT_LEN 0 #endif /* Default value of CanGpioActiveApplicationDetails (DpId 10790) */ #ifndef CANGPIOACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #define CANGPIOACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #endif /* Length of default value of CanGpioActiveApplicationDetails (Maximum 8 Byte) */ #ifndef CANGPIOACTIVEAPPLICATIONDETAILS_DEFAULT_LEN #define CANGPIOACTIVEAPPLICATIONDETAILS_DEFAULT_LEN 0 #endif /* Default value of CanPscInactiveApplicationDetails (DpId 10791) */ #ifndef CANPSCINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #define CANPSCINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #endif /* Length of default value of CanPscInactiveApplicationDetails (Maximum 8 Byte) */ #ifndef CANPSCINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN #define CANPSCINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN 0 #endif /* Default value of CanSimInactiveApplicationDetails (DpId 10792) */ #ifndef CANSIMINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #define CANSIMINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #endif /* Length of default value of CanSimInactiveApplicationDetails (Maximum 8 Byte) */ #ifndef CANSIMINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN #define CANSIMINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN 0 #endif /* Default value of CanGpioInactiveApplicationDetails (DpId 10793) */ #ifndef CANGPIOINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #define CANGPIOINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL #endif /* Length of default value of CanGpioInactiveApplicationDetails (Maximum 8 Byte) */ #ifndef CANGPIOINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN #define CANGPIOINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN 0 #endif /* Default value of DiagCounter1 (DpId 10810) */ #ifndef DIAGCOUNTER1_DEFAULT_VAL #define DIAGCOUNTER1_DEFAULT_VAL #endif /* Length of default value of DiagCounter1 (Maximum 2048 Byte) */ #ifndef DIAGCOUNTER1_DEFAULT_LEN #define DIAGCOUNTER1_DEFAULT_LEN 0 #endif /* Default value of SNTPServIpAddr1 (DpId 10817) */ #ifndef SNTPSERVIPADDR1_DEFAULT_VAL #define SNTPSERVIPADDR1_DEFAULT_VAL #endif /* Length of default value of SNTPServIpAddr1 (Maximum 4 Byte) */ #ifndef SNTPSERVIPADDR1_DEFAULT_LEN #define SNTPSERVIPADDR1_DEFAULT_LEN 0 #endif /* Default value of SNTPServIpAddr2 (DpId 10818) */ #ifndef SNTPSERVIPADDR2_DEFAULT_VAL #define SNTPSERVIPADDR2_DEFAULT_VAL #endif /* Length of default value of SNTPServIpAddr2 (Maximum 4 Byte) */ #ifndef SNTPSERVIPADDR2_DEFAULT_LEN #define SNTPSERVIPADDR2_DEFAULT_LEN 0 #endif /* Default value of SNTPServIpv6Addr1 (DpId 10841) */ #ifndef SNTPSERVIPV6ADDR1_DEFAULT_VAL #define SNTPSERVIPV6ADDR1_DEFAULT_VAL #endif /* Length of default value of SNTPServIpv6Addr1 (Maximum 16 Byte) */ #ifndef SNTPSERVIPV6ADDR1_DEFAULT_LEN #define SNTPSERVIPV6ADDR1_DEFAULT_LEN 0 #endif /* Default value of SNTPServIpv6Addr2 (DpId 10842) */ #ifndef SNTPSERVIPV6ADDR2_DEFAULT_VAL #define SNTPSERVIPV6ADDR2_DEFAULT_VAL #endif /* Length of default value of SNTPServIpv6Addr2 (Maximum 16 Byte) */ #ifndef SNTPSERVIPV6ADDR2_DEFAULT_LEN #define SNTPSERVIPV6ADDR2_DEFAULT_LEN 0 #endif /* Default value of ScadaDnp3Ipv6MasterAddr (DpId 10845) */ #ifndef SCADADNP3IPV6MASTERADDR_DEFAULT_VAL #define SCADADNP3IPV6MASTERADDR_DEFAULT_VAL #endif /* Length of default value of ScadaDnp3Ipv6MasterAddr (Maximum 16 Byte) */ #ifndef SCADADNP3IPV6MASTERADDR_DEFAULT_LEN #define SCADADNP3IPV6MASTERADDR_DEFAULT_LEN 0 #endif /* Default value of ScadaDnp3Ipv6UnathIpAddr (DpId 10847) */ #ifndef SCADADNP3IPV6UNATHIPADDR_DEFAULT_VAL #define SCADADNP3IPV6UNATHIPADDR_DEFAULT_VAL #endif /* Length of default value of ScadaDnp3Ipv6UnathIpAddr (Maximum 16 Byte) */ #ifndef SCADADNP3IPV6UNATHIPADDR_DEFAULT_LEN #define SCADADNP3IPV6UNATHIPADDR_DEFAULT_LEN 0 #endif /* Default value of ScadaT10BIpv6MasterAddr (DpId 10849) */ #ifndef SCADAT10BIPV6MASTERADDR_DEFAULT_VAL #define SCADAT10BIPV6MASTERADDR_DEFAULT_VAL #endif /* Length of default value of ScadaT10BIpv6MasterAddr (Maximum 16 Byte) */ #ifndef SCADAT10BIPV6MASTERADDR_DEFAULT_LEN #define SCADAT10BIPV6MASTERADDR_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpv6Addr1 (DpId 10852) */ #ifndef S61850CLIENTIPV6ADDR1_DEFAULT_VAL #define S61850CLIENTIPV6ADDR1_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpv6Addr1 (Maximum 16 Byte) */ #ifndef S61850CLIENTIPV6ADDR1_DEFAULT_LEN #define S61850CLIENTIPV6ADDR1_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpv6Addr2 (DpId 10853) */ #ifndef S61850CLIENTIPV6ADDR2_DEFAULT_VAL #define S61850CLIENTIPV6ADDR2_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpv6Addr2 (Maximum 16 Byte) */ #ifndef S61850CLIENTIPV6ADDR2_DEFAULT_LEN #define S61850CLIENTIPV6ADDR2_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpv6Addr3 (DpId 10856) */ #ifndef S61850CLIENTIPV6ADDR3_DEFAULT_VAL #define S61850CLIENTIPV6ADDR3_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpv6Addr3 (Maximum 16 Byte) */ #ifndef S61850CLIENTIPV6ADDR3_DEFAULT_LEN #define S61850CLIENTIPV6ADDR3_DEFAULT_LEN 0 #endif /* Default value of s61850ClientIpv6Addr4 (DpId 10857) */ #ifndef S61850CLIENTIPV6ADDR4_DEFAULT_VAL #define S61850CLIENTIPV6ADDR4_DEFAULT_VAL #endif /* Length of default value of s61850ClientIpv6Addr4 (Maximum 16 Byte) */ #ifndef S61850CLIENTIPV6ADDR4_DEFAULT_LEN #define S61850CLIENTIPV6ADDR4_DEFAULT_LEN 0 #endif /* Default value of p2pRemoteLanIpv6Addr (DpId 10860) */ #ifndef P2PREMOTELANIPV6ADDR_DEFAULT_VAL #define P2PREMOTELANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of p2pRemoteLanIpv6Addr (Maximum 16 Byte) */ #ifndef P2PREMOTELANIPV6ADDR_DEFAULT_LEN #define P2PREMOTELANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of WlanAccessPointIPv6 (DpId 10863) */ #ifndef WLANACCESSPOINTIPV6_DEFAULT_VAL #define WLANACCESSPOINTIPV6_DEFAULT_VAL #endif /* Length of default value of WlanAccessPointIPv6 (Maximum 16 Byte) */ #ifndef WLANACCESSPOINTIPV6_DEFAULT_LEN #define WLANACCESSPOINTIPV6_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPv6Addr1 (DpId 10867) */ #ifndef WLANCLIENTIPV6ADDR1_DEFAULT_VAL #define WLANCLIENTIPV6ADDR1_DEFAULT_VAL #endif /* Length of default value of WlanClientIPv6Addr1 (Maximum 16 Byte) */ #ifndef WLANCLIENTIPV6ADDR1_DEFAULT_LEN #define WLANCLIENTIPV6ADDR1_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPv6Addr2 (DpId 10868) */ #ifndef WLANCLIENTIPV6ADDR2_DEFAULT_VAL #define WLANCLIENTIPV6ADDR2_DEFAULT_VAL #endif /* Length of default value of WlanClientIPv6Addr2 (Maximum 16 Byte) */ #ifndef WLANCLIENTIPV6ADDR2_DEFAULT_LEN #define WLANCLIENTIPV6ADDR2_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPv6Addr3 (DpId 10869) */ #ifndef WLANCLIENTIPV6ADDR3_DEFAULT_VAL #define WLANCLIENTIPV6ADDR3_DEFAULT_VAL #endif /* Length of default value of WlanClientIPv6Addr3 (Maximum 16 Byte) */ #ifndef WLANCLIENTIPV6ADDR3_DEFAULT_LEN #define WLANCLIENTIPV6ADDR3_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPv6Addr4 (DpId 10870) */ #ifndef WLANCLIENTIPV6ADDR4_DEFAULT_VAL #define WLANCLIENTIPV6ADDR4_DEFAULT_VAL #endif /* Length of default value of WlanClientIPv6Addr4 (Maximum 16 Byte) */ #ifndef WLANCLIENTIPV6ADDR4_DEFAULT_LEN #define WLANCLIENTIPV6ADDR4_DEFAULT_LEN 0 #endif /* Default value of WlanClientIPv6Addr5 (DpId 10871) */ #ifndef WLANCLIENTIPV6ADDR5_DEFAULT_VAL #define WLANCLIENTIPV6ADDR5_DEFAULT_VAL #endif /* Length of default value of WlanClientIPv6Addr5 (Maximum 16 Byte) */ #ifndef WLANCLIENTIPV6ADDR5_DEFAULT_LEN #define WLANCLIENTIPV6ADDR5_DEFAULT_LEN 0 #endif /* Default value of G14_IpAddrStatus (DpId 10980) */ #ifndef G14_IPADDRSTATUS_DEFAULT_VAL #define G14_IPADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G14_IpAddrStatus (Maximum 4 Byte) */ #ifndef G14_IPADDRSTATUS_DEFAULT_LEN #define G14_IPADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G14_SubnetMaskStatus (DpId 10981) */ #ifndef G14_SUBNETMASKSTATUS_DEFAULT_VAL #define G14_SUBNETMASKSTATUS_DEFAULT_VAL #endif /* Length of default value of G14_SubnetMaskStatus (Maximum 4 Byte) */ #ifndef G14_SUBNETMASKSTATUS_DEFAULT_LEN #define G14_SUBNETMASKSTATUS_DEFAULT_LEN 0 #endif /* Default value of G14_DefaultGatewayStatus (DpId 10982) */ #ifndef G14_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G14_DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G14_DefaultGatewayStatus (Maximum 4 Byte) */ #ifndef G14_DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G14_DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G14_Ipv6AddrStatus (DpId 10990) */ #ifndef G14_IPV6ADDRSTATUS_DEFAULT_VAL #define G14_IPV6ADDRSTATUS_DEFAULT_VAL #endif /* Length of default value of G14_Ipv6AddrStatus (Maximum 16 Byte) */ #ifndef G14_IPV6ADDRSTATUS_DEFAULT_LEN #define G14_IPV6ADDRSTATUS_DEFAULT_LEN 0 #endif /* Default value of G14_Ipv6DefaultGatewayStatus (DpId 10992) */ #ifndef G14_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #define G14_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL #endif /* Length of default value of G14_Ipv6DefaultGatewayStatus (Maximum 16 Byte) */ #ifndef G14_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN #define G14_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN 0 #endif /* Default value of G14_LanIPAddr (DpId 11130) */ #ifndef G14_LANIPADDR_DEFAULT_VAL #define G14_LANIPADDR_DEFAULT_VAL #endif /* Length of default value of G14_LanIPAddr (Maximum 4 Byte) */ #ifndef G14_LANIPADDR_DEFAULT_LEN #define G14_LANIPADDR_DEFAULT_LEN 0 #endif /* Default value of G14_LanSubnetMask (DpId 11131) */ #ifndef G14_LANSUBNETMASK_DEFAULT_VAL #define G14_LANSUBNETMASK_DEFAULT_VAL #endif /* Length of default value of G14_LanSubnetMask (Maximum 4 Byte) */ #ifndef G14_LANSUBNETMASK_DEFAULT_LEN #define G14_LANSUBNETMASK_DEFAULT_LEN 0 #endif /* Default value of G14_LanDefaultGateway (DpId 11132) */ #ifndef G14_LANDEFAULTGATEWAY_DEFAULT_VAL #define G14_LANDEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G14_LanDefaultGateway (Maximum 4 Byte) */ #ifndef G14_LANDEFAULTGATEWAY_DEFAULT_LEN #define G14_LANDEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of G14_LanIPv6Addr (DpId 11177) */ #ifndef G14_LANIPV6ADDR_DEFAULT_VAL #define G14_LANIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G14_LanIPv6Addr (Maximum 16 Byte) */ #ifndef G14_LANIPV6ADDR_DEFAULT_LEN #define G14_LANIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G14_LanIPv6DefaultGateway (DpId 11179) */ #ifndef G14_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #define G14_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL #endif /* Length of default value of G14_LanIPv6DefaultGateway (Maximum 16 Byte) */ #ifndef G14_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN #define G14_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN 0 #endif /* Default value of LogHrm64 (DpId 11289) */ #ifndef LOGHRM64_DEFAULT_VAL #define LOGHRM64_DEFAULT_VAL #endif /* Length of default value of LogHrm64 (Maximum 512 Byte) */ #ifndef LOGHRM64_DEFAULT_LEN #define LOGHRM64_DEFAULT_LEN 0 #endif /* Default value of PMUDataSetDef (DpId 11333) */ #ifndef PMUDATASETDEF_DEFAULT_VAL #define PMUDATASETDEF_DEFAULT_VAL #endif /* Length of default value of PMUDataSetDef (Maximum 3072 Byte) */ #ifndef PMUDATASETDEF_DEFAULT_LEN #define PMUDATASETDEF_DEFAULT_LEN 0 #endif /* Default value of PMUIPAddrPDC (DpId 11337) */ #ifndef PMUIPADDRPDC_DEFAULT_VAL #define PMUIPADDRPDC_DEFAULT_VAL #endif /* Length of default value of PMUIPAddrPDC (Maximum 4 Byte) */ #ifndef PMUIPADDRPDC_DEFAULT_LEN #define PMUIPADDRPDC_DEFAULT_LEN 0 #endif /* Default value of PMUIP6AddrPDC (DpId 11338) */ #ifndef PMUIP6ADDRPDC_DEFAULT_VAL #define PMUIP6ADDRPDC_DEFAULT_VAL #endif /* Length of default value of PMUIP6AddrPDC (Maximum 16 Byte) */ #ifndef PMUIP6ADDRPDC_DEFAULT_LEN #define PMUIP6ADDRPDC_DEFAULT_LEN 0 #endif /* Default value of PMU_Timestamp (DpId 11374) */ #ifndef PMU_TIMESTAMP_DEFAULT_VAL #define PMU_TIMESTAMP_DEFAULT_VAL #endif /* Length of default value of PMU_Timestamp (Maximum 8 Byte) */ #ifndef PMU_TIMESTAMP_DEFAULT_LEN #define PMU_TIMESTAMP_DEFAULT_LEN 0 #endif /* Default value of USBL_IPAddr (DpId 11375) */ #ifndef USBL_IPADDR_DEFAULT_VAL #define USBL_IPADDR_DEFAULT_VAL #endif /* Length of default value of USBL_IPAddr (Maximum 4 Byte) */ #ifndef USBL_IPADDR_DEFAULT_LEN #define USBL_IPADDR_DEFAULT_LEN 0 #endif /* Default value of USBL_IPAddrV6 (DpId 11379) */ #ifndef USBL_IPADDRV6_DEFAULT_VAL #define USBL_IPADDRV6_DEFAULT_VAL #endif /* Length of default value of USBL_IPAddrV6 (Maximum 16 Byte) */ #ifndef USBL_IPADDRV6_DEFAULT_LEN #define USBL_IPADDRV6_DEFAULT_LEN 0 #endif /* Default value of CanSimSetTimeStamp (DpId 11398) */ #ifndef CANSIMSETTIMESTAMP_DEFAULT_VAL #define CANSIMSETTIMESTAMP_DEFAULT_VAL #endif /* Length of default value of CanSimSetTimeStamp (Maximum 8 Byte) */ #ifndef CANSIMSETTIMESTAMP_DEFAULT_LEN #define CANSIMSETTIMESTAMP_DEFAULT_LEN 0 #endif /* Default value of G1_ScadaT10BRGMasterIPv4Addr (DpId 11444) */ #ifndef G1_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #define G1_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G1_ScadaT10BRGMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G1_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN #define G1_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G1_ScadaT10BRGMasterIPv6Addr (DpId 11445) */ #ifndef G1_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #define G1_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G1_ScadaT10BRGMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G1_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN #define G1_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G1_ScadaT10BRGStatusMasterIPv4Addr (DpId 11449) */ #ifndef G1_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #define G1_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G1_ScadaT10BRGStatusMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G1_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN #define G1_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G1_ScadaT10BRGStatusMasterIPv6Addr (DpId 11450) */ #ifndef G1_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #define G1_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G1_ScadaT10BRGStatusMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G1_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN #define G1_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G2_ScadaT10BRGMasterIPv4Addr (DpId 11469) */ #ifndef G2_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #define G2_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G2_ScadaT10BRGMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G2_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN #define G2_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G2_ScadaT10BRGMasterIPv6Addr (DpId 11470) */ #ifndef G2_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #define G2_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G2_ScadaT10BRGMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G2_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN #define G2_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G2_ScadaT10BRGStatusMasterIPv4Addr (DpId 11474) */ #ifndef G2_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #define G2_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G2_ScadaT10BRGStatusMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G2_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN #define G2_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G2_ScadaT10BRGStatusMasterIPv6Addr (DpId 11475) */ #ifndef G2_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #define G2_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G2_ScadaT10BRGStatusMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G2_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN #define G2_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G3_ScadaT10BRGMasterIPv4Addr (DpId 11494) */ #ifndef G3_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #define G3_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G3_ScadaT10BRGMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G3_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN #define G3_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G3_ScadaT10BRGMasterIPv6Addr (DpId 11495) */ #ifndef G3_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #define G3_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G3_ScadaT10BRGMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G3_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN #define G3_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G3_ScadaT10BRGStatusMasterIPv4Addr (DpId 11499) */ #ifndef G3_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #define G3_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G3_ScadaT10BRGStatusMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G3_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN #define G3_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G3_ScadaT10BRGStatusMasterIPv6Addr (DpId 11500) */ #ifndef G3_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #define G3_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G3_ScadaT10BRGStatusMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G3_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN #define G3_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G4_ScadaT10BRGMasterIPv4Addr (DpId 11519) */ #ifndef G4_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #define G4_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G4_ScadaT10BRGMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G4_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN #define G4_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G4_ScadaT10BRGMasterIPv6Addr (DpId 11520) */ #ifndef G4_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #define G4_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G4_ScadaT10BRGMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G4_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN #define G4_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of G4_ScadaT10BRGStatusMasterIPv4Addr (DpId 11524) */ #ifndef G4_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #define G4_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL #endif /* Length of default value of G4_ScadaT10BRGStatusMasterIPv4Addr (Maximum 4 Byte) */ #ifndef G4_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN #define G4_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN 0 #endif /* Default value of G4_ScadaT10BRGStatusMasterIPv6Addr (DpId 11525) */ #ifndef G4_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #define G4_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL #endif /* Length of default value of G4_ScadaT10BRGStatusMasterIPv6Addr (Maximum 16 Byte) */ #ifndef G4_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN #define G4_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN 0 #endif /* Default value of SmpTicks2 (DpId 11676) */ #ifndef SMPTICKS2_DEFAULT_VAL #define SMPTICKS2_DEFAULT_VAL #endif /* Length of default value of SmpTicks2 (Maximum 256 Byte) */ #ifndef SMPTICKS2_DEFAULT_LEN #define SMPTICKS2_DEFAULT_LEN 0 #endif /**The default value definitions for all struct datapoints * Arguments: name, value, length * name The datapoint name * value The default datapoint value * length The default datapoint value length */ #define DB_DEFAULT_STRUCT_VALUES \ \ DB_DEFAULT_STRUCT_VALUE( LoadProfNotice, { LOADPROFNOTICE_DEFAULT_VAL }, LOADPROFNOTICE_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( HmiErrMsgFull, { HMIERRMSGFULL_DEFAULT_VAL }, HMIERRMSGFULL_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( HmiPasswordUser, { HMIPASSWORDUSER_DEFAULT_VAL }, HMIPASSWORDUSER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_OC1F_TccUD, { G1_OC1F_TCCUD_DEFAULT_VAL }, G1_OC1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_OC2F_TccUD, { G1_OC2F_TCCUD_DEFAULT_VAL }, G1_OC2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_OC1R_TccUD, { G1_OC1R_TCCUD_DEFAULT_VAL }, G1_OC1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_OC2R_TccUD, { G1_OC2R_TCCUD_DEFAULT_VAL }, G1_OC2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_EF1F_TccUD, { G1_EF1F_TCCUD_DEFAULT_VAL }, G1_EF1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_EF2F_TccUD, { G1_EF2F_TCCUD_DEFAULT_VAL }, G1_EF2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_EF1R_TccUD, { G1_EF1R_TCCUD_DEFAULT_VAL }, G1_EF1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_EF2R_TccUD, { G1_EF2R_TCCUD_DEFAULT_VAL }, G1_EF2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BSingleInfoInputs, { SCADAT10BSINGLEINFOINPUTS_DEFAULT_VAL }, SCADAT10BSINGLEINFOINPUTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BDoubleInfoInputs, { SCADAT10BDOUBLEINFOINPUTS_DEFAULT_VAL }, SCADAT10BDOUBLEINFOINPUTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BSingleCmndOutputs, { SCADAT10BSINGLECMNDOUTPUTS_DEFAULT_VAL }, SCADAT10BSINGLECMNDOUTPUTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BDoubleCmndOutputs, { SCADAT10BDOUBLECMNDOUTPUTS_DEFAULT_VAL }, SCADAT10BDOUBLECMNDOUTPUTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BMeasuredValues, { SCADAT10BMEASUREDVALUES_DEFAULT_VAL }, SCADAT10BMEASUREDVALUES_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BSetpointCommand, { SCADAT10BSETPOINTCOMMAND_DEFAULT_VAL }, SCADAT10BSETPOINTCOMMAND_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BParameterCommand, { SCADAT10BPARAMETERCOMMAND_DEFAULT_VAL }, SCADAT10BPARAMETERCOMMAND_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BIntegratedTotal, { SCADAT10BINTEGRATEDTOTAL_DEFAULT_VAL }, SCADAT10BINTEGRATEDTOTAL_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDnp3IpMasterAddr, { SCADADNP3IPMASTERADDR_DEFAULT_VAL }, SCADADNP3IPMASTERADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdIo1SerialNumber, { IDIO1SERIALNUMBER_DEFAULT_VAL }, IDIO1SERIALNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv1, { CURV1_DEFAULT_VAL }, CURV1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv2, { CURV2_DEFAULT_VAL }, CURV2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv3, { CURV3_DEFAULT_VAL }, CURV3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv4, { CURV4_DEFAULT_VAL }, CURV4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv5, { CURV5_DEFAULT_VAL }, CURV5_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv6, { CURV6_DEFAULT_VAL }, CURV6_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv7, { CURV7_DEFAULT_VAL }, CURV7_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv8, { CURV8_DEFAULT_VAL }, CURV8_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv9, { CURV9_DEFAULT_VAL }, CURV9_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv10, { CURV10_DEFAULT_VAL }, CURV10_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv11, { CURV11_DEFAULT_VAL }, CURV11_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv12, { CURV12_DEFAULT_VAL }, CURV12_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv13, { CURV13_DEFAULT_VAL }, CURV13_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv14, { CURV14_DEFAULT_VAL }, CURV14_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv15, { CURV15_DEFAULT_VAL }, CURV15_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv16, { CURV16_DEFAULT_VAL }, CURV16_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv17, { CURV17_DEFAULT_VAL }, CURV17_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv18, { CURV18_DEFAULT_VAL }, CURV18_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv19, { CURV19_DEFAULT_VAL }, CURV19_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv20, { CURV20_DEFAULT_VAL }, CURV20_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv21, { CURV21_DEFAULT_VAL }, CURV21_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv22, { CURV22_DEFAULT_VAL }, CURV22_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv23, { CURV23_DEFAULT_VAL }, CURV23_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv24, { CURV24_DEFAULT_VAL }, CURV24_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv25, { CURV25_DEFAULT_VAL }, CURV25_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv26, { CURV26_DEFAULT_VAL }, CURV26_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv27, { CURV27_DEFAULT_VAL }, CURV27_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv28, { CURV28_DEFAULT_VAL }, CURV28_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv29, { CURV29_DEFAULT_VAL }, CURV29_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv30, { CURV30_DEFAULT_VAL }, CURV30_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv31, { CURV31_DEFAULT_VAL }, CURV31_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv32, { CURV32_DEFAULT_VAL }, CURV32_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv33, { CURV33_DEFAULT_VAL }, CURV33_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv34, { CURV34_DEFAULT_VAL }, CURV34_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv35, { CURV35_DEFAULT_VAL }, CURV35_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv36, { CURV36_DEFAULT_VAL }, CURV36_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv37, { CURV37_DEFAULT_VAL }, CURV37_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv38, { CURV38_DEFAULT_VAL }, CURV38_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv39, { CURV39_DEFAULT_VAL }, CURV39_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv40, { CURV40_DEFAULT_VAL }, CURV40_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv41, { CURV41_DEFAULT_VAL }, CURV41_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv42, { CURV42_DEFAULT_VAL }, CURV42_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv43, { CURV43_DEFAULT_VAL }, CURV43_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv44, { CURV44_DEFAULT_VAL }, CURV44_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv45, { CURV45_DEFAULT_VAL }, CURV45_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv46, { CURV46_DEFAULT_VAL }, CURV46_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv47, { CURV47_DEFAULT_VAL }, CURV47_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv48, { CURV48_DEFAULT_VAL }, CURV48_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv49, { CURV49_DEFAULT_VAL }, CURV49_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( Curv50, { CURV50_DEFAULT_VAL }, CURV50_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoOpen, { COOPEN_DEFAULT_VAL }, COOPEN_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoClose, { COCLOSE_DEFAULT_VAL }, COCLOSE_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoOpenReq, { COOPENREQ_DEFAULT_VAL }, COOPENREQ_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoCloseReq, { COCLOSEREQ_DEFAULT_VAL }, COCLOSEREQ_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSdoReadReq, { CANSDOREADREQ_DEFAULT_VAL }, CANSDOREADREQ_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSimBootLoaderVers, { CANSIMBOOTLOADERVERS_DEFAULT_VAL }, CANSIMBOOTLOADERVERS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdIo2SerialNumber, { IDIO2SERIALNUMBER_DEFAULT_VAL }, IDIO2SERIALNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSimReadSWVers, { CANSIMREADSWVERS_DEFAULT_VAL }, CANSIMREADSWVERS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanDataRequestIo1, { CANDATAREQUESTIO1_DEFAULT_VAL }, CANDATAREQUESTIO1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanDataRequestIo2, { CANDATAREQUESTIO2_DEFAULT_VAL }, CANDATAREQUESTIO2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_OC1F_TccUD, { G2_OC1F_TCCUD_DEFAULT_VAL }, G2_OC1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_OC2F_TccUD, { G2_OC2F_TCCUD_DEFAULT_VAL }, G2_OC2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_OC1R_TccUD, { G2_OC1R_TCCUD_DEFAULT_VAL }, G2_OC1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_OC2R_TccUD, { G2_OC2R_TCCUD_DEFAULT_VAL }, G2_OC2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_EF1F_TccUD, { G2_EF1F_TCCUD_DEFAULT_VAL }, G2_EF1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_EF2F_TccUD, { G2_EF2F_TCCUD_DEFAULT_VAL }, G2_EF2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_EF1R_TccUD, { G2_EF1R_TCCUD_DEFAULT_VAL }, G2_EF1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_EF2R_TccUD, { G2_EF2R_TCCUD_DEFAULT_VAL }, G2_EF2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo1InputRecognitionTime, { CANIO1INPUTRECOGNITIONTIME_DEFAULT_VAL }, CANIO1INPUTRECOGNITIONTIME_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo2InputRecognitionTime, { CANIO2INPUTRECOGNITIONTIME_DEFAULT_VAL }, CANIO2INPUTRECOGNITIONTIME_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDnp3IpUnathIpAddr, { SCADADNP3IPUNATHIPADDR_DEFAULT_VAL }, SCADADNP3IPUNATHIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo1SerialNumber, { CANIO1SERIALNUMBER_DEFAULT_VAL }, CANIO1SERIALNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo2SerialNumber, { CANIO2SERIALNUMBER_DEFAULT_VAL }, CANIO2SERIALNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo1ReadSwVers, { CANIO1READSWVERS_DEFAULT_VAL }, CANIO1READSWVERS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo2ReadSwVers, { CANIO2READSWVERS_DEFAULT_VAL }, CANIO2READSWVERS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIoAddrReq, { CANIOADDRREQ_DEFAULT_VAL }, CANIOADDRREQ_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( p2pRemoteLanAddr, { P2PREMOTELANADDR_DEFAULT_VAL }, P2PREMOTELANADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh1InputExp, { LOGICCH1INPUTEXP_DEFAULT_VAL }, LOGICCH1INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh2InputExp, { LOGICCH2INPUTEXP_DEFAULT_VAL }, LOGICCH2INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh3InputExp, { LOGICCH3INPUTEXP_DEFAULT_VAL }, LOGICCH3INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh4InputExp, { LOGICCH4INPUTEXP_DEFAULT_VAL }, LOGICCH4INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh5InputExp, { LOGICCH5INPUTEXP_DEFAULT_VAL }, LOGICCH5INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh6InputExp, { LOGICCH6INPUTEXP_DEFAULT_VAL }, LOGICCH6INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh7InputExp, { LOGICCH7INPUTEXP_DEFAULT_VAL }, LOGICCH7INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh8InputExp, { LOGICCH8INPUTEXP_DEFAULT_VAL }, LOGICCH8INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_OC1F_TccUD, { G3_OC1F_TCCUD_DEFAULT_VAL }, G3_OC1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_OC2F_TccUD, { G3_OC2F_TCCUD_DEFAULT_VAL }, G3_OC2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_OC1R_TccUD, { G3_OC1R_TCCUD_DEFAULT_VAL }, G3_OC1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_OC2R_TccUD, { G3_OC2R_TCCUD_DEFAULT_VAL }, G3_OC2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_EF1F_TccUD, { G3_EF1F_TCCUD_DEFAULT_VAL }, G3_EF1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_EF2F_TccUD, { G3_EF2F_TCCUD_DEFAULT_VAL }, G3_EF2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_EF1R_TccUD, { G3_EF1R_TCCUD_DEFAULT_VAL }, G3_EF1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_EF2R_TccUD, { G3_EF2R_TCCUD_DEFAULT_VAL }, G3_EF2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh1OutputExp, { LOGICCH1OUTPUTEXP_DEFAULT_VAL }, LOGICCH1OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh2OutputExp, { LOGICCH2OUTPUTEXP_DEFAULT_VAL }, LOGICCH2OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh3OutputExp, { LOGICCH3OUTPUTEXP_DEFAULT_VAL }, LOGICCH3OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh4OutputExp, { LOGICCH4OUTPUTEXP_DEFAULT_VAL }, LOGICCH4OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh5OutputExp, { LOGICCH5OUTPUTEXP_DEFAULT_VAL }, LOGICCH5OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh6OutputExp, { LOGICCH6OUTPUTEXP_DEFAULT_VAL }, LOGICCH6OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh7OutputExp, { LOGICCH7OUTPUTEXP_DEFAULT_VAL }, LOGICCH7OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh8OutputExp, { LOGICCH8OUTPUTEXP_DEFAULT_VAL }, LOGICCH8OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanGpioRdData, { CANGPIORDDATA_DEFAULT_VAL }, CANGPIORDDATA_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanDataRequestIo, { CANDATAREQUESTIO_DEFAULT_VAL }, CANDATAREQUESTIO_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( EvACOState, { EVACOSTATE_DEFAULT_VAL }, EVACOSTATE_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_OC1F_TccUD, { G4_OC1F_TCCUD_DEFAULT_VAL }, G4_OC1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_OC2F_TccUD, { G4_OC2F_TCCUD_DEFAULT_VAL }, G4_OC2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_OC1R_TccUD, { G4_OC1R_TCCUD_DEFAULT_VAL }, G4_OC1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_OC2R_TccUD, { G4_OC2R_TCCUD_DEFAULT_VAL }, G4_OC2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_EF1F_TccUD, { G4_EF1F_TCCUD_DEFAULT_VAL }, G4_EF1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_EF2F_TccUD, { G4_EF2F_TCCUD_DEFAULT_VAL }, G4_EF2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_EF1R_TccUD, { G4_EF1R_TCCUD_DEFAULT_VAL }, G4_EF1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_EF2R_TccUD, { G4_EF2R_TCCUD_DEFAULT_VAL }, G4_EF2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogEventV, { LOGEVENTV_DEFAULT_VAL }, LOGEVENTV_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogToCmsTransferRequest, { LOGTOCMSTRANSFERREQUEST_DEFAULT_VAL }, LOGTOCMSTRANSFERREQUEST_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogToCmsTransferReply, { LOGTOCMSTRANSFERREPLY_DEFAULT_VAL }, LOGTOCMSTRANSFERREPLY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanDataRequestSim, { CANDATAREQUESTSIM_DEFAULT_VAL }, CANDATAREQUESTSIM_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdRelayNumber, { IDRELAYNUMBER_DEFAULT_VAL }, IDRELAYNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdSIMNumber, { IDSIMNUMBER_DEFAULT_VAL }, IDSIMNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdPanelNumber, { IDPANELNUMBER_DEFAULT_VAL }, IDPANELNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SysDateTime, { SYSDATETIME_DEFAULT_VAL }, SYSDATETIME_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( MeasLoadProfDef, { MEASLOADPROFDEF_DEFAULT_VAL }, MEASLOADPROFDEF_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrLoc1, { IOSETTINGRPNSTRLOC1_DEFAULT_VAL }, IOSETTINGRPNSTRLOC1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrLoc2, { IOSETTINGRPNSTRLOC2_DEFAULT_VAL }, IOSETTINGRPNSTRLOC2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrLoc3, { IOSETTINGRPNSTRLOC3_DEFAULT_VAL }, IOSETTINGRPNSTRLOC3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In1, { IOSETTINGRPNSTRIO1IN1_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In2, { IOSETTINGRPNSTRIO1IN2_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In3, { IOSETTINGRPNSTRIO1IN3_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In4, { IOSETTINGRPNSTRIO1IN4_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In5, { IOSETTINGRPNSTRIO1IN5_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN5_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In6, { IOSETTINGRPNSTRIO1IN6_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN6_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In7, { IOSETTINGRPNSTRIO1IN7_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN7_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1In8, { IOSETTINGRPNSTRIO1IN8_DEFAULT_VAL }, IOSETTINGRPNSTRIO1IN8_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out1, { IOSETTINGRPNSTRIO1OUT1_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out2, { IOSETTINGRPNSTRIO1OUT2_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out3, { IOSETTINGRPNSTRIO1OUT3_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out4, { IOSETTINGRPNSTRIO1OUT4_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out5, { IOSETTINGRPNSTRIO1OUT5_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT5_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out6, { IOSETTINGRPNSTRIO1OUT6_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT6_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out7, { IOSETTINGRPNSTRIO1OUT7_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT7_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo1Out8, { IOSETTINGRPNSTRIO1OUT8_DEFAULT_VAL }, IOSETTINGRPNSTRIO1OUT8_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In1, { IOSETTINGRPNSTRIO2IN1_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In2, { IOSETTINGRPNSTRIO2IN2_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In3, { IOSETTINGRPNSTRIO2IN3_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In4, { IOSETTINGRPNSTRIO2IN4_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In5, { IOSETTINGRPNSTRIO2IN5_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN5_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In6, { IOSETTINGRPNSTRIO2IN6_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN6_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In7, { IOSETTINGRPNSTRIO2IN7_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN7_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2In8, { IOSETTINGRPNSTRIO2IN8_DEFAULT_VAL }, IOSETTINGRPNSTRIO2IN8_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out1, { IOSETTINGRPNSTRIO2OUT1_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out2, { IOSETTINGRPNSTRIO2OUT2_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out3, { IOSETTINGRPNSTRIO2OUT3_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out4, { IOSETTINGRPNSTRIO2OUT4_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out5, { IOSETTINGRPNSTRIO2OUT5_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT5_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out6, { IOSETTINGRPNSTRIO2OUT6_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT6_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out7, { IOSETTINGRPNSTRIO2OUT7_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT7_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IoSettingRpnStrIo2Out8, { IOSETTINGRPNSTRIO2OUT8_DEFAULT_VAL }, IOSETTINGRPNSTRIO2OUT8_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDNP3BinaryInputs, { SCADADNP3BINARYINPUTS_DEFAULT_VAL }, SCADADNP3BINARYINPUTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDNP3BinaryOutputs, { SCADADNP3BINARYOUTPUTS_DEFAULT_VAL }, SCADADNP3BINARYOUTPUTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDNP3BinaryCounters, { SCADADNP3BINARYCOUNTERS_DEFAULT_VAL }, SCADADNP3BINARYCOUNTERS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDNP3AnalogInputs, { SCADADNP3ANALOGINPUTS_DEFAULT_VAL }, SCADADNP3ANALOGINPUTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDNP3OctetStrings, { SCADADNP3OCTETSTRINGS_DEFAULT_VAL }, SCADADNP3OCTETSTRINGS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UpsRestartTime, { UPSRESTARTTIME_DEFAULT_VAL }, UPSRESTARTTIME_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSimRdData, { CANSIMRDDATA_DEFAULT_VAL }, CANSIMRDDATA_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( HmiPasswords, { HMIPASSWORDS_DEFAULT_VAL }, HMIPASSWORDS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IabcRMS_trip, { IABCRMS_TRIP_DEFAULT_VAL }, IABCRMS_TRIP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IabcRMS, { IABCRMS_DEFAULT_VAL }, IABCRMS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SigListWarning, { SIGLISTWARNING_DEFAULT_VAL }, SIGLISTWARNING_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SigListMalfunction, { SIGLISTMALFUNCTION_DEFAULT_VAL }, SIGLISTMALFUNCTION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SmpTicks, { SMPTICKS_DEFAULT_VAL }, SMPTICKS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_IpAddrStatus, { G1_IPADDRSTATUS_DEFAULT_VAL }, G1_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_SubnetMaskStatus, { G1_SUBNETMASKSTATUS_DEFAULT_VAL }, G1_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_DefaultGatewayStatus, { G1_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G1_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_Ipv6AddrStatus, { G1_IPV6ADDRSTATUS_DEFAULT_VAL }, G1_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_Ipv6DefaultGatewayStatus, { G1_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G1_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_IpAddrStatus, { G2_IPADDRSTATUS_DEFAULT_VAL }, G2_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_SubnetMaskStatus, { G2_SUBNETMASKSTATUS_DEFAULT_VAL }, G2_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_DefaultGatewayStatus, { G2_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G2_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_Ipv6AddrStatus, { G2_IPV6ADDRSTATUS_DEFAULT_VAL }, G2_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_Ipv6DefaultGatewayStatus, { G2_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G2_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_IpAddrStatus, { G3_IPADDRSTATUS_DEFAULT_VAL }, G3_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_SubnetMaskStatus, { G3_SUBNETMASKSTATUS_DEFAULT_VAL }, G3_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_DefaultGatewayStatus, { G3_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G3_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_Ipv6AddrStatus, { G3_IPV6ADDRSTATUS_DEFAULT_VAL }, G3_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_Ipv6DefaultGatewayStatus, { G3_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G3_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_IpAddrStatus, { G4_IPADDRSTATUS_DEFAULT_VAL }, G4_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_SubnetMaskStatus, { G4_SUBNETMASKSTATUS_DEFAULT_VAL }, G4_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_DefaultGatewayStatus, { G4_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G4_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_Ipv6AddrStatus, { G4_IPV6ADDRSTATUS_DEFAULT_VAL }, G4_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_Ipv6DefaultGatewayStatus, { G4_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G4_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_LanIPAddr, { G1_LANIPADDR_DEFAULT_VAL }, G1_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_LanSubnetMask, { G1_LANSUBNETMASK_DEFAULT_VAL }, G1_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_LanDefaultGateway, { G1_LANDEFAULTGATEWAY_DEFAULT_VAL }, G1_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_LanIPv6Addr, { G1_LANIPV6ADDR_DEFAULT_VAL }, G1_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_LanIPv6DefaultGateway, { G1_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G1_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_LanIPAddr, { G2_LANIPADDR_DEFAULT_VAL }, G2_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_LanSubnetMask, { G2_LANSUBNETMASK_DEFAULT_VAL }, G2_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_LanDefaultGateway, { G2_LANDEFAULTGATEWAY_DEFAULT_VAL }, G2_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_LanIPv6Addr, { G2_LANIPV6ADDR_DEFAULT_VAL }, G2_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_LanIPv6DefaultGateway, { G2_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G2_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_LanIPAddr, { G3_LANIPADDR_DEFAULT_VAL }, G3_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_LanSubnetMask, { G3_LANSUBNETMASK_DEFAULT_VAL }, G3_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_LanDefaultGateway, { G3_LANDEFAULTGATEWAY_DEFAULT_VAL }, G3_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_LanIPv6Addr, { G3_LANIPV6ADDR_DEFAULT_VAL }, G3_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_LanIPv6DefaultGateway, { G3_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G3_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_LanIPAddr, { G4_LANIPADDR_DEFAULT_VAL }, G4_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_LanSubnetMask, { G4_LANSUBNETMASK_DEFAULT_VAL }, G4_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_LanDefaultGateway, { G4_LANDEFAULTGATEWAY_DEFAULT_VAL }, G4_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_LanIPv6Addr, { G4_LANIPV6ADDR_DEFAULT_VAL }, G4_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_LanIPv6DefaultGateway, { G4_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G4_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UsbDiscUpdateVersions, { USBDISCUPDATEVERSIONS_DEFAULT_VAL }, USBDISCUPDATEVERSIONS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdOsmNumber, { IDOSMNUMBER_DEFAULT_VAL }, IDOSMNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_IpAddrStatus, { G5_IPADDRSTATUS_DEFAULT_VAL }, G5_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_SubnetMaskStatus, { G5_SUBNETMASKSTATUS_DEFAULT_VAL }, G5_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_DefaultGatewayStatus, { G5_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G5_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_Ipv6AddrStatus, { G5_IPV6ADDRSTATUS_DEFAULT_VAL }, G5_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_Ipv6DefaultGatewayStatus, { G5_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G5_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_IpAddrStatus, { G6_IPADDRSTATUS_DEFAULT_VAL }, G6_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_SubnetMaskStatus, { G6_SUBNETMASKSTATUS_DEFAULT_VAL }, G6_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_DefaultGatewayStatus, { G6_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G6_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_Ipv6AddrStatus, { G6_IPV6ADDRSTATUS_DEFAULT_VAL }, G6_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_Ipv6DefaultGatewayStatus, { G6_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G6_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_IpAddrStatus, { G7_IPADDRSTATUS_DEFAULT_VAL }, G7_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_SubnetMaskStatus, { G7_SUBNETMASKSTATUS_DEFAULT_VAL }, G7_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_DefaultGatewayStatus, { G7_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G7_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_Ipv6AddrStatus, { G7_IPV6ADDRSTATUS_DEFAULT_VAL }, G7_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_Ipv6DefaultGatewayStatus, { G7_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G7_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_IpAddrStatus, { G8_IPADDRSTATUS_DEFAULT_VAL }, G8_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_SubnetMaskStatus, { G8_SUBNETMASKSTATUS_DEFAULT_VAL }, G8_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_DefaultGatewayStatus, { G8_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G8_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_Ipv6AddrStatus, { G8_IPV6ADDRSTATUS_DEFAULT_VAL }, G8_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_Ipv6DefaultGatewayStatus, { G8_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G8_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_LanIPAddr, { G5_LANIPADDR_DEFAULT_VAL }, G5_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_LanSubnetMask, { G5_LANSUBNETMASK_DEFAULT_VAL }, G5_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_LanDefaultGateway, { G5_LANDEFAULTGATEWAY_DEFAULT_VAL }, G5_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_LanIPv6Addr, { G5_LANIPV6ADDR_DEFAULT_VAL }, G5_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G5_LanIPv6DefaultGateway, { G5_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G5_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_LanIPAddr, { G6_LANIPADDR_DEFAULT_VAL }, G6_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_LanSubnetMask, { G6_LANSUBNETMASK_DEFAULT_VAL }, G6_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_LanDefaultGateway, { G6_LANDEFAULTGATEWAY_DEFAULT_VAL }, G6_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_LanIPv6Addr, { G6_LANIPV6ADDR_DEFAULT_VAL }, G6_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G6_LanIPv6DefaultGateway, { G6_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G6_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_LanIPAddr, { G7_LANIPADDR_DEFAULT_VAL }, G7_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_LanSubnetMask, { G7_LANSUBNETMASK_DEFAULT_VAL }, G7_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_LanDefaultGateway, { G7_LANDEFAULTGATEWAY_DEFAULT_VAL }, G7_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_LanIPv6Addr, { G7_LANIPV6ADDR_DEFAULT_VAL }, G7_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G7_LanIPv6DefaultGateway, { G7_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G7_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_LanIPAddr, { G8_LANIPADDR_DEFAULT_VAL }, G8_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_LanSubnetMask, { G8_LANSUBNETMASK_DEFAULT_VAL }, G8_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_LanDefaultGateway, { G8_LANDEFAULTGATEWAY_DEFAULT_VAL }, G8_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_LanIPv6Addr, { G8_LANIPV6ADDR_DEFAULT_VAL }, G8_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G8_LanIPv6DefaultGateway, { G8_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G8_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_OCLL1_TccUD, { G1_OCLL1_TCCUD_DEFAULT_VAL }, G1_OCLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_OCLL2_TccUD, { G1_OCLL2_TCCUD_DEFAULT_VAL }, G1_OCLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_OCLL1_TccUD, { G2_OCLL1_TCCUD_DEFAULT_VAL }, G2_OCLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_OCLL2_TccUD, { G2_OCLL2_TCCUD_DEFAULT_VAL }, G2_OCLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_OCLL1_TccUD, { G3_OCLL1_TCCUD_DEFAULT_VAL }, G3_OCLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_OCLL2_TccUD, { G3_OCLL2_TCCUD_DEFAULT_VAL }, G3_OCLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_OCLL1_TccUD, { G4_OCLL1_TCCUD_DEFAULT_VAL }, G4_OCLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_OCLL2_TccUD, { G4_OCLL2_TCCUD_DEFAULT_VAL }, G4_OCLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptShortABCTotDuration, { INTERRUPTSHORTABCTOTDURATION_DEFAULT_VAL }, INTERRUPTSHORTABCTOTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptShortRSTTotDuration, { INTERRUPTSHORTRSTTOTDURATION_DEFAULT_VAL }, INTERRUPTSHORTRSTTOTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptLongABCTotDuration, { INTERRUPTLONGABCTOTDURATION_DEFAULT_VAL }, INTERRUPTLONGABCTOTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptLongRSTTotDuration, { INTERRUPTLONGRSTTOTDURATION_DEFAULT_VAL }, INTERRUPTLONGRSTTOTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SagABCLastDuration, { SAGABCLASTDURATION_DEFAULT_VAL }, SAGABCLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SagRSTLastDuration, { SAGRSTLASTDURATION_DEFAULT_VAL }, SAGRSTLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SwellABCLastDuration, { SWELLABCLASTDURATION_DEFAULT_VAL }, SWELLABCLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SwellRSTLastDuration, { SWELLRSTLASTDURATION_DEFAULT_VAL }, SWELLRSTLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogInterrupt, { LOGINTERRUPT_DEFAULT_VAL }, LOGINTERRUPT_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogSagSwell, { LOGSAGSWELL_DEFAULT_VAL }, LOGSAGSWELL_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogHrm, { LOGHRM_DEFAULT_VAL }, LOGHRM_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_IpAddrStatus, { G11_IPADDRSTATUS_DEFAULT_VAL }, G11_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_SubnetMaskStatus, { G11_SUBNETMASKSTATUS_DEFAULT_VAL }, G11_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_DefaultGatewayStatus, { G11_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G11_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_Ipv6AddrStatus, { G11_IPV6ADDRSTATUS_DEFAULT_VAL }, G11_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_Ipv6DefaultGatewayStatus, { G11_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G11_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_LanIPAddr, { G11_LANIPADDR_DEFAULT_VAL }, G11_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_LanSubnetMask, { G11_LANSUBNETMASK_DEFAULT_VAL }, G11_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_LanDefaultGateway, { G11_LANDEFAULTGATEWAY_DEFAULT_VAL }, G11_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_LanIPv6Addr, { G11_LANIPV6ADDR_DEFAULT_VAL }, G11_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G11_LanIPv6DefaultGateway, { G11_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G11_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_NPS1F_TccUD, { G1_NPS1F_TCCUD_DEFAULT_VAL }, G1_NPS1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_NPS2F_TccUD, { G1_NPS2F_TCCUD_DEFAULT_VAL }, G1_NPS2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_NPS1R_TccUD, { G1_NPS1R_TCCUD_DEFAULT_VAL }, G1_NPS1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_NPS2R_TccUD, { G1_NPS2R_TCCUD_DEFAULT_VAL }, G1_NPS2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_NPSLL1_TccUD, { G1_NPSLL1_TCCUD_DEFAULT_VAL }, G1_NPSLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_NPSLL2_TccUD, { G1_NPSLL2_TCCUD_DEFAULT_VAL }, G1_NPSLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_EFLL1_TccUD, { G1_EFLL1_TCCUD_DEFAULT_VAL }, G1_EFLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_EFLL2_TccUD, { G1_EFLL2_TCCUD_DEFAULT_VAL }, G1_EFLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_NPS1F_TccUD, { G2_NPS1F_TCCUD_DEFAULT_VAL }, G2_NPS1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_NPS2F_TccUD, { G2_NPS2F_TCCUD_DEFAULT_VAL }, G2_NPS2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_NPS1R_TccUD, { G2_NPS1R_TCCUD_DEFAULT_VAL }, G2_NPS1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_NPS2R_TccUD, { G2_NPS2R_TCCUD_DEFAULT_VAL }, G2_NPS2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_NPSLL1_TccUD, { G2_NPSLL1_TCCUD_DEFAULT_VAL }, G2_NPSLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_NPSLL2_TccUD, { G2_NPSLL2_TCCUD_DEFAULT_VAL }, G2_NPSLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_EFLL1_TccUD, { G2_EFLL1_TCCUD_DEFAULT_VAL }, G2_EFLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_EFLL2_TccUD, { G2_EFLL2_TCCUD_DEFAULT_VAL }, G2_EFLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_NPS1F_TccUD, { G3_NPS1F_TCCUD_DEFAULT_VAL }, G3_NPS1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_NPS2F_TccUD, { G3_NPS2F_TCCUD_DEFAULT_VAL }, G3_NPS2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_NPS1R_TccUD, { G3_NPS1R_TCCUD_DEFAULT_VAL }, G3_NPS1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_NPS2R_TccUD, { G3_NPS2R_TCCUD_DEFAULT_VAL }, G3_NPS2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_NPSLL1_TccUD, { G3_NPSLL1_TCCUD_DEFAULT_VAL }, G3_NPSLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_NPSLL2_TccUD, { G3_NPSLL2_TCCUD_DEFAULT_VAL }, G3_NPSLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_EFLL1_TccUD, { G3_EFLL1_TCCUD_DEFAULT_VAL }, G3_EFLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_EFLL2_TccUD, { G3_EFLL2_TCCUD_DEFAULT_VAL }, G3_EFLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_NPS1F_TccUD, { G4_NPS1F_TCCUD_DEFAULT_VAL }, G4_NPS1F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_NPS2F_TccUD, { G4_NPS2F_TCCUD_DEFAULT_VAL }, G4_NPS2F_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_NPS1R_TccUD, { G4_NPS1R_TCCUD_DEFAULT_VAL }, G4_NPS1R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_NPS2R_TccUD, { G4_NPS2R_TCCUD_DEFAULT_VAL }, G4_NPS2R_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_NPSLL1_TccUD, { G4_NPSLL1_TCCUD_DEFAULT_VAL }, G4_NPSLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_NPSLL2_TccUD, { G4_NPSLL2_TCCUD_DEFAULT_VAL }, G4_NPSLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_EFLL1_TccUD, { G4_EFLL1_TCCUD_DEFAULT_VAL }, G4_EFLL1_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_EFLL2_TccUD, { G4_EFLL2_TCCUD_DEFAULT_VAL }, G4_EFLL2_TCCUD_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UsbDiscInstallVersions, { USBDISCINSTALLVERSIONS_DEFAULT_VAL }, USBDISCINSTALLVERSIONS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptShortABCLastDuration, { INTERRUPTSHORTABCLASTDURATION_DEFAULT_VAL }, INTERRUPTSHORTABCLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptShortRSTLastDuration, { INTERRUPTSHORTRSTLASTDURATION_DEFAULT_VAL }, INTERRUPTSHORTRSTLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptLongABCLastDuration, { INTERRUPTLONGABCLASTDURATION_DEFAULT_VAL }, INTERRUPTLONGABCLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( InterruptLongRSTLastDuration, { INTERRUPTLONGRSTLASTDURATION_DEFAULT_VAL }, INTERRUPTLONGRSTLASTDURATION_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoOpenReqB, { COOPENREQB_DEFAULT_VAL }, COOPENREQB_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoOpenReqC, { COOPENREQC_DEFAULT_VAL }, COOPENREQC_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoCloseReqB, { COCLOSEREQB_DEFAULT_VAL }, COCLOSEREQB_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoCloseReqC, { COCLOSEREQC_DEFAULT_VAL }, COCLOSEREQC_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdOsmNumber2, { IDOSMNUMBER2_DEFAULT_VAL }, IDOSMNUMBER2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdOsmNumber3, { IDOSMNUMBER3_DEFAULT_VAL }, IDOSMNUMBER3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdOsmNumberA, { IDOSMNUMBERA_DEFAULT_VAL }, IDOSMNUMBERA_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdOsmNumberB, { IDOSMNUMBERB_DEFAULT_VAL }, IDOSMNUMBERB_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdOsmNumberC, { IDOSMNUMBERC_DEFAULT_VAL }, IDOSMNUMBERC_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( BatteryTestLastPerformedTime, { BATTERYTESTLASTPERFORMEDTIME_DEFAULT_VAL }, BATTERYTESTLASTPERFORMEDTIME_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg01, { USERANALOGCFG01_DEFAULT_VAL }, USERANALOGCFG01_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg02, { USERANALOGCFG02_DEFAULT_VAL }, USERANALOGCFG02_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg03, { USERANALOGCFG03_DEFAULT_VAL }, USERANALOGCFG03_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg04, { USERANALOGCFG04_DEFAULT_VAL }, USERANALOGCFG04_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg05, { USERANALOGCFG05_DEFAULT_VAL }, USERANALOGCFG05_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg06, { USERANALOGCFG06_DEFAULT_VAL }, USERANALOGCFG06_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg07, { USERANALOGCFG07_DEFAULT_VAL }, USERANALOGCFG07_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg08, { USERANALOGCFG08_DEFAULT_VAL }, USERANALOGCFG08_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg09, { USERANALOGCFG09_DEFAULT_VAL }, USERANALOGCFG09_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg10, { USERANALOGCFG10_DEFAULT_VAL }, USERANALOGCFG10_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg11, { USERANALOGCFG11_DEFAULT_VAL }, USERANALOGCFG11_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UserAnalogCfg12, { USERANALOGCFG12_DEFAULT_VAL }, USERANALOGCFG12_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpAddr1, { S61850CLIENTIPADDR1_DEFAULT_VAL }, S61850CLIENTIPADDR1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ServerIpAddr, { S61850SERVERIPADDR_DEFAULT_VAL }, S61850SERVERIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpAddr2, { S61850CLIENTIPADDR2_DEFAULT_VAL }, S61850CLIENTIPADDR2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpAddr3, { S61850CLIENTIPADDR3_DEFAULT_VAL }, S61850CLIENTIPADDR3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpAddr4, { S61850CLIENTIPADDR4_DEFAULT_VAL }, S61850CLIENTIPADDR4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh9OutputExp, { LOGICCH9OUTPUTEXP_DEFAULT_VAL }, LOGICCH9OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh9InputExp, { LOGICCH9INPUTEXP_DEFAULT_VAL }, LOGICCH9INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh10OutputExp, { LOGICCH10OUTPUTEXP_DEFAULT_VAL }, LOGICCH10OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh10InputExp, { LOGICCH10INPUTEXP_DEFAULT_VAL }, LOGICCH10INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh11OutputExp, { LOGICCH11OUTPUTEXP_DEFAULT_VAL }, LOGICCH11OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh11InputExp, { LOGICCH11INPUTEXP_DEFAULT_VAL }, LOGICCH11INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh12OutputExp, { LOGICCH12OUTPUTEXP_DEFAULT_VAL }, LOGICCH12OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh12InputExp, { LOGICCH12INPUTEXP_DEFAULT_VAL }, LOGICCH12INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh13OutputExp, { LOGICCH13OUTPUTEXP_DEFAULT_VAL }, LOGICCH13OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh13InputExp, { LOGICCH13INPUTEXP_DEFAULT_VAL }, LOGICCH13INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh14OutputExp, { LOGICCH14OUTPUTEXP_DEFAULT_VAL }, LOGICCH14OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh14InputExp, { LOGICCH14INPUTEXP_DEFAULT_VAL }, LOGICCH14INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh15OutputExp, { LOGICCH15OUTPUTEXP_DEFAULT_VAL }, LOGICCH15OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh15InputExp, { LOGICCH15INPUTEXP_DEFAULT_VAL }, LOGICCH15INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh16OutputExp, { LOGICCH16OUTPUTEXP_DEFAULT_VAL }, LOGICCH16OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh16InputExp, { LOGICCH16INPUTEXP_DEFAULT_VAL }, LOGICCH16INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh17OutputExp, { LOGICCH17OUTPUTEXP_DEFAULT_VAL }, LOGICCH17OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh17InputExp, { LOGICCH17INPUTEXP_DEFAULT_VAL }, LOGICCH17INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh18OutputExp, { LOGICCH18OUTPUTEXP_DEFAULT_VAL }, LOGICCH18OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh18InputExp, { LOGICCH18INPUTEXP_DEFAULT_VAL }, LOGICCH18INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh19OutputExp, { LOGICCH19OUTPUTEXP_DEFAULT_VAL }, LOGICCH19OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh19InputExp, { LOGICCH19INPUTEXP_DEFAULT_VAL }, LOGICCH19INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh20OutputExp, { LOGICCH20OUTPUTEXP_DEFAULT_VAL }, LOGICCH20OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh20InputExp, { LOGICCH20INPUTEXP_DEFAULT_VAL }, LOGICCH20INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh21OutputExp, { LOGICCH21OUTPUTEXP_DEFAULT_VAL }, LOGICCH21OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh21InputExp, { LOGICCH21INPUTEXP_DEFAULT_VAL }, LOGICCH21INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh22OutputExp, { LOGICCH22OUTPUTEXP_DEFAULT_VAL }, LOGICCH22OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh22InputExp, { LOGICCH22INPUTEXP_DEFAULT_VAL }, LOGICCH22INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh23OutputExp, { LOGICCH23OUTPUTEXP_DEFAULT_VAL }, LOGICCH23OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh23InputExp, { LOGICCH23INPUTEXP_DEFAULT_VAL }, LOGICCH23INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh24OutputExp, { LOGICCH24OUTPUTEXP_DEFAULT_VAL }, LOGICCH24OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh24InputExp, { LOGICCH24INPUTEXP_DEFAULT_VAL }, LOGICCH24INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh25OutputExp, { LOGICCH25OUTPUTEXP_DEFAULT_VAL }, LOGICCH25OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh25InputExp, { LOGICCH25INPUTEXP_DEFAULT_VAL }, LOGICCH25INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh26OutputExp, { LOGICCH26OUTPUTEXP_DEFAULT_VAL }, LOGICCH26OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh26InputExp, { LOGICCH26INPUTEXP_DEFAULT_VAL }, LOGICCH26INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh27OutputExp, { LOGICCH27OUTPUTEXP_DEFAULT_VAL }, LOGICCH27OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh27InputExp, { LOGICCH27INPUTEXP_DEFAULT_VAL }, LOGICCH27INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh28OutputExp, { LOGICCH28OUTPUTEXP_DEFAULT_VAL }, LOGICCH28OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh28InputExp, { LOGICCH28INPUTEXP_DEFAULT_VAL }, LOGICCH28INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh29OutputExp, { LOGICCH29OUTPUTEXP_DEFAULT_VAL }, LOGICCH29OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh29InputExp, { LOGICCH29INPUTEXP_DEFAULT_VAL }, LOGICCH29INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh30OutputExp, { LOGICCH30OUTPUTEXP_DEFAULT_VAL }, LOGICCH30OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh30InputExp, { LOGICCH30INPUTEXP_DEFAULT_VAL }, LOGICCH30INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh31OutputExp, { LOGICCH31OUTPUTEXP_DEFAULT_VAL }, LOGICCH31OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh31InputExp, { LOGICCH31INPUTEXP_DEFAULT_VAL }, LOGICCH31INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh32OutputExp, { LOGICCH32OUTPUTEXP_DEFAULT_VAL }, LOGICCH32OUTPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogicCh32InputExp, { LOGICCH32INPUTEXP_DEFAULT_VAL }, LOGICCH32INPUTEXP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDNP3SecurityStatistics, { SCADADNP3SECURITYSTATISTICS_DEFAULT_VAL }, SCADADNP3SECURITYSTATISTICS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UsbDiscUpdateDirFiles, { USBDISCUPDATEDIRFILES_DEFAULT_VAL }, USBDISCUPDATEDIRFILES_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdOsmNumber1, { IDOSMNUMBER1_DEFAULT_VAL }, IDOSMNUMBER1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr01, { S61850GSESUBSCR01_DEFAULT_VAL }, S61850GSESUBSCR01_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr02, { S61850GSESUBSCR02_DEFAULT_VAL }, S61850GSESUBSCR02_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr03, { S61850GSESUBSCR03_DEFAULT_VAL }, S61850GSESUBSCR03_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr04, { S61850GSESUBSCR04_DEFAULT_VAL }, S61850GSESUBSCR04_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( IdPSCNumber, { IDPSCNUMBER_DEFAULT_VAL }, IDPSCNUMBER_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanPscReadSWVers, { CANPSCREADSWVERS_DEFAULT_VAL }, CANPSCREADSWVERS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanPscRdData, { CANPSCRDDATA_DEFAULT_VAL }, CANPSCRDDATA_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanDataRequestPsc, { CANDATAREQUESTPSC_DEFAULT_VAL }, CANDATAREQUESTPSC_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr05, { S61850GSESUBSCR05_DEFAULT_VAL }, S61850GSESUBSCR05_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr06, { S61850GSESUBSCR06_DEFAULT_VAL }, S61850GSESUBSCR06_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr07, { S61850GSESUBSCR07_DEFAULT_VAL }, S61850GSESUBSCR07_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr08, { S61850GSESUBSCR08_DEFAULT_VAL }, S61850GSESUBSCR08_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr09, { S61850GSESUBSCR09_DEFAULT_VAL }, S61850GSESUBSCR09_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr10, { S61850GSESUBSCR10_DEFAULT_VAL }, S61850GSESUBSCR10_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BIpMasterAddr, { SCADAT10BIPMASTERADDR_DEFAULT_VAL }, SCADAT10BIPMASTERADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT001, { DDT001_DEFAULT_VAL }, DDT001_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT002, { DDT002_DEFAULT_VAL }, DDT002_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT003, { DDT003_DEFAULT_VAL }, DDT003_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT004, { DDT004_DEFAULT_VAL }, DDT004_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT005, { DDT005_DEFAULT_VAL }, DDT005_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT006, { DDT006_DEFAULT_VAL }, DDT006_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT007, { DDT007_DEFAULT_VAL }, DDT007_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT008, { DDT008_DEFAULT_VAL }, DDT008_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT009, { DDT009_DEFAULT_VAL }, DDT009_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT010, { DDT010_DEFAULT_VAL }, DDT010_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT011, { DDT011_DEFAULT_VAL }, DDT011_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT012, { DDT012_DEFAULT_VAL }, DDT012_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT013, { DDT013_DEFAULT_VAL }, DDT013_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT014, { DDT014_DEFAULT_VAL }, DDT014_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT015, { DDT015_DEFAULT_VAL }, DDT015_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT016, { DDT016_DEFAULT_VAL }, DDT016_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT017, { DDT017_DEFAULT_VAL }, DDT017_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT018, { DDT018_DEFAULT_VAL }, DDT018_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT019, { DDT019_DEFAULT_VAL }, DDT019_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT020, { DDT020_DEFAULT_VAL }, DDT020_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT021, { DDT021_DEFAULT_VAL }, DDT021_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT022, { DDT022_DEFAULT_VAL }, DDT022_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT023, { DDT023_DEFAULT_VAL }, DDT023_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT024, { DDT024_DEFAULT_VAL }, DDT024_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT025, { DDT025_DEFAULT_VAL }, DDT025_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT026, { DDT026_DEFAULT_VAL }, DDT026_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT027, { DDT027_DEFAULT_VAL }, DDT027_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT028, { DDT028_DEFAULT_VAL }, DDT028_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT029, { DDT029_DEFAULT_VAL }, DDT029_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT030, { DDT030_DEFAULT_VAL }, DDT030_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT031, { DDT031_DEFAULT_VAL }, DDT031_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT032, { DDT032_DEFAULT_VAL }, DDT032_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT033, { DDT033_DEFAULT_VAL }, DDT033_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT034, { DDT034_DEFAULT_VAL }, DDT034_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT035, { DDT035_DEFAULT_VAL }, DDT035_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT036, { DDT036_DEFAULT_VAL }, DDT036_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT037, { DDT037_DEFAULT_VAL }, DDT037_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT038, { DDT038_DEFAULT_VAL }, DDT038_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT039, { DDT039_DEFAULT_VAL }, DDT039_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT040, { DDT040_DEFAULT_VAL }, DDT040_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT041, { DDT041_DEFAULT_VAL }, DDT041_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT042, { DDT042_DEFAULT_VAL }, DDT042_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT043, { DDT043_DEFAULT_VAL }, DDT043_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT044, { DDT044_DEFAULT_VAL }, DDT044_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT045, { DDT045_DEFAULT_VAL }, DDT045_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT046, { DDT046_DEFAULT_VAL }, DDT046_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT047, { DDT047_DEFAULT_VAL }, DDT047_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT048, { DDT048_DEFAULT_VAL }, DDT048_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT049, { DDT049_DEFAULT_VAL }, DDT049_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT050, { DDT050_DEFAULT_VAL }, DDT050_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT051, { DDT051_DEFAULT_VAL }, DDT051_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT052, { DDT052_DEFAULT_VAL }, DDT052_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT053, { DDT053_DEFAULT_VAL }, DDT053_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT054, { DDT054_DEFAULT_VAL }, DDT054_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT055, { DDT055_DEFAULT_VAL }, DDT055_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT056, { DDT056_DEFAULT_VAL }, DDT056_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT057, { DDT057_DEFAULT_VAL }, DDT057_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT058, { DDT058_DEFAULT_VAL }, DDT058_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT059, { DDT059_DEFAULT_VAL }, DDT059_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT060, { DDT060_DEFAULT_VAL }, DDT060_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT061, { DDT061_DEFAULT_VAL }, DDT061_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT062, { DDT062_DEFAULT_VAL }, DDT062_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT063, { DDT063_DEFAULT_VAL }, DDT063_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT064, { DDT064_DEFAULT_VAL }, DDT064_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT065, { DDT065_DEFAULT_VAL }, DDT065_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT066, { DDT066_DEFAULT_VAL }, DDT066_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT067, { DDT067_DEFAULT_VAL }, DDT067_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT068, { DDT068_DEFAULT_VAL }, DDT068_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT069, { DDT069_DEFAULT_VAL }, DDT069_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT070, { DDT070_DEFAULT_VAL }, DDT070_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT071, { DDT071_DEFAULT_VAL }, DDT071_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT072, { DDT072_DEFAULT_VAL }, DDT072_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT073, { DDT073_DEFAULT_VAL }, DDT073_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT074, { DDT074_DEFAULT_VAL }, DDT074_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT075, { DDT075_DEFAULT_VAL }, DDT075_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT076, { DDT076_DEFAULT_VAL }, DDT076_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT077, { DDT077_DEFAULT_VAL }, DDT077_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT078, { DDT078_DEFAULT_VAL }, DDT078_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT079, { DDT079_DEFAULT_VAL }, DDT079_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT080, { DDT080_DEFAULT_VAL }, DDT080_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT081, { DDT081_DEFAULT_VAL }, DDT081_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT082, { DDT082_DEFAULT_VAL }, DDT082_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT083, { DDT083_DEFAULT_VAL }, DDT083_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT084, { DDT084_DEFAULT_VAL }, DDT084_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT085, { DDT085_DEFAULT_VAL }, DDT085_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT086, { DDT086_DEFAULT_VAL }, DDT086_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT087, { DDT087_DEFAULT_VAL }, DDT087_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT088, { DDT088_DEFAULT_VAL }, DDT088_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT089, { DDT089_DEFAULT_VAL }, DDT089_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT090, { DDT090_DEFAULT_VAL }, DDT090_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT091, { DDT091_DEFAULT_VAL }, DDT091_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT092, { DDT092_DEFAULT_VAL }, DDT092_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT093, { DDT093_DEFAULT_VAL }, DDT093_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT094, { DDT094_DEFAULT_VAL }, DDT094_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT095, { DDT095_DEFAULT_VAL }, DDT095_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT096, { DDT096_DEFAULT_VAL }, DDT096_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT097, { DDT097_DEFAULT_VAL }, DDT097_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT098, { DDT098_DEFAULT_VAL }, DDT098_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT099, { DDT099_DEFAULT_VAL }, DDT099_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDT100, { DDT100_DEFAULT_VAL }, DDT100_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DDTDef01, { DDTDEF01_DEFAULT_VAL }, DDTDEF01_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LanguagesAvailable, { LANGUAGESAVAILABLE_DEFAULT_VAL }, LANGUAGESAVAILABLE_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSimReadSWVersExt, { CANSIMREADSWVERSEXT_DEFAULT_VAL }, CANSIMREADSWVERSEXT_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo1ReadSwVersExt, { CANIO1READSWVERSEXT_DEFAULT_VAL }, CANIO1READSWVERSEXT_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanIo2ReadSwVersExt, { CANIO2READSWVERSEXT_DEFAULT_VAL }, CANIO2READSWVERSEXT_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanPscReadSWVersExt, { CANPSCREADSWVERSEXT_DEFAULT_VAL }, CANPSCREADSWVERSEXT_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( RemoteUpdateStatus, { REMOTEUPDATESTATUS_DEFAULT_VAL }, REMOTEUPDATESTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanAccessPointIP, { WLANACCESSPOINTIP_DEFAULT_VAL }, WLANACCESSPOINTIP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanIPRangeLow, { WLANIPRANGELOW_DEFAULT_VAL }, WLANIPRANGELOW_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanIPRangeHigh, { WLANIPRANGEHIGH_DEFAULT_VAL }, WLANIPRANGEHIGH_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPAddr1, { WLANCLIENTIPADDR1_DEFAULT_VAL }, WLANCLIENTIPADDR1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPAddr2, { WLANCLIENTIPADDR2_DEFAULT_VAL }, WLANCLIENTIPADDR2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPAddr3, { WLANCLIENTIPADDR3_DEFAULT_VAL }, WLANCLIENTIPADDR3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPAddr4, { WLANCLIENTIPADDR4_DEFAULT_VAL }, WLANCLIENTIPADDR4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPAddr5, { WLANCLIENTIPADDR5_DEFAULT_VAL }, WLANCLIENTIPADDR5_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_LanIPAddr, { G12_LANIPADDR_DEFAULT_VAL }, G12_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_LanSubnetMask, { G12_LANSUBNETMASK_DEFAULT_VAL }, G12_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_LanDefaultGateway, { G12_LANDEFAULTGATEWAY_DEFAULT_VAL }, G12_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_LanIPv6Addr, { G12_LANIPV6ADDR_DEFAULT_VAL }, G12_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_LanIPv6DefaultGateway, { G12_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G12_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_IpAddrStatus, { G12_IPADDRSTATUS_DEFAULT_VAL }, G12_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_SubnetMaskStatus, { G12_SUBNETMASKSTATUS_DEFAULT_VAL }, G12_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_DefaultGatewayStatus, { G12_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G12_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_Ipv6AddrStatus, { G12_IPV6ADDRSTATUS_DEFAULT_VAL }, G12_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G12_Ipv6DefaultGatewayStatus, { G12_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G12_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_IpAddrStatus, { G13_IPADDRSTATUS_DEFAULT_VAL }, G13_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_SubnetMaskStatus, { G13_SUBNETMASKSTATUS_DEFAULT_VAL }, G13_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_DefaultGatewayStatus, { G13_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G13_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_Ipv6AddrStatus, { G13_IPV6ADDRSTATUS_DEFAULT_VAL }, G13_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_Ipv6DefaultGatewayStatus, { G13_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G13_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_LanIPAddr, { G13_LANIPADDR_DEFAULT_VAL }, G13_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_LanSubnetMask, { G13_LANSUBNETMASK_DEFAULT_VAL }, G13_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_LanDefaultGateway, { G13_LANDEFAULTGATEWAY_DEFAULT_VAL }, G13_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_LanIPv6Addr, { G13_LANIPV6ADDR_DEFAULT_VAL }, G13_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G13_LanIPv6DefaultGateway, { G13_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G13_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr11, { S61850GSESUBSCR11_DEFAULT_VAL }, S61850GSESUBSCR11_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr12, { S61850GSESUBSCR12_DEFAULT_VAL }, S61850GSESUBSCR12_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr13, { S61850GSESUBSCR13_DEFAULT_VAL }, S61850GSESUBSCR13_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr14, { S61850GSESUBSCR14_DEFAULT_VAL }, S61850GSESUBSCR14_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr15, { S61850GSESUBSCR15_DEFAULT_VAL }, S61850GSESUBSCR15_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr16, { S61850GSESUBSCR16_DEFAULT_VAL }, S61850GSESUBSCR16_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr17, { S61850GSESUBSCR17_DEFAULT_VAL }, S61850GSESUBSCR17_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr18, { S61850GSESUBSCR18_DEFAULT_VAL }, S61850GSESUBSCR18_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr19, { S61850GSESUBSCR19_DEFAULT_VAL }, S61850GSESUBSCR19_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850GseSubscr20, { S61850GSESUBSCR20_DEFAULT_VAL }, S61850GSESUBSCR20_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanAPSubnetMask, { WLANAPSUBNETMASK_DEFAULT_VAL }, WLANAPSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( OpenReqA, { OPENREQA_DEFAULT_VAL }, OPENREQA_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( OpenReqB, { OPENREQB_DEFAULT_VAL }, OPENREQB_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( OpenReqC, { OPENREQC_DEFAULT_VAL }, OPENREQC_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CoLogOpen, { COLOGOPEN_DEFAULT_VAL }, COLOGOPEN_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UsbDiscUpdateDirFiles1024, { USBDISCUPDATEDIRFILES1024_DEFAULT_VAL }, USBDISCUPDATEDIRFILES1024_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UsbDiscUpdateVersions1024, { USBDISCUPDATEVERSIONS1024_DEFAULT_VAL }, USBDISCUPDATEVERSIONS1024_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( UsbDiscInstallVersions1024, { USBDISCINSTALLVERSIONS1024_DEFAULT_VAL }, USBDISCINSTALLVERSIONS1024_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( AlertDisplayNames, { ALERTDISPLAYNAMES_DEFAULT_VAL }, ALERTDISPLAYNAMES_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( AlertDisplayDatapoints, { ALERTDISPLAYDATAPOINTS_DEFAULT_VAL }, ALERTDISPLAYDATAPOINTS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanPscActiveApplicationDetails, { CANPSCACTIVEAPPLICATIONDETAILS_DEFAULT_VAL }, CANPSCACTIVEAPPLICATIONDETAILS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSimActiveApplicationDetails, { CANSIMACTIVEAPPLICATIONDETAILS_DEFAULT_VAL }, CANSIMACTIVEAPPLICATIONDETAILS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanGpioActiveApplicationDetails, { CANGPIOACTIVEAPPLICATIONDETAILS_DEFAULT_VAL }, CANGPIOACTIVEAPPLICATIONDETAILS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanPscInactiveApplicationDetails, { CANPSCINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL }, CANPSCINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSimInactiveApplicationDetails, { CANSIMINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL }, CANSIMINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanGpioInactiveApplicationDetails, { CANGPIOINACTIVEAPPLICATIONDETAILS_DEFAULT_VAL }, CANGPIOINACTIVEAPPLICATIONDETAILS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( DiagCounter1, { DIAGCOUNTER1_DEFAULT_VAL }, DIAGCOUNTER1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SNTPServIpAddr1, { SNTPSERVIPADDR1_DEFAULT_VAL }, SNTPSERVIPADDR1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SNTPServIpAddr2, { SNTPSERVIPADDR2_DEFAULT_VAL }, SNTPSERVIPADDR2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SNTPServIpv6Addr1, { SNTPSERVIPV6ADDR1_DEFAULT_VAL }, SNTPSERVIPV6ADDR1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SNTPServIpv6Addr2, { SNTPSERVIPV6ADDR2_DEFAULT_VAL }, SNTPSERVIPV6ADDR2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDnp3Ipv6MasterAddr, { SCADADNP3IPV6MASTERADDR_DEFAULT_VAL }, SCADADNP3IPV6MASTERADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaDnp3Ipv6UnathIpAddr, { SCADADNP3IPV6UNATHIPADDR_DEFAULT_VAL }, SCADADNP3IPV6UNATHIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( ScadaT10BIpv6MasterAddr, { SCADAT10BIPV6MASTERADDR_DEFAULT_VAL }, SCADAT10BIPV6MASTERADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpv6Addr1, { S61850CLIENTIPV6ADDR1_DEFAULT_VAL }, S61850CLIENTIPV6ADDR1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpv6Addr2, { S61850CLIENTIPV6ADDR2_DEFAULT_VAL }, S61850CLIENTIPV6ADDR2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpv6Addr3, { S61850CLIENTIPV6ADDR3_DEFAULT_VAL }, S61850CLIENTIPV6ADDR3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( s61850ClientIpv6Addr4, { S61850CLIENTIPV6ADDR4_DEFAULT_VAL }, S61850CLIENTIPV6ADDR4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( p2pRemoteLanIpv6Addr, { P2PREMOTELANIPV6ADDR_DEFAULT_VAL }, P2PREMOTELANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanAccessPointIPv6, { WLANACCESSPOINTIPV6_DEFAULT_VAL }, WLANACCESSPOINTIPV6_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPv6Addr1, { WLANCLIENTIPV6ADDR1_DEFAULT_VAL }, WLANCLIENTIPV6ADDR1_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPv6Addr2, { WLANCLIENTIPV6ADDR2_DEFAULT_VAL }, WLANCLIENTIPV6ADDR2_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPv6Addr3, { WLANCLIENTIPV6ADDR3_DEFAULT_VAL }, WLANCLIENTIPV6ADDR3_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPv6Addr4, { WLANCLIENTIPV6ADDR4_DEFAULT_VAL }, WLANCLIENTIPV6ADDR4_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( WlanClientIPv6Addr5, { WLANCLIENTIPV6ADDR5_DEFAULT_VAL }, WLANCLIENTIPV6ADDR5_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_IpAddrStatus, { G14_IPADDRSTATUS_DEFAULT_VAL }, G14_IPADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_SubnetMaskStatus, { G14_SUBNETMASKSTATUS_DEFAULT_VAL }, G14_SUBNETMASKSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_DefaultGatewayStatus, { G14_DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G14_DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_Ipv6AddrStatus, { G14_IPV6ADDRSTATUS_DEFAULT_VAL }, G14_IPV6ADDRSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_Ipv6DefaultGatewayStatus, { G14_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_VAL }, G14_IPV6DEFAULTGATEWAYSTATUS_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_LanIPAddr, { G14_LANIPADDR_DEFAULT_VAL }, G14_LANIPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_LanSubnetMask, { G14_LANSUBNETMASK_DEFAULT_VAL }, G14_LANSUBNETMASK_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_LanDefaultGateway, { G14_LANDEFAULTGATEWAY_DEFAULT_VAL }, G14_LANDEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_LanIPv6Addr, { G14_LANIPV6ADDR_DEFAULT_VAL }, G14_LANIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G14_LanIPv6DefaultGateway, { G14_LANIPV6DEFAULTGATEWAY_DEFAULT_VAL }, G14_LANIPV6DEFAULTGATEWAY_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( LogHrm64, { LOGHRM64_DEFAULT_VAL }, LOGHRM64_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( PMUDataSetDef, { PMUDATASETDEF_DEFAULT_VAL }, PMUDATASETDEF_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( PMUIPAddrPDC, { PMUIPADDRPDC_DEFAULT_VAL }, PMUIPADDRPDC_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( PMUIP6AddrPDC, { PMUIP6ADDRPDC_DEFAULT_VAL }, PMUIP6ADDRPDC_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( PMU_Timestamp, { PMU_TIMESTAMP_DEFAULT_VAL }, PMU_TIMESTAMP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( USBL_IPAddr, { USBL_IPADDR_DEFAULT_VAL }, USBL_IPADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( USBL_IPAddrV6, { USBL_IPADDRV6_DEFAULT_VAL }, USBL_IPADDRV6_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( CanSimSetTimeStamp, { CANSIMSETTIMESTAMP_DEFAULT_VAL }, CANSIMSETTIMESTAMP_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_ScadaT10BRGMasterIPv4Addr, { G1_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL }, G1_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_ScadaT10BRGMasterIPv6Addr, { G1_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL }, G1_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_ScadaT10BRGStatusMasterIPv4Addr, { G1_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL }, G1_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G1_ScadaT10BRGStatusMasterIPv6Addr, { G1_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL }, G1_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_ScadaT10BRGMasterIPv4Addr, { G2_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL }, G2_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_ScadaT10BRGMasterIPv6Addr, { G2_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL }, G2_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_ScadaT10BRGStatusMasterIPv4Addr, { G2_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL }, G2_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G2_ScadaT10BRGStatusMasterIPv6Addr, { G2_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL }, G2_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_ScadaT10BRGMasterIPv4Addr, { G3_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL }, G3_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_ScadaT10BRGMasterIPv6Addr, { G3_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL }, G3_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_ScadaT10BRGStatusMasterIPv4Addr, { G3_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL }, G3_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G3_ScadaT10BRGStatusMasterIPv6Addr, { G3_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL }, G3_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_ScadaT10BRGMasterIPv4Addr, { G4_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_VAL }, G4_SCADAT10BRGMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_ScadaT10BRGMasterIPv6Addr, { G4_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_VAL }, G4_SCADAT10BRGMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_ScadaT10BRGStatusMasterIPv4Addr, { G4_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_VAL }, G4_SCADAT10BRGSTATUSMASTERIPV4ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( G4_ScadaT10BRGStatusMasterIPv6Addr, { G4_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_VAL }, G4_SCADAT10BRGSTATUSMASTERIPV6ADDR_DEFAULT_LEN ) \ DB_DEFAULT_STRUCT_VALUE( SmpTicks2, { SMPTICKS2_DEFAULT_VAL }, SMPTICKS2_DEFAULT_LEN ) \ /**The definitions for all datapoints with no default value * Arguments: name * name The datapoint name */ #define DB_DEFAULT_NULL_VALUES \ \ DB_DEFAULT_NULL_VALUE( IsDirty ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstTripClose ) \ DB_DEFAULT_NULL_VALUE( DbSourceFiles ) \ DB_DEFAULT_NULL_VALUE( SigMalfRelayLog ) \ DB_DEFAULT_NULL_VALUE( UpdateRelayNew ) \ DB_DEFAULT_NULL_VALUE( UpdateSimNew ) \ DB_DEFAULT_NULL_VALUE( SigExtSupplyStatusShutDown ) \ DB_DEFAULT_NULL_VALUE( IdUbootSoftwareVer ) \ DB_DEFAULT_NULL_VALUE( SigCtrlHltOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlHltRqstReset ) \ DB_DEFAULT_NULL_VALUE( IdMicrokernelSoftwareVer ) \ DB_DEFAULT_NULL_VALUE( SigPickupLsdUa ) \ DB_DEFAULT_NULL_VALUE( SigPickupLsdUb ) \ DB_DEFAULT_NULL_VALUE( SigPickupLsdUc ) \ DB_DEFAULT_NULL_VALUE( SigPickupLsdUr ) \ DB_DEFAULT_NULL_VALUE( SigPickupLsdUs ) \ DB_DEFAULT_NULL_VALUE( SigPickupLsdUt ) \ DB_DEFAULT_NULL_VALUE( OsmModelStr ) \ DB_DEFAULT_NULL_VALUE( SigStatusCloseBlocking ) \ DB_DEFAULT_NULL_VALUE( SigCtrlBlockCloseOn ) \ DB_DEFAULT_NULL_VALUE( SigOpenGrp1 ) \ DB_DEFAULT_NULL_VALUE( CmsVer ) \ DB_DEFAULT_NULL_VALUE( SigOpenGrp2 ) \ DB_DEFAULT_NULL_VALUE( SigOpenGrp3 ) \ DB_DEFAULT_NULL_VALUE( SigOpenGrp4 ) \ DB_DEFAULT_NULL_VALUE( UpdateFailed ) \ DB_DEFAULT_NULL_VALUE( UpdateReverted ) \ DB_DEFAULT_NULL_VALUE( LogEventDir ) \ DB_DEFAULT_NULL_VALUE( LogCloseOpenDir ) \ DB_DEFAULT_NULL_VALUE( LogLoadProfDir ) \ DB_DEFAULT_NULL_VALUE( LogFaultProfDir ) \ DB_DEFAULT_NULL_VALUE( LogChangeDir ) \ DB_DEFAULT_NULL_VALUE( SysSettingDir ) \ DB_DEFAULT_NULL_VALUE( UpdateSettingsLogFailed ) \ DB_DEFAULT_NULL_VALUE( SigUSBUnsupported ) \ DB_DEFAULT_NULL_VALUE( SigUSBMismatched ) \ DB_DEFAULT_NULL_VALUE( DNP3_ModemDialNumber1 ) \ DB_DEFAULT_NULL_VALUE( DNP3_ModemDialNumber2 ) \ DB_DEFAULT_NULL_VALUE( DNP3_ModemDialNumber3 ) \ DB_DEFAULT_NULL_VALUE( DNP3_ModemDialNumber4 ) \ DB_DEFAULT_NULL_VALUE( DNP3_ModemDialNumber5 ) \ DB_DEFAULT_NULL_VALUE( ProtTstDbug ) \ DB_DEFAULT_NULL_VALUE( CMS_ModemDialNumber1 ) \ DB_DEFAULT_NULL_VALUE( CMS_ModemDialNumber2 ) \ DB_DEFAULT_NULL_VALUE( G1_GrpDes ) \ DB_DEFAULT_NULL_VALUE( CMS_ModemDialNumber3 ) \ DB_DEFAULT_NULL_VALUE( CMS_ModemDialNumber4 ) \ DB_DEFAULT_NULL_VALUE( CMS_ModemDialNumber5 ) \ DB_DEFAULT_NULL_VALUE( ShutdownExpected ) \ DB_DEFAULT_NULL_VALUE( SigSimNotCalibrated ) \ DB_DEFAULT_NULL_VALUE( ReportTimeSetting ) \ DB_DEFAULT_NULL_VALUE( ControlExtLoad ) \ DB_DEFAULT_NULL_VALUE( SigLineSupplyStatusAbnormal ) \ DB_DEFAULT_NULL_VALUE( CmsMainConnected ) \ DB_DEFAULT_NULL_VALUE( CmsAuxConnected ) \ DB_DEFAULT_NULL_VALUE( T101_ModemDialNumber1 ) \ DB_DEFAULT_NULL_VALUE( T101_ModemDialNumber2 ) \ DB_DEFAULT_NULL_VALUE( T101_ModemDialNumber3 ) \ DB_DEFAULT_NULL_VALUE( T101_ModemDialNumber4 ) \ DB_DEFAULT_NULL_VALUE( T101_ModemDialNumber5 ) \ DB_DEFAULT_NULL_VALUE( T101RxCnt ) \ DB_DEFAULT_NULL_VALUE( T101TxCnt ) \ DB_DEFAULT_NULL_VALUE( T104RxCnt ) \ DB_DEFAULT_NULL_VALUE( T104TxCnt ) \ DB_DEFAULT_NULL_VALUE( LogFaultBufAddr1 ) \ DB_DEFAULT_NULL_VALUE( LogFaultBufAddr2 ) \ DB_DEFAULT_NULL_VALUE( LogFaultBufAddr3 ) \ DB_DEFAULT_NULL_VALUE( LogFaultBufAddr4 ) \ DB_DEFAULT_NULL_VALUE( CanSdoReadSucc ) \ DB_DEFAULT_NULL_VALUE( CanSimSetTimeDate ) \ DB_DEFAULT_NULL_VALUE( CanSimReadSerialNumber ) \ DB_DEFAULT_NULL_VALUE( SigPickup ) \ DB_DEFAULT_NULL_VALUE( SigPickupOc1F ) \ DB_DEFAULT_NULL_VALUE( SigPickupOc2F ) \ DB_DEFAULT_NULL_VALUE( SigPickupOc3F ) \ DB_DEFAULT_NULL_VALUE( SigPickupOc1R ) \ DB_DEFAULT_NULL_VALUE( SigPickupOc2R ) \ DB_DEFAULT_NULL_VALUE( SigPickupOc3R ) \ DB_DEFAULT_NULL_VALUE( SigPickupEf1F ) \ DB_DEFAULT_NULL_VALUE( SigPickupEf2F ) \ DB_DEFAULT_NULL_VALUE( SigPickupEf3F ) \ DB_DEFAULT_NULL_VALUE( SigPickupEf1R ) \ DB_DEFAULT_NULL_VALUE( SigPickupEf2R ) \ DB_DEFAULT_NULL_VALUE( SigPickupEf3R ) \ DB_DEFAULT_NULL_VALUE( SigPickupSefF ) \ DB_DEFAULT_NULL_VALUE( SigPickupSefR ) \ DB_DEFAULT_NULL_VALUE( SigPickupOcll ) \ DB_DEFAULT_NULL_VALUE( SigPickupEfll ) \ DB_DEFAULT_NULL_VALUE( SigPickupUv1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupUv2 ) \ DB_DEFAULT_NULL_VALUE( SigPickupUv3 ) \ DB_DEFAULT_NULL_VALUE( SigPickupOv1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupOv2 ) \ DB_DEFAULT_NULL_VALUE( SigPickupOf ) \ DB_DEFAULT_NULL_VALUE( SigPickupUf ) \ DB_DEFAULT_NULL_VALUE( SigPickupUabcGT ) \ DB_DEFAULT_NULL_VALUE( SigPickupUabcLT ) \ DB_DEFAULT_NULL_VALUE( SigPickupUrstGT ) \ DB_DEFAULT_NULL_VALUE( SigPickupUrstLT ) \ DB_DEFAULT_NULL_VALUE( G2_GrpDes ) \ DB_DEFAULT_NULL_VALUE( SigUSBHostOff ) \ DB_DEFAULT_NULL_VALUE( CanIo1PartAndSupplierCode ) \ DB_DEFAULT_NULL_VALUE( CanIo2PartAndSupplierCode ) \ DB_DEFAULT_NULL_VALUE( IdIO1SoftwareVer ) \ DB_DEFAULT_NULL_VALUE( IdIO2SoftwareVer ) \ DB_DEFAULT_NULL_VALUE( IdIO1HardwareVer ) \ DB_DEFAULT_NULL_VALUE( IdIO2HardwareVer ) \ DB_DEFAULT_NULL_VALUE( SigLockoutProt ) \ DB_DEFAULT_NULL_VALUE( LogicVAR1 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR2 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR3 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR4 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR5 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR6 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR7 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR8 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR9 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR10 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR11 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR12 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR13 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR14 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR15 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR16 ) \ DB_DEFAULT_NULL_VALUE( SigCtrlLoSeq2On ) \ DB_DEFAULT_NULL_VALUE( SigCtrlLoSeq3On ) \ DB_DEFAULT_NULL_VALUE( IoProcessOpMode ) \ DB_DEFAULT_NULL_VALUE( SigCtrlSSMOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlFTDisOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlLogTest ) \ DB_DEFAULT_NULL_VALUE( LogicCh1NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh2NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh3NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh4NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh5NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh6NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh7NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh8NameOffline ) \ DB_DEFAULT_NULL_VALUE( G3_GrpDes ) \ DB_DEFAULT_NULL_VALUE( LogicCh1Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh2Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh3Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh4Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh5Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh6Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh7Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh8Enable ) \ DB_DEFAULT_NULL_VALUE( SigMntActivated ) \ DB_DEFAULT_NULL_VALUE( SigCtrlACOOn ) \ DB_DEFAULT_NULL_VALUE( CanGpioFirmwareVerifyStatus ) \ DB_DEFAULT_NULL_VALUE( CanGpioFirmwareTypeRunning ) \ DB_DEFAULT_NULL_VALUE( IdGpioSoftwareVer ) \ DB_DEFAULT_NULL_VALUE( ProgramGpioCmd ) \ DB_DEFAULT_NULL_VALUE( LogicCh1Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh2Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh3Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh4Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh5Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh6Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh7Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh8Name ) \ DB_DEFAULT_NULL_VALUE( p2pMappedSignal_0 ) \ DB_DEFAULT_NULL_VALUE( p2pMappedSignal_1 ) \ DB_DEFAULT_NULL_VALUE( p2pMappedSignal_2 ) \ DB_DEFAULT_NULL_VALUE( p2pMappedSignal_3 ) \ DB_DEFAULT_NULL_VALUE( CanGpioRequestMoreData ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeSupply ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeLoad ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUV1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUVab ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUVbc ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUVca ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUFabc ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUVrs ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUVst ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUVtr ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeUFrst ) \ DB_DEFAULT_NULL_VALUE( SigLoadDead ) \ DB_DEFAULT_NULL_VALUE( SigSupplyUnhealthy ) \ DB_DEFAULT_NULL_VALUE( SigOpenPeer ) \ DB_DEFAULT_NULL_VALUE( SigClosedPeer ) \ DB_DEFAULT_NULL_VALUE( SigMalfunctionPeer ) \ DB_DEFAULT_NULL_VALUE( SigWarningPeer ) \ DB_DEFAULT_NULL_VALUE( ProtStatusStatePeer ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOFrst ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOFabc ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOVtr ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOVst ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOVrs ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOV1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOVab ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOVbc ) \ DB_DEFAULT_NULL_VALUE( SigPickupRangeOVca ) \ DB_DEFAULT_NULL_VALUE( SigOpenACO ) \ DB_DEFAULT_NULL_VALUE( SigClosedACO ) \ DB_DEFAULT_NULL_VALUE( SigSupplyUnhealthyPeer ) \ DB_DEFAULT_NULL_VALUE( SigCtrlACOOnPeer ) \ DB_DEFAULT_NULL_VALUE( G4_GrpDes ) \ DB_DEFAULT_NULL_VALUE( ACOUnhealthy ) \ DB_DEFAULT_NULL_VALUE( SigP2PCommFail ) \ DB_DEFAULT_NULL_VALUE( ACOIsMaster ) \ DB_DEFAULT_NULL_VALUE( ACOEnableSlave ) \ DB_DEFAULT_NULL_VALUE( ACOEnableSlavePeer ) \ DB_DEFAULT_NULL_VALUE( ACOSwRqst ) \ DB_DEFAULT_NULL_VALUE( ACOSwState ) \ DB_DEFAULT_NULL_VALUE( ACOSwStatePeer ) \ DB_DEFAULT_NULL_VALUE( ACOSwRqstPeer ) \ DB_DEFAULT_NULL_VALUE( ChEvLogic ) \ DB_DEFAULT_NULL_VALUE( ResetBinaryFaultTargets ) \ DB_DEFAULT_NULL_VALUE( IaTrip ) \ DB_DEFAULT_NULL_VALUE( IbTrip ) \ DB_DEFAULT_NULL_VALUE( IcTrip ) \ DB_DEFAULT_NULL_VALUE( InTrip ) \ DB_DEFAULT_NULL_VALUE( ResetTripCurrents ) \ DB_DEFAULT_NULL_VALUE( LoadDeadPeer ) \ DB_DEFAULT_NULL_VALUE( CanIoModuleResetStatus ) \ DB_DEFAULT_NULL_VALUE( SigOpenLogic ) \ DB_DEFAULT_NULL_VALUE( SigClosedLogic ) \ DB_DEFAULT_NULL_VALUE( ChEvIoSettings ) \ DB_DEFAULT_NULL_VALUE( SigOperWarning ) \ DB_DEFAULT_NULL_VALUE( SigOperWarningPeer ) \ DB_DEFAULT_NULL_VALUE( ScadaDnp3WatchDogControl ) \ DB_DEFAULT_NULL_VALUE( ScadaT10BWatchDogControl ) \ DB_DEFAULT_NULL_VALUE( IdRelayNumPlant ) \ DB_DEFAULT_NULL_VALUE( IdRelayNumDate ) \ DB_DEFAULT_NULL_VALUE( IdRelayNumSeq ) \ DB_DEFAULT_NULL_VALUE( IdRelaySwVer1 ) \ DB_DEFAULT_NULL_VALUE( IdRelaySwVer2 ) \ DB_DEFAULT_NULL_VALUE( IdRelaySwVer3 ) \ DB_DEFAULT_NULL_VALUE( IdRelaySwVer4 ) \ DB_DEFAULT_NULL_VALUE( IdSIMNumModel ) \ DB_DEFAULT_NULL_VALUE( IdSIMNumPlant ) \ DB_DEFAULT_NULL_VALUE( IdSIMNumDate ) \ DB_DEFAULT_NULL_VALUE( IdSIMNumSeq ) \ DB_DEFAULT_NULL_VALUE( IdSIMSwVer1 ) \ DB_DEFAULT_NULL_VALUE( IdSIMSwVer2 ) \ DB_DEFAULT_NULL_VALUE( IdSIMSwVer3 ) \ DB_DEFAULT_NULL_VALUE( IdSIMSwVer4 ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumModel ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumPlant ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumDate ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumSeq ) \ DB_DEFAULT_NULL_VALUE( SigRTCHwFault ) \ DB_DEFAULT_NULL_VALUE( SigCtrlLinkHltToLl ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOscCapture ) \ DB_DEFAULT_NULL_VALUE( SigPickupLSDIabc ) \ DB_DEFAULT_NULL_VALUE( OscEventTriggered ) \ DB_DEFAULT_NULL_VALUE( OscEventTriggerType ) \ DB_DEFAULT_NULL_VALUE( EventLogOldestId ) \ DB_DEFAULT_NULL_VALUE( EventLogNewestId ) \ DB_DEFAULT_NULL_VALUE( SettingLogOldestId ) \ DB_DEFAULT_NULL_VALUE( SettingLogNewestId ) \ DB_DEFAULT_NULL_VALUE( FaultLogOldestId ) \ DB_DEFAULT_NULL_VALUE( FaultLogNewestId ) \ DB_DEFAULT_NULL_VALUE( CloseOpenLogOldestId ) \ DB_DEFAULT_NULL_VALUE( CloseOpenLogNewestId ) \ DB_DEFAULT_NULL_VALUE( LoadProfileOldestId ) \ DB_DEFAULT_NULL_VALUE( LoadProfileNewestId ) \ DB_DEFAULT_NULL_VALUE( OscSimFilename ) \ DB_DEFAULT_NULL_VALUE( OscTraceDir ) \ DB_DEFAULT_NULL_VALUE( SigOpen ) \ DB_DEFAULT_NULL_VALUE( SigOpenProt ) \ DB_DEFAULT_NULL_VALUE( SigOpenOc1F ) \ DB_DEFAULT_NULL_VALUE( SigOpenOc2F ) \ DB_DEFAULT_NULL_VALUE( SigOpenOc3F ) \ DB_DEFAULT_NULL_VALUE( SigOpenOc1R ) \ DB_DEFAULT_NULL_VALUE( SigOpenOc2R ) \ DB_DEFAULT_NULL_VALUE( SigOpenOc3R ) \ DB_DEFAULT_NULL_VALUE( SigOpenEf1F ) \ DB_DEFAULT_NULL_VALUE( SigOpenEf2F ) \ DB_DEFAULT_NULL_VALUE( SigOpenEf3F ) \ DB_DEFAULT_NULL_VALUE( SigOpenEf1R ) \ DB_DEFAULT_NULL_VALUE( SigOpenEf2R ) \ DB_DEFAULT_NULL_VALUE( SigOpenEf3R ) \ DB_DEFAULT_NULL_VALUE( SigOpenSefF ) \ DB_DEFAULT_NULL_VALUE( SigOpenSefR ) \ DB_DEFAULT_NULL_VALUE( SigOpenOcll ) \ DB_DEFAULT_NULL_VALUE( SigOpenEfll ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv1 ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv2 ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv3 ) \ DB_DEFAULT_NULL_VALUE( SigOpenOv1 ) \ DB_DEFAULT_NULL_VALUE( SigOpenOv2 ) \ DB_DEFAULT_NULL_VALUE( SigOpenOf ) \ DB_DEFAULT_NULL_VALUE( SigOpenUf ) \ DB_DEFAULT_NULL_VALUE( SigOpenRemote ) \ DB_DEFAULT_NULL_VALUE( SigOpenSCADA ) \ DB_DEFAULT_NULL_VALUE( SigOpenIO ) \ DB_DEFAULT_NULL_VALUE( SigOpenLocal ) \ DB_DEFAULT_NULL_VALUE( SigOpenMMI ) \ DB_DEFAULT_NULL_VALUE( SigOpenPC ) \ DB_DEFAULT_NULL_VALUE( DEPRECATED_SigOpenManual ) \ DB_DEFAULT_NULL_VALUE( SigAlarm ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOc1F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOc2F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOc3F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOc1R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOc2R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOc3R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEf1F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEf2F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEf3F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEf1R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEf2R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEf3R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmSefF ) \ DB_DEFAULT_NULL_VALUE( SigAlarmSefR ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUv1 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUv2 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUv3 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOv1 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOv2 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOf ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUf ) \ DB_DEFAULT_NULL_VALUE( SigClosed ) \ DB_DEFAULT_NULL_VALUE( SigClosedAR ) \ DB_DEFAULT_NULL_VALUE( SigClosedAR_OcEf ) \ DB_DEFAULT_NULL_VALUE( SigClosedAR_Sef ) \ DB_DEFAULT_NULL_VALUE( SigClosedAR_Uv ) \ DB_DEFAULT_NULL_VALUE( SigClosedAR_Ov ) \ DB_DEFAULT_NULL_VALUE( SigClosedABR ) \ DB_DEFAULT_NULL_VALUE( SigClosedRemote ) \ DB_DEFAULT_NULL_VALUE( SigClosedSCADA ) \ DB_DEFAULT_NULL_VALUE( SigClosedIO ) \ DB_DEFAULT_NULL_VALUE( SigClosedLocal ) \ DB_DEFAULT_NULL_VALUE( SigClosedMMI ) \ DB_DEFAULT_NULL_VALUE( SigClosedPC ) \ DB_DEFAULT_NULL_VALUE( SigClosedUndef ) \ DB_DEFAULT_NULL_VALUE( CanSimBusErr ) \ DB_DEFAULT_NULL_VALUE( SigCtrlProtOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlGroup1On ) \ DB_DEFAULT_NULL_VALUE( SigCtrlGroup2On ) \ DB_DEFAULT_NULL_VALUE( SigCtrlGroup3On ) \ DB_DEFAULT_NULL_VALUE( SigCtrlGroup4On ) \ DB_DEFAULT_NULL_VALUE( SigCtrlEFOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlSEFOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlUVOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlUFOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlOVOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlOFOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlCLPOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlLLOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlAROn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlMNTOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlABROn ) \ DB_DEFAULT_NULL_VALUE( SigStatusConnectionEstablished ) \ DB_DEFAULT_NULL_VALUE( SigStatusConnectionCompleted ) \ DB_DEFAULT_NULL_VALUE( SigStatusDialupInitiated ) \ DB_DEFAULT_NULL_VALUE( SigStatusDialupFailed ) \ DB_DEFAULT_NULL_VALUE( SigMalfunction ) \ DB_DEFAULT_NULL_VALUE( SigMalfRelay ) \ DB_DEFAULT_NULL_VALUE( SigMalfSimComms ) \ DB_DEFAULT_NULL_VALUE( SigMalfIo1Comms ) \ DB_DEFAULT_NULL_VALUE( SigMalfIo2Comms ) \ DB_DEFAULT_NULL_VALUE( SigMalfIo1Fault ) \ DB_DEFAULT_NULL_VALUE( SigMalfIo2Fault ) \ DB_DEFAULT_NULL_VALUE( SigWarning ) \ DB_DEFAULT_NULL_VALUE( IdRelayDbVer ) \ DB_DEFAULT_NULL_VALUE( IdRelaySoftwareVer ) \ DB_DEFAULT_NULL_VALUE( IdRelayHardwareVer ) \ DB_DEFAULT_NULL_VALUE( IdSIMSoftwareVer ) \ DB_DEFAULT_NULL_VALUE( IdSIMHardwareVer ) \ DB_DEFAULT_NULL_VALUE( IdPanelHMIVer ) \ DB_DEFAULT_NULL_VALUE( IdPanelSoftwareVer ) \ DB_DEFAULT_NULL_VALUE( IdPanelHardwareVer ) \ DB_DEFAULT_NULL_VALUE( HltEnableCid ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpen ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstClose ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRemoteOn ) \ DB_DEFAULT_NULL_VALUE( SigGenLockout ) \ DB_DEFAULT_NULL_VALUE( SigGenARInit ) \ DB_DEFAULT_NULL_VALUE( SigGenProtInit ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusActive ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripFail ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseFail ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripActive ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseActive ) \ DB_DEFAULT_NULL_VALUE( SigSwitchPositionStatusUnavailable ) \ DB_DEFAULT_NULL_VALUE( SigSwitchManualTrip ) \ DB_DEFAULT_NULL_VALUE( SigSwitchDisconnectionStatus ) \ DB_DEFAULT_NULL_VALUE( SigSwitchLockoutStatusMechaniclocked ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusCoilOc ) \ DB_DEFAULT_NULL_VALUE( SigOsmActuatorFaultStatusCoilSc ) \ DB_DEFAULT_NULL_VALUE( SigOsmLimitFaultStatusFault ) \ DB_DEFAULT_NULL_VALUE( SigDriverStatusNotReady ) \ DB_DEFAULT_NULL_VALUE( SigBatteryStatusAbnormal ) \ DB_DEFAULT_NULL_VALUE( SigBatteryChargerStatusFlat ) \ DB_DEFAULT_NULL_VALUE( SigBatteryChargerStatusNormal ) \ DB_DEFAULT_NULL_VALUE( SigBatteryChargerStatusLowPower ) \ DB_DEFAULT_NULL_VALUE( SigBatteryChargerStatusTrickle ) \ DB_DEFAULT_NULL_VALUE( SigBatteryChargerStatusFails ) \ DB_DEFAULT_NULL_VALUE( SigLowPowerBatteryCharge ) \ DB_DEFAULT_NULL_VALUE( SigExtSupplyStatusOff ) \ DB_DEFAULT_NULL_VALUE( SigExtSupplyStatusOverLoad ) \ DB_DEFAULT_NULL_VALUE( SigUPSStatusAcOff ) \ DB_DEFAULT_NULL_VALUE( SigUPSStatusBatteryOff ) \ DB_DEFAULT_NULL_VALUE( SigUPSPowerDown ) \ DB_DEFAULT_NULL_VALUE( SigModuleSimHealthFault ) \ DB_DEFAULT_NULL_VALUE( SigModuleTypeSimDisconnected ) \ DB_DEFAULT_NULL_VALUE( SigModuleTypeIo1Connected ) \ DB_DEFAULT_NULL_VALUE( SigModuleTypeIo2Connected ) \ DB_DEFAULT_NULL_VALUE( SigModuleTypePcConnected ) \ DB_DEFAULT_NULL_VALUE( SigCANControllerOverrun ) \ DB_DEFAULT_NULL_VALUE( SigCANControllerError ) \ DB_DEFAULT_NULL_VALUE( SigCANMessagebufferoverflow ) \ DB_DEFAULT_NULL_VALUE( fpgaBaseAddr ) \ DB_DEFAULT_NULL_VALUE( SigClosedAR_VE ) \ DB_DEFAULT_NULL_VALUE( seqSimulatorFname ) \ DB_DEFAULT_NULL_VALUE( enSwSimulator ) \ DB_DEFAULT_NULL_VALUE( TestIo ) \ DB_DEFAULT_NULL_VALUE( ProtEfDir ) \ DB_DEFAULT_NULL_VALUE( ProtSefDir ) \ DB_DEFAULT_NULL_VALUE( FaultProfileDataAddr ) \ DB_DEFAULT_NULL_VALUE( dbSaveFName ) \ DB_DEFAULT_NULL_VALUE( dbConfigFName ) \ DB_DEFAULT_NULL_VALUE( CanSimTripRequestFailCode ) \ DB_DEFAULT_NULL_VALUE( CanSimTripRetry ) \ DB_DEFAULT_NULL_VALUE( CanSimOperationFault ) \ DB_DEFAULT_NULL_VALUE( CanSimCloseRequestFailCode ) \ DB_DEFAULT_NULL_VALUE( CanSimCloseRetry ) \ DB_DEFAULT_NULL_VALUE( IdRelayFpgaVer ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusQ503Failed ) \ DB_DEFAULT_NULL_VALUE( StartSimCalibration ) \ DB_DEFAULT_NULL_VALUE( CanSimFirmwareTypeRunning ) \ DB_DEFAULT_NULL_VALUE( CanSimRequestMoreData ) \ DB_DEFAULT_NULL_VALUE( CanSimFirmwareVerifyStatus ) \ DB_DEFAULT_NULL_VALUE( HmiResourceFile ) \ DB_DEFAULT_NULL_VALUE( StartSwgCalibration ) \ DB_DEFAULT_NULL_VALUE( ChEvLoadProfDef ) \ DB_DEFAULT_NULL_VALUE( StartRelayCalibration ) \ DB_DEFAULT_NULL_VALUE( Dnp3DataflowUnit ) \ DB_DEFAULT_NULL_VALUE( Dnp3RxCnt ) \ DB_DEFAULT_NULL_VALUE( Dnp3TxCnt ) \ DB_DEFAULT_NULL_VALUE( SigPickupPhA ) \ DB_DEFAULT_NULL_VALUE( SigPickupPhB ) \ DB_DEFAULT_NULL_VALUE( SigPickupPhC ) \ DB_DEFAULT_NULL_VALUE( SigPickupPhN ) \ DB_DEFAULT_NULL_VALUE( SigMalfComms ) \ DB_DEFAULT_NULL_VALUE( SigMalfPanelComms ) \ DB_DEFAULT_NULL_VALUE( SigMalfRc10 ) \ DB_DEFAULT_NULL_VALUE( SigMalfModule ) \ DB_DEFAULT_NULL_VALUE( SigMalfPanelModule ) \ DB_DEFAULT_NULL_VALUE( SigMalfOsm ) \ DB_DEFAULT_NULL_VALUE( SigMalfCanBus ) \ DB_DEFAULT_NULL_VALUE( SigOpenPhA ) \ DB_DEFAULT_NULL_VALUE( SigOpenPhB ) \ DB_DEFAULT_NULL_VALUE( SigOpenPhC ) \ DB_DEFAULT_NULL_VALUE( SigOpenPhN ) \ DB_DEFAULT_NULL_VALUE( SigOpenABRAutoOpen ) \ DB_DEFAULT_NULL_VALUE( SigOpenUndef ) \ DB_DEFAULT_NULL_VALUE( SigAlarmPhA ) \ DB_DEFAULT_NULL_VALUE( SigAlarmPhB ) \ DB_DEFAULT_NULL_VALUE( SigAlarmPhC ) \ DB_DEFAULT_NULL_VALUE( SigAlarmPhN ) \ DB_DEFAULT_NULL_VALUE( SigClosedABRAutoOpen ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldOpen ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldClose ) \ DB_DEFAULT_NULL_VALUE( G1_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G2_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G3_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G4_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G1_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G1_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G1_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G1_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G2_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G2_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G2_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G2_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G3_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G3_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G3_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G3_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G4_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G4_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G4_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G4_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G1_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G1_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G1_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G1_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G1_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G1_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G1_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G1_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G1_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G1_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G1_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G2_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G2_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G2_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G2_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G2_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G2_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G2_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G2_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G2_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G2_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G2_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G3_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G3_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G3_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G3_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G3_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G3_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G3_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G3_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G3_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G3_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G3_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G4_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G4_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G4_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G4_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G4_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G4_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G4_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G4_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G4_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G4_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G4_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( UsbDiscMountPath ) \ DB_DEFAULT_NULL_VALUE( CanSimPartAndSupplierCode ) \ DB_DEFAULT_NULL_VALUE( CanSimCalibrationInvalidate ) \ DB_DEFAULT_NULL_VALUE( ScadaCounterBufferC1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupLSD ) \ DB_DEFAULT_NULL_VALUE( SigCtrlLocalOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlTestBit ) \ DB_DEFAULT_NULL_VALUE( SigUpsPowerUp ) \ DB_DEFAULT_NULL_VALUE( SigLineSupplyStatusNormal ) \ DB_DEFAULT_NULL_VALUE( SigLineSupplyStatusOff ) \ DB_DEFAULT_NULL_VALUE( SigLineSupplyStatusHigh ) \ DB_DEFAULT_NULL_VALUE( SigOperationFaultCap ) \ DB_DEFAULT_NULL_VALUE( SigRelayCANMessagebufferoverflow ) \ DB_DEFAULT_NULL_VALUE( SigRelayCANControllerError ) \ DB_DEFAULT_NULL_VALUE( G5_ConnectionStatus ) \ DB_DEFAULT_NULL_VALUE( G5_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G6_ConnectionStatus ) \ DB_DEFAULT_NULL_VALUE( G6_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G7_ConnectionStatus ) \ DB_DEFAULT_NULL_VALUE( G7_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G8_ConnectionStatus ) \ DB_DEFAULT_NULL_VALUE( G8_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G5_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G5_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G5_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G5_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G6_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G6_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G6_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G6_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G7_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G7_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G7_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G7_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G8_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G8_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G8_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G8_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G5_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G5_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G5_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G5_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G5_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G5_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G5_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G5_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G5_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G5_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G5_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G5_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G5_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G5_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G6_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G6_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G6_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G6_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G6_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G6_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G6_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G6_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G6_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G6_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G6_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G6_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G6_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G6_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G7_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G7_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G7_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G7_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G7_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G7_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G7_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G7_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G7_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G7_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G7_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G7_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G7_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G7_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G8_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G8_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G8_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G8_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G8_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G8_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G8_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G8_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G8_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G8_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G8_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G8_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G8_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G8_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( SigCtrlHRMOn ) \ DB_DEFAULT_NULL_VALUE( SigPickupHrm ) \ DB_DEFAULT_NULL_VALUE( SigAlarmHrm ) \ DB_DEFAULT_NULL_VALUE( SigOpenHrm ) \ DB_DEFAULT_NULL_VALUE( SigCtrlBlockProtOpenOn ) \ DB_DEFAULT_NULL_VALUE( CanIo1OutputSetMasked ) \ DB_DEFAULT_NULL_VALUE( CanIo2OutputSetMasked ) \ DB_DEFAULT_NULL_VALUE( LogInterruptDir ) \ DB_DEFAULT_NULL_VALUE( LogSagSwellDir ) \ DB_DEFAULT_NULL_VALUE( LogHrmDir ) \ DB_DEFAULT_NULL_VALUE( G11_ConnectionStatus ) \ DB_DEFAULT_NULL_VALUE( G11_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G11_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G11_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G11_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G11_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G11_ModemDialNumber1 ) \ DB_DEFAULT_NULL_VALUE( G11_ModemDialNumber2 ) \ DB_DEFAULT_NULL_VALUE( G11_ModemDialNumber3 ) \ DB_DEFAULT_NULL_VALUE( G11_ModemDialNumber4 ) \ DB_DEFAULT_NULL_VALUE( G11_ModemDialNumber5 ) \ DB_DEFAULT_NULL_VALUE( G11_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G11_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G11_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G11_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G11_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G11_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G11_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G11_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G11_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G11_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G11_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G11_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G11_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G11_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( SigPickupNps1F ) \ DB_DEFAULT_NULL_VALUE( SigPickupNps2F ) \ DB_DEFAULT_NULL_VALUE( SigPickupNps3F ) \ DB_DEFAULT_NULL_VALUE( SigPickupNps1R ) \ DB_DEFAULT_NULL_VALUE( SigPickupNps2R ) \ DB_DEFAULT_NULL_VALUE( SigPickupNps3R ) \ DB_DEFAULT_NULL_VALUE( SigPickupOcll1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupOcll2 ) \ DB_DEFAULT_NULL_VALUE( SigPickupNpsll1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupNpsll2 ) \ DB_DEFAULT_NULL_VALUE( SigPickupNpsll3 ) \ DB_DEFAULT_NULL_VALUE( SigPickupEfll1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupEfll2 ) \ DB_DEFAULT_NULL_VALUE( SigPickupSefll ) \ DB_DEFAULT_NULL_VALUE( SigOpenNps1F ) \ DB_DEFAULT_NULL_VALUE( SigOpenNps2F ) \ DB_DEFAULT_NULL_VALUE( SigOpenNps3F ) \ DB_DEFAULT_NULL_VALUE( SigOpenNps1R ) \ DB_DEFAULT_NULL_VALUE( SigOpenNps2R ) \ DB_DEFAULT_NULL_VALUE( SigOpenNps3R ) \ DB_DEFAULT_NULL_VALUE( SigOpenOcll1 ) \ DB_DEFAULT_NULL_VALUE( SigOpenOcll2 ) \ DB_DEFAULT_NULL_VALUE( SigOpenNpsll1 ) \ DB_DEFAULT_NULL_VALUE( SigOpenNpsll2 ) \ DB_DEFAULT_NULL_VALUE( SigOpenNpsll3 ) \ DB_DEFAULT_NULL_VALUE( SigOpenEfll1 ) \ DB_DEFAULT_NULL_VALUE( SigOpenEfll2 ) \ DB_DEFAULT_NULL_VALUE( SigOpenSefll ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNps1F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNps2F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNps3F ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNps1R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNps2R ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNps3R ) \ DB_DEFAULT_NULL_VALUE( SigCtrlNPSOn ) \ DB_DEFAULT_NULL_VALUE( G1_Ov1_SingleTripleVoltageType ) \ DB_DEFAULT_NULL_VALUE( G2_Ov1_SingleTripleVoltageType ) \ DB_DEFAULT_NULL_VALUE( G3_Ov1_SingleTripleVoltageType ) \ DB_DEFAULT_NULL_VALUE( G4_Ov1_SingleTripleVoltageType ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldOpenHigh ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldCloseHigh ) \ DB_DEFAULT_NULL_VALUE( IdRelayModelStr ) \ DB_DEFAULT_NULL_VALUE( SigOpenOc ) \ DB_DEFAULT_NULL_VALUE( SigOpenEf ) \ DB_DEFAULT_NULL_VALUE( SigOpenSef ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv ) \ DB_DEFAULT_NULL_VALUE( SigOpenOv ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOc ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEf ) \ DB_DEFAULT_NULL_VALUE( SigAlarmSef ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUv ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOv ) \ DB_DEFAULT_NULL_VALUE( SigPickupOc ) \ DB_DEFAULT_NULL_VALUE( SigPickupEf ) \ DB_DEFAULT_NULL_VALUE( SigPickupSef ) \ DB_DEFAULT_NULL_VALUE( SigPickupUv ) \ DB_DEFAULT_NULL_VALUE( SigPickupOv ) \ DB_DEFAULT_NULL_VALUE( SigMalfLoadSavedDb ) \ DB_DEFAULT_NULL_VALUE( UsbDiscInstallPossible ) \ DB_DEFAULT_NULL_VALUE( SigClosedUV3AutoClose ) \ DB_DEFAULT_NULL_VALUE( I2Trip ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstCloseA ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstCloseB ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstCloseC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstCloseAB ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstCloseAC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstCloseBC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstCloseABC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpenA ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpenB ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpenC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpenAB ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpenAC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpenBC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstOpenABC ) \ DB_DEFAULT_NULL_VALUE( CanSimTripRequestFailCodeB ) \ DB_DEFAULT_NULL_VALUE( CanSimTripRequestFailCodeC ) \ DB_DEFAULT_NULL_VALUE( CanSimCloseRequestFailCodeB ) \ DB_DEFAULT_NULL_VALUE( CanSimCloseRequestFailCodeC ) \ DB_DEFAULT_NULL_VALUE( CanSimTripRetryB ) \ DB_DEFAULT_NULL_VALUE( CanSimTripRetryC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlUV4On ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4 ) \ DB_DEFAULT_NULL_VALUE( SigMalfSimRunningMiniBootloader ) \ DB_DEFAULT_NULL_VALUE( SigOpenSwitchA ) \ DB_DEFAULT_NULL_VALUE( SigOpenSwitchB ) \ DB_DEFAULT_NULL_VALUE( SigOpenSwitchC ) \ DB_DEFAULT_NULL_VALUE( SigClosedSwitchA ) \ DB_DEFAULT_NULL_VALUE( SigClosedSwitchB ) \ DB_DEFAULT_NULL_VALUE( SigClosedSwitchC ) \ DB_DEFAULT_NULL_VALUE( SigSwitchDisconnectionStatusA ) \ DB_DEFAULT_NULL_VALUE( SigSwitchDisconnectionStatusB ) \ DB_DEFAULT_NULL_VALUE( SigSwitchDisconnectionStatusC ) \ DB_DEFAULT_NULL_VALUE( SigSwitchLockoutStatusMechaniclockedA ) \ DB_DEFAULT_NULL_VALUE( SigSwitchLockoutStatusMechaniclockedB ) \ DB_DEFAULT_NULL_VALUE( SigSwitchLockoutStatusMechaniclockedC ) \ DB_DEFAULT_NULL_VALUE( SigMalfOsmA ) \ DB_DEFAULT_NULL_VALUE( SigMalfOsmB ) \ DB_DEFAULT_NULL_VALUE( SigMalfOsmC ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusCoilOcA ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusCoilOcB ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusCoilOcC ) \ DB_DEFAULT_NULL_VALUE( SigOsmActuatorFaultStatusCoilScA ) \ DB_DEFAULT_NULL_VALUE( SigOsmActuatorFaultStatusCoilScB ) \ DB_DEFAULT_NULL_VALUE( SigOsmActuatorFaultStatusCoilScC ) \ DB_DEFAULT_NULL_VALUE( SigOsmLimitFaultStatusFaultA ) \ DB_DEFAULT_NULL_VALUE( SigOsmLimitFaultStatusFaultB ) \ DB_DEFAULT_NULL_VALUE( SigOsmLimitFaultStatusFaultC ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusQ503FailedA ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusQ503FailedB ) \ DB_DEFAULT_NULL_VALUE( SigOSMActuatorFaultStatusQ503FailedC ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusActiveA ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusActiveB ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusActiveC ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripFailA ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripFailB ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripFailC ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseFailA ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseFailB ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseFailC ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripActiveA ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripActiveB ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusTripActiveC ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseActiveA ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseActiveB ) \ DB_DEFAULT_NULL_VALUE( SigTripCloseRequestStatusCloseActiveC ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPhaseSelA ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPhaseSelB ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPhaseSelC ) \ DB_DEFAULT_NULL_VALUE( SigPickupUv4 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUv4 ) \ DB_DEFAULT_NULL_VALUE( SigPickupUabcUv4 ) \ DB_DEFAULT_NULL_VALUE( SigPickupUrstUv4 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUabcUv4 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUrstUv4 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUv4Midpoint ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUabcUv4Midpoint ) \ DB_DEFAULT_NULL_VALUE( SigAlarmUrstUv4Midpoint ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Midpoint ) \ DB_DEFAULT_NULL_VALUE( SigOpenUabcUv4Midpoint ) \ DB_DEFAULT_NULL_VALUE( SigOpenUrstUv4Midpoint ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Ua ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Ub ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Uc ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Ur ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Us ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Ut ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Uab ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Ubc ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Uca ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Urs ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Ust ) \ DB_DEFAULT_NULL_VALUE( SigOpenUv4Utr ) \ DB_DEFAULT_NULL_VALUE( SigStatusCloseBlockingUv4 ) \ DB_DEFAULT_NULL_VALUE( ActiveSwitchPositionStatusST ) \ DB_DEFAULT_NULL_VALUE( SimulSwitchPositionStatusST ) \ DB_DEFAULT_NULL_VALUE( SigGenLockoutA ) \ DB_DEFAULT_NULL_VALUE( SigGenLockoutB ) \ DB_DEFAULT_NULL_VALUE( SigGenLockoutC ) \ DB_DEFAULT_NULL_VALUE( SigLockoutProtA ) \ DB_DEFAULT_NULL_VALUE( SigLockoutProtB ) \ DB_DEFAULT_NULL_VALUE( SigLockoutProtC ) \ DB_DEFAULT_NULL_VALUE( SwitchFailureStatusFlagB ) \ DB_DEFAULT_NULL_VALUE( SwitchFailureStatusFlagC ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldOpenB ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldOpenHighB ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldOpenC ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldOpenHighC ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldCloseB ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldCloseHighB ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldCloseC ) \ DB_DEFAULT_NULL_VALUE( SignalBitFieldCloseHighC ) \ DB_DEFAULT_NULL_VALUE( swsimInLockoutB ) \ DB_DEFAULT_NULL_VALUE( swsimInLockoutC ) \ DB_DEFAULT_NULL_VALUE( SimRqOpenB ) \ DB_DEFAULT_NULL_VALUE( SimRqOpenC ) \ DB_DEFAULT_NULL_VALUE( SimRqCloseB ) \ DB_DEFAULT_NULL_VALUE( SimRqCloseC ) \ DB_DEFAULT_NULL_VALUE( SigSwitchLogicallyLockedA ) \ DB_DEFAULT_NULL_VALUE( SigSwitchLogicallyLockedB ) \ DB_DEFAULT_NULL_VALUE( SigSwitchLogicallyLockedC ) \ DB_DEFAULT_NULL_VALUE( SigBatteryTestInitiate ) \ DB_DEFAULT_NULL_VALUE( SigBatteryTestRunning ) \ DB_DEFAULT_NULL_VALUE( SigBatteryTestPassed ) \ DB_DEFAULT_NULL_VALUE( SigBatteryTestNotPerformed ) \ DB_DEFAULT_NULL_VALUE( SigBatteryTestCheckBattery ) \ DB_DEFAULT_NULL_VALUE( SigBatteryTestFaulty ) \ DB_DEFAULT_NULL_VALUE( SigBatteryTestAutoOn ) \ DB_DEFAULT_NULL_VALUE( SigTrip3Lockout3On ) \ DB_DEFAULT_NULL_VALUE( SigTrip1Lockout3On ) \ DB_DEFAULT_NULL_VALUE( SigTrip1Lockout1On ) \ DB_DEFAULT_NULL_VALUE( MeasPowerFactorS3phase ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut01 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut02 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut03 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut04 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut05 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut06 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut07 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut08 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut09 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut10 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut11 ) \ DB_DEFAULT_NULL_VALUE( UserAnalogOut12 ) \ DB_DEFAULT_NULL_VALUE( SigGenARInitA ) \ DB_DEFAULT_NULL_VALUE( SigGenARInitB ) \ DB_DEFAULT_NULL_VALUE( SigGenARInitC ) \ DB_DEFAULT_NULL_VALUE( SigIncorrectPhaseSeq ) \ DB_DEFAULT_NULL_VALUE( TripHrmComponentA ) \ DB_DEFAULT_NULL_VALUE( TripHrmComponentB ) \ DB_DEFAULT_NULL_VALUE( TripHrmComponentC ) \ DB_DEFAULT_NULL_VALUE( CntrHrmATrips ) \ DB_DEFAULT_NULL_VALUE( CntrHrmBTrips ) \ DB_DEFAULT_NULL_VALUE( CntrHrmCTrips ) \ DB_DEFAULT_NULL_VALUE( CntrHrmNTrips ) \ DB_DEFAULT_NULL_VALUE( CntrUvATrips ) \ DB_DEFAULT_NULL_VALUE( CntrUvBTrips ) \ DB_DEFAULT_NULL_VALUE( CntrUvCTrips ) \ DB_DEFAULT_NULL_VALUE( CntrOvATrips ) \ DB_DEFAULT_NULL_VALUE( CntrOvBTrips ) \ DB_DEFAULT_NULL_VALUE( CntrOvCTrips ) \ DB_DEFAULT_NULL_VALUE( TripMinUvA ) \ DB_DEFAULT_NULL_VALUE( TripMinUvB ) \ DB_DEFAULT_NULL_VALUE( TripMinUvC ) \ DB_DEFAULT_NULL_VALUE( TripMaxOvA ) \ DB_DEFAULT_NULL_VALUE( TripMaxOvB ) \ DB_DEFAULT_NULL_VALUE( TripMaxOvC ) \ DB_DEFAULT_NULL_VALUE( SigAlarmSwitchA ) \ DB_DEFAULT_NULL_VALUE( SigAlarmSwitchB ) \ DB_DEFAULT_NULL_VALUE( SigAlarmSwitchC ) \ DB_DEFAULT_NULL_VALUE( SigOpenLSRM ) \ DB_DEFAULT_NULL_VALUE( OscTraceUsbDir ) \ DB_DEFAULT_NULL_VALUE( GenericDir ) \ DB_DEFAULT_NULL_VALUE( SigCtrlLLBOn ) \ DB_DEFAULT_NULL_VALUE( SigStatusCloseBlockingLLB ) \ DB_DEFAULT_NULL_VALUE( AlarmMode ) \ DB_DEFAULT_NULL_VALUE( SigFaultTargetOpen ) \ DB_DEFAULT_NULL_VALUE( GOOSE_broadcastMacAddr ) \ DB_DEFAULT_NULL_VALUE( s61850IEDName ) \ DB_DEFAULT_NULL_VALUE( SigOpenSectionaliser ) \ DB_DEFAULT_NULL_VALUE( SigCmdResetProtConfig ) \ DB_DEFAULT_NULL_VALUE( SigMalfSectionaliserMismatch ) \ DB_DEFAULT_NULL_VALUE( SigCtrlSectionaliserOn ) \ DB_DEFAULT_NULL_VALUE( UnitTestRoundTrip ) \ DB_DEFAULT_NULL_VALUE( SigOpenSim ) \ DB_DEFAULT_NULL_VALUE( SigFaultTarget ) \ DB_DEFAULT_NULL_VALUE( SigFaultTargetNonOpen ) \ DB_DEFAULT_NULL_VALUE( SigOpenOcllTop ) \ DB_DEFAULT_NULL_VALUE( SigOpenEfllTop ) \ DB_DEFAULT_NULL_VALUE( LogicVAR17 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR18 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR19 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR20 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR21 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR22 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR23 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR24 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR25 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR26 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR27 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR28 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR29 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR30 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR31 ) \ DB_DEFAULT_NULL_VALUE( LogicVAR32 ) \ DB_DEFAULT_NULL_VALUE( s61850TestDI3Sig ) \ DB_DEFAULT_NULL_VALUE( LogicCh9Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh9Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh9NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh10Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh10Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh10NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh11Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh11Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh11NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh12Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh12Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh12NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh13Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh13Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh13NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh14Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh14Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh14NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh15Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh15Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh15NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh16Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh16Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh16NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh17Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh17Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh17NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh18Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh18Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh18NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh19Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh19Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh19NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh20Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh20Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh20NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh21Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh21Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh21NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh22Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh22Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh22NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh23Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh23Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh23NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh24Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh24Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh24NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh25Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh25Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh25NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh26Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh26Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh26NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh27Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh27Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh27NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh28Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh28Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh28NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh29Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh29Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh29NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh30Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh30Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh30NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh31Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh31Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh31NameOffline ) \ DB_DEFAULT_NULL_VALUE( LogicCh32Enable ) \ DB_DEFAULT_NULL_VALUE( LogicCh32Name ) \ DB_DEFAULT_NULL_VALUE( LogicCh32NameOffline ) \ DB_DEFAULT_NULL_VALUE( SigStatusCloseBlocked ) \ DB_DEFAULT_NULL_VALUE( SigOpenNps ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNps ) \ DB_DEFAULT_NULL_VALUE( SigMalfGpioRunningMiniBootloader ) \ DB_DEFAULT_NULL_VALUE( SigAlarmProtectionOperation ) \ DB_DEFAULT_NULL_VALUE( s61850GseSig1 ) \ DB_DEFAULT_NULL_VALUE( s61850GseSig2 ) \ DB_DEFAULT_NULL_VALUE( s61850GseSig3 ) \ DB_DEFAULT_NULL_VALUE( s61850GseSig4 ) \ DB_DEFAULT_NULL_VALUE( s61850GseSig5 ) \ DB_DEFAULT_NULL_VALUE( s61850GseSig6 ) \ DB_DEFAULT_NULL_VALUE( s61850GseSig7 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp1 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp2 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp3 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp4 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp5 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp6 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp7 ) \ DB_DEFAULT_NULL_VALUE( s61850GseFp8 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt1 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt2 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt3 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt4 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt5 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt6 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt7 ) \ DB_DEFAULT_NULL_VALUE( s61850GseInt8 ) \ DB_DEFAULT_NULL_VALUE( SigPickupABR ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileVer ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileNetworkName ) \ DB_DEFAULT_NULL_VALUE( DNP3SA_UpdateKeyFileVer ) \ DB_DEFAULT_NULL_VALUE( IdSIMModelStr ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileUserNum ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileUserRole ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileCryptoAlg ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileDNP3SlaveAddr ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileDevSerialNum ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileKeyVer ) \ DB_DEFAULT_NULL_VALUE( DNP3SA_UpdateKeyFileKeyVer ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOv3 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOv4 ) \ DB_DEFAULT_NULL_VALUE( SigOpenOv3 ) \ DB_DEFAULT_NULL_VALUE( SigOpenOv4 ) \ DB_DEFAULT_NULL_VALUE( SigPickupOv3 ) \ DB_DEFAULT_NULL_VALUE( SigPickupOv4 ) \ DB_DEFAULT_NULL_VALUE( UsbDiscDNP3SAUpdateKeyFileName ) \ DB_DEFAULT_NULL_VALUE( BatteryTypeChangeSupported ) \ DB_DEFAULT_NULL_VALUE( SigLogicConfigIssue ) \ DB_DEFAULT_NULL_VALUE( SigLowestUa ) \ DB_DEFAULT_NULL_VALUE( SigLowestUb ) \ DB_DEFAULT_NULL_VALUE( SigLowestUc ) \ DB_DEFAULT_NULL_VALUE( SigCtrlInhibitMultiPhaseClosesOn ) \ DB_DEFAULT_NULL_VALUE( CanSimModuleFeatures ) \ DB_DEFAULT_NULL_VALUE( SigSwitchOpen ) \ DB_DEFAULT_NULL_VALUE( SigSwitchClosed ) \ DB_DEFAULT_NULL_VALUE( IdPSCSoftwareVer ) \ DB_DEFAULT_NULL_VALUE( IdPSCHardwareVer ) \ DB_DEFAULT_NULL_VALUE( CanPscReadSerialNumber ) \ DB_DEFAULT_NULL_VALUE( CanPscPartAndSupplierCode ) \ DB_DEFAULT_NULL_VALUE( SigModuleTypePscConnected ) \ DB_DEFAULT_NULL_VALUE( CanPscReadHWVers ) \ DB_DEFAULT_NULL_VALUE( CanPscFirmwareVerifyStatus ) \ DB_DEFAULT_NULL_VALUE( CanPscFirmwareTypeRunning ) \ DB_DEFAULT_NULL_VALUE( ProgramPscStatus ) \ DB_DEFAULT_NULL_VALUE( CanPscRequestMoreData ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstTripCloseA ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstTripCloseB ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRqstTripCloseC ) \ DB_DEFAULT_NULL_VALUE( SigClosedSwitchAll ) \ DB_DEFAULT_NULL_VALUE( SigOpenSwitchAll ) \ DB_DEFAULT_NULL_VALUE( SwitchgearTypeSIMChanged ) \ DB_DEFAULT_NULL_VALUE( SwitchgearTypeEraseSettings ) \ DB_DEFAULT_NULL_VALUE( UpdatePscNew ) \ DB_DEFAULT_NULL_VALUE( SigModuleTypePscDisconnected ) \ DB_DEFAULT_NULL_VALUE( SigMalfPscRunningMiniBootloader ) \ DB_DEFAULT_NULL_VALUE( SigMalfPscFault ) \ DB_DEFAULT_NULL_VALUE( CanPscModuleFault ) \ DB_DEFAULT_NULL_VALUE( CanPscModuleHealth ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOcll1 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOcll2 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmOcll3 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNpsll1 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNpsll2 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmNpsll3 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEfll1 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEfll2 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmEfll3 ) \ DB_DEFAULT_NULL_VALUE( SigAlarmSefll ) \ DB_DEFAULT_NULL_VALUE( SigStatusIEC61499FailedFBOOT ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumModelA ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumModelB ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumModelC ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumPlantA ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumPlantB ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumPlantC ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumDateA ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumDateB ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumDateC ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumSeqA ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumSeqB ) \ DB_DEFAULT_NULL_VALUE( IdOsmNumSeqC ) \ DB_DEFAULT_NULL_VALUE( LLBPhasesBlocked ) \ DB_DEFAULT_NULL_VALUE( SigGenLockoutAll ) \ DB_DEFAULT_NULL_VALUE( SigLockoutProtAll ) \ DB_DEFAULT_NULL_VALUE( Gps_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( SigGpsLocked ) \ DB_DEFAULT_NULL_VALUE( Gps_SyncSimTime ) \ DB_DEFAULT_NULL_VALUE( Gps_PPS ) \ DB_DEFAULT_NULL_VALUE( SigModuleSimUnhealthy ) \ DB_DEFAULT_NULL_VALUE( SigLanAvailable ) \ DB_DEFAULT_NULL_VALUE( MntReset ) \ DB_DEFAULT_NULL_VALUE( WlanAccessPointSSID ) \ DB_DEFAULT_NULL_VALUE( MobileNetworkModemSerialNumber ) \ DB_DEFAULT_NULL_VALUE( MobileNetworkIMEI ) \ DB_DEFAULT_NULL_VALUE( SigWlanAvailable ) \ DB_DEFAULT_NULL_VALUE( SigMobileNetworkAvailable ) \ DB_DEFAULT_NULL_VALUE( SigCommsBoardConnected ) \ DB_DEFAULT_NULL_VALUE( G12_ModemDialNumber1 ) \ DB_DEFAULT_NULL_VALUE( G12_ModemDialNumber2 ) \ DB_DEFAULT_NULL_VALUE( G12_ModemDialNumber3 ) \ DB_DEFAULT_NULL_VALUE( G12_ModemDialNumber4 ) \ DB_DEFAULT_NULL_VALUE( G12_ModemDialNumber5 ) \ DB_DEFAULT_NULL_VALUE( G12_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G12_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G12_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G12_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G12_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G12_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G12_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G12_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G12_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G12_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G12_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G12_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G12_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G12_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G13_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G12_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G12_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G12_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G12_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G13_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G13_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G13_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G13_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G13_ModemDialNumber1 ) \ DB_DEFAULT_NULL_VALUE( G13_ModemDialNumber2 ) \ DB_DEFAULT_NULL_VALUE( G13_ModemDialNumber3 ) \ DB_DEFAULT_NULL_VALUE( G13_ModemDialNumber4 ) \ DB_DEFAULT_NULL_VALUE( G13_ModemDialNumber5 ) \ DB_DEFAULT_NULL_VALUE( G13_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G13_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G13_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G13_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G13_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G13_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G13_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G13_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G13_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G13_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G13_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G13_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G13_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G13_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( SigMalfRel03 ) \ DB_DEFAULT_NULL_VALUE( SigMalfRel15 ) \ DB_DEFAULT_NULL_VALUE( SigMalfRel15_4G ) \ DB_DEFAULT_NULL_VALUE( SigWarningSyncSingleTriple ) \ DB_DEFAULT_NULL_VALUE( SyncAdvanceAngleStatus ) \ DB_DEFAULT_NULL_VALUE( SigAutoSynchroniserInitiate ) \ DB_DEFAULT_NULL_VALUE( SigAutoSynchroniserInitiated ) \ DB_DEFAULT_NULL_VALUE( SigAutoSynchroniserRelease ) \ DB_DEFAULT_NULL_VALUE( SigSyncHealthCheck ) \ DB_DEFAULT_NULL_VALUE( SigSyncTimedHealthCheck ) \ DB_DEFAULT_NULL_VALUE( SigSyncPhaseSeqMatch ) \ DB_DEFAULT_NULL_VALUE( MobileNetwork_DebugPortName ) \ DB_DEFAULT_NULL_VALUE( SyncMaxDeltaV ) \ DB_DEFAULT_NULL_VALUE( SigPickupNps ) \ DB_DEFAULT_NULL_VALUE( FaultProfileDataAddrB ) \ DB_DEFAULT_NULL_VALUE( FaultProfileDataAddrC ) \ DB_DEFAULT_NULL_VALUE( SyncStateFlags ) \ DB_DEFAULT_NULL_VALUE( DEPRECATED_PowerFlowDirection ) \ DB_DEFAULT_NULL_VALUE( SigCtrlRestrictTripMode ) \ DB_DEFAULT_NULL_VALUE( MobileNetworkPortName ) \ DB_DEFAULT_NULL_VALUE( WlanFWVersion ) \ DB_DEFAULT_NULL_VALUE( SigAutoSynchroniserCancel ) \ DB_DEFAULT_NULL_VALUE( SyncAutoAction ) \ DB_DEFAULT_NULL_VALUE( FreqabcROC ) \ DB_DEFAULT_NULL_VALUE( A_WT1 ) \ DB_DEFAULT_NULL_VALUE( A_WT2 ) \ DB_DEFAULT_NULL_VALUE( CloseReqAR ) \ DB_DEFAULT_NULL_VALUE( SigCtrlOV3On ) \ DB_DEFAULT_NULL_VALUE( SigHighPrecisionSEF ) \ DB_DEFAULT_NULL_VALUE( MeasVoltU0RST ) \ DB_DEFAULT_NULL_VALUE( MeasVoltUnRST ) \ DB_DEFAULT_NULL_VALUE( MeasVoltU1RST ) \ DB_DEFAULT_NULL_VALUE( MeasVoltU2RST ) \ DB_DEFAULT_NULL_VALUE( G1_OC1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_OC2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_OC1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_OC2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_NPS1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_NPS2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_NPS1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_NPS2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_EF1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_EF2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_EF1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_EF2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_OCLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_OCLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_NPSLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_NPSLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_EFLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_EFLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G1_Hrm_IndA_NameExt ) \ DB_DEFAULT_NULL_VALUE( G1_Hrm_IndB_NameExt ) \ DB_DEFAULT_NULL_VALUE( G1_Hrm_IndC_NameExt ) \ DB_DEFAULT_NULL_VALUE( G1_Hrm_IndD_NameExt ) \ DB_DEFAULT_NULL_VALUE( G1_Hrm_IndE_NameExt ) \ DB_DEFAULT_NULL_VALUE( G2_OC1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_OC2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_OC1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_OC2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_NPS1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_NPS2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_NPS1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_NPS2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_EF1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_EF2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_EF1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_EF2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_OCLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_OCLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_NPSLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_NPSLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_EFLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_EFLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G2_Hrm_IndA_NameExt ) \ DB_DEFAULT_NULL_VALUE( G2_Hrm_IndB_NameExt ) \ DB_DEFAULT_NULL_VALUE( G2_Hrm_IndC_NameExt ) \ DB_DEFAULT_NULL_VALUE( G2_Hrm_IndD_NameExt ) \ DB_DEFAULT_NULL_VALUE( G2_Hrm_IndE_NameExt ) \ DB_DEFAULT_NULL_VALUE( G3_OC1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_OC2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_OC1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_OC2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_NPS1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_NPS2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_NPS1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_NPS2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_EF1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_EF2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_EF1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_EF2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_OCLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_OCLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_NPSLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_NPSLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_EFLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_EFLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G3_Hrm_IndA_NameExt ) \ DB_DEFAULT_NULL_VALUE( G3_Hrm_IndB_NameExt ) \ DB_DEFAULT_NULL_VALUE( G3_Hrm_IndC_NameExt ) \ DB_DEFAULT_NULL_VALUE( G3_Hrm_IndD_NameExt ) \ DB_DEFAULT_NULL_VALUE( G3_Hrm_IndE_NameExt ) \ DB_DEFAULT_NULL_VALUE( G4_OC1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_OC2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_OC1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_OC2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_NPS1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_NPS2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_NPS1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_NPS2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_EF1F_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_EF2F_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_EF1R_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_EF2R_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_OCLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_OCLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_NPSLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_NPSLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_EFLL1_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_EFLL2_TccName ) \ DB_DEFAULT_NULL_VALUE( G4_Hrm_IndA_NameExt ) \ DB_DEFAULT_NULL_VALUE( G4_Hrm_IndB_NameExt ) \ DB_DEFAULT_NULL_VALUE( G4_Hrm_IndC_NameExt ) \ DB_DEFAULT_NULL_VALUE( G4_Hrm_IndD_NameExt ) \ DB_DEFAULT_NULL_VALUE( G4_Hrm_IndE_NameExt ) \ DB_DEFAULT_NULL_VALUE( SigCtrlYnOn ) \ DB_DEFAULT_NULL_VALUE( SigAlarmYn ) \ DB_DEFAULT_NULL_VALUE( SigPickupYn ) \ DB_DEFAULT_NULL_VALUE( SigOpenYn ) \ DB_DEFAULT_NULL_VALUE( CntrYnTrips ) \ DB_DEFAULT_NULL_VALUE( s61850GooseOpMode ) \ DB_DEFAULT_NULL_VALUE( RelayModelDisplayName ) \ DB_DEFAULT_NULL_VALUE( SwitchStateOwnerPtr ) \ DB_DEFAULT_NULL_VALUE( s61850CIDFileUpdateStatus ) \ DB_DEFAULT_NULL_VALUE( SigAlarmI2I1 ) \ DB_DEFAULT_NULL_VALUE( SigPickupI2I1 ) \ DB_DEFAULT_NULL_VALUE( SigOpenI2I1 ) \ DB_DEFAULT_NULL_VALUE( CntrI2I1Trips ) \ DB_DEFAULT_NULL_VALUE( MobileNetworkModemFWNumber ) \ DB_DEFAULT_NULL_VALUE( WlanMACAddr ) \ DB_DEFAULT_NULL_VALUE( Diagnostic1 ) \ DB_DEFAULT_NULL_VALUE( Diagnostic2 ) \ DB_DEFAULT_NULL_VALUE( Diagnostic3 ) \ DB_DEFAULT_NULL_VALUE( Diagnostic4 ) \ DB_DEFAULT_NULL_VALUE( MeasCurrIn_mA ) \ DB_DEFAULT_NULL_VALUE( InTrip_mA ) \ DB_DEFAULT_NULL_VALUE( TripMaxCurrIn_mA ) \ DB_DEFAULT_NULL_VALUE( CmdResetFaultTargets ) \ DB_DEFAULT_NULL_VALUE( SyncDiagnostics ) \ DB_DEFAULT_NULL_VALUE( CanPscHeatsinkTemp ) \ DB_DEFAULT_NULL_VALUE( CanPscModuleVoltage ) \ DB_DEFAULT_NULL_VALUE( SigClosedAutoSync ) \ DB_DEFAULT_NULL_VALUE( SigSyncDeltaVStatus ) \ DB_DEFAULT_NULL_VALUE( SigSyncSlipFreqStatus ) \ DB_DEFAULT_NULL_VALUE( SigSyncDeltaPhaseStatus ) \ DB_DEFAULT_NULL_VALUE( SigMalfWLAN ) \ DB_DEFAULT_NULL_VALUE( Gps_Latitude_Field1 ) \ DB_DEFAULT_NULL_VALUE( Gps_Latitude_Field2 ) \ DB_DEFAULT_NULL_VALUE( Gps_Latitude_Field3 ) \ DB_DEFAULT_NULL_VALUE( Gps_Longitude_Field1 ) \ DB_DEFAULT_NULL_VALUE( Gps_Longitude_Field2 ) \ DB_DEFAULT_NULL_VALUE( Gps_Longitude_Field3 ) \ DB_DEFAULT_NULL_VALUE( AlertName1 ) \ DB_DEFAULT_NULL_VALUE( AlertName2 ) \ DB_DEFAULT_NULL_VALUE( AlertName3 ) \ DB_DEFAULT_NULL_VALUE( AlertName4 ) \ DB_DEFAULT_NULL_VALUE( AlertName5 ) \ DB_DEFAULT_NULL_VALUE( AlertName6 ) \ DB_DEFAULT_NULL_VALUE( AlertName7 ) \ DB_DEFAULT_NULL_VALUE( AlertName8 ) \ DB_DEFAULT_NULL_VALUE( AlertName9 ) \ DB_DEFAULT_NULL_VALUE( AlertName10 ) \ DB_DEFAULT_NULL_VALUE( AlertName11 ) \ DB_DEFAULT_NULL_VALUE( AlertName12 ) \ DB_DEFAULT_NULL_VALUE( AlertName13 ) \ DB_DEFAULT_NULL_VALUE( AlertName14 ) \ DB_DEFAULT_NULL_VALUE( AlertName15 ) \ DB_DEFAULT_NULL_VALUE( AlertName16 ) \ DB_DEFAULT_NULL_VALUE( AlertName17 ) \ DB_DEFAULT_NULL_VALUE( AlertName18 ) \ DB_DEFAULT_NULL_VALUE( AlertName19 ) \ DB_DEFAULT_NULL_VALUE( AlertName20 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr1 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr2 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr3 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr4 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr5 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr6 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr7 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr8 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr9 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr10 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr11 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr12 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr13 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr14 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr15 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr16 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr17 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr18 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr19 ) \ DB_DEFAULT_NULL_VALUE( AlertExpr20 ) \ DB_DEFAULT_NULL_VALUE( AlertDefaultsPopulated ) \ DB_DEFAULT_NULL_VALUE( AlertDisplayNamesChanged ) \ DB_DEFAULT_NULL_VALUE( WlanClientMACAddr1 ) \ DB_DEFAULT_NULL_VALUE( WlanClientMACAddr2 ) \ DB_DEFAULT_NULL_VALUE( WlanClientMACAddr3 ) \ DB_DEFAULT_NULL_VALUE( WlanClientMACAddr4 ) \ DB_DEFAULT_NULL_VALUE( WlanClientMACAddr5 ) \ DB_DEFAULT_NULL_VALUE( SigGPSUnplugged ) \ DB_DEFAULT_NULL_VALUE( SigGPSMalfunction ) \ DB_DEFAULT_NULL_VALUE( Gps_SetTime ) \ DB_DEFAULT_NULL_VALUE( CmdResetBinaryFaultTargets ) \ DB_DEFAULT_NULL_VALUE( CmdResetTripCurrents ) \ DB_DEFAULT_NULL_VALUE( SigSimAndOsmModelMismatch ) \ DB_DEFAULT_NULL_VALUE( SigBlockPickupEff ) \ DB_DEFAULT_NULL_VALUE( SigBlockPickupEfr ) \ DB_DEFAULT_NULL_VALUE( SigBlockPickupSeff ) \ DB_DEFAULT_NULL_VALUE( SigBlockPickupSefr ) \ DB_DEFAULT_NULL_VALUE( SigBlockPickupOv3 ) \ DB_DEFAULT_NULL_VALUE( SigFaultLocatorStatus ) \ DB_DEFAULT_NULL_VALUE( FaultLocIa ) \ DB_DEFAULT_NULL_VALUE( FaultLocIb ) \ DB_DEFAULT_NULL_VALUE( FaultLocIc ) \ DB_DEFAULT_NULL_VALUE( FaultLocAIa ) \ DB_DEFAULT_NULL_VALUE( FaultLocAIb ) \ DB_DEFAULT_NULL_VALUE( FaultLocAIc ) \ DB_DEFAULT_NULL_VALUE( FaultLocUa ) \ DB_DEFAULT_NULL_VALUE( FaultLocUb ) \ DB_DEFAULT_NULL_VALUE( FaultLocUc ) \ DB_DEFAULT_NULL_VALUE( FaultLocAUa ) \ DB_DEFAULT_NULL_VALUE( FaultLocAUb ) \ DB_DEFAULT_NULL_VALUE( FaultLocAUc ) \ DB_DEFAULT_NULL_VALUE( FaultLocTrigger ) \ DB_DEFAULT_NULL_VALUE( GPSEnableCommsLog ) \ DB_DEFAULT_NULL_VALUE( SigResetFaultLocation ) \ DB_DEFAULT_NULL_VALUE( AlertDisplayMode ) \ DB_DEFAULT_NULL_VALUE( FtstCaptureNextPtr ) \ DB_DEFAULT_NULL_VALUE( FtstCaptureLastPtr ) \ DB_DEFAULT_NULL_VALUE( SigArReset ) \ DB_DEFAULT_NULL_VALUE( SigArResetPhA ) \ DB_DEFAULT_NULL_VALUE( SigArResetPhB ) \ DB_DEFAULT_NULL_VALUE( SigArResetPhC ) \ DB_DEFAULT_NULL_VALUE( LogicSGAStopped ) \ DB_DEFAULT_NULL_VALUE( LogicSGAStoppedLogic ) \ DB_DEFAULT_NULL_VALUE( LogicSGAStoppedSGA ) \ DB_DEFAULT_NULL_VALUE( LogicSGAThrottling ) \ DB_DEFAULT_NULL_VALUE( LogicSGAThrottlingLogic ) \ DB_DEFAULT_NULL_VALUE( LogicSGAThrottlingSGA ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCOnboard ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCExternal ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCModem ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCWifi ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCGPS ) \ DB_DEFAULT_NULL_VALUE( LoadedScadaRestartReqWarning ) \ DB_DEFAULT_NULL_VALUE( IdPSCModelStr ) \ DB_DEFAULT_NULL_VALUE( sigFirmwareHardwareMismatch ) \ DB_DEFAULT_NULL_VALUE( SigProtOcDirF ) \ DB_DEFAULT_NULL_VALUE( SigProtOcDirR ) \ DB_DEFAULT_NULL_VALUE( Diagnostic5 ) \ DB_DEFAULT_NULL_VALUE( Diagnostic6 ) \ DB_DEFAULT_NULL_VALUE( Diagnostic7 ) \ DB_DEFAULT_NULL_VALUE( SNTPSetTime ) \ DB_DEFAULT_NULL_VALUE( SNTPSyncStatus ) \ DB_DEFAULT_NULL_VALUE( SNTP1Error ) \ DB_DEFAULT_NULL_VALUE( SNTP2Error ) \ DB_DEFAULT_NULL_VALUE( SNTPUnableToSync ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCReset ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCMalfunction ) \ DB_DEFAULT_NULL_VALUE( CmdResetFaultLocation ) \ DB_DEFAULT_NULL_VALUE( SigMalfRel20 ) \ DB_DEFAULT_NULL_VALUE( CurrentLanguage ) \ DB_DEFAULT_NULL_VALUE( SNTP1v6Error ) \ DB_DEFAULT_NULL_VALUE( SNTP2v6Error ) \ DB_DEFAULT_NULL_VALUE( SigACOOpModeEqualOn ) \ DB_DEFAULT_NULL_VALUE( SigACOOpModeMainOn ) \ DB_DEFAULT_NULL_VALUE( SigACOOpModeAltOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPanelOn ) \ DB_DEFAULT_NULL_VALUE( SigMalRel20Dummy ) \ DB_DEFAULT_NULL_VALUE( RC20SwitchDefaultGainU ) \ DB_DEFAULT_NULL_VALUE( RC20SIMDefaultGainIn ) \ DB_DEFAULT_NULL_VALUE( RC20SIMDefaultGainU ) \ DB_DEFAULT_NULL_VALUE( RC20RelayDefaultGainILow ) \ DB_DEFAULT_NULL_VALUE( RC20RelayDefaultGainIHigh ) \ DB_DEFAULT_NULL_VALUE( RC20RelayDefaultGainIn ) \ DB_DEFAULT_NULL_VALUE( RC20RelayDefaultGainU ) \ DB_DEFAULT_NULL_VALUE( RC20FPGADefaultGainIHigh ) \ DB_DEFAULT_NULL_VALUE( RC20ConstCalCoefILow ) \ DB_DEFAULT_NULL_VALUE( RC20ConstCalCoefIHigh ) \ DB_DEFAULT_NULL_VALUE( RC20ConstCalCoefIn ) \ DB_DEFAULT_NULL_VALUE( RC20ConstCalCoefU ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAIa ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAIb ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAIc ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAIaHi ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAIbHi ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAIcHi ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAIn ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAUa ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAUb ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAUc ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAUr ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAUs ) \ DB_DEFAULT_NULL_VALUE( RC20FPGAUt ) \ DB_DEFAULT_NULL_VALUE( PQSaveToSDCard ) \ DB_DEFAULT_NULL_VALUE( OscLogCountSD ) \ DB_DEFAULT_NULL_VALUE( G14_PortDetectedName ) \ DB_DEFAULT_NULL_VALUE( G14_SerialPortTestCmd ) \ DB_DEFAULT_NULL_VALUE( G14_SerialPortHangupCmd ) \ DB_DEFAULT_NULL_VALUE( G14_BytesReceivedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G14_BytesTransmittedResetCmd ) \ DB_DEFAULT_NULL_VALUE( G14_ModemDialNumber1 ) \ DB_DEFAULT_NULL_VALUE( G14_ModemDialNumber2 ) \ DB_DEFAULT_NULL_VALUE( G14_ModemDialNumber3 ) \ DB_DEFAULT_NULL_VALUE( G14_ModemDialNumber4 ) \ DB_DEFAULT_NULL_VALUE( G14_ModemDialNumber5 ) \ DB_DEFAULT_NULL_VALUE( G14_WlanNetworkSSID ) \ DB_DEFAULT_NULL_VALUE( G14_WlanNetworkAuthentication ) \ DB_DEFAULT_NULL_VALUE( G14_WlanDataEncryption ) \ DB_DEFAULT_NULL_VALUE( G14_WlanNetworkKey ) \ DB_DEFAULT_NULL_VALUE( G14_WlanKeyIndex ) \ DB_DEFAULT_NULL_VALUE( G14_GPRSServiceProvider ) \ DB_DEFAULT_NULL_VALUE( G14_GPRSUserName ) \ DB_DEFAULT_NULL_VALUE( G14_GPRSPassWord ) \ DB_DEFAULT_NULL_VALUE( G14_SerialDebugFileName ) \ DB_DEFAULT_NULL_VALUE( G14_DNP3InputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_DNP3OutputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_CMSInputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_CMSOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_HMIInputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_HMIOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_T10BInputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_T10BOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_P2PInputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_P2POutputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_P2PChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G14_P2PChannelOpen ) \ DB_DEFAULT_NULL_VALUE( G14_PGEInputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_PGEOutputPipe ) \ DB_DEFAULT_NULL_VALUE( G14_PGEChannelRequest ) \ DB_DEFAULT_NULL_VALUE( G14_PGEChannelOpen ) \ DB_DEFAULT_NULL_VALUE( TripHrmComponentAExt ) \ DB_DEFAULT_NULL_VALUE( TripHrmComponentBExt ) \ DB_DEFAULT_NULL_VALUE( TripHrmComponentCExt ) \ DB_DEFAULT_NULL_VALUE( SigCtrlROCOFOn ) \ DB_DEFAULT_NULL_VALUE( SigSEFProtMode ) \ DB_DEFAULT_NULL_VALUE( SigCtrlVVSOn ) \ DB_DEFAULT_NULL_VALUE( SigPickupROCOF ) \ DB_DEFAULT_NULL_VALUE( SigPickupVVS ) \ DB_DEFAULT_NULL_VALUE( SigOpenROCOF ) \ DB_DEFAULT_NULL_VALUE( SigOpenVVS ) \ DB_DEFAULT_NULL_VALUE( SigAlarmROCOF ) \ DB_DEFAULT_NULL_VALUE( SigAlarmVVS ) \ DB_DEFAULT_NULL_VALUE( CanBusHighPower ) \ DB_DEFAULT_NULL_VALUE( IdPSCNumModel ) \ DB_DEFAULT_NULL_VALUE( IdPSCNumPlant ) \ DB_DEFAULT_NULL_VALUE( IdPSCNumDate ) \ DB_DEFAULT_NULL_VALUE( IdPSCNumSeq ) \ DB_DEFAULT_NULL_VALUE( IdPSCSwVer1 ) \ DB_DEFAULT_NULL_VALUE( IdPSCSwVer2 ) \ DB_DEFAULT_NULL_VALUE( IdPSCSwVer3 ) \ DB_DEFAULT_NULL_VALUE( IdPSCSwVer4 ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPMUOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPMUProcessingOn ) \ DB_DEFAULT_NULL_VALUE( PMUMACAddrPDC ) \ DB_DEFAULT_NULL_VALUE( PMUSmvOpts ) \ DB_DEFAULT_NULL_VALUE( PMUConfRev ) \ DB_DEFAULT_NULL_VALUE( SigRTCTimeNotSync ) \ DB_DEFAULT_NULL_VALUE( PMU_IEEE_Stat ) \ DB_DEFAULT_NULL_VALUE( SigCorruptedPartition ) \ DB_DEFAULT_NULL_VALUE( SigRLM20UpgradeFailure ) \ DB_DEFAULT_NULL_VALUE( SigUbootConsoleActive ) \ DB_DEFAULT_NULL_VALUE( SigRlm20nor2backupReqd ) \ DB_DEFAULT_NULL_VALUE( SigMalfAnalogBoard ) \ DB_DEFAULT_NULL_VALUE( SigACOMakeBeforeBreak ) \ DB_DEFAULT_NULL_VALUE( SigGpsEnable ) \ DB_DEFAULT_NULL_VALUE( SigWlanEnable ) \ DB_DEFAULT_NULL_VALUE( SigMobileNetworkEnable ) \ DB_DEFAULT_NULL_VALUE( MobileNetwork_SerialPort1 ) \ DB_DEFAULT_NULL_VALUE( MobileNetwork_SerialPort2 ) \ DB_DEFAULT_NULL_VALUE( MobileNetwork_SerialPort3 ) \ DB_DEFAULT_NULL_VALUE( SigCbfBackupTripBlocked ) \ DB_DEFAULT_NULL_VALUE( SigPickupCbfDefault ) \ DB_DEFAULT_NULL_VALUE( SigPickupCbfBackupTrip ) \ DB_DEFAULT_NULL_VALUE( SigCBFMalfunction ) \ DB_DEFAULT_NULL_VALUE( SigCBFMalfCurrent ) \ DB_DEFAULT_NULL_VALUE( SigCBFBackupTrip ) \ DB_DEFAULT_NULL_VALUE( SigCBFMalf ) \ DB_DEFAULT_NULL_VALUE( SigCbfBackupTripMode ) \ DB_DEFAULT_NULL_VALUE( CredentialOperName ) \ DB_DEFAULT_NULL_VALUE( CredentialOperFirstPassword ) \ DB_DEFAULT_NULL_VALUE( CredentialOperSecondPassword ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCOnboardA ) \ DB_DEFAULT_NULL_VALUE( SigUSBOCOnboardB ) \ DB_DEFAULT_NULL_VALUE( SigNmSimError ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPDOPOn ) \ DB_DEFAULT_NULL_VALUE( SigCtrlPDUPOn ) \ DB_DEFAULT_NULL_VALUE( SigPickupPDOP ) \ DB_DEFAULT_NULL_VALUE( SigPickupPDUP ) \ DB_DEFAULT_NULL_VALUE( SigOpenPDOP ) \ DB_DEFAULT_NULL_VALUE( SigOpenPDUP ) \ DB_DEFAULT_NULL_VALUE( SigAlarmPDOP ) \ DB_DEFAULT_NULL_VALUE( SigAlarmPDUP ) \ DB_DEFAULT_NULL_VALUE( SigSIMCardError ) \ DB_DEFAULT_NULL_VALUE( SigSIMCardPINReqd ) \ DB_DEFAULT_NULL_VALUE( SigSIMCardPINError ) \ DB_DEFAULT_NULL_VALUE( SigSIMCardBlockedByPIN ) \ DB_DEFAULT_NULL_VALUE( SigSIMCardPUKError ) \ DB_DEFAULT_NULL_VALUE( SigSIMCardBlockedPerm ) \ DB_DEFAULT_NULL_VALUE( GPRSServiceProvider2 ) \ DB_DEFAULT_NULL_VALUE( GPRSServiceProvider3 ) \ DB_DEFAULT_NULL_VALUE( GPRSServiceProvider4 ) \ DB_DEFAULT_NULL_VALUE( GPRSServiceProvider5 ) \ DB_DEFAULT_NULL_VALUE( GPRSServiceProvider6 ) \ DB_DEFAULT_NULL_VALUE( GPRSServiceProvider7 ) \ DB_DEFAULT_NULL_VALUE( GPRSServiceProvider8 ) \ DB_DEFAULT_NULL_VALUE( GPRSUserName2 ) \ DB_DEFAULT_NULL_VALUE( GPRSUserName3 ) \ DB_DEFAULT_NULL_VALUE( GPRSUserName4 ) \ DB_DEFAULT_NULL_VALUE( GPRSUserName5 ) \ DB_DEFAULT_NULL_VALUE( GPRSUserName6 ) \ DB_DEFAULT_NULL_VALUE( GPRSUserName7 ) \ DB_DEFAULT_NULL_VALUE( GPRSUserName8 ) \ DB_DEFAULT_NULL_VALUE( GPRSPassWord2 ) \ DB_DEFAULT_NULL_VALUE( GPRSPassWord3 ) \ DB_DEFAULT_NULL_VALUE( GPRSPassWord4 ) \ DB_DEFAULT_NULL_VALUE( GPRSPassWord5 ) \ DB_DEFAULT_NULL_VALUE( GPRSPassWord6 ) \ DB_DEFAULT_NULL_VALUE( GPRSPassWord7 ) \ DB_DEFAULT_NULL_VALUE( GPRSPassWord8 ) \ DB_DEFAULT_NULL_VALUE( SigPMURetransmitEnable ) \ DB_DEFAULT_NULL_VALUE( SigPMURetransmitLogEnable ) \ /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBSCHEMAVALUES_H_ <file_sep>/* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2019. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #include <stdio.h> #include "libunittests/testcase.h" #include "libunittests/testdb.h" #include "noja_webserver.h" TESTCASE(NWS_Dummy) { fprintf(stderr, ">>>>> %s\n", __FUNCTION__); } <file_sep># lws minimal secure streams proxy Operates as a secure streams proxy, by default on a listening unix domain socket "proxy.ss.lws" in the Linux abstract namespace. Give -p <port> to have it listen on a specific tcp port instead. ## build ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -f| Force connecting to the wrong endpoint to check backoff retry flow -p <port>|If not given, proxy listens on a Unix Domain Socket, if given listen on specified tcp port -i <iface>|Optionally specify the UDS path (no -p) or network interface to bind to (if -p also given) ``` [2020/02/26 15:41:27:5768] U: LWS secure streams Proxy [-d<verb>] [2020/02/26 15:41:27:5770] N: lws_ss_policy_set: 2.064KiB, pad 70%: hardcoded [2020/02/26 15:41:27:5771] N: lws_tls_client_create_vhost_context: using mem client CA cert 1391 [2020/02/26 15:41:27:8681] N: lws_ss_policy_set: 4.512KiB, pad 15%: updated [2020/02/26 15:41:27:8682] N: lws_tls_client_create_vhost_context: using mem client CA cert 837 [2020/02/26 15:41:27:8683] N: lws_tls_client_create_vhost_context: using mem client CA cert 1043 [2020/02/26 15:41:27:8684] N: lws_tls_client_create_vhost_context: using mem client CA cert 1167 [2020/02/26 15:41:27:8684] N: lws_tls_client_create_vhost_context: using mem client CA cert 1391 [2020/02/26 15:41:28:4226] N: ss_api_amazon_auth_rx: acquired 567-byte api.amazon.com auth token, exp 3600s ``` <file_sep># lws release policy ## How should users consume lws? The one definitively wrong way to consume lws (or anything else) is "import" some version of it into your proprietary tree and think you will stick with that forever, perhaps piling cryptic fixes or hacks on top until quite quickly, nobody dare think about updating it. The stable releases go on to a branch like v4.0-stable as described below, over time these attract dozens or even hundreds of minor or major fix patches backported from master. So you should not consume tags like v4.0.0 but build into your planning that you will need to follow v4.0-stable in order to stay on top of known bugs. And we only backport fixes to the last stable release, although we will make exceptions for important fixes. So after a while, trying to stick with one old versions means nobody is providing security fixes on it any more. So you should build into your planning that you will follow lws release upgrades. If you find problems and create fixes, please upstream them, simplifying your life so you can just directly consume the upstream tree with no private changes. ## Master branch Master branch is the default and all new work happens there. It's unstable and subject to history rewrites, patches moving about and being squashed etc. In terms of it working, it is subject to passing CI tests including a battery of runtime tests, so if it is passing CI as it usually is then it's probably in usable shape. See "Why no history on master" below for why it's managed like that. ![all work happens on master](../doc-assets/lws-relpol-1.svg) If you have patches (you are a hero) they should be targeted at master. To follow such a branch, `git pull` is the wrong tool... the starting point of what you currently have may no longer exist remotely due to rearranging the patches there. Instead use a flow like this: ``` $ git fetch https://libwebsockets.org/repo/libwebsockets +master:m && git reset --hard m ``` This fetches current remote master into local branch `m`, and then forces your local checkout to exactly match `m`. This replaces your checked-out tree including any of your local changes, so stash those first, or use stgit or so to pop them before updating your basis against lws master. ## Stable branches Master is very useful for coordinating development, and integrating WIP, but for distros or integration into large user projects some stability is often more desirable than the latest development work. Periodically, when master seems in good shape and various new developments seem to be working, it's copied out into a versioned stable branch, like `v3.0-stable`. ![stable branches are copied from master](../doc-assets/lws-relpol-2.svg) The initial copy is tagged with, eg, `v3.0.0`. (At that time, master's logical version is set to "...99", eg, `v3.0.99` so version comparisons show that version of master is "later" than any other v3.0 version, which will never reach 99 point releases itself, but "earlier" than, eg, v3.1.) ## Backport policy Work continues on master, and as part of that usually bugs are reported and / or fixes found that may apply not just to current master, but the version of master that was copied to form the last -stable branch. In that case, the patch may be backported to the last stable branch to also fix the bug there. In the case of refactors or major internal improvements, these typically do not get backported. This applies only to fixes and public API-neutral internal changes to lws... if new features were backported or API changes allowed, then there would be multiple apis under the same version name and library soname, which is madness. When new stable releases are made, the soname is bumped reflecting the API is different than that of previous versions. ![backports from master to stable](../doc-assets/lws-relpol-3.svg) If there is something you need in a later lws version that is not backported, you need to either backport it yourself or use a later lws version. Using a more recent version of lws (and contributing fixes and changes so you yourself can get them easily as well as contributing for others) is almost always the correct way. ## Stable point releases Periodically fix patches pile up on the -stable branch and are tagged out as "point releases". So if the original stable release was "v3.0.0", the point release may be "v3.0.1". ![point releases of stable](../doc-assets/lws-relpol-4.svg) ## Critical fixes Sometimes a bug is found and fixed that had been hiding for a few versions. If the bug has some security dimension or is otherwise important, we may backport it to a few recent releases, not just the last one. This is pretty uncommon though. ![backport to multiple stable branches](../doc-assets/lws-relpol-5.svg) ## Why no history on master Git is a wonderful tool that can be understood to have two main modes of operation, merge and rebase that are mutually exclusive. Most devs only use merge / pull, but rebase / fetch is much more flexible. Running master via rebases allows me to dispense with feature branches during development and enables tracking multiple in-progress patches in-tree by updating them in place. If this doesn't make sense or seems heretical to you, it's OK I don't need devsplain'ing about it, just sit back and enjoy the clean, rapid development results. Since stable branches don't allow new features, they are run as traditional trees with a history, like a one-way pile of patches on top of the original release. If CI shows something is messed up with the latest patch, I will edit it in-place if it has only been out for a few hours, but there is no re-ordering or other history manipulation. <file_sep># `lws_retry_bo_t` client connection management This struct sets the policy for delays between retries, and for how long a connection may be 'idle' before it first tries to ping / pong on it to confirm it's up, or drops the connection if still idle. ## Retry rate limiting You can define a table of ms-resolution delays indexed by which connection attempt number is ongoing, this is pointed to by `.retry_ms_table` with `.retry_ms_table_count` containing the count of table entries. `.conceal_count` is the number of retries that should be allowed before informing the parent that the connection has failed. If it's greater than the number of entries in the table, the last entry is reused for the additional attempts. `.jitter_percent` controls how much additional random delay is added to the actual interval to be used... this stops a lot of devices all synchronizing when they try to connect after a single trigger event and DDoS-ing the server. The struct and apis are provided for user implementations, lws does not offer reconnection itself. ## Connection validity management Lws has a sophisticated idea of connection validity and the need to reconfirm that a connection is still operable if proof of validity has not been seen for some time. It concerns itself only with network connections rather than streams, for example, it only checks h2 network connections rather than the individual streams inside (which is consistent with h2 PING frames only working at the network stream level itself). Connections may fail in a variety of ways, these include that no traffic at all is passing, or, eg, incoming traffic may be received but no outbound traffic is making it to the network, and vice versa. In the case that tx is not failing at any point but just isn't getting sent, endpoints can potentially kid themselves that since "they are sending" and they are seeing RX, the combination means the connection is valid. This can potentially continue for a long time if the peer is not performing keepalives. "Connection validity" is proven when one side sends something and later receives a response that can only have been generated by the peer receiving what was just sent. This can happen for some kinds of user transactions on any stream using the connection, or by sending PING / PONG protocol packets where the PONG is only returned for a received PING. To ensure that the generated traffic is only sent when necessary, user code can report for any stream that it has observed a transaction amounting to a proof of connection validity using an api. This resets the timer for the associated network connection before the validity is considered expired. `.secs_since_valid_ping` in the retry struct sets the number of seconds since the last validity after which lws will issue a protocol-specific PING of some kind on the connection. `.secs_since_valid_hangup` specifies how long lws will allow the connection to go without a confirmation of validity before simply hanging up on it. ## Defaults The context defaults to having a 5m valid ping interval and 5m10s hangup interval, ie, it'll send a ping at 5m idle if the protocol supports it, and if no response validating the connection arrives in another 10s, hang up the connection. User code can set this in the context creation info and can individually set the retry policy per vhost for server connections. Client connections can set it per connection in the client creation info `.retry_and_idle_policy`. ## Checking for h2 and ws Check using paired minimal examples with the -v flag on one or both sides to get a small validity check period set of 3s / 10s Also give, eg, -d1039 to see info level debug logging ### h2 ``` $ lws-minimal-http-server-h2-long-poll -v $ lws-minimal-http-client -l -v ``` ### ws ``` $ lws-minimal-ws-server-h2 -s -v $ lws-minimal-ws-client-ping -n --server 127.0.0.1 --port 7681 -v ``` <file_sep># Include the file which creates VER_xxx environmental variables if they don't # already exist. include ../../global.mak include $(NOJACORE)/nojacore.mak include ../webserver/noja_webserver.mak NAME = webserver WORKDIR = $(ROOTDIR)/user/libwebserver # build location BUILD_PATH = $(WORKDIR)/bin # host-mode build location HOST_BUILD_PATH = $(WORKDIR)/bin-host TOP_DIR = $(ROOTDIR)/user # source directory SOURCE = $(WORKDIR)/daemon # header directory INCLUDE = $(WORKDIR)/daemon # common library dir path ifeq ($(MAKECMDGOALS),host) LIB = $(ROOTDIR)/user/lib-host else LIB = $(ROOTDIR)/user/lib endif # create the compile flags CFLAGS += -O3 # add the headers path CFLAGS += $(addprefix -I, $(INCLUDE)) # add the common headers CFLAGS += -I$(ROOTDIR)/user -I$(ROOTDIR)/user/include -I$(ROOTDIR)/dbschema/include \ -I$(ROOTDIR)/dbschema/include/dbschema -I$(ROOTDIR)/user/$(NAME) \ -I$(ROOTDIR)/user -I$(ROOTDIR)/user/dbapi -I$(ROOTDIR)/user -I$(ROOTDIR)/user/libsmp # add any pre-process macros required CFLAGS += CFLAGS += -DNWS_IGNORE_SMP_ERROR # Add to the list of libraries to link against LDLIBS += -ldbapi -lnojacore -llog -lutils -lpowersystems -lm -lrt -lsmp -lchannel -lwebsockets -lssl -lcrypto $(LD_DATAREF) # Add to the library path LDFLAGS = -L$(LIB) # Specify the source files. One approach is to simply accept that all .c and .s # files in the project directory are source files to be compiled into the project. # If that will work, then specify the source files as: CSRC := $(wildcard $(SOURCE)/*.c) ######################################################################################## # The following should not need to be modified. # Specify the tool chain #GCC_PREFIX = m68k-uclinux #CC = $(GCC_PREFIX)-gcc -mcpu=5329 -DCONFIG_COLDFIRE #LD = $(GCC_PREFIX)-ld #AR = $(GCC_PREFIX)-ar #AS = $(GCC_PREFIX)-gcc #GASP = $(GCC_PREFIX)-gasp #NM = $(GCC_PREFIX)-nm #OBJCOPY = $(GCC_PREFIX)-objcopy #OBJDUMP = $(GCC_PREFIX)-objdump #RANLIB = $(GCC_PREFIX)-ranlib #STRIP = $(GCC_PREFIX)-strip #SIZE = $(GCC_PREFIX)-size #READELF = $(GCC_PREFIX)-readelf CP = cp -p RM = rm -f MV = mv MK = mkdir -p #PERL = perl # Define the object files based on the source files COBJS := $(addprefix $(BUILD_PATH)/,$(notdir $(patsubst %.c,%.o,$(CSRC)))) AOBJS := $(addprefix $(BUILD_PATH)/,$(notdir $(patsubst %.s,%.o,$(ASRC)))) # Define the dependency files for each source file CDEPS := $(patsubst %.o,%.d,$(COBJS)) ADEPS := $(patsubst %.o,%.d,$(AOBJS)) .PHONY: all doc clean pre_copy .NOTPARALLEL: all : pre_copy clean $(MAKE) $(BUILD_PATH)/$(NAME) $(BUILD_PATH)/$(NAME) : $(AOBJS) $(COBJS) Makefile $(CC) -o $@ $(AOBJS) $(COBJS) $(LDFLAGS) $(LDLIBS) # copy and generate the include files pre_copy: $(NAME).lst : $(NAME).a $(OBJDUMP) -dStl $^ >$@ host: host-clean host-app #install-doc : # ../update_docmake.sh -o $(NAME) -s clips -i doc : clean : $(RM) $(COBJS) $(AOBJS) $(CDEPS) $(ADEPS) $(BUILD_PATH)/$(NAME) $(RM) $(NAME).lst $(NAME).map $(wildcard *.stackdump) $(BUILD_PATH)/%.o: $(SOURCE)/%.c test -d $(BUILD_PATH) || mkdir $(BUILD_PATH) $(CC) -g -c -o $@ $< $(CFLAGS) $(BUILD_PATH)/%.d: $(SOURCE)/%.c test -d $(BUILD_PATH) || mkdir $(BUILD_PATH) $(CC) -MM -MT $(CFLAGS) $< > $@ # include the dependency files -include $(CDEPS) -include $(ADEPS) include ../../host-app.mak<file_sep>/** * @file include/dbschema/dbSchemaDefs.h * @brief This generated file contains the database schema definition used * by the DbServer process and by the database API. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbSchemaDefs_h.xsl : 10172 bytes, CRC32 = 3595365200 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMADEFS_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMADEFS_H_ /** Define for the schema checksum value. This is the CRC32 value of all * of the generated schema files. It is contained within a seperate header * file so that it does not itself alter the checksum value of the files. */ #include "dbSchemaCRC.h" /** Database version defines in various formats */ #define DB_VER "28.0.0" #define DB_VER_MAJOR 28 #define DB_VER_MAJOR_STR "28" #define DB_VER_MINOR 0 #define DB_VER_MINOR_STR "0" #define DB_VER_PATCH 0 #define DB_VER_PATCH_STR "0" /** Database limit defines */ #define DB_NUM_DPOINTS 7079 #define DB_MIN_DPID 1 #define DB_MAX_DPID 11735 #define DB_NUM_LOCKS 7079 /**The Database Schema definition * Arguments: name, type, storage, crashsave, length, flags, min, max, scale, resolution * name The datapoint name * type The datapoint value type * storage The datapoint storage type * crashsave If the datapoint must support crash save then 1 * length The maximum datapoint value length * flags The datapoint flags * min The minimum datapoint value (where flag is active) * max The maximum datapoint value (where flag is active) * scale The value scaling factor (where supported by type) * resolution The default value resolution (where supported by type) * unit The datapoint unit */ #define DBSCHEMA_DEFNS \ \ DBSCHEMA_DEFN( TimeFmt, TimeFormat, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DateFmt, DateFormat, 1, 1, 0x1, 0x1F098, 0x0, 0x2, 1, 1, DateFormat ) \ DBSCHEMA_DEFN( DEPRECATED_BattTest, BattTestState, 1, 1, 0x1, 0x1F098, 0x0, 0x3, 1, 1, BattTestState ) \ DBSCHEMA_DEFN( SiteDesc, Str, 9, 0, 0x28, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IsDirty, UI16, 3, 0, 0x2, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AuxSupply, OkFail, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, OkFail ) \ DBSCHEMA_DEFN( BattState, OkFail, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, OkFail ) \ DBSCHEMA_DEFN( OCCoilState, EnDis, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, EnDis ) \ DBSCHEMA_DEFN( RelayState, RelayState, 1, 1, 0x1, 0x19018, 0x0, 0x3, 1, 1, RelayState ) \ DBSCHEMA_DEFN( ActCLM, UI8, 1, 1, 0x1, 0x18018, 0xA, 0x32, 1, 1, dUnits ) \ DBSCHEMA_DEFN( OsmOpCoilState, OkSCct, 1, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, OkSCct ) \ DBSCHEMA_DEFN( DriverState, RdyNr, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, RdyNr ) \ DBSCHEMA_DEFN( NumProtGroups, UI8, 1, 1, 0x1, 0x19018, 0x1, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( ActProtGroup, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( BattTestAuto, EnDis, 1, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, OnOff ) \ DBSCHEMA_DEFN( AvgPeriod, AvgPeriod, 1, 1, 0x1, 0x18018, 0x0, 0x5, 1, 1, AvgPeriod ) \ DBSCHEMA_DEFN( ProtStepState, ProtectionState, 1, 1, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( USensing, RdyNr, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, USense ) \ DBSCHEMA_DEFN( DoorState, OpenClose, 1, 1, 0x1, 0x19018, 0x0, 0x2, 1, 1, AuxConfig ) \ DBSCHEMA_DEFN( BtnOpen, AuxConfig, 1, 1, 0x1, 0x18018, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( BtnRecl, TimeFormat, 1, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, EnDis ) \ DBSCHEMA_DEFN( BtnEf, TimeFormat, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, EnDis ) \ DBSCHEMA_DEFN( BtnSef, TimeFormat, 1, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, EnDis ) \ DBSCHEMA_DEFN( SigCtrlRqstTripClose, Signal, 8, 0, 0xA, 0x66001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntOps, UI16, 3, 1, 0x2, 0x1018, 0x0, 0x0, 1, 1, Ops ) \ DBSCHEMA_DEFN( CntWearOsm, UI16, 3, 1, 0x2, 0x18, 0x0, 0x0, 1, 1, PCT ) \ DBSCHEMA_DEFN( CntOpsOc, UI16, 3, 1, 0x2, 0x1018, 0x0, 0x0, 1, 1, Ops ) \ DBSCHEMA_DEFN( CntOpsEf, UI16, 3, 1, 0x2, 0x18, 0x0, 0x0, 1, 1, Ops ) \ DBSCHEMA_DEFN( CntOpsSef, UI16, 3, 1, 0x2, 0x1018, 0x0, 0x0, 1, 1, Ops ) \ DBSCHEMA_DEFN( BattI, UI16, 3, 1, 0x2, 0x18, 0x0, 0x0, 1, 1, mA ) \ DBSCHEMA_DEFN( BattU, UI16, 3, 1, 0x2, 0x1018, 0x0, 0x0, 1, 1, mV ) \ DBSCHEMA_DEFN( BattCap, UI16, 3, 1, 0x2, 0x18, 0x0, 0x0, 1, 1, PCT ) \ DBSCHEMA_DEFN( LcdCont, UI16, 3, 1, 0x2, 0x19018, 0x4000, 0xC000, 1, 1, PCT ) \ DBSCHEMA_DEFN( SwitchFailureStatusFlag, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DbSourceFiles, UI8, 1, 0, 0x1, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfRelayLog, Signal, 8, 0, 0xA, 0x4001419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HmiMode, HmiMode, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearFaultCntr, ClearCommand, 1, 0, 0x1, 0x20007099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearScadaCntr, ClearCommand, 1, 0, 0x1, 0x20007099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearEnergyMeters, ClearCommand, 1, 0, 0x1, 0x20007099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateRelayNew, Str, 9, 0, 0x46, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateSimNew, Str, 9, 0, 0x46, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigExtSupplyStatusShutDown, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdUbootSoftwareVer, Str, 9, 0, 0x46, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntOpsOsm, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, V ) \ DBSCHEMA_DEFN( SigCtrlHltOn, Signal, 8, 1, 0xA, 0x763674B8, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AuxVoltage, UI32, 5, 1, 0x4, 0x18018, 0x50, 0x113, 1, 1, V ) \ DBSCHEMA_DEFN( PwdSettings, Str, 9, 1, 0x7, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PwdConnect, Str, 9, 1, 0x7, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlHltRqstReset, Signal, 8, 0, 0xA, 0x6101421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdMicrokernelSoftwareVer, Str, 9, 0, 0x46, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsConnectStatus, CmsConnectStatus, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLsdUa, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLsdUb, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLsdUc, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLsdUr, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLsdUs, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLsdUt, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OsmModelStr, Str, 9, 0, 0x29, 0x10000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadProfDefAddr, UI32, 5, 1, 0x4, 0x1018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadProfNotice, LoadProfileNoticeType, 8, 0, 0x18C, 0x1019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadProfValAddr, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusCloseBlocking, Signal, 8, 0, 0xA, 0x54040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlBlockCloseOn, Signal, 8, 1, 0xA, 0x76067498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsHasCrc, UI8, 1, 1, 0x1, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsCntErr, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsCntTxd, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsCntRxd, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxPort, UI16, 3, 1, 0x2, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenGrp1, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxHasCrc, UI8, 1, 1, 0x1, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxCntErr, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxCntTxd, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxCntRxd, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsVer, Str, 9, 1, 0xA, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtGlbFreqRated, RatedFreq, 1, 1, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtGlbUsys, UI32, 5, 1, 0x4, 0x1003F098, 0xBB8, 0x9470, 0.001, 0.1, KV ) \ DBSCHEMA_DEFN( ProtGlbLsdLevel, UI32, 5, 1, 0x4, 0x3F098, 0x1F4, 0x1770, 0.001, 0.1, KV ) \ DBSCHEMA_DEFN( SigOpenGrp2, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenGrp3, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenGrp4, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtEF, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtSEF, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtAR, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtCL, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtLL, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtActiveGroup, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtProtection, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelDelayedClose, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelDelayedCloseTime, UI16, 3, 1, 0x2, 0x1F098, 0x0, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( MicrokernelFsType, FileSystemType, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HmiErrMsg, ERR, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HmiErrMsgFull, HmiErrMsg, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterCallDropouts, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterCallFails, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSetResetTimeUI16, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x2D0, 1, 1, Hrs ) \ DBSCHEMA_DEFN( HmiPasswordUser, HmiPwdGroup, 8, 0, 0x4, 0x10000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateFailed, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateReverted, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCUa, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.0000004791, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCUb, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.0000004791, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCUc, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.0000004791, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCUr, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.0000004791, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCUs, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.0000004791, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCUt, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.0000004791, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCIa, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.000012207, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCIb, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.000012207, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCIc, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.000012207, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchCoefCIn, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x1FFFE, 0.000012207, 0.0001, NULL ) \ DBSCHEMA_DEFN( LogEventDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogCloseOpenDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogLoadProfDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogFaultProfDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogChangeDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SysSettingDir, Str, 9, 1, 0x64, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaTimeLocal, ScadaTimeIsLocal, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( TimeZone, I32, 4, 1, 0x4, 0x1F098, 0xFFFF3B20, 0xA8C0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateSettingsLogFailed, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DbugCmsSerial, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBDConfigType, UsbPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBEConfigType, UsbPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBFConfigType, SerialPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( Rs232Dte2ConfigType, SerialPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp5, ChangeEvent, 0, 0, 0x1, 0x1B09D, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp6, ChangeEvent, 0, 0, 0x1, 0x1B09D, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp7, ChangeEvent, 0, 0, 0x1, 0x1B09D, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp8, ChangeEvent, 0, 0, 0x1, 0x1B09D, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBUnsupported, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBMismatched, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemDialOut, Bool, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_ModemDialOut, Bool, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemPreDialString, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_ModemPreDialString, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemDialNumber1, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemDialNumber2, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemDialNumber3, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemDialNumber4, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemDialNumber5, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtTstSeq, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, Addr ) \ DBSCHEMA_DEFN( ProtTstLogStep, UI32, 5, 0, 0x4, 0x101D, 0x0, 0x0, 1, 1, Addr_of_step ) \ DBSCHEMA_DEFN( ProtTstDbug, Str, 9, 0, 0x51, 0x101D, 0x0, 0x0, 1, 1, Dbug_str ) \ DBSCHEMA_DEFN( ProtCfgBase, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, Addr ) \ DBSCHEMA_DEFN( G1_OcAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G1_OcDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G1_EfAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G1_EfDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G1_SefAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G1_SefDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G1_ArOCEF_ZSCmode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_VrcEnable, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( CMS_ModemDialNumber1, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ArOCEF_Trec1, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_ArOCEF_Trec2, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_ArOCEF_Trec3, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_ResetTime, UI32, 5, 0, 0x4, 0x3F098, 0x1388, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_TtaMode, TtaMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, TransPerCont ) \ DBSCHEMA_DEFN( G1_TtaTime, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_SstOcForward, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_EftEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ClpClm, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1388, 0.001, 0.1, NULL ) \ DBSCHEMA_DEFN( G1_ClpTcl, UI32, 5, 0, 0x4, 0x3F098, 0x1, 0x190, 1, 1, min ) \ DBSCHEMA_DEFN( G1_ClpTrec, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G1_IrrIrm, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.1, mill ) \ DBSCHEMA_DEFN( G1_IrrTir, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_VrcMode, VrcMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_VrcUMmin, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G1_AbrMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OC1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( CMS_ModemDialNumber2, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OC2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_OC2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EftTripCount, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x32, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OC3F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OC1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EftTripWindow, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x18, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OC2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_OC2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OC2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OC3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OC3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OC3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EF1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_DEPRECATED_G1EF1F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_EF1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EF2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_EF2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_DEPRECATED_G1EF2F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_EF2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EF3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EF1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_DEPRECATED_G1EF1R_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_EF1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EF2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_EF2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EF2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EF3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EF3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EF3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFF_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G1_SEFF_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_SEFF_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_SEFF_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_SEFF_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFF_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFF_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFF_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFR_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G1_SEFR_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_SEFR_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_SEFR_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_SEFR_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFR_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFR_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SEFR_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OcLl_Ip, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G1_OcLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OcLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EfLl_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x138800, 0.001, 0.01, A ) \ DBSCHEMA_DEFN( G1_EfLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EfLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Uv1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Uv1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Uv1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Uv1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Uv2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Uv2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Uv2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Uv2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Uv3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Uv3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Uv3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ov1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Ov1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Ov1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Ov1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ov2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Ov2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Ov2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Ov2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Uf_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xB3B0, 0xEA60, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G1_Uf_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Uf_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Uf_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G1_Of_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xC350, 0xFDE8, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G1_Of_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Of_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Of_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G1_DEPRECATED_OC1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DEPRECATED_OC2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G1_DEPRECATED_OC1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G1_DEPRECATED_OC2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G1_DEPRECATED_EF1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G1_DEPRECATED_EF2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G1_DEPRECATED_EF1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G1_DEPRECATED_EF2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G1_SstEfForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_SstSefForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_AbrTrest, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_AutoOpenMode, AutoOpenMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_AutoOpenTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x168, 1, 1, min ) \ DBSCHEMA_DEFN( G1_AutoOpenOpns, UI8, 1, 0, 0x1, 0x3F098, 0x0, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SstOcReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_SstEfReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_SstSefReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_ArUVOV_Trec, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_GrpName, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_GrpDes, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_ModemDialNumber3, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_ModemDialNumber4, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_ModemDialNumber5, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemAutoDialInterval, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_ModemAutoDialInterval, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3_ModemConnectionTimeout, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_ModemConnectionTimeout, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpTcpSlavePort, UI16, 3, 0, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( CMS_PortNumber, UI16, 3, 1, 0x2, 0x1F098, 0x1, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateFileCopyFail, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaHMIEnableProtocol, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaHMIChannelPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaHMIRemotePort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCMSLocalPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x8, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbGadgetConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ShutdownExpected, ShutdownReason, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSimNotCalibrated, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Io1OpMode, LocalRemote, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( Io2OpMode, LocalRemote, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( RestoreEnabled, YesNo, 0, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ReportTimeSetting, UI32, 5, 0, 0x4, 0x7099, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaOpMode, LocalRemote, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsSerialFrameRxTimeout, UI32, 5, 0, 0x4, 0x8001, 0x1, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( CopyComplete, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ReqSetExtLoad, OnOff, 1, 1, 0x1, 0x201D008, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ControlExtLoad, OnOff, 1, 0, 0x1, 0x2000019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLineSupplyStatusAbnormal, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvEventLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvCloseOpenLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvFaultProfileLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvLoadProfileLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvChangeLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimBatteryVoltageScaled, UI16, 3, 0, 0x2, 0x18019, 0x0, 0x7FFF, 0.001, 0.001, V_x0_001x ) \ DBSCHEMA_DEFN( LocalInputDebouncePeriod, UI16, 3, 0, 0x2, 0x1F099, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( ScadaT101ChannelMode, T101ChannelMode, 0, 0, 0x1, 0x18018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101DataLinkAddSize, UI8, 1, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT104TCPPortNr, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101CAASize, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCAA, UI16, 3, 0, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101DataLinkAdd, UI16, 3, 0, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101COTSize, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101IOASize, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101SingleCharEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101MaxDLFrameSize, UI16, 3, 0, 0x2, 0x1F098, 0xC, 0x105, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT101FrameTimeout, UI16, 3, 0, 0x2, 0x1F098, 0xA, 0xFFFF, 1, 1, ms ) \ DBSCHEMA_DEFN( ScadaT101LinkConfirmTimeout, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0xFFFF, 1, 1, ms ) \ DBSCHEMA_DEFN( ScadaT10BSelectExecuteTimeout, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0xFFFF, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaT104ControlTSTimeout, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaT101TimeStampSize, T101TimeStampSize, 1, 0, 0x1, 0x1F098, 0x3, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BClockValidPeriod, UI32, 5, 0, 0x4, 0x1F098, 0x3C, 0x3F4800, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaT10BCyclicPeriod, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0xFFFF, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaT10BBackgroundPeriod, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0xFFFF, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaT10BSinglePointRepMode, T10BReportMode, 1, 0, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BDoublePointRepMode, T10BReportMode, 1, 0, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSingleCmdRepMode, T10BControlMode, 1, 0, 0x1, 0x1F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BDoubleCmdRepMode, T10BControlMode, 1, 0, 0x1, 0x1F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BMeasurandRepMode, T10BReportMode, 1, 0, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSetpointRepMode, T10BControlMode, 1, 0, 0x1, 0x1F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BParamCmdRepMode, T10BParamRepMode, 1, 0, 0x1, 0x1F098, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BIntTotRepMode, T10BCounterRepMode, 1, 0, 0x1, 0x1F098, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSinglePointBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BDoublePointBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSingleCmdBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BDoubleCmdBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BMeasurandBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSetpointBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BParamCmdBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0x19979F, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BIntTotBaseIOA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BFormatMeasurand, T10BFormatMeasurand, 0, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCounterGeneralLocalFrzPeriod, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x7FFF, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp1LocalFrzPeriod, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x7FFF, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp2LocalFrzPeriod, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x7FFF, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp3LocalFrzPeriod, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x7FFF, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp4LocalFrzPeriod, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x7FFF, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaT10BCounterGeneralLocalFrzFunction, PeriodicCounterOperation, 0, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp1LocalFrzFunction, PeriodicCounterOperation, 0, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp2LocalFrzFunction, PeriodicCounterOperation, 0, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp3LocalFrzFunction, PeriodicCounterOperation, 0, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCounterGrp4LocalFrzFunction, PeriodicCounterOperation, 0, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSingleInfoInputs, ScadaT10BMSP, 10, 0, 0x282, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BDoubleInfoInputs, ScadaT10BMDP, 10, 0, 0xA2, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSingleCmndOutputs, ScadaT10BCSC, 10, 0, 0x142, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BDoubleCmndOutputs, ScadaT10BCDC, 10, 0, 0xA2, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BMeasuredValues, ScadaT10BMME, 10, 0, 0x302, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSetpointCommand, ScadaT10BCSE, 10, 0, 0x1A, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BParameterCommand, ScadaT10BPME, 10, 0, 0x62, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BIntegratedTotal, ScadaT10BMIT, 10, 0, 0x242, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsMainConnectionTimeout, UI32, 5, 0, 0x4, 0x8001, 0x1, 0x0, 1, 1, ms ) \ DBSCHEMA_DEFN( CmsAuxConnectionTimeout, UI32, 5, 0, 0x4, 0x8001, 0x1, 0x0, 1, 1, ms ) \ DBSCHEMA_DEFN( CmsMainConnected, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxConnected, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpProtocolMode, CommsIpProtocolMode, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpValidMasterAddr, YesNo, 0, 1, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpMasterAddr, IpAddr, 8, 0, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T10BPhaseCurrentDeadband, I16, 2, 0, 0x2, 0x18019, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpTcpMasterPort, UI16, 3, 1, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpUdpSlavePort, UI16, 3, 1, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpTimeout, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x2A300, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3IpTcpKeepAlive, UI32, 5, 1, 0x4, 0x1F098, 0x1, 0x2A300, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3IpUdpMasterPortInit, UI16, 3, 1, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpUdpMasterPortInRqst, YesNo, 0, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpUdpMasterPort, UI16, 3, 1, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemDialOut, Bool, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemPreDialString, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemDialNumber1, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemDialNumber2, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemDialNumber3, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemDialNumber4, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemDialNumber5, Str, 9, 1, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BEnableProtocol, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT104PendingFrames, UI16, 3, 0, 0x2, 0x1F098, 0x1, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BChannelPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT104ConfirmAfter, UI16, 3, 0, 0x2, 0x1F098, 0x1, 0x7FFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemAutoDialInterval, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101_ModemConnectionTimeout, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101RxCnt, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T101TxCnt, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T104RxCnt, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T104TxCnt, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( T10BPhaseVoltageDeadband, I16, 2, 0, 0x2, 0x18019, 0x0, 0x2710, 1, 1, NULL ) \ DBSCHEMA_DEFN( T10BResidualCurrentDeadband, I16, 2, 0, 0x2, 0x18019, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( T10B3PhasePowerDeadband, I16, 2, 0, 0x2, 0x18019, 0x0, 0x2710, 1, 1, NULL ) \ DBSCHEMA_DEFN( T10BPhaseCurrentHiLimit, I16, 2, 0, 0x2, 0x18019, 0x0, 0x3E80, 1, 1, NULL ) \ DBSCHEMA_DEFN( T10BResidualCurrentHiLimit, I16, 2, 0, 0x2, 0x18019, 0x0, 0x3E80, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdIo1SerialNumber, SerialNumber, 8, 0, 0xD, 0x10007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv1, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv2, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv3, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv4, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv5, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv6, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv7, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv8, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv9, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv10, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv11, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv12, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv13, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv14, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv15, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv16, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv17, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv18, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv19, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv20, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv21, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv22, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv23, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv24, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv25, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv26, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv27, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv28, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv29, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv30, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv31, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv32, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv33, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv34, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv35, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv36, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv37, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv38, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv39, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv40, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv41, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv42, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv43, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv44, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv45, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv46, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv47, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv48, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv49, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Curv50, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimRqOpen, EnDis, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( SimRqClose, EnDis, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( SimLockout, EnDis, 1, 1, 0x1, 0x18018, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( DEPRCATED_EvArUInit, Bool, 1, 0, 0x1, 0x1039, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DERECATED_EvArUClose, Bool, 1, 0, 0x1, 0x1039, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DEPRECATED_EvArURes, Bool, 1, 0, 0x1, 0x1019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoOpen, LogOpen, 8, 0, 0x22, 0x1059, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoClose, LogOpen, 8, 0, 0x22, 0x1059, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoOpenReq, LogOpen, 8, 0, 0x22, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoCloseReq, LogOpen, 8, 0, 0x22, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogFaultBufAddr1, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogFaultBufAddr2, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogFaultBufAddr3, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogFaultBufAddr4, UI32, 5, 1, 0x4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSdoReadReq, CanSdoReadReqType, 8, 1, 0xA, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSdoReadSucc, UI8, 1, 1, 0x1, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripCloseRequestStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x21, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchPositionStatus, UI8, 1, 0, 0x1, 0x19019, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchManualTrip, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchConnectionStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchLockoutStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimOSMActuatorFaultStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimOSMlimitSwitchFaultStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x41, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimDriverStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripCAPVoltage, UI16, 3, 0, 0x2, 0x18019, 0x0, 0x88B8, 0.01, 0.01, V ) \ DBSCHEMA_DEFN( CanSimCloseCAPVoltage, UI16, 3, 0, 0x2, 0x18019, 0x0, 0x88B8, 0.01, 0.01, V ) \ DBSCHEMA_DEFN( CanSimSIMCalibrationStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchgearType, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchgearCTRatio, UI16, 3, 0, 0x2, 0x18019, 0x0, 0x1388, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTaCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000162664, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTbCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000162664, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTcCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000162664, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTnCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.000143437, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTTempCompCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0001, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCVTaCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCVTbCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCVTcCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCVTrCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCVTsCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCVTtCalCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCVTTempCompCoef, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0001, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCalibrationWriteData, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimBatteryStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimBatteryChargerStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x20, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimLowPowerBatteryCharge, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimBatteryVoltage, UI16, 3, 0, 0x2, 0x1001A019, 0x0, 0xFFF, 0.01, 0.01, V_x0_01x ) \ DBSCHEMA_DEFN( CanSimBatteryCurrent, I16, 2, 0, 0x2, 0x10018019, 0xF830, 0x7D0, 0.01, 0.01, A ) \ DBSCHEMA_DEFN( CanSimBatteryChargerCurrent, I16, 2, 0, 0x2, 0x18019, 0xF830, 0x7D0, 0.01, 0.01, A ) \ DBSCHEMA_DEFN( CanSimBatteryCapacityRemaining, UI8, 1, 0, 0x1, 0x1001A019, 0x0, 0x64, 1, 1, PCT ) \ DBSCHEMA_DEFN( CanSimSetTotalBatteryCapacity, UI8, 1, 0, 0x1, 0x1F098, 0xA, 0x32, 1, 1, AH ) \ DBSCHEMA_DEFN( CanSimSetBatteryType, UI8, 1, 0, 0x1, 0x1D019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimInitiateBatteryTest, UI8, 1, 0, 0x1, 0x18019, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimBatteryTestResult, UI8, 1, 0, 0x1, 0x18019, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimExtSupplyStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimExtSupplyCurrent, I16, 2, 0, 0x2, 0x18019, 0x0, 0x3E8, 0.01, 0.01, A ) \ DBSCHEMA_DEFN( CanSimSetExtLoad, UI8, 1, 0, 0x1, 0x18018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSetShutdownLevel, UI8, 1, 0, 0x1, 0x1F098, 0xA, 0x32, 1, 1, Percent ) \ DBSCHEMA_DEFN( CanSimSetShutdownTime, UI16, 3, 0, 0x2, 0x1F098, 0x0, 0x5A0, 1, 1, Mins ) \ DBSCHEMA_DEFN( CanSimUPSStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x3F, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimLineSupplyStatus, LineSupplyStatus, 1, 0, 0x1, 0x18019, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimLineSupplyRange, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimUPSPowerUp, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimReadTime, UI32, 5, 0, 0x4, 0x8019, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( CanSimSetTimeDate, UI32, 5, 0, 0x4, 0x2007081, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( CanSimSIMTemp, I16, 2, 0, 0x2, 0x10018019, 0xCE64, 0x3200, 0.01, 0.01, Degree ) \ DBSCHEMA_DEFN( CanSimRequestWatchdogUpdate, UI8, 1, 0, 0x1, 0x18019, 0x1, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimRespondWatchdogRequest, UI8, 1, 0, 0x1, 0x18019, 0x1, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimDisableWatchdog, UI32, 5, 0, 0x4, 0x18019, 0x4C1, 0x4C1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimModuleResetStatus, UI8, 1, 0, 0x1, 0x18019, 0x1, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimResetModule, UI8, 1, 0, 0x1, 0x18019, 0x1, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimShutdownRequest, UI8, 1, 0, 0x1, 0x18019, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimModuleHealth, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimModuleFault, UI16, 3, 0, 0x2, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimModuleTemp, I16, 2, 0, 0x2, 0x18019, 0xCE64, 0x3200, 0.01, 0.01, Degree ) \ DBSCHEMA_DEFN( CanSimModuleVoltage, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFF, 0.01, 0.01, V ) \ DBSCHEMA_DEFN( CanSimModuleType, UI8, 1, 0, 0x1, 0x18019, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimReadSerialNumber, Str, 9, 0, 0x29, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimBootLoaderVers, SwVersion, 8, 0, 0x6, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdIo2SerialNumber, SerialNumber, 8, 0, 0xD, 0x10007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimReadHWVers, UI32, 5, 0, 0x4, 0x8019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimReadSWVers, SwVersion, 8, 0, 0x6, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1InputStatus, UI8, 1, 0, 0x1, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2InputStatus, UI8, 1, 0, 0x1, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCANControllerOverrun, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCANControllerError, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCANMessagebufferoverflow, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1InputEnable, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2InputEnable, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1InputTrigger, UI8, 1, 0, 0x1, 0x18000, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2InputTrigger, UI8, 1, 0, 0x1, 0x18000, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimEmergShutdownRequest, UI8, 1, 0, 0x1, 0x18019, 0x1, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickup, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOc1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOc2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOc3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOc1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOc2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOc3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEf1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEf2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEf3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEf1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEf2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEf3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupSefF, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupSefR, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOcll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEfll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUv1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUv2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUv3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOv1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOv2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOf, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUf, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUabcGT, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUabcLT, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUrstGT, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUrstLT, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OcAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G2_OcDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G2_EfAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G2_EfDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G2_SefAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G2_SefDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G2_ArOCEF_ZSCmode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_VrcEnable, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( CanDataRequestIo1, CanObjType, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ArOCEF_Trec1, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_ArOCEF_Trec2, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_ArOCEF_Trec3, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_ResetTime, UI32, 5, 0, 0x4, 0x3F098, 0x1388, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_TtaMode, TtaMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, TransPerCont ) \ DBSCHEMA_DEFN( G2_TtaTime, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_SstOcForward, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_EftEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ClpClm, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1388, 0.001, 0.1, NULL ) \ DBSCHEMA_DEFN( G2_ClpTcl, UI32, 5, 0, 0x4, 0x3F098, 0x1, 0x190, 1, 1, min ) \ DBSCHEMA_DEFN( G2_ClpTrec, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G2_IrrIrm, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.1, mill ) \ DBSCHEMA_DEFN( G2_IrrTir, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_VrcMode, VrcMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_VrcUMmin, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G2_AbrMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OC1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( CanDataRequestIo2, CanObjType, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OC2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_OC2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EftTripCount, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x32, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OC3F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OC1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EftTripWindow, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x18, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OC2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_OC2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OC2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OC3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OC3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OC3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EF1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_DEPRECATED_G1EF1F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_EF1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EF2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_EF2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_DEPRECATED_G1EF2F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_EF2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EF3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EF1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_DEPRECATED_G1EF1R_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_EF1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EF2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_EF2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EF2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EF3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EF3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EF3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFF_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G2_SEFF_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_SEFF_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_SEFF_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_SEFF_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFF_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFF_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFF_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFR_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G2_SEFR_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_SEFR_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_SEFR_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_SEFR_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFR_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFR_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SEFR_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OcLl_Ip, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G2_OcLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OcLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EfLl_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x138800, 0.001, 0.01, A ) \ DBSCHEMA_DEFN( G2_EfLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EfLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Uv1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Uv1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Uv1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Uv1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Uv2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Uv2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Uv2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Uv2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Uv3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Uv3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Uv3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ov1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Ov1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Ov1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Ov1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ov2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Ov2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Ov2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Ov2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Uf_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xB3B0, 0xEA60, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G2_Uf_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Uf_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Uf_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G2_Of_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xC350, 0xFDE8, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G2_Of_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Of_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Of_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G2_DEPRECATED_OC1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DEPRECATED_OC2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G2_DEPRECATED_OC1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G2_DEPRECATED_OC2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G2_DEPRECATED_EF1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G2_DEPRECATED_EF2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G2_DEPRECATED_EF1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G2_DEPRECATED_EF2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G2_SstEfForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_SstSefForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_AbrTrest, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_AutoOpenMode, AutoOpenMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_AutoOpenTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x168, 1, 1, min ) \ DBSCHEMA_DEFN( G2_AutoOpenOpns, UI8, 1, 0, 0x1, 0x3F098, 0x0, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SstOcReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_SstEfReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_SstSefReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_ArUVOV_Trec, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_GrpName, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_GrpDes, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1InputRecognitionTime, CanIoInputRecTimes, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2InputRecognitionTime, CanIoInputRecTimes, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1OutputEnable, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2OutputEnable, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1OutputSet, UI8, 1, 0, 0x1, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2OutputSet, UI8, 1, 0, 0x1, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1OutputPulseEnable, UI8, 1, 0, 0x1, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2OutputPulseEnable, UI8, 1, 0, 0x1, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime1, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime2, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime3, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime4, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime5, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime6, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime7, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo1OutputPulseTime8, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime1, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime2, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime3, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime4, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime5, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime6, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime7, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( CanIo2OutputPulseTime8, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( UsbABCShutdownEnable, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3RqstCnt, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpUnathIpAddr, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBHostOff, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1ModuleType, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2ModuleType, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1ModuleHealth, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2ModuleHealth, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1ModuleFault, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2ModuleFault, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1SerialNumber, Arr8, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2SerialNumber, Arr8, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1PartAndSupplierCode, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2PartAndSupplierCode, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1Test, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2Test, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IO1Number, ConfigIOCardNum, 1, 0, 0x1, 0x18019, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( IO2Number, ConfigIOCardNum, 1, 0, 0x1, 0x18019, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoStatusILocCh1, IoStatus, 1, 0, 0x1, 0x10004001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoStatusILocCh2, IoStatus, 1, 0, 0x1, 0x10004001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoStatusILocCh3, IoStatus, 1, 0, 0x1, 0x10004001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1ReadHwVers, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2ReadHwVers, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1ReadSwVers, SwVersion, 8, 0, 0x6, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2ReadSwVers, SwVersion, 8, 0, 0x6, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdIO1SoftwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdIO2SoftwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdIO1HardwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdIO2HardwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIoAddrReq, Arr8, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1ResetModule, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2ResetModule, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchgearType, SwitchgearTypes, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputEnable, UI8, 1, 0, 0x1, 0x18018, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputEnable, UI8, 1, 0, 0x1, 0x18018, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputEnable, UI8, 1, 0, 0x1, 0x18018, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputEnable, UI8, 1, 0, 0x1, 0x18018, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingILocEnable, UI8, 1, 0, 0x1, 0x18018, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLockoutProt, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingILocTrec1, UI8, 1, 0, 0x1, 0x18018, 0x1, 0x64, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingILocTrec2, UI8, 1, 0, 0x1, 0x18018, 0x1, 0x64, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingILocTrec3, UI8, 1, 0, 0x1, 0x18018, 0x1, 0x64, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh1, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh2, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh3, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh4, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh5, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh6, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh7, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1InTrecCh8, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh1, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh2, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh3, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh4, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh5, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh6, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh7, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo2InTrecCh8, UI8, 1, 0, 0x1, 0x18018, 0x1, 0xC8, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicVAR1, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR2, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR3, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR4, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR5, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR6, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR7, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR8, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR9, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR10, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR11, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR12, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR13, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR14, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR15, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR16, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlLoSeq2On, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlLoSeq3On, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ActLoSeqMode, LoSeqMode, 1, 1, 0x1, 0x203A018, 0x2, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoProcessOpMode, LocalRemote, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlSSMOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlFTDisOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pRemoteLanAddr, IpAddr, 8, 1, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pCommUpdateRates, UI32, 5, 1, 0x4, 0x1F098, 0x28, 0x493E0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( p2pCommEnable, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlLogTest, Signal, 8, 0, 0xA, 0x743074B9, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEventIo1, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEventIo2, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh1NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh2NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh3NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh4NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh5NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh6NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh7NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh8NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh1InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh2InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh3InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh4InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh5InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh6InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh7InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh8InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicChEnable, UI8, 1, 0, 0x1, 0x18000, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OcAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G3_OcDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G3_EfAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G3_EfDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G3_SefAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G3_SefDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G3_ArOCEF_ZSCmode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_VrcEnable, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( LogicChMode, LogicChannelMode, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ArOCEF_Trec1, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_ArOCEF_Trec2, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_ArOCEF_Trec3, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_ResetTime, UI32, 5, 0, 0x4, 0x3F098, 0x1388, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_TtaMode, TtaMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, TransPerCont ) \ DBSCHEMA_DEFN( G3_TtaTime, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_SstOcForward, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_EftEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ClpClm, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1388, 0.001, 0.1, NULL ) \ DBSCHEMA_DEFN( G3_ClpTcl, UI32, 5, 0, 0x4, 0x3F098, 0x1, 0x190, 1, 1, min ) \ DBSCHEMA_DEFN( G3_ClpTrec, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G3_IrrIrm, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.1, mill ) \ DBSCHEMA_DEFN( G3_IrrTir, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_VrcMode, VrcMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_VrcUMmin, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G3_AbrMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OC1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( LogicChLogChange, UI8, 1, 0, 0x1, 0x18000, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OC2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_OC2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EftTripCount, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x32, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OC3F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OC1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EftTripWindow, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x18, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OC2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_OC2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OC2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OC3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OC3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OC3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EF1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_DEPRECATED_G1EF1F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_EF1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EF2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_EF2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_DEPRECATED_G1EF2F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_EF2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EF3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EF1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_DEPRECATED_G1EF1R_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_EF1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EF2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_EF2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EF2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EF3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EF3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EF3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFF_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G3_SEFF_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_SEFF_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_SEFF_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_SEFF_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFF_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFF_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFF_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFR_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G3_SEFR_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_SEFR_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_SEFR_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_SEFR_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFR_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFR_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SEFR_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OcLl_Ip, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G3_OcLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OcLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EfLl_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x138800, 0.001, 0.01, A ) \ DBSCHEMA_DEFN( G3_EfLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EfLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Uv1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Uv1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Uv1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Uv1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Uv2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Uv2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Uv2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Uv2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Uv3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Uv3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Uv3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ov1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Ov1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Ov1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Ov1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ov2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Ov2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Ov2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Ov2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Uf_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xB3B0, 0xEA60, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G3_Uf_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Uf_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Uf_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G3_Of_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xC350, 0xFDE8, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G3_Of_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Of_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Of_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G3_DEPRECATED_OC1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DEPRECATED_OC2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G3_DEPRECATED_OC1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G3_DEPRECATED_OC2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G3_DEPRECATED_EF1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G3_DEPRECATED_EF2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G3_DEPRECATED_EF1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G3_DEPRECATED_EF2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G3_SstEfForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_SstSefForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_AbrTrest, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_AutoOpenMode, AutoOpenMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_AutoOpenTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x168, 1, 1, min ) \ DBSCHEMA_DEFN( G3_AutoOpenOpns, UI8, 1, 0, 0x1, 0x3F098, 0x0, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SstOcReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_SstEfReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_SstSefReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_ArUVOV_Trec, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_GrpName, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_GrpDes, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh1OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh2OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh3OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh4OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh5OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh6OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh7OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh8OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh1RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh2RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh3RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh4RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh5RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh6RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh7RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh8RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh1ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh2ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh3ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh4ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh5ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh6ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh7ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh8ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh1PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh2PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh3PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh4PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh5PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh6PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh7PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh8PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicChPulseEnable, UI8, 1, 0, 0x1, 0x18000, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh1Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh2Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh3Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh4Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh5Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh6Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh7Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh8Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh1Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh2Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh3Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh4Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh5Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh6Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh7Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh8Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMntActivated, Signal, 8, 0, 0xA, 0x54101421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlACOOn, Signal, 8, 0, 0xA, 0x76027499, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioRdData, SimImageBytes, 9, 0, 0x9, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioFirmwareVerifyStatus, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioFirmwareTypeRunning, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanDataRequestIo, CanObjType, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdGpioSoftwareVer, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProgramGpioCmd, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT104TimeoutT0, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0xFF, 1, 1, seconds ) \ DBSCHEMA_DEFN( ScadaT104TimeoutT1, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0xFF, 1, 1, seconds ) \ DBSCHEMA_DEFN( ScadaT104TimeoutT2, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0xFF, 1, 1, seconds ) \ DBSCHEMA_DEFN( ScadaT104TimeoutT3, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x2A300, 1, 1, seconds ) \ DBSCHEMA_DEFN( LogicCh1Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh2Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh3Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh4Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh5Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh6Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh7Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh8Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pChannelPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedUI8_0, UI8, 1, 0, 0x1, 0x18019, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedUI8_1, UI8, 1, 0, 0x1, 0x18019, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedSignal_0, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedSignal_1, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedSignal_2, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedSignal_3, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioRequestMoreData, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeSupply, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeLoad, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUV1, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUVab, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUVbc, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUVca, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUFabc, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUVrs, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUVst, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUVtr, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeUFrst, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SupplyHealthState, SupplyState, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadHealthState, LoadState, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLoadDead, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSupplyUnhealthy, Signal, 8, 0, 0xA, 0x54042419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACO_Debug, UI32, 5, 0, 0x4, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACO_TPup, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( EvACOState, LogEvent, 8, 0, 0x1C, 0x1039, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPeer, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedPeer, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfunctionPeer, Signal, 8, 0, 0xA, 0x4002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigWarningPeer, Signal, 8, 0, 0xA, 0x4002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedUI32_0, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtStatusStatePeer, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pMappedUI32_1, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOFrst, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOFabc, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOVtr, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOVst, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOVrs, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOV1, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOVab, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOVbc, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupRangeOVca, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOOperationMode, ACOOpMode, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOMakeBeforeBreak, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenACO, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedACO, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSupplyUnhealthyPeer, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOOperationModePeer, ACOOpMode, 1, 0, 0x1, 0x3019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACODisplayState, OpenClose, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACODisplayStatePeer, OpenClose, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOHealth, ACOHealthReason, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOHealthPeer, ACOHealthReason, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlACOOnPeer, Signal, 8, 0, 0xA, 0x4007499, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOMakeBeforeBreakPeer, EnDis, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OcAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G4_OcDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G4_EfAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G4_EfDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G4_SefAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G4_SefDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G4_ArOCEF_ZSCmode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_VrcEnable, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( SimSwitchStatusPeer, SwState, 1, 0, 0x1, 0x18019, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ArOCEF_Trec1, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_ArOCEF_Trec2, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_ArOCEF_Trec3, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_ResetTime, UI32, 5, 0, 0x4, 0x3F098, 0x1388, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_TtaMode, TtaMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, TransPerCont ) \ DBSCHEMA_DEFN( G4_TtaTime, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_SstOcForward, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_EftEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ClpClm, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1388, 0.001, 0.1, NULL ) \ DBSCHEMA_DEFN( G4_ClpTcl, UI32, 5, 0, 0x4, 0x3F098, 0x1, 0x190, 1, 1, min ) \ DBSCHEMA_DEFN( G4_ClpTrec, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G4_IrrIrm, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.1, mill ) \ DBSCHEMA_DEFN( G4_IrrTir, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_VrcMode, VrcMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_VrcUMmin, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G4_AbrMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OC1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OC2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_OC2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EftTripCount, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x32, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OC3F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OC1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EftTripWindow, UI8, 1, 1, 0x1, 0x3F098, 0x1, 0x18, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OC2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_OC2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OC2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OC3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OC3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OC3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EF1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_DEPRECATED_G1EF1F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_EF1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EF2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_EF2F_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_DEPRECATED_G1EF2F_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_EF2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3F_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EF3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EF1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_DEPRECATED_G1EF1R_Tres, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_EF1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EF2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_EF2R_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EF2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3R_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EF3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EF3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EF3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFF_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G4_SEFF_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_SEFF_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_SEFF_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_SEFF_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFF_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFF_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFF_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFR_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G4_SEFR_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_SEFR_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_SEFR_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_SEFR_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFR_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFR_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SEFR_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OcLl_Ip, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G4_OcLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OcLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EfLl_Ip, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x138800, 0.001, 0.01, A ) \ DBSCHEMA_DEFN( G4_EfLl_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EfLl_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Uv1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Uv1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Uv1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Uv1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Uv2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x258, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Uv2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Uv2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Uv2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Uv3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Uv3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Uv3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ov1_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Ov1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Ov1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Ov1_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ov2_Um, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4B0, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Ov2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Ov2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Ov2_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Uf_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xB3B0, 0xEA60, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G4_Uf_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Uf_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Uf_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G4_Of_Fp, UI32, 5, 0, 0x4, 0x3F098, 0xC350, 0xFDE8, 0.001, 0.01, mHz ) \ DBSCHEMA_DEFN( G4_Of_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x32, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Of_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Of_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, TripMode ) \ DBSCHEMA_DEFN( G4_DEPRECATED_OC1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DEPRECATED_OC2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G4_DEPRECATED_OC1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G4_DEPRECATED_OC2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G4_DEPRECATED_EF1F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G4_DEPRECATED_EF2F_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G4_DEPRECATED_EF1R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G4_DEPRECATED_EF2R_ImaxAbs, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x1770, 1, 1, Amps ) \ DBSCHEMA_DEFN( G4_SstEfForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_SstSefForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_AbrTrest, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_AutoOpenMode, AutoOpenMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_AutoOpenTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x168, 1, 1, min ) \ DBSCHEMA_DEFN( G4_AutoOpenOpns, UI8, 1, 0, 0x1, 0x3F098, 0x0, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SstOcReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_SstEfReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_SstSefReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_ArUVOV_Trec, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_GrpName, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_GrpDes, Str, 9, 0, 0x29, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvLifetimeCounters, ChangeEvent, 0, 0, 0x1, 0x1F099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOUnhealthy, Signal, 8, 0, 0xA, 0x54042419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pHealth, OkFail, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigP2PCommFail, Signal, 8, 0, 0xA, 0x54040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOIsMaster, Bool, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOEnableSlave, UI8, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOEnableSlavePeer, UI8, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOSwRqst , UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOSwState , UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOSwStatePeer, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACOSwRqstPeer, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvLogic, ChangeEvent, 0, 0, 0x1, 0x3085, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SupplyHealthStatePeer, SupplyState, 1, 0, 0x1, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ResetBinaryFaultTargets, Signal, 8, 0, 0xA, 0x64003499, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IaTrip, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( IbTrip, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( IcTrip, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( InTrip, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( ResetTripCurrents, Signal, 8, 0, 0xA, 0x64003499, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ACO_TPupPeer, UI32, 5, 0, 0x4, 0x1A019, 0x0, 0x2BF20, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( LoadDeadPeer, UI32, 5, 0, 0x4, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIoModuleResetStatus, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3EnableCommsLog, EnDis, 1, 0, 0x1, 0x1D099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCMSEnableCommsLog, EnDis, 1, 0, 0x1, 0x1D099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaHMIEnableCommsLog, EnDis, 1, 0, 0x1, 0x1D099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pCommEnableCommsLog, EnDis, 1, 0, 0x1, 0x1D099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pCommCommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3CommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCMSCommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaHMICommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BEnableCommsLog, EnDis, 1, 0, 0x1, 0x1D099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenLogic, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedLogic, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvIoSettings, ChangeEvent, 0, 0, 0x1, 0x3085, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOperWarning, Signal, 8, 0, 0xA, 0x6002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOperWarningPeer, Signal, 8, 0, 0xA, 0x4002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogEventV, LogEventV, 8, 0, 0x218, 0x1001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PhaseConfig, PhaseConfig, 3, 0, 0x2, 0x1001F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3PollWatchDogTime, UI16, 3, 1, 0x2, 0x1F098, 0x0, 0x5A0, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaT10BPollWatchDogTime, UI16, 3, 1, 0x2, 0x1F098, 0x0, 0x5A0, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaDnp3BinaryControlWatchDogTime, UI16, 3, 1, 0x2, 0x1F098, 0x0, 0x5A0, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaT10BBinaryControlWatchDogTime, UI16, 3, 1, 0x2, 0x1F098, 0x0, 0x5A0, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaDnp3Polled, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BPolled, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3CommunicationWatchDogTimeout, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCommunicationWatchDogTimeout, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3WatchDogControl, Signal, 8, 1, 0xA, 0x64000400, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BWatchDogControl, Signal, 8, 1, 0xA, 0x4000400, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IaLGVT, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IcLGVT, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IaMDIToday, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IbMDIToday, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IcMDIToday, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IaMDIYesterday, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IbMDIYesterday, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IcMDIYesterday, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IaMDILastWeek, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IbMDILastWeek, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IcMDILastWeek, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IbLGVT, UI32, 5, 0, 0x4, 0x10018019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( IdRelayNumModel, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayNumPlant, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayNumDate, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayNumSeq, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelaySwVer1, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelaySwVer2, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelaySwVer3, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelaySwVer4, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMNumModel, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMNumPlant, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMNumDate, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMNumSeq, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMSwVer1, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMSwVer2, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMSwVer3, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMSwVer4, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumModel, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumPlant, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumDate, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumSeq, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigRTCHwFault, Signal, 8, 0, 0xA, 0x4041401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlLinkHltToLl, Signal, 8, 1, 0xA, 0x6007498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscEnable, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscCaptureTime, OscCaptureTime, 1, 1, 0x1, 0x7098, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( OscCapturePrior, OscCapturePrior, 1, 1, 0x1, 0x7098, 0x0, 0x0, 1, 1, PCT ) \ DBSCHEMA_DEFN( OscOverwrite, EnDis, 1, 1, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscSaveToUSB, EnDis, 1, 1, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOscCapture, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscEvent, OscEvent, 1, 1, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLSDIabc, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( QueryGpio, UI32, 5, 0, 0x4, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscEventTriggered, YesNo, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscEventTriggerType, OscEvent, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscLogCount, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscTransferData, YesNo, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIaTDD, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIbTDD, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIcTDD, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUaTHD, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUbTHD, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUcTHD, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmInTDD, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( EventLogOldestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( EventLogNewestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SettingLogOldestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SettingLogNewestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLogOldestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLogNewestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CloseOpenLogOldestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CloseOpenLogNewestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadProfileOldestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadProfileNewestId, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogToCmsTransferRequest, LogTransferRequest, 8, 0, 0x20, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogToCmsTransferReply, LogTransferReply, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscSimFilename, Str, 9, 1, 0x64, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscSimLoopCount, UI16, 3, 1, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscSimRun, YesNo, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscSimStatus, OscSimStatus, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscTraceDir, Str, 9, 1, 0x64, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIa1st, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.125, 1, A ) \ DBSCHEMA_DEFN( HrmIb1st, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.125, 1, A ) \ DBSCHEMA_DEFN( HrmIc1st, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.125, 1, A ) \ DBSCHEMA_DEFN( HrmIn1st, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.125, 1, A ) \ DBSCHEMA_DEFN( CmsPort, UI8, 1, 1, 0x1, 0x18018, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpen, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenProt, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOc1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOc2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOc3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOc1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOc2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOc3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEf1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEf2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEf3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEf1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEf2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEf3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSefF, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSefR, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOcll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEfll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOv1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOv2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOf, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUf, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenRemote, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSCADA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenIO, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenLocal, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenMMI, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DEPRECATED_SigOpenManual, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarm, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOc1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOc2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOc3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOc1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOc2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOc3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEf1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEf2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEf3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEf1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEf2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEf3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmSefF, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmSefR, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUv1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUv2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUv3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOv1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOv2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOf, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUf, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosed, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedAR, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedAR_OcEf, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedAR_Sef, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedAR_Uv, Signal, 8, 0, 0xA, 0x4043401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedAR_Ov, Signal, 8, 0, 0xA, 0x4043401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedABR, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedRemote, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedSCADA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedIO, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedLocal, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedMMI, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedPC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedUndef, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsPortBaud, BaudRateType, 4, 1, 0x4, 0x18018, 0x10, 0x2712, 1, 1, NULL ) \ DBSCHEMA_DEFN( DEPRECATED_CmsAuxPortBaud, BaudRateType, 4, 1, 0x4, 0x1F098, 0x10, 0x2712, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsPortCrcCnt, I32, 4, 1, 0x4, 0x8018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxPortCrcCnt, UI32, 5, 1, 0x4, 0x8018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmUa1st, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, V ) \ DBSCHEMA_DEFN( CanDataRequestSim, CanObjType, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtCfgInUse, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, Addr ) \ DBSCHEMA_DEFN( CanSimBusErr, UI32, 5, 0, 0x4, 0x2019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvNonGroup, ChangeEvent, 0, 0, 0x1, 0x1F085, 0x0, 0x1, 1, 1, ChEvent ) \ DBSCHEMA_DEFN( ChEvGrp1, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, ChEvent ) \ DBSCHEMA_DEFN( ChEvGrp2, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, ChEvent ) \ DBSCHEMA_DEFN( ChEvGrp3, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, ChEvent ) \ DBSCHEMA_DEFN( ChEvGrp4, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, ChEvent ) \ DBSCHEMA_DEFN( HrmUb1st, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, V ) \ DBSCHEMA_DEFN( SigCtrlProtOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlGroup1On, Signal, 8, 1, 0xA, 0x74022418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlGroup2On, Signal, 8, 1, 0xA, 0x74022418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlGroup3On, Signal, 8, 1, 0xA, 0x74022418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlGroup4On, Signal, 8, 1, 0xA, 0x74022418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlEFOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlSEFOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlUVOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlUFOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlOVOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlOFOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlCLPOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlLLOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlAROn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlMNTOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlABROn, Signal, 8, 1, 0xA, 0x76027499, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusConnectionEstablished, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusConnectionCompleted, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusDialupInitiated, Signal, 8, 0, 0xA, 0x4103421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusDialupFailed, Signal, 8, 0, 0xA, 0x4042401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfunction, Signal, 8, 0, 0xA, 0x56042419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmUc1st, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, V ) \ DBSCHEMA_DEFN( HrmIa2nd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb2nd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc2nd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( SigMalfRelay, Signal, 8, 0, 0xA, 0x56043419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfSimComms, Signal, 8, 0, 0xA, 0x54343438, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfIo1Comms, Signal, 8, 0, 0xA, 0x54343420, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfIo2Comms, Signal, 8, 0, 0xA, 0x54343420, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfIo1Fault, Signal, 8, 0, 0xA, 0x54043421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfIo2Fault, Signal, 8, 0, 0xA, 0x54043421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigWarning, Signal, 8, 0, 0xA, 0x56042419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIn2nd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa2nd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( CntrOcATrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrOcBTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrOcCTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrEfTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrSefTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrUvTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrOvTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrUfTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrOfTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripCnt, UI32, 5, 0, 0x4, 0x10008005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MechanicalWear, UI32, 5, 0, 0x4, 0x10018005, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( BreakerWear, UI32, 5, 0, 0x4, 0x10018005, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( MeasCurrIa, UI32, 5, 0, 0x4, 0x1001801C, 0x0, 0x3B9ACA00, 0.0625, 1, A ) \ DBSCHEMA_DEFN( MeasCurrIb, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.0625, 1, A ) \ DBSCHEMA_DEFN( MeasCurrIc, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.0625, 1, A ) \ DBSCHEMA_DEFN( MeasCurrIn, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.0625, 1, A ) \ DBSCHEMA_DEFN( MeasVoltUa, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUb, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUc, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUab, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUbc, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUca, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUr, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUs, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUt, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUrs, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUst, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltUtr, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasFreqabc, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.01, 0.01, Hz ) \ DBSCHEMA_DEFN( MeasFreqrst, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.01, 0.01, Hz ) \ DBSCHEMA_DEFN( MeasPowerPhase3kVA, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVA ) \ DBSCHEMA_DEFN( MeasPowerPhase3kW, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhase3kVAr, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( MeasPowerPhaseAkVA, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVA ) \ DBSCHEMA_DEFN( MeasPowerPhaseAkW, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhaseAkVAr, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( MeasPowerPhaseBkVA, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVA ) \ DBSCHEMA_DEFN( MeasPowerPhaseBkW, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhaseBkVAr, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( MeasPowerPhaseCkVA, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVA ) \ DBSCHEMA_DEFN( MeasPowerPhaseCkW, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhaseCkVAr, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( MeasPowerFactor3phase, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0000019074, 0.01, NULL ) \ DBSCHEMA_DEFN( MeasPowerFactorAphase, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0000019074, 0.01, NULL ) \ DBSCHEMA_DEFN( MeasPowerFactorBphase, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0000019074, 0.01, NULL ) \ DBSCHEMA_DEFN( MeasPowerFactorCphase, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0000019074, 0.01, NULL ) \ DBSCHEMA_DEFN( HrmUb2nd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( MeasPowerFlowDirectionOC, ProtDirOut, 1, 0, 0x1, 0x1001801D, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerFlowDirectionEF, ProtDirOut, 1, 0, 0x1, 0x1001801D, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerFlowDirectionSEF, ProtDirOut, 1, 0, 0x1, 0x1001801D, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasEnergyPhase3FkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhase3FkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhase3FkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseAFkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseAFkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseAFkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseBFkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseBFkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseBFkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseCFkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseCFkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseCFkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasEnergyPhase3RkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhase3RkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhase3RkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseARkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseARkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseARkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseBRkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseBRkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseBRkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseCRkVAh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseCRkVArh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasEnergyPhaseCRkWh, UI32, 5, 1, 0x4, 0x1000001C, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( IdRelayNumber, SerialNumber, 8, 0, 0xD, 0x10000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayDbVer, Str, 9, 0, 0x29, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelaySoftwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayHardwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMNumber, SerialNumber, 8, 0, 0xD, 0x10000004, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMSoftwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMHardwareVer, Str, 9, 0, 0x29, 0x10000004, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPanelNumber, SerialNumber, 8, 0, 0xD, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPanelHMIVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPanelSoftwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPanelHardwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SysDateTime, TimeStamp, 8, 0, 0x8, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HltEnableCid, DbClientId, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SysControlMode, LocalRemote, 1, 0, 0x1, 0x201A000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasLoadProfDef, LoadProfileDefType, 10, 1, 0xCA, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasLoadProfTimer, UI16, 3, 1, 0x2, 0x1801C, 0x1, 0x78, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmUc2nd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( SimSwReqOpen, UI8, 1, 0, 0x1, 0x19019, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimSwReqClose, UI8, 1, 0, 0x1, 0x19019, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIa3rd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( SigCtrlRqstOpen, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstClose, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRemoteOn, Signal, 8, 0, 0xA, 0x563074A0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenLockout, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenARInit, Signal, 8, 0, 0xA, 0x54002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenProtInit, Signal, 8, 0, 0xA, 0x56001409, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIb3rd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( swsimEn, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIc3rd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusActive, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripFail, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseFail, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripActive, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseActive, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchPositionStatusUnavailable, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchManualTrip, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchDisconnectionStatus, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIn3rd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( SigSwitchLockoutStatusMechaniclocked, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusCoilOc, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmActuatorFaultStatusCoilSc, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmLimitFaultStatusFault, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigDriverStatusNotReady, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryStatusAbnormal, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryChargerStatusFlat, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryChargerStatusNormal, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryChargerStatusLowPower, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryChargerStatusTrickle, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryChargerStatusFails, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLowPowerBatteryCharge, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigExtSupplyStatusOff, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigExtSupplyStatusOverLoad, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUPSStatusAcOff, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUPSStatusBatteryOff, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUPSPowerDown, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmUa3rd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb3rd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( SigModuleSimHealthFault, Signal, 8, 0, 0xA, 0x56040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigModuleTypeSimDisconnected, Signal, 8, 0, 0xA, 0x4043418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigModuleTypeIo1Connected, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigModuleTypeIo2Connected, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigModuleTypePcConnected, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCANControllerOverrun, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCANControllerError, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCANMessagebufferoverflow, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( swsimInLockout, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( fpgaBaseAddr, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasCurrI1, UI32, 5, 0, 0x4, 0x1801D, 0x0, 0x3B9ACA00, 0.0625, 1, NULL ) \ DBSCHEMA_DEFN( MeasCurrI2, UI32, 5, 0, 0x4, 0x1001801D, 0x0, 0x3B9ACA00, 0.0625, 1, A ) \ DBSCHEMA_DEFN( MeasVoltUar, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 0.000125, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasVoltUbs, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 0.000125, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasVoltUct, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 0.000125, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasVoltU0, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 0.000125, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasVoltU1, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 0.000125, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasVoltU2, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasA0, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0006866455, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasA1, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0006866455, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasA2, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0006866455, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasPhSABC, MeasPhaseSeqAbcType, 5, 0, 0x4, 0x1001801D, 0x0, 0x2, 1, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasPhSRST, MeasPhaseSeqRstType, 5, 0, 0x4, 0x1001801D, 0x0, 0x2, 1, 0.1, NULL ) \ DBSCHEMA_DEFN( HrmUc3rd, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa4th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb4th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc4th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( smpFpgaDataValid, I8, 0, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedAR_VE, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIn4th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa4th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb4th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( seqSimulatorFname, Str, 9, 1, 0x29, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( enSwSimulator, UI8, 1, 0, 0x1, 0x6019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( enSeqSimulator, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmUc4th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa5th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh1, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh2, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh3, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh4, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh5, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh6, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh7, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1InputCh8, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh1, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh2, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh3, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh4, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh5, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh6, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh7, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2InputCh8, IoStatus, 1, 0, 0x1, 0x1000C001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh1, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh2, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh3, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh4, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh5, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh6, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh7, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1OutputCh8, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh1, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh2, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh3, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh4, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh5, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh6, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh7, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2OutputCh8, IoStatus, 1, 0, 0x1, 0x2200C018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh1, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh2, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh3, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh4, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh5, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh6, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh7, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TrecCh8, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh1, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh2, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh3, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh4, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh5, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh6, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh7, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TrecCh8, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh1, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh2, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh3, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh4, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh5, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh6, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh7, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1TresCh8, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh1, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh2, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh3, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh4, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh5, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh6, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh7, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2TresCh8, UI16, 3, 1, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrLoc1, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrLoc2, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrLoc3, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In1, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In2, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In3, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In4, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In5, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In6, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In7, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1In8, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out1, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out2, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out3, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out4, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out5, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out6, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out7, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo1Out8, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In1, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In2, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In3, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In4, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In5, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In6, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In7, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2In8, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out1, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out2, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out3, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out4, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out5, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out6, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out7, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingRpnStrIo2Out8, LogicStr, 9, 1, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingILocMode, IOSettingMode, 1, 1, 0x1, 0x1F098, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1Mode, GPIOSettingMode, 1, 1, 0x1, 0x201F098, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2Mode, GPIOSettingMode, 1, 1, 0x1, 0x201F098, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( TestIo, UI8, 1, 1, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseF3kVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseF3kW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseF3kVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFAkVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFAkW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFAkVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFBkVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFBkW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFBkVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFCkVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFCkW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseFCkVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseR3kVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseR3kW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseR3kVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRAkVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRAkW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRAkVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRBkVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRBkW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRBkVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRCkVA, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRCkW, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseRCkVAr, UI32, 5, 1, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtOcDir, ProtDirOut, 1, 1, 0x1, 0x18018, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtEfDir, ProtDirOut, 1, 1, 0x1, 0x18018, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtSefDir, ProtDirOut, 1, 1, 0x1, 0x18018, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIb5th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( MeasLoadProfEnrg3FkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrg3FkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrg3FkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgAFkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgAFkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgAFkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgBFkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgBFkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgBFkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgCFkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgCFkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgCFkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrg3RkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrg3RkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrg3RkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgARkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgARkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgARkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgBRkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgBRkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgBRkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgCRkVAh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVAh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgCRkVArh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kVArh ) \ DBSCHEMA_DEFN( MeasLoadProfEnrgCRkWh, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, kWh ) \ DBSCHEMA_DEFN( FaultProfileDataAddr, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( dbSaveFName, Str, 9, 0, 0x29, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( dbConfigFName, Str, 9, 0, 0x29, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( dbFileCmd, DbFileCommand, 1, 0, 0x1, 0x18019, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIc5th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn5th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa5th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb5th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( protLifeTickCnt, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmUc5th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( ScadaDnp3GenLinkSlaveAddr, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0xFFEF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenLinkConfirmationMode, UI8, 1, 0, 0x1, 0x1F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenLinkConfirmationTimeout, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x3C, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3GenLinkMaxRetries, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x7FFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenLinkMaxTransFrameSize, UI32, 5, 0, 0x4, 0x1F098, 0x40, 0x124, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenLinkValidMasterAddr, Bool, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenAppSBOTimeout, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0xE10, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3GenAppConfirmationMode, UI8, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenAppConfirmationTimeout, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0xE10, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3GenAppNeedTimeDelay, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x10E00, 1, 1, min ) \ DBSCHEMA_DEFN( ScadaDnp3GenAppColdRestartDelay, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0xFFFA, 1, 10, ms ) \ DBSCHEMA_DEFN( ScadaDnp3GenAppWarmRestartDelay, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0xFFFA, 1, 10, ms ) \ DBSCHEMA_DEFN( ScadaDnp3GenUnsolicitedResponse, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenMasterAddr, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenRetryDelay, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x15180, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3GenRetries, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenOfflineInterval, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x15180, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass1, UI8, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass1Events, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass1Delays, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x15180, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass2, UI8, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass2Events, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass2Delays, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x15180, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass3, UI8, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass3Events, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3GenClass3Delays, UI32, 5, 0, 0x4, 0x1F098, 0x0, 0x15180, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaDNP3BinaryInputs, ScadaDNP3BinaryInputs, 10, 0, 0x7FA, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3BinaryOutputs, ScadaDNP3BinaryOutputs, 10, 0, 0x242, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3BinaryCounters, ScadaDNP3BinaryCounters, 10, 0, 0x542, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3AnalogInputs, ScadaDNP3AnalogInputs, 10, 0, 0x682, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3OctetStrings, ScadaDNP3OctetStrings, 10, 0, 0xA2, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3EnableProtocol, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3ChannelPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCMSEnableProtocol, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCMSUseDNP3Trans, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCMSChannelPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaAnlogInputEvReport, UI8, 1, 0, 0x1, 0x1098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripRequestFailCode, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripRetry, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimOperationFault, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCloseRequestFailCode, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCloseRetry, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIa6th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( ProtStatusState, UI32, 5, 0, 0x4, 0x1C, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayFpgaVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsShutdownRequest, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIb6th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( CanSimOSMDisableActuatorTest, UI32, 5, 0, 0x4, 0x18001, 0x0, 0x87B, 1, 1, NULL ) \ DBSCHEMA_DEFN( resetRelayCtr, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmIc6th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn6th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa6th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb6th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusQ503Failed, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearEventLogDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearCloseOpenLogDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearFaultProfileDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearLoadProfileDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearChangeLogDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpsRestartTime, TimeStamp, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DbugDbServer, UI32, 5, 0, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsOpMode, LocalRemote, 1, 0, 0x1, 0x18018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxOpMode, LocalRemote, 1, 0, 0x1, 0x18018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAux2OpMode, LocalRemote, 1, 0, 0x1, 0x18018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoOpMode, LocalRemote, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HmiOpMode, LocalRemote, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DEPRECATED_HmiServerLifeTickCnt, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DEPRECATED_HmiPanelLifeTickCnt, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTaCalCoefHi, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000010071, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTbCalCoefHi, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000010071, 0.0001, NULL ) \ DBSCHEMA_DEFN( CanSimSIMCTcCalCoefHi, UI16, 3, 0, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000010071, 0.0001, NULL ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCUa, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000004791, 0.0001, APerMV ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCUb, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000004791, 0.0001, APerMV ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCUc, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000004791, 0.0001, APerMV ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCUr, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000004791, 0.0001, APerMV ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCUs, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000004791, 0.0001, APerMV ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCUt, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000004791, 0.0001, APerMV ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCIa, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000122074, 0.0001, APerKA ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCIb, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000122074, 0.0001, APerKA ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCIc, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000122074, 0.0001, APerKA ) \ DBSCHEMA_DEFN( SwitchDefaultCoefCIn, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000122074, 0.0001, APerKA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTaCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000162664, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTbCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000162664, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTcCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000162664, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTnCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.000143437, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTTempCompCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0001, 1, NULL ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCVTaCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCVTbCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCVTcCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCVTrCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCVTsCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCVTtCalCoef, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0143436994, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimSIMDefaultCVTTempCompCoef, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 0.0001, 1, NULL ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTaCalCoefHi, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000010071, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTbCalCoefHi, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000010071, 0.0001, VPerA ) \ DBSCHEMA_DEFN( CanSimDefaultSIMCTcCalCoefHi, UI16, 3, 1, 0x2, 0x18019, 0x0, 0xFFFF, 0.0000010071, 0.0001, VPerA ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCUa, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCUb, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCUc, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCUr, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCUs, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCUt, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCIa, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCIb, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCIc, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCIaHi, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCIbHi, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCIcHi, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( FpgaDefaultCoefCIn, UI16, 3, 1, 0x2, 0x18018, 0x0, 0xFFFF, 1, 0.0001, NULL ) \ DBSCHEMA_DEFN( SaveSimCalibration, UI8, 1, 0, 0x1, 0x1E019, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( StartSimCalibration, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimSwitchStatus, SwState, 1, 0, 0x1, 0x18001, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimRdData, SimImageBytes, 9, 0, 0x9, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimFirmwareTypeRunning, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimRequestMoreData, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimFirmwareVerifyStatus, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimResetExtLoad, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimBatteryCapacityAmpHrs, UI16, 3, 0, 0x2, 0x18019, 0x0, 0x1388, 0.01, 1, Ahrs ) \ DBSCHEMA_DEFN( CanSimPower, UI32, 5, 0, 0x4, 0x10018001, 0x0, 0xC350, 0.01, 0.01, W ) \ DBSCHEMA_DEFN( HmiResourceFile, Str, 9, 0, 0x51, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( StartSwgCalibration, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HmiPasswords, HmiPassword, 8, 0, 0x40, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IabcRMS_trip, TripCurrent, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OC_SP1, UI32, 5, 0, 0x4, 0x18000, 0x1, 0x186A0, 1, 1, operations ) \ DBSCHEMA_DEFN( OC_SP2, UI32, 5, 0, 0x4, 0x18000, 0x1, 0x186A0, 1, 1, operations ) \ DBSCHEMA_DEFN( OC_SP3, UI32, 5, 0, 0x4, 0x18000, 0x1, 0x186A0, 1, 1, operations ) \ DBSCHEMA_DEFN( KA_SP1, UI32, 5, 0, 0x4, 0x18000, 0x186A0, 0x5F5E100, 0.000001, 1, kA ) \ DBSCHEMA_DEFN( KA_SP2, UI32, 5, 0, 0x4, 0x18000, 0x186A0, 0x5F5E100, 0.000001, 1, kA ) \ DBSCHEMA_DEFN( KA_SP3, UI32, 5, 0, 0x4, 0x18000, 0x186A0, 0x5F5E100, 0.000001, 1, kA ) \ DBSCHEMA_DEFN( TripCnta, UI32, 5, 1, 0x4, 0x10000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripCntb, UI32, 5, 1, 0x4, 0x10000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripCntc, UI32, 5, 1, 0x4, 0x10000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( BreakerWeara, UI32, 5, 1, 0x4, 0x10018000, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( BreakerWearb, UI32, 5, 1, 0x4, 0x10018000, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( BreakerWearc, UI32, 5, 1, 0x4, 0x10018000, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( IabcRMS, TripCurrent, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RelayWdResponseTime, UI32, 5, 0, 0x4, 0x18019, 0x0, 0x2710, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvLoadProfDef, ChangeEvent, 0, 0, 0x1, 0x1B09D, 0x0, 0x1, 1, 1, ChEvent ) \ DBSCHEMA_DEFN( SimulSwitchPositionStatus, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ActiveSwitchPositionStatus, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RelayCTaCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCTbCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCTcCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCTaCalCoefHi, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCTbCalCoefHi, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCTcCalCoefHi, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCTnCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCVTaCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCVTbCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCVTcCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCVTrCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCVTsCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( RelayCVTtCalCoef, I32, 4, 0, 0x4, 0x18018, 0xFFFF3CB0, 0xC350, 1, 1, ppm__part_per_millionx ) \ DBSCHEMA_DEFN( StartRelayCalibration, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( scadaPollPeriod, UI32, 5, 1, 0x4, 0x28000, 0x14, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( scadaPollCount, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmUc6th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa7th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb7th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc7th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn7th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa7th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb7th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc7th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa8th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb8th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc8th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn8th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa8th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb8th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc8th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa9th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb9th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc9th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn9th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa9th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb9th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc9th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa10th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb10th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc10th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn10th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa10th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb10th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc10th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa11th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb11th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc11th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn11th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa11th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb11th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc11th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa12th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb12th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc12th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn12th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa12th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb12th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc12th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa13th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb13th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc13th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn13th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa13th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb13th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc13th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa14th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb14th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc14th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn14th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa14th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb14th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc14th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIa15th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIb15th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIc15th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmIn15th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUa15th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUb15th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( HrmUc15th, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.00001, 1, PCT ) \ DBSCHEMA_DEFN( ConfirmUpdateType, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigListWarning, SignalList, 9, 0, 0xFF, 0x40001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigListMalfunction, SignalList, 9, 0, 0xFF, 0x40001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Rs232DteConfigType, SerialPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBAConfigType, UsbPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBBConfigType, UsbPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBCConfigType, UsbPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( Dnp3DataflowUnit, DataflowUnit, 0, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( Dnp3RxCnt, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Dnp3TxCnt, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupPhA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupPhB, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupPhC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupPhN, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfComms, Signal, 8, 0, 0xA, 0x56003439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfPanelComms, Signal, 8, 0, 0xA, 0x54343421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfRc10, Signal, 8, 0, 0xA, 0x56003439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfModule, Signal, 8, 0, 0xA, 0x56002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfPanelModule, Signal, 8, 0, 0xA, 0x54343439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfOsm, Signal, 8, 0, 0xA, 0x56003439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfCanBus, Signal, 8, 0, 0xA, 0x56043439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPhA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPhB, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPhC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPhN, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenABRAutoOpen, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUndef, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmPhA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmPhB, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmPhC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmPhN, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedABRAutoOpen, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SmpTicks, SmpTick, 8, 0, 0x100, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldOpen, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldClose, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G1_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G1_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G1_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G1_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G2_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G2_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G2_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G2_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G3_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G3_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G3_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G3_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G4_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G4_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G4_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G4_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMaxCurrIa, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( TripMaxCurrIb, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( TripMaxCurrIc, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( TripMaxCurrIn, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( TripMinVoltP2P, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.001, 0.1, kV ) \ DBSCHEMA_DEFN( TripMaxVoltP2P, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.001, 0.1, kV ) \ DBSCHEMA_DEFN( TripMinFreq, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.01, 1, Hz ) \ DBSCHEMA_DEFN( TripMaxFreq, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.01, 1, Hz ) \ DBSCHEMA_DEFN( UsbDiscMountPath, Str, 9, 0, 0x20, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimPartAndSupplierCode, Str, 9, 0, 0x29, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCalibrationInvalidate, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProgramSimCmd, ProgramSimCmd, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterFramesTx, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterFramesRx, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterErrorLength, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterErrorCrc, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterBufferC1, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterBufferC2, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCounterBufferC3, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvNonGroup, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, ChEvent ) \ DBSCHEMA_DEFN( CommsChEvGrp1, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp2, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp3, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp4, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupLSD, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlLocalOn, Signal, 8, 1, 0xA, 0x56000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlTestBit, Signal, 8, 0, 0xA, 0x64000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUpsPowerUp, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLineSupplyStatusNormal, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLineSupplyStatusOff, Signal, 8, 0, 0xA, 0x4040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLineSupplyStatusHigh, Signal, 8, 0, 0xA, 0x54000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOperationFaultCap, Signal, 8, 0, 0xA, 0x54040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigRelayCANMessagebufferoverflow, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigRelayCANControllerError, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscCmd, UsbDiscCmd, 1, 0, 0x1, 0x2004001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscCmdPercent, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x64, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscStatus, UsbDiscStatus, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscUpdateCount, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscUpdateVersions, StrArray, 9, 0, 0xFF, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscError, UpdateError, 1, 0, 0x1, 0x18001, 0x0, 0xD, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateFilesReady, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateBootOk, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumber, SerialNumber, 8, 0, 0xD, 0x10007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelDelayedCloseRemain, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( FactorySettings, EnDis, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G5_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G5_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G5_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G5_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G5_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G5_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G5_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G5_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G5_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G5_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G5_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G5_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G6_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G6_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G6_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G6_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G6_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G6_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G6_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G6_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G6_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G6_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G6_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G6_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G7_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G7_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G7_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G7_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G7_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G7_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G7_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G7_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G7_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G7_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G7_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G7_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G8_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G8_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G8_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G8_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G8_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G8_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G8_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G8_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G8_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G8_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G8_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G8_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_VTHD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_VTHD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G1_Hrm_VTHD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G1_Hrm_ITDD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_ITDD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G1_Hrm_ITDD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G1_Hrm_Ind_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_Ind_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G1_Hrm_IndA_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndA_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G1_Hrm_IndB_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndB_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G1_Hrm_IndC_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndC_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G1_Hrm_IndD_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G1_Hrm_IndE_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndE_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G1_OCLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OCLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OCLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_OCLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OCLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OCLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OCLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OCLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OCLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OCLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_OCLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_OCLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_OCLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OCLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OCLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_OCLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OCLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_OCLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_OCLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OCLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_AutoClose_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_AutoClose_Tr, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0xB4, 1, 1, s ) \ DBSCHEMA_DEFN( G1_AutoOpenPowerFlowDirChanged, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_AutoOpenPowerFlowReduced, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_VTHD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_VTHD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G2_Hrm_VTHD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G2_Hrm_ITDD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_ITDD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G2_Hrm_ITDD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G2_Hrm_Ind_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_Ind_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G2_Hrm_IndA_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndA_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G2_Hrm_IndB_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndB_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G2_Hrm_IndC_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndC_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G2_Hrm_IndD_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G2_Hrm_IndE_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndE_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G2_OCLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OCLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OCLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_OCLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OCLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OCLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OCLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OCLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OCLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OCLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_OCLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_OCLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_OCLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OCLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OCLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_OCLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OCLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_OCLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_OCLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OCLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_AutoClose_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_AutoClose_Tr, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0xB4, 1, 1, s ) \ DBSCHEMA_DEFN( G2_AutoOpenPowerFlowDirChanged, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_AutoOpenPowerFlowReduced, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_VTHD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_VTHD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G3_Hrm_VTHD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G3_Hrm_ITDD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_ITDD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G3_Hrm_ITDD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G3_Hrm_Ind_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_Ind_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G3_Hrm_IndA_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndA_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G3_Hrm_IndB_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndB_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G3_Hrm_IndC_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndC_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G3_Hrm_IndD_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G3_Hrm_IndE_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndE_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G3_OCLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OCLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OCLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_OCLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OCLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OCLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OCLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OCLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OCLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OCLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_OCLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_OCLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_OCLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OCLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OCLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_OCLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OCLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_OCLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_OCLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OCLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_AutoClose_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_AutoClose_Tr, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0xB4, 1, 1, s ) \ DBSCHEMA_DEFN( G3_AutoOpenPowerFlowDirChanged, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_AutoOpenPowerFlowReduced, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_VTHD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_VTHD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G4_Hrm_VTHD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G4_Hrm_ITDD_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_ITDD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G4_Hrm_ITDD_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G4_Hrm_Ind_Mode, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_Ind_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.1, ms ) \ DBSCHEMA_DEFN( G4_Hrm_IndA_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndA_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G4_Hrm_IndB_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndB_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G4_Hrm_IndC_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndC_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G4_Hrm_IndD_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndD_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G4_Hrm_IndE_Name, HrmIndividual, 1, 1, 0x1, 0x3F098, 0x0, 0x2A, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndE_Level, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x989680, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( G4_OCLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OCLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OCLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_OCLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OCLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OCLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OCLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OCLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OCLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OCLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_OCLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_OCLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_OCLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OCLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OCLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_OCLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OCLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_OCLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_OCLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OCLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_AutoClose_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_AutoClose_Tr, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0xB4, 1, 1, s ) \ DBSCHEMA_DEFN( G4_AutoOpenPowerFlowDirChanged, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_AutoOpenPowerFlowReduced, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlHRMOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupHrm, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmHrm, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenHrm, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrHrmTrips, UI32, 5, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMaxHrm, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.00256, 1, PCT ) \ DBSCHEMA_DEFN( SigCtrlBlockProtOpenOn, Signal, 8, 1, 0xA, 0x6027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( StartupExtLoadConfirm, UI8, 1, 1, 0x1, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InMDIToday, UI32, 5, 0, 0x4, 0x18019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( InMDIYesterday, UI32, 5, 0, 0x4, 0x18019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( InMDILastWeek, UI32, 5, 0, 0x4, 0x18019, 0x0, 0x3E800, 0.0625, 1, A ) \ DBSCHEMA_DEFN( ClearOscCaptures, ClearCommand, 1, 0, 0x1, 0x20007099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptMonitorEnable, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptLogShortEnable, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptDuration, UI32, 5, 1, 0x4, 0x1F098, 0x0, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( InterruptShortABCCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptShortRSTCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptLongABCCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptLongRSTCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptShortABCTotDuration, Duration, 8, 1, 0x8, 0x10001018, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( InterruptShortRSTTotDuration, Duration, 8, 1, 0x8, 0x10001018, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( InterruptLongABCTotDuration, Duration, 8, 1, 0x8, 0x10001018, 0x0, 0x0, 1, 1, min ) \ DBSCHEMA_DEFN( InterruptLongRSTTotDuration, Duration, 8, 1, 0x8, 0x10001018, 0x0, 0x0, 1, 1, min ) \ DBSCHEMA_DEFN( SagMonitorEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SagNormalThreshold, UI32, 5, 1, 0x4, 0x3F098, 0x1F4, 0x384, 0.001, 0.01, pu ) \ DBSCHEMA_DEFN( SagMinThreshold, UI32, 5, 1, 0x4, 0x3F098, 0x64, 0x1F4, 0.001, 0.01, pu ) \ DBSCHEMA_DEFN( SagTime, UI32, 5, 1, 0x4, 0x3F098, 0xA, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( SwellMonitorEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwellNormalThreshold, UI32, 5, 1, 0x4, 0x3F098, 0x3F2, 0x708, 0.001, 0.01, pu ) \ DBSCHEMA_DEFN( SwellTime, UI32, 5, 1, 0x4, 0x3F098, 0xA, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( SagSwellResetTime, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( SagABCCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SagRSTCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwellABCCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwellRSTCnt, UI32, 5, 1, 0x4, 0x10001018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SagABCLastDuration, Duration, 8, 1, 0x8, 0x1018, 0x0, 0x0, 1, 1, m_s ) \ DBSCHEMA_DEFN( SagRSTLastDuration, Duration, 8, 1, 0x8, 0x1018, 0x0, 0x0, 1, 1, m_s ) \ DBSCHEMA_DEFN( SwellABCLastDuration, Duration, 8, 1, 0x8, 0x1018, 0x0, 0x0, 1, 1, m_s ) \ DBSCHEMA_DEFN( SwellRSTLastDuration, Duration, 8, 1, 0x8, 0x1018, 0x0, 0x0, 1, 1, m_s ) \ DBSCHEMA_DEFN( HrmLogEnabled, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmLogTHDEnabled, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmLogTHDDeadband, UI32, 5, 1, 0x4, 0x3F098, 0x2710, 0x4C4B40, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( HrmLogTDDEnabled, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmLogTDDDeadband, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x4C4B40, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( HrmLogIndivIEnabled, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmLogIndivIDeadband, UI32, 5, 1, 0x4, 0x3F098, 0x186A0, 0x4C4B40, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( HrmLogIndivVEnabled, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( HrmLogIndivVDeadband, UI32, 5, 1, 0x4, 0x3F098, 0x2710, 0x4C4B40, 0.00001, 0.1, PCT ) \ DBSCHEMA_DEFN( HrmLogTime, UI16, 3, 1, 0x2, 0x3F098, 0x1, 0x78, 1, 1, s ) \ DBSCHEMA_DEFN( InterruptClearCounters, ClearCommand, 1, 0, 0x1, 0x20007099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SagSwellClearCounters, ClearCommand, 1, 0, 0x1, 0x20007099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogInterrupt, LogPQDIF, 9, 0, 0x80, 0x1001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogSagSwell, LogPQDIF, 9, 0, 0x80, 0x1001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogHrm, LogPQDIF, 9, 0, 0x80, 0x1001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1OutputEnableMasked, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2OutputEnableMasked, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1OutputSetMasked, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2OutputSetMasked, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogInterruptDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogSagSwellDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogHrmDir, Str, 9, 1, 0x64, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearInterruptDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearSagSwellDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearHrmDir, Bool, 1, 0, 0x1, 0x18019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvInterruptLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvSagSwellLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvHrmLog, ChangeEvent, 0, 0, 0x1, 0x1B099, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscSaveFormat, OscCaptureFormat, 1, 1, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGEChannelPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGEEnableProtocol, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGEEnableCommsLog, EnDis, 1, 0, 0x1, 0x1D099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGECommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGESlaveAddress, UI16, 3, 0, 0x2, 0x1F098, 0x1, 0x7FE, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGEMasterAddress, UI8, 1, 0, 0x1, 0x1F098, 0x0, 0x1F, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGEIgnoreMasterAddress, UI8, 1, 0, 0x1, 0x18018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G11_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G11_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G11_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G11_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G11_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G11_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G11_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G11_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemDialOut, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemPreDialString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemDialNumber1, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemDialNumber2, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemDialNumber3, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemDialNumber4, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemDialNumber5, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemAutoDialInterval, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G11_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G11_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G11_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G11_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( LanConfigType, UsbPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp11, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNps1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNps2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNps3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNps1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNps2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNps3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOcll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOcll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNpsll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNpsll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNpsll3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEfll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEfll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupSefll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNps1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNps2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNps3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNps1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNps2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNps3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOcll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOcll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNpsll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNpsll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNpsll3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEfll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEfll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSefll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNps1F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNps2F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNps3F, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNps1R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNps2R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNps3R, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlNPSOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrNpsTrips, UI32, 5, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerFlowDirectionNPS, ProtDirOut, 1, 0, 0x1, 0x1001801D, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtNpsDir, ProtDirOut, 1, 1, 0x1, 0x18018, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMaxCurrI2, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( G1_NpsAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G1_NpsDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G1_SstNpsForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_SstNpsReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G1_NPS1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPS1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPS2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_NPS2F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPS3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPS1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPS2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_NPS2R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPS2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPS3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPS3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPS3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPSLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPSLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPSLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_NPSLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPSLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPSLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPSLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPSLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPSLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPSLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPSLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_NPSLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_NPSLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPSLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPSLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPSLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_NPSLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_NPSLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPSLL3_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_NPSLL3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_NPSLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EFLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EFLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EFLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EFLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EFLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EFLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EFLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EFLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EFLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G1_EFLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G1_EFLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_EFLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EFLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EFLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_EFLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EFLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_EFLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_EFLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EFLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_SEFLL_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 1, A ) \ DBSCHEMA_DEFN( G1_SEFLL_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_SEFLL_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_SEFLL_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_AutoOpenPowerFlowReduction, UI8, 1, 0, 0x1, 0x3F098, 0x32, 0x5A, 1, 1, PCT ) \ DBSCHEMA_DEFN( G1_AutoOpenPowerFlowTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( G1_LSRM_Timer, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, seconds ) \ DBSCHEMA_DEFN( G1_LSRM_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_Uv4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G1_Uv4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G1_Uv4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Uv4_Um_min, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x320, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Uv4_Um_max, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Uv4_Um_mid, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Uv4_Tlock, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0x5A0, 1, 1, minutes ) \ DBSCHEMA_DEFN( G1_Uv4_Utype, Uv4VoltageType, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Uv4_Voltages, Uv4Voltages, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SingleTripleModeF, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SingleTripleModeR, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SinglePhaseVoltageDetect, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_LlbEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G1_LlbUM, UI32, 5, 1, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G1_SectionaliserMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OcDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NpsDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EfDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SefDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ov3_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G1_Ov3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_Ov3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ov3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ov4_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G1_Ov4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G1_Ov4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Ov4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SequenceAdvanceStep, UI8, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_UV3_SSTOnly, EnDis, 1, 1, 0x1, 0x3D080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OV3MovingAverageMode, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OV3MovingAverageWindow, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2710, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G1_ArveTripsToLockout, TripsToLockout, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_I2I1_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_I2I1_Pickup, UI32, 5, 0, 0x4, 0x3F098, 0x2710, 0x186A0, 0.001, 1, PCT ) \ DBSCHEMA_DEFN( G1_I2I1_MinI2, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G1_I2I1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_I2I1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_SEFF_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G1_SEFR_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G1_SEFLL_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G1_SSTControl_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_SSTControl_Tst, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G2_NpsAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G2_NpsDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G2_SstNpsForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_SstNpsReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G2_NPS1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPS1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPS2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_NPS2F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPS3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPS1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPS2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_NPS2R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPS2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPS3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPS3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPS3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPSLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPSLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPSLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_NPSLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPSLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPSLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPSLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPSLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPSLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPSLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPSLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_NPSLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_NPSLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPSLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPSLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPSLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_NPSLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_NPSLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPSLL3_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_NPSLL3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_NPSLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EFLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EFLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EFLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EFLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EFLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EFLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EFLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EFLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EFLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G2_EFLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G2_EFLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_EFLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EFLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EFLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_EFLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EFLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_EFLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_EFLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EFLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_SEFLL_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 1, A ) \ DBSCHEMA_DEFN( G2_SEFLL_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_SEFLL_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_SEFLL_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_AutoOpenPowerFlowReduction, UI8, 1, 0, 0x1, 0x3F098, 0x32, 0x5A, 1, 1, PCT ) \ DBSCHEMA_DEFN( G2_AutoOpenPowerFlowTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( G2_LSRM_Timer, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, seconds ) \ DBSCHEMA_DEFN( G2_LSRM_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_Uv4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G2_Uv4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G2_Uv4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Uv4_Um_min, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x320, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Uv4_Um_max, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Uv4_Um_mid, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Uv4_Tlock, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0x5A0, 1, 1, minutes ) \ DBSCHEMA_DEFN( G2_Uv4_Utype, Uv4VoltageType, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Uv4_Voltages, Uv4Voltages, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SingleTripleModeF, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SingleTripleModeR, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SinglePhaseVoltageDetect, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_LlbEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G2_LlbUM, UI32, 5, 1, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G2_SectionaliserMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OcDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NpsDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EfDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SefDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ov3_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G2_Ov3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_Ov3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ov3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ov4_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G2_Ov4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G2_Ov4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Ov4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SequenceAdvanceStep, UI8, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_UV3_SSTOnly, EnDis, 1, 1, 0x1, 0x3D080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OV3MovingAverageMode, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OV3MovingAverageWindow, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2710, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G2_ArveTripsToLockout, TripsToLockout, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_I2I1_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_I2I1_Pickup, UI32, 5, 0, 0x4, 0x3F098, 0x2710, 0x186A0, 0.001, 1, PCT ) \ DBSCHEMA_DEFN( G2_I2I1_MinI2, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G2_I2I1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_I2I1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_SEFF_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G2_SEFR_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G2_SEFLL_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G2_SSTControl_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_SSTControl_Tst, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G3_NpsAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G3_NpsDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G3_SstNpsForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_SstNpsReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G3_NPS1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPS1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPS2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_NPS2F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPS3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPS1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPS2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_NPS2R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPS2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPS3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPS3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPS3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPSLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPSLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPSLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_NPSLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPSLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPSLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPSLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPSLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPSLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPSLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPSLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_NPSLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_NPSLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPSLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPSLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPSLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_NPSLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_NPSLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPSLL3_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_NPSLL3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_NPSLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EFLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EFLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EFLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EFLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EFLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EFLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EFLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EFLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EFLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G3_EFLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G3_EFLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_EFLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EFLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EFLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_EFLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EFLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_EFLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_EFLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EFLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_SEFLL_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 1, A ) \ DBSCHEMA_DEFN( G3_SEFLL_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_SEFLL_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_SEFLL_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_AutoOpenPowerFlowReduction, UI8, 1, 0, 0x1, 0x3F098, 0x32, 0x5A, 1, 1, PCT ) \ DBSCHEMA_DEFN( G3_AutoOpenPowerFlowTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( G3_LSRM_Timer, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, seconds ) \ DBSCHEMA_DEFN( G3_LSRM_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_Uv4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G3_Uv4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G3_Uv4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Uv4_Um_min, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x320, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Uv4_Um_max, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Uv4_Um_mid, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Uv4_Tlock, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0x5A0, 1, 1, minutes ) \ DBSCHEMA_DEFN( G3_Uv4_Utype, Uv4VoltageType, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Uv4_Voltages, Uv4Voltages, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SingleTripleModeF, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SingleTripleModeR, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SinglePhaseVoltageDetect, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_LlbEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G3_LlbUM, UI32, 5, 1, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G3_SectionaliserMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OcDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NpsDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EfDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SefDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ov3_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G3_Ov3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_Ov3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ov3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ov4_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G3_Ov4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G3_Ov4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Ov4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SequenceAdvanceStep, UI8, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_UV3_SSTOnly, EnDis, 1, 1, 0x1, 0x3D080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OV3MovingAverageMode, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OV3MovingAverageWindow, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2710, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G3_ArveTripsToLockout, TripsToLockout, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_I2I1_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_I2I1_Pickup, UI32, 5, 0, 0x4, 0x3F098, 0x2710, 0x186A0, 0.001, 1, PCT ) \ DBSCHEMA_DEFN( G3_I2I1_MinI2, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G3_I2I1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_I2I1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_SEFF_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G3_SEFR_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G3_SEFLL_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G3_SSTControl_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_SSTControl_Tst, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G4_NpsAt, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7FA50, 0.0006866455, 1, deg ) \ DBSCHEMA_DEFN( G4_NpsDnd, DndMode, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, BlockPerTrip ) \ DBSCHEMA_DEFN( G4_SstNpsForward, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_SstNpsReverse, UI8, 1, 0, 0x1, 0x3F098, 0x1, 0x4, 1, 1, Trip_Num ) \ DBSCHEMA_DEFN( G4_NPS1F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPS1F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS1F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS1F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS1F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS1F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS1F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPS2F_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_NPS2F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2F_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS2F_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS2F_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2F_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2F_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2F_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS2F_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS2F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS2F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2F_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3F_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPS3F_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS3F_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS3F_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS3F_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3F_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3F_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3F_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPS1R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS1R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS1R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS1R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS1R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS1R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS1R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPS2R_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_NPS2R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2R_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS2R_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS2R_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2R_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2R_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS2R_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS2R_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPS2R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS2R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2R_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3R_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x3E80, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPS3R_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS3R_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPS3R_DirEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPS3R_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3R_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3R_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS3R_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPSLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPSLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPSLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_NPSLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPSLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPSLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPSLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPSLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPSLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPSLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPSLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_NPSLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_NPSLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPSLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPSLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPSLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_NPSLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_NPSLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPSLL3_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_NPSLL3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_NPSLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EFLL1_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EFLL1_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EFLL1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL1_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EFLL1_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EFLL1_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL1_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL1_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL1_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EFLL1_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EFLL1_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EFLL1_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EFLL2_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3, 0x500, 1, 1, A ) \ DBSCHEMA_DEFN( G4_EFLL2_Tcc, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0xFFFF, 1, 1, dPId ) \ DBSCHEMA_DEFN( G4_EFLL2_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_EFLL2_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL2_Tm, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3A98, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EFLL2_Imin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x4E20, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EFLL2_Tmin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL2_Tmax, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x1D4C0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL2_Ta, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_EFLL2_ImaxEn, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EFLL2_Imax, UI32, 5, 0, 0x4, 0x3F098, 0x44C, 0x2710, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_EFLL2_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_EFLL2_TccUD, TccCurve, 10, 0, 0x29E, 0x2709A, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EFLL3_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_SEFLL_Ip, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x13880, 0.001, 1, A ) \ DBSCHEMA_DEFN( G4_SEFLL_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x7D0, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_SEFLL_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_SEFLL_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_AutoOpenPowerFlowReduction, UI8, 1, 0, 0x1, 0x3F098, 0x32, 0x5A, 1, 1, PCT ) \ DBSCHEMA_DEFN( G4_AutoOpenPowerFlowTime, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, s ) \ DBSCHEMA_DEFN( G4_LSRM_Timer, UI16, 3, 0, 0x2, 0x3F098, 0x1, 0x12C, 1, 1, seconds ) \ DBSCHEMA_DEFN( G4_LSRM_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_Uv4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x3E8, 0x2BF20, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( G4_Uv4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, ms ) \ DBSCHEMA_DEFN( G4_Uv4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Uv4_Um_min, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x320, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Uv4_Um_max, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Uv4_Um_mid, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Uv4_Tlock, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0x5A0, 1, 1, minutes ) \ DBSCHEMA_DEFN( G4_Uv4_Utype, Uv4VoltageType, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Uv4_Voltages, Uv4Voltages, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SingleTripleModeF, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SingleTripleModeR, SingleTripleMode, 1, 0, 0x1, 0x3F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SinglePhaseVoltageDetect, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_LlbEnable, EnDis, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( G4_LlbUM, UI32, 5, 1, 0x4, 0x3F098, 0x258, 0x3B6, 0.001, 0.01, mills ) \ DBSCHEMA_DEFN( G4_SectionaliserMode, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OcDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NpsDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EfDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SefDcr, LockDynamic, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ov3_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G4_Ov3_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_Ov3_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ov3_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ov4_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G4_Ov4_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( G4_Ov4_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Ov4_Trm, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SequenceAdvanceStep, UI8, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_UV3_SSTOnly, EnDis, 1, 1, 0x1, 0x3D080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OV3MovingAverageMode, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OV3MovingAverageWindow, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0x2710, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G4_ArveTripsToLockout, TripsToLockout, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_I2I1_Trm, TripModeDLA, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_I2I1_Pickup, UI32, 5, 0, 0x4, 0x3F098, 0x2710, 0x186A0, 0.001, 1, PCT ) \ DBSCHEMA_DEFN( G4_I2I1_MinI2, UI32, 5, 0, 0x4, 0x3F098, 0xBB8, 0x138800, 0.001, 1, A ) \ DBSCHEMA_DEFN( G4_I2I1_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_I2I1_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_SEFF_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G4_SEFR_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G4_SEFLL_Ip_HighPrec, UI32, 5, 1, 0x4, 0x3F098, 0xC8, 0x13880, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G4_SSTControl_En, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_SSTControl_Tst, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( SignalBitFieldOpenHigh, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldCloseHigh, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayModelNo, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayModelStr, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtABR, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtACO, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtUV, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( FastkeyConfigNum, UI8, 1, 1, 0x1, 0x1F098, 0x1, 0x6, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BSendDayOfWeek, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOc, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEf, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSef, Signal, 8, 0, 0xA, 0x6003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOv, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOc, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEf, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmSef, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUv, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOv, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOc, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupEf, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupSef, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUv, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOv, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10B_M_EI_BufferOverflow_COI, I8, 0, 0, 0x1, 0x1F098, 0xFF, 0x7F, 1, 1, NULL ) \ DBSCHEMA_DEFN( PGESBOTimeout, UI16, 3, 0, 0x2, 0x801F098, 0x1, 0xE10, 1, 1, s ) \ DBSCHEMA_DEFN( Lan_MAC, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfLoadSavedDb, Signal, 8, 0, 0xA, 0x4043439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BScaleRange, ScadaScaleRangeTable, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProgramSimStatus, UI8, 1, 0, 0x1, 0xC001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InstallFilesReady, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscInstallCount, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscInstallVersions, StrArray, 9, 0, 0xFF, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscUsbCaptureInProgress, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscEjectResult, UsbDiscEjectResult, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InterruptShortABCLastDuration, Duration, 8, 0, 0x8, 0x1018, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( InterruptShortRSTLastDuration, Duration, 8, 0, 0x8, 0x1018, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( InterruptLongABCLastDuration, Duration, 8, 0, 0x8, 0x10001018, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( InterruptLongRSTLastDuration, Duration, 8, 0, 0x8, 0x10001018, 0x0, 0x0, 1, 1, s ) \ DBSCHEMA_DEFN( ScadaT104BlockUntilDisconnected, EnDis, 1, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponent, UI8, 1, 0, 0x1, 0x1000001D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscUpdatePossible, UI8, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscInstallPossible, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateStep, UpdateStep, 0, 0, 0x1, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedUV3AutoClose, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( InstallPeriod, UI16, 3, 0, 0x2, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( I2Trip, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.25, 1, A ) \ DBSCHEMA_DEFN( CanSimSwitchPositionStatusST, UI16, 3, 0, 0x2, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchManualTripST, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchConnectedPhases, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchLockoutStatusST, UI16, 3, 0, 0x2, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSwitchSetCosType, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimSwitchStatusA, SwState, 1, 0, 0x1, 0x18001, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimSwitchStatusB, SwState, 1, 0, 0x1, 0x18001, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimSwitchStatusC, SwState, 1, 0, 0x1, 0x18001, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimSingleTriple, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstCloseA, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstCloseB, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstCloseC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstCloseAB, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstCloseAC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstCloseBC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstCloseABC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOpenA, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOpenB, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOpenC, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOpenAB, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOpenAC, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOpenBC, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstOpenABC, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripCloseRequestStatusB, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x21, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripCloseRequestStatusC, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x21, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripRequestFailCodeB, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripRequestFailCodeC, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCloseRequestFailCodeB, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimCloseRequestFailCodeC, UI32, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimOSMActuatorFaultStatusB, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimOSMActuatorFaultStatusC, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimOSMlimitSwitchFaultStatusB, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x41, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimOSMlimitSwitchFaultStatusC, UI8, 1, 0, 0x1, 0x18019, 0x0, 0x41, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripRetryB, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTripRetryC, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlUV4On, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfSimRunningMiniBootloader, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSwitchA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSwitchB, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSwitchC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedSwitchA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedSwitchB, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedSwitchC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchDisconnectionStatusA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchDisconnectionStatusB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchDisconnectionStatusC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchLockoutStatusMechaniclockedA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchLockoutStatusMechaniclockedB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchLockoutStatusMechaniclockedC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfOsmA, Signal, 8, 0, 0xA, 0x56003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfOsmB, Signal, 8, 0, 0xA, 0x56003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfOsmC, Signal, 8, 0, 0xA, 0x56003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusCoilOcA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusCoilOcB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusCoilOcC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmActuatorFaultStatusCoilScA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmActuatorFaultStatusCoilScB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmActuatorFaultStatusCoilScC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmLimitFaultStatusFaultA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmLimitFaultStatusFaultB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOsmLimitFaultStatusFaultC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusQ503FailedA, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusQ503FailedB, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOSMActuatorFaultStatusQ503FailedC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusActiveA, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusActiveB, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusActiveC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripFailA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripFailB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripFailC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseFailA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseFailB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseFailC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripActiveA, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripActiveB, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusTripActiveC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseActiveA, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseActiveB, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTripCloseRequestStatusCloseActiveC, Signal, 8, 0, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPhaseSelA, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPhaseSelB, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPhaseSelC, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtPhaseSel, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SingleTripleModeGlobal, SingleTripleMode, 1, 0, 0x1, 0x7018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ServEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUv4, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUv4, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUabcUv4, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupUrstUv4, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUabcUv4, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUrstUv4, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( StackCheckEnable, EnDis, 1, 1, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( StackCheckInterval, UI32, 5, 1, 0x4, 0x18001, 0xA, 0xE10, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUv4Midpoint, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUabcUv4Midpoint, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmUrstUv4Midpoint, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Midpoint, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUabcUv4Midpoint, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUrstUv4Midpoint, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Ua, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Ub, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Uc, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Ur, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Us, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Ut, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Uab, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Ubc, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Uca, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Urs, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Ust, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenUv4Utr, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusCloseBlockingUv4, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMinVoltUv4, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 0.001, 0.1, kV ) \ DBSCHEMA_DEFN( ActiveSwitchPositionStatusST, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimulSwitchPositionStatusST, UI16, 3, 0, 0x2, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenLockoutA, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenLockoutB, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenLockoutC, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLockoutProtA, Signal, 8, 0, 0xA, 0x4002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLockoutProtB, Signal, 8, 0, 0xA, 0x4002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLockoutProtC, Signal, 8, 0, 0xA, 0x4002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchFailureStatusFlagB, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchFailureStatusFlagC, UI8, 1, 0, 0x1, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoOpenReqB, LogOpen, 8, 0, 0x22, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoOpenReqC, LogOpen, 8, 0, 0x22, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoCloseReqB, LogOpen, 8, 0, 0x22, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoCloseReqC, LogOpen, 8, 0, 0x22, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldOpenB, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldOpenHighB, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldOpenC, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldOpenHighC, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldCloseB, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldCloseHighB, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldCloseC, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SignalBitFieldCloseHighC, SignalBitField, 5, 0, 0x4, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( swsimInLockoutB, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( swsimInLockoutC, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimRqOpenB, EnDis, 1, 1, 0x1, 0x18, 0x0, 0x0, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( SimRqOpenC, EnDis, 1, 1, 0x1, 0x18, 0x0, 0x0, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( SimRqCloseB, EnDis, 1, 1, 0x1, 0x18, 0x0, 0x0, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( SimRqCloseC, EnDis, 1, 1, 0x1, 0x18, 0x0, 0x0, 1, 1, EnPerDisable ) \ DBSCHEMA_DEFN( DurMonUpdateInterval, UI32, 5, 1, 0x4, 0x18001, 0x1E, 0xE10, 1, 1, NULL ) \ DBSCHEMA_DEFN( DurMonInitFlag, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( MechanicalWeara, UI32, 5, 0, 0x4, 0x10018005, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( MechanicalWearb, UI32, 5, 0, 0x4, 0x10018005, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( MechanicalWearc, UI32, 5, 0, 0x4, 0x10018005, 0x0, 0x3B9ACA00, 0.0000001, 1, PCT ) \ DBSCHEMA_DEFN( IdOsmNumber2, SerialNumber, 8, 0, 0xD, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumber3, SerialNumber, 8, 0, 0xD, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumberA, SerialNumber, 8, 0, 0xD, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumberB, SerialNumber, 8, 0, 0xD, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumberC, SerialNumber, 8, 0, 0xD, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OsmSwitchCount, OsmSwitchCount, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchLogicallyLockedPhases, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchLogicallyLockedA, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchLogicallyLockedB, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchLogicallyLockedC, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryTestInitiate, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryTestRunning, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryTestPassed, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryTestNotPerformed, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryTestCheckBattery, Signal, 8, 0, 0xA, 0x54040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryTestFaulty, Signal, 8, 0, 0xA, 0x54040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBatteryTestAutoOn, Signal, 8, 1, 0xA, 0x54007498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( BatteryTestInterval, UI32, 5, 1, 0x4, 0x1F098, 0x1, 0x16D, 1, 1, days ) \ DBSCHEMA_DEFN( BatteryTestIntervalUnits, UI32, 5, 0, 0x4, 0x18001, 0x1, 0x5A0, 1, 1, NULL ) \ DBSCHEMA_DEFN( BatteryTestResult, BatteryTestResult, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( BatteryTestNotPerformedReason, BatteryTestNotPerformedReason, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( BatteryTestLastPerformedTime, TimeStamp, 8, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearBatteryTestResults, ClearCommand, 1, 0, 0x1, 0x20018001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( BatteryTestSupported, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTrip3Lockout3On, Signal, 8, 0, 0xA, 0x54006401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTrip1Lockout3On, Signal, 8, 0, 0xA, 0x54006401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigTrip1Lockout1On, Signal, 8, 0, 0xA, 0x54006401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseS3kW, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhaseS3kVAr, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( MeasPowerFactorS3phase, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.0000019074, 0.01, NULL ) \ DBSCHEMA_DEFN( MeasPowerPhaseSAkW, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhaseSAkVAr, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( MeasPowerPhaseSBkW, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhaseSBkVAr, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( MeasPowerPhaseSCkW, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kW ) \ DBSCHEMA_DEFN( MeasPowerPhaseSCkVAr, I32, 4, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, kVAr ) \ DBSCHEMA_DEFN( UserAnalogCfg01, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg02, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg03, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg04, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg05, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg06, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg07, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg08, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg09, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg10, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg11, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfg12, UserAnalogCfg, 8, 0, 0x14, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut01, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut02, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut03, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut04, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut05, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut06, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut07, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut08, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut09, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut10, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut11, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogOut12, F32, 5, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SectionaliserEnable, EnDis, 1, 0, 0x1, 0x3F018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtStepStateB, ProtectionState, 1, 1, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtStepStateC, ProtectionState, 1, 1, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAnalogCfgOn, EnDis, 1, 0, 0x1, 0x1F080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenARInitA, Signal, 8, 0, 0xA, 0x4002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenARInitB, Signal, 8, 0, 0xA, 0x4002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenARInitC, Signal, 8, 0, 0xA, 0x4002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigIncorrectPhaseSeq, Signal, 8, 0, 0xA, 0x4341421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponentA, UI8, 1, 0, 0x1, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponentB, UI8, 1, 0, 0x1, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponentC, UI8, 1, 0, 0x1, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrHrmATrips, UI32, 5, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrHrmBTrips, UI32, 5, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrHrmCTrips, UI32, 5, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrHrmNTrips, UI32, 5, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrUvATrips, I32, 4, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrUvBTrips, I32, 4, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrUvCTrips, I32, 4, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrOvATrips, I32, 4, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrOvBTrips, I32, 4, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrOvCTrips, I32, 4, 0, 0x4, 0x10000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMinUvA, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 1, 1, kV ) \ DBSCHEMA_DEFN( TripMinUvB, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 1, 1, kV ) \ DBSCHEMA_DEFN( TripMinUvC, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 1, 1, kV ) \ DBSCHEMA_DEFN( TripMaxOvA, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 1, 1, kV ) \ DBSCHEMA_DEFN( TripMaxOvB, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 1, 1, kV ) \ DBSCHEMA_DEFN( TripMaxOvC, UI32, 5, 0, 0x4, 0x1000101D, 0x0, 0x0, 1, 1, kV ) \ DBSCHEMA_DEFN( SigAlarmSwitchA, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmSwitchB, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmSwitchC, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenLSRM, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscTraceUsbDir, Str, 9, 0, 0x20, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GenericDir, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlLLBOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusCloseBlockingLLB, Signal, 8, 0, 0xA, 0x54000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlarmMode, Signal, 8, 1, 0xA, 0x74027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigFaultTargetOpen, Signal, 8, 0, 0xA, 0x6003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpAddr1, IpAddr, 8, 0, 0x4, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GOOSEPublEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GOOSESubscrEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ServerIpAddr, IpAddr, 8, 0, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850PktsRx, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850PktsTx, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850RxErrPkts, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ChannelPort, CommsPort, 1, 0, 0x1, 0x1F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GOOSEPort, CommsPort, 1, 0, 0x1, 0x1F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( GOOSE_broadcastMacAddr, Str, 9, 0, 0x29, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GOOSE_TxCount, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850IEDName, Str, 9, 0, 0x29, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSectionaliser, Signal, 8, 0, 0xA, 0x54003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvCurveSettings, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCyclicWaitForSI, YesNo, 0, 0, 0x1, 0x1B098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BCyclicStartMaxDelay, UI16, 3, 0, 0x2, 0x1F018, 0x0, 0xFFFF, 1, 1, ms ) \ DBSCHEMA_DEFN( SigCmdResetProtConfig, Signal, 8, 0, 0xA, 0x4003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfSectionaliserMismatch, Signal, 8, 0, 0xA, 0x4343439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlSectionaliserOn, Signal, 8, 1, 0xA, 0x54007400, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UnitTestRoundTrip, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSim, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigFaultTarget, Signal, 8, 0, 0xA, 0x6003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigFaultTargetNonOpen, Signal, 8, 0, 0xA, 0x6003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ExtLoadStatus, OnOff, 1, 0, 0x1, 0x7081, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicChModeView, LogicChannelMode, 1, 0, 0x1, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingILocModeView, IOSettingMode, 1, 0, 0x1, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo1ModeView, GPIOSettingMode, 1, 0, 0x1, 0x7081, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IoSettingIo2ModeView, GPIOSettingMode, 1, 0, 0x1, 0x7081, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOcllTop, Signal, 8, 0, 0xA, 0x6003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenEfllTop, Signal, 8, 0, 0xA, 0x6003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR17, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR18, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR19, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR20, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR21, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR22, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR23, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR24, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR25, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR26, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR27, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR28, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR29, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR30, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR31, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicVAR32, Signal, 8, 0, 0xA, 0x74000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpAddr2, IpAddr, 8, 0, 0x4, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpAddr3, IpAddr, 8, 0, 0x4, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpAddr4, IpAddr, 8, 0, 0x4, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ServerTcpPort, UI16, 3, 0, 0x2, 0x1F098, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850TestDI1Bool, Bool, 1, 0, 0x1, 0x19001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850TestDI2Bool, Bool, 1, 0, 0x1, 0x19001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850TestDI3Sig, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850TestAI1, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850TestAI2, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850DiagCtrl, I32, 4, 0, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh9OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh9RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh9ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh9PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh9Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh9Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh9Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh9NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh9InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh10OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh10RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh10ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh10PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh10Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh10Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh10Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh10NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh10InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh11OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh11RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh11ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh11PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh11Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh11Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh11Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh11NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh11InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh12OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh12RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh12ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh12PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh12Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh12Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh12Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh12NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh12InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh13OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh13RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh13ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh13PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh13Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh13Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh13Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh13NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh13InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh14OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh14RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh14ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh14PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh14Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh14Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh14Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh14NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh14InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh15OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh15RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh15ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh15PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh15Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh15Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh15Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh15NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh15InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh16OutputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh16RecTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh16ResetTime, UI16, 3, 0, 0x2, 0x18000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh16PulseTime, UI16, 3, 0, 0x2, 0x18000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh16Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh16Enable, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh16Name, Str, 9, 0, 0x8, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh16NameOffline, Str, 9, 0, 0x8, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh16InputExp, LogicStr, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh17OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh17RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh17ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh17PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh17Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh17Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh17Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh17NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh17InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh18OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh18RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh18ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh18PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh18Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh18Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh18Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh18NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh18InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh19OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh19RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh19ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh19PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh19Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh19Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh19Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh19NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh19InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh20OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh20RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh20ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh20PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh20Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh20Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh20Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh20NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh20InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh21OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh21RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh21ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh21PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh21Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh21Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh21Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh21NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh21InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh22OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh22RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh22ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh22PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh22Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh22Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh22Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh22NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh22InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh23OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh23RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh23ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh23PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh23Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh23Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh23Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh23NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh23InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh24OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh24RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh24ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh24PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh24Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh24Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh24Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh24NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh24InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh25OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh25RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh25ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh25PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh25Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh25Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh25Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh25NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh25InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh26OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh26RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh26ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh26PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh26Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh26Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh26Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh26NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh26InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh27OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh27RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh27ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh27PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh27Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh27Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh27Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh27NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh27InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh28OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh28RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh28ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh28PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh28Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh28Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh28Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh28NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh28InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh29OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh29RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh29ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh29PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh29Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh29Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh29Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh29NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh29InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh30OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh30RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh30ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh30PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh30Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh30Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh30Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh30NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh30InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh31OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh31RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh31ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh31PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh31Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh31Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh31Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh31NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh31InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh32OutputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh32RecTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh32ResetTime, UI16, 3, 0, 0x2, 0x2018000, 0x0, 0x4650, 0.01, 1, s ) \ DBSCHEMA_DEFN( LogicCh32PulseTime, UI16, 3, 0, 0x2, 0x2018000, 0x2, 0x4650, 0.01, 0.01, s ) \ DBSCHEMA_DEFN( LogicCh32Output, OnOff, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh32Enable, Bool, 1, 0, 0x1, 0x2000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh32Name, Str, 9, 0, 0x8, 0x2000018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh32NameOffline, Str, 9, 0, 0x8, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicCh32InputExp, LogicStr, 9, 0, 0x29, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicChWriteProtect17to32, EnDis, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusCloseBlocked, Signal, 8, 0, 0xA, 0x54002419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicChEnableExt, UI32, 5, 0, 0x4, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicChPulseEnableExt, UI32, 5, 0, 0x4, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicChLogChangeExt, UI32, 5, 0, 0x4, 0x2000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ResetFaultFlagsOnClose, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenNps, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNps, Signal, 8, 0, 0xA, 0x56003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SystemStatus, SystemStatus, 1, 0, 0x1, 0x1A001, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfGpioRunningMiniBootloader, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmProtectionOperation, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSig1, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSig2, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSig3, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSig4, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSig5, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSig6, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSig7, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubChg, Bool, 1, 0, 0x1, 0x1B001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseBool1, Bool, 1, 0, 0x1, 0x19001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseBool2, Bool, 1, 0, 0x1, 0x19001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseBool3, Bool, 1, 0, 0x1, 0x19001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseBool4, Bool, 1, 0, 0x1, 0x19001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp1, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp2, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp3, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp4, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp5, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp6, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp7, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseFp8, F32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt1, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt2, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt3, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt4, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt5, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt6, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt7, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseInt8, I32, 4, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FSMountFailure, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupABR, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimExtSupplyStatusView, SimExtSupplyStatus, 1, 0, 0x1, 0x18000, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( BatteryType, BatteryType, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscHasDNP3SAUpdateKey, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileVer, Str, 9, 0, 0x29, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileNetworkName, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_ExpectSessKeyChangeInterval, UI16, 3, 0, 0x2, 0x1E000, 0x1, 0x1C20, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_ExpectSessKeyChangeCount, UI32, 5, 0, 0x4, 0x1E000, 0x1, 0x2710, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_MaxSessKeyStatusCount, UI8, 1, 0, 0x1, 0x1E000, 0x2, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_AggressiveMode, OnOff, 1, 0, 0x1, 0x6000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_MACAlgorithm, MACAlgorithm, 1, 0, 0x1, 0x1E000, 0x1, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_KeyWrapAlgorithm, AESAlgorithm, 1, 0, 0x1, 0x6000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_SessKeyChangeIntervalMonitoring, OnOff, 1, 0, 0x1, 0x6000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_Enable, EnDis, 1, 0, 0x1, 0x2007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_Version, DNP3SAVersion, 0, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_UpdateKeyInstalled, DNP3SAUpdateKeyInstalledStatus, 1, 0, 0x1, 0x1F080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_UpdateKeyFileVer, Str, 9, 0, 0x15, 0x5080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_UpdateKeyInstallState, DNP3SAUpdateKeyInstallStep, 1, 0, 0x1, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_UnexpectedMsgCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_AuthorizeFailCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_AuthenticateFailCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_ReplyTimeoutCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_RekeyCount, UI32, 5, 0, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_TotalMsgTxCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_TotalMsgRxCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_CriticalMsgTxCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_CriticalMsgRxCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_DiscardedMsgCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_AuthenticateSuccessCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_ErrorMsgTxCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_ErrorMsgRxCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_SessKeyChangeCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_FailedSessKeyChangeCount, UI32, 5, 0, 0x4, 0x8000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearDnp3SACntr, ClearCommand, 1, 0, 0x1, 0x2001F099, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdSIMModelStr, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileUserNum, UI16, 3, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileUserRole, UI16, 3, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileCryptoAlg, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileDNP3SlaveAddr, UI16, 3, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileDevSerialNum, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileEnableSA, YesNo, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileKeyVer, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_UpdateKeyFileKeyVer, Str, 9, 0, 0x29, 0x10005080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_MaxErrorCount, UI8, 1, 0, 0x1, 0x1E000, 0x0, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_MaxErrorMessagesSent, UI16, 3, 0, 0x2, 0x1E000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_MaxAuthenticationFails, UI16, 3, 0, 0x2, 0x1E000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_MaxAuthenticationRekeys, UI16, 3, 0, 0x2, 0x1E000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_MaxReplyTimeouts, UI16, 3, 0, 0x2, 0x1E000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_DisallowSHA1, Bool, 1, 0, 0x1, 0x1E000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3SecurityStatistics, ScadaDNP3SecurityStatistics, 10, 0, 0x182, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DNP3SA_VersionSelect, DNP3SAVersion, 0, 0, 0x1, 0x1E000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ClearDNP3SAUpdateKey, ClearCommand, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOv3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOv4, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOv3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenOv4, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOv3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupOv4, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileError, UsbDiscDNP3SAUpdateKeyFileError, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngIa, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngIb, I16, 2, 1, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngIc, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngUa, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngUb, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngUc, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngUr, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngUs, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtAngUt, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasVoltUn, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( TripMaxVoltUn, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.001, 0.1, kV ) \ DBSCHEMA_DEFN( TripMaxVoltU2, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 0.001, 0.1, kV ) \ DBSCHEMA_DEFN( UsbDiscDNP3SAUpdateKeyFileName, Str, 9, 0, 0x100, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( BatteryTypeChangeSupported, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscInstallError, UpdateError, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscUpdateDirFiles, StrArray, 9, 0, 0xFF, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscUpdateDirFileCount, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLogicConfigIssue, Signal, 8, 0, 0xA, 0x54303421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLowestUa, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLowestUb, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLowestUc, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlInhibitMultiPhaseClosesOn, Signal, 8, 1, 0xA, 0x4027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimModuleFeatures, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimMaxPower, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xC350, 1, 0.01, W ) \ DBSCHEMA_DEFN( IdOsmNumber1, SerialNumber, 8, 0, 0xD, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchOpen, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSwitchClosed, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSimFlgEn, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSimProc, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850TestQualEn, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr01, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr02, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr03, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr04, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499Enable, EnDis, 1, 0, 0x1, 0x3001F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499PortNumber, UI16, 3, 1, 0x2, 0x1F098, 0x401, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499AppStatus, IEC61499AppStatus, 1, 0, 0x1, 0x1F019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499Command, IEC61499Command, 1, 0, 0x1, 0x18019, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( OperatingMode, OperatingMode, 1, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlarmLatchMode, LatchEnable, 1, 1, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCSoftwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCHardwareVer, Str, 9, 0, 0x29, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCNumber, SerialNumber, 8, 0, 0xD, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscModuleType, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscReadSerialNumber, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscPartAndSupplierCode, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigModuleTypePscConnected, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscReadHWVers, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscReadSWVers, SwVersion, 8, 0, 0x6, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PhaseToPhaseTripping, EnDis, 1, 0, 0x1, 0x27098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscRdData, SimImageBytes, 9, 0, 0x9, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscFirmwareVerifyStatus, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscFirmwareTypeRunning, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProgramPscCmd, ProgramSimCmd, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanDataRequestPsc, CanObjType, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProgramPscStatus, UI8, 1, 0, 0x1, 0x4001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscRequestMoreData, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstTripCloseA, Signal, 8, 0, 0xA, 0x66001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstTripCloseB, Signal, 8, 0, 0xA, 0x66001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRqstTripCloseC, Signal, 8, 0, 0xA, 0x66001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GOOSE_RxCount, UI32, 5, 0, 0x4, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClrGseCntrs, ClearCommand, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedSwitchAll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenSwitchAll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchgearTypeSIMChanged, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchgearTypeEraseSettings, Bool, 1, 0, 0x1, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdatePscNew, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr05, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr06, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr07, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr08, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr09, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr10, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigModuleTypePscDisconnected, Signal, 8, 0, 0xA, 0x4043400, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfPscRunningMiniBootloader, Signal, 8, 0, 0xA, 0x4043401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfPscFault, Signal, 8, 0, 0xA, 0x54043401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscModuleFault, UI16, 3, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscModuleHealth, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BTimeLocal, ScadaTimeIsLocal, 1, 0, 0x1, 0x1F080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BIpValidMasterAddr, YesNo, 0, 0, 0x1, 0x1F080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BIpMasterAddr, IpAddr, 8, 0, 0x4, 0x7080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT001, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT002, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT003, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT004, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT005, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT006, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT007, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT008, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT009, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT010, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT011, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT012, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT013, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT014, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT015, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT016, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT017, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT018, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT019, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT020, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT021, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT022, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT023, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT024, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT025, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT026, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT027, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT028, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT029, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT030, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT031, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT032, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT033, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT034, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT035, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT036, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT037, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT038, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT039, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT040, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT041, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT042, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT043, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT044, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT045, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT046, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT047, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT048, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT049, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT050, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT051, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT052, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT053, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT054, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT055, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT056, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT057, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT058, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT059, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT060, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT061, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT062, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT063, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT064, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT065, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT066, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT067, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT068, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT069, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT070, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT071, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT072, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT073, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT074, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT075, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT076, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT077, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT078, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT079, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT080, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT081, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT082, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT083, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT084, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT085, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT086, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT087, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT088, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT089, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT090, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT091, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT092, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT093, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT094, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT095, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT096, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT097, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT098, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT099, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDT100, DDT, 8, 0, 0x4, 0x30000001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOcll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOcll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmOcll3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNpsll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNpsll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmNpsll3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEfll1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEfll2, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmEfll3, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmSefll, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DDTDef01, DDTDef, 8, 0, 0x6A4, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimBulkReadCount, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIoBulkReadCount, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscBulkReadCount, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( DemoUnitMode, DemoUnitMode, 1, 0, 0x1, 0x1F080, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( DemoUnitAvailable, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LanguagesAvailable, StrArray2, 10, 0, 0x200, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DemoUnitActive, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimReadSWVersExt, SwVersionExt, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo1ReadSwVersExt, SwVersionExt, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanIo2ReadSwVersExt, SwVersionExt, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscReadSWVersExt, SwVersionExt, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RemoteUpdateCommand, RemoteUpdateCommand, 1, 0, 0x1, 0x201C001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( RemoteUpdateStatus, RemoteUpdateStatus, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499FBOOTChEv, IEC61499FBOOTChEv, 1, 0, 0x1, 0x1F081, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigStatusIEC61499FailedFBOOT, Signal, 8, 0, 0xA, 0x4043401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumModelA, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumModelB, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumModelC, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumPlantA, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumPlantB, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumPlantC, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumDateA, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumDateB, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumDateC, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumSeqA, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumSeqB, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdOsmNumSeqC, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LLBPhasesBlocked, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsClientCapabilities, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGenLockoutAll, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLockoutProtAll, Signal, 8, 0, 0xA, 0x4002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsClientAllowAny, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499FBOOTStatus, IEC61499FBOOTStatus, 1, 1, 0x1, 0x1F001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499AppsRunning, UI8, 1, 1, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499AppsFailed, UI8, 1, 1, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499FBOOTOper, IEC61499FBOOTOper, 1, 1, 0x1, 0x18001, 0x0, 0xB, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtHLT, EnDis, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GpsAvailable, YesNo, 0, 0, 0x1, 0x58001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_Enable, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_Restart, YesNo, 0, 0, 0x1, 0x1C019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_SignalQuality, SignalQuality, 1, 0, 0x1, 0x10018001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_Longitude, I32, 4, 0, 0x4, 0x1001E001, 0xF5456B00, 0xABA9500, 0.000001, 0.000001, degrees ) \ DBSCHEMA_DEFN( Gps_Latitude, I32, 4, 0, 0x4, 0x1001E001, 0xFAA2B580, 0x55D4A80, 0.000001, 0.000001, degrees ) \ DBSCHEMA_DEFN( Gps_Altitude, I16, 2, 0, 0x2, 0x1001E001, 0x8000, 0x7FFF, 1, 1, m ) \ DBSCHEMA_DEFN( Gps_TimeSyncStatus, GpsTimeSyncStatus, 1, 0, 0x1, 0x1E001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGpsLocked, Signal, 8, 0, 0xA, 0x14007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PqChEvNonGroup, ChangeEvent, 0, 0, 0x1, 0x1F085, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ChEvSwitchgearCalib, ChangeEvent, 0, 0, 0x1, 0x1F085, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtocolChEvNonGroup, ChangeEvent, 0, 0, 0x1, 0x1F085, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_SyncSimTime, Bool, 1, 0, 0x1, 0x1E001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_PPS, Signal, 8, 0, 0xA, 0x4007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigModuleSimUnhealthy, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigLanAvailable, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MntReset, Bool, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanConfigType, UsbPortConfigType, 0, 0, 0x1, 0x1F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkConfigType, UsbPortConfigType, 0, 0, 0x1, 0x1F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanConnectionMode, WlanConnectionMode, 1, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAccessPointSSID, Str, 9, 0, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAccessPointIP, IpAddr, 8, 0, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanIPRangeLow, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanIPRangeHigh, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPAddr1, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPAddr2, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPAddr3, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPAddr4, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPAddr5, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanSignalQuality, SignalQuality, 1, 0, 0x1, 0x10018001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkSignalQuality, SignalQuality, 1, 0, 0x1, 0x10018001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkSimCardStatus, MobileNetworkSimCardStatus, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkMode, MobileNetworkMode, 1, 0, 0x1, 0x18001, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkModemSerialNumber, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkIMEI, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanHideNetwork, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanChannelNumber, UI8, 1, 0, 0x1, 0x801F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanRestart, YesNo, 0, 0, 0x1, 0x1C019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkRestart, YesNo, 0, 0, 0x1, 0x1C019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigWlanAvailable, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMobileNetworkAvailable, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCommsBoardConnected, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G12_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G12_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G12_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G12_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G12_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G12_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G12_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G12_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemDialOut, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemPreDialString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemDialNumber1, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemDialNumber2, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemDialNumber3, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemDialNumber4, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemDialNumber5, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemAutoDialInterval, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G12_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G12_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_WlanNetworkSSID, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G12_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G12_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G13_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G13_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G13_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G13_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G13_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G13_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G13_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G13_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemDialOut, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemPreDialString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemDialNumber1, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemDialNumber2, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemDialNumber3, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemDialNumber4, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemDialNumber5, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemAutoDialInterval, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G13_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G13_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_WlanNetworkSSID, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_GPRSServiceProvider, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_GPRSUserName, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_GPRSPassWord, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G13_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G13_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfRel03, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfRel15, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfRel15_4G, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncEnabled, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigWarningSyncSingleTriple, Signal, 8, 0, 0xA, 0x4007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncPhaseToSelection, PhaseToSelection, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncBusAndLine, BusAndLine, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncLiveDeadAR, SyncLiveDeadMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncLiveDeadManual, SyncLiveDeadMode, 1, 0, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncDLDBAR, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncDLDBManual, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncLiveBusMultiplier, UI16, 3, 0, 0x2, 0x3F098, 0x12C, 0x4B0, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( SyncLiveLineMultiplier, UI16, 3, 0, 0x2, 0x3F098, 0x12C, 0x4B0, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( SyncMaxBusMultiplier, UI16, 3, 0, 0x2, 0x3F098, 0x320, 0x578, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( SyncMaxLineMultiplier, UI16, 3, 0, 0x2, 0x3F098, 0x320, 0x578, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( SyncCheckEnabled, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncVoltageDiffMultiplier, UI16, 3, 0, 0x2, 0x3F098, 0x1E, 0x1F4, 0.001, 0.01, NULL ) \ DBSCHEMA_DEFN( SyncMaxSyncSlipFreq, UI16, 3, 0, 0x2, 0x3F098, 0x1E, 0x64, 0.001, 0.01, Hz ) \ DBSCHEMA_DEFN( SyncMaxPhaseAngleDiff, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0x5A, 1, 1, degrees ) \ DBSCHEMA_DEFN( SyncManualPreSyncTime, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0x3C, 1, 1, s ) \ DBSCHEMA_DEFN( SyncMaxFreqDeviation, UI16, 3, 0, 0x2, 0x3F098, 0x0, 0x3E8, 0.001, 0.01, Hz ) \ DBSCHEMA_DEFN( SyncMaxAutoSlipFreq, UI16, 3, 0, 0x2, 0x3F098, 0x1E, 0x1F4, 0.001, 0.01, Hz ) \ DBSCHEMA_DEFN( SyncMaxROCSlipFreq, UI16, 3, 0, 0x2, 0x3F098, 0x64, 0x3E8, 0.001, 0.1, HzPers ) \ DBSCHEMA_DEFN( SyncAutoWaitingTime, UI32, 5, 0, 0x4, 0x3F098, 0x64, 0xE10, 1, 1, s ) \ DBSCHEMA_DEFN( SyncAntiMotoringEnabled, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SynchroniserStatus, SynchroniserStatus, 1, 0, 0x1, 0x1A001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncDeltaVStatus, OkFail, 1, 0, 0x1, 0x1A001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncSlipFreqStatus, OkFail, 1, 0, 0x1, 0x1A001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncAdvanceAngleStatus, OkFail, 1, 0, 0x1, 0x1A001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncDeltaPhaseStatus, OkFail, 1, 0, 0x1, 0x1A001, 0x0, 0x1, 1, 1, degrees ) \ DBSCHEMA_DEFN( SigAutoSynchroniserInitiate, Signal, 8, 0, 0xA, 0x64007419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAutoSynchroniserInitiated, Signal, 8, 0, 0xA, 0x54007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAutoSynchroniserRelease, Signal, 8, 0, 0xA, 0x54007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSyncHealthCheck, Signal, 8, 0, 0xA, 0x54007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSyncTimedHealthCheck, Signal, 8, 0, 0xA, 0x54007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSyncPhaseSeqMatch, Signal, 8, 0, 0xA, 0x54007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncAdvanceAngle, I32, 4, 0, 0x4, 0x1001E001, 0xFFFFFF4C, 0xB4, 1, 1, degrees ) \ DBSCHEMA_DEFN( MobileNetwork_DebugPortName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncSlipFreq, I32, 4, 0, 0x4, 0x1001E001, 0xFFFFE69C, 0x1964, 0.01, 0.01, Hz ) \ DBSCHEMA_DEFN( SyncMaxDeltaV, I32, 4, 0, 0x4, 0x10006001, 0x0, 0x0, 0.001, 0.001, kV ) \ DBSCHEMA_DEFN( SyncMaxDeltaPhase, I32, 4, 0, 0x4, 0x1001E001, 0xFFFFFF4C, 0xB4, 1, 1, degrees ) \ DBSCHEMA_DEFN( CommsChEvGrp12, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp13, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupNps, Signal, 8, 0, 0xA, 0x56001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultProfileDataAddrB, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultProfileDataAddrC, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncStateFlags, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DEPRECATED_PowerFlowDirection, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlRestrictTripMode, Signal, 8, 0, 0xA, 0x74007498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr11, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr12, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr13, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr14, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr15, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr16, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr17, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr18, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr19, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubscr20, s61850GseSubscDefn, 10, 0, 0xC00, 0x3080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850CIDFileCheck, UI32, 5, 0, 0x4, 0x4000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncFundFreq, UI32, 5, 0, 0x4, 0x3F098, 0xB798, 0xFA00, 0.001, 1, Hz ) \ DBSCHEMA_DEFN( MobileNetworkPortName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAPSubnetMask, IpAddr, 8, 1, 0x4, 0x7080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAPNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x801F080, 0x2, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAPDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x801F080, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAPNetworkKey, Str, 9, 1, 0x29, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ProtConfigCount, UI16, 3, 0, 0x2, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OpenReqA, CoReq, 8, 0, 0x28, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OpenReqB, CoReq, 8, 0, 0x28, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OpenReqC, CoReq, 8, 0, 0x28, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CoLogOpen, CoReq, 8, 0, 0x28, 0x1041, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkSignalStrength, I8, 0, 0, 0x1, 0x18001, 0x0, 0x63, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanFWVersion, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsSecurity, CmsSecurityLevel, 1, 1, 0x1, 0x18008, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAutoSynchroniserCancel, Signal, 8, 0, 0xA, 0x64007419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IEC61499CtrlStartStop, UI8, 1, 0, 0x1, 0x30018001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncAutoAction, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FreqabcROC, I32, 4, 0, 0x4, 0x10000004, 0x0, 0x0, 0.01, 0.01, HzPersec ) \ DBSCHEMA_DEFN( WT1, UI16, 3, 0, 0x2, 0x3001E000, 0x1, 0x32, 1, 1, NULL ) \ DBSCHEMA_DEFN( WT2, UI16, 3, 0, 0x2, 0x3001E000, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( A_WT1, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.015625, 1, A ) \ DBSCHEMA_DEFN( A_WT2, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.015625, 1, A ) \ DBSCHEMA_DEFN( AutoRecloseStatus, AutoRecloseStatus, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CloseReqAR, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlOV3On, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850EnableCommslog, EnDis, 1, 0, 0x1, 0x1D081, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtLogicVAR1, EnDis, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PanelButtLogicVAR2, EnDis, 1, 0, 0x1, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigHighPrecisionSEF, Signal, 8, 0, 0xA, 0x4007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasVoltU0RST, UI32, 5, 0, 0x4, 0x5, 0x0, 0x0, 0.000125, 0.1, NULL ) \ DBSCHEMA_DEFN( MeasVoltUnRST, UI32, 5, 0, 0x4, 0x5, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltU1RST, UI32, 5, 0, 0x4, 0x5, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( MeasVoltU2RST, UI32, 5, 0, 0x4, 0x5, 0x0, 0x0, 0.000125, 0.1, kV ) \ DBSCHEMA_DEFN( G1_Yn_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_Yn_OperationalMode, YnOperationalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Yn_DirectionalMode, YnDirectionalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Yn_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G1_Yn_Ioper, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x138800, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G1_Yn_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_Yn_FwdSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G1_Yn_RevSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G1_Yn_FwdConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G1_Yn_RevConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G1_Yn_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Yn_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Yn_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Yn_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OC2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPS2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EF2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OCLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_OCLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPSLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_NPSLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EFLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_EFLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DE_EF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DE_EF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G1_DE_EF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_EF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_EF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_EF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_SEF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_DE_SEF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G1_DE_SEF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_SEF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_SEF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_SEF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G1_DE_SEF_Polarisation, NeutralPolarisation, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndA_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndB_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndC_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndD_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_Hrm_IndE_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ROCOF_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ROCOF_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x190, 0x2710, 0.001, 0.1, HzPers ) \ DBSCHEMA_DEFN( G1_ROCOF_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x96, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_ROCOF_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_VVS_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_VVS_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x7D0, 0x9C40, 0.001, 1, Degree ) \ DBSCHEMA_DEFN( G1_VVS_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G1_VVS_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_PDOP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PDOP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G1_PDOP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G1_PDOP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_PDOP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_PDUP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_PDUP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G1_PDUP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G1_PDUP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_PDUP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G1_PDUP_TDtDis, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0xEA60, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_Yn_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_Yn_OperationalMode, YnOperationalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Yn_DirectionalMode, YnDirectionalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Yn_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G2_Yn_Ioper, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x138800, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G2_Yn_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_Yn_FwdSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G2_Yn_RevSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G2_Yn_FwdConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G2_Yn_RevConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G2_Yn_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Yn_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Yn_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Yn_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OC2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPS2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EF2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OCLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_OCLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPSLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_NPSLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EFLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_EFLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DE_EF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DE_EF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G2_DE_EF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_EF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_EF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_EF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_SEF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_DE_SEF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G2_DE_SEF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_SEF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_SEF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_SEF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G2_DE_SEF_Polarisation, NeutralPolarisation, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndA_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndB_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndC_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndD_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_Hrm_IndE_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ROCOF_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ROCOF_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x190, 0x2710, 0.001, 0.1, HzPers ) \ DBSCHEMA_DEFN( G2_ROCOF_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x96, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_ROCOF_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_VVS_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_VVS_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x7D0, 0x9C40, 0.001, 1, Degree ) \ DBSCHEMA_DEFN( G2_VVS_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G2_VVS_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_PDOP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PDOP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G2_PDOP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G2_PDOP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_PDOP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_PDUP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_PDUP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G2_PDUP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G2_PDUP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_PDUP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G2_PDUP_TDtDis, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0xEA60, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_Yn_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_Yn_OperationalMode, YnOperationalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Yn_DirectionalMode, YnDirectionalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Yn_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G3_Yn_Ioper, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x138800, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G3_Yn_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_Yn_FwdSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G3_Yn_RevSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G3_Yn_FwdConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G3_Yn_RevConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G3_Yn_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Yn_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Yn_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Yn_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OC2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPS2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EF2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OCLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_OCLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPSLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_NPSLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EFLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_EFLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DE_EF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DE_EF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G3_DE_EF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_EF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_EF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_EF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_SEF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_DE_SEF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G3_DE_SEF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_SEF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_SEF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_SEF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G3_DE_SEF_Polarisation, NeutralPolarisation, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndA_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndB_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndC_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndD_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_Hrm_IndE_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ROCOF_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ROCOF_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x190, 0x2710, 0.001, 0.1, HzPers ) \ DBSCHEMA_DEFN( G3_ROCOF_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x96, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_ROCOF_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_VVS_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_VVS_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x7D0, 0x9C40, 0.001, 1, Degree ) \ DBSCHEMA_DEFN( G3_VVS_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G3_VVS_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_PDOP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PDOP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G3_PDOP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G3_PDOP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_PDOP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_PDUP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_PDUP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G3_PDUP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G3_PDUP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_PDUP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G3_PDUP_TDtDis, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0xEA60, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_Yn_TDtMin, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_Yn_OperationalMode, YnOperationalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Yn_DirectionalMode, YnDirectionalMode, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Yn_Um, UI32, 5, 0, 0x4, 0x3F098, 0xA, 0x3E8, 0.001, 0.01, mill ) \ DBSCHEMA_DEFN( G4_Yn_Ioper, UI32, 5, 0, 0x4, 0x3F098, 0x1F4, 0x138800, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( G4_Yn_TDtRes, UI32, 5, 0, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_Yn_FwdSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G4_Yn_RevSusceptance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G4_Yn_FwdConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G4_Yn_RevConductance, I32, 4, 0, 0x4, 0x3F098, 0xFFFB02A8, 0x4FD58, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( G4_Yn_Tr1, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Yn_Tr2, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Yn_Tr3, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Yn_Tr4, TripMode, 1, 0, 0x1, 0x3F098, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OC2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPS2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2F_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF1R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EF2R_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OCLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_OCLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPSLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_NPSLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EFLL1_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_EFLL2_TccName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DE_EF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DE_EF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G4_DE_EF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_EF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_EF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_EF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_SEF_AdvPolarDet, EnDis, 1, 0, 0x1, 0x3F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_DE_SEF_MinNVD, UI32, 5, 0, 0x4, 0x3F098, 0x28, 0x3E8, 0.001, 0.01, Un ) \ DBSCHEMA_DEFN( G4_DE_SEF_MaxFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_SEF_MinFwdAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_SEF_MaxRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_SEF_MinRevAngle, I32, 4, 0, 0x4, 0x3F098, 0x0, 0xB4, 1, 1, deg ) \ DBSCHEMA_DEFN( G4_DE_SEF_Polarisation, NeutralPolarisation, 1, 0, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndA_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndB_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndC_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndD_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_Hrm_IndE_NameExt, HrmIndividualExt, 3, 1, 0x2, 0x3F098, 0x0, 0x80F, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ROCOF_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ROCOF_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x190, 0x2710, 0.001, 0.1, HzPers ) \ DBSCHEMA_DEFN( G4_ROCOF_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x96, 0x1D4C0, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_ROCOF_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_VVS_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_VVS_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x7D0, 0x9C40, 0.001, 1, Degree ) \ DBSCHEMA_DEFN( G4_VVS_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x1D4C0, 0.001, 0.1, s ) \ DBSCHEMA_DEFN( G4_VVS_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_PDOP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PDOP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G4_PDOP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G4_PDOP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_PDOP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_PDUP_Trm, TripModeDLA, 1, 1, 0x1, 0x3F098, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_PDUP_Pickup, UI32, 5, 1, 0x4, 0x3F098, 0x2, 0xCDAD, 1, 1, kVA ) \ DBSCHEMA_DEFN( G4_PDUP_Angle, I32, 4, 1, 0x4, 0x3F098, 0xFFFFB9BA, 0x4650, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( G4_PDUP_TDtMin, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2BF20, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_PDUP_TDtRes, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0x2710, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( G4_PDUP_TDtDis, UI32, 5, 1, 0x4, 0x3F098, 0x0, 0xEA60, 0.001, 0.01, s ) \ DBSCHEMA_DEFN( SigCtrlYnOn, Signal, 8, 0, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmYn, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupYn, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenYn, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrYnTrips, I32, 4, 0, 0x4, 0x10000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMaxGn, I32, 4, 0, 0x4, 0x18001, 0xC4653600, 0x3B9ACA00, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( TripMaxBn, I32, 4, 0, 0x4, 0x18001, 0xC4653600, 0x3B9ACA00, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( TripMinGn, I32, 4, 0, 0x4, 0x18001, 0xC4653600, 0x3B9ACA00, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( TripMinBn, I32, 4, 0, 0x4, 0x18001, 0xC4653600, 0x3B9ACA00, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( MeasGn, I32, 4, 0, 0x4, 0x10018005, 0xC4653600, 0x3B9ACA00, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( MeasBn, I32, 4, 0, 0x4, 0x10018005, 0xC4653600, 0x3B9ACA00, 0.001, 0.01, mSi ) \ DBSCHEMA_DEFN( s61850GooseOpMode, LocalRemote, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscUpdateDirFiles1024, StrArray1024, 10, 0, 0x400, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscUpdateVersions1024, StrArray1024, 10, 0, 0x400, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UsbDiscInstallVersions1024, StrArray1024, 10, 0, 0x400, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850CommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( RelayModelDisplayName, RelayModelName, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchStateOwner, DbClientId, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwitchStateOwnerPtr, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ModemConnectState, ModemConnectStatus, 1, 0, 0x1, 0x18001, 0x0, 0xD, 1, 1, NULL ) \ DBSCHEMA_DEFN( ModemRetryWaitTime, UI32, 5, 0, 0x4, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850RqstEnableMMS, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850RqstEnableGoosePub, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850CIDFileUpdateStatus, UI8, 1, 0, 0x1, 0x4001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmI2I1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupI2I1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenI2I1, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrI2I1Trips, I32, 4, 0, 0x4, 0x10000000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMaxI2I1, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.001, 1, PCT ) \ DBSCHEMA_DEFN( MeasI2I1, UI32, 5, 0, 0x4, 0x10018005, 0x0, 0x186A0, 0.001, 1, PCT ) \ DBSCHEMA_DEFN( MobileNetworkModemFWNumber, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanMACAddr, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Diagnostic1, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Diagnostic2, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Diagnostic3, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Diagnostic4, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MeasCurrIn_mA, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( InTrip_mA, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( TripMaxCurrIn_mA, UI32, 5, 0, 0x4, 0x10000001, 0x0, 0x0, 0.001, 0.1, A ) \ DBSCHEMA_DEFN( UPSMobileNetworkTime, UI16, 3, 0, 0x2, 0x1F080, 0x0, 0x5A0, 1, 1, min ) \ DBSCHEMA_DEFN( UPSWlanTime, UI16, 3, 0, 0x2, 0x1F080, 0x0, 0x5A0, 1, 1, min ) \ DBSCHEMA_DEFN( UPSMobileNetworkResetTime, UI16, 3, 0, 0x2, 0x1F080, 0x0, 0x2D0, 1, 1, Hrs ) \ DBSCHEMA_DEFN( UPSWlanResetTime, UI16, 3, 0, 0x2, 0x1F080, 0x0, 0x2D0, 1, 1, Hrs ) \ DBSCHEMA_DEFN( CmdResetFaultTargets, Bool, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CfgPowerFlowDirection, PowerFlowDirection, 1, 0, 0x1, 0x7003F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LLBlocksClose, OnOff, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SyncDiagnostics, EnDis, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscHeatsinkTemp, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 0.01, 0.01, C ) \ DBSCHEMA_DEFN( CanPscModuleVoltage, UI16, 3, 0, 0x2, 0x1, 0x0, 0x0, 0.01, 0.01, V ) \ DBSCHEMA_DEFN( WlanTxPower, WLanTxPower, 0, 0, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigClosedAutoSync, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LLAllowClose, OnOff, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanConnectState, WlanConnectStatus, 0, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSyncDeltaVStatus, Signal, 8, 0, 0xA, 0x14007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSyncSlipFreqStatus, Signal, 8, 0, 0xA, 0x14007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSyncDeltaPhaseStatus, Signal, 8, 0, 0xA, 0x14007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsAuxConfigMaxFrameSizeTx, UI32, 5, 0, 0x4, 0x3005F098, 0x200, 0x1000, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmsConfigMaxFrameSizeTx, UI32, 5, 0, 0x4, 0x3001F098, 0x200, 0x1000, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdRelayFwModelNo, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x14, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfWLAN, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateLock, UI16, 3, 0, 0x2, 0x2008001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanSignalQualityLoadProfile, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkSignalQualityLoadProfile, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_SignalQualityLoadProfile, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_Latitude_Field1, I16, 2, 0, 0x2, 0x18001, 0xFFA6, 0x5A, 1, 1, degree ) \ DBSCHEMA_DEFN( Gps_Latitude_Field2, I16, 2, 0, 0x2, 0x18001, 0x0, 0x3E7, 1, 1, millidegree ) \ DBSCHEMA_DEFN( Gps_Latitude_Field3, I16, 2, 0, 0x2, 0x18001, 0x0, 0x3E7, 1, 1, microdegree ) \ DBSCHEMA_DEFN( Gps_Longitude_Field1, I16, 2, 0, 0x2, 0x18001, 0xFF4C, 0xB4, 1, 1, degree ) \ DBSCHEMA_DEFN( Gps_Longitude_Field2, I16, 2, 0, 0x2, 0x18001, 0x0, 0x3E7, 1, 1, millidegree ) \ DBSCHEMA_DEFN( Gps_Longitude_Field3, I16, 2, 0, 0x2, 0x18001, 0x0, 0x3E7, 1, 1, microdegree ) \ DBSCHEMA_DEFN( AlertFlagsDisplayed, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName1, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName2, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName3, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName4, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName5, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName6, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName7, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName8, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName9, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName10, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName11, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName12, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName13, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName14, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName15, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName16, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName17, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName18, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName19, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertName20, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode1, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode2, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode3, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode4, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode5, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode6, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode7, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode8, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode9, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode10, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode11, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode12, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode13, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode14, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode15, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode16, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode17, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode18, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode19, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertMode20, EnDis, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr1, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr2, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr3, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr4, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr5, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr6, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr7, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr8, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr9, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr10, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr11, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr12, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr13, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr14, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr15, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr16, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr17, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr18, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr19, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertExpr20, UI16, 3, 0, 0x2, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertDisplayNames, StrArray1024, 10, 0, 0x400, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertDefaultsPopulated, Bool, 1, 0, 0x1, 0x18000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertGroup, ChangeEvent, 0, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertDisplayNamesChanged, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientMACAddr1, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientMACAddr2, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientMACAddr3, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientMACAddr4, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientMACAddr5, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateError, UpdateError, 1, 0, 0x1, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPS_Status, GPSStatus, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGPSUnplugged, Signal, 8, 0, 0xA, 0x14040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGPSMalfunction, Signal, 8, 0, 0xA, 0x14041401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Gps_SetTime, UI32, 5, 0, 0x4, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmdResetBinaryFaultTargets, ResetCommand, 1, 0, 0x1, 0x3081, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmdResetTripCurrents, ResetCommand, 1, 0, 0x1, 0x3081, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSimAndOsmModelMismatch, Signal, 8, 0, 0xA, 0x54041401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBlockPickupEff, Signal, 8, 0, 0xA, 0x74003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBlockPickupEfr, Signal, 8, 0, 0xA, 0x74003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBlockPickupSeff, Signal, 8, 0, 0xA, 0x74003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBlockPickupSefr, Signal, 8, 0, 0xA, 0x74003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigBlockPickupOv3, Signal, 8, 0, 0xA, 0x74003419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigFaultLocatorStatus, Signal, 8, 0, 0xA, 0x54001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLocFaultType, FaultLocFaultType, 1, 0, 0x1, 0x10007001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLocM, I32, 4, 0, 0x4, 0x1001F001, 0xFFFF8AD0, 0x7530, 0.01, 0.01, km ) \ DBSCHEMA_DEFN( FaultLocZf, I32, 4, 0, 0x4, 0x1001F001, 0x0, 0x7A120, 0.01, 0.01, ohms ) \ DBSCHEMA_DEFN( FaultLocThetaF, I32, 4, 0, 0x4, 0x1001F001, 0xFFFFB9B0, 0x4650, 0.01, 0.01, deg ) \ DBSCHEMA_DEFN( FaultLocZLoop, I32, 4, 0, 0x4, 0x1001F001, 0x0, 0x2625A0, 0.01, 0.01, ohms ) \ DBSCHEMA_DEFN( FaultLocThetaLoop, I32, 4, 0, 0x4, 0x1001F001, 0xFFFFB9B0, 0x4650, 0.01, 0.01, deg ) \ DBSCHEMA_DEFN( FaultLocIa, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.015625, 1, A ) \ DBSCHEMA_DEFN( FaultLocIb, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.015625, 1, A ) \ DBSCHEMA_DEFN( FaultLocIc, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.015625, 1, A ) \ DBSCHEMA_DEFN( FaultLocAIa, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 0.0219726562, 1, deg ) \ DBSCHEMA_DEFN( FaultLocAIb, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 0.0219726562, 1, deg ) \ DBSCHEMA_DEFN( FaultLocAIc, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 0.0219726562, 1, deg ) \ DBSCHEMA_DEFN( FaultLocUa, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.001, 1, kV ) \ DBSCHEMA_DEFN( FaultLocUb, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.001, 1, kV ) \ DBSCHEMA_DEFN( FaultLocUc, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 0.001, 1, kV ) \ DBSCHEMA_DEFN( FaultLocAUa, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 0.0219726562, 1, deg ) \ DBSCHEMA_DEFN( FaultLocAUb, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 0.0219726562, 1, deg ) \ DBSCHEMA_DEFN( FaultLocAUc, I16, 2, 0, 0x2, 0x1, 0x0, 0x0, 0.0219726562, 1, deg ) \ DBSCHEMA_DEFN( FaultLocDetectedType, FaultLocFaultType, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLocTrigger, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLocEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLocR0, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xC350, 0.001, 0.001, ohmsPerkm ) \ DBSCHEMA_DEFN( FaultLocX0, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xC350, 0.001, 0.001, ohmsPerkm ) \ DBSCHEMA_DEFN( FaultLocR1, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xC350, 0.001, 0.001, ohmsPerkm ) \ DBSCHEMA_DEFN( FaultLocX1, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xC350, 0.001, 0.001, ohmsPerkm ) \ DBSCHEMA_DEFN( FaultLocRA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xC350, 0.001, 0.001, ohmsPerkm ) \ DBSCHEMA_DEFN( FaultLocXA, UI32, 5, 0, 0x4, 0x1F098, 0x1, 0xC350, 0.001, 0.001, ohmsPerkm ) \ DBSCHEMA_DEFN( FaultLocLengthOfLine, UI32, 5, 0, 0x4, 0x1F098, 0xA, 0x493E0, 0.001, 0.01, km ) \ DBSCHEMA_DEFN( GPSEnableCommsLog, EnDis, 1, 0, 0x1, 0x1D081, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPSCommsLogMaxSize, UI8, 1, 1, 0x1, 0x1D080, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigResetFaultLocation, Signal, 8, 0, 0xA, 0x4003499, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertDisplayDatapoints, Array16, 10, 0, 0xCA, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( AlertDisplayMode, AlertDisplayMode, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FtstCaptureNextPtr, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FtstCaptureLastPtr, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FaultLocXLoop, I32, 4, 0, 0x4, 0x1001F001, 0xFFE91CA0, 0x16E360, 0.01, 0.01, ohms ) \ DBSCHEMA_DEFN( SigArReset, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigArResetPhA, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigArResetPhB, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigArResetPhC, Signal, 8, 0, 0xA, 0x54002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicSGAStopped, Signal, 8, 0, 0xA, 0x6047419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicSGAStoppedLogic, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicSGAStoppedSGA, Signal, 8, 0, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicSGAThrottling, Signal, 8, 0, 0xA, 0x6047419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicSGAThrottlingLogic, Signal, 8, 0, 0xA, 0x4004401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogicSGAThrottlingSGA, Signal, 8, 0, 0xA, 0x4004401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCOnboard, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCExternal, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCModem, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCWifi, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCGPS, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadedScadaProtocolDNP3, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadedScadaRestartReqWarning, Signal, 8, 0, 0xA, 0x4047401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCModelStr, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanConfigTypeNonUps, UsbPortConfigType, 0, 0, 0x1, 0x18019, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkConfigTypeNonUps, UsbPortConfigType, 0, 0, 0x1, 0x18019, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscFirmwareUpdateFeatures, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimFirmwareUpdateFeatures, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioFirmwareUpdateFeatures, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscTransferStatus, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimTransferStatus, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioTransferStatus, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscActiveApplicationDetails, SimWriteAddr, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimActiveApplicationDetails, SimWriteAddr, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioActiveApplicationDetails, SimWriteAddr, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscInactiveApplicationDetails, SimWriteAddr, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimInactiveApplicationDetails, SimWriteAddr, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanGpioInactiveApplicationDetails, SimWriteAddr, 8, 0, 0x8, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscPWR1Status, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanPscSimPresent, UI8, 1, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( sigFirmwareHardwareMismatch, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FirmwareHardwareVersion, UI8, 1, 0, 0x1, 0x58001, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( UnitOfTime, TimeUnit, 1, 0, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadedScadaProtocol60870, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadedScadaProtocol61850MMS, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadedScadaProtocol2179, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadedScadaProtocol61850GoosePub, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LoadedScadaProtocol61850GooseSub, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DiagCounter1, diagDataGeneral1, 10, 0, 0x800, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DiagCounterCtrl1, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigProtOcDirF, Signal, 8, 0, 0xA, 0x4007419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigProtOcDirR, Signal, 8, 0, 0xA, 0x4007419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPEnable, EnDis, 1, 1, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPServIpAddr1, IpAddr, 8, 1, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPServIpAddr2, IpAddr, 8, 1, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPUpdateInterval, UI16, 3, 1, 0x2, 0x1F098, 0xF, 0xE10, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPRetryInterval, UI16, 3, 1, 0x2, 0x1F098, 0x1, 0xA, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPRetryAttempts, UI8, 1, 1, 0x1, 0x1F098, 0x1, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( TmSrc, TimeSyncStatus, 1, 1, 0x1, 0x1E001, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( Diagnostic5, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Diagnostic6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( Diagnostic7, UI32, 5, 1, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPSetTime, UI32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPServerResponse, UI8, 1, 1, 0x1, 0x8001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPSyncStatus, Signal, 8, 1, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTP1Error, Signal, 8, 1, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTP2Error, Signal, 8, 1, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPUnableToSync, Signal, 8, 0, 0xA, 0x4047401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCReset, Signal, 8, 1, 0xA, 0x4000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCMalfunction, Signal, 8, 1, 0xA, 0x6040400, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CmdResetFaultLocation, ResetCommand, 1, 1, 0x1, 0x3081, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalfRel20, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CurrentLanguage, Str, 9, 0, 0x29, 0x7099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPServIpv6Addr1, Ipv6Addr, 8, 1, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPServIpv6Addr2, Ipv6Addr, 8, 1, 0x10, 0x7080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTPServIpVersion, IpVersion, 1, 1, 0x1, 0x1F098, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3Ipv6MasterAddr, Ipv6Addr, 8, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3Ipv6UnathIpAddr, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDnp3IpVersion, IpVersion, 1, 0, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BIpv6MasterAddr, Ipv6Addr, 8, 0, 0x10, 0x7080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BIpVersion, IpVersion, 1, 0, 0x1, 0x1F080, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpVersion, IpVersion, 1, 0, 0x1, 0x1F080, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpv6Addr1, Ipv6Addr, 8, 0, 0x10, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpv6Addr2, Ipv6Addr, 8, 0, 0x10, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpv6Addr3, Ipv6Addr, 8, 0, 0x10, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850ClientIpv6Addr4, Ipv6Addr, 8, 0, 0x10, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaCMSIpVersion, IpVersion, 1, 1, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pRemoteIpVersion, IpVersion, 1, 1, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( p2pRemoteLanIpv6Addr, Ipv6Addr, 8, 1, 0x10, 0x7080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( s61850GseSubsSts, UI32, 5, 0, 0x4, 0x7000A001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAccessPointIPv6, Ipv6Addr, 8, 0, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanAPSubnetPrefixLength, UI8, 1, 1, 0x1, 0x1F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( ftpEnable, EnDis, 1, 0, 0x1, 0x5F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPv6Addr1, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPv6Addr2, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPv6Addr3, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPv6Addr4, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( WlanClientIPv6Addr5, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTP1v6Error, Signal, 8, 1, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SNTP2v6Error, Signal, 8, 1, 0xA, 0x4000401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigACOOpModeEqualOn, Signal, 8, 1, 0xA, 0x4022418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigACOOpModeMainOn, Signal, 8, 1, 0xA, 0x4022418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigACOOpModeAltOn, Signal, 8, 1, 0xA, 0x4022418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPanelOn, Signal, 8, 0, 0xA, 0x4007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMalRel20Dummy, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMIaCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x401147AE, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMIbCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x401147AE, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMIcCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x401147AE, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMInCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x41A00000, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMIaCalCoefHi, F32, 5, 0, 0x4, 0x18001, 0x0, 0x3E8A3D71, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMIbCalCoefHi, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x3E8A3D71, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMIcCalCoefHi, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x3E8A3D71, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMUaCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x456EEC64, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMUbCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x456EEC64, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMUcCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x456EEC64, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMUrCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x456EEC64, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMUsCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x456EEC64, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMUtCalCoef, F32, 5, 0, 0x4, 0x1E001, 0x0, 0x456EEC64, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchIaCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3FCCC986, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchIbCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3FCCC986, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchIcCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3FCCC986, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchInCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3FCCC986, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchUaCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3D8068DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchUbCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3D8068DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchUcCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3D8068DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchUrCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3D8068DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchUsCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3D8068DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchUtCalCoef, F32, 5, 1, 0x4, 0x1E000, 0x0, 0x3D8068DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayIaCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x48BEF9DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayIbCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x48BEF9DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayIcCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x48BEF9DC, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayInCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x48D91687, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayUaCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x42D1B717, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayUbCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x42D1B717, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayUcCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x42D1B717, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayUrCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x42D1B717, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayUsCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x42D1B717, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayUtCalCoef, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x42D1B717, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayIaCalCoefHi, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x47CCCCCD, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayIbCalCoefHi, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x47CCCCCD, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayIcCalCoefHi, F32, 5, 1, 0x4, 0x1E001, 0x0, 0x47CCCCCD, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchDefaultGainI, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchDefaultGainU, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMDefaultGainILow, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMDefaultGainIHigh, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMDefaultGainIn, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SIMDefaultGainU, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayDefaultGainILow, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayDefaultGainIHigh, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayDefaultGainIn, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20RelayDefaultGainU, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGADefaultGainILow, UI32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGADefaultGainIHigh, UI32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGADefaultGainIn, UI32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGADefaultGainU, UI32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20ConstCalCoefILow, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20ConstCalCoefIHigh, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20ConstCalCoefIn, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20ConstCalCoefU, F32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaDNP3GenAppFragMaxSize, UI32, 5, 0, 0x4, 0x1F098, 0x2F, 0x800, 1, 1, NULL ) \ DBSCHEMA_DEFN( LineSupplyVoltage, UI16, 3, 0, 0x2, 0x1001A001, 0x0, 0xFFFF, 0.01, 0.01, V ) \ DBSCHEMA_DEFN( SaveRelayCalibration, UI8, 1, 0, 0x1, 0x1E001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SaveSwgCalibration, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( SDCardStatus, SDCardStatus, 1, 0, 0x1, 0x1E001, 0x0, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAIa, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAIb, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAIc, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAIaHi, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAIbHi, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAIcHi, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAIn, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAUa, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAUb, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAUc, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAUr, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAUs, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20FPGAUt, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchIaCalCoefHi, F32, 5, 1, 0x4, 0x18000, 0x0, 0x3FCCC986, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchIbCalCoefHi, F32, 5, 1, 0x4, 0x18000, 0x0, 0x3FCCC986, 1, 1, NULL ) \ DBSCHEMA_DEFN( RC20SwitchIcCalCoefHi, F32, 5, 1, 0x4, 0x18000, 0x0, 0x3FCCC986, 1, 1, NULL ) \ DBSCHEMA_DEFN( PQSaveToSDCard, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscSamplesPerCycle, OscSamplesPerCycle, 3, 0, 0x2, 0x1F098, 0x20, 0x100, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscLogCountSD, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( OscCaptureTimeExt, OscCaptureTimeExt, 5, 1, 0x4, 0x1F098, 0x1F4, 0x7530, 1, 1, NULL ) \ DBSCHEMA_DEFN( PscTransformerCalib110V, UI32, 5, 0, 0x4, 0x1A001, 0x0, 0x989680, 0.000001, 0.000001, NULL ) \ DBSCHEMA_DEFN( PscTransformerCalib220V, UI32, 5, 0, 0x4, 0x1A001, 0x0, 0x989680, 0.000001, 0.000001, NULL ) \ DBSCHEMA_DEFN( G14_SerialDTRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDSRStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialCDStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialRTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialCTSStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialRIStatus, CommsSerialPinStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ConnectionStatus, CommsConnectionStatus, 0, 0, 0x1, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_BytesReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_BytesTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ErrorPacketsReceivedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ErrorPacketsTransmittedStatus, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_IpAddrStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SubnetMaskStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_DefaultGatewayStatus, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PortDetectedType, CommsPortDetectedType, 0, 0, 0x1, 0x6001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PortDetectedName, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialTxTestStatus, OnOff, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ErrorPacketsReceivedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ErrorPacketsTransmittedStatusIPv6, UI32, 5, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_Ipv6AddrStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanPrefixLengthStatus, UI8, 1, 0, 0x1, 0x18001, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_Ipv6DefaultGatewayStatus, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_IpVersionStatus, IpVersion, 1, 0, 0x1, 0x18001, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialPortTestCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialPortHangupCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_BytesReceivedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_BytesTransmittedResetCmd, Signal, 8, 0, 0xA, 0x4000418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x9, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDuplexType, CommsSerialDuplex, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialRTSMode, CommsSerialRTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialRTSOnLevel, CommsSerialRTSOnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDTRMode, CommsSerialDTRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDTROnLevel, CommsSerialDTROnLevel, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialParity, CommsSerialParity, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialCTSMode, CommsSerialCTSMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDSRMode, CommsSerialDSRMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDCDMode, CommsSerialDCDMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDTRLowTime, UI32, 5, 1, 0x4, 0x801F098, 0x32, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G14_SerialTxDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G14_SerialPreTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G14_SerialDCDFallTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x639C, 1, 1, ms ) \ DBSCHEMA_DEFN( G14_SerialCharTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialPostTxTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1388, 1, 1, ms ) \ DBSCHEMA_DEFN( G14_SerialInactivityTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x258, 1, 1, s ) \ DBSCHEMA_DEFN( G14_SerialCollisionAvoidance, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialMinIdleTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G14_SerialMaxRandomDelay, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x1D4C0, 1, 1, ms ) \ DBSCHEMA_DEFN( G14_ModemPoweredFromExtLoad, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemUsedWithLeasedLine, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemInitString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemDialOut, Bool, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemPreDialString, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemDialNumber1, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemDialNumber2, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemDialNumber3, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemDialNumber4, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemDialNumber5, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemAutoDialInterval, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemMaxCallDuration, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x3C, 1, 1, min ) \ DBSCHEMA_DEFN( G14_ModemResponseTime, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G14_ModemHangUpCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemOffHookCommand, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemAutoAnswerOn, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_ModemAutoAnswerOff, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_RadioPreamble, Bool, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_RadioPreambleChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_RadioPreambleRepeat, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0x19, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_RadioPreambleLastChar, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanSpecifyIP, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanIPAddr, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanSubnetMask, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanDefaultGateway, IpAddr, 8, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_WlanNetworkSSID, Str, 9, 1, 0x20, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_WlanDataEncryption, CommsWlanDataEncryption, 1, 1, 0x1, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_WlanNetworkKey, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_WlanKeyIndex, UI32, 5, 1, 0x4, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PortLocalRemoteMode, LocalRemote, 1, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_GPRSServiceProvider, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_GPRSUserName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_GPRSPassWord, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDebugMode, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDebugFileName, Str, 9, 1, 0x29, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_GPRSBaudRate, CommsSerialBaudRate, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_GPRSConnectionTimeout, UI32, 5, 1, 0x4, 0x801F098, 0x0, 0xFF, 1, 1, s ) \ DBSCHEMA_DEFN( G14_DNP3InputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_DNP3OutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_CMSInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_CMSOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_HMIInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_HMIOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_DNP3ChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_DNP3ChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_CMSChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_CMSChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_HMIChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_HMIChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_GPRSUseModemSetting, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialFlowControlMode, CommsSerialFlowControlMode, 1, 1, 0x1, 0x801F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_SerialDCDControlMode, CommsSerialDCDControlMode, 1, 0, 0x1, 0x8007080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_T10BInputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_T10BOutputPipe, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_T10BChannelRequest, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_T10BChannelOpen, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_P2PInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_P2POutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_P2PChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_P2PChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PGEInputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PGEOutputPipe, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PGEChannelRequest, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_PGEChannelOpen, Str, 9, 0, 0x29, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanProvideIP, YesNo, 0, 0, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanSpecifyIPv6, YesNo, 0, 1, 0x1, 0x801F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanIPv6Addr, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanPrefixLength, UI8, 1, 1, 0x1, 0x801F098, 0x1, 0x80, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanIPv6DefaultGateway, Ipv6Addr, 8, 1, 0x10, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G14_LanIpVersion, IpVersion, 1, 1, 0x1, 0x801F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( LanBConfigType, UsbPortConfigType, 0, 1, 0x1, 0x1F098, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( CommsChEvGrp14, ChangeEvent, 0, 0, 0x1, 0x1B085, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LogHrm64, LogHrm64, 10, 0, 0x200, 0x1001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponentExt, UI32, 5, 0, 0x4, 0x1000001D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponentAExt, UI32, 5, 0, 0x4, 0x5, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponentBExt, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripHrmComponentCExt, UI32, 5, 0, 0x4, 0x1D, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SwgUseCalibratedValue, EnDis, 1, 1, 0x1, 0x1E000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SimUseCalibratedValue, EnDis, 1, 1, 0x1, 0x1E000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( RelayUseCalibratedValue, EnDis, 1, 1, 0x1, 0x1E000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LanB_MAC, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( EnableCalibration, EnDis, 1, 1, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( UpdateFPGACalib, EnDis, 1, 1, 0x1, 0x1A001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlROCOFOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSEFProtMode, Signal, 8, 0, 0xA, 0x4007401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlVVSOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupROCOF, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupVVS, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenROCOF, Signal, 8, 0, 0xA, 0x54001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenVVS, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmROCOF, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmVVS, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrROCOFTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrVVSTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMaxROCOF, UI32, 5, 0, 0x4, 0x10009005, 0x0, 0x0, 0.001, 0.1, HzPers ) \ DBSCHEMA_DEFN( TripMaxVVS, UI32, 5, 0, 0x4, 0x10009005, 0x0, 0x0, 0.001, 1, deg ) \ DBSCHEMA_DEFN( PeakPower, UI16, 3, 0, 0x2, 0x1001A001, 0x0, 0xC350, 0.01, 0.01, W ) \ DBSCHEMA_DEFN( ExternalSupplyPower, UI16, 3, 0, 0x2, 0x1001A001, 0x0, 0xC350, 0.01, 0.01, W ) \ DBSCHEMA_DEFN( BatteryCapacityConfidence, BatteryCapacityConfidence, 1, 0, 0x1, 0x1A001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanBusHighPower, Signal, 8, 0, 0xA, 0x54047401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCNumModel, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCNumPlant, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCNumDate, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCNumSeq, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCSwVer1, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCSwVer2, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCSwVer3, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( IdPSCSwVer4, UI32, 5, 0, 0x4, 0x2001, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPMUOn, Signal, 8, 1, 0xA, 0x74007498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPMUProcessingOn, Signal, 8, 0, 0xA, 0x4002401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUStationName, Str, 9, 1, 0x11, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUStationIDCode, UI16, 3, 1, 0x2, 0x1A000, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUNominalFrequency, UI8, 1, 1, 0x1, 0x1A000, 0x32, 0x3C, 1, 1, Hz ) \ DBSCHEMA_DEFN( PMUMessageRate, UI8, 1, 1, 0x1, 0x1A000, 0xA, 0x78, 1, 1, Per_sec ) \ DBSCHEMA_DEFN( PMUPerfClass, PMUPerfClass, 0, 1, 0x1, 0x1A000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUDataSetDef, NamedVariableListDef, 10, 1, 0xC00, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMURequireCIDConfig, EnDis, 1, 1, 0x1, 0x1A000, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUCommsPort, CommsPort, 1, 1, 0x1, 0x1F098, 0x0, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUIPVersion, IpVersion, 1, 1, 0x1, 0x1A000, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUIPAddrPDC, IpAddr, 8, 1, 0x4, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUIP6AddrPDC, Ipv6Addr, 8, 1, 0x10, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUMACAddrPDC, Str, 9, 1, 0xD, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUOutputPort, UI16, 3, 1, 0x2, 0x1A000, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUControlPort, UI16, 3, 1, 0x2, 0x1A000, 0x1, 0xFFFE, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUConfigVersion, UI16, 3, 1, 0x2, 0x18000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUVLANAppId, UI16, 3, 1, 0x2, 0x1A000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUVLANVID, UI16, 3, 1, 0x2, 0x1A000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUVLANPriority, UI8, 1, 1, 0x1, 0x1A000, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUSmvOpts, UI16, 3, 1, 0x2, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUConfRev, UI32, 5, 1, 0x4, 0x2000, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUNumberOfASDU, UI8, 1, 1, 0x1, 0x1A000, 0x1, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUQuality, PMUQuality, 0, 1, 0x1, 0x58001, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMUStatus, PMUStatus, 0, 1, 0x1, 0x58001, 0x0, 0x4, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMU_Ua, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.00390625, 0.001, V ) \ DBSCHEMA_DEFN( PMU_Ub, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.00390625, 0.001, V ) \ DBSCHEMA_DEFN( PMU_Uc, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.00390625, 0.001, V ) \ DBSCHEMA_DEFN( PMU_Ur, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.00390625, 0.001, V ) \ DBSCHEMA_DEFN( PMU_Us, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.00390625, 0.001, V ) \ DBSCHEMA_DEFN( PMU_Ut, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.00390625, 0.001, V ) \ DBSCHEMA_DEFN( PMU_Ia, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0004882813, 0.001, A ) \ DBSCHEMA_DEFN( PMU_Ib, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0004882813, 0.001, A ) \ DBSCHEMA_DEFN( PMU_Ic, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0004882813, 0.001, A ) \ DBSCHEMA_DEFN( PMU_A_Ua, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Ub, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Uc, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Ur, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Us, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Ut, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Ia, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Ib, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_A_Ic, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( PMU_F_ABC, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.001, 0.001, Hz ) \ DBSCHEMA_DEFN( PMU_F_RST, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.001, 0.001, Hz ) \ DBSCHEMA_DEFN( PMU_ROCOF_ABC, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.001, 0.001, HzPersec ) \ DBSCHEMA_DEFN( PMU_ROCOF_RST, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.001, 0.001, HzPersec ) \ DBSCHEMA_DEFN( PMULoadCIDConfigStatus, PMUConfigStatus, 0, 0, 0x1, 0x1A001, 0xFF, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMU_Timestamp, TimeStamp, 8, 0, 0x8, 0x10000005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBL_IPAddr, IpAddr, 8, 1, 0x4, 0x7080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBL_PortNumber, UI16, 3, 1, 0x2, 0x1F080, 0x1, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigRTCTimeNotSync, Signal, 8, 1, 0xA, 0x4041401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PMU_IEEE_Stat, UI16, 3, 1, 0x2, 0x2005, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBL_IPAddrV6, Ipv6Addr, 8, 1, 0x10, 0x7080, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( HTTPServerPort, UI16, 3, 1, 0x2, 0x18000, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( USBL_IpVersion, IpVersion, 1, 1, 0x1, 0x1F080, 0x1, 0x3, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCorruptedPartition, Signal, 8, 1, 0xA, 0x4041401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigRLM20UpgradeFailure, Signal, 8, 1, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUbootConsoleActive, Signal, 8, 1, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigRlm20nor2backupReqd, Signal, 8, 1, 0xA, 0x4000400, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LineSupplyRange, LineSupplyRange, 1, 0, 0x1, 0x1E001, 0x0, 0x20, 1, 1, NULL ) \ DBSCHEMA_DEFN( PscDcCalibCoef, UI32, 5, 0, 0x4, 0x1A001, 0x0, 0x989680, 0.000001, 0.000001, NULL ) \ DBSCHEMA_DEFN( SigMalfAnalogBoard, Signal, 8, 0, 0xA, 0x4003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TmLok, TimeSyncUnlockedTime, 0, 0, 0x1, 0x18001, 0x0, 0x5, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigACOMakeBeforeBreak, Signal, 8, 0, 0xA, 0x4027418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigGpsEnable, Signal, 8, 1, 0xA, 0x34007418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigWlanEnable, Signal, 8, 1, 0xA, 0x34007418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigMobileNetworkEnable, Signal, 8, 1, 0xA, 0x34007418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetwork_SerialPort1, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetwork_SerialPort2, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetwork_SerialPort3, Str, 9, 0, 0x29, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CanSimSetTimeStamp, TimeStamp, 8, 1, 0x8, 0x2007081, 0x0, 0x0, 1, 1, us ) \ DBSCHEMA_DEFN( PMU_In, UI32, 5, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0004882813, 0.001, A ) \ DBSCHEMA_DEFN( PMU_A_In, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.001, deg ) \ DBSCHEMA_DEFN( FpgaSyncControllerDelay, UI32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( FpgaSyncSensorDelay, UI32, 5, 1, 0x4, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CbfBackupTripMode, OnOff, 1, 1, 0x1, 0x7003F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( CbfPhaseCurrent, UI32, 5, 1, 0x4, 0x3F098, 0x1, 0x320, 1, 1, A ) \ DBSCHEMA_DEFN( CbfEfCurrent, UI32, 5, 1, 0x4, 0x3F098, 0x1, 0x320, 1, 1, A ) \ DBSCHEMA_DEFN( CbfCurrentCheckMode, CbfCurrentMode, 1, 1, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CbfFailBackupTrip, CBF_backup_trip, 1, 1, 0x1, 0x3F098, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( CbfBackupTripTime, UI32, 5, 1, 0x4, 0x3F098, 0x96, 0xEA60, 0.001, 0.01, ms ) \ DBSCHEMA_DEFN( SigCbfBackupTripBlocked, Signal, 8, 0, 0xA, 0x74001439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupCbfDefault, Signal, 8, 1, 0xA, 0x54001421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupCbfBackupTrip, Signal, 8, 0, 0xA, 0x54001439, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCBFMalfunction, Signal, 8, 0, 0xA, 0x54040419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCBFMalfCurrent, Signal, 8, 1, 0xA, 0x4000400, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCBFBackupTrip, Signal, 8, 0, 0xA, 0x54040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCBFMalf, Signal, 8, 0, 0xA, 0x6000419, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWPriority0, CommsPort, 1, 1, 0x1, 0x801F098, 0xC, 0xC, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWPriority1, CommsPort, 1, 1, 0x1, 0x801F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWPriority2, CommsPort, 1, 1, 0x1, 0x801F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWPriority3, CommsPort, 1, 1, 0x1, 0x801F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWStatus0, ActiveInactive, 0, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWStatus1, ActiveInactive, 0, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWStatus2, ActiveInactive, 0, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( DefGWStatus3, ActiveInactive, 0, 1, 0x1, 0x19018, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCbfBackupTripMode, Signal, 8, 0, 0xA, 0x4020418, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( UseCentralCredentialServer, EnDis, 1, 1, 0x1, 0x3005F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserCredentialOperMode, CredentialOperationMode, 1, 1, 0x1, 0x3004F019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CredentialOperName, Str, 9, 1, 0x40, 0x40019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CredentialOperFirstPassword, Str, 9, 1, 0x40, 0x40019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CredentialOperSecondPassword, Str, 9, 1, 0x40, 0x40019, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CredentialOperRoleBitMap, RoleBitMap, 5, 1, 0x4, 0x18019, 0x0, 0x7FFFFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( SaveUserCredentialOper, UI8, 1, 1, 0x1, 0x5F019, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( UserAccessState, UserCredentialResultStatus, 1, 1, 0x1, 0x10047081, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCOnboardA, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigUSBOCOnboardB, Signal, 8, 0, 0xA, 0x4001401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGConnectionEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGAllowControls, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGConnectionName, Str, 9, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGChannelPort, CommsPort, 1, 0, 0x1, 0x1F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGIpVersion, IpVersion, 1, 0, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGSlaveTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGConstraints, ConstraintT10BRG, 1, 0, 0x1, 0x1F098, 0x1, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGOriginatorAddress, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGMasterTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGStatusOriginatorAddress, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGStatusMasterTCPPort, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G1_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGConnectionEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGAllowControls, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGConnectionName, Str, 9, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGChannelPort, CommsPort, 1, 0, 0x1, 0x1F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGIpVersion, IpVersion, 1, 0, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGSlaveTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGConstraints, ConstraintT10BRG, 1, 0, 0x1, 0x1F098, 0x1, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGOriginatorAddress, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGMasterTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGStatusOriginatorAddress, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGStatusMasterTCPPort, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G2_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGConnectionEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGAllowControls, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGConnectionName, Str, 9, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGChannelPort, CommsPort, 1, 0, 0x1, 0x1F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGIpVersion, IpVersion, 1, 0, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGSlaveTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGConstraints, ConstraintT10BRG, 1, 0, 0x1, 0x1F098, 0x1, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGOriginatorAddress, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGMasterTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGStatusOriginatorAddress, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGStatusMasterTCPPort, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G3_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGConnectionEnable, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGAllowControls, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGConnectionName, Str, 9, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGChannelPort, CommsPort, 1, 0, 0x1, 0x1F098, 0x1, 0xE, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGIpVersion, IpVersion, 1, 0, 0x1, 0x1F098, 0x1, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGSlaveTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGConstraints, ConstraintT10BRG, 1, 0, 0x1, 0x1F098, 0x1, 0x7, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGOriginatorAddress, UI8, 1, 0, 0x1, 0x1F098, 0x1, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGMasterTCPPort, UI16, 3, 0, 0x2, 0x1F098, 0x400, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x7098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, 1, 0, 0x1, 0x18001, 0x0, 0x2, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGStatusOriginatorAddress, UI8, 1, 0, 0x1, 0x18001, 0x0, 0xFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGStatusMasterTCPPort, UI16, 3, 0, 0x2, 0x18001, 0x0, 0xFFFF, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, 8, 0, 0x4, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( G4_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, 8, 0, 0x10, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BEnableGroup1, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BEnableGroup2, EnDis, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinUpdateHMI1, Str, 9, 0, 0x5, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinUpdateHMI2, Str, 9, 0, 0x5, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukUpdateHMI1, Str, 9, 0, 0x9, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukUpdateHMI2, Str, 9, 0, 0x9, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinStore, Str, 9, 0, 0x5, 0x3098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukStore, Str, 9, 0, 0x9, 0x3099, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinUpdateCMS, Str, 9, 0, 0x5, 0x18, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukUpdateCMS, Str, 9, 0, 0x9, 0x19, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinResultHMI, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1E, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukResultHMI, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1E, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinResultCMS, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1E, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukResultCMS, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1E, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigNmSimError, Signal, 8, 0, 0xA, 0x4003421, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BConnectionMethodGroup1, ConnectionMethodT10BRG, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( ScadaT10BConnectionMethodGroup2, ConnectionMethodT10BRG, 1, 0, 0x1, 0x1F098, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPDOPOn, Signal, 8, 1, 0xA, 0x76027498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigCtrlPDUPOn, Signal, 8, 1, 0xA, 0x74067498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupPDOP, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPickupPDUP, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPDOP, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigOpenPDUP, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmPDOP, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigAlarmPDUP, Signal, 8, 0, 0xA, 0x54003401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrPDOPTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( CntrPDUPTrips, I32, 4, 0, 0x4, 0x10008018, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( TripMaxPDOP, UI32, 5, 0, 0x4, 0x10009005, 0x0, 0x0, 1, 1, kVA ) \ DBSCHEMA_DEFN( TripAnglePDOP, I32, 4, 0, 0x4, 0x10001005, 0x0, 0x0, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( TripMinPDUP, UI32, 5, 0, 0x4, 0x10001005, 0x0, 0x0, 1, 1, kVA ) \ DBSCHEMA_DEFN( TripAnglePDUP, I32, 4, 0, 0x4, 0x10001005, 0x0, 0x0, 0.01, 0.1, deg ) \ DBSCHEMA_DEFN( MeasAngle3phase, I32, 4, 0, 0x4, 0x10000005, 0x0, 0x0, 0.0006866455, 0.1, deg ) \ DBSCHEMA_DEFN( PinLastWriteStatus, UI8, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukLastWriteStatus, UI8, 1, 0, 0x1, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinLastWriteString, Str, 9, 0, 0x5, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukLastWriteString, Str, 9, 0, 0x9, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( LinkStatusLAN, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( LinkStatusLAN2, UI8, 1, 0, 0x1, 0x18001, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSIMCardError, Signal, 8, 0, 0xA, 0x14040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSIMCardPINReqd, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSIMCardPINError, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSIMCardBlockedByPIN, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSIMCardPUKError, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigSIMCardBlockedPerm, Signal, 8, 0, 0xA, 0x4040401, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSServiceProvider2, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSServiceProvider3, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSServiceProvider4, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSServiceProvider5, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSServiceProvider6, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSServiceProvider7, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSServiceProvider8, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSUserName2, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSUserName3, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSUserName4, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSUserName5, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSUserName6, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSUserName7, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSUserName8, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSPassWord2, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSPassWord3, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSPassWord4, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSPassWord5, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSPassWord6, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSPassWord7, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSPassWord8, Str, 9, 1, 0x21, 0x8007098, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( GPRSDialingAPN, UI8, 1, 1, 0x1, 0x801F098, 0x0, 0x8, 1, 1, NULL ) \ DBSCHEMA_DEFN( SmpTicks2, SmpTick, 8, 0, 0x100, 0x1, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPMURetransmitEnable, Signal, 8, 1, 0xA, 0x4007498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( SigPMURetransmitLogEnable, Signal, 8, 1, 0xA, 0x4007498, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( MobileNetworkSIMCardID, Str, 9, 0, 0x15, 0x0, 0x0, 0x0, 1, 1, NULL ) \ DBSCHEMA_DEFN( PinUpdated, ChangedLog, 0, 0, 0x1, 0x1B081, 0x0, 0x1, 1, 1, NULL ) \ DBSCHEMA_DEFN( PukUpdated, ChangedLog, 0, 0, 0x1, 0x1B081, 0x0, 0x1, 1, 1, NULL ) /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBSCHEMADEFS_H_ <file_sep># lws minimal http server with generic-sessions ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-http-server-tls [2018/03/20 13:23:13:0131] USER: LWS minimal http server TLS | visit https://localhost:7681 [2018/03/20 13:23:13:0142] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/03/20 13:23:13:0142] NOTICE: Using SSL mode [2018/03/20 13:23:13:0146] NOTICE: SSL ECDH curve 'prime256v1' [2018/03/20 13:23:13:0146] NOTICE: HTTP2 / ALPN enabled [2018/03/20 13:23:13:0195] NOTICE: lws_tls_client_create_vhost_context: doing cert filepath localhost-100y.cert [2018/03/20 13:23:13:0195] NOTICE: Loaded client cert localhost-100y.cert [2018/03/20 13:23:13:0195] NOTICE: lws_tls_client_create_vhost_context: doing private key filepath [2018/03/20 13:23:13:0196] NOTICE: Loaded client cert private key localhost-100y.key [2018/03/20 13:23:13:0196] NOTICE: created client ssl context for default [2018/03/20 13:23:14:0207] NOTICE: vhost default: cert expiry: 730459d ``` <file_sep># lws minimal http Server Side Events + ringbuffer This demonstates serving both normal content and content over Server Side Events, where all clients see the same data via a ringbuffer. Two separate threads generate content into the ringbuffer at random intervals. ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-http-server-sse [2018/04/20 06:09:56:9974] USER: LWS minimal http Server-Side Events + ring | visit http://localhost:7681 [2018/04/20 06:09:57:0148] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off ``` Visit http://localhost:7681, which connects back to the server using SSE and displays the incoming data. Connecting from multiple browsers shows the same content from the server ringbuffer. <file_sep># Lws Crypto Apis ## Overview ![lws crypto overview](/doc-assets/lws-crypto-overview.svg) Lws provides a "generic" crypto layer on top of both OpenSSL and compatible tls library, and mbedtls. Using this layer, your code can work without any changes on both types of tls library crypto backends... it's as simple as rebuilding lws with `-DLWS_WITH_MBEDTLS=0` or `=1` at cmake. The generic layer can be used directly (as in, eg, the sshd plugin), or via another layer on top, which processes JOSE JSON objects using JWS (JSON Web Signatures), JWK (JSON Web Keys), and JWE (JSON Web Encryption). The `JW` apis use the generic apis (`lws_genrsa_`, etc) to get the crypto tasks done, so anything they can do you can also get done using the generic apis. The main difference is that with the generic apis, you must instantiate the correct types and use type-specfic apis. With the `JW` apis, there is only one interface for all operations, with the details hidden in the api and controlled by the JSON objects. Because of this, the `JW` apis are often preferred because they give you "crypto agility" cheaply... to change your crypto to another supported algorithm once it's working, you literally just change your JSON defining the keys and JWE or JWS algorithm. (It's up to you to define your policy for which combinations are acceptable by querying the parsed JW structs). ## Crypto supported in generic layer ### Generic Hash - SHA1 - SHA256 - SHA384 - SHA512 ### Generic HMAC - SHA256 - SHA384 - SHA512 ### Generic AES - CBC - CFB128 - CFB8 - CTR - ECB - OFB - XTS - GCM - KW (Key Wrap) ### Generic RSA - PKCS 1.5 - OAEP / PSS ### Generic EC - ECDH - ECDSA - P256 / P384 / P521 (sic) curves ## Using the generic layer All the necessary includes are part of `libwebsockets.h`. Enable `-DLWS_WITH_GENCRYPTO=1` at cmake. |api|header|Functionality| |---|---|---| |genhash|[./include/libwebsockets/lws-genhash.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-genhash.h)|Provides SHA1 + SHA2 hashes and hmac| |genrsa|[./include/libwebsockets/lws-genrsa.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-genrsa.h)|Provides RSA encryption, decryption, signing, verification, key generation and creation| |genaes|[./include/libwebsockets/lws-genaes.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-genaes.h)|Provides AES in all common variants for encryption and decryption| |genec|[./include/libwebsockets/lws-genec.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-genec.h)|Provides Elliptic Curve for encryption, decryption, signing, verification, key generation and creation| |x509|[./include/libwebsockets/lws-x509.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-x509.h)|Apis for X.509 Certificate loading, parsing, and stack verification, plus JWK key extraction from PEM X.509 certificate / private key| Unit tests for these apis, which serve as usage examples, can be found in [./minimal-examples/api-tests/api-test-gencrypto](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-tests/api-test-gencrypto) ### Keys in the generic layer The necessary types and defines are brought in by `libwebsockets.h`. Keys are represented only by an array of `struct lws_jwk_elements`... the length of the array is defined by the cipher... it's one of |key elements count|definition| |---|---| |`LWS_COUNT_OCT_KEY_ELEMENTS`|1| |`LWS_COUNT_RSA_KEY_ELEMENTS`|8| |`LWS_COUNT_EC_KEY_ELEMENTS`|4| |`LWS_COUNT_AES_KEY_ELEMENTS`|1| `struct lws_jwk_elements` is a simple pointer / length combination used to store arbitrary octets that make up the key element's binary representation. ## Using the JOSE layer The JOSE (JWK / JWS / JWE) stuff is a crypto-agile JSON-based layer that uses the gencrypto support underneath. "Crypto Agility" means the JSON structs include information about the algorithms and ciphers used in that particular object, making it easy to upgrade system crypto strength or cycle keys over time while supporting a transitional period where the old and new keys or algorithms + ciphers are also valid. Uniquely lws generic support means the JOSE stuff also has "tls library agility", code written to the lws generic or JOSE apis is completely unchanged even if the underlying tls library changes between OpenSSL and mbedtls, meaning sharing code between server and client sides is painless. All the necessary includes are part of `libwebsockets.h`. Enable `-DLWS_WITH_JOSE=1` at CMake. |api|header|Functionality| |---|---|---| |JOSE|[./include/libwebsockets/lws-jose.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-jose.h)|Provides crypto agility for JWS / JWE| |JWE|[./include/libwebsockets/lws-jwe.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-jwe.h)|Provides Encryption and Decryption services for RFC7516 JWE JSON| |JWS|[./include/libwebsockets/lws-jws.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-jws.h)|Provides signature and verifcation services for RFC7515 JWS JSON| |JWK|[./include/libwebsockets/lws-jwk.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-jwk.h)|Provides signature and verifcation services for RFC7517 JWK JSON, both "keys" arrays and singletons| Minimal examples are provided in the form of commandline tools for JWK / JWS / JWE / x509 handling: - [JWK minimal example](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/crypto/minimal-crypto-jwk) - [JWS minimal example](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/crypto/minimal-crypto-jws) - [JWE minimal example](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/crypto/minimal-crypto-jwe) - [X509 minimal example](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/crypto/minimal-crypto-x509) Unit tests for these apis, which serve as usage examples, can be found in [./minimal-examples/api-tests/api-test-jose](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-tests/api-test-jose) ## Crypto supported in the JOSE layer The JOSE RFCs define specific short names for different algorithms ### JWS |JSOE name|Hash|Signature| ---|---|--- |RS256, RS384, RS512|SHA256/384/512|RSA |ES256, ES384, ES521|SHA256/384/512|EC ### JWE |Key Encryption|Payload authentication + crypt| |---|---| |`RSAES-PKCS1-v1.5` 2048b & 4096b|`AES_128_CBC_HMAC_SHA_256`| |`RSAES-PKCS1-v1.5` 2048b|`AES_192_CBC_HMAC_SHA_384`| |`RSAES-PKCS1-v1.5` 2048b|`AES_256_CBC_HMAC_SHA_512`| |`RSAES-OAEP`|`AES_256_GCM`| |`AES128KW`, `AES192KW`, `AES256KW`|`AES_128_CBC_HMAC_SHA_256`| |`AES128KW`, `AES192KW`, `AES256KW`|`AES_192_CBC_HMAC_SHA_384`| |`AES128KW`, `AES192KW`, `AES256KW`|`AES_256_CBC_HMAC_SHA_512`| |`ECDH-ES` (P-256/384/521 key)|`AES_128/192/256_GCM`| |`ECDH-ES+A128/192/256KW` (P-256/384/521 key)|`AES_128/192/256_GCM`| ### Keys in the JOSE layer Keys in the JOSE layer use a `struct lws_jwk`, this contains two arrays of `struct lws_jwk_elements` sized for the worst case (currently RSA). One array contains the key elements as described for the generic case, and the other contains various nonencrypted key metadata taken from JWK JSON. |metadata index|function| |---|---| |`JWK_META_KTY`|Key type, eg, "EC"| |`JWK_META_KID`|Arbitrary ID string| |`JWK_META_USE`|What the public key may be used to validate, "enc" or "sig"| |`JWK_META_KEY_OPS`|Which operations the key is authorized for, eg, "encrypt"| |`JWK_META_X5C`|Optional X.509 cert version of the key| |`JWK_META_ALG`|Optional overall crypto algorithm the key is intended for use with| `lws_jwk_destroy()` should be called when the jwk is going out of scope... this takes care to zero down any key element data in the jwk. <file_sep>#include <libwebsockets.h> /* if you need > 2GB trie files */ //typedef off_t jg2_file_offset; typedef uint32_t jg2_file_offset; struct lws_fts_file { int fd; jg2_file_offset root, flen, filepath_table; int max_direct_hits; int max_completion_hits; int filepaths; }; #define TRIE_FILE_HDR_SIZE 20 #define MAX_VLI 5 #define LWS_FTS_LINES_PER_CHUNK 200 int rq32(unsigned char *b, uint32_t *d); <file_sep>/** @file noja_webserver.h * Main header file for the implementation of REL20 Webserver Library * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _NOJA_WEBSERVER_H #define _NOJA_WEBSERVER_H #include "noja_webserver_type.h" #include "noja_webserver_cfg.h" #include "noja_webserver_ver.h" #if defined(QT_NWS_LIBRARY_SHARED) #include <QtCore/qglobal.h> #if defined(QT_NWS_LIBRARY) /* as per QT doc, this must be added to the declarations of symbols used when compiling a shared library. */ #define QT_NWS_LIBRARY_EXPORT Q_DECL_EXPORT #else /* as per QT doc, this must be added to the declarations of symbols used when compiling a client that uses the shared library. */ #define QT_NWS_LIBRARY_EXPORT Q_DECL_IMPORT #endif #else #define QT_NWS_LIBRARY_EXPORT #endif /** @ingroup group_main_apis * @brief Call to initialise the Webserver module. * * This API will initialise the Webserver module. When called, the Webserver will parse the configuration file * present in the mount directory. On successful configuration parsing, the Webserver will build the website based * from the configuration (e.g. setup all URLs, redirects). Calling this function while the Webserver is active will * result to error and may terminate the Webserver process. * * @param[in] port Specify the port the HTTP protocol will use. Normal value for this parameter are 80, 443 (preferred), and 8080 * Make sure the port specified in not reserved. * @param[in] serviceInterval Specify the webserver process service interval. This is the minimum amount of time (in millisecond) * the Webserver process will be blocked to allow the processes with equal or lower priority CPU time. * @param[in] pingPongInterval Specify the amount of time (in seconds) the Webserver will wait for the pong reply * to its ping request before terminating the connection. For details about the ping-pong frames, refer to https://tools.ietf.org/html/rfc6455. * @param[in] mount Specify the path to the mount directory * @param[out] context Handle to the context of the current webserver intance. * @return NwsError_MountNotExists the specified mount directory does not exists * @return NwsError_NoWebsitePackage No website package is installed in the mount directory * @return NwsError_WebsitePackageVersion The current website package is not supported * @return NwsError_ConfigurationFile The configuration file failed to load due to error * @return NwsError_NoConfigurationFile Specified configuration file does not exists. * @return NwsError_OneOrMoreFileMissing One or more referenced file in the config is not found in the package * @return NwsError_Port The specified port is invalid or reserved * @return NwsError_SSLCertificate Unable to get the SSL certificate and private key for establishing secured connection * @return NwsError_Ng General error occured */ QT_NWS_LIBRARY_EXPORT NwsErrors nwsInitialise(NwsHttpPort port, NwsTimeIntervalMS serviceInterval, NwsTimeIntervalS pingPongInterval, const char* mount, NwsContext *context); /** @ingroup group_main_apis * @brief Call to install new website package and configuration. * * This API will install new configuration and website package from the path specified in the parameter. This function will confirm the * configuration in the path specified follows the current configuraiton schema. The function will also confirm if the current website * package version is supported. Following these checks, this functions will check if the website package is complete based from the * configuration file included. * * @param[in] website Specify the path of the website package to install. * @return NwsError_Ok if no error occured * @return NwsError_NoWebsitePackage No website package to install or the website package is invalid * @return NwsError_WebsitePackageVersion The current website package is not supported * @return NwsError_WebsitePackageSignature Website package failed the signature verification and can't be trusted * @return NwsError_ConfigurationFile The configuration file failed to load due to error * @return NwsError_Ng General error occured */ QT_NWS_LIBRARY_EXPORT NwsErrors nwsInstallWebsite(const char* website); /** @ingroup group_main_apis * @brief Call to allow the Webserver to process and reply to requests * * Webserver process should call this function to allow the Webserver to handle new and pending requests. This function should * be called after a successful nwsInitialise call. Webserver will become active on initial call to this function. Call to this * function is blocking. If this function failed, the process should call the nwsStop function, calling this function again after * the previous call failed may result to unexpected behaviour. * * @param[in] ctx Context handle for the webserver to process. * @return NwsError_Ok if no error occured * @return NwsError_WebserverActive Another instance of the webserver is already running * @return NwsError_WebserverNotInitialise Webserver is currently not initialised * @return NwsError_Ng error occurred while the webserver is processing the requests */ QT_NWS_LIBRARY_EXPORT NwsErrors nwsProcess(NwsContext ctx); /** @ingroup group_main_apis * @brief Call to terminate the Webserver service * * This API will stop the Webserver service. All current webserver sessions will terminate and may result to HTTP status 500 or 503 * in the client browser. When Webserver is stopped, the Webserver needs to intialise again before calling the nwsProcess function. * * @param[in] ctx Pointer to the context handle for the webserver to stop. * @return NwsError_Ok if no error occured * @return NwsError_WebserverNotActive There is no webserver to stop * @return NwsError_Ng error occurred while trying to stop the webserver */ QT_NWS_LIBRARY_EXPORT NwsErrors nwsStop(NwsContext *ctx); #endif <file_sep>#---------------------------------------------------------------- # Generated CMake target import file for configuration "Debug". #---------------------------------------------------------------- # Commands may need to know the format version. set(CMAKE_IMPORT_FILE_VERSION 1) # Import target "cjson" for configuration "Debug" set_property(TARGET cjson APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) set_target_properties(cjson PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG "m" IMPORTED_LOCATION_DEBUG "/usr/local/lib/libcjson.1.7.10.dylib" IMPORTED_SONAME_DEBUG "libcjson.1.dylib" ) list(APPEND _IMPORT_CHECK_TARGETS cjson ) list(APPEND _IMPORT_CHECK_FILES_FOR_cjson "/usr/local/lib/libcjson.1.7.10.dylib" ) # Commands beyond this point should not need to know the version. set(CMAKE_IMPORT_FILE_VERSION) <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import binascii import pytest from cryptography.exceptions import InvalidSignature from cryptography.hazmat.backends.interfaces import DSABackend from cryptography.hazmat.primitives import hashes, serialization _DIGESTS = { "SHA-1": hashes.SHA1(), "SHA-224": hashes.SHA224(), "SHA-256": hashes.SHA256(), } @pytest.mark.requires_backend_interface(interface=DSABackend) @pytest.mark.wycheproof_tests( "dsa_test.json", ) def test_dsa_signature(backend, wycheproof): key = serialization.load_der_public_key( binascii.unhexlify(wycheproof.testgroup["keyDer"]), backend ) digest = _DIGESTS[wycheproof.testgroup["sha"]] if ( wycheproof.valid or ( wycheproof.acceptable and not wycheproof.has_flag("NoLeadingZero") ) ): key.verify( binascii.unhexlify(wycheproof.testcase["sig"]), binascii.unhexlify(wycheproof.testcase["msg"]), digest, ) else: with pytest.raises(InvalidSignature): key.verify( binascii.unhexlify(wycheproof.testcase["sig"]), binascii.unhexlify(wycheproof.testcase["msg"]), digest, ) <file_sep>|name|demonstrates| ---|--- minimal-http-client-certinfo|Shows how to gain detailed information on the peer certificate minimal-http-client-custom-headers|Shows how to send and receive custom headers (h1 only) minimal-http-client-hugeurl|Sends a > 2.5KB URL to warmcat.com minimal-http-client-multi|Connects to and reads https://warmcat.com, 8 times concurrently minimal-http-client-post|POSTs a form containing an uploaded file and a form variable, and captures the response minimal-http-client|Connects to and reads https://warmcat.com <file_sep># lws minimal ws broker ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-ws-broker [2018/03/15 12:23:12:1559] USER: LWS minimal ws broker | visit http://localhost:7681 [2018/03/15 12:23:12:1560] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off ``` Visit http://localhost:7681 on multiple browser windows The page opens a subscribe mode ws connection back to the broker, and a publisher mode ws connection back to the broker. The textarea shows the data from the subscription connection. If you type text is in the text box and press send, the text is passed to the broker on the publisher ws connection and sent to all subscribers. <file_sep>/* * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ #include <stdio.h> #include <time.h> #include "internal/cryptlib.h" #include "bn_local.h" /* * The quick sieve algorithm approach to weeding out primes is Philip * Zimmermann's, as implemented in PGP. I have had a read of his comments * and implemented my own version. */ #include "bn_prime.h" static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1, const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont); static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods); static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx); #define square(x) ((BN_ULONG)(x) * (BN_ULONG)(x)) int BN_GENCB_call(BN_GENCB *cb, int a, int b) { /* No callback means continue */ if (!cb) return 1; switch (cb->ver) { case 1: /* Deprecated-style callbacks */ if (!cb->cb.cb_1) return 1; cb->cb.cb_1(a, b, cb->arg); return 1; case 2: /* New-style callbacks */ return cb->cb.cb_2(a, b, cb); default: break; } /* Unrecognised callback type */ return 0; } int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb) { BIGNUM *t; int found = 0; int i, j, c1 = 0; BN_CTX *ctx = NULL; prime_t *mods = NULL; int checks = BN_prime_checks_for_size(bits); if (bits < 2) { /* There are no prime numbers this small. */ BNerr(BN_F_BN_GENERATE_PRIME_EX, BN_R_BITS_TOO_SMALL); return 0; } else if (add == NULL && safe && bits < 6 && bits != 3) { /* * The smallest safe prime (7) is three bits. * But the following two safe primes with less than 6 bits (11, 23) * are unreachable for BN_rand with BN_RAND_TOP_TWO. */ BNerr(BN_F_BN_GENERATE_PRIME_EX, BN_R_BITS_TOO_SMALL); return 0; } mods = OPENSSL_zalloc(sizeof(*mods) * NUMPRIMES); if (mods == NULL) goto err; ctx = BN_CTX_new(); if (ctx == NULL) goto err; BN_CTX_start(ctx); t = BN_CTX_get(ctx); if (t == NULL) goto err; loop: /* make a random number and set the top and bottom bits */ if (add == NULL) { if (!probable_prime(ret, bits, safe, mods)) goto err; } else { if (!probable_prime_dh(ret, bits, safe, mods, add, rem, ctx)) goto err; } if (!BN_GENCB_call(cb, 0, c1++)) /* aborted */ goto err; if (!safe) { i = BN_is_prime_fasttest_ex(ret, checks, ctx, 0, cb); if (i == -1) goto err; if (i == 0) goto loop; } else { /* * for "safe prime" generation, check that (p-1)/2 is prime. Since a * prime is odd, We just need to divide by 2 */ if (!BN_rshift1(t, ret)) goto err; for (i = 0; i < checks; i++) { j = BN_is_prime_fasttest_ex(ret, 1, ctx, 0, cb); if (j == -1) goto err; if (j == 0) goto loop; j = BN_is_prime_fasttest_ex(t, 1, ctx, 0, cb); if (j == -1) goto err; if (j == 0) goto loop; if (!BN_GENCB_call(cb, 2, c1 - 1)) goto err; /* We have a safe prime test pass */ } } /* we have a prime :-) */ found = 1; err: OPENSSL_free(mods); BN_CTX_end(ctx); BN_CTX_free(ctx); bn_check_top(ret); return found; } int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb) { return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb); } int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, int do_trial_division, BN_GENCB *cb) { int i, j, ret = -1; int k; BN_CTX *ctx = NULL; BIGNUM *A1, *A1_odd, *A3, *check; /* taken from ctx */ BN_MONT_CTX *mont = NULL; /* Take care of the really small primes 2 & 3 */ if (BN_is_word(a, 2) || BN_is_word(a, 3)) return 1; /* Check odd and bigger than 1 */ if (!BN_is_odd(a) || BN_cmp(a, BN_value_one()) <= 0) return 0; if (checks == BN_prime_checks) checks = BN_prime_checks_for_size(BN_num_bits(a)); /* first look for small factors */ if (do_trial_division) { for (i = 1; i < NUMPRIMES; i++) { BN_ULONG mod = BN_mod_word(a, primes[i]); if (mod == (BN_ULONG)-1) goto err; if (mod == 0) return BN_is_word(a, primes[i]); } if (!BN_GENCB_call(cb, 1, -1)) goto err; } if (ctx_passed != NULL) ctx = ctx_passed; else if ((ctx = BN_CTX_new()) == NULL) goto err; BN_CTX_start(ctx); A1 = BN_CTX_get(ctx); A3 = BN_CTX_get(ctx); A1_odd = BN_CTX_get(ctx); check = BN_CTX_get(ctx); if (check == NULL) goto err; /* compute A1 := a - 1 */ if (!BN_copy(A1, a) || !BN_sub_word(A1, 1)) goto err; /* compute A3 := a - 3 */ if (!BN_copy(A3, a) || !BN_sub_word(A3, 3)) goto err; /* write A1 as A1_odd * 2^k */ k = 1; while (!BN_is_bit_set(A1, k)) k++; if (!BN_rshift(A1_odd, A1, k)) goto err; /* Montgomery setup for computations mod a */ mont = BN_MONT_CTX_new(); if (mont == NULL) goto err; if (!BN_MONT_CTX_set(mont, a, ctx)) goto err; for (i = 0; i < checks; i++) { /* 1 < check < a-1 */ if (!BN_priv_rand_range(check, A3) || !BN_add_word(check, 2)) goto err; j = witness(check, a, A1, A1_odd, k, ctx, mont); if (j == -1) goto err; if (j) { ret = 0; goto err; } if (!BN_GENCB_call(cb, 1, i)) goto err; } ret = 1; err: if (ctx != NULL) { BN_CTX_end(ctx); if (ctx_passed == NULL) BN_CTX_free(ctx); } BN_MONT_CTX_free(mont); return ret; } static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1, const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont) { if (!BN_mod_exp_mont(w, w, a1_odd, a, ctx, mont)) /* w := w^a1_odd mod a */ return -1; if (BN_is_one(w)) return 0; /* probably prime */ if (BN_cmp(w, a1) == 0) return 0; /* w == -1 (mod a), 'a' is probably prime */ while (--k) { if (!BN_mod_mul(w, w, w, a, ctx)) /* w := w^2 mod a */ return -1; if (BN_is_one(w)) return 1; /* 'a' is composite, otherwise a previous 'w' * would have been == -1 (mod 'a') */ if (BN_cmp(w, a1) == 0) return 0; /* w == -1 (mod a), 'a' is probably prime */ } /* * If we get here, 'w' is the (a-1)/2-th power of the original 'w', and * it is neither -1 nor +1 -- so 'a' cannot be prime */ bn_check_top(w); return 1; } static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods) { int i; BN_ULONG delta; BN_ULONG maxdelta = BN_MASK2 - primes[NUMPRIMES - 1]; again: /* TODO: Not all primes are private */ if (!BN_priv_rand(rnd, bits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ODD)) return 0; if (safe && !BN_set_bit(rnd, 1)) return 0; /* we now have a random number 'rnd' to test. */ for (i = 1; i < NUMPRIMES; i++) { BN_ULONG mod = BN_mod_word(rnd, (BN_ULONG)primes[i]); if (mod == (BN_ULONG)-1) return 0; mods[i] = (prime_t) mod; } delta = 0; loop: for (i = 1; i < NUMPRIMES; i++) { /* * check that rnd is a prime and also that * gcd(rnd-1,primes) == 1 (except for 2) * do the second check only if we are interested in safe primes * in the case that the candidate prime is a single word then * we check only the primes up to sqrt(rnd) */ if (bits <= 31 && delta <= 0x7fffffff && square(primes[i]) > BN_get_word(rnd) + delta) break; if (safe ? (mods[i] + delta) % primes[i] <= 1 : (mods[i] + delta) % primes[i] == 0) { delta += safe ? 4 : 2; if (delta > maxdelta) goto again; goto loop; } } if (!BN_add_word(rnd, delta)) return 0; if (BN_num_bits(rnd) != bits) goto again; bn_check_top(rnd); return 1; } static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) { int i, ret = 0; BIGNUM *t1; BN_ULONG delta; BN_ULONG maxdelta = BN_MASK2 - primes[NUMPRIMES - 1]; BN_CTX_start(ctx); if ((t1 = BN_CTX_get(ctx)) == NULL) goto err; if (maxdelta > BN_MASK2 - BN_get_word(add)) maxdelta = BN_MASK2 - BN_get_word(add); again: if (!BN_rand(rnd, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD)) goto err; /* we need ((rnd-rem) % add) == 0 */ if (!BN_mod(t1, rnd, add, ctx)) goto err; if (!BN_sub(rnd, rnd, t1)) goto err; if (rem == NULL) { if (!BN_add_word(rnd, safe ? 3u : 1u)) goto err; } else { if (!BN_add(rnd, rnd, rem)) goto err; } if (BN_num_bits(rnd) < bits || BN_get_word(rnd) < (safe ? 5u : 3u)) { if (!BN_add(rnd, rnd, add)) goto err; } /* we now have a random number 'rnd' to test. */ for (i = 1; i < NUMPRIMES; i++) { BN_ULONG mod = BN_mod_word(rnd, (BN_ULONG)primes[i]); if (mod == (BN_ULONG)-1) goto err; mods[i] = (prime_t) mod; } delta = 0; loop: for (i = 1; i < NUMPRIMES; i++) { /* check that rnd is a prime */ if (bits <= 31 && delta <= 0x7fffffff && square(primes[i]) > BN_get_word(rnd) + delta) break; /* rnd mod p == 1 implies q = (rnd-1)/2 is divisible by p */ if (safe ? (mods[i] + delta) % primes[i] <= 1 : (mods[i] + delta) % primes[i] == 0) { delta += BN_get_word(add); if (delta > maxdelta) goto again; goto loop; } } if (!BN_add_word(rnd, delta)) goto err; ret = 1; err: BN_CTX_end(ctx); bn_check_top(rnd); return ret; } <file_sep>#!/bin/sh echo "----------------------------------------------------------------------------" echo "BUILD-SYSTEM was switched from automake to cmake" echo "----------------------------------------------------------------------------" echo "" echo "run cmake or cmake-gui to set up development environment"<file_sep># lws minimal http client gtk The application goes to https://warmcat.com and receives the page data, from inside a gtk app using gtk / glib main loop directly. ## build ``` $ cmake . && make ``` ## usage ``` $ t1_main: started [2020/02/08 18:04:07:6647] N: Loading client CA for verification ./warmcat.com.cer [2020/02/08 18:04:07:7744] U: Connected to 172.16.31.10, http response: 200 [2020/02/08 18:04:07:7762] U: RECEIVE_CLIENT_HTTP_READ: read 4087 [2020/02/08 18:04:07:7762] U: RECEIVE_CLIENT_HTTP_READ: read 4096 [2020/02/08 18:04:07:7928] U: RECEIVE_CLIENT_HTTP_READ: read 4087 [2020/02/08 18:04:07:7929] U: RECEIVE_CLIENT_HTTP_READ: read 4096 [2020/02/08 18:04:07:7956] U: RECEIVE_CLIENT_HTTP_READ: read 4087 [2020/02/08 18:04:07:7956] U: RECEIVE_CLIENT_HTTP_READ: read 4096 [2020/02/08 18:04:07:7956] U: RECEIVE_CLIENT_HTTP_READ: read 1971 [2020/02/08 18:04:07:7956] U: LWS_CALLBACK_COMPLETED_CLIENT_HTTP Hello World $ ``` <file_sep>/** @file noja_webserver_ver.h * Main header file for the implementation of REL20 Webserver Library * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _NOJA_WEBSERVER_VER_H #define _NOJA_WEBSERVER_VER_H /** Define major number of the current Webserver version */ #define NWS_VERSION_MAJOR 1 /** Define minor number of the current Webserver version */ #define NWS_VERSION_MINOR 0 /** Define the current Webserver version in string format*/ #define NWS_VERSION_STRING "1.0" #endif<file_sep>INCLUDE(CMakeForceCompiler) SET(CMAKE_SYSTEM_NAME Windows) SET(CMAKE_CXX_FLAGS "-m32") SET(CMAKE_C_COMPILER_ID "MSVC") # search for programs in the build host directories # for libraries and headers in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(BUILD_STATIC_TARGET true) <file_sep>## Unix Domain Sockets Reverse Proxy ### Introduction lws is able to use a mount to place reverse proxies into the URL space. These are particularly useful when using Unix Domain Sockets, basically files in the server filesystem, to communicate between lws and a separate server process and integrate the result into a coherent URL namespace on the lws side. It's also possible to proxy using tcp sockets. ![overview](../doc-assets/http-proxy-overview.svg) This has the advantage that the actual web server that forwards the data from the unix socket owner is in a different process than the server that serves on the unix socket. If it has problems, they do not affect the actual public-facing web server. The unix domain socket server may be in a completely different language than the web server. Compared to CGI, there are no forks to make a connection to the unix domain socket server. ### Mount origin format Unix Domain Sockets are effectively "files" in the server filesystem, and are defined by their filepath. The "server" side that is to be proxied opens the socket and listens on it, which creates a file in the server filesystem. The socket understands either http or https protocol. Lws can be told to act as a proxy for that at a mountpoint in the lws vhost url space. If your mount is expressed in C code, then the mount type is LWSMPRO_HTTP or LWSMPRO_HTTPS depending on the protocol the unix socket understands, and the origin address has the form `+/path/to/unix/socket:/path/inside/mount`. The + at the start indicates it is a local unix socket we are proxying, and the ':' acts as a delimiter for the socket path, since unlike other addresses the unix socket path can contain '/' itself. ### Connectivity rules and translations Onward proxy connections from lws to the Unix Domain Socket happen using http/1.1. That implies `transfer-encoding: chunking` in the case that the length of the output is not known beforehand. Lws takes care of stripping any chunking (which is illegal in h2) and translating between h1 and h2 header formats if the return connection is actually in http/2. The h1 onward proxy connection translates the following headers from the return connection, which may be h1 or h2: Header|Function ---|--- host|Which vhost etag|Information on any etag the client has cached for this URI if-modified-since|Information on the freshness of any etag the client has cached for this URI accept-language|Which languages the return path client prefers accept-encoding|Which compression encodings the client can accept cache-control|Information from the return path client about cache acceptability x-forwarded-for|The IP address of the return path client This implies that the proxied connection can - return 301 etc to say the return path client's etag is still valid - choose to compress using an acceptable content-encoding The following headers are translated from the headers replied via the onward connection (always h1) back to the return path (which may be h1 or h2) Header|Function ---|--- content-length|If present, an assertion of how much payload is expected content-type|The mimetype of the payload etag|The canonical etag for the content at this URI accept-language|This is returned to the return path client because there is no easy way for the return path client to know what it sent originally. It allows clientside selection of i18n. content-encoding|Any compression format on the payload (selected from what the client sent in accept-encoding, if anything) cache-control|The onward server's response about cacheability of its payload ### h1 -> h2 conversion Chunked encoding that may have been used on the outgoing proxy client connection is removed for h2 return connections (chunked encoding is illegal for h2). Headers are converted to all lower-case and hpack format for h2 return connections. Header and payload proxying is staged according to when the return connection (which may be an h2 child stream) is writable. ### Behaviour if unix domain socket server unavailable If the server that listens on the unix domain socket is down or being restarted, lws understands that it couldn't connect to it and returns a clean 503 response `HTTP_STATUS_SERVICE_UNAVAILABLE` along with a brief human-readable explanation. The generated status page produced will try to bring in a stylesheet `/error.css`. This allows you to produce a styled error pages with logos, graphics etc. See [this](https://libwebsockets.org/git/badrepo) for an example of what you can do with it. <file_sep># lws minimal MQTT client multi ## build ``` $ cmake . && make ``` ## usage The application goes to https://warmcat.com and receives the page data same as minimal http client. However it does it for 8 client connections concurrently. ## Commandline Options Option|Meaning ---|--- -c <conns>|Count of simultaneous connections (default 8) -s|Stagger the connections by 100ms, the last by 1s -p|Use stream binding <file_sep># lws api test lws_struct SQLITE Demonstrates how to use and performs selftests for lws_struct SQLITE serialization and deserialization ## build ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 ``` $ ./lws-api-test-lws_struct-sqlite [2020/02/22 09:55:05:4335] U: LWS API selftest: lws_struct SQLite [2020/02/22 09:55:05:5579] N: lws_struct_sq3_open: created _lws_apitest.sq3 owned by 0:0 mode 0600 [2020/02/22 09:55:05:9206] U: Completed: PASS ``` <file_sep># lws minimal http Server Side Events This demonstates serving both normal content and content over Server Side Events. ## build ``` $ cmake . && make ``` ## usage You can give -s to listen using https on port :443 ``` $ ./lws-minimal-http-server-sse [2018/04/20 06:09:56:9974] USER: LWS minimal http Server-Side Events | visit http://localhost:7681 [2018/04/20 06:09:57:0148] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off ``` Visit http://localhost:7681, which connects back to the server using SSE and displays the incoming data. Connecting from multiple browsers shows content individual to the connection. <file_sep># lws minimal http server eventlib foreign Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 --uv|Use the libuv event library (lws must have been configured with `-DLWS_WITH_LIBUV=1`) --event|Use the libevent library (lws must have been configured with `-DLWS_WITH_LIBEVENT=1`) --ev|Use the libev event library (lws must have been configured with `-DLWS_WITH_LIBEV=1`) Notice libevent and libev cannot coexist in the one library. But all the other combinations are OK. x|libuv|libevent|libev ---|---|---|--- libuv|-|OK|OK libevent|OK|-|no libev|OK|no|- This demonstrates having lws take part in a libuv loop owned by something else, with its own objects running in the loop. Lws can join the loop, and clean up perfectly after itself without leaving anything behind or making trouble in the larger loop, which does not need to stop during lws creation or destruction. First the foreign loop is created with a 1s timer, and runs alone for 5s. Then the lws context is created inside the timer callback and runs for 10s... during this period you can visit http://localhost:7681 for normal lws service using the foreign loop. After the 10s are up, the lws context is destroyed inside the foreign loop timer. The foreign loop runs alone again for a further 5s and then exits itself. ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-http-server-eventlib-foreign [2018/03/29 12:19:31:3480] USER: LWS minimal http server eventlib + foreign loop | visit http://localhost:7681 [2018/03/29 12:19:31:3724] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/03/29 12:19:31:3804] NOTICE: Using foreign event loop... [2018/03/29 12:19:31:3938] USER: Foreign 1Hz timer [2018/03/29 12:19:32:4011] USER: Foreign 1Hz timer [2018/03/29 12:19:33:4024] USER: Foreign 1Hz timer ^C[2018/03/29 12:19:33:8868] NOTICE: Signal 2 caught, exiting... [2018/03/29 12:19:33:8963] USER: main: starting exit cleanup... [2018/03/29 12:19:33:9064] USER: main: lws context destroyed: cleaning the foreign loop [2018/03/29 12:19:33:9108] USER: main: exiting... ``` Visit http://localhost:7681 <file_sep># DBUS Role Support ## DBUS-related distro packages Fedora: dbus-devel Debian / Ubuntu: libdbus-1-dev ## Enabling for build at cmake Fedora example: ``` $ cmake .. -DLWS_ROLE_DBUS=1 -DLWS_DBUS_INCLUDE2="/usr/lib64/dbus-1.0/include" ``` Ubuntu example: ``` $ cmake .. -DLWS_ROLE_DBUS=1 -DLWS_DBUS_INCLUDE2="/usr/lib/x86_64-linux-gnu/dbus-1.0/include" ``` Dbus requires two include paths, which you can force by setting `LWS_DBUS_INCLUDE1` and `LWS_DBUS_INCLUDE2`. Although INCLUDE1 is usually guessable, both can be forced to allow cross-build. If these are not forced, then lws cmake will try to check some popular places, for `LWS_DBUS_INCLUDE1`, on both Fedora and Debian / Ubuntu, this is `/usr/include/dbus-1.0`... if the directory exists, it is used. For `LWS_DBUS_INCLUDE2`, it is the arch-specific dbus header which may be packaged separately than the main dbus headers. On Fedora, this is in `/usr/lib[64]/dbus-1.0/include`... if not given externally, lws cmake will try `/usr/lib64/dbus-1.0/include`. On Debian / Ubuntu, the package installs it in an arch-specific dir like `/usr/lib/x86_64-linux-gnu/dbus-1.0/include`, you should force the path. The library path is usually \[lib\] "dbus-1", but this can also be forced if you want to build cross or use a special build, via `LWS_DBUS_LIB`. ## Building against local dbus build If you built your own local dbus and installed it in /usr/local, then this is the incantation to direct lws to use the local version of dbus: ``` cmake .. -DLWS_ROLE_DBUS=1 -DLWS_DBUS_INCLUDE1="/usr/local/include/dbus-1.0" -DLWS_DBUS_INCLUDE2="/usr/local/lib/dbus-1.0/include" -DLWS_DBUS_LIB="/usr/local/lib/libdbus-1.so" ``` You'll also need to give the loader a helping hand to do what you want if there's a perfectly good dbus lib already in `/usr/lib[64]` using `LD_PRELOAD` like this ``` LD_PRELOAD=/usr/local/lib/libdbus-1.so.3.24.0 myapp ``` ## Lws dbus api exports Because of the irregular situation with libdbus includes, if lws exports the dbus helpers, which use dbus types, as usual from `#include <libwebsockets.h>` then if lws was compiled with dbus role support it forces all users to take care about the dbus include path mess whether they use dbus themselves or not. For that reason, if you need access to the lws dbus apis, you must explicitly include them by ``` #include <libwebsockets/lws-dbus.h> ``` This includes `<dbus/dbus.h>` and so requires the include paths set up. But otherwise non-dbus users that don't include `libwebsockets/lws-dbus.h` don't have to care about it. ## DBUS and valgrind https://cgit.freedesktop.org/dbus/dbus/tree/README.valgrind 1) One-time 6KiB "Still reachable" caused by abstract unix domain socket + libc `getgrouplist()` via nss... bug since 2004(!) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273051 <file_sep># lws minimal http server basic auth This demonstrates how to protect a mount using a password file outside of the mount itself. The demo has two mounts, a normal one at / and one protected by basic auth at /secret. The file at ./ba-passwords contains valid user:password combinations. ## Discovering the authenticated user After a successful authentication, the `WSI_TOKEN_HTTP_AUTHORIZATION` token contains the authenticated username. ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-http-server-basic-auth [2018/04/19 08:40:05:1333] USER: LWS minimal http server basic auth | visit http://localhost:7681 [2018/04/19 08:40:05:1333] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off ``` Visit http://localhost:7681, and follow the link there to the secret area. Give your browser "user" and "password" as the credentials. <file_sep>/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ /*! \defgroup cgi cgi handling * * ##CGI handling * * These functions allow low-level control over stdin/out/err of the cgi. * * However for most cases, binding the cgi to http in and out, the default * lws implementation already does the right thing. */ enum lws_enum_stdinouterr { LWS_STDIN = 0, LWS_STDOUT = 1, LWS_STDERR = 2, }; enum lws_cgi_hdr_state { LCHS_HEADER, LCHS_CR1, LCHS_LF1, LCHS_CR2, LCHS_LF2, LHCS_RESPONSE, LHCS_DUMP_HEADERS, LHCS_PAYLOAD, LCHS_SINGLE_0A, }; struct lws_cgi_args { struct lws **stdwsi; /**< get fd with lws_get_socket_fd() */ enum lws_enum_stdinouterr ch; /**< channel index */ unsigned char *data; /**< for messages with payload */ enum lws_cgi_hdr_state hdr_state; /**< track where we are in cgi headers */ int len; /**< length */ }; #ifdef LWS_WITH_CGI /** * lws_cgi: spawn network-connected cgi process * * \param wsi: connection to own the process * \param exec_array: array of "exec-name" "arg1" ... "argn" NULL * \param script_uri_path_len: how many chars on the left of the uri are the * path to the cgi, or -1 to spawn without URL-related env vars * \param timeout_secs: seconds script should be allowed to run * \param mp_cgienv: pvo list with per-vhost cgi options to put in env */ LWS_VISIBLE LWS_EXTERN int lws_cgi(struct lws *wsi, const char * const *exec_array, int script_uri_path_len, int timeout_secs, const struct lws_protocol_vhost_options *mp_cgienv); /** * lws_cgi_write_split_stdout_headers: write cgi output accounting for header part * * \param wsi: connection to own the process */ LWS_VISIBLE LWS_EXTERN int lws_cgi_write_split_stdout_headers(struct lws *wsi); /** * lws_cgi_kill: terminate cgi process associated with wsi * * \param wsi: connection to own the process */ LWS_VISIBLE LWS_EXTERN int lws_cgi_kill(struct lws *wsi); /** * lws_cgi_get_stdwsi: get wsi for stdin, stdout, or stderr * * \param wsi: parent wsi that has cgi * \param ch: which of LWS_STDIN, LWS_STDOUT or LWS_STDERR */ LWS_VISIBLE LWS_EXTERN struct lws * lws_cgi_get_stdwsi(struct lws *wsi, enum lws_enum_stdinouterr ch); #endif ///@} <file_sep>typedef int (*mp3_done_cb)(void *opaque); int play_mp3(mpg123_handle *mh, mp3_done_cb cb, void *opaque); int spool_capture(uint8_t *buf, size_t len); <file_sep>#!/bin/sh echo "Starting $0" bin/lws-minimal-dbus-ws-proxy 2> /tmp/dbuss& echo " server starting" sleep 1s PID_PROX=$! echo " client starting" bin/lws-minimal-dbus-ws-proxy-testclient -x 10 2> /tmp/dbusc R=$? kill -2 $PID_PROX if [ $R -ne 0 ] ; then echo "$0 FAILED" cat /tmp/dbuss cat /tmp/dbusc exit 1 fi if [ -z "`cat /tmp/dbusc | grep 'rx: 9, tx: 9'`" ] ; then echo "$0 FAILED" cat /tmp/dbuss cat /tmp/dbusc exit 1 fi echo "$0 PASSED" exit 0 <file_sep># lws api test lws_dsh Demonstrates how to use and performs selftests for lws_dsh ## build ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 ``` $ ./lws-api-test-lws_dsh [2018/10/09 09:14:17:4834] USER: LWS API selftest: lws_dsh [2018/10/09 09:14:17:4835] USER: Completed: PASS ``` <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import binascii import os import pytest from cryptography.hazmat.backends.interfaces import CipherBackend from cryptography.hazmat.primitives.ciphers import algorithms, modes from .utils import generate_encrypt_test from ...utils import ( load_cryptrec_vectors, load_nist_vectors ) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.Camellia(b"\x00" * 16), modes.ECB() ), skip_message="Does not support Camellia ECB", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestCamelliaModeECB(object): test_ECB = generate_encrypt_test( load_cryptrec_vectors, os.path.join("ciphers", "Camellia"), [ "camellia-128-ecb.txt", "camellia-192-ecb.txt", "camellia-256-ecb.txt" ], lambda key, **kwargs: algorithms.Camellia(binascii.unhexlify(key)), lambda **kwargs: modes.ECB(), ) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.Camellia(b"\x00" * 16), modes.CBC(b"\x00" * 16) ), skip_message="Does not support Camellia CBC", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestCamelliaModeCBC(object): test_CBC = generate_encrypt_test( load_nist_vectors, os.path.join("ciphers", "Camellia"), ["camellia-cbc.txt"], lambda key, **kwargs: algorithms.Camellia(binascii.unhexlify(key)), lambda iv, **kwargs: modes.CBC(binascii.unhexlify(iv)), ) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.Camellia(b"\x00" * 16), modes.OFB(b"\x00" * 16) ), skip_message="Does not support Camellia OFB", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestCamelliaModeOFB(object): test_OFB = generate_encrypt_test( load_nist_vectors, os.path.join("ciphers", "Camellia"), ["camellia-ofb.txt"], lambda key, **kwargs: algorithms.Camellia(binascii.unhexlify(key)), lambda iv, **kwargs: modes.OFB(binascii.unhexlify(iv)), ) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.Camellia(b"\x00" * 16), modes.CFB(b"\x00" * 16) ), skip_message="Does not support Camellia CFB", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestCamelliaModeCFB(object): test_CFB = generate_encrypt_test( load_nist_vectors, os.path.join("ciphers", "Camellia"), ["camellia-cfb.txt"], lambda key, **kwargs: algorithms.Camellia(binascii.unhexlify(key)), lambda iv, **kwargs: modes.CFB(binascii.unhexlify(iv)), ) <file_sep>#!/bin/bash set -e set -x if [ -n "${TOXENV}" ]; then case "${TOXENV}" in pypy-nocoverage);; pep8);; py3pep8);; docs);; *) source ~/.venv/bin/activate codecov --env TRAVIS_OS_NAME,TOXENV,OPENSSL ;; esac fi <file_sep>[tox] minversion = 2.4 envlist = py27,pypy,py34,py35,py36,py37,docs,pep8,py3pep8 [testenv] extras = test deps = # This must be kept in sync with Jenkinsfile and .travis/install.sh coverage ./vectors passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH USERNAME commands = pip list # We use parallel mode and then combine here so that coverage.py will take # the paths like .tox/py34/lib/python3.4/site-packages/cryptography/__init__.py # and collapse them into src/cryptography/__init__.py. coverage run --parallel-mode -m pytest --capture=no --strict {posargs} coverage combine coverage report -m # This target disables coverage on pypy because of performance problems with # coverage.py on pypy. [testenv:pypy-nocoverage] basepython = pypy commands = pip list pytest --capture=no --strict {posargs} # This target disables coverage on pypy because of performance problems with # coverage.py on pypy. [testenv:pypy3-nocoverage] basepython = pypy3 commands = pip list pytest --capture=no --strict {posargs} [testenv:docs] extras = docs docstest basepython = python3 commands = sphinx-build -j4 -T -W -b html -d {envtmpdir}/doctrees docs docs/_build/html sphinx-build -j4 -T -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex sphinx-build -j4 -T -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html sphinx-build -j4 -T -W -b spelling docs docs/_build/html doc8 --allow-long-titles README.rst CHANGELOG.rst docs/ --ignore-path docs/_build/ python setup.py check --restructuredtext --strict [testenv:docs-linkcheck] extras = deps = sphinx basepython = python2.7 commands = sphinx-build -W -b linkcheck docs docs/_build/html [testenv:pep8] extras = pep8test commands = flake8 . [testenv:py3pep8] basepython = python3 extras = pep8test commands = flake8 . [testenv:randomorder] deps = {[testenv]deps} pytest-random commands = pytest --capture=no --strict --random {posargs} [flake8] exclude = .tox,*.egg,.git,_build,.hypothesis select = E,W,F,N,I application-import-names = cryptography,cryptography_vectors,tests [doc8] extensions = rst [pytest] addopts = -r s markers = requires_backend_interface: this test requires a specific backend interface supported: parametrized test requiring only_if and skip_message wycheproof_tests: this test runs a wycheproof fixture <file_sep># Include the file which creates VER_xxx environmental variables if they don't # already exist. include ../../global.mak include $(NOJACORE)/nojacore.mak NAME = webserver WORKDIR = $(ROOTDIR)/user/libwebserver # build location BUILD_PATH = $(WORKDIR)/bin # host-mode build location HOST_BUILD_PATH = $(WORKDIR)/bin-host TOP_DIR = $(ROOTDIR)/user # Test directories TEST_DIR = $(WORKDIR)/test # source directory SOURCE = $(WORKDIR)/webserver # header directory INCLUDE = $(WORKDIR)/webserver $(WORKDIR)/webserver/subprotocols # common library dir path ifeq ($(MAKECMDGOALS),host) LIB = $(ROOTDIR)/user/lib-host else LIB = $(ROOTDIR)/user/lib endif LDLIBS += -l$(NAME) # create the compile flags CFLAGS += -O3 -fPIC # add the headers path CFLAGS += $(addprefix -I$(WORKDIR)/, $(INCLUDE)) # add the common headers CFLAGS += -I$(ROOTDIR)/user -I$(ROOTDIR)/user/include -I$(ROOTDIR)/dbschema/include -I$(ROOTDIR)/user/dbapi\ -I$(ROOTDIR)/dbschema/include/dbschema -I$(ROOTDIR)/user/lib$(NAME) \ -I$(ROOTDIR)/lib3p/libwebsockets/include -I$(ROOTDIR)/lib3p/libcjson \ -I$(SDKTARGETSYSROOT)/usr/include/libxml2 # add any pre-process macros required CFLAGS += -DNWS_DEBUG # Add to the list of libraries to link against LDLIBS += -ldbapi -lnojacore -llog -lutils -lpowersystems -lm -lrt -lwebsockets -lcjson -lssl -lcrypto -llog -pthread $(LD_DATAREF) # Add to the library path LDFLAGS = -L$(LIB) # Specify the source files. One approach is to simply accept that all .c and .s # files in the project directory are source files to be compiled into the project. # If that will work, then specify the source files as: CSRC := $(wildcard $(SOURCE)/*.c) # The source files for unit tests. Tests are built and run with 'make check'. UNITTEST_CSRC = $(wildcard $(TEST_DIR)/*.c) ######################################################################################## # The following should not need to be modified. # Specify the tool chain #GCC_PREFIX = m68k-uclinux #CC = $(GCC_PREFIX)-gcc -mcpu=5329 -DCONFIG_COLDFIRE #LD = $(GCC_PREFIX)-ld #AR = $(GCC_PREFIX)-ar #AS = $(GCC_PREFIX)-gcc #GASP = $(GCC_PREFIX)-gasp #NM = $(GCC_PREFIX)-nm #OBJCOPY = $(GCC_PREFIX)-objcopy #OBJDUMP = $(GCC_PREFIX)-objdump #RANLIB = $(GCC_PREFIX)-ranlib #STRIP = $(GCC_PREFIX)-strip #SIZE = $(GCC_PREFIX)-size #READELF = $(GCC_PREFIX)-readelf CP = cp -p RM = rm -f MV = mv MK = mkdir -p #PERL = perl # Define the object files based on the source files COBJS := $(addprefix $(BUILD_PATH)/,$(notdir $(patsubst %.c,%.o,$(CSRC)))) AOBJS := $(addprefix $(BUILD_PATH)/,$(notdir $(patsubst %.s,%.o,$(ASRC)))) # Define the dependency files for each source file CDEPS := $(patsubst %.o,%.d,$(COBJS)) ADEPS := $(patsubst %.o,%.d,$(AOBJS)) .PHONY: all doc clean pre_copy .NOTPARALLEL: all : pre_copy $(MAKE) $(BUILD_PATH)/lib$(NAME).a $(BUILD_PATH)/lib$(NAME).a : $(AOBJS) $(COBJS) Makefile $(AR) rcs $@ $(AOBJS) $(COBJS) $(MK) $(LIB) $(CP) $@ $(LIB) # copy and generate the include files pre_copy: lib$(NAME).lst : lib$(NAME).a $(OBJDUMP) -dStl $^ >$@ #install-doc : # ../update_docmake.sh -o $(NAME) -s clips -i doc : doxygen ../artefacts/Doxyfile clean : $(RM) $(COBJS) $(AOBJS) $(CDEPS) $(ADEPS) $(wildcard $(BUILD_PATH)/lib$(NAME).*) $(RM) lib$(NAME).lst lib$(NAME).map $(wildcard *.stackdump) $(RM) $(LIB)/lib$(NAME).a pre_copy $(BUILD_PATH)/%.o: $(SOURCE)/%.c test -d $(BUILD_PATH) || mkdir $(BUILD_PATH) $(CC) -fPIC -g -c -o $@ $< $(CFLAGS) $(BUILD_PATH)/%.d: $(SOURCE)/%.c test -d $(BUILD_PATH) || mkdir $(BUILD_PATH) $(CC) -MM -MT $(CFLAGS) $< > $@ # include the dependency files -include $(CDEPS) -include $(ADEPS) include ../../host-lib.mak<file_sep># lws minimal ws server This demonstrates adopting a file descriptor into the lws event loop. The filepath to open and adopt is given as an argument to the example app, eg ``` $ ./lws-minimal-raw-file <file> ``` On a Linux system, some example files for testing might be - /proc/self/fd/0 (stdin) - /dev/ttyUSB0 (a USB <-> serial converter) - /dev/input/event<n> (needs root... input device events) The example application opens the file in the protocol init handler, and hexdumps data from the file to the lws log as it becomes available. This isn't very useful standalone as shown here for clarity, but you can freely combine raw file descriptor adoption with other lws server and client features. Becuase raw file events have their own callback reasons, the handlers can be integrated in a single protocol that also handles http and ws server and client callbacks without conflict. ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-raw-file /proc/self/fd/0 [2018/03/22 10:48:53:9709] USER: LWS minimal raw file [2018/03/22 10:48:53:9876] NOTICE: Creating Vhost 'default' port -2, 1 protocols, IPv6 off [2018/03/22 10:48:55:0037] NOTICE: LWS_CALLBACK_RAW_ADOPT_FILE [2018/03/22 10:48:55:9370] NOTICE: LWS_CALLBACK_RAW_RX_FILE [2018/03/22 10:48:55:9377] NOTICE: [2018/03/22 10:48:55:9408] NOTICE: 0000: 0A . ``` The example logs above show the result of typing the Enter key. <file_sep>/** * @file include/dbschema/dbSchemaUnits.h * @brief This generated file contains the macro definition providing details of * every unit used by datapoints. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbSchemaUnits_h.xsl : 4468 bytes, CRC32 = 359177753 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMAUNITS_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMAUNITS_H_ /** Count of unique units in the database */ #define DB_NUM_UNITS 80 /** Length of all the unit strings including terminating NULL */ #define DB_LEN_UNITNAMES 495 /** Count of datapoints with units in the database */ #define DB_DATAPOINT_UNITS 2344 /**The datapoint unit definitions * Arguments: name, type, desc, text * name Unit name * unit Unit text or symbol * len Character length of text or symbol */ #define DBUNIT_DEFNS \ \ DBUNIT_DEFN( A, "A", 1 ) \ DBUNIT_DEFN( AH, "AH", 2 ) \ DBUNIT_DEFN( APerKA, "A/KA", 4 ) \ DBUNIT_DEFN( APerMV, "A/MV", 4 ) \ DBUNIT_DEFN( Addr, "Addr", 4 ) \ DBUNIT_DEFN( Addr_of_step, "Addr of step", 12 ) \ DBUNIT_DEFN( Ahrs, "Ahrs", 4 ) \ DBUNIT_DEFN( Amps, "Amps", 4 ) \ DBUNIT_DEFN( AuxConfig, "AuxConfig", 9 ) \ DBUNIT_DEFN( AvgPeriod, "AvgPeriod", 9 ) \ DBUNIT_DEFN( BattTestState, "BattTestState", 13 ) \ DBUNIT_DEFN( BlockPerTrip, "Block/Trip", 10 ) \ DBUNIT_DEFN( C, "C", 1 ) \ DBUNIT_DEFN( ChEvent, "ChEvent", 7 ) \ DBUNIT_DEFN( DateFormat, "DateFormat", 10 ) \ DBUNIT_DEFN( Dbug_str, "Dbug str", 8 ) \ DBUNIT_DEFN( Degree, "Degree", 6 ) \ DBUNIT_DEFN( EnDis, "EnDis", 5 ) \ DBUNIT_DEFN( EnPerDisable, "En/Disable", 10 ) \ DBUNIT_DEFN( Hrs, "Hrs", 3 ) \ DBUNIT_DEFN( Hz, "Hz", 2 ) \ DBUNIT_DEFN( HzPers, "Hz/s", 4 ) \ DBUNIT_DEFN( HzPersec, "Hz/sec", 6 ) \ DBUNIT_DEFN( KV, "KV", 2 ) \ DBUNIT_DEFN( Mins, "Mins", 4 ) \ DBUNIT_DEFN( OkFail, "OkFail", 6 ) \ DBUNIT_DEFN( OkSCct, "OkSCct", 6 ) \ DBUNIT_DEFN( OnOff, "OnOff", 5 ) \ DBUNIT_DEFN( Ops, "Ops", 3 ) \ DBUNIT_DEFN( PCT, "%", 1 ) \ DBUNIT_DEFN( Per_sec, "/ sec", 5 ) \ DBUNIT_DEFN( Percent, "Percent", 7 ) \ DBUNIT_DEFN( RdyNr, "RdyNr", 5 ) \ DBUNIT_DEFN( RelayState, "RelayState", 10 ) \ DBUNIT_DEFN( TransPerCont, "Trans/Cont", 10 ) \ DBUNIT_DEFN( TripMode, "TripMode", 8 ) \ DBUNIT_DEFN( Trip_Num, "Trip #", 6 ) \ DBUNIT_DEFN( USense, "USense", 6 ) \ DBUNIT_DEFN( Un, "Un", 2 ) \ DBUNIT_DEFN( V, "V", 1 ) \ DBUNIT_DEFN( VPerA, "V/A", 3 ) \ DBUNIT_DEFN( V_x0_001x, "V(x0.001)", 9 ) \ DBUNIT_DEFN( V_x0_01x, "V(x0.01)", 8 ) \ DBUNIT_DEFN( W, "W", 1 ) \ DBUNIT_DEFN( dPId, "dPId", 4 ) \ DBUNIT_DEFN( dUnits, "dUnits", 6 ) \ DBUNIT_DEFN( days, "days", 4 ) \ DBUNIT_DEFN( deg, "deg", 3 ) \ DBUNIT_DEFN( degree, "degree", 6 ) \ DBUNIT_DEFN( degrees, "degrees", 7 ) \ DBUNIT_DEFN( kA, "kA", 2 ) \ DBUNIT_DEFN( kV, "kV", 2 ) \ DBUNIT_DEFN( kVA, "kVA", 3 ) \ DBUNIT_DEFN( kVAh, "kVAh", 4 ) \ DBUNIT_DEFN( kVAr, "kVAr", 4 ) \ DBUNIT_DEFN( kVArh, "kVArh", 5 ) \ DBUNIT_DEFN( kW, "kW", 2 ) \ DBUNIT_DEFN( kWh, "kWh", 3 ) \ DBUNIT_DEFN( km, "km", 2 ) \ DBUNIT_DEFN( m, "m", 1 ) \ DBUNIT_DEFN( mA, "mA", 2 ) \ DBUNIT_DEFN( mHz, "mHz", 3 ) \ DBUNIT_DEFN( mSi, "mSi", 3 ) \ DBUNIT_DEFN( mV, "mV", 2 ) \ DBUNIT_DEFN( m_s, "m:s", 3 ) \ DBUNIT_DEFN( microdegree, "microdegree", 11 ) \ DBUNIT_DEFN( mill, "mill", 4 ) \ DBUNIT_DEFN( millidegree, "millidegree", 11 ) \ DBUNIT_DEFN( mills, "mills", 5 ) \ DBUNIT_DEFN( min, "min", 3 ) \ DBUNIT_DEFN( minutes, "minutes", 7 ) \ DBUNIT_DEFN( ms, "ms", 2 ) \ DBUNIT_DEFN( ohms, "ohms", 4 ) \ DBUNIT_DEFN( ohmsPerkm, "ohms/km", 7 ) \ DBUNIT_DEFN( operations, "operations", 10 ) \ DBUNIT_DEFN( ppm__part_per_millionx, "ppm (part per million)", 22 ) \ DBUNIT_DEFN( pu, "pu", 2 ) \ DBUNIT_DEFN( s, "s", 1 ) \ DBUNIT_DEFN( seconds, "seconds", 7 ) \ DBUNIT_DEFN( us, "us", 2 ) \ /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBSCHEMAUNITS_H_ <file_sep>/** @file rwsp.h * Protocol header file, subprotocol needs this header to access the noja webserver * protocol * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _RWSP_H #define _RWSP_H #include "rwsp_type.h" /** @ingroup group_prot_apis * @brief Call to register the subprotocol to Relay WebSockets Protocol * * Call this API to register a subprotocol to the Relay WebSockets Protocol. Once registered, a WebSockets communication * channel can be created by a remote client to use for sending and receiving the subprotocol messages. * * @param[in] name Specify the string name of the subprotocol. This name will be use to channel the request to the correct subprotocols and * must be unique. Remote client will use this name to connect the Websocket to this protocol. The name must be null terminated and will not be * freed by the webserver after using. * @param[in] rcvdCb This callback is called by the Relay WebSockets Protocol to forward received message to the subprotocol. If NULL, will use the * default handler (see rwspRcvdCbDef function). * @param[in] encCb This callback is called by the Relay WebSockets Protocol to encode the subprotocol message in JSON format before sending to * the remote client(s). If not specified, the default handler will be use (see rwspEncCb function). * @param[in] decCb This callback is called by the Relay WebSockets Protocol to convert the JSON message into the subprotocol message format. * If not specified, the default handler will be use (see rwspDecCbDef function). * * @return RwspError_Ok if no error occured * @return RwspError_Name if the specified subprotocol name already exists * @return RwspError_Ng General error occured */ RwspErrors rwspReg(const char* name, RwspRcvdCb rcvdCb, RwspEncCb encCb, RwspDecCb decCb); /** @ingroup group_prot_apis * @brief Call to transmit message to the remote client. * * Transmit the message to the communication channel of the specified connection context. This function will convert the message into * JSON format using the RwspEncCb function before sending the data. Calling this function may not transmit the message immediately but * the message will be transmit as soon as possible. * * @param[in] context Defines the attribute of the communication channels the message will be sent. Relay WebSockets Protocol implementation * uses this to determine which connection to use to transmit the message. * @param[in] data Buffer to the data to send. The Relay WebSockets Protocol implementation will not free this buffer but must be available * as long as this function is running. * @param[in] size Specifyt the size of the data pointed by data buffer. * * @return RwspError_Ok if no error occured * @return RwspError_InvalidContext the specified context is either invalid or the channel is already disconnected * @return RwspError_Timeout The client didn't confirm the reception of the message and the Relay WebSockets Protocol giveup * waiting for confirmation. * @return RwspError_Ng General error occured */ RwspErrors rwspSnd(RwspCtx *context, RwspData data, RwspDataSize size); /** @ingroup group_prot_apis * @brief Call to transmit message to all remote clients. * * This function will transmit the message all communication channel under this subprotocol that are currently active. * This function will convert the message into JSON format using the RwspEncCb function before sending the data. The message may not be * transmitted immediately and at the same time. The broadcast message will be transmitted as soon as possible but dependent on each active * channel. * * @param[in] data Buffer to the data to send. The Relay WebSockets Protocol implementation will not free this buffer but must be available * as long as this function is running. * @param[in] size Specifyt the size of the data pointed by data buffer. * * @return RwspError_Ok If no error occured * @return RwspError_NoConnection No active connection is present for this subprotocol. * @return RwspError_Ng General error occured */ RwspErrors rwspBcast(RwspData data, RwspDataSize size); #endif<file_sep># # GNU Make makefile for building static libraries for use with the Android NDK # Copyright (C) 2016, <NAME> <<EMAIL>> # # This file is made available under the Creative Commons CC0 1.0 # Universal Public Domain Dedication. # # The person who associated a work with this deed has dedicated # the work to the public domain by waiving all of his or her rights # to the work worldwide under copyright law, including all related # and neighboring rights, to the extent allowed by law. You can copy, # modify, distribute and perform the work, even for commercial purposes, # all without asking permission. # # The test apps are intended to be adapted for use in your code, which # may be proprietary. So unlike the library itself, they are licensed # Public Domain. # # # This makefile is fully intergrated with this Android Studio project and # it will be called automaticaly when you build the project with Gradle. # # The source packages for the libraries will be automaticaly downloaded. # Alternativly you can provide your own sources by placing the following # files in the 'jni' directory: # # zlib-1.2.8.tar.gz # openssl-1.0.2g.tar.gz # libwebsockets.tar.gz # # This makefile was tested with the latest NDK/SDK and Android Studio at the # time of this writing. As these software packages evolve changes to this # makefile may be needed or it may become obselete... # # This makefile was made for use in Linux but you may be able to edit it # and make it work under Windows. # # At least on Debian, building openssl requires package xutils-dev # for makedepend. Ofcourse the standard development packages must also be # installed, but xutils-dev is not that obvious in this case... # # Makedepend will most likely print a lot of warnings during the 'make depend' # stage of building openssl. In this case these warnings can be safely ignored. # # Include Application.mk but do not complain if it is not found # ifeq ($(MAKE_NO_INCLUDES),) -include Application.mk endif # Location of the NDK. # ifeq ($(NDK_ROOT),) NDK_ROOT := /opt/Android/SDK/ndk-bundle endif # Select the ABIs to compile for # NDK_APP_ABI = $(APP_ABI) ifeq ($(NDK_APP_ABI),) # Set to 'all' if APP_ABI is undefined NDK_APP_ABI = all endif ifeq ($(NDK_APP_ABI),all) # Translate 'all' to the individual targets NDK_APP_ABI = armeabi armeabi-v7a arm64-v8a mips mips64 x86 x86_64 else # Use the targets from APP_ABI NDK_APP_ABI = $(APP_ABI) endif # Select the Android platform to compile for # ifeq ($(APP_PLATFORM),) # use a level that supports all specified ABIs if none was specified APP_PLATFORM = android-21 endif NDK_MAKE_TOOLCHAIN := $(NDK_ROOT)/build/tools/make_standalone_toolchain.py # # The source packages we want/need # Zlib and openssl should be defined in Application.mk, libwebsockets is # cloned from github # ifeq ($(ZLIB_VERSION),) ZLIB_VERSION := 1.2.8 endif ifeq ($(OPENSSL_VERSION),) OPENSSL_VERSION := 1.0.2g endif ifeq ($(ZLIB_TGZ_SOURCE),) ZLIB_TGZ_SOURCE := zlib-$(ZLIB_VERSION).tar.gz endif ifeq ($(OPENSSL_TGZ_SOURCE),) OPENSSL_TGZ_SOURCE := openssl-$(OPENSSL_VERSION).tar.gz endif LIBWEBSOCKETS_TGZ_SOURCE := libwebsockets.tar.gz # The names of the directories in the source tgz files ZLIB_DIR := $(basename $(basename $(ZLIB_TGZ_SOURCE))) OPENSSL_DIR := $(basename $(basename $(OPENSSL_TGZ_SOURCE))) LIBWEBSOCKETS_DIR := $(basename $(basename $(LIBWEBSOCKETS_TGZ_SOURCE))) # The URLs used to fetch the source tgz files ZLIB_TGZ_URL := http://prdownloads.sourceforge.net/libpng/$(ZLIB_TGZ_SOURCE) OPENSSL_TGZ_URL := https://openssl.org/source/$(OPENSSL_TGZ_SOURCE) ifeq ($(LIBWEBSOCKETS_GIT_URL),) LIBWEBSOCKETS_GIT_URL := https://github.com/warmcat/libwebsockets.git endif # These values are the same as the values for $TARGET_ARCH_ABI in Android.mk # This way 'make $TARGET_ARCH_ABI' builds libraries for that ABI. # This is also the name for the directory where the libraries are installed to. # TARGET_X86 := x86 TARGET_X86_64 := x86_64 TARGET_ARM := armeabi TARGET_ARM_V7A := armeabi-v7a TARGET_ARM_V7A_HARD := armeabi-v7a-hard TARGET_ARM64_V8A := arm64-v8a TARGET_MIPS := mips TARGET_MIPS64 := mips64 # The Android NDK API version to build the libraries with. # # android-9 ... android-19 support arm mips and x86 # android-21 and higher also support arm64 mips64 and x86_64 # # These should be set to the same value as APP_PLATFORM (Application.mk) # # http://developer.android.com/ndk/guides/stable_apis.html # # If you change these or APP_PLATFORM you must do a 'make clean' # # Note: # libraries compiled for android-21 and upwards are incompatible with devices below that version! # http://stackoverflow.com/questions/28740315/android-ndk-getting-java-lang-unsatisfiedlinkerror-dlopen-failed-cannot-loca # TARGET_X86_NDK_API := $(subst android-,,$(APP_PLATFORM)) TARGET_X86_64_NDK_API := $(subst android-,,$(APP_PLATFORM)) TARGET_ARM_NDK_API := $(subst android-,,$(APP_PLATFORM)) TARGET_ARM_V7A_NDK_API := $(subst android-,,$(APP_PLATFORM)) TARGET_ARM_V7A_HARD_NDK_API := $(subst android-,,$(APP_PLATFORM)) TARGET_ARM64_V8A_NDK_API := $(subst android-,,$(APP_PLATFORM)) TARGET_MIPS_NDK_API := $(subst android-,,$(APP_PLATFORM)) TARGET_MIPS64_NDK_API := $(subst android-,,$(APP_PLATFORM)) # The configure arguments to pass to the OpenSSL Configure script # (--prefix and --openssldir are added automaticaly). # (note: use no-asm on x86 and x86_64 to generate fully position independent code) # # x86 TARGET_X86_OPENSSL_CONFIG_TARGET := android-x86 TARGET_X86_OPENSSL_CONFIG := no-asm no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp # x86_64 TARGET_X86_64_OPENSSL_CONFIG_TARGET := linux-x86_64 TARGET_X86_64_OPENSSL_CONFIG := no-asm no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp enable-ec_nistp_64_gcc_128 # armeabi TARGET_ARM_OPENSSL_CONFIG_TARGET := android TARGET_ARM_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp # armeabi-v7a TARGET_ARM_V7A_OPENSSL_CONFIG_TARGET := android-armv7 TARGET_ARM_V7A_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp # armeabi-v7a-hard TARGET_ARM_V7A_HARD_OPENSSL_CONFIG_TARGET := android-armv7 TARGET_ARM_V7A_HARD_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp # arm64-v8a TARGET_ARM64_V8A_OPENSSL_CONFIG_TARGET := android TARGET_ARM64_V8A_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp # mips TARGET_MIPS_OPENSSL_CONFIG_TARGET := android-mips TARGET_MIPS_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp # mips64 TARGET_MIPS64_OPENSSL_CONFIG_TARGET := android TARGET_MIPS64_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp # The cmake configuration options for libwebsockets per target ABI, # --prefix and openssl library/header paths are set automaticaly and # the location of zlib should be picked up by CMake # x86 TARGET_X86_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_X86)/bin/$(TOOLCHAIN_X86_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_X86)/bin/$(TOOLCHAIN_X86_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_X86)/bin/$(TOOLCHAIN_X86_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # x86_64 TARGET_X86_64_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_X86_64)/bin/$(TOOLCHAIN_X86_64_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_X86_64)/bin/$(TOOLCHAIN_X86_64_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_X86_64)/bin/$(TOOLCHAIN_X86_64_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # armeabi TARGET_ARM_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_ARM)/bin/$(TOOLCHAIN_ARM_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_ARM)/bin/$(TOOLCHAIN_ARM_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_ARM)/bin/$(TOOLCHAIN_ARM_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # armeabi-v7a TARGET_ARM_V7A_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_ARM_V7A)/bin/$(TOOLCHAIN_ARM_V7A_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_ARM_V7A)/bin/$(TOOLCHAIN_ARM_V7A_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_ARM_V7A)/bin/$(TOOLCHAIN_ARM_V7A_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # armeabi-v7a-hard TARGET_ARM_V7A_HARD_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD)/bin/$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD)/bin/$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD)/bin/$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # arm64-v8a TARGET_ARM64_V8A_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_ARM64_V8A)/bin/$(TOOLCHAIN_ARM64_V8A_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_ARM64_V8A)/bin/$(TOOLCHAIN_ARM64_V8A_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_ARM64_V8A)/bin/$(TOOLCHAIN_ARM64_V8A_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # mips TARGET_MIPS_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_MIPS)/bin/$(TOOLCHAIN_MIPS_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_MIPS)/bin/$(TOOLCHAIN_MIPS_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_MIPS)/bin/$(TOOLCHAIN_MIPS_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # mips64 TARGET_MIPS64_LWS_OPTIONS = \ -DCMAKE_C_COMPILER=$(shell pwd)/$(TOOLCHAIN_MIPS64)/bin/$(TOOLCHAIN_MIPS64_PREFIX)-gcc \ -DCMAKE_AR=$(shell pwd)/$(TOOLCHAIN_MIPS64)/bin/$(TOOLCHAIN_MIPS64_PREFIX)-ar \ -DCMAKE_RANLIB=$(shell pwd)/$(TOOLCHAIN_MIPS64)/bin/$(TOOLCHAIN_MIPS64_PREFIX)-ranlib \ -DCMAKE_C_FLAGS="$$CFLAGS" \ -DLWS_WITH_SHARED=OFF \ -DLWS_WITH_STATIC=ON \ -DLWS_WITHOUT_DAEMONIZE=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_IPV6=OFF \ -DLWS_WITH_BUNDLED_ZLIB=OFF \ -DLWS_WITH_SSL=ON \ -DLWS_WITH_HTTP2=ON \ -DCMAKE_BUILD_TYPE=Release # # Toolchain configuration # # The directory names for the different toolchains TOOLCHAIN_X86 := toolchains/x86 TOOLCHAIN_X86_64 := toolchains/x86_64 TOOLCHAIN_ARM := toolchains/arm TOOLCHAIN_ARM_V7A := toolchains/arm-v7a TOOLCHAIN_ARM_V7A_HARD := toolchains/arm-v7a-hard TOOLCHAIN_ARM64_V8A := toolchains/arm64-v8a TOOLCHAIN_MIPS := toolchains/mips TOOLCHAIN_MIPS64 := toolchains/mips64 # Use APP_STL to determine what STL to use. # ifeq ($(APP_STL),stlport_static) TOOLCHAIN_STL := stlport else ifeq ($(APP_STL),stlport_shared) TOOLCHAIN_STL := stlport else ifeq ($(APP_STL),gnustl_static) TOOLCHAIN_STL := gnustl else ifeq ($(APP_STL),gnustl_shared) TOOLCHAIN_STL := gnustl else ifeq ($(APP_STL),c++_static) TOOLCHAIN_STL := libc++ else ifeq ($(APP_STL),c++_shared) TOOLCHAIN_STL := libc++ endif # The settings to use for the individual toolchains: # x86 TOOLCHAIN_X86_API := $(TARGET_X86_NDK_API) TOOLCHAIN_X86_PREFIX := i686-linux-android TOOLCHAIN_X86_FLAGS := -march=i686 -msse3 -mstackrealign -mfpmath=sse TOOLCHAIN_X86_LINK := TOOLCHAIN_X86_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_X86)/sysroot/usr/include TOOLCHAIN_X86_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_X86)/sysroot/usr/lib # x86_64 TOOLCHAIN_X86_64_API := $(TARGET_X86_64_NDK_API) TOOLCHAIN_X86_64_PREFIX := x86_64-linux-android TOOLCHAIN_X86_64_FLAGS := TOOLCHAIN_X86_64_LINK := TOOLCHAIN_X86_64_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_X86_64)/sysroot/usr/include TOOLCHAIN_X86_64_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_X86_64)/sysroot/usr/lib # arm TOOLCHAIN_ARM_API := $(TARGET_ARM_NDK_API) TOOLCHAIN_ARM_PREFIX := arm-linux-androideabi TOOLCHAIN_ARM_FLAGS := -mthumb TOOLCHAIN_ARM_LINK := TOOLCHAIN_ARM_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_ARM)/sysroot/usr/include TOOLCHAIN_ARM_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_ARM)/sysroot/usr/lib # arm-v7a TOOLCHAIN_ARM_V7A_API := $(TARGET_ARM_V7A_NDK_API) TOOLCHAIN_ARM_V7A_PREFIX := arm-linux-androideabi TOOLCHAIN_ARM_V7A_FLAGS := -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 TOOLCHAIN_ARM_V7A_LINK := -march=armv7-a -Wl,--fix-cortex-a8 TOOLCHAIN_ARM_V7A_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_ARM_V7A)/sysroot/usr/include TOOLCHAIN_ARM_V7A_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_ARM_V7A)/sysroot/usr/lib # arm-v7a-hard TOOLCHAIN_ARM_V7A_HARD_API := $(TARGET_ARM_V7A_HARD_NDK_API) TOOLCHAIN_ARM_V7A_HARD_PREFIX := arm-linux-androideabi TOOLCHAIN_ARM_V7A_HARD_FLAGS := -march=armv7-a -mfpu=vfpv3-d16 -mhard-float -mfloat-abi=hard -D_NDK_MATH_NO_SOFTFP=1 TOOLCHAIN_ARM_V7A_HARD_LINK := -march=armv7-a -Wl,--fix-cortex-a8 -Wl,--no-warn-mismatch -lm_hard TOOLCHAIN_ARM_V7A_HARD_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD)/sysroot/usr/include TOOLCHAIN_ARM_V7A_HARD_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD)/sysroot/usr/lib # arm64-v8a TOOLCHAIN_ARM64_V8A_API := $(TARGET_ARM64_V8A_NDK_API) TOOLCHAIN_ARM64_V8A_PREFIX := aarch64-linux-android TOOLCHAIN_ARM64_V8A_FLAGS := TOOLCHAIN_ARM64_V8A_LINK := TOOLCHAIN_ARM64_V8A_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_ARM64_V8A)/sysroot/usr/include TOOLCHAIN_ARM64_V8A_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_ARM64_V8A)/sysroot/usr/lib # mips TOOLCHAIN_MIPS_API := $(TARGET_MIPS_NDK_API) TOOLCHAIN_MIPS_PREFIX := mipsel-linux-android TOOLCHAIN_MIPS_FLAGS := TOOLCHAIN_MIPS_LINK := TOOLCHAIN_MIPS_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_MIPS)/sysroot/usr/include TOOLCHAIN_MIPS_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_MIPS)/sysroot/usr/lib # mips64 TOOLCHAIN_MIPS64_API := $(TARGET_MIPS64_NDK_API) TOOLCHAIN_MIPS64_PREFIX := mips64el-linux-android TOOLCHAIN_MIPS64_FLAGS := TOOLCHAIN_MIPS64_LINK := TOOLCHAIN_MIPS64_PLATFORM_HEADERS := $(shell pwd)/$(TOOLCHAIN_MIPS64)/sysroot/usr/include TOOLCHAIN_MIPS64_PLATFORM_LIBS := $(shell pwd)/$(TOOLCHAIN_MIPS64)/sysroot/usr/lib # Environment variables to set while compiling for each ABI # x86 TOOLCHAIN_X86_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_X86)/bin" \ CC=$(TOOLCHAIN_X86_PREFIX)-gcc \ CXX=$(TOOLCHAIN_X86_PREFIX)-g++ \ LINK=$(TOOLCHAIN_X86_PREFIX)-g++ \ LD=$(TOOLCHAIN_X86_PREFIX)-ld \ AR=$(TOOLCHAIN_X86_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_X86_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_X86_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_X86_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_X86_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_X86_FLAGS) -I$(TOOLCHAIN_X86_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_X86_FLAGS) -I$(TOOLCHAIN_X86_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_X86_FLAGS) -I$(TOOLCHAIN_X86_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_X86_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_X86)/bin:$$PATH" # x86_64 TOOLCHAIN_X86_64_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_X86_64)/bin" \ CC=$(TOOLCHAIN_X86_64_PREFIX)-gcc \ CXX=$(TOOLCHAIN_X86_64_PREFIX)-g++ \ LINK=$(TOOLCHAIN_X86_64_PREFIX)-g++ \ LD=$(TOOLCHAIN_X86_64_PREFIX)-ld \ AR=$(TOOLCHAIN_X86_64_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_X86_64_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_X86_64_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_X86_64_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_X86_64_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_X86_64_FLAGS) -I$(TOOLCHAIN_X86_64_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_X86_64_FLAGS) -I$(TOOLCHAIN_X86_64_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_X86_64_FLAGS) -I$(TOOLCHAIN_X86_64_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_X86_64_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_X86_64)/bin:$$PATH" # arm TOOLCHAIN_ARM_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_ARM)/bin" \ CC=$(TOOLCHAIN_ARM_PREFIX)-gcc \ CXX=$(TOOLCHAIN_ARM_PREFIX)-g++ \ LINK=$(TOOLCHAIN_ARM_PREFIX)-g++ \ LD=$(TOOLCHAIN_ARM_PREFIX)-ld \ AR=$(TOOLCHAIN_ARM_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_ARM_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_ARM_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_ARM_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_ARM_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_ARM_FLAGS) -I$(TOOLCHAIN_ARM_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_ARM_FLAGS) -I$(TOOLCHAIN_ARM_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_ARM_FLAGS) -I$(TOOLCHAIN_ARM_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_ARM_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_ARM)/bin:$$PATH" # arm-v7a TOOLCHAIN_ARM_V7A_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_ARM_V7A)/bin" \ CC=$(TOOLCHAIN_ARM_V7A_PREFIX)-gcc \ CXX=$(TOOLCHAIN_ARM_V7A_PREFIX)-g++ \ LINK=$(TOOLCHAIN_ARM_V7A_PREFIX)-g++ \ LD=$(TOOLCHAIN_ARM_V7A_PREFIX)-ld \ AR=$(TOOLCHAIN_ARM_V7A_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_ARM_V7A_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_ARM_V7A_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_ARM_V7A_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_ARM_V7A_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_ARM_V7A_FLAGS) -I$(TOOLCHAIN_ARM_V7A_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_ARM_V7A_FLAGS) -I$(TOOLCHAIN_ARM_V7A_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_ARM_V7A_FLAGS) -I$(TOOLCHAIN_ARM_V7A_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_ARM_V7A_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_ARM_V7A)/bin:$$PATH" # arm-v7a-hard TOOLCHAIN_ARM_V7A_HARD_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD)/bin" \ CC=$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-gcc \ CXX=$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-g++ \ LINK=$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-g++ \ LD=$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-ld \ AR=$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_ARM_V7A_HARD_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_ARM_V7A_HARD_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_ARM_V7A_HARD_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_ARM_V7A_HARD_FLAGS) -I$(TOOLCHAIN_ARM_V7A_HARD_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_ARM_V7A_HARD_FLAGS) -I$(TOOLCHAIN_ARM_V7A_HARD_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_ARM_V7A_HARD_FLAGS) -I$(TOOLCHAIN_ARM_V7A_HARD_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_ARM_V7A_HARD_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD)/bin:$$PATH" # arm64-v8a TOOLCHAIN_ARM64_V8A_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_ARM64_V8A)/bin" \ CC=$(TOOLCHAIN_ARM64_V8A_PREFIX)-gcc \ CXX=$(TOOLCHAIN_ARM64_V8A_PREFIX)-g++ \ LINK=$(TOOLCHAIN_ARM64_V8A_PREFIX)-g++ \ LD=$(TOOLCHAIN_ARM64_V8A_PREFIX)-ld \ AR=$(TOOLCHAIN_ARM64_V8A_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_ARM64_V8A_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_ARM64_V8A_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_ARM64_V8A_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_ARM64_V8A_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_ARM64_V8A_FLAGS) -I$(TOOLCHAIN_ARM64_V8A_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_ARM64_V8A_FLAGS) -I$(TOOLCHAIN_ARM64_V8A_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_ARM64_V8A_FLAGS) -I$(TOOLCHAIN_ARM64_V8A_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_ARM64_V8A_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_ARM64_V8A)/bin:$$PATH" # mips TOOLCHAIN_MIPS_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_MIPS)/bin" \ CC=$(TOOLCHAIN_MIPS_PREFIX)-gcc \ CXX=$(TOOLCHAIN_MIPS_PREFIX)-g++ \ LINK=$(TOOLCHAIN_MIPS_PREFIX)-g++ \ LD=$(TOOLCHAIN_MIPS_PREFIX)-ld \ AR=$(TOOLCHAIN_MIPS_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_MIPS_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_MIPS_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_MIPS_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_MIPS_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_MIPS_FLAGS) -I$(TOOLCHAIN_MIPS_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_MIPS_FLAGS) -I$(TOOLCHAIN_MIPS_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_MIPS_FLAGS) -I$(TOOLCHAIN_MIPS_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_MIPS_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_MIPS)/bin:$$PATH" # mips64 TOOLCHAIN_MIPS64_ENV = \ ANDROID_DEV="$(shell pwd)/$(TOOLCHAIN_MIPS64)/bin" \ CC=$(TOOLCHAIN_MIPS64_PREFIX)-gcc \ CXX=$(TOOLCHAIN_MIPS64_PREFIX)-g++ \ LINK=$(TOOLCHAIN_MIPS64_PREFIX)-g++ \ LD=$(TOOLCHAIN_MIPS64_PREFIX)-ld \ AR=$(TOOLCHAIN_MIPS64_PREFIX)-ar \ RANLIB=$(TOOLCHAIN_MIPS64_PREFIX)-ranlib \ STRIP=$(TOOLCHAIN_MIPS64_PREFIX)-strip \ ARCH_FLAGS="$(TOOLCHAIN_MIPS64_FLAGS)" \ ARCH_LINK="$(TOOLCHAIN_MIPS64_LINK)" \ CPPFLAGS="-I. $(TOOLCHAIN_MIPS64_FLAGS) -I$(TOOLCHAIN_MIPS64_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ CXXFLAGS="-I. $(TOOLCHAIN_MIPS64_FLAGS) -I$(TOOLCHAIN_MIPS64_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions" \ CFLAGS="-I. $(TOOLCHAIN_MIPS64_FLAGS) -I$(TOOLCHAIN_MIPS64_PLATFORM_HEADERS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64" \ LDFLAGS="$(TOOLCHAIN_MIPS64_LINK)" \ PATH="$(shell pwd)/$(TOOLCHAIN_MIPS64)/bin:$$PATH" # # All the external tools we use in this Makefile # AWK := awk CD := cd CMAKE := cmake ECHO := echo EGREP := egrep GIT := git LN := ln MKDIR := mkdir RM := rm SORT := sort TAR := tar WGET := wget # # End of user configurable options. # .PHONY: \ all \ all-x86 \ all-x86_64 \ all-armeabi \ all-armeabi-v7a \ all-armeabi-v7a-hard \ all-arm64-v8a \ all-mips \ all-mips64 \ common \ sources \ toolchains \ toolchain-x86 \ toolchain-x86_64 \ toolchain-armeabi \ toolchain-armeabi-v7a \ toolchain-armeabi-v7a-hard \ toolchain-arm64-v8a \ toolchain-mips \ toolchain-mips64 \ zlib \ zlib-x86 \ zlib-x86_64 \ zlib-armeabi \ zlib-armeabi-v7a \ zlib-armeabi-v7a-hard \ zlib-arm64-v8a \ zlib-mips \ zlib-mips64 \ openssl \ openssl-x86 \ openssl-x86_64 \ openssl-armeabi \ openssl-armeabi-v7a \ openssl-armeabi-v7a-hard \ openssl-arm64-v8a \ openssl-mips \ openssl-mips64 \ libwebsockets \ libwebsockets-x86 \ libwebsockets-x86_64 \ libwebsockets-armeabi \ libwebsockets-armeabi-v7a \ libwebsockets-armeabi-v7a-hard \ libwebsockets-arm64-v8a \ libwebsockets-mips \ libwebsockets-mips64 \ clean-ndk \ clean \ dist-clean \ clean-targets \ clean-target-x86 \ clean-target-x86_64 \ clean-target-armeabi \ clean-target-armeabi-v7a \ clean-target-armeabi-v7a-hard \ clean-target-arm64-v8a \ clean-target-mips \ clean-target-mips64 \ clean-sources \ clean-source-zlib \ clean-source-openssl \ clean-source-libwebsockets \ clean-toolchains \ clean-toolchain-x86 \ clean-toolchain-x86_64 \ clean-toolchain-armeabi \ clean-toolchain-armeabi-v7a \ clean-toolchain-armeabi-v7a-hard \ clean-toolchain-arm64-v8a \ clean-toolchain-mips \ clean-toolchain-mips64 \ list-targets # Default rule: build the libraries for all ABIs defined in NDK_APP_ABI then run ndk-build all: $(NDK_APP_ABI) $(NDK_ROOT)/ndk-build clean $(NDK_ROOT)/ndk-build # Libraries may also be build per ABI all-x86: $(TARGET_X86) all-x86_64: $(TARGET_X86_64) all-armeabi: $(TARGET_ARM) all-armeabi-v7a: $(TARGET_ARM_V7A) all-armeabi-v7a-hard: $(TARGET_ARM_V7A_HARD) all-arm64-v8a: $(TARGET_ARM64_V8A) all-mips: $(TARGET_MIPS) all-mips64: $(TARGET_MIPS64) # Common rule all targets depend on common: ../jniLibs # These rules are called from Android.mk when executing ndk-build $(TARGET_X86): common zlib-x86 openssl-x86 libwebsockets-x86 $(TARGET_X86_64): common zlib-x86_64 openssl-x86_64 libwebsockets-x86_64 $(TARGET_ARM): common zlib-armeabi openssl-armeabi libwebsockets-armeabi $(TARGET_ARM_V7A): common zlib-armeabi-v7a openssl-armeabi-v7a libwebsockets-armeabi-v7a $(TARGET_ARM_V7A_HARD): common zlib-armeabi-v7a-hard openssl-armeabi-v7a-hard libwebsockets-armeabi-v7a-hard $(TARGET_ARM64_V8A): common zlib-arm64-v8a openssl-arm64-v8a libwebsockets-arm64-v8a $(TARGET_MIPS): common zlib-mips openssl-mips libwebsockets-mips $(TARGET_MIPS64): common zlib-mips64 openssl-mips64 libwebsockets-mips64 # # A rule to ensure ../jniLibs points to ../libs # (ndk-build creates ../libs but Gradle looks for ../jniLibs) # ../libs: $(MKDIR) ../libs ../jniLibs: ../libs $(CD) .. && $(LN) -s libs jniLibs # # Some rules to download the sources # sources: $(ZLIB_TGZ_SOURCE) $(OPENSSL_TGZ_SOURCE) $(LIBWEBSOCKETS_TGZ_SOURCE) $(ZLIB_TGZ_SOURCE): $(WGET) -q $(ZLIB_TGZ_URL) $(OPENSSL_TGZ_SOURCE): $(WGET) -q $(OPENSSL_TGZ_URL) $(LIBWEBSOCKETS_TGZ_SOURCE): if [ -d $(LIBWEBSOCKETS_DIR) ]; then $(RM) -fr $(LIBWEBSOCKETS_DIR); fi $(GIT) clone $(LIBWEBSOCKETS_GIT_URL) $(TAR) caf $(LIBWEBSOCKETS_TGZ_SOURCE) $(LIBWEBSOCKETS_DIR) $(RM) -fR $(LIBWEBSOCKETS_DIR) # # Some rules to install the required toolchains # toolchains: \ toolchain-x86 \ toolchain-x86_64 \ toolchain-armeabi \ toolchain-armeabi-v7a \ toolchain-armeabi-v7a-hard \ toolchain-arm64-v8a \ toolchain-mips \ toolchain-mips64 toolchain-x86: $(TOOLCHAIN_X86) toolchain-x86_64: $(TOOLCHAIN_X86_64) toolchain-armeabi: $(TOOLCHAIN_ARM) toolchain-armeabi-v7a: $(TOOLCHAIN_ARM_V7A) toolchain-armeabi-v7a-hard: $(TOOLCHAIN_ARM_V7A_HARD) toolchain-arm64-v8a: $(TOOLCHAIN_ARM64_V8A) toolchain-mips: $(TOOLCHAIN_MIPS) toolchain-mips64: $(TOOLCHAIN_MIPS64) $(TOOLCHAIN_X86): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_X86_API) \ --arch x86 \ --install-dir $(shell pwd)/$(TOOLCHAIN_X86) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_X86_API) \ --arch x86 \ --install-dir $(shell pwd)/$(TOOLCHAIN_X86) endif $(TOOLCHAIN_X86_64): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_X86_64_API) \ --arch x86_64 \ --install-dir $(shell pwd)/$(TOOLCHAIN_X86_64) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_X86_64_API) \ --arch x86_64 \ --install-dir $(shell pwd)/$(TOOLCHAIN_X86_64) endif $(TOOLCHAIN_ARM): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_ARM_API) \ --arch arm \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_ARM_API) \ --arch arm \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM) endif $(TOOLCHAIN_ARM_V7A): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_ARM_V7A_API) \ --arch arm \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM_V7A) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_ARM_V7A_API) \ --arch arm \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM_V7A) endif $(TOOLCHAIN_ARM_V7A_HARD): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_ARM_V7A_HARD_API) \ --arch arm \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_ARM_V7A_HARD_API) \ --arch arm \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM_V7A_HARD) endif $(TOOLCHAIN_ARM64_V8A): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_ARM64_V8A_API) \ --arch arm64 \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM64_V8A) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_ARM64_V8A_API) \ --arch arm64 \ --install-dir $(shell pwd)/$(TOOLCHAIN_ARM64_V8A) endif $(TOOLCHAIN_MIPS): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_MIPS_API) \ --arch mips \ --install-dir $(shell pwd)/$(TOOLCHAIN_MIPS) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_MIPS_API) \ --arch mips \ --install-dir $(shell pwd)/$(TOOLCHAIN_MIPS) endif $(TOOLCHAIN_MIPS64): ifneq ($(TOOLCHAIN_STL),) $(NDK_MAKE_TOOLCHAIN) \ --stl $(TOOLCHAIN_STL) \ --api $(TOOLCHAIN_MIPS64_API) \ --arch mips64 \ --install-dir $(shell pwd)/$(TOOLCHAIN_MIPS64) else $(NDK_MAKE_TOOLCHAIN) \ --api $(TOOLCHAIN_MIPS64_API) \ --arch mips64 \ --install-dir $(shell pwd)/$(TOOLCHAIN_MIPS64) endif # # Rules to build zlib # zlib: \ zlib-x86 \ zlib-x86_64 \ zlib-armeabi \ zlib-armeabi-v7a \ zlib-armeabi-v7a-hard \ zlib-arm64-v8a \ zlib-mips \ zlib-mips64 zlib-x86: $(TARGET_X86)/lib/libz.a zlib-x86_64: $(TARGET_X86_64)/lib/libz.a zlib-armeabi: $(TARGET_ARM)/lib/libz.a zlib-armeabi-v7a: $(TARGET_ARM_V7A)/lib/libz.a zlib-armeabi-v7a-hard: $(TARGET_ARM_V7A_HARD)/lib/libz.a zlib-arm64-v8a: $(TARGET_ARM64_V8A)/lib/libz.a zlib-mips: $(TARGET_MIPS)/lib/libz.a zlib-mips64: $(TARGET_MIPS64)/lib/libz.a # Extracting/configuring sources $(TARGET_X86)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_X86) -$(MKDIR) -p $(TARGET_X86)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_X86)/src $(CD) $(TARGET_X86)/src/$(ZLIB_DIR) && $(TOOLCHAIN_X86_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_X86) $(TARGET_X86_64)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_X86_64) -$(MKDIR) -p $(TARGET_X86_64)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_X86_64)/src $(CD) $(TARGET_X86_64)/src/$(ZLIB_DIR) && $(TOOLCHAIN_X86_64_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_X86_64) $(TARGET_ARM)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_ARM) -$(MKDIR) -p $(TARGET_ARM)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_ARM)/src $(CD) $(TARGET_ARM)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_ARM) $(TARGET_ARM_V7A)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_ARM_V7A) -$(MKDIR) -p $(TARGET_ARM_V7A)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_ARM_V7A)/src $(CD) $(TARGET_ARM_V7A)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_V7A_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_ARM_V7A) $(TARGET_ARM_V7A_HARD)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_ARM_V7A_HARD) -$(MKDIR) -p $(TARGET_ARM_V7A_HARD)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_ARM_V7A_HARD)/src $(CD) $(TARGET_ARM_V7A_HARD)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_V7A_HARD_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_ARM_V7A_HARD) $(TARGET_ARM64_V8A)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_ARM64_V8A) -$(MKDIR) -p $(TARGET_ARM64_V8A)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_ARM64_V8A)/src $(CD) $(TARGET_ARM64_V8A)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM64_V8A_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_ARM64_V8A) $(TARGET_MIPS)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_MIPS) -$(MKDIR) -p $(TARGET_MIPS)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_MIPS)/src $(CD) $(TARGET_MIPS)/src/$(ZLIB_DIR) && $(TOOLCHAIN_MIPS_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_MIPS) $(TARGET_MIPS64)/src/$(ZLIB_DIR): $(ZLIB_TGZ_SOURCE) $(TOOLCHAIN_MIPS64) -$(MKDIR) -p $(TARGET_MIPS64)/src $(TAR) xf $(ZLIB_TGZ_SOURCE) -C $(TARGET_MIPS64)/src $(CD) $(TARGET_MIPS64)/src/$(ZLIB_DIR) && $(TOOLCHAIN_MIPS64_ENV) \ ./configure --static --prefix=$(shell pwd)/$(TARGET_MIPS64) # Build/install library $(TARGET_X86)/lib/libz.a: $(TARGET_X86)/src/$(ZLIB_DIR) $(CD) $(TARGET_X86)/src/$(ZLIB_DIR) && $(TOOLCHAIN_X86_ENV) $(MAKE) libz.a $(CD) $(TARGET_X86)/src/$(ZLIB_DIR) && $(TOOLCHAIN_X86_ENV) $(MAKE) install $(TARGET_X86_64)/lib/libz.a: $(TARGET_X86_64)/src/$(ZLIB_DIR) $(CD) $(TARGET_X86_64)/src/$(ZLIB_DIR) && $(TOOLCHAIN_X86_64_ENV) $(MAKE) libz.a $(CD) $(TARGET_X86_64)/src/$(ZLIB_DIR) && $(TOOLCHAIN_X86_64_ENV) $(MAKE) install $(TARGET_ARM)/lib/libz.a: $(TARGET_ARM)/src/$(ZLIB_DIR) $(CD) $(TARGET_ARM)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_ENV) $(MAKE) libz.a $(CD) $(TARGET_ARM)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_ENV) $(MAKE) install $(TARGET_ARM_V7A)/lib/libz.a: $(TARGET_ARM_V7A)/src/$(ZLIB_DIR) $(CD) $(TARGET_ARM_V7A)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_V7A_ENV) $(MAKE) libz.a $(CD) $(TARGET_ARM_V7A)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_V7A_ENV) $(MAKE) install $(TARGET_ARM_V7A_HARD)/lib/libz.a: $(TARGET_ARM_V7A_HARD)/src/$(ZLIB_DIR) $(CD) $(TARGET_ARM_V7A_HARD)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_V7A_HARD_ENV) $(MAKE) libz.a $(CD) $(TARGET_ARM_V7A_HARD)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM_V7A_HARD_ENV) $(MAKE) install $(TARGET_ARM64_V8A)/lib/libz.a: $(TARGET_ARM64_V8A)/src/$(ZLIB_DIR) $(CD) $(TARGET_ARM64_V8A)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM64_V8A_ENV) $(MAKE) libz.a $(CD) $(TARGET_ARM64_V8A)/src/$(ZLIB_DIR) && $(TOOLCHAIN_ARM64_V8A_ENV) $(MAKE) install $(TARGET_MIPS)/lib/libz.a: $(TARGET_MIPS)/src/$(ZLIB_DIR) $(CD) $(TARGET_MIPS)/src/$(ZLIB_DIR) && $(TOOLCHAIN_MIPS_ENV) $(MAKE) libz.a $(CD) $(TARGET_MIPS)/src/$(ZLIB_DIR) && $(TOOLCHAIN_MIPS_ENV) $(MAKE) install $(TARGET_MIPS64)/lib/libz.a: $(TARGET_MIPS64)/src/$(ZLIB_DIR) $(CD) $(TARGET_MIPS64)/src/$(ZLIB_DIR) && $(TOOLCHAIN_MIPS64_ENV) $(MAKE) libz.a $(CD) $(TARGET_MIPS64)/src/$(ZLIB_DIR) && $(TOOLCHAIN_MIPS64_ENV) $(MAKE) install # # Rules to build OpenSSL # openssl: \ openssl-x86 \ openssl-x86_64 \ openssl-armeabi \ openssl-armeabi-v7a \ openssl-armeabi-v7a-hard \ openssl-arm64-v8a \ openssl-mips \ openssl-mips64 openssl-x86: $(TARGET_X86)/lib/libssl.a openssl-x86_64: $(TARGET_X86_64)/lib/libssl.a openssl-armeabi: $(TARGET_ARM)/lib/libssl.a openssl-armeabi-v7a: $(TARGET_ARM_V7A)/lib/libssl.a openssl-armeabi-v7a-hard: $(TARGET_ARM_V7A_HARD)/lib/libssl.a openssl-arm64-v8a: $(TARGET_ARM64_V8A)/lib/libssl.a openssl-mips: $(TARGET_MIPS)/lib/libssl.a openssl-mips64: $(TARGET_MIPS64)/lib/libssl.a # Extracting/configuring sources $(TARGET_X86)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_X86) -$(MKDIR) -p $(TARGET_X86)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_X86)/src $(CD) $(TARGET_X86)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_ENV) \ ./Configure $(TARGET_X86_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_X86) \ --openssldir=$(shell pwd)/$(TARGET_X86)/lib/ssl \ $(TARGET_X86_OPENSSL_CONFIG) $(TARGET_X86_64)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_X86_64) -$(MKDIR) -p $(TARGET_X86_64)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_X86_64)/src $(CD) $(TARGET_X86_64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_64_ENV) \ ./Configure $(TARGET_X86_64_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_X86_64) \ --openssldir=$(shell pwd)/$(TARGET_X86_64)/lib/ssl \ $(TARGET_X86_64_OPENSSL_CONFIG) $(TARGET_ARM)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_ARM) -$(MKDIR) -p $(TARGET_ARM)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_ARM)/src $(CD) $(TARGET_ARM)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_ENV) \ ./Configure $(TARGET_ARM_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_ARM) \ --openssldir=$(shell pwd)/$(TARGET_ARM)/lib/ssl \ $(TARGET_ARM_OPENSSL_CONFIG) $(TARGET_ARM_V7A)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_ARM_V7A) -$(MKDIR) -p $(TARGET_ARM_V7A)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_ARM_V7A)/src $(CD) $(TARGET_ARM_V7A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_ENV) \ ./Configure $(TARGET_ARM_V7A_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_ARM_V7A) \ --openssldir=$(shell pwd)/$(TARGET_ARM_V7A)/lib/ssl \ $(TARGET_ARM_V7A_OPENSSL_CONFIG) $(TARGET_ARM_V7A_HARD)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_ARM_V7A_HARD) -$(MKDIR) -p $(TARGET_ARM_V7A_HARD)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_ARM_V7A_HARD)/src $(CD) $(TARGET_ARM_V7A_HARD)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_HARD_ENV) \ ./Configure $(TARGET_ARM_V7A_HARD_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_ARM_V7A_HARD) \ --openssldir=$(shell pwd)/$(TARGET_ARM_V7A_HARD)/lib/ssl \ $(TARGET_ARM_V7A_HARD_OPENSSL_CONFIG) $(TARGET_ARM64_V8A)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_ARM64_V8A) -$(MKDIR) -p $(TARGET_ARM64_V8A)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_ARM64_V8A)/src $(CD) $(TARGET_ARM64_V8A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM64_V8A_ENV) \ ./Configure $(TARGET_ARM64_V8A_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_ARM64_V8A) \ --openssldir=$(shell pwd)/$(TARGET_ARM64_V8A)/lib/ssl \ $(TARGET_ARM64_V8A_OPENSSL_CONFIG) $(TARGET_MIPS)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_MIPS) -$(MKDIR) -p $(TARGET_MIPS)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_MIPS)/src $(CD) $(TARGET_MIPS)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS_ENV) \ ./Configure $(TARGET_MIPS_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_MIPS) \ --openssldir=$(shell pwd)/$(TARGET_MIPS)/lib/ssl \ $(TARGET_MIPS_OPENSSL_CONFIG) $(TARGET_MIPS64)/src/$(OPENSSL_DIR): $(OPENSSL_TGZ_SOURCE) $(TOOLCHAIN_MIPS64) -$(MKDIR) -p $(TARGET_MIPS64)/src $(TAR) xf $(OPENSSL_TGZ_SOURCE) -C $(TARGET_MIPS64)/src $(CD) $(TARGET_MIPS64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS64_ENV) \ ./Configure $(TARGET_MIPS64_OPENSSL_CONFIG_TARGET) \ --prefix=$(shell pwd)/$(TARGET_MIPS64) \ --openssldir=$(shell pwd)/$(TARGET_MIPS64)/lib/ssl \ $(TARGET_MIPS64_OPENSSL_CONFIG) # Build/install library $(TARGET_X86)/lib/libssl.a: $(TARGET_X86)/src/$(OPENSSL_DIR) $(CD) $(TARGET_X86)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_ENV) $(MAKE) depend $(CD) $(TARGET_X86)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_ENV) $(MAKE) build_libs $(CD) $(TARGET_X86)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_X86)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_ENV) $(MAKE) install_sw $(TARGET_X86_64)/lib/libssl.a: $(TARGET_X86_64)/src/$(OPENSSL_DIR) $(CD) $(TARGET_X86_64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_64_ENV) $(MAKE) depend $(CD) $(TARGET_X86_64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_64_ENV) $(MAKE) build_libs $(CD) $(TARGET_X86_64)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_X86_64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_X86_64_ENV) $(MAKE) install_sw $(TARGET_ARM)/lib/libssl.a: $(TARGET_ARM)/src/$(OPENSSL_DIR) $(CD) $(TARGET_ARM)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_ENV) $(MAKE) depend $(CD) $(TARGET_ARM)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_ENV) $(MAKE) build_libs $(CD) $(TARGET_ARM)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_ARM)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_ENV) $(MAKE) install_sw $(TARGET_ARM_V7A)/lib/libssl.a: $(TARGET_ARM_V7A)/src/$(OPENSSL_DIR) $(CD) $(TARGET_ARM_V7A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_ENV) $(MAKE) depend $(CD) $(TARGET_ARM_V7A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_ENV) $(MAKE) build_libs $(CD) $(TARGET_ARM_V7A)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_ARM_V7A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_ENV) $(MAKE) install_sw $(TARGET_ARM_V7A_HARD)/lib/libssl.a: $(TARGET_ARM_V7A_HARD)/src/$(OPENSSL_DIR) $(CD) $(TARGET_ARM_V7A_HARD)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_HARD_ENV) $(MAKE) depend $(CD) $(TARGET_ARM_V7A_HARD)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_HARD_ENV) $(MAKE) build_libs $(CD) $(TARGET_ARM_V7A_HARD)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_ARM_V7A_HARD)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM_V7A_HARD_ENV) $(MAKE) install_sw $(TARGET_ARM64_V8A)/lib/libssl.a: $(TARGET_ARM64_V8A)/src/$(OPENSSL_DIR) $(CD) $(TARGET_ARM64_V8A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM64_V8A_ENV) $(MAKE) depend $(CD) $(TARGET_ARM64_V8A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM64_V8A_ENV) $(MAKE) build_libs $(CD) $(TARGET_ARM64_V8A)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_ARM64_V8A)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_ARM64_V8A_ENV) $(MAKE) install_sw $(TARGET_MIPS)/lib/libssl.a: $(TARGET_MIPS)/src/$(OPENSSL_DIR) $(CD) $(TARGET_MIPS)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS_ENV) $(MAKE) depend $(CD) $(TARGET_MIPS)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS_ENV) $(MAKE) build_libs $(CD) $(TARGET_MIPS)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_MIPS)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS_ENV) $(MAKE) install_sw $(TARGET_MIPS64)/lib/libssl.a: $(TARGET_MIPS64)/src/$(OPENSSL_DIR) $(CD) $(TARGET_MIPS64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS64_ENV) $(MAKE) depend $(CD) $(TARGET_MIPS64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS64_ENV) $(MAKE) build_libs $(CD) $(TARGET_MIPS64)/src/$(OPENSSL_DIR) && $(ECHO) '#!/bin/sh\n\nfalse\n' > apps/openssl $(CD) $(TARGET_MIPS64)/src/$(OPENSSL_DIR) && $(TOOLCHAIN_MIPS64_ENV) $(MAKE) install_sw # # Rules to build libwebsockets # libwebsockets: \ libwebsockets-x86 \ libwebsockets-x86_64 \ libwebsockets-armeabi \ libwebsockets-armeabi-v7a \ libwebsockets-armeabi-v7a-hard \ libwebsockets-arm64-v8a \ libwebsockets-mips \ libwebsockets-mips64 \ libwebsockets-x86: $(TARGET_X86)/lib/libwebsockets.a libwebsockets-x86_64: $(TARGET_X86_64)/lib/libwebsockets.a libwebsockets-armeabi: $(TARGET_ARM)/lib/libwebsockets.a libwebsockets-armeabi-v7a: $(TARGET_ARM_V7A)/lib/libwebsockets.a libwebsockets-armeabi-v7a-hard: $(TARGET_ARM_V7A_HARD)/lib/libwebsockets.a libwebsockets-arm64-v8a: $(TARGET_ARM64_V8A)/lib/libwebsockets.a libwebsockets-mips: $(TARGET_MIPS)/lib/libwebsockets.a libwebsockets-mips64: $(TARGET_MIPS64)/lib/libwebsockets.a # Extracting/configuring sources $(TARGET_X86)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_X86) $(TARGET_X86)/lib/libssl.a $(TARGET_X86)/lib/libz.a -$(MKDIR) -p $(TARGET_X86)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_X86)/src -$(MKDIR) -p $(TARGET_X86)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_X86)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_X86_ENV) \ $(CMAKE) $(TARGET_X86_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_X86) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_X86)/lib/libssl.a;$(shell pwd)/$(TARGET_X86)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_X86)/include" \ .. $(TARGET_X86_64)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_X86_64) $(TARGET_X86_64)/lib/libssl.a $(TARGET_X86_64)/lib/libz.a -$(MKDIR) -p $(TARGET_X86_64)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_X86_64)/src -$(MKDIR) -p $(TARGET_X86_64)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_X86_64)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_X86_64_ENV) \ $(CMAKE) $(TARGET_X86_64_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_X86_64) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_X86_64)/lib/libssl.a;$(shell pwd)/$(TARGET_X86_64)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_X86_64)/include" \ .. $(TARGET_ARM)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_ARM) $(TARGET_ARM)/lib/libssl.a $(TARGET_ARM)/lib/libz.a -$(MKDIR) -p $(TARGET_ARM)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_ARM)/src -$(MKDIR) -p $(TARGET_ARM)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_ARM)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_ENV) \ $(CMAKE) $(TARGET_ARM_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_ARM) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_ARM)/lib/libssl.a;$(shell pwd)/$(TARGET_ARM)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_ARM)/include" \ .. $(TARGET_ARM_V7A)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_ARM_V7A) $(TARGET_ARM_V7A)/lib/libssl.a $(TARGET_ARM_V7A)/lib/libz.a -$(MKDIR) -p $(TARGET_ARM_V7A)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_ARM_V7A)/src -$(MKDIR) -p $(TARGET_ARM_V7A)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_ARM_V7A)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_V7A_ENV) \ $(CMAKE) $(TARGET_ARM_V7A_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_ARM_V7A) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_ARM_V7A)/lib/libssl.a;$(shell pwd)/$(TARGET_ARM_V7A)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_ARM_V7A)/include" \ .. $(TARGET_ARM_V7A_HARD)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_ARM_V7A_HARD) $(TARGET_ARM_V7A_HARD)/lib/libssl.a $(TARGET_ARM_V7A_HARD)/lib/libz.a -$(MKDIR) -p $(TARGET_ARM_V7A_HARD)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_ARM_V7A_HARD)/src -$(MKDIR) -p $(TARGET_ARM_V7A_HARD)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_ARM_V7A_HARD)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_V7A_HARD_ENV) \ $(CMAKE) $(TARGET_ARM_V7A_HARD_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_ARM_V7A_HARD) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_ARM_V7A_HARD)/lib/libssl.a;$(shell pwd)/$(TARGET_ARM_V7A_HARD)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_ARM_V7A_HARD)/include" \ .. $(TARGET_ARM64_V8A)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_ARM64_V8A) $(TARGET_ARM64_V8A)/lib/libssl.a $(TARGET_ARM64_V8A)/lib/libz.a -$(MKDIR) -p $(TARGET_ARM64_V8A)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_ARM64_V8A)/src -$(MKDIR) -p $(TARGET_ARM64_V8A)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_ARM64_V8A)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM64_V8A_ENV) \ $(CMAKE) $(TARGET_ARM64_V8A_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_ARM64_V8A) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_ARM64_V8A)/lib/libssl.a;$(shell pwd)/$(TARGET_ARM64_V8A)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_ARM64_V8A)/include" \ .. $(TARGET_MIPS)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_MIPS) $(TARGET_MIPS)/lib/libssl.a $(TARGET_MIPS)/lib/libz.a -$(MKDIR) -p $(TARGET_MIPS)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_MIPS)/src -$(MKDIR) -p $(TARGET_MIPS)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_MIPS)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_MIPS_ENV) \ $(CMAKE) $(TARGET_MIPS_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_MIPS) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_MIPS)/lib/libssl.a;$(shell pwd)/$(TARGET_MIPS)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_MIPS)/include" \ .. $(TARGET_MIPS64)/src/$(LIBWEBSOCKETS_DIR): $(LIBWEBSOCKETS_TGZ_SOURCE) $(TOOLCHAIN_MIPS64) $(TARGET_MIPS64)/lib/libssl.a $(TARGET_MIPS64)/lib/libz.a -$(MKDIR) -p $(TARGET_MIPS64)/src $(TAR) xf $(LIBWEBSOCKETS_TGZ_SOURCE) -C $(TARGET_MIPS64)/src -$(MKDIR) -p $(TARGET_MIPS64)/src/$(LIBWEBSOCKETS_DIR)/build $(CD) $(TARGET_MIPS64)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_MIPS64_ENV) \ $(CMAKE) $(TARGET_MIPS64_LWS_OPTIONS) \ -DCMAKE_INSTALL_PREFIX=$(shell pwd)/$(TARGET_MIPS64) \ -DLWS_OPENSSL_LIBRARIES="$(shell pwd)/$(TARGET_MIPS64)/lib/libssl.a;$(shell pwd)/$(TARGET_MIPS64)/lib/libcrypto.a" \ -DLWS_OPENSSL_INCLUDE_DIRS="$(shell pwd)/$(TARGET_MIPS64)/include" \ .. # Build/install library $(TARGET_X86)/lib/libwebsockets.a: $(TARGET_X86)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_X86)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_X86_ENV) $(MAKE) $(CD) $(TARGET_X86)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_X86_ENV) $(MAKE) install $(TARGET_X86_64)/lib/libwebsockets.a: $(TARGET_X86_64)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_X86_64)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_X86_64_ENV) $(MAKE) $(CD) $(TARGET_X86_64)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_X86_64_ENV) $(MAKE) install $(TARGET_ARM)/lib/libwebsockets.a: $(TARGET_ARM)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_ARM)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_ENV) $(MAKE) $(CD) $(TARGET_ARM)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_ENV) $(MAKE) install $(TARGET_ARM_V7A)/lib/libwebsockets.a: $(TARGET_ARM_V7A)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_ARM_V7A)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_V7A_ENV) $(MAKE) $(CD) $(TARGET_ARM_V7A)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_V7A_ENV) $(MAKE) install $(TARGET_ARM_V7A_HARD)/lib/libwebsockets.a: $(TARGET_ARM_V7A_HARD)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_ARM_V7A_HARD)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_V7A_HARD_ENV) $(MAKE) $(CD) $(TARGET_ARM_V7A_HARD)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM_V7A_HARD_ENV) $(MAKE) install $(TARGET_ARM64_V8A)/lib/libwebsockets.a: $(TARGET_ARM64_V8A)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_ARM64_V8A)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM64_V8A_ENV) $(MAKE) $(CD) $(TARGET_ARM64_V8A)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_ARM64_V8A_ENV) $(MAKE) install $(TARGET_MIPS)/lib/libwebsockets.a: $(TARGET_MIPS)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_MIPS)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_MIPS_ENV) $(MAKE) $(CD) $(TARGET_MIPS)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_MIPS_ENV) $(MAKE) install $(TARGET_MIPS64)/lib/libwebsockets.a: $(TARGET_MIPS64)/src/$(LIBWEBSOCKETS_DIR) $(CD) $(TARGET_MIPS64)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_MIPS64_ENV) $(MAKE) $(CD) $(TARGET_MIPS64)/src/$(LIBWEBSOCKETS_DIR)/build && $(TOOLCHAIN_MIPS64_ENV) $(MAKE) install # # Some rules for housekeeping # clean-ndk: $(NDK_ROOT)/ndk-build clean clean: clean-targets clean-toolchains dist-clean: clean clean-sources clean-targets: \ clean-target-x86 \ clean-target-x86_64 \ clean-target-armeabi \ clean-target-armeabi-v7a \ clean-target-armeabi-v7a-hard \ clean-target-arm64-v8a \ clean-target-mips \ clean-target-mips64 clean-target-x86: -$(RM) -fr $(TARGET_X86) clean-target-x86_64: -$(RM) -fr $(TARGET_X86_64) clean-target-armeabi: -$(RM) -fr $(TARGET_ARM) clean-target-armeabi-v7a: -$(RM) -fr $(TARGET_ARM_V7A) clean-target-armeabi-v7a-hard: -$(RM) -fr $(TARGET_ARM_V7A_HARD) clean-target-arm64-v8a: -$(RM) -fr $(TARGET_ARM64_V8A) clean-target-mips: -$(RM) -fr $(TARGET_MIPS) clean-target-mips64: -$(RM) -fr $(TARGET_MIPS64) clean-sources: \ clean-source-zlib \ clean-source-openssl \ clean-source-libwebsockets clean-source-zlib: -$(RM) $(ZLIB_TGZ_SOURCE) clean-source-openssl: -$(RM) $(OPENSSL_TGZ_SOURCE) clean-source-libwebsockets: -$(RM) $(LIBWEBSOCKETS_TGZ_SOURCE) clean-toolchains: \ clean-toolchain-x86 \ clean-toolchain-x86_64 \ clean-toolchain-armeabi \ clean-toolchain-armeabi-v7a \ clean-toolchain-armeabi-v7a-hard \ clean-toolchain-arm64-v8a \ clean-toolchain-mips \ clean-toolchain-mips64 -$(RM) -fr toolchains clean-toolchain-x86: -$(RM) -fr $(TOOLCHAIN_X86) clean-toolchain-x86_64: -$(RM) -fr $(TOOLCHAIN_X86_64) clean-toolchain-armeabi: -$(RM) -fr $(TOOLCHAIN_ARM) clean-toolchain-armeabi-v7a: -$(RM) -fr $(TOOLCHAIN_ARM_V7A) clean-toolchain-armeabi-v7a-hard: -$(RM) -fr $(TOOLCHAIN_ARM_V7A_HARD) clean-toolchain-arm64-v8a: -$(RM) -fr $(TOOLCHAIN_ARM64_V8A) clean-toolchain-mips: -$(RM) -fr $(TOOLCHAIN_MIPS) clean-toolchain-mips64: -$(RM) -fr $(TOOLCHAIN_MIPS64) # 'make list-targets' prints a list of all targets. # Thanks to: http://stackoverflow.com/questions/4219255/how-do-you-get-the-list-of-targets-in-a-makefile # Modified to allow us to include files in this Makefile. list-targets: MAKE_NO_INCLUDES := 1 export MAKE_NO_INCLUDES list-targets: @$(MAKE) -s list-targets-no-includes list-targets-no-includes: @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | $(AWK) -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | $(SORT) | $(EGREP) -v -e '^[^[:alnum:]]' -e '^$@$$' <file_sep>|name|tests| ---|--- minimal-crypto-jwe|Examples for lws RFC7516 JWE apis minimal-crypto-jwk|Examples for lws RFC7517 JWK apis minimal-crypto-jws|Examples for lws RFC7515 JWS apis minimal-crypto-x509|Examples for lws X.509 apis <file_sep>/** * @file include/dbschema/dbSigData.h * @brief This generated file contains the macro definition providing details of * the signal pairing relationships. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbSigData_h.xsl : 5454 bytes, CRC32 = 3145124183 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBSIGDATA_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBSIGDATA_H_ /**The Signal Parent - List pairing definitions * Arguments: signal, list * signal Name of the signal * list Name of the paired SignalList */ #define SIGNAL_LIST_DATA \ \ SIGNAL_LIST( SigWarning, SigListWarning ), \ SIGNAL_LIST( SigMalfunction, SigListMalfunction ), \ /**The Signal Parent - Child pairing definitions * Arguments (SIGNAL_DATA): signal, text * Arguments (SIGNAL_DATA_CHILD): parent, signal, text * parent Name of the parent signal (only for child signals) * signal Name of the signal * text English description of the Signal */ #define SIGNAL_PAIR_DATA \ \ SIGNAL_DATA( SigOpen, "Open(Any)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenLogic, "Open(Logic)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenRemote, "Open(Remote)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenSCADA, "Open(SCADA)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenIO, "Open(IO)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenLocal, "Open(Local)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenMMI, "Open(HMI)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenPC, "Open(PC)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigSwitchManualTrip, "Open(Manual)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenUndef, "Open(Undefined)" ), \ SIGNAL_DATA_CHILD( SigOpen, SigOpenSim, "Open(Sim)" ), \ \ SIGNAL_DATA( SigAlarm, "Alarm(Any)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmOf, "A(OF)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmUf, "A(UF)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmPhA, "A(PhA)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmPhB, "A(PhB)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmPhC, "A(PhC)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmPhN, "A(PhN)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmHrm, "A(Any HRM)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmOc, "A(OC)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmEf, "A(EF)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmSef, "A(SEF)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmUv, "A(UV)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmOv, "A(OV)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmNps, "A(NPS)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmOcll1, "A(OCLL1)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmOcll2, "A(OCLL2)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmOcll3, "A(OCLL3)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmNpsll1, "A(NPSLL1)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmNpsll2, "A(NPSLL2)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmNpsll3, "A(NPSLL3)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmEfll1, "A(EFLL1)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmEfll2, "A(EFLL2)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmEfll3, "A(EFLL3)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmSefll, "A(SEFLL)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmYn, "A(Yn)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmI2I1, "A(I2/I1)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmROCOF, "A(ROCOF)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmVVS, "A(VVS)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmPDOP, "A(PDOP)" ), \ SIGNAL_DATA_CHILD( SigAlarm, SigAlarmPDUP, "A(PDUP)" ), \ SIGNAL_DATA_CHILD( SigAlarmOc, SigAlarmOc1F, "A(OC1+)" ), \ SIGNAL_DATA_CHILD( SigAlarmOc, SigAlarmOc2F, "A(OC2+)" ), \ SIGNAL_DATA_CHILD( SigAlarmOc, SigAlarmOc3F, "A(OC3+)" ), \ SIGNAL_DATA_CHILD( SigAlarmOc, SigAlarmOc1R, "A(OC1-)" ), \ SIGNAL_DATA_CHILD( SigAlarmOc, SigAlarmOc2R, "A(OC2-)" ), \ SIGNAL_DATA_CHILD( SigAlarmOc, SigAlarmOc3R, "A(OC3-)" ), \ SIGNAL_DATA_CHILD( SigAlarmEf, SigAlarmEf1F, "A(EF1+)" ), \ SIGNAL_DATA_CHILD( SigAlarmEf, SigAlarmEf2F, "A(EF2+)" ), \ SIGNAL_DATA_CHILD( SigAlarmEf, SigAlarmEf3F, "A(EF3+)" ), \ SIGNAL_DATA_CHILD( SigAlarmEf, SigAlarmEf1R, "A(EF1-)" ), \ SIGNAL_DATA_CHILD( SigAlarmEf, SigAlarmEf2R, "A(EF2-)" ), \ SIGNAL_DATA_CHILD( SigAlarmEf, SigAlarmEf3R, "A(EF3-)" ), \ SIGNAL_DATA_CHILD( SigAlarmSef, SigAlarmSefF, "A(SEF+)" ), \ SIGNAL_DATA_CHILD( SigAlarmSef, SigAlarmSefR, "A(SEF-)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv, SigAlarmUv1, "A(UV1)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv, SigAlarmUv2, "A(UV2)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv, SigAlarmUv3, "A(UV3)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv, SigAlarmUv4, "A(UV4 Sag)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv4, SigAlarmUabcUv4, "A(Uabc UV4 Sag)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv4, SigAlarmUrstUv4, "A(Urst UV4 Sag)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv4, SigAlarmUv4Midpoint, "A(UV4 Sag Midpoint)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv4Midpoint, SigAlarmUabcUv4Midpoint, "A(Uabc UV4 Sag Midpoint)" ), \ SIGNAL_DATA_CHILD( SigAlarmUv4Midpoint, SigAlarmUrstUv4Midpoint, "A(Urst UV4 Sag Midpoint)" ), \ SIGNAL_DATA_CHILD( SigAlarmOv, SigAlarmOv1, "A(OV1)" ), \ SIGNAL_DATA_CHILD( SigAlarmOv, SigAlarmOv2, "A(OV2)" ), \ SIGNAL_DATA_CHILD( SigAlarmOv, SigAlarmOv3, "A(OV3)" ), \ SIGNAL_DATA_CHILD( SigAlarmOv, SigAlarmOv4, "A(OV4)" ), \ SIGNAL_DATA_CHILD( SigAlarmNps, SigAlarmNps1F, "A(NPS1+)" ), \ SIGNAL_DATA_CHILD( SigAlarmNps, SigAlarmNps2F, "A(NPS2+)" ), \ SIGNAL_DATA_CHILD( SigAlarmNps, SigAlarmNps3F, "A(NPS3+)" ), \ SIGNAL_DATA_CHILD( SigAlarmNps, SigAlarmNps1R, "A(NPS1-)" ), \ SIGNAL_DATA_CHILD( SigAlarmNps, SigAlarmNps2R, "A(NPS2-)" ), \ SIGNAL_DATA_CHILD( SigAlarmNps, SigAlarmNps3R, "A(NPS3-)" ), \ \ SIGNAL_DATA( SigClosed, "Closed(Any)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedLogic, "Closed(Logic)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedAR, "Closed(AR)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedRemote, "Closed(Remote)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedSCADA, "Closed(SCADA)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedIO, "Closed(IO)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedLocal, "Closed(Local)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedMMI, "Closed(HMI)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedPC, "Closed(PC)" ), \ SIGNAL_DATA_CHILD( SigClosed, SigClosedUndef, "Closed(Undefined)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedACO, "Closed(ACO)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedAR_OcEf, "Closed(AR OC/NPS/EF/SEF)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedAR_Sef, "Closed(AR OC/NPS/EF/SEF)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedABR, "Closed(ABR)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedAR_VE, "Closed(AR VE)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedABRAutoOpen, "Closed(ABR AutoOpen)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedUV3AutoClose, "Closed(UV3 AutoClose)" ), \ SIGNAL_DATA_CHILD( SigClosedAR, SigClosedAutoSync, "Closed(Auto-Sync)" ), \ SIGNAL_DATA_CHILD( SigClosedAR_VE, SigClosedAR_Uv, "Closed(AR UV)" ), \ SIGNAL_DATA_CHILD( SigClosedAR_VE, SigClosedAR_Ov, "Closed(AR OV)" ), \ \ SIGNAL_DATA( SigMalfunction, "Malfunction" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigRTCHwFault, "RTC Hardware Fault" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigMalfRc10, "Controller Fault" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigMalfOsm, "OSM Fault" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigMalfLoadSavedDb, "Incorrect DB Values Loaded" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigMalfOsmA, "Fault Ph A" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigMalfOsmB, "Fault Ph B" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigMalfOsmC, "Fault Ph C" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigBatteryTestFaulty, "Battery Test Circuit Fault" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigGPSMalfunction, "GPS Malfunction" ), \ SIGNAL_DATA_CHILD( SigMalfunction, sigFirmwareHardwareMismatch, "Firmware/Hardware Mismatch" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigUSBOCMalfunction, "USB Overcurrent" ), \ SIGNAL_DATA_CHILD( SigMalfunction, SigCBFMalf, "CBF Malfunctions" ), \ SIGNAL_DATA_CHILD( SigMalfRc10, SigExtSupplyStatusOverLoad, "External Load Overload" ), \ SIGNAL_DATA_CHILD( SigMalfRc10, SigMalfComms, "Module Comms Error" ), \ SIGNAL_DATA_CHILD( SigMalfRc10, SigMalfModule, "Controller Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfRc10, SigMalfCanBus, "CAN Bus Malfunction" ), \ SIGNAL_DATA_CHILD( SigMalfComms, SigMalfSimComms, "SIM Comms Error" ), \ SIGNAL_DATA_CHILD( SigMalfComms, SigMalfIo1Comms, "I/O1 Comms Error" ), \ SIGNAL_DATA_CHILD( SigMalfComms, SigMalfIo2Comms, "I/O2 Comms Error" ), \ SIGNAL_DATA_CHILD( SigMalfComms, SigMalfPanelComms, "Panel Comms Error" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfRelay, "Relay Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfIo1Fault, "I/O1 Fault" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfIo2Fault, "I/O2 Fault" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigBatteryChargerStatusFails, "Battery Charger Fault" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigModuleSimHealthFault, "SIM Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigModuleTypeSimDisconnected, "SIM Disconnected" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfPanelModule, "Panel Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigOperationFaultCap, "Capacitor Voltage Abnormal" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfSimRunningMiniBootloader, "SIM in Mini Bootloader Mode" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfSectionaliserMismatch, "Sectionaliser configuration mismatch" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigModuleTypePscDisconnected, "PSC Disconnected" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfPscRunningMiniBootloader, "PSC in Mini Bootloader Mode" ), \ SIGNAL_DATA_CHILD( SigMalfModule, SigMalfPscFault, "PSC Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfRelay, SigMalfRelayLog, "Log process fault" ), \ SIGNAL_DATA_CHILD( SigMalfRelay, SigMalfRel03, "REL-03 Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfRelay, SigMalfRel15, "REL-15 Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfRelay, SigMalfRel15_4G, "REL-15-4G Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfRelay, SigMalfWLAN, "WLAN Fault" ), \ SIGNAL_DATA_CHILD( SigMalfRelay, SigMalfRel20, "REL-20 Module Fault" ), \ SIGNAL_DATA_CHILD( SigMalfRelay, SigMalfAnalogBoard, "Analog Board Error" ), \ SIGNAL_DATA_CHILD( SigModuleSimHealthFault, SigOSMActuatorFaultStatusQ503Failed, "OSM Actuator FaultStatus Q503Failed" ), \ SIGNAL_DATA_CHILD( SigModuleSimHealthFault, SigOSMActuatorFaultStatusQ503FailedA, "" ), \ SIGNAL_DATA_CHILD( SigModuleSimHealthFault, SigOSMActuatorFaultStatusQ503FailedB, "" ), \ SIGNAL_DATA_CHILD( SigModuleSimHealthFault, SigOSMActuatorFaultStatusQ503FailedC, "" ), \ SIGNAL_DATA_CHILD( SigModuleSimHealthFault, SigModuleSimUnhealthy, "SIM Module Health Fault" ), \ SIGNAL_DATA_CHILD( SigMalfCanBus, SigCANControllerOverrun, "CANControllerOverrun" ), \ SIGNAL_DATA_CHILD( SigMalfCanBus, SigCANControllerError, "CANControllerError" ), \ SIGNAL_DATA_CHILD( SigMalfCanBus, SigCANMessagebufferoverflow, "CANMessagebufferoverflow" ), \ SIGNAL_DATA_CHILD( SigMalfCanBus, SigRelayCANMessagebufferoverflow, "CANMessagebufferoverflow" ), \ SIGNAL_DATA_CHILD( SigMalfCanBus, SigRelayCANControllerError, "CANControllerError" ), \ SIGNAL_DATA_CHILD( SigMalfOsm, SigTripCloseRequestStatusTripFail, "Excessive To" ), \ SIGNAL_DATA_CHILD( SigMalfOsm, SigTripCloseRequestStatusCloseFail, "Excessive Tc" ), \ SIGNAL_DATA_CHILD( SigMalfOsm, SigOSMActuatorFaultStatusCoilOc, "OSM Coil OC" ), \ SIGNAL_DATA_CHILD( SigMalfOsm, SigOsmActuatorFaultStatusCoilSc, "OSM Coil SC" ), \ SIGNAL_DATA_CHILD( SigMalfOsm, SigOsmLimitFaultStatusFault, "OSM Limit Switch Fault" ), \ SIGNAL_DATA_CHILD( SigMalfOsmA, SigOSMActuatorFaultStatusCoilOcA, "Coil Ph A OC" ), \ SIGNAL_DATA_CHILD( SigMalfOsmA, SigOsmActuatorFaultStatusCoilScA, "Coil Ph A SC" ), \ SIGNAL_DATA_CHILD( SigMalfOsmA, SigOsmLimitFaultStatusFaultA, "Limit Switch Fault Ph A" ), \ SIGNAL_DATA_CHILD( SigMalfOsmA, SigTripCloseRequestStatusTripFailA, "Excessive To Ph A" ), \ SIGNAL_DATA_CHILD( SigMalfOsmA, SigTripCloseRequestStatusCloseFailA, "Excessive Tc Ph A" ), \ SIGNAL_DATA_CHILD( SigMalfOsmB, SigOSMActuatorFaultStatusCoilOcB, "Coil Ph B OC" ), \ SIGNAL_DATA_CHILD( SigMalfOsmB, SigOsmActuatorFaultStatusCoilScB, "Coil Ph B SC" ), \ SIGNAL_DATA_CHILD( SigMalfOsmB, SigOsmLimitFaultStatusFaultB, "Limit Switch Fault Ph B" ), \ SIGNAL_DATA_CHILD( SigMalfOsmB, SigTripCloseRequestStatusTripFailB, "Excessive To Ph B" ), \ SIGNAL_DATA_CHILD( SigMalfOsmB, SigTripCloseRequestStatusCloseFailB, "Excessive Tc Ph B" ), \ SIGNAL_DATA_CHILD( SigMalfOsmC, SigOSMActuatorFaultStatusCoilOcC, "Coil Ph C OC" ), \ SIGNAL_DATA_CHILD( SigMalfOsmC, SigOsmActuatorFaultStatusCoilScC, "Coil Ph C SC" ), \ SIGNAL_DATA_CHILD( SigMalfOsmC, SigOsmLimitFaultStatusFaultC, "Limit Switch Fault Ph C" ), \ SIGNAL_DATA_CHILD( SigMalfOsmC, SigTripCloseRequestStatusTripFailC, "Excessive To Ph C" ), \ SIGNAL_DATA_CHILD( SigMalfOsmC, SigTripCloseRequestStatusCloseFailC, "Excessive Tc Ph C" ), \ SIGNAL_DATA_CHILD( SigUSBOCMalfunction, SigUSBOCOnboard, "USB Overcurrent Onboard" ), \ SIGNAL_DATA_CHILD( SigUSBOCMalfunction, SigUSBOCExternal, "USB Overcurrent External" ), \ SIGNAL_DATA_CHILD( SigUSBOCMalfunction, SigUSBOCModem, "USB Overcurrent Modem" ), \ SIGNAL_DATA_CHILD( SigUSBOCMalfunction, SigUSBOCWifi, "USB Overcurrent wifi" ), \ SIGNAL_DATA_CHILD( SigUSBOCMalfunction, SigUSBOCGPS, "USB Overcurrent GPS" ), \ SIGNAL_DATA_CHILD( SigUSBOCMalfunction, SigUSBOCOnboardA, "USB Overcurrent USB A" ), \ SIGNAL_DATA_CHILD( SigUSBOCMalfunction, SigUSBOCOnboardB, "USB Overcurrent USB B" ), \ SIGNAL_DATA_CHILD( SigCBFMalf, SigCBFMalfunction, "CBF Malfunction" ), \ SIGNAL_DATA_CHILD( SigCBFMalf, SigCBFBackupTrip, "CBF Backup Trip" ), \ \ SIGNAL_DATA( SigWarning, "Warning" ), \ SIGNAL_DATA_CHILD( SigWarning, SigCtrlHltOn, "Hot Line Tag On" ), \ SIGNAL_DATA_CHILD( SigWarning, SigStatusCloseBlocking, "Logical Block Close" ), \ SIGNAL_DATA_CHILD( SigWarning, UpdateFailed, "Update Failed" ), \ SIGNAL_DATA_CHILD( SigWarning, UpdateReverted, "Update Reverted" ), \ SIGNAL_DATA_CHILD( SigWarning, UpdateSettingsLogFailed, "Update Settings or Logs Failed" ), \ SIGNAL_DATA_CHILD( SigWarning, SigUSBUnsupported, "USB Unsupported" ), \ SIGNAL_DATA_CHILD( SigWarning, SigUSBMismatched, "USB Mismatched" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSimNotCalibrated, "SIM Not Calibrated" ), \ SIGNAL_DATA_CHILD( SigWarning, SigLineSupplyStatusAbnormal, "Line Supply Status Abnormal" ), \ SIGNAL_DATA_CHILD( SigWarning, SigUSBHostOff, "USB Host Off" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSupplyUnhealthy, "Source Not Healthy" ), \ SIGNAL_DATA_CHILD( SigWarning, ACOUnhealthy, "ACO Unhealthy" ), \ SIGNAL_DATA_CHILD( SigWarning, SigP2PCommFail, "Peer Comms Failed" ), \ SIGNAL_DATA_CHILD( SigWarning, SigOperWarning, "Operational Warning" ), \ SIGNAL_DATA_CHILD( SigWarning, SigStatusDialupFailed, "Dial-up Failed" ), \ SIGNAL_DATA_CHILD( SigWarning, SigBatteryStatusAbnormal, "Battery Status Abnormal" ), \ SIGNAL_DATA_CHILD( SigWarning, SigBatteryChargerStatusLowPower, "Battery Charger State: Low Power" ), \ SIGNAL_DATA_CHILD( SigWarning, SigUPSStatusAcOff, "AC Off (On Battery Supply)" ), \ SIGNAL_DATA_CHILD( SigWarning, SigUPSStatusBatteryOff, "Battery Off (On AC Supply)" ), \ SIGNAL_DATA_CHILD( SigWarning, SigUPSPowerDown, "Critical Battery Level" ), \ SIGNAL_DATA_CHILD( SigWarning, SigLineSupplyStatusOff, "Line Supply Status Off" ), \ SIGNAL_DATA_CHILD( SigWarning, SigBatteryTestCheckBattery, "Check Battery" ), \ SIGNAL_DATA_CHILD( SigWarning, SigIncorrectPhaseSeq, "Incorrect Phase Sequence" ), \ SIGNAL_DATA_CHILD( SigWarning, SigLogicConfigIssue, "Logic Configuration Issue" ), \ SIGNAL_DATA_CHILD( SigWarning, SigStatusIEC61499FailedFBOOT, "SGA fboot Failed" ), \ SIGNAL_DATA_CHILD( SigWarning, SigGPSUnplugged, "GPS Unplugged" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSimAndOsmModelMismatch, "SIM and OSM Model Mismatch" ), \ SIGNAL_DATA_CHILD( SigWarning, LogicSGAStopped, "Logic/SGA Stopped" ), \ SIGNAL_DATA_CHILD( SigWarning, LogicSGAThrottling, "Logic/SGA Throttling" ), \ SIGNAL_DATA_CHILD( SigWarning, LoadedScadaRestartReqWarning, "SCADA Config requires RC restart" ), \ SIGNAL_DATA_CHILD( SigWarning, SNTPUnableToSync, "SNTP Unable to Sync" ), \ SIGNAL_DATA_CHILD( SigWarning, CanBusHighPower, "CAN Bus High Power" ), \ SIGNAL_DATA_CHILD( SigWarning, SigCorruptedPartition, "Corrupted Partition" ), \ SIGNAL_DATA_CHILD( SigWarning, SigRLM20UpgradeFailure, "RLM-20 Upgrade Failure" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSIMCardError, "SIM Card Error" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSIMCardPINReqd, "SIM Card PIN Required" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSIMCardPINError, "SIM Card PIN Error" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSIMCardBlockedByPIN, "SIM Card Blocked" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSIMCardPUKError, "SIM Card PUK Error" ), \ SIGNAL_DATA_CHILD( SigWarning, SigSIMCardBlockedPerm, "SIM Card Blocked Permanently" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchPositionStatusUnavailable, "OSM Position Status Unavailable" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchDisconnectionStatus, "OSM Disconnected" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchLockoutStatusMechaniclocked, "Mechanically Locked" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigDriverStatusNotReady, "SIM Caps Not Charged" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchDisconnectionStatusA, "Disconnected Ph A" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchDisconnectionStatusB, "Disconnected Ph B" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchDisconnectionStatusC, "Disconnected Ph C" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchLockoutStatusMechaniclockedA, "Mechanically Locked Ph A" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchLockoutStatusMechaniclockedB, "Mechanically Locked Ph B" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchLockoutStatusMechaniclockedC, "Mechanically Locked Ph C" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchLogicallyLockedA, "SW Locked Ph A" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchLogicallyLockedB, "SW Locked Ph B" ), \ SIGNAL_DATA_CHILD( SigOperWarning, SigSwitchLogicallyLockedC, "SW Locked Ph C" ), \ SIGNAL_DATA_CHILD( LogicSGAStopped, LogicSGAStoppedLogic, "Logic/SGA Stopped Logic" ), \ SIGNAL_DATA_CHILD( LogicSGAStopped, LogicSGAStoppedSGA, "Logic/SGA Stopped SGA" ), \ SIGNAL_DATA_CHILD( LogicSGAThrottling, LogicSGAThrottlingLogic, "Logic/SGA Throttling Logic" ), \ SIGNAL_DATA_CHILD( LogicSGAThrottling, LogicSGAThrottlingSGA, "Logic/SGA Throttling SGA" ), \ \ SIGNAL_DATA( SigGenProtInit, "Prot initiated" ), \ SIGNAL_DATA_CHILD( SigGenProtInit, SigPickup, "Pickup" ), \ SIGNAL_DATA_CHILD( SigGenProtInit, SigGenARInit, "AR initiated" ), \ SIGNAL_DATA_CHILD( SigGenProtInit, SigGenARInitA, "AR initiated SW Ph A" ), \ SIGNAL_DATA_CHILD( SigGenProtInit, SigGenARInitB, "AR initiated SW Ph B" ), \ SIGNAL_DATA_CHILD( SigGenProtInit, SigGenARInitC, "AR initiated SW Ph C" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupOcll, "P(OCLL3)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupEfll, "P(EFLL3)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupOf, "P(OF)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupUf, "P(UF)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupPhA, "P(PhA)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupPhB, "P(PhB)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupPhC, "P(PhC)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupPhN, "P(PhN)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupHrm, "P(Any HRM)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupOcll1, "P(OCLL1)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupOcll2, "P(OCLL2)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupNpsll1, "P(NPSLL1)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupNpsll2, "P(NPSLL2)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupNpsll3, "P(NPSLL3)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupEfll1, "P(EFLL1)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupEfll2, "P(EFLL2)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupSefll, "P(SEFLL)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupOc, "P(OC)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupEf, "P(EF)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupSef, "P(SEF)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupUv, "P(UV)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupOv, "P(OV)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupABR, "P(ABR)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupNps, "P(NPS)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupYn, "P(Yn)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupI2I1, "P(I2/I1)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupROCOF, "P(ROCOF)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupVVS, "P(VVS)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupPDOP, "P(PDOP)" ), \ SIGNAL_DATA_CHILD( SigPickup, SigPickupPDUP, "P(PDUP)" ), \ SIGNAL_DATA_CHILD( SigPickupOc, SigPickupOc1F, "P(OC1+)" ), \ SIGNAL_DATA_CHILD( SigPickupOc, SigPickupOc2F, "P(OC2+)" ), \ SIGNAL_DATA_CHILD( SigPickupOc, SigPickupOc3F, "P(OC3+)" ), \ SIGNAL_DATA_CHILD( SigPickupOc, SigPickupOc1R, "P(OC1-)" ), \ SIGNAL_DATA_CHILD( SigPickupOc, SigPickupOc2R, "P(OC2-)" ), \ SIGNAL_DATA_CHILD( SigPickupOc, SigPickupOc3R, "P(OC3-)" ), \ SIGNAL_DATA_CHILD( SigPickupEf, SigPickupEf1F, "P(EF1+)" ), \ SIGNAL_DATA_CHILD( SigPickupEf, SigPickupEf2F, "P(EF2+)" ), \ SIGNAL_DATA_CHILD( SigPickupEf, SigPickupEf3F, "P(EF3+)" ), \ SIGNAL_DATA_CHILD( SigPickupEf, SigPickupEf1R, "P(EF1-)" ), \ SIGNAL_DATA_CHILD( SigPickupEf, SigPickupEf2R, "P(EF2-)" ), \ SIGNAL_DATA_CHILD( SigPickupEf, SigPickupEf3R, "P(EF3-)" ), \ SIGNAL_DATA_CHILD( SigPickupSef, SigPickupSefF, "P(SEF+)" ), \ SIGNAL_DATA_CHILD( SigPickupSef, SigPickupSefR, "P(SEF-)" ), \ SIGNAL_DATA_CHILD( SigPickupUv, SigPickupUv1, "P(UV1)" ), \ SIGNAL_DATA_CHILD( SigPickupUv, SigPickupUv2, "P(UV2)" ), \ SIGNAL_DATA_CHILD( SigPickupUv, SigPickupUv3, "P(UV3)" ), \ SIGNAL_DATA_CHILD( SigPickupUv, SigPickupUv4, "P(UV4 Sag)" ), \ SIGNAL_DATA_CHILD( SigPickupUv4, SigPickupUabcUv4, "P(Uabc UV4 Sag)" ), \ SIGNAL_DATA_CHILD( SigPickupUv4, SigPickupUrstUv4, "P(Urst UV4 Sag)" ), \ SIGNAL_DATA_CHILD( SigPickupOv, SigPickupOv1, "P(OV1)" ), \ SIGNAL_DATA_CHILD( SigPickupOv, SigPickupOv2, "P(OV2)" ), \ SIGNAL_DATA_CHILD( SigPickupOv, SigPickupOv3, "P(OV3)" ), \ SIGNAL_DATA_CHILD( SigPickupOv, SigPickupOv4, "P(OV4)" ), \ SIGNAL_DATA_CHILD( SigPickupNps, SigPickupNps1F, "P(NPS1+)" ), \ SIGNAL_DATA_CHILD( SigPickupNps, SigPickupNps2F, "P(NPS2+)" ), \ SIGNAL_DATA_CHILD( SigPickupNps, SigPickupNps3F, "P(NPS3+)" ), \ SIGNAL_DATA_CHILD( SigPickupNps, SigPickupNps1R, "P(NPS1-)" ), \ SIGNAL_DATA_CHILD( SigPickupNps, SigPickupNps2R, "P(NPS2-)" ), \ SIGNAL_DATA_CHILD( SigPickupNps, SigPickupNps3R, "P(NPS3-)" ), \ \ SIGNAL_DATA( SigFaultTarget, "Fault Target Set" ), \ SIGNAL_DATA_CHILD( SigFaultTarget, SigFaultTargetOpen, "Open Fault Target Set" ), \ SIGNAL_DATA_CHILD( SigFaultTarget, SigFaultTargetNonOpen, "Fault Target Non-Open" ), \ SIGNAL_DATA_CHILD( SigFaultTargetOpen, SigOpenGrp1, "Group 1 Trip" ), \ SIGNAL_DATA_CHILD( SigFaultTargetOpen, SigOpenGrp2, "Group 2 Trip" ), \ SIGNAL_DATA_CHILD( SigFaultTargetOpen, SigOpenGrp3, "Group 3 Trip" ), \ SIGNAL_DATA_CHILD( SigFaultTargetOpen, SigOpenGrp4, "Group 4 Trip" ), \ SIGNAL_DATA_CHILD( SigFaultTargetOpen, SigOpenACO, "Open(ACO)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetOpen, SigOpenProt, "Open(Prot)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetOpen, SigOpenABRAutoOpen, "Open(ABR AutoOpen)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenOf, "Open(OF)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenUf, "Open(UF)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenPhA, "Open(PhA)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenPhB, "Open(PhB)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenPhC, "Open(PhC)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenPhN, "Open(PhN)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenHrm, "Open(Any HRM)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenNpsll1, "Open(NPSLL1)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenNpsll2, "Open(NPSLL2)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenNpsll3, "Open(NPSLL3)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenSefll, "Open(SEFLL)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenOc, "Open(OC)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenEf, "Open(EF)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenSef, "Open(SEF)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenUv, "Open(UV)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenOv, "Open(OV)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenLSRM, "Open(LSRM)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenSectionaliser, "Open(Sectionaliser)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenOcllTop, "Open(OCLL)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenEfllTop, "Open(EFLL)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenNps, "Open(NPS)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenYn, "Open(Yn)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenI2I1, "Open(I2/I1)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenROCOF, "Open(ROCOF)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenVVS, "Open(VVS)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenPDOP, "Open(PDOP)" ), \ SIGNAL_DATA_CHILD( SigOpenProt, SigOpenPDUP, "Open(PDUP)" ), \ SIGNAL_DATA_CHILD( SigOpenOc, SigOpenOc1F, "Open(OC1+)" ), \ SIGNAL_DATA_CHILD( SigOpenOc, SigOpenOc2F, "Open(OC2+)" ), \ SIGNAL_DATA_CHILD( SigOpenOc, SigOpenOc3F, "Open(OC3+)" ), \ SIGNAL_DATA_CHILD( SigOpenOc, SigOpenOc1R, "Open(OC1-)" ), \ SIGNAL_DATA_CHILD( SigOpenOc, SigOpenOc2R, "Open(OC2-)" ), \ SIGNAL_DATA_CHILD( SigOpenOc, SigOpenOc3R, "Open(OC3-)" ), \ SIGNAL_DATA_CHILD( SigOpenEf, SigOpenEf1F, "Open(EF1+)" ), \ SIGNAL_DATA_CHILD( SigOpenEf, SigOpenEf2F, "Open(EF2+)" ), \ SIGNAL_DATA_CHILD( SigOpenEf, SigOpenEf3F, "Open(EF3+)" ), \ SIGNAL_DATA_CHILD( SigOpenEf, SigOpenEf1R, "Open(EF1-)" ), \ SIGNAL_DATA_CHILD( SigOpenEf, SigOpenEf2R, "Open(EF2-)" ), \ SIGNAL_DATA_CHILD( SigOpenEf, SigOpenEf3R, "Open(EF3-)" ), \ SIGNAL_DATA_CHILD( SigOpenSef, SigOpenSefF, "Open(SEF+)" ), \ SIGNAL_DATA_CHILD( SigOpenSef, SigOpenSefR, "Open(SEF-)" ), \ SIGNAL_DATA_CHILD( SigOpenUv, SigOpenUv1, "Open(UV1)" ), \ SIGNAL_DATA_CHILD( SigOpenUv, SigOpenUv2, "Open(UV2)" ), \ SIGNAL_DATA_CHILD( SigOpenUv, SigOpenUv3, "Open(UV3)" ), \ SIGNAL_DATA_CHILD( SigOpenUv, SigOpenUv4, "Open(UV4 Sag)" ), \ SIGNAL_DATA_CHILD( SigOpenOv, SigOpenOv1, "Open(OV1)" ), \ SIGNAL_DATA_CHILD( SigOpenOv, SigOpenOv2, "Open(OV2)" ), \ SIGNAL_DATA_CHILD( SigOpenOv, SigOpenOv3, "Open(OV3)" ), \ SIGNAL_DATA_CHILD( SigOpenOv, SigOpenOv4, "Open(OV4)" ), \ SIGNAL_DATA_CHILD( SigOpenOcllTop, SigOpenOcll, "Open(OCLL3)" ), \ SIGNAL_DATA_CHILD( SigOpenOcllTop, SigOpenOcll1, "Open(OCLL1)" ), \ SIGNAL_DATA_CHILD( SigOpenOcllTop, SigOpenOcll2, "Open(OCLL2)" ), \ SIGNAL_DATA_CHILD( SigOpenEfllTop, SigOpenEfll, "Open(EFLL3)" ), \ SIGNAL_DATA_CHILD( SigOpenEfllTop, SigOpenEfll1, "Open(EFLL1)" ), \ SIGNAL_DATA_CHILD( SigOpenEfllTop, SigOpenEfll2, "Open(EFLL2)" ), \ SIGNAL_DATA_CHILD( SigOpenNps, SigOpenNps1F, "Open(NPS1+)" ), \ SIGNAL_DATA_CHILD( SigOpenNps, SigOpenNps2F, "Open(NPS2+)" ), \ SIGNAL_DATA_CHILD( SigOpenNps, SigOpenNps3F, "Open(NPS3+)" ), \ SIGNAL_DATA_CHILD( SigOpenNps, SigOpenNps1R, "Open(NPS1-)" ), \ SIGNAL_DATA_CHILD( SigOpenNps, SigOpenNps2R, "Open(NPS2-)" ), \ SIGNAL_DATA_CHILD( SigOpenNps, SigOpenNps3R, "Open(NPS3-)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigMntActivated, "MNT Exceeded" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Midpoint, "Open(UV4 Sag Mid)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Ua, "UV4 Sag(Ua)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Ub, "UV4 Sag(Ub)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Uc, "UV4 Sag(Uc)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Ur, "UV4 Sag(Ur)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Us, "UV4 Sag(Us)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Ut, "UV4 Sag(Ut)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Uab, "UV4 Sag(Uab)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Ubc, "UV4 Sag(Ubc)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Uca, "UV4 Sag(Uca)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Urs, "UV4 Sag(Urs)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Ust, "UV4 Sag(Ust)" ), \ SIGNAL_DATA_CHILD( SigFaultTargetNonOpen, SigOpenUv4Utr, "UV4 Sag(Utr)" ), \ SIGNAL_DATA_CHILD( SigOpenUv4Midpoint, SigOpenUabcUv4Midpoint, "Open(Uabc UV4 Sag Midpoint)" ), \ SIGNAL_DATA_CHILD( SigOpenUv4Midpoint, SigOpenUrstUv4Midpoint, "Open(Urst UV4 Sag Midpoint)" ), \ /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBSIGDATA_H_ <file_sep>#!/bin/sh # # Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. # # Licensed under the OpenSSL license (the "License"). You may not use # this file except in compliance with the License. You can obtain a copy # in the file LICENSE in the source distribution or at # https://www.openssl.org/source/license.html # # OpenSSL external testing using the Python Cryptography module # set -e O_EXE=`pwd`/$BLDTOP/apps O_BINC=`pwd`/$BLDTOP/include O_SINC=`pwd`/$SRCTOP/include O_LIB=`pwd`/$BLDTOP export PATH=$O_EXE:$PATH export LD_LIBRARY_PATH=$O_LIB:$LD_LIBRARY_PATH # Check/Set openssl version OPENSSL_VERSION=`openssl version | cut -f 2 -d ' '` echo "------------------------------------------------------------------" echo "Testing OpenSSL using Python Cryptography:" echo " CWD: $PWD" echo " SRCTOP: $SRCTOP" echo " BLDTOP: $BLDTOP" echo " OpenSSL version: $OPENSSL_VERSION" echo "------------------------------------------------------------------" cd $SRCTOP # Create a python virtual env and activate rm -rf venv-pycrypto virtualenv venv-pycrypto . ./venv-pycrypto/bin/activate cd pyca-cryptography pip install .[test] echo "------------------------------------------------------------------" echo "Building cryptography" echo "------------------------------------------------------------------" python ./setup.py clean CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" python ./setup.py build echo "------------------------------------------------------------------" echo "Running tests" echo "------------------------------------------------------------------" CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" python ./setup.py test cd ../ deactivate rm -rf venv-pycrypto exit 0 <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/crypto.h> """ TYPES = """ static const long Cryptography_HAS_FIPS; """ FUNCTIONS = """ int FIPS_mode_set(int); int FIPS_mode(void); """ CUSTOMIZATIONS = """ #if CRYPTOGRAPHY_IS_LIBRESSL static const long Cryptography_HAS_FIPS = 0; int (*FIPS_mode_set)(int) = NULL; int (*FIPS_mode)(void) = NULL; #else static const long Cryptography_HAS_FIPS = 1; #endif """ <file_sep>## Using Content Security Policy (CSP) ### What is it? Modern browsers have recently implemented a new feature providing a sort of "selinux for your web page". If the server sends some new headers describing the security policy for the content, then the browser strictly enforces it. ### Why would we want to do that? Scripting on webpages is pretty universal, sometimes the scripts come from third parties, and sometimes attackers find a way to inject scripts into the DOM, eg, through scripts in content. CSP lets the origin server define what is legitimate for the page it served and everything else is denied. The CSP for warmcat.com and libwebsockets.org looks like this, I removed a handful of whitelisted image sources like travis status etc for clarity... ``` "content-security-policy": "default-src 'none'; img-src 'self' data:; script-src 'self'; font-src 'self'; style-src 'self'; connect-src 'self'; frame-ancestors 'none'; base-uri 'none';", "x-content-type-options": "nosniff", "x-xss-protection": "1; mode=block", "x-frame-options": "deny", "referrer-policy": "no-referrer" ``` The result of this is the browser won't let the site content be iframed, and it will reject any inline styles or inline scripts. Fonts, css, ajax, ws and images are only allowed to come from 'self', ie, the server that served the page. You may inject your script, or deceptive styles: it won't run or be shown. Because inline scripts are banned, the usual methods for XSS are dead; the attacker can't even load js from another server. So these rules provide a very significant increase in client security. ### Implications of strict CSP Halfhearted CSP isn't worth much. The only useful approach is to start with `default-src 'none'` which disables everything, and then whitelist the minimum needed for the pages to operate. "Minimum needed for the pages to operate" doesn't mean defeat the protections necessary so everything in the HTML can stay the same... it means adapt the pages to want the minimum and then enable the minimum. The main point is segregation of styles and script away from the content, in files referenced in the document `<head>` section, along these lines: ``` <head> <meta charset=utf-8 http-equiv="Content-Language" content="en"/> <link rel="stylesheet" type="text/css" href="test.css"/> <script type='text/javascript' src="/lws-common.js"></script> <script type='text/javascript' src='test.js'></script> <title>Minimal Websocket test app</title> </head> ``` #### Inline styles must die All styling must go in one or more `.css` file(s) best served by the same server... while you can whitelist other sources in the CSP if you have to, unless you control that server as well, you are allowing whoever gains access to that server access to your users. Inline styles are no longer allowed (eg, "style='font-size:120%'" in the HTML)... they must be replaced by reference to one or more CSS class, which in this case includes "font-size:120%". This has always been the best practice anyway, and your pages will be cleaner and more maintainable. #### Inline scripts must die Inline scripts need to be placed in a `.js` file and loaded in the page head section, again it should only be from the server that provided the page. Then, any kind of inline script, yours or injected or whatever, will be completely rejected by the browser. #### onXXX must be replaced by eventListener Inline `onclick()` etc are kinds of inline scripting and are banned. Modern browsers have offered a different system called ["EventListener" for a while](https://developer.mozilla.org/en-US/docs/Web/API/EventListener) which allows binding of events to DOM elements in JS. A bunch of different named events are possible to listen on, commonly the `.js` file will ask for one or both of ``` window.addEventListener("load", function() { ... }, false); document.addEventListener("DOMContentLoaded", function() { ... }, false); ``` These give the JS a way to trigger when either everything on the page has been "loaded" or the DOM has been populated from the initial HTML. These can set up other event listeners on the DOM objects and aftwards the events will drive what happens on the page from user interaction and / or timers etc. If you have `onclick` in your HTML today, you would replace it with an id for the HTML element, then eg in the DOMContentLoaded event listener, apply ``` document.getElementById("my-id").addEventListener("click", function() { ... }, false); ``` ie the .js file becomes the only place with the "business logic" of the elements mentioned in the HTML, applied at runtime. #### Do you really need external sources? Do your scripts and fonts really need to come from external sources? If your caching policy is liberal, they are not actually that expensive to serve once and then the user is using his local copy for the next days. Some external sources are marked as anti-privacy in modern browsers, meaning they track your users, in turn meaning if your site refers to them, you will lose your green padlock in the browser. If the content license allows it, hosting them on "self", ie, the same server that provided the HTML, will remove that problem. Bringing in scripts from external sources is actually quite scary from the security perspective. If someone hacks the `ajax.googleapis.com` site to serve a hostile, modified jquery, half the Internet will instantly become malicious. However if you serve it yourself, unless your server was specifically targeted you know it will continue to serve what you expect. Since these scripts are usually sent with cache control headers for local caching duration of 1 year, the cost of serving them yourself under the same conditions is small but your susceptibility to attack is reduced to only taking care of your own server. And there is a privacy benefit that google is not informed of your users' IPs and activities on your site. <file_sep>INCLUDE(CMakeForceCompiler) # this one is important SET(CMAKE_SYSTEM_NAME Linux) #this one not so much SET(CMAKE_SYSTEM_VERSION 1) # cortexa7hf-neon-poky-linux-gnueabi # specify the cross compiler # Use default CC, pocky script will take care of this # SET(CMAKE_C_COMPILER /opt/poky/2.2.2/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc) # SET(CMAKE_CXX_COMPILER /opt/poky/2.2.2/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++) # specify the OPENSSL link and build information for cross-compiler version isntead of calling the stupid find_package(OpenSSL, required) function in CMakelist. # SET(OPENSSL_FOUND TRUE) # SET(OPENSSL_INCLUDE_DIR /home/dev/Code/bsp-morty/relay20/tmp/sysroots/ls1021atwr/usr/include) # SET(OPENSSL_CRYPTO_LIBRARY /home/dev/Code/bsp-morty/relay20/tmp/sysroots/ls1021atwr/usr/lib/libcrypto.so) # SET(OPENSSL_SSL_LIBRARY /home/dev/Code/bsp-morty/relay20/tmp/sysroots/ls1021atwr/usr/lib/libssl.so) # SET(OPENSSL_LIBRARIES /home/dev/Code/bsp-morty/relay20/tmp/sysroots/ls1021atwr/usr/lib/libssl.so; /home/dev/Code/bsp-morty/relay20/tmp/sysroots/ls1021atwr/usr/lib/libcrypto.so) # SET(OPENSSL_VERSION 1.0.2g) SET(__ARM_PCS_VFP 1) # SET(OPENSSL_EXECUTABLE /usr/bin/openssl) # Compiler flags SET(CMAKE_C_FLAGS "-O2 -pipe -fno-common -fno-builtin -Wall -Dlinux -D__linux__ -Dunix -DDEBUG -I../include -I../ -Iinclude -Wno-unused-variable") SET(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS}) # Forte build with poky toolset produces a huge number of warnings. These should be harmless but fill up the log file: # -Wno-conversion (Disables "warning: conversion to ‘x’ from ‘y’ may alter its value") # -Wno-sized-deallocation (Disables "warning: the program should also define ‘x’") # add_definitions("-Wno-conversion -Wno-sized-deallocation") # search for programs in the build host directories #SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # for libraries and headers in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(BUILD_STATIC_TARGET true) # Modify CMakeLists.txt as follows: # SET(FORTE_BootfileLocation ${NOJA_BOOTFILE_LOCATION} CACHE STRING "Path to the bootfile, if same directory as forte executable leave empty, include trailing '/'!") # Need to change the filename in RCBindings.h as well as config.h.in SET(NOJA_BOOTFILE_LOCATION "/var/nand/sga/" CACHE STRING "Path to forte.fboot file") # Set the ticks per second to 100 to decrease CPU usage by the timer. Previously 1000 (1ms tick). SET(NOJA_TICKS_PER_SECOND "100" CACHE STRING "100 ticks per second means 1 tick every 10ms on RC10") SET(NOJA_TIMEBASE_UNITS_PER_SECOND "1000" CACHE STRING "Timebase of 1000 units per second means 1ms for RC10") # Remove the -DFORTE_LITTLE_ENDIAN from src/arch/posix/CMakeLists.txt add_definitions("-DCJSON_LITTLE_ENDIAN") <file_sep> # define common variables use through out the build process include ../global.mak # define the subdirectories required by webserver module # 1. Websocket Library # 2. CJSON Library # 3. Webserver Library # 4. Webserver Daemon SUBDIRS = $(ROOTDIR)/lib3p/libwebsockets $(ROOTDIR)/lib3p/libcjson webserver daemon .PHONY: $(MAKECMDGOALS) $(SUBDIRS) .NOTPARALLEL: $(MAKECMDGOALS) : $(SUBDIRS) $(SUBDIRS): $(MAKE) -C $@ $(MAKECMDGOALS)<file_sep>## Vulnerability Reporting If you become aware of an issue with lws that has a security dimension for users, please contact `<EMAIL>` by direct email. ## Procedure for announcing vulnerability fixes The problem and fixed versions will be announced on the libwebsockets mailing list and a note added to the master README.md. <file_sep># Some notes for the windows jungle This was how I compiled libwebsockets in windows March 2020. ## OpenSSL ### Installing prebuilt libs I used the 1.1.1d (the latest) libs from here, as recommended on the OpenSSL site [overbyte.eu](https:..wiki.overbyte.eu/wiki/index.php/ICS_Download#Download_OpenSSL_Binaries_.28required_for_SSL-enabled_components.29) I had to use procmon64 (windows' strace) to establish that these libraries are looking for a cert bundle at "C:\Program Files\Common Files\SSL\cert.pem"... it's not included in the zip file from the above, so... ### Installing a cert bundle You can get a trusted cert bundle from here [drwetter/testssl cert bundle](https://raw.githubusercontent.com/drwetter/testssl.sh/3.1dev/etc/Microsoft.pem) Save it into `C:\Program Files\Common Files\SSL\cert.pem` where openssl will be able to see it. ### Installing cmake CMake have a windows installer thing downloadable from here [cmake](https://cmake.org/download/) after that you can use `cmake` from the terminal OK. ### Installing git Visit the canonical git site to download their windows installer thing [git](https://git-scm.com/download/win) after that `git` from the terminal is working. ### Install the free "community" visual studio You can do this through "windows store" by searching for "visual studio" I installed as little as possible, we just want the C "C++" tools. It still wouldn't link without the "mt" helper tool from the huge windows SDK, so you have to install GB of that as well. ### Building Somehow windows cmake seems slightly broken, some of the plugins and examples are conditional on `if (NOT WIN32)`, but it configures them anyway. For this reason (it seems "only", it worked when I commented the cmake entries for the related plugins) `-DLWS_WITH_MINIMAL_EXAMPLES=1` Instead I followed how appveyor builds the stuff in CI... clone libwebsockets then ``` > git clone https://libwebsockets.org/repo/libwebsockets > cd libwebsockets > mkdir build > cd build > cmake .. > cmake --build . --config DEBUG ``` Installing requires admin privs, I opened a second cmd window as admin and did it there. ``` > cmake --install . --config DEBUG ``` After that you can run the test apps OK. <file_sep># Install script for directory: /Users/naveenpareek/Downloads/rc20-user/lib3p/libcjson # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) set(CMAKE_INSTALL_PREFIX "/usr/local") endif() string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") # Set the install configuration name. if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) if(BUILD_TYPE) string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") else() set(CMAKE_INSTALL_CONFIG_NAME "Debug") endif() message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") endif() # Set the component getting installed. if(NOT CMAKE_INSTALL_COMPONENT) if(COMPONENT) message(STATUS "Install component: \"${COMPONENT}\"") set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") else() set(CMAKE_INSTALL_COMPONENT) endif() endif() # Is this installation the result of a crosscompile? if(NOT DEFINED CMAKE_CROSSCOMPILING) set(CMAKE_CROSSCOMPILING "FALSE") endif() if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/include/cjson/cJSON.h") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/include/cjson" TYPE FILE FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/libcjson/cJSON.h") endif() if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/lib/pkgconfig/libcjson.pc") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/lib/pkgconfig" TYPE FILE FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/libcjson.pc") endif() if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/lib/libcjson.1.7.10.dylib;/usr/local/lib/libcjson.1.dylib") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/lib" TYPE SHARED_LIBRARY FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/libcjson.1.7.10.dylib" "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/libcjson.1.dylib" ) foreach(file "$ENV{DESTDIR}/usr/local/lib/libcjson.1.7.10.dylib" "$ENV{DESTDIR}/usr/local/lib/libcjson.1.dylib" ) if(EXISTS "${file}" AND NOT IS_SYMLINK "${file}") execute_process(COMMAND "/usr/bin/install_name_tool" -id "libcjson.1.dylib" "${file}") if(CMAKE_INSTALL_DO_STRIP) execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" -x "${file}") endif() endif() endforeach() endif() if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/lib/libcjson.dylib") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/lib" TYPE SHARED_LIBRARY FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/libcjson.dylib") if(EXISTS "$ENV{DESTDIR}/usr/local/lib/libcjson.dylib" AND NOT IS_SYMLINK "$ENV{DESTDIR}/usr/local/lib/libcjson.dylib") execute_process(COMMAND "/usr/bin/install_name_tool" -id "libcjson.1.dylib" "$ENV{DESTDIR}/usr/local/lib/libcjson.dylib") if(CMAKE_INSTALL_DO_STRIP) execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" -x "$ENV{DESTDIR}/usr/local/lib/libcjson.dylib") endif() endif() endif() if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/lib/libcjson.a") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/lib" TYPE STATIC_LIBRARY FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/libcjson.a") if(EXISTS "$ENV{DESTDIR}/usr/local/lib/libcjson.a" AND NOT IS_SYMLINK "$ENV{DESTDIR}/usr/local/lib/libcjson.a") execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" "$ENV{DESTDIR}/usr/local/lib/libcjson.a") endif() endif() if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) if(EXISTS "$ENV{DESTDIR}/usr/local/lib/cmake/cJSON/cjson.cmake") file(DIFFERENT EXPORT_FILE_CHANGED FILES "$ENV{DESTDIR}/usr/local/lib/cmake/cJSON/cjson.cmake" "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/CMakeFiles/Export/_usr/local/lib/cmake/cJSON/cjson.cmake") if(EXPORT_FILE_CHANGED) file(GLOB OLD_CONFIG_FILES "$ENV{DESTDIR}/usr/local/lib/cmake/cJSON/cjson-*.cmake") if(OLD_CONFIG_FILES) message(STATUS "Old export file \"$ENV{DESTDIR}/usr/local/lib/cmake/cJSON/cjson.cmake\" will be replaced. Removing files [${OLD_CONFIG_FILES}].") file(REMOVE ${OLD_CONFIG_FILES}) endif() endif() endif() list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/lib/cmake/cJSON/cjson.cmake") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/lib/cmake/cJSON" TYPE FILE FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/CMakeFiles/Export/_usr/local/lib/cmake/cJSON/cjson.cmake") if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$") list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/lib/cmake/cJSON/cjson-debug.cmake") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/lib/cmake/cJSON" TYPE FILE FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/CMakeFiles/Export/_usr/local/lib/cmake/cJSON/cjson-debug.cmake") endif() endif() if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES "/usr/local/lib/cmake/cJSON/cJSONConfig.cmake;/usr/local/lib/cmake/cJSON/cJSONConfigVersion.cmake") if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") endif() file(INSTALL DESTINATION "/usr/local/lib/cmake/cJSON" TYPE FILE FILES "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/cJSONConfig.cmake" "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/cJSONConfigVersion.cmake" ) endif() if(NOT CMAKE_INSTALL_LOCAL_ONLY) # Include the install script for each subdirectory. include("/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/tests/cmake_install.cmake") include("/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/fuzzing/cmake_install.cmake") endif() if(CMAKE_INSTALL_COMPONENT) set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") else() set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") endif() string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT "${CMAKE_INSTALL_MANIFEST_FILES}") file(WRITE "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/${CMAKE_INSTALL_MANIFEST}" "${CMAKE_INSTALL_MANIFEST_CONTENT}") <file_sep>/** * @file include/dbschema/datapoints.h * @brief This generated file contains the macros identifying the known * datapoints. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/datapoints_h.xsl : 3668 bytes, CRC32 = 2467327658 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DATAPOINTS_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DATAPOINTS_H_ /** Database definitions. These are included here for convenience and a more * complete set of definitions can be found in the dbSchemaDefs.h file. */ #define DB_VER "28.0.0" #define DB_VER_MAJOR 28 #define DB_VER_MAJOR_STR "28" #define DB_VER_MINOR 0 #define DB_VER_MINOR_STR "0" #define DB_NUM_DPOINTS 7079 #define DB_MAX_DPID 11735 /** The Datapoint name and ID definitions. * Macro name DataPoint ID Decimal DataType */ #define DPoint_TimeFmt ((DpId) 0x1) /* 1 TimeFormat */ #define DPoint_DateFmt ((DpId) 0x2) /* 2 DateFormat */ #define DPoint_DEPRECATED_BattTest ((DpId) 0x3) /* 3 BattTestState */ #define DPoint_SiteDesc ((DpId) 0x4) /* 4 Str */ #define DPoint_IsDirty ((DpId) 0x5) /* 5 UI16 */ #define DPoint_AuxSupply ((DpId) 0x6) /* 6 OkFail */ #define DPoint_BattState ((DpId) 0x7) /* 7 OkFail */ #define DPoint_OCCoilState ((DpId) 0x8) /* 8 EnDis */ #define DPoint_RelayState ((DpId) 0x9) /* 9 RelayState */ #define DPoint_ActCLM ((DpId) 0xA) /* 10 UI8 */ #define DPoint_OsmOpCoilState ((DpId) 0xB) /* 11 OkSCct */ #define DPoint_DriverState ((DpId) 0xC) /* 12 RdyNr */ #define DPoint_NumProtGroups ((DpId) 0xD) /* 13 UI8 */ #define DPoint_ActProtGroup ((DpId) 0xE) /* 14 UI8 */ #define DPoint_BattTestAuto ((DpId) 0xF) /* 15 EnDis */ #define DPoint_AvgPeriod ((DpId) 0x10) /* 16 AvgPeriod */ #define DPoint_ProtStepState ((DpId) 0x11) /* 17 ProtectionState */ #define DPoint_USensing ((DpId) 0x12) /* 18 RdyNr */ #define DPoint_DoorState ((DpId) 0x13) /* 19 OpenClose */ #define DPoint_BtnOpen ((DpId) 0x14) /* 20 AuxConfig */ #define DPoint_BtnRecl ((DpId) 0x15) /* 21 TimeFormat */ #define DPoint_BtnEf ((DpId) 0x16) /* 22 TimeFormat */ #define DPoint_BtnSef ((DpId) 0x17) /* 23 TimeFormat */ #define DPoint_SigCtrlRqstTripClose ((DpId) 0x18) /* 24 Signal */ #define DPoint_CntOps ((DpId) 0x19) /* 25 UI16 */ #define DPoint_CntWearOsm ((DpId) 0x1A) /* 26 UI16 */ #define DPoint_CntOpsOc ((DpId) 0x1B) /* 27 UI16 */ #define DPoint_CntOpsEf ((DpId) 0x1C) /* 28 UI16 */ #define DPoint_CntOpsSef ((DpId) 0x1D) /* 29 UI16 */ #define DPoint_BattI ((DpId) 0x1E) /* 30 UI16 */ #define DPoint_BattU ((DpId) 0x1F) /* 31 UI16 */ #define DPoint_BattCap ((DpId) 0x20) /* 32 UI16 */ #define DPoint_LcdCont ((DpId) 0x21) /* 33 UI16 */ #define DPoint_SwitchFailureStatusFlag ((DpId) 0x22) /* 34 UI8 */ #define DPoint_DbSourceFiles ((DpId) 0x23) /* 35 UI8 */ #define DPoint_SigMalfRelayLog ((DpId) 0x24) /* 36 Signal */ #define DPoint_HmiMode ((DpId) 0x25) /* 37 HmiMode */ #define DPoint_ClearFaultCntr ((DpId) 0x26) /* 38 ClearCommand */ #define DPoint_ClearScadaCntr ((DpId) 0x27) /* 39 ClearCommand */ #define DPoint_ClearEnergyMeters ((DpId) 0x28) /* 40 ClearCommand */ #define DPoint_UpdateRelayNew ((DpId) 0x2A) /* 42 Str */ #define DPoint_UpdateSimNew ((DpId) 0x2B) /* 43 Str */ #define DPoint_SigExtSupplyStatusShutDown ((DpId) 0x2E) /* 46 Signal */ #define DPoint_IdUbootSoftwareVer ((DpId) 0x2F) /* 47 Str */ #define DPoint_CntOpsOsm ((DpId) 0x30) /* 48 UI32 */ #define DPoint_SigCtrlHltOn ((DpId) 0x31) /* 49 Signal */ #define DPoint_AuxVoltage ((DpId) 0x32) /* 50 UI32 */ #define DPoint_PwdSettings ((DpId) 0x33) /* 51 Str */ #define DPoint_PwdConnect ((DpId) 0x34) /* 52 Str */ #define DPoint_SigCtrlHltRqstReset ((DpId) 0x35) /* 53 Signal */ #define DPoint_IdMicrokernelSoftwareVer ((DpId) 0x36) /* 54 Str */ #define DPoint_CmsConnectStatus ((DpId) 0x37) /* 55 CmsConnectStatus */ #define DPoint_SigPickupLsdUa ((DpId) 0x38) /* 56 Signal */ #define DPoint_SigPickupLsdUb ((DpId) 0x39) /* 57 Signal */ #define DPoint_SigPickupLsdUc ((DpId) 0x3A) /* 58 Signal */ #define DPoint_SigPickupLsdUr ((DpId) 0x3B) /* 59 Signal */ #define DPoint_SigPickupLsdUs ((DpId) 0x3C) /* 60 Signal */ #define DPoint_SigPickupLsdUt ((DpId) 0x3D) /* 61 Signal */ #define DPoint_OsmModelStr ((DpId) 0x3E) /* 62 Str */ #define DPoint_LoadProfDefAddr ((DpId) 0x3F) /* 63 UI32 */ #define DPoint_LoadProfNotice ((DpId) 0x40) /* 64 LoadProfileNoticeType */ #define DPoint_LoadProfValAddr ((DpId) 0x41) /* 65 UI32 */ #define DPoint_SigStatusCloseBlocking ((DpId) 0x42) /* 66 Signal */ #define DPoint_SigCtrlBlockCloseOn ((DpId) 0x43) /* 67 Signal */ #define DPoint_CmsHasCrc ((DpId) 0x44) /* 68 UI8 */ #define DPoint_CmsCntErr ((DpId) 0x45) /* 69 UI32 */ #define DPoint_CmsCntTxd ((DpId) 0x46) /* 70 UI32 */ #define DPoint_CmsCntRxd ((DpId) 0x47) /* 71 UI32 */ #define DPoint_CmsAuxPort ((DpId) 0x48) /* 72 UI16 */ #define DPoint_SigOpenGrp1 ((DpId) 0x49) /* 73 Signal */ #define DPoint_CmsAuxHasCrc ((DpId) 0x4A) /* 74 UI8 */ #define DPoint_CmsAuxCntErr ((DpId) 0x4B) /* 75 UI32 */ #define DPoint_CmsAuxCntTxd ((DpId) 0x4C) /* 76 UI32 */ #define DPoint_CmsAuxCntRxd ((DpId) 0x4D) /* 77 UI32 */ #define DPoint_CmsVer ((DpId) 0x4E) /* 78 Str */ #define DPoint_ProtGlbFreqRated ((DpId) 0x4F) /* 79 RatedFreq */ #define DPoint_ProtGlbUsys ((DpId) 0x50) /* 80 UI32 */ #define DPoint_ProtGlbLsdLevel ((DpId) 0x51) /* 81 UI32 */ #define DPoint_SigOpenGrp2 ((DpId) 0x52) /* 82 Signal */ #define DPoint_SigOpenGrp3 ((DpId) 0x53) /* 83 Signal */ #define DPoint_SigOpenGrp4 ((DpId) 0x54) /* 84 Signal */ #define DPoint_PanelButtEF ((DpId) 0x56) /* 86 EnDis */ #define DPoint_PanelButtSEF ((DpId) 0x57) /* 87 EnDis */ #define DPoint_PanelButtAR ((DpId) 0x58) /* 88 EnDis */ #define DPoint_PanelButtCL ((DpId) 0x59) /* 89 EnDis */ #define DPoint_PanelButtLL ((DpId) 0x5A) /* 90 EnDis */ #define DPoint_PanelButtActiveGroup ((DpId) 0x5B) /* 91 EnDis */ #define DPoint_PanelButtProtection ((DpId) 0x5C) /* 92 EnDis */ #define DPoint_PanelDelayedClose ((DpId) 0x5D) /* 93 EnDis */ #define DPoint_PanelDelayedCloseTime ((DpId) 0x5E) /* 94 UI16 */ #define DPoint_MicrokernelFsType ((DpId) 0x5F) /* 95 FileSystemType */ #define DPoint_HmiErrMsg ((DpId) 0x60) /* 96 ERR */ #define DPoint_HmiErrMsgFull ((DpId) 0x61) /* 97 HmiErrMsg */ #define DPoint_ScadaCounterCallDropouts ((DpId) 0x62) /* 98 UI32 */ #define DPoint_ScadaCounterCallFails ((DpId) 0x63) /* 99 UI32 */ #define DPoint_CanSimSetResetTimeUI16 ((DpId) 0x64) /* 100 UI16 */ #define DPoint_HmiPasswordUser ((DpId) 0x65) /* 101 HmiPwdGroup */ #define DPoint_UpdateFailed ((DpId) 0x67) /* 103 Signal */ #define DPoint_UpdateReverted ((DpId) 0x68) /* 104 Signal */ #define DPoint_SwitchCoefCUa ((DpId) 0x69) /* 105 UI32 */ #define DPoint_SwitchCoefCUb ((DpId) 0x6A) /* 106 UI32 */ #define DPoint_SwitchCoefCUc ((DpId) 0x6B) /* 107 UI32 */ #define DPoint_SwitchCoefCUr ((DpId) 0x6C) /* 108 UI32 */ #define DPoint_SwitchCoefCUs ((DpId) 0x6D) /* 109 UI32 */ #define DPoint_SwitchCoefCUt ((DpId) 0x6E) /* 110 UI32 */ #define DPoint_SwitchCoefCIa ((DpId) 0x6F) /* 111 UI32 */ #define DPoint_SwitchCoefCIb ((DpId) 0x70) /* 112 UI32 */ #define DPoint_SwitchCoefCIc ((DpId) 0x71) /* 113 UI32 */ #define DPoint_SwitchCoefCIn ((DpId) 0x72) /* 114 UI32 */ #define DPoint_LogEventDir ((DpId) 0x74) /* 116 Str */ #define DPoint_LogCloseOpenDir ((DpId) 0x75) /* 117 Str */ #define DPoint_LogLoadProfDir ((DpId) 0x76) /* 118 Str */ #define DPoint_LogFaultProfDir ((DpId) 0x77) /* 119 Str */ #define DPoint_LogChangeDir ((DpId) 0x78) /* 120 Str */ #define DPoint_SysSettingDir ((DpId) 0x79) /* 121 Str */ #define DPoint_ScadaTimeLocal ((DpId) 0x7A) /* 122 ScadaTimeIsLocal */ #define DPoint_TimeZone ((DpId) 0x7B) /* 123 I32 */ #define DPoint_UpdateSettingsLogFailed ((DpId) 0x7C) /* 124 Signal */ #define DPoint_DbugCmsSerial ((DpId) 0x7D) /* 125 UI32 */ #define DPoint_USBDConfigType ((DpId) 0x7E) /* 126 UsbPortConfigType */ #define DPoint_USBEConfigType ((DpId) 0x7F) /* 127 UsbPortConfigType */ #define DPoint_USBFConfigType ((DpId) 0x80) /* 128 SerialPortConfigType */ #define DPoint_Rs232Dte2ConfigType ((DpId) 0x81) /* 129 SerialPortConfigType */ #define DPoint_CommsChEvGrp5 ((DpId) 0x82) /* 130 ChangeEvent */ #define DPoint_CommsChEvGrp6 ((DpId) 0x83) /* 131 ChangeEvent */ #define DPoint_CommsChEvGrp7 ((DpId) 0x84) /* 132 ChangeEvent */ #define DPoint_CommsChEvGrp8 ((DpId) 0x85) /* 133 ChangeEvent */ #define DPoint_SigUSBUnsupported ((DpId) 0x8E) /* 142 Signal */ #define DPoint_SigUSBMismatched ((DpId) 0x8F) /* 143 Signal */ #define DPoint_DNP3_ModemDialOut ((DpId) 0x90) /* 144 Bool */ #define DPoint_CMS_ModemDialOut ((DpId) 0x91) /* 145 Bool */ #define DPoint_DNP3_ModemPreDialString ((DpId) 0x92) /* 146 Str */ #define DPoint_CMS_ModemPreDialString ((DpId) 0x93) /* 147 Str */ #define DPoint_DNP3_ModemDialNumber1 ((DpId) 0x94) /* 148 Str */ #define DPoint_DNP3_ModemDialNumber2 ((DpId) 0x95) /* 149 Str */ #define DPoint_DNP3_ModemDialNumber3 ((DpId) 0x96) /* 150 Str */ #define DPoint_DNP3_ModemDialNumber4 ((DpId) 0x97) /* 151 Str */ #define DPoint_DNP3_ModemDialNumber5 ((DpId) 0x98) /* 152 Str */ #define DPoint_ProtTstSeq ((DpId) 0x99) /* 153 UI32 */ #define DPoint_ProtTstLogStep ((DpId) 0x9A) /* 154 UI32 */ #define DPoint_ProtTstDbug ((DpId) 0x9B) /* 155 Str */ #define DPoint_ProtCfgBase ((DpId) 0x9C) /* 156 UI32 */ #define DPoint_G1_OcAt ((DpId) 0x9D) /* 157 UI32 */ #define DPoint_G1_OcDnd ((DpId) 0x9E) /* 158 DndMode */ #define DPoint_G1_EfAt ((DpId) 0x9F) /* 159 UI32 */ #define DPoint_G1_EfDnd ((DpId) 0xA0) /* 160 DndMode */ #define DPoint_G1_SefAt ((DpId) 0xA1) /* 161 UI32 */ #define DPoint_G1_SefDnd ((DpId) 0xA2) /* 162 DndMode */ #define DPoint_G1_ArOCEF_ZSCmode ((DpId) 0xA3) /* 163 EnDis */ #define DPoint_G1_VrcEnable ((DpId) 0xA4) /* 164 EnDis */ #define DPoint_CMS_ModemDialNumber1 ((DpId) 0xA5) /* 165 Str */ #define DPoint_G1_ArOCEF_Trec1 ((DpId) 0xA6) /* 166 UI32 */ #define DPoint_G1_ArOCEF_Trec2 ((DpId) 0xA7) /* 167 UI32 */ #define DPoint_G1_ArOCEF_Trec3 ((DpId) 0xA8) /* 168 UI32 */ #define DPoint_G1_ResetTime ((DpId) 0xA9) /* 169 UI32 */ #define DPoint_G1_TtaMode ((DpId) 0xAA) /* 170 TtaMode */ #define DPoint_G1_TtaTime ((DpId) 0xAB) /* 171 UI32 */ #define DPoint_G1_SstOcForward ((DpId) 0xAC) /* 172 UI8 */ #define DPoint_G1_EftEnable ((DpId) 0xAD) /* 173 EnDis */ #define DPoint_G1_ClpClm ((DpId) 0xAE) /* 174 UI32 */ #define DPoint_G1_ClpTcl ((DpId) 0xAF) /* 175 UI32 */ #define DPoint_G1_ClpTrec ((DpId) 0xB0) /* 176 UI32 */ #define DPoint_G1_IrrIrm ((DpId) 0xB1) /* 177 UI32 */ #define DPoint_G1_IrrTir ((DpId) 0xB2) /* 178 UI32 */ #define DPoint_G1_VrcMode ((DpId) 0xB3) /* 179 VrcMode */ #define DPoint_G1_VrcUMmin ((DpId) 0xB4) /* 180 UI32 */ #define DPoint_G1_AbrMode ((DpId) 0xB5) /* 181 EnDis */ #define DPoint_G1_OC1F_Ip ((DpId) 0xB6) /* 182 UI32 */ #define DPoint_G1_OC1F_Tcc ((DpId) 0xB7) /* 183 UI16 */ #define DPoint_G1_OC1F_TDtMin ((DpId) 0xB8) /* 184 UI32 */ #define DPoint_G1_OC1F_TDtRes ((DpId) 0xB9) /* 185 UI32 */ #define DPoint_G1_OC1F_Tm ((DpId) 0xBA) /* 186 UI32 */ #define DPoint_G1_OC1F_Imin ((DpId) 0xBB) /* 187 UI32 */ #define DPoint_G1_OC1F_Tmin ((DpId) 0xBC) /* 188 UI32 */ #define DPoint_G1_OC1F_Tmax ((DpId) 0xBD) /* 189 UI32 */ #define DPoint_G1_OC1F_Ta ((DpId) 0xBE) /* 190 UI32 */ #define DPoint_CMS_ModemDialNumber2 ((DpId) 0xBF) /* 191 Str */ #define DPoint_G1_OC1F_ImaxEn ((DpId) 0xC0) /* 192 EnDis */ #define DPoint_G1_OC1F_Imax ((DpId) 0xC1) /* 193 UI32 */ #define DPoint_G1_OC1F_DirEn ((DpId) 0xC2) /* 194 EnDis */ #define DPoint_G1_OC1F_Tr1 ((DpId) 0xC3) /* 195 TripMode */ #define DPoint_G1_OC1F_Tr2 ((DpId) 0xC4) /* 196 TripMode */ #define DPoint_G1_OC1F_Tr3 ((DpId) 0xC5) /* 197 TripMode */ #define DPoint_G1_OC1F_Tr4 ((DpId) 0xC6) /* 198 TripMode */ #define DPoint_G1_OC1F_TccUD ((DpId) 0xC7) /* 199 TccCurve */ #define DPoint_G1_OC2F_Ip ((DpId) 0xC8) /* 200 UI32 */ #define DPoint_G1_OC2F_Tcc ((DpId) 0xC9) /* 201 UI16 */ #define DPoint_G1_OC2F_TDtMin ((DpId) 0xCA) /* 202 UI32 */ #define DPoint_G1_OC2F_TDtRes ((DpId) 0xCB) /* 203 UI32 */ #define DPoint_G1_OC2F_Tm ((DpId) 0xCC) /* 204 UI32 */ #define DPoint_G1_OC2F_Imin ((DpId) 0xCD) /* 205 UI32 */ #define DPoint_G1_OC2F_Tmin ((DpId) 0xCE) /* 206 UI32 */ #define DPoint_G1_OC2F_Tmax ((DpId) 0xCF) /* 207 UI32 */ #define DPoint_G1_OC2F_Ta ((DpId) 0xD0) /* 208 UI32 */ #define DPoint_G1_EftTripCount ((DpId) 0xD1) /* 209 UI8 */ #define DPoint_G1_OC2F_ImaxEn ((DpId) 0xD2) /* 210 EnDis */ #define DPoint_G1_OC2F_Imax ((DpId) 0xD3) /* 211 UI32 */ #define DPoint_G1_OC2F_DirEn ((DpId) 0xD4) /* 212 EnDis */ #define DPoint_G1_OC2F_Tr1 ((DpId) 0xD5) /* 213 TripMode */ #define DPoint_G1_OC2F_Tr2 ((DpId) 0xD6) /* 214 TripMode */ #define DPoint_G1_OC2F_Tr3 ((DpId) 0xD7) /* 215 TripMode */ #define DPoint_G1_OC2F_Tr4 ((DpId) 0xD8) /* 216 TripMode */ #define DPoint_G1_OC2F_TccUD ((DpId) 0xD9) /* 217 TccCurve */ #define DPoint_G1_OC3F_Ip ((DpId) 0xDA) /* 218 UI32 */ #define DPoint_G1_OC3F_TDtMin ((DpId) 0xDB) /* 219 UI32 */ #define DPoint_G1_OC3F_TDtRes ((DpId) 0xDC) /* 220 UI32 */ #define DPoint_G1_OC3F_DirEn ((DpId) 0xDD) /* 221 EnDis */ #define DPoint_G1_OC3F_Tr1 ((DpId) 0xDE) /* 222 TripMode */ #define DPoint_G1_OC3F_Tr2 ((DpId) 0xDF) /* 223 TripMode */ #define DPoint_G1_OC3F_Tr3 ((DpId) 0xE0) /* 224 TripMode */ #define DPoint_G1_OC3F_Tr4 ((DpId) 0xE1) /* 225 TripMode */ #define DPoint_G1_OC1R_Ip ((DpId) 0xE2) /* 226 UI32 */ #define DPoint_G1_OC1R_Tcc ((DpId) 0xE3) /* 227 UI16 */ #define DPoint_G1_OC1R_TDtMin ((DpId) 0xE4) /* 228 UI32 */ #define DPoint_G1_OC1R_TDtRes ((DpId) 0xE5) /* 229 UI32 */ #define DPoint_G1_OC1R_Tm ((DpId) 0xE6) /* 230 UI32 */ #define DPoint_G1_OC1R_Imin ((DpId) 0xE7) /* 231 UI32 */ #define DPoint_G1_OC1R_Tmin ((DpId) 0xE8) /* 232 UI32 */ #define DPoint_G1_OC1R_Tmax ((DpId) 0xE9) /* 233 UI32 */ #define DPoint_G1_OC1R_Ta ((DpId) 0xEA) /* 234 UI32 */ #define DPoint_G1_EftTripWindow ((DpId) 0xEB) /* 235 UI8 */ #define DPoint_G1_OC1R_ImaxEn ((DpId) 0xEC) /* 236 EnDis */ #define DPoint_G1_OC1R_Imax ((DpId) 0xED) /* 237 UI32 */ #define DPoint_G1_OC1R_DirEn ((DpId) 0xEE) /* 238 EnDis */ #define DPoint_G1_OC1R_Tr1 ((DpId) 0xEF) /* 239 TripMode */ #define DPoint_G1_OC1R_Tr2 ((DpId) 0xF0) /* 240 TripMode */ #define DPoint_G1_OC1R_Tr3 ((DpId) 0xF1) /* 241 TripMode */ #define DPoint_G1_OC1R_Tr4 ((DpId) 0xF2) /* 242 TripMode */ #define DPoint_G1_OC1R_TccUD ((DpId) 0xF3) /* 243 TccCurve */ #define DPoint_G1_OC2R_Ip ((DpId) 0xF4) /* 244 UI32 */ #define DPoint_G1_OC2R_Tcc ((DpId) 0xF5) /* 245 UI16 */ #define DPoint_G1_OC2R_TDtMin ((DpId) 0xF6) /* 246 UI32 */ #define DPoint_G1_OC2R_TDtRes ((DpId) 0xF7) /* 247 UI32 */ #define DPoint_G1_OC2R_Tm ((DpId) 0xF8) /* 248 UI32 */ #define DPoint_G1_OC2R_Imin ((DpId) 0xF9) /* 249 UI32 */ #define DPoint_G1_OC2R_Tmin ((DpId) 0xFA) /* 250 UI32 */ #define DPoint_G1_OC2R_Tmax ((DpId) 0xFB) /* 251 UI32 */ #define DPoint_G1_OC2R_Ta ((DpId) 0xFC) /* 252 UI32 */ #define DPoint_G1_OC2R_ImaxEn ((DpId) 0xFE) /* 254 EnDis */ #define DPoint_G1_OC2R_Imax ((DpId) 0xFF) /* 255 UI32 */ #define DPoint_G1_OC2R_DirEn ((DpId) 0x100) /* 256 EnDis */ #define DPoint_G1_OC2R_Tr1 ((DpId) 0x101) /* 257 TripMode */ #define DPoint_G1_OC2R_Tr2 ((DpId) 0x102) /* 258 TripMode */ #define DPoint_G1_OC2R_Tr3 ((DpId) 0x103) /* 259 TripMode */ #define DPoint_G1_OC2R_Tr4 ((DpId) 0x104) /* 260 TripMode */ #define DPoint_G1_OC2R_TccUD ((DpId) 0x105) /* 261 TccCurve */ #define DPoint_G1_OC3R_Ip ((DpId) 0x106) /* 262 UI32 */ #define DPoint_G1_OC3R_TDtMin ((DpId) 0x107) /* 263 UI32 */ #define DPoint_G1_OC3R_TDtRes ((DpId) 0x108) /* 264 UI32 */ #define DPoint_G1_OC3R_DirEn ((DpId) 0x109) /* 265 EnDis */ #define DPoint_G1_OC3R_Tr1 ((DpId) 0x10A) /* 266 TripMode */ #define DPoint_G1_OC3R_Tr2 ((DpId) 0x10B) /* 267 TripMode */ #define DPoint_G1_OC3R_Tr3 ((DpId) 0x10C) /* 268 TripMode */ #define DPoint_G1_OC3R_Tr4 ((DpId) 0x10D) /* 269 TripMode */ #define DPoint_G1_EF1F_Ip ((DpId) 0x10E) /* 270 UI32 */ #define DPoint_G1_EF1F_Tcc ((DpId) 0x10F) /* 271 UI16 */ #define DPoint_G1_EF1F_TDtMin ((DpId) 0x110) /* 272 UI32 */ #define DPoint_G1_EF1F_TDtRes ((DpId) 0x111) /* 273 UI32 */ #define DPoint_G1_EF1F_Tm ((DpId) 0x112) /* 274 UI32 */ #define DPoint_G1_EF1F_Imin ((DpId) 0x113) /* 275 UI32 */ #define DPoint_G1_EF1F_Tmin ((DpId) 0x114) /* 276 UI32 */ #define DPoint_G1_EF1F_Tmax ((DpId) 0x115) /* 277 UI32 */ #define DPoint_G1_EF1F_Ta ((DpId) 0x116) /* 278 UI32 */ #define DPoint_G1_DEPRECATED_G1EF1F_Tres ((DpId) 0x117) /* 279 UI32 */ #define DPoint_G1_EF1F_ImaxEn ((DpId) 0x118) /* 280 EnDis */ #define DPoint_G1_EF1F_Imax ((DpId) 0x119) /* 281 UI32 */ #define DPoint_G1_EF1F_DirEn ((DpId) 0x11A) /* 282 EnDis */ #define DPoint_G1_EF1F_Tr1 ((DpId) 0x11B) /* 283 TripMode */ #define DPoint_G1_EF1F_Tr2 ((DpId) 0x11C) /* 284 TripMode */ #define DPoint_G1_EF1F_Tr3 ((DpId) 0x11D) /* 285 TripMode */ #define DPoint_G1_EF1F_Tr4 ((DpId) 0x11E) /* 286 TripMode */ #define DPoint_G1_EF1F_TccUD ((DpId) 0x11F) /* 287 TccCurve */ #define DPoint_G1_EF2F_Ip ((DpId) 0x120) /* 288 UI32 */ #define DPoint_G1_EF2F_Tcc ((DpId) 0x121) /* 289 UI16 */ #define DPoint_G1_EF2F_TDtMin ((DpId) 0x122) /* 290 UI32 */ #define DPoint_G1_EF2F_TDtRes ((DpId) 0x123) /* 291 UI32 */ #define DPoint_G1_EF2F_Tm ((DpId) 0x124) /* 292 UI32 */ #define DPoint_G1_EF2F_Imin ((DpId) 0x125) /* 293 UI32 */ #define DPoint_G1_EF2F_Tmin ((DpId) 0x126) /* 294 UI32 */ #define DPoint_G1_EF2F_Tmax ((DpId) 0x127) /* 295 UI32 */ #define DPoint_G1_EF2F_Ta ((DpId) 0x128) /* 296 UI32 */ #define DPoint_G1_DEPRECATED_G1EF2F_Tres ((DpId) 0x129) /* 297 UI32 */ #define DPoint_G1_EF2F_ImaxEn ((DpId) 0x12A) /* 298 EnDis */ #define DPoint_G1_EF2F_Imax ((DpId) 0x12B) /* 299 UI32 */ #define DPoint_G1_EF2F_DirEn ((DpId) 0x12C) /* 300 EnDis */ #define DPoint_G1_EF2F_Tr1 ((DpId) 0x12D) /* 301 TripMode */ #define DPoint_G1_EF2F_Tr2 ((DpId) 0x12E) /* 302 TripMode */ #define DPoint_G1_EF2F_Tr3 ((DpId) 0x12F) /* 303 TripMode */ #define DPoint_G1_EF2F_Tr4 ((DpId) 0x130) /* 304 TripMode */ #define DPoint_G1_EF2F_TccUD ((DpId) 0x131) /* 305 TccCurve */ #define DPoint_G1_EF3F_Ip ((DpId) 0x132) /* 306 UI32 */ #define DPoint_G1_EF3F_TDtMin ((DpId) 0x133) /* 307 UI32 */ #define DPoint_G1_EF3F_TDtRes ((DpId) 0x134) /* 308 UI32 */ #define DPoint_G1_EF3F_DirEn ((DpId) 0x135) /* 309 EnDis */ #define DPoint_G1_EF3F_Tr1 ((DpId) 0x136) /* 310 TripMode */ #define DPoint_G1_EF3F_Tr2 ((DpId) 0x137) /* 311 TripMode */ #define DPoint_G1_EF3F_Tr3 ((DpId) 0x138) /* 312 TripMode */ #define DPoint_G1_EF3F_Tr4 ((DpId) 0x139) /* 313 TripMode */ #define DPoint_G1_EF1R_Ip ((DpId) 0x13A) /* 314 UI32 */ #define DPoint_G1_EF1R_Tcc ((DpId) 0x13B) /* 315 UI16 */ #define DPoint_G1_EF1R_TDtMin ((DpId) 0x13C) /* 316 UI32 */ #define DPoint_G1_EF1R_TDtRes ((DpId) 0x13D) /* 317 UI32 */ #define DPoint_G1_EF1R_Tm ((DpId) 0x13E) /* 318 UI32 */ #define DPoint_G1_EF1R_Imin ((DpId) 0x13F) /* 319 UI32 */ #define DPoint_G1_EF1R_Tmin ((DpId) 0x140) /* 320 UI32 */ #define DPoint_G1_EF1R_Tmax ((DpId) 0x141) /* 321 UI32 */ #define DPoint_G1_EF1R_Ta ((DpId) 0x142) /* 322 UI32 */ #define DPoint_G1_DEPRECATED_G1EF1R_Tres ((DpId) 0x143) /* 323 UI32 */ #define DPoint_G1_EF1R_ImaxEn ((DpId) 0x144) /* 324 EnDis */ #define DPoint_G1_EF1R_Imax ((DpId) 0x145) /* 325 UI32 */ #define DPoint_G1_EF1R_DirEn ((DpId) 0x146) /* 326 EnDis */ #define DPoint_G1_EF1R_Tr1 ((DpId) 0x147) /* 327 TripMode */ #define DPoint_G1_EF1R_Tr2 ((DpId) 0x148) /* 328 TripMode */ #define DPoint_G1_EF1R_Tr3 ((DpId) 0x149) /* 329 TripMode */ #define DPoint_G1_EF1R_Tr4 ((DpId) 0x14A) /* 330 TripMode */ #define DPoint_G1_EF1R_TccUD ((DpId) 0x14B) /* 331 TccCurve */ #define DPoint_G1_EF2R_Ip ((DpId) 0x14C) /* 332 UI32 */ #define DPoint_G1_EF2R_Tcc ((DpId) 0x14D) /* 333 UI16 */ #define DPoint_G1_EF2R_TDtMin ((DpId) 0x14E) /* 334 UI32 */ #define DPoint_G1_EF2R_TDtRes ((DpId) 0x14F) /* 335 UI32 */ #define DPoint_G1_EF2R_Tm ((DpId) 0x150) /* 336 UI32 */ #define DPoint_G1_EF2R_Imin ((DpId) 0x151) /* 337 UI32 */ #define DPoint_G1_EF2R_Tmin ((DpId) 0x152) /* 338 UI32 */ #define DPoint_G1_EF2R_Tmax ((DpId) 0x153) /* 339 UI32 */ #define DPoint_G1_EF2R_Ta ((DpId) 0x154) /* 340 UI32 */ #define DPoint_G1_EF2R_ImaxEn ((DpId) 0x156) /* 342 EnDis */ #define DPoint_G1_EF2R_Imax ((DpId) 0x157) /* 343 UI32 */ #define DPoint_G1_EF2R_DirEn ((DpId) 0x158) /* 344 EnDis */ #define DPoint_G1_EF2R_Tr1 ((DpId) 0x159) /* 345 TripMode */ #define DPoint_G1_EF2R_Tr2 ((DpId) 0x15A) /* 346 TripMode */ #define DPoint_G1_EF2R_Tr3 ((DpId) 0x15B) /* 347 TripMode */ #define DPoint_G1_EF2R_Tr4 ((DpId) 0x15C) /* 348 TripMode */ #define DPoint_G1_EF2R_TccUD ((DpId) 0x15D) /* 349 TccCurve */ #define DPoint_G1_EF3R_Ip ((DpId) 0x15E) /* 350 UI32 */ #define DPoint_G1_EF3R_TDtMin ((DpId) 0x15F) /* 351 UI32 */ #define DPoint_G1_EF3R_TDtRes ((DpId) 0x160) /* 352 UI32 */ #define DPoint_G1_EF3R_DirEn ((DpId) 0x161) /* 353 EnDis */ #define DPoint_G1_EF3R_Tr1 ((DpId) 0x162) /* 354 TripMode */ #define DPoint_G1_EF3R_Tr2 ((DpId) 0x163) /* 355 TripMode */ #define DPoint_G1_EF3R_Tr3 ((DpId) 0x164) /* 356 TripMode */ #define DPoint_G1_EF3R_Tr4 ((DpId) 0x165) /* 357 TripMode */ #define DPoint_G1_SEFF_Ip ((DpId) 0x166) /* 358 UI32 */ #define DPoint_G1_SEFF_TDtMin ((DpId) 0x167) /* 359 UI32 */ #define DPoint_G1_SEFF_TDtRes ((DpId) 0x168) /* 360 UI32 */ #define DPoint_G1_SEFF_DirEn ((DpId) 0x169) /* 361 EnDis */ #define DPoint_G1_SEFF_Tr1 ((DpId) 0x16A) /* 362 TripMode */ #define DPoint_G1_SEFF_Tr2 ((DpId) 0x16B) /* 363 TripMode */ #define DPoint_G1_SEFF_Tr3 ((DpId) 0x16C) /* 364 TripMode */ #define DPoint_G1_SEFF_Tr4 ((DpId) 0x16D) /* 365 TripMode */ #define DPoint_G1_SEFR_Ip ((DpId) 0x16E) /* 366 UI32 */ #define DPoint_G1_SEFR_TDtMin ((DpId) 0x16F) /* 367 UI32 */ #define DPoint_G1_SEFR_TDtRes ((DpId) 0x170) /* 368 UI32 */ #define DPoint_G1_SEFR_DirEn ((DpId) 0x171) /* 369 EnDis */ #define DPoint_G1_SEFR_Tr1 ((DpId) 0x172) /* 370 TripMode */ #define DPoint_G1_SEFR_Tr2 ((DpId) 0x173) /* 371 TripMode */ #define DPoint_G1_SEFR_Tr3 ((DpId) 0x174) /* 372 TripMode */ #define DPoint_G1_SEFR_Tr4 ((DpId) 0x175) /* 373 TripMode */ #define DPoint_G1_OcLl_Ip ((DpId) 0x176) /* 374 UI32 */ #define DPoint_G1_OcLl_TDtMin ((DpId) 0x177) /* 375 UI32 */ #define DPoint_G1_OcLl_TDtRes ((DpId) 0x178) /* 376 UI32 */ #define DPoint_G1_EfLl_Ip ((DpId) 0x179) /* 377 UI32 */ #define DPoint_G1_EfLl_TDtMin ((DpId) 0x17A) /* 378 UI32 */ #define DPoint_G1_EfLl_TDtRes ((DpId) 0x17B) /* 379 UI32 */ #define DPoint_G1_Uv1_Um ((DpId) 0x17C) /* 380 UI32 */ #define DPoint_G1_Uv1_TDtMin ((DpId) 0x17D) /* 381 UI32 */ #define DPoint_G1_Uv1_TDtRes ((DpId) 0x17E) /* 382 UI32 */ #define DPoint_G1_Uv1_Trm ((DpId) 0x17F) /* 383 TripMode */ #define DPoint_G1_Uv2_Um ((DpId) 0x180) /* 384 UI32 */ #define DPoint_G1_Uv2_TDtMin ((DpId) 0x181) /* 385 UI32 */ #define DPoint_G1_Uv2_TDtRes ((DpId) 0x182) /* 386 UI32 */ #define DPoint_G1_Uv2_Trm ((DpId) 0x183) /* 387 TripMode */ #define DPoint_G1_Uv3_TDtMin ((DpId) 0x184) /* 388 UI32 */ #define DPoint_G1_Uv3_TDtRes ((DpId) 0x185) /* 389 UI32 */ #define DPoint_G1_Uv3_Trm ((DpId) 0x186) /* 390 TripMode */ #define DPoint_G1_Ov1_Um ((DpId) 0x187) /* 391 UI32 */ #define DPoint_G1_Ov1_TDtMin ((DpId) 0x188) /* 392 UI32 */ #define DPoint_G1_Ov1_TDtRes ((DpId) 0x189) /* 393 UI32 */ #define DPoint_G1_Ov1_Trm ((DpId) 0x18A) /* 394 TripMode */ #define DPoint_G1_Ov2_Um ((DpId) 0x18B) /* 395 UI32 */ #define DPoint_G1_Ov2_TDtMin ((DpId) 0x18C) /* 396 UI32 */ #define DPoint_G1_Ov2_TDtRes ((DpId) 0x18D) /* 397 UI32 */ #define DPoint_G1_Ov2_Trm ((DpId) 0x18E) /* 398 TripMode */ #define DPoint_G1_Uf_Fp ((DpId) 0x18F) /* 399 UI32 */ #define DPoint_G1_Uf_TDtMin ((DpId) 0x190) /* 400 UI32 */ #define DPoint_G1_Uf_TDtRes ((DpId) 0x191) /* 401 UI32 */ #define DPoint_G1_Uf_Trm ((DpId) 0x192) /* 402 TripModeDLA */ #define DPoint_G1_Of_Fp ((DpId) 0x193) /* 403 UI32 */ #define DPoint_G1_Of_TDtMin ((DpId) 0x194) /* 404 UI32 */ #define DPoint_G1_Of_TDtRes ((DpId) 0x195) /* 405 UI32 */ #define DPoint_G1_Of_Trm ((DpId) 0x196) /* 406 TripModeDLA */ #define DPoint_G1_DEPRECATED_OC1F_ImaxAbs ((DpId) 0x197) /* 407 UI32 */ #define DPoint_G1_DEPRECATED_OC2F_ImaxAbs ((DpId) 0x198) /* 408 UI32 */ #define DPoint_G1_DEPRECATED_OC1R_ImaxAbs ((DpId) 0x199) /* 409 UI32 */ #define DPoint_G1_DEPRECATED_OC2R_ImaxAbs ((DpId) 0x19A) /* 410 UI32 */ #define DPoint_G1_DEPRECATED_EF1F_ImaxAbs ((DpId) 0x19B) /* 411 UI32 */ #define DPoint_G1_DEPRECATED_EF2F_ImaxAbs ((DpId) 0x19C) /* 412 UI32 */ #define DPoint_G1_DEPRECATED_EF1R_ImaxAbs ((DpId) 0x19D) /* 413 UI32 */ #define DPoint_G1_DEPRECATED_EF2R_ImaxAbs ((DpId) 0x19E) /* 414 UI32 */ #define DPoint_G1_SstEfForward ((DpId) 0x19F) /* 415 UI8 */ #define DPoint_G1_SstSefForward ((DpId) 0x1A0) /* 416 UI8 */ #define DPoint_G1_AbrTrest ((DpId) 0x1A1) /* 417 UI32 */ #define DPoint_G1_AutoOpenMode ((DpId) 0x1A2) /* 418 AutoOpenMode */ #define DPoint_G1_AutoOpenTime ((DpId) 0x1A3) /* 419 UI16 */ #define DPoint_G1_AutoOpenOpns ((DpId) 0x1A4) /* 420 UI8 */ #define DPoint_G1_SstOcReverse ((DpId) 0x1A5) /* 421 UI8 */ #define DPoint_G1_SstEfReverse ((DpId) 0x1A6) /* 422 UI8 */ #define DPoint_G1_SstSefReverse ((DpId) 0x1A7) /* 423 UI8 */ #define DPoint_G1_ArUVOV_Trec ((DpId) 0x1A8) /* 424 UI32 */ #define DPoint_G1_GrpName ((DpId) 0x1A9) /* 425 Str */ #define DPoint_G1_GrpDes ((DpId) 0x1AA) /* 426 Str */ #define DPoint_CMS_ModemDialNumber3 ((DpId) 0x1AB) /* 427 Str */ #define DPoint_CMS_ModemDialNumber4 ((DpId) 0x1AC) /* 428 Str */ #define DPoint_CMS_ModemDialNumber5 ((DpId) 0x1AD) /* 429 Str */ #define DPoint_DNP3_ModemAutoDialInterval ((DpId) 0x1AE) /* 430 UI32 */ #define DPoint_CMS_ModemAutoDialInterval ((DpId) 0x1AF) /* 431 UI32 */ #define DPoint_DNP3_ModemConnectionTimeout ((DpId) 0x1B0) /* 432 UI32 */ #define DPoint_CMS_ModemConnectionTimeout ((DpId) 0x1B1) /* 433 UI32 */ #define DPoint_ScadaDnp3IpTcpSlavePort ((DpId) 0x1B2) /* 434 UI16 */ #define DPoint_CMS_PortNumber ((DpId) 0x1B3) /* 435 UI16 */ #define DPoint_UpdateFileCopyFail ((DpId) 0x1B5) /* 437 UI8 */ #define DPoint_ScadaHMIEnableProtocol ((DpId) 0x1B6) /* 438 EnDis */ #define DPoint_ScadaHMIChannelPort ((DpId) 0x1B7) /* 439 CommsPort */ #define DPoint_ScadaHMIRemotePort ((DpId) 0x1B8) /* 440 CommsPort */ #define DPoint_ScadaCMSLocalPort ((DpId) 0x1B9) /* 441 CommsPort */ #define DPoint_UsbGadgetConnectionStatus ((DpId) 0x1BC) /* 444 CommsConnectionStatus */ #define DPoint_ShutdownExpected ((DpId) 0x1BE) /* 446 ShutdownReason */ #define DPoint_SigSimNotCalibrated ((DpId) 0x1BF) /* 447 Signal */ #define DPoint_Io1OpMode ((DpId) 0x1C1) /* 449 LocalRemote */ #define DPoint_Io2OpMode ((DpId) 0x1C2) /* 450 LocalRemote */ #define DPoint_RestoreEnabled ((DpId) 0x1C3) /* 451 YesNo */ #define DPoint_ReportTimeSetting ((DpId) 0x1C4) /* 452 UI32 */ #define DPoint_ScadaOpMode ((DpId) 0x1C5) /* 453 LocalRemote */ #define DPoint_CmsSerialFrameRxTimeout ((DpId) 0x1C6) /* 454 UI32 */ #define DPoint_CopyComplete ((DpId) 0x1C7) /* 455 UI8 */ #define DPoint_ReqSetExtLoad ((DpId) 0x1C8) /* 456 OnOff */ #define DPoint_ControlExtLoad ((DpId) 0x1C9) /* 457 OnOff */ #define DPoint_SigLineSupplyStatusAbnormal ((DpId) 0x1CA) /* 458 Signal */ #define DPoint_ChEvEventLog ((DpId) 0x1CB) /* 459 ChangeEvent */ #define DPoint_ChEvCloseOpenLog ((DpId) 0x1CC) /* 460 ChangeEvent */ #define DPoint_ChEvFaultProfileLog ((DpId) 0x1CD) /* 461 ChangeEvent */ #define DPoint_ChEvLoadProfileLog ((DpId) 0x1CE) /* 462 ChangeEvent */ #define DPoint_ChEvChangeLog ((DpId) 0x1CF) /* 463 ChangeEvent */ #define DPoint_SimBatteryVoltageScaled ((DpId) 0x1D0) /* 464 UI16 */ #define DPoint_LocalInputDebouncePeriod ((DpId) 0x1D1) /* 465 UI16 */ #define DPoint_ScadaT101ChannelMode ((DpId) 0x1D2) /* 466 T101ChannelMode */ #define DPoint_ScadaT101DataLinkAddSize ((DpId) 0x1D3) /* 467 UI8 */ #define DPoint_ScadaT104TCPPortNr ((DpId) 0x1D4) /* 468 UI16 */ #define DPoint_ScadaT101CAASize ((DpId) 0x1D5) /* 469 UI8 */ #define DPoint_ScadaT10BCAA ((DpId) 0x1D6) /* 470 UI16 */ #define DPoint_ScadaT101DataLinkAdd ((DpId) 0x1D7) /* 471 UI16 */ #define DPoint_ScadaT101COTSize ((DpId) 0x1D8) /* 472 UI8 */ #define DPoint_ScadaT101IOASize ((DpId) 0x1D9) /* 473 UI8 */ #define DPoint_ScadaT101SingleCharEnable ((DpId) 0x1DA) /* 474 EnDis */ #define DPoint_ScadaT101MaxDLFrameSize ((DpId) 0x1DB) /* 475 UI16 */ #define DPoint_ScadaT101FrameTimeout ((DpId) 0x1DC) /* 476 UI16 */ #define DPoint_ScadaT101LinkConfirmTimeout ((DpId) 0x1DD) /* 477 UI16 */ #define DPoint_ScadaT10BSelectExecuteTimeout ((DpId) 0x1DE) /* 478 UI16 */ #define DPoint_ScadaT104ControlTSTimeout ((DpId) 0x1DF) /* 479 UI16 */ #define DPoint_ScadaT101TimeStampSize ((DpId) 0x1E0) /* 480 T101TimeStampSize */ #define DPoint_ScadaT10BClockValidPeriod ((DpId) 0x1E1) /* 481 UI32 */ #define DPoint_ScadaT10BCyclicPeriod ((DpId) 0x1E2) /* 482 UI16 */ #define DPoint_ScadaT10BBackgroundPeriod ((DpId) 0x1E3) /* 483 UI16 */ #define DPoint_ScadaT10BSinglePointRepMode ((DpId) 0x1E4) /* 484 T10BReportMode */ #define DPoint_ScadaT10BDoublePointRepMode ((DpId) 0x1E5) /* 485 T10BReportMode */ #define DPoint_ScadaT10BSingleCmdRepMode ((DpId) 0x1E6) /* 486 T10BControlMode */ #define DPoint_ScadaT10BDoubleCmdRepMode ((DpId) 0x1E7) /* 487 T10BControlMode */ #define DPoint_ScadaT10BMeasurandRepMode ((DpId) 0x1E8) /* 488 T10BReportMode */ #define DPoint_ScadaT10BSetpointRepMode ((DpId) 0x1E9) /* 489 T10BControlMode */ #define DPoint_ScadaT10BParamCmdRepMode ((DpId) 0x1EA) /* 490 T10BParamRepMode */ #define DPoint_ScadaT10BIntTotRepMode ((DpId) 0x1EB) /* 491 T10BCounterRepMode */ #define DPoint_ScadaT10BSinglePointBaseIOA ((DpId) 0x1EC) /* 492 UI32 */ #define DPoint_ScadaT10BDoublePointBaseIOA ((DpId) 0x1ED) /* 493 UI32 */ #define DPoint_ScadaT10BSingleCmdBaseIOA ((DpId) 0x1EE) /* 494 UI32 */ #define DPoint_ScadaT10BDoubleCmdBaseIOA ((DpId) 0x1EF) /* 495 UI32 */ #define DPoint_ScadaT10BMeasurandBaseIOA ((DpId) 0x1F0) /* 496 UI32 */ #define DPoint_ScadaT10BSetpointBaseIOA ((DpId) 0x1F1) /* 497 UI32 */ #define DPoint_ScadaT10BParamCmdBaseIOA ((DpId) 0x1F2) /* 498 UI32 */ #define DPoint_ScadaT10BIntTotBaseIOA ((DpId) 0x1F3) /* 499 UI32 */ #define DPoint_ScadaT10BFormatMeasurand ((DpId) 0x1F4) /* 500 T10BFormatMeasurand */ #define DPoint_ScadaT10BCounterGeneralLocalFrzPeriod ((DpId) 0x1F5) /* 501 UI16 */ #define DPoint_ScadaT10BCounterGrp1LocalFrzPeriod ((DpId) 0x1F6) /* 502 UI16 */ #define DPoint_ScadaT10BCounterGrp2LocalFrzPeriod ((DpId) 0x1F7) /* 503 UI16 */ #define DPoint_ScadaT10BCounterGrp3LocalFrzPeriod ((DpId) 0x1F8) /* 504 UI16 */ #define DPoint_ScadaT10BCounterGrp4LocalFrzPeriod ((DpId) 0x1F9) /* 505 UI16 */ #define DPoint_ScadaT10BCounterGeneralLocalFrzFunction ((DpId) 0x1FA) /* 506 PeriodicCounterOperation */ #define DPoint_ScadaT10BCounterGrp1LocalFrzFunction ((DpId) 0x1FB) /* 507 PeriodicCounterOperation */ #define DPoint_ScadaT10BCounterGrp2LocalFrzFunction ((DpId) 0x1FC) /* 508 PeriodicCounterOperation */ #define DPoint_ScadaT10BCounterGrp3LocalFrzFunction ((DpId) 0x1FD) /* 509 PeriodicCounterOperation */ #define DPoint_ScadaT10BCounterGrp4LocalFrzFunction ((DpId) 0x1FE) /* 510 PeriodicCounterOperation */ #define DPoint_ScadaT10BSingleInfoInputs ((DpId) 0x1FF) /* 511 ScadaT10BMSP */ #define DPoint_ScadaT10BDoubleInfoInputs ((DpId) 0x200) /* 512 ScadaT10BMDP */ #define DPoint_ScadaT10BSingleCmndOutputs ((DpId) 0x201) /* 513 ScadaT10BCSC */ #define DPoint_ScadaT10BDoubleCmndOutputs ((DpId) 0x202) /* 514 ScadaT10BCDC */ #define DPoint_ScadaT10BMeasuredValues ((DpId) 0x203) /* 515 ScadaT10BMME */ #define DPoint_ScadaT10BSetpointCommand ((DpId) 0x204) /* 516 ScadaT10BCSE */ #define DPoint_ScadaT10BParameterCommand ((DpId) 0x205) /* 517 ScadaT10BPME */ #define DPoint_ScadaT10BIntegratedTotal ((DpId) 0x206) /* 518 ScadaT10BMIT */ #define DPoint_CmsMainConnectionTimeout ((DpId) 0x207) /* 519 UI32 */ #define DPoint_CmsAuxConnectionTimeout ((DpId) 0x208) /* 520 UI32 */ #define DPoint_CmsMainConnected ((DpId) 0x209) /* 521 Bool */ #define DPoint_CmsAuxConnected ((DpId) 0x20A) /* 522 Bool */ #define DPoint_ScadaDnp3IpProtocolMode ((DpId) 0x20B) /* 523 CommsIpProtocolMode */ #define DPoint_ScadaDnp3IpValidMasterAddr ((DpId) 0x20C) /* 524 YesNo */ #define DPoint_ScadaDnp3IpMasterAddr ((DpId) 0x20D) /* 525 IpAddr */ #define DPoint_T10BPhaseCurrentDeadband ((DpId) 0x20E) /* 526 I16 */ #define DPoint_ScadaDnp3IpTcpMasterPort ((DpId) 0x20F) /* 527 UI16 */ #define DPoint_ScadaDnp3IpUdpSlavePort ((DpId) 0x210) /* 528 UI16 */ #define DPoint_ScadaDnp3IpTimeout ((DpId) 0x211) /* 529 UI32 */ #define DPoint_ScadaDnp3IpTcpKeepAlive ((DpId) 0x212) /* 530 UI32 */ #define DPoint_ScadaDnp3IpUdpMasterPortInit ((DpId) 0x213) /* 531 UI16 */ #define DPoint_ScadaDnp3IpUdpMasterPortInRqst ((DpId) 0x214) /* 532 YesNo */ #define DPoint_ScadaDnp3IpUdpMasterPort ((DpId) 0x215) /* 533 UI16 */ #define DPoint_T101_ModemDialOut ((DpId) 0x216) /* 534 Bool */ #define DPoint_T101_ModemPreDialString ((DpId) 0x217) /* 535 Str */ #define DPoint_T101_ModemDialNumber1 ((DpId) 0x218) /* 536 Str */ #define DPoint_T101_ModemDialNumber2 ((DpId) 0x219) /* 537 Str */ #define DPoint_T101_ModemDialNumber3 ((DpId) 0x21A) /* 538 Str */ #define DPoint_T101_ModemDialNumber4 ((DpId) 0x21B) /* 539 Str */ #define DPoint_T101_ModemDialNumber5 ((DpId) 0x21C) /* 540 Str */ #define DPoint_ScadaT10BEnableProtocol ((DpId) 0x21D) /* 541 EnDis */ #define DPoint_ScadaT104PendingFrames ((DpId) 0x21E) /* 542 UI16 */ #define DPoint_ScadaT10BChannelPort ((DpId) 0x21F) /* 543 CommsPort */ #define DPoint_ScadaT104ConfirmAfter ((DpId) 0x220) /* 544 UI16 */ #define DPoint_T101_ModemAutoDialInterval ((DpId) 0x221) /* 545 UI32 */ #define DPoint_T101_ModemConnectionTimeout ((DpId) 0x222) /* 546 UI32 */ #define DPoint_T101RxCnt ((DpId) 0x223) /* 547 UI32 */ #define DPoint_T101TxCnt ((DpId) 0x224) /* 548 UI32 */ #define DPoint_T104RxCnt ((DpId) 0x225) /* 549 UI32 */ #define DPoint_T104TxCnt ((DpId) 0x226) /* 550 UI32 */ #define DPoint_T10BPhaseVoltageDeadband ((DpId) 0x227) /* 551 I16 */ #define DPoint_T10BResidualCurrentDeadband ((DpId) 0x228) /* 552 I16 */ #define DPoint_T10B3PhasePowerDeadband ((DpId) 0x229) /* 553 I16 */ #define DPoint_T10BPhaseCurrentHiLimit ((DpId) 0x22A) /* 554 I16 */ #define DPoint_T10BResidualCurrentHiLimit ((DpId) 0x22B) /* 555 I16 */ #define DPoint_IdIo1SerialNumber ((DpId) 0x22C) /* 556 SerialNumber */ #define DPoint_Curv1 ((DpId) 0x22D) /* 557 TccCurve */ #define DPoint_Curv2 ((DpId) 0x22E) /* 558 TccCurve */ #define DPoint_Curv3 ((DpId) 0x22F) /* 559 TccCurve */ #define DPoint_Curv4 ((DpId) 0x230) /* 560 TccCurve */ #define DPoint_Curv5 ((DpId) 0x231) /* 561 TccCurve */ #define DPoint_Curv6 ((DpId) 0x232) /* 562 TccCurve */ #define DPoint_Curv7 ((DpId) 0x233) /* 563 TccCurve */ #define DPoint_Curv8 ((DpId) 0x234) /* 564 TccCurve */ #define DPoint_Curv9 ((DpId) 0x235) /* 565 TccCurve */ #define DPoint_Curv10 ((DpId) 0x236) /* 566 TccCurve */ #define DPoint_Curv11 ((DpId) 0x237) /* 567 TccCurve */ #define DPoint_Curv12 ((DpId) 0x238) /* 568 TccCurve */ #define DPoint_Curv13 ((DpId) 0x239) /* 569 TccCurve */ #define DPoint_Curv14 ((DpId) 0x23A) /* 570 TccCurve */ #define DPoint_Curv15 ((DpId) 0x23B) /* 571 TccCurve */ #define DPoint_Curv16 ((DpId) 0x23C) /* 572 TccCurve */ #define DPoint_Curv17 ((DpId) 0x23D) /* 573 TccCurve */ #define DPoint_Curv18 ((DpId) 0x23E) /* 574 TccCurve */ #define DPoint_Curv19 ((DpId) 0x23F) /* 575 TccCurve */ #define DPoint_Curv20 ((DpId) 0x240) /* 576 TccCurve */ #define DPoint_Curv21 ((DpId) 0x241) /* 577 TccCurve */ #define DPoint_Curv22 ((DpId) 0x242) /* 578 TccCurve */ #define DPoint_Curv23 ((DpId) 0x243) /* 579 TccCurve */ #define DPoint_Curv24 ((DpId) 0x244) /* 580 TccCurve */ #define DPoint_Curv25 ((DpId) 0x245) /* 581 TccCurve */ #define DPoint_Curv26 ((DpId) 0x246) /* 582 TccCurve */ #define DPoint_Curv27 ((DpId) 0x247) /* 583 TccCurve */ #define DPoint_Curv28 ((DpId) 0x248) /* 584 TccCurve */ #define DPoint_Curv29 ((DpId) 0x249) /* 585 TccCurve */ #define DPoint_Curv30 ((DpId) 0x24A) /* 586 TccCurve */ #define DPoint_Curv31 ((DpId) 0x24B) /* 587 TccCurve */ #define DPoint_Curv32 ((DpId) 0x24C) /* 588 TccCurve */ #define DPoint_Curv33 ((DpId) 0x24D) /* 589 TccCurve */ #define DPoint_Curv34 ((DpId) 0x24E) /* 590 TccCurve */ #define DPoint_Curv35 ((DpId) 0x24F) /* 591 TccCurve */ #define DPoint_Curv36 ((DpId) 0x250) /* 592 TccCurve */ #define DPoint_Curv37 ((DpId) 0x251) /* 593 TccCurve */ #define DPoint_Curv38 ((DpId) 0x252) /* 594 TccCurve */ #define DPoint_Curv39 ((DpId) 0x253) /* 595 TccCurve */ #define DPoint_Curv40 ((DpId) 0x254) /* 596 TccCurve */ #define DPoint_Curv41 ((DpId) 0x255) /* 597 TccCurve */ #define DPoint_Curv42 ((DpId) 0x256) /* 598 TccCurve */ #define DPoint_Curv43 ((DpId) 0x257) /* 599 TccCurve */ #define DPoint_Curv44 ((DpId) 0x258) /* 600 TccCurve */ #define DPoint_Curv45 ((DpId) 0x259) /* 601 TccCurve */ #define DPoint_Curv46 ((DpId) 0x25A) /* 602 TccCurve */ #define DPoint_Curv47 ((DpId) 0x25B) /* 603 TccCurve */ #define DPoint_Curv48 ((DpId) 0x25C) /* 604 TccCurve */ #define DPoint_Curv49 ((DpId) 0x25D) /* 605 TccCurve */ #define DPoint_Curv50 ((DpId) 0x25E) /* 606 TccCurve */ #define DPoint_SimRqOpen ((DpId) 0x264) /* 612 EnDis */ #define DPoint_SimRqClose ((DpId) 0x265) /* 613 EnDis */ #define DPoint_SimLockout ((DpId) 0x266) /* 614 EnDis */ #define DPoint_DEPRCATED_EvArUInit ((DpId) 0x26A) /* 618 Bool */ #define DPoint_DERECATED_EvArUClose ((DpId) 0x26B) /* 619 Bool */ #define DPoint_DEPRECATED_EvArURes ((DpId) 0x26C) /* 620 Bool */ #define DPoint_CoOpen ((DpId) 0x26D) /* 621 LogOpen */ #define DPoint_CoClose ((DpId) 0x26E) /* 622 LogOpen */ #define DPoint_CoOpenReq ((DpId) 0x26F) /* 623 LogOpen */ #define DPoint_CoCloseReq ((DpId) 0x270) /* 624 LogOpen */ #define DPoint_LogFaultBufAddr1 ((DpId) 0x271) /* 625 UI32 */ #define DPoint_LogFaultBufAddr2 ((DpId) 0x272) /* 626 UI32 */ #define DPoint_LogFaultBufAddr3 ((DpId) 0x273) /* 627 UI32 */ #define DPoint_LogFaultBufAddr4 ((DpId) 0x274) /* 628 UI32 */ #define DPoint_CanSdoReadReq ((DpId) 0x275) /* 629 CanSdoReadReqType */ #define DPoint_CanSdoReadSucc ((DpId) 0x276) /* 630 UI8 */ #define DPoint_CanSimTripCloseRequestStatus ((DpId) 0x279) /* 633 UI8 */ #define DPoint_CanSimSwitchPositionStatus ((DpId) 0x27A) /* 634 UI8 */ #define DPoint_CanSimSwitchManualTrip ((DpId) 0x27B) /* 635 UI8 */ #define DPoint_CanSimSwitchConnectionStatus ((DpId) 0x27C) /* 636 UI8 */ #define DPoint_CanSimSwitchLockoutStatus ((DpId) 0x27D) /* 637 UI8 */ #define DPoint_CanSimOSMActuatorFaultStatus ((DpId) 0x27E) /* 638 UI8 */ #define DPoint_CanSimOSMlimitSwitchFaultStatus ((DpId) 0x27F) /* 639 UI8 */ #define DPoint_CanSimDriverStatus ((DpId) 0x280) /* 640 UI8 */ #define DPoint_CanSimTripCAPVoltage ((DpId) 0x281) /* 641 UI16 */ #define DPoint_CanSimCloseCAPVoltage ((DpId) 0x282) /* 642 UI16 */ #define DPoint_CanSimSIMCalibrationStatus ((DpId) 0x285) /* 645 UI8 */ #define DPoint_CanSimSwitchgearType ((DpId) 0x286) /* 646 UI8 */ #define DPoint_CanSimSwitchgearCTRatio ((DpId) 0x287) /* 647 UI16 */ #define DPoint_CanSimSIMCTaCalCoef ((DpId) 0x288) /* 648 UI16 */ #define DPoint_CanSimSIMCTbCalCoef ((DpId) 0x289) /* 649 UI16 */ #define DPoint_CanSimSIMCTcCalCoef ((DpId) 0x28A) /* 650 UI16 */ #define DPoint_CanSimSIMCTnCalCoef ((DpId) 0x28B) /* 651 UI16 */ #define DPoint_CanSimSIMCTTempCompCoef ((DpId) 0x28C) /* 652 UI16 */ #define DPoint_CanSimSIMCVTaCalCoef ((DpId) 0x28D) /* 653 UI16 */ #define DPoint_CanSimSIMCVTbCalCoef ((DpId) 0x28E) /* 654 UI16 */ #define DPoint_CanSimSIMCVTcCalCoef ((DpId) 0x28F) /* 655 UI16 */ #define DPoint_CanSimSIMCVTrCalCoef ((DpId) 0x290) /* 656 UI16 */ #define DPoint_CanSimSIMCVTsCalCoef ((DpId) 0x291) /* 657 UI16 */ #define DPoint_CanSimSIMCVTtCalCoef ((DpId) 0x292) /* 658 UI16 */ #define DPoint_CanSimSIMCVTTempCompCoef ((DpId) 0x293) /* 659 UI16 */ #define DPoint_CanSimCalibrationWriteData ((DpId) 0x294) /* 660 UI8 */ #define DPoint_CanSimBatteryStatus ((DpId) 0x295) /* 661 UI8 */ #define DPoint_CanSimBatteryChargerStatus ((DpId) 0x296) /* 662 UI8 */ #define DPoint_CanSimLowPowerBatteryCharge ((DpId) 0x297) /* 663 UI8 */ #define DPoint_CanSimBatteryVoltage ((DpId) 0x298) /* 664 UI16 */ #define DPoint_CanSimBatteryCurrent ((DpId) 0x299) /* 665 I16 */ #define DPoint_CanSimBatteryChargerCurrent ((DpId) 0x29A) /* 666 I16 */ #define DPoint_CanSimBatteryCapacityRemaining ((DpId) 0x29B) /* 667 UI8 */ #define DPoint_CanSimSetTotalBatteryCapacity ((DpId) 0x29C) /* 668 UI8 */ #define DPoint_CanSimSetBatteryType ((DpId) 0x29D) /* 669 UI8 */ #define DPoint_CanSimInitiateBatteryTest ((DpId) 0x29E) /* 670 UI8 */ #define DPoint_CanSimBatteryTestResult ((DpId) 0x29F) /* 671 UI8 */ #define DPoint_CanSimExtSupplyStatus ((DpId) 0x2A0) /* 672 UI8 */ #define DPoint_CanSimExtSupplyCurrent ((DpId) 0x2A1) /* 673 I16 */ #define DPoint_CanSimSetExtLoad ((DpId) 0x2A2) /* 674 UI8 */ #define DPoint_CanSimSetShutdownLevel ((DpId) 0x2A3) /* 675 UI8 */ #define DPoint_CanSimSetShutdownTime ((DpId) 0x2A4) /* 676 UI16 */ #define DPoint_CanSimUPSStatus ((DpId) 0x2A5) /* 677 UI8 */ #define DPoint_CanSimLineSupplyStatus ((DpId) 0x2A6) /* 678 LineSupplyStatus */ #define DPoint_CanSimLineSupplyRange ((DpId) 0x2A7) /* 679 UI8 */ #define DPoint_CanSimUPSPowerUp ((DpId) 0x2A8) /* 680 UI8 */ #define DPoint_CanSimReadTime ((DpId) 0x2AB) /* 683 UI32 */ #define DPoint_CanSimSetTimeDate ((DpId) 0x2AC) /* 684 UI32 */ #define DPoint_CanSimSIMTemp ((DpId) 0x2AF) /* 687 I16 */ #define DPoint_CanSimRequestWatchdogUpdate ((DpId) 0x2B0) /* 688 UI8 */ #define DPoint_CanSimRespondWatchdogRequest ((DpId) 0x2B1) /* 689 UI8 */ #define DPoint_CanSimDisableWatchdog ((DpId) 0x2B2) /* 690 UI32 */ #define DPoint_CanSimModuleResetStatus ((DpId) 0x2B3) /* 691 UI8 */ #define DPoint_CanSimResetModule ((DpId) 0x2B4) /* 692 UI8 */ #define DPoint_CanSimShutdownRequest ((DpId) 0x2B5) /* 693 UI8 */ #define DPoint_CanSimModuleHealth ((DpId) 0x2B6) /* 694 UI8 */ #define DPoint_CanSimModuleFault ((DpId) 0x2B7) /* 695 UI16 */ #define DPoint_CanSimModuleTemp ((DpId) 0x2B8) /* 696 I16 */ #define DPoint_CanSimModuleVoltage ((DpId) 0x2B9) /* 697 UI16 */ #define DPoint_CanSimModuleType ((DpId) 0x2BA) /* 698 UI8 */ #define DPoint_CanSimReadSerialNumber ((DpId) 0x2BB) /* 699 Str */ #define DPoint_CanSimBootLoaderVers ((DpId) 0x2BC) /* 700 SwVersion */ #define DPoint_IdIo2SerialNumber ((DpId) 0x2BD) /* 701 SerialNumber */ #define DPoint_CanSimReadHWVers ((DpId) 0x2BE) /* 702 UI32 */ #define DPoint_CanSimReadSWVers ((DpId) 0x2C0) /* 704 SwVersion */ #define DPoint_CanIo1InputStatus ((DpId) 0x2C1) /* 705 UI8 */ #define DPoint_CanIo2InputStatus ((DpId) 0x2C2) /* 706 UI8 */ #define DPoint_CanSimCANControllerOverrun ((DpId) 0x2C3) /* 707 UI8 */ #define DPoint_CanSimCANControllerError ((DpId) 0x2C4) /* 708 UI8 */ #define DPoint_CanSimCANMessagebufferoverflow ((DpId) 0x2C5) /* 709 UI8 */ #define DPoint_CanIo1InputEnable ((DpId) 0x2C6) /* 710 UI8 */ #define DPoint_CanIo2InputEnable ((DpId) 0x2C7) /* 711 UI8 */ #define DPoint_CanIo1InputTrigger ((DpId) 0x2C8) /* 712 UI8 */ #define DPoint_CanIo2InputTrigger ((DpId) 0x2C9) /* 713 UI8 */ #define DPoint_CanSimEmergShutdownRequest ((DpId) 0x2CA) /* 714 UI8 */ #define DPoint_SigPickup ((DpId) 0x2CB) /* 715 Signal */ #define DPoint_SigPickupOc1F ((DpId) 0x2CC) /* 716 Signal */ #define DPoint_SigPickupOc2F ((DpId) 0x2CD) /* 717 Signal */ #define DPoint_SigPickupOc3F ((DpId) 0x2CE) /* 718 Signal */ #define DPoint_SigPickupOc1R ((DpId) 0x2CF) /* 719 Signal */ #define DPoint_SigPickupOc2R ((DpId) 0x2D0) /* 720 Signal */ #define DPoint_SigPickupOc3R ((DpId) 0x2D1) /* 721 Signal */ #define DPoint_SigPickupEf1F ((DpId) 0x2D2) /* 722 Signal */ #define DPoint_SigPickupEf2F ((DpId) 0x2D3) /* 723 Signal */ #define DPoint_SigPickupEf3F ((DpId) 0x2D4) /* 724 Signal */ #define DPoint_SigPickupEf1R ((DpId) 0x2D5) /* 725 Signal */ #define DPoint_SigPickupEf2R ((DpId) 0x2D6) /* 726 Signal */ #define DPoint_SigPickupEf3R ((DpId) 0x2D7) /* 727 Signal */ #define DPoint_SigPickupSefF ((DpId) 0x2D8) /* 728 Signal */ #define DPoint_SigPickupSefR ((DpId) 0x2D9) /* 729 Signal */ #define DPoint_SigPickupOcll ((DpId) 0x2DA) /* 730 Signal */ #define DPoint_SigPickupEfll ((DpId) 0x2DB) /* 731 Signal */ #define DPoint_SigPickupUv1 ((DpId) 0x2DC) /* 732 Signal */ #define DPoint_SigPickupUv2 ((DpId) 0x2DD) /* 733 Signal */ #define DPoint_SigPickupUv3 ((DpId) 0x2DE) /* 734 Signal */ #define DPoint_SigPickupOv1 ((DpId) 0x2DF) /* 735 Signal */ #define DPoint_SigPickupOv2 ((DpId) 0x2E0) /* 736 Signal */ #define DPoint_SigPickupOf ((DpId) 0x2E2) /* 738 Signal */ #define DPoint_SigPickupUf ((DpId) 0x2E3) /* 739 Signal */ #define DPoint_SigPickupUabcGT ((DpId) 0x2E4) /* 740 Signal */ #define DPoint_SigPickupUabcLT ((DpId) 0x2E5) /* 741 Signal */ #define DPoint_SigPickupUrstGT ((DpId) 0x2E6) /* 742 Signal */ #define DPoint_SigPickupUrstLT ((DpId) 0x2E7) /* 743 Signal */ #define DPoint_G2_OcAt ((DpId) 0x2E8) /* 744 UI32 */ #define DPoint_G2_OcDnd ((DpId) 0x2E9) /* 745 DndMode */ #define DPoint_G2_EfAt ((DpId) 0x2EA) /* 746 UI32 */ #define DPoint_G2_EfDnd ((DpId) 0x2EB) /* 747 DndMode */ #define DPoint_G2_SefAt ((DpId) 0x2EC) /* 748 UI32 */ #define DPoint_G2_SefDnd ((DpId) 0x2ED) /* 749 DndMode */ #define DPoint_G2_ArOCEF_ZSCmode ((DpId) 0x2EE) /* 750 EnDis */ #define DPoint_G2_VrcEnable ((DpId) 0x2EF) /* 751 EnDis */ #define DPoint_CanDataRequestIo1 ((DpId) 0x2F0) /* 752 CanObjType */ #define DPoint_G2_ArOCEF_Trec1 ((DpId) 0x2F1) /* 753 UI32 */ #define DPoint_G2_ArOCEF_Trec2 ((DpId) 0x2F2) /* 754 UI32 */ #define DPoint_G2_ArOCEF_Trec3 ((DpId) 0x2F3) /* 755 UI32 */ #define DPoint_G2_ResetTime ((DpId) 0x2F4) /* 756 UI32 */ #define DPoint_G2_TtaMode ((DpId) 0x2F5) /* 757 TtaMode */ #define DPoint_G2_TtaTime ((DpId) 0x2F6) /* 758 UI32 */ #define DPoint_G2_SstOcForward ((DpId) 0x2F7) /* 759 UI8 */ #define DPoint_G2_EftEnable ((DpId) 0x2F8) /* 760 EnDis */ #define DPoint_G2_ClpClm ((DpId) 0x2F9) /* 761 UI32 */ #define DPoint_G2_ClpTcl ((DpId) 0x2FA) /* 762 UI32 */ #define DPoint_G2_ClpTrec ((DpId) 0x2FB) /* 763 UI32 */ #define DPoint_G2_IrrIrm ((DpId) 0x2FC) /* 764 UI32 */ #define DPoint_G2_IrrTir ((DpId) 0x2FD) /* 765 UI32 */ #define DPoint_G2_VrcMode ((DpId) 0x2FE) /* 766 VrcMode */ #define DPoint_G2_VrcUMmin ((DpId) 0x2FF) /* 767 UI32 */ #define DPoint_G2_AbrMode ((DpId) 0x300) /* 768 EnDis */ #define DPoint_G2_OC1F_Ip ((DpId) 0x301) /* 769 UI32 */ #define DPoint_G2_OC1F_Tcc ((DpId) 0x302) /* 770 UI16 */ #define DPoint_G2_OC1F_TDtMin ((DpId) 0x303) /* 771 UI32 */ #define DPoint_G2_OC1F_TDtRes ((DpId) 0x304) /* 772 UI32 */ #define DPoint_G2_OC1F_Tm ((DpId) 0x305) /* 773 UI32 */ #define DPoint_G2_OC1F_Imin ((DpId) 0x306) /* 774 UI32 */ #define DPoint_G2_OC1F_Tmin ((DpId) 0x307) /* 775 UI32 */ #define DPoint_G2_OC1F_Tmax ((DpId) 0x308) /* 776 UI32 */ #define DPoint_G2_OC1F_Ta ((DpId) 0x309) /* 777 UI32 */ #define DPoint_CanDataRequestIo2 ((DpId) 0x30A) /* 778 CanObjType */ #define DPoint_G2_OC1F_ImaxEn ((DpId) 0x30B) /* 779 EnDis */ #define DPoint_G2_OC1F_Imax ((DpId) 0x30C) /* 780 UI32 */ #define DPoint_G2_OC1F_DirEn ((DpId) 0x30D) /* 781 EnDis */ #define DPoint_G2_OC1F_Tr1 ((DpId) 0x30E) /* 782 TripMode */ #define DPoint_G2_OC1F_Tr2 ((DpId) 0x30F) /* 783 TripMode */ #define DPoint_G2_OC1F_Tr3 ((DpId) 0x310) /* 784 TripMode */ #define DPoint_G2_OC1F_Tr4 ((DpId) 0x311) /* 785 TripMode */ #define DPoint_G2_OC1F_TccUD ((DpId) 0x312) /* 786 TccCurve */ #define DPoint_G2_OC2F_Ip ((DpId) 0x313) /* 787 UI32 */ #define DPoint_G2_OC2F_Tcc ((DpId) 0x314) /* 788 UI16 */ #define DPoint_G2_OC2F_TDtMin ((DpId) 0x315) /* 789 UI32 */ #define DPoint_G2_OC2F_TDtRes ((DpId) 0x316) /* 790 UI32 */ #define DPoint_G2_OC2F_Tm ((DpId) 0x317) /* 791 UI32 */ #define DPoint_G2_OC2F_Imin ((DpId) 0x318) /* 792 UI32 */ #define DPoint_G2_OC2F_Tmin ((DpId) 0x319) /* 793 UI32 */ #define DPoint_G2_OC2F_Tmax ((DpId) 0x31A) /* 794 UI32 */ #define DPoint_G2_OC2F_Ta ((DpId) 0x31B) /* 795 UI32 */ #define DPoint_G2_EftTripCount ((DpId) 0x31C) /* 796 UI8 */ #define DPoint_G2_OC2F_ImaxEn ((DpId) 0x31D) /* 797 EnDis */ #define DPoint_G2_OC2F_Imax ((DpId) 0x31E) /* 798 UI32 */ #define DPoint_G2_OC2F_DirEn ((DpId) 0x31F) /* 799 EnDis */ #define DPoint_G2_OC2F_Tr1 ((DpId) 0x320) /* 800 TripMode */ #define DPoint_G2_OC2F_Tr2 ((DpId) 0x321) /* 801 TripMode */ #define DPoint_G2_OC2F_Tr3 ((DpId) 0x322) /* 802 TripMode */ #define DPoint_G2_OC2F_Tr4 ((DpId) 0x323) /* 803 TripMode */ #define DPoint_G2_OC2F_TccUD ((DpId) 0x324) /* 804 TccCurve */ #define DPoint_G2_OC3F_Ip ((DpId) 0x325) /* 805 UI32 */ #define DPoint_G2_OC3F_TDtMin ((DpId) 0x326) /* 806 UI32 */ #define DPoint_G2_OC3F_TDtRes ((DpId) 0x327) /* 807 UI32 */ #define DPoint_G2_OC3F_DirEn ((DpId) 0x328) /* 808 EnDis */ #define DPoint_G2_OC3F_Tr1 ((DpId) 0x329) /* 809 TripMode */ #define DPoint_G2_OC3F_Tr2 ((DpId) 0x32A) /* 810 TripMode */ #define DPoint_G2_OC3F_Tr3 ((DpId) 0x32B) /* 811 TripMode */ #define DPoint_G2_OC3F_Tr4 ((DpId) 0x32C) /* 812 TripMode */ #define DPoint_G2_OC1R_Ip ((DpId) 0x32D) /* 813 UI32 */ #define DPoint_G2_OC1R_Tcc ((DpId) 0x32E) /* 814 UI16 */ #define DPoint_G2_OC1R_TDtMin ((DpId) 0x32F) /* 815 UI32 */ #define DPoint_G2_OC1R_TDtRes ((DpId) 0x330) /* 816 UI32 */ #define DPoint_G2_OC1R_Tm ((DpId) 0x331) /* 817 UI32 */ #define DPoint_G2_OC1R_Imin ((DpId) 0x332) /* 818 UI32 */ #define DPoint_G2_OC1R_Tmin ((DpId) 0x333) /* 819 UI32 */ #define DPoint_G2_OC1R_Tmax ((DpId) 0x334) /* 820 UI32 */ #define DPoint_G2_OC1R_Ta ((DpId) 0x335) /* 821 UI32 */ #define DPoint_G2_EftTripWindow ((DpId) 0x336) /* 822 UI8 */ #define DPoint_G2_OC1R_ImaxEn ((DpId) 0x337) /* 823 EnDis */ #define DPoint_G2_OC1R_Imax ((DpId) 0x338) /* 824 UI32 */ #define DPoint_G2_OC1R_DirEn ((DpId) 0x339) /* 825 EnDis */ #define DPoint_G2_OC1R_Tr1 ((DpId) 0x33A) /* 826 TripMode */ #define DPoint_G2_OC1R_Tr2 ((DpId) 0x33B) /* 827 TripMode */ #define DPoint_G2_OC1R_Tr3 ((DpId) 0x33C) /* 828 TripMode */ #define DPoint_G2_OC1R_Tr4 ((DpId) 0x33D) /* 829 TripMode */ #define DPoint_G2_OC1R_TccUD ((DpId) 0x33E) /* 830 TccCurve */ #define DPoint_G2_OC2R_Ip ((DpId) 0x33F) /* 831 UI32 */ #define DPoint_G2_OC2R_Tcc ((DpId) 0x340) /* 832 UI16 */ #define DPoint_G2_OC2R_TDtMin ((DpId) 0x341) /* 833 UI32 */ #define DPoint_G2_OC2R_TDtRes ((DpId) 0x342) /* 834 UI32 */ #define DPoint_G2_OC2R_Tm ((DpId) 0x343) /* 835 UI32 */ #define DPoint_G2_OC2R_Imin ((DpId) 0x344) /* 836 UI32 */ #define DPoint_G2_OC2R_Tmin ((DpId) 0x345) /* 837 UI32 */ #define DPoint_G2_OC2R_Tmax ((DpId) 0x346) /* 838 UI32 */ #define DPoint_G2_OC2R_Ta ((DpId) 0x347) /* 839 UI32 */ #define DPoint_G2_OC2R_ImaxEn ((DpId) 0x349) /* 841 EnDis */ #define DPoint_G2_OC2R_Imax ((DpId) 0x34A) /* 842 UI32 */ #define DPoint_G2_OC2R_DirEn ((DpId) 0x34B) /* 843 EnDis */ #define DPoint_G2_OC2R_Tr1 ((DpId) 0x34C) /* 844 TripMode */ #define DPoint_G2_OC2R_Tr2 ((DpId) 0x34D) /* 845 TripMode */ #define DPoint_G2_OC2R_Tr3 ((DpId) 0x34E) /* 846 TripMode */ #define DPoint_G2_OC2R_Tr4 ((DpId) 0x34F) /* 847 TripMode */ #define DPoint_G2_OC2R_TccUD ((DpId) 0x350) /* 848 TccCurve */ #define DPoint_G2_OC3R_Ip ((DpId) 0x351) /* 849 UI32 */ #define DPoint_G2_OC3R_TDtMin ((DpId) 0x352) /* 850 UI32 */ #define DPoint_G2_OC3R_TDtRes ((DpId) 0x353) /* 851 UI32 */ #define DPoint_G2_OC3R_DirEn ((DpId) 0x354) /* 852 EnDis */ #define DPoint_G2_OC3R_Tr1 ((DpId) 0x355) /* 853 TripMode */ #define DPoint_G2_OC3R_Tr2 ((DpId) 0x356) /* 854 TripMode */ #define DPoint_G2_OC3R_Tr3 ((DpId) 0x357) /* 855 TripMode */ #define DPoint_G2_OC3R_Tr4 ((DpId) 0x358) /* 856 TripMode */ #define DPoint_G2_EF1F_Ip ((DpId) 0x359) /* 857 UI32 */ #define DPoint_G2_EF1F_Tcc ((DpId) 0x35A) /* 858 UI16 */ #define DPoint_G2_EF1F_TDtMin ((DpId) 0x35B) /* 859 UI32 */ #define DPoint_G2_EF1F_TDtRes ((DpId) 0x35C) /* 860 UI32 */ #define DPoint_G2_EF1F_Tm ((DpId) 0x35D) /* 861 UI32 */ #define DPoint_G2_EF1F_Imin ((DpId) 0x35E) /* 862 UI32 */ #define DPoint_G2_EF1F_Tmin ((DpId) 0x35F) /* 863 UI32 */ #define DPoint_G2_EF1F_Tmax ((DpId) 0x360) /* 864 UI32 */ #define DPoint_G2_EF1F_Ta ((DpId) 0x361) /* 865 UI32 */ #define DPoint_G2_DEPRECATED_G1EF1F_Tres ((DpId) 0x362) /* 866 UI32 */ #define DPoint_G2_EF1F_ImaxEn ((DpId) 0x363) /* 867 EnDis */ #define DPoint_G2_EF1F_Imax ((DpId) 0x364) /* 868 UI32 */ #define DPoint_G2_EF1F_DirEn ((DpId) 0x365) /* 869 EnDis */ #define DPoint_G2_EF1F_Tr1 ((DpId) 0x366) /* 870 TripMode */ #define DPoint_G2_EF1F_Tr2 ((DpId) 0x367) /* 871 TripMode */ #define DPoint_G2_EF1F_Tr3 ((DpId) 0x368) /* 872 TripMode */ #define DPoint_G2_EF1F_Tr4 ((DpId) 0x369) /* 873 TripMode */ #define DPoint_G2_EF1F_TccUD ((DpId) 0x36A) /* 874 TccCurve */ #define DPoint_G2_EF2F_Ip ((DpId) 0x36B) /* 875 UI32 */ #define DPoint_G2_EF2F_Tcc ((DpId) 0x36C) /* 876 UI16 */ #define DPoint_G2_EF2F_TDtMin ((DpId) 0x36D) /* 877 UI32 */ #define DPoint_G2_EF2F_TDtRes ((DpId) 0x36E) /* 878 UI32 */ #define DPoint_G2_EF2F_Tm ((DpId) 0x36F) /* 879 UI32 */ #define DPoint_G2_EF2F_Imin ((DpId) 0x370) /* 880 UI32 */ #define DPoint_G2_EF2F_Tmin ((DpId) 0x371) /* 881 UI32 */ #define DPoint_G2_EF2F_Tmax ((DpId) 0x372) /* 882 UI32 */ #define DPoint_G2_EF2F_Ta ((DpId) 0x373) /* 883 UI32 */ #define DPoint_G2_DEPRECATED_G1EF2F_Tres ((DpId) 0x374) /* 884 UI32 */ #define DPoint_G2_EF2F_ImaxEn ((DpId) 0x375) /* 885 EnDis */ #define DPoint_G2_EF2F_Imax ((DpId) 0x376) /* 886 UI32 */ #define DPoint_G2_EF2F_DirEn ((DpId) 0x377) /* 887 EnDis */ #define DPoint_G2_EF2F_Tr1 ((DpId) 0x378) /* 888 TripMode */ #define DPoint_G2_EF2F_Tr2 ((DpId) 0x379) /* 889 TripMode */ #define DPoint_G2_EF2F_Tr3 ((DpId) 0x37A) /* 890 TripMode */ #define DPoint_G2_EF2F_Tr4 ((DpId) 0x37B) /* 891 TripMode */ #define DPoint_G2_EF2F_TccUD ((DpId) 0x37C) /* 892 TccCurve */ #define DPoint_G2_EF3F_Ip ((DpId) 0x37D) /* 893 UI32 */ #define DPoint_G2_EF3F_TDtMin ((DpId) 0x37E) /* 894 UI32 */ #define DPoint_G2_EF3F_TDtRes ((DpId) 0x37F) /* 895 UI32 */ #define DPoint_G2_EF3F_DirEn ((DpId) 0x380) /* 896 EnDis */ #define DPoint_G2_EF3F_Tr1 ((DpId) 0x381) /* 897 TripMode */ #define DPoint_G2_EF3F_Tr2 ((DpId) 0x382) /* 898 TripMode */ #define DPoint_G2_EF3F_Tr3 ((DpId) 0x383) /* 899 TripMode */ #define DPoint_G2_EF3F_Tr4 ((DpId) 0x384) /* 900 TripMode */ #define DPoint_G2_EF1R_Ip ((DpId) 0x385) /* 901 UI32 */ #define DPoint_G2_EF1R_Tcc ((DpId) 0x386) /* 902 UI16 */ #define DPoint_G2_EF1R_TDtMin ((DpId) 0x387) /* 903 UI32 */ #define DPoint_G2_EF1R_TDtRes ((DpId) 0x388) /* 904 UI32 */ #define DPoint_G2_EF1R_Tm ((DpId) 0x389) /* 905 UI32 */ #define DPoint_G2_EF1R_Imin ((DpId) 0x38A) /* 906 UI32 */ #define DPoint_G2_EF1R_Tmin ((DpId) 0x38B) /* 907 UI32 */ #define DPoint_G2_EF1R_Tmax ((DpId) 0x38C) /* 908 UI32 */ #define DPoint_G2_EF1R_Ta ((DpId) 0x38D) /* 909 UI32 */ #define DPoint_G2_DEPRECATED_G1EF1R_Tres ((DpId) 0x38E) /* 910 UI32 */ #define DPoint_G2_EF1R_ImaxEn ((DpId) 0x38F) /* 911 EnDis */ #define DPoint_G2_EF1R_Imax ((DpId) 0x390) /* 912 UI32 */ #define DPoint_G2_EF1R_DirEn ((DpId) 0x391) /* 913 EnDis */ #define DPoint_G2_EF1R_Tr1 ((DpId) 0x392) /* 914 TripMode */ #define DPoint_G2_EF1R_Tr2 ((DpId) 0x393) /* 915 TripMode */ #define DPoint_G2_EF1R_Tr3 ((DpId) 0x394) /* 916 TripMode */ #define DPoint_G2_EF1R_Tr4 ((DpId) 0x395) /* 917 TripMode */ #define DPoint_G2_EF1R_TccUD ((DpId) 0x396) /* 918 TccCurve */ #define DPoint_G2_EF2R_Ip ((DpId) 0x397) /* 919 UI32 */ #define DPoint_G2_EF2R_Tcc ((DpId) 0x398) /* 920 UI16 */ #define DPoint_G2_EF2R_TDtMin ((DpId) 0x399) /* 921 UI32 */ #define DPoint_G2_EF2R_TDtRes ((DpId) 0x39A) /* 922 UI32 */ #define DPoint_G2_EF2R_Tm ((DpId) 0x39B) /* 923 UI32 */ #define DPoint_G2_EF2R_Imin ((DpId) 0x39C) /* 924 UI32 */ #define DPoint_G2_EF2R_Tmin ((DpId) 0x39D) /* 925 UI32 */ #define DPoint_G2_EF2R_Tmax ((DpId) 0x39E) /* 926 UI32 */ #define DPoint_G2_EF2R_Ta ((DpId) 0x39F) /* 927 UI32 */ #define DPoint_G2_EF2R_ImaxEn ((DpId) 0x3A1) /* 929 EnDis */ #define DPoint_G2_EF2R_Imax ((DpId) 0x3A2) /* 930 UI32 */ #define DPoint_G2_EF2R_DirEn ((DpId) 0x3A3) /* 931 EnDis */ #define DPoint_G2_EF2R_Tr1 ((DpId) 0x3A4) /* 932 TripMode */ #define DPoint_G2_EF2R_Tr2 ((DpId) 0x3A5) /* 933 TripMode */ #define DPoint_G2_EF2R_Tr3 ((DpId) 0x3A6) /* 934 TripMode */ #define DPoint_G2_EF2R_Tr4 ((DpId) 0x3A7) /* 935 TripMode */ #define DPoint_G2_EF2R_TccUD ((DpId) 0x3A8) /* 936 TccCurve */ #define DPoint_G2_EF3R_Ip ((DpId) 0x3A9) /* 937 UI32 */ #define DPoint_G2_EF3R_TDtMin ((DpId) 0x3AA) /* 938 UI32 */ #define DPoint_G2_EF3R_TDtRes ((DpId) 0x3AB) /* 939 UI32 */ #define DPoint_G2_EF3R_DirEn ((DpId) 0x3AC) /* 940 EnDis */ #define DPoint_G2_EF3R_Tr1 ((DpId) 0x3AD) /* 941 TripMode */ #define DPoint_G2_EF3R_Tr2 ((DpId) 0x3AE) /* 942 TripMode */ #define DPoint_G2_EF3R_Tr3 ((DpId) 0x3AF) /* 943 TripMode */ #define DPoint_G2_EF3R_Tr4 ((DpId) 0x3B0) /* 944 TripMode */ #define DPoint_G2_SEFF_Ip ((DpId) 0x3B1) /* 945 UI32 */ #define DPoint_G2_SEFF_TDtMin ((DpId) 0x3B2) /* 946 UI32 */ #define DPoint_G2_SEFF_TDtRes ((DpId) 0x3B3) /* 947 UI32 */ #define DPoint_G2_SEFF_DirEn ((DpId) 0x3B4) /* 948 EnDis */ #define DPoint_G2_SEFF_Tr1 ((DpId) 0x3B5) /* 949 TripMode */ #define DPoint_G2_SEFF_Tr2 ((DpId) 0x3B6) /* 950 TripMode */ #define DPoint_G2_SEFF_Tr3 ((DpId) 0x3B7) /* 951 TripMode */ #define DPoint_G2_SEFF_Tr4 ((DpId) 0x3B8) /* 952 TripMode */ #define DPoint_G2_SEFR_Ip ((DpId) 0x3B9) /* 953 UI32 */ #define DPoint_G2_SEFR_TDtMin ((DpId) 0x3BA) /* 954 UI32 */ #define DPoint_G2_SEFR_TDtRes ((DpId) 0x3BB) /* 955 UI32 */ #define DPoint_G2_SEFR_DirEn ((DpId) 0x3BC) /* 956 EnDis */ #define DPoint_G2_SEFR_Tr1 ((DpId) 0x3BD) /* 957 TripMode */ #define DPoint_G2_SEFR_Tr2 ((DpId) 0x3BE) /* 958 TripMode */ #define DPoint_G2_SEFR_Tr3 ((DpId) 0x3BF) /* 959 TripMode */ #define DPoint_G2_SEFR_Tr4 ((DpId) 0x3C0) /* 960 TripMode */ #define DPoint_G2_OcLl_Ip ((DpId) 0x3C1) /* 961 UI32 */ #define DPoint_G2_OcLl_TDtMin ((DpId) 0x3C2) /* 962 UI32 */ #define DPoint_G2_OcLl_TDtRes ((DpId) 0x3C3) /* 963 UI32 */ #define DPoint_G2_EfLl_Ip ((DpId) 0x3C4) /* 964 UI32 */ #define DPoint_G2_EfLl_TDtMin ((DpId) 0x3C5) /* 965 UI32 */ #define DPoint_G2_EfLl_TDtRes ((DpId) 0x3C6) /* 966 UI32 */ #define DPoint_G2_Uv1_Um ((DpId) 0x3C7) /* 967 UI32 */ #define DPoint_G2_Uv1_TDtMin ((DpId) 0x3C8) /* 968 UI32 */ #define DPoint_G2_Uv1_TDtRes ((DpId) 0x3C9) /* 969 UI32 */ #define DPoint_G2_Uv1_Trm ((DpId) 0x3CA) /* 970 TripMode */ #define DPoint_G2_Uv2_Um ((DpId) 0x3CB) /* 971 UI32 */ #define DPoint_G2_Uv2_TDtMin ((DpId) 0x3CC) /* 972 UI32 */ #define DPoint_G2_Uv2_TDtRes ((DpId) 0x3CD) /* 973 UI32 */ #define DPoint_G2_Uv2_Trm ((DpId) 0x3CE) /* 974 TripMode */ #define DPoint_G2_Uv3_TDtMin ((DpId) 0x3CF) /* 975 UI32 */ #define DPoint_G2_Uv3_TDtRes ((DpId) 0x3D0) /* 976 UI32 */ #define DPoint_G2_Uv3_Trm ((DpId) 0x3D1) /* 977 TripMode */ #define DPoint_G2_Ov1_Um ((DpId) 0x3D2) /* 978 UI32 */ #define DPoint_G2_Ov1_TDtMin ((DpId) 0x3D3) /* 979 UI32 */ #define DPoint_G2_Ov1_TDtRes ((DpId) 0x3D4) /* 980 UI32 */ #define DPoint_G2_Ov1_Trm ((DpId) 0x3D5) /* 981 TripMode */ #define DPoint_G2_Ov2_Um ((DpId) 0x3D6) /* 982 UI32 */ #define DPoint_G2_Ov2_TDtMin ((DpId) 0x3D7) /* 983 UI32 */ #define DPoint_G2_Ov2_TDtRes ((DpId) 0x3D8) /* 984 UI32 */ #define DPoint_G2_Ov2_Trm ((DpId) 0x3D9) /* 985 TripMode */ #define DPoint_G2_Uf_Fp ((DpId) 0x3DA) /* 986 UI32 */ #define DPoint_G2_Uf_TDtMin ((DpId) 0x3DB) /* 987 UI32 */ #define DPoint_G2_Uf_TDtRes ((DpId) 0x3DC) /* 988 UI32 */ #define DPoint_G2_Uf_Trm ((DpId) 0x3DD) /* 989 TripModeDLA */ #define DPoint_G2_Of_Fp ((DpId) 0x3DE) /* 990 UI32 */ #define DPoint_G2_Of_TDtMin ((DpId) 0x3DF) /* 991 UI32 */ #define DPoint_G2_Of_TDtRes ((DpId) 0x3E0) /* 992 UI32 */ #define DPoint_G2_Of_Trm ((DpId) 0x3E1) /* 993 TripModeDLA */ #define DPoint_G2_DEPRECATED_OC1F_ImaxAbs ((DpId) 0x3E2) /* 994 UI32 */ #define DPoint_G2_DEPRECATED_OC2F_ImaxAbs ((DpId) 0x3E3) /* 995 UI32 */ #define DPoint_G2_DEPRECATED_OC1R_ImaxAbs ((DpId) 0x3E4) /* 996 UI32 */ #define DPoint_G2_DEPRECATED_OC2R_ImaxAbs ((DpId) 0x3E5) /* 997 UI32 */ #define DPoint_G2_DEPRECATED_EF1F_ImaxAbs ((DpId) 0x3E6) /* 998 UI32 */ #define DPoint_G2_DEPRECATED_EF2F_ImaxAbs ((DpId) 0x3E7) /* 999 UI32 */ #define DPoint_G2_DEPRECATED_EF1R_ImaxAbs ((DpId) 0x3E8) /* 1000 UI32 */ #define DPoint_G2_DEPRECATED_EF2R_ImaxAbs ((DpId) 0x3E9) /* 1001 UI32 */ #define DPoint_G2_SstEfForward ((DpId) 0x3EA) /* 1002 UI8 */ #define DPoint_G2_SstSefForward ((DpId) 0x3EB) /* 1003 UI8 */ #define DPoint_G2_AbrTrest ((DpId) 0x3EC) /* 1004 UI32 */ #define DPoint_G2_AutoOpenMode ((DpId) 0x3ED) /* 1005 AutoOpenMode */ #define DPoint_G2_AutoOpenTime ((DpId) 0x3EE) /* 1006 UI16 */ #define DPoint_G2_AutoOpenOpns ((DpId) 0x3EF) /* 1007 UI8 */ #define DPoint_G2_SstOcReverse ((DpId) 0x3F0) /* 1008 UI8 */ #define DPoint_G2_SstEfReverse ((DpId) 0x3F1) /* 1009 UI8 */ #define DPoint_G2_SstSefReverse ((DpId) 0x3F2) /* 1010 UI8 */ #define DPoint_G2_ArUVOV_Trec ((DpId) 0x3F3) /* 1011 UI32 */ #define DPoint_G2_GrpName ((DpId) 0x3F4) /* 1012 Str */ #define DPoint_G2_GrpDes ((DpId) 0x3F5) /* 1013 Str */ #define DPoint_CanIo1InputRecognitionTime ((DpId) 0x3F6) /* 1014 CanIoInputRecTimes */ #define DPoint_CanIo2InputRecognitionTime ((DpId) 0x3F7) /* 1015 CanIoInputRecTimes */ #define DPoint_CanIo1OutputEnable ((DpId) 0x3F8) /* 1016 UI8 */ #define DPoint_CanIo2OutputEnable ((DpId) 0x3F9) /* 1017 UI8 */ #define DPoint_CanIo1OutputSet ((DpId) 0x3FA) /* 1018 UI8 */ #define DPoint_CanIo2OutputSet ((DpId) 0x3FB) /* 1019 UI8 */ #define DPoint_CanIo1OutputPulseEnable ((DpId) 0x3FC) /* 1020 UI8 */ #define DPoint_CanIo2OutputPulseEnable ((DpId) 0x3FD) /* 1021 UI8 */ #define DPoint_CanIo1OutputPulseTime1 ((DpId) 0x3FE) /* 1022 UI16 */ #define DPoint_CanIo1OutputPulseTime2 ((DpId) 0x3FF) /* 1023 UI16 */ #define DPoint_CanIo1OutputPulseTime3 ((DpId) 0x400) /* 1024 UI16 */ #define DPoint_CanIo1OutputPulseTime4 ((DpId) 0x401) /* 1025 UI16 */ #define DPoint_CanIo1OutputPulseTime5 ((DpId) 0x402) /* 1026 UI16 */ #define DPoint_CanIo1OutputPulseTime6 ((DpId) 0x403) /* 1027 UI16 */ #define DPoint_CanIo1OutputPulseTime7 ((DpId) 0x404) /* 1028 UI16 */ #define DPoint_CanIo1OutputPulseTime8 ((DpId) 0x405) /* 1029 UI16 */ #define DPoint_CanIo2OutputPulseTime1 ((DpId) 0x406) /* 1030 UI16 */ #define DPoint_CanIo2OutputPulseTime2 ((DpId) 0x407) /* 1031 UI16 */ #define DPoint_CanIo2OutputPulseTime3 ((DpId) 0x408) /* 1032 UI16 */ #define DPoint_CanIo2OutputPulseTime4 ((DpId) 0x409) /* 1033 UI16 */ #define DPoint_CanIo2OutputPulseTime5 ((DpId) 0x40A) /* 1034 UI16 */ #define DPoint_CanIo2OutputPulseTime6 ((DpId) 0x40B) /* 1035 UI16 */ #define DPoint_CanIo2OutputPulseTime7 ((DpId) 0x40C) /* 1036 UI16 */ #define DPoint_CanIo2OutputPulseTime8 ((DpId) 0x40D) /* 1037 UI16 */ #define DPoint_UsbABCShutdownEnable ((DpId) 0x40E) /* 1038 EnDis */ #define DPoint_ScadaDnp3RqstCnt ((DpId) 0x40F) /* 1039 UI32 */ #define DPoint_ScadaDnp3IpUnathIpAddr ((DpId) 0x410) /* 1040 IpAddr */ #define DPoint_SigUSBHostOff ((DpId) 0x412) /* 1042 Signal */ #define DPoint_CanIo1ModuleType ((DpId) 0x413) /* 1043 UI8 */ #define DPoint_CanIo2ModuleType ((DpId) 0x414) /* 1044 UI8 */ #define DPoint_CanIo1ModuleHealth ((DpId) 0x415) /* 1045 UI8 */ #define DPoint_CanIo2ModuleHealth ((DpId) 0x416) /* 1046 UI8 */ #define DPoint_CanIo1ModuleFault ((DpId) 0x417) /* 1047 UI16 */ #define DPoint_CanIo2ModuleFault ((DpId) 0x418) /* 1048 UI16 */ #define DPoint_CanIo1SerialNumber ((DpId) 0x419) /* 1049 Arr8 */ #define DPoint_CanIo2SerialNumber ((DpId) 0x41A) /* 1050 Arr8 */ #define DPoint_CanIo1PartAndSupplierCode ((DpId) 0x41B) /* 1051 Str */ #define DPoint_CanIo2PartAndSupplierCode ((DpId) 0x41C) /* 1052 Str */ #define DPoint_CanIo1Test ((DpId) 0x41D) /* 1053 UI8 */ #define DPoint_CanIo2Test ((DpId) 0x41E) /* 1054 UI8 */ #define DPoint_IO1Number ((DpId) 0x41F) /* 1055 ConfigIOCardNum */ #define DPoint_IO2Number ((DpId) 0x420) /* 1056 ConfigIOCardNum */ #define DPoint_IoStatusILocCh1 ((DpId) 0x421) /* 1057 IoStatus */ #define DPoint_IoStatusILocCh2 ((DpId) 0x422) /* 1058 IoStatus */ #define DPoint_IoStatusILocCh3 ((DpId) 0x423) /* 1059 IoStatus */ #define DPoint_CanIo1ReadHwVers ((DpId) 0x424) /* 1060 UI32 */ #define DPoint_CanIo2ReadHwVers ((DpId) 0x425) /* 1061 UI32 */ #define DPoint_CanIo1ReadSwVers ((DpId) 0x426) /* 1062 SwVersion */ #define DPoint_CanIo2ReadSwVers ((DpId) 0x427) /* 1063 SwVersion */ #define DPoint_IdIO1SoftwareVer ((DpId) 0x428) /* 1064 Str */ #define DPoint_IdIO2SoftwareVer ((DpId) 0x429) /* 1065 Str */ #define DPoint_IdIO1HardwareVer ((DpId) 0x42A) /* 1066 Str */ #define DPoint_IdIO2HardwareVer ((DpId) 0x42B) /* 1067 Str */ #define DPoint_CanIoAddrReq ((DpId) 0x42C) /* 1068 Arr8 */ #define DPoint_CanIo1ResetModule ((DpId) 0x42D) /* 1069 UI8 */ #define DPoint_CanIo2ResetModule ((DpId) 0x42E) /* 1070 UI8 */ #define DPoint_SwitchgearType ((DpId) 0x42F) /* 1071 SwitchgearTypes */ #define DPoint_IoSettingIo1InputEnable ((DpId) 0x430) /* 1072 UI8 */ #define DPoint_IoSettingIo1OutputEnable ((DpId) 0x431) /* 1073 UI8 */ #define DPoint_IoSettingIo2InputEnable ((DpId) 0x432) /* 1074 UI8 */ #define DPoint_IoSettingIo2OutputEnable ((DpId) 0x433) /* 1075 UI8 */ #define DPoint_IoSettingILocEnable ((DpId) 0x434) /* 1076 UI8 */ #define DPoint_SigLockoutProt ((DpId) 0x435) /* 1077 Signal */ #define DPoint_IoSettingILocTrec1 ((DpId) 0x436) /* 1078 UI8 */ #define DPoint_IoSettingILocTrec2 ((DpId) 0x437) /* 1079 UI8 */ #define DPoint_IoSettingILocTrec3 ((DpId) 0x438) /* 1080 UI8 */ #define DPoint_IoSettingIo1InTrecCh1 ((DpId) 0x439) /* 1081 UI8 */ #define DPoint_IoSettingIo1InTrecCh2 ((DpId) 0x43A) /* 1082 UI8 */ #define DPoint_IoSettingIo1InTrecCh3 ((DpId) 0x43B) /* 1083 UI8 */ #define DPoint_IoSettingIo1InTrecCh4 ((DpId) 0x43C) /* 1084 UI8 */ #define DPoint_IoSettingIo1InTrecCh5 ((DpId) 0x43D) /* 1085 UI8 */ #define DPoint_IoSettingIo1InTrecCh6 ((DpId) 0x43E) /* 1086 UI8 */ #define DPoint_IoSettingIo1InTrecCh7 ((DpId) 0x43F) /* 1087 UI8 */ #define DPoint_IoSettingIo1InTrecCh8 ((DpId) 0x440) /* 1088 UI8 */ #define DPoint_IoSettingIo2InTrecCh1 ((DpId) 0x441) /* 1089 UI8 */ #define DPoint_IoSettingIo2InTrecCh2 ((DpId) 0x442) /* 1090 UI8 */ #define DPoint_IoSettingIo2InTrecCh3 ((DpId) 0x443) /* 1091 UI8 */ #define DPoint_IoSettingIo2InTrecCh4 ((DpId) 0x444) /* 1092 UI8 */ #define DPoint_IoSettingIo2InTrecCh5 ((DpId) 0x445) /* 1093 UI8 */ #define DPoint_IoSettingIo2InTrecCh6 ((DpId) 0x446) /* 1094 UI8 */ #define DPoint_IoSettingIo2InTrecCh7 ((DpId) 0x447) /* 1095 UI8 */ #define DPoint_IoSettingIo2InTrecCh8 ((DpId) 0x448) /* 1096 UI8 */ #define DPoint_LogicVAR1 ((DpId) 0x449) /* 1097 Signal */ #define DPoint_LogicVAR2 ((DpId) 0x44A) /* 1098 Signal */ #define DPoint_LogicVAR3 ((DpId) 0x44B) /* 1099 Signal */ #define DPoint_LogicVAR4 ((DpId) 0x44C) /* 1100 Signal */ #define DPoint_LogicVAR5 ((DpId) 0x44D) /* 1101 Signal */ #define DPoint_LogicVAR6 ((DpId) 0x44E) /* 1102 Signal */ #define DPoint_LogicVAR7 ((DpId) 0x44F) /* 1103 Signal */ #define DPoint_LogicVAR8 ((DpId) 0x450) /* 1104 Signal */ #define DPoint_LogicVAR9 ((DpId) 0x451) /* 1105 Signal */ #define DPoint_LogicVAR10 ((DpId) 0x452) /* 1106 Signal */ #define DPoint_LogicVAR11 ((DpId) 0x453) /* 1107 Signal */ #define DPoint_LogicVAR12 ((DpId) 0x454) /* 1108 Signal */ #define DPoint_LogicVAR13 ((DpId) 0x455) /* 1109 Signal */ #define DPoint_LogicVAR14 ((DpId) 0x456) /* 1110 Signal */ #define DPoint_LogicVAR15 ((DpId) 0x457) /* 1111 Signal */ #define DPoint_LogicVAR16 ((DpId) 0x458) /* 1112 Signal */ #define DPoint_SigCtrlLoSeq2On ((DpId) 0x459) /* 1113 Signal */ #define DPoint_SigCtrlLoSeq3On ((DpId) 0x45A) /* 1114 Signal */ #define DPoint_ActLoSeqMode ((DpId) 0x45B) /* 1115 LoSeqMode */ #define DPoint_IoProcessOpMode ((DpId) 0x45C) /* 1116 LocalRemote */ #define DPoint_SigCtrlSSMOn ((DpId) 0x45D) /* 1117 Signal */ #define DPoint_SigCtrlFTDisOn ((DpId) 0x45E) /* 1118 Signal */ #define DPoint_p2pRemoteLanAddr ((DpId) 0x45F) /* 1119 IpAddr */ #define DPoint_p2pCommUpdateRates ((DpId) 0x460) /* 1120 UI32 */ #define DPoint_p2pCommEnable ((DpId) 0x461) /* 1121 EnDis */ #define DPoint_SigCtrlLogTest ((DpId) 0x462) /* 1122 Signal */ #define DPoint_ChEventIo1 ((DpId) 0x465) /* 1125 ChangeEvent */ #define DPoint_ChEventIo2 ((DpId) 0x466) /* 1126 ChangeEvent */ #define DPoint_LogicCh1NameOffline ((DpId) 0x467) /* 1127 Str */ #define DPoint_LogicCh2NameOffline ((DpId) 0x468) /* 1128 Str */ #define DPoint_LogicCh3NameOffline ((DpId) 0x469) /* 1129 Str */ #define DPoint_LogicCh4NameOffline ((DpId) 0x46A) /* 1130 Str */ #define DPoint_LogicCh5NameOffline ((DpId) 0x46B) /* 1131 Str */ #define DPoint_LogicCh6NameOffline ((DpId) 0x46C) /* 1132 Str */ #define DPoint_LogicCh7NameOffline ((DpId) 0x46D) /* 1133 Str */ #define DPoint_LogicCh8NameOffline ((DpId) 0x46E) /* 1134 Str */ #define DPoint_LogicCh1InputExp ((DpId) 0x46F) /* 1135 LogicStr */ #define DPoint_LogicCh2InputExp ((DpId) 0x470) /* 1136 LogicStr */ #define DPoint_LogicCh3InputExp ((DpId) 0x471) /* 1137 LogicStr */ #define DPoint_LogicCh4InputExp ((DpId) 0x472) /* 1138 LogicStr */ #define DPoint_LogicCh5InputExp ((DpId) 0x473) /* 1139 LogicStr */ #define DPoint_LogicCh6InputExp ((DpId) 0x474) /* 1140 LogicStr */ #define DPoint_LogicCh7InputExp ((DpId) 0x475) /* 1141 LogicStr */ #define DPoint_LogicCh8InputExp ((DpId) 0x476) /* 1142 LogicStr */ #define DPoint_LogicChEnable ((DpId) 0x477) /* 1143 UI8 */ #define DPoint_G3_OcAt ((DpId) 0x478) /* 1144 UI32 */ #define DPoint_G3_OcDnd ((DpId) 0x479) /* 1145 DndMode */ #define DPoint_G3_EfAt ((DpId) 0x47A) /* 1146 UI32 */ #define DPoint_G3_EfDnd ((DpId) 0x47B) /* 1147 DndMode */ #define DPoint_G3_SefAt ((DpId) 0x47C) /* 1148 UI32 */ #define DPoint_G3_SefDnd ((DpId) 0x47D) /* 1149 DndMode */ #define DPoint_G3_ArOCEF_ZSCmode ((DpId) 0x47E) /* 1150 EnDis */ #define DPoint_G3_VrcEnable ((DpId) 0x47F) /* 1151 EnDis */ #define DPoint_LogicChMode ((DpId) 0x480) /* 1152 LogicChannelMode */ #define DPoint_G3_ArOCEF_Trec1 ((DpId) 0x481) /* 1153 UI32 */ #define DPoint_G3_ArOCEF_Trec2 ((DpId) 0x482) /* 1154 UI32 */ #define DPoint_G3_ArOCEF_Trec3 ((DpId) 0x483) /* 1155 UI32 */ #define DPoint_G3_ResetTime ((DpId) 0x484) /* 1156 UI32 */ #define DPoint_G3_TtaMode ((DpId) 0x485) /* 1157 TtaMode */ #define DPoint_G3_TtaTime ((DpId) 0x486) /* 1158 UI32 */ #define DPoint_G3_SstOcForward ((DpId) 0x487) /* 1159 UI8 */ #define DPoint_G3_EftEnable ((DpId) 0x488) /* 1160 EnDis */ #define DPoint_G3_ClpClm ((DpId) 0x489) /* 1161 UI32 */ #define DPoint_G3_ClpTcl ((DpId) 0x48A) /* 1162 UI32 */ #define DPoint_G3_ClpTrec ((DpId) 0x48B) /* 1163 UI32 */ #define DPoint_G3_IrrIrm ((DpId) 0x48C) /* 1164 UI32 */ #define DPoint_G3_IrrTir ((DpId) 0x48D) /* 1165 UI32 */ #define DPoint_G3_VrcMode ((DpId) 0x48E) /* 1166 VrcMode */ #define DPoint_G3_VrcUMmin ((DpId) 0x48F) /* 1167 UI32 */ #define DPoint_G3_AbrMode ((DpId) 0x490) /* 1168 EnDis */ #define DPoint_G3_OC1F_Ip ((DpId) 0x491) /* 1169 UI32 */ #define DPoint_G3_OC1F_Tcc ((DpId) 0x492) /* 1170 UI16 */ #define DPoint_G3_OC1F_TDtMin ((DpId) 0x493) /* 1171 UI32 */ #define DPoint_G3_OC1F_TDtRes ((DpId) 0x494) /* 1172 UI32 */ #define DPoint_G3_OC1F_Tm ((DpId) 0x495) /* 1173 UI32 */ #define DPoint_G3_OC1F_Imin ((DpId) 0x496) /* 1174 UI32 */ #define DPoint_G3_OC1F_Tmin ((DpId) 0x497) /* 1175 UI32 */ #define DPoint_G3_OC1F_Tmax ((DpId) 0x498) /* 1176 UI32 */ #define DPoint_G3_OC1F_Ta ((DpId) 0x499) /* 1177 UI32 */ #define DPoint_LogicChLogChange ((DpId) 0x49A) /* 1178 UI8 */ #define DPoint_G3_OC1F_ImaxEn ((DpId) 0x49B) /* 1179 EnDis */ #define DPoint_G3_OC1F_Imax ((DpId) 0x49C) /* 1180 UI32 */ #define DPoint_G3_OC1F_DirEn ((DpId) 0x49D) /* 1181 EnDis */ #define DPoint_G3_OC1F_Tr1 ((DpId) 0x49E) /* 1182 TripMode */ #define DPoint_G3_OC1F_Tr2 ((DpId) 0x49F) /* 1183 TripMode */ #define DPoint_G3_OC1F_Tr3 ((DpId) 0x4A0) /* 1184 TripMode */ #define DPoint_G3_OC1F_Tr4 ((DpId) 0x4A1) /* 1185 TripMode */ #define DPoint_G3_OC1F_TccUD ((DpId) 0x4A2) /* 1186 TccCurve */ #define DPoint_G3_OC2F_Ip ((DpId) 0x4A3) /* 1187 UI32 */ #define DPoint_G3_OC2F_Tcc ((DpId) 0x4A4) /* 1188 UI16 */ #define DPoint_G3_OC2F_TDtMin ((DpId) 0x4A5) /* 1189 UI32 */ #define DPoint_G3_OC2F_TDtRes ((DpId) 0x4A6) /* 1190 UI32 */ #define DPoint_G3_OC2F_Tm ((DpId) 0x4A7) /* 1191 UI32 */ #define DPoint_G3_OC2F_Imin ((DpId) 0x4A8) /* 1192 UI32 */ #define DPoint_G3_OC2F_Tmin ((DpId) 0x4A9) /* 1193 UI32 */ #define DPoint_G3_OC2F_Tmax ((DpId) 0x4AA) /* 1194 UI32 */ #define DPoint_G3_OC2F_Ta ((DpId) 0x4AB) /* 1195 UI32 */ #define DPoint_G3_EftTripCount ((DpId) 0x4AC) /* 1196 UI8 */ #define DPoint_G3_OC2F_ImaxEn ((DpId) 0x4AD) /* 1197 EnDis */ #define DPoint_G3_OC2F_Imax ((DpId) 0x4AE) /* 1198 UI32 */ #define DPoint_G3_OC2F_DirEn ((DpId) 0x4AF) /* 1199 EnDis */ #define DPoint_G3_OC2F_Tr1 ((DpId) 0x4B0) /* 1200 TripMode */ #define DPoint_G3_OC2F_Tr2 ((DpId) 0x4B1) /* 1201 TripMode */ #define DPoint_G3_OC2F_Tr3 ((DpId) 0x4B2) /* 1202 TripMode */ #define DPoint_G3_OC2F_Tr4 ((DpId) 0x4B3) /* 1203 TripMode */ #define DPoint_G3_OC2F_TccUD ((DpId) 0x4B4) /* 1204 TccCurve */ #define DPoint_G3_OC3F_Ip ((DpId) 0x4B5) /* 1205 UI32 */ #define DPoint_G3_OC3F_TDtMin ((DpId) 0x4B6) /* 1206 UI32 */ #define DPoint_G3_OC3F_TDtRes ((DpId) 0x4B7) /* 1207 UI32 */ #define DPoint_G3_OC3F_DirEn ((DpId) 0x4B8) /* 1208 EnDis */ #define DPoint_G3_OC3F_Tr1 ((DpId) 0x4B9) /* 1209 TripMode */ #define DPoint_G3_OC3F_Tr2 ((DpId) 0x4BA) /* 1210 TripMode */ #define DPoint_G3_OC3F_Tr3 ((DpId) 0x4BB) /* 1211 TripMode */ #define DPoint_G3_OC3F_Tr4 ((DpId) 0x4BC) /* 1212 TripMode */ #define DPoint_G3_OC1R_Ip ((DpId) 0x4BD) /* 1213 UI32 */ #define DPoint_G3_OC1R_Tcc ((DpId) 0x4BE) /* 1214 UI16 */ #define DPoint_G3_OC1R_TDtMin ((DpId) 0x4BF) /* 1215 UI32 */ #define DPoint_G3_OC1R_TDtRes ((DpId) 0x4C0) /* 1216 UI32 */ #define DPoint_G3_OC1R_Tm ((DpId) 0x4C1) /* 1217 UI32 */ #define DPoint_G3_OC1R_Imin ((DpId) 0x4C2) /* 1218 UI32 */ #define DPoint_G3_OC1R_Tmin ((DpId) 0x4C3) /* 1219 UI32 */ #define DPoint_G3_OC1R_Tmax ((DpId) 0x4C4) /* 1220 UI32 */ #define DPoint_G3_OC1R_Ta ((DpId) 0x4C5) /* 1221 UI32 */ #define DPoint_G3_EftTripWindow ((DpId) 0x4C6) /* 1222 UI8 */ #define DPoint_G3_OC1R_ImaxEn ((DpId) 0x4C7) /* 1223 EnDis */ #define DPoint_G3_OC1R_Imax ((DpId) 0x4C8) /* 1224 UI32 */ #define DPoint_G3_OC1R_DirEn ((DpId) 0x4C9) /* 1225 EnDis */ #define DPoint_G3_OC1R_Tr1 ((DpId) 0x4CA) /* 1226 TripMode */ #define DPoint_G3_OC1R_Tr2 ((DpId) 0x4CB) /* 1227 TripMode */ #define DPoint_G3_OC1R_Tr3 ((DpId) 0x4CC) /* 1228 TripMode */ #define DPoint_G3_OC1R_Tr4 ((DpId) 0x4CD) /* 1229 TripMode */ #define DPoint_G3_OC1R_TccUD ((DpId) 0x4CE) /* 1230 TccCurve */ #define DPoint_G3_OC2R_Ip ((DpId) 0x4CF) /* 1231 UI32 */ #define DPoint_G3_OC2R_Tcc ((DpId) 0x4D0) /* 1232 UI16 */ #define DPoint_G3_OC2R_TDtMin ((DpId) 0x4D1) /* 1233 UI32 */ #define DPoint_G3_OC2R_TDtRes ((DpId) 0x4D2) /* 1234 UI32 */ #define DPoint_G3_OC2R_Tm ((DpId) 0x4D3) /* 1235 UI32 */ #define DPoint_G3_OC2R_Imin ((DpId) 0x4D4) /* 1236 UI32 */ #define DPoint_G3_OC2R_Tmin ((DpId) 0x4D5) /* 1237 UI32 */ #define DPoint_G3_OC2R_Tmax ((DpId) 0x4D6) /* 1238 UI32 */ #define DPoint_G3_OC2R_Ta ((DpId) 0x4D7) /* 1239 UI32 */ #define DPoint_G3_OC2R_ImaxEn ((DpId) 0x4D9) /* 1241 EnDis */ #define DPoint_G3_OC2R_Imax ((DpId) 0x4DA) /* 1242 UI32 */ #define DPoint_G3_OC2R_DirEn ((DpId) 0x4DB) /* 1243 EnDis */ #define DPoint_G3_OC2R_Tr1 ((DpId) 0x4DC) /* 1244 TripMode */ #define DPoint_G3_OC2R_Tr2 ((DpId) 0x4DD) /* 1245 TripMode */ #define DPoint_G3_OC2R_Tr3 ((DpId) 0x4DE) /* 1246 TripMode */ #define DPoint_G3_OC2R_Tr4 ((DpId) 0x4DF) /* 1247 TripMode */ #define DPoint_G3_OC2R_TccUD ((DpId) 0x4E0) /* 1248 TccCurve */ #define DPoint_G3_OC3R_Ip ((DpId) 0x4E1) /* 1249 UI32 */ #define DPoint_G3_OC3R_TDtMin ((DpId) 0x4E2) /* 1250 UI32 */ #define DPoint_G3_OC3R_TDtRes ((DpId) 0x4E3) /* 1251 UI32 */ #define DPoint_G3_OC3R_DirEn ((DpId) 0x4E4) /* 1252 EnDis */ #define DPoint_G3_OC3R_Tr1 ((DpId) 0x4E5) /* 1253 TripMode */ #define DPoint_G3_OC3R_Tr2 ((DpId) 0x4E6) /* 1254 TripMode */ #define DPoint_G3_OC3R_Tr3 ((DpId) 0x4E7) /* 1255 TripMode */ #define DPoint_G3_OC3R_Tr4 ((DpId) 0x4E8) /* 1256 TripMode */ #define DPoint_G3_EF1F_Ip ((DpId) 0x4E9) /* 1257 UI32 */ #define DPoint_G3_EF1F_Tcc ((DpId) 0x4EA) /* 1258 UI16 */ #define DPoint_G3_EF1F_TDtMin ((DpId) 0x4EB) /* 1259 UI32 */ #define DPoint_G3_EF1F_TDtRes ((DpId) 0x4EC) /* 1260 UI32 */ #define DPoint_G3_EF1F_Tm ((DpId) 0x4ED) /* 1261 UI32 */ #define DPoint_G3_EF1F_Imin ((DpId) 0x4EE) /* 1262 UI32 */ #define DPoint_G3_EF1F_Tmin ((DpId) 0x4EF) /* 1263 UI32 */ #define DPoint_G3_EF1F_Tmax ((DpId) 0x4F0) /* 1264 UI32 */ #define DPoint_G3_EF1F_Ta ((DpId) 0x4F1) /* 1265 UI32 */ #define DPoint_G3_DEPRECATED_G1EF1F_Tres ((DpId) 0x4F2) /* 1266 UI32 */ #define DPoint_G3_EF1F_ImaxEn ((DpId) 0x4F3) /* 1267 EnDis */ #define DPoint_G3_EF1F_Imax ((DpId) 0x4F4) /* 1268 UI32 */ #define DPoint_G3_EF1F_DirEn ((DpId) 0x4F5) /* 1269 EnDis */ #define DPoint_G3_EF1F_Tr1 ((DpId) 0x4F6) /* 1270 TripMode */ #define DPoint_G3_EF1F_Tr2 ((DpId) 0x4F7) /* 1271 TripMode */ #define DPoint_G3_EF1F_Tr3 ((DpId) 0x4F8) /* 1272 TripMode */ #define DPoint_G3_EF1F_Tr4 ((DpId) 0x4F9) /* 1273 TripMode */ #define DPoint_G3_EF1F_TccUD ((DpId) 0x4FA) /* 1274 TccCurve */ #define DPoint_G3_EF2F_Ip ((DpId) 0x4FB) /* 1275 UI32 */ #define DPoint_G3_EF2F_Tcc ((DpId) 0x4FC) /* 1276 UI16 */ #define DPoint_G3_EF2F_TDtMin ((DpId) 0x4FD) /* 1277 UI32 */ #define DPoint_G3_EF2F_TDtRes ((DpId) 0x4FE) /* 1278 UI32 */ #define DPoint_G3_EF2F_Tm ((DpId) 0x4FF) /* 1279 UI32 */ #define DPoint_G3_EF2F_Imin ((DpId) 0x500) /* 1280 UI32 */ #define DPoint_G3_EF2F_Tmin ((DpId) 0x501) /* 1281 UI32 */ #define DPoint_G3_EF2F_Tmax ((DpId) 0x502) /* 1282 UI32 */ #define DPoint_G3_EF2F_Ta ((DpId) 0x503) /* 1283 UI32 */ #define DPoint_G3_DEPRECATED_G1EF2F_Tres ((DpId) 0x504) /* 1284 UI32 */ #define DPoint_G3_EF2F_ImaxEn ((DpId) 0x505) /* 1285 EnDis */ #define DPoint_G3_EF2F_Imax ((DpId) 0x506) /* 1286 UI32 */ #define DPoint_G3_EF2F_DirEn ((DpId) 0x507) /* 1287 EnDis */ #define DPoint_G3_EF2F_Tr1 ((DpId) 0x508) /* 1288 TripMode */ #define DPoint_G3_EF2F_Tr2 ((DpId) 0x509) /* 1289 TripMode */ #define DPoint_G3_EF2F_Tr3 ((DpId) 0x50A) /* 1290 TripMode */ #define DPoint_G3_EF2F_Tr4 ((DpId) 0x50B) /* 1291 TripMode */ #define DPoint_G3_EF2F_TccUD ((DpId) 0x50C) /* 1292 TccCurve */ #define DPoint_G3_EF3F_Ip ((DpId) 0x50D) /* 1293 UI32 */ #define DPoint_G3_EF3F_TDtMin ((DpId) 0x50E) /* 1294 UI32 */ #define DPoint_G3_EF3F_TDtRes ((DpId) 0x50F) /* 1295 UI32 */ #define DPoint_G3_EF3F_DirEn ((DpId) 0x510) /* 1296 EnDis */ #define DPoint_G3_EF3F_Tr1 ((DpId) 0x511) /* 1297 TripMode */ #define DPoint_G3_EF3F_Tr2 ((DpId) 0x512) /* 1298 TripMode */ #define DPoint_G3_EF3F_Tr3 ((DpId) 0x513) /* 1299 TripMode */ #define DPoint_G3_EF3F_Tr4 ((DpId) 0x514) /* 1300 TripMode */ #define DPoint_G3_EF1R_Ip ((DpId) 0x515) /* 1301 UI32 */ #define DPoint_G3_EF1R_Tcc ((DpId) 0x516) /* 1302 UI16 */ #define DPoint_G3_EF1R_TDtMin ((DpId) 0x517) /* 1303 UI32 */ #define DPoint_G3_EF1R_TDtRes ((DpId) 0x518) /* 1304 UI32 */ #define DPoint_G3_EF1R_Tm ((DpId) 0x519) /* 1305 UI32 */ #define DPoint_G3_EF1R_Imin ((DpId) 0x51A) /* 1306 UI32 */ #define DPoint_G3_EF1R_Tmin ((DpId) 0x51B) /* 1307 UI32 */ #define DPoint_G3_EF1R_Tmax ((DpId) 0x51C) /* 1308 UI32 */ #define DPoint_G3_EF1R_Ta ((DpId) 0x51D) /* 1309 UI32 */ #define DPoint_G3_DEPRECATED_G1EF1R_Tres ((DpId) 0x51E) /* 1310 UI32 */ #define DPoint_G3_EF1R_ImaxEn ((DpId) 0x51F) /* 1311 EnDis */ #define DPoint_G3_EF1R_Imax ((DpId) 0x520) /* 1312 UI32 */ #define DPoint_G3_EF1R_DirEn ((DpId) 0x521) /* 1313 EnDis */ #define DPoint_G3_EF1R_Tr1 ((DpId) 0x522) /* 1314 TripMode */ #define DPoint_G3_EF1R_Tr2 ((DpId) 0x523) /* 1315 TripMode */ #define DPoint_G3_EF1R_Tr3 ((DpId) 0x524) /* 1316 TripMode */ #define DPoint_G3_EF1R_Tr4 ((DpId) 0x525) /* 1317 TripMode */ #define DPoint_G3_EF1R_TccUD ((DpId) 0x526) /* 1318 TccCurve */ #define DPoint_G3_EF2R_Ip ((DpId) 0x527) /* 1319 UI32 */ #define DPoint_G3_EF2R_Tcc ((DpId) 0x528) /* 1320 UI16 */ #define DPoint_G3_EF2R_TDtMin ((DpId) 0x529) /* 1321 UI32 */ #define DPoint_G3_EF2R_TDtRes ((DpId) 0x52A) /* 1322 UI32 */ #define DPoint_G3_EF2R_Tm ((DpId) 0x52B) /* 1323 UI32 */ #define DPoint_G3_EF2R_Imin ((DpId) 0x52C) /* 1324 UI32 */ #define DPoint_G3_EF2R_Tmin ((DpId) 0x52D) /* 1325 UI32 */ #define DPoint_G3_EF2R_Tmax ((DpId) 0x52E) /* 1326 UI32 */ #define DPoint_G3_EF2R_Ta ((DpId) 0x52F) /* 1327 UI32 */ #define DPoint_G3_EF2R_ImaxEn ((DpId) 0x531) /* 1329 EnDis */ #define DPoint_G3_EF2R_Imax ((DpId) 0x532) /* 1330 UI32 */ #define DPoint_G3_EF2R_DirEn ((DpId) 0x533) /* 1331 EnDis */ #define DPoint_G3_EF2R_Tr1 ((DpId) 0x534) /* 1332 TripMode */ #define DPoint_G3_EF2R_Tr2 ((DpId) 0x535) /* 1333 TripMode */ #define DPoint_G3_EF2R_Tr3 ((DpId) 0x536) /* 1334 TripMode */ #define DPoint_G3_EF2R_Tr4 ((DpId) 0x537) /* 1335 TripMode */ #define DPoint_G3_EF2R_TccUD ((DpId) 0x538) /* 1336 TccCurve */ #define DPoint_G3_EF3R_Ip ((DpId) 0x539) /* 1337 UI32 */ #define DPoint_G3_EF3R_TDtMin ((DpId) 0x53A) /* 1338 UI32 */ #define DPoint_G3_EF3R_TDtRes ((DpId) 0x53B) /* 1339 UI32 */ #define DPoint_G3_EF3R_DirEn ((DpId) 0x53C) /* 1340 EnDis */ #define DPoint_G3_EF3R_Tr1 ((DpId) 0x53D) /* 1341 TripMode */ #define DPoint_G3_EF3R_Tr2 ((DpId) 0x53E) /* 1342 TripMode */ #define DPoint_G3_EF3R_Tr3 ((DpId) 0x53F) /* 1343 TripMode */ #define DPoint_G3_EF3R_Tr4 ((DpId) 0x540) /* 1344 TripMode */ #define DPoint_G3_SEFF_Ip ((DpId) 0x541) /* 1345 UI32 */ #define DPoint_G3_SEFF_TDtMin ((DpId) 0x542) /* 1346 UI32 */ #define DPoint_G3_SEFF_TDtRes ((DpId) 0x543) /* 1347 UI32 */ #define DPoint_G3_SEFF_DirEn ((DpId) 0x544) /* 1348 EnDis */ #define DPoint_G3_SEFF_Tr1 ((DpId) 0x545) /* 1349 TripMode */ #define DPoint_G3_SEFF_Tr2 ((DpId) 0x546) /* 1350 TripMode */ #define DPoint_G3_SEFF_Tr3 ((DpId) 0x547) /* 1351 TripMode */ #define DPoint_G3_SEFF_Tr4 ((DpId) 0x548) /* 1352 TripMode */ #define DPoint_G3_SEFR_Ip ((DpId) 0x549) /* 1353 UI32 */ #define DPoint_G3_SEFR_TDtMin ((DpId) 0x54A) /* 1354 UI32 */ #define DPoint_G3_SEFR_TDtRes ((DpId) 0x54B) /* 1355 UI32 */ #define DPoint_G3_SEFR_DirEn ((DpId) 0x54C) /* 1356 EnDis */ #define DPoint_G3_SEFR_Tr1 ((DpId) 0x54D) /* 1357 TripMode */ #define DPoint_G3_SEFR_Tr2 ((DpId) 0x54E) /* 1358 TripMode */ #define DPoint_G3_SEFR_Tr3 ((DpId) 0x54F) /* 1359 TripMode */ #define DPoint_G3_SEFR_Tr4 ((DpId) 0x550) /* 1360 TripMode */ #define DPoint_G3_OcLl_Ip ((DpId) 0x551) /* 1361 UI32 */ #define DPoint_G3_OcLl_TDtMin ((DpId) 0x552) /* 1362 UI32 */ #define DPoint_G3_OcLl_TDtRes ((DpId) 0x553) /* 1363 UI32 */ #define DPoint_G3_EfLl_Ip ((DpId) 0x554) /* 1364 UI32 */ #define DPoint_G3_EfLl_TDtMin ((DpId) 0x555) /* 1365 UI32 */ #define DPoint_G3_EfLl_TDtRes ((DpId) 0x556) /* 1366 UI32 */ #define DPoint_G3_Uv1_Um ((DpId) 0x557) /* 1367 UI32 */ #define DPoint_G3_Uv1_TDtMin ((DpId) 0x558) /* 1368 UI32 */ #define DPoint_G3_Uv1_TDtRes ((DpId) 0x559) /* 1369 UI32 */ #define DPoint_G3_Uv1_Trm ((DpId) 0x55A) /* 1370 TripMode */ #define DPoint_G3_Uv2_Um ((DpId) 0x55B) /* 1371 UI32 */ #define DPoint_G3_Uv2_TDtMin ((DpId) 0x55C) /* 1372 UI32 */ #define DPoint_G3_Uv2_TDtRes ((DpId) 0x55D) /* 1373 UI32 */ #define DPoint_G3_Uv2_Trm ((DpId) 0x55E) /* 1374 TripMode */ #define DPoint_G3_Uv3_TDtMin ((DpId) 0x55F) /* 1375 UI32 */ #define DPoint_G3_Uv3_TDtRes ((DpId) 0x560) /* 1376 UI32 */ #define DPoint_G3_Uv3_Trm ((DpId) 0x561) /* 1377 TripMode */ #define DPoint_G3_Ov1_Um ((DpId) 0x562) /* 1378 UI32 */ #define DPoint_G3_Ov1_TDtMin ((DpId) 0x563) /* 1379 UI32 */ #define DPoint_G3_Ov1_TDtRes ((DpId) 0x564) /* 1380 UI32 */ #define DPoint_G3_Ov1_Trm ((DpId) 0x565) /* 1381 TripMode */ #define DPoint_G3_Ov2_Um ((DpId) 0x566) /* 1382 UI32 */ #define DPoint_G3_Ov2_TDtMin ((DpId) 0x567) /* 1383 UI32 */ #define DPoint_G3_Ov2_TDtRes ((DpId) 0x568) /* 1384 UI32 */ #define DPoint_G3_Ov2_Trm ((DpId) 0x569) /* 1385 TripMode */ #define DPoint_G3_Uf_Fp ((DpId) 0x56A) /* 1386 UI32 */ #define DPoint_G3_Uf_TDtMin ((DpId) 0x56B) /* 1387 UI32 */ #define DPoint_G3_Uf_TDtRes ((DpId) 0x56C) /* 1388 UI32 */ #define DPoint_G3_Uf_Trm ((DpId) 0x56D) /* 1389 TripModeDLA */ #define DPoint_G3_Of_Fp ((DpId) 0x56E) /* 1390 UI32 */ #define DPoint_G3_Of_TDtMin ((DpId) 0x56F) /* 1391 UI32 */ #define DPoint_G3_Of_TDtRes ((DpId) 0x570) /* 1392 UI32 */ #define DPoint_G3_Of_Trm ((DpId) 0x571) /* 1393 TripModeDLA */ #define DPoint_G3_DEPRECATED_OC1F_ImaxAbs ((DpId) 0x572) /* 1394 UI32 */ #define DPoint_G3_DEPRECATED_OC2F_ImaxAbs ((DpId) 0x573) /* 1395 UI32 */ #define DPoint_G3_DEPRECATED_OC1R_ImaxAbs ((DpId) 0x574) /* 1396 UI32 */ #define DPoint_G3_DEPRECATED_OC2R_ImaxAbs ((DpId) 0x575) /* 1397 UI32 */ #define DPoint_G3_DEPRECATED_EF1F_ImaxAbs ((DpId) 0x576) /* 1398 UI32 */ #define DPoint_G3_DEPRECATED_EF2F_ImaxAbs ((DpId) 0x577) /* 1399 UI32 */ #define DPoint_G3_DEPRECATED_EF1R_ImaxAbs ((DpId) 0x578) /* 1400 UI32 */ #define DPoint_G3_DEPRECATED_EF2R_ImaxAbs ((DpId) 0x579) /* 1401 UI32 */ #define DPoint_G3_SstEfForward ((DpId) 0x57A) /* 1402 UI8 */ #define DPoint_G3_SstSefForward ((DpId) 0x57B) /* 1403 UI8 */ #define DPoint_G3_AbrTrest ((DpId) 0x57C) /* 1404 UI32 */ #define DPoint_G3_AutoOpenMode ((DpId) 0x57D) /* 1405 AutoOpenMode */ #define DPoint_G3_AutoOpenTime ((DpId) 0x57E) /* 1406 UI16 */ #define DPoint_G3_AutoOpenOpns ((DpId) 0x57F) /* 1407 UI8 */ #define DPoint_G3_SstOcReverse ((DpId) 0x580) /* 1408 UI8 */ #define DPoint_G3_SstEfReverse ((DpId) 0x581) /* 1409 UI8 */ #define DPoint_G3_SstSefReverse ((DpId) 0x582) /* 1410 UI8 */ #define DPoint_G3_ArUVOV_Trec ((DpId) 0x583) /* 1411 UI32 */ #define DPoint_G3_GrpName ((DpId) 0x584) /* 1412 Str */ #define DPoint_G3_GrpDes ((DpId) 0x585) /* 1413 Str */ #define DPoint_LogicCh1OutputExp ((DpId) 0x586) /* 1414 LogicStr */ #define DPoint_LogicCh2OutputExp ((DpId) 0x587) /* 1415 LogicStr */ #define DPoint_LogicCh3OutputExp ((DpId) 0x588) /* 1416 LogicStr */ #define DPoint_LogicCh4OutputExp ((DpId) 0x589) /* 1417 LogicStr */ #define DPoint_LogicCh5OutputExp ((DpId) 0x58A) /* 1418 LogicStr */ #define DPoint_LogicCh6OutputExp ((DpId) 0x58B) /* 1419 LogicStr */ #define DPoint_LogicCh7OutputExp ((DpId) 0x58C) /* 1420 LogicStr */ #define DPoint_LogicCh8OutputExp ((DpId) 0x58D) /* 1421 LogicStr */ #define DPoint_LogicCh1RecTime ((DpId) 0x58E) /* 1422 UI16 */ #define DPoint_LogicCh2RecTime ((DpId) 0x58F) /* 1423 UI16 */ #define DPoint_LogicCh3RecTime ((DpId) 0x590) /* 1424 UI16 */ #define DPoint_LogicCh4RecTime ((DpId) 0x591) /* 1425 UI16 */ #define DPoint_LogicCh5RecTime ((DpId) 0x592) /* 1426 UI16 */ #define DPoint_LogicCh6RecTime ((DpId) 0x593) /* 1427 UI16 */ #define DPoint_LogicCh7RecTime ((DpId) 0x594) /* 1428 UI16 */ #define DPoint_LogicCh8RecTime ((DpId) 0x595) /* 1429 UI16 */ #define DPoint_LogicCh1ResetTime ((DpId) 0x596) /* 1430 UI16 */ #define DPoint_LogicCh2ResetTime ((DpId) 0x597) /* 1431 UI16 */ #define DPoint_LogicCh3ResetTime ((DpId) 0x598) /* 1432 UI16 */ #define DPoint_LogicCh4ResetTime ((DpId) 0x599) /* 1433 UI16 */ #define DPoint_LogicCh5ResetTime ((DpId) 0x59A) /* 1434 UI16 */ #define DPoint_LogicCh6ResetTime ((DpId) 0x59B) /* 1435 UI16 */ #define DPoint_LogicCh7ResetTime ((DpId) 0x59C) /* 1436 UI16 */ #define DPoint_LogicCh8ResetTime ((DpId) 0x59D) /* 1437 UI16 */ #define DPoint_LogicCh1PulseTime ((DpId) 0x59E) /* 1438 UI16 */ #define DPoint_LogicCh2PulseTime ((DpId) 0x59F) /* 1439 UI16 */ #define DPoint_LogicCh3PulseTime ((DpId) 0x5A0) /* 1440 UI16 */ #define DPoint_LogicCh4PulseTime ((DpId) 0x5A1) /* 1441 UI16 */ #define DPoint_LogicCh5PulseTime ((DpId) 0x5A2) /* 1442 UI16 */ #define DPoint_LogicCh6PulseTime ((DpId) 0x5A3) /* 1443 UI16 */ #define DPoint_LogicCh7PulseTime ((DpId) 0x5A4) /* 1444 UI16 */ #define DPoint_LogicCh8PulseTime ((DpId) 0x5A5) /* 1445 UI16 */ #define DPoint_LogicChPulseEnable ((DpId) 0x5A6) /* 1446 UI8 */ #define DPoint_LogicCh1Output ((DpId) 0x5A7) /* 1447 OnOff */ #define DPoint_LogicCh2Output ((DpId) 0x5A8) /* 1448 OnOff */ #define DPoint_LogicCh3Output ((DpId) 0x5A9) /* 1449 OnOff */ #define DPoint_LogicCh4Output ((DpId) 0x5AA) /* 1450 OnOff */ #define DPoint_LogicCh5Output ((DpId) 0x5AB) /* 1451 OnOff */ #define DPoint_LogicCh6Output ((DpId) 0x5AC) /* 1452 OnOff */ #define DPoint_LogicCh7Output ((DpId) 0x5AD) /* 1453 OnOff */ #define DPoint_LogicCh8Output ((DpId) 0x5AE) /* 1454 OnOff */ #define DPoint_LogicCh1Enable ((DpId) 0x5AF) /* 1455 Bool */ #define DPoint_LogicCh2Enable ((DpId) 0x5B0) /* 1456 Bool */ #define DPoint_LogicCh3Enable ((DpId) 0x5B1) /* 1457 Bool */ #define DPoint_LogicCh4Enable ((DpId) 0x5B2) /* 1458 Bool */ #define DPoint_LogicCh5Enable ((DpId) 0x5B3) /* 1459 Bool */ #define DPoint_LogicCh6Enable ((DpId) 0x5B4) /* 1460 Bool */ #define DPoint_LogicCh7Enable ((DpId) 0x5B5) /* 1461 Bool */ #define DPoint_LogicCh8Enable ((DpId) 0x5B6) /* 1462 Bool */ #define DPoint_SigMntActivated ((DpId) 0x5B7) /* 1463 Signal */ #define DPoint_SigCtrlACOOn ((DpId) 0x5B8) /* 1464 Signal */ #define DPoint_CanGpioRdData ((DpId) 0x5BB) /* 1467 SimImageBytes */ #define DPoint_CanGpioFirmwareVerifyStatus ((DpId) 0x5BD) /* 1469 UI8 */ #define DPoint_CanGpioFirmwareTypeRunning ((DpId) 0x5BE) /* 1470 UI8 */ #define DPoint_CanDataRequestIo ((DpId) 0x5C1) /* 1473 CanObjType */ #define DPoint_IdGpioSoftwareVer ((DpId) 0x5C2) /* 1474 Str */ #define DPoint_ProgramGpioCmd ((DpId) 0x5C3) /* 1475 UI8 */ #define DPoint_ScadaT104TimeoutT0 ((DpId) 0x5C4) /* 1476 UI8 */ #define DPoint_ScadaT104TimeoutT1 ((DpId) 0x5C5) /* 1477 UI8 */ #define DPoint_ScadaT104TimeoutT2 ((DpId) 0x5C6) /* 1478 UI8 */ #define DPoint_ScadaT104TimeoutT3 ((DpId) 0x5C7) /* 1479 UI32 */ #define DPoint_LogicCh1Name ((DpId) 0x5C8) /* 1480 Str */ #define DPoint_LogicCh2Name ((DpId) 0x5C9) /* 1481 Str */ #define DPoint_LogicCh3Name ((DpId) 0x5CA) /* 1482 Str */ #define DPoint_LogicCh4Name ((DpId) 0x5CB) /* 1483 Str */ #define DPoint_LogicCh5Name ((DpId) 0x5CC) /* 1484 Str */ #define DPoint_LogicCh6Name ((DpId) 0x5CD) /* 1485 Str */ #define DPoint_LogicCh7Name ((DpId) 0x5CE) /* 1486 Str */ #define DPoint_LogicCh8Name ((DpId) 0x5CF) /* 1487 Str */ #define DPoint_p2pChannelPort ((DpId) 0x5D0) /* 1488 CommsPort */ #define DPoint_p2pMappedUI8_0 ((DpId) 0x5D1) /* 1489 UI8 */ #define DPoint_p2pMappedUI8_1 ((DpId) 0x5D2) /* 1490 UI8 */ #define DPoint_p2pMappedSignal_0 ((DpId) 0x5D3) /* 1491 Signal */ #define DPoint_p2pMappedSignal_1 ((DpId) 0x5D4) /* 1492 Signal */ #define DPoint_p2pMappedSignal_2 ((DpId) 0x5D5) /* 1493 Signal */ #define DPoint_p2pMappedSignal_3 ((DpId) 0x5D6) /* 1494 Signal */ #define DPoint_CanGpioRequestMoreData ((DpId) 0x5D7) /* 1495 UI8 */ #define DPoint_SigPickupRangeSupply ((DpId) 0x5DA) /* 1498 Signal */ #define DPoint_SigPickupRangeLoad ((DpId) 0x5DB) /* 1499 Signal */ #define DPoint_SigPickupRangeUV1 ((DpId) 0x5DC) /* 1500 Signal */ #define DPoint_SigPickupRangeUVab ((DpId) 0x5DD) /* 1501 Signal */ #define DPoint_SigPickupRangeUVbc ((DpId) 0x5DE) /* 1502 Signal */ #define DPoint_SigPickupRangeUVca ((DpId) 0x5DF) /* 1503 Signal */ #define DPoint_SigPickupRangeUFabc ((DpId) 0x5E0) /* 1504 Signal */ #define DPoint_SigPickupRangeUVrs ((DpId) 0x5E1) /* 1505 Signal */ #define DPoint_SigPickupRangeUVst ((DpId) 0x5E2) /* 1506 Signal */ #define DPoint_SigPickupRangeUVtr ((DpId) 0x5E3) /* 1507 Signal */ #define DPoint_SigPickupRangeUFrst ((DpId) 0x5E4) /* 1508 Signal */ #define DPoint_SupplyHealthState ((DpId) 0x5E5) /* 1509 SupplyState */ #define DPoint_LoadHealthState ((DpId) 0x5E6) /* 1510 LoadState */ #define DPoint_SigLoadDead ((DpId) 0x5E7) /* 1511 Signal */ #define DPoint_SigSupplyUnhealthy ((DpId) 0x5E8) /* 1512 Signal */ #define DPoint_ACO_Debug ((DpId) 0x5E9) /* 1513 UI32 */ #define DPoint_ACO_TPup ((DpId) 0x5EA) /* 1514 UI32 */ #define DPoint_EvACOState ((DpId) 0x5EB) /* 1515 LogEvent */ #define DPoint_SigOpenPeer ((DpId) 0x5EC) /* 1516 Signal */ #define DPoint_SigClosedPeer ((DpId) 0x5ED) /* 1517 Signal */ #define DPoint_SigMalfunctionPeer ((DpId) 0x5EE) /* 1518 Signal */ #define DPoint_SigWarningPeer ((DpId) 0x5EF) /* 1519 Signal */ #define DPoint_p2pMappedUI32_0 ((DpId) 0x5F0) /* 1520 UI32 */ #define DPoint_ProtStatusStatePeer ((DpId) 0x5F1) /* 1521 UI32 */ #define DPoint_p2pMappedUI32_1 ((DpId) 0x5F2) /* 1522 UI32 */ #define DPoint_SigPickupRangeOFrst ((DpId) 0x5F3) /* 1523 Signal */ #define DPoint_SigPickupRangeOFabc ((DpId) 0x5F4) /* 1524 Signal */ #define DPoint_SigPickupRangeOVtr ((DpId) 0x5F5) /* 1525 Signal */ #define DPoint_SigPickupRangeOVst ((DpId) 0x5F6) /* 1526 Signal */ #define DPoint_SigPickupRangeOVrs ((DpId) 0x5F7) /* 1527 Signal */ #define DPoint_SigPickupRangeOV1 ((DpId) 0x5F8) /* 1528 Signal */ #define DPoint_SigPickupRangeOVab ((DpId) 0x5F9) /* 1529 Signal */ #define DPoint_SigPickupRangeOVbc ((DpId) 0x5FA) /* 1530 Signal */ #define DPoint_SigPickupRangeOVca ((DpId) 0x5FB) /* 1531 Signal */ #define DPoint_ACOOperationMode ((DpId) 0x5FC) /* 1532 ACOOpMode */ #define DPoint_ACOMakeBeforeBreak ((DpId) 0x5FD) /* 1533 EnDis */ #define DPoint_SigOpenACO ((DpId) 0x5FE) /* 1534 Signal */ #define DPoint_SigClosedACO ((DpId) 0x5FF) /* 1535 Signal */ #define DPoint_SigSupplyUnhealthyPeer ((DpId) 0x600) /* 1536 Signal */ #define DPoint_ACOOperationModePeer ((DpId) 0x601) /* 1537 ACOOpMode */ #define DPoint_ACODisplayState ((DpId) 0x602) /* 1538 OpenClose */ #define DPoint_ACODisplayStatePeer ((DpId) 0x603) /* 1539 OpenClose */ #define DPoint_ACOHealth ((DpId) 0x604) /* 1540 ACOHealthReason */ #define DPoint_ACOHealthPeer ((DpId) 0x605) /* 1541 ACOHealthReason */ #define DPoint_SigCtrlACOOnPeer ((DpId) 0x606) /* 1542 Signal */ #define DPoint_ACOMakeBeforeBreakPeer ((DpId) 0x607) /* 1543 EnDis */ #define DPoint_G4_OcAt ((DpId) 0x608) /* 1544 UI32 */ #define DPoint_G4_OcDnd ((DpId) 0x609) /* 1545 DndMode */ #define DPoint_G4_EfAt ((DpId) 0x60A) /* 1546 UI32 */ #define DPoint_G4_EfDnd ((DpId) 0x60B) /* 1547 DndMode */ #define DPoint_G4_SefAt ((DpId) 0x60C) /* 1548 UI32 */ #define DPoint_G4_SefDnd ((DpId) 0x60D) /* 1549 DndMode */ #define DPoint_G4_ArOCEF_ZSCmode ((DpId) 0x60E) /* 1550 EnDis */ #define DPoint_G4_VrcEnable ((DpId) 0x60F) /* 1551 EnDis */ #define DPoint_SimSwitchStatusPeer ((DpId) 0x610) /* 1552 SwState */ #define DPoint_G4_ArOCEF_Trec1 ((DpId) 0x611) /* 1553 UI32 */ #define DPoint_G4_ArOCEF_Trec2 ((DpId) 0x612) /* 1554 UI32 */ #define DPoint_G4_ArOCEF_Trec3 ((DpId) 0x613) /* 1555 UI32 */ #define DPoint_G4_ResetTime ((DpId) 0x614) /* 1556 UI32 */ #define DPoint_G4_TtaMode ((DpId) 0x615) /* 1557 TtaMode */ #define DPoint_G4_TtaTime ((DpId) 0x616) /* 1558 UI32 */ #define DPoint_G4_SstOcForward ((DpId) 0x617) /* 1559 UI8 */ #define DPoint_G4_EftEnable ((DpId) 0x618) /* 1560 EnDis */ #define DPoint_G4_ClpClm ((DpId) 0x619) /* 1561 UI32 */ #define DPoint_G4_ClpTcl ((DpId) 0x61A) /* 1562 UI32 */ #define DPoint_G4_ClpTrec ((DpId) 0x61B) /* 1563 UI32 */ #define DPoint_G4_IrrIrm ((DpId) 0x61C) /* 1564 UI32 */ #define DPoint_G4_IrrTir ((DpId) 0x61D) /* 1565 UI32 */ #define DPoint_G4_VrcMode ((DpId) 0x61E) /* 1566 VrcMode */ #define DPoint_G4_VrcUMmin ((DpId) 0x61F) /* 1567 UI32 */ #define DPoint_G4_AbrMode ((DpId) 0x620) /* 1568 EnDis */ #define DPoint_G4_OC1F_Ip ((DpId) 0x621) /* 1569 UI32 */ #define DPoint_G4_OC1F_Tcc ((DpId) 0x622) /* 1570 UI16 */ #define DPoint_G4_OC1F_TDtMin ((DpId) 0x623) /* 1571 UI32 */ #define DPoint_G4_OC1F_TDtRes ((DpId) 0x624) /* 1572 UI32 */ #define DPoint_G4_OC1F_Tm ((DpId) 0x625) /* 1573 UI32 */ #define DPoint_G4_OC1F_Imin ((DpId) 0x626) /* 1574 UI32 */ #define DPoint_G4_OC1F_Tmin ((DpId) 0x627) /* 1575 UI32 */ #define DPoint_G4_OC1F_Tmax ((DpId) 0x628) /* 1576 UI32 */ #define DPoint_G4_OC1F_Ta ((DpId) 0x629) /* 1577 UI32 */ #define DPoint_G4_OC1F_ImaxEn ((DpId) 0x62B) /* 1579 EnDis */ #define DPoint_G4_OC1F_Imax ((DpId) 0x62C) /* 1580 UI32 */ #define DPoint_G4_OC1F_DirEn ((DpId) 0x62D) /* 1581 EnDis */ #define DPoint_G4_OC1F_Tr1 ((DpId) 0x62E) /* 1582 TripMode */ #define DPoint_G4_OC1F_Tr2 ((DpId) 0x62F) /* 1583 TripMode */ #define DPoint_G4_OC1F_Tr3 ((DpId) 0x630) /* 1584 TripMode */ #define DPoint_G4_OC1F_Tr4 ((DpId) 0x631) /* 1585 TripMode */ #define DPoint_G4_OC1F_TccUD ((DpId) 0x632) /* 1586 TccCurve */ #define DPoint_G4_OC2F_Ip ((DpId) 0x633) /* 1587 UI32 */ #define DPoint_G4_OC2F_Tcc ((DpId) 0x634) /* 1588 UI16 */ #define DPoint_G4_OC2F_TDtMin ((DpId) 0x635) /* 1589 UI32 */ #define DPoint_G4_OC2F_TDtRes ((DpId) 0x636) /* 1590 UI32 */ #define DPoint_G4_OC2F_Tm ((DpId) 0x637) /* 1591 UI32 */ #define DPoint_G4_OC2F_Imin ((DpId) 0x638) /* 1592 UI32 */ #define DPoint_G4_OC2F_Tmin ((DpId) 0x639) /* 1593 UI32 */ #define DPoint_G4_OC2F_Tmax ((DpId) 0x63A) /* 1594 UI32 */ #define DPoint_G4_OC2F_Ta ((DpId) 0x63B) /* 1595 UI32 */ #define DPoint_G4_EftTripCount ((DpId) 0x63C) /* 1596 UI8 */ #define DPoint_G4_OC2F_ImaxEn ((DpId) 0x63D) /* 1597 EnDis */ #define DPoint_G4_OC2F_Imax ((DpId) 0x63E) /* 1598 UI32 */ #define DPoint_G4_OC2F_DirEn ((DpId) 0x63F) /* 1599 EnDis */ #define DPoint_G4_OC2F_Tr1 ((DpId) 0x640) /* 1600 TripMode */ #define DPoint_G4_OC2F_Tr2 ((DpId) 0x641) /* 1601 TripMode */ #define DPoint_G4_OC2F_Tr3 ((DpId) 0x642) /* 1602 TripMode */ #define DPoint_G4_OC2F_Tr4 ((DpId) 0x643) /* 1603 TripMode */ #define DPoint_G4_OC2F_TccUD ((DpId) 0x644) /* 1604 TccCurve */ #define DPoint_G4_OC3F_Ip ((DpId) 0x645) /* 1605 UI32 */ #define DPoint_G4_OC3F_TDtMin ((DpId) 0x646) /* 1606 UI32 */ #define DPoint_G4_OC3F_TDtRes ((DpId) 0x647) /* 1607 UI32 */ #define DPoint_G4_OC3F_DirEn ((DpId) 0x648) /* 1608 EnDis */ #define DPoint_G4_OC3F_Tr1 ((DpId) 0x649) /* 1609 TripMode */ #define DPoint_G4_OC3F_Tr2 ((DpId) 0x64A) /* 1610 TripMode */ #define DPoint_G4_OC3F_Tr3 ((DpId) 0x64B) /* 1611 TripMode */ #define DPoint_G4_OC3F_Tr4 ((DpId) 0x64C) /* 1612 TripMode */ #define DPoint_G4_OC1R_Ip ((DpId) 0x64D) /* 1613 UI32 */ #define DPoint_G4_OC1R_Tcc ((DpId) 0x64E) /* 1614 UI16 */ #define DPoint_G4_OC1R_TDtMin ((DpId) 0x64F) /* 1615 UI32 */ #define DPoint_G4_OC1R_TDtRes ((DpId) 0x650) /* 1616 UI32 */ #define DPoint_G4_OC1R_Tm ((DpId) 0x651) /* 1617 UI32 */ #define DPoint_G4_OC1R_Imin ((DpId) 0x652) /* 1618 UI32 */ #define DPoint_G4_OC1R_Tmin ((DpId) 0x653) /* 1619 UI32 */ #define DPoint_G4_OC1R_Tmax ((DpId) 0x654) /* 1620 UI32 */ #define DPoint_G4_OC1R_Ta ((DpId) 0x655) /* 1621 UI32 */ #define DPoint_G4_EftTripWindow ((DpId) 0x656) /* 1622 UI8 */ #define DPoint_G4_OC1R_ImaxEn ((DpId) 0x657) /* 1623 EnDis */ #define DPoint_G4_OC1R_Imax ((DpId) 0x658) /* 1624 UI32 */ #define DPoint_G4_OC1R_DirEn ((DpId) 0x659) /* 1625 EnDis */ #define DPoint_G4_OC1R_Tr1 ((DpId) 0x65A) /* 1626 TripMode */ #define DPoint_G4_OC1R_Tr2 ((DpId) 0x65B) /* 1627 TripMode */ #define DPoint_G4_OC1R_Tr3 ((DpId) 0x65C) /* 1628 TripMode */ #define DPoint_G4_OC1R_Tr4 ((DpId) 0x65D) /* 1629 TripMode */ #define DPoint_G4_OC1R_TccUD ((DpId) 0x65E) /* 1630 TccCurve */ #define DPoint_G4_OC2R_Ip ((DpId) 0x65F) /* 1631 UI32 */ #define DPoint_G4_OC2R_Tcc ((DpId) 0x660) /* 1632 UI16 */ #define DPoint_G4_OC2R_TDtMin ((DpId) 0x661) /* 1633 UI32 */ #define DPoint_G4_OC2R_TDtRes ((DpId) 0x662) /* 1634 UI32 */ #define DPoint_G4_OC2R_Tm ((DpId) 0x663) /* 1635 UI32 */ #define DPoint_G4_OC2R_Imin ((DpId) 0x664) /* 1636 UI32 */ #define DPoint_G4_OC2R_Tmin ((DpId) 0x665) /* 1637 UI32 */ #define DPoint_G4_OC2R_Tmax ((DpId) 0x666) /* 1638 UI32 */ #define DPoint_G4_OC2R_Ta ((DpId) 0x667) /* 1639 UI32 */ #define DPoint_G4_OC2R_ImaxEn ((DpId) 0x669) /* 1641 EnDis */ #define DPoint_G4_OC2R_Imax ((DpId) 0x66A) /* 1642 UI32 */ #define DPoint_G4_OC2R_DirEn ((DpId) 0x66B) /* 1643 EnDis */ #define DPoint_G4_OC2R_Tr1 ((DpId) 0x66C) /* 1644 TripMode */ #define DPoint_G4_OC2R_Tr2 ((DpId) 0x66D) /* 1645 TripMode */ #define DPoint_G4_OC2R_Tr3 ((DpId) 0x66E) /* 1646 TripMode */ #define DPoint_G4_OC2R_Tr4 ((DpId) 0x66F) /* 1647 TripMode */ #define DPoint_G4_OC2R_TccUD ((DpId) 0x670) /* 1648 TccCurve */ #define DPoint_G4_OC3R_Ip ((DpId) 0x671) /* 1649 UI32 */ #define DPoint_G4_OC3R_TDtMin ((DpId) 0x672) /* 1650 UI32 */ #define DPoint_G4_OC3R_TDtRes ((DpId) 0x673) /* 1651 UI32 */ #define DPoint_G4_OC3R_DirEn ((DpId) 0x674) /* 1652 EnDis */ #define DPoint_G4_OC3R_Tr1 ((DpId) 0x675) /* 1653 TripMode */ #define DPoint_G4_OC3R_Tr2 ((DpId) 0x676) /* 1654 TripMode */ #define DPoint_G4_OC3R_Tr3 ((DpId) 0x677) /* 1655 TripMode */ #define DPoint_G4_OC3R_Tr4 ((DpId) 0x678) /* 1656 TripMode */ #define DPoint_G4_EF1F_Ip ((DpId) 0x679) /* 1657 UI32 */ #define DPoint_G4_EF1F_Tcc ((DpId) 0x67A) /* 1658 UI16 */ #define DPoint_G4_EF1F_TDtMin ((DpId) 0x67B) /* 1659 UI32 */ #define DPoint_G4_EF1F_TDtRes ((DpId) 0x67C) /* 1660 UI32 */ #define DPoint_G4_EF1F_Tm ((DpId) 0x67D) /* 1661 UI32 */ #define DPoint_G4_EF1F_Imin ((DpId) 0x67E) /* 1662 UI32 */ #define DPoint_G4_EF1F_Tmin ((DpId) 0x67F) /* 1663 UI32 */ #define DPoint_G4_EF1F_Tmax ((DpId) 0x680) /* 1664 UI32 */ #define DPoint_G4_EF1F_Ta ((DpId) 0x681) /* 1665 UI32 */ #define DPoint_G4_DEPRECATED_G1EF1F_Tres ((DpId) 0x682) /* 1666 UI32 */ #define DPoint_G4_EF1F_ImaxEn ((DpId) 0x683) /* 1667 EnDis */ #define DPoint_G4_EF1F_Imax ((DpId) 0x684) /* 1668 UI32 */ #define DPoint_G4_EF1F_DirEn ((DpId) 0x685) /* 1669 EnDis */ #define DPoint_G4_EF1F_Tr1 ((DpId) 0x686) /* 1670 TripMode */ #define DPoint_G4_EF1F_Tr2 ((DpId) 0x687) /* 1671 TripMode */ #define DPoint_G4_EF1F_Tr3 ((DpId) 0x688) /* 1672 TripMode */ #define DPoint_G4_EF1F_Tr4 ((DpId) 0x689) /* 1673 TripMode */ #define DPoint_G4_EF1F_TccUD ((DpId) 0x68A) /* 1674 TccCurve */ #define DPoint_G4_EF2F_Ip ((DpId) 0x68B) /* 1675 UI32 */ #define DPoint_G4_EF2F_Tcc ((DpId) 0x68C) /* 1676 UI16 */ #define DPoint_G4_EF2F_TDtMin ((DpId) 0x68D) /* 1677 UI32 */ #define DPoint_G4_EF2F_TDtRes ((DpId) 0x68E) /* 1678 UI32 */ #define DPoint_G4_EF2F_Tm ((DpId) 0x68F) /* 1679 UI32 */ #define DPoint_G4_EF2F_Imin ((DpId) 0x690) /* 1680 UI32 */ #define DPoint_G4_EF2F_Tmin ((DpId) 0x691) /* 1681 UI32 */ #define DPoint_G4_EF2F_Tmax ((DpId) 0x692) /* 1682 UI32 */ #define DPoint_G4_EF2F_Ta ((DpId) 0x693) /* 1683 UI32 */ #define DPoint_G4_DEPRECATED_G1EF2F_Tres ((DpId) 0x694) /* 1684 UI32 */ #define DPoint_G4_EF2F_ImaxEn ((DpId) 0x695) /* 1685 EnDis */ #define DPoint_G4_EF2F_Imax ((DpId) 0x696) /* 1686 UI32 */ #define DPoint_G4_EF2F_DirEn ((DpId) 0x697) /* 1687 EnDis */ #define DPoint_G4_EF2F_Tr1 ((DpId) 0x698) /* 1688 TripMode */ #define DPoint_G4_EF2F_Tr2 ((DpId) 0x699) /* 1689 TripMode */ #define DPoint_G4_EF2F_Tr3 ((DpId) 0x69A) /* 1690 TripMode */ #define DPoint_G4_EF2F_Tr4 ((DpId) 0x69B) /* 1691 TripMode */ #define DPoint_G4_EF2F_TccUD ((DpId) 0x69C) /* 1692 TccCurve */ #define DPoint_G4_EF3F_Ip ((DpId) 0x69D) /* 1693 UI32 */ #define DPoint_G4_EF3F_TDtMin ((DpId) 0x69E) /* 1694 UI32 */ #define DPoint_G4_EF3F_TDtRes ((DpId) 0x69F) /* 1695 UI32 */ #define DPoint_G4_EF3F_DirEn ((DpId) 0x6A0) /* 1696 EnDis */ #define DPoint_G4_EF3F_Tr1 ((DpId) 0x6A1) /* 1697 TripMode */ #define DPoint_G4_EF3F_Tr2 ((DpId) 0x6A2) /* 1698 TripMode */ #define DPoint_G4_EF3F_Tr3 ((DpId) 0x6A3) /* 1699 TripMode */ #define DPoint_G4_EF3F_Tr4 ((DpId) 0x6A4) /* 1700 TripMode */ #define DPoint_G4_EF1R_Ip ((DpId) 0x6A5) /* 1701 UI32 */ #define DPoint_G4_EF1R_Tcc ((DpId) 0x6A6) /* 1702 UI16 */ #define DPoint_G4_EF1R_TDtMin ((DpId) 0x6A7) /* 1703 UI32 */ #define DPoint_G4_EF1R_TDtRes ((DpId) 0x6A8) /* 1704 UI32 */ #define DPoint_G4_EF1R_Tm ((DpId) 0x6A9) /* 1705 UI32 */ #define DPoint_G4_EF1R_Imin ((DpId) 0x6AA) /* 1706 UI32 */ #define DPoint_G4_EF1R_Tmin ((DpId) 0x6AB) /* 1707 UI32 */ #define DPoint_G4_EF1R_Tmax ((DpId) 0x6AC) /* 1708 UI32 */ #define DPoint_G4_EF1R_Ta ((DpId) 0x6AD) /* 1709 UI32 */ #define DPoint_G4_DEPRECATED_G1EF1R_Tres ((DpId) 0x6AE) /* 1710 UI32 */ #define DPoint_G4_EF1R_ImaxEn ((DpId) 0x6AF) /* 1711 EnDis */ #define DPoint_G4_EF1R_Imax ((DpId) 0x6B0) /* 1712 UI32 */ #define DPoint_G4_EF1R_DirEn ((DpId) 0x6B1) /* 1713 EnDis */ #define DPoint_G4_EF1R_Tr1 ((DpId) 0x6B2) /* 1714 TripMode */ #define DPoint_G4_EF1R_Tr2 ((DpId) 0x6B3) /* 1715 TripMode */ #define DPoint_G4_EF1R_Tr3 ((DpId) 0x6B4) /* 1716 TripMode */ #define DPoint_G4_EF1R_Tr4 ((DpId) 0x6B5) /* 1717 TripMode */ #define DPoint_G4_EF1R_TccUD ((DpId) 0x6B6) /* 1718 TccCurve */ #define DPoint_G4_EF2R_Ip ((DpId) 0x6B7) /* 1719 UI32 */ #define DPoint_G4_EF2R_Tcc ((DpId) 0x6B8) /* 1720 UI16 */ #define DPoint_G4_EF2R_TDtMin ((DpId) 0x6B9) /* 1721 UI32 */ #define DPoint_G4_EF2R_TDtRes ((DpId) 0x6BA) /* 1722 UI32 */ #define DPoint_G4_EF2R_Tm ((DpId) 0x6BB) /* 1723 UI32 */ #define DPoint_G4_EF2R_Imin ((DpId) 0x6BC) /* 1724 UI32 */ #define DPoint_G4_EF2R_Tmin ((DpId) 0x6BD) /* 1725 UI32 */ #define DPoint_G4_EF2R_Tmax ((DpId) 0x6BE) /* 1726 UI32 */ #define DPoint_G4_EF2R_Ta ((DpId) 0x6BF) /* 1727 UI32 */ #define DPoint_G4_EF2R_ImaxEn ((DpId) 0x6C1) /* 1729 EnDis */ #define DPoint_G4_EF2R_Imax ((DpId) 0x6C2) /* 1730 UI32 */ #define DPoint_G4_EF2R_DirEn ((DpId) 0x6C3) /* 1731 EnDis */ #define DPoint_G4_EF2R_Tr1 ((DpId) 0x6C4) /* 1732 TripMode */ #define DPoint_G4_EF2R_Tr2 ((DpId) 0x6C5) /* 1733 TripMode */ #define DPoint_G4_EF2R_Tr3 ((DpId) 0x6C6) /* 1734 TripMode */ #define DPoint_G4_EF2R_Tr4 ((DpId) 0x6C7) /* 1735 TripMode */ #define DPoint_G4_EF2R_TccUD ((DpId) 0x6C8) /* 1736 TccCurve */ #define DPoint_G4_EF3R_Ip ((DpId) 0x6C9) /* 1737 UI32 */ #define DPoint_G4_EF3R_TDtMin ((DpId) 0x6CA) /* 1738 UI32 */ #define DPoint_G4_EF3R_TDtRes ((DpId) 0x6CB) /* 1739 UI32 */ #define DPoint_G4_EF3R_DirEn ((DpId) 0x6CC) /* 1740 EnDis */ #define DPoint_G4_EF3R_Tr1 ((DpId) 0x6CD) /* 1741 TripMode */ #define DPoint_G4_EF3R_Tr2 ((DpId) 0x6CE) /* 1742 TripMode */ #define DPoint_G4_EF3R_Tr3 ((DpId) 0x6CF) /* 1743 TripMode */ #define DPoint_G4_EF3R_Tr4 ((DpId) 0x6D0) /* 1744 TripMode */ #define DPoint_G4_SEFF_Ip ((DpId) 0x6D1) /* 1745 UI32 */ #define DPoint_G4_SEFF_TDtMin ((DpId) 0x6D2) /* 1746 UI32 */ #define DPoint_G4_SEFF_TDtRes ((DpId) 0x6D3) /* 1747 UI32 */ #define DPoint_G4_SEFF_DirEn ((DpId) 0x6D4) /* 1748 EnDis */ #define DPoint_G4_SEFF_Tr1 ((DpId) 0x6D5) /* 1749 TripMode */ #define DPoint_G4_SEFF_Tr2 ((DpId) 0x6D6) /* 1750 TripMode */ #define DPoint_G4_SEFF_Tr3 ((DpId) 0x6D7) /* 1751 TripMode */ #define DPoint_G4_SEFF_Tr4 ((DpId) 0x6D8) /* 1752 TripMode */ #define DPoint_G4_SEFR_Ip ((DpId) 0x6D9) /* 1753 UI32 */ #define DPoint_G4_SEFR_TDtMin ((DpId) 0x6DA) /* 1754 UI32 */ #define DPoint_G4_SEFR_TDtRes ((DpId) 0x6DB) /* 1755 UI32 */ #define DPoint_G4_SEFR_DirEn ((DpId) 0x6DC) /* 1756 EnDis */ #define DPoint_G4_SEFR_Tr1 ((DpId) 0x6DD) /* 1757 TripMode */ #define DPoint_G4_SEFR_Tr2 ((DpId) 0x6DE) /* 1758 TripMode */ #define DPoint_G4_SEFR_Tr3 ((DpId) 0x6DF) /* 1759 TripMode */ #define DPoint_G4_SEFR_Tr4 ((DpId) 0x6E0) /* 1760 TripMode */ #define DPoint_G4_OcLl_Ip ((DpId) 0x6E1) /* 1761 UI32 */ #define DPoint_G4_OcLl_TDtMin ((DpId) 0x6E2) /* 1762 UI32 */ #define DPoint_G4_OcLl_TDtRes ((DpId) 0x6E3) /* 1763 UI32 */ #define DPoint_G4_EfLl_Ip ((DpId) 0x6E4) /* 1764 UI32 */ #define DPoint_G4_EfLl_TDtMin ((DpId) 0x6E5) /* 1765 UI32 */ #define DPoint_G4_EfLl_TDtRes ((DpId) 0x6E6) /* 1766 UI32 */ #define DPoint_G4_Uv1_Um ((DpId) 0x6E7) /* 1767 UI32 */ #define DPoint_G4_Uv1_TDtMin ((DpId) 0x6E8) /* 1768 UI32 */ #define DPoint_G4_Uv1_TDtRes ((DpId) 0x6E9) /* 1769 UI32 */ #define DPoint_G4_Uv1_Trm ((DpId) 0x6EA) /* 1770 TripMode */ #define DPoint_G4_Uv2_Um ((DpId) 0x6EB) /* 1771 UI32 */ #define DPoint_G4_Uv2_TDtMin ((DpId) 0x6EC) /* 1772 UI32 */ #define DPoint_G4_Uv2_TDtRes ((DpId) 0x6ED) /* 1773 UI32 */ #define DPoint_G4_Uv2_Trm ((DpId) 0x6EE) /* 1774 TripMode */ #define DPoint_G4_Uv3_TDtMin ((DpId) 0x6EF) /* 1775 UI32 */ #define DPoint_G4_Uv3_TDtRes ((DpId) 0x6F0) /* 1776 UI32 */ #define DPoint_G4_Uv3_Trm ((DpId) 0x6F1) /* 1777 TripMode */ #define DPoint_G4_Ov1_Um ((DpId) 0x6F2) /* 1778 UI32 */ #define DPoint_G4_Ov1_TDtMin ((DpId) 0x6F3) /* 1779 UI32 */ #define DPoint_G4_Ov1_TDtRes ((DpId) 0x6F4) /* 1780 UI32 */ #define DPoint_G4_Ov1_Trm ((DpId) 0x6F5) /* 1781 TripMode */ #define DPoint_G4_Ov2_Um ((DpId) 0x6F6) /* 1782 UI32 */ #define DPoint_G4_Ov2_TDtMin ((DpId) 0x6F7) /* 1783 UI32 */ #define DPoint_G4_Ov2_TDtRes ((DpId) 0x6F8) /* 1784 UI32 */ #define DPoint_G4_Ov2_Trm ((DpId) 0x6F9) /* 1785 TripMode */ #define DPoint_G4_Uf_Fp ((DpId) 0x6FA) /* 1786 UI32 */ #define DPoint_G4_Uf_TDtMin ((DpId) 0x6FB) /* 1787 UI32 */ #define DPoint_G4_Uf_TDtRes ((DpId) 0x6FC) /* 1788 UI32 */ #define DPoint_G4_Uf_Trm ((DpId) 0x6FD) /* 1789 TripModeDLA */ #define DPoint_G4_Of_Fp ((DpId) 0x6FE) /* 1790 UI32 */ #define DPoint_G4_Of_TDtMin ((DpId) 0x6FF) /* 1791 UI32 */ #define DPoint_G4_Of_TDtRes ((DpId) 0x700) /* 1792 UI32 */ #define DPoint_G4_Of_Trm ((DpId) 0x701) /* 1793 TripModeDLA */ #define DPoint_G4_DEPRECATED_OC1F_ImaxAbs ((DpId) 0x702) /* 1794 UI32 */ #define DPoint_G4_DEPRECATED_OC2F_ImaxAbs ((DpId) 0x703) /* 1795 UI32 */ #define DPoint_G4_DEPRECATED_OC1R_ImaxAbs ((DpId) 0x704) /* 1796 UI32 */ #define DPoint_G4_DEPRECATED_OC2R_ImaxAbs ((DpId) 0x705) /* 1797 UI32 */ #define DPoint_G4_DEPRECATED_EF1F_ImaxAbs ((DpId) 0x706) /* 1798 UI32 */ #define DPoint_G4_DEPRECATED_EF2F_ImaxAbs ((DpId) 0x707) /* 1799 UI32 */ #define DPoint_G4_DEPRECATED_EF1R_ImaxAbs ((DpId) 0x708) /* 1800 UI32 */ #define DPoint_G4_DEPRECATED_EF2R_ImaxAbs ((DpId) 0x709) /* 1801 UI32 */ #define DPoint_G4_SstEfForward ((DpId) 0x70A) /* 1802 UI8 */ #define DPoint_G4_SstSefForward ((DpId) 0x70B) /* 1803 UI8 */ #define DPoint_G4_AbrTrest ((DpId) 0x70C) /* 1804 UI32 */ #define DPoint_G4_AutoOpenMode ((DpId) 0x70D) /* 1805 AutoOpenMode */ #define DPoint_G4_AutoOpenTime ((DpId) 0x70E) /* 1806 UI16 */ #define DPoint_G4_AutoOpenOpns ((DpId) 0x70F) /* 1807 UI8 */ #define DPoint_G4_SstOcReverse ((DpId) 0x710) /* 1808 UI8 */ #define DPoint_G4_SstEfReverse ((DpId) 0x711) /* 1809 UI8 */ #define DPoint_G4_SstSefReverse ((DpId) 0x712) /* 1810 UI8 */ #define DPoint_G4_ArUVOV_Trec ((DpId) 0x713) /* 1811 UI32 */ #define DPoint_G4_GrpName ((DpId) 0x714) /* 1812 Str */ #define DPoint_G4_GrpDes ((DpId) 0x715) /* 1813 Str */ #define DPoint_ChEvLifetimeCounters ((DpId) 0x716) /* 1814 ChangeEvent */ #define DPoint_ACOUnhealthy ((DpId) 0x717) /* 1815 Signal */ #define DPoint_p2pHealth ((DpId) 0x718) /* 1816 OkFail */ #define DPoint_SigP2PCommFail ((DpId) 0x719) /* 1817 Signal */ #define DPoint_ACOIsMaster ((DpId) 0x71A) /* 1818 Bool */ #define DPoint_ACOEnableSlave ((DpId) 0x71B) /* 1819 UI8 */ #define DPoint_ACOEnableSlavePeer ((DpId) 0x71C) /* 1820 UI8 */ #define DPoint_ACOSwRqst ((DpId) 0x71E) /* 1822 UI32 */ #define DPoint_ACOSwState ((DpId) 0x71F) /* 1823 UI32 */ #define DPoint_ACOSwStatePeer ((DpId) 0x720) /* 1824 UI32 */ #define DPoint_ACOSwRqstPeer ((DpId) 0x721) /* 1825 UI32 */ #define DPoint_ChEvLogic ((DpId) 0x722) /* 1826 ChangeEvent */ #define DPoint_SupplyHealthStatePeer ((DpId) 0x723) /* 1827 SupplyState */ #define DPoint_ResetBinaryFaultTargets ((DpId) 0x724) /* 1828 Signal */ #define DPoint_IaTrip ((DpId) 0x725) /* 1829 UI32 */ #define DPoint_IbTrip ((DpId) 0x726) /* 1830 UI32 */ #define DPoint_IcTrip ((DpId) 0x727) /* 1831 UI32 */ #define DPoint_InTrip ((DpId) 0x728) /* 1832 UI32 */ #define DPoint_ResetTripCurrents ((DpId) 0x729) /* 1833 Signal */ #define DPoint_ACO_TPupPeer ((DpId) 0x72A) /* 1834 UI32 */ #define DPoint_LoadDeadPeer ((DpId) 0x72B) /* 1835 UI32 */ #define DPoint_CanIoModuleResetStatus ((DpId) 0x72C) /* 1836 UI8 */ #define DPoint_ScadaDNP3EnableCommsLog ((DpId) 0x72D) /* 1837 EnDis */ #define DPoint_ScadaCMSEnableCommsLog ((DpId) 0x72E) /* 1838 EnDis */ #define DPoint_ScadaHMIEnableCommsLog ((DpId) 0x72F) /* 1839 EnDis */ #define DPoint_p2pCommEnableCommsLog ((DpId) 0x730) /* 1840 EnDis */ #define DPoint_p2pCommCommsLogMaxSize ((DpId) 0x731) /* 1841 UI8 */ #define DPoint_ScadaDNP3CommsLogMaxSize ((DpId) 0x732) /* 1842 UI8 */ #define DPoint_ScadaCMSCommsLogMaxSize ((DpId) 0x733) /* 1843 UI8 */ #define DPoint_ScadaHMICommsLogMaxSize ((DpId) 0x734) /* 1844 UI8 */ #define DPoint_ScadaT10BEnableCommsLog ((DpId) 0x736) /* 1846 EnDis */ #define DPoint_ScadaT10BCommsLogMaxSize ((DpId) 0x737) /* 1847 UI8 */ #define DPoint_SigOpenLogic ((DpId) 0x738) /* 1848 Signal */ #define DPoint_SigClosedLogic ((DpId) 0x739) /* 1849 Signal */ #define DPoint_ChEvIoSettings ((DpId) 0x73A) /* 1850 ChangeEvent */ #define DPoint_SigOperWarning ((DpId) 0x73B) /* 1851 Signal */ #define DPoint_SigOperWarningPeer ((DpId) 0x73C) /* 1852 Signal */ #define DPoint_LogEventV ((DpId) 0x73D) /* 1853 LogEventV */ #define DPoint_PhaseConfig ((DpId) 0x73E) /* 1854 PhaseConfig */ #define DPoint_ScadaDnp3PollWatchDogTime ((DpId) 0x73F) /* 1855 UI16 */ #define DPoint_ScadaT10BPollWatchDogTime ((DpId) 0x740) /* 1856 UI16 */ #define DPoint_ScadaDnp3BinaryControlWatchDogTime ((DpId) 0x741) /* 1857 UI16 */ #define DPoint_ScadaT10BBinaryControlWatchDogTime ((DpId) 0x742) /* 1858 UI16 */ #define DPoint_ScadaDnp3Polled ((DpId) 0x743) /* 1859 UI8 */ #define DPoint_ScadaT10BPolled ((DpId) 0x744) /* 1860 UI8 */ #define DPoint_ScadaDnp3CommunicationWatchDogTimeout ((DpId) 0x745) /* 1861 UI32 */ #define DPoint_ScadaT10BCommunicationWatchDogTimeout ((DpId) 0x746) /* 1862 UI32 */ #define DPoint_ScadaDnp3WatchDogControl ((DpId) 0x747) /* 1863 Signal */ #define DPoint_ScadaT10BWatchDogControl ((DpId) 0x748) /* 1864 Signal */ #define DPoint_IaLGVT ((DpId) 0x74A) /* 1866 UI32 */ #define DPoint_IcLGVT ((DpId) 0x74B) /* 1867 UI32 */ #define DPoint_IaMDIToday ((DpId) 0x74C) /* 1868 UI32 */ #define DPoint_IbMDIToday ((DpId) 0x74D) /* 1869 UI32 */ #define DPoint_IcMDIToday ((DpId) 0x74E) /* 1870 UI32 */ #define DPoint_IaMDIYesterday ((DpId) 0x74F) /* 1871 UI32 */ #define DPoint_IbMDIYesterday ((DpId) 0x750) /* 1872 UI32 */ #define DPoint_IcMDIYesterday ((DpId) 0x751) /* 1873 UI32 */ #define DPoint_IaMDILastWeek ((DpId) 0x752) /* 1874 UI32 */ #define DPoint_IbMDILastWeek ((DpId) 0x753) /* 1875 UI32 */ #define DPoint_IcMDILastWeek ((DpId) 0x754) /* 1876 UI32 */ #define DPoint_IbLGVT ((DpId) 0x755) /* 1877 UI32 */ #define DPoint_IdRelayNumModel ((DpId) 0x756) /* 1878 UI32 */ #define DPoint_IdRelayNumPlant ((DpId) 0x757) /* 1879 UI32 */ #define DPoint_IdRelayNumDate ((DpId) 0x758) /* 1880 UI32 */ #define DPoint_IdRelayNumSeq ((DpId) 0x759) /* 1881 UI32 */ #define DPoint_IdRelaySwVer1 ((DpId) 0x75A) /* 1882 UI32 */ #define DPoint_IdRelaySwVer2 ((DpId) 0x75B) /* 1883 UI32 */ #define DPoint_IdRelaySwVer3 ((DpId) 0x75C) /* 1884 UI32 */ #define DPoint_IdRelaySwVer4 ((DpId) 0x75D) /* 1885 UI32 */ #define DPoint_IdSIMNumModel ((DpId) 0x75E) /* 1886 UI32 */ #define DPoint_IdSIMNumPlant ((DpId) 0x75F) /* 1887 UI32 */ #define DPoint_IdSIMNumDate ((DpId) 0x760) /* 1888 UI32 */ #define DPoint_IdSIMNumSeq ((DpId) 0x761) /* 1889 UI32 */ #define DPoint_IdSIMSwVer1 ((DpId) 0x762) /* 1890 UI32 */ #define DPoint_IdSIMSwVer2 ((DpId) 0x763) /* 1891 UI32 */ #define DPoint_IdSIMSwVer3 ((DpId) 0x764) /* 1892 UI32 */ #define DPoint_IdSIMSwVer4 ((DpId) 0x765) /* 1893 UI32 */ #define DPoint_IdOsmNumModel ((DpId) 0x766) /* 1894 UI32 */ #define DPoint_IdOsmNumPlant ((DpId) 0x767) /* 1895 UI32 */ #define DPoint_IdOsmNumDate ((DpId) 0x768) /* 1896 UI32 */ #define DPoint_IdOsmNumSeq ((DpId) 0x769) /* 1897 UI32 */ #define DPoint_SigRTCHwFault ((DpId) 0x76B) /* 1899 Signal */ #define DPoint_SigCtrlLinkHltToLl ((DpId) 0x76C) /* 1900 Signal */ #define DPoint_OscEnable ((DpId) 0x76D) /* 1901 EnDis */ #define DPoint_OscCaptureTime ((DpId) 0x76E) /* 1902 OscCaptureTime */ #define DPoint_OscCapturePrior ((DpId) 0x76F) /* 1903 OscCapturePrior */ #define DPoint_OscOverwrite ((DpId) 0x770) /* 1904 EnDis */ #define DPoint_OscSaveToUSB ((DpId) 0x771) /* 1905 EnDis */ #define DPoint_SigCtrlRqstOscCapture ((DpId) 0x772) /* 1906 Signal */ #define DPoint_OscEvent ((DpId) 0x773) /* 1907 OscEvent */ #define DPoint_SigPickupLSDIabc ((DpId) 0x774) /* 1908 Signal */ #define DPoint_QueryGpio ((DpId) 0x776) /* 1910 UI32 */ #define DPoint_OscEventTriggered ((DpId) 0x777) /* 1911 YesNo */ #define DPoint_OscEventTriggerType ((DpId) 0x778) /* 1912 OscEvent */ #define DPoint_OscLogCount ((DpId) 0x779) /* 1913 UI8 */ #define DPoint_OscTransferData ((DpId) 0x77A) /* 1914 YesNo */ #define DPoint_HrmIaTDD ((DpId) 0x77B) /* 1915 UI32 */ #define DPoint_HrmIbTDD ((DpId) 0x77C) /* 1916 UI32 */ #define DPoint_HrmIcTDD ((DpId) 0x77D) /* 1917 UI32 */ #define DPoint_HrmUaTHD ((DpId) 0x77E) /* 1918 UI32 */ #define DPoint_HrmUbTHD ((DpId) 0x77F) /* 1919 UI32 */ #define DPoint_HrmUcTHD ((DpId) 0x780) /* 1920 UI32 */ #define DPoint_HrmInTDD ((DpId) 0x781) /* 1921 UI32 */ #define DPoint_EventLogOldestId ((DpId) 0x782) /* 1922 UI32 */ #define DPoint_EventLogNewestId ((DpId) 0x783) /* 1923 UI32 */ #define DPoint_SettingLogOldestId ((DpId) 0x784) /* 1924 UI32 */ #define DPoint_SettingLogNewestId ((DpId) 0x785) /* 1925 UI32 */ #define DPoint_FaultLogOldestId ((DpId) 0x786) /* 1926 UI32 */ #define DPoint_FaultLogNewestId ((DpId) 0x787) /* 1927 UI32 */ #define DPoint_CloseOpenLogOldestId ((DpId) 0x788) /* 1928 UI32 */ #define DPoint_CloseOpenLogNewestId ((DpId) 0x789) /* 1929 UI32 */ #define DPoint_LoadProfileOldestId ((DpId) 0x78A) /* 1930 UI32 */ #define DPoint_LoadProfileNewestId ((DpId) 0x78B) /* 1931 UI32 */ #define DPoint_LogToCmsTransferRequest ((DpId) 0x78C) /* 1932 LogTransferRequest */ #define DPoint_LogToCmsTransferReply ((DpId) 0x78D) /* 1933 LogTransferReply */ #define DPoint_OscSimFilename ((DpId) 0x78F) /* 1935 Str */ #define DPoint_OscSimLoopCount ((DpId) 0x790) /* 1936 UI16 */ #define DPoint_OscSimRun ((DpId) 0x791) /* 1937 YesNo */ #define DPoint_OscSimStatus ((DpId) 0x792) /* 1938 OscSimStatus */ #define DPoint_OscTraceDir ((DpId) 0x793) /* 1939 Str */ #define DPoint_HrmIa1st ((DpId) 0x794) /* 1940 UI32 */ #define DPoint_HrmIb1st ((DpId) 0x795) /* 1941 UI32 */ #define DPoint_HrmIc1st ((DpId) 0x796) /* 1942 UI32 */ #define DPoint_HrmIn1st ((DpId) 0x797) /* 1943 UI32 */ #define DPoint_CmsPort ((DpId) 0x798) /* 1944 UI8 */ #define DPoint_SigOpen ((DpId) 0x799) /* 1945 Signal */ #define DPoint_SigOpenProt ((DpId) 0x79A) /* 1946 Signal */ #define DPoint_SigOpenOc1F ((DpId) 0x79B) /* 1947 Signal */ #define DPoint_SigOpenOc2F ((DpId) 0x79C) /* 1948 Signal */ #define DPoint_SigOpenOc3F ((DpId) 0x79D) /* 1949 Signal */ #define DPoint_SigOpenOc1R ((DpId) 0x79E) /* 1950 Signal */ #define DPoint_SigOpenOc2R ((DpId) 0x79F) /* 1951 Signal */ #define DPoint_SigOpenOc3R ((DpId) 0x7A0) /* 1952 Signal */ #define DPoint_SigOpenEf1F ((DpId) 0x7A1) /* 1953 Signal */ #define DPoint_SigOpenEf2F ((DpId) 0x7A2) /* 1954 Signal */ #define DPoint_SigOpenEf3F ((DpId) 0x7A3) /* 1955 Signal */ #define DPoint_SigOpenEf1R ((DpId) 0x7A4) /* 1956 Signal */ #define DPoint_SigOpenEf2R ((DpId) 0x7A5) /* 1957 Signal */ #define DPoint_SigOpenEf3R ((DpId) 0x7A6) /* 1958 Signal */ #define DPoint_SigOpenSefF ((DpId) 0x7A7) /* 1959 Signal */ #define DPoint_SigOpenSefR ((DpId) 0x7A8) /* 1960 Signal */ #define DPoint_SigOpenOcll ((DpId) 0x7A9) /* 1961 Signal */ #define DPoint_SigOpenEfll ((DpId) 0x7AA) /* 1962 Signal */ #define DPoint_SigOpenUv1 ((DpId) 0x7AB) /* 1963 Signal */ #define DPoint_SigOpenUv2 ((DpId) 0x7AC) /* 1964 Signal */ #define DPoint_SigOpenUv3 ((DpId) 0x7AD) /* 1965 Signal */ #define DPoint_SigOpenOv1 ((DpId) 0x7AE) /* 1966 Signal */ #define DPoint_SigOpenOv2 ((DpId) 0x7AF) /* 1967 Signal */ #define DPoint_SigOpenOf ((DpId) 0x7B0) /* 1968 Signal */ #define DPoint_SigOpenUf ((DpId) 0x7B1) /* 1969 Signal */ #define DPoint_SigOpenRemote ((DpId) 0x7B2) /* 1970 Signal */ #define DPoint_SigOpenSCADA ((DpId) 0x7B3) /* 1971 Signal */ #define DPoint_SigOpenIO ((DpId) 0x7B4) /* 1972 Signal */ #define DPoint_SigOpenLocal ((DpId) 0x7B5) /* 1973 Signal */ #define DPoint_SigOpenMMI ((DpId) 0x7B6) /* 1974 Signal */ #define DPoint_SigOpenPC ((DpId) 0x7B7) /* 1975 Signal */ #define DPoint_DEPRECATED_SigOpenManual ((DpId) 0x7B8) /* 1976 Signal */ #define DPoint_SigAlarm ((DpId) 0x7B9) /* 1977 Signal */ #define DPoint_SigAlarmOc1F ((DpId) 0x7BA) /* 1978 Signal */ #define DPoint_SigAlarmOc2F ((DpId) 0x7BB) /* 1979 Signal */ #define DPoint_SigAlarmOc3F ((DpId) 0x7BC) /* 1980 Signal */ #define DPoint_SigAlarmOc1R ((DpId) 0x7BD) /* 1981 Signal */ #define DPoint_SigAlarmOc2R ((DpId) 0x7BE) /* 1982 Signal */ #define DPoint_SigAlarmOc3R ((DpId) 0x7BF) /* 1983 Signal */ #define DPoint_SigAlarmEf1F ((DpId) 0x7C0) /* 1984 Signal */ #define DPoint_SigAlarmEf2F ((DpId) 0x7C1) /* 1985 Signal */ #define DPoint_SigAlarmEf3F ((DpId) 0x7C2) /* 1986 Signal */ #define DPoint_SigAlarmEf1R ((DpId) 0x7C3) /* 1987 Signal */ #define DPoint_SigAlarmEf2R ((DpId) 0x7C4) /* 1988 Signal */ #define DPoint_SigAlarmEf3R ((DpId) 0x7C5) /* 1989 Signal */ #define DPoint_SigAlarmSefF ((DpId) 0x7C6) /* 1990 Signal */ #define DPoint_SigAlarmSefR ((DpId) 0x7C7) /* 1991 Signal */ #define DPoint_SigAlarmUv1 ((DpId) 0x7C8) /* 1992 Signal */ #define DPoint_SigAlarmUv2 ((DpId) 0x7C9) /* 1993 Signal */ #define DPoint_SigAlarmUv3 ((DpId) 0x7CA) /* 1994 Signal */ #define DPoint_SigAlarmOv1 ((DpId) 0x7CB) /* 1995 Signal */ #define DPoint_SigAlarmOv2 ((DpId) 0x7CC) /* 1996 Signal */ #define DPoint_SigAlarmOf ((DpId) 0x7CD) /* 1997 Signal */ #define DPoint_SigAlarmUf ((DpId) 0x7CE) /* 1998 Signal */ #define DPoint_SigClosed ((DpId) 0x7CF) /* 1999 Signal */ #define DPoint_SigClosedAR ((DpId) 0x7D0) /* 2000 Signal */ #define DPoint_SigClosedAR_OcEf ((DpId) 0x7D1) /* 2001 Signal */ #define DPoint_SigClosedAR_Sef ((DpId) 0x7D2) /* 2002 Signal */ #define DPoint_SigClosedAR_Uv ((DpId) 0x7D3) /* 2003 Signal */ #define DPoint_SigClosedAR_Ov ((DpId) 0x7D4) /* 2004 Signal */ #define DPoint_SigClosedABR ((DpId) 0x7D5) /* 2005 Signal */ #define DPoint_SigClosedRemote ((DpId) 0x7D6) /* 2006 Signal */ #define DPoint_SigClosedSCADA ((DpId) 0x7D7) /* 2007 Signal */ #define DPoint_SigClosedIO ((DpId) 0x7D8) /* 2008 Signal */ #define DPoint_SigClosedLocal ((DpId) 0x7D9) /* 2009 Signal */ #define DPoint_SigClosedMMI ((DpId) 0x7DA) /* 2010 Signal */ #define DPoint_SigClosedPC ((DpId) 0x7DB) /* 2011 Signal */ #define DPoint_SigClosedUndef ((DpId) 0x7DC) /* 2012 Signal */ #define DPoint_CmsPortBaud ((DpId) 0x7DF) /* 2015 BaudRateType */ #define DPoint_DEPRECATED_CmsAuxPortBaud ((DpId) 0x7E0) /* 2016 BaudRateType */ #define DPoint_CmsPortCrcCnt ((DpId) 0x7E1) /* 2017 I32 */ #define DPoint_CmsAuxPortCrcCnt ((DpId) 0x7E2) /* 2018 UI32 */ #define DPoint_HrmUa1st ((DpId) 0x7E3) /* 2019 UI32 */ #define DPoint_CanDataRequestSim ((DpId) 0x7E5) /* 2021 CanObjType */ #define DPoint_ProtCfgInUse ((DpId) 0x7E6) /* 2022 UI32 */ #define DPoint_CanSimBusErr ((DpId) 0x7E7) /* 2023 UI32 */ #define DPoint_ChEvNonGroup ((DpId) 0x7E8) /* 2024 ChangeEvent */ #define DPoint_ChEvGrp1 ((DpId) 0x7E9) /* 2025 ChangeEvent */ #define DPoint_ChEvGrp2 ((DpId) 0x7EA) /* 2026 ChangeEvent */ #define DPoint_ChEvGrp3 ((DpId) 0x7EB) /* 2027 ChangeEvent */ #define DPoint_ChEvGrp4 ((DpId) 0x7EC) /* 2028 ChangeEvent */ #define DPoint_HrmUb1st ((DpId) 0x7ED) /* 2029 UI32 */ #define DPoint_SigCtrlProtOn ((DpId) 0x7EE) /* 2030 Signal */ #define DPoint_SigCtrlGroup1On ((DpId) 0x7EF) /* 2031 Signal */ #define DPoint_SigCtrlGroup2On ((DpId) 0x7F0) /* 2032 Signal */ #define DPoint_SigCtrlGroup3On ((DpId) 0x7F1) /* 2033 Signal */ #define DPoint_SigCtrlGroup4On ((DpId) 0x7F2) /* 2034 Signal */ #define DPoint_SigCtrlEFOn ((DpId) 0x7F3) /* 2035 Signal */ #define DPoint_SigCtrlSEFOn ((DpId) 0x7F4) /* 2036 Signal */ #define DPoint_SigCtrlUVOn ((DpId) 0x7F5) /* 2037 Signal */ #define DPoint_SigCtrlUFOn ((DpId) 0x7F6) /* 2038 Signal */ #define DPoint_SigCtrlOVOn ((DpId) 0x7F7) /* 2039 Signal */ #define DPoint_SigCtrlOFOn ((DpId) 0x7F8) /* 2040 Signal */ #define DPoint_SigCtrlCLPOn ((DpId) 0x7F9) /* 2041 Signal */ #define DPoint_SigCtrlLLOn ((DpId) 0x7FA) /* 2042 Signal */ #define DPoint_SigCtrlAROn ((DpId) 0x7FB) /* 2043 Signal */ #define DPoint_SigCtrlMNTOn ((DpId) 0x7FC) /* 2044 Signal */ #define DPoint_SigCtrlABROn ((DpId) 0x7FD) /* 2045 Signal */ #define DPoint_SigStatusConnectionEstablished ((DpId) 0x7FE) /* 2046 Signal */ #define DPoint_SigStatusConnectionCompleted ((DpId) 0x7FF) /* 2047 Signal */ #define DPoint_SigStatusDialupInitiated ((DpId) 0x800) /* 2048 Signal */ #define DPoint_SigStatusDialupFailed ((DpId) 0x801) /* 2049 Signal */ #define DPoint_SigMalfunction ((DpId) 0x802) /* 2050 Signal */ #define DPoint_HrmUc1st ((DpId) 0x803) /* 2051 UI32 */ #define DPoint_HrmIa2nd ((DpId) 0x804) /* 2052 UI32 */ #define DPoint_HrmIb2nd ((DpId) 0x805) /* 2053 UI32 */ #define DPoint_HrmIc2nd ((DpId) 0x806) /* 2054 UI32 */ #define DPoint_SigMalfRelay ((DpId) 0x807) /* 2055 Signal */ #define DPoint_SigMalfSimComms ((DpId) 0x808) /* 2056 Signal */ #define DPoint_SigMalfIo1Comms ((DpId) 0x809) /* 2057 Signal */ #define DPoint_SigMalfIo2Comms ((DpId) 0x80A) /* 2058 Signal */ #define DPoint_SigMalfIo1Fault ((DpId) 0x80B) /* 2059 Signal */ #define DPoint_SigMalfIo2Fault ((DpId) 0x80C) /* 2060 Signal */ #define DPoint_SigWarning ((DpId) 0x80D) /* 2061 Signal */ #define DPoint_HrmIn2nd ((DpId) 0x80E) /* 2062 UI32 */ #define DPoint_HrmUa2nd ((DpId) 0x80F) /* 2063 UI32 */ #define DPoint_CntrOcATrips ((DpId) 0x810) /* 2064 I32 */ #define DPoint_CntrOcBTrips ((DpId) 0x811) /* 2065 I32 */ #define DPoint_CntrOcCTrips ((DpId) 0x812) /* 2066 I32 */ #define DPoint_CntrEfTrips ((DpId) 0x813) /* 2067 I32 */ #define DPoint_CntrSefTrips ((DpId) 0x814) /* 2068 I32 */ #define DPoint_CntrUvTrips ((DpId) 0x815) /* 2069 I32 */ #define DPoint_CntrOvTrips ((DpId) 0x816) /* 2070 I32 */ #define DPoint_CntrUfTrips ((DpId) 0x817) /* 2071 I32 */ #define DPoint_CntrOfTrips ((DpId) 0x818) /* 2072 I32 */ #define DPoint_TripCnt ((DpId) 0x819) /* 2073 UI32 */ #define DPoint_MechanicalWear ((DpId) 0x81A) /* 2074 UI32 */ #define DPoint_BreakerWear ((DpId) 0x81B) /* 2075 UI32 */ #define DPoint_MeasCurrIa ((DpId) 0x81C) /* 2076 UI32 */ #define DPoint_MeasCurrIb ((DpId) 0x81D) /* 2077 UI32 */ #define DPoint_MeasCurrIc ((DpId) 0x81E) /* 2078 UI32 */ #define DPoint_MeasCurrIn ((DpId) 0x81F) /* 2079 UI32 */ #define DPoint_MeasVoltUa ((DpId) 0x820) /* 2080 UI32 */ #define DPoint_MeasVoltUb ((DpId) 0x821) /* 2081 UI32 */ #define DPoint_MeasVoltUc ((DpId) 0x822) /* 2082 UI32 */ #define DPoint_MeasVoltUab ((DpId) 0x823) /* 2083 UI32 */ #define DPoint_MeasVoltUbc ((DpId) 0x824) /* 2084 UI32 */ #define DPoint_MeasVoltUca ((DpId) 0x825) /* 2085 UI32 */ #define DPoint_MeasVoltUr ((DpId) 0x826) /* 2086 UI32 */ #define DPoint_MeasVoltUs ((DpId) 0x827) /* 2087 UI32 */ #define DPoint_MeasVoltUt ((DpId) 0x828) /* 2088 UI32 */ #define DPoint_MeasVoltUrs ((DpId) 0x829) /* 2089 UI32 */ #define DPoint_MeasVoltUst ((DpId) 0x82A) /* 2090 UI32 */ #define DPoint_MeasVoltUtr ((DpId) 0x82B) /* 2091 UI32 */ #define DPoint_MeasFreqabc ((DpId) 0x82C) /* 2092 UI32 */ #define DPoint_MeasFreqrst ((DpId) 0x82D) /* 2093 UI32 */ #define DPoint_MeasPowerPhase3kVA ((DpId) 0x82E) /* 2094 UI32 */ #define DPoint_MeasPowerPhase3kW ((DpId) 0x82F) /* 2095 UI32 */ #define DPoint_MeasPowerPhase3kVAr ((DpId) 0x830) /* 2096 UI32 */ #define DPoint_MeasPowerPhaseAkVA ((DpId) 0x831) /* 2097 UI32 */ #define DPoint_MeasPowerPhaseAkW ((DpId) 0x832) /* 2098 UI32 */ #define DPoint_MeasPowerPhaseAkVAr ((DpId) 0x833) /* 2099 UI32 */ #define DPoint_MeasPowerPhaseBkVA ((DpId) 0x834) /* 2100 UI32 */ #define DPoint_MeasPowerPhaseBkW ((DpId) 0x835) /* 2101 UI32 */ #define DPoint_MeasPowerPhaseBkVAr ((DpId) 0x836) /* 2102 UI32 */ #define DPoint_MeasPowerPhaseCkVA ((DpId) 0x837) /* 2103 UI32 */ #define DPoint_MeasPowerPhaseCkW ((DpId) 0x838) /* 2104 UI32 */ #define DPoint_MeasPowerPhaseCkVAr ((DpId) 0x839) /* 2105 UI32 */ #define DPoint_MeasPowerFactor3phase ((DpId) 0x83A) /* 2106 I32 */ #define DPoint_MeasPowerFactorAphase ((DpId) 0x83B) /* 2107 I32 */ #define DPoint_MeasPowerFactorBphase ((DpId) 0x83C) /* 2108 I32 */ #define DPoint_MeasPowerFactorCphase ((DpId) 0x83D) /* 2109 I32 */ #define DPoint_HrmUb2nd ((DpId) 0x83E) /* 2110 UI32 */ #define DPoint_MeasPowerFlowDirectionOC ((DpId) 0x83F) /* 2111 ProtDirOut */ #define DPoint_MeasPowerFlowDirectionEF ((DpId) 0x840) /* 2112 ProtDirOut */ #define DPoint_MeasPowerFlowDirectionSEF ((DpId) 0x841) /* 2113 ProtDirOut */ #define DPoint_MeasEnergyPhase3FkVAh ((DpId) 0x842) /* 2114 UI32 */ #define DPoint_MeasEnergyPhase3FkVArh ((DpId) 0x843) /* 2115 UI32 */ #define DPoint_MeasEnergyPhase3FkWh ((DpId) 0x844) /* 2116 UI32 */ #define DPoint_MeasEnergyPhaseAFkVAh ((DpId) 0x845) /* 2117 UI32 */ #define DPoint_MeasEnergyPhaseAFkVArh ((DpId) 0x846) /* 2118 UI32 */ #define DPoint_MeasEnergyPhaseAFkWh ((DpId) 0x847) /* 2119 UI32 */ #define DPoint_MeasEnergyPhaseBFkVAh ((DpId) 0x848) /* 2120 UI32 */ #define DPoint_MeasEnergyPhaseBFkVArh ((DpId) 0x849) /* 2121 UI32 */ #define DPoint_MeasEnergyPhaseBFkWh ((DpId) 0x84A) /* 2122 UI32 */ #define DPoint_MeasEnergyPhaseCFkVAh ((DpId) 0x84B) /* 2123 UI32 */ #define DPoint_MeasEnergyPhaseCFkVArh ((DpId) 0x84C) /* 2124 UI32 */ #define DPoint_MeasEnergyPhaseCFkWh ((DpId) 0x84D) /* 2125 UI32 */ #define DPoint_MeasEnergyPhase3RkVAh ((DpId) 0x84E) /* 2126 UI32 */ #define DPoint_MeasEnergyPhase3RkVArh ((DpId) 0x84F) /* 2127 UI32 */ #define DPoint_MeasEnergyPhase3RkWh ((DpId) 0x850) /* 2128 UI32 */ #define DPoint_MeasEnergyPhaseARkVAh ((DpId) 0x851) /* 2129 UI32 */ #define DPoint_MeasEnergyPhaseARkVArh ((DpId) 0x852) /* 2130 UI32 */ #define DPoint_MeasEnergyPhaseARkWh ((DpId) 0x853) /* 2131 UI32 */ #define DPoint_MeasEnergyPhaseBRkVAh ((DpId) 0x854) /* 2132 UI32 */ #define DPoint_MeasEnergyPhaseBRkVArh ((DpId) 0x855) /* 2133 UI32 */ #define DPoint_MeasEnergyPhaseBRkWh ((DpId) 0x856) /* 2134 UI32 */ #define DPoint_MeasEnergyPhaseCRkVAh ((DpId) 0x857) /* 2135 UI32 */ #define DPoint_MeasEnergyPhaseCRkVArh ((DpId) 0x858) /* 2136 UI32 */ #define DPoint_MeasEnergyPhaseCRkWh ((DpId) 0x859) /* 2137 UI32 */ #define DPoint_IdRelayNumber ((DpId) 0x85A) /* 2138 SerialNumber */ #define DPoint_IdRelayDbVer ((DpId) 0x85B) /* 2139 Str */ #define DPoint_IdRelaySoftwareVer ((DpId) 0x85C) /* 2140 Str */ #define DPoint_IdRelayHardwareVer ((DpId) 0x85D) /* 2141 Str */ #define DPoint_IdSIMNumber ((DpId) 0x85E) /* 2142 SerialNumber */ #define DPoint_IdSIMSoftwareVer ((DpId) 0x85F) /* 2143 Str */ #define DPoint_IdSIMHardwareVer ((DpId) 0x860) /* 2144 Str */ #define DPoint_IdPanelNumber ((DpId) 0x861) /* 2145 SerialNumber */ #define DPoint_IdPanelHMIVer ((DpId) 0x862) /* 2146 Str */ #define DPoint_IdPanelSoftwareVer ((DpId) 0x863) /* 2147 Str */ #define DPoint_IdPanelHardwareVer ((DpId) 0x864) /* 2148 Str */ #define DPoint_SysDateTime ((DpId) 0x865) /* 2149 TimeStamp */ #define DPoint_HltEnableCid ((DpId) 0x866) /* 2150 DbClientId */ #define DPoint_SysControlMode ((DpId) 0x867) /* 2151 LocalRemote */ #define DPoint_MeasLoadProfDef ((DpId) 0x868) /* 2152 LoadProfileDefType */ #define DPoint_MeasLoadProfTimer ((DpId) 0x869) /* 2153 UI16 */ #define DPoint_HrmUc2nd ((DpId) 0x86A) /* 2154 UI32 */ #define DPoint_SimSwReqOpen ((DpId) 0x86B) /* 2155 UI8 */ #define DPoint_SimSwReqClose ((DpId) 0x86C) /* 2156 UI8 */ #define DPoint_HrmIa3rd ((DpId) 0x86D) /* 2157 UI32 */ #define DPoint_SigCtrlRqstOpen ((DpId) 0x86E) /* 2158 Signal */ #define DPoint_SigCtrlRqstClose ((DpId) 0x86F) /* 2159 Signal */ #define DPoint_SigCtrlRemoteOn ((DpId) 0x870) /* 2160 Signal */ #define DPoint_SigGenLockout ((DpId) 0x871) /* 2161 Signal */ #define DPoint_SigGenARInit ((DpId) 0x872) /* 2162 Signal */ #define DPoint_SigGenProtInit ((DpId) 0x873) /* 2163 Signal */ #define DPoint_HrmIb3rd ((DpId) 0x874) /* 2164 UI32 */ #define DPoint_swsimEn ((DpId) 0x875) /* 2165 UI8 */ #define DPoint_HrmIc3rd ((DpId) 0x876) /* 2166 UI32 */ #define DPoint_SigTripCloseRequestStatusActive ((DpId) 0x877) /* 2167 Signal */ #define DPoint_SigTripCloseRequestStatusTripFail ((DpId) 0x878) /* 2168 Signal */ #define DPoint_SigTripCloseRequestStatusCloseFail ((DpId) 0x879) /* 2169 Signal */ #define DPoint_SigTripCloseRequestStatusTripActive ((DpId) 0x87A) /* 2170 Signal */ #define DPoint_SigTripCloseRequestStatusCloseActive ((DpId) 0x87B) /* 2171 Signal */ #define DPoint_SigSwitchPositionStatusUnavailable ((DpId) 0x87C) /* 2172 Signal */ #define DPoint_SigSwitchManualTrip ((DpId) 0x87D) /* 2173 Signal */ #define DPoint_SigSwitchDisconnectionStatus ((DpId) 0x87E) /* 2174 Signal */ #define DPoint_HrmIn3rd ((DpId) 0x87F) /* 2175 UI32 */ #define DPoint_SigSwitchLockoutStatusMechaniclocked ((DpId) 0x880) /* 2176 Signal */ #define DPoint_SigOSMActuatorFaultStatusCoilOc ((DpId) 0x881) /* 2177 Signal */ #define DPoint_SigOsmActuatorFaultStatusCoilSc ((DpId) 0x882) /* 2178 Signal */ #define DPoint_SigOsmLimitFaultStatusFault ((DpId) 0x883) /* 2179 Signal */ #define DPoint_SigDriverStatusNotReady ((DpId) 0x884) /* 2180 Signal */ #define DPoint_SigBatteryStatusAbnormal ((DpId) 0x887) /* 2183 Signal */ #define DPoint_SigBatteryChargerStatusFlat ((DpId) 0x888) /* 2184 Signal */ #define DPoint_SigBatteryChargerStatusNormal ((DpId) 0x889) /* 2185 Signal */ #define DPoint_SigBatteryChargerStatusLowPower ((DpId) 0x88A) /* 2186 Signal */ #define DPoint_SigBatteryChargerStatusTrickle ((DpId) 0x88B) /* 2187 Signal */ #define DPoint_SigBatteryChargerStatusFails ((DpId) 0x88C) /* 2188 Signal */ #define DPoint_SigLowPowerBatteryCharge ((DpId) 0x88D) /* 2189 Signal */ #define DPoint_SigExtSupplyStatusOff ((DpId) 0x88E) /* 2190 Signal */ #define DPoint_SigExtSupplyStatusOverLoad ((DpId) 0x88F) /* 2191 Signal */ #define DPoint_SigUPSStatusAcOff ((DpId) 0x890) /* 2192 Signal */ #define DPoint_SigUPSStatusBatteryOff ((DpId) 0x891) /* 2193 Signal */ #define DPoint_SigUPSPowerDown ((DpId) 0x892) /* 2194 Signal */ #define DPoint_HrmUa3rd ((DpId) 0x893) /* 2195 UI32 */ #define DPoint_HrmUb3rd ((DpId) 0x894) /* 2196 UI32 */ #define DPoint_SigModuleSimHealthFault ((DpId) 0x895) /* 2197 Signal */ #define DPoint_SigModuleTypeSimDisconnected ((DpId) 0x896) /* 2198 Signal */ #define DPoint_SigModuleTypeIo1Connected ((DpId) 0x897) /* 2199 Signal */ #define DPoint_SigModuleTypeIo2Connected ((DpId) 0x898) /* 2200 Signal */ #define DPoint_SigModuleTypePcConnected ((DpId) 0x899) /* 2201 Signal */ #define DPoint_SigCANControllerOverrun ((DpId) 0x89A) /* 2202 Signal */ #define DPoint_SigCANControllerError ((DpId) 0x89B) /* 2203 Signal */ #define DPoint_SigCANMessagebufferoverflow ((DpId) 0x89C) /* 2204 Signal */ #define DPoint_swsimInLockout ((DpId) 0x89D) /* 2205 UI8 */ #define DPoint_fpgaBaseAddr ((DpId) 0x89E) /* 2206 UI32 */ #define DPoint_MeasCurrI1 ((DpId) 0x89F) /* 2207 UI32 */ #define DPoint_MeasCurrI2 ((DpId) 0x8A0) /* 2208 UI32 */ #define DPoint_MeasVoltUar ((DpId) 0x8A1) /* 2209 UI32 */ #define DPoint_MeasVoltUbs ((DpId) 0x8A2) /* 2210 UI32 */ #define DPoint_MeasVoltUct ((DpId) 0x8A3) /* 2211 UI32 */ #define DPoint_MeasVoltU0 ((DpId) 0x8A4) /* 2212 UI32 */ #define DPoint_MeasVoltU1 ((DpId) 0x8A5) /* 2213 UI32 */ #define DPoint_MeasVoltU2 ((DpId) 0x8A6) /* 2214 UI32 */ #define DPoint_MeasA0 ((DpId) 0x8A7) /* 2215 I32 */ #define DPoint_MeasA1 ((DpId) 0x8A8) /* 2216 I32 */ #define DPoint_MeasA2 ((DpId) 0x8A9) /* 2217 I32 */ #define DPoint_MeasPhSABC ((DpId) 0x8AA) /* 2218 MeasPhaseSeqAbcType */ #define DPoint_MeasPhSRST ((DpId) 0x8AB) /* 2219 MeasPhaseSeqRstType */ #define DPoint_HrmUc3rd ((DpId) 0x8AC) /* 2220 UI32 */ #define DPoint_HrmIa4th ((DpId) 0x8AD) /* 2221 UI32 */ #define DPoint_HrmIb4th ((DpId) 0x8AE) /* 2222 UI32 */ #define DPoint_HrmIc4th ((DpId) 0x8AF) /* 2223 UI32 */ #define DPoint_smpFpgaDataValid ((DpId) 0x8B0) /* 2224 I8 */ #define DPoint_SigClosedAR_VE ((DpId) 0x8BC) /* 2236 Signal */ #define DPoint_HrmIn4th ((DpId) 0x8C2) /* 2242 UI32 */ #define DPoint_HrmUa4th ((DpId) 0x8C3) /* 2243 UI32 */ #define DPoint_HrmUb4th ((DpId) 0x8C4) /* 2244 UI32 */ #define DPoint_seqSimulatorFname ((DpId) 0x8D5) /* 2261 Str */ #define DPoint_enSwSimulator ((DpId) 0x8D6) /* 2262 UI8 */ #define DPoint_enSeqSimulator ((DpId) 0x8D7) /* 2263 UI8 */ #define DPoint_HrmUc4th ((DpId) 0x8D8) /* 2264 UI32 */ #define DPoint_HrmIa5th ((DpId) 0x8D9) /* 2265 UI32 */ #define DPoint_IoSettingIo1InputCh1 ((DpId) 0x8DD) /* 2269 IoStatus */ #define DPoint_IoSettingIo1InputCh2 ((DpId) 0x8DE) /* 2270 IoStatus */ #define DPoint_IoSettingIo1InputCh3 ((DpId) 0x8DF) /* 2271 IoStatus */ #define DPoint_IoSettingIo1InputCh4 ((DpId) 0x8E0) /* 2272 IoStatus */ #define DPoint_IoSettingIo1InputCh5 ((DpId) 0x8E1) /* 2273 IoStatus */ #define DPoint_IoSettingIo1InputCh6 ((DpId) 0x8E2) /* 2274 IoStatus */ #define DPoint_IoSettingIo1InputCh7 ((DpId) 0x8E3) /* 2275 IoStatus */ #define DPoint_IoSettingIo1InputCh8 ((DpId) 0x8E4) /* 2276 IoStatus */ #define DPoint_IoSettingIo2InputCh1 ((DpId) 0x8E5) /* 2277 IoStatus */ #define DPoint_IoSettingIo2InputCh2 ((DpId) 0x8E6) /* 2278 IoStatus */ #define DPoint_IoSettingIo2InputCh3 ((DpId) 0x8E7) /* 2279 IoStatus */ #define DPoint_IoSettingIo2InputCh4 ((DpId) 0x8E8) /* 2280 IoStatus */ #define DPoint_IoSettingIo2InputCh5 ((DpId) 0x8E9) /* 2281 IoStatus */ #define DPoint_IoSettingIo2InputCh6 ((DpId) 0x8EA) /* 2282 IoStatus */ #define DPoint_IoSettingIo2InputCh7 ((DpId) 0x8EB) /* 2283 IoStatus */ #define DPoint_IoSettingIo2InputCh8 ((DpId) 0x8EC) /* 2284 IoStatus */ #define DPoint_IoSettingIo1OutputCh1 ((DpId) 0x8ED) /* 2285 IoStatus */ #define DPoint_IoSettingIo1OutputCh2 ((DpId) 0x8EE) /* 2286 IoStatus */ #define DPoint_IoSettingIo1OutputCh3 ((DpId) 0x8EF) /* 2287 IoStatus */ #define DPoint_IoSettingIo1OutputCh4 ((DpId) 0x8F0) /* 2288 IoStatus */ #define DPoint_IoSettingIo1OutputCh5 ((DpId) 0x8F1) /* 2289 IoStatus */ #define DPoint_IoSettingIo1OutputCh6 ((DpId) 0x8F2) /* 2290 IoStatus */ #define DPoint_IoSettingIo1OutputCh7 ((DpId) 0x8F3) /* 2291 IoStatus */ #define DPoint_IoSettingIo1OutputCh8 ((DpId) 0x8F4) /* 2292 IoStatus */ #define DPoint_IoSettingIo2OutputCh1 ((DpId) 0x8F5) /* 2293 IoStatus */ #define DPoint_IoSettingIo2OutputCh2 ((DpId) 0x8F6) /* 2294 IoStatus */ #define DPoint_IoSettingIo2OutputCh3 ((DpId) 0x8F7) /* 2295 IoStatus */ #define DPoint_IoSettingIo2OutputCh4 ((DpId) 0x8F8) /* 2296 IoStatus */ #define DPoint_IoSettingIo2OutputCh5 ((DpId) 0x8F9) /* 2297 IoStatus */ #define DPoint_IoSettingIo2OutputCh6 ((DpId) 0x8FA) /* 2298 IoStatus */ #define DPoint_IoSettingIo2OutputCh7 ((DpId) 0x8FB) /* 2299 IoStatus */ #define DPoint_IoSettingIo2OutputCh8 ((DpId) 0x8FC) /* 2300 IoStatus */ #define DPoint_IoSettingIo1TrecCh1 ((DpId) 0x8FD) /* 2301 UI16 */ #define DPoint_IoSettingIo1TrecCh2 ((DpId) 0x8FE) /* 2302 UI16 */ #define DPoint_IoSettingIo1TrecCh3 ((DpId) 0x8FF) /* 2303 UI16 */ #define DPoint_IoSettingIo1TrecCh4 ((DpId) 0x900) /* 2304 UI16 */ #define DPoint_IoSettingIo1TrecCh5 ((DpId) 0x901) /* 2305 UI16 */ #define DPoint_IoSettingIo1TrecCh6 ((DpId) 0x902) /* 2306 UI16 */ #define DPoint_IoSettingIo1TrecCh7 ((DpId) 0x903) /* 2307 UI16 */ #define DPoint_IoSettingIo1TrecCh8 ((DpId) 0x904) /* 2308 UI16 */ #define DPoint_IoSettingIo2TrecCh1 ((DpId) 0x905) /* 2309 UI16 */ #define DPoint_IoSettingIo2TrecCh2 ((DpId) 0x906) /* 2310 UI16 */ #define DPoint_IoSettingIo2TrecCh3 ((DpId) 0x907) /* 2311 UI16 */ #define DPoint_IoSettingIo2TrecCh4 ((DpId) 0x908) /* 2312 UI16 */ #define DPoint_IoSettingIo2TrecCh5 ((DpId) 0x909) /* 2313 UI16 */ #define DPoint_IoSettingIo2TrecCh6 ((DpId) 0x90A) /* 2314 UI16 */ #define DPoint_IoSettingIo2TrecCh7 ((DpId) 0x90B) /* 2315 UI16 */ #define DPoint_IoSettingIo2TrecCh8 ((DpId) 0x90C) /* 2316 UI16 */ #define DPoint_IoSettingIo1TresCh1 ((DpId) 0x90D) /* 2317 UI16 */ #define DPoint_IoSettingIo1TresCh2 ((DpId) 0x90E) /* 2318 UI16 */ #define DPoint_IoSettingIo1TresCh3 ((DpId) 0x90F) /* 2319 UI16 */ #define DPoint_IoSettingIo1TresCh4 ((DpId) 0x910) /* 2320 UI16 */ #define DPoint_IoSettingIo1TresCh5 ((DpId) 0x911) /* 2321 UI16 */ #define DPoint_IoSettingIo1TresCh6 ((DpId) 0x912) /* 2322 UI16 */ #define DPoint_IoSettingIo1TresCh7 ((DpId) 0x913) /* 2323 UI16 */ #define DPoint_IoSettingIo1TresCh8 ((DpId) 0x914) /* 2324 UI16 */ #define DPoint_IoSettingIo2TresCh1 ((DpId) 0x915) /* 2325 UI16 */ #define DPoint_IoSettingIo2TresCh2 ((DpId) 0x916) /* 2326 UI16 */ #define DPoint_IoSettingIo2TresCh3 ((DpId) 0x917) /* 2327 UI16 */ #define DPoint_IoSettingIo2TresCh4 ((DpId) 0x918) /* 2328 UI16 */ #define DPoint_IoSettingIo2TresCh5 ((DpId) 0x919) /* 2329 UI16 */ #define DPoint_IoSettingIo2TresCh6 ((DpId) 0x91A) /* 2330 UI16 */ #define DPoint_IoSettingIo2TresCh7 ((DpId) 0x91B) /* 2331 UI16 */ #define DPoint_IoSettingIo2TresCh8 ((DpId) 0x91C) /* 2332 UI16 */ #define DPoint_IoSettingRpnStrLoc1 ((DpId) 0x91D) /* 2333 LogicStr */ #define DPoint_IoSettingRpnStrLoc2 ((DpId) 0x91E) /* 2334 LogicStr */ #define DPoint_IoSettingRpnStrLoc3 ((DpId) 0x91F) /* 2335 LogicStr */ #define DPoint_IoSettingRpnStrIo1In1 ((DpId) 0x920) /* 2336 LogicStr */ #define DPoint_IoSettingRpnStrIo1In2 ((DpId) 0x921) /* 2337 LogicStr */ #define DPoint_IoSettingRpnStrIo1In3 ((DpId) 0x922) /* 2338 LogicStr */ #define DPoint_IoSettingRpnStrIo1In4 ((DpId) 0x923) /* 2339 LogicStr */ #define DPoint_IoSettingRpnStrIo1In5 ((DpId) 0x924) /* 2340 LogicStr */ #define DPoint_IoSettingRpnStrIo1In6 ((DpId) 0x925) /* 2341 LogicStr */ #define DPoint_IoSettingRpnStrIo1In7 ((DpId) 0x926) /* 2342 LogicStr */ #define DPoint_IoSettingRpnStrIo1In8 ((DpId) 0x927) /* 2343 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out1 ((DpId) 0x928) /* 2344 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out2 ((DpId) 0x929) /* 2345 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out3 ((DpId) 0x92A) /* 2346 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out4 ((DpId) 0x92B) /* 2347 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out5 ((DpId) 0x92C) /* 2348 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out6 ((DpId) 0x92D) /* 2349 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out7 ((DpId) 0x92E) /* 2350 LogicStr */ #define DPoint_IoSettingRpnStrIo1Out8 ((DpId) 0x92F) /* 2351 LogicStr */ #define DPoint_IoSettingRpnStrIo2In1 ((DpId) 0x930) /* 2352 LogicStr */ #define DPoint_IoSettingRpnStrIo2In2 ((DpId) 0x931) /* 2353 LogicStr */ #define DPoint_IoSettingRpnStrIo2In3 ((DpId) 0x932) /* 2354 LogicStr */ #define DPoint_IoSettingRpnStrIo2In4 ((DpId) 0x933) /* 2355 LogicStr */ #define DPoint_IoSettingRpnStrIo2In5 ((DpId) 0x934) /* 2356 LogicStr */ #define DPoint_IoSettingRpnStrIo2In6 ((DpId) 0x935) /* 2357 LogicStr */ #define DPoint_IoSettingRpnStrIo2In7 ((DpId) 0x936) /* 2358 LogicStr */ #define DPoint_IoSettingRpnStrIo2In8 ((DpId) 0x937) /* 2359 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out1 ((DpId) 0x938) /* 2360 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out2 ((DpId) 0x939) /* 2361 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out3 ((DpId) 0x93A) /* 2362 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out4 ((DpId) 0x93B) /* 2363 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out5 ((DpId) 0x93C) /* 2364 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out6 ((DpId) 0x93D) /* 2365 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out7 ((DpId) 0x93E) /* 2366 LogicStr */ #define DPoint_IoSettingRpnStrIo2Out8 ((DpId) 0x93F) /* 2367 LogicStr */ #define DPoint_IoSettingILocMode ((DpId) 0x940) /* 2368 IOSettingMode */ #define DPoint_IoSettingIo1Mode ((DpId) 0x941) /* 2369 GPIOSettingMode */ #define DPoint_IoSettingIo2Mode ((DpId) 0x942) /* 2370 GPIOSettingMode */ #define DPoint_TestIo ((DpId) 0x943) /* 2371 UI8 */ #define DPoint_MeasPowerPhaseF3kVA ((DpId) 0x944) /* 2372 UI32 */ #define DPoint_MeasPowerPhaseF3kW ((DpId) 0x945) /* 2373 UI32 */ #define DPoint_MeasPowerPhaseF3kVAr ((DpId) 0x946) /* 2374 UI32 */ #define DPoint_MeasPowerPhaseFAkVA ((DpId) 0x947) /* 2375 UI32 */ #define DPoint_MeasPowerPhaseFAkW ((DpId) 0x948) /* 2376 UI32 */ #define DPoint_MeasPowerPhaseFAkVAr ((DpId) 0x949) /* 2377 UI32 */ #define DPoint_MeasPowerPhaseFBkVA ((DpId) 0x94A) /* 2378 UI32 */ #define DPoint_MeasPowerPhaseFBkW ((DpId) 0x94B) /* 2379 UI32 */ #define DPoint_MeasPowerPhaseFBkVAr ((DpId) 0x94C) /* 2380 UI32 */ #define DPoint_MeasPowerPhaseFCkVA ((DpId) 0x94D) /* 2381 UI32 */ #define DPoint_MeasPowerPhaseFCkW ((DpId) 0x94E) /* 2382 UI32 */ #define DPoint_MeasPowerPhaseFCkVAr ((DpId) 0x94F) /* 2383 UI32 */ #define DPoint_MeasPowerPhaseR3kVA ((DpId) 0x950) /* 2384 UI32 */ #define DPoint_MeasPowerPhaseR3kW ((DpId) 0x951) /* 2385 UI32 */ #define DPoint_MeasPowerPhaseR3kVAr ((DpId) 0x952) /* 2386 UI32 */ #define DPoint_MeasPowerPhaseRAkVA ((DpId) 0x953) /* 2387 UI32 */ #define DPoint_MeasPowerPhaseRAkW ((DpId) 0x954) /* 2388 UI32 */ #define DPoint_MeasPowerPhaseRAkVAr ((DpId) 0x955) /* 2389 UI32 */ #define DPoint_MeasPowerPhaseRBkVA ((DpId) 0x956) /* 2390 UI32 */ #define DPoint_MeasPowerPhaseRBkW ((DpId) 0x957) /* 2391 UI32 */ #define DPoint_MeasPowerPhaseRBkVAr ((DpId) 0x958) /* 2392 UI32 */ #define DPoint_MeasPowerPhaseRCkVA ((DpId) 0x959) /* 2393 UI32 */ #define DPoint_MeasPowerPhaseRCkW ((DpId) 0x95A) /* 2394 UI32 */ #define DPoint_MeasPowerPhaseRCkVAr ((DpId) 0x95B) /* 2395 UI32 */ #define DPoint_ProtOcDir ((DpId) 0x95C) /* 2396 ProtDirOut */ #define DPoint_ProtEfDir ((DpId) 0x95D) /* 2397 ProtDirOut */ #define DPoint_ProtSefDir ((DpId) 0x95E) /* 2398 ProtDirOut */ #define DPoint_HrmIb5th ((DpId) 0x95F) /* 2399 UI32 */ #define DPoint_MeasLoadProfEnrg3FkVAh ((DpId) 0x960) /* 2400 UI32 */ #define DPoint_MeasLoadProfEnrg3FkVArh ((DpId) 0x961) /* 2401 UI32 */ #define DPoint_MeasLoadProfEnrg3FkWh ((DpId) 0x962) /* 2402 UI32 */ #define DPoint_MeasLoadProfEnrgAFkVAh ((DpId) 0x963) /* 2403 UI32 */ #define DPoint_MeasLoadProfEnrgAFkVArh ((DpId) 0x964) /* 2404 UI32 */ #define DPoint_MeasLoadProfEnrgAFkWh ((DpId) 0x965) /* 2405 UI32 */ #define DPoint_MeasLoadProfEnrgBFkVAh ((DpId) 0x966) /* 2406 UI32 */ #define DPoint_MeasLoadProfEnrgBFkVArh ((DpId) 0x967) /* 2407 UI32 */ #define DPoint_MeasLoadProfEnrgBFkWh ((DpId) 0x968) /* 2408 UI32 */ #define DPoint_MeasLoadProfEnrgCFkVAh ((DpId) 0x969) /* 2409 UI32 */ #define DPoint_MeasLoadProfEnrgCFkVArh ((DpId) 0x96A) /* 2410 UI32 */ #define DPoint_MeasLoadProfEnrgCFkWh ((DpId) 0x96B) /* 2411 UI32 */ #define DPoint_MeasLoadProfEnrg3RkVAh ((DpId) 0x96C) /* 2412 UI32 */ #define DPoint_MeasLoadProfEnrg3RkVArh ((DpId) 0x96D) /* 2413 UI32 */ #define DPoint_MeasLoadProfEnrg3RkWh ((DpId) 0x96E) /* 2414 UI32 */ #define DPoint_MeasLoadProfEnrgARkVAh ((DpId) 0x96F) /* 2415 UI32 */ #define DPoint_MeasLoadProfEnrgARkVArh ((DpId) 0x970) /* 2416 UI32 */ #define DPoint_MeasLoadProfEnrgARkWh ((DpId) 0x971) /* 2417 UI32 */ #define DPoint_MeasLoadProfEnrgBRkVAh ((DpId) 0x972) /* 2418 UI32 */ #define DPoint_MeasLoadProfEnrgBRkVArh ((DpId) 0x973) /* 2419 UI32 */ #define DPoint_MeasLoadProfEnrgBRkWh ((DpId) 0x974) /* 2420 UI32 */ #define DPoint_MeasLoadProfEnrgCRkVAh ((DpId) 0x975) /* 2421 UI32 */ #define DPoint_MeasLoadProfEnrgCRkVArh ((DpId) 0x976) /* 2422 UI32 */ #define DPoint_MeasLoadProfEnrgCRkWh ((DpId) 0x977) /* 2423 UI32 */ #define DPoint_FaultProfileDataAddr ((DpId) 0x97A) /* 2426 UI32 */ #define DPoint_dbSaveFName ((DpId) 0x97B) /* 2427 Str */ #define DPoint_dbConfigFName ((DpId) 0x97C) /* 2428 Str */ #define DPoint_dbFileCmd ((DpId) 0x97D) /* 2429 DbFileCommand */ #define DPoint_HrmIc5th ((DpId) 0x97E) /* 2430 UI32 */ #define DPoint_HrmIn5th ((DpId) 0x97F) /* 2431 UI32 */ #define DPoint_HrmUa5th ((DpId) 0x980) /* 2432 UI32 */ #define DPoint_HrmUb5th ((DpId) 0x981) /* 2433 UI32 */ #define DPoint_protLifeTickCnt ((DpId) 0x986) /* 2438 UI32 */ #define DPoint_HrmUc5th ((DpId) 0x987) /* 2439 UI32 */ #define DPoint_ScadaDnp3GenLinkSlaveAddr ((DpId) 0x988) /* 2440 UI32 */ #define DPoint_ScadaDnp3GenLinkConfirmationMode ((DpId) 0x989) /* 2441 UI8 */ #define DPoint_ScadaDnp3GenLinkConfirmationTimeout ((DpId) 0x98A) /* 2442 UI32 */ #define DPoint_ScadaDnp3GenLinkMaxRetries ((DpId) 0x98B) /* 2443 UI32 */ #define DPoint_ScadaDnp3GenLinkMaxTransFrameSize ((DpId) 0x98C) /* 2444 UI32 */ #define DPoint_ScadaDnp3GenLinkValidMasterAddr ((DpId) 0x98D) /* 2445 Bool */ #define DPoint_ScadaDnp3GenAppSBOTimeout ((DpId) 0x98E) /* 2446 UI32 */ #define DPoint_ScadaDnp3GenAppConfirmationMode ((DpId) 0x98F) /* 2447 UI8 */ #define DPoint_ScadaDnp3GenAppConfirmationTimeout ((DpId) 0x990) /* 2448 UI32 */ #define DPoint_ScadaDnp3GenAppNeedTimeDelay ((DpId) 0x991) /* 2449 UI32 */ #define DPoint_ScadaDnp3GenAppColdRestartDelay ((DpId) 0x992) /* 2450 UI32 */ #define DPoint_ScadaDnp3GenAppWarmRestartDelay ((DpId) 0x993) /* 2451 UI32 */ #define DPoint_ScadaDnp3GenUnsolicitedResponse ((DpId) 0x994) /* 2452 EnDis */ #define DPoint_ScadaDnp3GenMasterAddr ((DpId) 0x995) /* 2453 UI32 */ #define DPoint_ScadaDnp3GenRetryDelay ((DpId) 0x996) /* 2454 UI32 */ #define DPoint_ScadaDnp3GenRetries ((DpId) 0x997) /* 2455 UI32 */ #define DPoint_ScadaDnp3GenOfflineInterval ((DpId) 0x998) /* 2456 UI32 */ #define DPoint_ScadaDnp3GenClass1 ((DpId) 0x999) /* 2457 UI8 */ #define DPoint_ScadaDnp3GenClass1Events ((DpId) 0x99A) /* 2458 UI32 */ #define DPoint_ScadaDnp3GenClass1Delays ((DpId) 0x99B) /* 2459 UI32 */ #define DPoint_ScadaDnp3GenClass2 ((DpId) 0x99C) /* 2460 UI8 */ #define DPoint_ScadaDnp3GenClass2Events ((DpId) 0x99D) /* 2461 UI32 */ #define DPoint_ScadaDnp3GenClass2Delays ((DpId) 0x99E) /* 2462 UI32 */ #define DPoint_ScadaDnp3GenClass3 ((DpId) 0x99F) /* 2463 UI8 */ #define DPoint_ScadaDnp3GenClass3Events ((DpId) 0x9A0) /* 2464 UI32 */ #define DPoint_ScadaDnp3GenClass3Delays ((DpId) 0x9A1) /* 2465 UI32 */ #define DPoint_ScadaDNP3BinaryInputs ((DpId) 0x9A2) /* 2466 ScadaDNP3BinaryInputs */ #define DPoint_ScadaDNP3BinaryOutputs ((DpId) 0x9A3) /* 2467 ScadaDNP3BinaryOutputs */ #define DPoint_ScadaDNP3BinaryCounters ((DpId) 0x9A4) /* 2468 ScadaDNP3BinaryCounters */ #define DPoint_ScadaDNP3AnalogInputs ((DpId) 0x9A5) /* 2469 ScadaDNP3AnalogInputs */ #define DPoint_ScadaDNP3OctetStrings ((DpId) 0x9A6) /* 2470 ScadaDNP3OctetStrings */ #define DPoint_ScadaDNP3EnableProtocol ((DpId) 0x9A7) /* 2471 EnDis */ #define DPoint_ScadaDNP3ChannelPort ((DpId) 0x9A8) /* 2472 CommsPort */ #define DPoint_ScadaCMSEnableProtocol ((DpId) 0x9A9) /* 2473 EnDis */ #define DPoint_ScadaCMSUseDNP3Trans ((DpId) 0x9AA) /* 2474 EnDis */ #define DPoint_ScadaCMSChannelPort ((DpId) 0x9AB) /* 2475 CommsPort */ #define DPoint_ScadaAnlogInputEvReport ((DpId) 0x9AC) /* 2476 UI8 */ #define DPoint_CanSimTripRequestFailCode ((DpId) 0x9AD) /* 2477 UI32 */ #define DPoint_CanSimTripRetry ((DpId) 0x9AE) /* 2478 UI8 */ #define DPoint_CanSimOperationFault ((DpId) 0x9AF) /* 2479 UI32 */ #define DPoint_CanSimCloseRequestFailCode ((DpId) 0x9B0) /* 2480 UI32 */ #define DPoint_CanSimCloseRetry ((DpId) 0x9B1) /* 2481 UI8 */ #define DPoint_HrmIa6th ((DpId) 0x9B3) /* 2483 UI32 */ #define DPoint_ProtStatusState ((DpId) 0x9B6) /* 2486 UI32 */ #define DPoint_IdRelayFpgaVer ((DpId) 0x9BB) /* 2491 Str */ #define DPoint_CmsShutdownRequest ((DpId) 0x9BC) /* 2492 UI8 */ #define DPoint_HrmIb6th ((DpId) 0x9BD) /* 2493 UI32 */ #define DPoint_CanSimOSMDisableActuatorTest ((DpId) 0x9C3) /* 2499 UI32 */ #define DPoint_resetRelayCtr ((DpId) 0x9C4) /* 2500 UI8 */ #define DPoint_HrmIc6th ((DpId) 0x9C5) /* 2501 UI32 */ #define DPoint_HrmIn6th ((DpId) 0x9C6) /* 2502 UI32 */ #define DPoint_HrmUa6th ((DpId) 0x9C7) /* 2503 UI32 */ #define DPoint_HrmUb6th ((DpId) 0x9C8) /* 2504 UI32 */ #define DPoint_SigOSMActuatorFaultStatusQ503Failed ((DpId) 0x9CA) /* 2506 Signal */ #define DPoint_ClearEventLogDir ((DpId) 0x9CB) /* 2507 Bool */ #define DPoint_ClearCloseOpenLogDir ((DpId) 0x9CC) /* 2508 Bool */ #define DPoint_ClearFaultProfileDir ((DpId) 0x9CD) /* 2509 Bool */ #define DPoint_ClearLoadProfileDir ((DpId) 0x9CE) /* 2510 Bool */ #define DPoint_ClearChangeLogDir ((DpId) 0x9CF) /* 2511 Bool */ #define DPoint_UpsRestartTime ((DpId) 0x9D0) /* 2512 TimeStamp */ #define DPoint_DbugDbServer ((DpId) 0x9D1) /* 2513 UI32 */ #define DPoint_CmsOpMode ((DpId) 0x9D2) /* 2514 LocalRemote */ #define DPoint_CmsAuxOpMode ((DpId) 0x9D3) /* 2515 LocalRemote */ #define DPoint_CmsAux2OpMode ((DpId) 0x9D4) /* 2516 LocalRemote */ #define DPoint_IoOpMode ((DpId) 0x9D5) /* 2517 LocalRemote */ #define DPoint_HmiOpMode ((DpId) 0x9D6) /* 2518 LocalRemote */ #define DPoint_DEPRECATED_HmiServerLifeTickCnt ((DpId) 0x9D7) /* 2519 UI32 */ #define DPoint_DEPRECATED_HmiPanelLifeTickCnt ((DpId) 0x9D8) /* 2520 UI32 */ #define DPoint_CanSimSIMCTaCalCoefHi ((DpId) 0x9D9) /* 2521 UI16 */ #define DPoint_CanSimSIMCTbCalCoefHi ((DpId) 0x9DA) /* 2522 UI16 */ #define DPoint_CanSimSIMCTcCalCoefHi ((DpId) 0x9DB) /* 2523 UI16 */ #define DPoint_SwitchDefaultCoefCUa ((DpId) 0x9DC) /* 2524 UI16 */ #define DPoint_SwitchDefaultCoefCUb ((DpId) 0x9DD) /* 2525 UI16 */ #define DPoint_SwitchDefaultCoefCUc ((DpId) 0x9DE) /* 2526 UI16 */ #define DPoint_SwitchDefaultCoefCUr ((DpId) 0x9DF) /* 2527 UI16 */ #define DPoint_SwitchDefaultCoefCUs ((DpId) 0x9E0) /* 2528 UI16 */ #define DPoint_SwitchDefaultCoefCUt ((DpId) 0x9E1) /* 2529 UI16 */ #define DPoint_SwitchDefaultCoefCIa ((DpId) 0x9E2) /* 2530 UI16 */ #define DPoint_SwitchDefaultCoefCIb ((DpId) 0x9E3) /* 2531 UI16 */ #define DPoint_SwitchDefaultCoefCIc ((DpId) 0x9E4) /* 2532 UI16 */ #define DPoint_SwitchDefaultCoefCIn ((DpId) 0x9E5) /* 2533 UI16 */ #define DPoint_CanSimDefaultSIMCTaCalCoef ((DpId) 0x9E6) /* 2534 UI16 */ #define DPoint_CanSimDefaultSIMCTbCalCoef ((DpId) 0x9E7) /* 2535 UI16 */ #define DPoint_CanSimDefaultSIMCTcCalCoef ((DpId) 0x9E8) /* 2536 UI16 */ #define DPoint_CanSimDefaultSIMCTnCalCoef ((DpId) 0x9E9) /* 2537 UI16 */ #define DPoint_CanSimDefaultSIMCTTempCompCoef ((DpId) 0x9EA) /* 2538 UI16 */ #define DPoint_CanSimDefaultSIMCVTaCalCoef ((DpId) 0x9EB) /* 2539 UI16 */ #define DPoint_CanSimDefaultSIMCVTbCalCoef ((DpId) 0x9EC) /* 2540 UI16 */ #define DPoint_CanSimDefaultSIMCVTcCalCoef ((DpId) 0x9ED) /* 2541 UI16 */ #define DPoint_CanSimDefaultSIMCVTrCalCoef ((DpId) 0x9EE) /* 2542 UI16 */ #define DPoint_CanSimDefaultSIMCVTsCalCoef ((DpId) 0x9EF) /* 2543 UI16 */ #define DPoint_CanSimDefaultSIMCVTtCalCoef ((DpId) 0x9F0) /* 2544 UI16 */ #define DPoint_CanSimSIMDefaultCVTTempCompCoef ((DpId) 0x9F1) /* 2545 UI16 */ #define DPoint_CanSimDefaultSIMCTaCalCoefHi ((DpId) 0x9F2) /* 2546 UI16 */ #define DPoint_CanSimDefaultSIMCTbCalCoefHi ((DpId) 0x9F3) /* 2547 UI16 */ #define DPoint_CanSimDefaultSIMCTcCalCoefHi ((DpId) 0x9F4) /* 2548 UI16 */ #define DPoint_FpgaDefaultCoefCUa ((DpId) 0x9F5) /* 2549 UI16 */ #define DPoint_FpgaDefaultCoefCUb ((DpId) 0x9F6) /* 2550 UI16 */ #define DPoint_FpgaDefaultCoefCUc ((DpId) 0x9F7) /* 2551 UI16 */ #define DPoint_FpgaDefaultCoefCUr ((DpId) 0x9F8) /* 2552 UI16 */ #define DPoint_FpgaDefaultCoefCUs ((DpId) 0x9F9) /* 2553 UI16 */ #define DPoint_FpgaDefaultCoefCUt ((DpId) 0x9FA) /* 2554 UI16 */ #define DPoint_FpgaDefaultCoefCIa ((DpId) 0x9FB) /* 2555 UI16 */ #define DPoint_FpgaDefaultCoefCIb ((DpId) 0x9FC) /* 2556 UI16 */ #define DPoint_FpgaDefaultCoefCIc ((DpId) 0x9FD) /* 2557 UI16 */ #define DPoint_FpgaDefaultCoefCIaHi ((DpId) 0x9FE) /* 2558 UI16 */ #define DPoint_FpgaDefaultCoefCIbHi ((DpId) 0x9FF) /* 2559 UI16 */ #define DPoint_FpgaDefaultCoefCIcHi ((DpId) 0xA00) /* 2560 UI16 */ #define DPoint_FpgaDefaultCoefCIn ((DpId) 0xA01) /* 2561 UI16 */ #define DPoint_SaveSimCalibration ((DpId) 0xA02) /* 2562 UI8 */ #define DPoint_StartSimCalibration ((DpId) 0xA03) /* 2563 UI8 */ #define DPoint_SimSwitchStatus ((DpId) 0xA04) /* 2564 SwState */ #define DPoint_CanSimRdData ((DpId) 0xA0A) /* 2570 SimImageBytes */ #define DPoint_CanSimFirmwareTypeRunning ((DpId) 0xA0C) /* 2572 UI8 */ #define DPoint_CanSimRequestMoreData ((DpId) 0xA0D) /* 2573 UI8 */ #define DPoint_CanSimFirmwareVerifyStatus ((DpId) 0xA0F) /* 2575 UI8 */ #define DPoint_CanSimResetExtLoad ((DpId) 0xA11) /* 2577 UI8 */ #define DPoint_CanSimBatteryCapacityAmpHrs ((DpId) 0xA12) /* 2578 UI16 */ #define DPoint_CanSimPower ((DpId) 0xA13) /* 2579 UI32 */ #define DPoint_HmiResourceFile ((DpId) 0xA15) /* 2581 Str */ #define DPoint_StartSwgCalibration ((DpId) 0xA18) /* 2584 UI8 */ #define DPoint_HmiPasswords ((DpId) 0xA19) /* 2585 HmiPassword */ #define DPoint_IabcRMS_trip ((DpId) 0xA1B) /* 2587 TripCurrent */ #define DPoint_OC_SP1 ((DpId) 0xA1C) /* 2588 UI32 */ #define DPoint_OC_SP2 ((DpId) 0xA1D) /* 2589 UI32 */ #define DPoint_OC_SP3 ((DpId) 0xA1E) /* 2590 UI32 */ #define DPoint_KA_SP1 ((DpId) 0xA1F) /* 2591 UI32 */ #define DPoint_KA_SP2 ((DpId) 0xA20) /* 2592 UI32 */ #define DPoint_KA_SP3 ((DpId) 0xA21) /* 2593 UI32 */ #define DPoint_TripCnta ((DpId) 0xA22) /* 2594 UI32 */ #define DPoint_TripCntb ((DpId) 0xA23) /* 2595 UI32 */ #define DPoint_TripCntc ((DpId) 0xA24) /* 2596 UI32 */ #define DPoint_BreakerWeara ((DpId) 0xA25) /* 2597 UI32 */ #define DPoint_BreakerWearb ((DpId) 0xA26) /* 2598 UI32 */ #define DPoint_BreakerWearc ((DpId) 0xA27) /* 2599 UI32 */ #define DPoint_IabcRMS ((DpId) 0xA28) /* 2600 TripCurrent */ #define DPoint_RelayWdResponseTime ((DpId) 0xA2B) /* 2603 UI32 */ #define DPoint_ChEvLoadProfDef ((DpId) 0xA2D) /* 2605 ChangeEvent */ #define DPoint_SimulSwitchPositionStatus ((DpId) 0xA2E) /* 2606 UI8 */ #define DPoint_ActiveSwitchPositionStatus ((DpId) 0xA2F) /* 2607 UI32 */ #define DPoint_RelayCTaCalCoef ((DpId) 0xA30) /* 2608 I32 */ #define DPoint_RelayCTbCalCoef ((DpId) 0xA31) /* 2609 I32 */ #define DPoint_RelayCTcCalCoef ((DpId) 0xA32) /* 2610 I32 */ #define DPoint_RelayCTaCalCoefHi ((DpId) 0xA33) /* 2611 I32 */ #define DPoint_RelayCTbCalCoefHi ((DpId) 0xA34) /* 2612 I32 */ #define DPoint_RelayCTcCalCoefHi ((DpId) 0xA35) /* 2613 I32 */ #define DPoint_RelayCTnCalCoef ((DpId) 0xA36) /* 2614 I32 */ #define DPoint_RelayCVTaCalCoef ((DpId) 0xA37) /* 2615 I32 */ #define DPoint_RelayCVTbCalCoef ((DpId) 0xA38) /* 2616 I32 */ #define DPoint_RelayCVTcCalCoef ((DpId) 0xA39) /* 2617 I32 */ #define DPoint_RelayCVTrCalCoef ((DpId) 0xA3A) /* 2618 I32 */ #define DPoint_RelayCVTsCalCoef ((DpId) 0xA3B) /* 2619 I32 */ #define DPoint_RelayCVTtCalCoef ((DpId) 0xA3C) /* 2620 I32 */ #define DPoint_StartRelayCalibration ((DpId) 0xA3D) /* 2621 UI8 */ #define DPoint_scadaPollPeriod ((DpId) 0xA3E) /* 2622 UI32 */ #define DPoint_scadaPollCount ((DpId) 0xA3F) /* 2623 UI32 */ #define DPoint_HrmUc6th ((DpId) 0xA40) /* 2624 UI32 */ #define DPoint_HrmIa7th ((DpId) 0xA41) /* 2625 UI32 */ #define DPoint_HrmIb7th ((DpId) 0xA42) /* 2626 UI32 */ #define DPoint_HrmIc7th ((DpId) 0xA43) /* 2627 UI32 */ #define DPoint_HrmIn7th ((DpId) 0xA44) /* 2628 UI32 */ #define DPoint_HrmUa7th ((DpId) 0xA45) /* 2629 UI32 */ #define DPoint_HrmUb7th ((DpId) 0xA46) /* 2630 UI32 */ #define DPoint_HrmUc7th ((DpId) 0xA47) /* 2631 UI32 */ #define DPoint_HrmIa8th ((DpId) 0xA48) /* 2632 UI32 */ #define DPoint_HrmIb8th ((DpId) 0xA49) /* 2633 UI32 */ #define DPoint_HrmIc8th ((DpId) 0xA4A) /* 2634 UI32 */ #define DPoint_HrmIn8th ((DpId) 0xA4B) /* 2635 UI32 */ #define DPoint_HrmUa8th ((DpId) 0xA4C) /* 2636 UI32 */ #define DPoint_HrmUb8th ((DpId) 0xA4D) /* 2637 UI32 */ #define DPoint_HrmUc8th ((DpId) 0xA4E) /* 2638 UI32 */ #define DPoint_HrmIa9th ((DpId) 0xA4F) /* 2639 UI32 */ #define DPoint_HrmIb9th ((DpId) 0xA50) /* 2640 UI32 */ #define DPoint_HrmIc9th ((DpId) 0xA51) /* 2641 UI32 */ #define DPoint_HrmIn9th ((DpId) 0xA52) /* 2642 UI32 */ #define DPoint_HrmUa9th ((DpId) 0xA53) /* 2643 UI32 */ #define DPoint_HrmUb9th ((DpId) 0xA54) /* 2644 UI32 */ #define DPoint_HrmUc9th ((DpId) 0xA55) /* 2645 UI32 */ #define DPoint_HrmIa10th ((DpId) 0xA56) /* 2646 UI32 */ #define DPoint_HrmIb10th ((DpId) 0xA57) /* 2647 UI32 */ #define DPoint_HrmIc10th ((DpId) 0xA58) /* 2648 UI32 */ #define DPoint_HrmIn10th ((DpId) 0xA59) /* 2649 UI32 */ #define DPoint_HrmUa10th ((DpId) 0xA5A) /* 2650 UI32 */ #define DPoint_HrmUb10th ((DpId) 0xA5B) /* 2651 UI32 */ #define DPoint_HrmUc10th ((DpId) 0xA5C) /* 2652 UI32 */ #define DPoint_HrmIa11th ((DpId) 0xA5D) /* 2653 UI32 */ #define DPoint_HrmIb11th ((DpId) 0xA5E) /* 2654 UI32 */ #define DPoint_HrmIc11th ((DpId) 0xA5F) /* 2655 UI32 */ #define DPoint_HrmIn11th ((DpId) 0xA60) /* 2656 UI32 */ #define DPoint_HrmUa11th ((DpId) 0xA61) /* 2657 UI32 */ #define DPoint_HrmUb11th ((DpId) 0xA62) /* 2658 UI32 */ #define DPoint_HrmUc11th ((DpId) 0xA63) /* 2659 UI32 */ #define DPoint_HrmIa12th ((DpId) 0xA64) /* 2660 UI32 */ #define DPoint_HrmIb12th ((DpId) 0xA65) /* 2661 UI32 */ #define DPoint_HrmIc12th ((DpId) 0xA66) /* 2662 UI32 */ #define DPoint_HrmIn12th ((DpId) 0xA67) /* 2663 UI32 */ #define DPoint_HrmUa12th ((DpId) 0xA68) /* 2664 UI32 */ #define DPoint_HrmUb12th ((DpId) 0xA69) /* 2665 UI32 */ #define DPoint_HrmUc12th ((DpId) 0xA6A) /* 2666 UI32 */ #define DPoint_HrmIa13th ((DpId) 0xA6B) /* 2667 UI32 */ #define DPoint_HrmIb13th ((DpId) 0xA6C) /* 2668 UI32 */ #define DPoint_HrmIc13th ((DpId) 0xA6D) /* 2669 UI32 */ #define DPoint_HrmIn13th ((DpId) 0xA6E) /* 2670 UI32 */ #define DPoint_HrmUa13th ((DpId) 0xA6F) /* 2671 UI32 */ #define DPoint_HrmUb13th ((DpId) 0xA70) /* 2672 UI32 */ #define DPoint_HrmUc13th ((DpId) 0xA71) /* 2673 UI32 */ #define DPoint_HrmIa14th ((DpId) 0xA72) /* 2674 UI32 */ #define DPoint_HrmIb14th ((DpId) 0xA73) /* 2675 UI32 */ #define DPoint_HrmIc14th ((DpId) 0xA74) /* 2676 UI32 */ #define DPoint_HrmIn14th ((DpId) 0xA75) /* 2677 UI32 */ #define DPoint_HrmUa14th ((DpId) 0xA76) /* 2678 UI32 */ #define DPoint_HrmUb14th ((DpId) 0xA77) /* 2679 UI32 */ #define DPoint_HrmUc14th ((DpId) 0xA78) /* 2680 UI32 */ #define DPoint_HrmIa15th ((DpId) 0xA79) /* 2681 UI32 */ #define DPoint_HrmIb15th ((DpId) 0xA7A) /* 2682 UI32 */ #define DPoint_HrmIc15th ((DpId) 0xA7B) /* 2683 UI32 */ #define DPoint_HrmIn15th ((DpId) 0xA7C) /* 2684 UI32 */ #define DPoint_HrmUa15th ((DpId) 0xA7D) /* 2685 UI32 */ #define DPoint_HrmUb15th ((DpId) 0xA7E) /* 2686 UI32 */ #define DPoint_HrmUc15th ((DpId) 0xA7F) /* 2687 UI32 */ #define DPoint_ConfirmUpdateType ((DpId) 0xA80) /* 2688 UI8 */ #define DPoint_SigListWarning ((DpId) 0xB4C) /* 2892 SignalList */ #define DPoint_SigListMalfunction ((DpId) 0xB4D) /* 2893 SignalList */ #define DPoint_Rs232DteConfigType ((DpId) 0xB4E) /* 2894 SerialPortConfigType */ #define DPoint_USBAConfigType ((DpId) 0xB4F) /* 2895 UsbPortConfigType */ #define DPoint_USBBConfigType ((DpId) 0xB50) /* 2896 UsbPortConfigType */ #define DPoint_USBCConfigType ((DpId) 0xB51) /* 2897 UsbPortConfigType */ #define DPoint_Dnp3DataflowUnit ((DpId) 0xB52) /* 2898 DataflowUnit */ #define DPoint_Dnp3RxCnt ((DpId) 0xB53) /* 2899 UI32 */ #define DPoint_Dnp3TxCnt ((DpId) 0xB54) /* 2900 UI32 */ #define DPoint_SigPickupPhA ((DpId) 0xE75) /* 3701 Signal */ #define DPoint_SigPickupPhB ((DpId) 0xE76) /* 3702 Signal */ #define DPoint_SigPickupPhC ((DpId) 0xE77) /* 3703 Signal */ #define DPoint_SigPickupPhN ((DpId) 0xE78) /* 3704 Signal */ #define DPoint_SigMalfComms ((DpId) 0xE79) /* 3705 Signal */ #define DPoint_SigMalfPanelComms ((DpId) 0xE7A) /* 3706 Signal */ #define DPoint_SigMalfRc10 ((DpId) 0xE7B) /* 3707 Signal */ #define DPoint_SigMalfModule ((DpId) 0xE7C) /* 3708 Signal */ #define DPoint_SigMalfPanelModule ((DpId) 0xE7D) /* 3709 Signal */ #define DPoint_SigMalfOsm ((DpId) 0xE7E) /* 3710 Signal */ #define DPoint_SigMalfCanBus ((DpId) 0xE7F) /* 3711 Signal */ #define DPoint_SigOpenPhA ((DpId) 0xE80) /* 3712 Signal */ #define DPoint_SigOpenPhB ((DpId) 0xE81) /* 3713 Signal */ #define DPoint_SigOpenPhC ((DpId) 0xE82) /* 3714 Signal */ #define DPoint_SigOpenPhN ((DpId) 0xE83) /* 3715 Signal */ #define DPoint_SigOpenABRAutoOpen ((DpId) 0xE84) /* 3716 Signal */ #define DPoint_SigOpenUndef ((DpId) 0xE87) /* 3719 Signal */ #define DPoint_SigAlarmPhA ((DpId) 0xE88) /* 3720 Signal */ #define DPoint_SigAlarmPhB ((DpId) 0xE89) /* 3721 Signal */ #define DPoint_SigAlarmPhC ((DpId) 0xE8A) /* 3722 Signal */ #define DPoint_SigAlarmPhN ((DpId) 0xE8B) /* 3723 Signal */ #define DPoint_SigClosedABRAutoOpen ((DpId) 0xE8C) /* 3724 Signal */ #define DPoint_SmpTicks ((DpId) 0xE8E) /* 3726 SmpTick */ #define DPoint_SignalBitFieldOpen ((DpId) 0xE8F) /* 3727 SignalBitField */ #define DPoint_SignalBitFieldClose ((DpId) 0xE90) /* 3728 SignalBitField */ #define DPoint_G1_SerialDTRStatus ((DpId) 0xE91) /* 3729 CommsSerialPinStatus */ #define DPoint_G1_SerialDSRStatus ((DpId) 0xE92) /* 3730 CommsSerialPinStatus */ #define DPoint_G1_SerialCDStatus ((DpId) 0xE93) /* 3731 CommsSerialPinStatus */ #define DPoint_G1_SerialRTSStatus ((DpId) 0xE94) /* 3732 CommsSerialPinStatus */ #define DPoint_G1_SerialCTSStatus ((DpId) 0xE95) /* 3733 CommsSerialPinStatus */ #define DPoint_G1_SerialRIStatus ((DpId) 0xE96) /* 3734 CommsSerialPinStatus */ #define DPoint_G1_ConnectionStatus ((DpId) 0xE97) /* 3735 CommsConnectionStatus */ #define DPoint_G1_BytesReceivedStatus ((DpId) 0xE98) /* 3736 UI32 */ #define DPoint_G1_BytesTransmittedStatus ((DpId) 0xE99) /* 3737 UI32 */ #define DPoint_G1_PacketsReceivedStatus ((DpId) 0xE9A) /* 3738 UI32 */ #define DPoint_G1_PacketsTransmittedStatus ((DpId) 0xE9B) /* 3739 UI32 */ #define DPoint_G1_ErrorPacketsReceivedStatus ((DpId) 0xE9C) /* 3740 UI32 */ #define DPoint_G1_ErrorPacketsTransmittedStatus ((DpId) 0xE9D) /* 3741 UI32 */ #define DPoint_G1_IpAddrStatus ((DpId) 0xE9E) /* 3742 IpAddr */ #define DPoint_G1_SubnetMaskStatus ((DpId) 0xE9F) /* 3743 IpAddr */ #define DPoint_G1_DefaultGatewayStatus ((DpId) 0xEA0) /* 3744 IpAddr */ #define DPoint_G1_PortDetectedType ((DpId) 0xEA1) /* 3745 CommsPortDetectedType */ #define DPoint_G1_PortDetectedName ((DpId) 0xEA2) /* 3746 Str */ #define DPoint_G1_SerialTxTestStatus ((DpId) 0xEA3) /* 3747 OnOff */ #define DPoint_G1_PacketsReceivedStatusIPv6 ((DpId) 0xEA4) /* 3748 UI32 */ #define DPoint_G1_PacketsTransmittedStatusIPv6 ((DpId) 0xEA5) /* 3749 UI32 */ #define DPoint_G1_ErrorPacketsReceivedStatusIPv6 ((DpId) 0xEA6) /* 3750 UI32 */ #define DPoint_G1_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0xEA7) /* 3751 UI32 */ #define DPoint_G1_Ipv6AddrStatus ((DpId) 0xEA8) /* 3752 Ipv6Addr */ #define DPoint_G1_LanPrefixLengthStatus ((DpId) 0xEA9) /* 3753 UI8 */ #define DPoint_G1_Ipv6DefaultGatewayStatus ((DpId) 0xEAA) /* 3754 Ipv6Addr */ #define DPoint_G1_IpVersionStatus ((DpId) 0xEAB) /* 3755 IpVersion */ #define DPoint_G2_SerialDTRStatus ((DpId) 0xEE1) /* 3809 CommsSerialPinStatus */ #define DPoint_G2_SerialDSRStatus ((DpId) 0xEE2) /* 3810 CommsSerialPinStatus */ #define DPoint_G2_SerialCDStatus ((DpId) 0xEE3) /* 3811 CommsSerialPinStatus */ #define DPoint_G2_SerialRTSStatus ((DpId) 0xEE4) /* 3812 CommsSerialPinStatus */ #define DPoint_G2_SerialCTSStatus ((DpId) 0xEE5) /* 3813 CommsSerialPinStatus */ #define DPoint_G2_SerialRIStatus ((DpId) 0xEE6) /* 3814 CommsSerialPinStatus */ #define DPoint_G2_ConnectionStatus ((DpId) 0xEE7) /* 3815 CommsConnectionStatus */ #define DPoint_G2_BytesReceivedStatus ((DpId) 0xEE8) /* 3816 UI32 */ #define DPoint_G2_BytesTransmittedStatus ((DpId) 0xEE9) /* 3817 UI32 */ #define DPoint_G2_PacketsReceivedStatus ((DpId) 0xEEA) /* 3818 UI32 */ #define DPoint_G2_PacketsTransmittedStatus ((DpId) 0xEEB) /* 3819 UI32 */ #define DPoint_G2_ErrorPacketsReceivedStatus ((DpId) 0xEEC) /* 3820 UI32 */ #define DPoint_G2_ErrorPacketsTransmittedStatus ((DpId) 0xEED) /* 3821 UI32 */ #define DPoint_G2_IpAddrStatus ((DpId) 0xEEE) /* 3822 IpAddr */ #define DPoint_G2_SubnetMaskStatus ((DpId) 0xEEF) /* 3823 IpAddr */ #define DPoint_G2_DefaultGatewayStatus ((DpId) 0xEF0) /* 3824 IpAddr */ #define DPoint_G2_PortDetectedType ((DpId) 0xEF1) /* 3825 CommsPortDetectedType */ #define DPoint_G2_PortDetectedName ((DpId) 0xEF2) /* 3826 Str */ #define DPoint_G2_SerialTxTestStatus ((DpId) 0xEF3) /* 3827 OnOff */ #define DPoint_G2_PacketsReceivedStatusIPv6 ((DpId) 0xEF4) /* 3828 UI32 */ #define DPoint_G2_PacketsTransmittedStatusIPv6 ((DpId) 0xEF5) /* 3829 UI32 */ #define DPoint_G2_ErrorPacketsReceivedStatusIPv6 ((DpId) 0xEF6) /* 3830 UI32 */ #define DPoint_G2_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0xEF7) /* 3831 UI32 */ #define DPoint_G2_Ipv6AddrStatus ((DpId) 0xEF8) /* 3832 Ipv6Addr */ #define DPoint_G2_LanPrefixLengthStatus ((DpId) 0xEF9) /* 3833 UI8 */ #define DPoint_G2_Ipv6DefaultGatewayStatus ((DpId) 0xEFA) /* 3834 Ipv6Addr */ #define DPoint_G2_IpVersionStatus ((DpId) 0xEFB) /* 3835 IpVersion */ #define DPoint_G3_SerialDTRStatus ((DpId) 0xF31) /* 3889 CommsSerialPinStatus */ #define DPoint_G3_SerialDSRStatus ((DpId) 0xF32) /* 3890 CommsSerialPinStatus */ #define DPoint_G3_SerialCDStatus ((DpId) 0xF33) /* 3891 CommsSerialPinStatus */ #define DPoint_G3_SerialRTSStatus ((DpId) 0xF34) /* 3892 CommsSerialPinStatus */ #define DPoint_G3_SerialCTSStatus ((DpId) 0xF35) /* 3893 CommsSerialPinStatus */ #define DPoint_G3_SerialRIStatus ((DpId) 0xF36) /* 3894 CommsSerialPinStatus */ #define DPoint_G3_ConnectionStatus ((DpId) 0xF37) /* 3895 CommsConnectionStatus */ #define DPoint_G3_BytesReceivedStatus ((DpId) 0xF38) /* 3896 UI32 */ #define DPoint_G3_BytesTransmittedStatus ((DpId) 0xF39) /* 3897 UI32 */ #define DPoint_G3_PacketsReceivedStatus ((DpId) 0xF3A) /* 3898 UI32 */ #define DPoint_G3_PacketsTransmittedStatus ((DpId) 0xF3B) /* 3899 UI32 */ #define DPoint_G3_ErrorPacketsReceivedStatus ((DpId) 0xF3C) /* 3900 UI32 */ #define DPoint_G3_ErrorPacketsTransmittedStatus ((DpId) 0xF3D) /* 3901 UI32 */ #define DPoint_G3_IpAddrStatus ((DpId) 0xF3E) /* 3902 IpAddr */ #define DPoint_G3_SubnetMaskStatus ((DpId) 0xF3F) /* 3903 IpAddr */ #define DPoint_G3_DefaultGatewayStatus ((DpId) 0xF40) /* 3904 IpAddr */ #define DPoint_G3_PortDetectedType ((DpId) 0xF41) /* 3905 CommsPortDetectedType */ #define DPoint_G3_PortDetectedName ((DpId) 0xF42) /* 3906 Str */ #define DPoint_G3_SerialTxTestStatus ((DpId) 0xF43) /* 3907 OnOff */ #define DPoint_G3_PacketsReceivedStatusIPv6 ((DpId) 0xF44) /* 3908 UI32 */ #define DPoint_G3_PacketsTransmittedStatusIPv6 ((DpId) 0xF45) /* 3909 UI32 */ #define DPoint_G3_ErrorPacketsReceivedStatusIPv6 ((DpId) 0xF46) /* 3910 UI32 */ #define DPoint_G3_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0xF47) /* 3911 UI32 */ #define DPoint_G3_Ipv6AddrStatus ((DpId) 0xF48) /* 3912 Ipv6Addr */ #define DPoint_G3_LanPrefixLengthStatus ((DpId) 0xF49) /* 3913 UI8 */ #define DPoint_G3_Ipv6DefaultGatewayStatus ((DpId) 0xF4A) /* 3914 Ipv6Addr */ #define DPoint_G3_IpVersionStatus ((DpId) 0xF4B) /* 3915 IpVersion */ #define DPoint_G4_SerialDTRStatus ((DpId) 0xF81) /* 3969 CommsSerialPinStatus */ #define DPoint_G4_SerialDSRStatus ((DpId) 0xF82) /* 3970 CommsSerialPinStatus */ #define DPoint_G4_SerialCDStatus ((DpId) 0xF83) /* 3971 CommsSerialPinStatus */ #define DPoint_G4_SerialRTSStatus ((DpId) 0xF84) /* 3972 CommsSerialPinStatus */ #define DPoint_G4_SerialCTSStatus ((DpId) 0xF85) /* 3973 CommsSerialPinStatus */ #define DPoint_G4_SerialRIStatus ((DpId) 0xF86) /* 3974 CommsSerialPinStatus */ #define DPoint_G4_ConnectionStatus ((DpId) 0xF87) /* 3975 CommsConnectionStatus */ #define DPoint_G4_BytesReceivedStatus ((DpId) 0xF88) /* 3976 UI32 */ #define DPoint_G4_BytesTransmittedStatus ((DpId) 0xF89) /* 3977 UI32 */ #define DPoint_G4_PacketsReceivedStatus ((DpId) 0xF8A) /* 3978 UI32 */ #define DPoint_G4_PacketsTransmittedStatus ((DpId) 0xF8B) /* 3979 UI32 */ #define DPoint_G4_ErrorPacketsReceivedStatus ((DpId) 0xF8C) /* 3980 UI32 */ #define DPoint_G4_ErrorPacketsTransmittedStatus ((DpId) 0xF8D) /* 3981 UI32 */ #define DPoint_G4_IpAddrStatus ((DpId) 0xF8E) /* 3982 IpAddr */ #define DPoint_G4_SubnetMaskStatus ((DpId) 0xF8F) /* 3983 IpAddr */ #define DPoint_G4_DefaultGatewayStatus ((DpId) 0xF90) /* 3984 IpAddr */ #define DPoint_G4_PortDetectedType ((DpId) 0xF91) /* 3985 CommsPortDetectedType */ #define DPoint_G4_PortDetectedName ((DpId) 0xF92) /* 3986 Str */ #define DPoint_G4_SerialTxTestStatus ((DpId) 0xF93) /* 3987 OnOff */ #define DPoint_G4_PacketsReceivedStatusIPv6 ((DpId) 0xF94) /* 3988 UI32 */ #define DPoint_G4_PacketsTransmittedStatusIPv6 ((DpId) 0xF95) /* 3989 UI32 */ #define DPoint_G4_ErrorPacketsReceivedStatusIPv6 ((DpId) 0xF96) /* 3990 UI32 */ #define DPoint_G4_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0xF97) /* 3991 UI32 */ #define DPoint_G4_Ipv6AddrStatus ((DpId) 0xF98) /* 3992 Ipv6Addr */ #define DPoint_G4_LanPrefixLengthStatus ((DpId) 0xF99) /* 3993 UI8 */ #define DPoint_G4_Ipv6DefaultGatewayStatus ((DpId) 0xF9A) /* 3994 Ipv6Addr */ #define DPoint_G4_IpVersionStatus ((DpId) 0xF9B) /* 3995 IpVersion */ #define DPoint_G1_SerialPortTestCmd ((DpId) 0xFD1) /* 4049 Signal */ #define DPoint_G1_SerialPortHangupCmd ((DpId) 0xFD2) /* 4050 Signal */ #define DPoint_G1_BytesReceivedResetCmd ((DpId) 0xFD3) /* 4051 Signal */ #define DPoint_G1_BytesTransmittedResetCmd ((DpId) 0xFD4) /* 4052 Signal */ #define DPoint_G2_SerialPortTestCmd ((DpId) 0xFF8) /* 4088 Signal */ #define DPoint_G2_SerialPortHangupCmd ((DpId) 0xFF9) /* 4089 Signal */ #define DPoint_G2_BytesReceivedResetCmd ((DpId) 0xFFA) /* 4090 Signal */ #define DPoint_G2_BytesTransmittedResetCmd ((DpId) 0xFFB) /* 4091 Signal */ #define DPoint_G3_SerialPortTestCmd ((DpId) 0x1020) /* 4128 Signal */ #define DPoint_G3_SerialPortHangupCmd ((DpId) 0x1021) /* 4129 Signal */ #define DPoint_G3_BytesReceivedResetCmd ((DpId) 0x1022) /* 4130 Signal */ #define DPoint_G3_BytesTransmittedResetCmd ((DpId) 0x1023) /* 4131 Signal */ #define DPoint_G4_SerialPortTestCmd ((DpId) 0x1048) /* 4168 Signal */ #define DPoint_G4_SerialPortHangupCmd ((DpId) 0x1049) /* 4169 Signal */ #define DPoint_G4_BytesReceivedResetCmd ((DpId) 0x104A) /* 4170 Signal */ #define DPoint_G4_BytesTransmittedResetCmd ((DpId) 0x104B) /* 4171 Signal */ #define DPoint_G1_SerialBaudRate ((DpId) 0x106F) /* 4207 CommsSerialBaudRate */ #define DPoint_G1_SerialDuplexType ((DpId) 0x1070) /* 4208 CommsSerialDuplex */ #define DPoint_G1_SerialRTSMode ((DpId) 0x1071) /* 4209 CommsSerialRTSMode */ #define DPoint_G1_SerialRTSOnLevel ((DpId) 0x1072) /* 4210 CommsSerialRTSOnLevel */ #define DPoint_G1_SerialDTRMode ((DpId) 0x1073) /* 4211 CommsSerialDTRMode */ #define DPoint_G1_SerialDTROnLevel ((DpId) 0x1074) /* 4212 CommsSerialDTROnLevel */ #define DPoint_G1_SerialParity ((DpId) 0x1075) /* 4213 CommsSerialParity */ #define DPoint_G1_SerialCTSMode ((DpId) 0x1076) /* 4214 CommsSerialCTSMode */ #define DPoint_G1_SerialDSRMode ((DpId) 0x1077) /* 4215 CommsSerialDSRMode */ #define DPoint_G1_SerialDTRLowTime ((DpId) 0x1079) /* 4217 UI32 */ #define DPoint_G1_SerialTxDelay ((DpId) 0x107A) /* 4218 UI32 */ #define DPoint_G1_SerialPreTxTime ((DpId) 0x107B) /* 4219 UI32 */ #define DPoint_G1_SerialDCDFallTime ((DpId) 0x107C) /* 4220 UI32 */ #define DPoint_G1_SerialCharTimeout ((DpId) 0x107D) /* 4221 UI32 */ #define DPoint_G1_SerialPostTxTime ((DpId) 0x107E) /* 4222 UI32 */ #define DPoint_G1_SerialInactivityTime ((DpId) 0x107F) /* 4223 UI32 */ #define DPoint_G1_SerialCollisionAvoidance ((DpId) 0x1080) /* 4224 Bool */ #define DPoint_G1_SerialMinIdleTime ((DpId) 0x1081) /* 4225 UI32 */ #define DPoint_G1_SerialMaxRandomDelay ((DpId) 0x1082) /* 4226 UI32 */ #define DPoint_G1_ModemPoweredFromExtLoad ((DpId) 0x1083) /* 4227 Bool */ #define DPoint_G1_ModemUsedWithLeasedLine ((DpId) 0x1084) /* 4228 Bool */ #define DPoint_G1_ModemInitString ((DpId) 0x1085) /* 4229 Str */ #define DPoint_G1_ModemMaxCallDuration ((DpId) 0x108F) /* 4239 UI32 */ #define DPoint_G1_ModemResponseTime ((DpId) 0x1090) /* 4240 UI32 */ #define DPoint_G1_ModemHangUpCommand ((DpId) 0x1091) /* 4241 Str */ #define DPoint_G1_ModemOffHookCommand ((DpId) 0x1092) /* 4242 Str */ #define DPoint_G1_ModemAutoAnswerOn ((DpId) 0x1093) /* 4243 Str */ #define DPoint_G1_ModemAutoAnswerOff ((DpId) 0x1094) /* 4244 Str */ #define DPoint_G1_RadioPreamble ((DpId) 0x1095) /* 4245 Bool */ #define DPoint_G1_RadioPreambleChar ((DpId) 0x1096) /* 4246 UI8 */ #define DPoint_G1_RadioPreambleRepeat ((DpId) 0x1097) /* 4247 UI32 */ #define DPoint_G1_RadioPreambleLastChar ((DpId) 0x1098) /* 4248 UI8 */ #define DPoint_G1_LanSpecifyIP ((DpId) 0x1099) /* 4249 YesNo */ #define DPoint_G1_LanIPAddr ((DpId) 0x109A) /* 4250 IpAddr */ #define DPoint_G1_LanSubnetMask ((DpId) 0x109B) /* 4251 IpAddr */ #define DPoint_G1_LanDefaultGateway ((DpId) 0x109C) /* 4252 IpAddr */ #define DPoint_G1_WlanNetworkSSID ((DpId) 0x109D) /* 4253 Str */ #define DPoint_G1_WlanNetworkAuthentication ((DpId) 0x109E) /* 4254 CommsWlanNetworkAuthentication */ #define DPoint_G1_WlanDataEncryption ((DpId) 0x109F) /* 4255 CommsWlanDataEncryption */ #define DPoint_G1_WlanNetworkKey ((DpId) 0x10A0) /* 4256 Str */ #define DPoint_G1_WlanKeyIndex ((DpId) 0x10A1) /* 4257 UI32 */ #define DPoint_G1_PortLocalRemoteMode ((DpId) 0x10A2) /* 4258 LocalRemote */ #define DPoint_G1_GPRSServiceProvider ((DpId) 0x10A3) /* 4259 Str */ #define DPoint_G1_GPRSUserName ((DpId) 0x10A6) /* 4262 Str */ #define DPoint_G1_GPRSPassWord ((DpId) 0x10A7) /* 4263 Str */ #define DPoint_G1_SerialDebugMode ((DpId) 0x10A8) /* 4264 YesNo */ #define DPoint_G1_SerialDebugFileName ((DpId) 0x10A9) /* 4265 Str */ #define DPoint_G1_GPRSBaudRate ((DpId) 0x10AA) /* 4266 CommsSerialBaudRate */ #define DPoint_G1_GPRSConnectionTimeout ((DpId) 0x10AB) /* 4267 UI32 */ #define DPoint_G1_DNP3InputPipe ((DpId) 0x10AC) /* 4268 Str */ #define DPoint_G1_DNP3OutputPipe ((DpId) 0x10AD) /* 4269 Str */ #define DPoint_G1_CMSInputPipe ((DpId) 0x10AE) /* 4270 Str */ #define DPoint_G1_CMSOutputPipe ((DpId) 0x10AF) /* 4271 Str */ #define DPoint_G1_HMIInputPipe ((DpId) 0x10B0) /* 4272 Str */ #define DPoint_G1_HMIOutputPipe ((DpId) 0x10B1) /* 4273 Str */ #define DPoint_G1_DNP3ChannelRequest ((DpId) 0x10B2) /* 4274 Str */ #define DPoint_G1_DNP3ChannelOpen ((DpId) 0x10B3) /* 4275 Str */ #define DPoint_G1_CMSChannelRequest ((DpId) 0x10B4) /* 4276 Str */ #define DPoint_G1_CMSChannelOpen ((DpId) 0x10B5) /* 4277 Str */ #define DPoint_G1_HMIChannelRequest ((DpId) 0x10B6) /* 4278 Str */ #define DPoint_G1_HMIChannelOpen ((DpId) 0x10B7) /* 4279 Str */ #define DPoint_G1_GPRSUseModemSetting ((DpId) 0x10B8) /* 4280 YesNo */ #define DPoint_G1_SerialFlowControlMode ((DpId) 0x10B9) /* 4281 CommsSerialFlowControlMode */ #define DPoint_G1_SerialDCDControlMode ((DpId) 0x10BA) /* 4282 CommsSerialDCDControlMode */ #define DPoint_G1_T10BInputPipe ((DpId) 0x10BB) /* 4283 Str */ #define DPoint_G1_T10BOutputPipe ((DpId) 0x10BC) /* 4284 Str */ #define DPoint_G1_T10BChannelRequest ((DpId) 0x10BD) /* 4285 Str */ #define DPoint_G1_T10BChannelOpen ((DpId) 0x10BE) /* 4286 Str */ #define DPoint_G1_P2PInputPipe ((DpId) 0x10BF) /* 4287 Str */ #define DPoint_G1_P2POutputPipe ((DpId) 0x10C0) /* 4288 Str */ #define DPoint_G1_P2PChannelRequest ((DpId) 0x10C1) /* 4289 Str */ #define DPoint_G1_P2PChannelOpen ((DpId) 0x10C2) /* 4290 Str */ #define DPoint_G1_PGEInputPipe ((DpId) 0x10C3) /* 4291 Str */ #define DPoint_G1_PGEOutputPipe ((DpId) 0x10C4) /* 4292 Str */ #define DPoint_G1_PGEChannelRequest ((DpId) 0x10C5) /* 4293 Str */ #define DPoint_G1_PGEChannelOpen ((DpId) 0x10C6) /* 4294 Str */ #define DPoint_G1_LanProvideIP ((DpId) 0x10C7) /* 4295 YesNo */ #define DPoint_G1_LanSpecifyIPv6 ((DpId) 0x10C8) /* 4296 YesNo */ #define DPoint_G1_LanIPv6Addr ((DpId) 0x10C9) /* 4297 Ipv6Addr */ #define DPoint_G1_LanPrefixLength ((DpId) 0x10CA) /* 4298 UI8 */ #define DPoint_G1_LanIPv6DefaultGateway ((DpId) 0x10CB) /* 4299 Ipv6Addr */ #define DPoint_G1_LanIpVersion ((DpId) 0x10CC) /* 4300 IpVersion */ #define DPoint_G2_SerialBaudRate ((DpId) 0x1137) /* 4407 CommsSerialBaudRate */ #define DPoint_G2_SerialDuplexType ((DpId) 0x1138) /* 4408 CommsSerialDuplex */ #define DPoint_G2_SerialRTSMode ((DpId) 0x1139) /* 4409 CommsSerialRTSMode */ #define DPoint_G2_SerialRTSOnLevel ((DpId) 0x113A) /* 4410 CommsSerialRTSOnLevel */ #define DPoint_G2_SerialDTRMode ((DpId) 0x113B) /* 4411 CommsSerialDTRMode */ #define DPoint_G2_SerialDTROnLevel ((DpId) 0x113C) /* 4412 CommsSerialDTROnLevel */ #define DPoint_G2_SerialParity ((DpId) 0x113D) /* 4413 CommsSerialParity */ #define DPoint_G2_SerialCTSMode ((DpId) 0x113E) /* 4414 CommsSerialCTSMode */ #define DPoint_G2_SerialDSRMode ((DpId) 0x113F) /* 4415 CommsSerialDSRMode */ #define DPoint_G2_SerialDTRLowTime ((DpId) 0x1141) /* 4417 UI32 */ #define DPoint_G2_SerialTxDelay ((DpId) 0x1142) /* 4418 UI32 */ #define DPoint_G2_SerialPreTxTime ((DpId) 0x1143) /* 4419 UI32 */ #define DPoint_G2_SerialDCDFallTime ((DpId) 0x1144) /* 4420 UI32 */ #define DPoint_G2_SerialCharTimeout ((DpId) 0x1145) /* 4421 UI32 */ #define DPoint_G2_SerialPostTxTime ((DpId) 0x1146) /* 4422 UI32 */ #define DPoint_G2_SerialInactivityTime ((DpId) 0x1147) /* 4423 UI32 */ #define DPoint_G2_SerialCollisionAvoidance ((DpId) 0x1148) /* 4424 Bool */ #define DPoint_G2_SerialMinIdleTime ((DpId) 0x1149) /* 4425 UI32 */ #define DPoint_G2_SerialMaxRandomDelay ((DpId) 0x114A) /* 4426 UI32 */ #define DPoint_G2_ModemPoweredFromExtLoad ((DpId) 0x114B) /* 4427 Bool */ #define DPoint_G2_ModemUsedWithLeasedLine ((DpId) 0x114C) /* 4428 Bool */ #define DPoint_G2_ModemInitString ((DpId) 0x114D) /* 4429 Str */ #define DPoint_G2_ModemMaxCallDuration ((DpId) 0x1157) /* 4439 UI32 */ #define DPoint_G2_ModemResponseTime ((DpId) 0x1158) /* 4440 UI32 */ #define DPoint_G2_ModemHangUpCommand ((DpId) 0x1159) /* 4441 Str */ #define DPoint_G2_ModemOffHookCommand ((DpId) 0x115A) /* 4442 Str */ #define DPoint_G2_ModemAutoAnswerOn ((DpId) 0x115B) /* 4443 Str */ #define DPoint_G2_ModemAutoAnswerOff ((DpId) 0x115C) /* 4444 Str */ #define DPoint_G2_RadioPreamble ((DpId) 0x115D) /* 4445 Bool */ #define DPoint_G2_RadioPreambleChar ((DpId) 0x115E) /* 4446 UI8 */ #define DPoint_G2_RadioPreambleRepeat ((DpId) 0x115F) /* 4447 UI32 */ #define DPoint_G2_RadioPreambleLastChar ((DpId) 0x1160) /* 4448 UI8 */ #define DPoint_G2_LanSpecifyIP ((DpId) 0x1161) /* 4449 YesNo */ #define DPoint_G2_LanIPAddr ((DpId) 0x1162) /* 4450 IpAddr */ #define DPoint_G2_LanSubnetMask ((DpId) 0x1163) /* 4451 IpAddr */ #define DPoint_G2_LanDefaultGateway ((DpId) 0x1164) /* 4452 IpAddr */ #define DPoint_G2_WlanNetworkSSID ((DpId) 0x1165) /* 4453 Str */ #define DPoint_G2_WlanNetworkAuthentication ((DpId) 0x1166) /* 4454 CommsWlanNetworkAuthentication */ #define DPoint_G2_WlanDataEncryption ((DpId) 0x1167) /* 4455 CommsWlanDataEncryption */ #define DPoint_G2_WlanNetworkKey ((DpId) 0x1168) /* 4456 Str */ #define DPoint_G2_WlanKeyIndex ((DpId) 0x1169) /* 4457 UI32 */ #define DPoint_G2_PortLocalRemoteMode ((DpId) 0x116A) /* 4458 LocalRemote */ #define DPoint_G2_GPRSServiceProvider ((DpId) 0x116B) /* 4459 Str */ #define DPoint_G2_GPRSUserName ((DpId) 0x116E) /* 4462 Str */ #define DPoint_G2_GPRSPassWord ((DpId) 0x116F) /* 4463 Str */ #define DPoint_G2_SerialDebugMode ((DpId) 0x1170) /* 4464 YesNo */ #define DPoint_G2_SerialDebugFileName ((DpId) 0x1171) /* 4465 Str */ #define DPoint_G2_GPRSBaudRate ((DpId) 0x1172) /* 4466 CommsSerialBaudRate */ #define DPoint_G2_GPRSConnectionTimeout ((DpId) 0x1173) /* 4467 UI32 */ #define DPoint_G2_DNP3InputPipe ((DpId) 0x1174) /* 4468 Str */ #define DPoint_G2_DNP3OutputPipe ((DpId) 0x1175) /* 4469 Str */ #define DPoint_G2_CMSInputPipe ((DpId) 0x1176) /* 4470 Str */ #define DPoint_G2_CMSOutputPipe ((DpId) 0x1177) /* 4471 Str */ #define DPoint_G2_HMIInputPipe ((DpId) 0x1178) /* 4472 Str */ #define DPoint_G2_HMIOutputPipe ((DpId) 0x1179) /* 4473 Str */ #define DPoint_G2_DNP3ChannelRequest ((DpId) 0x117A) /* 4474 Str */ #define DPoint_G2_DNP3ChannelOpen ((DpId) 0x117B) /* 4475 Str */ #define DPoint_G2_CMSChannelRequest ((DpId) 0x117C) /* 4476 Str */ #define DPoint_G2_CMSChannelOpen ((DpId) 0x117D) /* 4477 Str */ #define DPoint_G2_HMIChannelRequest ((DpId) 0x117E) /* 4478 Str */ #define DPoint_G2_HMIChannelOpen ((DpId) 0x117F) /* 4479 Str */ #define DPoint_G2_GPRSUseModemSetting ((DpId) 0x1180) /* 4480 YesNo */ #define DPoint_G2_SerialFlowControlMode ((DpId) 0x1181) /* 4481 CommsSerialFlowControlMode */ #define DPoint_G2_SerialDCDControlMode ((DpId) 0x1182) /* 4482 CommsSerialDCDControlMode */ #define DPoint_G2_T10BInputPipe ((DpId) 0x1183) /* 4483 Str */ #define DPoint_G2_T10BOutputPipe ((DpId) 0x1184) /* 4484 Str */ #define DPoint_G2_T10BChannelRequest ((DpId) 0x1185) /* 4485 Str */ #define DPoint_G2_T10BChannelOpen ((DpId) 0x1186) /* 4486 Str */ #define DPoint_G2_P2PInputPipe ((DpId) 0x1187) /* 4487 Str */ #define DPoint_G2_P2POutputPipe ((DpId) 0x1188) /* 4488 Str */ #define DPoint_G2_P2PChannelRequest ((DpId) 0x1189) /* 4489 Str */ #define DPoint_G2_P2PChannelOpen ((DpId) 0x118A) /* 4490 Str */ #define DPoint_G2_PGEInputPipe ((DpId) 0x118B) /* 4491 Str */ #define DPoint_G2_PGEOutputPipe ((DpId) 0x118C) /* 4492 Str */ #define DPoint_G2_PGEChannelRequest ((DpId) 0x118D) /* 4493 Str */ #define DPoint_G2_PGEChannelOpen ((DpId) 0x118E) /* 4494 Str */ #define DPoint_G2_LanProvideIP ((DpId) 0x118F) /* 4495 YesNo */ #define DPoint_G2_LanSpecifyIPv6 ((DpId) 0x1190) /* 4496 YesNo */ #define DPoint_G2_LanIPv6Addr ((DpId) 0x1191) /* 4497 Ipv6Addr */ #define DPoint_G2_LanPrefixLength ((DpId) 0x1192) /* 4498 UI8 */ #define DPoint_G2_LanIPv6DefaultGateway ((DpId) 0x1193) /* 4499 Ipv6Addr */ #define DPoint_G2_LanIpVersion ((DpId) 0x1194) /* 4500 IpVersion */ #define DPoint_G3_SerialBaudRate ((DpId) 0x11FF) /* 4607 CommsSerialBaudRate */ #define DPoint_G3_SerialDuplexType ((DpId) 0x1200) /* 4608 CommsSerialDuplex */ #define DPoint_G3_SerialRTSMode ((DpId) 0x1201) /* 4609 CommsSerialRTSMode */ #define DPoint_G3_SerialRTSOnLevel ((DpId) 0x1202) /* 4610 CommsSerialRTSOnLevel */ #define DPoint_G3_SerialDTRMode ((DpId) 0x1203) /* 4611 CommsSerialDTRMode */ #define DPoint_G3_SerialDTROnLevel ((DpId) 0x1204) /* 4612 CommsSerialDTROnLevel */ #define DPoint_G3_SerialParity ((DpId) 0x1205) /* 4613 CommsSerialParity */ #define DPoint_G3_SerialCTSMode ((DpId) 0x1206) /* 4614 CommsSerialCTSMode */ #define DPoint_G3_SerialDSRMode ((DpId) 0x1207) /* 4615 CommsSerialDSRMode */ #define DPoint_G3_SerialDTRLowTime ((DpId) 0x1209) /* 4617 UI32 */ #define DPoint_G3_SerialTxDelay ((DpId) 0x120A) /* 4618 UI32 */ #define DPoint_G3_SerialPreTxTime ((DpId) 0x120B) /* 4619 UI32 */ #define DPoint_G3_SerialDCDFallTime ((DpId) 0x120C) /* 4620 UI32 */ #define DPoint_G3_SerialCharTimeout ((DpId) 0x120D) /* 4621 UI32 */ #define DPoint_G3_SerialPostTxTime ((DpId) 0x120E) /* 4622 UI32 */ #define DPoint_G3_SerialInactivityTime ((DpId) 0x120F) /* 4623 UI32 */ #define DPoint_G3_SerialCollisionAvoidance ((DpId) 0x1210) /* 4624 Bool */ #define DPoint_G3_SerialMinIdleTime ((DpId) 0x1211) /* 4625 UI32 */ #define DPoint_G3_SerialMaxRandomDelay ((DpId) 0x1212) /* 4626 UI32 */ #define DPoint_G3_ModemPoweredFromExtLoad ((DpId) 0x1213) /* 4627 Bool */ #define DPoint_G3_ModemUsedWithLeasedLine ((DpId) 0x1214) /* 4628 Bool */ #define DPoint_G3_ModemInitString ((DpId) 0x1215) /* 4629 Str */ #define DPoint_G3_ModemMaxCallDuration ((DpId) 0x121F) /* 4639 UI32 */ #define DPoint_G3_ModemResponseTime ((DpId) 0x1220) /* 4640 UI32 */ #define DPoint_G3_ModemHangUpCommand ((DpId) 0x1221) /* 4641 Str */ #define DPoint_G3_ModemOffHookCommand ((DpId) 0x1222) /* 4642 Str */ #define DPoint_G3_ModemAutoAnswerOn ((DpId) 0x1223) /* 4643 Str */ #define DPoint_G3_ModemAutoAnswerOff ((DpId) 0x1224) /* 4644 Str */ #define DPoint_G3_RadioPreamble ((DpId) 0x1225) /* 4645 Bool */ #define DPoint_G3_RadioPreambleChar ((DpId) 0x1226) /* 4646 UI8 */ #define DPoint_G3_RadioPreambleRepeat ((DpId) 0x1227) /* 4647 UI32 */ #define DPoint_G3_RadioPreambleLastChar ((DpId) 0x1228) /* 4648 UI8 */ #define DPoint_G3_LanSpecifyIP ((DpId) 0x1229) /* 4649 YesNo */ #define DPoint_G3_LanIPAddr ((DpId) 0x122A) /* 4650 IpAddr */ #define DPoint_G3_LanSubnetMask ((DpId) 0x122B) /* 4651 IpAddr */ #define DPoint_G3_LanDefaultGateway ((DpId) 0x122C) /* 4652 IpAddr */ #define DPoint_G3_WlanNetworkSSID ((DpId) 0x122D) /* 4653 Str */ #define DPoint_G3_WlanNetworkAuthentication ((DpId) 0x122E) /* 4654 CommsWlanNetworkAuthentication */ #define DPoint_G3_WlanDataEncryption ((DpId) 0x122F) /* 4655 CommsWlanDataEncryption */ #define DPoint_G3_WlanNetworkKey ((DpId) 0x1230) /* 4656 Str */ #define DPoint_G3_WlanKeyIndex ((DpId) 0x1231) /* 4657 UI32 */ #define DPoint_G3_PortLocalRemoteMode ((DpId) 0x1232) /* 4658 LocalRemote */ #define DPoint_G3_GPRSServiceProvider ((DpId) 0x1233) /* 4659 Str */ #define DPoint_G3_GPRSUserName ((DpId) 0x1236) /* 4662 Str */ #define DPoint_G3_GPRSPassWord ((DpId) 0x1237) /* 4663 Str */ #define DPoint_G3_SerialDebugMode ((DpId) 0x1238) /* 4664 YesNo */ #define DPoint_G3_SerialDebugFileName ((DpId) 0x1239) /* 4665 Str */ #define DPoint_G3_GPRSBaudRate ((DpId) 0x123A) /* 4666 CommsSerialBaudRate */ #define DPoint_G3_GPRSConnectionTimeout ((DpId) 0x123B) /* 4667 UI32 */ #define DPoint_G3_DNP3InputPipe ((DpId) 0x123C) /* 4668 Str */ #define DPoint_G3_DNP3OutputPipe ((DpId) 0x123D) /* 4669 Str */ #define DPoint_G3_CMSInputPipe ((DpId) 0x123E) /* 4670 Str */ #define DPoint_G3_CMSOutputPipe ((DpId) 0x123F) /* 4671 Str */ #define DPoint_G3_HMIInputPipe ((DpId) 0x1240) /* 4672 Str */ #define DPoint_G3_HMIOutputPipe ((DpId) 0x1241) /* 4673 Str */ #define DPoint_G3_DNP3ChannelRequest ((DpId) 0x1242) /* 4674 Str */ #define DPoint_G3_DNP3ChannelOpen ((DpId) 0x1243) /* 4675 Str */ #define DPoint_G3_CMSChannelRequest ((DpId) 0x1244) /* 4676 Str */ #define DPoint_G3_CMSChannelOpen ((DpId) 0x1245) /* 4677 Str */ #define DPoint_G3_HMIChannelRequest ((DpId) 0x1246) /* 4678 Str */ #define DPoint_G3_HMIChannelOpen ((DpId) 0x1247) /* 4679 Str */ #define DPoint_G3_GPRSUseModemSetting ((DpId) 0x1248) /* 4680 YesNo */ #define DPoint_G3_SerialFlowControlMode ((DpId) 0x1249) /* 4681 CommsSerialFlowControlMode */ #define DPoint_G3_SerialDCDControlMode ((DpId) 0x124A) /* 4682 CommsSerialDCDControlMode */ #define DPoint_G3_T10BInputPipe ((DpId) 0x124B) /* 4683 Str */ #define DPoint_G3_T10BOutputPipe ((DpId) 0x124C) /* 4684 Str */ #define DPoint_G3_T10BChannelRequest ((DpId) 0x124D) /* 4685 Str */ #define DPoint_G3_T10BChannelOpen ((DpId) 0x124E) /* 4686 Str */ #define DPoint_G3_P2PInputPipe ((DpId) 0x124F) /* 4687 Str */ #define DPoint_G3_P2POutputPipe ((DpId) 0x1250) /* 4688 Str */ #define DPoint_G3_P2PChannelRequest ((DpId) 0x1251) /* 4689 Str */ #define DPoint_G3_P2PChannelOpen ((DpId) 0x1252) /* 4690 Str */ #define DPoint_G3_PGEInputPipe ((DpId) 0x1253) /* 4691 Str */ #define DPoint_G3_PGEOutputPipe ((DpId) 0x1254) /* 4692 Str */ #define DPoint_G3_PGEChannelRequest ((DpId) 0x1255) /* 4693 Str */ #define DPoint_G3_PGEChannelOpen ((DpId) 0x1256) /* 4694 Str */ #define DPoint_G3_LanProvideIP ((DpId) 0x1257) /* 4695 YesNo */ #define DPoint_G3_LanSpecifyIPv6 ((DpId) 0x1258) /* 4696 YesNo */ #define DPoint_G3_LanIPv6Addr ((DpId) 0x1259) /* 4697 Ipv6Addr */ #define DPoint_G3_LanPrefixLength ((DpId) 0x125A) /* 4698 UI8 */ #define DPoint_G3_LanIPv6DefaultGateway ((DpId) 0x125B) /* 4699 Ipv6Addr */ #define DPoint_G3_LanIpVersion ((DpId) 0x125C) /* 4700 IpVersion */ #define DPoint_G4_SerialBaudRate ((DpId) 0x12C7) /* 4807 CommsSerialBaudRate */ #define DPoint_G4_SerialDuplexType ((DpId) 0x12C8) /* 4808 CommsSerialDuplex */ #define DPoint_G4_SerialRTSMode ((DpId) 0x12C9) /* 4809 CommsSerialRTSMode */ #define DPoint_G4_SerialRTSOnLevel ((DpId) 0x12CA) /* 4810 CommsSerialRTSOnLevel */ #define DPoint_G4_SerialDTRMode ((DpId) 0x12CB) /* 4811 CommsSerialDTRMode */ #define DPoint_G4_SerialDTROnLevel ((DpId) 0x12CC) /* 4812 CommsSerialDTROnLevel */ #define DPoint_G4_SerialParity ((DpId) 0x12CD) /* 4813 CommsSerialParity */ #define DPoint_G4_SerialCTSMode ((DpId) 0x12CE) /* 4814 CommsSerialCTSMode */ #define DPoint_G4_SerialDSRMode ((DpId) 0x12CF) /* 4815 CommsSerialDSRMode */ #define DPoint_G4_SerialDTRLowTime ((DpId) 0x12D1) /* 4817 UI32 */ #define DPoint_G4_SerialTxDelay ((DpId) 0x12D2) /* 4818 UI32 */ #define DPoint_G4_SerialPreTxTime ((DpId) 0x12D3) /* 4819 UI32 */ #define DPoint_G4_SerialDCDFallTime ((DpId) 0x12D4) /* 4820 UI32 */ #define DPoint_G4_SerialCharTimeout ((DpId) 0x12D5) /* 4821 UI32 */ #define DPoint_G4_SerialPostTxTime ((DpId) 0x12D6) /* 4822 UI32 */ #define DPoint_G4_SerialInactivityTime ((DpId) 0x12D7) /* 4823 UI32 */ #define DPoint_G4_SerialCollisionAvoidance ((DpId) 0x12D8) /* 4824 Bool */ #define DPoint_G4_SerialMinIdleTime ((DpId) 0x12D9) /* 4825 UI32 */ #define DPoint_G4_SerialMaxRandomDelay ((DpId) 0x12DA) /* 4826 UI32 */ #define DPoint_G4_ModemPoweredFromExtLoad ((DpId) 0x12DB) /* 4827 Bool */ #define DPoint_G4_ModemUsedWithLeasedLine ((DpId) 0x12DC) /* 4828 Bool */ #define DPoint_G4_ModemInitString ((DpId) 0x12DD) /* 4829 Str */ #define DPoint_G4_ModemMaxCallDuration ((DpId) 0x12E7) /* 4839 UI32 */ #define DPoint_G4_ModemResponseTime ((DpId) 0x12E8) /* 4840 UI32 */ #define DPoint_G4_ModemHangUpCommand ((DpId) 0x12E9) /* 4841 Str */ #define DPoint_G4_ModemOffHookCommand ((DpId) 0x12EA) /* 4842 Str */ #define DPoint_G4_ModemAutoAnswerOn ((DpId) 0x12EB) /* 4843 Str */ #define DPoint_G4_ModemAutoAnswerOff ((DpId) 0x12EC) /* 4844 Str */ #define DPoint_G4_RadioPreamble ((DpId) 0x12ED) /* 4845 Bool */ #define DPoint_G4_RadioPreambleChar ((DpId) 0x12EE) /* 4846 UI8 */ #define DPoint_G4_RadioPreambleRepeat ((DpId) 0x12EF) /* 4847 UI32 */ #define DPoint_G4_RadioPreambleLastChar ((DpId) 0x12F0) /* 4848 UI8 */ #define DPoint_G4_LanSpecifyIP ((DpId) 0x12F1) /* 4849 YesNo */ #define DPoint_G4_LanIPAddr ((DpId) 0x12F2) /* 4850 IpAddr */ #define DPoint_G4_LanSubnetMask ((DpId) 0x12F3) /* 4851 IpAddr */ #define DPoint_G4_LanDefaultGateway ((DpId) 0x12F4) /* 4852 IpAddr */ #define DPoint_G4_WlanNetworkSSID ((DpId) 0x12F5) /* 4853 Str */ #define DPoint_G4_WlanNetworkAuthentication ((DpId) 0x12F6) /* 4854 CommsWlanNetworkAuthentication */ #define DPoint_G4_WlanDataEncryption ((DpId) 0x12F7) /* 4855 CommsWlanDataEncryption */ #define DPoint_G4_WlanNetworkKey ((DpId) 0x12F8) /* 4856 Str */ #define DPoint_G4_WlanKeyIndex ((DpId) 0x12F9) /* 4857 UI32 */ #define DPoint_G4_PortLocalRemoteMode ((DpId) 0x12FA) /* 4858 LocalRemote */ #define DPoint_G4_GPRSServiceProvider ((DpId) 0x12FB) /* 4859 Str */ #define DPoint_G4_GPRSUserName ((DpId) 0x12FE) /* 4862 Str */ #define DPoint_G4_GPRSPassWord ((DpId) 0x12FF) /* 4863 Str */ #define DPoint_G4_SerialDebugMode ((DpId) 0x1300) /* 4864 YesNo */ #define DPoint_G4_SerialDebugFileName ((DpId) 0x1301) /* 4865 Str */ #define DPoint_G4_GPRSBaudRate ((DpId) 0x1302) /* 4866 CommsSerialBaudRate */ #define DPoint_G4_GPRSConnectionTimeout ((DpId) 0x1303) /* 4867 UI32 */ #define DPoint_G4_DNP3InputPipe ((DpId) 0x1304) /* 4868 Str */ #define DPoint_G4_DNP3OutputPipe ((DpId) 0x1305) /* 4869 Str */ #define DPoint_G4_CMSInputPipe ((DpId) 0x1306) /* 4870 Str */ #define DPoint_G4_CMSOutputPipe ((DpId) 0x1307) /* 4871 Str */ #define DPoint_G4_HMIInputPipe ((DpId) 0x1308) /* 4872 Str */ #define DPoint_G4_HMIOutputPipe ((DpId) 0x1309) /* 4873 Str */ #define DPoint_G4_DNP3ChannelRequest ((DpId) 0x130A) /* 4874 Str */ #define DPoint_G4_DNP3ChannelOpen ((DpId) 0x130B) /* 4875 Str */ #define DPoint_G4_CMSChannelRequest ((DpId) 0x130C) /* 4876 Str */ #define DPoint_G4_CMSChannelOpen ((DpId) 0x130D) /* 4877 Str */ #define DPoint_G4_HMIChannelRequest ((DpId) 0x130E) /* 4878 Str */ #define DPoint_G4_HMIChannelOpen ((DpId) 0x130F) /* 4879 Str */ #define DPoint_G4_GPRSUseModemSetting ((DpId) 0x1310) /* 4880 YesNo */ #define DPoint_G4_SerialFlowControlMode ((DpId) 0x1311) /* 4881 CommsSerialFlowControlMode */ #define DPoint_G4_SerialDCDControlMode ((DpId) 0x1312) /* 4882 CommsSerialDCDControlMode */ #define DPoint_G4_T10BInputPipe ((DpId) 0x1313) /* 4883 Str */ #define DPoint_G4_T10BOutputPipe ((DpId) 0x1314) /* 4884 Str */ #define DPoint_G4_T10BChannelRequest ((DpId) 0x1315) /* 4885 Str */ #define DPoint_G4_T10BChannelOpen ((DpId) 0x1316) /* 4886 Str */ #define DPoint_G4_P2PInputPipe ((DpId) 0x1317) /* 4887 Str */ #define DPoint_G4_P2POutputPipe ((DpId) 0x1318) /* 4888 Str */ #define DPoint_G4_P2PChannelRequest ((DpId) 0x1319) /* 4889 Str */ #define DPoint_G4_P2PChannelOpen ((DpId) 0x131A) /* 4890 Str */ #define DPoint_G4_PGEInputPipe ((DpId) 0x131B) /* 4891 Str */ #define DPoint_G4_PGEOutputPipe ((DpId) 0x131C) /* 4892 Str */ #define DPoint_G4_PGEChannelRequest ((DpId) 0x131D) /* 4893 Str */ #define DPoint_G4_PGEChannelOpen ((DpId) 0x131E) /* 4894 Str */ #define DPoint_G4_LanProvideIP ((DpId) 0x131F) /* 4895 YesNo */ #define DPoint_G4_LanSpecifyIPv6 ((DpId) 0x1320) /* 4896 YesNo */ #define DPoint_G4_LanIPv6Addr ((DpId) 0x1321) /* 4897 Ipv6Addr */ #define DPoint_G4_LanPrefixLength ((DpId) 0x1322) /* 4898 UI8 */ #define DPoint_G4_LanIPv6DefaultGateway ((DpId) 0x1323) /* 4899 Ipv6Addr */ #define DPoint_G4_LanIpVersion ((DpId) 0x1324) /* 4900 IpVersion */ #define DPoint_TripMaxCurrIa ((DpId) 0x138F) /* 5007 UI32 */ #define DPoint_TripMaxCurrIb ((DpId) 0x1390) /* 5008 UI32 */ #define DPoint_TripMaxCurrIc ((DpId) 0x1391) /* 5009 UI32 */ #define DPoint_TripMaxCurrIn ((DpId) 0x1392) /* 5010 UI32 */ #define DPoint_TripMinVoltP2P ((DpId) 0x1393) /* 5011 UI32 */ #define DPoint_TripMaxVoltP2P ((DpId) 0x1394) /* 5012 UI32 */ #define DPoint_TripMinFreq ((DpId) 0x1395) /* 5013 UI32 */ #define DPoint_TripMaxFreq ((DpId) 0x1396) /* 5014 UI32 */ #define DPoint_UsbDiscMountPath ((DpId) 0x139A) /* 5018 Str */ #define DPoint_CanSimPartAndSupplierCode ((DpId) 0x139D) /* 5021 Str */ #define DPoint_CanSimCalibrationInvalidate ((DpId) 0x139E) /* 5022 UI32 */ #define DPoint_ProgramSimCmd ((DpId) 0x13A0) /* 5024 ProgramSimCmd */ #define DPoint_ScadaCounterFramesTx ((DpId) 0x13A1) /* 5025 UI32 */ #define DPoint_ScadaCounterFramesRx ((DpId) 0x13A2) /* 5026 UI32 */ #define DPoint_ScadaCounterErrorLength ((DpId) 0x13A3) /* 5027 UI32 */ #define DPoint_ScadaCounterErrorCrc ((DpId) 0x13A4) /* 5028 UI32 */ #define DPoint_ScadaCounterBufferC1 ((DpId) 0x13A5) /* 5029 UI32 */ #define DPoint_ScadaCounterBufferC2 ((DpId) 0x13A6) /* 5030 UI32 */ #define DPoint_ScadaCounterBufferC3 ((DpId) 0x13A7) /* 5031 UI32 */ #define DPoint_CommsChEvNonGroup ((DpId) 0x13A8) /* 5032 ChangeEvent */ #define DPoint_CommsChEvGrp1 ((DpId) 0x13A9) /* 5033 ChangeEvent */ #define DPoint_CommsChEvGrp2 ((DpId) 0x13AA) /* 5034 ChangeEvent */ #define DPoint_CommsChEvGrp3 ((DpId) 0x13AB) /* 5035 ChangeEvent */ #define DPoint_CommsChEvGrp4 ((DpId) 0x13AC) /* 5036 ChangeEvent */ #define DPoint_SigPickupLSD ((DpId) 0x13AD) /* 5037 Signal */ #define DPoint_SigCtrlLocalOn ((DpId) 0x13AE) /* 5038 Signal */ #define DPoint_SigCtrlTestBit ((DpId) 0x13AF) /* 5039 Signal */ #define DPoint_SigUpsPowerUp ((DpId) 0x13BC) /* 5052 Signal */ #define DPoint_SigLineSupplyStatusNormal ((DpId) 0x13BD) /* 5053 Signal */ #define DPoint_SigLineSupplyStatusOff ((DpId) 0x13BE) /* 5054 Signal */ #define DPoint_SigLineSupplyStatusHigh ((DpId) 0x13BF) /* 5055 Signal */ #define DPoint_SigOperationFaultCap ((DpId) 0x13C0) /* 5056 Signal */ #define DPoint_SigRelayCANMessagebufferoverflow ((DpId) 0x13C1) /* 5057 Signal */ #define DPoint_SigRelayCANControllerError ((DpId) 0x13C2) /* 5058 Signal */ #define DPoint_UsbDiscCmd ((DpId) 0x13C3) /* 5059 UsbDiscCmd */ #define DPoint_UsbDiscCmdPercent ((DpId) 0x13C4) /* 5060 UI8 */ #define DPoint_UsbDiscStatus ((DpId) 0x13C5) /* 5061 UsbDiscStatus */ #define DPoint_UsbDiscUpdateCount ((DpId) 0x13C6) /* 5062 UI32 */ #define DPoint_UsbDiscUpdateVersions ((DpId) 0x13C7) /* 5063 StrArray */ #define DPoint_UsbDiscError ((DpId) 0x13C8) /* 5064 UpdateError */ #define DPoint_UpdateFilesReady ((DpId) 0x13C9) /* 5065 Bool */ #define DPoint_UpdateBootOk ((DpId) 0x13CA) /* 5066 Bool */ #define DPoint_IdOsmNumber ((DpId) 0x13CB) /* 5067 SerialNumber */ #define DPoint_PanelDelayedCloseRemain ((DpId) 0x13CC) /* 5068 UI16 */ #define DPoint_FactorySettings ((DpId) 0x13CD) /* 5069 EnDis */ #define DPoint_G5_SerialDTRStatus ((DpId) 0x13CE) /* 5070 CommsSerialPinStatus */ #define DPoint_G5_SerialDSRStatus ((DpId) 0x13CF) /* 5071 CommsSerialPinStatus */ #define DPoint_G5_SerialCDStatus ((DpId) 0x13D0) /* 5072 CommsSerialPinStatus */ #define DPoint_G5_SerialRTSStatus ((DpId) 0x13D1) /* 5073 CommsSerialPinStatus */ #define DPoint_G5_SerialCTSStatus ((DpId) 0x13D2) /* 5074 CommsSerialPinStatus */ #define DPoint_G5_SerialRIStatus ((DpId) 0x13D3) /* 5075 CommsSerialPinStatus */ #define DPoint_G5_ConnectionStatus ((DpId) 0x13D4) /* 5076 CommsConnectionStatus */ #define DPoint_G5_BytesReceivedStatus ((DpId) 0x13D5) /* 5077 UI32 */ #define DPoint_G5_BytesTransmittedStatus ((DpId) 0x13D6) /* 5078 UI32 */ #define DPoint_G5_PacketsReceivedStatus ((DpId) 0x13D7) /* 5079 UI32 */ #define DPoint_G5_PacketsTransmittedStatus ((DpId) 0x13D8) /* 5080 UI32 */ #define DPoint_G5_ErrorPacketsReceivedStatus ((DpId) 0x13D9) /* 5081 UI32 */ #define DPoint_G5_ErrorPacketsTransmittedStatus ((DpId) 0x13DA) /* 5082 UI32 */ #define DPoint_G5_IpAddrStatus ((DpId) 0x13DB) /* 5083 IpAddr */ #define DPoint_G5_SubnetMaskStatus ((DpId) 0x13DC) /* 5084 IpAddr */ #define DPoint_G5_DefaultGatewayStatus ((DpId) 0x13DD) /* 5085 IpAddr */ #define DPoint_G5_PortDetectedType ((DpId) 0x13DE) /* 5086 CommsPortDetectedType */ #define DPoint_G5_PortDetectedName ((DpId) 0x13DF) /* 5087 Str */ #define DPoint_G5_SerialTxTestStatus ((DpId) 0x13E0) /* 5088 OnOff */ #define DPoint_G5_PacketsReceivedStatusIPv6 ((DpId) 0x13E1) /* 5089 UI32 */ #define DPoint_G5_PacketsTransmittedStatusIPv6 ((DpId) 0x13E2) /* 5090 UI32 */ #define DPoint_G5_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x13E3) /* 5091 UI32 */ #define DPoint_G5_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x13E4) /* 5092 UI32 */ #define DPoint_G5_Ipv6AddrStatus ((DpId) 0x13E5) /* 5093 Ipv6Addr */ #define DPoint_G5_LanPrefixLengthStatus ((DpId) 0x13E6) /* 5094 UI8 */ #define DPoint_G5_Ipv6DefaultGatewayStatus ((DpId) 0x13E7) /* 5095 Ipv6Addr */ #define DPoint_G5_IpVersionStatus ((DpId) 0x13E8) /* 5096 IpVersion */ #define DPoint_G6_SerialDTRStatus ((DpId) 0x141D) /* 5149 CommsSerialPinStatus */ #define DPoint_G6_SerialDSRStatus ((DpId) 0x141E) /* 5150 CommsSerialPinStatus */ #define DPoint_G6_SerialCDStatus ((DpId) 0x141F) /* 5151 CommsSerialPinStatus */ #define DPoint_G6_SerialRTSStatus ((DpId) 0x1420) /* 5152 CommsSerialPinStatus */ #define DPoint_G6_SerialCTSStatus ((DpId) 0x1421) /* 5153 CommsSerialPinStatus */ #define DPoint_G6_SerialRIStatus ((DpId) 0x1422) /* 5154 CommsSerialPinStatus */ #define DPoint_G6_ConnectionStatus ((DpId) 0x1423) /* 5155 CommsConnectionStatus */ #define DPoint_G6_BytesReceivedStatus ((DpId) 0x1424) /* 5156 UI32 */ #define DPoint_G6_BytesTransmittedStatus ((DpId) 0x1425) /* 5157 UI32 */ #define DPoint_G6_PacketsReceivedStatus ((DpId) 0x1426) /* 5158 UI32 */ #define DPoint_G6_PacketsTransmittedStatus ((DpId) 0x1427) /* 5159 UI32 */ #define DPoint_G6_ErrorPacketsReceivedStatus ((DpId) 0x1428) /* 5160 UI32 */ #define DPoint_G6_ErrorPacketsTransmittedStatus ((DpId) 0x1429) /* 5161 UI32 */ #define DPoint_G6_IpAddrStatus ((DpId) 0x142A) /* 5162 IpAddr */ #define DPoint_G6_SubnetMaskStatus ((DpId) 0x142B) /* 5163 IpAddr */ #define DPoint_G6_DefaultGatewayStatus ((DpId) 0x142C) /* 5164 IpAddr */ #define DPoint_G6_PortDetectedType ((DpId) 0x142D) /* 5165 CommsPortDetectedType */ #define DPoint_G6_PortDetectedName ((DpId) 0x142E) /* 5166 Str */ #define DPoint_G6_SerialTxTestStatus ((DpId) 0x142F) /* 5167 OnOff */ #define DPoint_G6_PacketsReceivedStatusIPv6 ((DpId) 0x1430) /* 5168 UI32 */ #define DPoint_G6_PacketsTransmittedStatusIPv6 ((DpId) 0x1431) /* 5169 UI32 */ #define DPoint_G6_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x1432) /* 5170 UI32 */ #define DPoint_G6_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x1433) /* 5171 UI32 */ #define DPoint_G6_Ipv6AddrStatus ((DpId) 0x1434) /* 5172 Ipv6Addr */ #define DPoint_G6_LanPrefixLengthStatus ((DpId) 0x1435) /* 5173 UI8 */ #define DPoint_G6_Ipv6DefaultGatewayStatus ((DpId) 0x1436) /* 5174 Ipv6Addr */ #define DPoint_G6_IpVersionStatus ((DpId) 0x1437) /* 5175 IpVersion */ #define DPoint_G7_SerialDTRStatus ((DpId) 0x146C) /* 5228 CommsSerialPinStatus */ #define DPoint_G7_SerialDSRStatus ((DpId) 0x146D) /* 5229 CommsSerialPinStatus */ #define DPoint_G7_SerialCDStatus ((DpId) 0x146E) /* 5230 CommsSerialPinStatus */ #define DPoint_G7_SerialRTSStatus ((DpId) 0x146F) /* 5231 CommsSerialPinStatus */ #define DPoint_G7_SerialCTSStatus ((DpId) 0x1470) /* 5232 CommsSerialPinStatus */ #define DPoint_G7_SerialRIStatus ((DpId) 0x1471) /* 5233 CommsSerialPinStatus */ #define DPoint_G7_ConnectionStatus ((DpId) 0x1472) /* 5234 CommsConnectionStatus */ #define DPoint_G7_BytesReceivedStatus ((DpId) 0x1473) /* 5235 UI32 */ #define DPoint_G7_BytesTransmittedStatus ((DpId) 0x1474) /* 5236 UI32 */ #define DPoint_G7_PacketsReceivedStatus ((DpId) 0x1475) /* 5237 UI32 */ #define DPoint_G7_PacketsTransmittedStatus ((DpId) 0x1476) /* 5238 UI32 */ #define DPoint_G7_ErrorPacketsReceivedStatus ((DpId) 0x1477) /* 5239 UI32 */ #define DPoint_G7_ErrorPacketsTransmittedStatus ((DpId) 0x1478) /* 5240 UI32 */ #define DPoint_G7_IpAddrStatus ((DpId) 0x1479) /* 5241 IpAddr */ #define DPoint_G7_SubnetMaskStatus ((DpId) 0x147A) /* 5242 IpAddr */ #define DPoint_G7_DefaultGatewayStatus ((DpId) 0x147B) /* 5243 IpAddr */ #define DPoint_G7_PortDetectedType ((DpId) 0x147C) /* 5244 CommsPortDetectedType */ #define DPoint_G7_PortDetectedName ((DpId) 0x147D) /* 5245 Str */ #define DPoint_G7_SerialTxTestStatus ((DpId) 0x147E) /* 5246 OnOff */ #define DPoint_G7_PacketsReceivedStatusIPv6 ((DpId) 0x147F) /* 5247 UI32 */ #define DPoint_G7_PacketsTransmittedStatusIPv6 ((DpId) 0x1480) /* 5248 UI32 */ #define DPoint_G7_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x1481) /* 5249 UI32 */ #define DPoint_G7_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x1482) /* 5250 UI32 */ #define DPoint_G7_Ipv6AddrStatus ((DpId) 0x1483) /* 5251 Ipv6Addr */ #define DPoint_G7_LanPrefixLengthStatus ((DpId) 0x1484) /* 5252 UI8 */ #define DPoint_G7_Ipv6DefaultGatewayStatus ((DpId) 0x1485) /* 5253 Ipv6Addr */ #define DPoint_G7_IpVersionStatus ((DpId) 0x1486) /* 5254 IpVersion */ #define DPoint_G8_SerialDTRStatus ((DpId) 0x14BC) /* 5308 CommsSerialPinStatus */ #define DPoint_G8_SerialDSRStatus ((DpId) 0x14BD) /* 5309 CommsSerialPinStatus */ #define DPoint_G8_SerialCDStatus ((DpId) 0x14BE) /* 5310 CommsSerialPinStatus */ #define DPoint_G8_SerialRTSStatus ((DpId) 0x14BF) /* 5311 CommsSerialPinStatus */ #define DPoint_G8_SerialCTSStatus ((DpId) 0x14C0) /* 5312 CommsSerialPinStatus */ #define DPoint_G8_SerialRIStatus ((DpId) 0x14C1) /* 5313 CommsSerialPinStatus */ #define DPoint_G8_ConnectionStatus ((DpId) 0x14C2) /* 5314 CommsConnectionStatus */ #define DPoint_G8_BytesReceivedStatus ((DpId) 0x14C3) /* 5315 UI32 */ #define DPoint_G8_BytesTransmittedStatus ((DpId) 0x14C4) /* 5316 UI32 */ #define DPoint_G8_PacketsReceivedStatus ((DpId) 0x14C5) /* 5317 UI32 */ #define DPoint_G8_PacketsTransmittedStatus ((DpId) 0x14C6) /* 5318 UI32 */ #define DPoint_G8_ErrorPacketsReceivedStatus ((DpId) 0x14C7) /* 5319 UI32 */ #define DPoint_G8_ErrorPacketsTransmittedStatus ((DpId) 0x14C8) /* 5320 UI32 */ #define DPoint_G8_IpAddrStatus ((DpId) 0x14C9) /* 5321 IpAddr */ #define DPoint_G8_SubnetMaskStatus ((DpId) 0x14CA) /* 5322 IpAddr */ #define DPoint_G8_DefaultGatewayStatus ((DpId) 0x14CB) /* 5323 IpAddr */ #define DPoint_G8_PortDetectedType ((DpId) 0x14CC) /* 5324 CommsPortDetectedType */ #define DPoint_G8_PortDetectedName ((DpId) 0x14CD) /* 5325 Str */ #define DPoint_G8_SerialTxTestStatus ((DpId) 0x14CE) /* 5326 OnOff */ #define DPoint_G8_PacketsReceivedStatusIPv6 ((DpId) 0x14CF) /* 5327 UI32 */ #define DPoint_G8_PacketsTransmittedStatusIPv6 ((DpId) 0x14D0) /* 5328 UI32 */ #define DPoint_G8_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x14D1) /* 5329 UI32 */ #define DPoint_G8_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x14D2) /* 5330 UI32 */ #define DPoint_G8_Ipv6AddrStatus ((DpId) 0x14D3) /* 5331 Ipv6Addr */ #define DPoint_G8_LanPrefixLengthStatus ((DpId) 0x14D4) /* 5332 UI8 */ #define DPoint_G8_Ipv6DefaultGatewayStatus ((DpId) 0x14D5) /* 5333 Ipv6Addr */ #define DPoint_G8_IpVersionStatus ((DpId) 0x14D6) /* 5334 IpVersion */ #define DPoint_G5_SerialPortTestCmd ((DpId) 0x150C) /* 5388 Signal */ #define DPoint_G5_SerialPortHangupCmd ((DpId) 0x150D) /* 5389 Signal */ #define DPoint_G5_BytesReceivedResetCmd ((DpId) 0x150E) /* 5390 Signal */ #define DPoint_G5_BytesTransmittedResetCmd ((DpId) 0x150F) /* 5391 Signal */ #define DPoint_G6_SerialPortTestCmd ((DpId) 0x1534) /* 5428 Signal */ #define DPoint_G6_SerialPortHangupCmd ((DpId) 0x1535) /* 5429 Signal */ #define DPoint_G6_BytesReceivedResetCmd ((DpId) 0x1536) /* 5430 Signal */ #define DPoint_G6_BytesTransmittedResetCmd ((DpId) 0x1537) /* 5431 Signal */ #define DPoint_G7_SerialPortTestCmd ((DpId) 0x155C) /* 5468 Signal */ #define DPoint_G7_SerialPortHangupCmd ((DpId) 0x155D) /* 5469 Signal */ #define DPoint_G7_BytesReceivedResetCmd ((DpId) 0x155E) /* 5470 Signal */ #define DPoint_G7_BytesTransmittedResetCmd ((DpId) 0x155F) /* 5471 Signal */ #define DPoint_G8_SerialPortTestCmd ((DpId) 0x1584) /* 5508 Signal */ #define DPoint_G8_SerialPortHangupCmd ((DpId) 0x1585) /* 5509 Signal */ #define DPoint_G8_BytesReceivedResetCmd ((DpId) 0x1586) /* 5510 Signal */ #define DPoint_G8_BytesTransmittedResetCmd ((DpId) 0x1587) /* 5511 Signal */ #define DPoint_G5_SerialBaudRate ((DpId) 0x15AC) /* 5548 CommsSerialBaudRate */ #define DPoint_G5_SerialDuplexType ((DpId) 0x15AD) /* 5549 CommsSerialDuplex */ #define DPoint_G5_SerialRTSMode ((DpId) 0x15AE) /* 5550 CommsSerialRTSMode */ #define DPoint_G5_SerialRTSOnLevel ((DpId) 0x15AF) /* 5551 CommsSerialRTSOnLevel */ #define DPoint_G5_SerialDTRMode ((DpId) 0x15B0) /* 5552 CommsSerialDTRMode */ #define DPoint_G5_SerialDTROnLevel ((DpId) 0x15B1) /* 5553 CommsSerialDTROnLevel */ #define DPoint_G5_SerialParity ((DpId) 0x15B2) /* 5554 CommsSerialParity */ #define DPoint_G5_SerialCTSMode ((DpId) 0x15B3) /* 5555 CommsSerialCTSMode */ #define DPoint_G5_SerialDSRMode ((DpId) 0x15B4) /* 5556 CommsSerialDSRMode */ #define DPoint_G5_SerialDTRLowTime ((DpId) 0x15B6) /* 5558 UI32 */ #define DPoint_G5_SerialTxDelay ((DpId) 0x15B7) /* 5559 UI32 */ #define DPoint_G5_SerialPreTxTime ((DpId) 0x15B8) /* 5560 UI32 */ #define DPoint_G5_SerialDCDFallTime ((DpId) 0x15B9) /* 5561 UI32 */ #define DPoint_G5_SerialCharTimeout ((DpId) 0x15BA) /* 5562 UI32 */ #define DPoint_G5_SerialPostTxTime ((DpId) 0x15BB) /* 5563 UI32 */ #define DPoint_G5_SerialInactivityTime ((DpId) 0x15BC) /* 5564 UI32 */ #define DPoint_G5_SerialCollisionAvoidance ((DpId) 0x15BD) /* 5565 Bool */ #define DPoint_G5_SerialMinIdleTime ((DpId) 0x15BE) /* 5566 UI32 */ #define DPoint_G5_SerialMaxRandomDelay ((DpId) 0x15BF) /* 5567 UI32 */ #define DPoint_G5_ModemPoweredFromExtLoad ((DpId) 0x15C0) /* 5568 Bool */ #define DPoint_G5_ModemUsedWithLeasedLine ((DpId) 0x15C1) /* 5569 Bool */ #define DPoint_G5_ModemInitString ((DpId) 0x15C2) /* 5570 Str */ #define DPoint_G5_ModemMaxCallDuration ((DpId) 0x15CC) /* 5580 UI32 */ #define DPoint_G5_ModemResponseTime ((DpId) 0x15CD) /* 5581 UI32 */ #define DPoint_G5_ModemHangUpCommand ((DpId) 0x15CE) /* 5582 Str */ #define DPoint_G5_ModemOffHookCommand ((DpId) 0x15CF) /* 5583 Str */ #define DPoint_G5_ModemAutoAnswerOn ((DpId) 0x15D0) /* 5584 Str */ #define DPoint_G5_ModemAutoAnswerOff ((DpId) 0x15D1) /* 5585 Str */ #define DPoint_G5_RadioPreamble ((DpId) 0x15D2) /* 5586 Bool */ #define DPoint_G5_RadioPreambleChar ((DpId) 0x15D3) /* 5587 UI8 */ #define DPoint_G5_RadioPreambleRepeat ((DpId) 0x15D4) /* 5588 UI32 */ #define DPoint_G5_RadioPreambleLastChar ((DpId) 0x15D5) /* 5589 UI8 */ #define DPoint_G5_LanSpecifyIP ((DpId) 0x15D6) /* 5590 YesNo */ #define DPoint_G5_LanIPAddr ((DpId) 0x15D7) /* 5591 IpAddr */ #define DPoint_G5_LanSubnetMask ((DpId) 0x15D8) /* 5592 IpAddr */ #define DPoint_G5_LanDefaultGateway ((DpId) 0x15D9) /* 5593 IpAddr */ #define DPoint_G5_WlanNetworkSSID ((DpId) 0x15DA) /* 5594 Str */ #define DPoint_G5_WlanNetworkAuthentication ((DpId) 0x15DB) /* 5595 CommsWlanNetworkAuthentication */ #define DPoint_G5_WlanDataEncryption ((DpId) 0x15DC) /* 5596 CommsWlanDataEncryption */ #define DPoint_G5_WlanNetworkKey ((DpId) 0x15DD) /* 5597 Str */ #define DPoint_G5_WlanKeyIndex ((DpId) 0x15DE) /* 5598 UI32 */ #define DPoint_G5_PortLocalRemoteMode ((DpId) 0x15DF) /* 5599 LocalRemote */ #define DPoint_G5_GPRSServiceProvider ((DpId) 0x15E0) /* 5600 Str */ #define DPoint_G5_GPRSUserName ((DpId) 0x15E3) /* 5603 Str */ #define DPoint_G5_GPRSPassWord ((DpId) 0x15E4) /* 5604 Str */ #define DPoint_G5_SerialDebugMode ((DpId) 0x15E5) /* 5605 YesNo */ #define DPoint_G5_SerialDebugFileName ((DpId) 0x15E6) /* 5606 Str */ #define DPoint_G5_GPRSBaudRate ((DpId) 0x15E7) /* 5607 CommsSerialBaudRate */ #define DPoint_G5_GPRSConnectionTimeout ((DpId) 0x15E8) /* 5608 UI32 */ #define DPoint_G5_DNP3InputPipe ((DpId) 0x15E9) /* 5609 Str */ #define DPoint_G5_DNP3OutputPipe ((DpId) 0x15EA) /* 5610 Str */ #define DPoint_G5_CMSInputPipe ((DpId) 0x15EB) /* 5611 Str */ #define DPoint_G5_CMSOutputPipe ((DpId) 0x15EC) /* 5612 Str */ #define DPoint_G5_HMIInputPipe ((DpId) 0x15ED) /* 5613 Str */ #define DPoint_G5_HMIOutputPipe ((DpId) 0x15EE) /* 5614 Str */ #define DPoint_G5_DNP3ChannelRequest ((DpId) 0x15EF) /* 5615 Str */ #define DPoint_G5_DNP3ChannelOpen ((DpId) 0x15F0) /* 5616 Str */ #define DPoint_G5_CMSChannelRequest ((DpId) 0x15F1) /* 5617 Str */ #define DPoint_G5_CMSChannelOpen ((DpId) 0x15F2) /* 5618 Str */ #define DPoint_G5_HMIChannelRequest ((DpId) 0x15F3) /* 5619 Str */ #define DPoint_G5_HMIChannelOpen ((DpId) 0x15F4) /* 5620 Str */ #define DPoint_G5_GPRSUseModemSetting ((DpId) 0x15F5) /* 5621 YesNo */ #define DPoint_G5_SerialFlowControlMode ((DpId) 0x15F6) /* 5622 CommsSerialFlowControlMode */ #define DPoint_G5_SerialDCDControlMode ((DpId) 0x15F7) /* 5623 CommsSerialDCDControlMode */ #define DPoint_G5_T10BInputPipe ((DpId) 0x15F8) /* 5624 Str */ #define DPoint_G5_T10BOutputPipe ((DpId) 0x15F9) /* 5625 Str */ #define DPoint_G5_T10BChannelRequest ((DpId) 0x15FA) /* 5626 Str */ #define DPoint_G5_T10BChannelOpen ((DpId) 0x15FB) /* 5627 Str */ #define DPoint_G5_P2PInputPipe ((DpId) 0x15FC) /* 5628 Str */ #define DPoint_G5_P2POutputPipe ((DpId) 0x15FD) /* 5629 Str */ #define DPoint_G5_P2PChannelRequest ((DpId) 0x15FE) /* 5630 Str */ #define DPoint_G5_P2PChannelOpen ((DpId) 0x15FF) /* 5631 Str */ #define DPoint_G5_PGEInputPipe ((DpId) 0x1600) /* 5632 Str */ #define DPoint_G5_PGEOutputPipe ((DpId) 0x1601) /* 5633 Str */ #define DPoint_G5_PGEChannelRequest ((DpId) 0x1602) /* 5634 Str */ #define DPoint_G5_PGEChannelOpen ((DpId) 0x1603) /* 5635 Str */ #define DPoint_G5_LanProvideIP ((DpId) 0x1604) /* 5636 YesNo */ #define DPoint_G5_LanSpecifyIPv6 ((DpId) 0x1605) /* 5637 YesNo */ #define DPoint_G5_LanIPv6Addr ((DpId) 0x1606) /* 5638 Ipv6Addr */ #define DPoint_G5_LanPrefixLength ((DpId) 0x1607) /* 5639 UI8 */ #define DPoint_G5_LanIPv6DefaultGateway ((DpId) 0x1608) /* 5640 Ipv6Addr */ #define DPoint_G5_LanIpVersion ((DpId) 0x1609) /* 5641 IpVersion */ #define DPoint_G6_SerialBaudRate ((DpId) 0x1674) /* 5748 CommsSerialBaudRate */ #define DPoint_G6_SerialDuplexType ((DpId) 0x1675) /* 5749 CommsSerialDuplex */ #define DPoint_G6_SerialRTSMode ((DpId) 0x1676) /* 5750 CommsSerialRTSMode */ #define DPoint_G6_SerialRTSOnLevel ((DpId) 0x1677) /* 5751 CommsSerialRTSOnLevel */ #define DPoint_G6_SerialDTRMode ((DpId) 0x1678) /* 5752 CommsSerialDTRMode */ #define DPoint_G6_SerialDTROnLevel ((DpId) 0x1679) /* 5753 CommsSerialDTROnLevel */ #define DPoint_G6_SerialParity ((DpId) 0x167A) /* 5754 CommsSerialParity */ #define DPoint_G6_SerialCTSMode ((DpId) 0x167B) /* 5755 CommsSerialCTSMode */ #define DPoint_G6_SerialDSRMode ((DpId) 0x167C) /* 5756 CommsSerialDSRMode */ #define DPoint_G6_SerialDTRLowTime ((DpId) 0x167E) /* 5758 UI32 */ #define DPoint_G6_SerialTxDelay ((DpId) 0x167F) /* 5759 UI32 */ #define DPoint_G6_SerialPreTxTime ((DpId) 0x1680) /* 5760 UI32 */ #define DPoint_G6_SerialDCDFallTime ((DpId) 0x1681) /* 5761 UI32 */ #define DPoint_G6_SerialCharTimeout ((DpId) 0x1682) /* 5762 UI32 */ #define DPoint_G6_SerialPostTxTime ((DpId) 0x1683) /* 5763 UI32 */ #define DPoint_G6_SerialInactivityTime ((DpId) 0x1684) /* 5764 UI32 */ #define DPoint_G6_SerialCollisionAvoidance ((DpId) 0x1685) /* 5765 Bool */ #define DPoint_G6_SerialMinIdleTime ((DpId) 0x1686) /* 5766 UI32 */ #define DPoint_G6_SerialMaxRandomDelay ((DpId) 0x1687) /* 5767 UI32 */ #define DPoint_G6_ModemPoweredFromExtLoad ((DpId) 0x1688) /* 5768 Bool */ #define DPoint_G6_ModemUsedWithLeasedLine ((DpId) 0x1689) /* 5769 Bool */ #define DPoint_G6_ModemInitString ((DpId) 0x168A) /* 5770 Str */ #define DPoint_G6_ModemMaxCallDuration ((DpId) 0x1694) /* 5780 UI32 */ #define DPoint_G6_ModemResponseTime ((DpId) 0x1695) /* 5781 UI32 */ #define DPoint_G6_ModemHangUpCommand ((DpId) 0x1696) /* 5782 Str */ #define DPoint_G6_ModemOffHookCommand ((DpId) 0x1697) /* 5783 Str */ #define DPoint_G6_ModemAutoAnswerOn ((DpId) 0x1698) /* 5784 Str */ #define DPoint_G6_ModemAutoAnswerOff ((DpId) 0x1699) /* 5785 Str */ #define DPoint_G6_RadioPreamble ((DpId) 0x169A) /* 5786 Bool */ #define DPoint_G6_RadioPreambleChar ((DpId) 0x169B) /* 5787 UI8 */ #define DPoint_G6_RadioPreambleRepeat ((DpId) 0x169C) /* 5788 UI32 */ #define DPoint_G6_RadioPreambleLastChar ((DpId) 0x169D) /* 5789 UI8 */ #define DPoint_G6_LanSpecifyIP ((DpId) 0x169E) /* 5790 YesNo */ #define DPoint_G6_LanIPAddr ((DpId) 0x169F) /* 5791 IpAddr */ #define DPoint_G6_LanSubnetMask ((DpId) 0x16A0) /* 5792 IpAddr */ #define DPoint_G6_LanDefaultGateway ((DpId) 0x16A1) /* 5793 IpAddr */ #define DPoint_G6_WlanNetworkSSID ((DpId) 0x16A2) /* 5794 Str */ #define DPoint_G6_WlanNetworkAuthentication ((DpId) 0x16A3) /* 5795 CommsWlanNetworkAuthentication */ #define DPoint_G6_WlanDataEncryption ((DpId) 0x16A4) /* 5796 CommsWlanDataEncryption */ #define DPoint_G6_WlanNetworkKey ((DpId) 0x16A5) /* 5797 Str */ #define DPoint_G6_WlanKeyIndex ((DpId) 0x16A6) /* 5798 UI32 */ #define DPoint_G6_PortLocalRemoteMode ((DpId) 0x16A7) /* 5799 LocalRemote */ #define DPoint_G6_GPRSServiceProvider ((DpId) 0x16A8) /* 5800 Str */ #define DPoint_G6_GPRSUserName ((DpId) 0x16AB) /* 5803 Str */ #define DPoint_G6_GPRSPassWord ((DpId) 0x16AC) /* 5804 Str */ #define DPoint_G6_SerialDebugMode ((DpId) 0x16AD) /* 5805 YesNo */ #define DPoint_G6_SerialDebugFileName ((DpId) 0x16AE) /* 5806 Str */ #define DPoint_G6_GPRSBaudRate ((DpId) 0x16AF) /* 5807 CommsSerialBaudRate */ #define DPoint_G6_GPRSConnectionTimeout ((DpId) 0x16B0) /* 5808 UI32 */ #define DPoint_G6_DNP3InputPipe ((DpId) 0x16B1) /* 5809 Str */ #define DPoint_G6_DNP3OutputPipe ((DpId) 0x16B2) /* 5810 Str */ #define DPoint_G6_CMSInputPipe ((DpId) 0x16B3) /* 5811 Str */ #define DPoint_G6_CMSOutputPipe ((DpId) 0x16B4) /* 5812 Str */ #define DPoint_G6_HMIInputPipe ((DpId) 0x16B5) /* 5813 Str */ #define DPoint_G6_HMIOutputPipe ((DpId) 0x16B6) /* 5814 Str */ #define DPoint_G6_DNP3ChannelRequest ((DpId) 0x16B7) /* 5815 Str */ #define DPoint_G6_DNP3ChannelOpen ((DpId) 0x16B8) /* 5816 Str */ #define DPoint_G6_CMSChannelRequest ((DpId) 0x16B9) /* 5817 Str */ #define DPoint_G6_CMSChannelOpen ((DpId) 0x16BA) /* 5818 Str */ #define DPoint_G6_HMIChannelRequest ((DpId) 0x16BB) /* 5819 Str */ #define DPoint_G6_HMIChannelOpen ((DpId) 0x16BC) /* 5820 Str */ #define DPoint_G6_GPRSUseModemSetting ((DpId) 0x16BD) /* 5821 YesNo */ #define DPoint_G6_SerialFlowControlMode ((DpId) 0x16BE) /* 5822 CommsSerialFlowControlMode */ #define DPoint_G6_SerialDCDControlMode ((DpId) 0x16BF) /* 5823 CommsSerialDCDControlMode */ #define DPoint_G6_T10BInputPipe ((DpId) 0x16C0) /* 5824 Str */ #define DPoint_G6_T10BOutputPipe ((DpId) 0x16C1) /* 5825 Str */ #define DPoint_G6_T10BChannelRequest ((DpId) 0x16C2) /* 5826 Str */ #define DPoint_G6_T10BChannelOpen ((DpId) 0x16C3) /* 5827 Str */ #define DPoint_G6_P2PInputPipe ((DpId) 0x16C4) /* 5828 Str */ #define DPoint_G6_P2POutputPipe ((DpId) 0x16C5) /* 5829 Str */ #define DPoint_G6_P2PChannelRequest ((DpId) 0x16C6) /* 5830 Str */ #define DPoint_G6_P2PChannelOpen ((DpId) 0x16C7) /* 5831 Str */ #define DPoint_G6_PGEInputPipe ((DpId) 0x16C8) /* 5832 Str */ #define DPoint_G6_PGEOutputPipe ((DpId) 0x16C9) /* 5833 Str */ #define DPoint_G6_PGEChannelRequest ((DpId) 0x16CA) /* 5834 Str */ #define DPoint_G6_PGEChannelOpen ((DpId) 0x16CB) /* 5835 Str */ #define DPoint_G6_LanProvideIP ((DpId) 0x16CC) /* 5836 YesNo */ #define DPoint_G6_LanSpecifyIPv6 ((DpId) 0x16CD) /* 5837 YesNo */ #define DPoint_G6_LanIPv6Addr ((DpId) 0x16CE) /* 5838 Ipv6Addr */ #define DPoint_G6_LanPrefixLength ((DpId) 0x16CF) /* 5839 UI8 */ #define DPoint_G6_LanIPv6DefaultGateway ((DpId) 0x16D0) /* 5840 Ipv6Addr */ #define DPoint_G6_LanIpVersion ((DpId) 0x16D1) /* 5841 IpVersion */ #define DPoint_G7_SerialBaudRate ((DpId) 0x173C) /* 5948 CommsSerialBaudRate */ #define DPoint_G7_SerialDuplexType ((DpId) 0x173D) /* 5949 CommsSerialDuplex */ #define DPoint_G7_SerialRTSMode ((DpId) 0x173E) /* 5950 CommsSerialRTSMode */ #define DPoint_G7_SerialRTSOnLevel ((DpId) 0x173F) /* 5951 CommsSerialRTSOnLevel */ #define DPoint_G7_SerialDTRMode ((DpId) 0x1740) /* 5952 CommsSerialDTRMode */ #define DPoint_G7_SerialDTROnLevel ((DpId) 0x1741) /* 5953 CommsSerialDTROnLevel */ #define DPoint_G7_SerialParity ((DpId) 0x1742) /* 5954 CommsSerialParity */ #define DPoint_G7_SerialCTSMode ((DpId) 0x1743) /* 5955 CommsSerialCTSMode */ #define DPoint_G7_SerialDSRMode ((DpId) 0x1744) /* 5956 CommsSerialDSRMode */ #define DPoint_G7_SerialDTRLowTime ((DpId) 0x1746) /* 5958 UI32 */ #define DPoint_G7_SerialTxDelay ((DpId) 0x1747) /* 5959 UI32 */ #define DPoint_G7_SerialPreTxTime ((DpId) 0x1748) /* 5960 UI32 */ #define DPoint_G7_SerialDCDFallTime ((DpId) 0x1749) /* 5961 UI32 */ #define DPoint_G7_SerialCharTimeout ((DpId) 0x174A) /* 5962 UI32 */ #define DPoint_G7_SerialPostTxTime ((DpId) 0x174B) /* 5963 UI32 */ #define DPoint_G7_SerialInactivityTime ((DpId) 0x174C) /* 5964 UI32 */ #define DPoint_G7_SerialCollisionAvoidance ((DpId) 0x174D) /* 5965 Bool */ #define DPoint_G7_SerialMinIdleTime ((DpId) 0x174E) /* 5966 UI32 */ #define DPoint_G7_SerialMaxRandomDelay ((DpId) 0x174F) /* 5967 UI32 */ #define DPoint_G7_ModemPoweredFromExtLoad ((DpId) 0x1750) /* 5968 Bool */ #define DPoint_G7_ModemUsedWithLeasedLine ((DpId) 0x1751) /* 5969 Bool */ #define DPoint_G7_ModemInitString ((DpId) 0x1752) /* 5970 Str */ #define DPoint_G7_ModemMaxCallDuration ((DpId) 0x175C) /* 5980 UI32 */ #define DPoint_G7_ModemResponseTime ((DpId) 0x175D) /* 5981 UI32 */ #define DPoint_G7_ModemHangUpCommand ((DpId) 0x175E) /* 5982 Str */ #define DPoint_G7_ModemOffHookCommand ((DpId) 0x175F) /* 5983 Str */ #define DPoint_G7_ModemAutoAnswerOn ((DpId) 0x1760) /* 5984 Str */ #define DPoint_G7_ModemAutoAnswerOff ((DpId) 0x1761) /* 5985 Str */ #define DPoint_G7_RadioPreamble ((DpId) 0x1762) /* 5986 Bool */ #define DPoint_G7_RadioPreambleChar ((DpId) 0x1763) /* 5987 UI8 */ #define DPoint_G7_RadioPreambleRepeat ((DpId) 0x1764) /* 5988 UI32 */ #define DPoint_G7_RadioPreambleLastChar ((DpId) 0x1765) /* 5989 UI8 */ #define DPoint_G7_LanSpecifyIP ((DpId) 0x1766) /* 5990 YesNo */ #define DPoint_G7_LanIPAddr ((DpId) 0x1767) /* 5991 IpAddr */ #define DPoint_G7_LanSubnetMask ((DpId) 0x1768) /* 5992 IpAddr */ #define DPoint_G7_LanDefaultGateway ((DpId) 0x1769) /* 5993 IpAddr */ #define DPoint_G7_WlanNetworkSSID ((DpId) 0x176A) /* 5994 Str */ #define DPoint_G7_WlanNetworkAuthentication ((DpId) 0x176B) /* 5995 CommsWlanNetworkAuthentication */ #define DPoint_G7_WlanDataEncryption ((DpId) 0x176C) /* 5996 CommsWlanDataEncryption */ #define DPoint_G7_WlanNetworkKey ((DpId) 0x176D) /* 5997 Str */ #define DPoint_G7_WlanKeyIndex ((DpId) 0x176E) /* 5998 UI32 */ #define DPoint_G7_PortLocalRemoteMode ((DpId) 0x176F) /* 5999 LocalRemote */ #define DPoint_G7_GPRSServiceProvider ((DpId) 0x1770) /* 6000 Str */ #define DPoint_G7_GPRSUserName ((DpId) 0x1773) /* 6003 Str */ #define DPoint_G7_GPRSPassWord ((DpId) 0x1774) /* 6004 Str */ #define DPoint_G7_SerialDebugMode ((DpId) 0x1775) /* 6005 YesNo */ #define DPoint_G7_SerialDebugFileName ((DpId) 0x1776) /* 6006 Str */ #define DPoint_G7_GPRSBaudRate ((DpId) 0x1777) /* 6007 CommsSerialBaudRate */ #define DPoint_G7_GPRSConnectionTimeout ((DpId) 0x1778) /* 6008 UI32 */ #define DPoint_G7_DNP3InputPipe ((DpId) 0x1779) /* 6009 Str */ #define DPoint_G7_DNP3OutputPipe ((DpId) 0x177A) /* 6010 Str */ #define DPoint_G7_CMSInputPipe ((DpId) 0x177B) /* 6011 Str */ #define DPoint_G7_CMSOutputPipe ((DpId) 0x177C) /* 6012 Str */ #define DPoint_G7_HMIInputPipe ((DpId) 0x177D) /* 6013 Str */ #define DPoint_G7_HMIOutputPipe ((DpId) 0x177E) /* 6014 Str */ #define DPoint_G7_DNP3ChannelRequest ((DpId) 0x177F) /* 6015 Str */ #define DPoint_G7_DNP3ChannelOpen ((DpId) 0x1780) /* 6016 Str */ #define DPoint_G7_CMSChannelRequest ((DpId) 0x1781) /* 6017 Str */ #define DPoint_G7_CMSChannelOpen ((DpId) 0x1782) /* 6018 Str */ #define DPoint_G7_HMIChannelRequest ((DpId) 0x1783) /* 6019 Str */ #define DPoint_G7_HMIChannelOpen ((DpId) 0x1784) /* 6020 Str */ #define DPoint_G7_GPRSUseModemSetting ((DpId) 0x1785) /* 6021 YesNo */ #define DPoint_G7_SerialFlowControlMode ((DpId) 0x1786) /* 6022 CommsSerialFlowControlMode */ #define DPoint_G7_SerialDCDControlMode ((DpId) 0x1787) /* 6023 CommsSerialDCDControlMode */ #define DPoint_G7_T10BInputPipe ((DpId) 0x1788) /* 6024 Str */ #define DPoint_G7_T10BOutputPipe ((DpId) 0x1789) /* 6025 Str */ #define DPoint_G7_T10BChannelRequest ((DpId) 0x178A) /* 6026 Str */ #define DPoint_G7_T10BChannelOpen ((DpId) 0x178B) /* 6027 Str */ #define DPoint_G7_P2PInputPipe ((DpId) 0x178C) /* 6028 Str */ #define DPoint_G7_P2POutputPipe ((DpId) 0x178D) /* 6029 Str */ #define DPoint_G7_P2PChannelRequest ((DpId) 0x178E) /* 6030 Str */ #define DPoint_G7_P2PChannelOpen ((DpId) 0x178F) /* 6031 Str */ #define DPoint_G7_PGEInputPipe ((DpId) 0x1790) /* 6032 Str */ #define DPoint_G7_PGEOutputPipe ((DpId) 0x1791) /* 6033 Str */ #define DPoint_G7_PGEChannelRequest ((DpId) 0x1792) /* 6034 Str */ #define DPoint_G7_PGEChannelOpen ((DpId) 0x1793) /* 6035 Str */ #define DPoint_G7_LanProvideIP ((DpId) 0x1794) /* 6036 YesNo */ #define DPoint_G7_LanSpecifyIPv6 ((DpId) 0x1795) /* 6037 YesNo */ #define DPoint_G7_LanIPv6Addr ((DpId) 0x1796) /* 6038 Ipv6Addr */ #define DPoint_G7_LanPrefixLength ((DpId) 0x1797) /* 6039 UI8 */ #define DPoint_G7_LanIPv6DefaultGateway ((DpId) 0x1798) /* 6040 Ipv6Addr */ #define DPoint_G7_LanIpVersion ((DpId) 0x1799) /* 6041 IpVersion */ #define DPoint_G8_SerialBaudRate ((DpId) 0x1804) /* 6148 CommsSerialBaudRate */ #define DPoint_G8_SerialDuplexType ((DpId) 0x1805) /* 6149 CommsSerialDuplex */ #define DPoint_G8_SerialRTSMode ((DpId) 0x1806) /* 6150 CommsSerialRTSMode */ #define DPoint_G8_SerialRTSOnLevel ((DpId) 0x1807) /* 6151 CommsSerialRTSOnLevel */ #define DPoint_G8_SerialDTRMode ((DpId) 0x1808) /* 6152 CommsSerialDTRMode */ #define DPoint_G8_SerialDTROnLevel ((DpId) 0x1809) /* 6153 CommsSerialDTROnLevel */ #define DPoint_G8_SerialParity ((DpId) 0x180A) /* 6154 CommsSerialParity */ #define DPoint_G8_SerialCTSMode ((DpId) 0x180B) /* 6155 CommsSerialCTSMode */ #define DPoint_G8_SerialDSRMode ((DpId) 0x180C) /* 6156 CommsSerialDSRMode */ #define DPoint_G8_SerialDTRLowTime ((DpId) 0x180E) /* 6158 UI32 */ #define DPoint_G8_SerialTxDelay ((DpId) 0x180F) /* 6159 UI32 */ #define DPoint_G8_SerialPreTxTime ((DpId) 0x1810) /* 6160 UI32 */ #define DPoint_G8_SerialDCDFallTime ((DpId) 0x1811) /* 6161 UI32 */ #define DPoint_G8_SerialCharTimeout ((DpId) 0x1812) /* 6162 UI32 */ #define DPoint_G8_SerialPostTxTime ((DpId) 0x1813) /* 6163 UI32 */ #define DPoint_G8_SerialInactivityTime ((DpId) 0x1814) /* 6164 UI32 */ #define DPoint_G8_SerialCollisionAvoidance ((DpId) 0x1815) /* 6165 Bool */ #define DPoint_G8_SerialMinIdleTime ((DpId) 0x1816) /* 6166 UI32 */ #define DPoint_G8_SerialMaxRandomDelay ((DpId) 0x1817) /* 6167 UI32 */ #define DPoint_G8_ModemPoweredFromExtLoad ((DpId) 0x1818) /* 6168 Bool */ #define DPoint_G8_ModemUsedWithLeasedLine ((DpId) 0x1819) /* 6169 Bool */ #define DPoint_G8_ModemInitString ((DpId) 0x181A) /* 6170 Str */ #define DPoint_G8_ModemMaxCallDuration ((DpId) 0x1824) /* 6180 UI32 */ #define DPoint_G8_ModemResponseTime ((DpId) 0x1825) /* 6181 UI32 */ #define DPoint_G8_ModemHangUpCommand ((DpId) 0x1826) /* 6182 Str */ #define DPoint_G8_ModemOffHookCommand ((DpId) 0x1827) /* 6183 Str */ #define DPoint_G8_ModemAutoAnswerOn ((DpId) 0x1828) /* 6184 Str */ #define DPoint_G8_ModemAutoAnswerOff ((DpId) 0x1829) /* 6185 Str */ #define DPoint_G8_RadioPreamble ((DpId) 0x182A) /* 6186 Bool */ #define DPoint_G8_RadioPreambleChar ((DpId) 0x182B) /* 6187 UI8 */ #define DPoint_G8_RadioPreambleRepeat ((DpId) 0x182C) /* 6188 UI32 */ #define DPoint_G8_RadioPreambleLastChar ((DpId) 0x182D) /* 6189 UI8 */ #define DPoint_G8_LanSpecifyIP ((DpId) 0x182E) /* 6190 YesNo */ #define DPoint_G8_LanIPAddr ((DpId) 0x182F) /* 6191 IpAddr */ #define DPoint_G8_LanSubnetMask ((DpId) 0x1830) /* 6192 IpAddr */ #define DPoint_G8_LanDefaultGateway ((DpId) 0x1831) /* 6193 IpAddr */ #define DPoint_G8_WlanNetworkSSID ((DpId) 0x1832) /* 6194 Str */ #define DPoint_G8_WlanNetworkAuthentication ((DpId) 0x1833) /* 6195 CommsWlanNetworkAuthentication */ #define DPoint_G8_WlanDataEncryption ((DpId) 0x1834) /* 6196 CommsWlanDataEncryption */ #define DPoint_G8_WlanNetworkKey ((DpId) 0x1835) /* 6197 Str */ #define DPoint_G8_WlanKeyIndex ((DpId) 0x1836) /* 6198 UI32 */ #define DPoint_G8_PortLocalRemoteMode ((DpId) 0x1837) /* 6199 LocalRemote */ #define DPoint_G8_GPRSServiceProvider ((DpId) 0x1838) /* 6200 Str */ #define DPoint_G8_GPRSUserName ((DpId) 0x183B) /* 6203 Str */ #define DPoint_G8_GPRSPassWord ((DpId) 0x183C) /* 6204 Str */ #define DPoint_G8_SerialDebugMode ((DpId) 0x183D) /* 6205 YesNo */ #define DPoint_G8_SerialDebugFileName ((DpId) 0x183E) /* 6206 Str */ #define DPoint_G8_GPRSBaudRate ((DpId) 0x183F) /* 6207 CommsSerialBaudRate */ #define DPoint_G8_GPRSConnectionTimeout ((DpId) 0x1840) /* 6208 UI32 */ #define DPoint_G8_DNP3InputPipe ((DpId) 0x1841) /* 6209 Str */ #define DPoint_G8_DNP3OutputPipe ((DpId) 0x1842) /* 6210 Str */ #define DPoint_G8_CMSInputPipe ((DpId) 0x1843) /* 6211 Str */ #define DPoint_G8_CMSOutputPipe ((DpId) 0x1844) /* 6212 Str */ #define DPoint_G8_HMIInputPipe ((DpId) 0x1845) /* 6213 Str */ #define DPoint_G8_HMIOutputPipe ((DpId) 0x1846) /* 6214 Str */ #define DPoint_G8_DNP3ChannelRequest ((DpId) 0x1847) /* 6215 Str */ #define DPoint_G8_DNP3ChannelOpen ((DpId) 0x1848) /* 6216 Str */ #define DPoint_G8_CMSChannelRequest ((DpId) 0x1849) /* 6217 Str */ #define DPoint_G8_CMSChannelOpen ((DpId) 0x184A) /* 6218 Str */ #define DPoint_G8_HMIChannelRequest ((DpId) 0x184B) /* 6219 Str */ #define DPoint_G8_HMIChannelOpen ((DpId) 0x184C) /* 6220 Str */ #define DPoint_G8_GPRSUseModemSetting ((DpId) 0x184D) /* 6221 YesNo */ #define DPoint_G8_SerialFlowControlMode ((DpId) 0x184E) /* 6222 CommsSerialFlowControlMode */ #define DPoint_G8_SerialDCDControlMode ((DpId) 0x184F) /* 6223 CommsSerialDCDControlMode */ #define DPoint_G8_T10BInputPipe ((DpId) 0x1850) /* 6224 Str */ #define DPoint_G8_T10BOutputPipe ((DpId) 0x1851) /* 6225 Str */ #define DPoint_G8_T10BChannelRequest ((DpId) 0x1852) /* 6226 Str */ #define DPoint_G8_T10BChannelOpen ((DpId) 0x1853) /* 6227 Str */ #define DPoint_G8_P2PInputPipe ((DpId) 0x1854) /* 6228 Str */ #define DPoint_G8_P2POutputPipe ((DpId) 0x1855) /* 6229 Str */ #define DPoint_G8_P2PChannelRequest ((DpId) 0x1856) /* 6230 Str */ #define DPoint_G8_P2PChannelOpen ((DpId) 0x1857) /* 6231 Str */ #define DPoint_G8_PGEInputPipe ((DpId) 0x1858) /* 6232 Str */ #define DPoint_G8_PGEOutputPipe ((DpId) 0x1859) /* 6233 Str */ #define DPoint_G8_PGEChannelRequest ((DpId) 0x185A) /* 6234 Str */ #define DPoint_G8_PGEChannelOpen ((DpId) 0x185B) /* 6235 Str */ #define DPoint_G8_LanProvideIP ((DpId) 0x185C) /* 6236 YesNo */ #define DPoint_G8_LanSpecifyIPv6 ((DpId) 0x185D) /* 6237 YesNo */ #define DPoint_G8_LanIPv6Addr ((DpId) 0x185E) /* 6238 Ipv6Addr */ #define DPoint_G8_LanPrefixLength ((DpId) 0x185F) /* 6239 UI8 */ #define DPoint_G8_LanIPv6DefaultGateway ((DpId) 0x1860) /* 6240 Ipv6Addr */ #define DPoint_G8_LanIpVersion ((DpId) 0x1861) /* 6241 IpVersion */ #define DPoint_G1_Hrm_VTHD_Mode ((DpId) 0x19C8) /* 6600 TripModeDLA */ #define DPoint_G1_Hrm_VTHD_Level ((DpId) 0x19C9) /* 6601 UI32 */ #define DPoint_G1_Hrm_VTHD_TDtMin ((DpId) 0x19CA) /* 6602 UI32 */ #define DPoint_G1_Hrm_ITDD_Mode ((DpId) 0x19CB) /* 6603 TripModeDLA */ #define DPoint_G1_Hrm_ITDD_Level ((DpId) 0x19CC) /* 6604 UI32 */ #define DPoint_G1_Hrm_ITDD_TDtMin ((DpId) 0x19CD) /* 6605 UI32 */ #define DPoint_G1_Hrm_Ind_Mode ((DpId) 0x19CE) /* 6606 TripModeDLA */ #define DPoint_G1_Hrm_Ind_TDtMin ((DpId) 0x19CF) /* 6607 UI32 */ #define DPoint_G1_Hrm_IndA_Name ((DpId) 0x19D0) /* 6608 HrmIndividual */ #define DPoint_G1_Hrm_IndA_Level ((DpId) 0x19D1) /* 6609 UI32 */ #define DPoint_G1_Hrm_IndB_Name ((DpId) 0x19D2) /* 6610 HrmIndividual */ #define DPoint_G1_Hrm_IndB_Level ((DpId) 0x19D3) /* 6611 UI32 */ #define DPoint_G1_Hrm_IndC_Name ((DpId) 0x19D4) /* 6612 HrmIndividual */ #define DPoint_G1_Hrm_IndC_Level ((DpId) 0x19D5) /* 6613 UI32 */ #define DPoint_G1_Hrm_IndD_Name ((DpId) 0x19D6) /* 6614 HrmIndividual */ #define DPoint_G1_Hrm_IndD_Level ((DpId) 0x19D7) /* 6615 UI32 */ #define DPoint_G1_Hrm_IndE_Name ((DpId) 0x19D8) /* 6616 HrmIndividual */ #define DPoint_G1_Hrm_IndE_Level ((DpId) 0x19D9) /* 6617 UI32 */ #define DPoint_G1_OCLL1_Ip ((DpId) 0x19DA) /* 6618 UI32 */ #define DPoint_G1_OCLL1_Tcc ((DpId) 0x19DB) /* 6619 UI16 */ #define DPoint_G1_OCLL1_TDtMin ((DpId) 0x19DC) /* 6620 UI32 */ #define DPoint_G1_OCLL1_TDtRes ((DpId) 0x19DD) /* 6621 UI32 */ #define DPoint_G1_OCLL1_Tm ((DpId) 0x19DE) /* 6622 UI32 */ #define DPoint_G1_OCLL1_Imin ((DpId) 0x19DF) /* 6623 UI32 */ #define DPoint_G1_OCLL1_Tmin ((DpId) 0x19E0) /* 6624 UI32 */ #define DPoint_G1_OCLL1_Tmax ((DpId) 0x19E1) /* 6625 UI32 */ #define DPoint_G1_OCLL1_Ta ((DpId) 0x19E2) /* 6626 UI32 */ #define DPoint_G1_OCLL1_ImaxEn ((DpId) 0x19E3) /* 6627 EnDis */ #define DPoint_G1_OCLL1_Imax ((DpId) 0x19E4) /* 6628 UI32 */ #define DPoint_G1_OCLL1_En ((DpId) 0x19E5) /* 6629 EnDis */ #define DPoint_G1_OCLL1_TccUD ((DpId) 0x19E6) /* 6630 TccCurve */ #define DPoint_G1_OCLL2_Ip ((DpId) 0x19E7) /* 6631 UI32 */ #define DPoint_G1_OCLL2_Tcc ((DpId) 0x19E8) /* 6632 UI16 */ #define DPoint_G1_OCLL2_TDtMin ((DpId) 0x19E9) /* 6633 UI32 */ #define DPoint_G1_OCLL2_TDtRes ((DpId) 0x19EA) /* 6634 UI32 */ #define DPoint_G1_OCLL2_Tm ((DpId) 0x19EB) /* 6635 UI32 */ #define DPoint_G1_OCLL2_Imin ((DpId) 0x19EC) /* 6636 UI32 */ #define DPoint_G1_OCLL2_Tmin ((DpId) 0x19ED) /* 6637 UI32 */ #define DPoint_G1_OCLL2_Tmax ((DpId) 0x19EE) /* 6638 UI32 */ #define DPoint_G1_OCLL2_Ta ((DpId) 0x19EF) /* 6639 UI32 */ #define DPoint_G1_OCLL2_ImaxEn ((DpId) 0x19F0) /* 6640 EnDis */ #define DPoint_G1_OCLL2_Imax ((DpId) 0x19F1) /* 6641 UI32 */ #define DPoint_G1_OCLL2_En ((DpId) 0x19F2) /* 6642 EnDis */ #define DPoint_G1_OCLL2_TccUD ((DpId) 0x19F3) /* 6643 TccCurve */ #define DPoint_G1_OCLL3_En ((DpId) 0x19F4) /* 6644 EnDis */ #define DPoint_G1_AutoClose_En ((DpId) 0x19F5) /* 6645 EnDis */ #define DPoint_G1_AutoClose_Tr ((DpId) 0x19F6) /* 6646 UI16 */ #define DPoint_G1_AutoOpenPowerFlowDirChanged ((DpId) 0x19F7) /* 6647 EnDis */ #define DPoint_G1_AutoOpenPowerFlowReduced ((DpId) 0x19F8) /* 6648 EnDis */ #define DPoint_G2_Hrm_VTHD_Mode ((DpId) 0x19FA) /* 6650 TripModeDLA */ #define DPoint_G2_Hrm_VTHD_Level ((DpId) 0x19FB) /* 6651 UI32 */ #define DPoint_G2_Hrm_VTHD_TDtMin ((DpId) 0x19FC) /* 6652 UI32 */ #define DPoint_G2_Hrm_ITDD_Mode ((DpId) 0x19FD) /* 6653 TripModeDLA */ #define DPoint_G2_Hrm_ITDD_Level ((DpId) 0x19FE) /* 6654 UI32 */ #define DPoint_G2_Hrm_ITDD_TDtMin ((DpId) 0x19FF) /* 6655 UI32 */ #define DPoint_G2_Hrm_Ind_Mode ((DpId) 0x1A00) /* 6656 TripModeDLA */ #define DPoint_G2_Hrm_Ind_TDtMin ((DpId) 0x1A01) /* 6657 UI32 */ #define DPoint_G2_Hrm_IndA_Name ((DpId) 0x1A02) /* 6658 HrmIndividual */ #define DPoint_G2_Hrm_IndA_Level ((DpId) 0x1A03) /* 6659 UI32 */ #define DPoint_G2_Hrm_IndB_Name ((DpId) 0x1A04) /* 6660 HrmIndividual */ #define DPoint_G2_Hrm_IndB_Level ((DpId) 0x1A05) /* 6661 UI32 */ #define DPoint_G2_Hrm_IndC_Name ((DpId) 0x1A06) /* 6662 HrmIndividual */ #define DPoint_G2_Hrm_IndC_Level ((DpId) 0x1A07) /* 6663 UI32 */ #define DPoint_G2_Hrm_IndD_Name ((DpId) 0x1A08) /* 6664 HrmIndividual */ #define DPoint_G2_Hrm_IndD_Level ((DpId) 0x1A09) /* 6665 UI32 */ #define DPoint_G2_Hrm_IndE_Name ((DpId) 0x1A0A) /* 6666 HrmIndividual */ #define DPoint_G2_Hrm_IndE_Level ((DpId) 0x1A0B) /* 6667 UI32 */ #define DPoint_G2_OCLL1_Ip ((DpId) 0x1A0C) /* 6668 UI32 */ #define DPoint_G2_OCLL1_Tcc ((DpId) 0x1A0D) /* 6669 UI16 */ #define DPoint_G2_OCLL1_TDtMin ((DpId) 0x1A0E) /* 6670 UI32 */ #define DPoint_G2_OCLL1_TDtRes ((DpId) 0x1A0F) /* 6671 UI32 */ #define DPoint_G2_OCLL1_Tm ((DpId) 0x1A10) /* 6672 UI32 */ #define DPoint_G2_OCLL1_Imin ((DpId) 0x1A11) /* 6673 UI32 */ #define DPoint_G2_OCLL1_Tmin ((DpId) 0x1A12) /* 6674 UI32 */ #define DPoint_G2_OCLL1_Tmax ((DpId) 0x1A13) /* 6675 UI32 */ #define DPoint_G2_OCLL1_Ta ((DpId) 0x1A14) /* 6676 UI32 */ #define DPoint_G2_OCLL1_ImaxEn ((DpId) 0x1A15) /* 6677 EnDis */ #define DPoint_G2_OCLL1_Imax ((DpId) 0x1A16) /* 6678 UI32 */ #define DPoint_G2_OCLL1_En ((DpId) 0x1A17) /* 6679 EnDis */ #define DPoint_G2_OCLL1_TccUD ((DpId) 0x1A18) /* 6680 TccCurve */ #define DPoint_G2_OCLL2_Ip ((DpId) 0x1A19) /* 6681 UI32 */ #define DPoint_G2_OCLL2_Tcc ((DpId) 0x1A1A) /* 6682 UI16 */ #define DPoint_G2_OCLL2_TDtMin ((DpId) 0x1A1B) /* 6683 UI32 */ #define DPoint_G2_OCLL2_TDtRes ((DpId) 0x1A1C) /* 6684 UI32 */ #define DPoint_G2_OCLL2_Tm ((DpId) 0x1A1D) /* 6685 UI32 */ #define DPoint_G2_OCLL2_Imin ((DpId) 0x1A1E) /* 6686 UI32 */ #define DPoint_G2_OCLL2_Tmin ((DpId) 0x1A1F) /* 6687 UI32 */ #define DPoint_G2_OCLL2_Tmax ((DpId) 0x1A20) /* 6688 UI32 */ #define DPoint_G2_OCLL2_Ta ((DpId) 0x1A21) /* 6689 UI32 */ #define DPoint_G2_OCLL2_ImaxEn ((DpId) 0x1A22) /* 6690 EnDis */ #define DPoint_G2_OCLL2_Imax ((DpId) 0x1A23) /* 6691 UI32 */ #define DPoint_G2_OCLL2_En ((DpId) 0x1A24) /* 6692 EnDis */ #define DPoint_G2_OCLL2_TccUD ((DpId) 0x1A25) /* 6693 TccCurve */ #define DPoint_G2_OCLL3_En ((DpId) 0x1A26) /* 6694 EnDis */ #define DPoint_G2_AutoClose_En ((DpId) 0x1A27) /* 6695 EnDis */ #define DPoint_G2_AutoClose_Tr ((DpId) 0x1A28) /* 6696 UI16 */ #define DPoint_G2_AutoOpenPowerFlowDirChanged ((DpId) 0x1A29) /* 6697 EnDis */ #define DPoint_G2_AutoOpenPowerFlowReduced ((DpId) 0x1A2A) /* 6698 EnDis */ #define DPoint_G3_Hrm_VTHD_Mode ((DpId) 0x1A2C) /* 6700 TripModeDLA */ #define DPoint_G3_Hrm_VTHD_Level ((DpId) 0x1A2D) /* 6701 UI32 */ #define DPoint_G3_Hrm_VTHD_TDtMin ((DpId) 0x1A2E) /* 6702 UI32 */ #define DPoint_G3_Hrm_ITDD_Mode ((DpId) 0x1A2F) /* 6703 TripModeDLA */ #define DPoint_G3_Hrm_ITDD_Level ((DpId) 0x1A30) /* 6704 UI32 */ #define DPoint_G3_Hrm_ITDD_TDtMin ((DpId) 0x1A31) /* 6705 UI32 */ #define DPoint_G3_Hrm_Ind_Mode ((DpId) 0x1A32) /* 6706 TripModeDLA */ #define DPoint_G3_Hrm_Ind_TDtMin ((DpId) 0x1A33) /* 6707 UI32 */ #define DPoint_G3_Hrm_IndA_Name ((DpId) 0x1A34) /* 6708 HrmIndividual */ #define DPoint_G3_Hrm_IndA_Level ((DpId) 0x1A35) /* 6709 UI32 */ #define DPoint_G3_Hrm_IndB_Name ((DpId) 0x1A36) /* 6710 HrmIndividual */ #define DPoint_G3_Hrm_IndB_Level ((DpId) 0x1A37) /* 6711 UI32 */ #define DPoint_G3_Hrm_IndC_Name ((DpId) 0x1A38) /* 6712 HrmIndividual */ #define DPoint_G3_Hrm_IndC_Level ((DpId) 0x1A39) /* 6713 UI32 */ #define DPoint_G3_Hrm_IndD_Name ((DpId) 0x1A3A) /* 6714 HrmIndividual */ #define DPoint_G3_Hrm_IndD_Level ((DpId) 0x1A3B) /* 6715 UI32 */ #define DPoint_G3_Hrm_IndE_Name ((DpId) 0x1A3C) /* 6716 HrmIndividual */ #define DPoint_G3_Hrm_IndE_Level ((DpId) 0x1A3D) /* 6717 UI32 */ #define DPoint_G3_OCLL1_Ip ((DpId) 0x1A3E) /* 6718 UI32 */ #define DPoint_G3_OCLL1_Tcc ((DpId) 0x1A3F) /* 6719 UI16 */ #define DPoint_G3_OCLL1_TDtMin ((DpId) 0x1A40) /* 6720 UI32 */ #define DPoint_G3_OCLL1_TDtRes ((DpId) 0x1A41) /* 6721 UI32 */ #define DPoint_G3_OCLL1_Tm ((DpId) 0x1A42) /* 6722 UI32 */ #define DPoint_G3_OCLL1_Imin ((DpId) 0x1A43) /* 6723 UI32 */ #define DPoint_G3_OCLL1_Tmin ((DpId) 0x1A44) /* 6724 UI32 */ #define DPoint_G3_OCLL1_Tmax ((DpId) 0x1A45) /* 6725 UI32 */ #define DPoint_G3_OCLL1_Ta ((DpId) 0x1A46) /* 6726 UI32 */ #define DPoint_G3_OCLL1_ImaxEn ((DpId) 0x1A47) /* 6727 EnDis */ #define DPoint_G3_OCLL1_Imax ((DpId) 0x1A48) /* 6728 UI32 */ #define DPoint_G3_OCLL1_En ((DpId) 0x1A49) /* 6729 EnDis */ #define DPoint_G3_OCLL1_TccUD ((DpId) 0x1A4A) /* 6730 TccCurve */ #define DPoint_G3_OCLL2_Ip ((DpId) 0x1A4B) /* 6731 UI32 */ #define DPoint_G3_OCLL2_Tcc ((DpId) 0x1A4C) /* 6732 UI16 */ #define DPoint_G3_OCLL2_TDtMin ((DpId) 0x1A4D) /* 6733 UI32 */ #define DPoint_G3_OCLL2_TDtRes ((DpId) 0x1A4E) /* 6734 UI32 */ #define DPoint_G3_OCLL2_Tm ((DpId) 0x1A4F) /* 6735 UI32 */ #define DPoint_G3_OCLL2_Imin ((DpId) 0x1A50) /* 6736 UI32 */ #define DPoint_G3_OCLL2_Tmin ((DpId) 0x1A51) /* 6737 UI32 */ #define DPoint_G3_OCLL2_Tmax ((DpId) 0x1A52) /* 6738 UI32 */ #define DPoint_G3_OCLL2_Ta ((DpId) 0x1A53) /* 6739 UI32 */ #define DPoint_G3_OCLL2_ImaxEn ((DpId) 0x1A54) /* 6740 EnDis */ #define DPoint_G3_OCLL2_Imax ((DpId) 0x1A55) /* 6741 UI32 */ #define DPoint_G3_OCLL2_En ((DpId) 0x1A56) /* 6742 EnDis */ #define DPoint_G3_OCLL2_TccUD ((DpId) 0x1A57) /* 6743 TccCurve */ #define DPoint_G3_OCLL3_En ((DpId) 0x1A58) /* 6744 EnDis */ #define DPoint_G3_AutoClose_En ((DpId) 0x1A59) /* 6745 EnDis */ #define DPoint_G3_AutoClose_Tr ((DpId) 0x1A5A) /* 6746 UI16 */ #define DPoint_G3_AutoOpenPowerFlowDirChanged ((DpId) 0x1A5B) /* 6747 EnDis */ #define DPoint_G3_AutoOpenPowerFlowReduced ((DpId) 0x1A5C) /* 6748 EnDis */ #define DPoint_G4_Hrm_VTHD_Mode ((DpId) 0x1A5E) /* 6750 TripModeDLA */ #define DPoint_G4_Hrm_VTHD_Level ((DpId) 0x1A5F) /* 6751 UI32 */ #define DPoint_G4_Hrm_VTHD_TDtMin ((DpId) 0x1A60) /* 6752 UI32 */ #define DPoint_G4_Hrm_ITDD_Mode ((DpId) 0x1A61) /* 6753 TripModeDLA */ #define DPoint_G4_Hrm_ITDD_Level ((DpId) 0x1A62) /* 6754 UI32 */ #define DPoint_G4_Hrm_ITDD_TDtMin ((DpId) 0x1A63) /* 6755 UI32 */ #define DPoint_G4_Hrm_Ind_Mode ((DpId) 0x1A64) /* 6756 TripModeDLA */ #define DPoint_G4_Hrm_Ind_TDtMin ((DpId) 0x1A65) /* 6757 UI32 */ #define DPoint_G4_Hrm_IndA_Name ((DpId) 0x1A66) /* 6758 HrmIndividual */ #define DPoint_G4_Hrm_IndA_Level ((DpId) 0x1A67) /* 6759 UI32 */ #define DPoint_G4_Hrm_IndB_Name ((DpId) 0x1A68) /* 6760 HrmIndividual */ #define DPoint_G4_Hrm_IndB_Level ((DpId) 0x1A69) /* 6761 UI32 */ #define DPoint_G4_Hrm_IndC_Name ((DpId) 0x1A6A) /* 6762 HrmIndividual */ #define DPoint_G4_Hrm_IndC_Level ((DpId) 0x1A6B) /* 6763 UI32 */ #define DPoint_G4_Hrm_IndD_Name ((DpId) 0x1A6C) /* 6764 HrmIndividual */ #define DPoint_G4_Hrm_IndD_Level ((DpId) 0x1A6D) /* 6765 UI32 */ #define DPoint_G4_Hrm_IndE_Name ((DpId) 0x1A6E) /* 6766 HrmIndividual */ #define DPoint_G4_Hrm_IndE_Level ((DpId) 0x1A6F) /* 6767 UI32 */ #define DPoint_G4_OCLL1_Ip ((DpId) 0x1A70) /* 6768 UI32 */ #define DPoint_G4_OCLL1_Tcc ((DpId) 0x1A71) /* 6769 UI16 */ #define DPoint_G4_OCLL1_TDtMin ((DpId) 0x1A72) /* 6770 UI32 */ #define DPoint_G4_OCLL1_TDtRes ((DpId) 0x1A73) /* 6771 UI32 */ #define DPoint_G4_OCLL1_Tm ((DpId) 0x1A74) /* 6772 UI32 */ #define DPoint_G4_OCLL1_Imin ((DpId) 0x1A75) /* 6773 UI32 */ #define DPoint_G4_OCLL1_Tmin ((DpId) 0x1A76) /* 6774 UI32 */ #define DPoint_G4_OCLL1_Tmax ((DpId) 0x1A77) /* 6775 UI32 */ #define DPoint_G4_OCLL1_Ta ((DpId) 0x1A78) /* 6776 UI32 */ #define DPoint_G4_OCLL1_ImaxEn ((DpId) 0x1A79) /* 6777 EnDis */ #define DPoint_G4_OCLL1_Imax ((DpId) 0x1A7A) /* 6778 UI32 */ #define DPoint_G4_OCLL1_En ((DpId) 0x1A7B) /* 6779 EnDis */ #define DPoint_G4_OCLL1_TccUD ((DpId) 0x1A7C) /* 6780 TccCurve */ #define DPoint_G4_OCLL2_Ip ((DpId) 0x1A7D) /* 6781 UI32 */ #define DPoint_G4_OCLL2_Tcc ((DpId) 0x1A7E) /* 6782 UI16 */ #define DPoint_G4_OCLL2_TDtMin ((DpId) 0x1A7F) /* 6783 UI32 */ #define DPoint_G4_OCLL2_TDtRes ((DpId) 0x1A80) /* 6784 UI32 */ #define DPoint_G4_OCLL2_Tm ((DpId) 0x1A81) /* 6785 UI32 */ #define DPoint_G4_OCLL2_Imin ((DpId) 0x1A82) /* 6786 UI32 */ #define DPoint_G4_OCLL2_Tmin ((DpId) 0x1A83) /* 6787 UI32 */ #define DPoint_G4_OCLL2_Tmax ((DpId) 0x1A84) /* 6788 UI32 */ #define DPoint_G4_OCLL2_Ta ((DpId) 0x1A85) /* 6789 UI32 */ #define DPoint_G4_OCLL2_ImaxEn ((DpId) 0x1A86) /* 6790 EnDis */ #define DPoint_G4_OCLL2_Imax ((DpId) 0x1A87) /* 6791 UI32 */ #define DPoint_G4_OCLL2_En ((DpId) 0x1A88) /* 6792 EnDis */ #define DPoint_G4_OCLL2_TccUD ((DpId) 0x1A89) /* 6793 TccCurve */ #define DPoint_G4_OCLL3_En ((DpId) 0x1A8A) /* 6794 EnDis */ #define DPoint_G4_AutoClose_En ((DpId) 0x1A8B) /* 6795 EnDis */ #define DPoint_G4_AutoClose_Tr ((DpId) 0x1A8C) /* 6796 UI16 */ #define DPoint_G4_AutoOpenPowerFlowDirChanged ((DpId) 0x1A8D) /* 6797 EnDis */ #define DPoint_G4_AutoOpenPowerFlowReduced ((DpId) 0x1A8E) /* 6798 EnDis */ #define DPoint_SigCtrlHRMOn ((DpId) 0x1A8F) /* 6799 Signal */ #define DPoint_SigPickupHrm ((DpId) 0x1A90) /* 6800 Signal */ #define DPoint_SigAlarmHrm ((DpId) 0x1A91) /* 6801 Signal */ #define DPoint_SigOpenHrm ((DpId) 0x1A92) /* 6802 Signal */ #define DPoint_CntrHrmTrips ((DpId) 0x1A93) /* 6803 UI32 */ #define DPoint_TripMaxHrm ((DpId) 0x1A94) /* 6804 UI32 */ #define DPoint_SigCtrlBlockProtOpenOn ((DpId) 0x1A97) /* 6807 Signal */ #define DPoint_StartupExtLoadConfirm ((DpId) 0x1A99) /* 6809 UI8 */ #define DPoint_InMDIToday ((DpId) 0x1A9A) /* 6810 UI32 */ #define DPoint_InMDIYesterday ((DpId) 0x1A9B) /* 6811 UI32 */ #define DPoint_InMDILastWeek ((DpId) 0x1A9C) /* 6812 UI32 */ #define DPoint_ClearOscCaptures ((DpId) 0x1A9D) /* 6813 ClearCommand */ #define DPoint_InterruptMonitorEnable ((DpId) 0x1A9E) /* 6814 EnDis */ #define DPoint_InterruptLogShortEnable ((DpId) 0x1A9F) /* 6815 EnDis */ #define DPoint_InterruptDuration ((DpId) 0x1AA0) /* 6816 UI32 */ #define DPoint_InterruptShortABCCnt ((DpId) 0x1AA1) /* 6817 UI32 */ #define DPoint_InterruptShortRSTCnt ((DpId) 0x1AA2) /* 6818 UI32 */ #define DPoint_InterruptLongABCCnt ((DpId) 0x1AA3) /* 6819 UI32 */ #define DPoint_InterruptLongRSTCnt ((DpId) 0x1AA4) /* 6820 UI32 */ #define DPoint_InterruptShortABCTotDuration ((DpId) 0x1AA5) /* 6821 Duration */ #define DPoint_InterruptShortRSTTotDuration ((DpId) 0x1AA6) /* 6822 Duration */ #define DPoint_InterruptLongABCTotDuration ((DpId) 0x1AA7) /* 6823 Duration */ #define DPoint_InterruptLongRSTTotDuration ((DpId) 0x1AA8) /* 6824 Duration */ #define DPoint_SagMonitorEnable ((DpId) 0x1AA9) /* 6825 EnDis */ #define DPoint_SagNormalThreshold ((DpId) 0x1AAA) /* 6826 UI32 */ #define DPoint_SagMinThreshold ((DpId) 0x1AAB) /* 6827 UI32 */ #define DPoint_SagTime ((DpId) 0x1AAC) /* 6828 UI32 */ #define DPoint_SwellMonitorEnable ((DpId) 0x1AAD) /* 6829 EnDis */ #define DPoint_SwellNormalThreshold ((DpId) 0x1AAE) /* 6830 UI32 */ #define DPoint_SwellTime ((DpId) 0x1AAF) /* 6831 UI32 */ #define DPoint_SagSwellResetTime ((DpId) 0x1AB0) /* 6832 UI32 */ #define DPoint_SagABCCnt ((DpId) 0x1AB1) /* 6833 UI32 */ #define DPoint_SagRSTCnt ((DpId) 0x1AB2) /* 6834 UI32 */ #define DPoint_SwellABCCnt ((DpId) 0x1AB3) /* 6835 UI32 */ #define DPoint_SwellRSTCnt ((DpId) 0x1AB4) /* 6836 UI32 */ #define DPoint_SagABCLastDuration ((DpId) 0x1AB5) /* 6837 Duration */ #define DPoint_SagRSTLastDuration ((DpId) 0x1AB6) /* 6838 Duration */ #define DPoint_SwellABCLastDuration ((DpId) 0x1AB7) /* 6839 Duration */ #define DPoint_SwellRSTLastDuration ((DpId) 0x1AB8) /* 6840 Duration */ #define DPoint_HrmLogEnabled ((DpId) 0x1AB9) /* 6841 EnDis */ #define DPoint_HrmLogTHDEnabled ((DpId) 0x1ABA) /* 6842 EnDis */ #define DPoint_HrmLogTHDDeadband ((DpId) 0x1ABB) /* 6843 UI32 */ #define DPoint_HrmLogTDDEnabled ((DpId) 0x1ABC) /* 6844 EnDis */ #define DPoint_HrmLogTDDDeadband ((DpId) 0x1ABD) /* 6845 UI32 */ #define DPoint_HrmLogIndivIEnabled ((DpId) 0x1ABE) /* 6846 EnDis */ #define DPoint_HrmLogIndivIDeadband ((DpId) 0x1ABF) /* 6847 UI32 */ #define DPoint_HrmLogIndivVEnabled ((DpId) 0x1AC0) /* 6848 EnDis */ #define DPoint_HrmLogIndivVDeadband ((DpId) 0x1AC1) /* 6849 UI32 */ #define DPoint_HrmLogTime ((DpId) 0x1AC2) /* 6850 UI16 */ #define DPoint_InterruptClearCounters ((DpId) 0x1AC3) /* 6851 ClearCommand */ #define DPoint_SagSwellClearCounters ((DpId) 0x1AC4) /* 6852 ClearCommand */ #define DPoint_LogInterrupt ((DpId) 0x1AC5) /* 6853 LogPQDIF */ #define DPoint_LogSagSwell ((DpId) 0x1AC6) /* 6854 LogPQDIF */ #define DPoint_LogHrm ((DpId) 0x1AC7) /* 6855 LogPQDIF */ #define DPoint_CanIo1OutputEnableMasked ((DpId) 0x1AC8) /* 6856 UI8 */ #define DPoint_CanIo2OutputEnableMasked ((DpId) 0x1AC9) /* 6857 UI8 */ #define DPoint_CanIo1OutputSetMasked ((DpId) 0x1ACA) /* 6858 UI16 */ #define DPoint_CanIo2OutputSetMasked ((DpId) 0x1ACB) /* 6859 UI16 */ #define DPoint_LogInterruptDir ((DpId) 0x1ACC) /* 6860 Str */ #define DPoint_LogSagSwellDir ((DpId) 0x1ACD) /* 6861 Str */ #define DPoint_LogHrmDir ((DpId) 0x1ACE) /* 6862 Str */ #define DPoint_ClearInterruptDir ((DpId) 0x1ACF) /* 6863 Bool */ #define DPoint_ClearSagSwellDir ((DpId) 0x1AD0) /* 6864 Bool */ #define DPoint_ClearHrmDir ((DpId) 0x1AD1) /* 6865 Bool */ #define DPoint_ChEvInterruptLog ((DpId) 0x1AD2) /* 6866 ChangeEvent */ #define DPoint_ChEvSagSwellLog ((DpId) 0x1AD3) /* 6867 ChangeEvent */ #define DPoint_ChEvHrmLog ((DpId) 0x1AD4) /* 6868 ChangeEvent */ #define DPoint_OscSaveFormat ((DpId) 0x1AD5) /* 6869 OscCaptureFormat */ #define DPoint_PGEChannelPort ((DpId) 0x1AD6) /* 6870 CommsPort */ #define DPoint_PGEEnableProtocol ((DpId) 0x1AD7) /* 6871 EnDis */ #define DPoint_PGEEnableCommsLog ((DpId) 0x1AD8) /* 6872 EnDis */ #define DPoint_PGECommsLogMaxSize ((DpId) 0x1AD9) /* 6873 UI8 */ #define DPoint_PGESlaveAddress ((DpId) 0x1ADA) /* 6874 UI16 */ #define DPoint_PGEMasterAddress ((DpId) 0x1ADB) /* 6875 UI8 */ #define DPoint_PGEIgnoreMasterAddress ((DpId) 0x1ADC) /* 6876 UI8 */ #define DPoint_G11_SerialDTRStatus ((DpId) 0x1ADD) /* 6877 CommsSerialPinStatus */ #define DPoint_G11_SerialDSRStatus ((DpId) 0x1ADE) /* 6878 CommsSerialPinStatus */ #define DPoint_G11_SerialCDStatus ((DpId) 0x1ADF) /* 6879 CommsSerialPinStatus */ #define DPoint_G11_SerialRTSStatus ((DpId) 0x1AE0) /* 6880 CommsSerialPinStatus */ #define DPoint_G11_SerialCTSStatus ((DpId) 0x1AE1) /* 6881 CommsSerialPinStatus */ #define DPoint_G11_SerialRIStatus ((DpId) 0x1AE2) /* 6882 CommsSerialPinStatus */ #define DPoint_G11_ConnectionStatus ((DpId) 0x1AE3) /* 6883 CommsConnectionStatus */ #define DPoint_G11_BytesReceivedStatus ((DpId) 0x1AE4) /* 6884 UI32 */ #define DPoint_G11_BytesTransmittedStatus ((DpId) 0x1AE5) /* 6885 UI32 */ #define DPoint_G11_PacketsReceivedStatus ((DpId) 0x1AE6) /* 6886 UI32 */ #define DPoint_G11_PacketsTransmittedStatus ((DpId) 0x1AE7) /* 6887 UI32 */ #define DPoint_G11_ErrorPacketsReceivedStatus ((DpId) 0x1AE8) /* 6888 UI32 */ #define DPoint_G11_ErrorPacketsTransmittedStatus ((DpId) 0x1AE9) /* 6889 UI32 */ #define DPoint_G11_IpAddrStatus ((DpId) 0x1AEA) /* 6890 IpAddr */ #define DPoint_G11_SubnetMaskStatus ((DpId) 0x1AEB) /* 6891 IpAddr */ #define DPoint_G11_DefaultGatewayStatus ((DpId) 0x1AEC) /* 6892 IpAddr */ #define DPoint_G11_PortDetectedType ((DpId) 0x1AED) /* 6893 CommsPortDetectedType */ #define DPoint_G11_PortDetectedName ((DpId) 0x1AEE) /* 6894 Str */ #define DPoint_G11_SerialTxTestStatus ((DpId) 0x1AEF) /* 6895 OnOff */ #define DPoint_G11_PacketsReceivedStatusIPv6 ((DpId) 0x1AF0) /* 6896 UI32 */ #define DPoint_G11_PacketsTransmittedStatusIPv6 ((DpId) 0x1AF1) /* 6897 UI32 */ #define DPoint_G11_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x1AF2) /* 6898 UI32 */ #define DPoint_G11_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x1AF3) /* 6899 UI32 */ #define DPoint_G11_Ipv6AddrStatus ((DpId) 0x1AF4) /* 6900 Ipv6Addr */ #define DPoint_G11_LanPrefixLengthStatus ((DpId) 0x1AF5) /* 6901 UI8 */ #define DPoint_G11_Ipv6DefaultGatewayStatus ((DpId) 0x1AF6) /* 6902 Ipv6Addr */ #define DPoint_G11_IpVersionStatus ((DpId) 0x1AF7) /* 6903 IpVersion */ #define DPoint_G11_SerialPortTestCmd ((DpId) 0x1B2D) /* 6957 Signal */ #define DPoint_G11_SerialPortHangupCmd ((DpId) 0x1B2E) /* 6958 Signal */ #define DPoint_G11_BytesReceivedResetCmd ((DpId) 0x1B2F) /* 6959 Signal */ #define DPoint_G11_BytesTransmittedResetCmd ((DpId) 0x1B30) /* 6960 Signal */ #define DPoint_G11_SerialBaudRate ((DpId) 0x1B55) /* 6997 CommsSerialBaudRate */ #define DPoint_G11_SerialDuplexType ((DpId) 0x1B56) /* 6998 CommsSerialDuplex */ #define DPoint_G11_SerialRTSMode ((DpId) 0x1B57) /* 6999 CommsSerialRTSMode */ #define DPoint_G11_SerialRTSOnLevel ((DpId) 0x1B58) /* 7000 CommsSerialRTSOnLevel */ #define DPoint_G11_SerialDTRMode ((DpId) 0x1B59) /* 7001 CommsSerialDTRMode */ #define DPoint_G11_SerialDTROnLevel ((DpId) 0x1B5A) /* 7002 CommsSerialDTROnLevel */ #define DPoint_G11_SerialParity ((DpId) 0x1B5B) /* 7003 CommsSerialParity */ #define DPoint_G11_SerialCTSMode ((DpId) 0x1B5C) /* 7004 CommsSerialCTSMode */ #define DPoint_G11_SerialDSRMode ((DpId) 0x1B5D) /* 7005 CommsSerialDSRMode */ #define DPoint_G11_SerialDTRLowTime ((DpId) 0x1B5F) /* 7007 UI32 */ #define DPoint_G11_SerialTxDelay ((DpId) 0x1B60) /* 7008 UI32 */ #define DPoint_G11_SerialPreTxTime ((DpId) 0x1B61) /* 7009 UI32 */ #define DPoint_G11_SerialDCDFallTime ((DpId) 0x1B62) /* 7010 UI32 */ #define DPoint_G11_SerialCharTimeout ((DpId) 0x1B63) /* 7011 UI32 */ #define DPoint_G11_SerialPostTxTime ((DpId) 0x1B64) /* 7012 UI32 */ #define DPoint_G11_SerialInactivityTime ((DpId) 0x1B65) /* 7013 UI32 */ #define DPoint_G11_SerialCollisionAvoidance ((DpId) 0x1B66) /* 7014 Bool */ #define DPoint_G11_SerialMinIdleTime ((DpId) 0x1B67) /* 7015 UI32 */ #define DPoint_G11_SerialMaxRandomDelay ((DpId) 0x1B68) /* 7016 UI32 */ #define DPoint_G11_ModemPoweredFromExtLoad ((DpId) 0x1B69) /* 7017 Bool */ #define DPoint_G11_ModemUsedWithLeasedLine ((DpId) 0x1B6A) /* 7018 Bool */ #define DPoint_G11_ModemInitString ((DpId) 0x1B6B) /* 7019 Str */ #define DPoint_G11_ModemDialOut ((DpId) 0x1B6C) /* 7020 Bool */ #define DPoint_G11_ModemPreDialString ((DpId) 0x1B6D) /* 7021 Str */ #define DPoint_G11_ModemDialNumber1 ((DpId) 0x1B6E) /* 7022 Str */ #define DPoint_G11_ModemDialNumber2 ((DpId) 0x1B6F) /* 7023 Str */ #define DPoint_G11_ModemDialNumber3 ((DpId) 0x1B70) /* 7024 Str */ #define DPoint_G11_ModemDialNumber4 ((DpId) 0x1B71) /* 7025 Str */ #define DPoint_G11_ModemDialNumber5 ((DpId) 0x1B72) /* 7026 Str */ #define DPoint_G11_ModemAutoDialInterval ((DpId) 0x1B73) /* 7027 UI32 */ #define DPoint_G11_ModemConnectionTimeout ((DpId) 0x1B74) /* 7028 UI32 */ #define DPoint_G11_ModemMaxCallDuration ((DpId) 0x1B75) /* 7029 UI32 */ #define DPoint_G11_ModemResponseTime ((DpId) 0x1B76) /* 7030 UI32 */ #define DPoint_G11_ModemHangUpCommand ((DpId) 0x1B77) /* 7031 Str */ #define DPoint_G11_ModemOffHookCommand ((DpId) 0x1B78) /* 7032 Str */ #define DPoint_G11_ModemAutoAnswerOn ((DpId) 0x1B79) /* 7033 Str */ #define DPoint_G11_ModemAutoAnswerOff ((DpId) 0x1B7A) /* 7034 Str */ #define DPoint_G11_RadioPreamble ((DpId) 0x1B7B) /* 7035 Bool */ #define DPoint_G11_RadioPreambleChar ((DpId) 0x1B7C) /* 7036 UI8 */ #define DPoint_G11_RadioPreambleRepeat ((DpId) 0x1B7D) /* 7037 UI32 */ #define DPoint_G11_RadioPreambleLastChar ((DpId) 0x1B7E) /* 7038 UI8 */ #define DPoint_G11_LanSpecifyIP ((DpId) 0x1B7F) /* 7039 YesNo */ #define DPoint_G11_LanIPAddr ((DpId) 0x1B80) /* 7040 IpAddr */ #define DPoint_G11_LanSubnetMask ((DpId) 0x1B81) /* 7041 IpAddr */ #define DPoint_G11_LanDefaultGateway ((DpId) 0x1B82) /* 7042 IpAddr */ #define DPoint_G11_WlanNetworkSSID ((DpId) 0x1B83) /* 7043 Str */ #define DPoint_G11_WlanNetworkAuthentication ((DpId) 0x1B84) /* 7044 CommsWlanNetworkAuthentication */ #define DPoint_G11_WlanDataEncryption ((DpId) 0x1B85) /* 7045 CommsWlanDataEncryption */ #define DPoint_G11_WlanNetworkKey ((DpId) 0x1B86) /* 7046 Str */ #define DPoint_G11_WlanKeyIndex ((DpId) 0x1B87) /* 7047 UI32 */ #define DPoint_G11_PortLocalRemoteMode ((DpId) 0x1B88) /* 7048 LocalRemote */ #define DPoint_G11_GPRSServiceProvider ((DpId) 0x1B89) /* 7049 Str */ #define DPoint_G11_GPRSUserName ((DpId) 0x1B8A) /* 7050 Str */ #define DPoint_G11_GPRSPassWord ((DpId) 0x1B8B) /* 7051 Str */ #define DPoint_G11_SerialDebugMode ((DpId) 0x1B8C) /* 7052 YesNo */ #define DPoint_G11_SerialDebugFileName ((DpId) 0x1B8D) /* 7053 Str */ #define DPoint_G11_GPRSBaudRate ((DpId) 0x1B8E) /* 7054 CommsSerialBaudRate */ #define DPoint_G11_GPRSConnectionTimeout ((DpId) 0x1B8F) /* 7055 UI32 */ #define DPoint_G11_DNP3InputPipe ((DpId) 0x1B90) /* 7056 Str */ #define DPoint_G11_DNP3OutputPipe ((DpId) 0x1B91) /* 7057 Str */ #define DPoint_G11_CMSInputPipe ((DpId) 0x1B92) /* 7058 Str */ #define DPoint_G11_CMSOutputPipe ((DpId) 0x1B93) /* 7059 Str */ #define DPoint_G11_HMIInputPipe ((DpId) 0x1B94) /* 7060 Str */ #define DPoint_G11_HMIOutputPipe ((DpId) 0x1B95) /* 7061 Str */ #define DPoint_G11_DNP3ChannelRequest ((DpId) 0x1B96) /* 7062 Str */ #define DPoint_G11_DNP3ChannelOpen ((DpId) 0x1B97) /* 7063 Str */ #define DPoint_G11_CMSChannelRequest ((DpId) 0x1B98) /* 7064 Str */ #define DPoint_G11_CMSChannelOpen ((DpId) 0x1B99) /* 7065 Str */ #define DPoint_G11_HMIChannelRequest ((DpId) 0x1B9A) /* 7066 Str */ #define DPoint_G11_HMIChannelOpen ((DpId) 0x1B9B) /* 7067 Str */ #define DPoint_G11_GPRSUseModemSetting ((DpId) 0x1B9C) /* 7068 YesNo */ #define DPoint_G11_SerialFlowControlMode ((DpId) 0x1B9D) /* 7069 CommsSerialFlowControlMode */ #define DPoint_G11_SerialDCDControlMode ((DpId) 0x1B9E) /* 7070 CommsSerialDCDControlMode */ #define DPoint_G11_T10BInputPipe ((DpId) 0x1B9F) /* 7071 Str */ #define DPoint_G11_T10BOutputPipe ((DpId) 0x1BA0) /* 7072 Str */ #define DPoint_G11_T10BChannelRequest ((DpId) 0x1BA1) /* 7073 Str */ #define DPoint_G11_T10BChannelOpen ((DpId) 0x1BA2) /* 7074 Str */ #define DPoint_G11_P2PInputPipe ((DpId) 0x1BA3) /* 7075 Str */ #define DPoint_G11_P2POutputPipe ((DpId) 0x1BA4) /* 7076 Str */ #define DPoint_G11_P2PChannelRequest ((DpId) 0x1BA5) /* 7077 Str */ #define DPoint_G11_P2PChannelOpen ((DpId) 0x1BA6) /* 7078 Str */ #define DPoint_G11_PGEInputPipe ((DpId) 0x1BA7) /* 7079 Str */ #define DPoint_G11_PGEOutputPipe ((DpId) 0x1BA8) /* 7080 Str */ #define DPoint_G11_PGEChannelRequest ((DpId) 0x1BA9) /* 7081 Str */ #define DPoint_G11_PGEChannelOpen ((DpId) 0x1BAA) /* 7082 Str */ #define DPoint_G11_LanProvideIP ((DpId) 0x1BAD) /* 7085 YesNo */ #define DPoint_G11_LanSpecifyIPv6 ((DpId) 0x1BAE) /* 7086 YesNo */ #define DPoint_G11_LanIPv6Addr ((DpId) 0x1BAF) /* 7087 Ipv6Addr */ #define DPoint_G11_LanPrefixLength ((DpId) 0x1BB0) /* 7088 UI8 */ #define DPoint_G11_LanIPv6DefaultGateway ((DpId) 0x1BB1) /* 7089 Ipv6Addr */ #define DPoint_G11_LanIpVersion ((DpId) 0x1BB2) /* 7090 IpVersion */ #define DPoint_LanConfigType ((DpId) 0x1C1D) /* 7197 UsbPortConfigType */ #define DPoint_CommsChEvGrp11 ((DpId) 0x1C1E) /* 7198 ChangeEvent */ #define DPoint_SigPickupNps1F ((DpId) 0x1C1F) /* 7199 Signal */ #define DPoint_SigPickupNps2F ((DpId) 0x1C20) /* 7200 Signal */ #define DPoint_SigPickupNps3F ((DpId) 0x1C21) /* 7201 Signal */ #define DPoint_SigPickupNps1R ((DpId) 0x1C22) /* 7202 Signal */ #define DPoint_SigPickupNps2R ((DpId) 0x1C23) /* 7203 Signal */ #define DPoint_SigPickupNps3R ((DpId) 0x1C24) /* 7204 Signal */ #define DPoint_SigPickupOcll1 ((DpId) 0x1C25) /* 7205 Signal */ #define DPoint_SigPickupOcll2 ((DpId) 0x1C26) /* 7206 Signal */ #define DPoint_SigPickupNpsll1 ((DpId) 0x1C27) /* 7207 Signal */ #define DPoint_SigPickupNpsll2 ((DpId) 0x1C28) /* 7208 Signal */ #define DPoint_SigPickupNpsll3 ((DpId) 0x1C29) /* 7209 Signal */ #define DPoint_SigPickupEfll1 ((DpId) 0x1C2A) /* 7210 Signal */ #define DPoint_SigPickupEfll2 ((DpId) 0x1C2B) /* 7211 Signal */ #define DPoint_SigPickupSefll ((DpId) 0x1C2C) /* 7212 Signal */ #define DPoint_SigOpenNps1F ((DpId) 0x1C2D) /* 7213 Signal */ #define DPoint_SigOpenNps2F ((DpId) 0x1C2E) /* 7214 Signal */ #define DPoint_SigOpenNps3F ((DpId) 0x1C2F) /* 7215 Signal */ #define DPoint_SigOpenNps1R ((DpId) 0x1C30) /* 7216 Signal */ #define DPoint_SigOpenNps2R ((DpId) 0x1C31) /* 7217 Signal */ #define DPoint_SigOpenNps3R ((DpId) 0x1C32) /* 7218 Signal */ #define DPoint_SigOpenOcll1 ((DpId) 0x1C33) /* 7219 Signal */ #define DPoint_SigOpenOcll2 ((DpId) 0x1C34) /* 7220 Signal */ #define DPoint_SigOpenNpsll1 ((DpId) 0x1C35) /* 7221 Signal */ #define DPoint_SigOpenNpsll2 ((DpId) 0x1C36) /* 7222 Signal */ #define DPoint_SigOpenNpsll3 ((DpId) 0x1C37) /* 7223 Signal */ #define DPoint_SigOpenEfll1 ((DpId) 0x1C38) /* 7224 Signal */ #define DPoint_SigOpenEfll2 ((DpId) 0x1C39) /* 7225 Signal */ #define DPoint_SigOpenSefll ((DpId) 0x1C3A) /* 7226 Signal */ #define DPoint_SigAlarmNps1F ((DpId) 0x1C3B) /* 7227 Signal */ #define DPoint_SigAlarmNps2F ((DpId) 0x1C3C) /* 7228 Signal */ #define DPoint_SigAlarmNps3F ((DpId) 0x1C3D) /* 7229 Signal */ #define DPoint_SigAlarmNps1R ((DpId) 0x1C3E) /* 7230 Signal */ #define DPoint_SigAlarmNps2R ((DpId) 0x1C3F) /* 7231 Signal */ #define DPoint_SigAlarmNps3R ((DpId) 0x1C40) /* 7232 Signal */ #define DPoint_SigCtrlNPSOn ((DpId) 0x1C41) /* 7233 Signal */ #define DPoint_CntrNpsTrips ((DpId) 0x1C42) /* 7234 UI32 */ #define DPoint_MeasPowerFlowDirectionNPS ((DpId) 0x1C43) /* 7235 ProtDirOut */ #define DPoint_ProtNpsDir ((DpId) 0x1C44) /* 7236 ProtDirOut */ #define DPoint_TripMaxCurrI2 ((DpId) 0x1C45) /* 7237 UI32 */ #define DPoint_G1_NpsAt ((DpId) 0x1C46) /* 7238 UI32 */ #define DPoint_G1_NpsDnd ((DpId) 0x1C47) /* 7239 DndMode */ #define DPoint_G1_SstNpsForward ((DpId) 0x1C48) /* 7240 UI8 */ #define DPoint_G1_SstNpsReverse ((DpId) 0x1C49) /* 7241 UI8 */ #define DPoint_G1_NPS1F_Ip ((DpId) 0x1C4A) /* 7242 UI32 */ #define DPoint_G1_NPS1F_Tcc ((DpId) 0x1C4B) /* 7243 UI16 */ #define DPoint_G1_NPS1F_TDtMin ((DpId) 0x1C4C) /* 7244 UI32 */ #define DPoint_G1_NPS1F_TDtRes ((DpId) 0x1C4D) /* 7245 UI32 */ #define DPoint_G1_NPS1F_Tm ((DpId) 0x1C4E) /* 7246 UI32 */ #define DPoint_G1_NPS1F_Imin ((DpId) 0x1C4F) /* 7247 UI32 */ #define DPoint_G1_NPS1F_Tmin ((DpId) 0x1C50) /* 7248 UI32 */ #define DPoint_G1_NPS1F_Tmax ((DpId) 0x1C51) /* 7249 UI32 */ #define DPoint_G1_NPS1F_Ta ((DpId) 0x1C52) /* 7250 UI32 */ #define DPoint_G1_NPS1F_ImaxEn ((DpId) 0x1C53) /* 7251 EnDis */ #define DPoint_G1_NPS1F_Imax ((DpId) 0x1C54) /* 7252 UI32 */ #define DPoint_G1_NPS1F_DirEn ((DpId) 0x1C55) /* 7253 EnDis */ #define DPoint_G1_NPS1F_Tr1 ((DpId) 0x1C56) /* 7254 TripMode */ #define DPoint_G1_NPS1F_Tr2 ((DpId) 0x1C57) /* 7255 TripMode */ #define DPoint_G1_NPS1F_Tr3 ((DpId) 0x1C58) /* 7256 TripMode */ #define DPoint_G1_NPS1F_Tr4 ((DpId) 0x1C59) /* 7257 TripMode */ #define DPoint_G1_NPS1F_TccUD ((DpId) 0x1C5A) /* 7258 TccCurve */ #define DPoint_G1_NPS2F_Ip ((DpId) 0x1C5B) /* 7259 UI32 */ #define DPoint_G1_NPS2F_Tcc ((DpId) 0x1C5C) /* 7260 UI16 */ #define DPoint_G1_NPS2F_TDtMin ((DpId) 0x1C5D) /* 7261 UI32 */ #define DPoint_G1_NPS2F_TDtRes ((DpId) 0x1C5E) /* 7262 UI32 */ #define DPoint_G1_NPS2F_Tm ((DpId) 0x1C5F) /* 7263 UI32 */ #define DPoint_G1_NPS2F_Imin ((DpId) 0x1C60) /* 7264 UI32 */ #define DPoint_G1_NPS2F_Tmin ((DpId) 0x1C61) /* 7265 UI32 */ #define DPoint_G1_NPS2F_Tmax ((DpId) 0x1C62) /* 7266 UI32 */ #define DPoint_G1_NPS2F_Ta ((DpId) 0x1C63) /* 7267 UI32 */ #define DPoint_G1_NPS2F_ImaxEn ((DpId) 0x1C64) /* 7268 EnDis */ #define DPoint_G1_NPS2F_Imax ((DpId) 0x1C65) /* 7269 UI32 */ #define DPoint_G1_NPS2F_DirEn ((DpId) 0x1C66) /* 7270 EnDis */ #define DPoint_G1_NPS2F_Tr1 ((DpId) 0x1C67) /* 7271 TripMode */ #define DPoint_G1_NPS2F_Tr2 ((DpId) 0x1C68) /* 7272 TripMode */ #define DPoint_G1_NPS2F_Tr3 ((DpId) 0x1C69) /* 7273 TripMode */ #define DPoint_G1_NPS2F_Tr4 ((DpId) 0x1C6A) /* 7274 TripMode */ #define DPoint_G1_NPS2F_TccUD ((DpId) 0x1C6B) /* 7275 TccCurve */ #define DPoint_G1_NPS3F_Ip ((DpId) 0x1C6C) /* 7276 UI32 */ #define DPoint_G1_NPS3F_TDtMin ((DpId) 0x1C6D) /* 7277 UI32 */ #define DPoint_G1_NPS3F_TDtRes ((DpId) 0x1C6E) /* 7278 UI32 */ #define DPoint_G1_NPS3F_DirEn ((DpId) 0x1C6F) /* 7279 EnDis */ #define DPoint_G1_NPS3F_Tr1 ((DpId) 0x1C70) /* 7280 TripMode */ #define DPoint_G1_NPS3F_Tr2 ((DpId) 0x1C71) /* 7281 TripMode */ #define DPoint_G1_NPS3F_Tr3 ((DpId) 0x1C72) /* 7282 TripMode */ #define DPoint_G1_NPS3F_Tr4 ((DpId) 0x1C73) /* 7283 TripMode */ #define DPoint_G1_NPS1R_Ip ((DpId) 0x1C74) /* 7284 UI32 */ #define DPoint_G1_NPS1R_Tcc ((DpId) 0x1C75) /* 7285 UI16 */ #define DPoint_G1_NPS1R_TDtMin ((DpId) 0x1C76) /* 7286 UI32 */ #define DPoint_G1_NPS1R_TDtRes ((DpId) 0x1C77) /* 7287 UI32 */ #define DPoint_G1_NPS1R_Tm ((DpId) 0x1C78) /* 7288 UI32 */ #define DPoint_G1_NPS1R_Imin ((DpId) 0x1C79) /* 7289 UI32 */ #define DPoint_G1_NPS1R_Tmin ((DpId) 0x1C7A) /* 7290 UI32 */ #define DPoint_G1_NPS1R_Tmax ((DpId) 0x1C7B) /* 7291 UI32 */ #define DPoint_G1_NPS1R_Ta ((DpId) 0x1C7C) /* 7292 UI32 */ #define DPoint_G1_NPS1R_ImaxEn ((DpId) 0x1C7D) /* 7293 EnDis */ #define DPoint_G1_NPS1R_Imax ((DpId) 0x1C7E) /* 7294 UI32 */ #define DPoint_G1_NPS1R_DirEn ((DpId) 0x1C7F) /* 7295 EnDis */ #define DPoint_G1_NPS1R_Tr1 ((DpId) 0x1C80) /* 7296 TripMode */ #define DPoint_G1_NPS1R_Tr2 ((DpId) 0x1C81) /* 7297 TripMode */ #define DPoint_G1_NPS1R_Tr3 ((DpId) 0x1C82) /* 7298 TripMode */ #define DPoint_G1_NPS1R_Tr4 ((DpId) 0x1C83) /* 7299 TripMode */ #define DPoint_G1_NPS1R_TccUD ((DpId) 0x1C84) /* 7300 TccCurve */ #define DPoint_G1_NPS2R_Ip ((DpId) 0x1C85) /* 7301 UI32 */ #define DPoint_G1_NPS2R_Tcc ((DpId) 0x1C86) /* 7302 UI16 */ #define DPoint_G1_NPS2R_TDtMin ((DpId) 0x1C87) /* 7303 UI32 */ #define DPoint_G1_NPS2R_TDtRes ((DpId) 0x1C88) /* 7304 UI32 */ #define DPoint_G1_NPS2R_Tm ((DpId) 0x1C89) /* 7305 UI32 */ #define DPoint_G1_NPS2R_Imin ((DpId) 0x1C8A) /* 7306 UI32 */ #define DPoint_G1_NPS2R_Tmin ((DpId) 0x1C8B) /* 7307 UI32 */ #define DPoint_G1_NPS2R_Tmax ((DpId) 0x1C8C) /* 7308 UI32 */ #define DPoint_G1_NPS2R_Ta ((DpId) 0x1C8D) /* 7309 UI32 */ #define DPoint_G1_NPS2R_ImaxEn ((DpId) 0x1C8E) /* 7310 EnDis */ #define DPoint_G1_NPS2R_Imax ((DpId) 0x1C8F) /* 7311 UI32 */ #define DPoint_G1_NPS2R_DirEn ((DpId) 0x1C90) /* 7312 EnDis */ #define DPoint_G1_NPS2R_Tr1 ((DpId) 0x1C91) /* 7313 TripMode */ #define DPoint_G1_NPS2R_Tr2 ((DpId) 0x1C92) /* 7314 TripMode */ #define DPoint_G1_NPS2R_Tr3 ((DpId) 0x1C93) /* 7315 TripMode */ #define DPoint_G1_NPS2R_Tr4 ((DpId) 0x1C94) /* 7316 TripMode */ #define DPoint_G1_NPS2R_TccUD ((DpId) 0x1C95) /* 7317 TccCurve */ #define DPoint_G1_NPS3R_Ip ((DpId) 0x1C96) /* 7318 UI32 */ #define DPoint_G1_NPS3R_TDtMin ((DpId) 0x1C97) /* 7319 UI32 */ #define DPoint_G1_NPS3R_TDtRes ((DpId) 0x1C98) /* 7320 UI32 */ #define DPoint_G1_NPS3R_DirEn ((DpId) 0x1C99) /* 7321 EnDis */ #define DPoint_G1_NPS3R_Tr1 ((DpId) 0x1C9A) /* 7322 TripMode */ #define DPoint_G1_NPS3R_Tr2 ((DpId) 0x1C9B) /* 7323 TripMode */ #define DPoint_G1_NPS3R_Tr3 ((DpId) 0x1C9C) /* 7324 TripMode */ #define DPoint_G1_NPS3R_Tr4 ((DpId) 0x1C9D) /* 7325 TripMode */ #define DPoint_G1_NPSLL1_Ip ((DpId) 0x1C9E) /* 7326 UI32 */ #define DPoint_G1_NPSLL1_Tcc ((DpId) 0x1C9F) /* 7327 UI16 */ #define DPoint_G1_NPSLL1_TDtMin ((DpId) 0x1CA0) /* 7328 UI32 */ #define DPoint_G1_NPSLL1_TDtRes ((DpId) 0x1CA1) /* 7329 UI32 */ #define DPoint_G1_NPSLL1_Tm ((DpId) 0x1CA2) /* 7330 UI32 */ #define DPoint_G1_NPSLL1_Imin ((DpId) 0x1CA3) /* 7331 UI32 */ #define DPoint_G1_NPSLL1_Tmin ((DpId) 0x1CA4) /* 7332 UI32 */ #define DPoint_G1_NPSLL1_Tmax ((DpId) 0x1CA5) /* 7333 UI32 */ #define DPoint_G1_NPSLL1_Ta ((DpId) 0x1CA6) /* 7334 UI32 */ #define DPoint_G1_NPSLL1_ImaxEn ((DpId) 0x1CA7) /* 7335 EnDis */ #define DPoint_G1_NPSLL1_Imax ((DpId) 0x1CA8) /* 7336 UI32 */ #define DPoint_G1_NPSLL1_En ((DpId) 0x1CA9) /* 7337 EnDis */ #define DPoint_G1_NPSLL1_TccUD ((DpId) 0x1CAA) /* 7338 TccCurve */ #define DPoint_G1_NPSLL2_Ip ((DpId) 0x1CAB) /* 7339 UI32 */ #define DPoint_G1_NPSLL2_Tcc ((DpId) 0x1CAC) /* 7340 UI16 */ #define DPoint_G1_NPSLL2_TDtMin ((DpId) 0x1CAD) /* 7341 UI32 */ #define DPoint_G1_NPSLL2_TDtRes ((DpId) 0x1CAE) /* 7342 UI32 */ #define DPoint_G1_NPSLL2_Tm ((DpId) 0x1CAF) /* 7343 UI32 */ #define DPoint_G1_NPSLL2_Imin ((DpId) 0x1CB0) /* 7344 UI32 */ #define DPoint_G1_NPSLL2_Tmin ((DpId) 0x1CB1) /* 7345 UI32 */ #define DPoint_G1_NPSLL2_Tmax ((DpId) 0x1CB2) /* 7346 UI32 */ #define DPoint_G1_NPSLL2_Ta ((DpId) 0x1CB3) /* 7347 UI32 */ #define DPoint_G1_NPSLL2_ImaxEn ((DpId) 0x1CB4) /* 7348 EnDis */ #define DPoint_G1_NPSLL2_Imax ((DpId) 0x1CB5) /* 7349 UI32 */ #define DPoint_G1_NPSLL2_En ((DpId) 0x1CB6) /* 7350 EnDis */ #define DPoint_G1_NPSLL2_TccUD ((DpId) 0x1CB7) /* 7351 TccCurve */ #define DPoint_G1_NPSLL3_Ip ((DpId) 0x1CB8) /* 7352 UI32 */ #define DPoint_G1_NPSLL3_TDtMin ((DpId) 0x1CB9) /* 7353 UI32 */ #define DPoint_G1_NPSLL3_TDtRes ((DpId) 0x1CBA) /* 7354 UI32 */ #define DPoint_G1_NPSLL3_En ((DpId) 0x1CBB) /* 7355 EnDis */ #define DPoint_G1_EFLL1_Ip ((DpId) 0x1CBC) /* 7356 UI32 */ #define DPoint_G1_EFLL1_Tcc ((DpId) 0x1CBD) /* 7357 UI16 */ #define DPoint_G1_EFLL1_TDtMin ((DpId) 0x1CBE) /* 7358 UI32 */ #define DPoint_G1_EFLL1_TDtRes ((DpId) 0x1CBF) /* 7359 UI32 */ #define DPoint_G1_EFLL1_Tm ((DpId) 0x1CC0) /* 7360 UI32 */ #define DPoint_G1_EFLL1_Imin ((DpId) 0x1CC1) /* 7361 UI32 */ #define DPoint_G1_EFLL1_Tmin ((DpId) 0x1CC2) /* 7362 UI32 */ #define DPoint_G1_EFLL1_Tmax ((DpId) 0x1CC3) /* 7363 UI32 */ #define DPoint_G1_EFLL1_Ta ((DpId) 0x1CC4) /* 7364 UI32 */ #define DPoint_G1_EFLL1_ImaxEn ((DpId) 0x1CC5) /* 7365 EnDis */ #define DPoint_G1_EFLL1_Imax ((DpId) 0x1CC6) /* 7366 UI32 */ #define DPoint_G1_EFLL1_En ((DpId) 0x1CC7) /* 7367 EnDis */ #define DPoint_G1_EFLL1_TccUD ((DpId) 0x1CC8) /* 7368 TccCurve */ #define DPoint_G1_EFLL2_Ip ((DpId) 0x1CC9) /* 7369 UI32 */ #define DPoint_G1_EFLL2_Tcc ((DpId) 0x1CCA) /* 7370 UI16 */ #define DPoint_G1_EFLL2_TDtMin ((DpId) 0x1CCB) /* 7371 UI32 */ #define DPoint_G1_EFLL2_TDtRes ((DpId) 0x1CCC) /* 7372 UI32 */ #define DPoint_G1_EFLL2_Tm ((DpId) 0x1CCD) /* 7373 UI32 */ #define DPoint_G1_EFLL2_Imin ((DpId) 0x1CCE) /* 7374 UI32 */ #define DPoint_G1_EFLL2_Tmin ((DpId) 0x1CCF) /* 7375 UI32 */ #define DPoint_G1_EFLL2_Tmax ((DpId) 0x1CD0) /* 7376 UI32 */ #define DPoint_G1_EFLL2_Ta ((DpId) 0x1CD1) /* 7377 UI32 */ #define DPoint_G1_EFLL2_ImaxEn ((DpId) 0x1CD2) /* 7378 EnDis */ #define DPoint_G1_EFLL2_Imax ((DpId) 0x1CD3) /* 7379 UI32 */ #define DPoint_G1_EFLL2_En ((DpId) 0x1CD4) /* 7380 EnDis */ #define DPoint_G1_EFLL2_TccUD ((DpId) 0x1CD5) /* 7381 TccCurve */ #define DPoint_G1_EFLL3_En ((DpId) 0x1CD6) /* 7382 EnDis */ #define DPoint_G1_SEFLL_Ip ((DpId) 0x1CD7) /* 7383 UI32 */ #define DPoint_G1_SEFLL_TDtMin ((DpId) 0x1CD8) /* 7384 UI32 */ #define DPoint_G1_SEFLL_TDtRes ((DpId) 0x1CD9) /* 7385 UI32 */ #define DPoint_G1_SEFLL_En ((DpId) 0x1CDA) /* 7386 EnDis */ #define DPoint_G1_AutoOpenPowerFlowReduction ((DpId) 0x1CDB) /* 7387 UI8 */ #define DPoint_G1_AutoOpenPowerFlowTime ((DpId) 0x1CDC) /* 7388 UI16 */ #define DPoint_G1_LSRM_Timer ((DpId) 0x1CDD) /* 7389 UI16 */ #define DPoint_G1_LSRM_En ((DpId) 0x1CDE) /* 7390 EnDis */ #define DPoint_G1_Uv4_TDtMin ((DpId) 0x1CDF) /* 7391 UI32 */ #define DPoint_G1_Uv4_TDtRes ((DpId) 0x1CE0) /* 7392 UI32 */ #define DPoint_G1_Uv4_Trm ((DpId) 0x1CE1) /* 7393 TripMode */ #define DPoint_G1_Uv4_Um_min ((DpId) 0x1CE2) /* 7394 UI32 */ #define DPoint_G1_Uv4_Um_max ((DpId) 0x1CE3) /* 7395 UI32 */ #define DPoint_G1_Uv4_Um_mid ((DpId) 0x1CE4) /* 7396 UI32 */ #define DPoint_G1_Uv4_Tlock ((DpId) 0x1CE5) /* 7397 UI16 */ #define DPoint_G1_Uv4_Utype ((DpId) 0x1CE6) /* 7398 Uv4VoltageType */ #define DPoint_G1_Uv4_Voltages ((DpId) 0x1CE7) /* 7399 Uv4Voltages */ #define DPoint_G1_SingleTripleModeF ((DpId) 0x1CE8) /* 7400 SingleTripleMode */ #define DPoint_G1_SingleTripleModeR ((DpId) 0x1CE9) /* 7401 SingleTripleMode */ #define DPoint_G1_SinglePhaseVoltageDetect ((DpId) 0x1CEA) /* 7402 EnDis */ #define DPoint_G1_Uv1_SingleTripleVoltageType ((DpId) 0x1CEB) /* 7403 SingleTripleVoltageType */ #define DPoint_G1_Ov1_SingleTripleVoltageType ((DpId) 0x1CEC) /* 7404 SingleTripleVoltageType */ #define DPoint_G1_LlbEnable ((DpId) 0x1CED) /* 7405 EnDis */ #define DPoint_G1_LlbUM ((DpId) 0x1CEE) /* 7406 UI32 */ #define DPoint_G1_SectionaliserMode ((DpId) 0x1CEF) /* 7407 EnDis */ #define DPoint_G1_OcDcr ((DpId) 0x1CF0) /* 7408 LockDynamic */ #define DPoint_G1_NpsDcr ((DpId) 0x1CF1) /* 7409 LockDynamic */ #define DPoint_G1_EfDcr ((DpId) 0x1CF2) /* 7410 LockDynamic */ #define DPoint_G1_SefDcr ((DpId) 0x1CF3) /* 7411 LockDynamic */ #define DPoint_G1_Ov3_Um ((DpId) 0x1CF4) /* 7412 UI32 */ #define DPoint_G1_Ov3_TDtMin ((DpId) 0x1CF5) /* 7413 UI32 */ #define DPoint_G1_Ov3_TDtRes ((DpId) 0x1CF6) /* 7414 UI32 */ #define DPoint_G1_Ov3_Trm ((DpId) 0x1CF7) /* 7415 TripMode */ #define DPoint_G1_Ov4_Um ((DpId) 0x1CF8) /* 7416 UI32 */ #define DPoint_G1_Ov4_TDtMin ((DpId) 0x1CF9) /* 7417 UI32 */ #define DPoint_G1_Ov4_TDtRes ((DpId) 0x1CFA) /* 7418 UI32 */ #define DPoint_G1_Ov4_Trm ((DpId) 0x1CFB) /* 7419 TripMode */ #define DPoint_G1_SequenceAdvanceStep ((DpId) 0x1CFC) /* 7420 UI8 */ #define DPoint_G1_UV3_SSTOnly ((DpId) 0x1CFD) /* 7421 EnDis */ #define DPoint_G1_OV3MovingAverageMode ((DpId) 0x1CFE) /* 7422 EnDis */ #define DPoint_G1_OV3MovingAverageWindow ((DpId) 0x1CFF) /* 7423 UI32 */ #define DPoint_G1_ArveTripsToLockout ((DpId) 0x1D00) /* 7424 TripsToLockout */ #define DPoint_G1_I2I1_Trm ((DpId) 0x1D01) /* 7425 TripModeDLA */ #define DPoint_G1_I2I1_Pickup ((DpId) 0x1D02) /* 7426 UI32 */ #define DPoint_G1_I2I1_MinI2 ((DpId) 0x1D03) /* 7427 UI32 */ #define DPoint_G1_I2I1_TDtMin ((DpId) 0x1D04) /* 7428 UI32 */ #define DPoint_G1_I2I1_TDtRes ((DpId) 0x1D05) /* 7429 UI32 */ #define DPoint_G1_SEFF_Ip_HighPrec ((DpId) 0x1D06) /* 7430 UI32 */ #define DPoint_G1_SEFR_Ip_HighPrec ((DpId) 0x1D07) /* 7431 UI32 */ #define DPoint_G1_SEFLL_Ip_HighPrec ((DpId) 0x1D08) /* 7432 UI32 */ #define DPoint_G1_SSTControl_En ((DpId) 0x1D09) /* 7433 EnDis */ #define DPoint_G1_SSTControl_Tst ((DpId) 0x1D0A) /* 7434 UI32 */ #define DPoint_G2_NpsAt ((DpId) 0x1D0E) /* 7438 UI32 */ #define DPoint_G2_NpsDnd ((DpId) 0x1D0F) /* 7439 DndMode */ #define DPoint_G2_SstNpsForward ((DpId) 0x1D10) /* 7440 UI8 */ #define DPoint_G2_SstNpsReverse ((DpId) 0x1D11) /* 7441 UI8 */ #define DPoint_G2_NPS1F_Ip ((DpId) 0x1D12) /* 7442 UI32 */ #define DPoint_G2_NPS1F_Tcc ((DpId) 0x1D13) /* 7443 UI16 */ #define DPoint_G2_NPS1F_TDtMin ((DpId) 0x1D14) /* 7444 UI32 */ #define DPoint_G2_NPS1F_TDtRes ((DpId) 0x1D15) /* 7445 UI32 */ #define DPoint_G2_NPS1F_Tm ((DpId) 0x1D16) /* 7446 UI32 */ #define DPoint_G2_NPS1F_Imin ((DpId) 0x1D17) /* 7447 UI32 */ #define DPoint_G2_NPS1F_Tmin ((DpId) 0x1D18) /* 7448 UI32 */ #define DPoint_G2_NPS1F_Tmax ((DpId) 0x1D19) /* 7449 UI32 */ #define DPoint_G2_NPS1F_Ta ((DpId) 0x1D1A) /* 7450 UI32 */ #define DPoint_G2_NPS1F_ImaxEn ((DpId) 0x1D1B) /* 7451 EnDis */ #define DPoint_G2_NPS1F_Imax ((DpId) 0x1D1C) /* 7452 UI32 */ #define DPoint_G2_NPS1F_DirEn ((DpId) 0x1D1D) /* 7453 EnDis */ #define DPoint_G2_NPS1F_Tr1 ((DpId) 0x1D1E) /* 7454 TripMode */ #define DPoint_G2_NPS1F_Tr2 ((DpId) 0x1D1F) /* 7455 TripMode */ #define DPoint_G2_NPS1F_Tr3 ((DpId) 0x1D20) /* 7456 TripMode */ #define DPoint_G2_NPS1F_Tr4 ((DpId) 0x1D21) /* 7457 TripMode */ #define DPoint_G2_NPS1F_TccUD ((DpId) 0x1D22) /* 7458 TccCurve */ #define DPoint_G2_NPS2F_Ip ((DpId) 0x1D23) /* 7459 UI32 */ #define DPoint_G2_NPS2F_Tcc ((DpId) 0x1D24) /* 7460 UI16 */ #define DPoint_G2_NPS2F_TDtMin ((DpId) 0x1D25) /* 7461 UI32 */ #define DPoint_G2_NPS2F_TDtRes ((DpId) 0x1D26) /* 7462 UI32 */ #define DPoint_G2_NPS2F_Tm ((DpId) 0x1D27) /* 7463 UI32 */ #define DPoint_G2_NPS2F_Imin ((DpId) 0x1D28) /* 7464 UI32 */ #define DPoint_G2_NPS2F_Tmin ((DpId) 0x1D29) /* 7465 UI32 */ #define DPoint_G2_NPS2F_Tmax ((DpId) 0x1D2A) /* 7466 UI32 */ #define DPoint_G2_NPS2F_Ta ((DpId) 0x1D2B) /* 7467 UI32 */ #define DPoint_G2_NPS2F_ImaxEn ((DpId) 0x1D2C) /* 7468 EnDis */ #define DPoint_G2_NPS2F_Imax ((DpId) 0x1D2D) /* 7469 UI32 */ #define DPoint_G2_NPS2F_DirEn ((DpId) 0x1D2E) /* 7470 EnDis */ #define DPoint_G2_NPS2F_Tr1 ((DpId) 0x1D2F) /* 7471 TripMode */ #define DPoint_G2_NPS2F_Tr2 ((DpId) 0x1D30) /* 7472 TripMode */ #define DPoint_G2_NPS2F_Tr3 ((DpId) 0x1D31) /* 7473 TripMode */ #define DPoint_G2_NPS2F_Tr4 ((DpId) 0x1D32) /* 7474 TripMode */ #define DPoint_G2_NPS2F_TccUD ((DpId) 0x1D33) /* 7475 TccCurve */ #define DPoint_G2_NPS3F_Ip ((DpId) 0x1D34) /* 7476 UI32 */ #define DPoint_G2_NPS3F_TDtMin ((DpId) 0x1D35) /* 7477 UI32 */ #define DPoint_G2_NPS3F_TDtRes ((DpId) 0x1D36) /* 7478 UI32 */ #define DPoint_G2_NPS3F_DirEn ((DpId) 0x1D37) /* 7479 EnDis */ #define DPoint_G2_NPS3F_Tr1 ((DpId) 0x1D38) /* 7480 TripMode */ #define DPoint_G2_NPS3F_Tr2 ((DpId) 0x1D39) /* 7481 TripMode */ #define DPoint_G2_NPS3F_Tr3 ((DpId) 0x1D3A) /* 7482 TripMode */ #define DPoint_G2_NPS3F_Tr4 ((DpId) 0x1D3B) /* 7483 TripMode */ #define DPoint_G2_NPS1R_Ip ((DpId) 0x1D3C) /* 7484 UI32 */ #define DPoint_G2_NPS1R_Tcc ((DpId) 0x1D3D) /* 7485 UI16 */ #define DPoint_G2_NPS1R_TDtMin ((DpId) 0x1D3E) /* 7486 UI32 */ #define DPoint_G2_NPS1R_TDtRes ((DpId) 0x1D3F) /* 7487 UI32 */ #define DPoint_G2_NPS1R_Tm ((DpId) 0x1D40) /* 7488 UI32 */ #define DPoint_G2_NPS1R_Imin ((DpId) 0x1D41) /* 7489 UI32 */ #define DPoint_G2_NPS1R_Tmin ((DpId) 0x1D42) /* 7490 UI32 */ #define DPoint_G2_NPS1R_Tmax ((DpId) 0x1D43) /* 7491 UI32 */ #define DPoint_G2_NPS1R_Ta ((DpId) 0x1D44) /* 7492 UI32 */ #define DPoint_G2_NPS1R_ImaxEn ((DpId) 0x1D45) /* 7493 EnDis */ #define DPoint_G2_NPS1R_Imax ((DpId) 0x1D46) /* 7494 UI32 */ #define DPoint_G2_NPS1R_DirEn ((DpId) 0x1D47) /* 7495 EnDis */ #define DPoint_G2_NPS1R_Tr1 ((DpId) 0x1D48) /* 7496 TripMode */ #define DPoint_G2_NPS1R_Tr2 ((DpId) 0x1D49) /* 7497 TripMode */ #define DPoint_G2_NPS1R_Tr3 ((DpId) 0x1D4A) /* 7498 TripMode */ #define DPoint_G2_NPS1R_Tr4 ((DpId) 0x1D4B) /* 7499 TripMode */ #define DPoint_G2_NPS1R_TccUD ((DpId) 0x1D4C) /* 7500 TccCurve */ #define DPoint_G2_NPS2R_Ip ((DpId) 0x1D4D) /* 7501 UI32 */ #define DPoint_G2_NPS2R_Tcc ((DpId) 0x1D4E) /* 7502 UI16 */ #define DPoint_G2_NPS2R_TDtMin ((DpId) 0x1D4F) /* 7503 UI32 */ #define DPoint_G2_NPS2R_TDtRes ((DpId) 0x1D50) /* 7504 UI32 */ #define DPoint_G2_NPS2R_Tm ((DpId) 0x1D51) /* 7505 UI32 */ #define DPoint_G2_NPS2R_Imin ((DpId) 0x1D52) /* 7506 UI32 */ #define DPoint_G2_NPS2R_Tmin ((DpId) 0x1D53) /* 7507 UI32 */ #define DPoint_G2_NPS2R_Tmax ((DpId) 0x1D54) /* 7508 UI32 */ #define DPoint_G2_NPS2R_Ta ((DpId) 0x1D55) /* 7509 UI32 */ #define DPoint_G2_NPS2R_ImaxEn ((DpId) 0x1D56) /* 7510 EnDis */ #define DPoint_G2_NPS2R_Imax ((DpId) 0x1D57) /* 7511 UI32 */ #define DPoint_G2_NPS2R_DirEn ((DpId) 0x1D58) /* 7512 EnDis */ #define DPoint_G2_NPS2R_Tr1 ((DpId) 0x1D59) /* 7513 TripMode */ #define DPoint_G2_NPS2R_Tr2 ((DpId) 0x1D5A) /* 7514 TripMode */ #define DPoint_G2_NPS2R_Tr3 ((DpId) 0x1D5B) /* 7515 TripMode */ #define DPoint_G2_NPS2R_Tr4 ((DpId) 0x1D5C) /* 7516 TripMode */ #define DPoint_G2_NPS2R_TccUD ((DpId) 0x1D5D) /* 7517 TccCurve */ #define DPoint_G2_NPS3R_Ip ((DpId) 0x1D5E) /* 7518 UI32 */ #define DPoint_G2_NPS3R_TDtMin ((DpId) 0x1D5F) /* 7519 UI32 */ #define DPoint_G2_NPS3R_TDtRes ((DpId) 0x1D60) /* 7520 UI32 */ #define DPoint_G2_NPS3R_DirEn ((DpId) 0x1D61) /* 7521 EnDis */ #define DPoint_G2_NPS3R_Tr1 ((DpId) 0x1D62) /* 7522 TripMode */ #define DPoint_G2_NPS3R_Tr2 ((DpId) 0x1D63) /* 7523 TripMode */ #define DPoint_G2_NPS3R_Tr3 ((DpId) 0x1D64) /* 7524 TripMode */ #define DPoint_G2_NPS3R_Tr4 ((DpId) 0x1D65) /* 7525 TripMode */ #define DPoint_G2_NPSLL1_Ip ((DpId) 0x1D66) /* 7526 UI32 */ #define DPoint_G2_NPSLL1_Tcc ((DpId) 0x1D67) /* 7527 UI16 */ #define DPoint_G2_NPSLL1_TDtMin ((DpId) 0x1D68) /* 7528 UI32 */ #define DPoint_G2_NPSLL1_TDtRes ((DpId) 0x1D69) /* 7529 UI32 */ #define DPoint_G2_NPSLL1_Tm ((DpId) 0x1D6A) /* 7530 UI32 */ #define DPoint_G2_NPSLL1_Imin ((DpId) 0x1D6B) /* 7531 UI32 */ #define DPoint_G2_NPSLL1_Tmin ((DpId) 0x1D6C) /* 7532 UI32 */ #define DPoint_G2_NPSLL1_Tmax ((DpId) 0x1D6D) /* 7533 UI32 */ #define DPoint_G2_NPSLL1_Ta ((DpId) 0x1D6E) /* 7534 UI32 */ #define DPoint_G2_NPSLL1_ImaxEn ((DpId) 0x1D6F) /* 7535 EnDis */ #define DPoint_G2_NPSLL1_Imax ((DpId) 0x1D70) /* 7536 UI32 */ #define DPoint_G2_NPSLL1_En ((DpId) 0x1D71) /* 7537 EnDis */ #define DPoint_G2_NPSLL1_TccUD ((DpId) 0x1D72) /* 7538 TccCurve */ #define DPoint_G2_NPSLL2_Ip ((DpId) 0x1D73) /* 7539 UI32 */ #define DPoint_G2_NPSLL2_Tcc ((DpId) 0x1D74) /* 7540 UI16 */ #define DPoint_G2_NPSLL2_TDtMin ((DpId) 0x1D75) /* 7541 UI32 */ #define DPoint_G2_NPSLL2_TDtRes ((DpId) 0x1D76) /* 7542 UI32 */ #define DPoint_G2_NPSLL2_Tm ((DpId) 0x1D77) /* 7543 UI32 */ #define DPoint_G2_NPSLL2_Imin ((DpId) 0x1D78) /* 7544 UI32 */ #define DPoint_G2_NPSLL2_Tmin ((DpId) 0x1D79) /* 7545 UI32 */ #define DPoint_G2_NPSLL2_Tmax ((DpId) 0x1D7A) /* 7546 UI32 */ #define DPoint_G2_NPSLL2_Ta ((DpId) 0x1D7B) /* 7547 UI32 */ #define DPoint_G2_NPSLL2_ImaxEn ((DpId) 0x1D7C) /* 7548 EnDis */ #define DPoint_G2_NPSLL2_Imax ((DpId) 0x1D7D) /* 7549 UI32 */ #define DPoint_G2_NPSLL2_En ((DpId) 0x1D7E) /* 7550 EnDis */ #define DPoint_G2_NPSLL2_TccUD ((DpId) 0x1D7F) /* 7551 TccCurve */ #define DPoint_G2_NPSLL3_Ip ((DpId) 0x1D80) /* 7552 UI32 */ #define DPoint_G2_NPSLL3_TDtMin ((DpId) 0x1D81) /* 7553 UI32 */ #define DPoint_G2_NPSLL3_TDtRes ((DpId) 0x1D82) /* 7554 UI32 */ #define DPoint_G2_NPSLL3_En ((DpId) 0x1D83) /* 7555 EnDis */ #define DPoint_G2_EFLL1_Ip ((DpId) 0x1D84) /* 7556 UI32 */ #define DPoint_G2_EFLL1_Tcc ((DpId) 0x1D85) /* 7557 UI16 */ #define DPoint_G2_EFLL1_TDtMin ((DpId) 0x1D86) /* 7558 UI32 */ #define DPoint_G2_EFLL1_TDtRes ((DpId) 0x1D87) /* 7559 UI32 */ #define DPoint_G2_EFLL1_Tm ((DpId) 0x1D88) /* 7560 UI32 */ #define DPoint_G2_EFLL1_Imin ((DpId) 0x1D89) /* 7561 UI32 */ #define DPoint_G2_EFLL1_Tmin ((DpId) 0x1D8A) /* 7562 UI32 */ #define DPoint_G2_EFLL1_Tmax ((DpId) 0x1D8B) /* 7563 UI32 */ #define DPoint_G2_EFLL1_Ta ((DpId) 0x1D8C) /* 7564 UI32 */ #define DPoint_G2_EFLL1_ImaxEn ((DpId) 0x1D8D) /* 7565 EnDis */ #define DPoint_G2_EFLL1_Imax ((DpId) 0x1D8E) /* 7566 UI32 */ #define DPoint_G2_EFLL1_En ((DpId) 0x1D8F) /* 7567 EnDis */ #define DPoint_G2_EFLL1_TccUD ((DpId) 0x1D90) /* 7568 TccCurve */ #define DPoint_G2_EFLL2_Ip ((DpId) 0x1D91) /* 7569 UI32 */ #define DPoint_G2_EFLL2_Tcc ((DpId) 0x1D92) /* 7570 UI16 */ #define DPoint_G2_EFLL2_TDtMin ((DpId) 0x1D93) /* 7571 UI32 */ #define DPoint_G2_EFLL2_TDtRes ((DpId) 0x1D94) /* 7572 UI32 */ #define DPoint_G2_EFLL2_Tm ((DpId) 0x1D95) /* 7573 UI32 */ #define DPoint_G2_EFLL2_Imin ((DpId) 0x1D96) /* 7574 UI32 */ #define DPoint_G2_EFLL2_Tmin ((DpId) 0x1D97) /* 7575 UI32 */ #define DPoint_G2_EFLL2_Tmax ((DpId) 0x1D98) /* 7576 UI32 */ #define DPoint_G2_EFLL2_Ta ((DpId) 0x1D99) /* 7577 UI32 */ #define DPoint_G2_EFLL2_ImaxEn ((DpId) 0x1D9A) /* 7578 EnDis */ #define DPoint_G2_EFLL2_Imax ((DpId) 0x1D9B) /* 7579 UI32 */ #define DPoint_G2_EFLL2_En ((DpId) 0x1D9C) /* 7580 EnDis */ #define DPoint_G2_EFLL2_TccUD ((DpId) 0x1D9D) /* 7581 TccCurve */ #define DPoint_G2_EFLL3_En ((DpId) 0x1D9E) /* 7582 EnDis */ #define DPoint_G2_SEFLL_Ip ((DpId) 0x1D9F) /* 7583 UI32 */ #define DPoint_G2_SEFLL_TDtMin ((DpId) 0x1DA0) /* 7584 UI32 */ #define DPoint_G2_SEFLL_TDtRes ((DpId) 0x1DA1) /* 7585 UI32 */ #define DPoint_G2_SEFLL_En ((DpId) 0x1DA2) /* 7586 EnDis */ #define DPoint_G2_AutoOpenPowerFlowReduction ((DpId) 0x1DA3) /* 7587 UI8 */ #define DPoint_G2_AutoOpenPowerFlowTime ((DpId) 0x1DA4) /* 7588 UI16 */ #define DPoint_G2_LSRM_Timer ((DpId) 0x1DA5) /* 7589 UI16 */ #define DPoint_G2_LSRM_En ((DpId) 0x1DA6) /* 7590 EnDis */ #define DPoint_G2_Uv4_TDtMin ((DpId) 0x1DA7) /* 7591 UI32 */ #define DPoint_G2_Uv4_TDtRes ((DpId) 0x1DA8) /* 7592 UI32 */ #define DPoint_G2_Uv4_Trm ((DpId) 0x1DA9) /* 7593 TripMode */ #define DPoint_G2_Uv4_Um_min ((DpId) 0x1DAA) /* 7594 UI32 */ #define DPoint_G2_Uv4_Um_max ((DpId) 0x1DAB) /* 7595 UI32 */ #define DPoint_G2_Uv4_Um_mid ((DpId) 0x1DAC) /* 7596 UI32 */ #define DPoint_G2_Uv4_Tlock ((DpId) 0x1DAD) /* 7597 UI16 */ #define DPoint_G2_Uv4_Utype ((DpId) 0x1DAE) /* 7598 Uv4VoltageType */ #define DPoint_G2_Uv4_Voltages ((DpId) 0x1DAF) /* 7599 Uv4Voltages */ #define DPoint_G2_SingleTripleModeF ((DpId) 0x1DB0) /* 7600 SingleTripleMode */ #define DPoint_G2_SingleTripleModeR ((DpId) 0x1DB1) /* 7601 SingleTripleMode */ #define DPoint_G2_SinglePhaseVoltageDetect ((DpId) 0x1DB2) /* 7602 EnDis */ #define DPoint_G2_Uv1_SingleTripleVoltageType ((DpId) 0x1DB3) /* 7603 SingleTripleVoltageType */ #define DPoint_G2_Ov1_SingleTripleVoltageType ((DpId) 0x1DB4) /* 7604 SingleTripleVoltageType */ #define DPoint_G2_LlbEnable ((DpId) 0x1DB5) /* 7605 EnDis */ #define DPoint_G2_LlbUM ((DpId) 0x1DB6) /* 7606 UI32 */ #define DPoint_G2_SectionaliserMode ((DpId) 0x1DB7) /* 7607 EnDis */ #define DPoint_G2_OcDcr ((DpId) 0x1DB8) /* 7608 LockDynamic */ #define DPoint_G2_NpsDcr ((DpId) 0x1DB9) /* 7609 LockDynamic */ #define DPoint_G2_EfDcr ((DpId) 0x1DBA) /* 7610 LockDynamic */ #define DPoint_G2_SefDcr ((DpId) 0x1DBB) /* 7611 LockDynamic */ #define DPoint_G2_Ov3_Um ((DpId) 0x1DBC) /* 7612 UI32 */ #define DPoint_G2_Ov3_TDtMin ((DpId) 0x1DBD) /* 7613 UI32 */ #define DPoint_G2_Ov3_TDtRes ((DpId) 0x1DBE) /* 7614 UI32 */ #define DPoint_G2_Ov3_Trm ((DpId) 0x1DBF) /* 7615 TripMode */ #define DPoint_G2_Ov4_Um ((DpId) 0x1DC0) /* 7616 UI32 */ #define DPoint_G2_Ov4_TDtMin ((DpId) 0x1DC1) /* 7617 UI32 */ #define DPoint_G2_Ov4_TDtRes ((DpId) 0x1DC2) /* 7618 UI32 */ #define DPoint_G2_Ov4_Trm ((DpId) 0x1DC3) /* 7619 TripMode */ #define DPoint_G2_SequenceAdvanceStep ((DpId) 0x1DC4) /* 7620 UI8 */ #define DPoint_G2_UV3_SSTOnly ((DpId) 0x1DC5) /* 7621 EnDis */ #define DPoint_G2_OV3MovingAverageMode ((DpId) 0x1DC6) /* 7622 EnDis */ #define DPoint_G2_OV3MovingAverageWindow ((DpId) 0x1DC7) /* 7623 UI32 */ #define DPoint_G2_ArveTripsToLockout ((DpId) 0x1DC8) /* 7624 TripsToLockout */ #define DPoint_G2_I2I1_Trm ((DpId) 0x1DC9) /* 7625 TripModeDLA */ #define DPoint_G2_I2I1_Pickup ((DpId) 0x1DCA) /* 7626 UI32 */ #define DPoint_G2_I2I1_MinI2 ((DpId) 0x1DCB) /* 7627 UI32 */ #define DPoint_G2_I2I1_TDtMin ((DpId) 0x1DCC) /* 7628 UI32 */ #define DPoint_G2_I2I1_TDtRes ((DpId) 0x1DCD) /* 7629 UI32 */ #define DPoint_G2_SEFF_Ip_HighPrec ((DpId) 0x1DCE) /* 7630 UI32 */ #define DPoint_G2_SEFR_Ip_HighPrec ((DpId) 0x1DCF) /* 7631 UI32 */ #define DPoint_G2_SEFLL_Ip_HighPrec ((DpId) 0x1DD0) /* 7632 UI32 */ #define DPoint_G2_SSTControl_En ((DpId) 0x1DD1) /* 7633 EnDis */ #define DPoint_G2_SSTControl_Tst ((DpId) 0x1DD2) /* 7634 UI32 */ #define DPoint_G3_NpsAt ((DpId) 0x1DD6) /* 7638 UI32 */ #define DPoint_G3_NpsDnd ((DpId) 0x1DD7) /* 7639 DndMode */ #define DPoint_G3_SstNpsForward ((DpId) 0x1DD8) /* 7640 UI8 */ #define DPoint_G3_SstNpsReverse ((DpId) 0x1DD9) /* 7641 UI8 */ #define DPoint_G3_NPS1F_Ip ((DpId) 0x1DDA) /* 7642 UI32 */ #define DPoint_G3_NPS1F_Tcc ((DpId) 0x1DDB) /* 7643 UI16 */ #define DPoint_G3_NPS1F_TDtMin ((DpId) 0x1DDC) /* 7644 UI32 */ #define DPoint_G3_NPS1F_TDtRes ((DpId) 0x1DDD) /* 7645 UI32 */ #define DPoint_G3_NPS1F_Tm ((DpId) 0x1DDE) /* 7646 UI32 */ #define DPoint_G3_NPS1F_Imin ((DpId) 0x1DDF) /* 7647 UI32 */ #define DPoint_G3_NPS1F_Tmin ((DpId) 0x1DE0) /* 7648 UI32 */ #define DPoint_G3_NPS1F_Tmax ((DpId) 0x1DE1) /* 7649 UI32 */ #define DPoint_G3_NPS1F_Ta ((DpId) 0x1DE2) /* 7650 UI32 */ #define DPoint_G3_NPS1F_ImaxEn ((DpId) 0x1DE3) /* 7651 EnDis */ #define DPoint_G3_NPS1F_Imax ((DpId) 0x1DE4) /* 7652 UI32 */ #define DPoint_G3_NPS1F_DirEn ((DpId) 0x1DE5) /* 7653 EnDis */ #define DPoint_G3_NPS1F_Tr1 ((DpId) 0x1DE6) /* 7654 TripMode */ #define DPoint_G3_NPS1F_Tr2 ((DpId) 0x1DE7) /* 7655 TripMode */ #define DPoint_G3_NPS1F_Tr3 ((DpId) 0x1DE8) /* 7656 TripMode */ #define DPoint_G3_NPS1F_Tr4 ((DpId) 0x1DE9) /* 7657 TripMode */ #define DPoint_G3_NPS1F_TccUD ((DpId) 0x1DEA) /* 7658 TccCurve */ #define DPoint_G3_NPS2F_Ip ((DpId) 0x1DEB) /* 7659 UI32 */ #define DPoint_G3_NPS2F_Tcc ((DpId) 0x1DEC) /* 7660 UI16 */ #define DPoint_G3_NPS2F_TDtMin ((DpId) 0x1DED) /* 7661 UI32 */ #define DPoint_G3_NPS2F_TDtRes ((DpId) 0x1DEE) /* 7662 UI32 */ #define DPoint_G3_NPS2F_Tm ((DpId) 0x1DEF) /* 7663 UI32 */ #define DPoint_G3_NPS2F_Imin ((DpId) 0x1DF0) /* 7664 UI32 */ #define DPoint_G3_NPS2F_Tmin ((DpId) 0x1DF1) /* 7665 UI32 */ #define DPoint_G3_NPS2F_Tmax ((DpId) 0x1DF2) /* 7666 UI32 */ #define DPoint_G3_NPS2F_Ta ((DpId) 0x1DF3) /* 7667 UI32 */ #define DPoint_G3_NPS2F_ImaxEn ((DpId) 0x1DF4) /* 7668 EnDis */ #define DPoint_G3_NPS2F_Imax ((DpId) 0x1DF5) /* 7669 UI32 */ #define DPoint_G3_NPS2F_DirEn ((DpId) 0x1DF6) /* 7670 EnDis */ #define DPoint_G3_NPS2F_Tr1 ((DpId) 0x1DF7) /* 7671 TripMode */ #define DPoint_G3_NPS2F_Tr2 ((DpId) 0x1DF8) /* 7672 TripMode */ #define DPoint_G3_NPS2F_Tr3 ((DpId) 0x1DF9) /* 7673 TripMode */ #define DPoint_G3_NPS2F_Tr4 ((DpId) 0x1DFA) /* 7674 TripMode */ #define DPoint_G3_NPS2F_TccUD ((DpId) 0x1DFB) /* 7675 TccCurve */ #define DPoint_G3_NPS3F_Ip ((DpId) 0x1DFC) /* 7676 UI32 */ #define DPoint_G3_NPS3F_TDtMin ((DpId) 0x1DFD) /* 7677 UI32 */ #define DPoint_G3_NPS3F_TDtRes ((DpId) 0x1DFE) /* 7678 UI32 */ #define DPoint_G3_NPS3F_DirEn ((DpId) 0x1DFF) /* 7679 EnDis */ #define DPoint_G3_NPS3F_Tr1 ((DpId) 0x1E00) /* 7680 TripMode */ #define DPoint_G3_NPS3F_Tr2 ((DpId) 0x1E01) /* 7681 TripMode */ #define DPoint_G3_NPS3F_Tr3 ((DpId) 0x1E02) /* 7682 TripMode */ #define DPoint_G3_NPS3F_Tr4 ((DpId) 0x1E03) /* 7683 TripMode */ #define DPoint_G3_NPS1R_Ip ((DpId) 0x1E04) /* 7684 UI32 */ #define DPoint_G3_NPS1R_Tcc ((DpId) 0x1E05) /* 7685 UI16 */ #define DPoint_G3_NPS1R_TDtMin ((DpId) 0x1E06) /* 7686 UI32 */ #define DPoint_G3_NPS1R_TDtRes ((DpId) 0x1E07) /* 7687 UI32 */ #define DPoint_G3_NPS1R_Tm ((DpId) 0x1E08) /* 7688 UI32 */ #define DPoint_G3_NPS1R_Imin ((DpId) 0x1E09) /* 7689 UI32 */ #define DPoint_G3_NPS1R_Tmin ((DpId) 0x1E0A) /* 7690 UI32 */ #define DPoint_G3_NPS1R_Tmax ((DpId) 0x1E0B) /* 7691 UI32 */ #define DPoint_G3_NPS1R_Ta ((DpId) 0x1E0C) /* 7692 UI32 */ #define DPoint_G3_NPS1R_ImaxEn ((DpId) 0x1E0D) /* 7693 EnDis */ #define DPoint_G3_NPS1R_Imax ((DpId) 0x1E0E) /* 7694 UI32 */ #define DPoint_G3_NPS1R_DirEn ((DpId) 0x1E0F) /* 7695 EnDis */ #define DPoint_G3_NPS1R_Tr1 ((DpId) 0x1E10) /* 7696 TripMode */ #define DPoint_G3_NPS1R_Tr2 ((DpId) 0x1E11) /* 7697 TripMode */ #define DPoint_G3_NPS1R_Tr3 ((DpId) 0x1E12) /* 7698 TripMode */ #define DPoint_G3_NPS1R_Tr4 ((DpId) 0x1E13) /* 7699 TripMode */ #define DPoint_G3_NPS1R_TccUD ((DpId) 0x1E14) /* 7700 TccCurve */ #define DPoint_G3_NPS2R_Ip ((DpId) 0x1E15) /* 7701 UI32 */ #define DPoint_G3_NPS2R_Tcc ((DpId) 0x1E16) /* 7702 UI16 */ #define DPoint_G3_NPS2R_TDtMin ((DpId) 0x1E17) /* 7703 UI32 */ #define DPoint_G3_NPS2R_TDtRes ((DpId) 0x1E18) /* 7704 UI32 */ #define DPoint_G3_NPS2R_Tm ((DpId) 0x1E19) /* 7705 UI32 */ #define DPoint_G3_NPS2R_Imin ((DpId) 0x1E1A) /* 7706 UI32 */ #define DPoint_G3_NPS2R_Tmin ((DpId) 0x1E1B) /* 7707 UI32 */ #define DPoint_G3_NPS2R_Tmax ((DpId) 0x1E1C) /* 7708 UI32 */ #define DPoint_G3_NPS2R_Ta ((DpId) 0x1E1D) /* 7709 UI32 */ #define DPoint_G3_NPS2R_ImaxEn ((DpId) 0x1E1E) /* 7710 EnDis */ #define DPoint_G3_NPS2R_Imax ((DpId) 0x1E1F) /* 7711 UI32 */ #define DPoint_G3_NPS2R_DirEn ((DpId) 0x1E20) /* 7712 EnDis */ #define DPoint_G3_NPS2R_Tr1 ((DpId) 0x1E21) /* 7713 TripMode */ #define DPoint_G3_NPS2R_Tr2 ((DpId) 0x1E22) /* 7714 TripMode */ #define DPoint_G3_NPS2R_Tr3 ((DpId) 0x1E23) /* 7715 TripMode */ #define DPoint_G3_NPS2R_Tr4 ((DpId) 0x1E24) /* 7716 TripMode */ #define DPoint_G3_NPS2R_TccUD ((DpId) 0x1E25) /* 7717 TccCurve */ #define DPoint_G3_NPS3R_Ip ((DpId) 0x1E26) /* 7718 UI32 */ #define DPoint_G3_NPS3R_TDtMin ((DpId) 0x1E27) /* 7719 UI32 */ #define DPoint_G3_NPS3R_TDtRes ((DpId) 0x1E28) /* 7720 UI32 */ #define DPoint_G3_NPS3R_DirEn ((DpId) 0x1E29) /* 7721 EnDis */ #define DPoint_G3_NPS3R_Tr1 ((DpId) 0x1E2A) /* 7722 TripMode */ #define DPoint_G3_NPS3R_Tr2 ((DpId) 0x1E2B) /* 7723 TripMode */ #define DPoint_G3_NPS3R_Tr3 ((DpId) 0x1E2C) /* 7724 TripMode */ #define DPoint_G3_NPS3R_Tr4 ((DpId) 0x1E2D) /* 7725 TripMode */ #define DPoint_G3_NPSLL1_Ip ((DpId) 0x1E2E) /* 7726 UI32 */ #define DPoint_G3_NPSLL1_Tcc ((DpId) 0x1E2F) /* 7727 UI16 */ #define DPoint_G3_NPSLL1_TDtMin ((DpId) 0x1E30) /* 7728 UI32 */ #define DPoint_G3_NPSLL1_TDtRes ((DpId) 0x1E31) /* 7729 UI32 */ #define DPoint_G3_NPSLL1_Tm ((DpId) 0x1E32) /* 7730 UI32 */ #define DPoint_G3_NPSLL1_Imin ((DpId) 0x1E33) /* 7731 UI32 */ #define DPoint_G3_NPSLL1_Tmin ((DpId) 0x1E34) /* 7732 UI32 */ #define DPoint_G3_NPSLL1_Tmax ((DpId) 0x1E35) /* 7733 UI32 */ #define DPoint_G3_NPSLL1_Ta ((DpId) 0x1E36) /* 7734 UI32 */ #define DPoint_G3_NPSLL1_ImaxEn ((DpId) 0x1E37) /* 7735 EnDis */ #define DPoint_G3_NPSLL1_Imax ((DpId) 0x1E38) /* 7736 UI32 */ #define DPoint_G3_NPSLL1_En ((DpId) 0x1E39) /* 7737 EnDis */ #define DPoint_G3_NPSLL1_TccUD ((DpId) 0x1E3A) /* 7738 TccCurve */ #define DPoint_G3_NPSLL2_Ip ((DpId) 0x1E3B) /* 7739 UI32 */ #define DPoint_G3_NPSLL2_Tcc ((DpId) 0x1E3C) /* 7740 UI16 */ #define DPoint_G3_NPSLL2_TDtMin ((DpId) 0x1E3D) /* 7741 UI32 */ #define DPoint_G3_NPSLL2_TDtRes ((DpId) 0x1E3E) /* 7742 UI32 */ #define DPoint_G3_NPSLL2_Tm ((DpId) 0x1E3F) /* 7743 UI32 */ #define DPoint_G3_NPSLL2_Imin ((DpId) 0x1E40) /* 7744 UI32 */ #define DPoint_G3_NPSLL2_Tmin ((DpId) 0x1E41) /* 7745 UI32 */ #define DPoint_G3_NPSLL2_Tmax ((DpId) 0x1E42) /* 7746 UI32 */ #define DPoint_G3_NPSLL2_Ta ((DpId) 0x1E43) /* 7747 UI32 */ #define DPoint_G3_NPSLL2_ImaxEn ((DpId) 0x1E44) /* 7748 EnDis */ #define DPoint_G3_NPSLL2_Imax ((DpId) 0x1E45) /* 7749 UI32 */ #define DPoint_G3_NPSLL2_En ((DpId) 0x1E46) /* 7750 EnDis */ #define DPoint_G3_NPSLL2_TccUD ((DpId) 0x1E47) /* 7751 TccCurve */ #define DPoint_G3_NPSLL3_Ip ((DpId) 0x1E48) /* 7752 UI32 */ #define DPoint_G3_NPSLL3_TDtMin ((DpId) 0x1E49) /* 7753 UI32 */ #define DPoint_G3_NPSLL3_TDtRes ((DpId) 0x1E4A) /* 7754 UI32 */ #define DPoint_G3_NPSLL3_En ((DpId) 0x1E4B) /* 7755 EnDis */ #define DPoint_G3_EFLL1_Ip ((DpId) 0x1E4C) /* 7756 UI32 */ #define DPoint_G3_EFLL1_Tcc ((DpId) 0x1E4D) /* 7757 UI16 */ #define DPoint_G3_EFLL1_TDtMin ((DpId) 0x1E4E) /* 7758 UI32 */ #define DPoint_G3_EFLL1_TDtRes ((DpId) 0x1E4F) /* 7759 UI32 */ #define DPoint_G3_EFLL1_Tm ((DpId) 0x1E50) /* 7760 UI32 */ #define DPoint_G3_EFLL1_Imin ((DpId) 0x1E51) /* 7761 UI32 */ #define DPoint_G3_EFLL1_Tmin ((DpId) 0x1E52) /* 7762 UI32 */ #define DPoint_G3_EFLL1_Tmax ((DpId) 0x1E53) /* 7763 UI32 */ #define DPoint_G3_EFLL1_Ta ((DpId) 0x1E54) /* 7764 UI32 */ #define DPoint_G3_EFLL1_ImaxEn ((DpId) 0x1E55) /* 7765 EnDis */ #define DPoint_G3_EFLL1_Imax ((DpId) 0x1E56) /* 7766 UI32 */ #define DPoint_G3_EFLL1_En ((DpId) 0x1E57) /* 7767 EnDis */ #define DPoint_G3_EFLL1_TccUD ((DpId) 0x1E58) /* 7768 TccCurve */ #define DPoint_G3_EFLL2_Ip ((DpId) 0x1E59) /* 7769 UI32 */ #define DPoint_G3_EFLL2_Tcc ((DpId) 0x1E5A) /* 7770 UI16 */ #define DPoint_G3_EFLL2_TDtMin ((DpId) 0x1E5B) /* 7771 UI32 */ #define DPoint_G3_EFLL2_TDtRes ((DpId) 0x1E5C) /* 7772 UI32 */ #define DPoint_G3_EFLL2_Tm ((DpId) 0x1E5D) /* 7773 UI32 */ #define DPoint_G3_EFLL2_Imin ((DpId) 0x1E5E) /* 7774 UI32 */ #define DPoint_G3_EFLL2_Tmin ((DpId) 0x1E5F) /* 7775 UI32 */ #define DPoint_G3_EFLL2_Tmax ((DpId) 0x1E60) /* 7776 UI32 */ #define DPoint_G3_EFLL2_Ta ((DpId) 0x1E61) /* 7777 UI32 */ #define DPoint_G3_EFLL2_ImaxEn ((DpId) 0x1E62) /* 7778 EnDis */ #define DPoint_G3_EFLL2_Imax ((DpId) 0x1E63) /* 7779 UI32 */ #define DPoint_G3_EFLL2_En ((DpId) 0x1E64) /* 7780 EnDis */ #define DPoint_G3_EFLL2_TccUD ((DpId) 0x1E65) /* 7781 TccCurve */ #define DPoint_G3_EFLL3_En ((DpId) 0x1E66) /* 7782 EnDis */ #define DPoint_G3_SEFLL_Ip ((DpId) 0x1E67) /* 7783 UI32 */ #define DPoint_G3_SEFLL_TDtMin ((DpId) 0x1E68) /* 7784 UI32 */ #define DPoint_G3_SEFLL_TDtRes ((DpId) 0x1E69) /* 7785 UI32 */ #define DPoint_G3_SEFLL_En ((DpId) 0x1E6A) /* 7786 EnDis */ #define DPoint_G3_AutoOpenPowerFlowReduction ((DpId) 0x1E6B) /* 7787 UI8 */ #define DPoint_G3_AutoOpenPowerFlowTime ((DpId) 0x1E6C) /* 7788 UI16 */ #define DPoint_G3_LSRM_Timer ((DpId) 0x1E6D) /* 7789 UI16 */ #define DPoint_G3_LSRM_En ((DpId) 0x1E6E) /* 7790 EnDis */ #define DPoint_G3_Uv4_TDtMin ((DpId) 0x1E6F) /* 7791 UI32 */ #define DPoint_G3_Uv4_TDtRes ((DpId) 0x1E70) /* 7792 UI32 */ #define DPoint_G3_Uv4_Trm ((DpId) 0x1E71) /* 7793 TripMode */ #define DPoint_G3_Uv4_Um_min ((DpId) 0x1E72) /* 7794 UI32 */ #define DPoint_G3_Uv4_Um_max ((DpId) 0x1E73) /* 7795 UI32 */ #define DPoint_G3_Uv4_Um_mid ((DpId) 0x1E74) /* 7796 UI32 */ #define DPoint_G3_Uv4_Tlock ((DpId) 0x1E75) /* 7797 UI16 */ #define DPoint_G3_Uv4_Utype ((DpId) 0x1E76) /* 7798 Uv4VoltageType */ #define DPoint_G3_Uv4_Voltages ((DpId) 0x1E77) /* 7799 Uv4Voltages */ #define DPoint_G3_SingleTripleModeF ((DpId) 0x1E78) /* 7800 SingleTripleMode */ #define DPoint_G3_SingleTripleModeR ((DpId) 0x1E79) /* 7801 SingleTripleMode */ #define DPoint_G3_SinglePhaseVoltageDetect ((DpId) 0x1E7A) /* 7802 EnDis */ #define DPoint_G3_Uv1_SingleTripleVoltageType ((DpId) 0x1E7B) /* 7803 SingleTripleVoltageType */ #define DPoint_G3_Ov1_SingleTripleVoltageType ((DpId) 0x1E7C) /* 7804 SingleTripleVoltageType */ #define DPoint_G3_LlbEnable ((DpId) 0x1E7D) /* 7805 EnDis */ #define DPoint_G3_LlbUM ((DpId) 0x1E7E) /* 7806 UI32 */ #define DPoint_G3_SectionaliserMode ((DpId) 0x1E7F) /* 7807 EnDis */ #define DPoint_G3_OcDcr ((DpId) 0x1E80) /* 7808 LockDynamic */ #define DPoint_G3_NpsDcr ((DpId) 0x1E81) /* 7809 LockDynamic */ #define DPoint_G3_EfDcr ((DpId) 0x1E82) /* 7810 LockDynamic */ #define DPoint_G3_SefDcr ((DpId) 0x1E83) /* 7811 LockDynamic */ #define DPoint_G3_Ov3_Um ((DpId) 0x1E84) /* 7812 UI32 */ #define DPoint_G3_Ov3_TDtMin ((DpId) 0x1E85) /* 7813 UI32 */ #define DPoint_G3_Ov3_TDtRes ((DpId) 0x1E86) /* 7814 UI32 */ #define DPoint_G3_Ov3_Trm ((DpId) 0x1E87) /* 7815 TripMode */ #define DPoint_G3_Ov4_Um ((DpId) 0x1E88) /* 7816 UI32 */ #define DPoint_G3_Ov4_TDtMin ((DpId) 0x1E89) /* 7817 UI32 */ #define DPoint_G3_Ov4_TDtRes ((DpId) 0x1E8A) /* 7818 UI32 */ #define DPoint_G3_Ov4_Trm ((DpId) 0x1E8B) /* 7819 TripMode */ #define DPoint_G3_SequenceAdvanceStep ((DpId) 0x1E8C) /* 7820 UI8 */ #define DPoint_G3_UV3_SSTOnly ((DpId) 0x1E8D) /* 7821 EnDis */ #define DPoint_G3_OV3MovingAverageMode ((DpId) 0x1E8E) /* 7822 EnDis */ #define DPoint_G3_OV3MovingAverageWindow ((DpId) 0x1E8F) /* 7823 UI32 */ #define DPoint_G3_ArveTripsToLockout ((DpId) 0x1E90) /* 7824 TripsToLockout */ #define DPoint_G3_I2I1_Trm ((DpId) 0x1E91) /* 7825 TripModeDLA */ #define DPoint_G3_I2I1_Pickup ((DpId) 0x1E92) /* 7826 UI32 */ #define DPoint_G3_I2I1_MinI2 ((DpId) 0x1E93) /* 7827 UI32 */ #define DPoint_G3_I2I1_TDtMin ((DpId) 0x1E94) /* 7828 UI32 */ #define DPoint_G3_I2I1_TDtRes ((DpId) 0x1E95) /* 7829 UI32 */ #define DPoint_G3_SEFF_Ip_HighPrec ((DpId) 0x1E96) /* 7830 UI32 */ #define DPoint_G3_SEFR_Ip_HighPrec ((DpId) 0x1E97) /* 7831 UI32 */ #define DPoint_G3_SEFLL_Ip_HighPrec ((DpId) 0x1E98) /* 7832 UI32 */ #define DPoint_G3_SSTControl_En ((DpId) 0x1E99) /* 7833 EnDis */ #define DPoint_G3_SSTControl_Tst ((DpId) 0x1E9A) /* 7834 UI32 */ #define DPoint_G4_NpsAt ((DpId) 0x1E9E) /* 7838 UI32 */ #define DPoint_G4_NpsDnd ((DpId) 0x1E9F) /* 7839 DndMode */ #define DPoint_G4_SstNpsForward ((DpId) 0x1EA0) /* 7840 UI8 */ #define DPoint_G4_SstNpsReverse ((DpId) 0x1EA1) /* 7841 UI8 */ #define DPoint_G4_NPS1F_Ip ((DpId) 0x1EA2) /* 7842 UI32 */ #define DPoint_G4_NPS1F_Tcc ((DpId) 0x1EA3) /* 7843 UI16 */ #define DPoint_G4_NPS1F_TDtMin ((DpId) 0x1EA4) /* 7844 UI32 */ #define DPoint_G4_NPS1F_TDtRes ((DpId) 0x1EA5) /* 7845 UI32 */ #define DPoint_G4_NPS1F_Tm ((DpId) 0x1EA6) /* 7846 UI32 */ #define DPoint_G4_NPS1F_Imin ((DpId) 0x1EA7) /* 7847 UI32 */ #define DPoint_G4_NPS1F_Tmin ((DpId) 0x1EA8) /* 7848 UI32 */ #define DPoint_G4_NPS1F_Tmax ((DpId) 0x1EA9) /* 7849 UI32 */ #define DPoint_G4_NPS1F_Ta ((DpId) 0x1EAA) /* 7850 UI32 */ #define DPoint_G4_NPS1F_ImaxEn ((DpId) 0x1EAB) /* 7851 EnDis */ #define DPoint_G4_NPS1F_Imax ((DpId) 0x1EAC) /* 7852 UI32 */ #define DPoint_G4_NPS1F_DirEn ((DpId) 0x1EAD) /* 7853 EnDis */ #define DPoint_G4_NPS1F_Tr1 ((DpId) 0x1EAE) /* 7854 TripMode */ #define DPoint_G4_NPS1F_Tr2 ((DpId) 0x1EAF) /* 7855 TripMode */ #define DPoint_G4_NPS1F_Tr3 ((DpId) 0x1EB0) /* 7856 TripMode */ #define DPoint_G4_NPS1F_Tr4 ((DpId) 0x1EB1) /* 7857 TripMode */ #define DPoint_G4_NPS1F_TccUD ((DpId) 0x1EB2) /* 7858 TccCurve */ #define DPoint_G4_NPS2F_Ip ((DpId) 0x1EB3) /* 7859 UI32 */ #define DPoint_G4_NPS2F_Tcc ((DpId) 0x1EB4) /* 7860 UI16 */ #define DPoint_G4_NPS2F_TDtMin ((DpId) 0x1EB5) /* 7861 UI32 */ #define DPoint_G4_NPS2F_TDtRes ((DpId) 0x1EB6) /* 7862 UI32 */ #define DPoint_G4_NPS2F_Tm ((DpId) 0x1EB7) /* 7863 UI32 */ #define DPoint_G4_NPS2F_Imin ((DpId) 0x1EB8) /* 7864 UI32 */ #define DPoint_G4_NPS2F_Tmin ((DpId) 0x1EB9) /* 7865 UI32 */ #define DPoint_G4_NPS2F_Tmax ((DpId) 0x1EBA) /* 7866 UI32 */ #define DPoint_G4_NPS2F_Ta ((DpId) 0x1EBB) /* 7867 UI32 */ #define DPoint_G4_NPS2F_ImaxEn ((DpId) 0x1EBC) /* 7868 EnDis */ #define DPoint_G4_NPS2F_Imax ((DpId) 0x1EBD) /* 7869 UI32 */ #define DPoint_G4_NPS2F_DirEn ((DpId) 0x1EBE) /* 7870 EnDis */ #define DPoint_G4_NPS2F_Tr1 ((DpId) 0x1EBF) /* 7871 TripMode */ #define DPoint_G4_NPS2F_Tr2 ((DpId) 0x1EC0) /* 7872 TripMode */ #define DPoint_G4_NPS2F_Tr3 ((DpId) 0x1EC1) /* 7873 TripMode */ #define DPoint_G4_NPS2F_Tr4 ((DpId) 0x1EC2) /* 7874 TripMode */ #define DPoint_G4_NPS2F_TccUD ((DpId) 0x1EC3) /* 7875 TccCurve */ #define DPoint_G4_NPS3F_Ip ((DpId) 0x1EC4) /* 7876 UI32 */ #define DPoint_G4_NPS3F_TDtMin ((DpId) 0x1EC5) /* 7877 UI32 */ #define DPoint_G4_NPS3F_TDtRes ((DpId) 0x1EC6) /* 7878 UI32 */ #define DPoint_G4_NPS3F_DirEn ((DpId) 0x1EC7) /* 7879 EnDis */ #define DPoint_G4_NPS3F_Tr1 ((DpId) 0x1EC8) /* 7880 TripMode */ #define DPoint_G4_NPS3F_Tr2 ((DpId) 0x1EC9) /* 7881 TripMode */ #define DPoint_G4_NPS3F_Tr3 ((DpId) 0x1ECA) /* 7882 TripMode */ #define DPoint_G4_NPS3F_Tr4 ((DpId) 0x1ECB) /* 7883 TripMode */ #define DPoint_G4_NPS1R_Ip ((DpId) 0x1ECC) /* 7884 UI32 */ #define DPoint_G4_NPS1R_Tcc ((DpId) 0x1ECD) /* 7885 UI16 */ #define DPoint_G4_NPS1R_TDtMin ((DpId) 0x1ECE) /* 7886 UI32 */ #define DPoint_G4_NPS1R_TDtRes ((DpId) 0x1ECF) /* 7887 UI32 */ #define DPoint_G4_NPS1R_Tm ((DpId) 0x1ED0) /* 7888 UI32 */ #define DPoint_G4_NPS1R_Imin ((DpId) 0x1ED1) /* 7889 UI32 */ #define DPoint_G4_NPS1R_Tmin ((DpId) 0x1ED2) /* 7890 UI32 */ #define DPoint_G4_NPS1R_Tmax ((DpId) 0x1ED3) /* 7891 UI32 */ #define DPoint_G4_NPS1R_Ta ((DpId) 0x1ED4) /* 7892 UI32 */ #define DPoint_G4_NPS1R_ImaxEn ((DpId) 0x1ED5) /* 7893 EnDis */ #define DPoint_G4_NPS1R_Imax ((DpId) 0x1ED6) /* 7894 UI32 */ #define DPoint_G4_NPS1R_DirEn ((DpId) 0x1ED7) /* 7895 EnDis */ #define DPoint_G4_NPS1R_Tr1 ((DpId) 0x1ED8) /* 7896 TripMode */ #define DPoint_G4_NPS1R_Tr2 ((DpId) 0x1ED9) /* 7897 TripMode */ #define DPoint_G4_NPS1R_Tr3 ((DpId) 0x1EDA) /* 7898 TripMode */ #define DPoint_G4_NPS1R_Tr4 ((DpId) 0x1EDB) /* 7899 TripMode */ #define DPoint_G4_NPS1R_TccUD ((DpId) 0x1EDC) /* 7900 TccCurve */ #define DPoint_G4_NPS2R_Ip ((DpId) 0x1EDD) /* 7901 UI32 */ #define DPoint_G4_NPS2R_Tcc ((DpId) 0x1EDE) /* 7902 UI16 */ #define DPoint_G4_NPS2R_TDtMin ((DpId) 0x1EDF) /* 7903 UI32 */ #define DPoint_G4_NPS2R_TDtRes ((DpId) 0x1EE0) /* 7904 UI32 */ #define DPoint_G4_NPS2R_Tm ((DpId) 0x1EE1) /* 7905 UI32 */ #define DPoint_G4_NPS2R_Imin ((DpId) 0x1EE2) /* 7906 UI32 */ #define DPoint_G4_NPS2R_Tmin ((DpId) 0x1EE3) /* 7907 UI32 */ #define DPoint_G4_NPS2R_Tmax ((DpId) 0x1EE4) /* 7908 UI32 */ #define DPoint_G4_NPS2R_Ta ((DpId) 0x1EE5) /* 7909 UI32 */ #define DPoint_G4_NPS2R_ImaxEn ((DpId) 0x1EE6) /* 7910 EnDis */ #define DPoint_G4_NPS2R_Imax ((DpId) 0x1EE7) /* 7911 UI32 */ #define DPoint_G4_NPS2R_DirEn ((DpId) 0x1EE8) /* 7912 EnDis */ #define DPoint_G4_NPS2R_Tr1 ((DpId) 0x1EE9) /* 7913 TripMode */ #define DPoint_G4_NPS2R_Tr2 ((DpId) 0x1EEA) /* 7914 TripMode */ #define DPoint_G4_NPS2R_Tr3 ((DpId) 0x1EEB) /* 7915 TripMode */ #define DPoint_G4_NPS2R_Tr4 ((DpId) 0x1EEC) /* 7916 TripMode */ #define DPoint_G4_NPS2R_TccUD ((DpId) 0x1EED) /* 7917 TccCurve */ #define DPoint_G4_NPS3R_Ip ((DpId) 0x1EEE) /* 7918 UI32 */ #define DPoint_G4_NPS3R_TDtMin ((DpId) 0x1EEF) /* 7919 UI32 */ #define DPoint_G4_NPS3R_TDtRes ((DpId) 0x1EF0) /* 7920 UI32 */ #define DPoint_G4_NPS3R_DirEn ((DpId) 0x1EF1) /* 7921 EnDis */ #define DPoint_G4_NPS3R_Tr1 ((DpId) 0x1EF2) /* 7922 TripMode */ #define DPoint_G4_NPS3R_Tr2 ((DpId) 0x1EF3) /* 7923 TripMode */ #define DPoint_G4_NPS3R_Tr3 ((DpId) 0x1EF4) /* 7924 TripMode */ #define DPoint_G4_NPS3R_Tr4 ((DpId) 0x1EF5) /* 7925 TripMode */ #define DPoint_G4_NPSLL1_Ip ((DpId) 0x1EF6) /* 7926 UI32 */ #define DPoint_G4_NPSLL1_Tcc ((DpId) 0x1EF7) /* 7927 UI16 */ #define DPoint_G4_NPSLL1_TDtMin ((DpId) 0x1EF8) /* 7928 UI32 */ #define DPoint_G4_NPSLL1_TDtRes ((DpId) 0x1EF9) /* 7929 UI32 */ #define DPoint_G4_NPSLL1_Tm ((DpId) 0x1EFA) /* 7930 UI32 */ #define DPoint_G4_NPSLL1_Imin ((DpId) 0x1EFB) /* 7931 UI32 */ #define DPoint_G4_NPSLL1_Tmin ((DpId) 0x1EFC) /* 7932 UI32 */ #define DPoint_G4_NPSLL1_Tmax ((DpId) 0x1EFD) /* 7933 UI32 */ #define DPoint_G4_NPSLL1_Ta ((DpId) 0x1EFE) /* 7934 UI32 */ #define DPoint_G4_NPSLL1_ImaxEn ((DpId) 0x1EFF) /* 7935 EnDis */ #define DPoint_G4_NPSLL1_Imax ((DpId) 0x1F00) /* 7936 UI32 */ #define DPoint_G4_NPSLL1_En ((DpId) 0x1F01) /* 7937 EnDis */ #define DPoint_G4_NPSLL1_TccUD ((DpId) 0x1F02) /* 7938 TccCurve */ #define DPoint_G4_NPSLL2_Ip ((DpId) 0x1F03) /* 7939 UI32 */ #define DPoint_G4_NPSLL2_Tcc ((DpId) 0x1F04) /* 7940 UI16 */ #define DPoint_G4_NPSLL2_TDtMin ((DpId) 0x1F05) /* 7941 UI32 */ #define DPoint_G4_NPSLL2_TDtRes ((DpId) 0x1F06) /* 7942 UI32 */ #define DPoint_G4_NPSLL2_Tm ((DpId) 0x1F07) /* 7943 UI32 */ #define DPoint_G4_NPSLL2_Imin ((DpId) 0x1F08) /* 7944 UI32 */ #define DPoint_G4_NPSLL2_Tmin ((DpId) 0x1F09) /* 7945 UI32 */ #define DPoint_G4_NPSLL2_Tmax ((DpId) 0x1F0A) /* 7946 UI32 */ #define DPoint_G4_NPSLL2_Ta ((DpId) 0x1F0B) /* 7947 UI32 */ #define DPoint_G4_NPSLL2_ImaxEn ((DpId) 0x1F0C) /* 7948 EnDis */ #define DPoint_G4_NPSLL2_Imax ((DpId) 0x1F0D) /* 7949 UI32 */ #define DPoint_G4_NPSLL2_En ((DpId) 0x1F0E) /* 7950 EnDis */ #define DPoint_G4_NPSLL2_TccUD ((DpId) 0x1F0F) /* 7951 TccCurve */ #define DPoint_G4_NPSLL3_Ip ((DpId) 0x1F10) /* 7952 UI32 */ #define DPoint_G4_NPSLL3_TDtMin ((DpId) 0x1F11) /* 7953 UI32 */ #define DPoint_G4_NPSLL3_TDtRes ((DpId) 0x1F12) /* 7954 UI32 */ #define DPoint_G4_NPSLL3_En ((DpId) 0x1F13) /* 7955 EnDis */ #define DPoint_G4_EFLL1_Ip ((DpId) 0x1F14) /* 7956 UI32 */ #define DPoint_G4_EFLL1_Tcc ((DpId) 0x1F15) /* 7957 UI16 */ #define DPoint_G4_EFLL1_TDtMin ((DpId) 0x1F16) /* 7958 UI32 */ #define DPoint_G4_EFLL1_TDtRes ((DpId) 0x1F17) /* 7959 UI32 */ #define DPoint_G4_EFLL1_Tm ((DpId) 0x1F18) /* 7960 UI32 */ #define DPoint_G4_EFLL1_Imin ((DpId) 0x1F19) /* 7961 UI32 */ #define DPoint_G4_EFLL1_Tmin ((DpId) 0x1F1A) /* 7962 UI32 */ #define DPoint_G4_EFLL1_Tmax ((DpId) 0x1F1B) /* 7963 UI32 */ #define DPoint_G4_EFLL1_Ta ((DpId) 0x1F1C) /* 7964 UI32 */ #define DPoint_G4_EFLL1_ImaxEn ((DpId) 0x1F1D) /* 7965 EnDis */ #define DPoint_G4_EFLL1_Imax ((DpId) 0x1F1E) /* 7966 UI32 */ #define DPoint_G4_EFLL1_En ((DpId) 0x1F1F) /* 7967 EnDis */ #define DPoint_G4_EFLL1_TccUD ((DpId) 0x1F20) /* 7968 TccCurve */ #define DPoint_G4_EFLL2_Ip ((DpId) 0x1F21) /* 7969 UI32 */ #define DPoint_G4_EFLL2_Tcc ((DpId) 0x1F22) /* 7970 UI16 */ #define DPoint_G4_EFLL2_TDtMin ((DpId) 0x1F23) /* 7971 UI32 */ #define DPoint_G4_EFLL2_TDtRes ((DpId) 0x1F24) /* 7972 UI32 */ #define DPoint_G4_EFLL2_Tm ((DpId) 0x1F25) /* 7973 UI32 */ #define DPoint_G4_EFLL2_Imin ((DpId) 0x1F26) /* 7974 UI32 */ #define DPoint_G4_EFLL2_Tmin ((DpId) 0x1F27) /* 7975 UI32 */ #define DPoint_G4_EFLL2_Tmax ((DpId) 0x1F28) /* 7976 UI32 */ #define DPoint_G4_EFLL2_Ta ((DpId) 0x1F29) /* 7977 UI32 */ #define DPoint_G4_EFLL2_ImaxEn ((DpId) 0x1F2A) /* 7978 EnDis */ #define DPoint_G4_EFLL2_Imax ((DpId) 0x1F2B) /* 7979 UI32 */ #define DPoint_G4_EFLL2_En ((DpId) 0x1F2C) /* 7980 EnDis */ #define DPoint_G4_EFLL2_TccUD ((DpId) 0x1F2D) /* 7981 TccCurve */ #define DPoint_G4_EFLL3_En ((DpId) 0x1F2E) /* 7982 EnDis */ #define DPoint_G4_SEFLL_Ip ((DpId) 0x1F2F) /* 7983 UI32 */ #define DPoint_G4_SEFLL_TDtMin ((DpId) 0x1F30) /* 7984 UI32 */ #define DPoint_G4_SEFLL_TDtRes ((DpId) 0x1F31) /* 7985 UI32 */ #define DPoint_G4_SEFLL_En ((DpId) 0x1F32) /* 7986 EnDis */ #define DPoint_G4_AutoOpenPowerFlowReduction ((DpId) 0x1F33) /* 7987 UI8 */ #define DPoint_G4_AutoOpenPowerFlowTime ((DpId) 0x1F34) /* 7988 UI16 */ #define DPoint_G4_LSRM_Timer ((DpId) 0x1F35) /* 7989 UI16 */ #define DPoint_G4_LSRM_En ((DpId) 0x1F36) /* 7990 EnDis */ #define DPoint_G4_Uv4_TDtMin ((DpId) 0x1F37) /* 7991 UI32 */ #define DPoint_G4_Uv4_TDtRes ((DpId) 0x1F38) /* 7992 UI32 */ #define DPoint_G4_Uv4_Trm ((DpId) 0x1F39) /* 7993 TripMode */ #define DPoint_G4_Uv4_Um_min ((DpId) 0x1F3A) /* 7994 UI32 */ #define DPoint_G4_Uv4_Um_max ((DpId) 0x1F3B) /* 7995 UI32 */ #define DPoint_G4_Uv4_Um_mid ((DpId) 0x1F3C) /* 7996 UI32 */ #define DPoint_G4_Uv4_Tlock ((DpId) 0x1F3D) /* 7997 UI16 */ #define DPoint_G4_Uv4_Utype ((DpId) 0x1F3E) /* 7998 Uv4VoltageType */ #define DPoint_G4_Uv4_Voltages ((DpId) 0x1F3F) /* 7999 Uv4Voltages */ #define DPoint_G4_SingleTripleModeF ((DpId) 0x1F40) /* 8000 SingleTripleMode */ #define DPoint_G4_SingleTripleModeR ((DpId) 0x1F41) /* 8001 SingleTripleMode */ #define DPoint_G4_SinglePhaseVoltageDetect ((DpId) 0x1F42) /* 8002 EnDis */ #define DPoint_G4_Uv1_SingleTripleVoltageType ((DpId) 0x1F43) /* 8003 SingleTripleVoltageType */ #define DPoint_G4_Ov1_SingleTripleVoltageType ((DpId) 0x1F44) /* 8004 SingleTripleVoltageType */ #define DPoint_G4_LlbEnable ((DpId) 0x1F45) /* 8005 EnDis */ #define DPoint_G4_LlbUM ((DpId) 0x1F46) /* 8006 UI32 */ #define DPoint_G4_SectionaliserMode ((DpId) 0x1F47) /* 8007 EnDis */ #define DPoint_G4_OcDcr ((DpId) 0x1F48) /* 8008 LockDynamic */ #define DPoint_G4_NpsDcr ((DpId) 0x1F49) /* 8009 LockDynamic */ #define DPoint_G4_EfDcr ((DpId) 0x1F4A) /* 8010 LockDynamic */ #define DPoint_G4_SefDcr ((DpId) 0x1F4B) /* 8011 LockDynamic */ #define DPoint_G4_Ov3_Um ((DpId) 0x1F4C) /* 8012 UI32 */ #define DPoint_G4_Ov3_TDtMin ((DpId) 0x1F4D) /* 8013 UI32 */ #define DPoint_G4_Ov3_TDtRes ((DpId) 0x1F4E) /* 8014 UI32 */ #define DPoint_G4_Ov3_Trm ((DpId) 0x1F4F) /* 8015 TripMode */ #define DPoint_G4_Ov4_Um ((DpId) 0x1F50) /* 8016 UI32 */ #define DPoint_G4_Ov4_TDtMin ((DpId) 0x1F51) /* 8017 UI32 */ #define DPoint_G4_Ov4_TDtRes ((DpId) 0x1F52) /* 8018 UI32 */ #define DPoint_G4_Ov4_Trm ((DpId) 0x1F53) /* 8019 TripMode */ #define DPoint_G4_SequenceAdvanceStep ((DpId) 0x1F54) /* 8020 UI8 */ #define DPoint_G4_UV3_SSTOnly ((DpId) 0x1F55) /* 8021 EnDis */ #define DPoint_G4_OV3MovingAverageMode ((DpId) 0x1F56) /* 8022 EnDis */ #define DPoint_G4_OV3MovingAverageWindow ((DpId) 0x1F57) /* 8023 UI32 */ #define DPoint_G4_ArveTripsToLockout ((DpId) 0x1F58) /* 8024 TripsToLockout */ #define DPoint_G4_I2I1_Trm ((DpId) 0x1F59) /* 8025 TripModeDLA */ #define DPoint_G4_I2I1_Pickup ((DpId) 0x1F5A) /* 8026 UI32 */ #define DPoint_G4_I2I1_MinI2 ((DpId) 0x1F5B) /* 8027 UI32 */ #define DPoint_G4_I2I1_TDtMin ((DpId) 0x1F5C) /* 8028 UI32 */ #define DPoint_G4_I2I1_TDtRes ((DpId) 0x1F5D) /* 8029 UI32 */ #define DPoint_G4_SEFF_Ip_HighPrec ((DpId) 0x1F5E) /* 8030 UI32 */ #define DPoint_G4_SEFR_Ip_HighPrec ((DpId) 0x1F5F) /* 8031 UI32 */ #define DPoint_G4_SEFLL_Ip_HighPrec ((DpId) 0x1F60) /* 8032 UI32 */ #define DPoint_G4_SSTControl_En ((DpId) 0x1F61) /* 8033 EnDis */ #define DPoint_G4_SSTControl_Tst ((DpId) 0x1F62) /* 8034 UI32 */ #define DPoint_SignalBitFieldOpenHigh ((DpId) 0x1F68) /* 8040 SignalBitField */ #define DPoint_SignalBitFieldCloseHigh ((DpId) 0x1F69) /* 8041 SignalBitField */ #define DPoint_IdRelayModelNo ((DpId) 0x1F6A) /* 8042 UI8 */ #define DPoint_IdRelayModelStr ((DpId) 0x1F6B) /* 8043 Str */ #define DPoint_PanelButtABR ((DpId) 0x1F6C) /* 8044 EnDis */ #define DPoint_PanelButtACO ((DpId) 0x1F6D) /* 8045 EnDis */ #define DPoint_PanelButtUV ((DpId) 0x1F6E) /* 8046 EnDis */ #define DPoint_FastkeyConfigNum ((DpId) 0x1F6F) /* 8047 UI8 */ #define DPoint_ScadaT10BSendDayOfWeek ((DpId) 0x1F70) /* 8048 EnDis */ #define DPoint_SigOpenOc ((DpId) 0x1F72) /* 8050 Signal */ #define DPoint_SigOpenEf ((DpId) 0x1F73) /* 8051 Signal */ #define DPoint_SigOpenSef ((DpId) 0x1F74) /* 8052 Signal */ #define DPoint_SigOpenUv ((DpId) 0x1F75) /* 8053 Signal */ #define DPoint_SigOpenOv ((DpId) 0x1F76) /* 8054 Signal */ #define DPoint_SigAlarmOc ((DpId) 0x1F77) /* 8055 Signal */ #define DPoint_SigAlarmEf ((DpId) 0x1F78) /* 8056 Signal */ #define DPoint_SigAlarmSef ((DpId) 0x1F79) /* 8057 Signal */ #define DPoint_SigAlarmUv ((DpId) 0x1F7A) /* 8058 Signal */ #define DPoint_SigAlarmOv ((DpId) 0x1F7B) /* 8059 Signal */ #define DPoint_SigPickupOc ((DpId) 0x1F7C) /* 8060 Signal */ #define DPoint_SigPickupEf ((DpId) 0x1F7D) /* 8061 Signal */ #define DPoint_SigPickupSef ((DpId) 0x1F7E) /* 8062 Signal */ #define DPoint_SigPickupUv ((DpId) 0x1F7F) /* 8063 Signal */ #define DPoint_SigPickupOv ((DpId) 0x1F80) /* 8064 Signal */ #define DPoint_ScadaT10B_M_EI_BufferOverflow_COI ((DpId) 0x1F81) /* 8065 I8 */ #define DPoint_PGESBOTimeout ((DpId) 0x1F82) /* 8066 UI16 */ #define DPoint_Lan_MAC ((DpId) 0x1F83) /* 8067 Str */ #define DPoint_SigMalfLoadSavedDb ((DpId) 0x1F84) /* 8068 Signal */ #define DPoint_ScadaT10BScaleRange ((DpId) 0x1F85) /* 8069 ScadaScaleRangeTable */ #define DPoint_ProgramSimStatus ((DpId) 0x1F86) /* 8070 UI8 */ #define DPoint_InstallFilesReady ((DpId) 0x1F87) /* 8071 UI8 */ #define DPoint_UsbDiscInstallCount ((DpId) 0x1F88) /* 8072 UI32 */ #define DPoint_UsbDiscInstallVersions ((DpId) 0x1F89) /* 8073 StrArray */ #define DPoint_OscUsbCaptureInProgress ((DpId) 0x1F8A) /* 8074 Bool */ #define DPoint_UsbDiscEjectResult ((DpId) 0x1F8B) /* 8075 UsbDiscEjectResult */ #define DPoint_InterruptShortABCLastDuration ((DpId) 0x1F8C) /* 8076 Duration */ #define DPoint_InterruptShortRSTLastDuration ((DpId) 0x1F8D) /* 8077 Duration */ #define DPoint_InterruptLongABCLastDuration ((DpId) 0x1F8E) /* 8078 Duration */ #define DPoint_InterruptLongRSTLastDuration ((DpId) 0x1F8F) /* 8079 Duration */ #define DPoint_ScadaT104BlockUntilDisconnected ((DpId) 0x1F90) /* 8080 EnDis */ #define DPoint_TripHrmComponent ((DpId) 0x1F91) /* 8081 UI8 */ #define DPoint_UsbDiscUpdatePossible ((DpId) 0x1F92) /* 8082 UI8 */ #define DPoint_UsbDiscInstallPossible ((DpId) 0x1F93) /* 8083 UI8 */ #define DPoint_UpdateStep ((DpId) 0x1F94) /* 8084 UpdateStep */ #define DPoint_SigClosedUV3AutoClose ((DpId) 0x1F95) /* 8085 Signal */ #define DPoint_InstallPeriod ((DpId) 0x1F96) /* 8086 UI16 */ #define DPoint_I2Trip ((DpId) 0x1F97) /* 8087 UI32 */ #define DPoint_CanSimSwitchPositionStatusST ((DpId) 0x1F98) /* 8088 UI16 */ #define DPoint_CanSimSwitchManualTripST ((DpId) 0x1F99) /* 8089 UI8 */ #define DPoint_CanSimSwitchConnectedPhases ((DpId) 0x1F9A) /* 8090 UI8 */ #define DPoint_CanSimSwitchLockoutStatusST ((DpId) 0x1F9B) /* 8091 UI16 */ #define DPoint_CanSimSwitchSetCosType ((DpId) 0x1F9C) /* 8092 UI8 */ #define DPoint_SimSwitchStatusA ((DpId) 0x1F9D) /* 8093 SwState */ #define DPoint_SimSwitchStatusB ((DpId) 0x1F9E) /* 8094 SwState */ #define DPoint_SimSwitchStatusC ((DpId) 0x1F9F) /* 8095 SwState */ #define DPoint_SimSingleTriple ((DpId) 0x1FA0) /* 8096 Bool */ #define DPoint_SigCtrlRqstCloseA ((DpId) 0x1FA1) /* 8097 Signal */ #define DPoint_SigCtrlRqstCloseB ((DpId) 0x1FA2) /* 8098 Signal */ #define DPoint_SigCtrlRqstCloseC ((DpId) 0x1FA3) /* 8099 Signal */ #define DPoint_SigCtrlRqstCloseAB ((DpId) 0x1FA4) /* 8100 Signal */ #define DPoint_SigCtrlRqstCloseAC ((DpId) 0x1FA5) /* 8101 Signal */ #define DPoint_SigCtrlRqstCloseBC ((DpId) 0x1FA6) /* 8102 Signal */ #define DPoint_SigCtrlRqstCloseABC ((DpId) 0x1FA7) /* 8103 Signal */ #define DPoint_SigCtrlRqstOpenA ((DpId) 0x1FA8) /* 8104 Signal */ #define DPoint_SigCtrlRqstOpenB ((DpId) 0x1FA9) /* 8105 Signal */ #define DPoint_SigCtrlRqstOpenC ((DpId) 0x1FAA) /* 8106 Signal */ #define DPoint_SigCtrlRqstOpenAB ((DpId) 0x1FAB) /* 8107 Signal */ #define DPoint_SigCtrlRqstOpenAC ((DpId) 0x1FAC) /* 8108 Signal */ #define DPoint_SigCtrlRqstOpenBC ((DpId) 0x1FAD) /* 8109 Signal */ #define DPoint_SigCtrlRqstOpenABC ((DpId) 0x1FAE) /* 8110 Signal */ #define DPoint_CanSimTripCloseRequestStatusB ((DpId) 0x1FAF) /* 8111 UI8 */ #define DPoint_CanSimTripCloseRequestStatusC ((DpId) 0x1FB0) /* 8112 UI8 */ #define DPoint_CanSimTripRequestFailCodeB ((DpId) 0x1FB1) /* 8113 UI32 */ #define DPoint_CanSimTripRequestFailCodeC ((DpId) 0x1FB2) /* 8114 UI32 */ #define DPoint_CanSimCloseRequestFailCodeB ((DpId) 0x1FB3) /* 8115 UI32 */ #define DPoint_CanSimCloseRequestFailCodeC ((DpId) 0x1FB4) /* 8116 UI32 */ #define DPoint_CanSimOSMActuatorFaultStatusB ((DpId) 0x1FB5) /* 8117 UI8 */ #define DPoint_CanSimOSMActuatorFaultStatusC ((DpId) 0x1FB6) /* 8118 UI8 */ #define DPoint_CanSimOSMlimitSwitchFaultStatusB ((DpId) 0x1FB7) /* 8119 UI8 */ #define DPoint_CanSimOSMlimitSwitchFaultStatusC ((DpId) 0x1FB8) /* 8120 UI8 */ #define DPoint_CanSimTripRetryB ((DpId) 0x1FB9) /* 8121 UI8 */ #define DPoint_CanSimTripRetryC ((DpId) 0x1FBA) /* 8122 UI8 */ #define DPoint_SigCtrlUV4On ((DpId) 0x1FBB) /* 8123 Signal */ #define DPoint_SigOpenUv4 ((DpId) 0x1FBC) /* 8124 Signal */ #define DPoint_SigMalfSimRunningMiniBootloader ((DpId) 0x1FBE) /* 8126 Signal */ #define DPoint_SigOpenSwitchA ((DpId) 0x1FC2) /* 8130 Signal */ #define DPoint_SigOpenSwitchB ((DpId) 0x1FC3) /* 8131 Signal */ #define DPoint_SigOpenSwitchC ((DpId) 0x1FC4) /* 8132 Signal */ #define DPoint_SigClosedSwitchA ((DpId) 0x1FC5) /* 8133 Signal */ #define DPoint_SigClosedSwitchB ((DpId) 0x1FC6) /* 8134 Signal */ #define DPoint_SigClosedSwitchC ((DpId) 0x1FC7) /* 8135 Signal */ #define DPoint_SigSwitchDisconnectionStatusA ((DpId) 0x1FCB) /* 8139 Signal */ #define DPoint_SigSwitchDisconnectionStatusB ((DpId) 0x1FCC) /* 8140 Signal */ #define DPoint_SigSwitchDisconnectionStatusC ((DpId) 0x1FCD) /* 8141 Signal */ #define DPoint_SigSwitchLockoutStatusMechaniclockedA ((DpId) 0x1FCE) /* 8142 Signal */ #define DPoint_SigSwitchLockoutStatusMechaniclockedB ((DpId) 0x1FCF) /* 8143 Signal */ #define DPoint_SigSwitchLockoutStatusMechaniclockedC ((DpId) 0x1FD0) /* 8144 Signal */ #define DPoint_SigMalfOsmA ((DpId) 0x1FD1) /* 8145 Signal */ #define DPoint_SigMalfOsmB ((DpId) 0x1FD2) /* 8146 Signal */ #define DPoint_SigMalfOsmC ((DpId) 0x1FD3) /* 8147 Signal */ #define DPoint_SigOSMActuatorFaultStatusCoilOcA ((DpId) 0x1FD4) /* 8148 Signal */ #define DPoint_SigOSMActuatorFaultStatusCoilOcB ((DpId) 0x1FD5) /* 8149 Signal */ #define DPoint_SigOSMActuatorFaultStatusCoilOcC ((DpId) 0x1FD6) /* 8150 Signal */ #define DPoint_SigOsmActuatorFaultStatusCoilScA ((DpId) 0x1FD7) /* 8151 Signal */ #define DPoint_SigOsmActuatorFaultStatusCoilScB ((DpId) 0x1FD8) /* 8152 Signal */ #define DPoint_SigOsmActuatorFaultStatusCoilScC ((DpId) 0x1FD9) /* 8153 Signal */ #define DPoint_SigOsmLimitFaultStatusFaultA ((DpId) 0x1FDA) /* 8154 Signal */ #define DPoint_SigOsmLimitFaultStatusFaultB ((DpId) 0x1FDB) /* 8155 Signal */ #define DPoint_SigOsmLimitFaultStatusFaultC ((DpId) 0x1FDC) /* 8156 Signal */ #define DPoint_SigOSMActuatorFaultStatusQ503FailedA ((DpId) 0x1FDD) /* 8157 Signal */ #define DPoint_SigOSMActuatorFaultStatusQ503FailedB ((DpId) 0x1FDE) /* 8158 Signal */ #define DPoint_SigOSMActuatorFaultStatusQ503FailedC ((DpId) 0x1FDF) /* 8159 Signal */ #define DPoint_SigTripCloseRequestStatusActiveA ((DpId) 0x1FE0) /* 8160 Signal */ #define DPoint_SigTripCloseRequestStatusActiveB ((DpId) 0x1FE1) /* 8161 Signal */ #define DPoint_SigTripCloseRequestStatusActiveC ((DpId) 0x1FE2) /* 8162 Signal */ #define DPoint_SigTripCloseRequestStatusTripFailA ((DpId) 0x1FE3) /* 8163 Signal */ #define DPoint_SigTripCloseRequestStatusTripFailB ((DpId) 0x1FE4) /* 8164 Signal */ #define DPoint_SigTripCloseRequestStatusTripFailC ((DpId) 0x1FE5) /* 8165 Signal */ #define DPoint_SigTripCloseRequestStatusCloseFailA ((DpId) 0x1FE6) /* 8166 Signal */ #define DPoint_SigTripCloseRequestStatusCloseFailB ((DpId) 0x1FE7) /* 8167 Signal */ #define DPoint_SigTripCloseRequestStatusCloseFailC ((DpId) 0x1FE8) /* 8168 Signal */ #define DPoint_SigTripCloseRequestStatusTripActiveA ((DpId) 0x1FE9) /* 8169 Signal */ #define DPoint_SigTripCloseRequestStatusTripActiveB ((DpId) 0x1FEA) /* 8170 Signal */ #define DPoint_SigTripCloseRequestStatusTripActiveC ((DpId) 0x1FEB) /* 8171 Signal */ #define DPoint_SigTripCloseRequestStatusCloseActiveA ((DpId) 0x1FEC) /* 8172 Signal */ #define DPoint_SigTripCloseRequestStatusCloseActiveB ((DpId) 0x1FED) /* 8173 Signal */ #define DPoint_SigTripCloseRequestStatusCloseActiveC ((DpId) 0x1FEE) /* 8174 Signal */ #define DPoint_SigCtrlPhaseSelA ((DpId) 0x1FEF) /* 8175 Signal */ #define DPoint_SigCtrlPhaseSelB ((DpId) 0x1FF0) /* 8176 Signal */ #define DPoint_SigCtrlPhaseSelC ((DpId) 0x1FF1) /* 8177 Signal */ #define DPoint_PanelButtPhaseSel ((DpId) 0x1FF2) /* 8178 EnDis */ #define DPoint_SingleTripleModeGlobal ((DpId) 0x1FF5) /* 8181 SingleTripleMode */ #define DPoint_s61850ServEnable ((DpId) 0x1FF6) /* 8182 EnDis */ #define DPoint_SigPickupUv4 ((DpId) 0x1FF7) /* 8183 Signal */ #define DPoint_SigAlarmUv4 ((DpId) 0x1FF8) /* 8184 Signal */ #define DPoint_SigPickupUabcUv4 ((DpId) 0x1FF9) /* 8185 Signal */ #define DPoint_SigPickupUrstUv4 ((DpId) 0x1FFA) /* 8186 Signal */ #define DPoint_SigAlarmUabcUv4 ((DpId) 0x1FFB) /* 8187 Signal */ #define DPoint_SigAlarmUrstUv4 ((DpId) 0x1FFC) /* 8188 Signal */ #define DPoint_StackCheckEnable ((DpId) 0x1FFD) /* 8189 EnDis */ #define DPoint_StackCheckInterval ((DpId) 0x1FFE) /* 8190 UI32 */ #define DPoint_SigAlarmUv4Midpoint ((DpId) 0x1FFF) /* 8191 Signal */ #define DPoint_SigAlarmUabcUv4Midpoint ((DpId) 0x2000) /* 8192 Signal */ #define DPoint_SigAlarmUrstUv4Midpoint ((DpId) 0x2001) /* 8193 Signal */ #define DPoint_SigOpenUv4Midpoint ((DpId) 0x2002) /* 8194 Signal */ #define DPoint_SigOpenUabcUv4Midpoint ((DpId) 0x2003) /* 8195 Signal */ #define DPoint_SigOpenUrstUv4Midpoint ((DpId) 0x2004) /* 8196 Signal */ #define DPoint_SigOpenUv4Ua ((DpId) 0x2005) /* 8197 Signal */ #define DPoint_SigOpenUv4Ub ((DpId) 0x2006) /* 8198 Signal */ #define DPoint_SigOpenUv4Uc ((DpId) 0x2007) /* 8199 Signal */ #define DPoint_SigOpenUv4Ur ((DpId) 0x2008) /* 8200 Signal */ #define DPoint_SigOpenUv4Us ((DpId) 0x2009) /* 8201 Signal */ #define DPoint_SigOpenUv4Ut ((DpId) 0x200A) /* 8202 Signal */ #define DPoint_SigOpenUv4Uab ((DpId) 0x200B) /* 8203 Signal */ #define DPoint_SigOpenUv4Ubc ((DpId) 0x200C) /* 8204 Signal */ #define DPoint_SigOpenUv4Uca ((DpId) 0x200D) /* 8205 Signal */ #define DPoint_SigOpenUv4Urs ((DpId) 0x200E) /* 8206 Signal */ #define DPoint_SigOpenUv4Ust ((DpId) 0x200F) /* 8207 Signal */ #define DPoint_SigOpenUv4Utr ((DpId) 0x2010) /* 8208 Signal */ #define DPoint_SigStatusCloseBlockingUv4 ((DpId) 0x2011) /* 8209 Signal */ #define DPoint_TripMinVoltUv4 ((DpId) 0x2012) /* 8210 UI32 */ #define DPoint_ActiveSwitchPositionStatusST ((DpId) 0x2013) /* 8211 UI32 */ #define DPoint_SimulSwitchPositionStatusST ((DpId) 0x2014) /* 8212 UI16 */ #define DPoint_SigGenLockoutA ((DpId) 0x2015) /* 8213 Signal */ #define DPoint_SigGenLockoutB ((DpId) 0x2016) /* 8214 Signal */ #define DPoint_SigGenLockoutC ((DpId) 0x2017) /* 8215 Signal */ #define DPoint_SigLockoutProtA ((DpId) 0x2018) /* 8216 Signal */ #define DPoint_SigLockoutProtB ((DpId) 0x2019) /* 8217 Signal */ #define DPoint_SigLockoutProtC ((DpId) 0x201A) /* 8218 Signal */ #define DPoint_SwitchFailureStatusFlagB ((DpId) 0x201B) /* 8219 UI8 */ #define DPoint_SwitchFailureStatusFlagC ((DpId) 0x201C) /* 8220 UI8 */ #define DPoint_CoOpenReqB ((DpId) 0x201D) /* 8221 LogOpen */ #define DPoint_CoOpenReqC ((DpId) 0x201E) /* 8222 LogOpen */ #define DPoint_CoCloseReqB ((DpId) 0x201F) /* 8223 LogOpen */ #define DPoint_CoCloseReqC ((DpId) 0x2020) /* 8224 LogOpen */ #define DPoint_SignalBitFieldOpenB ((DpId) 0x2021) /* 8225 SignalBitField */ #define DPoint_SignalBitFieldOpenHighB ((DpId) 0x2022) /* 8226 SignalBitField */ #define DPoint_SignalBitFieldOpenC ((DpId) 0x2023) /* 8227 SignalBitField */ #define DPoint_SignalBitFieldOpenHighC ((DpId) 0x2024) /* 8228 SignalBitField */ #define DPoint_SignalBitFieldCloseB ((DpId) 0x2025) /* 8229 SignalBitField */ #define DPoint_SignalBitFieldCloseHighB ((DpId) 0x2026) /* 8230 SignalBitField */ #define DPoint_SignalBitFieldCloseC ((DpId) 0x2027) /* 8231 SignalBitField */ #define DPoint_SignalBitFieldCloseHighC ((DpId) 0x2028) /* 8232 SignalBitField */ #define DPoint_swsimInLockoutB ((DpId) 0x2029) /* 8233 UI8 */ #define DPoint_swsimInLockoutC ((DpId) 0x202A) /* 8234 UI8 */ #define DPoint_SimRqOpenB ((DpId) 0x202B) /* 8235 EnDis */ #define DPoint_SimRqOpenC ((DpId) 0x202C) /* 8236 EnDis */ #define DPoint_SimRqCloseB ((DpId) 0x202D) /* 8237 EnDis */ #define DPoint_SimRqCloseC ((DpId) 0x202E) /* 8238 EnDis */ #define DPoint_DurMonUpdateInterval ((DpId) 0x202F) /* 8239 UI32 */ #define DPoint_DurMonInitFlag ((DpId) 0x2030) /* 8240 UI8 */ #define DPoint_MechanicalWeara ((DpId) 0x2031) /* 8241 UI32 */ #define DPoint_MechanicalWearb ((DpId) 0x2032) /* 8242 UI32 */ #define DPoint_MechanicalWearc ((DpId) 0x2033) /* 8243 UI32 */ #define DPoint_IdOsmNumber2 ((DpId) 0x2034) /* 8244 SerialNumber */ #define DPoint_IdOsmNumber3 ((DpId) 0x2035) /* 8245 SerialNumber */ #define DPoint_IdOsmNumberA ((DpId) 0x2036) /* 8246 SerialNumber */ #define DPoint_IdOsmNumberB ((DpId) 0x2037) /* 8247 SerialNumber */ #define DPoint_IdOsmNumberC ((DpId) 0x2038) /* 8248 SerialNumber */ #define DPoint_OsmSwitchCount ((DpId) 0x2039) /* 8249 OsmSwitchCount */ #define DPoint_SwitchLogicallyLockedPhases ((DpId) 0x203A) /* 8250 UI8 */ #define DPoint_SigSwitchLogicallyLockedA ((DpId) 0x203B) /* 8251 Signal */ #define DPoint_SigSwitchLogicallyLockedB ((DpId) 0x203C) /* 8252 Signal */ #define DPoint_SigSwitchLogicallyLockedC ((DpId) 0x203D) /* 8253 Signal */ #define DPoint_SigBatteryTestInitiate ((DpId) 0x203E) /* 8254 Signal */ #define DPoint_SigBatteryTestRunning ((DpId) 0x203F) /* 8255 Signal */ #define DPoint_SigBatteryTestPassed ((DpId) 0x2040) /* 8256 Signal */ #define DPoint_SigBatteryTestNotPerformed ((DpId) 0x2041) /* 8257 Signal */ #define DPoint_SigBatteryTestCheckBattery ((DpId) 0x2042) /* 8258 Signal */ #define DPoint_SigBatteryTestFaulty ((DpId) 0x2043) /* 8259 Signal */ #define DPoint_SigBatteryTestAutoOn ((DpId) 0x2044) /* 8260 Signal */ #define DPoint_BatteryTestInterval ((DpId) 0x2045) /* 8261 UI32 */ #define DPoint_BatteryTestIntervalUnits ((DpId) 0x2046) /* 8262 UI32 */ #define DPoint_BatteryTestResult ((DpId) 0x2047) /* 8263 BatteryTestResult */ #define DPoint_BatteryTestNotPerformedReason ((DpId) 0x2048) /* 8264 BatteryTestNotPerformedReason */ #define DPoint_BatteryTestLastPerformedTime ((DpId) 0x2049) /* 8265 TimeStamp */ #define DPoint_ClearBatteryTestResults ((DpId) 0x204A) /* 8266 ClearCommand */ #define DPoint_BatteryTestSupported ((DpId) 0x204B) /* 8267 Bool */ #define DPoint_SigTrip3Lockout3On ((DpId) 0x204C) /* 8268 Signal */ #define DPoint_SigTrip1Lockout3On ((DpId) 0x204D) /* 8269 Signal */ #define DPoint_SigTrip1Lockout1On ((DpId) 0x204E) /* 8270 Signal */ #define DPoint_MeasPowerPhaseS3kW ((DpId) 0x204F) /* 8271 I32 */ #define DPoint_MeasPowerPhaseS3kVAr ((DpId) 0x2050) /* 8272 I32 */ #define DPoint_MeasPowerFactorS3phase ((DpId) 0x2051) /* 8273 I32 */ #define DPoint_MeasPowerPhaseSAkW ((DpId) 0x2052) /* 8274 I32 */ #define DPoint_MeasPowerPhaseSAkVAr ((DpId) 0x2053) /* 8275 I32 */ #define DPoint_MeasPowerPhaseSBkW ((DpId) 0x2054) /* 8276 I32 */ #define DPoint_MeasPowerPhaseSBkVAr ((DpId) 0x2055) /* 8277 I32 */ #define DPoint_MeasPowerPhaseSCkW ((DpId) 0x2056) /* 8278 I32 */ #define DPoint_MeasPowerPhaseSCkVAr ((DpId) 0x2057) /* 8279 I32 */ #define DPoint_UserAnalogCfg01 ((DpId) 0x2058) /* 8280 UserAnalogCfg */ #define DPoint_UserAnalogCfg02 ((DpId) 0x2059) /* 8281 UserAnalogCfg */ #define DPoint_UserAnalogCfg03 ((DpId) 0x205A) /* 8282 UserAnalogCfg */ #define DPoint_UserAnalogCfg04 ((DpId) 0x205B) /* 8283 UserAnalogCfg */ #define DPoint_UserAnalogCfg05 ((DpId) 0x205C) /* 8284 UserAnalogCfg */ #define DPoint_UserAnalogCfg06 ((DpId) 0x205D) /* 8285 UserAnalogCfg */ #define DPoint_UserAnalogCfg07 ((DpId) 0x205E) /* 8286 UserAnalogCfg */ #define DPoint_UserAnalogCfg08 ((DpId) 0x205F) /* 8287 UserAnalogCfg */ #define DPoint_UserAnalogCfg09 ((DpId) 0x2060) /* 8288 UserAnalogCfg */ #define DPoint_UserAnalogCfg10 ((DpId) 0x2061) /* 8289 UserAnalogCfg */ #define DPoint_UserAnalogCfg11 ((DpId) 0x2062) /* 8290 UserAnalogCfg */ #define DPoint_UserAnalogCfg12 ((DpId) 0x2063) /* 8291 UserAnalogCfg */ #define DPoint_UserAnalogOut01 ((DpId) 0x2064) /* 8292 F32 */ #define DPoint_UserAnalogOut02 ((DpId) 0x2065) /* 8293 F32 */ #define DPoint_UserAnalogOut03 ((DpId) 0x2066) /* 8294 F32 */ #define DPoint_UserAnalogOut04 ((DpId) 0x2067) /* 8295 F32 */ #define DPoint_UserAnalogOut05 ((DpId) 0x2068) /* 8296 F32 */ #define DPoint_UserAnalogOut06 ((DpId) 0x2069) /* 8297 F32 */ #define DPoint_UserAnalogOut07 ((DpId) 0x206A) /* 8298 F32 */ #define DPoint_UserAnalogOut08 ((DpId) 0x206B) /* 8299 F32 */ #define DPoint_UserAnalogOut09 ((DpId) 0x206C) /* 8300 F32 */ #define DPoint_UserAnalogOut10 ((DpId) 0x206D) /* 8301 F32 */ #define DPoint_UserAnalogOut11 ((DpId) 0x206E) /* 8302 F32 */ #define DPoint_UserAnalogOut12 ((DpId) 0x206F) /* 8303 F32 */ #define DPoint_SectionaliserEnable ((DpId) 0x2070) /* 8304 EnDis */ #define DPoint_ProtStepStateB ((DpId) 0x2071) /* 8305 ProtectionState */ #define DPoint_ProtStepStateC ((DpId) 0x2072) /* 8306 ProtectionState */ #define DPoint_UserAnalogCfgOn ((DpId) 0x2073) /* 8307 EnDis */ #define DPoint_SigGenARInitA ((DpId) 0x2075) /* 8309 Signal */ #define DPoint_SigGenARInitB ((DpId) 0x2076) /* 8310 Signal */ #define DPoint_SigGenARInitC ((DpId) 0x2077) /* 8311 Signal */ #define DPoint_SigIncorrectPhaseSeq ((DpId) 0x2078) /* 8312 Signal */ #define DPoint_TripHrmComponentA ((DpId) 0x2079) /* 8313 UI8 */ #define DPoint_TripHrmComponentB ((DpId) 0x207A) /* 8314 UI8 */ #define DPoint_TripHrmComponentC ((DpId) 0x207B) /* 8315 UI8 */ #define DPoint_CntrHrmATrips ((DpId) 0x207C) /* 8316 UI32 */ #define DPoint_CntrHrmBTrips ((DpId) 0x207D) /* 8317 UI32 */ #define DPoint_CntrHrmCTrips ((DpId) 0x207E) /* 8318 UI32 */ #define DPoint_CntrHrmNTrips ((DpId) 0x207F) /* 8319 UI32 */ #define DPoint_CntrUvATrips ((DpId) 0x2080) /* 8320 I32 */ #define DPoint_CntrUvBTrips ((DpId) 0x2081) /* 8321 I32 */ #define DPoint_CntrUvCTrips ((DpId) 0x2082) /* 8322 I32 */ #define DPoint_CntrOvATrips ((DpId) 0x2083) /* 8323 I32 */ #define DPoint_CntrOvBTrips ((DpId) 0x2084) /* 8324 I32 */ #define DPoint_CntrOvCTrips ((DpId) 0x2085) /* 8325 I32 */ #define DPoint_TripMinUvA ((DpId) 0x2086) /* 8326 UI32 */ #define DPoint_TripMinUvB ((DpId) 0x2087) /* 8327 UI32 */ #define DPoint_TripMinUvC ((DpId) 0x2088) /* 8328 UI32 */ #define DPoint_TripMaxOvA ((DpId) 0x2089) /* 8329 UI32 */ #define DPoint_TripMaxOvB ((DpId) 0x208A) /* 8330 UI32 */ #define DPoint_TripMaxOvC ((DpId) 0x208B) /* 8331 UI32 */ #define DPoint_SigAlarmSwitchA ((DpId) 0x208C) /* 8332 Signal */ #define DPoint_SigAlarmSwitchB ((DpId) 0x208D) /* 8333 Signal */ #define DPoint_SigAlarmSwitchC ((DpId) 0x208E) /* 8334 Signal */ #define DPoint_SigOpenLSRM ((DpId) 0x208F) /* 8335 Signal */ #define DPoint_OscTraceUsbDir ((DpId) 0x2090) /* 8336 Str */ #define DPoint_GenericDir ((DpId) 0x2091) /* 8337 Str */ #define DPoint_SigCtrlLLBOn ((DpId) 0x2092) /* 8338 Signal */ #define DPoint_SigStatusCloseBlockingLLB ((DpId) 0x2093) /* 8339 Signal */ #define DPoint_AlarmMode ((DpId) 0x2094) /* 8340 Signal */ #define DPoint_SigFaultTargetOpen ((DpId) 0x2095) /* 8341 Signal */ #define DPoint_s61850ClientIpAddr1 ((DpId) 0x2096) /* 8342 IpAddr */ #define DPoint_s61850GOOSEPublEnable ((DpId) 0x2097) /* 8343 EnDis */ #define DPoint_s61850GOOSESubscrEnable ((DpId) 0x2098) /* 8344 EnDis */ #define DPoint_s61850ServerIpAddr ((DpId) 0x2099) /* 8345 IpAddr */ #define DPoint_s61850PktsRx ((DpId) 0x209A) /* 8346 UI32 */ #define DPoint_s61850PktsTx ((DpId) 0x209B) /* 8347 UI32 */ #define DPoint_s61850RxErrPkts ((DpId) 0x209C) /* 8348 UI32 */ #define DPoint_s61850ChannelPort ((DpId) 0x209D) /* 8349 CommsPort */ #define DPoint_s61850GOOSEPort ((DpId) 0x209E) /* 8350 CommsPort */ #define DPoint_GOOSE_broadcastMacAddr ((DpId) 0x209F) /* 8351 Str */ #define DPoint_GOOSE_TxCount ((DpId) 0x20A0) /* 8352 UI32 */ #define DPoint_s61850IEDName ((DpId) 0x20A1) /* 8353 Str */ #define DPoint_SigOpenSectionaliser ((DpId) 0x20A2) /* 8354 Signal */ #define DPoint_ChEvCurveSettings ((DpId) 0x20A4) /* 8356 ChangeEvent */ #define DPoint_ScadaT10BCyclicWaitForSI ((DpId) 0x20A5) /* 8357 YesNo */ #define DPoint_ScadaT10BCyclicStartMaxDelay ((DpId) 0x20A6) /* 8358 UI16 */ #define DPoint_SigCmdResetProtConfig ((DpId) 0x20A7) /* 8359 Signal */ #define DPoint_SigMalfSectionaliserMismatch ((DpId) 0x20A8) /* 8360 Signal */ #define DPoint_SigCtrlSectionaliserOn ((DpId) 0x20A9) /* 8361 Signal */ #define DPoint_UnitTestRoundTrip ((DpId) 0x20AA) /* 8362 UI8 */ #define DPoint_SigOpenSim ((DpId) 0x20AB) /* 8363 Signal */ #define DPoint_SigFaultTarget ((DpId) 0x20AC) /* 8364 Signal */ #define DPoint_SigFaultTargetNonOpen ((DpId) 0x20AD) /* 8365 Signal */ #define DPoint_ExtLoadStatus ((DpId) 0x20AE) /* 8366 OnOff */ #define DPoint_LogicChModeView ((DpId) 0x20AF) /* 8367 LogicChannelMode */ #define DPoint_IoSettingILocModeView ((DpId) 0x20B0) /* 8368 IOSettingMode */ #define DPoint_IoSettingIo1ModeView ((DpId) 0x20B1) /* 8369 GPIOSettingMode */ #define DPoint_IoSettingIo2ModeView ((DpId) 0x20B2) /* 8370 GPIOSettingMode */ #define DPoint_SigOpenOcllTop ((DpId) 0x20B3) /* 8371 Signal */ #define DPoint_SigOpenEfllTop ((DpId) 0x20B4) /* 8372 Signal */ #define DPoint_LogicVAR17 ((DpId) 0x20B5) /* 8373 Signal */ #define DPoint_LogicVAR18 ((DpId) 0x20B6) /* 8374 Signal */ #define DPoint_LogicVAR19 ((DpId) 0x20B7) /* 8375 Signal */ #define DPoint_LogicVAR20 ((DpId) 0x20B8) /* 8376 Signal */ #define DPoint_LogicVAR21 ((DpId) 0x20B9) /* 8377 Signal */ #define DPoint_LogicVAR22 ((DpId) 0x20BA) /* 8378 Signal */ #define DPoint_LogicVAR23 ((DpId) 0x20BB) /* 8379 Signal */ #define DPoint_LogicVAR24 ((DpId) 0x20BC) /* 8380 Signal */ #define DPoint_LogicVAR25 ((DpId) 0x20BD) /* 8381 Signal */ #define DPoint_LogicVAR26 ((DpId) 0x20BE) /* 8382 Signal */ #define DPoint_LogicVAR27 ((DpId) 0x20BF) /* 8383 Signal */ #define DPoint_LogicVAR28 ((DpId) 0x20C0) /* 8384 Signal */ #define DPoint_LogicVAR29 ((DpId) 0x20C1) /* 8385 Signal */ #define DPoint_LogicVAR30 ((DpId) 0x20C2) /* 8386 Signal */ #define DPoint_LogicVAR31 ((DpId) 0x20C3) /* 8387 Signal */ #define DPoint_LogicVAR32 ((DpId) 0x20C4) /* 8388 Signal */ #define DPoint_s61850ClientIpAddr2 ((DpId) 0x20C5) /* 8389 IpAddr */ #define DPoint_s61850ClientIpAddr3 ((DpId) 0x20C6) /* 8390 IpAddr */ #define DPoint_s61850ClientIpAddr4 ((DpId) 0x20C7) /* 8391 IpAddr */ #define DPoint_s61850ServerTcpPort ((DpId) 0x20C8) /* 8392 UI16 */ #define DPoint_s61850TestDI1Bool ((DpId) 0x20C9) /* 8393 Bool */ #define DPoint_s61850TestDI2Bool ((DpId) 0x20CA) /* 8394 Bool */ #define DPoint_s61850TestDI3Sig ((DpId) 0x20CB) /* 8395 Signal */ #define DPoint_s61850TestAI1 ((DpId) 0x20CC) /* 8396 I32 */ #define DPoint_s61850TestAI2 ((DpId) 0x20CD) /* 8397 F32 */ #define DPoint_s61850DiagCtrl ((DpId) 0x20CE) /* 8398 I32 */ #define DPoint_LogicCh9OutputExp ((DpId) 0x20CF) /* 8399 LogicStr */ #define DPoint_LogicCh9RecTime ((DpId) 0x20D0) /* 8400 UI16 */ #define DPoint_LogicCh9ResetTime ((DpId) 0x20D1) /* 8401 UI16 */ #define DPoint_LogicCh9PulseTime ((DpId) 0x20D2) /* 8402 UI16 */ #define DPoint_LogicCh9Output ((DpId) 0x20D3) /* 8403 OnOff */ #define DPoint_LogicCh9Enable ((DpId) 0x20D4) /* 8404 Bool */ #define DPoint_LogicCh9Name ((DpId) 0x20D5) /* 8405 Str */ #define DPoint_LogicCh9NameOffline ((DpId) 0x20D6) /* 8406 Str */ #define DPoint_LogicCh9InputExp ((DpId) 0x20D7) /* 8407 LogicStr */ #define DPoint_LogicCh10OutputExp ((DpId) 0x20D8) /* 8408 LogicStr */ #define DPoint_LogicCh10RecTime ((DpId) 0x20D9) /* 8409 UI16 */ #define DPoint_LogicCh10ResetTime ((DpId) 0x20DA) /* 8410 UI16 */ #define DPoint_LogicCh10PulseTime ((DpId) 0x20DB) /* 8411 UI16 */ #define DPoint_LogicCh10Output ((DpId) 0x20DC) /* 8412 OnOff */ #define DPoint_LogicCh10Enable ((DpId) 0x20DD) /* 8413 Bool */ #define DPoint_LogicCh10Name ((DpId) 0x20DE) /* 8414 Str */ #define DPoint_LogicCh10NameOffline ((DpId) 0x20DF) /* 8415 Str */ #define DPoint_LogicCh10InputExp ((DpId) 0x20E0) /* 8416 LogicStr */ #define DPoint_LogicCh11OutputExp ((DpId) 0x20E1) /* 8417 LogicStr */ #define DPoint_LogicCh11RecTime ((DpId) 0x20E2) /* 8418 UI16 */ #define DPoint_LogicCh11ResetTime ((DpId) 0x20E3) /* 8419 UI16 */ #define DPoint_LogicCh11PulseTime ((DpId) 0x20E4) /* 8420 UI16 */ #define DPoint_LogicCh11Output ((DpId) 0x20E5) /* 8421 OnOff */ #define DPoint_LogicCh11Enable ((DpId) 0x20E6) /* 8422 Bool */ #define DPoint_LogicCh11Name ((DpId) 0x20E7) /* 8423 Str */ #define DPoint_LogicCh11NameOffline ((DpId) 0x20E8) /* 8424 Str */ #define DPoint_LogicCh11InputExp ((DpId) 0x20E9) /* 8425 LogicStr */ #define DPoint_LogicCh12OutputExp ((DpId) 0x20EA) /* 8426 LogicStr */ #define DPoint_LogicCh12RecTime ((DpId) 0x20EB) /* 8427 UI16 */ #define DPoint_LogicCh12ResetTime ((DpId) 0x20EC) /* 8428 UI16 */ #define DPoint_LogicCh12PulseTime ((DpId) 0x20ED) /* 8429 UI16 */ #define DPoint_LogicCh12Output ((DpId) 0x20EE) /* 8430 OnOff */ #define DPoint_LogicCh12Enable ((DpId) 0x20EF) /* 8431 Bool */ #define DPoint_LogicCh12Name ((DpId) 0x20F0) /* 8432 Str */ #define DPoint_LogicCh12NameOffline ((DpId) 0x20F1) /* 8433 Str */ #define DPoint_LogicCh12InputExp ((DpId) 0x20F2) /* 8434 LogicStr */ #define DPoint_LogicCh13OutputExp ((DpId) 0x20F3) /* 8435 LogicStr */ #define DPoint_LogicCh13RecTime ((DpId) 0x20F4) /* 8436 UI16 */ #define DPoint_LogicCh13ResetTime ((DpId) 0x20F5) /* 8437 UI16 */ #define DPoint_LogicCh13PulseTime ((DpId) 0x20F6) /* 8438 UI16 */ #define DPoint_LogicCh13Output ((DpId) 0x20F7) /* 8439 OnOff */ #define DPoint_LogicCh13Enable ((DpId) 0x20F8) /* 8440 Bool */ #define DPoint_LogicCh13Name ((DpId) 0x20F9) /* 8441 Str */ #define DPoint_LogicCh13NameOffline ((DpId) 0x20FA) /* 8442 Str */ #define DPoint_LogicCh13InputExp ((DpId) 0x20FB) /* 8443 LogicStr */ #define DPoint_LogicCh14OutputExp ((DpId) 0x20FC) /* 8444 LogicStr */ #define DPoint_LogicCh14RecTime ((DpId) 0x20FD) /* 8445 UI16 */ #define DPoint_LogicCh14ResetTime ((DpId) 0x20FE) /* 8446 UI16 */ #define DPoint_LogicCh14PulseTime ((DpId) 0x20FF) /* 8447 UI16 */ #define DPoint_LogicCh14Output ((DpId) 0x2100) /* 8448 OnOff */ #define DPoint_LogicCh14Enable ((DpId) 0x2101) /* 8449 Bool */ #define DPoint_LogicCh14Name ((DpId) 0x2102) /* 8450 Str */ #define DPoint_LogicCh14NameOffline ((DpId) 0x2103) /* 8451 Str */ #define DPoint_LogicCh14InputExp ((DpId) 0x2104) /* 8452 LogicStr */ #define DPoint_LogicCh15OutputExp ((DpId) 0x2105) /* 8453 LogicStr */ #define DPoint_LogicCh15RecTime ((DpId) 0x2106) /* 8454 UI16 */ #define DPoint_LogicCh15ResetTime ((DpId) 0x2107) /* 8455 UI16 */ #define DPoint_LogicCh15PulseTime ((DpId) 0x2108) /* 8456 UI16 */ #define DPoint_LogicCh15Output ((DpId) 0x2109) /* 8457 OnOff */ #define DPoint_LogicCh15Enable ((DpId) 0x210A) /* 8458 Bool */ #define DPoint_LogicCh15Name ((DpId) 0x210B) /* 8459 Str */ #define DPoint_LogicCh15NameOffline ((DpId) 0x210C) /* 8460 Str */ #define DPoint_LogicCh15InputExp ((DpId) 0x210D) /* 8461 LogicStr */ #define DPoint_LogicCh16OutputExp ((DpId) 0x210E) /* 8462 LogicStr */ #define DPoint_LogicCh16RecTime ((DpId) 0x210F) /* 8463 UI16 */ #define DPoint_LogicCh16ResetTime ((DpId) 0x2110) /* 8464 UI16 */ #define DPoint_LogicCh16PulseTime ((DpId) 0x2111) /* 8465 UI16 */ #define DPoint_LogicCh16Output ((DpId) 0x2112) /* 8466 OnOff */ #define DPoint_LogicCh16Enable ((DpId) 0x2113) /* 8467 Bool */ #define DPoint_LogicCh16Name ((DpId) 0x2114) /* 8468 Str */ #define DPoint_LogicCh16NameOffline ((DpId) 0x2115) /* 8469 Str */ #define DPoint_LogicCh16InputExp ((DpId) 0x2116) /* 8470 LogicStr */ #define DPoint_LogicCh17OutputExp ((DpId) 0x2117) /* 8471 LogicStr */ #define DPoint_LogicCh17RecTime ((DpId) 0x2118) /* 8472 UI16 */ #define DPoint_LogicCh17ResetTime ((DpId) 0x2119) /* 8473 UI16 */ #define DPoint_LogicCh17PulseTime ((DpId) 0x211A) /* 8474 UI16 */ #define DPoint_LogicCh17Output ((DpId) 0x211B) /* 8475 OnOff */ #define DPoint_LogicCh17Enable ((DpId) 0x211C) /* 8476 Bool */ #define DPoint_LogicCh17Name ((DpId) 0x211D) /* 8477 Str */ #define DPoint_LogicCh17NameOffline ((DpId) 0x211E) /* 8478 Str */ #define DPoint_LogicCh17InputExp ((DpId) 0x211F) /* 8479 LogicStr */ #define DPoint_LogicCh18OutputExp ((DpId) 0x2120) /* 8480 LogicStr */ #define DPoint_LogicCh18RecTime ((DpId) 0x2121) /* 8481 UI16 */ #define DPoint_LogicCh18ResetTime ((DpId) 0x2122) /* 8482 UI16 */ #define DPoint_LogicCh18PulseTime ((DpId) 0x2123) /* 8483 UI16 */ #define DPoint_LogicCh18Output ((DpId) 0x2124) /* 8484 OnOff */ #define DPoint_LogicCh18Enable ((DpId) 0x2125) /* 8485 Bool */ #define DPoint_LogicCh18Name ((DpId) 0x2126) /* 8486 Str */ #define DPoint_LogicCh18NameOffline ((DpId) 0x2127) /* 8487 Str */ #define DPoint_LogicCh18InputExp ((DpId) 0x2128) /* 8488 LogicStr */ #define DPoint_LogicCh19OutputExp ((DpId) 0x2129) /* 8489 LogicStr */ #define DPoint_LogicCh19RecTime ((DpId) 0x212A) /* 8490 UI16 */ #define DPoint_LogicCh19ResetTime ((DpId) 0x212B) /* 8491 UI16 */ #define DPoint_LogicCh19PulseTime ((DpId) 0x212C) /* 8492 UI16 */ #define DPoint_LogicCh19Output ((DpId) 0x212D) /* 8493 OnOff */ #define DPoint_LogicCh19Enable ((DpId) 0x212E) /* 8494 Bool */ #define DPoint_LogicCh19Name ((DpId) 0x212F) /* 8495 Str */ #define DPoint_LogicCh19NameOffline ((DpId) 0x2130) /* 8496 Str */ #define DPoint_LogicCh19InputExp ((DpId) 0x2131) /* 8497 LogicStr */ #define DPoint_LogicCh20OutputExp ((DpId) 0x2132) /* 8498 LogicStr */ #define DPoint_LogicCh20RecTime ((DpId) 0x2133) /* 8499 UI16 */ #define DPoint_LogicCh20ResetTime ((DpId) 0x2134) /* 8500 UI16 */ #define DPoint_LogicCh20PulseTime ((DpId) 0x2135) /* 8501 UI16 */ #define DPoint_LogicCh20Output ((DpId) 0x2136) /* 8502 OnOff */ #define DPoint_LogicCh20Enable ((DpId) 0x2137) /* 8503 Bool */ #define DPoint_LogicCh20Name ((DpId) 0x2138) /* 8504 Str */ #define DPoint_LogicCh20NameOffline ((DpId) 0x2139) /* 8505 Str */ #define DPoint_LogicCh20InputExp ((DpId) 0x213A) /* 8506 LogicStr */ #define DPoint_LogicCh21OutputExp ((DpId) 0x213B) /* 8507 LogicStr */ #define DPoint_LogicCh21RecTime ((DpId) 0x213C) /* 8508 UI16 */ #define DPoint_LogicCh21ResetTime ((DpId) 0x213D) /* 8509 UI16 */ #define DPoint_LogicCh21PulseTime ((DpId) 0x213E) /* 8510 UI16 */ #define DPoint_LogicCh21Output ((DpId) 0x213F) /* 8511 OnOff */ #define DPoint_LogicCh21Enable ((DpId) 0x2140) /* 8512 Bool */ #define DPoint_LogicCh21Name ((DpId) 0x2141) /* 8513 Str */ #define DPoint_LogicCh21NameOffline ((DpId) 0x2142) /* 8514 Str */ #define DPoint_LogicCh21InputExp ((DpId) 0x2143) /* 8515 LogicStr */ #define DPoint_LogicCh22OutputExp ((DpId) 0x2144) /* 8516 LogicStr */ #define DPoint_LogicCh22RecTime ((DpId) 0x2145) /* 8517 UI16 */ #define DPoint_LogicCh22ResetTime ((DpId) 0x2146) /* 8518 UI16 */ #define DPoint_LogicCh22PulseTime ((DpId) 0x2147) /* 8519 UI16 */ #define DPoint_LogicCh22Output ((DpId) 0x2148) /* 8520 OnOff */ #define DPoint_LogicCh22Enable ((DpId) 0x2149) /* 8521 Bool */ #define DPoint_LogicCh22Name ((DpId) 0x214A) /* 8522 Str */ #define DPoint_LogicCh22NameOffline ((DpId) 0x214B) /* 8523 Str */ #define DPoint_LogicCh22InputExp ((DpId) 0x214C) /* 8524 LogicStr */ #define DPoint_LogicCh23OutputExp ((DpId) 0x214D) /* 8525 LogicStr */ #define DPoint_LogicCh23RecTime ((DpId) 0x214E) /* 8526 UI16 */ #define DPoint_LogicCh23ResetTime ((DpId) 0x214F) /* 8527 UI16 */ #define DPoint_LogicCh23PulseTime ((DpId) 0x2150) /* 8528 UI16 */ #define DPoint_LogicCh23Output ((DpId) 0x2151) /* 8529 OnOff */ #define DPoint_LogicCh23Enable ((DpId) 0x2152) /* 8530 Bool */ #define DPoint_LogicCh23Name ((DpId) 0x2153) /* 8531 Str */ #define DPoint_LogicCh23NameOffline ((DpId) 0x2154) /* 8532 Str */ #define DPoint_LogicCh23InputExp ((DpId) 0x2155) /* 8533 LogicStr */ #define DPoint_LogicCh24OutputExp ((DpId) 0x2156) /* 8534 LogicStr */ #define DPoint_LogicCh24RecTime ((DpId) 0x2157) /* 8535 UI16 */ #define DPoint_LogicCh24ResetTime ((DpId) 0x2158) /* 8536 UI16 */ #define DPoint_LogicCh24PulseTime ((DpId) 0x2159) /* 8537 UI16 */ #define DPoint_LogicCh24Output ((DpId) 0x215A) /* 8538 OnOff */ #define DPoint_LogicCh24Enable ((DpId) 0x215B) /* 8539 Bool */ #define DPoint_LogicCh24Name ((DpId) 0x215C) /* 8540 Str */ #define DPoint_LogicCh24NameOffline ((DpId) 0x215D) /* 8541 Str */ #define DPoint_LogicCh24InputExp ((DpId) 0x215E) /* 8542 LogicStr */ #define DPoint_LogicCh25OutputExp ((DpId) 0x215F) /* 8543 LogicStr */ #define DPoint_LogicCh25RecTime ((DpId) 0x2160) /* 8544 UI16 */ #define DPoint_LogicCh25ResetTime ((DpId) 0x2161) /* 8545 UI16 */ #define DPoint_LogicCh25PulseTime ((DpId) 0x2162) /* 8546 UI16 */ #define DPoint_LogicCh25Output ((DpId) 0x2163) /* 8547 OnOff */ #define DPoint_LogicCh25Enable ((DpId) 0x2164) /* 8548 Bool */ #define DPoint_LogicCh25Name ((DpId) 0x2165) /* 8549 Str */ #define DPoint_LogicCh25NameOffline ((DpId) 0x2166) /* 8550 Str */ #define DPoint_LogicCh25InputExp ((DpId) 0x2167) /* 8551 LogicStr */ #define DPoint_LogicCh26OutputExp ((DpId) 0x2168) /* 8552 LogicStr */ #define DPoint_LogicCh26RecTime ((DpId) 0x2169) /* 8553 UI16 */ #define DPoint_LogicCh26ResetTime ((DpId) 0x216A) /* 8554 UI16 */ #define DPoint_LogicCh26PulseTime ((DpId) 0x216B) /* 8555 UI16 */ #define DPoint_LogicCh26Output ((DpId) 0x216C) /* 8556 OnOff */ #define DPoint_LogicCh26Enable ((DpId) 0x216D) /* 8557 Bool */ #define DPoint_LogicCh26Name ((DpId) 0x216E) /* 8558 Str */ #define DPoint_LogicCh26NameOffline ((DpId) 0x216F) /* 8559 Str */ #define DPoint_LogicCh26InputExp ((DpId) 0x2170) /* 8560 LogicStr */ #define DPoint_LogicCh27OutputExp ((DpId) 0x2171) /* 8561 LogicStr */ #define DPoint_LogicCh27RecTime ((DpId) 0x2172) /* 8562 UI16 */ #define DPoint_LogicCh27ResetTime ((DpId) 0x2173) /* 8563 UI16 */ #define DPoint_LogicCh27PulseTime ((DpId) 0x2174) /* 8564 UI16 */ #define DPoint_LogicCh27Output ((DpId) 0x2175) /* 8565 OnOff */ #define DPoint_LogicCh27Enable ((DpId) 0x2176) /* 8566 Bool */ #define DPoint_LogicCh27Name ((DpId) 0x2177) /* 8567 Str */ #define DPoint_LogicCh27NameOffline ((DpId) 0x2178) /* 8568 Str */ #define DPoint_LogicCh27InputExp ((DpId) 0x2179) /* 8569 LogicStr */ #define DPoint_LogicCh28OutputExp ((DpId) 0x217A) /* 8570 LogicStr */ #define DPoint_LogicCh28RecTime ((DpId) 0x217B) /* 8571 UI16 */ #define DPoint_LogicCh28ResetTime ((DpId) 0x217C) /* 8572 UI16 */ #define DPoint_LogicCh28PulseTime ((DpId) 0x217D) /* 8573 UI16 */ #define DPoint_LogicCh28Output ((DpId) 0x217E) /* 8574 OnOff */ #define DPoint_LogicCh28Enable ((DpId) 0x217F) /* 8575 Bool */ #define DPoint_LogicCh28Name ((DpId) 0x2180) /* 8576 Str */ #define DPoint_LogicCh28NameOffline ((DpId) 0x2181) /* 8577 Str */ #define DPoint_LogicCh28InputExp ((DpId) 0x2182) /* 8578 LogicStr */ #define DPoint_LogicCh29OutputExp ((DpId) 0x2183) /* 8579 LogicStr */ #define DPoint_LogicCh29RecTime ((DpId) 0x2184) /* 8580 UI16 */ #define DPoint_LogicCh29ResetTime ((DpId) 0x2185) /* 8581 UI16 */ #define DPoint_LogicCh29PulseTime ((DpId) 0x2186) /* 8582 UI16 */ #define DPoint_LogicCh29Output ((DpId) 0x2187) /* 8583 OnOff */ #define DPoint_LogicCh29Enable ((DpId) 0x2188) /* 8584 Bool */ #define DPoint_LogicCh29Name ((DpId) 0x2189) /* 8585 Str */ #define DPoint_LogicCh29NameOffline ((DpId) 0x218A) /* 8586 Str */ #define DPoint_LogicCh29InputExp ((DpId) 0x218B) /* 8587 LogicStr */ #define DPoint_LogicCh30OutputExp ((DpId) 0x218C) /* 8588 LogicStr */ #define DPoint_LogicCh30RecTime ((DpId) 0x218D) /* 8589 UI16 */ #define DPoint_LogicCh30ResetTime ((DpId) 0x218E) /* 8590 UI16 */ #define DPoint_LogicCh30PulseTime ((DpId) 0x218F) /* 8591 UI16 */ #define DPoint_LogicCh30Output ((DpId) 0x2190) /* 8592 OnOff */ #define DPoint_LogicCh30Enable ((DpId) 0x2191) /* 8593 Bool */ #define DPoint_LogicCh30Name ((DpId) 0x2192) /* 8594 Str */ #define DPoint_LogicCh30NameOffline ((DpId) 0x2193) /* 8595 Str */ #define DPoint_LogicCh30InputExp ((DpId) 0x2194) /* 8596 LogicStr */ #define DPoint_LogicCh31OutputExp ((DpId) 0x2195) /* 8597 LogicStr */ #define DPoint_LogicCh31RecTime ((DpId) 0x2196) /* 8598 UI16 */ #define DPoint_LogicCh31ResetTime ((DpId) 0x2197) /* 8599 UI16 */ #define DPoint_LogicCh31PulseTime ((DpId) 0x2198) /* 8600 UI16 */ #define DPoint_LogicCh31Output ((DpId) 0x2199) /* 8601 OnOff */ #define DPoint_LogicCh31Enable ((DpId) 0x219A) /* 8602 Bool */ #define DPoint_LogicCh31Name ((DpId) 0x219B) /* 8603 Str */ #define DPoint_LogicCh31NameOffline ((DpId) 0x219C) /* 8604 Str */ #define DPoint_LogicCh31InputExp ((DpId) 0x219D) /* 8605 LogicStr */ #define DPoint_LogicCh32OutputExp ((DpId) 0x219E) /* 8606 LogicStr */ #define DPoint_LogicCh32RecTime ((DpId) 0x219F) /* 8607 UI16 */ #define DPoint_LogicCh32ResetTime ((DpId) 0x21A0) /* 8608 UI16 */ #define DPoint_LogicCh32PulseTime ((DpId) 0x21A1) /* 8609 UI16 */ #define DPoint_LogicCh32Output ((DpId) 0x21A2) /* 8610 OnOff */ #define DPoint_LogicCh32Enable ((DpId) 0x21A3) /* 8611 Bool */ #define DPoint_LogicCh32Name ((DpId) 0x21A4) /* 8612 Str */ #define DPoint_LogicCh32NameOffline ((DpId) 0x21A5) /* 8613 Str */ #define DPoint_LogicCh32InputExp ((DpId) 0x21A6) /* 8614 LogicStr */ #define DPoint_LogicChWriteProtect17to32 ((DpId) 0x21A7) /* 8615 EnDis */ #define DPoint_SigStatusCloseBlocked ((DpId) 0x21A8) /* 8616 Signal */ #define DPoint_LogicChEnableExt ((DpId) 0x21A9) /* 8617 UI32 */ #define DPoint_LogicChPulseEnableExt ((DpId) 0x21AA) /* 8618 UI32 */ #define DPoint_LogicChLogChangeExt ((DpId) 0x21AB) /* 8619 UI32 */ #define DPoint_ResetFaultFlagsOnClose ((DpId) 0x21AC) /* 8620 EnDis */ #define DPoint_SigOpenNps ((DpId) 0x21AD) /* 8621 Signal */ #define DPoint_SigAlarmNps ((DpId) 0x21AE) /* 8622 Signal */ #define DPoint_SystemStatus ((DpId) 0x21AF) /* 8623 SystemStatus */ #define DPoint_SigMalfGpioRunningMiniBootloader ((DpId) 0x21B0) /* 8624 Signal */ #define DPoint_SigAlarmProtectionOperation ((DpId) 0x21B1) /* 8625 Signal */ #define DPoint_s61850GseSig1 ((DpId) 0x21B2) /* 8626 Signal */ #define DPoint_s61850GseSig2 ((DpId) 0x21B3) /* 8627 Signal */ #define DPoint_s61850GseSig3 ((DpId) 0x21B4) /* 8628 Signal */ #define DPoint_s61850GseSig4 ((DpId) 0x21B5) /* 8629 Signal */ #define DPoint_s61850GseSig5 ((DpId) 0x21B6) /* 8630 Signal */ #define DPoint_s61850GseSig6 ((DpId) 0x21B7) /* 8631 Signal */ #define DPoint_s61850GseSig7 ((DpId) 0x21B8) /* 8632 Signal */ #define DPoint_s61850GseSubChg ((DpId) 0x21B9) /* 8633 Bool */ #define DPoint_s61850GseBool1 ((DpId) 0x21BA) /* 8634 Bool */ #define DPoint_s61850GseBool2 ((DpId) 0x21BB) /* 8635 Bool */ #define DPoint_s61850GseBool3 ((DpId) 0x21BC) /* 8636 Bool */ #define DPoint_s61850GseBool4 ((DpId) 0x21BD) /* 8637 Bool */ #define DPoint_s61850GseFp1 ((DpId) 0x21BE) /* 8638 F32 */ #define DPoint_s61850GseFp2 ((DpId) 0x21BF) /* 8639 F32 */ #define DPoint_s61850GseFp3 ((DpId) 0x21C0) /* 8640 F32 */ #define DPoint_s61850GseFp4 ((DpId) 0x21C1) /* 8641 F32 */ #define DPoint_s61850GseFp5 ((DpId) 0x21C2) /* 8642 F32 */ #define DPoint_s61850GseFp6 ((DpId) 0x21C3) /* 8643 F32 */ #define DPoint_s61850GseFp7 ((DpId) 0x21C4) /* 8644 F32 */ #define DPoint_s61850GseFp8 ((DpId) 0x21C5) /* 8645 F32 */ #define DPoint_s61850GseInt1 ((DpId) 0x21C6) /* 8646 I32 */ #define DPoint_s61850GseInt2 ((DpId) 0x21C7) /* 8647 I32 */ #define DPoint_s61850GseInt3 ((DpId) 0x21C8) /* 8648 I32 */ #define DPoint_s61850GseInt4 ((DpId) 0x21C9) /* 8649 I32 */ #define DPoint_s61850GseInt5 ((DpId) 0x21CA) /* 8650 I32 */ #define DPoint_s61850GseInt6 ((DpId) 0x21CB) /* 8651 I32 */ #define DPoint_s61850GseInt7 ((DpId) 0x21CC) /* 8652 I32 */ #define DPoint_s61850GseInt8 ((DpId) 0x21CD) /* 8653 I32 */ #define DPoint_FSMountFailure ((DpId) 0x21CE) /* 8654 UI8 */ #define DPoint_SigPickupABR ((DpId) 0x21CF) /* 8655 Signal */ #define DPoint_SimExtSupplyStatusView ((DpId) 0x21D0) /* 8656 SimExtSupplyStatus */ #define DPoint_BatteryType ((DpId) 0x21D1) /* 8657 BatteryType */ #define DPoint_UsbDiscHasDNP3SAUpdateKey ((DpId) 0x21D2) /* 8658 Bool */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileVer ((DpId) 0x21D3) /* 8659 Str */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileNetworkName ((DpId) 0x21D4) /* 8660 Str */ #define DPoint_DNP3SA_ExpectSessKeyChangeInterval ((DpId) 0x21D5) /* 8661 UI16 */ #define DPoint_DNP3SA_ExpectSessKeyChangeCount ((DpId) 0x21D6) /* 8662 UI32 */ #define DPoint_DNP3SA_MaxSessKeyStatusCount ((DpId) 0x21D7) /* 8663 UI8 */ #define DPoint_DNP3SA_AggressiveMode ((DpId) 0x21D8) /* 8664 OnOff */ #define DPoint_DNP3SA_MACAlgorithm ((DpId) 0x21D9) /* 8665 MACAlgorithm */ #define DPoint_DNP3SA_KeyWrapAlgorithm ((DpId) 0x21DA) /* 8666 AESAlgorithm */ #define DPoint_DNP3SA_SessKeyChangeIntervalMonitoring ((DpId) 0x21DB) /* 8667 OnOff */ #define DPoint_DNP3SA_Enable ((DpId) 0x21DC) /* 8668 EnDis */ #define DPoint_DNP3SA_Version ((DpId) 0x21DD) /* 8669 DNP3SAVersion */ #define DPoint_DNP3SA_UpdateKeyInstalled ((DpId) 0x21DE) /* 8670 DNP3SAUpdateKeyInstalledStatus */ #define DPoint_DNP3SA_UpdateKeyFileVer ((DpId) 0x21DF) /* 8671 Str */ #define DPoint_DNP3SA_UpdateKeyInstallState ((DpId) 0x21E0) /* 8672 DNP3SAUpdateKeyInstallStep */ #define DPoint_DNP3SA_UnexpectedMsgCount ((DpId) 0x21E1) /* 8673 UI32 */ #define DPoint_DNP3SA_AuthorizeFailCount ((DpId) 0x21E2) /* 8674 UI32 */ #define DPoint_DNP3SA_AuthenticateFailCount ((DpId) 0x21E3) /* 8675 UI32 */ #define DPoint_DNP3SA_ReplyTimeoutCount ((DpId) 0x21E4) /* 8676 UI32 */ #define DPoint_DNP3SA_RekeyCount ((DpId) 0x21E5) /* 8677 UI32 */ #define DPoint_DNP3SA_TotalMsgTxCount ((DpId) 0x21E6) /* 8678 UI32 */ #define DPoint_DNP3SA_TotalMsgRxCount ((DpId) 0x21E7) /* 8679 UI32 */ #define DPoint_DNP3SA_CriticalMsgTxCount ((DpId) 0x21E8) /* 8680 UI32 */ #define DPoint_DNP3SA_CriticalMsgRxCount ((DpId) 0x21E9) /* 8681 UI32 */ #define DPoint_DNP3SA_DiscardedMsgCount ((DpId) 0x21EA) /* 8682 UI32 */ #define DPoint_DNP3SA_AuthenticateSuccessCount ((DpId) 0x21EB) /* 8683 UI32 */ #define DPoint_DNP3SA_ErrorMsgTxCount ((DpId) 0x21EC) /* 8684 UI32 */ #define DPoint_DNP3SA_ErrorMsgRxCount ((DpId) 0x21ED) /* 8685 UI32 */ #define DPoint_DNP3SA_SessKeyChangeCount ((DpId) 0x21EE) /* 8686 UI32 */ #define DPoint_DNP3SA_FailedSessKeyChangeCount ((DpId) 0x21EF) /* 8687 UI32 */ #define DPoint_ClearDnp3SACntr ((DpId) 0x21F0) /* 8688 ClearCommand */ #define DPoint_IdSIMModelStr ((DpId) 0x21F1) /* 8689 Str */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileUserNum ((DpId) 0x21F2) /* 8690 UI16 */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileUserRole ((DpId) 0x21F3) /* 8691 UI16 */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileCryptoAlg ((DpId) 0x21F4) /* 8692 UI8 */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileDNP3SlaveAddr ((DpId) 0x21F5) /* 8693 UI16 */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileDevSerialNum ((DpId) 0x21F6) /* 8694 Str */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileEnableSA ((DpId) 0x21F7) /* 8695 YesNo */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileKeyVer ((DpId) 0x21F8) /* 8696 Str */ #define DPoint_DNP3SA_UpdateKeyFileKeyVer ((DpId) 0x21F9) /* 8697 Str */ #define DPoint_DNP3SA_MaxErrorCount ((DpId) 0x21FA) /* 8698 UI8 */ #define DPoint_DNP3SA_MaxErrorMessagesSent ((DpId) 0x21FB) /* 8699 UI16 */ #define DPoint_DNP3SA_MaxAuthenticationFails ((DpId) 0x21FC) /* 8700 UI16 */ #define DPoint_DNP3SA_MaxAuthenticationRekeys ((DpId) 0x21FD) /* 8701 UI16 */ #define DPoint_DNP3SA_MaxReplyTimeouts ((DpId) 0x21FE) /* 8702 UI16 */ #define DPoint_DNP3SA_DisallowSHA1 ((DpId) 0x21FF) /* 8703 Bool */ #define DPoint_ScadaDNP3SecurityStatistics ((DpId) 0x2200) /* 8704 ScadaDNP3SecurityStatistics */ #define DPoint_DNP3SA_VersionSelect ((DpId) 0x2201) /* 8705 DNP3SAVersion */ #define DPoint_ClearDNP3SAUpdateKey ((DpId) 0x2204) /* 8708 ClearCommand */ #define DPoint_SigAlarmOv3 ((DpId) 0x2205) /* 8709 Signal */ #define DPoint_SigAlarmOv4 ((DpId) 0x2206) /* 8710 Signal */ #define DPoint_SigOpenOv3 ((DpId) 0x2207) /* 8711 Signal */ #define DPoint_SigOpenOv4 ((DpId) 0x2208) /* 8712 Signal */ #define DPoint_SigPickupOv3 ((DpId) 0x2209) /* 8713 Signal */ #define DPoint_SigPickupOv4 ((DpId) 0x220A) /* 8714 Signal */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileError ((DpId) 0x220B) /* 8715 UsbDiscDNP3SAUpdateKeyFileError */ #define DPoint_ProtAngIa ((DpId) 0x220C) /* 8716 I16 */ #define DPoint_ProtAngIb ((DpId) 0x220D) /* 8717 I16 */ #define DPoint_ProtAngIc ((DpId) 0x220E) /* 8718 I16 */ #define DPoint_ProtAngUa ((DpId) 0x220F) /* 8719 I16 */ #define DPoint_ProtAngUb ((DpId) 0x2210) /* 8720 I16 */ #define DPoint_ProtAngUc ((DpId) 0x2211) /* 8721 I16 */ #define DPoint_ProtAngUr ((DpId) 0x2212) /* 8722 I16 */ #define DPoint_ProtAngUs ((DpId) 0x2213) /* 8723 I16 */ #define DPoint_ProtAngUt ((DpId) 0x2214) /* 8724 I16 */ #define DPoint_MeasVoltUn ((DpId) 0x2215) /* 8725 UI32 */ #define DPoint_TripMaxVoltUn ((DpId) 0x2216) /* 8726 UI32 */ #define DPoint_TripMaxVoltU2 ((DpId) 0x2217) /* 8727 UI32 */ #define DPoint_UsbDiscDNP3SAUpdateKeyFileName ((DpId) 0x2218) /* 8728 Str */ #define DPoint_BatteryTypeChangeSupported ((DpId) 0x2219) /* 8729 Bool */ #define DPoint_UsbDiscInstallError ((DpId) 0x221A) /* 8730 UpdateError */ #define DPoint_UsbDiscUpdateDirFiles ((DpId) 0x221B) /* 8731 StrArray */ #define DPoint_UsbDiscUpdateDirFileCount ((DpId) 0x221C) /* 8732 UI32 */ #define DPoint_SigLogicConfigIssue ((DpId) 0x221D) /* 8733 Signal */ #define DPoint_SigLowestUa ((DpId) 0x221E) /* 8734 Signal */ #define DPoint_SigLowestUb ((DpId) 0x221F) /* 8735 Signal */ #define DPoint_SigLowestUc ((DpId) 0x2220) /* 8736 Signal */ #define DPoint_SigCtrlInhibitMultiPhaseClosesOn ((DpId) 0x2221) /* 8737 Signal */ #define DPoint_CanSimModuleFeatures ((DpId) 0x2222) /* 8738 UI32 */ #define DPoint_CanSimMaxPower ((DpId) 0x2223) /* 8739 UI16 */ #define DPoint_IdOsmNumber1 ((DpId) 0x2224) /* 8740 SerialNumber */ #define DPoint_SigSwitchOpen ((DpId) 0x2225) /* 8741 Signal */ #define DPoint_SigSwitchClosed ((DpId) 0x2226) /* 8742 Signal */ #define DPoint_s61850GseSimFlgEn ((DpId) 0x2227) /* 8743 EnDis */ #define DPoint_s61850GseSimProc ((DpId) 0x2228) /* 8744 EnDis */ #define DPoint_s61850TestQualEn ((DpId) 0x2229) /* 8745 EnDis */ #define DPoint_s61850GseSubscr01 ((DpId) 0x222A) /* 8746 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr02 ((DpId) 0x222B) /* 8747 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr03 ((DpId) 0x222C) /* 8748 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr04 ((DpId) 0x222D) /* 8749 s61850GseSubscDefn */ #define DPoint_IEC61499Enable ((DpId) 0x222F) /* 8751 EnDis */ #define DPoint_IEC61499PortNumber ((DpId) 0x2232) /* 8754 UI16 */ #define DPoint_IEC61499AppStatus ((DpId) 0x2234) /* 8756 IEC61499AppStatus */ #define DPoint_IEC61499Command ((DpId) 0x2236) /* 8758 IEC61499Command */ #define DPoint_OperatingMode ((DpId) 0x2237) /* 8759 OperatingMode */ #define DPoint_AlarmLatchMode ((DpId) 0x2238) /* 8760 LatchEnable */ #define DPoint_IdPSCSoftwareVer ((DpId) 0x223B) /* 8763 Str */ #define DPoint_IdPSCHardwareVer ((DpId) 0x223C) /* 8764 Str */ #define DPoint_IdPSCNumber ((DpId) 0x223D) /* 8765 SerialNumber */ #define DPoint_CanPscModuleType ((DpId) 0x223E) /* 8766 UI8 */ #define DPoint_CanPscReadSerialNumber ((DpId) 0x223F) /* 8767 Str */ #define DPoint_CanPscPartAndSupplierCode ((DpId) 0x2240) /* 8768 Str */ #define DPoint_SigModuleTypePscConnected ((DpId) 0x2241) /* 8769 Signal */ #define DPoint_CanPscReadHWVers ((DpId) 0x2242) /* 8770 UI32 */ #define DPoint_CanPscReadSWVers ((DpId) 0x2243) /* 8771 SwVersion */ #define DPoint_PhaseToPhaseTripping ((DpId) 0x2245) /* 8773 EnDis */ #define DPoint_CanPscRdData ((DpId) 0x2248) /* 8776 SimImageBytes */ #define DPoint_CanPscFirmwareVerifyStatus ((DpId) 0x224A) /* 8778 UI8 */ #define DPoint_CanPscFirmwareTypeRunning ((DpId) 0x224B) /* 8779 UI8 */ #define DPoint_ProgramPscCmd ((DpId) 0x224E) /* 8782 ProgramSimCmd */ #define DPoint_CanDataRequestPsc ((DpId) 0x224F) /* 8783 CanObjType */ #define DPoint_ProgramPscStatus ((DpId) 0x2250) /* 8784 UI8 */ #define DPoint_CanPscRequestMoreData ((DpId) 0x2252) /* 8786 UI8 */ #define DPoint_SigCtrlRqstTripCloseA ((DpId) 0x2254) /* 8788 Signal */ #define DPoint_SigCtrlRqstTripCloseB ((DpId) 0x2255) /* 8789 Signal */ #define DPoint_SigCtrlRqstTripCloseC ((DpId) 0x2256) /* 8790 Signal */ #define DPoint_GOOSE_RxCount ((DpId) 0x2257) /* 8791 UI32 */ #define DPoint_s61850ClrGseCntrs ((DpId) 0x2258) /* 8792 ClearCommand */ #define DPoint_SigClosedSwitchAll ((DpId) 0x2259) /* 8793 Signal */ #define DPoint_SigOpenSwitchAll ((DpId) 0x225A) /* 8794 Signal */ #define DPoint_SwitchgearTypeSIMChanged ((DpId) 0x225B) /* 8795 Bool */ #define DPoint_SwitchgearTypeEraseSettings ((DpId) 0x225C) /* 8796 Bool */ #define DPoint_UpdatePscNew ((DpId) 0x225D) /* 8797 Str */ #define DPoint_s61850GseSubscr05 ((DpId) 0x225E) /* 8798 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr06 ((DpId) 0x225F) /* 8799 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr07 ((DpId) 0x2260) /* 8800 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr08 ((DpId) 0x2261) /* 8801 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr09 ((DpId) 0x2262) /* 8802 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr10 ((DpId) 0x2263) /* 8803 s61850GseSubscDefn */ #define DPoint_SigModuleTypePscDisconnected ((DpId) 0x2264) /* 8804 Signal */ #define DPoint_SigMalfPscRunningMiniBootloader ((DpId) 0x2265) /* 8805 Signal */ #define DPoint_SigMalfPscFault ((DpId) 0x2266) /* 8806 Signal */ #define DPoint_CanPscModuleFault ((DpId) 0x2267) /* 8807 UI16 */ #define DPoint_CanPscModuleHealth ((DpId) 0x2268) /* 8808 UI8 */ #define DPoint_ScadaT10BTimeLocal ((DpId) 0x2269) /* 8809 ScadaTimeIsLocal */ #define DPoint_ScadaT10BIpValidMasterAddr ((DpId) 0x226A) /* 8810 YesNo */ #define DPoint_ScadaT10BIpMasterAddr ((DpId) 0x226B) /* 8811 IpAddr */ #define DPoint_DDT001 ((DpId) 0x226D) /* 8813 DDT */ #define DPoint_DDT002 ((DpId) 0x226E) /* 8814 DDT */ #define DPoint_DDT003 ((DpId) 0x226F) /* 8815 DDT */ #define DPoint_DDT004 ((DpId) 0x2270) /* 8816 DDT */ #define DPoint_DDT005 ((DpId) 0x2271) /* 8817 DDT */ #define DPoint_DDT006 ((DpId) 0x2272) /* 8818 DDT */ #define DPoint_DDT007 ((DpId) 0x2273) /* 8819 DDT */ #define DPoint_DDT008 ((DpId) 0x2274) /* 8820 DDT */ #define DPoint_DDT009 ((DpId) 0x2275) /* 8821 DDT */ #define DPoint_DDT010 ((DpId) 0x2276) /* 8822 DDT */ #define DPoint_DDT011 ((DpId) 0x2277) /* 8823 DDT */ #define DPoint_DDT012 ((DpId) 0x2278) /* 8824 DDT */ #define DPoint_DDT013 ((DpId) 0x2279) /* 8825 DDT */ #define DPoint_DDT014 ((DpId) 0x227A) /* 8826 DDT */ #define DPoint_DDT015 ((DpId) 0x227B) /* 8827 DDT */ #define DPoint_DDT016 ((DpId) 0x227C) /* 8828 DDT */ #define DPoint_DDT017 ((DpId) 0x227D) /* 8829 DDT */ #define DPoint_DDT018 ((DpId) 0x227E) /* 8830 DDT */ #define DPoint_DDT019 ((DpId) 0x227F) /* 8831 DDT */ #define DPoint_DDT020 ((DpId) 0x2280) /* 8832 DDT */ #define DPoint_DDT021 ((DpId) 0x2281) /* 8833 DDT */ #define DPoint_DDT022 ((DpId) 0x2282) /* 8834 DDT */ #define DPoint_DDT023 ((DpId) 0x2283) /* 8835 DDT */ #define DPoint_DDT024 ((DpId) 0x2284) /* 8836 DDT */ #define DPoint_DDT025 ((DpId) 0x2285) /* 8837 DDT */ #define DPoint_DDT026 ((DpId) 0x2286) /* 8838 DDT */ #define DPoint_DDT027 ((DpId) 0x2287) /* 8839 DDT */ #define DPoint_DDT028 ((DpId) 0x2288) /* 8840 DDT */ #define DPoint_DDT029 ((DpId) 0x2289) /* 8841 DDT */ #define DPoint_DDT030 ((DpId) 0x228A) /* 8842 DDT */ #define DPoint_DDT031 ((DpId) 0x228B) /* 8843 DDT */ #define DPoint_DDT032 ((DpId) 0x228C) /* 8844 DDT */ #define DPoint_DDT033 ((DpId) 0x228D) /* 8845 DDT */ #define DPoint_DDT034 ((DpId) 0x228E) /* 8846 DDT */ #define DPoint_DDT035 ((DpId) 0x228F) /* 8847 DDT */ #define DPoint_DDT036 ((DpId) 0x2290) /* 8848 DDT */ #define DPoint_DDT037 ((DpId) 0x2291) /* 8849 DDT */ #define DPoint_DDT038 ((DpId) 0x2292) /* 8850 DDT */ #define DPoint_DDT039 ((DpId) 0x2293) /* 8851 DDT */ #define DPoint_DDT040 ((DpId) 0x2294) /* 8852 DDT */ #define DPoint_DDT041 ((DpId) 0x2295) /* 8853 DDT */ #define DPoint_DDT042 ((DpId) 0x2296) /* 8854 DDT */ #define DPoint_DDT043 ((DpId) 0x2297) /* 8855 DDT */ #define DPoint_DDT044 ((DpId) 0x2298) /* 8856 DDT */ #define DPoint_DDT045 ((DpId) 0x2299) /* 8857 DDT */ #define DPoint_DDT046 ((DpId) 0x229A) /* 8858 DDT */ #define DPoint_DDT047 ((DpId) 0x229B) /* 8859 DDT */ #define DPoint_DDT048 ((DpId) 0x229C) /* 8860 DDT */ #define DPoint_DDT049 ((DpId) 0x229D) /* 8861 DDT */ #define DPoint_DDT050 ((DpId) 0x229E) /* 8862 DDT */ #define DPoint_DDT051 ((DpId) 0x229F) /* 8863 DDT */ #define DPoint_DDT052 ((DpId) 0x22A0) /* 8864 DDT */ #define DPoint_DDT053 ((DpId) 0x22A1) /* 8865 DDT */ #define DPoint_DDT054 ((DpId) 0x22A2) /* 8866 DDT */ #define DPoint_DDT055 ((DpId) 0x22A3) /* 8867 DDT */ #define DPoint_DDT056 ((DpId) 0x22A4) /* 8868 DDT */ #define DPoint_DDT057 ((DpId) 0x22A5) /* 8869 DDT */ #define DPoint_DDT058 ((DpId) 0x22A6) /* 8870 DDT */ #define DPoint_DDT059 ((DpId) 0x22A7) /* 8871 DDT */ #define DPoint_DDT060 ((DpId) 0x22A8) /* 8872 DDT */ #define DPoint_DDT061 ((DpId) 0x22A9) /* 8873 DDT */ #define DPoint_DDT062 ((DpId) 0x22AA) /* 8874 DDT */ #define DPoint_DDT063 ((DpId) 0x22AB) /* 8875 DDT */ #define DPoint_DDT064 ((DpId) 0x22AC) /* 8876 DDT */ #define DPoint_DDT065 ((DpId) 0x22AD) /* 8877 DDT */ #define DPoint_DDT066 ((DpId) 0x22AE) /* 8878 DDT */ #define DPoint_DDT067 ((DpId) 0x22AF) /* 8879 DDT */ #define DPoint_DDT068 ((DpId) 0x22B0) /* 8880 DDT */ #define DPoint_DDT069 ((DpId) 0x22B1) /* 8881 DDT */ #define DPoint_DDT070 ((DpId) 0x22B2) /* 8882 DDT */ #define DPoint_DDT071 ((DpId) 0x22B3) /* 8883 DDT */ #define DPoint_DDT072 ((DpId) 0x22B4) /* 8884 DDT */ #define DPoint_DDT073 ((DpId) 0x22B5) /* 8885 DDT */ #define DPoint_DDT074 ((DpId) 0x22B6) /* 8886 DDT */ #define DPoint_DDT075 ((DpId) 0x22B7) /* 8887 DDT */ #define DPoint_DDT076 ((DpId) 0x22B8) /* 8888 DDT */ #define DPoint_DDT077 ((DpId) 0x22B9) /* 8889 DDT */ #define DPoint_DDT078 ((DpId) 0x22BA) /* 8890 DDT */ #define DPoint_DDT079 ((DpId) 0x22BB) /* 8891 DDT */ #define DPoint_DDT080 ((DpId) 0x22BC) /* 8892 DDT */ #define DPoint_DDT081 ((DpId) 0x22BD) /* 8893 DDT */ #define DPoint_DDT082 ((DpId) 0x22BE) /* 8894 DDT */ #define DPoint_DDT083 ((DpId) 0x22BF) /* 8895 DDT */ #define DPoint_DDT084 ((DpId) 0x22C0) /* 8896 DDT */ #define DPoint_DDT085 ((DpId) 0x22C1) /* 8897 DDT */ #define DPoint_DDT086 ((DpId) 0x22C2) /* 8898 DDT */ #define DPoint_DDT087 ((DpId) 0x22C3) /* 8899 DDT */ #define DPoint_DDT088 ((DpId) 0x22C4) /* 8900 DDT */ #define DPoint_DDT089 ((DpId) 0x22C5) /* 8901 DDT */ #define DPoint_DDT090 ((DpId) 0x22C6) /* 8902 DDT */ #define DPoint_DDT091 ((DpId) 0x22C7) /* 8903 DDT */ #define DPoint_DDT092 ((DpId) 0x22C8) /* 8904 DDT */ #define DPoint_DDT093 ((DpId) 0x22C9) /* 8905 DDT */ #define DPoint_DDT094 ((DpId) 0x22CA) /* 8906 DDT */ #define DPoint_DDT095 ((DpId) 0x22CB) /* 8907 DDT */ #define DPoint_DDT096 ((DpId) 0x22CC) /* 8908 DDT */ #define DPoint_DDT097 ((DpId) 0x22CD) /* 8909 DDT */ #define DPoint_DDT098 ((DpId) 0x22CE) /* 8910 DDT */ #define DPoint_DDT099 ((DpId) 0x22CF) /* 8911 DDT */ #define DPoint_DDT100 ((DpId) 0x22D0) /* 8912 DDT */ #define DPoint_SigAlarmOcll1 ((DpId) 0x22D4) /* 8916 Signal */ #define DPoint_SigAlarmOcll2 ((DpId) 0x22D5) /* 8917 Signal */ #define DPoint_SigAlarmOcll3 ((DpId) 0x22D6) /* 8918 Signal */ #define DPoint_SigAlarmNpsll1 ((DpId) 0x22D7) /* 8919 Signal */ #define DPoint_SigAlarmNpsll2 ((DpId) 0x22D8) /* 8920 Signal */ #define DPoint_SigAlarmNpsll3 ((DpId) 0x22D9) /* 8921 Signal */ #define DPoint_SigAlarmEfll1 ((DpId) 0x22DA) /* 8922 Signal */ #define DPoint_SigAlarmEfll2 ((DpId) 0x22DB) /* 8923 Signal */ #define DPoint_SigAlarmEfll3 ((DpId) 0x22DC) /* 8924 Signal */ #define DPoint_SigAlarmSefll ((DpId) 0x22DD) /* 8925 Signal */ #define DPoint_DDTDef01 ((DpId) 0x22DE) /* 8926 DDTDef */ #define DPoint_CanSimBulkReadCount ((DpId) 0x22DF) /* 8927 UI8 */ #define DPoint_CanIoBulkReadCount ((DpId) 0x22E0) /* 8928 UI8 */ #define DPoint_CanPscBulkReadCount ((DpId) 0x22E1) /* 8929 UI8 */ #define DPoint_DemoUnitMode ((DpId) 0x22E3) /* 8931 DemoUnitMode */ #define DPoint_DemoUnitAvailable ((DpId) 0x22E4) /* 8932 Bool */ #define DPoint_LanguagesAvailable ((DpId) 0x22E5) /* 8933 StrArray2 */ #define DPoint_DemoUnitActive ((DpId) 0x22E6) /* 8934 Bool */ #define DPoint_CanSimReadSWVersExt ((DpId) 0x22E8) /* 8936 SwVersionExt */ #define DPoint_CanIo1ReadSwVersExt ((DpId) 0x22E9) /* 8937 SwVersionExt */ #define DPoint_CanIo2ReadSwVersExt ((DpId) 0x22EA) /* 8938 SwVersionExt */ #define DPoint_CanPscReadSWVersExt ((DpId) 0x22EB) /* 8939 SwVersionExt */ #define DPoint_RemoteUpdateCommand ((DpId) 0x22EC) /* 8940 RemoteUpdateCommand */ #define DPoint_RemoteUpdateStatus ((DpId) 0x22ED) /* 8941 RemoteUpdateStatus */ #define DPoint_IEC61499FBOOTChEv ((DpId) 0x22EE) /* 8942 IEC61499FBOOTChEv */ #define DPoint_SigStatusIEC61499FailedFBOOT ((DpId) 0x22EF) /* 8943 Signal */ #define DPoint_IdOsmNumModelA ((DpId) 0x22F2) /* 8946 UI32 */ #define DPoint_IdOsmNumModelB ((DpId) 0x22F3) /* 8947 UI32 */ #define DPoint_IdOsmNumModelC ((DpId) 0x22F4) /* 8948 UI32 */ #define DPoint_IdOsmNumPlantA ((DpId) 0x22F5) /* 8949 UI32 */ #define DPoint_IdOsmNumPlantB ((DpId) 0x22F6) /* 8950 UI32 */ #define DPoint_IdOsmNumPlantC ((DpId) 0x22F7) /* 8951 UI32 */ #define DPoint_IdOsmNumDateA ((DpId) 0x22F8) /* 8952 UI32 */ #define DPoint_IdOsmNumDateB ((DpId) 0x22F9) /* 8953 UI32 */ #define DPoint_IdOsmNumDateC ((DpId) 0x22FA) /* 8954 UI32 */ #define DPoint_IdOsmNumSeqA ((DpId) 0x22FB) /* 8955 UI32 */ #define DPoint_IdOsmNumSeqB ((DpId) 0x22FC) /* 8956 UI32 */ #define DPoint_IdOsmNumSeqC ((DpId) 0x22FD) /* 8957 UI32 */ #define DPoint_LLBPhasesBlocked ((DpId) 0x22FE) /* 8958 UI8 */ #define DPoint_CmsClientCapabilities ((DpId) 0x22FF) /* 8959 UI32 */ #define DPoint_SigGenLockoutAll ((DpId) 0x2300) /* 8960 Signal */ #define DPoint_SigLockoutProtAll ((DpId) 0x2301) /* 8961 Signal */ #define DPoint_CmsClientAllowAny ((DpId) 0x2302) /* 8962 Bool */ #define DPoint_IEC61499FBOOTStatus ((DpId) 0x230A) /* 8970 IEC61499FBOOTStatus */ #define DPoint_IEC61499AppsRunning ((DpId) 0x230B) /* 8971 UI8 */ #define DPoint_IEC61499AppsFailed ((DpId) 0x230C) /* 8972 UI8 */ #define DPoint_IEC61499FBOOTOper ((DpId) 0x230D) /* 8973 IEC61499FBOOTOper */ #define DPoint_PanelButtHLT ((DpId) 0x230E) /* 8974 EnDis */ #define DPoint_GpsAvailable ((DpId) 0x230F) /* 8975 YesNo */ #define DPoint_Gps_PortDetectedName ((DpId) 0x2310) /* 8976 Str */ #define DPoint_Gps_Enable ((DpId) 0x2311) /* 8977 EnDis */ #define DPoint_Gps_Restart ((DpId) 0x2312) /* 8978 YesNo */ #define DPoint_Gps_SignalQuality ((DpId) 0x2313) /* 8979 SignalQuality */ #define DPoint_Gps_Longitude ((DpId) 0x2314) /* 8980 I32 */ #define DPoint_Gps_Latitude ((DpId) 0x2315) /* 8981 I32 */ #define DPoint_Gps_Altitude ((DpId) 0x2316) /* 8982 I16 */ #define DPoint_Gps_TimeSyncStatus ((DpId) 0x2317) /* 8983 GpsTimeSyncStatus */ #define DPoint_SigGpsLocked ((DpId) 0x2318) /* 8984 Signal */ #define DPoint_PqChEvNonGroup ((DpId) 0x2319) /* 8985 ChangeEvent */ #define DPoint_ChEvSwitchgearCalib ((DpId) 0x231A) /* 8986 ChangeEvent */ #define DPoint_ProtocolChEvNonGroup ((DpId) 0x231B) /* 8987 ChangeEvent */ #define DPoint_Gps_SyncSimTime ((DpId) 0x231C) /* 8988 Bool */ #define DPoint_Gps_PPS ((DpId) 0x231D) /* 8989 Signal */ #define DPoint_SigModuleSimUnhealthy ((DpId) 0x231E) /* 8990 Signal */ #define DPoint_SigLanAvailable ((DpId) 0x231F) /* 8991 Signal */ #define DPoint_MntReset ((DpId) 0x2320) /* 8992 Bool */ #define DPoint_WlanConfigType ((DpId) 0x2321) /* 8993 UsbPortConfigType */ #define DPoint_MobileNetworkConfigType ((DpId) 0x2322) /* 8994 UsbPortConfigType */ #define DPoint_WlanConnectionMode ((DpId) 0x2323) /* 8995 WlanConnectionMode */ #define DPoint_WlanAccessPointSSID ((DpId) 0x2324) /* 8996 Str */ #define DPoint_WlanAccessPointIP ((DpId) 0x2325) /* 8997 IpAddr */ #define DPoint_WlanIPRangeLow ((DpId) 0x2326) /* 8998 IpAddr */ #define DPoint_WlanIPRangeHigh ((DpId) 0x2327) /* 8999 IpAddr */ #define DPoint_WlanClientIPAddr1 ((DpId) 0x2328) /* 9000 IpAddr */ #define DPoint_WlanClientIPAddr2 ((DpId) 0x2329) /* 9001 IpAddr */ #define DPoint_WlanClientIPAddr3 ((DpId) 0x232A) /* 9002 IpAddr */ #define DPoint_WlanClientIPAddr4 ((DpId) 0x232B) /* 9003 IpAddr */ #define DPoint_WlanClientIPAddr5 ((DpId) 0x232C) /* 9004 IpAddr */ #define DPoint_WlanSignalQuality ((DpId) 0x232D) /* 9005 SignalQuality */ #define DPoint_MobileNetworkSignalQuality ((DpId) 0x232E) /* 9006 SignalQuality */ #define DPoint_MobileNetworkSimCardStatus ((DpId) 0x232F) /* 9007 MobileNetworkSimCardStatus */ #define DPoint_MobileNetworkMode ((DpId) 0x2330) /* 9008 MobileNetworkMode */ #define DPoint_MobileNetworkModemSerialNumber ((DpId) 0x2331) /* 9009 Str */ #define DPoint_MobileNetworkIMEI ((DpId) 0x2332) /* 9010 Str */ #define DPoint_WlanHideNetwork ((DpId) 0x2333) /* 9011 YesNo */ #define DPoint_WlanChannelNumber ((DpId) 0x2334) /* 9012 UI8 */ #define DPoint_WlanRestart ((DpId) 0x2335) /* 9013 YesNo */ #define DPoint_MobileNetworkRestart ((DpId) 0x2336) /* 9014 YesNo */ #define DPoint_SigWlanAvailable ((DpId) 0x2337) /* 9015 Signal */ #define DPoint_SigMobileNetworkAvailable ((DpId) 0x2338) /* 9016 Signal */ #define DPoint_SigCommsBoardConnected ((DpId) 0x2339) /* 9017 Signal */ #define DPoint_G12_SerialBaudRate ((DpId) 0x233A) /* 9018 CommsSerialBaudRate */ #define DPoint_G12_SerialDuplexType ((DpId) 0x233B) /* 9019 CommsSerialDuplex */ #define DPoint_G12_SerialRTSMode ((DpId) 0x233C) /* 9020 CommsSerialRTSMode */ #define DPoint_G12_SerialRTSOnLevel ((DpId) 0x233D) /* 9021 CommsSerialRTSOnLevel */ #define DPoint_G12_SerialDTRMode ((DpId) 0x233E) /* 9022 CommsSerialDTRMode */ #define DPoint_G12_SerialDTROnLevel ((DpId) 0x233F) /* 9023 CommsSerialDTROnLevel */ #define DPoint_G12_SerialParity ((DpId) 0x2340) /* 9024 CommsSerialParity */ #define DPoint_G12_SerialCTSMode ((DpId) 0x2341) /* 9025 CommsSerialCTSMode */ #define DPoint_G12_SerialDSRMode ((DpId) 0x2342) /* 9026 CommsSerialDSRMode */ #define DPoint_G12_SerialDTRLowTime ((DpId) 0x2344) /* 9028 UI32 */ #define DPoint_G12_SerialTxDelay ((DpId) 0x2345) /* 9029 UI32 */ #define DPoint_G12_SerialPreTxTime ((DpId) 0x2346) /* 9030 UI32 */ #define DPoint_G12_SerialDCDFallTime ((DpId) 0x2347) /* 9031 UI32 */ #define DPoint_G12_SerialCharTimeout ((DpId) 0x2348) /* 9032 UI32 */ #define DPoint_G12_SerialPostTxTime ((DpId) 0x2349) /* 9033 UI32 */ #define DPoint_G12_SerialInactivityTime ((DpId) 0x234A) /* 9034 UI32 */ #define DPoint_G12_SerialCollisionAvoidance ((DpId) 0x234B) /* 9035 Bool */ #define DPoint_G12_SerialMinIdleTime ((DpId) 0x234C) /* 9036 UI32 */ #define DPoint_G12_SerialMaxRandomDelay ((DpId) 0x234D) /* 9037 UI32 */ #define DPoint_G12_ModemPoweredFromExtLoad ((DpId) 0x234E) /* 9038 Bool */ #define DPoint_G12_ModemUsedWithLeasedLine ((DpId) 0x234F) /* 9039 Bool */ #define DPoint_G12_ModemInitString ((DpId) 0x2350) /* 9040 Str */ #define DPoint_G12_ModemDialOut ((DpId) 0x2351) /* 9041 Bool */ #define DPoint_G12_ModemPreDialString ((DpId) 0x2352) /* 9042 Str */ #define DPoint_G12_ModemDialNumber1 ((DpId) 0x2353) /* 9043 Str */ #define DPoint_G12_ModemDialNumber2 ((DpId) 0x2354) /* 9044 Str */ #define DPoint_G12_ModemDialNumber3 ((DpId) 0x2355) /* 9045 Str */ #define DPoint_G12_ModemDialNumber4 ((DpId) 0x2356) /* 9046 Str */ #define DPoint_G12_ModemDialNumber5 ((DpId) 0x2357) /* 9047 Str */ #define DPoint_G12_ModemAutoDialInterval ((DpId) 0x2358) /* 9048 UI32 */ #define DPoint_G12_ModemConnectionTimeout ((DpId) 0x2359) /* 9049 UI32 */ #define DPoint_G12_ModemMaxCallDuration ((DpId) 0x235A) /* 9050 UI32 */ #define DPoint_G12_ModemResponseTime ((DpId) 0x235B) /* 9051 UI32 */ #define DPoint_G12_ModemHangUpCommand ((DpId) 0x235C) /* 9052 Str */ #define DPoint_G12_ModemOffHookCommand ((DpId) 0x235D) /* 9053 Str */ #define DPoint_G12_ModemAutoAnswerOn ((DpId) 0x235E) /* 9054 Str */ #define DPoint_G12_ModemAutoAnswerOff ((DpId) 0x235F) /* 9055 Str */ #define DPoint_G12_RadioPreamble ((DpId) 0x2360) /* 9056 Bool */ #define DPoint_G12_RadioPreambleChar ((DpId) 0x2361) /* 9057 UI8 */ #define DPoint_G12_RadioPreambleRepeat ((DpId) 0x2362) /* 9058 UI32 */ #define DPoint_G12_RadioPreambleLastChar ((DpId) 0x2363) /* 9059 UI8 */ #define DPoint_G12_LanSpecifyIP ((DpId) 0x2364) /* 9060 YesNo */ #define DPoint_G12_LanIPAddr ((DpId) 0x2365) /* 9061 IpAddr */ #define DPoint_G12_LanSubnetMask ((DpId) 0x2366) /* 9062 IpAddr */ #define DPoint_G12_LanDefaultGateway ((DpId) 0x2367) /* 9063 IpAddr */ #define DPoint_G12_WlanNetworkSSID ((DpId) 0x2368) /* 9064 Str */ #define DPoint_G12_WlanNetworkAuthentication ((DpId) 0x2369) /* 9065 CommsWlanNetworkAuthentication */ #define DPoint_G12_WlanDataEncryption ((DpId) 0x236A) /* 9066 CommsWlanDataEncryption */ #define DPoint_G12_WlanNetworkKey ((DpId) 0x236B) /* 9067 Str */ #define DPoint_G12_WlanKeyIndex ((DpId) 0x236C) /* 9068 UI32 */ #define DPoint_G12_PortLocalRemoteMode ((DpId) 0x236D) /* 9069 LocalRemote */ #define DPoint_G12_GPRSServiceProvider ((DpId) 0x236E) /* 9070 Str */ #define DPoint_G12_GPRSUserName ((DpId) 0x2371) /* 9073 Str */ #define DPoint_G12_GPRSPassWord ((DpId) 0x2372) /* 9074 Str */ #define DPoint_G12_SerialDebugMode ((DpId) 0x2373) /* 9075 YesNo */ #define DPoint_G12_SerialDebugFileName ((DpId) 0x2374) /* 9076 Str */ #define DPoint_G12_GPRSBaudRate ((DpId) 0x2375) /* 9077 CommsSerialBaudRate */ #define DPoint_G12_GPRSConnectionTimeout ((DpId) 0x2376) /* 9078 UI32 */ #define DPoint_G12_DNP3InputPipe ((DpId) 0x2377) /* 9079 Str */ #define DPoint_G12_DNP3OutputPipe ((DpId) 0x2378) /* 9080 Str */ #define DPoint_G12_CMSInputPipe ((DpId) 0x2379) /* 9081 Str */ #define DPoint_G12_CMSOutputPipe ((DpId) 0x237A) /* 9082 Str */ #define DPoint_G12_HMIInputPipe ((DpId) 0x237B) /* 9083 Str */ #define DPoint_G12_HMIOutputPipe ((DpId) 0x237C) /* 9084 Str */ #define DPoint_G12_DNP3ChannelRequest ((DpId) 0x237D) /* 9085 Str */ #define DPoint_G12_DNP3ChannelOpen ((DpId) 0x237E) /* 9086 Str */ #define DPoint_G12_CMSChannelRequest ((DpId) 0x237F) /* 9087 Str */ #define DPoint_G12_CMSChannelOpen ((DpId) 0x2380) /* 9088 Str */ #define DPoint_G12_HMIChannelRequest ((DpId) 0x2381) /* 9089 Str */ #define DPoint_G12_HMIChannelOpen ((DpId) 0x2382) /* 9090 Str */ #define DPoint_G12_GPRSUseModemSetting ((DpId) 0x2383) /* 9091 YesNo */ #define DPoint_G12_SerialFlowControlMode ((DpId) 0x2384) /* 9092 CommsSerialFlowControlMode */ #define DPoint_G12_SerialDCDControlMode ((DpId) 0x2385) /* 9093 CommsSerialDCDControlMode */ #define DPoint_G12_T10BInputPipe ((DpId) 0x2386) /* 9094 Str */ #define DPoint_G12_T10BOutputPipe ((DpId) 0x2387) /* 9095 Str */ #define DPoint_G12_T10BChannelRequest ((DpId) 0x2388) /* 9096 Str */ #define DPoint_G12_T10BChannelOpen ((DpId) 0x2389) /* 9097 Str */ #define DPoint_G12_P2PInputPipe ((DpId) 0x238A) /* 9098 Str */ #define DPoint_G12_P2POutputPipe ((DpId) 0x238B) /* 9099 Str */ #define DPoint_G12_P2PChannelRequest ((DpId) 0x238C) /* 9100 Str */ #define DPoint_G12_P2PChannelOpen ((DpId) 0x238D) /* 9101 Str */ #define DPoint_G12_PGEInputPipe ((DpId) 0x238E) /* 9102 Str */ #define DPoint_G12_PGEOutputPipe ((DpId) 0x238F) /* 9103 Str */ #define DPoint_G12_PGEChannelRequest ((DpId) 0x2390) /* 9104 Str */ #define DPoint_G12_PGEChannelOpen ((DpId) 0x2391) /* 9105 Str */ #define DPoint_G12_LanProvideIP ((DpId) 0x2392) /* 9106 YesNo */ #define DPoint_G12_LanSpecifyIPv6 ((DpId) 0x2393) /* 9107 YesNo */ #define DPoint_G12_LanIPv6Addr ((DpId) 0x2394) /* 9108 Ipv6Addr */ #define DPoint_G12_LanPrefixLength ((DpId) 0x2395) /* 9109 UI8 */ #define DPoint_G12_LanIPv6DefaultGateway ((DpId) 0x2396) /* 9110 Ipv6Addr */ #define DPoint_G12_LanIpVersion ((DpId) 0x2397) /* 9111 IpVersion */ #define DPoint_G12_SerialDTRStatus ((DpId) 0x2402) /* 9218 CommsSerialPinStatus */ #define DPoint_G12_SerialDSRStatus ((DpId) 0x2403) /* 9219 CommsSerialPinStatus */ #define DPoint_G12_SerialCDStatus ((DpId) 0x2404) /* 9220 CommsSerialPinStatus */ #define DPoint_G12_SerialRTSStatus ((DpId) 0x2405) /* 9221 CommsSerialPinStatus */ #define DPoint_G12_SerialCTSStatus ((DpId) 0x2406) /* 9222 CommsSerialPinStatus */ #define DPoint_G12_SerialRIStatus ((DpId) 0x2407) /* 9223 CommsSerialPinStatus */ #define DPoint_G12_ConnectionStatus ((DpId) 0x2408) /* 9224 CommsConnectionStatus */ #define DPoint_G12_BytesReceivedStatus ((DpId) 0x2409) /* 9225 UI32 */ #define DPoint_G12_BytesTransmittedStatus ((DpId) 0x240A) /* 9226 UI32 */ #define DPoint_G12_PacketsReceivedStatus ((DpId) 0x240B) /* 9227 UI32 */ #define DPoint_G12_PacketsTransmittedStatus ((DpId) 0x240C) /* 9228 UI32 */ #define DPoint_G12_ErrorPacketsReceivedStatus ((DpId) 0x240D) /* 9229 UI32 */ #define DPoint_G12_ErrorPacketsTransmittedStatus ((DpId) 0x240E) /* 9230 UI32 */ #define DPoint_G12_IpAddrStatus ((DpId) 0x240F) /* 9231 IpAddr */ #define DPoint_G12_SubnetMaskStatus ((DpId) 0x2410) /* 9232 IpAddr */ #define DPoint_G12_DefaultGatewayStatus ((DpId) 0x2411) /* 9233 IpAddr */ #define DPoint_G12_PortDetectedType ((DpId) 0x2412) /* 9234 CommsPortDetectedType */ #define DPoint_G12_PortDetectedName ((DpId) 0x2413) /* 9235 Str */ #define DPoint_G12_SerialTxTestStatus ((DpId) 0x2414) /* 9236 OnOff */ #define DPoint_G12_PacketsReceivedStatusIPv6 ((DpId) 0x2415) /* 9237 UI32 */ #define DPoint_G12_PacketsTransmittedStatusIPv6 ((DpId) 0x2416) /* 9238 UI32 */ #define DPoint_G12_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x2417) /* 9239 UI32 */ #define DPoint_G12_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x2418) /* 9240 UI32 */ #define DPoint_G12_Ipv6AddrStatus ((DpId) 0x2419) /* 9241 Ipv6Addr */ #define DPoint_G12_LanPrefixLengthStatus ((DpId) 0x241A) /* 9242 UI8 */ #define DPoint_G12_Ipv6DefaultGatewayStatus ((DpId) 0x241B) /* 9243 Ipv6Addr */ #define DPoint_G12_IpVersionStatus ((DpId) 0x241C) /* 9244 IpVersion */ #define DPoint_G13_SerialDTRStatus ((DpId) 0x2452) /* 9298 CommsSerialPinStatus */ #define DPoint_G13_SerialDSRStatus ((DpId) 0x2453) /* 9299 CommsSerialPinStatus */ #define DPoint_G13_SerialCDStatus ((DpId) 0x2454) /* 9300 CommsSerialPinStatus */ #define DPoint_G13_SerialRTSStatus ((DpId) 0x2455) /* 9301 CommsSerialPinStatus */ #define DPoint_G13_SerialCTSStatus ((DpId) 0x2456) /* 9302 CommsSerialPinStatus */ #define DPoint_G13_SerialRIStatus ((DpId) 0x2457) /* 9303 CommsSerialPinStatus */ #define DPoint_G13_ConnectionStatus ((DpId) 0x2458) /* 9304 CommsConnectionStatus */ #define DPoint_G13_BytesReceivedStatus ((DpId) 0x2459) /* 9305 UI32 */ #define DPoint_G13_BytesTransmittedStatus ((DpId) 0x245A) /* 9306 UI32 */ #define DPoint_G13_PacketsReceivedStatus ((DpId) 0x245B) /* 9307 UI32 */ #define DPoint_G13_PacketsTransmittedStatus ((DpId) 0x245C) /* 9308 UI32 */ #define DPoint_G13_ErrorPacketsReceivedStatus ((DpId) 0x245D) /* 9309 UI32 */ #define DPoint_G13_ErrorPacketsTransmittedStatus ((DpId) 0x245E) /* 9310 UI32 */ #define DPoint_G13_IpAddrStatus ((DpId) 0x245F) /* 9311 IpAddr */ #define DPoint_G13_SubnetMaskStatus ((DpId) 0x2460) /* 9312 IpAddr */ #define DPoint_G13_DefaultGatewayStatus ((DpId) 0x2461) /* 9313 IpAddr */ #define DPoint_G13_PortDetectedType ((DpId) 0x2462) /* 9314 CommsPortDetectedType */ #define DPoint_G13_PortDetectedName ((DpId) 0x2463) /* 9315 Str */ #define DPoint_G13_SerialTxTestStatus ((DpId) 0x2464) /* 9316 OnOff */ #define DPoint_G13_PacketsReceivedStatusIPv6 ((DpId) 0x2465) /* 9317 UI32 */ #define DPoint_G13_PacketsTransmittedStatusIPv6 ((DpId) 0x2466) /* 9318 UI32 */ #define DPoint_G13_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x2467) /* 9319 UI32 */ #define DPoint_G13_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x2468) /* 9320 UI32 */ #define DPoint_G13_Ipv6AddrStatus ((DpId) 0x2469) /* 9321 Ipv6Addr */ #define DPoint_G13_LanPrefixLengthStatus ((DpId) 0x246A) /* 9322 UI8 */ #define DPoint_G13_Ipv6DefaultGatewayStatus ((DpId) 0x246B) /* 9323 Ipv6Addr */ #define DPoint_G13_IpVersionStatus ((DpId) 0x246C) /* 9324 IpVersion */ #define DPoint_G12_SerialPortTestCmd ((DpId) 0x24A2) /* 9378 Signal */ #define DPoint_G12_SerialPortHangupCmd ((DpId) 0x24A3) /* 9379 Signal */ #define DPoint_G12_BytesReceivedResetCmd ((DpId) 0x24A4) /* 9380 Signal */ #define DPoint_G12_BytesTransmittedResetCmd ((DpId) 0x24A5) /* 9381 Signal */ #define DPoint_G13_SerialPortTestCmd ((DpId) 0x24CA) /* 9418 Signal */ #define DPoint_G13_SerialPortHangupCmd ((DpId) 0x24CB) /* 9419 Signal */ #define DPoint_G13_BytesReceivedResetCmd ((DpId) 0x24CC) /* 9420 Signal */ #define DPoint_G13_BytesTransmittedResetCmd ((DpId) 0x24CD) /* 9421 Signal */ #define DPoint_G13_SerialBaudRate ((DpId) 0x24F2) /* 9458 CommsSerialBaudRate */ #define DPoint_G13_SerialDuplexType ((DpId) 0x24F3) /* 9459 CommsSerialDuplex */ #define DPoint_G13_SerialRTSMode ((DpId) 0x24F4) /* 9460 CommsSerialRTSMode */ #define DPoint_G13_SerialRTSOnLevel ((DpId) 0x24F5) /* 9461 CommsSerialRTSOnLevel */ #define DPoint_G13_SerialDTRMode ((DpId) 0x24F6) /* 9462 CommsSerialDTRMode */ #define DPoint_G13_SerialDTROnLevel ((DpId) 0x24F7) /* 9463 CommsSerialDTROnLevel */ #define DPoint_G13_SerialParity ((DpId) 0x24F8) /* 9464 CommsSerialParity */ #define DPoint_G13_SerialCTSMode ((DpId) 0x24F9) /* 9465 CommsSerialCTSMode */ #define DPoint_G13_SerialDSRMode ((DpId) 0x24FA) /* 9466 CommsSerialDSRMode */ #define DPoint_G13_SerialDTRLowTime ((DpId) 0x24FC) /* 9468 UI32 */ #define DPoint_G13_SerialTxDelay ((DpId) 0x24FD) /* 9469 UI32 */ #define DPoint_G13_SerialPreTxTime ((DpId) 0x24FE) /* 9470 UI32 */ #define DPoint_G13_SerialDCDFallTime ((DpId) 0x24FF) /* 9471 UI32 */ #define DPoint_G13_SerialCharTimeout ((DpId) 0x2500) /* 9472 UI32 */ #define DPoint_G13_SerialPostTxTime ((DpId) 0x2501) /* 9473 UI32 */ #define DPoint_G13_SerialInactivityTime ((DpId) 0x2502) /* 9474 UI32 */ #define DPoint_G13_SerialCollisionAvoidance ((DpId) 0x2503) /* 9475 Bool */ #define DPoint_G13_SerialMinIdleTime ((DpId) 0x2504) /* 9476 UI32 */ #define DPoint_G13_SerialMaxRandomDelay ((DpId) 0x2505) /* 9477 UI32 */ #define DPoint_G13_ModemPoweredFromExtLoad ((DpId) 0x2506) /* 9478 Bool */ #define DPoint_G13_ModemUsedWithLeasedLine ((DpId) 0x2507) /* 9479 Bool */ #define DPoint_G13_ModemInitString ((DpId) 0x2508) /* 9480 Str */ #define DPoint_G13_ModemDialOut ((DpId) 0x2509) /* 9481 Bool */ #define DPoint_G13_ModemPreDialString ((DpId) 0x250A) /* 9482 Str */ #define DPoint_G13_ModemDialNumber1 ((DpId) 0x250B) /* 9483 Str */ #define DPoint_G13_ModemDialNumber2 ((DpId) 0x250C) /* 9484 Str */ #define DPoint_G13_ModemDialNumber3 ((DpId) 0x250D) /* 9485 Str */ #define DPoint_G13_ModemDialNumber4 ((DpId) 0x250E) /* 9486 Str */ #define DPoint_G13_ModemDialNumber5 ((DpId) 0x250F) /* 9487 Str */ #define DPoint_G13_ModemAutoDialInterval ((DpId) 0x2510) /* 9488 UI32 */ #define DPoint_G13_ModemConnectionTimeout ((DpId) 0x2511) /* 9489 UI32 */ #define DPoint_G13_ModemMaxCallDuration ((DpId) 0x2512) /* 9490 UI32 */ #define DPoint_G13_ModemResponseTime ((DpId) 0x2513) /* 9491 UI32 */ #define DPoint_G13_ModemHangUpCommand ((DpId) 0x2514) /* 9492 Str */ #define DPoint_G13_ModemOffHookCommand ((DpId) 0x2515) /* 9493 Str */ #define DPoint_G13_ModemAutoAnswerOn ((DpId) 0x2516) /* 9494 Str */ #define DPoint_G13_ModemAutoAnswerOff ((DpId) 0x2517) /* 9495 Str */ #define DPoint_G13_RadioPreamble ((DpId) 0x2518) /* 9496 Bool */ #define DPoint_G13_RadioPreambleChar ((DpId) 0x2519) /* 9497 UI8 */ #define DPoint_G13_RadioPreambleRepeat ((DpId) 0x251A) /* 9498 UI32 */ #define DPoint_G13_RadioPreambleLastChar ((DpId) 0x251B) /* 9499 UI8 */ #define DPoint_G13_LanSpecifyIP ((DpId) 0x251C) /* 9500 YesNo */ #define DPoint_G13_LanIPAddr ((DpId) 0x251D) /* 9501 IpAddr */ #define DPoint_G13_LanSubnetMask ((DpId) 0x251E) /* 9502 IpAddr */ #define DPoint_G13_LanDefaultGateway ((DpId) 0x251F) /* 9503 IpAddr */ #define DPoint_G13_WlanNetworkSSID ((DpId) 0x2520) /* 9504 Str */ #define DPoint_G13_WlanNetworkAuthentication ((DpId) 0x2521) /* 9505 CommsWlanNetworkAuthentication */ #define DPoint_G13_WlanDataEncryption ((DpId) 0x2522) /* 9506 CommsWlanDataEncryption */ #define DPoint_G13_WlanNetworkKey ((DpId) 0x2523) /* 9507 Str */ #define DPoint_G13_WlanKeyIndex ((DpId) 0x2524) /* 9508 UI32 */ #define DPoint_G13_PortLocalRemoteMode ((DpId) 0x2525) /* 9509 LocalRemote */ #define DPoint_G13_GPRSServiceProvider ((DpId) 0x2526) /* 9510 Str */ #define DPoint_G13_GPRSUserName ((DpId) 0x2529) /* 9513 Str */ #define DPoint_G13_GPRSPassWord ((DpId) 0x252A) /* 9514 Str */ #define DPoint_G13_SerialDebugMode ((DpId) 0x252B) /* 9515 YesNo */ #define DPoint_G13_SerialDebugFileName ((DpId) 0x252C) /* 9516 Str */ #define DPoint_G13_GPRSBaudRate ((DpId) 0x252D) /* 9517 CommsSerialBaudRate */ #define DPoint_G13_GPRSConnectionTimeout ((DpId) 0x252E) /* 9518 UI32 */ #define DPoint_G13_DNP3InputPipe ((DpId) 0x252F) /* 9519 Str */ #define DPoint_G13_DNP3OutputPipe ((DpId) 0x2530) /* 9520 Str */ #define DPoint_G13_CMSInputPipe ((DpId) 0x2531) /* 9521 Str */ #define DPoint_G13_CMSOutputPipe ((DpId) 0x2532) /* 9522 Str */ #define DPoint_G13_HMIInputPipe ((DpId) 0x2533) /* 9523 Str */ #define DPoint_G13_HMIOutputPipe ((DpId) 0x2534) /* 9524 Str */ #define DPoint_G13_DNP3ChannelRequest ((DpId) 0x2535) /* 9525 Str */ #define DPoint_G13_DNP3ChannelOpen ((DpId) 0x2536) /* 9526 Str */ #define DPoint_G13_CMSChannelRequest ((DpId) 0x2537) /* 9527 Str */ #define DPoint_G13_CMSChannelOpen ((DpId) 0x2538) /* 9528 Str */ #define DPoint_G13_HMIChannelRequest ((DpId) 0x2539) /* 9529 Str */ #define DPoint_G13_HMIChannelOpen ((DpId) 0x253A) /* 9530 Str */ #define DPoint_G13_GPRSUseModemSetting ((DpId) 0x253B) /* 9531 YesNo */ #define DPoint_G13_SerialFlowControlMode ((DpId) 0x253C) /* 9532 CommsSerialFlowControlMode */ #define DPoint_G13_SerialDCDControlMode ((DpId) 0x253D) /* 9533 CommsSerialDCDControlMode */ #define DPoint_G13_T10BInputPipe ((DpId) 0x253E) /* 9534 Str */ #define DPoint_G13_T10BOutputPipe ((DpId) 0x253F) /* 9535 Str */ #define DPoint_G13_T10BChannelRequest ((DpId) 0x2540) /* 9536 Str */ #define DPoint_G13_T10BChannelOpen ((DpId) 0x2541) /* 9537 Str */ #define DPoint_G13_P2PInputPipe ((DpId) 0x2542) /* 9538 Str */ #define DPoint_G13_P2POutputPipe ((DpId) 0x2543) /* 9539 Str */ #define DPoint_G13_P2PChannelRequest ((DpId) 0x2544) /* 9540 Str */ #define DPoint_G13_P2PChannelOpen ((DpId) 0x2545) /* 9541 Str */ #define DPoint_G13_PGEInputPipe ((DpId) 0x2546) /* 9542 Str */ #define DPoint_G13_PGEOutputPipe ((DpId) 0x2547) /* 9543 Str */ #define DPoint_G13_PGEChannelRequest ((DpId) 0x2548) /* 9544 Str */ #define DPoint_G13_PGEChannelOpen ((DpId) 0x2549) /* 9545 Str */ #define DPoint_G13_LanProvideIP ((DpId) 0x254A) /* 9546 YesNo */ #define DPoint_G13_LanSpecifyIPv6 ((DpId) 0x254B) /* 9547 YesNo */ #define DPoint_G13_LanIPv6Addr ((DpId) 0x254C) /* 9548 Ipv6Addr */ #define DPoint_G13_LanPrefixLength ((DpId) 0x254D) /* 9549 UI8 */ #define DPoint_G13_LanIPv6DefaultGateway ((DpId) 0x254E) /* 9550 Ipv6Addr */ #define DPoint_G13_LanIpVersion ((DpId) 0x254F) /* 9551 IpVersion */ #define DPoint_SigMalfRel03 ((DpId) 0x25BA) /* 9658 Signal */ #define DPoint_SigMalfRel15 ((DpId) 0x25BB) /* 9659 Signal */ #define DPoint_SigMalfRel15_4G ((DpId) 0x25BC) /* 9660 Signal */ #define DPoint_SyncEnabled ((DpId) 0x25BD) /* 9661 EnDis */ #define DPoint_SigWarningSyncSingleTriple ((DpId) 0x25BE) /* 9662 Signal */ #define DPoint_SyncPhaseToSelection ((DpId) 0x25BF) /* 9663 PhaseToSelection */ #define DPoint_SyncBusAndLine ((DpId) 0x25C0) /* 9664 BusAndLine */ #define DPoint_SyncLiveDeadAR ((DpId) 0x25C1) /* 9665 SyncLiveDeadMode */ #define DPoint_SyncLiveDeadManual ((DpId) 0x25C2) /* 9666 SyncLiveDeadMode */ #define DPoint_SyncDLDBAR ((DpId) 0x25C3) /* 9667 EnDis */ #define DPoint_SyncDLDBManual ((DpId) 0x25C4) /* 9668 EnDis */ #define DPoint_SyncLiveBusMultiplier ((DpId) 0x25C5) /* 9669 UI16 */ #define DPoint_SyncLiveLineMultiplier ((DpId) 0x25C6) /* 9670 UI16 */ #define DPoint_SyncMaxBusMultiplier ((DpId) 0x25C7) /* 9671 UI16 */ #define DPoint_SyncMaxLineMultiplier ((DpId) 0x25C8) /* 9672 UI16 */ #define DPoint_SyncCheckEnabled ((DpId) 0x25C9) /* 9673 EnDis */ #define DPoint_SyncVoltageDiffMultiplier ((DpId) 0x25CA) /* 9674 UI16 */ #define DPoint_SyncMaxSyncSlipFreq ((DpId) 0x25CB) /* 9675 UI16 */ #define DPoint_SyncMaxPhaseAngleDiff ((DpId) 0x25CC) /* 9676 UI16 */ #define DPoint_SyncManualPreSyncTime ((DpId) 0x25CD) /* 9677 UI16 */ #define DPoint_SyncMaxFreqDeviation ((DpId) 0x25CE) /* 9678 UI16 */ #define DPoint_SyncMaxAutoSlipFreq ((DpId) 0x25CF) /* 9679 UI16 */ #define DPoint_SyncMaxROCSlipFreq ((DpId) 0x25D0) /* 9680 UI16 */ #define DPoint_SyncAutoWaitingTime ((DpId) 0x25D1) /* 9681 UI32 */ #define DPoint_SyncAntiMotoringEnabled ((DpId) 0x25D2) /* 9682 EnDis */ #define DPoint_SynchroniserStatus ((DpId) 0x25D3) /* 9683 SynchroniserStatus */ #define DPoint_SyncDeltaVStatus ((DpId) 0x25D4) /* 9684 OkFail */ #define DPoint_SyncSlipFreqStatus ((DpId) 0x25D5) /* 9685 OkFail */ #define DPoint_SyncAdvanceAngleStatus ((DpId) 0x25D6) /* 9686 OkFail */ #define DPoint_SyncDeltaPhaseStatus ((DpId) 0x25D7) /* 9687 OkFail */ #define DPoint_SigAutoSynchroniserInitiate ((DpId) 0x25D8) /* 9688 Signal */ #define DPoint_SigAutoSynchroniserInitiated ((DpId) 0x25D9) /* 9689 Signal */ #define DPoint_SigAutoSynchroniserRelease ((DpId) 0x25DA) /* 9690 Signal */ #define DPoint_SigSyncHealthCheck ((DpId) 0x25DB) /* 9691 Signal */ #define DPoint_SigSyncTimedHealthCheck ((DpId) 0x25DC) /* 9692 Signal */ #define DPoint_SigSyncPhaseSeqMatch ((DpId) 0x25DD) /* 9693 Signal */ #define DPoint_SyncAdvanceAngle ((DpId) 0x25DE) /* 9694 I32 */ #define DPoint_MobileNetwork_DebugPortName ((DpId) 0x25DF) /* 9695 Str */ #define DPoint_SyncSlipFreq ((DpId) 0x25E0) /* 9696 I32 */ #define DPoint_SyncMaxDeltaV ((DpId) 0x25E1) /* 9697 I32 */ #define DPoint_SyncMaxDeltaPhase ((DpId) 0x25E2) /* 9698 I32 */ #define DPoint_CommsChEvGrp12 ((DpId) 0x25E3) /* 9699 ChangeEvent */ #define DPoint_CommsChEvGrp13 ((DpId) 0x25E4) /* 9700 ChangeEvent */ #define DPoint_SigPickupNps ((DpId) 0x25E5) /* 9701 Signal */ #define DPoint_FaultProfileDataAddrB ((DpId) 0x25E6) /* 9702 UI32 */ #define DPoint_FaultProfileDataAddrC ((DpId) 0x25E7) /* 9703 UI32 */ #define DPoint_SyncStateFlags ((DpId) 0x25E8) /* 9704 UI32 */ #define DPoint_DEPRECATED_PowerFlowDirection ((DpId) 0x25E9) /* 9705 Signal */ #define DPoint_SigCtrlRestrictTripMode ((DpId) 0x25EA) /* 9706 Signal */ #define DPoint_s61850GseSubscr11 ((DpId) 0x25EB) /* 9707 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr12 ((DpId) 0x25EC) /* 9708 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr13 ((DpId) 0x25ED) /* 9709 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr14 ((DpId) 0x25EE) /* 9710 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr15 ((DpId) 0x25EF) /* 9711 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr16 ((DpId) 0x25F0) /* 9712 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr17 ((DpId) 0x25F1) /* 9713 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr18 ((DpId) 0x25F2) /* 9714 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr19 ((DpId) 0x25F3) /* 9715 s61850GseSubscDefn */ #define DPoint_s61850GseSubscr20 ((DpId) 0x25F4) /* 9716 s61850GseSubscDefn */ #define DPoint_s61850CIDFileCheck ((DpId) 0x25F5) /* 9717 UI32 */ #define DPoint_SyncFundFreq ((DpId) 0x25F6) /* 9718 UI32 */ #define DPoint_MobileNetworkPortName ((DpId) 0x25F7) /* 9719 Str */ #define DPoint_WlanAPSubnetMask ((DpId) 0x25F8) /* 9720 IpAddr */ #define DPoint_WlanAPNetworkAuthentication ((DpId) 0x25F9) /* 9721 CommsWlanNetworkAuthentication */ #define DPoint_WlanAPDataEncryption ((DpId) 0x25FA) /* 9722 CommsWlanDataEncryption */ #define DPoint_WlanAPNetworkKey ((DpId) 0x25FB) /* 9723 Str */ #define DPoint_ProtConfigCount ((DpId) 0x25FC) /* 9724 UI16 */ #define DPoint_OpenReqA ((DpId) 0x25FD) /* 9725 CoReq */ #define DPoint_OpenReqB ((DpId) 0x25FE) /* 9726 CoReq */ #define DPoint_OpenReqC ((DpId) 0x25FF) /* 9727 CoReq */ #define DPoint_CoLogOpen ((DpId) 0x2600) /* 9728 CoReq */ #define DPoint_MobileNetworkSignalStrength ((DpId) 0x2601) /* 9729 I8 */ #define DPoint_WlanFWVersion ((DpId) 0x2602) /* 9730 Str */ #define DPoint_CmsSecurity ((DpId) 0x2603) /* 9731 CmsSecurityLevel */ #define DPoint_SigAutoSynchroniserCancel ((DpId) 0x2604) /* 9732 Signal */ #define DPoint_IEC61499CtrlStartStop ((DpId) 0x2605) /* 9733 UI8 */ #define DPoint_SyncAutoAction ((DpId) 0x2606) /* 9734 UI32 */ #define DPoint_FreqabcROC ((DpId) 0x2607) /* 9735 I32 */ #define DPoint_WT1 ((DpId) 0x2608) /* 9736 UI16 */ #define DPoint_WT2 ((DpId) 0x2609) /* 9737 UI16 */ #define DPoint_A_WT1 ((DpId) 0x260A) /* 9738 UI32 */ #define DPoint_A_WT2 ((DpId) 0x260B) /* 9739 UI32 */ #define DPoint_AutoRecloseStatus ((DpId) 0x260C) /* 9740 AutoRecloseStatus */ #define DPoint_CloseReqAR ((DpId) 0x260D) /* 9741 Signal */ #define DPoint_SigCtrlOV3On ((DpId) 0x260E) /* 9742 Signal */ #define DPoint_s61850EnableCommslog ((DpId) 0x2612) /* 9746 EnDis */ #define DPoint_PanelButtLogicVAR1 ((DpId) 0x2613) /* 9747 EnDis */ #define DPoint_PanelButtLogicVAR2 ((DpId) 0x2614) /* 9748 EnDis */ #define DPoint_SigHighPrecisionSEF ((DpId) 0x2615) /* 9749 Signal */ #define DPoint_MeasVoltU0RST ((DpId) 0x2616) /* 9750 UI32 */ #define DPoint_MeasVoltUnRST ((DpId) 0x2617) /* 9751 UI32 */ #define DPoint_MeasVoltU1RST ((DpId) 0x2618) /* 9752 UI32 */ #define DPoint_MeasVoltU2RST ((DpId) 0x2619) /* 9753 UI32 */ #define DPoint_G1_Yn_TDtMin ((DpId) 0x261A) /* 9754 UI32 */ #define DPoint_G1_Yn_OperationalMode ((DpId) 0x261B) /* 9755 YnOperationalMode */ #define DPoint_G1_Yn_DirectionalMode ((DpId) 0x261C) /* 9756 YnDirectionalMode */ #define DPoint_G1_Yn_Um ((DpId) 0x261D) /* 9757 UI32 */ #define DPoint_G1_Yn_Ioper ((DpId) 0x261E) /* 9758 UI32 */ #define DPoint_G1_Yn_TDtRes ((DpId) 0x261F) /* 9759 UI32 */ #define DPoint_G1_Yn_FwdSusceptance ((DpId) 0x2620) /* 9760 I32 */ #define DPoint_G1_Yn_RevSusceptance ((DpId) 0x2621) /* 9761 I32 */ #define DPoint_G1_Yn_FwdConductance ((DpId) 0x2622) /* 9762 I32 */ #define DPoint_G1_Yn_RevConductance ((DpId) 0x2623) /* 9763 I32 */ #define DPoint_G1_Yn_Tr1 ((DpId) 0x2624) /* 9764 TripMode */ #define DPoint_G1_Yn_Tr2 ((DpId) 0x2625) /* 9765 TripMode */ #define DPoint_G1_Yn_Tr3 ((DpId) 0x2626) /* 9766 TripMode */ #define DPoint_G1_Yn_Tr4 ((DpId) 0x2627) /* 9767 TripMode */ #define DPoint_G1_OC1F_TccName ((DpId) 0x2628) /* 9768 Str */ #define DPoint_G1_OC2F_TccName ((DpId) 0x2629) /* 9769 Str */ #define DPoint_G1_OC1R_TccName ((DpId) 0x262A) /* 9770 Str */ #define DPoint_G1_OC2R_TccName ((DpId) 0x262B) /* 9771 Str */ #define DPoint_G1_NPS1F_TccName ((DpId) 0x262C) /* 9772 Str */ #define DPoint_G1_NPS2F_TccName ((DpId) 0x262D) /* 9773 Str */ #define DPoint_G1_NPS1R_TccName ((DpId) 0x262E) /* 9774 Str */ #define DPoint_G1_NPS2R_TccName ((DpId) 0x262F) /* 9775 Str */ #define DPoint_G1_EF1F_TccName ((DpId) 0x2630) /* 9776 Str */ #define DPoint_G1_EF2F_TccName ((DpId) 0x2631) /* 9777 Str */ #define DPoint_G1_EF1R_TccName ((DpId) 0x2632) /* 9778 Str */ #define DPoint_G1_EF2R_TccName ((DpId) 0x2633) /* 9779 Str */ #define DPoint_G1_OCLL1_TccName ((DpId) 0x2634) /* 9780 Str */ #define DPoint_G1_OCLL2_TccName ((DpId) 0x2635) /* 9781 Str */ #define DPoint_G1_NPSLL1_TccName ((DpId) 0x2636) /* 9782 Str */ #define DPoint_G1_NPSLL2_TccName ((DpId) 0x2637) /* 9783 Str */ #define DPoint_G1_EFLL1_TccName ((DpId) 0x2638) /* 9784 Str */ #define DPoint_G1_EFLL2_TccName ((DpId) 0x2639) /* 9785 Str */ #define DPoint_G1_DE_EF_AdvPolarDet ((DpId) 0x263A) /* 9786 EnDis */ #define DPoint_G1_DE_EF_MinNVD ((DpId) 0x263B) /* 9787 UI32 */ #define DPoint_G1_DE_EF_MaxFwdAngle ((DpId) 0x263C) /* 9788 I32 */ #define DPoint_G1_DE_EF_MinFwdAngle ((DpId) 0x263D) /* 9789 I32 */ #define DPoint_G1_DE_EF_MaxRevAngle ((DpId) 0x263E) /* 9790 I32 */ #define DPoint_G1_DE_EF_MinRevAngle ((DpId) 0x263F) /* 9791 I32 */ #define DPoint_G1_DE_SEF_AdvPolarDet ((DpId) 0x2640) /* 9792 EnDis */ #define DPoint_G1_DE_SEF_MinNVD ((DpId) 0x2641) /* 9793 UI32 */ #define DPoint_G1_DE_SEF_MaxFwdAngle ((DpId) 0x2642) /* 9794 I32 */ #define DPoint_G1_DE_SEF_MinFwdAngle ((DpId) 0x2643) /* 9795 I32 */ #define DPoint_G1_DE_SEF_MaxRevAngle ((DpId) 0x2644) /* 9796 I32 */ #define DPoint_G1_DE_SEF_MinRevAngle ((DpId) 0x2645) /* 9797 I32 */ #define DPoint_G1_DE_SEF_Polarisation ((DpId) 0x2646) /* 9798 NeutralPolarisation */ #define DPoint_G1_Hrm_IndA_NameExt ((DpId) 0x2647) /* 9799 HrmIndividualExt */ #define DPoint_G1_Hrm_IndB_NameExt ((DpId) 0x2648) /* 9800 HrmIndividualExt */ #define DPoint_G1_Hrm_IndC_NameExt ((DpId) 0x2649) /* 9801 HrmIndividualExt */ #define DPoint_G1_Hrm_IndD_NameExt ((DpId) 0x264A) /* 9802 HrmIndividualExt */ #define DPoint_G1_Hrm_IndE_NameExt ((DpId) 0x264B) /* 9803 HrmIndividualExt */ #define DPoint_G1_ROCOF_Trm ((DpId) 0x264C) /* 9804 TripModeDLA */ #define DPoint_G1_ROCOF_Pickup ((DpId) 0x264D) /* 9805 UI32 */ #define DPoint_G1_ROCOF_TDtMin ((DpId) 0x264E) /* 9806 UI32 */ #define DPoint_G1_ROCOF_TDtRes ((DpId) 0x264F) /* 9807 UI32 */ #define DPoint_G1_VVS_Trm ((DpId) 0x2650) /* 9808 TripModeDLA */ #define DPoint_G1_VVS_Pickup ((DpId) 0x2651) /* 9809 UI32 */ #define DPoint_G1_VVS_TDtMin ((DpId) 0x2652) /* 9810 UI32 */ #define DPoint_G1_VVS_TDtRes ((DpId) 0x2653) /* 9811 UI32 */ #define DPoint_G1_PDOP_Trm ((DpId) 0x2654) /* 9812 TripModeDLA */ #define DPoint_G1_PDOP_Pickup ((DpId) 0x2655) /* 9813 UI32 */ #define DPoint_G1_PDOP_Angle ((DpId) 0x2656) /* 9814 I32 */ #define DPoint_G1_PDOP_TDtMin ((DpId) 0x2657) /* 9815 UI32 */ #define DPoint_G1_PDOP_TDtRes ((DpId) 0x2658) /* 9816 UI32 */ #define DPoint_G1_PDUP_Trm ((DpId) 0x2659) /* 9817 TripModeDLA */ #define DPoint_G1_PDUP_Pickup ((DpId) 0x265A) /* 9818 UI32 */ #define DPoint_G1_PDUP_Angle ((DpId) 0x265B) /* 9819 I32 */ #define DPoint_G1_PDUP_TDtMin ((DpId) 0x265C) /* 9820 UI32 */ #define DPoint_G1_PDUP_TDtRes ((DpId) 0x265D) /* 9821 UI32 */ #define DPoint_G1_PDUP_TDtDis ((DpId) 0x265E) /* 9822 UI32 */ #define DPoint_G2_Yn_TDtMin ((DpId) 0x26E2) /* 9954 UI32 */ #define DPoint_G2_Yn_OperationalMode ((DpId) 0x26E3) /* 9955 YnOperationalMode */ #define DPoint_G2_Yn_DirectionalMode ((DpId) 0x26E4) /* 9956 YnDirectionalMode */ #define DPoint_G2_Yn_Um ((DpId) 0x26E5) /* 9957 UI32 */ #define DPoint_G2_Yn_Ioper ((DpId) 0x26E6) /* 9958 UI32 */ #define DPoint_G2_Yn_TDtRes ((DpId) 0x26E7) /* 9959 UI32 */ #define DPoint_G2_Yn_FwdSusceptance ((DpId) 0x26E8) /* 9960 I32 */ #define DPoint_G2_Yn_RevSusceptance ((DpId) 0x26E9) /* 9961 I32 */ #define DPoint_G2_Yn_FwdConductance ((DpId) 0x26EA) /* 9962 I32 */ #define DPoint_G2_Yn_RevConductance ((DpId) 0x26EB) /* 9963 I32 */ #define DPoint_G2_Yn_Tr1 ((DpId) 0x26EC) /* 9964 TripMode */ #define DPoint_G2_Yn_Tr2 ((DpId) 0x26ED) /* 9965 TripMode */ #define DPoint_G2_Yn_Tr3 ((DpId) 0x26EE) /* 9966 TripMode */ #define DPoint_G2_Yn_Tr4 ((DpId) 0x26EF) /* 9967 TripMode */ #define DPoint_G2_OC1F_TccName ((DpId) 0x26F0) /* 9968 Str */ #define DPoint_G2_OC2F_TccName ((DpId) 0x26F1) /* 9969 Str */ #define DPoint_G2_OC1R_TccName ((DpId) 0x26F2) /* 9970 Str */ #define DPoint_G2_OC2R_TccName ((DpId) 0x26F3) /* 9971 Str */ #define DPoint_G2_NPS1F_TccName ((DpId) 0x26F4) /* 9972 Str */ #define DPoint_G2_NPS2F_TccName ((DpId) 0x26F5) /* 9973 Str */ #define DPoint_G2_NPS1R_TccName ((DpId) 0x26F6) /* 9974 Str */ #define DPoint_G2_NPS2R_TccName ((DpId) 0x26F7) /* 9975 Str */ #define DPoint_G2_EF1F_TccName ((DpId) 0x26F8) /* 9976 Str */ #define DPoint_G2_EF2F_TccName ((DpId) 0x26F9) /* 9977 Str */ #define DPoint_G2_EF1R_TccName ((DpId) 0x26FA) /* 9978 Str */ #define DPoint_G2_EF2R_TccName ((DpId) 0x26FB) /* 9979 Str */ #define DPoint_G2_OCLL1_TccName ((DpId) 0x26FC) /* 9980 Str */ #define DPoint_G2_OCLL2_TccName ((DpId) 0x26FD) /* 9981 Str */ #define DPoint_G2_NPSLL1_TccName ((DpId) 0x26FE) /* 9982 Str */ #define DPoint_G2_NPSLL2_TccName ((DpId) 0x26FF) /* 9983 Str */ #define DPoint_G2_EFLL1_TccName ((DpId) 0x2700) /* 9984 Str */ #define DPoint_G2_EFLL2_TccName ((DpId) 0x2701) /* 9985 Str */ #define DPoint_G2_DE_EF_AdvPolarDet ((DpId) 0x2702) /* 9986 EnDis */ #define DPoint_G2_DE_EF_MinNVD ((DpId) 0x2703) /* 9987 UI32 */ #define DPoint_G2_DE_EF_MaxFwdAngle ((DpId) 0x2704) /* 9988 I32 */ #define DPoint_G2_DE_EF_MinFwdAngle ((DpId) 0x2705) /* 9989 I32 */ #define DPoint_G2_DE_EF_MaxRevAngle ((DpId) 0x2706) /* 9990 I32 */ #define DPoint_G2_DE_EF_MinRevAngle ((DpId) 0x2707) /* 9991 I32 */ #define DPoint_G2_DE_SEF_AdvPolarDet ((DpId) 0x2708) /* 9992 EnDis */ #define DPoint_G2_DE_SEF_MinNVD ((DpId) 0x2709) /* 9993 UI32 */ #define DPoint_G2_DE_SEF_MaxFwdAngle ((DpId) 0x270A) /* 9994 I32 */ #define DPoint_G2_DE_SEF_MinFwdAngle ((DpId) 0x270B) /* 9995 I32 */ #define DPoint_G2_DE_SEF_MaxRevAngle ((DpId) 0x270C) /* 9996 I32 */ #define DPoint_G2_DE_SEF_MinRevAngle ((DpId) 0x270D) /* 9997 I32 */ #define DPoint_G2_DE_SEF_Polarisation ((DpId) 0x270E) /* 9998 NeutralPolarisation */ #define DPoint_G2_Hrm_IndA_NameExt ((DpId) 0x270F) /* 9999 HrmIndividualExt */ #define DPoint_G2_Hrm_IndB_NameExt ((DpId) 0x2710) /* 10000 HrmIndividualExt */ #define DPoint_G2_Hrm_IndC_NameExt ((DpId) 0x2711) /* 10001 HrmIndividualExt */ #define DPoint_G2_Hrm_IndD_NameExt ((DpId) 0x2712) /* 10002 HrmIndividualExt */ #define DPoint_G2_Hrm_IndE_NameExt ((DpId) 0x2713) /* 10003 HrmIndividualExt */ #define DPoint_G2_ROCOF_Trm ((DpId) 0x2714) /* 10004 TripModeDLA */ #define DPoint_G2_ROCOF_Pickup ((DpId) 0x2715) /* 10005 UI32 */ #define DPoint_G2_ROCOF_TDtMin ((DpId) 0x2716) /* 10006 UI32 */ #define DPoint_G2_ROCOF_TDtRes ((DpId) 0x2717) /* 10007 UI32 */ #define DPoint_G2_VVS_Trm ((DpId) 0x2718) /* 10008 TripModeDLA */ #define DPoint_G2_VVS_Pickup ((DpId) 0x2719) /* 10009 UI32 */ #define DPoint_G2_VVS_TDtMin ((DpId) 0x271A) /* 10010 UI32 */ #define DPoint_G2_VVS_TDtRes ((DpId) 0x271B) /* 10011 UI32 */ #define DPoint_G2_PDOP_Trm ((DpId) 0x271C) /* 10012 TripModeDLA */ #define DPoint_G2_PDOP_Pickup ((DpId) 0x271D) /* 10013 UI32 */ #define DPoint_G2_PDOP_Angle ((DpId) 0x271E) /* 10014 I32 */ #define DPoint_G2_PDOP_TDtMin ((DpId) 0x271F) /* 10015 UI32 */ #define DPoint_G2_PDOP_TDtRes ((DpId) 0x2720) /* 10016 UI32 */ #define DPoint_G2_PDUP_Trm ((DpId) 0x2721) /* 10017 TripModeDLA */ #define DPoint_G2_PDUP_Pickup ((DpId) 0x2722) /* 10018 UI32 */ #define DPoint_G2_PDUP_Angle ((DpId) 0x2723) /* 10019 I32 */ #define DPoint_G2_PDUP_TDtMin ((DpId) 0x2724) /* 10020 UI32 */ #define DPoint_G2_PDUP_TDtRes ((DpId) 0x2725) /* 10021 UI32 */ #define DPoint_G2_PDUP_TDtDis ((DpId) 0x2726) /* 10022 UI32 */ #define DPoint_G3_Yn_TDtMin ((DpId) 0x27AA) /* 10154 UI32 */ #define DPoint_G3_Yn_OperationalMode ((DpId) 0x27AB) /* 10155 YnOperationalMode */ #define DPoint_G3_Yn_DirectionalMode ((DpId) 0x27AC) /* 10156 YnDirectionalMode */ #define DPoint_G3_Yn_Um ((DpId) 0x27AD) /* 10157 UI32 */ #define DPoint_G3_Yn_Ioper ((DpId) 0x27AE) /* 10158 UI32 */ #define DPoint_G3_Yn_TDtRes ((DpId) 0x27AF) /* 10159 UI32 */ #define DPoint_G3_Yn_FwdSusceptance ((DpId) 0x27B0) /* 10160 I32 */ #define DPoint_G3_Yn_RevSusceptance ((DpId) 0x27B1) /* 10161 I32 */ #define DPoint_G3_Yn_FwdConductance ((DpId) 0x27B2) /* 10162 I32 */ #define DPoint_G3_Yn_RevConductance ((DpId) 0x27B3) /* 10163 I32 */ #define DPoint_G3_Yn_Tr1 ((DpId) 0x27B4) /* 10164 TripMode */ #define DPoint_G3_Yn_Tr2 ((DpId) 0x27B5) /* 10165 TripMode */ #define DPoint_G3_Yn_Tr3 ((DpId) 0x27B6) /* 10166 TripMode */ #define DPoint_G3_Yn_Tr4 ((DpId) 0x27B7) /* 10167 TripMode */ #define DPoint_G3_OC1F_TccName ((DpId) 0x27B8) /* 10168 Str */ #define DPoint_G3_OC2F_TccName ((DpId) 0x27B9) /* 10169 Str */ #define DPoint_G3_OC1R_TccName ((DpId) 0x27BA) /* 10170 Str */ #define DPoint_G3_OC2R_TccName ((DpId) 0x27BB) /* 10171 Str */ #define DPoint_G3_NPS1F_TccName ((DpId) 0x27BC) /* 10172 Str */ #define DPoint_G3_NPS2F_TccName ((DpId) 0x27BD) /* 10173 Str */ #define DPoint_G3_NPS1R_TccName ((DpId) 0x27BE) /* 10174 Str */ #define DPoint_G3_NPS2R_TccName ((DpId) 0x27BF) /* 10175 Str */ #define DPoint_G3_EF1F_TccName ((DpId) 0x27C0) /* 10176 Str */ #define DPoint_G3_EF2F_TccName ((DpId) 0x27C1) /* 10177 Str */ #define DPoint_G3_EF1R_TccName ((DpId) 0x27C2) /* 10178 Str */ #define DPoint_G3_EF2R_TccName ((DpId) 0x27C3) /* 10179 Str */ #define DPoint_G3_OCLL1_TccName ((DpId) 0x27C4) /* 10180 Str */ #define DPoint_G3_OCLL2_TccName ((DpId) 0x27C5) /* 10181 Str */ #define DPoint_G3_NPSLL1_TccName ((DpId) 0x27C6) /* 10182 Str */ #define DPoint_G3_NPSLL2_TccName ((DpId) 0x27C7) /* 10183 Str */ #define DPoint_G3_EFLL1_TccName ((DpId) 0x27C8) /* 10184 Str */ #define DPoint_G3_EFLL2_TccName ((DpId) 0x27C9) /* 10185 Str */ #define DPoint_G3_DE_EF_AdvPolarDet ((DpId) 0x27CA) /* 10186 EnDis */ #define DPoint_G3_DE_EF_MinNVD ((DpId) 0x27CB) /* 10187 UI32 */ #define DPoint_G3_DE_EF_MaxFwdAngle ((DpId) 0x27CC) /* 10188 I32 */ #define DPoint_G3_DE_EF_MinFwdAngle ((DpId) 0x27CD) /* 10189 I32 */ #define DPoint_G3_DE_EF_MaxRevAngle ((DpId) 0x27CE) /* 10190 I32 */ #define DPoint_G3_DE_EF_MinRevAngle ((DpId) 0x27CF) /* 10191 I32 */ #define DPoint_G3_DE_SEF_AdvPolarDet ((DpId) 0x27D0) /* 10192 EnDis */ #define DPoint_G3_DE_SEF_MinNVD ((DpId) 0x27D1) /* 10193 UI32 */ #define DPoint_G3_DE_SEF_MaxFwdAngle ((DpId) 0x27D2) /* 10194 I32 */ #define DPoint_G3_DE_SEF_MinFwdAngle ((DpId) 0x27D3) /* 10195 I32 */ #define DPoint_G3_DE_SEF_MaxRevAngle ((DpId) 0x27D4) /* 10196 I32 */ #define DPoint_G3_DE_SEF_MinRevAngle ((DpId) 0x27D5) /* 10197 I32 */ #define DPoint_G3_DE_SEF_Polarisation ((DpId) 0x27D6) /* 10198 NeutralPolarisation */ #define DPoint_G3_Hrm_IndA_NameExt ((DpId) 0x27D7) /* 10199 HrmIndividualExt */ #define DPoint_G3_Hrm_IndB_NameExt ((DpId) 0x27D8) /* 10200 HrmIndividualExt */ #define DPoint_G3_Hrm_IndC_NameExt ((DpId) 0x27D9) /* 10201 HrmIndividualExt */ #define DPoint_G3_Hrm_IndD_NameExt ((DpId) 0x27DA) /* 10202 HrmIndividualExt */ #define DPoint_G3_Hrm_IndE_NameExt ((DpId) 0x27DB) /* 10203 HrmIndividualExt */ #define DPoint_G3_ROCOF_Trm ((DpId) 0x27DC) /* 10204 TripModeDLA */ #define DPoint_G3_ROCOF_Pickup ((DpId) 0x27DD) /* 10205 UI32 */ #define DPoint_G3_ROCOF_TDtMin ((DpId) 0x27DE) /* 10206 UI32 */ #define DPoint_G3_ROCOF_TDtRes ((DpId) 0x27DF) /* 10207 UI32 */ #define DPoint_G3_VVS_Trm ((DpId) 0x27E0) /* 10208 TripModeDLA */ #define DPoint_G3_VVS_Pickup ((DpId) 0x27E1) /* 10209 UI32 */ #define DPoint_G3_VVS_TDtMin ((DpId) 0x27E2) /* 10210 UI32 */ #define DPoint_G3_VVS_TDtRes ((DpId) 0x27E3) /* 10211 UI32 */ #define DPoint_G3_PDOP_Trm ((DpId) 0x27E4) /* 10212 TripModeDLA */ #define DPoint_G3_PDOP_Pickup ((DpId) 0x27E5) /* 10213 UI32 */ #define DPoint_G3_PDOP_Angle ((DpId) 0x27E6) /* 10214 I32 */ #define DPoint_G3_PDOP_TDtMin ((DpId) 0x27E7) /* 10215 UI32 */ #define DPoint_G3_PDOP_TDtRes ((DpId) 0x27E8) /* 10216 UI32 */ #define DPoint_G3_PDUP_Trm ((DpId) 0x27E9) /* 10217 TripModeDLA */ #define DPoint_G3_PDUP_Pickup ((DpId) 0x27EA) /* 10218 UI32 */ #define DPoint_G3_PDUP_Angle ((DpId) 0x27EB) /* 10219 I32 */ #define DPoint_G3_PDUP_TDtMin ((DpId) 0x27EC) /* 10220 UI32 */ #define DPoint_G3_PDUP_TDtRes ((DpId) 0x27ED) /* 10221 UI32 */ #define DPoint_G3_PDUP_TDtDis ((DpId) 0x27EE) /* 10222 UI32 */ #define DPoint_G4_Yn_TDtMin ((DpId) 0x2872) /* 10354 UI32 */ #define DPoint_G4_Yn_OperationalMode ((DpId) 0x2873) /* 10355 YnOperationalMode */ #define DPoint_G4_Yn_DirectionalMode ((DpId) 0x2874) /* 10356 YnDirectionalMode */ #define DPoint_G4_Yn_Um ((DpId) 0x2875) /* 10357 UI32 */ #define DPoint_G4_Yn_Ioper ((DpId) 0x2876) /* 10358 UI32 */ #define DPoint_G4_Yn_TDtRes ((DpId) 0x2877) /* 10359 UI32 */ #define DPoint_G4_Yn_FwdSusceptance ((DpId) 0x2878) /* 10360 I32 */ #define DPoint_G4_Yn_RevSusceptance ((DpId) 0x2879) /* 10361 I32 */ #define DPoint_G4_Yn_FwdConductance ((DpId) 0x287A) /* 10362 I32 */ #define DPoint_G4_Yn_RevConductance ((DpId) 0x287B) /* 10363 I32 */ #define DPoint_G4_Yn_Tr1 ((DpId) 0x287C) /* 10364 TripMode */ #define DPoint_G4_Yn_Tr2 ((DpId) 0x287D) /* 10365 TripMode */ #define DPoint_G4_Yn_Tr3 ((DpId) 0x287E) /* 10366 TripMode */ #define DPoint_G4_Yn_Tr4 ((DpId) 0x287F) /* 10367 TripMode */ #define DPoint_G4_OC1F_TccName ((DpId) 0x2880) /* 10368 Str */ #define DPoint_G4_OC2F_TccName ((DpId) 0x2881) /* 10369 Str */ #define DPoint_G4_OC1R_TccName ((DpId) 0x2882) /* 10370 Str */ #define DPoint_G4_OC2R_TccName ((DpId) 0x2883) /* 10371 Str */ #define DPoint_G4_NPS1F_TccName ((DpId) 0x2884) /* 10372 Str */ #define DPoint_G4_NPS2F_TccName ((DpId) 0x2885) /* 10373 Str */ #define DPoint_G4_NPS1R_TccName ((DpId) 0x2886) /* 10374 Str */ #define DPoint_G4_NPS2R_TccName ((DpId) 0x2887) /* 10375 Str */ #define DPoint_G4_EF1F_TccName ((DpId) 0x2888) /* 10376 Str */ #define DPoint_G4_EF2F_TccName ((DpId) 0x2889) /* 10377 Str */ #define DPoint_G4_EF1R_TccName ((DpId) 0x288A) /* 10378 Str */ #define DPoint_G4_EF2R_TccName ((DpId) 0x288B) /* 10379 Str */ #define DPoint_G4_OCLL1_TccName ((DpId) 0x288C) /* 10380 Str */ #define DPoint_G4_OCLL2_TccName ((DpId) 0x288D) /* 10381 Str */ #define DPoint_G4_NPSLL1_TccName ((DpId) 0x288E) /* 10382 Str */ #define DPoint_G4_NPSLL2_TccName ((DpId) 0x288F) /* 10383 Str */ #define DPoint_G4_EFLL1_TccName ((DpId) 0x2890) /* 10384 Str */ #define DPoint_G4_EFLL2_TccName ((DpId) 0x2891) /* 10385 Str */ #define DPoint_G4_DE_EF_AdvPolarDet ((DpId) 0x2892) /* 10386 EnDis */ #define DPoint_G4_DE_EF_MinNVD ((DpId) 0x2893) /* 10387 UI32 */ #define DPoint_G4_DE_EF_MaxFwdAngle ((DpId) 0x2894) /* 10388 I32 */ #define DPoint_G4_DE_EF_MinFwdAngle ((DpId) 0x2895) /* 10389 I32 */ #define DPoint_G4_DE_EF_MaxRevAngle ((DpId) 0x2896) /* 10390 I32 */ #define DPoint_G4_DE_EF_MinRevAngle ((DpId) 0x2897) /* 10391 I32 */ #define DPoint_G4_DE_SEF_AdvPolarDet ((DpId) 0x2898) /* 10392 EnDis */ #define DPoint_G4_DE_SEF_MinNVD ((DpId) 0x2899) /* 10393 UI32 */ #define DPoint_G4_DE_SEF_MaxFwdAngle ((DpId) 0x289A) /* 10394 I32 */ #define DPoint_G4_DE_SEF_MinFwdAngle ((DpId) 0x289B) /* 10395 I32 */ #define DPoint_G4_DE_SEF_MaxRevAngle ((DpId) 0x289C) /* 10396 I32 */ #define DPoint_G4_DE_SEF_MinRevAngle ((DpId) 0x289D) /* 10397 I32 */ #define DPoint_G4_DE_SEF_Polarisation ((DpId) 0x289E) /* 10398 NeutralPolarisation */ #define DPoint_G4_Hrm_IndA_NameExt ((DpId) 0x289F) /* 10399 HrmIndividualExt */ #define DPoint_G4_Hrm_IndB_NameExt ((DpId) 0x28A0) /* 10400 HrmIndividualExt */ #define DPoint_G4_Hrm_IndC_NameExt ((DpId) 0x28A1) /* 10401 HrmIndividualExt */ #define DPoint_G4_Hrm_IndD_NameExt ((DpId) 0x28A2) /* 10402 HrmIndividualExt */ #define DPoint_G4_Hrm_IndE_NameExt ((DpId) 0x28A3) /* 10403 HrmIndividualExt */ #define DPoint_G4_ROCOF_Trm ((DpId) 0x28A4) /* 10404 TripModeDLA */ #define DPoint_G4_ROCOF_Pickup ((DpId) 0x28A5) /* 10405 UI32 */ #define DPoint_G4_ROCOF_TDtMin ((DpId) 0x28A6) /* 10406 UI32 */ #define DPoint_G4_ROCOF_TDtRes ((DpId) 0x28A7) /* 10407 UI32 */ #define DPoint_G4_VVS_Trm ((DpId) 0x28A8) /* 10408 TripModeDLA */ #define DPoint_G4_VVS_Pickup ((DpId) 0x28A9) /* 10409 UI32 */ #define DPoint_G4_VVS_TDtMin ((DpId) 0x28AA) /* 10410 UI32 */ #define DPoint_G4_VVS_TDtRes ((DpId) 0x28AB) /* 10411 UI32 */ #define DPoint_G4_PDOP_Trm ((DpId) 0x28AC) /* 10412 TripModeDLA */ #define DPoint_G4_PDOP_Pickup ((DpId) 0x28AD) /* 10413 UI32 */ #define DPoint_G4_PDOP_Angle ((DpId) 0x28AE) /* 10414 I32 */ #define DPoint_G4_PDOP_TDtMin ((DpId) 0x28AF) /* 10415 UI32 */ #define DPoint_G4_PDOP_TDtRes ((DpId) 0x28B0) /* 10416 UI32 */ #define DPoint_G4_PDUP_Trm ((DpId) 0x28B1) /* 10417 TripModeDLA */ #define DPoint_G4_PDUP_Pickup ((DpId) 0x28B2) /* 10418 UI32 */ #define DPoint_G4_PDUP_Angle ((DpId) 0x28B3) /* 10419 I32 */ #define DPoint_G4_PDUP_TDtMin ((DpId) 0x28B4) /* 10420 UI32 */ #define DPoint_G4_PDUP_TDtRes ((DpId) 0x28B5) /* 10421 UI32 */ #define DPoint_G4_PDUP_TDtDis ((DpId) 0x28B6) /* 10422 UI32 */ #define DPoint_SigCtrlYnOn ((DpId) 0x293A) /* 10554 Signal */ #define DPoint_SigAlarmYn ((DpId) 0x293B) /* 10555 Signal */ #define DPoint_SigPickupYn ((DpId) 0x293C) /* 10556 Signal */ #define DPoint_SigOpenYn ((DpId) 0x293D) /* 10557 Signal */ #define DPoint_CntrYnTrips ((DpId) 0x293E) /* 10558 I32 */ #define DPoint_TripMaxGn ((DpId) 0x293F) /* 10559 I32 */ #define DPoint_TripMaxBn ((DpId) 0x2940) /* 10560 I32 */ #define DPoint_TripMinGn ((DpId) 0x2941) /* 10561 I32 */ #define DPoint_TripMinBn ((DpId) 0x2942) /* 10562 I32 */ #define DPoint_MeasGn ((DpId) 0x2943) /* 10563 I32 */ #define DPoint_MeasBn ((DpId) 0x2944) /* 10564 I32 */ #define DPoint_s61850GooseOpMode ((DpId) 0x2945) /* 10565 LocalRemote */ #define DPoint_UsbDiscUpdateDirFiles1024 ((DpId) 0x2946) /* 10566 StrArray1024 */ #define DPoint_UsbDiscUpdateVersions1024 ((DpId) 0x2947) /* 10567 StrArray1024 */ #define DPoint_UsbDiscInstallVersions1024 ((DpId) 0x2948) /* 10568 StrArray1024 */ #define DPoint_s61850CommsLogMaxSize ((DpId) 0x2949) /* 10569 UI8 */ #define DPoint_RelayModelDisplayName ((DpId) 0x294A) /* 10570 RelayModelName */ #define DPoint_SwitchStateOwner ((DpId) 0x294B) /* 10571 DbClientId */ #define DPoint_SwitchStateOwnerPtr ((DpId) 0x294C) /* 10572 UI32 */ #define DPoint_ModemConnectState ((DpId) 0x294D) /* 10573 ModemConnectStatus */ #define DPoint_ModemRetryWaitTime ((DpId) 0x2950) /* 10576 UI32 */ #define DPoint_s61850RqstEnableMMS ((DpId) 0x2951) /* 10577 UI8 */ #define DPoint_s61850RqstEnableGoosePub ((DpId) 0x2952) /* 10578 UI8 */ #define DPoint_s61850CIDFileUpdateStatus ((DpId) 0x2953) /* 10579 UI8 */ #define DPoint_SigAlarmI2I1 ((DpId) 0x2954) /* 10580 Signal */ #define DPoint_SigPickupI2I1 ((DpId) 0x2955) /* 10581 Signal */ #define DPoint_SigOpenI2I1 ((DpId) 0x2956) /* 10582 Signal */ #define DPoint_CntrI2I1Trips ((DpId) 0x2957) /* 10583 I32 */ #define DPoint_TripMaxI2I1 ((DpId) 0x2958) /* 10584 UI32 */ #define DPoint_MeasI2I1 ((DpId) 0x2959) /* 10585 UI32 */ #define DPoint_MobileNetworkModemFWNumber ((DpId) 0x295A) /* 10586 Str */ #define DPoint_WlanMACAddr ((DpId) 0x295B) /* 10587 Str */ #define DPoint_Diagnostic1 ((DpId) 0x295C) /* 10588 UI32 */ #define DPoint_Diagnostic2 ((DpId) 0x295D) /* 10589 UI32 */ #define DPoint_Diagnostic3 ((DpId) 0x295E) /* 10590 UI32 */ #define DPoint_Diagnostic4 ((DpId) 0x295F) /* 10591 UI32 */ #define DPoint_MeasCurrIn_mA ((DpId) 0x2960) /* 10592 UI32 */ #define DPoint_InTrip_mA ((DpId) 0x2961) /* 10593 UI32 */ #define DPoint_TripMaxCurrIn_mA ((DpId) 0x2962) /* 10594 UI32 */ #define DPoint_UPSMobileNetworkTime ((DpId) 0x2963) /* 10595 UI16 */ #define DPoint_UPSWlanTime ((DpId) 0x2964) /* 10596 UI16 */ #define DPoint_UPSMobileNetworkResetTime ((DpId) 0x2965) /* 10597 UI16 */ #define DPoint_UPSWlanResetTime ((DpId) 0x2966) /* 10598 UI16 */ #define DPoint_CmdResetFaultTargets ((DpId) 0x2967) /* 10599 Bool */ #define DPoint_CfgPowerFlowDirection ((DpId) 0x2968) /* 10600 PowerFlowDirection */ #define DPoint_LLBlocksClose ((DpId) 0x2969) /* 10601 OnOff */ #define DPoint_SyncDiagnostics ((DpId) 0x296A) /* 10602 EnDis */ #define DPoint_CanPscHeatsinkTemp ((DpId) 0x296B) /* 10603 I16 */ #define DPoint_CanPscModuleVoltage ((DpId) 0x296C) /* 10604 UI16 */ #define DPoint_WlanTxPower ((DpId) 0x296D) /* 10605 WLanTxPower */ #define DPoint_SigClosedAutoSync ((DpId) 0x296E) /* 10606 Signal */ #define DPoint_LLAllowClose ((DpId) 0x296F) /* 10607 OnOff */ #define DPoint_WlanConnectState ((DpId) 0x2970) /* 10608 WlanConnectStatus */ #define DPoint_SigSyncDeltaVStatus ((DpId) 0x2971) /* 10609 Signal */ #define DPoint_SigSyncSlipFreqStatus ((DpId) 0x2972) /* 10610 Signal */ #define DPoint_SigSyncDeltaPhaseStatus ((DpId) 0x2973) /* 10611 Signal */ #define DPoint_CmsAuxConfigMaxFrameSizeTx ((DpId) 0x2974) /* 10612 UI32 */ #define DPoint_CmsConfigMaxFrameSizeTx ((DpId) 0x2975) /* 10613 UI32 */ #define DPoint_IdRelayFwModelNo ((DpId) 0x2976) /* 10614 UI8 */ #define DPoint_SigMalfWLAN ((DpId) 0x2978) /* 10616 Signal */ #define DPoint_UpdateLock ((DpId) 0x2979) /* 10617 UI16 */ #define DPoint_WlanSignalQualityLoadProfile ((DpId) 0x297A) /* 10618 UI8 */ #define DPoint_MobileNetworkSignalQualityLoadProfile ((DpId) 0x297C) /* 10620 UI8 */ #define DPoint_Gps_SignalQualityLoadProfile ((DpId) 0x297D) /* 10621 UI8 */ #define DPoint_Gps_Latitude_Field1 ((DpId) 0x297E) /* 10622 I16 */ #define DPoint_Gps_Latitude_Field2 ((DpId) 0x297F) /* 10623 I16 */ #define DPoint_Gps_Latitude_Field3 ((DpId) 0x2980) /* 10624 I16 */ #define DPoint_Gps_Longitude_Field1 ((DpId) 0x2981) /* 10625 I16 */ #define DPoint_Gps_Longitude_Field2 ((DpId) 0x2982) /* 10626 I16 */ #define DPoint_Gps_Longitude_Field3 ((DpId) 0x2983) /* 10627 I16 */ #define DPoint_AlertFlagsDisplayed ((DpId) 0x2984) /* 10628 EnDis */ #define DPoint_AlertName1 ((DpId) 0x2985) /* 10629 Str */ #define DPoint_AlertName2 ((DpId) 0x2986) /* 10630 Str */ #define DPoint_AlertName3 ((DpId) 0x2987) /* 10631 Str */ #define DPoint_AlertName4 ((DpId) 0x2988) /* 10632 Str */ #define DPoint_AlertName5 ((DpId) 0x2989) /* 10633 Str */ #define DPoint_AlertName6 ((DpId) 0x298A) /* 10634 Str */ #define DPoint_AlertName7 ((DpId) 0x298B) /* 10635 Str */ #define DPoint_AlertName8 ((DpId) 0x298C) /* 10636 Str */ #define DPoint_AlertName9 ((DpId) 0x298D) /* 10637 Str */ #define DPoint_AlertName10 ((DpId) 0x298E) /* 10638 Str */ #define DPoint_AlertName11 ((DpId) 0x298F) /* 10639 Str */ #define DPoint_AlertName12 ((DpId) 0x2990) /* 10640 Str */ #define DPoint_AlertName13 ((DpId) 0x2991) /* 10641 Str */ #define DPoint_AlertName14 ((DpId) 0x2992) /* 10642 Str */ #define DPoint_AlertName15 ((DpId) 0x2993) /* 10643 Str */ #define DPoint_AlertName16 ((DpId) 0x2994) /* 10644 Str */ #define DPoint_AlertName17 ((DpId) 0x2995) /* 10645 Str */ #define DPoint_AlertName18 ((DpId) 0x2996) /* 10646 Str */ #define DPoint_AlertName19 ((DpId) 0x2997) /* 10647 Str */ #define DPoint_AlertName20 ((DpId) 0x2998) /* 10648 Str */ #define DPoint_AlertMode1 ((DpId) 0x2999) /* 10649 EnDis */ #define DPoint_AlertMode2 ((DpId) 0x299A) /* 10650 EnDis */ #define DPoint_AlertMode3 ((DpId) 0x299B) /* 10651 EnDis */ #define DPoint_AlertMode4 ((DpId) 0x299C) /* 10652 EnDis */ #define DPoint_AlertMode5 ((DpId) 0x299D) /* 10653 EnDis */ #define DPoint_AlertMode6 ((DpId) 0x299E) /* 10654 EnDis */ #define DPoint_AlertMode7 ((DpId) 0x299F) /* 10655 EnDis */ #define DPoint_AlertMode8 ((DpId) 0x29A0) /* 10656 EnDis */ #define DPoint_AlertMode9 ((DpId) 0x29A1) /* 10657 EnDis */ #define DPoint_AlertMode10 ((DpId) 0x29A2) /* 10658 EnDis */ #define DPoint_AlertMode11 ((DpId) 0x29A3) /* 10659 EnDis */ #define DPoint_AlertMode12 ((DpId) 0x29A4) /* 10660 EnDis */ #define DPoint_AlertMode13 ((DpId) 0x29A5) /* 10661 EnDis */ #define DPoint_AlertMode14 ((DpId) 0x29A6) /* 10662 EnDis */ #define DPoint_AlertMode15 ((DpId) 0x29A7) /* 10663 EnDis */ #define DPoint_AlertMode16 ((DpId) 0x29A8) /* 10664 EnDis */ #define DPoint_AlertMode17 ((DpId) 0x29A9) /* 10665 EnDis */ #define DPoint_AlertMode18 ((DpId) 0x29AA) /* 10666 EnDis */ #define DPoint_AlertMode19 ((DpId) 0x29AB) /* 10667 EnDis */ #define DPoint_AlertMode20 ((DpId) 0x29AC) /* 10668 EnDis */ #define DPoint_AlertExpr1 ((DpId) 0x29AD) /* 10669 UI16 */ #define DPoint_AlertExpr2 ((DpId) 0x29AE) /* 10670 UI16 */ #define DPoint_AlertExpr3 ((DpId) 0x29AF) /* 10671 UI16 */ #define DPoint_AlertExpr4 ((DpId) 0x29B0) /* 10672 UI16 */ #define DPoint_AlertExpr5 ((DpId) 0x29B1) /* 10673 UI16 */ #define DPoint_AlertExpr6 ((DpId) 0x29B2) /* 10674 UI16 */ #define DPoint_AlertExpr7 ((DpId) 0x29B3) /* 10675 UI16 */ #define DPoint_AlertExpr8 ((DpId) 0x29B4) /* 10676 UI16 */ #define DPoint_AlertExpr9 ((DpId) 0x29B5) /* 10677 UI16 */ #define DPoint_AlertExpr10 ((DpId) 0x29B6) /* 10678 UI16 */ #define DPoint_AlertExpr11 ((DpId) 0x29B7) /* 10679 UI16 */ #define DPoint_AlertExpr12 ((DpId) 0x29B8) /* 10680 UI16 */ #define DPoint_AlertExpr13 ((DpId) 0x29B9) /* 10681 UI16 */ #define DPoint_AlertExpr14 ((DpId) 0x29BA) /* 10682 UI16 */ #define DPoint_AlertExpr15 ((DpId) 0x29BB) /* 10683 UI16 */ #define DPoint_AlertExpr16 ((DpId) 0x29BC) /* 10684 UI16 */ #define DPoint_AlertExpr17 ((DpId) 0x29BD) /* 10685 UI16 */ #define DPoint_AlertExpr18 ((DpId) 0x29BE) /* 10686 UI16 */ #define DPoint_AlertExpr19 ((DpId) 0x29BF) /* 10687 UI16 */ #define DPoint_AlertExpr20 ((DpId) 0x29C0) /* 10688 UI16 */ #define DPoint_AlertDisplayNames ((DpId) 0x29C1) /* 10689 StrArray1024 */ #define DPoint_AlertDefaultsPopulated ((DpId) 0x29C2) /* 10690 Bool */ #define DPoint_AlertGroup ((DpId) 0x29C3) /* 10691 ChangeEvent */ #define DPoint_AlertDisplayNamesChanged ((DpId) 0x29C4) /* 10692 UI32 */ #define DPoint_WlanClientMACAddr1 ((DpId) 0x29C5) /* 10693 Str */ #define DPoint_WlanClientMACAddr2 ((DpId) 0x29C6) /* 10694 Str */ #define DPoint_WlanClientMACAddr3 ((DpId) 0x29C7) /* 10695 Str */ #define DPoint_WlanClientMACAddr4 ((DpId) 0x29C8) /* 10696 Str */ #define DPoint_WlanClientMACAddr5 ((DpId) 0x29C9) /* 10697 Str */ #define DPoint_UpdateError ((DpId) 0x29CA) /* 10698 UpdateError */ #define DPoint_GPS_Status ((DpId) 0x29CB) /* 10699 GPSStatus */ #define DPoint_SigGPSUnplugged ((DpId) 0x29CC) /* 10700 Signal */ #define DPoint_SigGPSMalfunction ((DpId) 0x29CD) /* 10701 Signal */ #define DPoint_Gps_SetTime ((DpId) 0x29CE) /* 10702 UI32 */ #define DPoint_CmdResetBinaryFaultTargets ((DpId) 0x29CF) /* 10703 ResetCommand */ #define DPoint_CmdResetTripCurrents ((DpId) 0x29D0) /* 10704 ResetCommand */ #define DPoint_SigSimAndOsmModelMismatch ((DpId) 0x29D1) /* 10705 Signal */ #define DPoint_SigBlockPickupEff ((DpId) 0x29D2) /* 10706 Signal */ #define DPoint_SigBlockPickupEfr ((DpId) 0x29D3) /* 10707 Signal */ #define DPoint_SigBlockPickupSeff ((DpId) 0x29D4) /* 10708 Signal */ #define DPoint_SigBlockPickupSefr ((DpId) 0x29D5) /* 10709 Signal */ #define DPoint_SigBlockPickupOv3 ((DpId) 0x29D6) /* 10710 Signal */ #define DPoint_SigFaultLocatorStatus ((DpId) 0x29D9) /* 10713 Signal */ #define DPoint_FaultLocFaultType ((DpId) 0x29DA) /* 10714 FaultLocFaultType */ #define DPoint_FaultLocM ((DpId) 0x29DB) /* 10715 I32 */ #define DPoint_FaultLocZf ((DpId) 0x29DC) /* 10716 I32 */ #define DPoint_FaultLocThetaF ((DpId) 0x29DD) /* 10717 I32 */ #define DPoint_FaultLocZLoop ((DpId) 0x29DE) /* 10718 I32 */ #define DPoint_FaultLocThetaLoop ((DpId) 0x29DF) /* 10719 I32 */ #define DPoint_FaultLocIa ((DpId) 0x29E0) /* 10720 UI32 */ #define DPoint_FaultLocIb ((DpId) 0x29E1) /* 10721 UI32 */ #define DPoint_FaultLocIc ((DpId) 0x29E2) /* 10722 UI32 */ #define DPoint_FaultLocAIa ((DpId) 0x29E3) /* 10723 I16 */ #define DPoint_FaultLocAIb ((DpId) 0x29E4) /* 10724 I16 */ #define DPoint_FaultLocAIc ((DpId) 0x29E5) /* 10725 I16 */ #define DPoint_FaultLocUa ((DpId) 0x29E6) /* 10726 UI32 */ #define DPoint_FaultLocUb ((DpId) 0x29E7) /* 10727 UI32 */ #define DPoint_FaultLocUc ((DpId) 0x29E8) /* 10728 UI32 */ #define DPoint_FaultLocAUa ((DpId) 0x29E9) /* 10729 I16 */ #define DPoint_FaultLocAUb ((DpId) 0x29EA) /* 10730 I16 */ #define DPoint_FaultLocAUc ((DpId) 0x29EB) /* 10731 I16 */ #define DPoint_FaultLocDetectedType ((DpId) 0x29EC) /* 10732 FaultLocFaultType */ #define DPoint_FaultLocTrigger ((DpId) 0x29ED) /* 10733 UI32 */ #define DPoint_FaultLocEnable ((DpId) 0x29EE) /* 10734 EnDis */ #define DPoint_FaultLocR0 ((DpId) 0x29EF) /* 10735 UI32 */ #define DPoint_FaultLocX0 ((DpId) 0x29F0) /* 10736 UI32 */ #define DPoint_FaultLocR1 ((DpId) 0x29F1) /* 10737 UI32 */ #define DPoint_FaultLocX1 ((DpId) 0x29F2) /* 10738 UI32 */ #define DPoint_FaultLocRA ((DpId) 0x29F3) /* 10739 UI32 */ #define DPoint_FaultLocXA ((DpId) 0x29F4) /* 10740 UI32 */ #define DPoint_FaultLocLengthOfLine ((DpId) 0x29F5) /* 10741 UI32 */ #define DPoint_GPSEnableCommsLog ((DpId) 0x29F6) /* 10742 EnDis */ #define DPoint_GPSCommsLogMaxSize ((DpId) 0x29F7) /* 10743 UI8 */ #define DPoint_SigResetFaultLocation ((DpId) 0x29F8) /* 10744 Signal */ #define DPoint_AlertDisplayDatapoints ((DpId) 0x29F9) /* 10745 Array16 */ #define DPoint_AlertDisplayMode ((DpId) 0x29FA) /* 10746 AlertDisplayMode */ #define DPoint_FtstCaptureNextPtr ((DpId) 0x29FB) /* 10747 UI32 */ #define DPoint_FtstCaptureLastPtr ((DpId) 0x29FC) /* 10748 UI32 */ #define DPoint_FaultLocXLoop ((DpId) 0x2A04) /* 10756 I32 */ #define DPoint_SigArReset ((DpId) 0x2A08) /* 10760 Signal */ #define DPoint_SigArResetPhA ((DpId) 0x2A09) /* 10761 Signal */ #define DPoint_SigArResetPhB ((DpId) 0x2A0A) /* 10762 Signal */ #define DPoint_SigArResetPhC ((DpId) 0x2A0B) /* 10763 Signal */ #define DPoint_LogicSGAStopped ((DpId) 0x2A0D) /* 10765 Signal */ #define DPoint_LogicSGAStoppedLogic ((DpId) 0x2A0E) /* 10766 Signal */ #define DPoint_LogicSGAStoppedSGA ((DpId) 0x2A0F) /* 10767 Signal */ #define DPoint_LogicSGAThrottling ((DpId) 0x2A10) /* 10768 Signal */ #define DPoint_LogicSGAThrottlingLogic ((DpId) 0x2A11) /* 10769 Signal */ #define DPoint_LogicSGAThrottlingSGA ((DpId) 0x2A12) /* 10770 Signal */ #define DPoint_SigUSBOCOnboard ((DpId) 0x2A13) /* 10771 Signal */ #define DPoint_SigUSBOCExternal ((DpId) 0x2A14) /* 10772 Signal */ #define DPoint_SigUSBOCModem ((DpId) 0x2A15) /* 10773 Signal */ #define DPoint_SigUSBOCWifi ((DpId) 0x2A16) /* 10774 Signal */ #define DPoint_SigUSBOCGPS ((DpId) 0x2A17) /* 10775 Signal */ #define DPoint_LoadedScadaProtocolDNP3 ((DpId) 0x2A18) /* 10776 UI8 */ #define DPoint_LoadedScadaRestartReqWarning ((DpId) 0x2A19) /* 10777 Signal */ #define DPoint_IdPSCModelStr ((DpId) 0x2A1B) /* 10779 Str */ #define DPoint_WlanConfigTypeNonUps ((DpId) 0x2A1C) /* 10780 UsbPortConfigType */ #define DPoint_MobileNetworkConfigTypeNonUps ((DpId) 0x2A1D) /* 10781 UsbPortConfigType */ #define DPoint_CanPscFirmwareUpdateFeatures ((DpId) 0x2A1E) /* 10782 UI32 */ #define DPoint_CanSimFirmwareUpdateFeatures ((DpId) 0x2A1F) /* 10783 UI32 */ #define DPoint_CanGpioFirmwareUpdateFeatures ((DpId) 0x2A20) /* 10784 UI32 */ #define DPoint_CanPscTransferStatus ((DpId) 0x2A21) /* 10785 UI8 */ #define DPoint_CanSimTransferStatus ((DpId) 0x2A22) /* 10786 UI8 */ #define DPoint_CanGpioTransferStatus ((DpId) 0x2A23) /* 10787 UI8 */ #define DPoint_CanPscActiveApplicationDetails ((DpId) 0x2A24) /* 10788 SimWriteAddr */ #define DPoint_CanSimActiveApplicationDetails ((DpId) 0x2A25) /* 10789 SimWriteAddr */ #define DPoint_CanGpioActiveApplicationDetails ((DpId) 0x2A26) /* 10790 SimWriteAddr */ #define DPoint_CanPscInactiveApplicationDetails ((DpId) 0x2A27) /* 10791 SimWriteAddr */ #define DPoint_CanSimInactiveApplicationDetails ((DpId) 0x2A28) /* 10792 SimWriteAddr */ #define DPoint_CanGpioInactiveApplicationDetails ((DpId) 0x2A29) /* 10793 SimWriteAddr */ #define DPoint_CanPscPWR1Status ((DpId) 0x2A2A) /* 10794 UI8 */ #define DPoint_CanPscSimPresent ((DpId) 0x2A2D) /* 10797 UI8 */ #define DPoint_sigFirmwareHardwareMismatch ((DpId) 0x2A2E) /* 10798 Signal */ #define DPoint_FirmwareHardwareVersion ((DpId) 0x2A2F) /* 10799 UI8 */ #define DPoint_UnitOfTime ((DpId) 0x2A30) /* 10800 TimeUnit */ #define DPoint_LoadedScadaProtocol60870 ((DpId) 0x2A31) /* 10801 UI8 */ #define DPoint_LoadedScadaProtocol61850MMS ((DpId) 0x2A32) /* 10802 UI8 */ #define DPoint_LoadedScadaProtocol2179 ((DpId) 0x2A34) /* 10804 UI8 */ #define DPoint_LoadedScadaProtocol61850GoosePub ((DpId) 0x2A36) /* 10806 UI8 */ #define DPoint_LoadedScadaProtocol61850GooseSub ((DpId) 0x2A39) /* 10809 UI8 */ #define DPoint_DiagCounter1 ((DpId) 0x2A3A) /* 10810 diagDataGeneral1 */ #define DPoint_DiagCounterCtrl1 ((DpId) 0x2A3B) /* 10811 UI32 */ #define DPoint_SigProtOcDirF ((DpId) 0x2A3E) /* 10814 Signal */ #define DPoint_SigProtOcDirR ((DpId) 0x2A3F) /* 10815 Signal */ #define DPoint_SNTPEnable ((DpId) 0x2A40) /* 10816 EnDis */ #define DPoint_SNTPServIpAddr1 ((DpId) 0x2A41) /* 10817 IpAddr */ #define DPoint_SNTPServIpAddr2 ((DpId) 0x2A42) /* 10818 IpAddr */ #define DPoint_SNTPUpdateInterval ((DpId) 0x2A43) /* 10819 UI16 */ #define DPoint_SNTPRetryInterval ((DpId) 0x2A44) /* 10820 UI16 */ #define DPoint_SNTPRetryAttempts ((DpId) 0x2A45) /* 10821 UI8 */ #define DPoint_TmSrc ((DpId) 0x2A46) /* 10822 TimeSyncStatus */ #define DPoint_Diagnostic5 ((DpId) 0x2A47) /* 10823 UI32 */ #define DPoint_Diagnostic6 ((DpId) 0x2A48) /* 10824 UI32 */ #define DPoint_Diagnostic7 ((DpId) 0x2A49) /* 10825 UI32 */ #define DPoint_SNTPSetTime ((DpId) 0x2A4A) /* 10826 UI32 */ #define DPoint_SNTPServerResponse ((DpId) 0x2A4B) /* 10827 UI8 */ #define DPoint_SNTPSyncStatus ((DpId) 0x2A4C) /* 10828 Signal */ #define DPoint_SNTP1Error ((DpId) 0x2A4D) /* 10829 Signal */ #define DPoint_SNTP2Error ((DpId) 0x2A4E) /* 10830 Signal */ #define DPoint_SNTPUnableToSync ((DpId) 0x2A50) /* 10832 Signal */ #define DPoint_SigUSBOCReset ((DpId) 0x2A52) /* 10834 Signal */ #define DPoint_SigUSBOCMalfunction ((DpId) 0x2A53) /* 10835 Signal */ #define DPoint_CmdResetFaultLocation ((DpId) 0x2A54) /* 10836 ResetCommand */ #define DPoint_SigMalfRel20 ((DpId) 0x2A56) /* 10838 Signal */ #define DPoint_CurrentLanguage ((DpId) 0x2A57) /* 10839 Str */ #define DPoint_SNTPServIpv6Addr1 ((DpId) 0x2A59) /* 10841 Ipv6Addr */ #define DPoint_SNTPServIpv6Addr2 ((DpId) 0x2A5A) /* 10842 Ipv6Addr */ #define DPoint_SNTPServIpVersion ((DpId) 0x2A5C) /* 10844 IpVersion */ #define DPoint_ScadaDnp3Ipv6MasterAddr ((DpId) 0x2A5D) /* 10845 Ipv6Addr */ #define DPoint_ScadaDnp3Ipv6UnathIpAddr ((DpId) 0x2A5F) /* 10847 Ipv6Addr */ #define DPoint_ScadaDnp3IpVersion ((DpId) 0x2A60) /* 10848 IpVersion */ #define DPoint_ScadaT10BIpv6MasterAddr ((DpId) 0x2A61) /* 10849 Ipv6Addr */ #define DPoint_ScadaT10BIpVersion ((DpId) 0x2A62) /* 10850 IpVersion */ #define DPoint_s61850ClientIpVersion ((DpId) 0x2A63) /* 10851 IpVersion */ #define DPoint_s61850ClientIpv6Addr1 ((DpId) 0x2A64) /* 10852 Ipv6Addr */ #define DPoint_s61850ClientIpv6Addr2 ((DpId) 0x2A65) /* 10853 Ipv6Addr */ #define DPoint_s61850ClientIpv6Addr3 ((DpId) 0x2A68) /* 10856 Ipv6Addr */ #define DPoint_s61850ClientIpv6Addr4 ((DpId) 0x2A69) /* 10857 Ipv6Addr */ #define DPoint_ScadaCMSIpVersion ((DpId) 0x2A6A) /* 10858 IpVersion */ #define DPoint_p2pRemoteIpVersion ((DpId) 0x2A6B) /* 10859 IpVersion */ #define DPoint_p2pRemoteLanIpv6Addr ((DpId) 0x2A6C) /* 10860 Ipv6Addr */ #define DPoint_s61850GseSubsSts ((DpId) 0x2A6D) /* 10861 UI32 */ #define DPoint_WlanAccessPointIPv6 ((DpId) 0x2A6F) /* 10863 Ipv6Addr */ #define DPoint_WlanAPSubnetPrefixLength ((DpId) 0x2A70) /* 10864 UI8 */ #define DPoint_ftpEnable ((DpId) 0x2A71) /* 10865 EnDis */ #define DPoint_WlanClientIPv6Addr1 ((DpId) 0x2A73) /* 10867 Ipv6Addr */ #define DPoint_WlanClientIPv6Addr2 ((DpId) 0x2A74) /* 10868 Ipv6Addr */ #define DPoint_WlanClientIPv6Addr3 ((DpId) 0x2A75) /* 10869 Ipv6Addr */ #define DPoint_WlanClientIPv6Addr4 ((DpId) 0x2A76) /* 10870 Ipv6Addr */ #define DPoint_WlanClientIPv6Addr5 ((DpId) 0x2A77) /* 10871 Ipv6Addr */ #define DPoint_SNTP1v6Error ((DpId) 0x2A78) /* 10872 Signal */ #define DPoint_SNTP2v6Error ((DpId) 0x2A79) /* 10873 Signal */ #define DPoint_SigACOOpModeEqualOn ((DpId) 0x2A7C) /* 10876 Signal */ #define DPoint_SigACOOpModeMainOn ((DpId) 0x2A7D) /* 10877 Signal */ #define DPoint_SigACOOpModeAltOn ((DpId) 0x2A7E) /* 10878 Signal */ #define DPoint_SigCtrlPanelOn ((DpId) 0x2A7F) /* 10879 Signal */ #define DPoint_SigMalRel20Dummy ((DpId) 0x2A80) /* 10880 Signal */ #define DPoint_RC20SIMIaCalCoef ((DpId) 0x2A81) /* 10881 F32 */ #define DPoint_RC20SIMIbCalCoef ((DpId) 0x2A83) /* 10883 F32 */ #define DPoint_RC20SIMIcCalCoef ((DpId) 0x2A84) /* 10884 F32 */ #define DPoint_RC20SIMInCalCoef ((DpId) 0x2A86) /* 10886 F32 */ #define DPoint_RC20SIMIaCalCoefHi ((DpId) 0x2A87) /* 10887 F32 */ #define DPoint_RC20SIMIbCalCoefHi ((DpId) 0x2A88) /* 10888 F32 */ #define DPoint_RC20SIMIcCalCoefHi ((DpId) 0x2A89) /* 10889 F32 */ #define DPoint_RC20SIMUaCalCoef ((DpId) 0x2A8A) /* 10890 F32 */ #define DPoint_RC20SIMUbCalCoef ((DpId) 0x2A8C) /* 10892 F32 */ #define DPoint_RC20SIMUcCalCoef ((DpId) 0x2A8D) /* 10893 F32 */ #define DPoint_RC20SIMUrCalCoef ((DpId) 0x2A8E) /* 10894 F32 */ #define DPoint_RC20SIMUsCalCoef ((DpId) 0x2A8F) /* 10895 F32 */ #define DPoint_RC20SIMUtCalCoef ((DpId) 0x2A90) /* 10896 F32 */ #define DPoint_RC20SwitchIaCalCoef ((DpId) 0x2A91) /* 10897 F32 */ #define DPoint_RC20SwitchIbCalCoef ((DpId) 0x2A92) /* 10898 F32 */ #define DPoint_RC20SwitchIcCalCoef ((DpId) 0x2A93) /* 10899 F32 */ #define DPoint_RC20SwitchInCalCoef ((DpId) 0x2A94) /* 10900 F32 */ #define DPoint_RC20SwitchUaCalCoef ((DpId) 0x2A95) /* 10901 F32 */ #define DPoint_RC20SwitchUbCalCoef ((DpId) 0x2A96) /* 10902 F32 */ #define DPoint_RC20SwitchUcCalCoef ((DpId) 0x2A97) /* 10903 F32 */ #define DPoint_RC20SwitchUrCalCoef ((DpId) 0x2A99) /* 10905 F32 */ #define DPoint_RC20SwitchUsCalCoef ((DpId) 0x2A9A) /* 10906 F32 */ #define DPoint_RC20SwitchUtCalCoef ((DpId) 0x2A9B) /* 10907 F32 */ #define DPoint_RC20RelayIaCalCoef ((DpId) 0x2A9C) /* 10908 F32 */ #define DPoint_RC20RelayIbCalCoef ((DpId) 0x2A9D) /* 10909 F32 */ #define DPoint_RC20RelayIcCalCoef ((DpId) 0x2A9E) /* 10910 F32 */ #define DPoint_RC20RelayInCalCoef ((DpId) 0x2A9F) /* 10911 F32 */ #define DPoint_RC20RelayUaCalCoef ((DpId) 0x2AA0) /* 10912 F32 */ #define DPoint_RC20RelayUbCalCoef ((DpId) 0x2AA1) /* 10913 F32 */ #define DPoint_RC20RelayUcCalCoef ((DpId) 0x2AA2) /* 10914 F32 */ #define DPoint_RC20RelayUrCalCoef ((DpId) 0x2AA3) /* 10915 F32 */ #define DPoint_RC20RelayUsCalCoef ((DpId) 0x2AA4) /* 10916 F32 */ #define DPoint_RC20RelayUtCalCoef ((DpId) 0x2AA5) /* 10917 F32 */ #define DPoint_RC20RelayIaCalCoefHi ((DpId) 0x2AA6) /* 10918 F32 */ #define DPoint_RC20RelayIbCalCoefHi ((DpId) 0x2AA7) /* 10919 F32 */ #define DPoint_RC20RelayIcCalCoefHi ((DpId) 0x2AA8) /* 10920 F32 */ #define DPoint_RC20SwitchDefaultGainI ((DpId) 0x2AA9) /* 10921 F32 */ #define DPoint_RC20SwitchDefaultGainU ((DpId) 0x2AAA) /* 10922 F32 */ #define DPoint_RC20SIMDefaultGainILow ((DpId) 0x2AAB) /* 10923 F32 */ #define DPoint_RC20SIMDefaultGainIHigh ((DpId) 0x2AAC) /* 10924 F32 */ #define DPoint_RC20SIMDefaultGainIn ((DpId) 0x2AAD) /* 10925 F32 */ #define DPoint_RC20SIMDefaultGainU ((DpId) 0x2AAE) /* 10926 F32 */ #define DPoint_RC20RelayDefaultGainILow ((DpId) 0x2AAF) /* 10927 F32 */ #define DPoint_RC20RelayDefaultGainIHigh ((DpId) 0x2AB0) /* 10928 F32 */ #define DPoint_RC20RelayDefaultGainIn ((DpId) 0x2AB1) /* 10929 F32 */ #define DPoint_RC20RelayDefaultGainU ((DpId) 0x2AB2) /* 10930 F32 */ #define DPoint_RC20FPGADefaultGainILow ((DpId) 0x2AB3) /* 10931 UI32 */ #define DPoint_RC20FPGADefaultGainIHigh ((DpId) 0x2AB4) /* 10932 UI32 */ #define DPoint_RC20FPGADefaultGainIn ((DpId) 0x2AB5) /* 10933 UI32 */ #define DPoint_RC20FPGADefaultGainU ((DpId) 0x2AB6) /* 10934 UI32 */ #define DPoint_RC20ConstCalCoefILow ((DpId) 0x2AB7) /* 10935 F32 */ #define DPoint_RC20ConstCalCoefIHigh ((DpId) 0x2AB8) /* 10936 F32 */ #define DPoint_RC20ConstCalCoefIn ((DpId) 0x2AB9) /* 10937 F32 */ #define DPoint_RC20ConstCalCoefU ((DpId) 0x2ABA) /* 10938 F32 */ #define DPoint_ScadaDNP3GenAppFragMaxSize ((DpId) 0x2ABB) /* 10939 UI32 */ #define DPoint_LineSupplyVoltage ((DpId) 0x2ABD) /* 10941 UI16 */ #define DPoint_SaveRelayCalibration ((DpId) 0x2ABE) /* 10942 UI8 */ #define DPoint_SaveSwgCalibration ((DpId) 0x2ABF) /* 10943 UI8 */ #define DPoint_SDCardStatus ((DpId) 0x2AC0) /* 10944 SDCardStatus */ #define DPoint_RC20FPGAIa ((DpId) 0x2AC1) /* 10945 UI32 */ #define DPoint_RC20FPGAIb ((DpId) 0x2AC2) /* 10946 UI32 */ #define DPoint_RC20FPGAIc ((DpId) 0x2AC3) /* 10947 UI32 */ #define DPoint_RC20FPGAIaHi ((DpId) 0x2AC4) /* 10948 UI32 */ #define DPoint_RC20FPGAIbHi ((DpId) 0x2AC5) /* 10949 UI32 */ #define DPoint_RC20FPGAIcHi ((DpId) 0x2AC6) /* 10950 UI32 */ #define DPoint_RC20FPGAIn ((DpId) 0x2AC7) /* 10951 UI32 */ #define DPoint_RC20FPGAUa ((DpId) 0x2AC8) /* 10952 UI32 */ #define DPoint_RC20FPGAUb ((DpId) 0x2AC9) /* 10953 UI32 */ #define DPoint_RC20FPGAUc ((DpId) 0x2ACA) /* 10954 UI32 */ #define DPoint_RC20FPGAUr ((DpId) 0x2ACB) /* 10955 UI32 */ #define DPoint_RC20FPGAUs ((DpId) 0x2ACC) /* 10956 UI32 */ #define DPoint_RC20FPGAUt ((DpId) 0x2ACD) /* 10957 UI32 */ #define DPoint_RC20SwitchIaCalCoefHi ((DpId) 0x2ACE) /* 10958 F32 */ #define DPoint_RC20SwitchIbCalCoefHi ((DpId) 0x2ACF) /* 10959 F32 */ #define DPoint_RC20SwitchIcCalCoefHi ((DpId) 0x2AD0) /* 10960 F32 */ #define DPoint_PQSaveToSDCard ((DpId) 0x2AD1) /* 10961 EnDis */ #define DPoint_OscSamplesPerCycle ((DpId) 0x2AD2) /* 10962 OscSamplesPerCycle */ #define DPoint_OscLogCountSD ((DpId) 0x2AD3) /* 10963 UI32 */ #define DPoint_OscCaptureTimeExt ((DpId) 0x2AD4) /* 10964 OscCaptureTimeExt */ #define DPoint_PscTransformerCalib110V ((DpId) 0x2AD5) /* 10965 UI32 */ #define DPoint_PscTransformerCalib220V ((DpId) 0x2AD6) /* 10966 UI32 */ #define DPoint_G14_SerialDTRStatus ((DpId) 0x2AD7) /* 10967 CommsSerialPinStatus */ #define DPoint_G14_SerialDSRStatus ((DpId) 0x2AD8) /* 10968 CommsSerialPinStatus */ #define DPoint_G14_SerialCDStatus ((DpId) 0x2AD9) /* 10969 CommsSerialPinStatus */ #define DPoint_G14_SerialRTSStatus ((DpId) 0x2ADA) /* 10970 CommsSerialPinStatus */ #define DPoint_G14_SerialCTSStatus ((DpId) 0x2ADB) /* 10971 CommsSerialPinStatus */ #define DPoint_G14_SerialRIStatus ((DpId) 0x2ADC) /* 10972 CommsSerialPinStatus */ #define DPoint_G14_ConnectionStatus ((DpId) 0x2ADD) /* 10973 CommsConnectionStatus */ #define DPoint_G14_BytesReceivedStatus ((DpId) 0x2ADE) /* 10974 UI32 */ #define DPoint_G14_BytesTransmittedStatus ((DpId) 0x2ADF) /* 10975 UI32 */ #define DPoint_G14_PacketsReceivedStatus ((DpId) 0x2AE0) /* 10976 UI32 */ #define DPoint_G14_PacketsTransmittedStatus ((DpId) 0x2AE1) /* 10977 UI32 */ #define DPoint_G14_ErrorPacketsReceivedStatus ((DpId) 0x2AE2) /* 10978 UI32 */ #define DPoint_G14_ErrorPacketsTransmittedStatus ((DpId) 0x2AE3) /* 10979 UI32 */ #define DPoint_G14_IpAddrStatus ((DpId) 0x2AE4) /* 10980 IpAddr */ #define DPoint_G14_SubnetMaskStatus ((DpId) 0x2AE5) /* 10981 IpAddr */ #define DPoint_G14_DefaultGatewayStatus ((DpId) 0x2AE6) /* 10982 IpAddr */ #define DPoint_G14_PortDetectedType ((DpId) 0x2AE7) /* 10983 CommsPortDetectedType */ #define DPoint_G14_PortDetectedName ((DpId) 0x2AE8) /* 10984 Str */ #define DPoint_G14_SerialTxTestStatus ((DpId) 0x2AE9) /* 10985 OnOff */ #define DPoint_G14_PacketsReceivedStatusIPv6 ((DpId) 0x2AEA) /* 10986 UI32 */ #define DPoint_G14_PacketsTransmittedStatusIPv6 ((DpId) 0x2AEB) /* 10987 UI32 */ #define DPoint_G14_ErrorPacketsReceivedStatusIPv6 ((DpId) 0x2AEC) /* 10988 UI32 */ #define DPoint_G14_ErrorPacketsTransmittedStatusIPv6 ((DpId) 0x2AED) /* 10989 UI32 */ #define DPoint_G14_Ipv6AddrStatus ((DpId) 0x2AEE) /* 10990 Ipv6Addr */ #define DPoint_G14_LanPrefixLengthStatus ((DpId) 0x2AEF) /* 10991 UI8 */ #define DPoint_G14_Ipv6DefaultGatewayStatus ((DpId) 0x2AF0) /* 10992 Ipv6Addr */ #define DPoint_G14_IpVersionStatus ((DpId) 0x2AF1) /* 10993 IpVersion */ #define DPoint_G14_SerialPortTestCmd ((DpId) 0x2B27) /* 11047 Signal */ #define DPoint_G14_SerialPortHangupCmd ((DpId) 0x2B28) /* 11048 Signal */ #define DPoint_G14_BytesReceivedResetCmd ((DpId) 0x2B29) /* 11049 Signal */ #define DPoint_G14_BytesTransmittedResetCmd ((DpId) 0x2B2A) /* 11050 Signal */ #define DPoint_G14_SerialBaudRate ((DpId) 0x2B4F) /* 11087 CommsSerialBaudRate */ #define DPoint_G14_SerialDuplexType ((DpId) 0x2B50) /* 11088 CommsSerialDuplex */ #define DPoint_G14_SerialRTSMode ((DpId) 0x2B51) /* 11089 CommsSerialRTSMode */ #define DPoint_G14_SerialRTSOnLevel ((DpId) 0x2B52) /* 11090 CommsSerialRTSOnLevel */ #define DPoint_G14_SerialDTRMode ((DpId) 0x2B53) /* 11091 CommsSerialDTRMode */ #define DPoint_G14_SerialDTROnLevel ((DpId) 0x2B54) /* 11092 CommsSerialDTROnLevel */ #define DPoint_G14_SerialParity ((DpId) 0x2B55) /* 11093 CommsSerialParity */ #define DPoint_G14_SerialCTSMode ((DpId) 0x2B56) /* 11094 CommsSerialCTSMode */ #define DPoint_G14_SerialDSRMode ((DpId) 0x2B57) /* 11095 CommsSerialDSRMode */ #define DPoint_G14_SerialDCDMode ((DpId) 0x2B58) /* 11096 CommsSerialDCDMode */ #define DPoint_G14_SerialDTRLowTime ((DpId) 0x2B59) /* 11097 UI32 */ #define DPoint_G14_SerialTxDelay ((DpId) 0x2B5A) /* 11098 UI32 */ #define DPoint_G14_SerialPreTxTime ((DpId) 0x2B5B) /* 11099 UI32 */ #define DPoint_G14_SerialDCDFallTime ((DpId) 0x2B5C) /* 11100 UI32 */ #define DPoint_G14_SerialCharTimeout ((DpId) 0x2B5D) /* 11101 UI32 */ #define DPoint_G14_SerialPostTxTime ((DpId) 0x2B5E) /* 11102 UI32 */ #define DPoint_G14_SerialInactivityTime ((DpId) 0x2B5F) /* 11103 UI32 */ #define DPoint_G14_SerialCollisionAvoidance ((DpId) 0x2B60) /* 11104 Bool */ #define DPoint_G14_SerialMinIdleTime ((DpId) 0x2B61) /* 11105 UI32 */ #define DPoint_G14_SerialMaxRandomDelay ((DpId) 0x2B62) /* 11106 UI32 */ #define DPoint_G14_ModemPoweredFromExtLoad ((DpId) 0x2B63) /* 11107 Bool */ #define DPoint_G14_ModemUsedWithLeasedLine ((DpId) 0x2B64) /* 11108 Bool */ #define DPoint_G14_ModemInitString ((DpId) 0x2B65) /* 11109 Str */ #define DPoint_G14_ModemDialOut ((DpId) 0x2B66) /* 11110 Bool */ #define DPoint_G14_ModemPreDialString ((DpId) 0x2B67) /* 11111 Str */ #define DPoint_G14_ModemDialNumber1 ((DpId) 0x2B68) /* 11112 Str */ #define DPoint_G14_ModemDialNumber2 ((DpId) 0x2B69) /* 11113 Str */ #define DPoint_G14_ModemDialNumber3 ((DpId) 0x2B6A) /* 11114 Str */ #define DPoint_G14_ModemDialNumber4 ((DpId) 0x2B6B) /* 11115 Str */ #define DPoint_G14_ModemDialNumber5 ((DpId) 0x2B6C) /* 11116 Str */ #define DPoint_G14_ModemAutoDialInterval ((DpId) 0x2B6D) /* 11117 UI32 */ #define DPoint_G14_ModemConnectionTimeout ((DpId) 0x2B6E) /* 11118 UI32 */ #define DPoint_G14_ModemMaxCallDuration ((DpId) 0x2B6F) /* 11119 UI32 */ #define DPoint_G14_ModemResponseTime ((DpId) 0x2B70) /* 11120 UI32 */ #define DPoint_G14_ModemHangUpCommand ((DpId) 0x2B71) /* 11121 Str */ #define DPoint_G14_ModemOffHookCommand ((DpId) 0x2B72) /* 11122 Str */ #define DPoint_G14_ModemAutoAnswerOn ((DpId) 0x2B73) /* 11123 Str */ #define DPoint_G14_ModemAutoAnswerOff ((DpId) 0x2B74) /* 11124 Str */ #define DPoint_G14_RadioPreamble ((DpId) 0x2B75) /* 11125 Bool */ #define DPoint_G14_RadioPreambleChar ((DpId) 0x2B76) /* 11126 UI8 */ #define DPoint_G14_RadioPreambleRepeat ((DpId) 0x2B77) /* 11127 UI32 */ #define DPoint_G14_RadioPreambleLastChar ((DpId) 0x2B78) /* 11128 UI8 */ #define DPoint_G14_LanSpecifyIP ((DpId) 0x2B79) /* 11129 YesNo */ #define DPoint_G14_LanIPAddr ((DpId) 0x2B7A) /* 11130 IpAddr */ #define DPoint_G14_LanSubnetMask ((DpId) 0x2B7B) /* 11131 IpAddr */ #define DPoint_G14_LanDefaultGateway ((DpId) 0x2B7C) /* 11132 IpAddr */ #define DPoint_G14_WlanNetworkSSID ((DpId) 0x2B7D) /* 11133 Str */ #define DPoint_G14_WlanNetworkAuthentication ((DpId) 0x2B7E) /* 11134 CommsWlanNetworkAuthentication */ #define DPoint_G14_WlanDataEncryption ((DpId) 0x2B7F) /* 11135 CommsWlanDataEncryption */ #define DPoint_G14_WlanNetworkKey ((DpId) 0x2B80) /* 11136 Str */ #define DPoint_G14_WlanKeyIndex ((DpId) 0x2B81) /* 11137 UI32 */ #define DPoint_G14_PortLocalRemoteMode ((DpId) 0x2B82) /* 11138 LocalRemote */ #define DPoint_G14_GPRSServiceProvider ((DpId) 0x2B83) /* 11139 Str */ #define DPoint_G14_GPRSUserName ((DpId) 0x2B86) /* 11142 Str */ #define DPoint_G14_GPRSPassWord ((DpId) 0x2B87) /* 11143 Str */ #define DPoint_G14_SerialDebugMode ((DpId) 0x2B88) /* 11144 YesNo */ #define DPoint_G14_SerialDebugFileName ((DpId) 0x2B89) /* 11145 Str */ #define DPoint_G14_GPRSBaudRate ((DpId) 0x2B8A) /* 11146 CommsSerialBaudRate */ #define DPoint_G14_GPRSConnectionTimeout ((DpId) 0x2B8B) /* 11147 UI32 */ #define DPoint_G14_DNP3InputPipe ((DpId) 0x2B8C) /* 11148 Str */ #define DPoint_G14_DNP3OutputPipe ((DpId) 0x2B8D) /* 11149 Str */ #define DPoint_G14_CMSInputPipe ((DpId) 0x2B8E) /* 11150 Str */ #define DPoint_G14_CMSOutputPipe ((DpId) 0x2B8F) /* 11151 Str */ #define DPoint_G14_HMIInputPipe ((DpId) 0x2B90) /* 11152 Str */ #define DPoint_G14_HMIOutputPipe ((DpId) 0x2B91) /* 11153 Str */ #define DPoint_G14_DNP3ChannelRequest ((DpId) 0x2B92) /* 11154 Str */ #define DPoint_G14_DNP3ChannelOpen ((DpId) 0x2B93) /* 11155 Str */ #define DPoint_G14_CMSChannelRequest ((DpId) 0x2B94) /* 11156 Str */ #define DPoint_G14_CMSChannelOpen ((DpId) 0x2B95) /* 11157 Str */ #define DPoint_G14_HMIChannelRequest ((DpId) 0x2B96) /* 11158 Str */ #define DPoint_G14_HMIChannelOpen ((DpId) 0x2B97) /* 11159 Str */ #define DPoint_G14_GPRSUseModemSetting ((DpId) 0x2B98) /* 11160 YesNo */ #define DPoint_G14_SerialFlowControlMode ((DpId) 0x2B99) /* 11161 CommsSerialFlowControlMode */ #define DPoint_G14_SerialDCDControlMode ((DpId) 0x2B9A) /* 11162 CommsSerialDCDControlMode */ #define DPoint_G14_T10BInputPipe ((DpId) 0x2B9B) /* 11163 Str */ #define DPoint_G14_T10BOutputPipe ((DpId) 0x2B9C) /* 11164 Str */ #define DPoint_G14_T10BChannelRequest ((DpId) 0x2B9D) /* 11165 Str */ #define DPoint_G14_T10BChannelOpen ((DpId) 0x2B9E) /* 11166 Str */ #define DPoint_G14_P2PInputPipe ((DpId) 0x2B9F) /* 11167 Str */ #define DPoint_G14_P2POutputPipe ((DpId) 0x2BA0) /* 11168 Str */ #define DPoint_G14_P2PChannelRequest ((DpId) 0x2BA1) /* 11169 Str */ #define DPoint_G14_P2PChannelOpen ((DpId) 0x2BA2) /* 11170 Str */ #define DPoint_G14_PGEInputPipe ((DpId) 0x2BA3) /* 11171 Str */ #define DPoint_G14_PGEOutputPipe ((DpId) 0x2BA4) /* 11172 Str */ #define DPoint_G14_PGEChannelRequest ((DpId) 0x2BA5) /* 11173 Str */ #define DPoint_G14_PGEChannelOpen ((DpId) 0x2BA6) /* 11174 Str */ #define DPoint_G14_LanProvideIP ((DpId) 0x2BA7) /* 11175 YesNo */ #define DPoint_G14_LanSpecifyIPv6 ((DpId) 0x2BA8) /* 11176 YesNo */ #define DPoint_G14_LanIPv6Addr ((DpId) 0x2BA9) /* 11177 Ipv6Addr */ #define DPoint_G14_LanPrefixLength ((DpId) 0x2BAA) /* 11178 UI8 */ #define DPoint_G14_LanIPv6DefaultGateway ((DpId) 0x2BAB) /* 11179 Ipv6Addr */ #define DPoint_G14_LanIpVersion ((DpId) 0x2BAC) /* 11180 IpVersion */ #define DPoint_LanBConfigType ((DpId) 0x2C17) /* 11287 UsbPortConfigType */ #define DPoint_CommsChEvGrp14 ((DpId) 0x2C18) /* 11288 ChangeEvent */ #define DPoint_LogHrm64 ((DpId) 0x2C19) /* 11289 LogHrm64 */ #define DPoint_TripHrmComponentExt ((DpId) 0x2C1A) /* 11290 UI32 */ #define DPoint_TripHrmComponentAExt ((DpId) 0x2C1B) /* 11291 UI32 */ #define DPoint_TripHrmComponentBExt ((DpId) 0x2C1C) /* 11292 UI32 */ #define DPoint_TripHrmComponentCExt ((DpId) 0x2C1D) /* 11293 UI32 */ #define DPoint_SwgUseCalibratedValue ((DpId) 0x2C1E) /* 11294 EnDis */ #define DPoint_SimUseCalibratedValue ((DpId) 0x2C1F) /* 11295 EnDis */ #define DPoint_RelayUseCalibratedValue ((DpId) 0x2C21) /* 11297 EnDis */ #define DPoint_LanB_MAC ((DpId) 0x2C22) /* 11298 Str */ #define DPoint_EnableCalibration ((DpId) 0x2C23) /* 11299 EnDis */ #define DPoint_UpdateFPGACalib ((DpId) 0x2C24) /* 11300 EnDis */ #define DPoint_SigCtrlROCOFOn ((DpId) 0x2C25) /* 11301 Signal */ #define DPoint_SigSEFProtMode ((DpId) 0x2C26) /* 11302 Signal */ #define DPoint_SigCtrlVVSOn ((DpId) 0x2C27) /* 11303 Signal */ #define DPoint_SigPickupROCOF ((DpId) 0x2C28) /* 11304 Signal */ #define DPoint_SigPickupVVS ((DpId) 0x2C29) /* 11305 Signal */ #define DPoint_SigOpenROCOF ((DpId) 0x2C2A) /* 11306 Signal */ #define DPoint_SigOpenVVS ((DpId) 0x2C2B) /* 11307 Signal */ #define DPoint_SigAlarmROCOF ((DpId) 0x2C2C) /* 11308 Signal */ #define DPoint_SigAlarmVVS ((DpId) 0x2C2D) /* 11309 Signal */ #define DPoint_CntrROCOFTrips ((DpId) 0x2C2E) /* 11310 I32 */ #define DPoint_CntrVVSTrips ((DpId) 0x2C2F) /* 11311 I32 */ #define DPoint_TripMaxROCOF ((DpId) 0x2C30) /* 11312 UI32 */ #define DPoint_TripMaxVVS ((DpId) 0x2C31) /* 11313 UI32 */ #define DPoint_PeakPower ((DpId) 0x2C32) /* 11314 UI16 */ #define DPoint_ExternalSupplyPower ((DpId) 0x2C33) /* 11315 UI16 */ #define DPoint_BatteryCapacityConfidence ((DpId) 0x2C34) /* 11316 BatteryCapacityConfidence */ #define DPoint_CanBusHighPower ((DpId) 0x2C35) /* 11317 Signal */ #define DPoint_IdPSCNumModel ((DpId) 0x2C36) /* 11318 UI32 */ #define DPoint_IdPSCNumPlant ((DpId) 0x2C37) /* 11319 UI32 */ #define DPoint_IdPSCNumDate ((DpId) 0x2C38) /* 11320 UI32 */ #define DPoint_IdPSCNumSeq ((DpId) 0x2C39) /* 11321 UI32 */ #define DPoint_IdPSCSwVer1 ((DpId) 0x2C3A) /* 11322 UI32 */ #define DPoint_IdPSCSwVer2 ((DpId) 0x2C3B) /* 11323 UI32 */ #define DPoint_IdPSCSwVer3 ((DpId) 0x2C3C) /* 11324 UI32 */ #define DPoint_IdPSCSwVer4 ((DpId) 0x2C3D) /* 11325 UI32 */ #define DPoint_SigCtrlPMUOn ((DpId) 0x2C3E) /* 11326 Signal */ #define DPoint_SigCtrlPMUProcessingOn ((DpId) 0x2C3F) /* 11327 Signal */ #define DPoint_PMUStationName ((DpId) 0x2C40) /* 11328 Str */ #define DPoint_PMUStationIDCode ((DpId) 0x2C41) /* 11329 UI16 */ #define DPoint_PMUNominalFrequency ((DpId) 0x2C42) /* 11330 UI8 */ #define DPoint_PMUMessageRate ((DpId) 0x2C43) /* 11331 UI8 */ #define DPoint_PMUPerfClass ((DpId) 0x2C44) /* 11332 PMUPerfClass */ #define DPoint_PMUDataSetDef ((DpId) 0x2C45) /* 11333 NamedVariableListDef */ #define DPoint_PMURequireCIDConfig ((DpId) 0x2C46) /* 11334 EnDis */ #define DPoint_PMUCommsPort ((DpId) 0x2C47) /* 11335 CommsPort */ #define DPoint_PMUIPVersion ((DpId) 0x2C48) /* 11336 IpVersion */ #define DPoint_PMUIPAddrPDC ((DpId) 0x2C49) /* 11337 IpAddr */ #define DPoint_PMUIP6AddrPDC ((DpId) 0x2C4A) /* 11338 Ipv6Addr */ #define DPoint_PMUMACAddrPDC ((DpId) 0x2C4B) /* 11339 Str */ #define DPoint_PMUOutputPort ((DpId) 0x2C4C) /* 11340 UI16 */ #define DPoint_PMUControlPort ((DpId) 0x2C4D) /* 11341 UI16 */ #define DPoint_PMUConfigVersion ((DpId) 0x2C4E) /* 11342 UI16 */ #define DPoint_PMUVLANAppId ((DpId) 0x2C4F) /* 11343 UI16 */ #define DPoint_PMUVLANVID ((DpId) 0x2C50) /* 11344 UI16 */ #define DPoint_PMUVLANPriority ((DpId) 0x2C51) /* 11345 UI8 */ #define DPoint_PMUSmvOpts ((DpId) 0x2C52) /* 11346 UI16 */ #define DPoint_PMUConfRev ((DpId) 0x2C53) /* 11347 UI32 */ #define DPoint_PMUNumberOfASDU ((DpId) 0x2C54) /* 11348 UI8 */ #define DPoint_PMUQuality ((DpId) 0x2C55) /* 11349 PMUQuality */ #define DPoint_PMUStatus ((DpId) 0x2C56) /* 11350 PMUStatus */ #define DPoint_PMU_Ua ((DpId) 0x2C57) /* 11351 UI32 */ #define DPoint_PMU_Ub ((DpId) 0x2C58) /* 11352 UI32 */ #define DPoint_PMU_Uc ((DpId) 0x2C59) /* 11353 UI32 */ #define DPoint_PMU_Ur ((DpId) 0x2C5A) /* 11354 UI32 */ #define DPoint_PMU_Us ((DpId) 0x2C5B) /* 11355 UI32 */ #define DPoint_PMU_Ut ((DpId) 0x2C5C) /* 11356 UI32 */ #define DPoint_PMU_Ia ((DpId) 0x2C5D) /* 11357 UI32 */ #define DPoint_PMU_Ib ((DpId) 0x2C5E) /* 11358 UI32 */ #define DPoint_PMU_Ic ((DpId) 0x2C5F) /* 11359 UI32 */ #define DPoint_PMU_A_Ua ((DpId) 0x2C60) /* 11360 I32 */ #define DPoint_PMU_A_Ub ((DpId) 0x2C61) /* 11361 I32 */ #define DPoint_PMU_A_Uc ((DpId) 0x2C62) /* 11362 I32 */ #define DPoint_PMU_A_Ur ((DpId) 0x2C63) /* 11363 I32 */ #define DPoint_PMU_A_Us ((DpId) 0x2C64) /* 11364 I32 */ #define DPoint_PMU_A_Ut ((DpId) 0x2C65) /* 11365 I32 */ #define DPoint_PMU_A_Ia ((DpId) 0x2C66) /* 11366 I32 */ #define DPoint_PMU_A_Ib ((DpId) 0x2C67) /* 11367 I32 */ #define DPoint_PMU_A_Ic ((DpId) 0x2C68) /* 11368 I32 */ #define DPoint_PMU_F_ABC ((DpId) 0x2C69) /* 11369 UI32 */ #define DPoint_PMU_F_RST ((DpId) 0x2C6A) /* 11370 UI32 */ #define DPoint_PMU_ROCOF_ABC ((DpId) 0x2C6B) /* 11371 I32 */ #define DPoint_PMU_ROCOF_RST ((DpId) 0x2C6C) /* 11372 I32 */ #define DPoint_PMULoadCIDConfigStatus ((DpId) 0x2C6D) /* 11373 PMUConfigStatus */ #define DPoint_PMU_Timestamp ((DpId) 0x2C6E) /* 11374 TimeStamp */ #define DPoint_USBL_IPAddr ((DpId) 0x2C6F) /* 11375 IpAddr */ #define DPoint_USBL_PortNumber ((DpId) 0x2C70) /* 11376 UI16 */ #define DPoint_SigRTCTimeNotSync ((DpId) 0x2C71) /* 11377 Signal */ #define DPoint_PMU_IEEE_Stat ((DpId) 0x2C72) /* 11378 UI16 */ #define DPoint_USBL_IPAddrV6 ((DpId) 0x2C73) /* 11379 Ipv6Addr */ #define DPoint_HTTPServerPort ((DpId) 0x2C74) /* 11380 UI16 */ #define DPoint_USBL_IpVersion ((DpId) 0x2C75) /* 11381 IpVersion */ #define DPoint_SigCorruptedPartition ((DpId) 0x2C76) /* 11382 Signal */ #define DPoint_SigRLM20UpgradeFailure ((DpId) 0x2C77) /* 11383 Signal */ #define DPoint_SigUbootConsoleActive ((DpId) 0x2C78) /* 11384 Signal */ #define DPoint_SigRlm20nor2backupReqd ((DpId) 0x2C79) /* 11385 Signal */ #define DPoint_LineSupplyRange ((DpId) 0x2C7A) /* 11386 LineSupplyRange */ #define DPoint_PscDcCalibCoef ((DpId) 0x2C7B) /* 11387 UI32 */ #define DPoint_SigMalfAnalogBoard ((DpId) 0x2C7C) /* 11388 Signal */ #define DPoint_TmLok ((DpId) 0x2C7D) /* 11389 TimeSyncUnlockedTime */ #define DPoint_SigACOMakeBeforeBreak ((DpId) 0x2C7E) /* 11390 Signal */ #define DPoint_SigGpsEnable ((DpId) 0x2C80) /* 11392 Signal */ #define DPoint_SigWlanEnable ((DpId) 0x2C81) /* 11393 Signal */ #define DPoint_SigMobileNetworkEnable ((DpId) 0x2C82) /* 11394 Signal */ #define DPoint_MobileNetwork_SerialPort1 ((DpId) 0x2C83) /* 11395 Str */ #define DPoint_MobileNetwork_SerialPort2 ((DpId) 0x2C84) /* 11396 Str */ #define DPoint_MobileNetwork_SerialPort3 ((DpId) 0x2C85) /* 11397 Str */ #define DPoint_CanSimSetTimeStamp ((DpId) 0x2C86) /* 11398 TimeStamp */ #define DPoint_PMU_In ((DpId) 0x2C87) /* 11399 UI32 */ #define DPoint_PMU_A_In ((DpId) 0x2C88) /* 11400 I32 */ #define DPoint_FpgaSyncControllerDelay ((DpId) 0x2C89) /* 11401 UI32 */ #define DPoint_FpgaSyncSensorDelay ((DpId) 0x2C8A) /* 11402 UI32 */ #define DPoint_CbfBackupTripMode ((DpId) 0x2C8B) /* 11403 OnOff */ #define DPoint_CbfPhaseCurrent ((DpId) 0x2C8C) /* 11404 UI32 */ #define DPoint_CbfEfCurrent ((DpId) 0x2C8D) /* 11405 UI32 */ #define DPoint_CbfCurrentCheckMode ((DpId) 0x2C8E) /* 11406 CbfCurrentMode */ #define DPoint_CbfFailBackupTrip ((DpId) 0x2C8F) /* 11407 CBF_backup_trip */ #define DPoint_CbfBackupTripTime ((DpId) 0x2C90) /* 11408 UI32 */ #define DPoint_SigCbfBackupTripBlocked ((DpId) 0x2C91) /* 11409 Signal */ #define DPoint_SigPickupCbfDefault ((DpId) 0x2C92) /* 11410 Signal */ #define DPoint_SigPickupCbfBackupTrip ((DpId) 0x2C93) /* 11411 Signal */ #define DPoint_SigCBFMalfunction ((DpId) 0x2C94) /* 11412 Signal */ #define DPoint_SigCBFMalfCurrent ((DpId) 0x2C95) /* 11413 Signal */ #define DPoint_SigCBFBackupTrip ((DpId) 0x2C96) /* 11414 Signal */ #define DPoint_SigCBFMalf ((DpId) 0x2C97) /* 11415 Signal */ #define DPoint_DefGWPriority0 ((DpId) 0x2C98) /* 11416 CommsPort */ #define DPoint_DefGWPriority1 ((DpId) 0x2C99) /* 11417 CommsPort */ #define DPoint_DefGWPriority2 ((DpId) 0x2C9A) /* 11418 CommsPort */ #define DPoint_DefGWPriority3 ((DpId) 0x2C9B) /* 11419 CommsPort */ #define DPoint_DefGWStatus0 ((DpId) 0x2C9C) /* 11420 ActiveInactive */ #define DPoint_DefGWStatus1 ((DpId) 0x2C9D) /* 11421 ActiveInactive */ #define DPoint_DefGWStatus2 ((DpId) 0x2C9E) /* 11422 ActiveInactive */ #define DPoint_DefGWStatus3 ((DpId) 0x2C9F) /* 11423 ActiveInactive */ #define DPoint_SigCbfBackupTripMode ((DpId) 0x2CA0) /* 11424 Signal */ #define DPoint_UseCentralCredentialServer ((DpId) 0x2CA1) /* 11425 EnDis */ #define DPoint_UserCredentialOperMode ((DpId) 0x2CA2) /* 11426 CredentialOperationMode */ #define DPoint_CredentialOperName ((DpId) 0x2CA3) /* 11427 Str */ #define DPoint_CredentialOperFirstPassword ((DpId) 0x2CA4) /* 11428 Str */ #define DPoint_CredentialOperSecondPassword ((DpId) 0x2CA5) /* 11429 Str */ #define DPoint_CredentialOperRoleBitMap ((DpId) 0x2CA6) /* 11430 RoleBitMap */ #define DPoint_SaveUserCredentialOper ((DpId) 0x2CA7) /* 11431 UI8 */ #define DPoint_UserAccessState ((DpId) 0x2CA8) /* 11432 UserCredentialResultStatus */ #define DPoint_SigUSBOCOnboardA ((DpId) 0x2CA9) /* 11433 Signal */ #define DPoint_SigUSBOCOnboardB ((DpId) 0x2CAA) /* 11434 Signal */ #define DPoint_G1_ScadaT10BRGConnectionEnable ((DpId) 0x2CAB) /* 11435 EnDis */ #define DPoint_G1_ScadaT10BRGAllowControls ((DpId) 0x2CAC) /* 11436 EnDis */ #define DPoint_G1_ScadaT10BRGConnectionName ((DpId) 0x2CAD) /* 11437 Str */ #define DPoint_G1_ScadaT10BRGChannelPort ((DpId) 0x2CAE) /* 11438 CommsPort */ #define DPoint_G1_ScadaT10BRGIpVersion ((DpId) 0x2CAF) /* 11439 IpVersion */ #define DPoint_G1_ScadaT10BRGSlaveTCPPort ((DpId) 0x2CB0) /* 11440 UI16 */ #define DPoint_G1_ScadaT10BRGConstraints ((DpId) 0x2CB1) /* 11441 ConstraintT10BRG */ #define DPoint_G1_ScadaT10BRGOriginatorAddress ((DpId) 0x2CB2) /* 11442 UI8 */ #define DPoint_G1_ScadaT10BRGMasterTCPPort ((DpId) 0x2CB3) /* 11443 UI16 */ #define DPoint_G1_ScadaT10BRGMasterIPv4Addr ((DpId) 0x2CB4) /* 11444 IpAddr */ #define DPoint_G1_ScadaT10BRGMasterIPv6Addr ((DpId) 0x2CB5) /* 11445 Ipv6Addr */ #define DPoint_G1_ScadaT10BRGStatusConnectionState ((DpId) 0x2CB6) /* 11446 ConnectionStateT10BRG */ #define DPoint_G1_ScadaT10BRGStatusOriginatorAddress ((DpId) 0x2CB7) /* 11447 UI8 */ #define DPoint_G1_ScadaT10BRGStatusMasterTCPPort ((DpId) 0x2CB8) /* 11448 UI16 */ #define DPoint_G1_ScadaT10BRGStatusMasterIPv4Addr ((DpId) 0x2CB9) /* 11449 IpAddr */ #define DPoint_G1_ScadaT10BRGStatusMasterIPv6Addr ((DpId) 0x2CBA) /* 11450 Ipv6Addr */ #define DPoint_G2_ScadaT10BRGConnectionEnable ((DpId) 0x2CC4) /* 11460 EnDis */ #define DPoint_G2_ScadaT10BRGAllowControls ((DpId) 0x2CC5) /* 11461 EnDis */ #define DPoint_G2_ScadaT10BRGConnectionName ((DpId) 0x2CC6) /* 11462 Str */ #define DPoint_G2_ScadaT10BRGChannelPort ((DpId) 0x2CC7) /* 11463 CommsPort */ #define DPoint_G2_ScadaT10BRGIpVersion ((DpId) 0x2CC8) /* 11464 IpVersion */ #define DPoint_G2_ScadaT10BRGSlaveTCPPort ((DpId) 0x2CC9) /* 11465 UI16 */ #define DPoint_G2_ScadaT10BRGConstraints ((DpId) 0x2CCA) /* 11466 ConstraintT10BRG */ #define DPoint_G2_ScadaT10BRGOriginatorAddress ((DpId) 0x2CCB) /* 11467 UI8 */ #define DPoint_G2_ScadaT10BRGMasterTCPPort ((DpId) 0x2CCC) /* 11468 UI16 */ #define DPoint_G2_ScadaT10BRGMasterIPv4Addr ((DpId) 0x2CCD) /* 11469 IpAddr */ #define DPoint_G2_ScadaT10BRGMasterIPv6Addr ((DpId) 0x2CCE) /* 11470 Ipv6Addr */ #define DPoint_G2_ScadaT10BRGStatusConnectionState ((DpId) 0x2CCF) /* 11471 ConnectionStateT10BRG */ #define DPoint_G2_ScadaT10BRGStatusOriginatorAddress ((DpId) 0x2CD0) /* 11472 UI8 */ #define DPoint_G2_ScadaT10BRGStatusMasterTCPPort ((DpId) 0x2CD1) /* 11473 UI16 */ #define DPoint_G2_ScadaT10BRGStatusMasterIPv4Addr ((DpId) 0x2CD2) /* 11474 IpAddr */ #define DPoint_G2_ScadaT10BRGStatusMasterIPv6Addr ((DpId) 0x2CD3) /* 11475 Ipv6Addr */ #define DPoint_G3_ScadaT10BRGConnectionEnable ((DpId) 0x2CDD) /* 11485 EnDis */ #define DPoint_G3_ScadaT10BRGAllowControls ((DpId) 0x2CDE) /* 11486 EnDis */ #define DPoint_G3_ScadaT10BRGConnectionName ((DpId) 0x2CDF) /* 11487 Str */ #define DPoint_G3_ScadaT10BRGChannelPort ((DpId) 0x2CE0) /* 11488 CommsPort */ #define DPoint_G3_ScadaT10BRGIpVersion ((DpId) 0x2CE1) /* 11489 IpVersion */ #define DPoint_G3_ScadaT10BRGSlaveTCPPort ((DpId) 0x2CE2) /* 11490 UI16 */ #define DPoint_G3_ScadaT10BRGConstraints ((DpId) 0x2CE3) /* 11491 ConstraintT10BRG */ #define DPoint_G3_ScadaT10BRGOriginatorAddress ((DpId) 0x2CE4) /* 11492 UI8 */ #define DPoint_G3_ScadaT10BRGMasterTCPPort ((DpId) 0x2CE5) /* 11493 UI16 */ #define DPoint_G3_ScadaT10BRGMasterIPv4Addr ((DpId) 0x2CE6) /* 11494 IpAddr */ #define DPoint_G3_ScadaT10BRGMasterIPv6Addr ((DpId) 0x2CE7) /* 11495 Ipv6Addr */ #define DPoint_G3_ScadaT10BRGStatusConnectionState ((DpId) 0x2CE8) /* 11496 ConnectionStateT10BRG */ #define DPoint_G3_ScadaT10BRGStatusOriginatorAddress ((DpId) 0x2CE9) /* 11497 UI8 */ #define DPoint_G3_ScadaT10BRGStatusMasterTCPPort ((DpId) 0x2CEA) /* 11498 UI16 */ #define DPoint_G3_ScadaT10BRGStatusMasterIPv4Addr ((DpId) 0x2CEB) /* 11499 IpAddr */ #define DPoint_G3_ScadaT10BRGStatusMasterIPv6Addr ((DpId) 0x2CEC) /* 11500 Ipv6Addr */ #define DPoint_G4_ScadaT10BRGConnectionEnable ((DpId) 0x2CF6) /* 11510 EnDis */ #define DPoint_G4_ScadaT10BRGAllowControls ((DpId) 0x2CF7) /* 11511 EnDis */ #define DPoint_G4_ScadaT10BRGConnectionName ((DpId) 0x2CF8) /* 11512 Str */ #define DPoint_G4_ScadaT10BRGChannelPort ((DpId) 0x2CF9) /* 11513 CommsPort */ #define DPoint_G4_ScadaT10BRGIpVersion ((DpId) 0x2CFA) /* 11514 IpVersion */ #define DPoint_G4_ScadaT10BRGSlaveTCPPort ((DpId) 0x2CFB) /* 11515 UI16 */ #define DPoint_G4_ScadaT10BRGConstraints ((DpId) 0x2CFC) /* 11516 ConstraintT10BRG */ #define DPoint_G4_ScadaT10BRGOriginatorAddress ((DpId) 0x2CFD) /* 11517 UI8 */ #define DPoint_G4_ScadaT10BRGMasterTCPPort ((DpId) 0x2CFE) /* 11518 UI16 */ #define DPoint_G4_ScadaT10BRGMasterIPv4Addr ((DpId) 0x2CFF) /* 11519 IpAddr */ #define DPoint_G4_ScadaT10BRGMasterIPv6Addr ((DpId) 0x2D00) /* 11520 Ipv6Addr */ #define DPoint_G4_ScadaT10BRGStatusConnectionState ((DpId) 0x2D01) /* 11521 ConnectionStateT10BRG */ #define DPoint_G4_ScadaT10BRGStatusOriginatorAddress ((DpId) 0x2D02) /* 11522 UI8 */ #define DPoint_G4_ScadaT10BRGStatusMasterTCPPort ((DpId) 0x2D03) /* 11523 UI16 */ #define DPoint_G4_ScadaT10BRGStatusMasterIPv4Addr ((DpId) 0x2D04) /* 11524 IpAddr */ #define DPoint_G4_ScadaT10BRGStatusMasterIPv6Addr ((DpId) 0x2D05) /* 11525 Ipv6Addr */ #define DPoint_ScadaT10BEnableGroup1 ((DpId) 0x2D0F) /* 11535 EnDis */ #define DPoint_ScadaT10BEnableGroup2 ((DpId) 0x2D10) /* 11536 EnDis */ #define DPoint_PinUpdateHMI1 ((DpId) 0x2D21) /* 11553 Str */ #define DPoint_PinUpdateHMI2 ((DpId) 0x2D22) /* 11554 Str */ #define DPoint_PukUpdateHMI1 ((DpId) 0x2D23) /* 11555 Str */ #define DPoint_PukUpdateHMI2 ((DpId) 0x2D24) /* 11556 Str */ #define DPoint_PinStore ((DpId) 0x2D25) /* 11557 Str */ #define DPoint_PukStore ((DpId) 0x2D26) /* 11558 Str */ #define DPoint_PinUpdateCMS ((DpId) 0x2D27) /* 11559 Str */ #define DPoint_PukUpdateCMS ((DpId) 0x2D28) /* 11560 Str */ #define DPoint_PinResultHMI ((DpId) 0x2D29) /* 11561 UI8 */ #define DPoint_PukResultHMI ((DpId) 0x2D2A) /* 11562 UI8 */ #define DPoint_PinResultCMS ((DpId) 0x2D2B) /* 11563 UI8 */ #define DPoint_PukResultCMS ((DpId) 0x2D2C) /* 11564 UI8 */ #define DPoint_SigNmSimError ((DpId) 0x2D2D) /* 11565 Signal */ #define DPoint_ScadaT10BConnectionMethodGroup1 ((DpId) 0x2D2E) /* 11566 ConnectionMethodT10BRG */ #define DPoint_ScadaT10BConnectionMethodGroup2 ((DpId) 0x2D2F) /* 11567 ConnectionMethodT10BRG */ #define DPoint_SigCtrlPDOPOn ((DpId) 0x2D30) /* 11568 Signal */ #define DPoint_SigCtrlPDUPOn ((DpId) 0x2D31) /* 11569 Signal */ #define DPoint_SigPickupPDOP ((DpId) 0x2D32) /* 11570 Signal */ #define DPoint_SigPickupPDUP ((DpId) 0x2D33) /* 11571 Signal */ #define DPoint_SigOpenPDOP ((DpId) 0x2D34) /* 11572 Signal */ #define DPoint_SigOpenPDUP ((DpId) 0x2D35) /* 11573 Signal */ #define DPoint_SigAlarmPDOP ((DpId) 0x2D36) /* 11574 Signal */ #define DPoint_SigAlarmPDUP ((DpId) 0x2D37) /* 11575 Signal */ #define DPoint_CntrPDOPTrips ((DpId) 0x2D38) /* 11576 I32 */ #define DPoint_CntrPDUPTrips ((DpId) 0x2D39) /* 11577 I32 */ #define DPoint_TripMaxPDOP ((DpId) 0x2D3A) /* 11578 UI32 */ #define DPoint_TripAnglePDOP ((DpId) 0x2D3B) /* 11579 I32 */ #define DPoint_TripMinPDUP ((DpId) 0x2D3C) /* 11580 UI32 */ #define DPoint_TripAnglePDUP ((DpId) 0x2D3D) /* 11581 I32 */ #define DPoint_MeasAngle3phase ((DpId) 0x2D3E) /* 11582 I32 */ #define DPoint_PinLastWriteStatus ((DpId) 0x2D3F) /* 11583 UI8 */ #define DPoint_PukLastWriteStatus ((DpId) 0x2D40) /* 11584 UI8 */ #define DPoint_PinLastWriteString ((DpId) 0x2D41) /* 11585 Str */ #define DPoint_PukLastWriteString ((DpId) 0x2D42) /* 11586 Str */ #define DPoint_LinkStatusLAN ((DpId) 0x2D43) /* 11587 UI8 */ #define DPoint_LinkStatusLAN2 ((DpId) 0x2D44) /* 11588 UI8 */ #define DPoint_SigSIMCardError ((DpId) 0x2D45) /* 11589 Signal */ #define DPoint_SigSIMCardPINReqd ((DpId) 0x2D46) /* 11590 Signal */ #define DPoint_SigSIMCardPINError ((DpId) 0x2D47) /* 11591 Signal */ #define DPoint_SigSIMCardBlockedByPIN ((DpId) 0x2D48) /* 11592 Signal */ #define DPoint_SigSIMCardPUKError ((DpId) 0x2D49) /* 11593 Signal */ #define DPoint_SigSIMCardBlockedPerm ((DpId) 0x2D4A) /* 11594 Signal */ #define DPoint_GPRSServiceProvider2 ((DpId) 0x2D52) /* 11602 Str */ #define DPoint_GPRSServiceProvider3 ((DpId) 0x2D53) /* 11603 Str */ #define DPoint_GPRSServiceProvider4 ((DpId) 0x2D54) /* 11604 Str */ #define DPoint_GPRSServiceProvider5 ((DpId) 0x2D55) /* 11605 Str */ #define DPoint_GPRSServiceProvider6 ((DpId) 0x2D56) /* 11606 Str */ #define DPoint_GPRSServiceProvider7 ((DpId) 0x2D57) /* 11607 Str */ #define DPoint_GPRSServiceProvider8 ((DpId) 0x2D58) /* 11608 Str */ #define DPoint_GPRSUserName2 ((DpId) 0x2D59) /* 11609 Str */ #define DPoint_GPRSUserName3 ((DpId) 0x2D5A) /* 11610 Str */ #define DPoint_GPRSUserName4 ((DpId) 0x2D5B) /* 11611 Str */ #define DPoint_GPRSUserName5 ((DpId) 0x2D5C) /* 11612 Str */ #define DPoint_GPRSUserName6 ((DpId) 0x2D5D) /* 11613 Str */ #define DPoint_GPRSUserName7 ((DpId) 0x2D5E) /* 11614 Str */ #define DPoint_GPRSUserName8 ((DpId) 0x2D5F) /* 11615 Str */ #define DPoint_GPRSPassWord2 ((DpId) 0x2D60) /* 11616 Str */ #define DPoint_GPRSPassWord3 ((DpId) 0x2D61) /* 11617 Str */ #define DPoint_GPRSPassWord4 ((DpId) 0x2D62) /* 11618 Str */ #define DPoint_GPRSPassWord5 ((DpId) 0x2D63) /* 11619 Str */ #define DPoint_GPRSPassWord6 ((DpId) 0x2D64) /* 11620 Str */ #define DPoint_GPRSPassWord7 ((DpId) 0x2D65) /* 11621 Str */ #define DPoint_GPRSPassWord8 ((DpId) 0x2D66) /* 11622 Str */ #define DPoint_GPRSDialingAPN ((DpId) 0x2D67) /* 11623 UI8 */ #define DPoint_SmpTicks2 ((DpId) 0x2D9C) /* 11676 SmpTick */ #define DPoint_SigPMURetransmitEnable ((DpId) 0x2D9F) /* 11679 Signal */ #define DPoint_SigPMURetransmitLogEnable ((DpId) 0x2DA0) /* 11680 Signal */ #define DPoint_MobileNetworkSIMCardID ((DpId) 0x2DD5) /* 11733 Str */ #define DPoint_PinUpdated ((DpId) 0x2DD6) /* 11734 ChangedLog */ #define DPoint_PukUpdated ((DpId) 0x2DD7) /* 11735 ChangedLog */ /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DATAPOINTS_H_ <file_sep>HKDF vector creation ==================== This page documents the code that was used to generate a longer HKDF test vector (1200 bytes) than is available in RFC 5869. All the vectors were generated using OpenSSL and verified with Go. Creation -------- The following Python script was run to generate the vector files. .. literalinclude:: /development/custom-vectors/hkdf/generate_hkdf.py Download link: :download:`generate_hkdf.py </development/custom-vectors/hkdf/generate_hkdf.py>` Verification ------------ The following Go code was used to verify the vectors. .. literalinclude:: /development/custom-vectors/hkdf/verify_hkdf.go :language: go Download link: :download:`verify_hkdf.go </development/custom-vectors/hkdf/verify_hkdf.go>` <file_sep># Implementation background ## Client connection Queueing By default lws treats each client connection as completely separate, and each is made from scratch with its own network connection independently. If the user code sets the `LCCSCF_PIPELINE` bit on `info.ssl_connection` when creating the client connection though, lws attempts to optimize multiple client connections to the same place by sharing any existing connection and its tls tunnel where possible. There are two basic approaches, for h1 additional connections of the same type and endpoint basically queue on a leader and happen sequentially. For muxed protocols like h2, they may also queue if the initial connection is not up yet, but subsequently the will all join the existing connection simultaneously "broadside". ## h1 queueing The initial wsi to start the network connection becomes the "leader" that subsequent connection attempts will queue against. Each vhost has a dll2_owner `wsi->dll_cli_active_conns_owner` that "leaders" who are actually making network connections themselves can register on as "active client connections". Other client wsi being created who find there is already a leader on the active client connection list for the vhost, can join their dll2 wsi->dll2_cli_txn_queue to the leader's wsi->dll2_cli_txn_queue_owner to "queue" on the leader. The user code does not know which wsi was first or is queued, it just waits for stuff to happen the same either way. When the "leader" wsi connects, it performs its client transaction as normal, and at the end arrives at `lws_http_transaction_completed_client()`. Here, it calls through to the lws_mux `_lws_generic_transaction_completed_active_conn()` helper. This helper sees if anything else is queued, and if so, migrates assets like the SSL *, the socket fd, and any remaining queue from the original leader to the head of the list, which replaces the old leader as the "active client connection" any subsequent connects would queue on. It has to be done this way so that user code which may know each client wsi by its wsi, or have marked it with an opaque_user_data pointer, is getting its specific request handled by the wsi it expects it to be handled by. A side effect of this, and in order to be able to handle POSTs cleanly, lws does not attempt to send the headers for the next queued child before the previous child has finished. The process of moving the SSL context and fd etc between the queued wsi continues until the queue is all handled. ## muxed protocol queueing and stream binding h2 connections act the same as h1 before the initial connection has been made, but once it is made all the queued connections join the network connection as child mux streams immediately, "broadside", binding the stream to the existing network connection. <file_sep># lws minimal http server deaddrop This demonstrates how you can leverage the lws deaddrop plugin to make a secure, modern html5 file upload and sharing application. The demo is protected by basic auth credentials defined in the file at ./ba-passwords - by default the credentials are user: user1, password: <PASSWORD>; and user: user2, password: <PASSWORD>. You can upload files and have them appear on a shared, downloadable list that is dynamically updated to all clients open on the page. Only the authenticated uploader is able to delete the files he uploaded. Multiple simultaneous ongoing file uploads are supported. ## build To build this standalone, you must tell cmake where the lws source tree ./plugins directory can be found, since it relies on including the source of the raw-proxy plugin. ``` $ cmake . -DLWS_PLUGINS_DIR=~/libwebsockets/plugins && make ``` ## usage ``` $ ./lws-minimal-http-server-deaddrop [2018/12/01 10:31:09:7108] USER: LWS minimal http server deaddrop | visit https://localhost:7681 [2018/12/01 10:31:09:8511] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/12/01 10:31:09:8522] NOTICE: Using SSL mode [2018/12/01 10:31:10:0755] NOTICE: SSL ECDH curve 'prime256v1' [2018/12/01 10:31:10:2562] NOTICE: lws_tls_client_create_vhost_context: doing cert filepath localhost-100y.cert [2018/12/01 10:31:10:2581] NOTICE: Loaded client cert localhost-100y.cert [2018/12/01 10:31:10:2583] NOTICE: lws_tls_client_create_vhost_context: doing private key filepath [2018/12/01 10:31:10:2593] NOTICE: Loaded client cert private key localhost-100y.key [2018/12/01 10:31:10:2596] NOTICE: created client ssl context for default [2018/12/01 10:31:10:5290] NOTICE: deaddrop: vh default, upload dir ./uploads, max size 10000000 [2018/12/01 10:31:10:5376] NOTICE: vhost default: cert expiry: 730203d ... ``` Visit https://localhost:7681, and follow the link there to the secret area. Give your browser "user1" and "password" as the credentials. For testing to confirm what a different user sees, you can also log in as "user2" and "password". <file_sep>/** * @file include/dbschema/dbDataTypeDefs.h * @brief This generated file contains the macro definition providing details * of all dbconfig data types. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbDataTypeDefs_h.xsl : 1643 bytes, CRC32 = 1921007523 * relay-datatypes.xml : 3123717 bytes, CRC32 = 136298885 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATATYPEDEFS_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATATYPEDEFS_H_ /**The Data Type definitions * Arguments: type * type Name of the type */ #define DATATYPE_DEFNS \ \ DATATYPE_DEFN( I8 ) \ DATATYPE_DEFN( UI8 ) \ DATATYPE_DEFN( F8 ) \ DATATYPE_DEFN( UF8 ) \ DATATYPE_DEFN( TimeFormat ) \ DATATYPE_DEFN( DateFormat ) \ DATATYPE_DEFN( OkFail ) \ DATATYPE_DEFN( BattTestState ) \ DATATYPE_DEFN( EnDis ) \ DATATYPE_DEFN( RelayState ) \ DATATYPE_DEFN( OkSCct ) \ DATATYPE_DEFN( RdyNr ) \ DATATYPE_DEFN( OnOff ) \ DATATYPE_DEFN( AvgPeriod ) \ DATATYPE_DEFN( SysFreq ) \ DATATYPE_DEFN( USense ) \ DATATYPE_DEFN( AuxConfig ) \ DATATYPE_DEFN( AlOp ) \ DATATYPE_DEFN( OpenClose ) \ DATATYPE_DEFN( TripMode ) \ DATATYPE_DEFN( TtaMode ) \ DATATYPE_DEFN( DndMode ) \ DATATYPE_DEFN( VrcMode ) \ DATATYPE_DEFN( RatedFreq ) \ DATATYPE_DEFN( ScadaTimeIsLocal ) \ DATATYPE_DEFN( I16 ) \ DATATYPE_DEFN( UI16 ) \ DATATYPE_DEFN( I32 ) \ DATATYPE_DEFN( UI32 ) \ DATATYPE_DEFN( F32 ) \ DATATYPE_DEFN( TimeStamp ) \ DATATYPE_DEFN( TccCurve ) \ DATATYPE_DEFN( LogEvent ) \ DATATYPE_DEFN( LogOpen ) \ DATATYPE_DEFN( CoNoticeType ) \ DATATYPE_DEFN( LoadProfileNoticeType ) \ DATATYPE_DEFN( CanSdoReadReqType ) \ DATATYPE_DEFN( Str ) \ DATATYPE_DEFN( CoType ) \ DATATYPE_DEFN( EventDataID ) \ DATATYPE_DEFN( DbClientId ) \ DATATYPE_DEFN( BaudRateType ) \ DATATYPE_DEFN( SwVersion ) \ DATATYPE_DEFN( CanObjType ) \ DATATYPE_DEFN( CanErrStatus ) \ DATATYPE_DEFN( ChangeEvent ) \ DATATYPE_DEFN( Co ) \ DATATYPE_DEFN( CoSrc ) \ DATATYPE_DEFN( CoState ) \ DATATYPE_DEFN( CirBufDetails ) \ DATATYPE_DEFN( TccType ) \ DATATYPE_DEFN( LogEventRqst ) \ DATATYPE_DEFN( LocalRemote ) \ DATATYPE_DEFN( LoadProfileDefType ) \ DATATYPE_DEFN( Signal ) \ DATATYPE_DEFN( MeasPhaseSeqAbcType ) \ DATATYPE_DEFN( MeasPhaseSeqRstType ) \ DATATYPE_DEFN( ProtDirOut ) \ DATATYPE_DEFN( LogicStr ) \ DATATYPE_DEFN( DbFileCommand ) \ DATATYPE_DEFN( CommsSerialBaudRate ) \ DATATYPE_DEFN( CommsSerialDuplex ) \ DATATYPE_DEFN( CommsSerialRTSMode ) \ DATATYPE_DEFN( CommsSerialRTSOnLevel ) \ DATATYPE_DEFN( CommsSerialDTRMode ) \ DATATYPE_DEFN( CommsSerialDTROnLevel ) \ DATATYPE_DEFN( CommsSerialParity ) \ DATATYPE_DEFN( CommsSerialCTSMode ) \ DATATYPE_DEFN( CommsSerialDSRMode ) \ DATATYPE_DEFN( CommsSerialDCDMode ) \ DATATYPE_DEFN( CommsWlanNetworkAuthentication ) \ DATATYPE_DEFN( CommsWlanDataEncryption ) \ DATATYPE_DEFN( ScadaDNP3BinaryInputs ) \ DATATYPE_DEFN( ScadaDNP3BinaryOutputs ) \ DATATYPE_DEFN( ScadaDNP3BinaryCounters ) \ DATATYPE_DEFN( ScadaDNP3AnalogInputs ) \ DATATYPE_DEFN( ScadaDNP3OctetStrings ) \ DATATYPE_DEFN( BinaryInputObject01Enum ) \ DATATYPE_DEFN( BinaryInputObject02Enum ) \ DATATYPE_DEFN( BinaryOutputObject10Enum ) \ DATATYPE_DEFN( BinaryCounterObject20Enum ) \ DATATYPE_DEFN( BinaryCounterObject21Enum ) \ DATATYPE_DEFN( BinaryCounterObject22Enum ) \ DATATYPE_DEFN( BinaryCounterObject23Enum ) \ DATATYPE_DEFN( AnalogInputObject30Enum ) \ DATATYPE_DEFN( AnalogInputObject32Enum ) \ DATATYPE_DEFN( AnalogInputObject34Enum ) \ DATATYPE_DEFN( ProtStatus ) \ DATATYPE_DEFN( LogStartEnd ) \ DATATYPE_DEFN( LogEventSrc ) \ DATATYPE_DEFN( LogEventPhase ) \ DATATYPE_DEFN( EventDeState ) \ DATATYPE_DEFN( ActiveGrp ) \ DATATYPE_DEFN( CmsErrorCodes ) \ DATATYPE_DEFN( LineSupplyStatus ) \ DATATYPE_DEFN( TccCurveName ) \ DATATYPE_DEFN( HmiTccCurveClass ) \ DATATYPE_DEFN( SwState ) \ DATATYPE_DEFN( SimWriteAddr ) \ DATATYPE_DEFN( SimImageBytes ) \ DATATYPE_DEFN( OcEfSefDirs ) \ DATATYPE_DEFN( TripModeDLA ) \ DATATYPE_DEFN( HmiPassword ) \ DATATYPE_DEFN( HmiAuthGroup ) \ DATATYPE_DEFN( TripCurrent ) \ DATATYPE_DEFN( Bool ) \ DATATYPE_DEFN( IpAddr ) \ DATATYPE_DEFN( CommsPort ) \ DATATYPE_DEFN( SignalList ) \ DATATYPE_DEFN( CommsSerialPinStatus ) \ DATATYPE_DEFN( CommsConnectionStatus ) \ DATATYPE_DEFN( CommsPortDetectedType ) \ DATATYPE_DEFN( SerialPortConfigType ) \ DATATYPE_DEFN( UsbPortConfigType ) \ DATATYPE_DEFN( LanPortConfigType ) \ DATATYPE_DEFN( DataflowUnit ) \ DATATYPE_DEFN( SmpTick ) \ DATATYPE_DEFN( SignalBitField ) \ DATATYPE_DEFN( CommsConnType ) \ DATATYPE_DEFN( YesNo ) \ DATATYPE_DEFN( ProtectionState ) \ DATATYPE_DEFN( AutoIp ) \ DATATYPE_DEFN( ProgramSimCmd ) \ DATATYPE_DEFN( UsbDiscCmd ) \ DATATYPE_DEFN( UsbDiscStatus ) \ DATATYPE_DEFN( StrArray ) \ DATATYPE_DEFN( UpdateError ) \ DATATYPE_DEFN( SerialNumber ) \ DATATYPE_DEFN( SerialPartCode ) \ DATATYPE_DEFN( HmiMsgboxTitle ) \ DATATYPE_DEFN( HmiMsgboxOperation ) \ DATATYPE_DEFN( HmiMsgboxError ) \ DATATYPE_DEFN( BaxMetaId ) \ DATATYPE_DEFN( LogicStrCode ) \ DATATYPE_DEFN( DbPopulate ) \ DATATYPE_DEFN( HmiMode ) \ DATATYPE_DEFN( ClearCommand ) \ DATATYPE_DEFN( BxmlMapHmi ) \ DATATYPE_DEFN( BxmlNamespace ) \ DATATYPE_DEFN( BxmlType ) \ DATATYPE_DEFN( CmsConnectStatus ) \ DATATYPE_DEFN( ERR ) \ DATATYPE_DEFN( ErrModules ) \ DATATYPE_DEFN( FileSystemType ) \ DATATYPE_DEFN( HmiErrMsg ) \ DATATYPE_DEFN( HmiPwdGroup ) \ DATATYPE_DEFN( IOSettingMode ) \ DATATYPE_DEFN( SmaChannelState ) \ DATATYPE_DEFN( CommsProtocols ) \ DATATYPE_DEFN( ShutdownReason ) \ DATATYPE_DEFN( CommsSerialFlowControlMode ) \ DATATYPE_DEFN( HmiMsgboxMessage ) \ DATATYPE_DEFN( CommsSerialDCDControlMode ) \ DATATYPE_DEFN( T10BFormatMeasurand ) \ DATATYPE_DEFN( T101ChannelMode ) \ DATATYPE_DEFN( PeriodicCounterOperation ) \ DATATYPE_DEFN( T10BReportMode ) \ DATATYPE_DEFN( ScadaT10BMSP ) \ DATATYPE_DEFN( ScadaT10BMDP ) \ DATATYPE_DEFN( ScadaT10BCSC ) \ DATATYPE_DEFN( ScadaT10BCDC ) \ DATATYPE_DEFN( ScadaT10BMME ) \ DATATYPE_DEFN( ScadaT10BCSE ) \ DATATYPE_DEFN( ScadaT10BPME ) \ DATATYPE_DEFN( ScadaT10BMIT ) \ DATATYPE_DEFN( T10BControlMode ) \ DATATYPE_DEFN( T10BParamRepMode ) \ DATATYPE_DEFN( CommsIpProtocolMode ) \ DATATYPE_DEFN( CanIoInputRecTimes ) \ DATATYPE_DEFN( Arr8 ) \ DATATYPE_DEFN( GPIOSettingMode ) \ DATATYPE_DEFN( IoStatus ) \ DATATYPE_DEFN( ConfigIOCardNum ) \ DATATYPE_DEFN( SwitchgearTypes ) \ DATATYPE_DEFN( LocInputRecTimes ) \ DATATYPE_DEFN( LoSeqMode ) \ DATATYPE_DEFN( LogicChannelMode ) \ DATATYPE_DEFN( T10BCounterRepMode ) \ DATATYPE_DEFN( ACOState ) \ DATATYPE_DEFN( ACOOpMode ) \ DATATYPE_DEFN( ScadaT10BSinglePointInformation ) \ DATATYPE_DEFN( FailOk ) \ DATATYPE_DEFN( ACOHealthReason ) \ DATATYPE_DEFN( SupplyState ) \ DATATYPE_DEFN( LoadState ) \ DATATYPE_DEFN( MakeBeforeBreak ) \ DATATYPE_DEFN( T101TimeStampSize ) \ DATATYPE_DEFN( ScadaT10BDoublePointInformation ) \ DATATYPE_DEFN( ScadaT10BSingleCommand ) \ DATATYPE_DEFN( ScadaT10BDoubleCommand ) \ DATATYPE_DEFN( ScadaT10BSetPointCommand ) \ DATATYPE_DEFN( ScadaT10BParameterOfMeasuredValues ) \ DATATYPE_DEFN( ScadaT10BIntegratedTotal ) \ DATATYPE_DEFN( ScadaT10BMeasuredValues ) \ DATATYPE_DEFN( LogEventV ) \ DATATYPE_DEFN( PhaseConfig ) \ DATATYPE_DEFN( OscCaptureTime ) \ DATATYPE_DEFN( OscCapturePrior ) \ DATATYPE_DEFN( OscEvent ) \ DATATYPE_DEFN( LogTransferRequest ) \ DATATYPE_DEFN( LogTransferReply ) \ DATATYPE_DEFN( HmiMsgboxData ) \ DATATYPE_DEFN( OscSimStatus ) \ DATATYPE_DEFN( EventTitleId ) \ DATATYPE_DEFN( HrmIndividual ) \ DATATYPE_DEFN( Duration ) \ DATATYPE_DEFN( LogPQDIF ) \ DATATYPE_DEFN( OscCaptureFormat ) \ DATATYPE_DEFN( UpdateStep ) \ DATATYPE_DEFN( SimExtSupplyStatus ) \ DATATYPE_DEFN( ScadaScaleRangeTable ) \ DATATYPE_DEFN( UsbDiscEjectResult ) \ DATATYPE_DEFN( ScadaEventSource ) \ DATATYPE_DEFN( ExtDataId ) \ DATATYPE_DEFN( AutoOpenMode ) \ DATATYPE_DEFN( Uv4VoltageType ) \ DATATYPE_DEFN( Uv4Voltages ) \ DATATYPE_DEFN( SingleTripleMode ) \ DATATYPE_DEFN( OsmSwitchCount ) \ DATATYPE_DEFN( BatteryTestResult ) \ DATATYPE_DEFN( BatteryTestNotPerformedReason ) \ DATATYPE_DEFN( UserAnalogCfg ) \ DATATYPE_DEFN( SingleTripleVoltageType ) \ DATATYPE_DEFN( AbbrevStrId ) \ DATATYPE_DEFN( SystemStatus ) \ DATATYPE_DEFN( LockDynamic ) \ DATATYPE_DEFN( BatteryType ) \ DATATYPE_DEFN( DNP3SAKeyUpdateVerificationMethod ) \ DATATYPE_DEFN( MACAlgorithm ) \ DATATYPE_DEFN( DNP3SAVersion ) \ DATATYPE_DEFN( AESAlgorithm ) \ DATATYPE_DEFN( DNP3SAUpdateKeyInstallStep ) \ DATATYPE_DEFN( SecurityStatisticsObject121Enum ) \ DATATYPE_DEFN( SecurityStatisticsObject122Enum ) \ DATATYPE_DEFN( ScadaDNP3SecurityStatistics ) \ DATATYPE_DEFN( DNP3SAUpdateKeyInstalledStatus ) \ DATATYPE_DEFN( UsbDiscDNP3SAUpdateKeyFileError ) \ DATATYPE_DEFN( s61850GseSubscDefn ) \ DATATYPE_DEFN( IEC61499AppStatus ) \ DATATYPE_DEFN( IEC61499Command ) \ DATATYPE_DEFN( OperatingMode ) \ DATATYPE_DEFN( LatchEnable ) \ DATATYPE_DEFN( DDT ) \ DATATYPE_DEFN( DDTDef ) \ DATATYPE_DEFN( DemoUnitMode ) \ DATATYPE_DEFN( StrArray2 ) \ DATATYPE_DEFN( SwVersionExt ) \ DATATYPE_DEFN( RemoteUpdateCommand ) \ DATATYPE_DEFN( RemoteUpdateState ) \ DATATYPE_DEFN( RemoteUpdateStatus ) \ DATATYPE_DEFN( IEC61499FBOOTChEv ) \ DATATYPE_DEFN( CmsClientSupports ) \ DATATYPE_DEFN( IEC61499FBOOTStatus ) \ DATATYPE_DEFN( IEC61499FBOOTOper ) \ DATATYPE_DEFN( SignalQuality ) \ DATATYPE_DEFN( GpsTimeSyncStatus ) \ DATATYPE_DEFN( WlanConnectionMode ) \ DATATYPE_DEFN( MobileNetworkSimCardStatus ) \ DATATYPE_DEFN( MobileNetworkMode ) \ DATATYPE_DEFN( PhaseToSelection ) \ DATATYPE_DEFN( BusAndLine ) \ DATATYPE_DEFN( SyncLiveDeadMode ) \ DATATYPE_DEFN( SynchroniserStatus ) \ DATATYPE_DEFN( PowerFlowDirection ) \ DATATYPE_DEFN( CoReq ) \ DATATYPE_DEFN( AutoRecloseStatus ) \ DATATYPE_DEFN( TripsToLockout ) \ DATATYPE_DEFN( YnOperationalMode ) \ DATATYPE_DEFN( YnDirectionalMode ) \ DATATYPE_DEFN( HmiListSource ) \ DATATYPE_DEFN( StrArray1024 ) \ DATATYPE_DEFN( RelayModelName ) \ DATATYPE_DEFN( CmsSecurityLevel ) \ DATATYPE_DEFN( ModemConnectStatus ) \ DATATYPE_DEFN( S61850CIDUpdateStatus ) \ DATATYPE_DEFN( WLanTxPower ) \ DATATYPE_DEFN( WlanConnectStatus ) \ DATATYPE_DEFN( UpdateInterlockStatus ) \ DATATYPE_DEFN( GPSStatus ) \ DATATYPE_DEFN( ResetCommand ) \ DATATYPE_DEFN( Array16 ) \ DATATYPE_DEFN( AlertDisplayMode ) \ DATATYPE_DEFN( Signals ) \ DATATYPE_DEFN( CommsPortHmi ) \ DATATYPE_DEFN( CommsPortHmiGadget ) \ DATATYPE_DEFN( CommsPortHmiNoLAN ) \ DATATYPE_DEFN( HrmIndividualSinglePhase ) \ DATATYPE_DEFN( Uv4VoltageTypeSinglePhase ) \ DATATYPE_DEFN( WlanPortConfigType ) \ DATATYPE_DEFN( MobileNetworkPortConfigType ) \ DATATYPE_DEFN( CommsPortHmiNoUSBC ) \ DATATYPE_DEFN( CommsPortHmiNoUSBCWIFI ) \ DATATYPE_DEFN( CommsPortHmiNoUSBCWIFI4G ) \ DATATYPE_DEFN( CommsPortLANSetREL01 ) \ DATATYPE_DEFN( CommsPortLANSetREL02 ) \ DATATYPE_DEFN( CommsPortLANSetREL03 ) \ DATATYPE_DEFN( CommsPortLANSetREL15WLAN ) \ DATATYPE_DEFN( CommsPortLANSetREL15WWAN ) \ DATATYPE_DEFN( FaultLocFaultType ) \ DATATYPE_DEFN( TimeUnit ) \ DATATYPE_DEFN( ScadaProtocolLoadedStatus ) \ DATATYPE_DEFN( diagDataGeneral1 ) \ DATATYPE_DEFN( SWModel ) \ DATATYPE_DEFN( NeutralPolarisation ) \ DATATYPE_DEFN( TimeSyncStatus ) \ DATATYPE_DEFN( Ipv6Addr ) \ DATATYPE_DEFN( IpVersion ) \ DATATYPE_DEFN( SDCardStatus ) \ DATATYPE_DEFN( OscSamplesPerCycle ) \ DATATYPE_DEFN( OscCaptureTimeExt ) \ DATATYPE_DEFN( HrmIndividualExt ) \ DATATYPE_DEFN( HrmIndividualSinglePhaseExt ) \ DATATYPE_DEFN( RC20CommsPortNoUSBCWIFI ) \ DATATYPE_DEFN( RC20CommsPortNoUSBCWIFI4G ) \ DATATYPE_DEFN( LogHrm64 ) \ DATATYPE_DEFN( BatteryCapacityConfidence ) \ DATATYPE_DEFN( PMUPerfClass ) \ DATATYPE_DEFN( RC20CommsPortLAN ) \ DATATYPE_DEFN( RC20CommsPortLAN4G ) \ DATATYPE_DEFN( PMUQuality ) \ DATATYPE_DEFN( PMUStatus ) \ DATATYPE_DEFN( PMUConfigStatus ) \ DATATYPE_DEFN( NamedVariableListDef ) \ DATATYPE_DEFN( LineSupplyRange ) \ DATATYPE_DEFN( TimeSyncUnlockedTime ) \ DATATYPE_DEFN( CBF_backup_trip ) \ DATATYPE_DEFN( CbfCurrentMode ) \ DATATYPE_DEFN( CommsPortREL15 ) \ DATATYPE_DEFN( CommsPortREL204G ) \ DATATYPE_DEFN( CommsPortREL02 ) \ DATATYPE_DEFN( CommsPortREL01 ) \ DATATYPE_DEFN( ActiveInactive ) \ DATATYPE_DEFN( UserCredentialResultStatus ) \ DATATYPE_DEFN( CredentialOperationMode ) \ DATATYPE_DEFN( UserName ) \ DATATYPE_DEFN( Password ) \ DATATYPE_DEFN( RoleBitMap ) \ DATATYPE_DEFN( ConstraintT10BRG ) \ DATATYPE_DEFN( ConnectionStateT10BRG ) \ DATATYPE_DEFN( ConnectionMethodT10BRG ) \ DATATYPE_DEFN( pinPukResult ) \ DATATYPE_DEFN( ChangedLog ) /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBDATATYPEDEFS_H_ <file_sep>CAST5 vector creation ===================== This page documents the code that was used to generate the CAST5 CBC, CFB, OFB, and CTR test vectors as well as the code used to verify them against another implementation. The CBC, CFB, and OFB vectors were generated using OpenSSL and the CTR vectors were generated using Apple's CommonCrypto. All the generated vectors were verified with Go. Creation -------- ``cryptography`` was modified to support CAST5 in CBC, CFB, and OFB modes. Then the following Python script was run to generate the vector files. .. literalinclude:: /development/custom-vectors/cast5/generate_cast5.py Download link: :download:`generate_cast5.py </development/custom-vectors/cast5/generate_cast5.py>` Verification ------------ The following Go code was used to verify the vectors. .. literalinclude:: /development/custom-vectors/cast5/verify_cast5.go :language: go Download link: :download:`verify_cast5.go </development/custom-vectors/cast5/verify_cast5.go>` <file_sep>Debugging problems ================== Check it's still a problem with latest lws ------------------------------------------ Older versions of lws don't attract any new work after they are released (see [the release policy](https://libwebsockets.org/git/libwebsockets/tree/READMEs/README.release-policy.md) for details); for a while they will get backported bugfixes but that's it. All new work and bugfixes happen on master branch. Old, old versions may be convenient for you to use for some reason. But unless you pay for support or have contributed work to lws so we feel we owe you some consideration, nobody else has any reason to particularly care about solving issues on ancient versions. Whereas if the problem exists on master, and can be reproduced by developers, it usually gets attention, often immediately. If the problem doesn't exist on master, you can either use master or check also the -stable branch of the last released version to see if it was already solved there. Library is a component ---------------------- As a library, lws is always just a component in a bigger application. When users have a problem involving lws, what is happening in the bigger application is usually critical to understand what is going on (and where the solution lies). Sometimes access to the remote peer like server or client is also necessary to provoke the symptom. Sometimes, the problem is in lws, but sometimes the problem is not in lws but in these other pieces. Many users are able to share their sources, but others decide not to, for presumed "commercial advantage" or whatever. (In any event, it can be painful looking through large chunks of someone else's sources for problems when that is not the library author's responsibility.) This makes answering questions like "what is wrong with my code I am not going to show you?" or even "what is wrong with my code?" very difficult. Even if it's clear there is a problem somewhere, it cannot be understood or reproduced by anyone else if it needs user code that isn't provided. The biggest question is, "is this an lws problem actually"? To solve that the best solution is to strip out all or as much user code as possible, and see if the problem is still coming. Use the test apps / minimal examples as sanity checks ----------------------------------------------------- The test server and client, and any more specifically relevant minimal example are extremely useful for sanity checks and debugging guidance. - **test apps work on your platform**, then either - your user code is broken, align it to how the test apps work, or, - something from your code is required to show an lws problem, provide a minimal patch on a test app so it can be reproduced - **test apps break on your platform**, but work on, eg, x86_64, either - toolchain or platform-specific (eg, OS) issue, or - lws platform support issue - **test apps break everywhere** - sounds like lws problem, info to reproduce and / or a patch is appreciated <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ /* define our OpenSSL API compatibility level to 1.0.1. Any symbols older than that will raise an error during compilation. We can raise this number again after we drop 1.0.2 support in the distant future. */ #define OPENSSL_API_COMPAT 0x10001000L #include <openssl/opensslv.h> #if defined(LIBRESSL_VERSION_NUMBER) #define CRYPTOGRAPHY_IS_LIBRESSL 1 #else #define CRYPTOGRAPHY_IS_LIBRESSL 0 #endif /* LibreSSL removed e_os2.h from the public headers so we'll only include it if we're using vanilla OpenSSL. */ #if !CRYPTOGRAPHY_IS_LIBRESSL #include <openssl/e_os2.h> #endif #if defined(_WIN32) #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <Wincrypt.h> #include <Winsock2.h> #endif #define CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER \ (CRYPTOGRAPHY_IS_LIBRESSL && LIBRESSL_VERSION_NUMBER >= 0x2070000fL) #define CRYPTOGRAPHY_OPENSSL_102_OR_GREATER \ (OPENSSL_VERSION_NUMBER >= 0x10002000 && !CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_102L_OR_GREATER \ (OPENSSL_VERSION_NUMBER >= 0x100020cf && !CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_110_OR_GREATER \ (OPENSSL_VERSION_NUMBER >= 0x10100000 && !CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_110F_OR_GREATER \ (OPENSSL_VERSION_NUMBER >= 0x1010006f && !CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_BETWEEN_111_and_111PRE9 \ (OPENSSL_VERSION_NUMBER >= 0x10101000 && \ OPENSSL_VERSION_NUMBER <= 0x10101009) #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 \ (OPENSSL_VERSION_NUMBER < 0x10002000 || CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_102I \ (OPENSSL_VERSION_NUMBER < 0x1000209f || CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 \ (OPENSSL_VERSION_NUMBER < 0x10100000 || CRYPTOGRAPHY_IS_LIBRESSL) #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_110J \ (OPENSSL_VERSION_NUMBER < 0x101000af || CRYPTOGRAPHY_IS_LIBRESSL) """ TYPES = """ static const int CRYPTOGRAPHY_OPENSSL_102L_OR_GREATER; static const int CRYPTOGRAPHY_OPENSSL_110_OR_GREATER; static const int CRYPTOGRAPHY_OPENSSL_110F_OR_GREATER; static const int CRYPTOGRAPHY_OPENSSL_LESS_THAN_102I; static const int CRYPTOGRAPHY_OPENSSL_LESS_THAN_102; static const int CRYPTOGRAPHY_IS_LIBRESSL; """ FUNCTIONS = """ """ CUSTOMIZATIONS = """ """ <file_sep>/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #if defined(LWS_WITH_STRUCT_SQLITE3) #include <sqlite3.h> #endif typedef enum { LSMT_SIGNED, LSMT_UNSIGNED, LSMT_BOOLEAN, LSMT_STRING_CHAR_ARRAY, LSMT_STRING_PTR, LSMT_LIST, LSMT_CHILD_PTR, LSMT_SCHEMA, } lws_struct_map_type_eum; typedef struct lejp_collation { struct lws_dll2 chunks; int len; char buf[LEJP_STRING_CHUNK + 1]; } lejp_collation_t; typedef struct lws_struct_map { const char *colname; const struct lws_struct_map *child_map; lejp_callback lejp_cb; size_t ofs; /* child dll2; points to dll2_owner */ size_t aux; size_t ofs_clist; size_t child_map_size; lws_struct_map_type_eum type; } lws_struct_map_t; typedef int (*lws_struct_args_cb)(void *obj, void *cb_arg); typedef struct lws_struct_args { const lws_struct_map_t *map_st[LEJP_MAX_PARSING_STACK_DEPTH]; lws_struct_args_cb cb; struct lwsac *ac; void *cb_arg; void *dest; size_t dest_len; size_t toplevel_dll2_ofs; size_t map_entries_st[LEJP_MAX_PARSING_STACK_DEPTH]; size_t ac_block_size; int subtype; int top_schema_index; /* * temp ac used to collate unknown possibly huge strings before final * allocation and copy */ struct lwsac *ac_chunks; struct lws_dll2_owner chunks_owner; size_t chunks_length; } lws_struct_args_t; #define LSM_SIGNED(type, name, qname) \ { \ qname, \ NULL, \ NULL, \ offsetof(type, name), \ sizeof ((type *)0)->name, \ 0, \ 0, \ LSMT_SIGNED \ } #define LSM_UNSIGNED(type, name, qname) \ { \ qname, \ NULL, \ NULL, \ offsetof(type, name), \ sizeof ((type *)0)->name, \ 0, \ 0, \ LSMT_UNSIGNED \ } #define LSM_BOOLEAN(type, name, qname) \ { \ qname, \ NULL, \ NULL, \ offsetof(type, name), \ sizeof ((type *)0)->name, \ 0, \ 0, \ LSMT_BOOLEAN \ } #define LSM_CARRAY(type, name, qname) \ { \ qname, \ NULL, \ NULL, \ offsetof(type, name), \ sizeof (((type *)0)->name), \ 0, \ 0, \ LSMT_STRING_CHAR_ARRAY \ } #define LSM_STRING_PTR(type, name, qname) \ { \ qname, \ NULL, \ NULL, \ offsetof(type, name), \ sizeof (((type *)0)->name), \ 0, \ 0, \ LSMT_STRING_PTR \ } #define LSM_LIST(ptype, pname, ctype, cname, lejp_cb, cmap, qname) \ { \ qname, \ cmap, \ lejp_cb, \ offsetof(ptype, pname), \ sizeof (ctype), \ offsetof(ctype, cname), \ LWS_ARRAY_SIZE(cmap), \ LSMT_LIST \ } #define LSM_CHILD_PTR(ptype, pname, ctype, lejp_cb, cmap, qname) \ { \ qname, \ cmap, \ lejp_cb, \ offsetof(ptype, pname), \ sizeof (ctype), \ 0, \ LWS_ARRAY_SIZE(cmap), \ LSMT_CHILD_PTR \ } #define LSM_SCHEMA(ctype, lejp_cb, map, schema_name) \ { \ schema_name, \ map, \ lejp_cb, \ 0, \ sizeof (ctype), \ 0, \ LWS_ARRAY_SIZE(map), \ LSMT_SCHEMA \ } #define LSM_SCHEMA_DLL2(ctype, cdll2mem, lejp_cb, map, schema_name) \ { \ schema_name, \ map, \ lejp_cb, \ offsetof(ctype, cdll2mem), \ sizeof (ctype), \ 0, \ LWS_ARRAY_SIZE(map), \ LSMT_SCHEMA \ } typedef struct lws_struct_serialize_st { const struct lws_dll2 *dllpos; const lws_struct_map_t *map; const char *obj; size_t map_entries; size_t map_entry; size_t size; char subsequent; char idt; } lws_struct_serialize_st_t; enum { LSSERJ_FLAG_PRETTY = 1 }; typedef struct lws_struct_serialize { lws_struct_serialize_st_t st[LEJP_MAX_PARSING_STACK_DEPTH]; size_t offset; size_t remaining; int sp; int flags; } lws_struct_serialize_t; typedef enum { LSJS_RESULT_CONTINUE, LSJS_RESULT_FINISH, LSJS_RESULT_ERROR } lws_struct_json_serialize_result_t; LWS_VISIBLE LWS_EXTERN int lws_struct_json_init_parse(struct lejp_ctx *ctx, lejp_callback cb, void *user); LWS_VISIBLE LWS_EXTERN signed char lws_struct_schema_only_lejp_cb(struct lejp_ctx *ctx, char reason); LWS_VISIBLE LWS_EXTERN signed char lws_struct_default_lejp_cb(struct lejp_ctx *ctx, char reason); LWS_VISIBLE LWS_EXTERN lws_struct_serialize_t * lws_struct_json_serialize_create(const lws_struct_map_t *map, size_t map_entries, int flags, const void *ptoplevel); LWS_VISIBLE LWS_EXTERN void lws_struct_json_serialize_destroy(lws_struct_serialize_t **pjs); LWS_VISIBLE LWS_EXTERN lws_struct_json_serialize_result_t lws_struct_json_serialize(lws_struct_serialize_t *js, uint8_t *buf, size_t len, size_t *written); #if defined(LWS_WITH_STRUCT_SQLITE3) LWS_VISIBLE LWS_EXTERN int lws_struct_sq3_serialize(sqlite3 *pdb, const lws_struct_map_t *schema, lws_dll2_owner_t *owner, uint32_t manual_idx); LWS_VISIBLE LWS_EXTERN int lws_struct_sq3_deserialize(sqlite3 *pdb, const char *filter, const char *order, const lws_struct_map_t *schema, lws_dll2_owner_t *o, struct lwsac **ac, int start, int limit); LWS_VISIBLE LWS_EXTERN int lws_struct_sq3_create_table(sqlite3 *pdb, const lws_struct_map_t *schema); LWS_VISIBLE LWS_EXTERN int lws_struct_sq3_open(struct lws_context *context, const char *sqlite3_path, sqlite3 **pdb); LWS_VISIBLE LWS_EXTERN int lws_struct_sq3_close(sqlite3 **pdb); #endif <file_sep># get current directory LOCAL_PATH := $(call my-dir) # libz.a # include $(CLEAR_VARS) LOCAL_MODULE := libz LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/lib/libz.a include $(PREBUILT_STATIC_LIBRARY) # libssl.a # include $(CLEAR_VARS) LOCAL_MODULE := libssl LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/lib/libssl.a include $(PREBUILT_STATIC_LIBRARY) # libcrypto.a # include $(CLEAR_VARS) LOCAL_MODULE := libcrypto LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/lib/libcrypto.a include $(PREBUILT_STATIC_LIBRARY) # libwebsockets.a # include $(CLEAR_VARS) LOCAL_MODULE := libwebsockets LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/lib/libwebsockets.a include $(PREBUILT_STATIC_LIBRARY) # liblwsservice.so # include $(CLEAR_VARS) LOCAL_DISABLE_FATAL_LINKER_WARNINGS := true LOCAL_MODULE := lwsservice LOCAL_SRC_FILES := LwsService.cpp LOCAL_C_INCLUDES := $(LOCAL_PATH) $(TARGET_ARCH_ABI)/include LOCAL_STATIC_LIBRARIES := websockets z ssl crypto LOCAL_LDLIBS := -llog include $(BUILD_SHARED_LIBRARY) <file_sep>#!/bin/bash export websockets_bin_dir="bin/freescale" if [ -e "$websockets_bin_dir" ] then exit 0 fi . ./setup_common.sh ret=-1 count=0 while [ $ret -ne 0 ]; do cmake -G "Unix Makefiles" -DRC10_LIB_SUBPATH=lib -DCMAKE_TOOLCHAIN_FILE=./toolchain-freescale.cmake $NOJA_CMAKE_VARS ../../ ret=$? (( count += 1 )) if [ $count -gt 3 ]; then exit -1 fi done <file_sep>## Library sources layout Code that goes in the libwebsockets library itself lives down ./lib Path|Sources ---|--- lib/core|Core lws code related to generic fd and wsi servicing and management lib/core-net|Core lws code that applies only if networking enabled lib/event-libs|Code containing optional event-lib specific adaptations lib/jose|JOSE / JWS / JWK / JWE implementations lib/misc|Code for various mostly optional miscellaneous features lib/plat|Platform-specific adaptation code lib/roles|Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc lib/system|Code for system-level features, eg, dhcpclient lib/tls|Code supporting the various TLS libraries <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function from cryptography import utils from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import padding from cryptography.hazmat.primitives.ciphers import CipherAlgorithm from cryptography.hazmat.primitives.ciphers.modes import Mode @utils.register_interface(CipherAlgorithm) class DummyCipherAlgorithm(object): name = "dummy-cipher" block_size = 128 key_size = None @utils.register_interface(Mode) class DummyMode(object): name = "dummy-mode" def validate_for_algorithm(self, algorithm): pass @utils.register_interface(hashes.HashAlgorithm) class DummyHashAlgorithm(object): name = "dummy-hash" block_size = None digest_size = None @utils.register_interface(serialization.KeySerializationEncryption) class DummyKeySerializationEncryption(object): pass @utils.register_interface(padding.AsymmetricPadding) class DummyAsymmetricPadding(object): name = "dummy-padding" <file_sep> /* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * This is included from private-lib-core.h if either H1 or H2 roles are * enabled */ #if defined(LWS_WITH_HUBBUB) #include <hubbub/hubbub.h> #include <hubbub/parser.h> #endif #if defined(LWS_WITH_HTTP_STREAM_COMPRESSION) #include "private-lib-roles-http-compression.h" #endif #define lwsi_role_http(wsi) (lwsi_role_h1(wsi) || lwsi_role_h2(wsi)) enum http_version { HTTP_VERSION_1_0, HTTP_VERSION_1_1, HTTP_VERSION_2 }; enum http_conn_type { HTTP_CONNECTION_CLOSE, HTTP_CONNECTION_KEEP_ALIVE }; /* * This is totally opaque to code using the library. It's exported as a * forward-reference pointer-only declaration; the user can use the pointer with * other APIs to get information out of it. */ #if defined(LWS_PLAT_FREERTOS) typedef uint16_t ah_data_idx_t; #else typedef uint32_t ah_data_idx_t; #endif struct lws_fragments { ah_data_idx_t offset; uint16_t len; uint8_t nfrag; /* which ah->frag[] continues this content, or 0 */ uint8_t flags; /* only http2 cares */ }; #if defined(LWS_WITH_RANGES) enum range_states { LWSRS_NO_ACTIVE_RANGE, LWSRS_BYTES_EQ, LWSRS_FIRST, LWSRS_STARTING, LWSRS_ENDING, LWSRS_COMPLETED, LWSRS_SYNTAX, }; struct lws_range_parsing { unsigned long long start, end, extent, agg, budget; const char buf[128]; int pos; enum range_states state; char start_valid, end_valid, ctr, count_ranges, did_try, inside, send_ctr; }; int lws_ranges_init(struct lws *wsi, struct lws_range_parsing *rp, unsigned long long extent); int lws_ranges_next(struct lws_range_parsing *rp); void lws_ranges_reset(struct lws_range_parsing *rp); #endif /* * these are assigned from a pool held in the context. * Both client and server mode uses them for http header analysis */ struct allocated_headers { struct allocated_headers *next; /* linked list */ struct lws *wsi; /* owner */ char *data; /* prepared by context init to point to dedicated storage */ ah_data_idx_t data_length; /* * the randomly ordered fragments, indexed by frag_index and * lws_fragments->nfrag for continuation. */ struct lws_fragments frags[WSI_TOKEN_COUNT]; time_t assigned; /* * for each recognized token, frag_index says which frag[] his data * starts in (0 means the token did not appear) * the actual header data gets dumped as it comes in, into data[] */ uint8_t frag_index[WSI_TOKEN_COUNT]; #if defined(LWS_WITH_CLIENT) char initial_handshake_hash_base64[30]; #endif int hdr_token_idx; ah_data_idx_t pos; ah_data_idx_t http_response; ah_data_idx_t current_token_limit; #if defined(LWS_WITH_CUSTOM_HEADERS) ah_data_idx_t unk_pos; /* to undo speculative unknown header */ ah_data_idx_t unk_value_pos; ah_data_idx_t unk_ll_head; ah_data_idx_t unk_ll_tail; #endif int16_t lextable_pos; uint8_t in_use; uint8_t nfrag; char /*enum uri_path_states */ ups; char /*enum uri_esc_states */ ues; char esc_stash; char post_literal_equal; uint8_t /* enum lws_token_indexes */ parser_state; }; #if defined(LWS_WITH_HUBBUB) struct lws_rewrite { hubbub_parser *parser; hubbub_parser_optparams params; const char *from, *to; int from_len, to_len; unsigned char *p, *end; struct lws *wsi; }; static LWS_INLINE int hstrcmp(hubbub_string *s, const char *p, int len) { if ((int)s->len != len) return 1; return strncmp((const char *)s->ptr, p, len); } typedef hubbub_error (*hubbub_callback_t)(const hubbub_token *token, void *pw); LWS_EXTERN struct lws_rewrite * lws_rewrite_create(struct lws *wsi, hubbub_callback_t cb, const char *from, const char *to); LWS_EXTERN void lws_rewrite_destroy(struct lws_rewrite *r); LWS_EXTERN int lws_rewrite_parse(struct lws_rewrite *r, const unsigned char *in, int in_len); #endif struct lws_pt_role_http { struct allocated_headers *ah_list; struct lws *ah_wait_list; #ifdef LWS_WITH_CGI struct lws_cgi *cgi_list; #endif int ah_wait_list_length; uint32_t ah_pool_length; int ah_count_in_use; }; struct lws_peer_role_http { uint32_t count_ah; uint32_t total_ah; }; struct lws_vhost_role_http { #if defined(LWS_CLIENT_HTTP_PROXYING) char http_proxy_address[128]; #endif const struct lws_http_mount *mount_list; const char *error_document_404; #if defined(LWS_CLIENT_HTTP_PROXYING) unsigned int http_proxy_port; #endif }; #ifdef LWS_WITH_ACCESS_LOG struct lws_access_log { char *header_log; char *user_agent; char *referrer; unsigned long sent; int response; }; #endif #define LWS_HTTP_CHUNK_HDR_MAX_SIZE (6 + 2) /* 6 hex digits and then CRLF */ #define LWS_HTTP_CHUNK_TRL_MAX_SIZE (2 + 5) /* CRLF, then maybe 0 CRLF CRLF */ struct _lws_http_mode_related { struct lws *new_wsi_list; unsigned char *pending_return_headers; size_t pending_return_headers_len; size_t prh_content_length; #if defined(LWS_WITH_HTTP_PROXY) struct lws_rewrite *rw; struct lws_buflist *buflist_post_body; #endif struct allocated_headers *ah; struct lws *ah_wait_list; unsigned long writeable_len; #if defined(LWS_WITH_FILE_OPS) lws_filepos_t filepos; lws_filepos_t filelen; lws_fop_fd_t fop_fd; #endif #if defined(LWS_WITH_CLIENT) char multipart_boundary[16]; #endif #if defined(LWS_WITH_RANGES) struct lws_range_parsing range; char multipart_content_type[64]; #endif #ifdef LWS_WITH_ACCESS_LOG struct lws_access_log access_log; #endif #ifdef LWS_WITH_CGI struct lws_cgi *cgi; /* wsi being cgi master have one of these */ #endif #if defined(LWS_WITH_HTTP_STREAM_COMPRESSION) struct lws_compression_support *lcs; lws_comp_ctx_t comp_ctx; unsigned char comp_accept_mask; #endif enum http_version request_version; enum http_conn_type conn_type; lws_filepos_t tx_content_length; lws_filepos_t tx_content_remain; lws_filepos_t rx_content_length; lws_filepos_t rx_content_remain; #if defined(LWS_WITH_HTTP_PROXY) unsigned int perform_rewrite:1; unsigned int proxy_clientside:1; unsigned int proxy_parent_chunked:1; #endif unsigned int deferred_transaction_completed:1; unsigned int content_length_explicitly_zero:1; unsigned int content_length_given:1; unsigned int did_stream_close:1; unsigned int multipart:1; unsigned int cgi_transaction_complete:1; unsigned int multipart_issue_boundary:1; }; #if defined(LWS_WITH_CLIENT) enum lws_chunk_parser { ELCP_HEX, ELCP_CR, ELCP_CONTENT, ELCP_POST_CR, ELCP_POST_LF, ELCP_TRAILER_CR, ELCP_TRAILER_LF }; #endif enum lws_parse_urldecode_results { LPUR_CONTINUE, LPUR_SWALLOW, LPUR_FORBID, LPUR_EXCESSIVE, }; enum lws_check_basic_auth_results { LCBA_CONTINUE, LCBA_FAILED_AUTH, LCBA_END_TRANSACTION, }; enum lws_check_basic_auth_results lws_check_basic_auth(struct lws *wsi, const char *basic_auth_login_file, unsigned int auth_mode); int lws_unauthorised_basic_auth(struct lws *wsi); int lws_read_h1(struct lws *wsi, unsigned char *buf, lws_filepos_t len); void _lws_header_table_reset(struct allocated_headers *ah); LWS_EXTERN int _lws_destroy_ah(struct lws_context_per_thread *pt, struct allocated_headers *ah); int lws_http_proxy_start(struct lws *wsi, const struct lws_http_mount *hit, char *uri_ptr, char ws); void lws_sul_http_ah_lifecheck(lws_sorted_usec_list_t *sul); uint8_t * lws_http_multipart_headers(struct lws *wsi, uint8_t *p); int lws_client_create_tls(struct lws *wsi, const char **pcce, int do_c1); <file_sep># Lws Protocol bindings for Secure Streams This directory contains the code wiring up normal lws protocols to Secure Streams. ## The lws_protocols callback This is the normal lws struct lws_protocols callback that handles events and traffic on the lws protocol being supported. The various events and traffic are converted into calls using the Secure Streams api, and Secure Streams events. ## The connect_munge helper Different protocols have different semantics in the arguments to the client connect function, this protocol-specific helper is called to munge the connect_info struct to match the details of the protocol selected. The `ss->policy->aux` string is used to hold protocol-specific information passed in the from the policy, eg, the URL path or websockets subprotocol name. ## The (library-private) ss_pcols export Each protocol binding exports two things to other parts of lws (they are not exported to user code) - a struct lws_protocols, including a pointer to the callback - a struct ss_pcols describing how secure_streams should use, including a pointer to the related connect_munge helper. In ./lib/core-net/vhost.c, enabled protocols are added to vhost protcols lists so they may be used. And in ./lib/secure-streams/secure-streams.c, enabled struct ss_pcols are listed and checked for matches when the user creates a new Secure Stream. <file_sep>#!/bin/bash #!/bin/bash echo "----------------------------------------------------------------------------" echo "BUILD-SYSTEM was switched from automake to cmake" echo "----------------------------------------------------------------------------" echo "" echo "run cmake or cmake-gui to set up development environment"<file_sep>ARC4 vector creation ==================== This page documents the code that was used to generate the ARC4 test vectors for key lengths not available in RFC 6229. All the vectors were generated using OpenSSL and verified with Go. Creation -------- ``cryptography`` was modified to support ARC4 key lengths not listed in RFC 6229. Then the following Python script was run to generate the vector files. .. literalinclude:: /development/custom-vectors/arc4/generate_arc4.py Download link: :download:`generate_arc4.py </development/custom-vectors/arc4/generate_arc4.py>` Verification ------------ The following Go code was used to verify the vectors. .. literalinclude:: /development/custom-vectors/arc4/verify_arc4.go :language: go Download link: :download:`verify_arc4.go </development/custom-vectors/arc4/verify_arc4.go>` <file_sep>Contributing to cryptography ============================ As an open source project, cryptography welcomes contributions of many forms. Examples of contributions include: * Code patches * Documentation improvements * Bug reports and patch reviews Extensive contribution guidelines are available in the repository at ``docs/development/index.rst``, or online at: https://cryptography.io/en/latest/development/ Security issues --------------- To report a security issue, please follow the special `security reporting guidelines`_, do not report them in the public issue tracker. .. _`security reporting guidelines`: https://cryptography.io/en/latest/security/ <file_sep>/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #if !defined(__LWS_CORE_NET_PRIVATE_H__) #define __LWS_CORE_NET_PRIVATE_H__ #if !defined(_POSIX_C_SOURCE) #define _POSIX_C_SOURCE 200112L #endif /* * Generic pieces needed to manage muxable stream protocols like h2 */ struct lws_muxable { struct lws *parent_wsi; struct lws *child_list; struct lws *sibling_list; unsigned int my_sid; unsigned int child_count; uint32_t highest_sid; uint8_t requested_POLLOUT; }; #include "private-lib-roles.h" #ifdef LWS_WITH_IPV6 #if defined(WIN32) || defined(_WIN32) #include <iphlpapi.h> #else #include <net/if.h> #endif #endif #ifdef __cplusplus extern "C" { #endif /* * All lws_tls...() functions must return this type, converting the * native backend result and doing the extra work to determine which one * as needed. * * Native TLS backend return codes are NOT ALLOWED outside the backend. * * Non-SSL mode also uses these types. */ enum lws_ssl_capable_status { LWS_SSL_CAPABLE_ERROR = -1, /* it failed */ LWS_SSL_CAPABLE_DONE = 0, /* it succeeded */ LWS_SSL_CAPABLE_MORE_SERVICE_READ = -2, /* retry WANT_READ */ LWS_SSL_CAPABLE_MORE_SERVICE_WRITE = -3, /* retry WANT_WRITE */ LWS_SSL_CAPABLE_MORE_SERVICE = -4, /* general retry */ }; /* * * ------ roles ------ * */ /* null-terminated array of pointers to roles lws built with */ extern const struct lws_role_ops *available_roles[]; #define LWS_FOR_EVERY_AVAILABLE_ROLE_START(xx) { \ const struct lws_role_ops **ppxx = available_roles; \ while (*ppxx) { \ const struct lws_role_ops *xx = *ppxx++; #define LWS_FOR_EVERY_AVAILABLE_ROLE_END }} /* * * ------ event_loop ops ------ * */ /* enums of socks version */ enum socks_version { SOCKS_VERSION_4 = 4, SOCKS_VERSION_5 = 5 }; /* enums of subnegotiation version */ enum socks_subnegotiation_version { SOCKS_SUBNEGOTIATION_VERSION_1 = 1, }; /* enums of socks commands */ enum socks_command { SOCKS_COMMAND_CONNECT = 1, SOCKS_COMMAND_BIND = 2, SOCKS_COMMAND_UDP_ASSOCIATE = 3 }; /* enums of socks address type */ enum socks_atyp { SOCKS_ATYP_IPV4 = 1, SOCKS_ATYP_DOMAINNAME = 3, SOCKS_ATYP_IPV6 = 4 }; /* enums of socks authentication methods */ enum socks_auth_method { SOCKS_AUTH_NO_AUTH = 0, SOCKS_AUTH_GSSAPI = 1, SOCKS_AUTH_USERNAME_PASSWORD = 2 }; /* enums of subnegotiation status */ enum socks_subnegotiation_status { SOCKS_SUBNEGOTIATION_STATUS_SUCCESS = 0, }; /* enums of socks request reply */ enum socks_request_reply { SOCKS_REQUEST_REPLY_SUCCESS = 0, SOCKS_REQUEST_REPLY_FAILURE_GENERAL = 1, SOCKS_REQUEST_REPLY_CONNECTION_NOT_ALLOWED = 2, SOCKS_REQUEST_REPLY_NETWORK_UNREACHABLE = 3, SOCKS_REQUEST_REPLY_HOST_UNREACHABLE = 4, SOCKS_REQUEST_REPLY_CONNECTION_REFUSED = 5, SOCKS_REQUEST_REPLY_TTL_EXPIRED = 6, SOCKS_REQUEST_REPLY_COMMAND_NOT_SUPPORTED = 7, SOCKS_REQUEST_REPLY_ATYP_NOT_SUPPORTED = 8 }; /* enums used to generate socks messages */ enum socks_msg_type { /* greeting */ SOCKS_MSG_GREETING, /* credential, user name and password */ SOCKS_MSG_USERNAME_PASSWORD, /* connect command */ SOCKS_MSG_CONNECT }; enum { LWS_RXFLOW_ALLOW = (1 << 0), LWS_RXFLOW_PENDING_CHANGE = (1 << 1), }; typedef enum lws_parser_return { LPR_FORBIDDEN = -2, LPR_FAIL = -1, LPR_OK = 0, LPR_DO_FALLBACK = 2, } lws_parser_return_t; enum pmd_return { PMDR_UNKNOWN, PMDR_DID_NOTHING, PMDR_HAS_PENDING, PMDR_EMPTY_NONFINAL, PMDR_EMPTY_FINAL, PMDR_FAILED = -1 }; #if defined(LWS_WITH_PEER_LIMITS) struct lws_peer { struct lws_peer *next; struct lws_peer *peer_wait_list; time_t time_created; time_t time_closed_all; uint8_t addr[32]; uint32_t hash; uint32_t count_wsi; uint32_t total_wsi; #if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2) struct lws_peer_role_http http; #endif uint8_t af; }; #endif enum { LWS_EV_READ = (1 << 0), LWS_EV_WRITE = (1 << 1), LWS_EV_START = (1 << 2), LWS_EV_STOP = (1 << 3), LWS_EV_PREPARE_DELETION = (1u << 31), }; #ifdef LWS_WITH_IPV6 #define LWS_IPV6_ENABLED(vh) \ (!lws_check_opt(vh->context->options, LWS_SERVER_OPTION_DISABLE_IPV6) && \ !lws_check_opt(vh->options, LWS_SERVER_OPTION_DISABLE_IPV6)) #else #define LWS_IPV6_ENABLED(context) (0) #endif #ifdef LWS_WITH_UNIX_SOCK #define LWS_UNIX_SOCK_ENABLED(vhost) \ (vhost->options & LWS_SERVER_OPTION_UNIX_SOCK) #else #define LWS_UNIX_SOCK_ENABLED(vhost) (0) #endif enum uri_path_states { URIPS_IDLE, URIPS_SEEN_SLASH, URIPS_SEEN_SLASH_DOT, URIPS_SEEN_SLASH_DOT_DOT, }; enum uri_esc_states { URIES_IDLE, URIES_SEEN_PERCENT, URIES_SEEN_PERCENT_H1, }; #if defined(LWS_WITH_CLIENT) enum { CIS_ADDRESS, CIS_PATH, CIS_HOST, CIS_ORIGIN, CIS_PROTOCOL, CIS_METHOD, CIS_IFACE, CIS_ALPN, CIS_COUNT }; struct client_info_stash { char *cis[CIS_COUNT]; void *opaque_user_data; /* not allocated or freed by lws */ }; #endif #if defined(LWS_WITH_UDP) #define lws_wsi_is_udp(___wsi) (!!___wsi->udp) #endif #define LWS_H2_FRAME_HEADER_LENGTH 9 int __lws_sul_insert(lws_dll2_owner_t *own, lws_sorted_usec_list_t *sul, lws_usec_t us); lws_usec_t __lws_sul_service_ripe(lws_dll2_owner_t *own, lws_usec_t usnow); struct lws_timed_vh_protocol { struct lws_timed_vh_protocol *next; lws_sorted_usec_list_t sul; const struct lws_protocols *protocol; struct lws_vhost *vhost; /* only used for pending processing */ int reason; int tsi_req; }; /* * lws_dsh */ typedef struct lws_dsh_obj_head { lws_dll2_owner_t owner; int kind; } lws_dsh_obj_head_t; typedef struct lws_dsh_obj { lws_dll2_t list; /* must be first */ struct lws_dsh *dsh; /* invalid when on free list */ size_t size; /* invalid when on free list */ size_t asize; } lws_dsh_obj_t; typedef struct lws_dsh { lws_dll2_t list; uint8_t *buf; lws_dsh_obj_head_t *oha; /* array of object heads/kind */ size_t buffer_size; size_t locally_in_use; size_t locally_free; int count_kinds; uint8_t being_destroyed; /* * Overallocations at create: * * - the buffer itself * - the object heads array */ } lws_dsh_t; /* * lws_async_dns */ typedef struct lws_async_dns { lws_sockaddr46 sa46; /* nameserver */ lws_dll2_owner_t waiting; lws_dll2_owner_t cached; struct lws *wsi; time_t time_set_server; char dns_server_set; } lws_async_dns_t; typedef enum { LADNS_CONF_SERVER_UNKNOWN = -1, LADNS_CONF_SERVER_SAME, LADNS_CONF_SERVER_CHANGED } lws_async_dns_server_check_t; #if defined(LWS_WITH_SYS_ASYNC_DNS) void lws_aysnc_dns_completed(struct lws *wsi, void *sa, size_t salen, lws_async_dns_retcode_t ret); #endif void lws_async_dns_cancel(struct lws *wsi); /* * so we can have n connections being serviced simultaneously, * these things need to be isolated per-thread. */ struct lws_context_per_thread { #if LWS_MAX_SMP > 1 pthread_mutex_t lock_stats; struct lws_mutex_refcount mr; pthread_t self; #endif struct lws_dll2_owner dll_buflist_owner; /* guys with pending rxflow */ struct lws_dll2_owner seq_owner; /* list of lws_sequencer-s */ lws_dll2_owner_t attach_owner; /* pending lws_attach */ #if defined(LWS_WITH_SECURE_STREAMS) lws_dll2_owner_t ss_owner; #endif #if defined(LWS_WITH_SECURE_STREAMS_PROXY_API) || \ defined(LWS_WITH_SECURE_STREAMS_THREAD_API) lws_dll2_owner_t ss_dsh_owner; lws_dll2_owner_t ss_client_owner; #endif struct lws_dll2_owner pt_sul_owner; #if defined (LWS_WITH_SEQUENCER) lws_sorted_usec_list_t sul_seq_heartbeat; #endif #if (defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2)) && defined(LWS_WITH_SERVER) lws_sorted_usec_list_t sul_ah_lifecheck; #endif #if defined(LWS_WITH_TLS) && defined(LWS_WITH_SERVER) lws_sorted_usec_list_t sul_tls; #endif #if defined(LWS_PLAT_UNIX) lws_sorted_usec_list_t sul_plat; #endif #if defined(LWS_ROLE_CGI) lws_sorted_usec_list_t sul_cgi; #endif #if defined(LWS_WITH_STATS) uint64_t lws_stats[LWSSTATS_SIZE]; int updated; lws_sorted_usec_list_t sul_stats; #endif #if defined(LWS_WITH_PEER_LIMITS) lws_sorted_usec_list_t sul_peer_limits; #endif #if defined(LWS_WITH_TLS) struct lws_pt_tls tls; #endif struct lws *fake_wsi; /* used for callbacks where there's no wsi */ struct lws_context *context; /* * usable by anything in the service code, but only if the scope * does not last longer than the service action (since next service * of any socket can likewise use it and overwrite) */ unsigned char *serv_buf; struct lws_pollfd *fds; volatile struct lws_foreign_thread_pollfd * volatile foreign_pfd_list; #ifdef _WIN32 WSAEVENT events; CRITICAL_SECTION interrupt_lock; #endif lws_sockfd_type dummy_pipe_fds[2]; struct lws *pipe_wsi; /* --- role based members --- */ #if defined(LWS_ROLE_WS) && !defined(LWS_WITHOUT_EXTENSIONS) struct lws_pt_role_ws ws; #endif #if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2) struct lws_pt_role_http http; #endif #if defined(LWS_ROLE_DBUS) struct lws_pt_role_dbus dbus; #endif /* --- event library based members --- */ #if defined(LWS_WITH_LIBEV) struct lws_pt_eventlibs_libev ev; #endif #if defined(LWS_WITH_LIBUV) struct lws_pt_eventlibs_libuv uv; #endif #if defined(LWS_WITH_LIBEVENT) struct lws_pt_eventlibs_libevent event; #endif #if defined(LWS_WITH_GLIB) struct lws_pt_eventlibs_glib glib; #endif #if defined(LWS_WITH_LIBEV) || defined(LWS_WITH_LIBUV) || \ defined(LWS_WITH_LIBEVENT) || defined(LWS_WITH_GLIB) struct lws_signal_watcher w_sigint; #endif #if defined(LWS_WITH_DETAILED_LATENCY) lws_usec_t ust_left_poll; #endif /* --- */ unsigned long count_conns; unsigned int fds_count; /* * set to the Thread ID that's doing the service loop just before entry * to poll indicates service thread likely idling in poll() * volatile because other threads may check it as part of processing * for pollfd event change. */ volatile int service_tid; int service_tid_detected; volatile unsigned char inside_poll; volatile unsigned char foreign_spinlock; unsigned char tid; unsigned char inside_service:1; unsigned char inside_lws_service:1; unsigned char event_loop_foreign:1; unsigned char event_loop_destroy_processing_done:1; unsigned char destroy_self:1; unsigned char is_destroyed:1; #ifdef _WIN32 unsigned char interrupt_requested:1; #endif }; #if defined(LWS_WITH_SERVER_STATUS) struct lws_conn_stats { unsigned long long rx, tx; unsigned long h1_conn, h1_trans, h2_trans, ws_upg, h2_alpn, h2_subs, h2_upg, rejected, mqtt_subs; }; #endif /* * virtual host -related context information * vhostwide SSL context * vhostwide proxy * * hierarchy: * * context -> vhost -> wsi * * incoming connection non-SSL vhost binding: * * listen socket -> wsi -> select vhost after first headers * * incoming connection SSL vhost binding: * * SSL SNI -> wsi -> bind after SSL negotiation */ struct lws_vhost { #if defined(LWS_WITH_CLIENT) && defined(LWS_CLIENT_HTTP_PROXYING) char proxy_basic_auth_token[128]; #endif #if LWS_MAX_SMP > 1 pthread_mutex_t lock; char close_flow_vs_tsi[LWS_MAX_SMP]; #endif #if defined(LWS_ROLE_H2) struct lws_vhost_role_h2 h2; #endif #if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2) struct lws_vhost_role_http http; #endif #if defined(LWS_ROLE_WS) && !defined(LWS_WITHOUT_EXTENSIONS) struct lws_vhost_role_ws ws; #endif #if defined(LWS_WITH_SOCKS5) char socks_proxy_address[128]; char socks_user[96]; char socks_password[96]; #endif #if defined(LWS_WITH_LIBEV) struct lws_io_watcher w_accept; #endif #if defined(LWS_WITH_SERVER_STATUS) struct lws_conn_stats conn_stats; #endif uint64_t options; struct lws_context *context; struct lws_vhost *vhost_next; const lws_retry_bo_t *retry_policy; struct lws *lserv_wsi; const char *name; const char *iface; const char *listen_accept_role; const char *listen_accept_protocol; const char *unix_socket_perms; void (*finalize)(struct lws_vhost *vh, void *arg); void *finalize_arg; const struct lws_protocols *protocols; void **protocol_vh_privs; const struct lws_protocol_vhost_options *pvo; const struct lws_protocol_vhost_options *headers; struct lws_dll2_owner *same_vh_protocol_owner; struct lws_vhost *no_listener_vhost_list; struct lws_dll2_owner abstract_instances_owner; /* vh lock */ #if defined(LWS_WITH_CLIENT) struct lws_dll2_owner dll_cli_active_conns_owner; #endif struct lws_dll2_owner vh_awaiting_socket_owner; #if defined(LWS_WITH_TLS) struct lws_vhost_tls tls; #endif struct lws_timed_vh_protocol *timed_vh_protocol_list; void *user; int listen_port; #if !defined(LWS_PLAT_FREERTOS) && !defined(OPTEE_TA) && !defined(WIN32) int bind_iface; #endif #if defined(LWS_WITH_SOCKS5) unsigned int socks_proxy_port; #endif int count_protocols; int ka_time; int ka_probes; int ka_interval; int keepalive_timeout; int timeout_secs_ah_idle; int count_bound_wsi; #ifdef LWS_WITH_ACCESS_LOG int log_fd; #endif uint8_t allocated_vhost_protocols:1; uint8_t created_vhost_protocols:1; uint8_t being_destroyed:1; uint8_t from_ss_policy:1; unsigned char default_protocol_index; unsigned char raw_protocol_index; }; void __lws_vhost_destroy2(struct lws_vhost *vh); #define mux_to_wsi(_m) lws_container_of(_m, struct lws, mux) void lws_wsi_mux_insert(struct lws *wsi, struct lws *parent_wsi, int sid); int lws_wsi_mux_mark_parents_needing_writeable(struct lws *wsi); struct lws * lws_wsi_mux_move_child_to_tail(struct lws **wsi2); int lws_wsi_mux_action_pending_writeable_reqs(struct lws *wsi); void lws_wsi_mux_dump_children(struct lws *wsi); void lws_wsi_mux_close_children(struct lws *wsi, int reason); void lws_wsi_mux_sibling_disconnect(struct lws *wsi); void lws_wsi_mux_dump_waiting_children(struct lws *wsi); int lws_wsi_mux_apply_queue(struct lws *wsi); /* * struct lws */ struct lws { /* structs */ #if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2) struct _lws_http_mode_related http; #endif #if defined(LWS_ROLE_H2) struct _lws_h2_related h2; #endif #if defined(LWS_ROLE_WS) struct _lws_websocket_related *ws; /* allocated if we upgrade to ws */ #endif #if defined(LWS_ROLE_DBUS) struct _lws_dbus_mode_related dbus; #endif #if defined(LWS_ROLE_MQTT) struct _lws_mqtt_related *mqtt; #endif #if defined(LWS_ROLE_H2) || defined(LWS_ROLE_MQTT) struct lws_muxable mux; struct lws_tx_credit txc; #endif /* lifetime members */ #if defined(LWS_WITH_LIBEV) || defined(LWS_WITH_LIBUV) || \ defined(LWS_WITH_LIBEVENT) || defined(LWS_WITH_GLIB) struct lws_io_watcher w_read; #endif #if defined(LWS_WITH_LIBEV) || defined(LWS_WITH_LIBEVENT) struct lws_io_watcher w_write; #endif #if defined(LWS_WITH_DETAILED_LATENCY) lws_detlat_t detlat; #endif lws_sorted_usec_list_t sul_timeout; lws_sorted_usec_list_t sul_hrtimer; lws_sorted_usec_list_t sul_validity; struct lws_dll2 dll_buflist; /* guys with pending rxflow */ struct lws_dll2 same_vh_protocol; struct lws_dll2 vh_awaiting_socket; #if defined(LWS_WITH_SYS_ASYNC_DNS) struct lws_dll2 adns; /* on adns list of guys to tell result */ lws_async_dns_cb_t adns_cb; /* callback with result */ #endif #if defined(LWS_WITH_CLIENT) struct lws_dll2 dll_cli_active_conns; struct lws_dll2 dll2_cli_txn_queue; struct lws_dll2_owner dll2_cli_txn_queue_owner; #endif #if defined(LWS_WITH_ACCESS_LOG) char simple_ip[(8 * 5)]; #endif /* pointers */ struct lws_context *context; struct lws_vhost *vhost; struct lws *parent; /* points to parent, if any */ struct lws *child_list; /* points to first child */ struct lws *sibling_list; /* subsequent children at same level */ const struct lws_role_ops *role_ops; const struct lws_protocols *protocol; struct lws_sequencer *seq; /* associated sequencer if any */ const lws_retry_bo_t *retry_policy; #if defined(LWS_WITH_THREADPOOL) struct lws_threadpool_task *tp_task; #endif #if defined(LWS_WITH_PEER_LIMITS) struct lws_peer *peer; #endif #if defined(LWS_WITH_UDP) struct lws_udp *udp; #endif #if defined(LWS_WITH_CLIENT) struct client_info_stash *stash; char *cli_hostname_copy; const struct addrinfo *dns_results; const struct addrinfo *dns_results_next; #endif void *user_space; void *opaque_parent_data; void *opaque_user_data; struct lws_buflist *buflist; /* input-side buflist */ struct lws_buflist *buflist_out; /* output-side buflist */ #if defined(LWS_WITH_TLS) struct lws_lws_tls tls; #endif lws_sock_file_fd_type desc; /* .filefd / .sockfd */ #if defined(LWS_WITH_STATS) uint64_t active_writable_req_us; #if defined(LWS_WITH_TLS) uint64_t accept_start_us; #endif #endif lws_wsi_state_t wsistate; lws_wsi_state_t wsistate_pre_close; /* ints */ #define LWS_NO_FDS_POS (-1) int position_in_fds_table; #if defined(LWS_WITH_CLIENT) int chunk_remaining; int flags; #endif unsigned int cache_secs; unsigned int hdr_parsing_completed:1; unsigned int mux_substream:1; unsigned int upgraded_to_http2:1; unsigned int mux_stream_immortal:1; unsigned int h2_stream_carries_ws:1; /* immortal set as well */ unsigned int h2_stream_carries_sse:1; /* immortal set as well */ unsigned int h2_acked_settings:1; unsigned int seen_nonpseudoheader:1; unsigned int listener:1; unsigned int pf_packet:1; unsigned int do_broadcast:1; unsigned int user_space_externally_allocated:1; unsigned int socket_is_permanently_unusable:1; unsigned int rxflow_change_to:2; unsigned int conn_stat_done:1; unsigned int cache_reuse:1; unsigned int cache_revalidate:1; unsigned int cache_intermediaries:1; unsigned int favoured_pollin:1; unsigned int sending_chunked:1; unsigned int interpreting:1; unsigned int already_did_cce:1; unsigned int told_user_closed:1; unsigned int told_event_loop_closed:1; unsigned int waiting_to_send_close_frame:1; unsigned int close_needs_ack:1; unsigned int ipv6:1; unsigned int parent_pending_cb_on_writable:1; unsigned int cgi_stdout_zero_length:1; unsigned int seen_zero_length_recv:1; unsigned int rxflow_will_be_applied:1; unsigned int event_pipe:1; unsigned int handling_404:1; unsigned int protocol_bind_balance:1; unsigned int unix_skt:1; unsigned int close_when_buffered_out_drained:1; unsigned int h1_ws_proxied:1; unsigned int proxied_ws_parent:1; unsigned int do_bind:1; unsigned int oom4:1; unsigned int validity_hup:1; unsigned int skip_fallback:1; unsigned int could_have_pending:1; /* detect back-to-back writes */ unsigned int outer_will_close:1; unsigned int shadow:1; /* we do not control fd lifecycle at all */ #ifdef LWS_WITH_ACCESS_LOG unsigned int access_log_pending:1; #endif #if defined(LWS_WITH_CLIENT) unsigned int do_ws:1; /* whether we are doing http or ws flow */ unsigned int chunked:1; /* if the clientside connection is chunked */ unsigned int client_rx_avail:1; unsigned int client_http_body_pending:1; unsigned int transaction_from_pipeline_queue:1; unsigned int keepalive_active:1; unsigned int keepalive_rejected:1; unsigned int redirected_to_get:1; unsigned int client_pipeline:1; unsigned int client_h2_alpn:1; unsigned int client_mux_substream:1; unsigned int client_mux_migrated:1; unsigned int client_subsequent_mime_part:1; unsigned int client_no_follow_redirect:1; #endif #ifdef _WIN32 unsigned int sock_send_blocking:1; #endif uint16_t ocport, c_port; uint16_t retry; /* chars */ char lws_rx_parse_state; /* enum lws_rx_parse_state */ char rx_frame_type; /* enum lws_write_protocol */ char pending_timeout; /* enum pending_timeout */ char tsi; /* thread service index we belong to */ char protocol_interpret_idx; char redirects; uint8_t rxflow_bitmap; uint8_t bound_vhost_index; uint8_t lsp_channel; /* which of stdin/out/err */ #ifdef LWS_WITH_CGI char hdr_state; #endif #if defined(LWS_WITH_CLIENT) char chunk_parser; /* enum lws_chunk_parser */ uint8_t addrinfo_idx; uint8_t sys_tls_client_cert; #endif #if defined(LWS_WITH_CGI) || defined(LWS_WITH_CLIENT) char reason_bf; /* internal writeable callback reason bitfield */ #endif #if defined(LWS_WITH_STATS) && defined(LWS_WITH_TLS) char seen_rx; #endif uint8_t immortal_substream_count; /* volatile to make sure code is aware other thread can change */ volatile char handling_pollout; volatile char leave_pollout_active; #if LWS_MAX_SMP > 1 volatile char undergoing_init_from_other_pt; #endif }; #define lws_is_flowcontrolled(w) (!!(wsi->rxflow_bitmap)) #if defined(LWS_WITH_SPAWN) #if defined(WIN32) || defined(_WIN32) #else #include <sys/wait.h> #include <sys/times.h> #endif struct lws_spawn_piped { struct lws_spawn_piped_info info; struct lws_dll2 dll; lws_sorted_usec_list_t sul; struct lws *stdwsi[3]; int pipe_fds[3][2]; int count_log_lines; lws_usec_t created; /* set by lws_spawn_piped() */ lws_usec_t reaped; lws_usec_t accounting[4]; pid_t child_pid; siginfo_t si; uint8_t pipes_alive:2; uint8_t we_killed_him_timeout:1; uint8_t we_killed_him_spew:1; uint8_t ungraceful:1; }; void lws_spawn_piped_destroy(struct lws_spawn_piped **lsp); int lws_spawn_reap(struct lws_spawn_piped *lsp); #endif void lws_service_do_ripe_rxflow(struct lws_context_per_thread *pt); const struct lws_role_ops * lws_role_by_name(const char *name); int lws_socket_bind(struct lws_vhost *vhost, lws_sockfd_type sockfd, int port, const char *iface, int ipv6_allowed); #if defined(LWS_WITH_IPV6) unsigned long lws_get_addr_scope(const char *ipaddr); #endif void lws_close_free_wsi(struct lws *wsi, enum lws_close_status, const char *caller); void __lws_close_free_wsi(struct lws *wsi, enum lws_close_status, const char *caller); void __lws_free_wsi(struct lws *wsi); #if LWS_MAX_SMP > 1 static LWS_INLINE void lws_pt_mutex_init(struct lws_context_per_thread *pt) { lws_mutex_refcount_init(&pt->mr); pthread_mutex_init(&pt->lock_stats, NULL); } static LWS_INLINE void lws_pt_mutex_destroy(struct lws_context_per_thread *pt) { pthread_mutex_destroy(&pt->lock_stats); lws_mutex_refcount_destroy(&pt->mr); } #define lws_pt_lock(pt, reason) lws_mutex_refcount_lock(&pt->mr, reason) #define lws_pt_unlock(pt) lws_mutex_refcount_unlock(&pt->mr) static LWS_INLINE void lws_pt_stats_lock(struct lws_context_per_thread *pt) { pthread_mutex_lock(&pt->lock_stats); } static LWS_INLINE void lws_pt_stats_unlock(struct lws_context_per_thread *pt) { pthread_mutex_unlock(&pt->lock_stats); } #endif /* * EXTENSIONS */ #if defined(LWS_WITHOUT_EXTENSIONS) #define lws_any_extension_handled(_a, _b, _c, _d) (0) #define lws_ext_cb_active(_a, _b, _c, _d) (0) #define lws_ext_cb_all_exts(_a, _b, _c, _d, _e) (0) #define lws_issue_raw_ext_access lws_issue_raw #define lws_context_init_extensions(_a, _b) #endif int LWS_WARN_UNUSED_RESULT lws_client_interpret_server_handshake(struct lws *wsi); int LWS_WARN_UNUSED_RESULT lws_ws_rx_sm(struct lws *wsi, char already_processed, unsigned char c); int LWS_WARN_UNUSED_RESULT lws_issue_raw_ext_access(struct lws *wsi, unsigned char *buf, size_t len); void lws_role_transition(struct lws *wsi, enum lwsi_role role, enum lwsi_state state, const struct lws_role_ops *ops); int lws_http_to_fallback(struct lws *wsi, unsigned char *buf, size_t len); int LWS_WARN_UNUSED_RESULT user_callback_handle_rxflow(lws_callback_function, struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len); int lws_plat_set_nonblocking(lws_sockfd_type fd); int lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd, int unix_skt); int lws_plat_check_connection_error(struct lws *wsi); int LWS_WARN_UNUSED_RESULT lws_header_table_attach(struct lws *wsi, int autoservice); int lws_header_table_detach(struct lws *wsi, int autoservice); int __lws_header_table_detach(struct lws *wsi, int autoservice); void lws_header_table_reset(struct lws *wsi, int autoservice); void __lws_header_table_reset(struct lws *wsi, int autoservice); char * LWS_WARN_UNUSED_RESULT lws_hdr_simple_ptr(struct lws *wsi, enum lws_token_indexes h); int LWS_WARN_UNUSED_RESULT lws_hdr_simple_create(struct lws *wsi, enum lws_token_indexes h, const char *s); int LWS_WARN_UNUSED_RESULT lws_ensure_user_space(struct lws *wsi); int LWS_WARN_UNUSED_RESULT lws_change_pollfd(struct lws *wsi, int _and, int _or); #if defined(LWS_WITH_SERVER) int _lws_vhost_init_server(const struct lws_context_creation_info *info, struct lws_vhost *vhost); LWS_EXTERN struct lws_vhost * lws_select_vhost(struct lws_context *context, int port, const char *servername); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_parse_ws(struct lws *wsi, unsigned char **buf, size_t len); LWS_EXTERN void lws_server_get_canonical_hostname(struct lws_context *context, const struct lws_context_creation_info *info); #else #define _lws_vhost_init_server(_a, _b) (0) #define lws_parse_ws(_a, _b, _c) (0) #define lws_server_get_canonical_hostname(_a, _b) #endif int __remove_wsi_socket_from_fds(struct lws *wsi); enum { LWSRXFC_ERROR = -1, LWSRXFC_CACHED = 0, LWSRXFC_ADDITIONAL = 1, LWSRXFC_TRIMMED = 2, }; int _lws_plat_service_forced_tsi(struct lws_context *context, int tsi); int lws_rxflow_cache(struct lws *wsi, unsigned char *buf, int n, int len); int lws_service_flag_pending(struct lws_context *context, int tsi); static LWS_INLINE int lws_has_buffered_out(struct lws *wsi) { return !!wsi->buflist_out; } int LWS_WARN_UNUSED_RESULT lws_ws_client_rx_sm(struct lws *wsi, unsigned char c); lws_parser_return_t LWS_WARN_UNUSED_RESULT lws_parse(struct lws *wsi, unsigned char *buf, int *len); int LWS_WARN_UNUSED_RESULT lws_parse_urldecode(struct lws *wsi, uint8_t *_c); int LWS_WARN_UNUSED_RESULT lws_http_action(struct lws *wsi); void __lws_close_free_wsi_final(struct lws *wsi); void lws_libuv_closehandle(struct lws *wsi); int lws_libuv_check_watcher_active(struct lws *wsi); LWS_VISIBLE LWS_EXTERN int lws_plat_plugins_init(struct lws_context * context, const char * const *d); LWS_VISIBLE LWS_EXTERN int lws_plat_plugins_destroy(struct lws_context * context); struct lws * lws_adopt_socket_vhost(struct lws_vhost *vh, lws_sockfd_type accept_fd); void lws_vhost_bind_wsi(struct lws_vhost *vh, struct lws *wsi); void lws_vhost_unbind_wsi(struct lws *wsi); void __lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs); int __lws_change_pollfd(struct lws *wsi, int _and, int _or); int lws_callback_as_writeable(struct lws *wsi); int lws_role_call_client_bind(struct lws *wsi, const struct lws_client_connect_info *i); void lws_remove_child_from_any_parent(struct lws *wsi); char * lws_generate_client_ws_handshake(struct lws *wsi, char *p, const char *conn1); int lws_client_ws_upgrade(struct lws *wsi, const char **cce); int lws_create_client_ws_object(const struct lws_client_connect_info *i, struct lws *wsi); int lws_alpn_comma_to_openssl(const char *comma, uint8_t *os, int len); int lws_role_call_alpn_negotiated(struct lws *wsi, const char *alpn); int lws_tls_server_conn_alpn(struct lws *wsi); int lws_ws_client_rx_sm_block(struct lws *wsi, unsigned char **buf, size_t len); void lws_destroy_event_pipe(struct lws *wsi); /* socks */ int lws_socks5c_generate_msg(struct lws *wsi, enum socks_msg_type type, ssize_t *msg_len); #if defined(LWS_WITH_SERVER_STATUS) void lws_sum_stats(const struct lws_context *ctx, struct lws_conn_stats *cs); #endif int __lws_timed_callback_remove(struct lws_vhost *vh, struct lws_timed_vh_protocol *p); int LWS_WARN_UNUSED_RESULT __insert_wsi_socket_into_fds(struct lws_context *context, struct lws *wsi); int LWS_WARN_UNUSED_RESULT lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len); lws_usec_t __lws_seq_timeout_check(struct lws_context_per_thread *pt, lws_usec_t usnow); lws_usec_t __lws_ss_timeout_check(struct lws_context_per_thread *pt, lws_usec_t usnow); struct lws * LWS_WARN_UNUSED_RESULT lws_client_connect_2_dnsreq(struct lws *wsi); LWS_VISIBLE struct lws * LWS_WARN_UNUSED_RESULT lws_client_reset(struct lws **wsi, int ssl, const char *address, int port, const char *path, const char *host, char weak); struct lws * LWS_WARN_UNUSED_RESULT lws_create_new_server_wsi(struct lws_vhost *vhost, int fixed_tsi); char * LWS_WARN_UNUSED_RESULT lws_generate_client_handshake(struct lws *wsi, char *pkt); int lws_handle_POLLOUT_event(struct lws *wsi, struct lws_pollfd *pollfd); struct lws * lws_http_client_connect_via_info2(struct lws *wsi); #if defined(LWS_WITH_CLIENT) int lws_client_socket_service(struct lws *wsi, struct lws_pollfd *pollfd); int LWS_WARN_UNUSED_RESULT lws_http_transaction_completed_client(struct lws *wsi); #if !defined(LWS_WITH_TLS) #define lws_context_init_client_ssl(_a, _b) (0) #endif void lws_decode_ssl_error(void); #else #define lws_context_init_client_ssl(_a, _b) (0) #endif int __lws_rx_flow_control(struct lws *wsi); int _lws_change_pollfd(struct lws *wsi, int _and, int _or, struct lws_pollargs *pa); #if defined(LWS_WITH_SERVER) int lws_handshake_server(struct lws *wsi, unsigned char **buf, size_t len); #else #define lws_server_socket_service(_b, _c) (0) #define lws_handshake_server(_a, _b, _c) (0) #endif #ifdef LWS_WITH_ACCESS_LOG int lws_access_log(struct lws *wsi); void lws_prepare_access_log_info(struct lws *wsi, char *uri_ptr, int len, int meth); #else #define lws_access_log(_a) #endif #if defined(_DEBUG) void lws_wsi_txc_describe(struct lws_tx_credit *txc, const char *at, uint32_t sid); #else #define lws_wsi_txc_describe(x, y, z) { (void)x; } #endif int lws_wsi_txc_check_skint(struct lws_tx_credit *txc, int32_t tx_cr); int lws_wsi_txc_report_manual_txcr_in(struct lws *wsi, int32_t bump); void lws_mux_mark_immortal(struct lws *wsi); void lws_http_close_immortal(struct lws *wsi); int lws_cgi_kill_terminated(struct lws_context_per_thread *pt); void lws_cgi_remove_and_kill(struct lws *wsi); void lws_plat_delete_socket_from_fds(struct lws_context *context, struct lws *wsi, int m); void lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi); int lws_plat_change_pollfd(struct lws_context *context, struct lws *wsi, struct lws_pollfd *pfd); int lws_plat_pipe_create(struct lws *wsi); int lws_plat_pipe_signal(struct lws *wsi); void lws_plat_pipe_close(struct lws *wsi); void lws_addrinfo_clean(struct lws *wsi); void lws_add_wsi_to_draining_ext_list(struct lws *wsi); void lws_remove_wsi_from_draining_ext_list(struct lws *wsi); int lws_poll_listen_fd(struct lws_pollfd *fd); int lws_plat_service(struct lws_context *context, int timeout_ms); LWS_VISIBLE int _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi); int lws_pthread_self_to_tsi(struct lws_context *context); const char * LWS_WARN_UNUSED_RESULT lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt); int LWS_WARN_UNUSED_RESULT lws_plat_inet_pton(int af, const char *src, void *dst); void lws_same_vh_protocol_remove(struct lws *wsi); void __lws_same_vh_protocol_remove(struct lws *wsi); void lws_same_vh_protocol_insert(struct lws *wsi, int n); void lws_seq_destroy_all_on_pt(struct lws_context_per_thread *pt); int lws_broadcast(struct lws_context_per_thread *pt, int reason, void *in, size_t len); #if defined(LWS_WITH_STATS) void lws_stats_bump(struct lws_context_per_thread *pt, int i, uint64_t bump); void lws_stats_max(struct lws_context_per_thread *pt, int index, uint64_t val); #else static LWS_INLINE uint64_t lws_stats_bump( struct lws_context_per_thread *pt, int index, uint64_t bump) { (void)pt; (void)index; (void)bump; return 0; } static LWS_INLINE uint64_t lws_stats_max( struct lws_context_per_thread *pt, int index, uint64_t val) { (void)pt; (void)index; (void)val; return 0; } #endif #if defined(LWS_WITH_PEER_LIMITS) void lws_peer_track_wsi_close(struct lws_context *context, struct lws_peer *peer); int lws_peer_confirm_ah_attach_ok(struct lws_context *context, struct lws_peer *peer); void lws_peer_track_ah_detach(struct lws_context *context, struct lws_peer *peer); void lws_peer_cull_peer_wait_list(struct lws_context *context); struct lws_peer * lws_get_or_create_peer(struct lws_vhost *vhost, lws_sockfd_type sockfd); void lws_peer_add_wsi(struct lws_context *context, struct lws_peer *peer, struct lws *wsi); void lws_peer_dump_from_wsi(struct lws *wsi); #endif #ifdef LWS_WITH_HUBBUB hubbub_error html_parser_cb(const hubbub_token *token, void *pw); #endif int lws_threadpool_tsi_context(struct lws_context *context, int tsi); void __lws_wsi_remove_from_sul(struct lws *wsi); void lws_validity_confirmed(struct lws *wsi); void _lws_validity_confirmed_role(struct lws *wsi); int lws_seq_pt_init(struct lws_context_per_thread *pt); int lws_buflist_aware_read(struct lws_context_per_thread *pt, struct lws *wsi, struct lws_tokens *ebuf, char fr, const char *hint); int lws_buflist_aware_finished_consuming(struct lws *wsi, struct lws_tokens *ebuf, int used, int buffered, const char *hint); extern const struct lws_protocols protocol_abs_client_raw_skt, protocol_abs_client_unit_test; void __lws_reset_wsi(struct lws *wsi); void lws_inform_client_conn_fail(struct lws *wsi, void *arg, size_t len); #if defined(LWS_WITH_SYS_ASYNC_DNS) lws_async_dns_server_check_t lws_plat_asyncdns_init(struct lws_context *context, lws_sockaddr46 *sa); int lws_async_dns_init(struct lws_context *context); void lws_async_dns_deinit(lws_async_dns_t *dns); #endif int lws_protocol_init_vhost(struct lws_vhost *vh, int *any); int _lws_generic_transaction_completed_active_conn(struct lws **wsi); #define ACTIVE_CONNS_SOLO 0 #define ACTIVE_CONNS_MUXED 1 #define ACTIVE_CONNS_QUEUED 2 #define ACTIVE_CONNS_FAILED 3 int lws_vhost_active_conns(struct lws *wsi, struct lws **nwsi, const char *adsin); const char * lws_wsi_client_stash_item(struct lws *wsi, int stash_idx, int hdr_idx); int lws_plat_BINDTODEVICE(lws_sockfd_type fd, const char *ifname); int lws_socks5c_ads_server(struct lws_vhost *vh, const struct lws_context_creation_info *info); int lws_socks5c_handle_state(struct lws *wsi, struct lws_pollfd *pollfd, const char **pcce); int lws_socks5c_greet(struct lws *wsi, const char **pcce); enum { LW5CHS_RET_RET0, LW5CHS_RET_BAIL3, LW5CHS_RET_STARTHS, LW5CHS_RET_NOTHING }; #ifdef __cplusplus }; #endif #endif <file_sep>/** * @file include/dbschema/dbSchemaBuffers.h * @brief This generated file contains the buffer definitions for all * datapoints. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbSchemaBuffers_h.xsl : 8806 bytes, CRC32 = 4201535949 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMABUFFERS_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBSCHEMABUFFERS_H_ /**The value buffer definitions for all standard data points ordered * by the memory byte alignment requirement. * Arguments: name, align, length * name The datapoint name * align The datapoint alignment requirement * length The required value buffer length */ #define DB_VALUE_BUFFERS \ \ DB_VALUE_BUFFER( CntOpsOsm, UI32, 4 ) \ DB_VALUE_BUFFER( MicrokernelFsType, UI32, 4 ) \ DB_VALUE_BUFFER( HmiErrMsg, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterCallDropouts, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterCallFails, UI32, 4 ) \ DB_VALUE_BUFFER( HmiPasswordUser, UI32, 4 ) \ DB_VALUE_BUFFER( DbugCmsSerial, UI32, 4 ) \ DB_VALUE_BUFFER( ProtTstSeq, UI32, 4 ) \ DB_VALUE_BUFFER( ProtTstLogStep, UI32, 4 ) \ DB_VALUE_BUFFER( ProtCfgBase, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OcAt, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EfAt, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SefAt, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ArOCEF_Trec1, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ArOCEF_Trec2, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ArOCEF_Trec3, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ResetTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_TtaTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ClpClm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ClpTcl, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ClpTrec, UI32, 4 ) \ DB_VALUE_BUFFER( G1_IrrTir, UI32, 4 ) \ DB_VALUE_BUFFER( G1_VrcUMmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_G1EF1F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_G1EF2F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_G1EF1R_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFR_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFR_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OcLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OcLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OcLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EfLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EfLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uf_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uf_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uf_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Of_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Of_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Of_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_OC1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_OC2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_OC1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_OC2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_EF1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_EF2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_EF1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DEPRECATED_EF2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G1_AbrTrest, UI32, 4 ) \ DB_VALUE_BUFFER( ReportTimeSetting, UI32, 4 ) \ DB_VALUE_BUFFER( CmsSerialFrameRxTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BClockValidPeriod, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BSinglePointBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BDoublePointBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BSingleCmdBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BDoubleCmdBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BMeasurandBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BSetpointBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BParamCmdBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BIntTotBaseIOA, UI32, 4 ) \ DB_VALUE_BUFFER( CmsMainConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( CmsAuxConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3IpMasterAddr, UI32, 4 ) \ DB_VALUE_BUFFER( T101RxCnt, UI32, 4 ) \ DB_VALUE_BUFFER( T101TxCnt, UI32, 4 ) \ DB_VALUE_BUFFER( T104RxCnt, UI32, 4 ) \ DB_VALUE_BUFFER( T104TxCnt, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimReadTime, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimDisableWatchdog, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimReadHWVers, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OcAt, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EfAt, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SefAt, UI32, 4 ) \ DB_VALUE_BUFFER( CanDataRequestIo1, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ArOCEF_Trec1, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ArOCEF_Trec2, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ArOCEF_Trec3, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ResetTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_TtaTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ClpClm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ClpTcl, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ClpTrec, UI32, 4 ) \ DB_VALUE_BUFFER( G2_IrrTir, UI32, 4 ) \ DB_VALUE_BUFFER( G2_VrcUMmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( CanDataRequestIo2, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_G1EF1F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_G1EF2F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_G1EF1R_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFR_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFR_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OcLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OcLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OcLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EfLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EfLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uf_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uf_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uf_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Of_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Of_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Of_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_OC1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_OC2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_OC1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_OC2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_EF1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_EF2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_EF1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DEPRECATED_EF2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G2_AbrTrest, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3RqstCnt, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3IpUnathIpAddr, UI32, 4 ) \ DB_VALUE_BUFFER( CanIo1ReadHwVers, UI32, 4 ) \ DB_VALUE_BUFFER( CanIo2ReadHwVers, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OcAt, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EfAt, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SefAt, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ArOCEF_Trec1, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ArOCEF_Trec2, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ArOCEF_Trec3, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ResetTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_TtaTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ClpClm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ClpTcl, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ClpTrec, UI32, 4 ) \ DB_VALUE_BUFFER( G3_IrrTir, UI32, 4 ) \ DB_VALUE_BUFFER( G3_VrcUMmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_G1EF1F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_G1EF2F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_G1EF1R_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFR_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFR_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OcLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OcLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OcLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EfLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EfLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uf_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uf_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uf_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Of_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Of_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Of_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_OC1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_OC2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_OC1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_OC2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_EF1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_EF2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_EF1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DEPRECATED_EF2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G3_AbrTrest, UI32, 4 ) \ DB_VALUE_BUFFER( CanDataRequestIo, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT104TimeoutT3, UI32, 4 ) \ DB_VALUE_BUFFER( ACO_Debug, UI32, 4 ) \ DB_VALUE_BUFFER( ACO_TPup, UI32, 4 ) \ DB_VALUE_BUFFER( p2pMappedUI32_0, UI32, 4 ) \ DB_VALUE_BUFFER( ProtStatusStatePeer, UI32, 4 ) \ DB_VALUE_BUFFER( p2pMappedUI32_1, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OcAt, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EfAt, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SefAt, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ArOCEF_Trec1, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ArOCEF_Trec2, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ArOCEF_Trec3, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ResetTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_TtaTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ClpClm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ClpTcl, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ClpTrec, UI32, 4 ) \ DB_VALUE_BUFFER( G4_IrrTir, UI32, 4 ) \ DB_VALUE_BUFFER( G4_VrcUMmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_G1EF1F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_G1EF2F_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_G1EF1R_Tres, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFR_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFR_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OcLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OcLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OcLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EfLl_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EfLl_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov1_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov2_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uf_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uf_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uf_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Of_Fp, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Of_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Of_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_OC1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_OC2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_OC1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_OC2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_EF1F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_EF2F_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_EF1R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DEPRECATED_EF2R_ImaxAbs, UI32, 4 ) \ DB_VALUE_BUFFER( G4_AbrTrest, UI32, 4 ) \ DB_VALUE_BUFFER( ACOSwRqst , UI32, 4 ) \ DB_VALUE_BUFFER( ACOSwState , UI32, 4 ) \ DB_VALUE_BUFFER( ACOSwStatePeer, UI32, 4 ) \ DB_VALUE_BUFFER( ACOSwRqstPeer, UI32, 4 ) \ DB_VALUE_BUFFER( IaTrip, UI32, 4 ) \ DB_VALUE_BUFFER( IbTrip, UI32, 4 ) \ DB_VALUE_BUFFER( IcTrip, UI32, 4 ) \ DB_VALUE_BUFFER( InTrip, UI32, 4 ) \ DB_VALUE_BUFFER( ACO_TPupPeer, UI32, 4 ) \ DB_VALUE_BUFFER( LoadDeadPeer, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3CommunicationWatchDogTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BCommunicationWatchDogTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( IaLGVT, UI32, 4 ) \ DB_VALUE_BUFFER( IcLGVT, UI32, 4 ) \ DB_VALUE_BUFFER( IaMDIToday, UI32, 4 ) \ DB_VALUE_BUFFER( IbMDIToday, UI32, 4 ) \ DB_VALUE_BUFFER( IcMDIToday, UI32, 4 ) \ DB_VALUE_BUFFER( IaMDIYesterday, UI32, 4 ) \ DB_VALUE_BUFFER( IbMDIYesterday, UI32, 4 ) \ DB_VALUE_BUFFER( IcMDIYesterday, UI32, 4 ) \ DB_VALUE_BUFFER( IaMDILastWeek, UI32, 4 ) \ DB_VALUE_BUFFER( IbMDILastWeek, UI32, 4 ) \ DB_VALUE_BUFFER( IcMDILastWeek, UI32, 4 ) \ DB_VALUE_BUFFER( IbLGVT, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelayNumModel, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelayNumPlant, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelayNumDate, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelayNumSeq, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelaySwVer1, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelaySwVer2, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelaySwVer3, UI32, 4 ) \ DB_VALUE_BUFFER( IdRelaySwVer4, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMNumModel, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMNumPlant, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMNumDate, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMNumSeq, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMSwVer1, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMSwVer2, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMSwVer3, UI32, 4 ) \ DB_VALUE_BUFFER( IdSIMSwVer4, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumModel, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumPlant, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumDate, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumSeq, UI32, 4 ) \ DB_VALUE_BUFFER( QueryGpio, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIaTDD, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIbTDD, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIcTDD, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUaTHD, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUbTHD, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUcTHD, UI32, 4 ) \ DB_VALUE_BUFFER( HrmInTDD, UI32, 4 ) \ DB_VALUE_BUFFER( EventLogOldestId, UI32, 4 ) \ DB_VALUE_BUFFER( EventLogNewestId, UI32, 4 ) \ DB_VALUE_BUFFER( SettingLogOldestId, UI32, 4 ) \ DB_VALUE_BUFFER( SettingLogNewestId, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLogOldestId, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLogNewestId, UI32, 4 ) \ DB_VALUE_BUFFER( CloseOpenLogOldestId, UI32, 4 ) \ DB_VALUE_BUFFER( CloseOpenLogNewestId, UI32, 4 ) \ DB_VALUE_BUFFER( LoadProfileOldestId, UI32, 4 ) \ DB_VALUE_BUFFER( LoadProfileNewestId, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa1st, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb1st, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc1st, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn1st, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa1st, UI32, 4 ) \ DB_VALUE_BUFFER( CanDataRequestSim, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimBusErr, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb1st, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc1st, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa2nd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb2nd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc2nd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn2nd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa2nd, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOcATrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOcBTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOcCTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrEfTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrSefTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrUvTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOvTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrUfTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOfTrips, UI32, 4 ) \ DB_VALUE_BUFFER( TripCnt, UI32, 4 ) \ DB_VALUE_BUFFER( MechanicalWear, UI32, 4 ) \ DB_VALUE_BUFFER( BreakerWear, UI32, 4 ) \ DB_VALUE_BUFFER( MeasCurrIa, UI32, 4 ) \ DB_VALUE_BUFFER( MeasCurrIb, UI32, 4 ) \ DB_VALUE_BUFFER( MeasCurrIc, UI32, 4 ) \ DB_VALUE_BUFFER( MeasCurrIn, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUa, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUb, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUc, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUab, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUbc, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUca, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUs, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUt, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUrs, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUst, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUtr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasFreqabc, UI32, 4 ) \ DB_VALUE_BUFFER( MeasFreqrst, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhase3kVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhase3kW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhase3kVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseAkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseAkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseAkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseBkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseBkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseBkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseCkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseCkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseCkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerFactor3phase, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerFactorAphase, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerFactorBphase, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerFactorCphase, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb2nd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc2nd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa3rd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb3rd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc3rd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn3rd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa3rd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb3rd, UI32, 4 ) \ DB_VALUE_BUFFER( fpgaBaseAddr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasCurrI1, UI32, 4 ) \ DB_VALUE_BUFFER( MeasCurrI2, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUar, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUbs, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUct, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltU0, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltU1, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltU2, UI32, 4 ) \ DB_VALUE_BUFFER( MeasA0, UI32, 4 ) \ DB_VALUE_BUFFER( MeasA1, UI32, 4 ) \ DB_VALUE_BUFFER( MeasA2, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPhSABC, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPhSRST, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc3rd, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa4th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb4th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc4th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn4th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa4th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb4th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc4th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa5th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb5th, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrg3FkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrg3FkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrg3FkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgAFkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgAFkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgAFkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgBFkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgBFkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgBFkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgCFkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgCFkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgCFkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrg3RkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrg3RkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrg3RkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgARkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgARkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgARkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgBRkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgBRkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgBRkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgCRkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgCRkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasLoadProfEnrgCRkWh, UI32, 4 ) \ DB_VALUE_BUFFER( FaultProfileDataAddr, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc5th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn5th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa5th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb5th, UI32, 4 ) \ DB_VALUE_BUFFER( protLifeTickCnt, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc5th, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenLinkSlaveAddr, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenLinkConfirmationTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenLinkMaxRetries, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenLinkMaxTransFrameSize, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenAppSBOTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenAppConfirmationTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenAppNeedTimeDelay, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenAppColdRestartDelay, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenAppWarmRestartDelay, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenMasterAddr, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenRetryDelay, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenRetries, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenOfflineInterval, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass1Events, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass1Delays, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass2Events, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass2Delays, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass3Events, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass3Delays, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimTripRequestFailCode, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimOperationFault, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimCloseRequestFailCode, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa6th, UI32, 4 ) \ DB_VALUE_BUFFER( ProtStatusState, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb6th, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimOSMDisableActuatorTest, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc6th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn6th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa6th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb6th, UI32, 4 ) \ DB_VALUE_BUFFER( DbugDbServer, UI32, 4 ) \ DB_VALUE_BUFFER( DEPRECATED_HmiServerLifeTickCnt, UI32, 4 ) \ DB_VALUE_BUFFER( DEPRECATED_HmiPanelLifeTickCnt, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimPower, UI32, 4 ) \ DB_VALUE_BUFFER( OC_SP1, UI32, 4 ) \ DB_VALUE_BUFFER( OC_SP2, UI32, 4 ) \ DB_VALUE_BUFFER( OC_SP3, UI32, 4 ) \ DB_VALUE_BUFFER( KA_SP1, UI32, 4 ) \ DB_VALUE_BUFFER( KA_SP2, UI32, 4 ) \ DB_VALUE_BUFFER( KA_SP3, UI32, 4 ) \ DB_VALUE_BUFFER( RelayWdResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( ActiveSwitchPositionStatus, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCTaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCTbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCTcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCTaCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCTbCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCTcCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCTnCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCVTaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCVTbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCVTcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCVTrCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCVTsCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RelayCVTtCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( scadaPollCount, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc6th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa7th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb7th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc7th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn7th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa7th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb7th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc7th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa8th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb8th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc8th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn8th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa8th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb8th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc8th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa9th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb9th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc9th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn9th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa9th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb9th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc9th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa10th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb10th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc10th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn10th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa10th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb10th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc10th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa11th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb11th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc11th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn11th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa11th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb11th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc11th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa12th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb12th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc12th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn12th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa12th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb12th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc12th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa13th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb13th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc13th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn13th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa13th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb13th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc13th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa14th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb14th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc14th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn14th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa14th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb14th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc14th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIa15th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIb15th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIc15th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmIn15th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUa15th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUb15th, UI32, 4 ) \ DB_VALUE_BUFFER( HrmUc15th, UI32, 4 ) \ DB_VALUE_BUFFER( Dnp3RxCnt, UI32, 4 ) \ DB_VALUE_BUFFER( Dnp3TxCnt, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldOpen, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldClose, UI32, 4 ) \ DB_VALUE_BUFFER( G1_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G2_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G3_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G4_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxCurrIa, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxCurrIb, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxCurrIc, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxCurrIn, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinVoltP2P, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxVoltP2P, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinFreq, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxFreq, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimCalibrationInvalidate, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterFramesTx, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterFramesRx, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterErrorLength, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterErrorCrc, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterBufferC1, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterBufferC2, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaCounterBufferC3, UI32, 4 ) \ DB_VALUE_BUFFER( UsbDiscUpdateCount, UI32, 4 ) \ DB_VALUE_BUFFER( G5_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G5_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G5_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G5_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G5_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G6_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G6_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G6_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G6_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G6_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G7_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G7_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G7_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G7_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G7_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G8_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G8_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G8_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G8_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G8_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OCLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OCLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OCLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OCLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( CntrHrmTrips, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxHrm, UI32, 4 ) \ DB_VALUE_BUFFER( InMDIToday, UI32, 4 ) \ DB_VALUE_BUFFER( InMDIYesterday, UI32, 4 ) \ DB_VALUE_BUFFER( InMDILastWeek, UI32, 4 ) \ DB_VALUE_BUFFER( G11_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G11_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G11_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( CntrNpsTrips, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxCurrI2, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NpsAt, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPS3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL3_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_NPSLL3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EFLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFLL_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFLL_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFLL_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv4_Um_min, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv4_Um_max, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Uv4_Um_mid, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov3_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov4_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Ov4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OV3MovingAverageWindow, UI32, 4 ) \ DB_VALUE_BUFFER( G1_I2I1_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G1_I2I1_MinI2, UI32, 4 ) \ DB_VALUE_BUFFER( G1_I2I1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_I2I1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SSTControl_Tst, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NpsAt, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPS3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL3_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_NPSLL3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EFLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFLL_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFLL_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFLL_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv4_Um_min, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv4_Um_max, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Uv4_Um_mid, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov3_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov4_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Ov4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OV3MovingAverageWindow, UI32, 4 ) \ DB_VALUE_BUFFER( G2_I2I1_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G2_I2I1_MinI2, UI32, 4 ) \ DB_VALUE_BUFFER( G2_I2I1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_I2I1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SSTControl_Tst, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NpsAt, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPS3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL3_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_NPSLL3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EFLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFLL_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFLL_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFLL_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv4_Um_min, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv4_Um_max, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Uv4_Um_mid, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov3_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov4_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Ov4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OV3MovingAverageWindow, UI32, 4 ) \ DB_VALUE_BUFFER( G3_I2I1_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G3_I2I1_MinI2, UI32, 4 ) \ DB_VALUE_BUFFER( G3_I2I1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_I2I1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SSTControl_Tst, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NpsAt, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2F_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS3F_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS1R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS2R_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS3R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPS3R_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL3_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_NPSLL3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL1_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_Tm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_Imin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_Tmin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_Tmax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_Ta, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EFLL2_Imax, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFLL_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFLL_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFLL_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv4_Um_min, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv4_Um_max, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Uv4_Um_mid, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov3_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov3_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov3_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov4_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov4_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Ov4_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OV3MovingAverageWindow, UI32, 4 ) \ DB_VALUE_BUFFER( G4_I2I1_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G4_I2I1_MinI2, UI32, 4 ) \ DB_VALUE_BUFFER( G4_I2I1_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_I2I1_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SSTControl_Tst, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldOpenHigh, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldCloseHigh, UI32, 4 ) \ DB_VALUE_BUFFER( UsbDiscInstallCount, UI32, 4 ) \ DB_VALUE_BUFFER( I2Trip, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimTripRequestFailCodeB, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimTripRequestFailCodeC, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimCloseRequestFailCodeB, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimCloseRequestFailCodeC, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinVoltUv4, UI32, 4 ) \ DB_VALUE_BUFFER( ActiveSwitchPositionStatusST, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldOpenB, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldOpenHighB, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldOpenC, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldOpenHighC, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldCloseB, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldCloseHighB, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldCloseC, UI32, 4 ) \ DB_VALUE_BUFFER( SignalBitFieldCloseHighC, UI32, 4 ) \ DB_VALUE_BUFFER( MechanicalWeara, UI32, 4 ) \ DB_VALUE_BUFFER( MechanicalWearb, UI32, 4 ) \ DB_VALUE_BUFFER( MechanicalWearc, UI32, 4 ) \ DB_VALUE_BUFFER( BatteryTestIntervalUnits, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseS3kW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseS3kVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerFactorS3phase, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseSAkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseSAkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseSBkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseSBkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseSCkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseSCkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut01, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut02, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut03, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut04, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut05, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut06, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut07, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut08, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut09, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut10, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut11, UI32, 4 ) \ DB_VALUE_BUFFER( UserAnalogOut12, UI32, 4 ) \ DB_VALUE_BUFFER( CntrHrmATrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrHrmBTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrHrmCTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrHrmNTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrUvATrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrUvBTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrUvCTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOvATrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOvBTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrOvCTrips, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinUvA, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinUvB, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinUvC, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxOvA, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxOvB, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxOvC, UI32, 4 ) \ DB_VALUE_BUFFER( s61850ClientIpAddr1, UI32, 4 ) \ DB_VALUE_BUFFER( s61850ServerIpAddr, UI32, 4 ) \ DB_VALUE_BUFFER( s61850PktsRx, UI32, 4 ) \ DB_VALUE_BUFFER( s61850PktsTx, UI32, 4 ) \ DB_VALUE_BUFFER( s61850RxErrPkts, UI32, 4 ) \ DB_VALUE_BUFFER( GOOSE_TxCount, UI32, 4 ) \ DB_VALUE_BUFFER( s61850ClientIpAddr2, UI32, 4 ) \ DB_VALUE_BUFFER( s61850ClientIpAddr3, UI32, 4 ) \ DB_VALUE_BUFFER( s61850ClientIpAddr4, UI32, 4 ) \ DB_VALUE_BUFFER( s61850TestAI1, UI32, 4 ) \ DB_VALUE_BUFFER( s61850TestAI2, UI32, 4 ) \ DB_VALUE_BUFFER( s61850DiagCtrl, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp1, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp2, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp3, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp4, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp5, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp6, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp7, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseFp8, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt1, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt2, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt3, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt4, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt5, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt6, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt7, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseInt8, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_ExpectSessKeyChangeCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_UnexpectedMsgCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_AuthorizeFailCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_AuthenticateFailCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_ReplyTimeoutCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_RekeyCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_TotalMsgTxCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_TotalMsgRxCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_CriticalMsgTxCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_CriticalMsgRxCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_DiscardedMsgCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_AuthenticateSuccessCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_ErrorMsgTxCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_ErrorMsgRxCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_SessKeyChangeCount, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3SA_FailedSessKeyChangeCount, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUn, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxVoltUn, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxVoltU2, UI32, 4 ) \ DB_VALUE_BUFFER( UsbDiscUpdateDirFileCount, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimModuleFeatures, UI32, 4 ) \ DB_VALUE_BUFFER( CanPscReadHWVers, UI32, 4 ) \ DB_VALUE_BUFFER( CanDataRequestPsc, UI32, 4 ) \ DB_VALUE_BUFFER( GOOSE_RxCount, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaT10BIpMasterAddr, UI32, 4 ) \ DB_VALUE_BUFFER( DDT001, UI32, 4 ) \ DB_VALUE_BUFFER( DDT002, UI32, 4 ) \ DB_VALUE_BUFFER( DDT003, UI32, 4 ) \ DB_VALUE_BUFFER( DDT004, UI32, 4 ) \ DB_VALUE_BUFFER( DDT005, UI32, 4 ) \ DB_VALUE_BUFFER( DDT006, UI32, 4 ) \ DB_VALUE_BUFFER( DDT007, UI32, 4 ) \ DB_VALUE_BUFFER( DDT008, UI32, 4 ) \ DB_VALUE_BUFFER( DDT009, UI32, 4 ) \ DB_VALUE_BUFFER( DDT010, UI32, 4 ) \ DB_VALUE_BUFFER( DDT011, UI32, 4 ) \ DB_VALUE_BUFFER( DDT012, UI32, 4 ) \ DB_VALUE_BUFFER( DDT013, UI32, 4 ) \ DB_VALUE_BUFFER( DDT014, UI32, 4 ) \ DB_VALUE_BUFFER( DDT015, UI32, 4 ) \ DB_VALUE_BUFFER( DDT016, UI32, 4 ) \ DB_VALUE_BUFFER( DDT017, UI32, 4 ) \ DB_VALUE_BUFFER( DDT018, UI32, 4 ) \ DB_VALUE_BUFFER( DDT019, UI32, 4 ) \ DB_VALUE_BUFFER( DDT020, UI32, 4 ) \ DB_VALUE_BUFFER( DDT021, UI32, 4 ) \ DB_VALUE_BUFFER( DDT022, UI32, 4 ) \ DB_VALUE_BUFFER( DDT023, UI32, 4 ) \ DB_VALUE_BUFFER( DDT024, UI32, 4 ) \ DB_VALUE_BUFFER( DDT025, UI32, 4 ) \ DB_VALUE_BUFFER( DDT026, UI32, 4 ) \ DB_VALUE_BUFFER( DDT027, UI32, 4 ) \ DB_VALUE_BUFFER( DDT028, UI32, 4 ) \ DB_VALUE_BUFFER( DDT029, UI32, 4 ) \ DB_VALUE_BUFFER( DDT030, UI32, 4 ) \ DB_VALUE_BUFFER( DDT031, UI32, 4 ) \ DB_VALUE_BUFFER( DDT032, UI32, 4 ) \ DB_VALUE_BUFFER( DDT033, UI32, 4 ) \ DB_VALUE_BUFFER( DDT034, UI32, 4 ) \ DB_VALUE_BUFFER( DDT035, UI32, 4 ) \ DB_VALUE_BUFFER( DDT036, UI32, 4 ) \ DB_VALUE_BUFFER( DDT037, UI32, 4 ) \ DB_VALUE_BUFFER( DDT038, UI32, 4 ) \ DB_VALUE_BUFFER( DDT039, UI32, 4 ) \ DB_VALUE_BUFFER( DDT040, UI32, 4 ) \ DB_VALUE_BUFFER( DDT041, UI32, 4 ) \ DB_VALUE_BUFFER( DDT042, UI32, 4 ) \ DB_VALUE_BUFFER( DDT043, UI32, 4 ) \ DB_VALUE_BUFFER( DDT044, UI32, 4 ) \ DB_VALUE_BUFFER( DDT045, UI32, 4 ) \ DB_VALUE_BUFFER( DDT046, UI32, 4 ) \ DB_VALUE_BUFFER( DDT047, UI32, 4 ) \ DB_VALUE_BUFFER( DDT048, UI32, 4 ) \ DB_VALUE_BUFFER( DDT049, UI32, 4 ) \ DB_VALUE_BUFFER( DDT050, UI32, 4 ) \ DB_VALUE_BUFFER( DDT051, UI32, 4 ) \ DB_VALUE_BUFFER( DDT052, UI32, 4 ) \ DB_VALUE_BUFFER( DDT053, UI32, 4 ) \ DB_VALUE_BUFFER( DDT054, UI32, 4 ) \ DB_VALUE_BUFFER( DDT055, UI32, 4 ) \ DB_VALUE_BUFFER( DDT056, UI32, 4 ) \ DB_VALUE_BUFFER( DDT057, UI32, 4 ) \ DB_VALUE_BUFFER( DDT058, UI32, 4 ) \ DB_VALUE_BUFFER( DDT059, UI32, 4 ) \ DB_VALUE_BUFFER( DDT060, UI32, 4 ) \ DB_VALUE_BUFFER( DDT061, UI32, 4 ) \ DB_VALUE_BUFFER( DDT062, UI32, 4 ) \ DB_VALUE_BUFFER( DDT063, UI32, 4 ) \ DB_VALUE_BUFFER( DDT064, UI32, 4 ) \ DB_VALUE_BUFFER( DDT065, UI32, 4 ) \ DB_VALUE_BUFFER( DDT066, UI32, 4 ) \ DB_VALUE_BUFFER( DDT067, UI32, 4 ) \ DB_VALUE_BUFFER( DDT068, UI32, 4 ) \ DB_VALUE_BUFFER( DDT069, UI32, 4 ) \ DB_VALUE_BUFFER( DDT070, UI32, 4 ) \ DB_VALUE_BUFFER( DDT071, UI32, 4 ) \ DB_VALUE_BUFFER( DDT072, UI32, 4 ) \ DB_VALUE_BUFFER( DDT073, UI32, 4 ) \ DB_VALUE_BUFFER( DDT074, UI32, 4 ) \ DB_VALUE_BUFFER( DDT075, UI32, 4 ) \ DB_VALUE_BUFFER( DDT076, UI32, 4 ) \ DB_VALUE_BUFFER( DDT077, UI32, 4 ) \ DB_VALUE_BUFFER( DDT078, UI32, 4 ) \ DB_VALUE_BUFFER( DDT079, UI32, 4 ) \ DB_VALUE_BUFFER( DDT080, UI32, 4 ) \ DB_VALUE_BUFFER( DDT081, UI32, 4 ) \ DB_VALUE_BUFFER( DDT082, UI32, 4 ) \ DB_VALUE_BUFFER( DDT083, UI32, 4 ) \ DB_VALUE_BUFFER( DDT084, UI32, 4 ) \ DB_VALUE_BUFFER( DDT085, UI32, 4 ) \ DB_VALUE_BUFFER( DDT086, UI32, 4 ) \ DB_VALUE_BUFFER( DDT087, UI32, 4 ) \ DB_VALUE_BUFFER( DDT088, UI32, 4 ) \ DB_VALUE_BUFFER( DDT089, UI32, 4 ) \ DB_VALUE_BUFFER( DDT090, UI32, 4 ) \ DB_VALUE_BUFFER( DDT091, UI32, 4 ) \ DB_VALUE_BUFFER( DDT092, UI32, 4 ) \ DB_VALUE_BUFFER( DDT093, UI32, 4 ) \ DB_VALUE_BUFFER( DDT094, UI32, 4 ) \ DB_VALUE_BUFFER( DDT095, UI32, 4 ) \ DB_VALUE_BUFFER( DDT096, UI32, 4 ) \ DB_VALUE_BUFFER( DDT097, UI32, 4 ) \ DB_VALUE_BUFFER( DDT098, UI32, 4 ) \ DB_VALUE_BUFFER( DDT099, UI32, 4 ) \ DB_VALUE_BUFFER( DDT100, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumModelA, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumModelB, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumModelC, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumPlantA, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumPlantB, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumPlantC, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumDateA, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumDateB, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumDateC, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumSeqA, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumSeqB, UI32, 4 ) \ DB_VALUE_BUFFER( IdOsmNumSeqC, UI32, 4 ) \ DB_VALUE_BUFFER( CmsClientCapabilities, UI32, 4 ) \ DB_VALUE_BUFFER( Gps_Longitude, UI32, 4 ) \ DB_VALUE_BUFFER( Gps_Latitude, UI32, 4 ) \ DB_VALUE_BUFFER( WlanAccessPointIP, UI32, 4 ) \ DB_VALUE_BUFFER( WlanIPRangeLow, UI32, 4 ) \ DB_VALUE_BUFFER( WlanIPRangeHigh, UI32, 4 ) \ DB_VALUE_BUFFER( WlanClientIPAddr1, UI32, 4 ) \ DB_VALUE_BUFFER( WlanClientIPAddr2, UI32, 4 ) \ DB_VALUE_BUFFER( WlanClientIPAddr3, UI32, 4 ) \ DB_VALUE_BUFFER( WlanClientIPAddr4, UI32, 4 ) \ DB_VALUE_BUFFER( WlanClientIPAddr5, UI32, 4 ) \ DB_VALUE_BUFFER( G12_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G12_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G12_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G13_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G13_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G13_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( SyncAutoWaitingTime, UI32, 4 ) \ DB_VALUE_BUFFER( SyncAdvanceAngle, UI32, 4 ) \ DB_VALUE_BUFFER( SyncSlipFreq, UI32, 4 ) \ DB_VALUE_BUFFER( SyncMaxDeltaV, UI32, 4 ) \ DB_VALUE_BUFFER( SyncMaxDeltaPhase, UI32, 4 ) \ DB_VALUE_BUFFER( FaultProfileDataAddrB, UI32, 4 ) \ DB_VALUE_BUFFER( FaultProfileDataAddrC, UI32, 4 ) \ DB_VALUE_BUFFER( SyncStateFlags, UI32, 4 ) \ DB_VALUE_BUFFER( s61850CIDFileCheck, UI32, 4 ) \ DB_VALUE_BUFFER( SyncFundFreq, UI32, 4 ) \ DB_VALUE_BUFFER( SyncAutoAction, UI32, 4 ) \ DB_VALUE_BUFFER( FreqabcROC, UI32, 4 ) \ DB_VALUE_BUFFER( A_WT1, UI32, 4 ) \ DB_VALUE_BUFFER( A_WT2, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltU0RST, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltUnRST, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltU1RST, UI32, 4 ) \ DB_VALUE_BUFFER( MeasVoltU2RST, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_Ioper, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_FwdSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_RevSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_FwdConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Yn_RevConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_EF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_EF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_EF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_EF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_EF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_SEF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_SEF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_SEF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_SEF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_DE_SEF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_Ioper, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_FwdSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_RevSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_FwdConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Yn_RevConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_EF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_EF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_EF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_EF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_EF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_SEF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_SEF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_SEF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_SEF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_DE_SEF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_Ioper, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_FwdSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_RevSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_FwdConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Yn_RevConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_EF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_EF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_EF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_EF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_EF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_SEF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_SEF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_SEF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_SEF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_DE_SEF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_Um, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_Ioper, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_FwdSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_RevSusceptance, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_FwdConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Yn_RevConductance, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_EF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_EF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_EF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_EF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_EF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_SEF_MinNVD, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_SEF_MaxFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_SEF_MinFwdAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_SEF_MaxRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_DE_SEF_MinRevAngle, UI32, 4 ) \ DB_VALUE_BUFFER( CntrYnTrips, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxGn, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxBn, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinGn, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinBn, UI32, 4 ) \ DB_VALUE_BUFFER( MeasGn, UI32, 4 ) \ DB_VALUE_BUFFER( MeasBn, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchStateOwnerPtr, UI32, 4 ) \ DB_VALUE_BUFFER( ModemRetryWaitTime, UI32, 4 ) \ DB_VALUE_BUFFER( CntrI2I1Trips, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxI2I1, UI32, 4 ) \ DB_VALUE_BUFFER( MeasI2I1, UI32, 4 ) \ DB_VALUE_BUFFER( Diagnostic1, UI32, 4 ) \ DB_VALUE_BUFFER( Diagnostic2, UI32, 4 ) \ DB_VALUE_BUFFER( Diagnostic3, UI32, 4 ) \ DB_VALUE_BUFFER( Diagnostic4, UI32, 4 ) \ DB_VALUE_BUFFER( MeasCurrIn_mA, UI32, 4 ) \ DB_VALUE_BUFFER( InTrip_mA, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxCurrIn_mA, UI32, 4 ) \ DB_VALUE_BUFFER( CmsAuxConfigMaxFrameSizeTx, UI32, 4 ) \ DB_VALUE_BUFFER( CmsConfigMaxFrameSizeTx, UI32, 4 ) \ DB_VALUE_BUFFER( AlertDisplayNamesChanged, UI32, 4 ) \ DB_VALUE_BUFFER( Gps_SetTime, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocM, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocZf, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocThetaF, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocZLoop, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocThetaLoop, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocIa, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocIb, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocIc, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocUa, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocUb, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocUc, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocTrigger, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocR0, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocX0, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocR1, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocX1, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocRA, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocXA, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocLengthOfLine, UI32, 4 ) \ DB_VALUE_BUFFER( FtstCaptureNextPtr, UI32, 4 ) \ DB_VALUE_BUFFER( FtstCaptureLastPtr, UI32, 4 ) \ DB_VALUE_BUFFER( FaultLocXLoop, UI32, 4 ) \ DB_VALUE_BUFFER( CanPscFirmwareUpdateFeatures, UI32, 4 ) \ DB_VALUE_BUFFER( CanSimFirmwareUpdateFeatures, UI32, 4 ) \ DB_VALUE_BUFFER( CanGpioFirmwareUpdateFeatures, UI32, 4 ) \ DB_VALUE_BUFFER( DiagCounterCtrl1, UI32, 4 ) \ DB_VALUE_BUFFER( Diagnostic5, UI32, 4 ) \ DB_VALUE_BUFFER( Diagnostic6, UI32, 4 ) \ DB_VALUE_BUFFER( s61850GseSubsSts, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMIaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMIbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMIcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMInCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMIaCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMIbCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMIcCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMUaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMUbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMUcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMUrCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMUsCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMUtCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDNP3GenAppFragMaxSize, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAIa, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAIb, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAIc, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAIaHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAIbHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAIcHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAIn, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAUa, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAUb, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAUc, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAUr, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAUs, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGAUt, UI32, 4 ) \ DB_VALUE_BUFFER( OscLogCountSD, UI32, 4 ) \ DB_VALUE_BUFFER( PscTransformerCalib110V, UI32, 4 ) \ DB_VALUE_BUFFER( PscTransformerCalib220V, UI32, 4 ) \ DB_VALUE_BUFFER( G14_BytesReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_BytesTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_PacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_PacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ErrorPacketsReceivedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ErrorPacketsTransmittedStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_IpAddrStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SubnetMaskStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_DefaultGatewayStatus, UI32, 4 ) \ DB_VALUE_BUFFER( G14_PacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G14_PacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ErrorPacketsReceivedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ErrorPacketsTransmittedStatusIPv6, UI32, 4 ) \ DB_VALUE_BUFFER( TripHrmComponentExt, UI32, 4 ) \ DB_VALUE_BUFFER( TripHrmComponentAExt, UI32, 4 ) \ DB_VALUE_BUFFER( TripHrmComponentBExt, UI32, 4 ) \ DB_VALUE_BUFFER( TripHrmComponentCExt, UI32, 4 ) \ DB_VALUE_BUFFER( CntrROCOFTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrVVSTrips, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxROCOF, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxVVS, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCNumModel, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCNumPlant, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCNumDate, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCNumSeq, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCSwVer1, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCSwVer2, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCSwVer3, UI32, 4 ) \ DB_VALUE_BUFFER( IdPSCSwVer4, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Ua, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Ub, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Uc, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Ur, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Us, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Ut, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Ia, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Ib, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_Ic, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Ua, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Ub, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Uc, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Ur, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Us, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Ut, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Ia, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Ib, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_Ic, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_F_ABC, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_F_RST, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_ROCOF_ABC, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_ROCOF_RST, UI32, 4 ) \ DB_VALUE_BUFFER( PscDcCalibCoef, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_In, UI32, 4 ) \ DB_VALUE_BUFFER( PMU_A_In, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGStatusMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGStatusMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGStatusMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGStatusMasterIPv4Addr, UI32, 4 ) \ DB_VALUE_BUFFER( CntrPDOPTrips, UI32, 4 ) \ DB_VALUE_BUFFER( CntrPDUPTrips, UI32, 4 ) \ DB_VALUE_BUFFER( TripMaxPDOP, UI32, 4 ) \ DB_VALUE_BUFFER( TripAnglePDOP, UI32, 4 ) \ DB_VALUE_BUFFER( TripMinPDUP, UI32, 4 ) \ DB_VALUE_BUFFER( TripAnglePDUP, UI32, 4 ) \ DB_VALUE_BUFFER( MeasAngle3phase, UI32, 4 ) \ DB_VALUE_BUFFER( IsDirty, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSetResetTimeUI16, UI16, 2 ) \ DB_VALUE_BUFFER( G1_OC1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_OC2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_OC1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_OC2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_EF1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_EF2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_EF1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_EF2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_AutoOpenTime, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3IpTcpSlavePort, UI16, 2 ) \ DB_VALUE_BUFFER( SimBatteryVoltageScaled, UI16, 2 ) \ DB_VALUE_BUFFER( LocalInputDebouncePeriod, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT104TCPPortNr, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCAA, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT101DataLinkAdd, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT101MaxDLFrameSize, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT101FrameTimeout, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT101LinkConfirmTimeout, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BSelectExecuteTimeout, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT104ControlTSTimeout, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCyclicPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BBackgroundPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGeneralLocalFrzPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp1LocalFrzPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp2LocalFrzPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp3LocalFrzPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp4LocalFrzPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( T10BPhaseCurrentDeadband, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT104PendingFrames, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT104ConfirmAfter, UI16, 2 ) \ DB_VALUE_BUFFER( T10BPhaseVoltageDeadband, UI16, 2 ) \ DB_VALUE_BUFFER( T10BResidualCurrentDeadband, UI16, 2 ) \ DB_VALUE_BUFFER( T10B3PhasePowerDeadband, UI16, 2 ) \ DB_VALUE_BUFFER( T10BPhaseCurrentHiLimit, UI16, 2 ) \ DB_VALUE_BUFFER( T10BResidualCurrentHiLimit, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimTripCAPVoltage, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimCloseCAPVoltage, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSwitchgearCTRatio, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTaCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTbCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTcCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTnCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTTempCompCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCVTaCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCVTbCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCVTcCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCVTrCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCVTsCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCVTtCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCVTTempCompCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimBatteryVoltage, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimBatteryCurrent, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimBatteryChargerCurrent, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimExtSupplyCurrent, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSetShutdownTime, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMTemp, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimModuleFault, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimModuleTemp, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimModuleVoltage, UI16, 2 ) \ DB_VALUE_BUFFER( G2_OC1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_OC2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_OC1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_OC2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_EF1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_EF2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_EF1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_EF2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_AutoOpenTime, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime1, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime2, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime3, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime4, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime5, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime6, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime7, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseTime8, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime1, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime2, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime3, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime4, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime5, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime6, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime7, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseTime8, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1ModuleFault, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2ModuleFault, UI16, 2 ) \ DB_VALUE_BUFFER( G3_OC1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_OC2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_OC1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_OC2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_EF1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_EF2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_EF1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_EF2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_AutoOpenTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh1RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh2RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh3RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh4RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh5RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh6RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh7RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh8RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh1ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh2ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh3ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh4ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh5ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh6ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh7ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh8ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh1PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh2PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh3PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh4PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh5PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh6PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh7PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh8PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( G4_OC1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_OC2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_OC1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_OC2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_EF1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_EF2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_EF1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_EF2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_AutoOpenTime, UI16, 2 ) \ DB_VALUE_BUFFER( PhaseConfig, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTaCalCoefHi, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTbCalCoefHi, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMCTcCalCoefHi, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimBatteryCapacityAmpHrs, UI16, 2 ) \ DB_VALUE_BUFFER( PanelDelayedCloseRemain, UI16, 2 ) \ DB_VALUE_BUFFER( G1_OCLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_OCLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_AutoClose_Tr, UI16, 2 ) \ DB_VALUE_BUFFER( G2_OCLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_OCLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_AutoClose_Tr, UI16, 2 ) \ DB_VALUE_BUFFER( G3_OCLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_OCLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_AutoClose_Tr, UI16, 2 ) \ DB_VALUE_BUFFER( G4_OCLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_OCLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_AutoClose_Tr, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo1OutputSetMasked, UI16, 2 ) \ DB_VALUE_BUFFER( CanIo2OutputSetMasked, UI16, 2 ) \ DB_VALUE_BUFFER( PGESlaveAddress, UI16, 2 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_NPSLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_NPSLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_EFLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_EFLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G1_AutoOpenPowerFlowTime, UI16, 2 ) \ DB_VALUE_BUFFER( G1_LSRM_Timer, UI16, 2 ) \ DB_VALUE_BUFFER( G1_Uv4_Tlock, UI16, 2 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_NPSLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_NPSLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_EFLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_EFLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G2_AutoOpenPowerFlowTime, UI16, 2 ) \ DB_VALUE_BUFFER( G2_LSRM_Timer, UI16, 2 ) \ DB_VALUE_BUFFER( G2_Uv4_Tlock, UI16, 2 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_NPSLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_NPSLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_EFLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_EFLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G3_AutoOpenPowerFlowTime, UI16, 2 ) \ DB_VALUE_BUFFER( G3_LSRM_Timer, UI16, 2 ) \ DB_VALUE_BUFFER( G3_Uv4_Tlock, UI16, 2 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_NPSLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_NPSLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_EFLL1_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_EFLL2_Tcc, UI16, 2 ) \ DB_VALUE_BUFFER( G4_AutoOpenPowerFlowTime, UI16, 2 ) \ DB_VALUE_BUFFER( G4_LSRM_Timer, UI16, 2 ) \ DB_VALUE_BUFFER( G4_Uv4_Tlock, UI16, 2 ) \ DB_VALUE_BUFFER( PGESBOTimeout, UI16, 2 ) \ DB_VALUE_BUFFER( InstallPeriod, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSwitchPositionStatusST, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSwitchLockoutStatusST, UI16, 2 ) \ DB_VALUE_BUFFER( SimulSwitchPositionStatusST, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BCyclicStartMaxDelay, UI16, 2 ) \ DB_VALUE_BUFFER( s61850ServerTcpPort, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh9RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh9ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh9PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh10RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh10ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh10PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh11RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh11ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh11PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh12RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh12ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh12PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh13RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh13ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh13PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh14RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh14ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh14PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh15RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh15ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh15PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh16RecTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh16ResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh16PulseTime, UI16, 2 ) \ DB_VALUE_BUFFER( DNP3SA_ExpectSessKeyChangeInterval, UI16, 2 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileUserNum, UI16, 2 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileUserRole, UI16, 2 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileDNP3SlaveAddr, UI16, 2 ) \ DB_VALUE_BUFFER( DNP3SA_MaxErrorMessagesSent, UI16, 2 ) \ DB_VALUE_BUFFER( DNP3SA_MaxAuthenticationFails, UI16, 2 ) \ DB_VALUE_BUFFER( DNP3SA_MaxAuthenticationRekeys, UI16, 2 ) \ DB_VALUE_BUFFER( DNP3SA_MaxReplyTimeouts, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngIa, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngIc, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngUa, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngUb, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngUc, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngUr, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngUs, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngUt, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimMaxPower, UI16, 2 ) \ DB_VALUE_BUFFER( CanPscModuleFault, UI16, 2 ) \ DB_VALUE_BUFFER( Gps_Altitude, UI16, 2 ) \ DB_VALUE_BUFFER( SyncLiveBusMultiplier, UI16, 2 ) \ DB_VALUE_BUFFER( SyncLiveLineMultiplier, UI16, 2 ) \ DB_VALUE_BUFFER( SyncMaxBusMultiplier, UI16, 2 ) \ DB_VALUE_BUFFER( SyncMaxLineMultiplier, UI16, 2 ) \ DB_VALUE_BUFFER( SyncVoltageDiffMultiplier, UI16, 2 ) \ DB_VALUE_BUFFER( SyncMaxSyncSlipFreq, UI16, 2 ) \ DB_VALUE_BUFFER( SyncMaxPhaseAngleDiff, UI16, 2 ) \ DB_VALUE_BUFFER( SyncManualPreSyncTime, UI16, 2 ) \ DB_VALUE_BUFFER( SyncMaxFreqDeviation, UI16, 2 ) \ DB_VALUE_BUFFER( SyncMaxAutoSlipFreq, UI16, 2 ) \ DB_VALUE_BUFFER( SyncMaxROCSlipFreq, UI16, 2 ) \ DB_VALUE_BUFFER( ProtConfigCount, UI16, 2 ) \ DB_VALUE_BUFFER( WT1, UI16, 2 ) \ DB_VALUE_BUFFER( WT2, UI16, 2 ) \ DB_VALUE_BUFFER( UPSMobileNetworkTime, UI16, 2 ) \ DB_VALUE_BUFFER( UPSWlanTime, UI16, 2 ) \ DB_VALUE_BUFFER( UPSMobileNetworkResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( UPSWlanResetTime, UI16, 2 ) \ DB_VALUE_BUFFER( CanPscHeatsinkTemp, UI16, 2 ) \ DB_VALUE_BUFFER( CanPscModuleVoltage, UI16, 2 ) \ DB_VALUE_BUFFER( Gps_Latitude_Field1, UI16, 2 ) \ DB_VALUE_BUFFER( Gps_Latitude_Field2, UI16, 2 ) \ DB_VALUE_BUFFER( Gps_Latitude_Field3, UI16, 2 ) \ DB_VALUE_BUFFER( Gps_Longitude_Field1, UI16, 2 ) \ DB_VALUE_BUFFER( Gps_Longitude_Field2, UI16, 2 ) \ DB_VALUE_BUFFER( Gps_Longitude_Field3, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr1, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr2, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr3, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr4, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr5, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr6, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr7, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr8, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr9, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr10, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr11, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr12, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr13, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr14, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr15, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr16, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr17, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr18, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr19, UI16, 2 ) \ DB_VALUE_BUFFER( AlertExpr20, UI16, 2 ) \ DB_VALUE_BUFFER( FaultLocAIa, UI16, 2 ) \ DB_VALUE_BUFFER( FaultLocAIb, UI16, 2 ) \ DB_VALUE_BUFFER( FaultLocAIc, UI16, 2 ) \ DB_VALUE_BUFFER( FaultLocAUa, UI16, 2 ) \ DB_VALUE_BUFFER( FaultLocAUb, UI16, 2 ) \ DB_VALUE_BUFFER( FaultLocAUc, UI16, 2 ) \ DB_VALUE_BUFFER( LineSupplyVoltage, UI16, 2 ) \ DB_VALUE_BUFFER( OscSamplesPerCycle, UI16, 2 ) \ DB_VALUE_BUFFER( PeakPower, UI16, 2 ) \ DB_VALUE_BUFFER( ExternalSupplyPower, UI16, 2 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGSlaveTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGStatusMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGSlaveTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGStatusMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGSlaveTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGStatusMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGSlaveTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGStatusMasterTCPPort, UI16, 2 ) \ DB_VALUE_BUFFER( LogicCh17RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh17ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh17PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh18RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh18ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh18PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh19RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh19ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh19PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh20RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh20ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh20PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh21RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh21ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh21PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh22RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh22ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh22PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh23RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh23ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh23PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh24RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh24ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh24PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh25RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh25ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh25PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh26RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh26ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh26PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh27RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh27ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh27PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh28RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh28ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh28PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh29RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh29ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh29PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh30RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh30ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh30PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh31RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh31ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh31PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh32RecTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh32ResetTime, UI16, 3 ) \ DB_VALUE_BUFFER( LogicCh32PulseTime, UI16, 3 ) \ DB_VALUE_BUFFER( UpdateLock, UI16, 3 ) \ DB_VALUE_BUFFER( SwitchFailureStatusFlag, UI8, 1 ) \ DB_VALUE_BUFFER( DbSourceFiles, UI8, 1 ) \ DB_VALUE_BUFFER( HmiMode, UI8, 1 ) \ DB_VALUE_BUFFER( ClearFaultCntr, UI8, 1 ) \ DB_VALUE_BUFFER( ClearScadaCntr, UI8, 1 ) \ DB_VALUE_BUFFER( ClearEnergyMeters, UI8, 1 ) \ DB_VALUE_BUFFER( CmsConnectStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp5, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp6, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp7, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp8, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OcDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EfDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SefDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ArOCEF_ZSCmode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_VrcEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G1_TtaMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_VrcMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_AbrMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OC3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EF3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFF_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFF_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFF_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFF_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFF_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFR_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFR_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFR_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFR_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFR_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uv1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uv2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uv3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Ov1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Ov2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uf_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Of_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstEfForward, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstSefForward, UI8, 1 ) \ DB_VALUE_BUFFER( G1_AutoOpenMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_AutoOpenOpns, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstOcReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstEfReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstSefReverse, UI8, 1 ) \ DB_VALUE_BUFFER( UpdateFileCopyFail, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaHMIEnableProtocol, UI8, 1 ) \ DB_VALUE_BUFFER( UsbGadgetConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( ShutdownExpected, UI8, 1 ) \ DB_VALUE_BUFFER( RestoreEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaOpMode, UI8, 1 ) \ DB_VALUE_BUFFER( CopyComplete, UI8, 1 ) \ DB_VALUE_BUFFER( ControlExtLoad, UI8, 2 ) \ DB_VALUE_BUFFER( ChEvEventLog, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvCloseOpenLog, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvFaultProfileLog, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvLoadProfileLog, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvChangeLog, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT101ChannelMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT101DataLinkAddSize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT101CAASize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT101COTSize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT101IOASize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT101SingleCharEnable, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT101TimeStampSize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BSinglePointRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BDoublePointRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BSingleCmdRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BDoubleCmdRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BMeasurandRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BSetpointRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BParamCmdRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BIntTotRepMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BFormatMeasurand, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGeneralLocalFrzFunction, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp1LocalFrzFunction, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp2LocalFrzFunction, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp3LocalFrzFunction, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BCounterGrp4LocalFrzFunction, UI8, 1 ) \ DB_VALUE_BUFFER( CmsMainConnected, UI8, 1 ) \ DB_VALUE_BUFFER( CmsAuxConnected, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3IpProtocolMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BEnableProtocol, UI8, 1 ) \ DB_VALUE_BUFFER( DEPRCATED_EvArUInit, UI8, 1 ) \ DB_VALUE_BUFFER( DERECATED_EvArUClose, UI8, 1 ) \ DB_VALUE_BUFFER( DEPRECATED_EvArURes, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimTripCloseRequestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchPositionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchManualTrip, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchLockoutStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimOSMActuatorFaultStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimOSMlimitSwitchFaultStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimDriverStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSIMCalibrationStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchgearType, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimCalibrationWriteData, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimBatteryStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimBatteryChargerStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimLowPowerBatteryCharge, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimBatteryCapacityRemaining, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSetTotalBatteryCapacity, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSetBatteryType, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimInitiateBatteryTest, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimBatteryTestResult, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimExtSupplyStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSetExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSetShutdownLevel, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimUPSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimLineSupplyStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimLineSupplyRange, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimUPSPowerUp, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimRequestWatchdogUpdate, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimRespondWatchdogRequest, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimModuleResetStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimResetModule, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimShutdownRequest, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimModuleHealth, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimModuleType, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1InputStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2InputStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimCANControllerOverrun, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimCANControllerError, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimCANMessagebufferoverflow, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1InputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2InputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1InputTrigger, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2InputTrigger, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimEmergShutdownRequest, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OcDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EfDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SefDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ArOCEF_ZSCmode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_VrcEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G2_TtaMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_VrcMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_AbrMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OC3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EF3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFF_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFF_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFF_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFF_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFF_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFR_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFR_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFR_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFR_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFR_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uv1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uv2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uv3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Ov1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Ov2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uf_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Of_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstEfForward, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstSefForward, UI8, 1 ) \ DB_VALUE_BUFFER( G2_AutoOpenMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_AutoOpenOpns, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstOcReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstEfReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstSefReverse, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1OutputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2OutputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1OutputSet, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2OutputSet, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1OutputPulseEnable, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2OutputPulseEnable, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1ModuleType, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2ModuleType, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1ModuleHealth, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2ModuleHealth, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1Test, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2Test, UI8, 1 ) \ DB_VALUE_BUFFER( IO1Number, UI8, 1 ) \ DB_VALUE_BUFFER( IO2Number, UI8, 1 ) \ DB_VALUE_BUFFER( IoStatusILocCh1, UI8, 1 ) \ DB_VALUE_BUFFER( IoStatusILocCh2, UI8, 1 ) \ DB_VALUE_BUFFER( IoStatusILocCh3, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1ResetModule, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2ResetModule, UI8, 1 ) \ DB_VALUE_BUFFER( SwitchgearType, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputEnable, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingILocEnable, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingILocTrec1, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingILocTrec2, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingILocTrec3, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh1, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh2, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh3, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh4, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh5, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh6, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh7, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InTrecCh8, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh1, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh2, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh3, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh4, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh5, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh6, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh7, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InTrecCh8, UI8, 1 ) \ DB_VALUE_BUFFER( IoProcessOpMode, UI8, 1 ) \ DB_VALUE_BUFFER( ChEventIo1, UI8, 1 ) \ DB_VALUE_BUFFER( ChEventIo2, UI8, 1 ) \ DB_VALUE_BUFFER( LogicChEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OcDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EfDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SefDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ArOCEF_ZSCmode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_VrcEnable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicChMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_TtaMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_VrcMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_AbrMode, UI8, 1 ) \ DB_VALUE_BUFFER( LogicChLogChange, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OC3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EF3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFF_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFF_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFF_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFF_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFF_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFR_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFR_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFR_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFR_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFR_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uv1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uv2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uv3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Ov1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Ov2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uf_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Of_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstEfForward, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstSefForward, UI8, 1 ) \ DB_VALUE_BUFFER( G3_AutoOpenMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_AutoOpenOpns, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstOcReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstEfReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstSefReverse, UI8, 1 ) \ DB_VALUE_BUFFER( LogicChPulseEnable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh1Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh2Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh3Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh4Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh5Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh6Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh7Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh8Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh1Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh2Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh3Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh4Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh5Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh6Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh7Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh8Enable, UI8, 1 ) \ DB_VALUE_BUFFER( CanGpioFirmwareVerifyStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanGpioFirmwareTypeRunning, UI8, 1 ) \ DB_VALUE_BUFFER( ProgramGpioCmd, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT104TimeoutT0, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT104TimeoutT1, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT104TimeoutT2, UI8, 1 ) \ DB_VALUE_BUFFER( p2pMappedUI8_0, UI8, 1 ) \ DB_VALUE_BUFFER( p2pMappedUI8_1, UI8, 1 ) \ DB_VALUE_BUFFER( CanGpioRequestMoreData, UI8, 1 ) \ DB_VALUE_BUFFER( SupplyHealthState, UI8, 1 ) \ DB_VALUE_BUFFER( LoadHealthState, UI8, 1 ) \ DB_VALUE_BUFFER( ACOOperationMode, UI8, 1 ) \ DB_VALUE_BUFFER( ACOMakeBeforeBreak, UI8, 1 ) \ DB_VALUE_BUFFER( ACOOperationModePeer, UI8, 1 ) \ DB_VALUE_BUFFER( ACODisplayState, UI8, 1 ) \ DB_VALUE_BUFFER( ACODisplayStatePeer, UI8, 1 ) \ DB_VALUE_BUFFER( ACOHealth, UI8, 1 ) \ DB_VALUE_BUFFER( ACOHealthPeer, UI8, 1 ) \ DB_VALUE_BUFFER( ACOMakeBeforeBreakPeer, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OcDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EfDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SefDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ArOCEF_ZSCmode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_VrcEnable, UI8, 1 ) \ DB_VALUE_BUFFER( SimSwitchStatusPeer, UI8, 1 ) \ DB_VALUE_BUFFER( G4_TtaMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_VrcMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_AbrMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OC3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EF3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFF_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFF_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFF_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFF_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFF_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFR_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFR_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFR_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFR_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFR_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uv1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uv2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uv3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Ov1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Ov2_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uf_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Of_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstEfForward, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstSefForward, UI8, 1 ) \ DB_VALUE_BUFFER( G4_AutoOpenMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_AutoOpenOpns, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstOcReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstEfReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstSefReverse, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvLifetimeCounters, UI8, 1 ) \ DB_VALUE_BUFFER( p2pHealth, UI8, 1 ) \ DB_VALUE_BUFFER( ACOIsMaster, UI8, 1 ) \ DB_VALUE_BUFFER( ACOEnableSlave, UI8, 1 ) \ DB_VALUE_BUFFER( ACOEnableSlavePeer, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvLogic, UI8, 1 ) \ DB_VALUE_BUFFER( SupplyHealthStatePeer, UI8, 1 ) \ DB_VALUE_BUFFER( CanIoModuleResetStatus, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDNP3EnableCommsLog, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaCMSEnableCommsLog, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaHMIEnableCommsLog, UI8, 1 ) \ DB_VALUE_BUFFER( p2pCommEnableCommsLog, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BEnableCommsLog, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvIoSettings, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3Polled, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BPolled, UI8, 1 ) \ DB_VALUE_BUFFER( OscEventTriggered, UI8, 1 ) \ DB_VALUE_BUFFER( OscEventTriggerType, UI8, 1 ) \ DB_VALUE_BUFFER( OscLogCount, UI8, 1 ) \ DB_VALUE_BUFFER( OscTransferData, UI8, 1 ) \ DB_VALUE_BUFFER( OscSimRun, UI8, 1 ) \ DB_VALUE_BUFFER( OscSimStatus, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvNonGroup, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvGrp1, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvGrp2, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvGrp3, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvGrp4, UI8, 1 ) \ DB_VALUE_BUFFER( MeasPowerFlowDirectionOC, UI8, 1 ) \ DB_VALUE_BUFFER( MeasPowerFlowDirectionEF, UI8, 1 ) \ DB_VALUE_BUFFER( MeasPowerFlowDirectionSEF, UI8, 1 ) \ DB_VALUE_BUFFER( HltEnableCid, UI8, 1 ) \ DB_VALUE_BUFFER( SysControlMode, UI8, 2 ) \ DB_VALUE_BUFFER( SimSwReqOpen, UI8, 1 ) \ DB_VALUE_BUFFER( SimSwReqClose, UI8, 1 ) \ DB_VALUE_BUFFER( swsimEn, UI8, 1 ) \ DB_VALUE_BUFFER( swsimInLockout, UI8, 1 ) \ DB_VALUE_BUFFER( smpFpgaDataValid, UI8, 1 ) \ DB_VALUE_BUFFER( enSwSimulator, UI8, 1 ) \ DB_VALUE_BUFFER( enSeqSimulator, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh1, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh2, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh3, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh4, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh5, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh6, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh7, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1InputCh8, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh1, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh2, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh3, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh4, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh5, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh6, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh7, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2InputCh8, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh1, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh2, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh3, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh4, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh5, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh6, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh7, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1OutputCh8, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh1, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh2, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh3, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh4, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh5, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh6, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh7, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2OutputCh8, UI8, 2 ) \ DB_VALUE_BUFFER( dbFileCmd, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3GenLinkConfirmationMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3GenLinkValidMasterAddr, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3GenAppConfirmationMode, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3GenUnsolicitedResponse, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass1, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass2, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3GenClass3, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDNP3EnableProtocol, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaCMSEnableProtocol, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaCMSUseDNP3Trans, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaAnlogInputEvReport, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimTripRetry, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimCloseRetry, UI8, 1 ) \ DB_VALUE_BUFFER( CmsShutdownRequest, UI8, 1 ) \ DB_VALUE_BUFFER( resetRelayCtr, UI8, 1 ) \ DB_VALUE_BUFFER( ClearEventLogDir, UI8, 1 ) \ DB_VALUE_BUFFER( ClearCloseOpenLogDir, UI8, 1 ) \ DB_VALUE_BUFFER( ClearFaultProfileDir, UI8, 1 ) \ DB_VALUE_BUFFER( ClearLoadProfileDir, UI8, 1 ) \ DB_VALUE_BUFFER( ClearChangeLogDir, UI8, 1 ) \ DB_VALUE_BUFFER( CmsOpMode, UI8, 1 ) \ DB_VALUE_BUFFER( CmsAuxOpMode, UI8, 1 ) \ DB_VALUE_BUFFER( CmsAux2OpMode, UI8, 1 ) \ DB_VALUE_BUFFER( HmiOpMode, UI8, 1 ) \ DB_VALUE_BUFFER( SaveSimCalibration, UI8, 1 ) \ DB_VALUE_BUFFER( StartSimCalibration, UI8, 1 ) \ DB_VALUE_BUFFER( SimSwitchStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimFirmwareTypeRunning, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimRequestMoreData, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimFirmwareVerifyStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimResetExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( StartSwgCalibration, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvLoadProfDef, UI8, 1 ) \ DB_VALUE_BUFFER( SimulSwitchPositionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( StartRelayCalibration, UI8, 1 ) \ DB_VALUE_BUFFER( ConfirmUpdateType, UI8, 1 ) \ DB_VALUE_BUFFER( Dnp3DataflowUnit, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G2_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G3_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G4_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( ProgramSimCmd, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvNonGroup, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp1, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp2, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp3, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp4, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscCmd, UI8, 2 ) \ DB_VALUE_BUFFER( UsbDiscCmdPercent, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscStatus, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscError, UI8, 1 ) \ DB_VALUE_BUFFER( UpdateFilesReady, UI8, 1 ) \ DB_VALUE_BUFFER( UpdateBootOk, UI8, 1 ) \ DB_VALUE_BUFFER( FactorySettings, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G6_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G7_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G8_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OCLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OCLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OCLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OCLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OCLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_AutoClose_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_AutoOpenPowerFlowDirChanged, UI8, 1 ) \ DB_VALUE_BUFFER( G1_AutoOpenPowerFlowReduced, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OCLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OCLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OCLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OCLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OCLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_AutoClose_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_AutoOpenPowerFlowDirChanged, UI8, 1 ) \ DB_VALUE_BUFFER( G2_AutoOpenPowerFlowReduced, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OCLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OCLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OCLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OCLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OCLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_AutoClose_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_AutoOpenPowerFlowDirChanged, UI8, 1 ) \ DB_VALUE_BUFFER( G3_AutoOpenPowerFlowReduced, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OCLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OCLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OCLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OCLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OCLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_AutoClose_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_AutoOpenPowerFlowDirChanged, UI8, 1 ) \ DB_VALUE_BUFFER( G4_AutoOpenPowerFlowReduced, UI8, 1 ) \ DB_VALUE_BUFFER( ClearOscCaptures, UI8, 1 ) \ DB_VALUE_BUFFER( InterruptClearCounters, UI8, 1 ) \ DB_VALUE_BUFFER( SagSwellClearCounters, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo1OutputEnableMasked, UI8, 1 ) \ DB_VALUE_BUFFER( CanIo2OutputEnableMasked, UI8, 1 ) \ DB_VALUE_BUFFER( ClearInterruptDir, UI8, 1 ) \ DB_VALUE_BUFFER( ClearSagSwellDir, UI8, 1 ) \ DB_VALUE_BUFFER( ClearHrmDir, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvInterruptLog, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvSagSwellLog, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvHrmLog, UI8, 1 ) \ DB_VALUE_BUFFER( PGEEnableProtocol, UI8, 1 ) \ DB_VALUE_BUFFER( PGEEnableCommsLog, UI8, 1 ) \ DB_VALUE_BUFFER( PGEMasterAddress, UI8, 1 ) \ DB_VALUE_BUFFER( PGEIgnoreMasterAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp11, UI8, 1 ) \ DB_VALUE_BUFFER( MeasPowerFlowDirectionNPS, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NpsDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstNpsForward, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstNpsReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPS3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPSLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPSLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPSLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPSLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NPSLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EFLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EFLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EFLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EFLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EFLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SEFLL_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_AutoOpenPowerFlowReduction, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LSRM_En, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uv4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uv4_Utype, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uv4_Voltages, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SingleTripleModeF, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SingleTripleModeR, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SinglePhaseVoltageDetect, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Uv1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Ov1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SectionaliserMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OcDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G1_NpsDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EfDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SefDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Ov3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Ov4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_OV3MovingAverageMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ArveTripsToLockout, UI8, 1 ) \ DB_VALUE_BUFFER( G1_I2I1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SSTControl_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NpsDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstNpsForward, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstNpsReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPS3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPSLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPSLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPSLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPSLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NPSLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EFLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EFLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EFLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EFLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EFLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SEFLL_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_AutoOpenPowerFlowReduction, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LSRM_En, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uv4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uv4_Utype, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uv4_Voltages, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SingleTripleModeF, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SingleTripleModeR, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SinglePhaseVoltageDetect, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Uv1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Ov1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SectionaliserMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OcDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G2_NpsDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EfDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SefDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Ov3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Ov4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_OV3MovingAverageMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ArveTripsToLockout, UI8, 1 ) \ DB_VALUE_BUFFER( G2_I2I1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SSTControl_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NpsDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstNpsForward, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstNpsReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPS3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPSLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPSLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPSLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPSLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NPSLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EFLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EFLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EFLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EFLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EFLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SEFLL_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_AutoOpenPowerFlowReduction, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LSRM_En, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uv4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uv4_Utype, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uv4_Voltages, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SingleTripleModeF, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SingleTripleModeR, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SinglePhaseVoltageDetect, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Uv1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Ov1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SectionaliserMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OcDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G3_NpsDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EfDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SefDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Ov3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Ov4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_OV3MovingAverageMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ArveTripsToLockout, UI8, 1 ) \ DB_VALUE_BUFFER( G3_I2I1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SSTControl_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NpsDnd, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstNpsForward, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstNpsReverse, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2F_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3F_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3F_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3F_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3F_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3F_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS1R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2R_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS2R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3R_DirEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3R_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3R_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3R_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPS3R_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPSLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPSLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPSLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPSLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NPSLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EFLL1_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EFLL1_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EFLL2_ImaxEn, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EFLL2_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EFLL3_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SEFLL_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_AutoOpenPowerFlowReduction, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LSRM_En, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uv4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uv4_Utype, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uv4_Voltages, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SingleTripleModeF, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SingleTripleModeR, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SinglePhaseVoltageDetect, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Uv1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Ov1_SingleTripleVoltageType, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SectionaliserMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OcDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G4_NpsDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EfDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SefDcr, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Ov3_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Ov4_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_OV3MovingAverageMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ArveTripsToLockout, UI8, 1 ) \ DB_VALUE_BUFFER( G4_I2I1_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SSTControl_En, UI8, 1 ) \ DB_VALUE_BUFFER( IdRelayModelNo, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BSendDayOfWeek, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10B_M_EI_BufferOverflow_COI, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BScaleRange, UI8, 1 ) \ DB_VALUE_BUFFER( ProgramSimStatus, UI8, 1 ) \ DB_VALUE_BUFFER( InstallFilesReady, UI8, 1 ) \ DB_VALUE_BUFFER( OscUsbCaptureInProgress, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscEjectResult, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT104BlockUntilDisconnected, UI8, 1 ) \ DB_VALUE_BUFFER( TripHrmComponent, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscUpdatePossible, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscInstallPossible, UI8, 1 ) \ DB_VALUE_BUFFER( UpdateStep, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchManualTripST, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchConnectedPhases, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimSwitchSetCosType, UI8, 1 ) \ DB_VALUE_BUFFER( SimSwitchStatusA, UI8, 1 ) \ DB_VALUE_BUFFER( SimSwitchStatusB, UI8, 1 ) \ DB_VALUE_BUFFER( SimSwitchStatusC, UI8, 1 ) \ DB_VALUE_BUFFER( SimSingleTriple, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimTripCloseRequestStatusB, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimTripCloseRequestStatusC, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimOSMActuatorFaultStatusB, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimOSMActuatorFaultStatusC, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimOSMlimitSwitchFaultStatusB, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimOSMlimitSwitchFaultStatusC, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimTripRetryB, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimTripRetryC, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtPhaseSel, UI8, 1 ) \ DB_VALUE_BUFFER( SingleTripleModeGlobal, UI8, 1 ) \ DB_VALUE_BUFFER( s61850ServEnable, UI8, 1 ) \ DB_VALUE_BUFFER( SwitchFailureStatusFlagB, UI8, 1 ) \ DB_VALUE_BUFFER( SwitchFailureStatusFlagC, UI8, 1 ) \ DB_VALUE_BUFFER( swsimInLockoutB, UI8, 1 ) \ DB_VALUE_BUFFER( swsimInLockoutC, UI8, 1 ) \ DB_VALUE_BUFFER( DurMonInitFlag, UI8, 1 ) \ DB_VALUE_BUFFER( OsmSwitchCount, UI8, 1 ) \ DB_VALUE_BUFFER( SwitchLogicallyLockedPhases, UI8, 1 ) \ DB_VALUE_BUFFER( BatteryTestResult, UI8, 1 ) \ DB_VALUE_BUFFER( BatteryTestNotPerformedReason, UI8, 1 ) \ DB_VALUE_BUFFER( ClearBatteryTestResults, UI8, 1 ) \ DB_VALUE_BUFFER( BatteryTestSupported, UI8, 1 ) \ DB_VALUE_BUFFER( SectionaliserEnable, UI8, 1 ) \ DB_VALUE_BUFFER( UserAnalogCfgOn, UI8, 1 ) \ DB_VALUE_BUFFER( TripHrmComponentA, UI8, 1 ) \ DB_VALUE_BUFFER( TripHrmComponentB, UI8, 1 ) \ DB_VALUE_BUFFER( TripHrmComponentC, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GOOSEPublEnable, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GOOSESubscrEnable, UI8, 1 ) \ DB_VALUE_BUFFER( s61850ChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GOOSEPort, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvCurveSettings, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BCyclicWaitForSI, UI8, 1 ) \ DB_VALUE_BUFFER( UnitTestRoundTrip, UI8, 1 ) \ DB_VALUE_BUFFER( ExtLoadStatus, UI8, 1 ) \ DB_VALUE_BUFFER( LogicChModeView, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingILocModeView, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1ModeView, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo2ModeView, UI8, 1 ) \ DB_VALUE_BUFFER( s61850TestDI1Bool, UI8, 1 ) \ DB_VALUE_BUFFER( s61850TestDI2Bool, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh9Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh9Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh10Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh10Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh11Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh11Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh12Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh12Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh13Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh13Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh14Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh14Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh15Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh15Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh16Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh16Enable, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh17Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh17Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh18Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh18Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh19Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh19Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh20Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh20Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh21Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh21Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh22Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh22Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh23Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh23Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh24Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh24Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh25Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh25Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh26Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh26Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh27Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh27Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh28Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh28Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh29Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh29Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh30Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh30Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh31Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh31Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicCh32Output, UI8, 1 ) \ DB_VALUE_BUFFER( LogicCh32Enable, UI8, 2 ) \ DB_VALUE_BUFFER( LogicChWriteProtect17to32, UI8, 1 ) \ DB_VALUE_BUFFER( ResetFaultFlagsOnClose, UI8, 1 ) \ DB_VALUE_BUFFER( SystemStatus, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GseSubChg, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GseBool1, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GseBool2, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GseBool3, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GseBool4, UI8, 1 ) \ DB_VALUE_BUFFER( FSMountFailure, UI8, 1 ) \ DB_VALUE_BUFFER( SimExtSupplyStatusView, UI8, 1 ) \ DB_VALUE_BUFFER( BatteryType, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscHasDNP3SAUpdateKey, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_MaxSessKeyStatusCount, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_AggressiveMode, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_MACAlgorithm, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_KeyWrapAlgorithm, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_SessKeyChangeIntervalMonitoring, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_Enable, UI8, 2 ) \ DB_VALUE_BUFFER( DNP3SA_Version, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_UpdateKeyInstalled, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_UpdateKeyInstallState, UI8, 1 ) \ DB_VALUE_BUFFER( ClearDnp3SACntr, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileCryptoAlg, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileEnableSA, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_MaxErrorCount, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_DisallowSHA1, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3SA_VersionSelect, UI8, 1 ) \ DB_VALUE_BUFFER( ClearDNP3SAUpdateKey, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileError, UI8, 1 ) \ DB_VALUE_BUFFER( BatteryTypeChangeSupported, UI8, 1 ) \ DB_VALUE_BUFFER( UsbDiscInstallError, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GseSimFlgEn, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GseSimProc, UI8, 1 ) \ DB_VALUE_BUFFER( s61850TestQualEn, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499Enable, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499AppStatus, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499Command, UI8, 1 ) \ DB_VALUE_BUFFER( OperatingMode, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscModuleType, UI8, 1 ) \ DB_VALUE_BUFFER( PhaseToPhaseTripping, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscFirmwareVerifyStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscFirmwareTypeRunning, UI8, 1 ) \ DB_VALUE_BUFFER( ProgramPscCmd, UI8, 1 ) \ DB_VALUE_BUFFER( ProgramPscStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscRequestMoreData, UI8, 1 ) \ DB_VALUE_BUFFER( s61850ClrGseCntrs, UI8, 1 ) \ DB_VALUE_BUFFER( SwitchgearTypeSIMChanged, UI8, 1 ) \ DB_VALUE_BUFFER( SwitchgearTypeEraseSettings, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscModuleHealth, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BTimeLocal, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BIpValidMasterAddr, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimBulkReadCount, UI8, 1 ) \ DB_VALUE_BUFFER( CanIoBulkReadCount, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscBulkReadCount, UI8, 1 ) \ DB_VALUE_BUFFER( DemoUnitMode, UI8, 1 ) \ DB_VALUE_BUFFER( DemoUnitAvailable, UI8, 1 ) \ DB_VALUE_BUFFER( DemoUnitActive, UI8, 1 ) \ DB_VALUE_BUFFER( RemoteUpdateCommand, UI8, 2 ) \ DB_VALUE_BUFFER( IEC61499FBOOTChEv, UI8, 1 ) \ DB_VALUE_BUFFER( LLBPhasesBlocked, UI8, 1 ) \ DB_VALUE_BUFFER( CmsClientAllowAny, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtHLT, UI8, 1 ) \ DB_VALUE_BUFFER( GpsAvailable, UI8, 1 ) \ DB_VALUE_BUFFER( Gps_Restart, UI8, 1 ) \ DB_VALUE_BUFFER( Gps_SignalQuality, UI8, 1 ) \ DB_VALUE_BUFFER( Gps_TimeSyncStatus, UI8, 1 ) \ DB_VALUE_BUFFER( PqChEvNonGroup, UI8, 1 ) \ DB_VALUE_BUFFER( ChEvSwitchgearCalib, UI8, 1 ) \ DB_VALUE_BUFFER( ProtocolChEvNonGroup, UI8, 1 ) \ DB_VALUE_BUFFER( Gps_SyncSimTime, UI8, 1 ) \ DB_VALUE_BUFFER( MntReset, UI8, 1 ) \ DB_VALUE_BUFFER( WlanConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( WlanConnectionMode, UI8, 1 ) \ DB_VALUE_BUFFER( WlanSignalQuality, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkSignalQuality, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkSimCardStatus, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkMode, UI8, 1 ) \ DB_VALUE_BUFFER( WlanHideNetwork, UI8, 1 ) \ DB_VALUE_BUFFER( WlanChannelNumber, UI8, 1 ) \ DB_VALUE_BUFFER( WlanRestart, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkRestart, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G12_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( SyncEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( SyncPhaseToSelection, UI8, 1 ) \ DB_VALUE_BUFFER( SyncBusAndLine, UI8, 1 ) \ DB_VALUE_BUFFER( SyncLiveDeadAR, UI8, 1 ) \ DB_VALUE_BUFFER( SyncLiveDeadManual, UI8, 1 ) \ DB_VALUE_BUFFER( SyncDLDBAR, UI8, 1 ) \ DB_VALUE_BUFFER( SyncDLDBManual, UI8, 1 ) \ DB_VALUE_BUFFER( SyncCheckEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( SyncAntiMotoringEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( SynchroniserStatus, UI8, 1 ) \ DB_VALUE_BUFFER( SyncDeltaVStatus, UI8, 1 ) \ DB_VALUE_BUFFER( SyncSlipFreqStatus, UI8, 1 ) \ DB_VALUE_BUFFER( SyncAdvanceAngleStatus, UI8, 1 ) \ DB_VALUE_BUFFER( SyncDeltaPhaseStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp12, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp13, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkSignalStrength, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499CtrlStartStop, UI8, 1 ) \ DB_VALUE_BUFFER( AutoRecloseStatus, UI8, 1 ) \ DB_VALUE_BUFFER( s61850EnableCommslog, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtLogicVAR1, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtLogicVAR2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Yn_OperationalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Yn_DirectionalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Yn_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Yn_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Yn_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Yn_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G1_DE_EF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G1_DE_SEF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G1_DE_SEF_Polarisation, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Yn_OperationalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Yn_DirectionalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Yn_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Yn_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Yn_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Yn_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G2_DE_EF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G2_DE_SEF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G2_DE_SEF_Polarisation, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Yn_OperationalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Yn_DirectionalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Yn_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Yn_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Yn_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Yn_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G3_DE_EF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G3_DE_SEF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G3_DE_SEF_Polarisation, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Yn_OperationalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Yn_DirectionalMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Yn_Tr1, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Yn_Tr2, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Yn_Tr3, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Yn_Tr4, UI8, 1 ) \ DB_VALUE_BUFFER( G4_DE_EF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G4_DE_SEF_AdvPolarDet, UI8, 1 ) \ DB_VALUE_BUFFER( G4_DE_SEF_Polarisation, UI8, 1 ) \ DB_VALUE_BUFFER( s61850GooseOpMode, UI8, 1 ) \ DB_VALUE_BUFFER( RelayModelDisplayName, UI8, 1 ) \ DB_VALUE_BUFFER( SwitchStateOwner, UI8, 1 ) \ DB_VALUE_BUFFER( ModemConnectState, UI8, 1 ) \ DB_VALUE_BUFFER( s61850RqstEnableMMS, UI8, 1 ) \ DB_VALUE_BUFFER( s61850RqstEnableGoosePub, UI8, 1 ) \ DB_VALUE_BUFFER( s61850CIDFileUpdateStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CmdResetFaultTargets, UI8, 1 ) \ DB_VALUE_BUFFER( CfgPowerFlowDirection, UI8, 1 ) \ DB_VALUE_BUFFER( LLBlocksClose, UI8, 1 ) \ DB_VALUE_BUFFER( SyncDiagnostics, UI8, 1 ) \ DB_VALUE_BUFFER( WlanTxPower, UI8, 1 ) \ DB_VALUE_BUFFER( LLAllowClose, UI8, 1 ) \ DB_VALUE_BUFFER( WlanConnectState, UI8, 1 ) \ DB_VALUE_BUFFER( IdRelayFwModelNo, UI8, 1 ) \ DB_VALUE_BUFFER( WlanSignalQualityLoadProfile, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkSignalQualityLoadProfile, UI8, 1 ) \ DB_VALUE_BUFFER( Gps_SignalQualityLoadProfile, UI8, 1 ) \ DB_VALUE_BUFFER( AlertFlagsDisplayed, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode1, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode2, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode3, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode4, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode5, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode6, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode7, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode8, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode9, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode10, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode11, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode12, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode13, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode14, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode15, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode16, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode17, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode18, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode19, UI8, 1 ) \ DB_VALUE_BUFFER( AlertMode20, UI8, 1 ) \ DB_VALUE_BUFFER( AlertDefaultsPopulated, UI8, 1 ) \ DB_VALUE_BUFFER( AlertGroup, UI8, 1 ) \ DB_VALUE_BUFFER( UpdateError, UI8, 1 ) \ DB_VALUE_BUFFER( GPS_Status, UI8, 1 ) \ DB_VALUE_BUFFER( CmdResetBinaryFaultTargets, UI8, 1 ) \ DB_VALUE_BUFFER( CmdResetTripCurrents, UI8, 1 ) \ DB_VALUE_BUFFER( FaultLocFaultType, UI8, 1 ) \ DB_VALUE_BUFFER( FaultLocDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( FaultLocEnable, UI8, 1 ) \ DB_VALUE_BUFFER( GPSEnableCommsLog, UI8, 1 ) \ DB_VALUE_BUFFER( AlertDisplayMode, UI8, 1 ) \ DB_VALUE_BUFFER( LoadedScadaProtocolDNP3, UI8, 1 ) \ DB_VALUE_BUFFER( WlanConfigTypeNonUps, UI8, 1 ) \ DB_VALUE_BUFFER( MobileNetworkConfigTypeNonUps, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscTransferStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanSimTransferStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanGpioTransferStatus, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscPWR1Status, UI8, 1 ) \ DB_VALUE_BUFFER( CanPscSimPresent, UI8, 1 ) \ DB_VALUE_BUFFER( FirmwareHardwareVersion, UI8, 1 ) \ DB_VALUE_BUFFER( UnitOfTime, UI8, 1 ) \ DB_VALUE_BUFFER( LoadedScadaProtocol60870, UI8, 1 ) \ DB_VALUE_BUFFER( LoadedScadaProtocol61850MMS, UI8, 1 ) \ DB_VALUE_BUFFER( LoadedScadaProtocol2179, UI8, 1 ) \ DB_VALUE_BUFFER( LoadedScadaProtocol61850GoosePub, UI8, 1 ) \ DB_VALUE_BUFFER( LoadedScadaProtocol61850GooseSub, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3IpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( s61850ClientIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( ftpEnable, UI8, 1 ) \ DB_VALUE_BUFFER( SaveRelayCalibration, UI8, 1 ) \ DB_VALUE_BUFFER( SaveSwgCalibration, UI8, 1 ) \ DB_VALUE_BUFFER( SDCardStatus, UI8, 1 ) \ DB_VALUE_BUFFER( PQSaveToSDCard, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDTRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDSRStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialCDStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialRTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialCTSStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialRIStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_ConnectionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_PortDetectedType, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialTxTestStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_LanPrefixLengthStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_IpVersionStatus, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDCDControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_LanProvideIP, UI8, 1 ) \ DB_VALUE_BUFFER( CommsChEvGrp14, UI8, 1 ) \ DB_VALUE_BUFFER( BatteryCapacityConfidence, UI8, 1 ) \ DB_VALUE_BUFFER( PMULoadCIDConfigStatus, UI8, 1 ) \ DB_VALUE_BUFFER( LineSupplyRange, UI8, 1 ) \ DB_VALUE_BUFFER( TmLok, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGConnectionEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGAllowControls, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGConstraints, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGStatusConnectionState, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGStatusOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGConnectionEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGAllowControls, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGConstraints, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGStatusConnectionState, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGStatusOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGConnectionEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGAllowControls, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGConstraints, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGStatusConnectionState, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGStatusOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGConnectionEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGAllowControls, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGConstraints, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGStatusConnectionState, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGStatusOriginatorAddress, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BEnableGroup1, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BEnableGroup2, UI8, 1 ) \ DB_VALUE_BUFFER( PinResultHMI, UI8, 1 ) \ DB_VALUE_BUFFER( PukResultHMI, UI8, 1 ) \ DB_VALUE_BUFFER( PinResultCMS, UI8, 1 ) \ DB_VALUE_BUFFER( PukResultCMS, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BConnectionMethodGroup1, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BConnectionMethodGroup2, UI8, 1 ) \ DB_VALUE_BUFFER( PinLastWriteStatus, UI8, 1 ) \ DB_VALUE_BUFFER( PukLastWriteStatus, UI8, 1 ) \ DB_VALUE_BUFFER( LinkStatusLAN, UI8, 1 ) \ DB_VALUE_BUFFER( LinkStatusLAN2, UI8, 1 ) \ DB_VALUE_BUFFER( PinUpdated, UI8, 1 ) \ DB_VALUE_BUFFER( PukUpdated, UI8, 1 ) \ DB_VALUE_BUFFER( SiteDesc, UI32, 40 ) \ DB_VALUE_BUFFER( SigCtrlRqstTripClose, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfRelayLog, UI32, 10 ) \ DB_VALUE_BUFFER( UpdateRelayNew, UI32, 70 ) \ DB_VALUE_BUFFER( UpdateSimNew, UI32, 70 ) \ DB_VALUE_BUFFER( SigExtSupplyStatusShutDown, UI32, 10 ) \ DB_VALUE_BUFFER( IdUbootSoftwareVer, UI32, 70 ) \ DB_VALUE_BUFFER( SigCtrlHltRqstReset, UI32, 11 ) \ DB_VALUE_BUFFER( IdMicrokernelSoftwareVer, UI32, 70 ) \ DB_VALUE_BUFFER( SigPickupLsdUa, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupLsdUb, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupLsdUc, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupLsdUr, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupLsdUs, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupLsdUt, UI32, 10 ) \ DB_VALUE_BUFFER( OsmModelStr, UI32, 41 ) \ DB_VALUE_BUFFER( LoadProfNotice, UI32, 396 ) \ DB_VALUE_BUFFER( SigStatusCloseBlocking, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenGrp1, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenGrp2, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenGrp3, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenGrp4, UI32, 10 ) \ DB_VALUE_BUFFER( HmiErrMsgFull, UI32, 16 ) \ DB_VALUE_BUFFER( UpdateFailed, UI32, 10 ) \ DB_VALUE_BUFFER( UpdateReverted, UI32, 10 ) \ DB_VALUE_BUFFER( UpdateSettingsLogFailed, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBUnsupported, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBMismatched, UI32, 10 ) \ DB_VALUE_BUFFER( ProtTstDbug, UI32, 81 ) \ DB_VALUE_BUFFER( G1_OC1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_OC2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_OC1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_OC2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_EF1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_EF2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_EF1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_EF2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_GrpName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_GrpDes, UI32, 41 ) \ DB_VALUE_BUFFER( SigSimNotCalibrated, UI32, 10 ) \ DB_VALUE_BUFFER( SigLineSupplyStatusAbnormal, UI32, 10 ) \ DB_VALUE_BUFFER( ScadaT10BSingleInfoInputs, UI32, 642 ) \ DB_VALUE_BUFFER( ScadaT10BDoubleInfoInputs, UI32, 162 ) \ DB_VALUE_BUFFER( ScadaT10BSingleCmndOutputs, UI32, 322 ) \ DB_VALUE_BUFFER( ScadaT10BDoubleCmndOutputs, UI32, 162 ) \ DB_VALUE_BUFFER( ScadaT10BMeasuredValues, UI32, 770 ) \ DB_VALUE_BUFFER( ScadaT10BSetpointCommand, UI32, 26 ) \ DB_VALUE_BUFFER( ScadaT10BParameterCommand, UI32, 98 ) \ DB_VALUE_BUFFER( ScadaT10BIntegratedTotal, UI32, 578 ) \ DB_VALUE_BUFFER( IdIo1SerialNumber, UI32, 13 ) \ DB_VALUE_BUFFER( Curv1, UI32, 670 ) \ DB_VALUE_BUFFER( Curv2, UI32, 670 ) \ DB_VALUE_BUFFER( Curv3, UI32, 670 ) \ DB_VALUE_BUFFER( Curv4, UI32, 670 ) \ DB_VALUE_BUFFER( Curv5, UI32, 670 ) \ DB_VALUE_BUFFER( Curv6, UI32, 670 ) \ DB_VALUE_BUFFER( Curv7, UI32, 670 ) \ DB_VALUE_BUFFER( Curv8, UI32, 670 ) \ DB_VALUE_BUFFER( Curv9, UI32, 670 ) \ DB_VALUE_BUFFER( Curv10, UI32, 670 ) \ DB_VALUE_BUFFER( Curv11, UI32, 670 ) \ DB_VALUE_BUFFER( Curv12, UI32, 670 ) \ DB_VALUE_BUFFER( Curv13, UI32, 670 ) \ DB_VALUE_BUFFER( Curv14, UI32, 670 ) \ DB_VALUE_BUFFER( Curv15, UI32, 670 ) \ DB_VALUE_BUFFER( Curv16, UI32, 670 ) \ DB_VALUE_BUFFER( Curv17, UI32, 670 ) \ DB_VALUE_BUFFER( Curv18, UI32, 670 ) \ DB_VALUE_BUFFER( Curv19, UI32, 670 ) \ DB_VALUE_BUFFER( Curv20, UI32, 670 ) \ DB_VALUE_BUFFER( Curv21, UI32, 670 ) \ DB_VALUE_BUFFER( Curv22, UI32, 670 ) \ DB_VALUE_BUFFER( Curv23, UI32, 670 ) \ DB_VALUE_BUFFER( Curv24, UI32, 670 ) \ DB_VALUE_BUFFER( Curv25, UI32, 670 ) \ DB_VALUE_BUFFER( Curv26, UI32, 670 ) \ DB_VALUE_BUFFER( Curv27, UI32, 670 ) \ DB_VALUE_BUFFER( Curv28, UI32, 670 ) \ DB_VALUE_BUFFER( Curv29, UI32, 670 ) \ DB_VALUE_BUFFER( Curv30, UI32, 670 ) \ DB_VALUE_BUFFER( Curv31, UI32, 670 ) \ DB_VALUE_BUFFER( Curv32, UI32, 670 ) \ DB_VALUE_BUFFER( Curv33, UI32, 670 ) \ DB_VALUE_BUFFER( Curv34, UI32, 670 ) \ DB_VALUE_BUFFER( Curv35, UI32, 670 ) \ DB_VALUE_BUFFER( Curv36, UI32, 670 ) \ DB_VALUE_BUFFER( Curv37, UI32, 670 ) \ DB_VALUE_BUFFER( Curv38, UI32, 670 ) \ DB_VALUE_BUFFER( Curv39, UI32, 670 ) \ DB_VALUE_BUFFER( Curv40, UI32, 670 ) \ DB_VALUE_BUFFER( Curv41, UI32, 670 ) \ DB_VALUE_BUFFER( Curv42, UI32, 670 ) \ DB_VALUE_BUFFER( Curv43, UI32, 670 ) \ DB_VALUE_BUFFER( Curv44, UI32, 670 ) \ DB_VALUE_BUFFER( Curv45, UI32, 670 ) \ DB_VALUE_BUFFER( Curv46, UI32, 670 ) \ DB_VALUE_BUFFER( Curv47, UI32, 670 ) \ DB_VALUE_BUFFER( Curv48, UI32, 670 ) \ DB_VALUE_BUFFER( Curv49, UI32, 670 ) \ DB_VALUE_BUFFER( Curv50, UI32, 670 ) \ DB_VALUE_BUFFER( CoOpen, UI32, 34 ) \ DB_VALUE_BUFFER( CoClose, UI32, 34 ) \ DB_VALUE_BUFFER( CoOpenReq, UI32, 34 ) \ DB_VALUE_BUFFER( CoCloseReq, UI32, 34 ) \ DB_VALUE_BUFFER( CanSimSetTimeDate, UI32, 5 ) \ DB_VALUE_BUFFER( CanSimReadSerialNumber, UI32, 41 ) \ DB_VALUE_BUFFER( CanSimBootLoaderVers, UI32, 6 ) \ DB_VALUE_BUFFER( IdIo2SerialNumber, UI32, 13 ) \ DB_VALUE_BUFFER( CanSimReadSWVers, UI32, 6 ) \ DB_VALUE_BUFFER( SigPickup, UI32, 11 ) \ DB_VALUE_BUFFER( SigPickupOc1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOc2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOc3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOc1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOc2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOc3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEf1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEf2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEf3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEf1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEf2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEf3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupSefF, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupSefR, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOcll, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEfll, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUv1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUv2, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUv3, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOv1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOv2, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOf, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUf, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUabcGT, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUabcLT, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUrstGT, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUrstLT, UI32, 10 ) \ DB_VALUE_BUFFER( G2_OC1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_OC2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_OC1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_OC2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_EF1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_EF2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_EF1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_EF2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_GrpName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_GrpDes, UI32, 41 ) \ DB_VALUE_BUFFER( CanIo1InputRecognitionTime, UI32, 8 ) \ DB_VALUE_BUFFER( CanIo2InputRecognitionTime, UI32, 8 ) \ DB_VALUE_BUFFER( SigUSBHostOff, UI32, 10 ) \ DB_VALUE_BUFFER( CanIo1SerialNumber, UI32, 8 ) \ DB_VALUE_BUFFER( CanIo2SerialNumber, UI32, 8 ) \ DB_VALUE_BUFFER( CanIo1PartAndSupplierCode, UI32, 41 ) \ DB_VALUE_BUFFER( CanIo2PartAndSupplierCode, UI32, 41 ) \ DB_VALUE_BUFFER( CanIo1ReadSwVers, UI32, 6 ) \ DB_VALUE_BUFFER( CanIo2ReadSwVers, UI32, 6 ) \ DB_VALUE_BUFFER( IdIO1SoftwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdIO2SoftwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdIO1HardwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdIO2HardwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( CanIoAddrReq, UI32, 8 ) \ DB_VALUE_BUFFER( SigLockoutProt, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR1, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR2, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR3, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR4, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR5, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR6, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR7, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR8, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR9, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR10, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR11, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR12, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR13, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR14, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR15, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR16, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlLogTest, UI32, 10 ) \ DB_VALUE_BUFFER( LogicCh1NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh2NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh3NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh4NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh5NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh6NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh7NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh8NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh1InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh2InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh3InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh4InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh5InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh6InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh7InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh8InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( G3_OC1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_OC2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_OC1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_OC2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_EF1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_EF2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_EF1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_EF2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_GrpName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_GrpDes, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh1OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh2OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh3OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh4OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh5OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh6OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh7OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh8OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( SigMntActivated, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlACOOn, UI32, 11 ) \ DB_VALUE_BUFFER( CanGpioRdData, UI32, 9 ) \ DB_VALUE_BUFFER( IdGpioSoftwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh1Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh2Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh3Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh4Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh5Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh6Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh7Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh8Name, UI32, 8 ) \ DB_VALUE_BUFFER( p2pMappedSignal_0, UI32, 10 ) \ DB_VALUE_BUFFER( p2pMappedSignal_1, UI32, 10 ) \ DB_VALUE_BUFFER( p2pMappedSignal_2, UI32, 10 ) \ DB_VALUE_BUFFER( p2pMappedSignal_3, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeSupply, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeLoad, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUV1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUVab, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUVbc, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUVca, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUFabc, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUVrs, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUVst, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUVtr, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeUFrst, UI32, 10 ) \ DB_VALUE_BUFFER( SigLoadDead, UI32, 10 ) \ DB_VALUE_BUFFER( SigSupplyUnhealthy, UI32, 10 ) \ DB_VALUE_BUFFER( EvACOState, UI32, 28 ) \ DB_VALUE_BUFFER( SigOpenPeer, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedPeer, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfunctionPeer, UI32, 10 ) \ DB_VALUE_BUFFER( SigWarningPeer, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOFrst, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOFabc, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOVtr, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOVst, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOVrs, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOV1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOVab, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOVbc, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupRangeOVca, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenACO, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedACO, UI32, 10 ) \ DB_VALUE_BUFFER( SigSupplyUnhealthyPeer, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlACOOnPeer, UI32, 10 ) \ DB_VALUE_BUFFER( G4_OC1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_OC2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_OC1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_OC2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_EF1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_EF2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_EF1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_EF2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_GrpName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_GrpDes, UI32, 41 ) \ DB_VALUE_BUFFER( ACOUnhealthy, UI32, 10 ) \ DB_VALUE_BUFFER( SigP2PCommFail, UI32, 10 ) \ DB_VALUE_BUFFER( ResetBinaryFaultTargets, UI32, 10 ) \ DB_VALUE_BUFFER( ResetTripCurrents, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenLogic, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedLogic, UI32, 10 ) \ DB_VALUE_BUFFER( SigOperWarning, UI32, 11 ) \ DB_VALUE_BUFFER( SigOperWarningPeer, UI32, 10 ) \ DB_VALUE_BUFFER( LogEventV, UI32, 536 ) \ DB_VALUE_BUFFER( SigRTCHwFault, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOscCapture, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupLSDIabc, UI32, 10 ) \ DB_VALUE_BUFFER( LogToCmsTransferRequest, UI32, 32 ) \ DB_VALUE_BUFFER( LogToCmsTransferReply, UI32, 8 ) \ DB_VALUE_BUFFER( SigOpen, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenProt, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenOc1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOc2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOc3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOc1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOc2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOc3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEf1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEf2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEf3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEf1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEf2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEf3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSefF, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSefR, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOcll, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEfll, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv1, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv2, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv3, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOv1, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOv2, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOf, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUf, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenRemote, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSCADA, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenIO, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenLocal, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenMMI, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenPC, UI32, 10 ) \ DB_VALUE_BUFFER( DEPRECATED_SigOpenManual, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarm, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmOc1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOc2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOc3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOc1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOc2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOc3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEf1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEf2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEf3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEf1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEf2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEf3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmSefF, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmSefR, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUv1, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUv2, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUv3, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOv1, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOv2, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOf, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUf, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosed, UI32, 11 ) \ DB_VALUE_BUFFER( SigClosedAR, UI32, 11 ) \ DB_VALUE_BUFFER( SigClosedAR_OcEf, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedAR_Sef, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedAR_Uv, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedAR_Ov, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedABR, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedRemote, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedSCADA, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedIO, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedLocal, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedMMI, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedPC, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedUndef, UI32, 10 ) \ DB_VALUE_BUFFER( SigStatusConnectionEstablished, UI32, 10 ) \ DB_VALUE_BUFFER( SigStatusConnectionCompleted, UI32, 10 ) \ DB_VALUE_BUFFER( SigStatusDialupInitiated, UI32, 10 ) \ DB_VALUE_BUFFER( SigStatusDialupFailed, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfunction, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfRelay, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfSimComms, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfIo1Comms, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfIo2Comms, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfIo1Fault, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfIo2Fault, UI32, 10 ) \ DB_VALUE_BUFFER( SigWarning, UI32, 11 ) \ DB_VALUE_BUFFER( IdRelayNumber, UI32, 13 ) \ DB_VALUE_BUFFER( IdRelayDbVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdRelaySoftwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdRelayHardwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdSIMNumber, UI32, 13 ) \ DB_VALUE_BUFFER( IdSIMSoftwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdSIMHardwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdPanelNumber, UI32, 13 ) \ DB_VALUE_BUFFER( IdPanelHMIVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdPanelSoftwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdPanelHardwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( SysDateTime, UI32, 8 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpen, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstClose, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRemoteOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigGenLockout, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenARInit, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenProtInit, UI32, 11 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusActive, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripFail, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseFail, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripActive, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseActive, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchPositionStatusUnavailable, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchManualTrip, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchDisconnectionStatus, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchLockoutStatusMechaniclocked, UI32, 10 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusCoilOc, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmActuatorFaultStatusCoilSc, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmLimitFaultStatusFault, UI32, 10 ) \ DB_VALUE_BUFFER( SigDriverStatusNotReady, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryStatusAbnormal, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryChargerStatusFlat, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryChargerStatusNormal, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryChargerStatusLowPower, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryChargerStatusTrickle, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryChargerStatusFails, UI32, 10 ) \ DB_VALUE_BUFFER( SigLowPowerBatteryCharge, UI32, 10 ) \ DB_VALUE_BUFFER( SigExtSupplyStatusOff, UI32, 10 ) \ DB_VALUE_BUFFER( SigExtSupplyStatusOverLoad, UI32, 10 ) \ DB_VALUE_BUFFER( SigUPSStatusAcOff, UI32, 10 ) \ DB_VALUE_BUFFER( SigUPSStatusBatteryOff, UI32, 10 ) \ DB_VALUE_BUFFER( SigUPSPowerDown, UI32, 10 ) \ DB_VALUE_BUFFER( SigModuleSimHealthFault, UI32, 11 ) \ DB_VALUE_BUFFER( SigModuleTypeSimDisconnected, UI32, 10 ) \ DB_VALUE_BUFFER( SigModuleTypeIo1Connected, UI32, 10 ) \ DB_VALUE_BUFFER( SigModuleTypeIo2Connected, UI32, 10 ) \ DB_VALUE_BUFFER( SigModuleTypePcConnected, UI32, 10 ) \ DB_VALUE_BUFFER( SigCANControllerOverrun, UI32, 10 ) \ DB_VALUE_BUFFER( SigCANControllerError, UI32, 10 ) \ DB_VALUE_BUFFER( SigCANMessagebufferoverflow, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedAR_VE, UI32, 11 ) \ DB_VALUE_BUFFER( dbSaveFName, UI32, 41 ) \ DB_VALUE_BUFFER( dbConfigFName, UI32, 41 ) \ DB_VALUE_BUFFER( ScadaDNP3BinaryInputs, UI32, 2042 ) \ DB_VALUE_BUFFER( ScadaDNP3BinaryOutputs, UI32, 578 ) \ DB_VALUE_BUFFER( ScadaDNP3BinaryCounters, UI32, 1346 ) \ DB_VALUE_BUFFER( ScadaDNP3AnalogInputs, UI32, 1666 ) \ DB_VALUE_BUFFER( ScadaDNP3OctetStrings, UI32, 162 ) \ DB_VALUE_BUFFER( IdRelayFpgaVer, UI32, 41 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusQ503Failed, UI32, 10 ) \ DB_VALUE_BUFFER( UpsRestartTime, UI32, 8 ) \ DB_VALUE_BUFFER( CanSimRdData, UI32, 9 ) \ DB_VALUE_BUFFER( HmiResourceFile, UI32, 81 ) \ DB_VALUE_BUFFER( HmiPasswords, UI32, 64 ) \ DB_VALUE_BUFFER( IabcRMS_trip, UI32, 16 ) \ DB_VALUE_BUFFER( IabcRMS, UI32, 16 ) \ DB_VALUE_BUFFER( SigListWarning, UI32, 255 ) \ DB_VALUE_BUFFER( SigListMalfunction, UI32, 255 ) \ DB_VALUE_BUFFER( SigPickupPhA, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupPhB, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupPhC, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupPhN, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfComms, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfPanelComms, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfRc10, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfModule, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfPanelModule, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfOsm, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfCanBus, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenPhA, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenPhB, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenPhC, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenPhN, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenABRAutoOpen, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUndef, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmPhA, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmPhB, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmPhC, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmPhN, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedABRAutoOpen, UI32, 10 ) \ DB_VALUE_BUFFER( SmpTicks, UI32, 256 ) \ DB_VALUE_BUFFER( G1_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G1_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G2_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G2_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G3_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G3_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G4_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G4_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G1_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G1_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G1_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G1_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G2_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G2_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G2_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G2_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G3_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G3_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G3_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G3_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G4_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G4_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G4_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G4_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G1_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G1_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G1_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G1_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G1_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G1_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G1_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G1_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G1_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G1_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G1_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G1_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G1_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G2_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G2_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G2_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G2_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G2_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G2_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G2_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G2_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G2_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G2_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G2_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G2_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G2_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G3_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G3_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G3_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G3_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G3_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G3_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G3_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G3_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G3_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G3_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G3_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G3_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G3_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G4_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G4_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G4_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G4_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G4_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G4_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G4_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G4_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G4_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G4_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G4_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G4_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G4_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( UsbDiscMountPath, UI32, 32 ) \ DB_VALUE_BUFFER( CanSimPartAndSupplierCode, UI32, 41 ) \ DB_VALUE_BUFFER( SigPickupLSD, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlTestBit, UI32, 10 ) \ DB_VALUE_BUFFER( SigUpsPowerUp, UI32, 10 ) \ DB_VALUE_BUFFER( SigLineSupplyStatusNormal, UI32, 10 ) \ DB_VALUE_BUFFER( SigLineSupplyStatusOff, UI32, 10 ) \ DB_VALUE_BUFFER( SigLineSupplyStatusHigh, UI32, 10 ) \ DB_VALUE_BUFFER( SigOperationFaultCap, UI32, 10 ) \ DB_VALUE_BUFFER( SigRelayCANMessagebufferoverflow, UI32, 10 ) \ DB_VALUE_BUFFER( SigRelayCANControllerError, UI32, 10 ) \ DB_VALUE_BUFFER( UsbDiscUpdateVersions, UI32, 255 ) \ DB_VALUE_BUFFER( IdOsmNumber, UI32, 13 ) \ DB_VALUE_BUFFER( G5_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G5_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G5_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G6_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G6_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G6_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G7_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G7_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G7_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G8_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G8_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G8_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G5_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G5_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G5_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G5_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G6_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G6_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G6_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G6_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G7_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G7_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G7_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G7_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G8_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G8_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G8_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G8_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G5_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G5_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G5_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G5_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G5_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G5_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G5_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G5_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G5_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G5_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G5_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G5_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G5_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G6_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G6_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G6_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G6_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G6_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G6_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G6_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G6_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G6_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G6_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G6_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G6_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G6_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G7_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G7_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G7_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G7_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G7_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G7_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G7_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G7_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G7_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G7_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G7_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G7_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G7_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G8_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G8_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G8_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G8_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G8_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G8_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G8_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G8_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G8_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G8_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G8_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G8_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G8_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G1_OCLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_OCLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_OCLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_OCLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_OCLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_OCLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_OCLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_OCLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( SigPickupHrm, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmHrm, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenHrm, UI32, 10 ) \ DB_VALUE_BUFFER( LogInterrupt, UI32, 128 ) \ DB_VALUE_BUFFER( LogSagSwell, UI32, 128 ) \ DB_VALUE_BUFFER( LogHrm, UI32, 128 ) \ DB_VALUE_BUFFER( G11_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G11_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G11_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G11_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G11_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G11_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G11_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G11_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G11_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G11_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G11_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G11_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G11_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G11_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G11_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G11_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G11_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G11_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G11_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G11_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( SigPickupNps1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNps2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNps3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNps1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNps2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNps3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOcll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOcll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNpsll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNpsll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupNpsll3, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEfll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupEfll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupSefll, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNps1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNps2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNps3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNps1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNps2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNps3R, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOcll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOcll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNpsll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNpsll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenNpsll3, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEfll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenEfll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSefll, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNps1F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNps2F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNps3F, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNps1R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNps2R, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNps3R, UI32, 10 ) \ DB_VALUE_BUFFER( G1_NPS1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_NPS2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_NPS1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_NPS2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_NPSLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_NPSLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_EFLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G1_EFLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_NPS1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_NPS2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_NPS1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_NPS2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_NPSLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_NPSLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_EFLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G2_EFLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_NPS1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_NPS2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_NPS1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_NPS2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_NPSLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_NPSLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_EFLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G3_EFLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_NPS1F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_NPS2F_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_NPS1R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_NPS2R_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_NPSLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_NPSLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_EFLL1_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( G4_EFLL2_TccUD, UI32, 670 ) \ DB_VALUE_BUFFER( IdRelayModelStr, UI32, 41 ) \ DB_VALUE_BUFFER( SigOpenOc, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenEf, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenSef, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenUv, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenOv, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmOc, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmEf, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmSef, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmUv, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmOv, UI32, 11 ) \ DB_VALUE_BUFFER( SigPickupOc, UI32, 11 ) \ DB_VALUE_BUFFER( SigPickupEf, UI32, 11 ) \ DB_VALUE_BUFFER( SigPickupSef, UI32, 11 ) \ DB_VALUE_BUFFER( SigPickupUv, UI32, 11 ) \ DB_VALUE_BUFFER( SigPickupOv, UI32, 11 ) \ DB_VALUE_BUFFER( Lan_MAC, UI32, 41 ) \ DB_VALUE_BUFFER( SigMalfLoadSavedDb, UI32, 10 ) \ DB_VALUE_BUFFER( UsbDiscInstallVersions, UI32, 255 ) \ DB_VALUE_BUFFER( InterruptShortABCLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( InterruptShortRSTLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( InterruptLongABCLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( InterruptLongRSTLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( SigClosedUV3AutoClose, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstCloseA, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstCloseB, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstCloseC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstCloseAB, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstCloseAC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstCloseBC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstCloseABC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpenA, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpenB, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpenC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpenAB, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpenAC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpenBC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRqstOpenABC, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfSimRunningMiniBootloader, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSwitchA, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSwitchB, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSwitchC, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedSwitchA, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedSwitchB, UI32, 10 ) \ DB_VALUE_BUFFER( SigClosedSwitchC, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchDisconnectionStatusA, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchDisconnectionStatusB, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchDisconnectionStatusC, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchLockoutStatusMechaniclockedA, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchLockoutStatusMechaniclockedB, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchLockoutStatusMechaniclockedC, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfOsmA, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfOsmB, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfOsmC, UI32, 11 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusCoilOcA, UI32, 10 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusCoilOcB, UI32, 10 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusCoilOcC, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmActuatorFaultStatusCoilScA, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmActuatorFaultStatusCoilScB, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmActuatorFaultStatusCoilScC, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmLimitFaultStatusFaultA, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmLimitFaultStatusFaultB, UI32, 10 ) \ DB_VALUE_BUFFER( SigOsmLimitFaultStatusFaultC, UI32, 10 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusQ503FailedA, UI32, 10 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusQ503FailedB, UI32, 10 ) \ DB_VALUE_BUFFER( SigOSMActuatorFaultStatusQ503FailedC, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusActiveA, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusActiveB, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusActiveC, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripFailA, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripFailB, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripFailC, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseFailA, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseFailB, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseFailC, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripActiveA, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripActiveB, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusTripActiveC, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseActiveA, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseActiveB, UI32, 10 ) \ DB_VALUE_BUFFER( SigTripCloseRequestStatusCloseActiveC, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlPhaseSelA, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlPhaseSelB, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlPhaseSelC, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUv4, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmUv4, UI32, 11 ) \ DB_VALUE_BUFFER( SigPickupUabcUv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupUrstUv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUabcUv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUrstUv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUv4Midpoint, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmUabcUv4Midpoint, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmUrstUv4Midpoint, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Midpoint, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenUabcUv4Midpoint, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUrstUv4Midpoint, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Ua, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Ub, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Uc, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Ur, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Us, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Ut, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Uab, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Ubc, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Uca, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Urs, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Ust, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenUv4Utr, UI32, 10 ) \ DB_VALUE_BUFFER( SigStatusCloseBlockingUv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenLockoutA, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenLockoutB, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenLockoutC, UI32, 10 ) \ DB_VALUE_BUFFER( SigLockoutProtA, UI32, 10 ) \ DB_VALUE_BUFFER( SigLockoutProtB, UI32, 10 ) \ DB_VALUE_BUFFER( SigLockoutProtC, UI32, 10 ) \ DB_VALUE_BUFFER( CoOpenReqB, UI32, 34 ) \ DB_VALUE_BUFFER( CoOpenReqC, UI32, 34 ) \ DB_VALUE_BUFFER( CoCloseReqB, UI32, 34 ) \ DB_VALUE_BUFFER( CoCloseReqC, UI32, 34 ) \ DB_VALUE_BUFFER( IdOsmNumber2, UI32, 13 ) \ DB_VALUE_BUFFER( IdOsmNumber3, UI32, 13 ) \ DB_VALUE_BUFFER( IdOsmNumberA, UI32, 13 ) \ DB_VALUE_BUFFER( IdOsmNumberB, UI32, 13 ) \ DB_VALUE_BUFFER( IdOsmNumberC, UI32, 13 ) \ DB_VALUE_BUFFER( SigSwitchLogicallyLockedA, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchLogicallyLockedB, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchLogicallyLockedC, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryTestInitiate, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryTestRunning, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryTestPassed, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryTestNotPerformed, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryTestCheckBattery, UI32, 10 ) \ DB_VALUE_BUFFER( SigBatteryTestFaulty, UI32, 10 ) \ DB_VALUE_BUFFER( BatteryTestLastPerformedTime, UI32, 8 ) \ DB_VALUE_BUFFER( SigTrip3Lockout3On, UI32, 10 ) \ DB_VALUE_BUFFER( SigTrip1Lockout3On, UI32, 10 ) \ DB_VALUE_BUFFER( SigTrip1Lockout1On, UI32, 10 ) \ DB_VALUE_BUFFER( UserAnalogCfg01, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg02, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg03, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg04, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg05, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg06, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg07, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg08, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg09, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg10, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg11, UI32, 20 ) \ DB_VALUE_BUFFER( UserAnalogCfg12, UI32, 20 ) \ DB_VALUE_BUFFER( SigGenARInitA, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenARInitB, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenARInitC, UI32, 10 ) \ DB_VALUE_BUFFER( SigIncorrectPhaseSeq, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmSwitchA, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmSwitchB, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmSwitchC, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenLSRM, UI32, 10 ) \ DB_VALUE_BUFFER( OscTraceUsbDir, UI32, 32 ) \ DB_VALUE_BUFFER( GenericDir, UI32, 41 ) \ DB_VALUE_BUFFER( SigStatusCloseBlockingLLB, UI32, 10 ) \ DB_VALUE_BUFFER( SigFaultTargetOpen, UI32, 11 ) \ DB_VALUE_BUFFER( GOOSE_broadcastMacAddr, UI32, 41 ) \ DB_VALUE_BUFFER( s61850IEDName, UI32, 41 ) \ DB_VALUE_BUFFER( SigOpenSectionaliser, UI32, 10 ) \ DB_VALUE_BUFFER( SigCmdResetProtConfig, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfSectionaliserMismatch, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSim, UI32, 10 ) \ DB_VALUE_BUFFER( SigFaultTarget, UI32, 11 ) \ DB_VALUE_BUFFER( SigFaultTargetNonOpen, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenOcllTop, UI32, 11 ) \ DB_VALUE_BUFFER( SigOpenEfllTop, UI32, 11 ) \ DB_VALUE_BUFFER( LogicVAR17, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR18, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR19, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR20, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR21, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR22, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR23, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR24, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR25, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR26, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR27, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR28, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR29, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR30, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR31, UI32, 10 ) \ DB_VALUE_BUFFER( LogicVAR32, UI32, 10 ) \ DB_VALUE_BUFFER( s61850TestDI3Sig, UI32, 10 ) \ DB_VALUE_BUFFER( LogicCh9OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh9Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh9NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh9InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh10OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh10Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh10NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh10InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh11OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh11Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh11NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh11InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh12OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh12Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh12NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh12InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh13OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh13Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh13NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh13InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh14OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh14Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh14NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh14InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh15OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh15Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh15NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh15InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh16OutputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh16Name, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh16NameOffline, UI32, 8 ) \ DB_VALUE_BUFFER( LogicCh16InputExp, UI32, 41 ) \ DB_VALUE_BUFFER( LogicCh17OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh17Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh17NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh17InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh18OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh18Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh18NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh18InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh19OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh19Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh19NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh19InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh20OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh20Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh20NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh20InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh21OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh21Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh21NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh21InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh22OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh22Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh22NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh22InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh23OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh23Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh23NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh23InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh24OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh24Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh24NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh24InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh25OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh25Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh25NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh25InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh26OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh26Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh26NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh26InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh27OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh27Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh27NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh27InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh28OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh28Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh28NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh28InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh29OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh29Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh29NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh29InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh30OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh30Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh30NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh30InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh31OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh31Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh31NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh31InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh32OutputExp, UI32, 42 ) \ DB_VALUE_BUFFER( LogicCh32Name, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh32NameOffline, UI32, 9 ) \ DB_VALUE_BUFFER( LogicCh32InputExp, UI32, 42 ) \ DB_VALUE_BUFFER( SigStatusCloseBlocked, UI32, 10 ) \ DB_VALUE_BUFFER( LogicChEnableExt, UI32, 5 ) \ DB_VALUE_BUFFER( LogicChPulseEnableExt, UI32, 5 ) \ DB_VALUE_BUFFER( LogicChLogChangeExt, UI32, 5 ) \ DB_VALUE_BUFFER( SigOpenNps, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmNps, UI32, 11 ) \ DB_VALUE_BUFFER( SigMalfGpioRunningMiniBootloader, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmProtectionOperation, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSig1, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSig2, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSig3, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSig4, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSig5, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSig6, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSig7, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupABR, UI32, 10 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileVer, UI32, 41 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileNetworkName, UI32, 41 ) \ DB_VALUE_BUFFER( DNP3SA_UpdateKeyFileVer, UI32, 21 ) \ DB_VALUE_BUFFER( IdSIMModelStr, UI32, 41 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileDevSerialNum, UI32, 41 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileKeyVer, UI32, 41 ) \ DB_VALUE_BUFFER( DNP3SA_UpdateKeyFileKeyVer, UI32, 41 ) \ DB_VALUE_BUFFER( ScadaDNP3SecurityStatistics, UI32, 386 ) \ DB_VALUE_BUFFER( SigAlarmOv3, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOv3, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenOv4, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOv3, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupOv4, UI32, 10 ) \ DB_VALUE_BUFFER( UsbDiscDNP3SAUpdateKeyFileName, UI32, 256 ) \ DB_VALUE_BUFFER( UsbDiscUpdateDirFiles, UI32, 255 ) \ DB_VALUE_BUFFER( SigLogicConfigIssue, UI32, 10 ) \ DB_VALUE_BUFFER( SigLowestUa, UI32, 10 ) \ DB_VALUE_BUFFER( SigLowestUb, UI32, 10 ) \ DB_VALUE_BUFFER( SigLowestUc, UI32, 10 ) \ DB_VALUE_BUFFER( IdOsmNumber1, UI32, 13 ) \ DB_VALUE_BUFFER( SigSwitchOpen, UI32, 10 ) \ DB_VALUE_BUFFER( SigSwitchClosed, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSubscr01, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr02, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr03, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr04, UI32, 3072 ) \ DB_VALUE_BUFFER( IdPSCSoftwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdPSCHardwareVer, UI32, 41 ) \ DB_VALUE_BUFFER( IdPSCNumber, UI32, 13 ) \ DB_VALUE_BUFFER( CanPscReadSerialNumber, UI32, 41 ) \ DB_VALUE_BUFFER( CanPscPartAndSupplierCode, UI32, 41 ) \ DB_VALUE_BUFFER( SigModuleTypePscConnected, UI32, 10 ) \ DB_VALUE_BUFFER( CanPscReadSWVers, UI32, 6 ) \ DB_VALUE_BUFFER( CanPscRdData, UI32, 9 ) \ DB_VALUE_BUFFER( SigCtrlRqstTripCloseA, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlRqstTripCloseB, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlRqstTripCloseC, UI32, 11 ) \ DB_VALUE_BUFFER( SigClosedSwitchAll, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenSwitchAll, UI32, 10 ) \ DB_VALUE_BUFFER( UpdatePscNew, UI32, 41 ) \ DB_VALUE_BUFFER( s61850GseSubscr05, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr06, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr07, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr08, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr09, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr10, UI32, 3072 ) \ DB_VALUE_BUFFER( SigModuleTypePscDisconnected, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfPscRunningMiniBootloader, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfPscFault, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOcll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOcll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmOcll3, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNpsll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNpsll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmNpsll3, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEfll1, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEfll2, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmEfll3, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmSefll, UI32, 10 ) \ DB_VALUE_BUFFER( DDTDef01, UI32, 1700 ) \ DB_VALUE_BUFFER( LanguagesAvailable, UI32, 512 ) \ DB_VALUE_BUFFER( CanSimReadSWVersExt, UI32, 8 ) \ DB_VALUE_BUFFER( CanIo1ReadSwVersExt, UI32, 8 ) \ DB_VALUE_BUFFER( CanIo2ReadSwVersExt, UI32, 8 ) \ DB_VALUE_BUFFER( CanPscReadSWVersExt, UI32, 8 ) \ DB_VALUE_BUFFER( RemoteUpdateStatus, UI32, 8 ) \ DB_VALUE_BUFFER( SigStatusIEC61499FailedFBOOT, UI32, 10 ) \ DB_VALUE_BUFFER( SigGenLockoutAll, UI32, 10 ) \ DB_VALUE_BUFFER( SigLockoutProtAll, UI32, 10 ) \ DB_VALUE_BUFFER( Gps_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( SigGpsLocked, UI32, 10 ) \ DB_VALUE_BUFFER( Gps_PPS, UI32, 10 ) \ DB_VALUE_BUFFER( SigModuleSimUnhealthy, UI32, 10 ) \ DB_VALUE_BUFFER( SigLanAvailable, UI32, 10 ) \ DB_VALUE_BUFFER( WlanAccessPointSSID, UI32, 33 ) \ DB_VALUE_BUFFER( MobileNetworkModemSerialNumber, UI32, 41 ) \ DB_VALUE_BUFFER( MobileNetworkIMEI, UI32, 41 ) \ DB_VALUE_BUFFER( SigWlanAvailable, UI32, 10 ) \ DB_VALUE_BUFFER( SigMobileNetworkAvailable, UI32, 10 ) \ DB_VALUE_BUFFER( SigCommsBoardConnected, UI32, 10 ) \ DB_VALUE_BUFFER( G12_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G12_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G12_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G12_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G12_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G12_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G12_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G12_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G12_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G12_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G12_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G12_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G12_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G12_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G12_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G12_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G13_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G13_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G13_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G12_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G12_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G12_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G12_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G13_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G13_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G13_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G13_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G13_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G13_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G13_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G13_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G13_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G13_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G13_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G13_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G13_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G13_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G13_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G13_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G13_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( SigMalfRel03, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfRel15, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfRel15_4G, UI32, 10 ) \ DB_VALUE_BUFFER( SigWarningSyncSingleTriple, UI32, 10 ) \ DB_VALUE_BUFFER( SigAutoSynchroniserInitiate, UI32, 10 ) \ DB_VALUE_BUFFER( SigAutoSynchroniserInitiated, UI32, 10 ) \ DB_VALUE_BUFFER( SigAutoSynchroniserRelease, UI32, 10 ) \ DB_VALUE_BUFFER( SigSyncHealthCheck, UI32, 10 ) \ DB_VALUE_BUFFER( SigSyncTimedHealthCheck, UI32, 10 ) \ DB_VALUE_BUFFER( SigSyncPhaseSeqMatch, UI32, 10 ) \ DB_VALUE_BUFFER( MobileNetwork_DebugPortName, UI32, 41 ) \ DB_VALUE_BUFFER( SigPickupNps, UI32, 11 ) \ DB_VALUE_BUFFER( DEPRECATED_PowerFlowDirection, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlRestrictTripMode, UI32, 10 ) \ DB_VALUE_BUFFER( s61850GseSubscr11, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr12, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr13, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr14, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr15, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr16, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr17, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr18, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr19, UI32, 3072 ) \ DB_VALUE_BUFFER( s61850GseSubscr20, UI32, 3072 ) \ DB_VALUE_BUFFER( MobileNetworkPortName, UI32, 41 ) \ DB_VALUE_BUFFER( OpenReqA, UI32, 40 ) \ DB_VALUE_BUFFER( OpenReqB, UI32, 40 ) \ DB_VALUE_BUFFER( OpenReqC, UI32, 40 ) \ DB_VALUE_BUFFER( CoLogOpen, UI32, 40 ) \ DB_VALUE_BUFFER( WlanFWVersion, UI32, 41 ) \ DB_VALUE_BUFFER( SigAutoSynchroniserCancel, UI32, 10 ) \ DB_VALUE_BUFFER( CloseReqAR, UI32, 10 ) \ DB_VALUE_BUFFER( SigHighPrecisionSEF, UI32, 10 ) \ DB_VALUE_BUFFER( G1_OC1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_OC2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_OC1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_OC2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_NPS1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_NPS2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_NPS1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_NPS2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_EF1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_EF2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_EF1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_EF2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_OCLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_OCLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_NPSLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_NPSLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_EFLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_EFLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_OC1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_OC2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_OC1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_OC2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_NPS1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_NPS2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_NPS1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_NPS2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_EF1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_EF2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_EF1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_EF2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_OCLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_OCLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_NPSLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_NPSLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_EFLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_EFLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_OC1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_OC2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_OC1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_OC2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_NPS1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_NPS2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_NPS1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_NPS2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_EF1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_EF2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_EF1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_EF2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_OCLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_OCLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_NPSLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_NPSLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_EFLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_EFLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_OC1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_OC2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_OC1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_OC2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_NPS1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_NPS2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_NPS1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_NPS2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_EF1F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_EF2F_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_EF1R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_EF2R_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_OCLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_OCLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_NPSLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_NPSLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_EFLL1_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_EFLL2_TccName, UI32, 41 ) \ DB_VALUE_BUFFER( SigCtrlYnOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigAlarmYn, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupYn, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenYn, UI32, 10 ) \ DB_VALUE_BUFFER( UsbDiscUpdateDirFiles1024, UI32, 1024 ) \ DB_VALUE_BUFFER( UsbDiscUpdateVersions1024, UI32, 1024 ) \ DB_VALUE_BUFFER( UsbDiscInstallVersions1024, UI32, 1024 ) \ DB_VALUE_BUFFER( SigAlarmI2I1, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupI2I1, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenI2I1, UI32, 10 ) \ DB_VALUE_BUFFER( MobileNetworkModemFWNumber, UI32, 41 ) \ DB_VALUE_BUFFER( WlanMACAddr, UI32, 41 ) \ DB_VALUE_BUFFER( SigClosedAutoSync, UI32, 10 ) \ DB_VALUE_BUFFER( SigSyncDeltaVStatus, UI32, 10 ) \ DB_VALUE_BUFFER( SigSyncSlipFreqStatus, UI32, 10 ) \ DB_VALUE_BUFFER( SigSyncDeltaPhaseStatus, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfWLAN, UI32, 10 ) \ DB_VALUE_BUFFER( AlertName1, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName2, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName3, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName4, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName5, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName6, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName7, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName8, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName9, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName10, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName11, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName12, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName13, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName14, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName15, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName16, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName17, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName18, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName19, UI32, 41 ) \ DB_VALUE_BUFFER( AlertName20, UI32, 41 ) \ DB_VALUE_BUFFER( AlertDisplayNames, UI32, 1024 ) \ DB_VALUE_BUFFER( WlanClientMACAddr1, UI32, 41 ) \ DB_VALUE_BUFFER( WlanClientMACAddr2, UI32, 41 ) \ DB_VALUE_BUFFER( WlanClientMACAddr3, UI32, 41 ) \ DB_VALUE_BUFFER( WlanClientMACAddr4, UI32, 41 ) \ DB_VALUE_BUFFER( WlanClientMACAddr5, UI32, 41 ) \ DB_VALUE_BUFFER( SigGPSUnplugged, UI32, 10 ) \ DB_VALUE_BUFFER( SigGPSMalfunction, UI32, 10 ) \ DB_VALUE_BUFFER( SigSimAndOsmModelMismatch, UI32, 10 ) \ DB_VALUE_BUFFER( SigBlockPickupEff, UI32, 10 ) \ DB_VALUE_BUFFER( SigBlockPickupEfr, UI32, 10 ) \ DB_VALUE_BUFFER( SigBlockPickupSeff, UI32, 10 ) \ DB_VALUE_BUFFER( SigBlockPickupSefr, UI32, 10 ) \ DB_VALUE_BUFFER( SigBlockPickupOv3, UI32, 10 ) \ DB_VALUE_BUFFER( SigFaultLocatorStatus, UI32, 10 ) \ DB_VALUE_BUFFER( SigResetFaultLocation, UI32, 10 ) \ DB_VALUE_BUFFER( AlertDisplayDatapoints, UI32, 202 ) \ DB_VALUE_BUFFER( SigArReset, UI32, 10 ) \ DB_VALUE_BUFFER( SigArResetPhA, UI32, 10 ) \ DB_VALUE_BUFFER( SigArResetPhB, UI32, 10 ) \ DB_VALUE_BUFFER( SigArResetPhC, UI32, 10 ) \ DB_VALUE_BUFFER( LogicSGAStopped, UI32, 11 ) \ DB_VALUE_BUFFER( LogicSGAStoppedLogic, UI32, 10 ) \ DB_VALUE_BUFFER( LogicSGAStoppedSGA, UI32, 10 ) \ DB_VALUE_BUFFER( LogicSGAThrottling, UI32, 11 ) \ DB_VALUE_BUFFER( LogicSGAThrottlingLogic, UI32, 10 ) \ DB_VALUE_BUFFER( LogicSGAThrottlingSGA, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCOnboard, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCExternal, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCModem, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCWifi, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCGPS, UI32, 10 ) \ DB_VALUE_BUFFER( LoadedScadaRestartReqWarning, UI32, 10 ) \ DB_VALUE_BUFFER( IdPSCModelStr, UI32, 41 ) \ DB_VALUE_BUFFER( CanPscActiveApplicationDetails, UI32, 8 ) \ DB_VALUE_BUFFER( CanSimActiveApplicationDetails, UI32, 8 ) \ DB_VALUE_BUFFER( CanGpioActiveApplicationDetails, UI32, 8 ) \ DB_VALUE_BUFFER( CanPscInactiveApplicationDetails, UI32, 8 ) \ DB_VALUE_BUFFER( CanSimInactiveApplicationDetails, UI32, 8 ) \ DB_VALUE_BUFFER( CanGpioInactiveApplicationDetails, UI32, 8 ) \ DB_VALUE_BUFFER( sigFirmwareHardwareMismatch, UI32, 10 ) \ DB_VALUE_BUFFER( DiagCounter1, UI32, 2048 ) \ DB_VALUE_BUFFER( SigProtOcDirF, UI32, 10 ) \ DB_VALUE_BUFFER( SigProtOcDirR, UI32, 10 ) \ DB_VALUE_BUFFER( SNTPUnableToSync, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalfRel20, UI32, 10 ) \ DB_VALUE_BUFFER( CurrentLanguage, UI32, 41 ) \ DB_VALUE_BUFFER( ScadaDnp3Ipv6MasterAddr, UI32, 16 ) \ DB_VALUE_BUFFER( ScadaDnp3Ipv6UnathIpAddr, UI32, 16 ) \ DB_VALUE_BUFFER( ScadaT10BIpv6MasterAddr, UI32, 16 ) \ DB_VALUE_BUFFER( s61850ClientIpv6Addr1, UI32, 16 ) \ DB_VALUE_BUFFER( s61850ClientIpv6Addr2, UI32, 16 ) \ DB_VALUE_BUFFER( s61850ClientIpv6Addr3, UI32, 16 ) \ DB_VALUE_BUFFER( s61850ClientIpv6Addr4, UI32, 16 ) \ DB_VALUE_BUFFER( WlanAccessPointIPv6, UI32, 16 ) \ DB_VALUE_BUFFER( WlanClientIPv6Addr1, UI32, 16 ) \ DB_VALUE_BUFFER( WlanClientIPv6Addr2, UI32, 16 ) \ DB_VALUE_BUFFER( WlanClientIPv6Addr3, UI32, 16 ) \ DB_VALUE_BUFFER( WlanClientIPv6Addr4, UI32, 16 ) \ DB_VALUE_BUFFER( WlanClientIPv6Addr5, UI32, 16 ) \ DB_VALUE_BUFFER( SigCtrlPanelOn, UI32, 10 ) \ DB_VALUE_BUFFER( SigMalRel20Dummy, UI32, 10 ) \ DB_VALUE_BUFFER( G14_PortDetectedName, UI32, 41 ) \ DB_VALUE_BUFFER( G14_Ipv6AddrStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G14_Ipv6DefaultGatewayStatus, UI32, 16 ) \ DB_VALUE_BUFFER( G14_SerialPortTestCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G14_SerialPortHangupCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G14_BytesReceivedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G14_BytesTransmittedResetCmd, UI32, 10 ) \ DB_VALUE_BUFFER( G14_DNP3InputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_DNP3OutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_CMSInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_CMSOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_HMIInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_HMIOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_DNP3ChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G14_DNP3ChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G14_CMSChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G14_CMSChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G14_HMIChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G14_HMIChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G14_T10BInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_T10BOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_T10BChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G14_T10BChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G14_P2PInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_P2POutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_P2PChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G14_P2PChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( G14_PGEInputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_PGEOutputPipe, UI32, 41 ) \ DB_VALUE_BUFFER( G14_PGEChannelRequest, UI32, 41 ) \ DB_VALUE_BUFFER( G14_PGEChannelOpen, UI32, 41 ) \ DB_VALUE_BUFFER( LogHrm64, UI32, 512 ) \ DB_VALUE_BUFFER( LanB_MAC, UI32, 41 ) \ DB_VALUE_BUFFER( SigSEFProtMode, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupROCOF, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupVVS, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenROCOF, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenVVS, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmROCOF, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmVVS, UI32, 10 ) \ DB_VALUE_BUFFER( CanBusHighPower, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlPMUProcessingOn, UI32, 10 ) \ DB_VALUE_BUFFER( PMU_Timestamp, UI32, 8 ) \ DB_VALUE_BUFFER( SigMalfAnalogBoard, UI32, 10 ) \ DB_VALUE_BUFFER( SigACOMakeBeforeBreak, UI32, 10 ) \ DB_VALUE_BUFFER( MobileNetwork_SerialPort1, UI32, 41 ) \ DB_VALUE_BUFFER( MobileNetwork_SerialPort2, UI32, 41 ) \ DB_VALUE_BUFFER( MobileNetwork_SerialPort3, UI32, 41 ) \ DB_VALUE_BUFFER( SigCbfBackupTripBlocked, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupCbfBackupTrip, UI32, 10 ) \ DB_VALUE_BUFFER( SigCBFMalfunction, UI32, 10 ) \ DB_VALUE_BUFFER( SigCBFBackupTrip, UI32, 10 ) \ DB_VALUE_BUFFER( SigCBFMalf, UI32, 11 ) \ DB_VALUE_BUFFER( SigCbfBackupTripMode, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCOnboardA, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCOnboardB, UI32, 10 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGConnectionName, UI32, 16 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G1_ScadaT10BRGStatusMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGConnectionName, UI32, 16 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G2_ScadaT10BRGStatusMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGConnectionName, UI32, 16 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G3_ScadaT10BRGStatusMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGConnectionName, UI32, 16 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G4_ScadaT10BRGStatusMasterIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( PinUpdateHMI1, UI32, 5 ) \ DB_VALUE_BUFFER( PinUpdateHMI2, UI32, 5 ) \ DB_VALUE_BUFFER( PukUpdateHMI1, UI32, 9 ) \ DB_VALUE_BUFFER( PukUpdateHMI2, UI32, 9 ) \ DB_VALUE_BUFFER( PinStore, UI32, 5 ) \ DB_VALUE_BUFFER( PukStore, UI32, 9 ) \ DB_VALUE_BUFFER( PinUpdateCMS, UI32, 5 ) \ DB_VALUE_BUFFER( PukUpdateCMS, UI32, 9 ) \ DB_VALUE_BUFFER( SigNmSimError, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupPDOP, UI32, 10 ) \ DB_VALUE_BUFFER( SigPickupPDUP, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenPDOP, UI32, 10 ) \ DB_VALUE_BUFFER( SigOpenPDUP, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmPDOP, UI32, 10 ) \ DB_VALUE_BUFFER( SigAlarmPDUP, UI32, 10 ) \ DB_VALUE_BUFFER( PinLastWriteString, UI32, 5 ) \ DB_VALUE_BUFFER( PukLastWriteString, UI32, 9 ) \ DB_VALUE_BUFFER( SigSIMCardError, UI32, 10 ) \ DB_VALUE_BUFFER( SigSIMCardPINReqd, UI32, 10 ) \ DB_VALUE_BUFFER( SigSIMCardPINError, UI32, 10 ) \ DB_VALUE_BUFFER( SigSIMCardBlockedByPIN, UI32, 10 ) \ DB_VALUE_BUFFER( SigSIMCardPUKError, UI32, 10 ) \ DB_VALUE_BUFFER( SigSIMCardBlockedPerm, UI32, 10 ) \ DB_VALUE_BUFFER( SmpTicks2, UI32, 256 ) \ DB_VALUE_BUFFER( MobileNetworkSIMCardID, UI32, 21 ) \ /**The value buffer definitions for all crash save data points * ordered by the memory byte alignment requirement. * Arguments: name, align, length * name The datapoint name * align The datapoint alignment requirement * length The required value buffer length */ #define DB_VALUE_BUFFERS_CRASHSAVE \ \ DB_VALUE_BUFFER( AuxVoltage, UI32, 4 ) \ DB_VALUE_BUFFER( LoadProfDefAddr, UI32, 4 ) \ DB_VALUE_BUFFER( LoadProfValAddr, UI32, 4 ) \ DB_VALUE_BUFFER( CmsCntErr, UI32, 4 ) \ DB_VALUE_BUFFER( CmsCntTxd, UI32, 4 ) \ DB_VALUE_BUFFER( CmsCntRxd, UI32, 4 ) \ DB_VALUE_BUFFER( CmsAuxCntErr, UI32, 4 ) \ DB_VALUE_BUFFER( CmsAuxCntTxd, UI32, 4 ) \ DB_VALUE_BUFFER( CmsAuxCntRxd, UI32, 4 ) \ DB_VALUE_BUFFER( ProtGlbUsys, UI32, 4 ) \ DB_VALUE_BUFFER( ProtGlbLsdLevel, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCUa, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCUb, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCUc, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCUr, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCUs, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCUt, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCIa, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCIb, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCIc, UI32, 4 ) \ DB_VALUE_BUFFER( SwitchCoefCIn, UI32, 4 ) \ DB_VALUE_BUFFER( TimeZone, UI32, 4 ) \ DB_VALUE_BUFFER( G1_IrrIrm, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_OC2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EF3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFF_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFR_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_EfLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ArUVOV_Trec, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3_ModemAutoDialInterval, UI32, 4 ) \ DB_VALUE_BUFFER( CMS_ModemAutoDialInterval, UI32, 4 ) \ DB_VALUE_BUFFER( DNP3_ModemConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( CMS_ModemConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3IpTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( ScadaDnp3IpTcpKeepAlive, UI32, 4 ) \ DB_VALUE_BUFFER( T101_ModemAutoDialInterval, UI32, 4 ) \ DB_VALUE_BUFFER( T101_ModemConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( LogFaultBufAddr1, UI32, 4 ) \ DB_VALUE_BUFFER( LogFaultBufAddr2, UI32, 4 ) \ DB_VALUE_BUFFER( LogFaultBufAddr3, UI32, 4 ) \ DB_VALUE_BUFFER( LogFaultBufAddr4, UI32, 4 ) \ DB_VALUE_BUFFER( G2_IrrIrm, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_OC2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EF3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFF_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFR_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_EfLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ArUVOV_Trec, UI32, 4 ) \ DB_VALUE_BUFFER( p2pRemoteLanAddr, UI32, 4 ) \ DB_VALUE_BUFFER( p2pCommUpdateRates, UI32, 4 ) \ DB_VALUE_BUFFER( G3_IrrIrm, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_OC2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EF3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFF_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFR_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_EfLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ArUVOV_Trec, UI32, 4 ) \ DB_VALUE_BUFFER( G4_IrrIrm, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC3F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_OC2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2F_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF3F_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF1R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF2R_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EF3R_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFF_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFR_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_EfLl_Ip, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ArUVOV_Trec, UI32, 4 ) \ DB_VALUE_BUFFER( CmsPortBaud, UI32, 4 ) \ DB_VALUE_BUFFER( DEPRECATED_CmsAuxPortBaud, UI32, 4 ) \ DB_VALUE_BUFFER( CmsPortCrcCnt, UI32, 4 ) \ DB_VALUE_BUFFER( CmsAuxPortCrcCnt, UI32, 4 ) \ DB_VALUE_BUFFER( ProtCfgInUse, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhase3FkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhase3FkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhase3FkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseAFkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseAFkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseAFkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseBFkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseBFkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseBFkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseCFkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseCFkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseCFkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhase3RkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhase3RkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhase3RkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseARkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseARkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseARkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseBRkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseBRkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseBRkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseCRkVAh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseCRkVArh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasEnergyPhaseCRkWh, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseF3kVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseF3kW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseF3kVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFAkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFAkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFAkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFBkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFBkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFBkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFCkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFCkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseFCkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseR3kVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseR3kW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseR3kVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRAkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRAkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRAkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRBkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRBkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRBkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRCkVA, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRCkW, UI32, 4 ) \ DB_VALUE_BUFFER( MeasPowerPhaseRCkVAr, UI32, 4 ) \ DB_VALUE_BUFFER( TripCnta, UI32, 4 ) \ DB_VALUE_BUFFER( TripCntb, UI32, 4 ) \ DB_VALUE_BUFFER( TripCntc, UI32, 4 ) \ DB_VALUE_BUFFER( BreakerWeara, UI32, 4 ) \ DB_VALUE_BUFFER( BreakerWearb, UI32, 4 ) \ DB_VALUE_BUFFER( BreakerWearc, UI32, 4 ) \ DB_VALUE_BUFFER( scadaPollPeriod, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G1_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G1_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G1_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G1_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G1_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G1_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G2_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G2_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G2_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G2_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G2_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G2_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G3_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G3_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G3_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G3_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G3_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G3_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G4_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G4_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G4_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G4_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G4_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G4_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G5_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G5_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G5_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G5_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G5_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G5_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G5_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G5_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G5_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G6_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G6_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G6_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G6_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G6_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G6_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G6_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G6_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G6_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G7_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G7_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G7_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G7_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G7_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G7_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G7_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G7_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G7_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G8_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G8_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G8_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G8_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G8_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G8_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G8_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G8_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G8_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_VTHD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_VTHD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_ITDD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_ITDD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_Ind_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_IndA_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_IndB_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_IndC_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_IndD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G1_Hrm_IndE_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_VTHD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_VTHD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_ITDD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_ITDD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_Ind_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_IndA_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_IndB_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_IndC_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_IndD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G2_Hrm_IndE_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_VTHD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_VTHD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_ITDD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_ITDD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_Ind_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_IndA_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_IndB_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_IndC_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_IndD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G3_Hrm_IndE_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_VTHD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_VTHD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_ITDD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_ITDD_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_Ind_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_IndA_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_IndB_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_IndC_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_IndD_Level, UI32, 4 ) \ DB_VALUE_BUFFER( G4_Hrm_IndE_Level, UI32, 4 ) \ DB_VALUE_BUFFER( InterruptDuration, UI32, 4 ) \ DB_VALUE_BUFFER( InterruptShortABCCnt, UI32, 4 ) \ DB_VALUE_BUFFER( InterruptShortRSTCnt, UI32, 4 ) \ DB_VALUE_BUFFER( InterruptLongABCCnt, UI32, 4 ) \ DB_VALUE_BUFFER( InterruptLongRSTCnt, UI32, 4 ) \ DB_VALUE_BUFFER( SagNormalThreshold, UI32, 4 ) \ DB_VALUE_BUFFER( SagMinThreshold, UI32, 4 ) \ DB_VALUE_BUFFER( SagTime, UI32, 4 ) \ DB_VALUE_BUFFER( SwellNormalThreshold, UI32, 4 ) \ DB_VALUE_BUFFER( SwellTime, UI32, 4 ) \ DB_VALUE_BUFFER( SagSwellResetTime, UI32, 4 ) \ DB_VALUE_BUFFER( SagABCCnt, UI32, 4 ) \ DB_VALUE_BUFFER( SagRSTCnt, UI32, 4 ) \ DB_VALUE_BUFFER( SwellABCCnt, UI32, 4 ) \ DB_VALUE_BUFFER( SwellRSTCnt, UI32, 4 ) \ DB_VALUE_BUFFER( HrmLogTHDDeadband, UI32, 4 ) \ DB_VALUE_BUFFER( HrmLogTDDDeadband, UI32, 4 ) \ DB_VALUE_BUFFER( HrmLogIndivIDeadband, UI32, 4 ) \ DB_VALUE_BUFFER( HrmLogIndivVDeadband, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G11_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ModemAutoDialInterval, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ModemConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G11_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G11_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G11_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G11_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G11_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G11_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G11_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G1_LlbUM, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFF_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFR_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G1_SEFLL_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G2_LlbUM, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFF_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFR_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G2_SEFLL_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G3_LlbUM, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFF_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFR_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G3_SEFLL_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G4_LlbUM, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFF_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFR_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( G4_SEFLL_Ip_HighPrec, UI32, 4 ) \ DB_VALUE_BUFFER( StackCheckInterval, UI32, 4 ) \ DB_VALUE_BUFFER( DurMonUpdateInterval, UI32, 4 ) \ DB_VALUE_BUFFER( BatteryTestInterval, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G12_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ModemAutoDialInterval, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ModemConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G12_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G12_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G12_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G12_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G12_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G12_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G12_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G13_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ModemAutoDialInterval, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ModemConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G13_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G13_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G13_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G13_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G13_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G13_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G13_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( WlanAPSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ROCOF_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ROCOF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_ROCOF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_VVS_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G1_VVS_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_VVS_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDOP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDOP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDOP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDOP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDUP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDUP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDUP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDUP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G1_PDUP_TDtDis, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ROCOF_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ROCOF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_ROCOF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_VVS_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G2_VVS_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_VVS_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDOP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDOP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDOP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDOP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDUP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDUP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDUP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDUP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G2_PDUP_TDtDis, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ROCOF_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ROCOF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_ROCOF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_VVS_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G3_VVS_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_VVS_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDOP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDOP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDOP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDOP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDUP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDUP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDUP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDUP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G3_PDUP_TDtDis, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ROCOF_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ROCOF_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_ROCOF_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_VVS_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G4_VVS_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_VVS_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDOP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDOP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDOP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDOP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDUP_Pickup, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDUP_Angle, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDUP_TDtMin, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDUP_TDtRes, UI32, 4 ) \ DB_VALUE_BUFFER( G4_PDUP_TDtDis, UI32, 4 ) \ DB_VALUE_BUFFER( SNTPServIpAddr1, UI32, 4 ) \ DB_VALUE_BUFFER( SNTPServIpAddr2, UI32, 4 ) \ DB_VALUE_BUFFER( Diagnostic7, UI32, 4 ) \ DB_VALUE_BUFFER( SNTPSetTime, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchIaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchIbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchIcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchInCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchUaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchUbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchUcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchUrCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchUsCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchUtCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayIaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayIbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayIcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayInCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayUaCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayUbCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayUcCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayUrCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayUsCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayUtCalCoef, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayIaCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayIbCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayIcCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchDefaultGainI, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchDefaultGainU, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMDefaultGainILow, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMDefaultGainIHigh, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMDefaultGainIn, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SIMDefaultGainU, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayDefaultGainILow, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayDefaultGainIHigh, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayDefaultGainIn, UI32, 4 ) \ DB_VALUE_BUFFER( RC20RelayDefaultGainU, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGADefaultGainILow, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGADefaultGainIHigh, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGADefaultGainIn, UI32, 4 ) \ DB_VALUE_BUFFER( RC20FPGADefaultGainU, UI32, 4 ) \ DB_VALUE_BUFFER( RC20ConstCalCoefILow, UI32, 4 ) \ DB_VALUE_BUFFER( RC20ConstCalCoefIHigh, UI32, 4 ) \ DB_VALUE_BUFFER( RC20ConstCalCoefIn, UI32, 4 ) \ DB_VALUE_BUFFER( RC20ConstCalCoefU, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchIaCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchIbCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( RC20SwitchIcCalCoefHi, UI32, 4 ) \ DB_VALUE_BUFFER( OscCaptureTimeExt, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialDTRLowTime, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialTxDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialPreTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialDCDFallTime, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialCharTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialPostTxTime, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialInactivityTime, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialMinIdleTime, UI32, 4 ) \ DB_VALUE_BUFFER( G14_SerialMaxRandomDelay, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ModemAutoDialInterval, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ModemConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ModemMaxCallDuration, UI32, 4 ) \ DB_VALUE_BUFFER( G14_ModemResponseTime, UI32, 4 ) \ DB_VALUE_BUFFER( G14_RadioPreambleRepeat, UI32, 4 ) \ DB_VALUE_BUFFER( G14_LanIPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( G14_LanSubnetMask, UI32, 4 ) \ DB_VALUE_BUFFER( G14_LanDefaultGateway, UI32, 4 ) \ DB_VALUE_BUFFER( G14_WlanKeyIndex, UI32, 4 ) \ DB_VALUE_BUFFER( G14_GPRSConnectionTimeout, UI32, 4 ) \ DB_VALUE_BUFFER( PMUIPAddrPDC, UI32, 4 ) \ DB_VALUE_BUFFER( PMUConfRev, UI32, 4 ) \ DB_VALUE_BUFFER( USBL_IPAddr, UI32, 4 ) \ DB_VALUE_BUFFER( FpgaSyncControllerDelay, UI32, 4 ) \ DB_VALUE_BUFFER( FpgaSyncSensorDelay, UI32, 4 ) \ DB_VALUE_BUFFER( CbfPhaseCurrent, UI32, 4 ) \ DB_VALUE_BUFFER( CbfEfCurrent, UI32, 4 ) \ DB_VALUE_BUFFER( CbfBackupTripTime, UI32, 4 ) \ DB_VALUE_BUFFER( CredentialOperRoleBitMap, UI32, 4 ) \ DB_VALUE_BUFFER( CntOps, UI16, 2 ) \ DB_VALUE_BUFFER( CntWearOsm, UI16, 2 ) \ DB_VALUE_BUFFER( CntOpsOc, UI16, 2 ) \ DB_VALUE_BUFFER( CntOpsEf, UI16, 2 ) \ DB_VALUE_BUFFER( CntOpsSef, UI16, 2 ) \ DB_VALUE_BUFFER( BattI, UI16, 2 ) \ DB_VALUE_BUFFER( BattU, UI16, 2 ) \ DB_VALUE_BUFFER( BattCap, UI16, 2 ) \ DB_VALUE_BUFFER( LcdCont, UI16, 2 ) \ DB_VALUE_BUFFER( CmsAuxPort, UI16, 2 ) \ DB_VALUE_BUFFER( PanelDelayedCloseTime, UI16, 2 ) \ DB_VALUE_BUFFER( CMS_PortNumber, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3IpTcpMasterPort, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3IpUdpSlavePort, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3IpUdpMasterPortInit, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3IpUdpMasterPort, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3PollWatchDogTime, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BPollWatchDogTime, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3BinaryControlWatchDogTime, UI16, 2 ) \ DB_VALUE_BUFFER( ScadaT10BBinaryControlWatchDogTime, UI16, 2 ) \ DB_VALUE_BUFFER( OscSimLoopCount, UI16, 2 ) \ DB_VALUE_BUFFER( MeasLoadProfTimer, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh1, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh2, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh3, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh4, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh5, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh6, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh7, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TrecCh8, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh1, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh2, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh3, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh4, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh5, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh6, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh7, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TrecCh8, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh1, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh2, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh3, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh4, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh5, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh6, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh7, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo1TresCh8, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh1, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh2, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh3, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh4, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh5, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh6, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh7, UI16, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2TresCh8, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCUa, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCUb, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCUc, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCUr, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCUs, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCUt, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCIa, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCIb, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCIc, UI16, 2 ) \ DB_VALUE_BUFFER( SwitchDefaultCoefCIn, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTaCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTbCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTcCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTnCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTTempCompCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCVTaCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCVTbCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCVTcCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCVTrCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCVTsCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCVTtCalCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimSIMDefaultCVTTempCompCoef, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTaCalCoefHi, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTbCalCoefHi, UI16, 2 ) \ DB_VALUE_BUFFER( CanSimDefaultSIMCTcCalCoefHi, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCUa, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCUb, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCUc, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCUr, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCUs, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCUt, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCIa, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCIb, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCIc, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCIaHi, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCIbHi, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCIcHi, UI16, 2 ) \ DB_VALUE_BUFFER( FpgaDefaultCoefCIn, UI16, 2 ) \ DB_VALUE_BUFFER( HrmLogTime, UI16, 2 ) \ DB_VALUE_BUFFER( ProtAngIb, UI16, 2 ) \ DB_VALUE_BUFFER( IEC61499PortNumber, UI16, 2 ) \ DB_VALUE_BUFFER( G1_Hrm_IndA_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G1_Hrm_IndB_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G1_Hrm_IndC_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G1_Hrm_IndD_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G1_Hrm_IndE_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G2_Hrm_IndA_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G2_Hrm_IndB_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G2_Hrm_IndC_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G2_Hrm_IndD_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G2_Hrm_IndE_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G3_Hrm_IndA_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G3_Hrm_IndB_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G3_Hrm_IndC_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G3_Hrm_IndD_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G3_Hrm_IndE_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G4_Hrm_IndA_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G4_Hrm_IndB_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G4_Hrm_IndC_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G4_Hrm_IndD_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( G4_Hrm_IndE_NameExt, UI16, 2 ) \ DB_VALUE_BUFFER( SNTPUpdateInterval, UI16, 2 ) \ DB_VALUE_BUFFER( SNTPRetryInterval, UI16, 2 ) \ DB_VALUE_BUFFER( PMUStationIDCode, UI16, 2 ) \ DB_VALUE_BUFFER( PMUOutputPort, UI16, 2 ) \ DB_VALUE_BUFFER( PMUControlPort, UI16, 2 ) \ DB_VALUE_BUFFER( PMUConfigVersion, UI16, 2 ) \ DB_VALUE_BUFFER( PMUVLANAppId, UI16, 2 ) \ DB_VALUE_BUFFER( PMUVLANVID, UI16, 2 ) \ DB_VALUE_BUFFER( PMUSmvOpts, UI16, 2 ) \ DB_VALUE_BUFFER( USBL_PortNumber, UI16, 2 ) \ DB_VALUE_BUFFER( PMU_IEEE_Stat, UI16, 2 ) \ DB_VALUE_BUFFER( HTTPServerPort, UI16, 2 ) \ DB_VALUE_BUFFER( TimeFmt, UI8, 1 ) \ DB_VALUE_BUFFER( DateFmt, UI8, 1 ) \ DB_VALUE_BUFFER( DEPRECATED_BattTest, UI8, 1 ) \ DB_VALUE_BUFFER( AuxSupply, UI8, 1 ) \ DB_VALUE_BUFFER( BattState, UI8, 1 ) \ DB_VALUE_BUFFER( OCCoilState, UI8, 1 ) \ DB_VALUE_BUFFER( RelayState, UI8, 1 ) \ DB_VALUE_BUFFER( ActCLM, UI8, 1 ) \ DB_VALUE_BUFFER( OsmOpCoilState, UI8, 1 ) \ DB_VALUE_BUFFER( DriverState, UI8, 1 ) \ DB_VALUE_BUFFER( NumProtGroups, UI8, 1 ) \ DB_VALUE_BUFFER( ActProtGroup, UI8, 1 ) \ DB_VALUE_BUFFER( BattTestAuto, UI8, 1 ) \ DB_VALUE_BUFFER( AvgPeriod, UI8, 1 ) \ DB_VALUE_BUFFER( ProtStepState, UI8, 1 ) \ DB_VALUE_BUFFER( USensing, UI8, 1 ) \ DB_VALUE_BUFFER( DoorState, UI8, 1 ) \ DB_VALUE_BUFFER( BtnOpen, UI8, 1 ) \ DB_VALUE_BUFFER( BtnRecl, UI8, 1 ) \ DB_VALUE_BUFFER( BtnEf, UI8, 1 ) \ DB_VALUE_BUFFER( BtnSef, UI8, 1 ) \ DB_VALUE_BUFFER( CmsHasCrc, UI8, 1 ) \ DB_VALUE_BUFFER( CmsAuxHasCrc, UI8, 1 ) \ DB_VALUE_BUFFER( ProtGlbFreqRated, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtEF, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtSEF, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtAR, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtCL, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtLL, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtActiveGroup, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtProtection, UI8, 1 ) \ DB_VALUE_BUFFER( PanelDelayedClose, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaTimeLocal, UI8, 1 ) \ DB_VALUE_BUFFER( USBDConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( USBEConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( USBFConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( Rs232Dte2ConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( DNP3_ModemDialOut, UI8, 1 ) \ DB_VALUE_BUFFER( CMS_ModemDialOut, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SstOcForward, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EftEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EftTripCount, UI8, 1 ) \ DB_VALUE_BUFFER( G1_EftTripWindow, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaHMIChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaHMIRemotePort, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaCMSLocalPort, UI8, 1 ) \ DB_VALUE_BUFFER( Io1OpMode, UI8, 1 ) \ DB_VALUE_BUFFER( Io2OpMode, UI8, 1 ) \ DB_VALUE_BUFFER( ReqSetExtLoad, UI8, 2 ) \ DB_VALUE_BUFFER( ScadaDnp3IpValidMasterAddr, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDnp3IpUdpMasterPortInRqst, UI8, 1 ) \ DB_VALUE_BUFFER( T101_ModemDialOut, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( SimRqOpen, UI8, 1 ) \ DB_VALUE_BUFFER( SimRqClose, UI8, 1 ) \ DB_VALUE_BUFFER( SimLockout, UI8, 1 ) \ DB_VALUE_BUFFER( CanSdoReadSucc, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SstOcForward, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EftEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EftTripCount, UI8, 1 ) \ DB_VALUE_BUFFER( G2_EftTripWindow, UI8, 1 ) \ DB_VALUE_BUFFER( UsbABCShutdownEnable, UI8, 1 ) \ DB_VALUE_BUFFER( ActLoSeqMode, UI8, 2 ) \ DB_VALUE_BUFFER( p2pCommEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SstOcForward, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EftEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EftTripCount, UI8, 1 ) \ DB_VALUE_BUFFER( G3_EftTripWindow, UI8, 1 ) \ DB_VALUE_BUFFER( p2pChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SstOcForward, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EftEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EftTripCount, UI8, 1 ) \ DB_VALUE_BUFFER( G4_EftTripWindow, UI8, 1 ) \ DB_VALUE_BUFFER( p2pCommCommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDNP3CommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaCMSCommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaHMICommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaT10BCommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( OscEnable, UI8, 1 ) \ DB_VALUE_BUFFER( OscCaptureTime, UI8, 1 ) \ DB_VALUE_BUFFER( OscCapturePrior, UI8, 1 ) \ DB_VALUE_BUFFER( OscOverwrite, UI8, 1 ) \ DB_VALUE_BUFFER( OscSaveToUSB, UI8, 1 ) \ DB_VALUE_BUFFER( OscEvent, UI8, 1 ) \ DB_VALUE_BUFFER( CmsPort, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingILocMode, UI8, 1 ) \ DB_VALUE_BUFFER( IoSettingIo1Mode, UI8, 2 ) \ DB_VALUE_BUFFER( IoSettingIo2Mode, UI8, 2 ) \ DB_VALUE_BUFFER( TestIo, UI8, 1 ) \ DB_VALUE_BUFFER( ProtOcDir, UI8, 1 ) \ DB_VALUE_BUFFER( ProtEfDir, UI8, 1 ) \ DB_VALUE_BUFFER( ProtSefDir, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaDNP3ChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaCMSChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( IoOpMode, UI8, 1 ) \ DB_VALUE_BUFFER( Rs232DteConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( USBAConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( USBBConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( USBCConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G1_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G1_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G1_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G1_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G1_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G1_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G1_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G2_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G2_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G2_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G2_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G2_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G2_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G2_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G3_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G3_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G3_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G3_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G3_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G3_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G3_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G4_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G4_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G4_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G4_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G4_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G4_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G4_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G5_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G5_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G5_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G5_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G5_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G5_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G5_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G5_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G5_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G5_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G5_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G5_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G5_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G5_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G6_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G6_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G6_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G6_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G6_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G6_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G6_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G6_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G6_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G6_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G6_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G6_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G6_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G6_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G7_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G7_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G7_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G7_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G7_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G7_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G7_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G7_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G7_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G7_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G7_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G7_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G7_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G7_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G8_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G8_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G8_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G8_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G8_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G8_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G8_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G8_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G8_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G8_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G8_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G8_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G8_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G8_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_VTHD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_ITDD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_Ind_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_IndA_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_IndB_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_IndC_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_IndD_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G1_Hrm_IndE_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_VTHD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_ITDD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_Ind_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_IndA_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_IndB_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_IndC_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_IndD_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G2_Hrm_IndE_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_VTHD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_ITDD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_Ind_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_IndA_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_IndB_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_IndC_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_IndD_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G3_Hrm_IndE_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_VTHD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_ITDD_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_Ind_Mode, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_IndA_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_IndB_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_IndC_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_IndD_Name, UI8, 1 ) \ DB_VALUE_BUFFER( G4_Hrm_IndE_Name, UI8, 1 ) \ DB_VALUE_BUFFER( StartupExtLoadConfirm, UI8, 1 ) \ DB_VALUE_BUFFER( InterruptMonitorEnable, UI8, 1 ) \ DB_VALUE_BUFFER( InterruptLogShortEnable, UI8, 1 ) \ DB_VALUE_BUFFER( SagMonitorEnable, UI8, 1 ) \ DB_VALUE_BUFFER( SwellMonitorEnable, UI8, 1 ) \ DB_VALUE_BUFFER( HrmLogEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( HrmLogTHDEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( HrmLogTDDEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( HrmLogIndivIEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( HrmLogIndivVEnabled, UI8, 1 ) \ DB_VALUE_BUFFER( OscSaveFormat, UI8, 1 ) \ DB_VALUE_BUFFER( PGEChannelPort, UI8, 1 ) \ DB_VALUE_BUFFER( PGECommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G11_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G11_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G11_ModemDialOut, UI8, 1 ) \ DB_VALUE_BUFFER( G11_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G11_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G11_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G11_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G11_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G11_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G11_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G11_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G11_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G11_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G11_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G11_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( LanConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( ProtNpsDir, UI8, 1 ) \ DB_VALUE_BUFFER( G1_LlbEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G1_SequenceAdvanceStep, UI8, 1 ) \ DB_VALUE_BUFFER( G1_UV3_SSTOnly, UI8, 1 ) \ DB_VALUE_BUFFER( G2_LlbEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G2_SequenceAdvanceStep, UI8, 1 ) \ DB_VALUE_BUFFER( G2_UV3_SSTOnly, UI8, 1 ) \ DB_VALUE_BUFFER( G3_LlbEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G3_SequenceAdvanceStep, UI8, 1 ) \ DB_VALUE_BUFFER( G3_UV3_SSTOnly, UI8, 1 ) \ DB_VALUE_BUFFER( G4_LlbEnable, UI8, 1 ) \ DB_VALUE_BUFFER( G4_SequenceAdvanceStep, UI8, 1 ) \ DB_VALUE_BUFFER( G4_UV3_SSTOnly, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtABR, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtACO, UI8, 1 ) \ DB_VALUE_BUFFER( PanelButtUV, UI8, 1 ) \ DB_VALUE_BUFFER( FastkeyConfigNum, UI8, 1 ) \ DB_VALUE_BUFFER( StackCheckEnable, UI8, 1 ) \ DB_VALUE_BUFFER( SimRqOpenB, UI8, 1 ) \ DB_VALUE_BUFFER( SimRqOpenC, UI8, 1 ) \ DB_VALUE_BUFFER( SimRqCloseB, UI8, 1 ) \ DB_VALUE_BUFFER( SimRqCloseC, UI8, 1 ) \ DB_VALUE_BUFFER( ProtStepStateB, UI8, 1 ) \ DB_VALUE_BUFFER( ProtStepStateC, UI8, 1 ) \ DB_VALUE_BUFFER( AlarmLatchMode, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499FBOOTStatus, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499AppsRunning, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499AppsFailed, UI8, 1 ) \ DB_VALUE_BUFFER( IEC61499FBOOTOper, UI8, 1 ) \ DB_VALUE_BUFFER( Gps_Enable, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G12_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G12_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G12_ModemDialOut, UI8, 1 ) \ DB_VALUE_BUFFER( G12_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G12_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G12_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G12_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G12_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G12_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G12_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G12_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G12_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G12_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G12_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G12_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G13_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G13_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G13_ModemDialOut, UI8, 1 ) \ DB_VALUE_BUFFER( G13_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G13_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G13_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G13_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G13_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G13_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G13_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G13_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G13_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G13_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G13_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G13_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( WlanAPNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( WlanAPDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( CmsSecurity, UI8, 1 ) \ DB_VALUE_BUFFER( G1_ROCOF_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_VVS_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_PDOP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G1_PDUP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_ROCOF_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_VVS_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_PDOP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G2_PDUP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_ROCOF_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_VVS_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_PDOP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G3_PDUP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_ROCOF_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_VVS_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_PDOP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( G4_PDUP_Trm, UI8, 1 ) \ DB_VALUE_BUFFER( s61850CommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( GPSCommsLogMaxSize, UI8, 1 ) \ DB_VALUE_BUFFER( SNTPEnable, UI8, 1 ) \ DB_VALUE_BUFFER( SNTPRetryAttempts, UI8, 1 ) \ DB_VALUE_BUFFER( TmSrc, UI8, 1 ) \ DB_VALUE_BUFFER( SNTPServerResponse, UI8, 1 ) \ DB_VALUE_BUFFER( CmdResetFaultLocation, UI8, 1 ) \ DB_VALUE_BUFFER( SNTPServIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( ScadaCMSIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( p2pRemoteIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( WlanAPSubnetPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDuplexType, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialRTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialRTSOnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDTRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDTROnLevel, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialParity, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialCTSMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDSRMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDCDMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialCollisionAvoidance, UI8, 1 ) \ DB_VALUE_BUFFER( G14_ModemPoweredFromExtLoad, UI8, 1 ) \ DB_VALUE_BUFFER( G14_ModemUsedWithLeasedLine, UI8, 1 ) \ DB_VALUE_BUFFER( G14_ModemDialOut, UI8, 1 ) \ DB_VALUE_BUFFER( G14_RadioPreamble, UI8, 1 ) \ DB_VALUE_BUFFER( G14_RadioPreambleChar, UI8, 1 ) \ DB_VALUE_BUFFER( G14_RadioPreambleLastChar, UI8, 1 ) \ DB_VALUE_BUFFER( G14_LanSpecifyIP, UI8, 1 ) \ DB_VALUE_BUFFER( G14_WlanNetworkAuthentication, UI8, 1 ) \ DB_VALUE_BUFFER( G14_WlanDataEncryption, UI8, 1 ) \ DB_VALUE_BUFFER( G14_PortLocalRemoteMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialDebugMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_GPRSBaudRate, UI8, 1 ) \ DB_VALUE_BUFFER( G14_GPRSUseModemSetting, UI8, 1 ) \ DB_VALUE_BUFFER( G14_SerialFlowControlMode, UI8, 1 ) \ DB_VALUE_BUFFER( G14_LanSpecifyIPv6, UI8, 1 ) \ DB_VALUE_BUFFER( G14_LanPrefixLength, UI8, 1 ) \ DB_VALUE_BUFFER( G14_LanIpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( LanBConfigType, UI8, 1 ) \ DB_VALUE_BUFFER( SwgUseCalibratedValue, UI8, 1 ) \ DB_VALUE_BUFFER( SimUseCalibratedValue, UI8, 1 ) \ DB_VALUE_BUFFER( RelayUseCalibratedValue, UI8, 1 ) \ DB_VALUE_BUFFER( EnableCalibration, UI8, 1 ) \ DB_VALUE_BUFFER( UpdateFPGACalib, UI8, 1 ) \ DB_VALUE_BUFFER( PMUNominalFrequency, UI8, 1 ) \ DB_VALUE_BUFFER( PMUMessageRate, UI8, 1 ) \ DB_VALUE_BUFFER( PMUPerfClass, UI8, 1 ) \ DB_VALUE_BUFFER( PMURequireCIDConfig, UI8, 1 ) \ DB_VALUE_BUFFER( PMUCommsPort, UI8, 1 ) \ DB_VALUE_BUFFER( PMUIPVersion, UI8, 1 ) \ DB_VALUE_BUFFER( PMUVLANPriority, UI8, 1 ) \ DB_VALUE_BUFFER( PMUNumberOfASDU, UI8, 1 ) \ DB_VALUE_BUFFER( PMUQuality, UI8, 1 ) \ DB_VALUE_BUFFER( PMUStatus, UI8, 1 ) \ DB_VALUE_BUFFER( USBL_IpVersion, UI8, 1 ) \ DB_VALUE_BUFFER( CbfBackupTripMode, UI8, 1 ) \ DB_VALUE_BUFFER( CbfCurrentCheckMode, UI8, 1 ) \ DB_VALUE_BUFFER( CbfFailBackupTrip, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWPriority0, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWPriority1, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWPriority2, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWPriority3, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWStatus0, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWStatus1, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWStatus2, UI8, 1 ) \ DB_VALUE_BUFFER( DefGWStatus3, UI8, 1 ) \ DB_VALUE_BUFFER( UseCentralCredentialServer, UI8, 1 ) \ DB_VALUE_BUFFER( UserCredentialOperMode, UI8, 1 ) \ DB_VALUE_BUFFER( SaveUserCredentialOper, UI8, 1 ) \ DB_VALUE_BUFFER( UserAccessState, UI8, 1 ) \ DB_VALUE_BUFFER( GPRSDialingAPN, UI8, 1 ) \ DB_VALUE_BUFFER( SigCtrlHltOn, UI32, 11 ) \ DB_VALUE_BUFFER( PwdSettings, UI32, 7 ) \ DB_VALUE_BUFFER( PwdConnect, UI32, 7 ) \ DB_VALUE_BUFFER( SigCtrlBlockCloseOn, UI32, 11 ) \ DB_VALUE_BUFFER( CmsVer, UI32, 10 ) \ DB_VALUE_BUFFER( LogEventDir, UI32, 100 ) \ DB_VALUE_BUFFER( LogCloseOpenDir, UI32, 100 ) \ DB_VALUE_BUFFER( LogLoadProfDir, UI32, 100 ) \ DB_VALUE_BUFFER( LogFaultProfDir, UI32, 100 ) \ DB_VALUE_BUFFER( LogChangeDir, UI32, 100 ) \ DB_VALUE_BUFFER( SysSettingDir, UI32, 100 ) \ DB_VALUE_BUFFER( DNP3_ModemPreDialString, UI32, 41 ) \ DB_VALUE_BUFFER( CMS_ModemPreDialString, UI32, 41 ) \ DB_VALUE_BUFFER( DNP3_ModemDialNumber1, UI32, 41 ) \ DB_VALUE_BUFFER( DNP3_ModemDialNumber2, UI32, 41 ) \ DB_VALUE_BUFFER( DNP3_ModemDialNumber3, UI32, 41 ) \ DB_VALUE_BUFFER( DNP3_ModemDialNumber4, UI32, 41 ) \ DB_VALUE_BUFFER( DNP3_ModemDialNumber5, UI32, 41 ) \ DB_VALUE_BUFFER( CMS_ModemDialNumber1, UI32, 41 ) \ DB_VALUE_BUFFER( CMS_ModemDialNumber2, UI32, 41 ) \ DB_VALUE_BUFFER( CMS_ModemDialNumber3, UI32, 41 ) \ DB_VALUE_BUFFER( CMS_ModemDialNumber4, UI32, 41 ) \ DB_VALUE_BUFFER( CMS_ModemDialNumber5, UI32, 41 ) \ DB_VALUE_BUFFER( T101_ModemPreDialString, UI32, 41 ) \ DB_VALUE_BUFFER( T101_ModemDialNumber1, UI32, 41 ) \ DB_VALUE_BUFFER( T101_ModemDialNumber2, UI32, 41 ) \ DB_VALUE_BUFFER( T101_ModemDialNumber3, UI32, 41 ) \ DB_VALUE_BUFFER( T101_ModemDialNumber4, UI32, 41 ) \ DB_VALUE_BUFFER( T101_ModemDialNumber5, UI32, 41 ) \ DB_VALUE_BUFFER( CanSdoReadReq, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlLoSeq2On, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlLoSeq3On, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlSSMOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlFTDisOn, UI32, 11 ) \ DB_VALUE_BUFFER( ScadaDnp3WatchDogControl, UI32, 10 ) \ DB_VALUE_BUFFER( ScadaT10BWatchDogControl, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlLinkHltToLl, UI32, 11 ) \ DB_VALUE_BUFFER( OscSimFilename, UI32, 100 ) \ DB_VALUE_BUFFER( OscTraceDir, UI32, 100 ) \ DB_VALUE_BUFFER( SigCtrlProtOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlGroup1On, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlGroup2On, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlGroup3On, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlGroup4On, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlEFOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlSEFOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlUVOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlUFOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlOVOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlOFOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlCLPOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlLLOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlAROn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlMNTOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlABROn, UI32, 11 ) \ DB_VALUE_BUFFER( MeasLoadProfDef, UI32, 202 ) \ DB_VALUE_BUFFER( seqSimulatorFname, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrLoc1, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrLoc2, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrLoc3, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In1, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In2, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In3, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In4, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In5, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In6, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In7, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1In8, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out1, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out2, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out3, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out4, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out5, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out6, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out7, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo1Out8, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In1, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In2, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In3, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In4, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In5, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In6, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In7, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2In8, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out1, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out2, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out3, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out4, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out5, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out6, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out7, UI32, 41 ) \ DB_VALUE_BUFFER( IoSettingRpnStrIo2Out8, UI32, 41 ) \ DB_VALUE_BUFFER( G1_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G1_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G1_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G1_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G1_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G1_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G1_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G1_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G1_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G1_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G1_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G1_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( G2_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G2_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G2_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G2_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G2_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G2_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G2_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G2_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G2_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G2_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G2_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G2_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( G3_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G3_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G3_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G3_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G3_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G3_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G3_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G3_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G3_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G3_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G3_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G3_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( G4_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G4_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G4_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G4_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G4_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G4_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G4_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G4_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G4_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G4_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G4_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G4_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( SigCtrlLocalOn, UI32, 11 ) \ DB_VALUE_BUFFER( G5_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G5_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G5_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G5_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G5_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G5_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G5_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G5_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G5_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G5_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G5_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G5_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G5_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( G6_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G6_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G6_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G6_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G6_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G6_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G6_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G6_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G6_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G6_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G6_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G6_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G6_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( G7_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G7_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G7_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G7_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G7_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G7_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G7_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G7_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G7_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G7_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G7_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G7_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G7_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( G8_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G8_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G8_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G8_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G8_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G8_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G8_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G8_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G8_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G8_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G8_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G8_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G8_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( SigCtrlHRMOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlBlockProtOpenOn, UI32, 11 ) \ DB_VALUE_BUFFER( InterruptShortABCTotDuration, UI32, 8 ) \ DB_VALUE_BUFFER( InterruptShortRSTTotDuration, UI32, 8 ) \ DB_VALUE_BUFFER( InterruptLongABCTotDuration, UI32, 8 ) \ DB_VALUE_BUFFER( InterruptLongRSTTotDuration, UI32, 8 ) \ DB_VALUE_BUFFER( SagABCLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( SagRSTLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( SwellABCLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( SwellRSTLastDuration, UI32, 8 ) \ DB_VALUE_BUFFER( LogInterruptDir, UI32, 100 ) \ DB_VALUE_BUFFER( LogSagSwellDir, UI32, 100 ) \ DB_VALUE_BUFFER( LogHrmDir, UI32, 100 ) \ DB_VALUE_BUFFER( G11_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemPreDialString, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemDialNumber1, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemDialNumber2, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemDialNumber3, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemDialNumber4, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemDialNumber5, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G11_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G11_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G11_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G11_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G11_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G11_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G11_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G11_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G11_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( SigCtrlNPSOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlUV4On, UI32, 11 ) \ DB_VALUE_BUFFER( SigBatteryTestAutoOn, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlLLBOn, UI32, 11 ) \ DB_VALUE_BUFFER( AlarmMode, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlSectionaliserOn, UI32, 10 ) \ DB_VALUE_BUFFER( SigCtrlInhibitMultiPhaseClosesOn, UI32, 10 ) \ DB_VALUE_BUFFER( G12_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemPreDialString, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemDialNumber1, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemDialNumber2, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemDialNumber3, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemDialNumber4, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemDialNumber5, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G12_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G12_WlanNetworkSSID, UI32, 33 ) \ DB_VALUE_BUFFER( G12_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G12_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G12_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G12_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G12_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G12_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G12_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( G13_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemPreDialString, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemDialNumber1, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemDialNumber2, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemDialNumber3, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemDialNumber4, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemDialNumber5, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G13_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G13_WlanNetworkSSID, UI32, 41 ) \ DB_VALUE_BUFFER( G13_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G13_GPRSServiceProvider, UI32, 33 ) \ DB_VALUE_BUFFER( G13_GPRSUserName, UI32, 33 ) \ DB_VALUE_BUFFER( G13_GPRSPassWord, UI32, 33 ) \ DB_VALUE_BUFFER( G13_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G13_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G13_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( WlanAPNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( SigCtrlOV3On, UI32, 11 ) \ DB_VALUE_BUFFER( SNTPSyncStatus, UI32, 10 ) \ DB_VALUE_BUFFER( SNTP1Error, UI32, 10 ) \ DB_VALUE_BUFFER( SNTP2Error, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCReset, UI32, 10 ) \ DB_VALUE_BUFFER( SigUSBOCMalfunction, UI32, 11 ) \ DB_VALUE_BUFFER( SNTPServIpv6Addr1, UI32, 16 ) \ DB_VALUE_BUFFER( SNTPServIpv6Addr2, UI32, 16 ) \ DB_VALUE_BUFFER( p2pRemoteLanIpv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( SNTP1v6Error, UI32, 10 ) \ DB_VALUE_BUFFER( SNTP2v6Error, UI32, 10 ) \ DB_VALUE_BUFFER( SigACOOpModeEqualOn, UI32, 10 ) \ DB_VALUE_BUFFER( SigACOOpModeMainOn, UI32, 10 ) \ DB_VALUE_BUFFER( SigACOOpModeAltOn, UI32, 10 ) \ DB_VALUE_BUFFER( G14_ModemInitString, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemPreDialString, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemDialNumber1, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemDialNumber2, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemDialNumber3, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemDialNumber4, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemDialNumber5, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemHangUpCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemOffHookCommand, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemAutoAnswerOn, UI32, 41 ) \ DB_VALUE_BUFFER( G14_ModemAutoAnswerOff, UI32, 41 ) \ DB_VALUE_BUFFER( G14_WlanNetworkSSID, UI32, 32 ) \ DB_VALUE_BUFFER( G14_WlanNetworkKey, UI32, 41 ) \ DB_VALUE_BUFFER( G14_GPRSServiceProvider, UI32, 41 ) \ DB_VALUE_BUFFER( G14_GPRSUserName, UI32, 41 ) \ DB_VALUE_BUFFER( G14_GPRSPassWord, UI32, 41 ) \ DB_VALUE_BUFFER( G14_SerialDebugFileName, UI32, 41 ) \ DB_VALUE_BUFFER( G14_LanIPv6Addr, UI32, 16 ) \ DB_VALUE_BUFFER( G14_LanIPv6DefaultGateway, UI32, 16 ) \ DB_VALUE_BUFFER( SigCtrlROCOFOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlVVSOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlPMUOn, UI32, 10 ) \ DB_VALUE_BUFFER( PMUStationName, UI32, 17 ) \ DB_VALUE_BUFFER( PMUDataSetDef, UI32, 3072 ) \ DB_VALUE_BUFFER( PMUIP6AddrPDC, UI32, 16 ) \ DB_VALUE_BUFFER( PMUMACAddrPDC, UI32, 13 ) \ DB_VALUE_BUFFER( SigRTCTimeNotSync, UI32, 10 ) \ DB_VALUE_BUFFER( USBL_IPAddrV6, UI32, 16 ) \ DB_VALUE_BUFFER( SigCorruptedPartition, UI32, 10 ) \ DB_VALUE_BUFFER( SigRLM20UpgradeFailure, UI32, 10 ) \ DB_VALUE_BUFFER( SigUbootConsoleActive, UI32, 10 ) \ DB_VALUE_BUFFER( SigRlm20nor2backupReqd, UI32, 10 ) \ DB_VALUE_BUFFER( SigGpsEnable, UI32, 10 ) \ DB_VALUE_BUFFER( SigWlanEnable, UI32, 10 ) \ DB_VALUE_BUFFER( SigMobileNetworkEnable, UI32, 10 ) \ DB_VALUE_BUFFER( CanSimSetTimeStamp, UI32, 9 ) \ DB_VALUE_BUFFER( SigPickupCbfDefault, UI32, 10 ) \ DB_VALUE_BUFFER( SigCBFMalfCurrent, UI32, 10 ) \ DB_VALUE_BUFFER( CredentialOperName, UI32, 64 ) \ DB_VALUE_BUFFER( CredentialOperFirstPassword, UI32, 64 ) \ DB_VALUE_BUFFER( CredentialOperSecondPassword, UI32, 64 ) \ DB_VALUE_BUFFER( SigCtrlPDOPOn, UI32, 11 ) \ DB_VALUE_BUFFER( SigCtrlPDUPOn, UI32, 10 ) \ DB_VALUE_BUFFER( GPRSServiceProvider2, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSServiceProvider3, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSServiceProvider4, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSServiceProvider5, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSServiceProvider6, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSServiceProvider7, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSServiceProvider8, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSUserName2, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSUserName3, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSUserName4, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSUserName5, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSUserName6, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSUserName7, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSUserName8, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSPassWord2, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSPassWord3, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSPassWord4, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSPassWord5, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSPassWord6, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSPassWord7, UI32, 33 ) \ DB_VALUE_BUFFER( GPRSPassWord8, UI32, 33 ) \ DB_VALUE_BUFFER( SigPMURetransmitEnable, UI32, 10 ) \ DB_VALUE_BUFFER( SigPMURetransmitLogEnable, UI32, 10 ) \ /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBSCHEMABUFFERS_H_ <file_sep>[![Travis Build Status](https://travis-ci.org/warmcat/libwebsockets.svg)](https://travis-ci.org/warmcat/libwebsockets) [![Appveyor Build status](https://ci.appveyor.com/api/projects/status/qfasji8mnfnd2r8t?svg=true)](https://ci.appveyor.com/project/lws-team/libwebsockets) [![Coverity Scan Build Status](https://scan.coverity.com/projects/3576/badge.svg)](https://scan.coverity.com/projects/3576) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/2266/badge)](https://bestpractices.coreinfrastructure.org/projects/2266) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/144fb195a83046e484a75c8b4c6cfc99)](https://www.codacy.com/app/lws-team/libwebsockets?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=warmcat/libwebsockets&amp;utm_campaign=Badge_Grade) [![Total alerts](https://img.shields.io/lgtm/alerts/g/warmcat/libwebsockets.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/warmcat/libwebsockets/alerts/) [![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/warmcat/libwebsockets.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/warmcat/libwebsockets/context:cpp) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/warmcat/libwebsockets.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/warmcat/libwebsockets/context:javascript) # Libwebsockets Libwebsockets is a simple-to-use, pure C library providing client and server for **http/1**, **http/2**, **websockets**, **MQTT** and other protocols in a security-minded, lightweight, configurable, scalable and flexible way. It's easy to build and cross-build via cmake and is suitable for tasks from embedded RTOS through mass cloud serving. [80 independent minimal examples](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples) for various scenarios, CC0-licensed (public domain) for cut-and-paste, allow you to get started quickly. ![overview](./doc-assets/lws-overview.png) News ---- ## v4.0 is released Users wanting a stable branch should follow v4.0-stable to get the most stable version at any given time. See the [changelog](https://libwebsockets.org/git/libwebsockets/tree/changelog) for information on the huge amount of new features in this release, and additional information below. ``` - NEW: Lws is now under the MIT license, see ./LICENSE for details - NEW: GLIB native event loop support, lws + gtk example - NEW: native lws MQTT client... supports client stream binding like h2 when multiple logical connections are going to the same endpoint over MQTT, they transparently and independently share the one connection + tls tunnel - NEW: "Secure Streams"... if you are making a device with client connections to the internet or cloud, this allows separation of the communications policy (endpoints, tls cert validation, protocols, etc) from the code, with the goal you can combine streams, change protocols and cloud provision, and reflect that in the device's JSON policy document without having to change any code. - NEW: lws_system: New lightweight and efficient Asynchronous DNS resolver implementation for both A and AAAA records, supports recursive (without recursion in code) lookups, caching, and getaddrinfo() compatible results scheme (from cache directly without per-consumer allocation). Able to perform DNS lookups without introducing latency in the event loop. - NEW: lws_system: ntpclient implementation with interface for setting system time via lws_system ops - NEW: lws_system: dhcpclient implementation - NEW: Connection validity tracking, autoproduce PING/PONG for protocols that support it if not informed that the connection has passed data in both directions recently enough - NEW: lws_retry: standardized exponential backoff and retry timing based around backoff table and lws_sul - NEW: there are official public helpers for unaligned de/serialization of all common types, see eh, lws_ser_wu16be() in include/libwebsockets/lws-misc.h - NEW: lws_tls_client_vhost_extra_cert_mem() api allows attaching extra certs to a client vhost from DER in memory - NEW: lws_system: generic blobs support passing auth tokens, per-connection client certs etc from platform into lws - NEW: public helpers to consume and produce ipv4/6 addresses in a clean way, along with lws_sockaddr46 type now public. See eg, lws_sockaddr46-based lws_sa46_parse_numeric_address(), lws_write_numeric_address() in include/libwebsockets/lws-network-helper.h - Improved client redirect handling, h2 compatibility - NEW: lwsac: additional features for constant folding support (strings that already are in the lwsac can be pointed to without copying again), backfill (look for gaps in previous chunks that could take a new use size), and lwsac_extend() so last use() can attempt to use more unallocated chunk space - NEW: lws_humanize: apis for reporting scalar quanties like 1234 as "1.234KB" with the scaled symbol strings passed in by caller - NEW: freertos: support lws_cancel_service() by using UDP pair bound to lo, since it doesn't have logical pipes - NEW: "esp32" plat, which implemented freertos plat compatibility on esp32, is renamed to "freertos" plat, targeting esp32 and other freertos platforms - NEW: base64 has an additional api supporting stateful decode, where the input is not all in the same place at the same time and can be processed incrementally - NEW: lws ws proxy: support RFC8441 - NEW: lws_spawn_piped apis: generic support for vforking a process with child wsis attached to its stdin, stdout and stderr via pipes. When processes are reaped, a specified callback is triggered. Currently Linux + OSX. - NEW: lws_fsmount apis: Linux-only overlayfs mount and unmount management for aggregating read-only layers with disposable, changeable upper layer fs - Improvements for RTOS / small build case bring the footprint of lws v4 below that of v3.1 on ARM - lws_tokenize: flag specifying # should mark rest of line as comment - NEW: minimal example for integrating libasound / alsa via raw file - lws_struct: sqlite and json / lejp translation now usable ``` ## Introducing Secure Streams client support Secure Streams is an optional layer above lws (`-DLWS_WITH_SECURE_STREAMS=1`) that separates connectivity policy into a JSON document, which can be part of the firmware or fetched at boot time. Code no longer deals with details like endpoint specification or tls cert stack used to validate the remote server, it's all specified in JSON, eg, see [this example](https://warmcat.com/policy/minimal-proxy.json). Even the protocol to use to talk to the server, between h1, h2, ws or MQTT, is specified in the policy JSON and the code itself just deals with payloads and optionally metadata, making it possible to switch endpoints, update certs and even switch communication protocols by just editing the JSON policy and leaving the code alone. Logical Secure Stream connections outlive any underlying lws connection, and support "nailed-up" connection reacquisition and exponential backoff management. See [./lib/secure-streams/README.md](https://libwebsockets.org/git/libwebsockets/tree/lib/secure-streams/README.md) and the related minimal examples for more details. ## mqtt client support If you enable `-DLWS_ROLE_MQTT=1`, lws can now support QoS0 and QoS1 MQTT client connections. See the examples at ./minimal-examples/mqtt-client ## libglib native event loop support glib's event loop joins libuv, libevent and libev support in lws for both the `lws_context` creating and owning the loop object for its lifetime, and for an already-existing "foreign loop" where the `lws_context` is created, attaches, detaches, and is destroyed without affecting the loop. This allows direct, lock-free integration of lws functionality with, eg, a GTK app's existing `GMainLoop` / glib `g_main_loop`. Just select `-DLWS_WITH_GLIB=1` at cmake time to enable. The -eventlib minimal examples also support --glib option to select using the glib loop at runtime. There's also a gtk example that is built if lws cmake has `-DLWS_WITH_GTK=1`. ## `lws_system` helper for attaching code to a single event loop from another thread `lws_system` ops struct now has a member that enables other threads (in the same process) to request a callback they define from the lws event loop thread context as soon as possible. From here, in the event loop thread context, they can set up their lws functionality before returning and letting it operate wholly from the lws event loop. The original thread calling the api to request the callback returns immediately. ## Improvements on tx credit H2 clients and servers can now modulate RX flow control on streams precisely, ie, define the size of the first incoming data and hand out more tx credit at timing of its choosing to throttle or completely quench the remote server sending as it likes. The only RFC-compatible way to acheive this is set the initial tx credit to 0 and set it explicitly when sending the headers... client code can elect to do this rather than automatically manage the credit by setting a new flag LCCSCF_H2_MANUAL_RXFLOW and indicating the initial tx credit for that stream in client connection info member manual_initial_tx_credit. A new public api lws_wsi_tx_credit() allows dynamic get and add to local and estimated remote peer credit for a connection. This api can be used without knowing if the underlying connection is h2 or not. ## `lws_system`: DHCP client DHCP client is now another network service that can be integrated into lws, with `LWS_WITH_SYS_DHCP_CLIENT` at CMake. When enabled, the `lws_system` state is held at `DHCP` until at least one registered network interface acquires a usable set of DHCP information including ip, subnet mask, router / gateway address and at least one DNS server. See the [api-test-dhcp](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-tests/api-test-dhcpc) Minimal Example for how to use. ## UDP integration with `lws_retry` UDP support in lws has new helper that allow `lws_retry` to be applied for retry, and the ability to synthesize rx and tx udp packetloss systemwide to confirm retry strategies. Since multiple transactions may be in flight on one UDP socket, the support relies on an `lws_sul` in the transaction object to manage the transaction retries individually. See `READMEs/README.udp.md` for details. ## `lws_system`: system state and notification handlers Lws now has the concept of systemwide state held in the context... this is to manage that there may be multiple steps that need the network before it's possible for the user code to operate normally. The steps defined are `CONTEXT_CREATED`, `INITIALIZED`, `IFACE_COLDPLUG`, `DHCP`, `TIME_VALID`, `POLICY_VALID`, `REGISTERED`, `AUTH1`, `AUTH2`, `OPERATIONAL` and `POLICY_INVALID`. OPERATIONAL is the state where user code can run normally. User and other parts of lws can hook notifier callbacks to receive and be able to veto system state changes, either definitively or because they have been triggered to perform a step asynchronously and will move the state on themselves when it completes. By default just after context creation, lws attempts to move straight to OPERATIONAL. If no notifier interecepts it, it will succeed to do that and operate in a backwards-compatible way. Enabling various features like lws ntpclient also enable notifiers that hold progress at the related state until their operation completes successfully, eg, not able to enter `TIME_VALID` until ntpclient has the time. See `READMEs/README.lws_system.md` for details. ## `lws_system`: HAL ops struct Lws allows you to define a standardized ops struct at context creation time so your user code can get various information like device serial number without embedding system-specific code throughout the user code. It can also perform some generic functions like requesting a device reboot. See `READMEs/README.lws_system.md` for details. ## `lws_system`: ntpclient Optional lws system service enabled by cmake `-DLWS_WITH_SYS_NTPCLIENT` intercepts the `lws_system` `TIME_VALID` state and performs ntpclient to get the date and time before entering `TIME_VALID`. This allows user code to validate tls certificates correctly knowing the current date and time by the time it reached OPERATIONAL. ## Connection Validity tracking Lws now allows you to apply a policy for how long a network connection may go without seeing something on it that confirms it's still valid in the sense of passing traffic cohernetly both ways. There's a global policy in the context which defaults to 5m before it produces a PING if possible, and 5m10 before the connection will be hung up, user code can override this in the context, vhost (for server) and client connection info (for client). An api `lws_validity_confirmed(wsi)` is provided so user code can indicate that it observed traffic that must mean the connection is passing traffic in both directions to and from the peer. In the absence of these confirmations lws will generate PINGs and take PONGs as the indication of validity. ## `lws_system`: Async DNS support Master now provides optional Asynchronous (ie, nonblocking) recursive DNS resolving. Enable with `-DLWS_WITH_SYS_ASYNC_DNS=1` at cmake. This provides a quite sophisticated ipv4 + ipv6 capable resolver that autodetects the dns server on several platforms and operates a UDP socket to its port 53 to produce and parse DNS packets from the event loop. And of course, it's extremely compact. It broadly follows the getaddrinfo style api, but instead of creating the results on the heap for each caller, it caches a single result according to the TTL and then provides refcounted const pointers to the cached result to callers. While there are references on the cached result it can't be reaped. See `READMEs/README.async-dns.md` for detailed information on how it works, along with `api-tests/api-test-async-dns` minimal example. ## Detailed Latency You can now opt to measure and store us-resolution statistics on effective latencies for client operations, and easily spool them to a file in a format suitable for gnuplot, or handle in your own callback. Enable `-DLWS_WITH_DETAILED_LATENCY=1` in cmake to build it into lws. If you are concerned about operation latency or potential blocking from user code, or behaviour under load, or latency variability on specific platforms, you can get real numbers on your platform using this. Timings for all aspects of events on connections are recorded, including the time needed for name resolution, setting up the connection, tls negotiation on both client and server sides, and each read and write. See `READMEs/README.detailed-latency.md` for how to use it. ## Client connection logic rewrite Lws master now makes much better use of the DNS results for ipv4 and ipv6... it will iterate through them automatically making the best use it can of what's provided and attempting new connections for each potentially usable one in turn before giving up on the whole client connection attempt. If ipv6 is disabled at cmake it can only use A / ipv4 records, but if ipv6 is enabled, it tries both; if only ipv6 is enabled it promotes ipv4 to ::ffff:1.2.3.4 IPv4-in-IPv6 addresses. ## New network helpers for ipv4 and ipv6 An internal union `lws_sockaddr46` that combines `struct sockaddr_in` and `struct sockaddr_in6` is now public, and there are helpers that can parse (using `lws_tokenize`) any valid numeric representation for ipv4 and ipv6 either into byte arrays and lengths, or directly to and from `lws_sockaddr46`. ## h2 long poll support Lws now supports the convention that half-closing an h2 http stream may make the stream 'immortal', in terms of not being bound by normal timeouts. For the client side, there's an api that can be applied to the client stream to make it transition to this "read-only" long poll mode. See `READMEs/README.h2-long-poll.md` for full details, including how to test it with the minimal examples. ## h1 client parser improvements H1 is not so simple to parse because the header length is not known until it has been fully parsed. The next header, or http body may be directly coalesced with the header as well. Lws has supported bulk h1 parsing from a buffer for a long time, but on clientside due to interactions with http proxying it had been stuck parsing the header bytewise out of the tls buffer. In master, everything now bulk parses from a buffer and uses a buflist to pass leftovers through the event loop cleanly. ## `lws_sul` time refactor Just before v3.2 there was a big refactor about how lws handles time. It now explicitly schedules anything that may happen in the future on a single, sorted linked-list, at us resolution. When entering a poll wait (or returning to an event lib loop) it checks the interval between now and the earliest event on the list to figure out how long to wait if there are no network events. For the event loop case, it sets a native event lib timer to enforce it. See `READMEs/README.lws_sul.md` for more details and a handy api where you can schedule your own arbitrary callbacks using this system. ## Master is now MIT-licensed Libwebsockets master is now under the MIT license. See ./LICENSE. ## Support This is the libwebsockets C library for lightweight websocket clients and servers. For support, visit https://libwebsockets.org and consider joining the project mailing list at https://libwebsockets.org/mailman/listinfo/libwebsockets You can get the latest version of the library from git: - https://libwebsockets.org/git Doxygen API docs for master: https://libwebsockets.org/lws-api-doc-master/html/index.html <file_sep># lws minimal ws server raw vhost This demonstrates setting up a vhost to listen and accept raw sockets. Raw sockets are just sockets... lws does not send anything on them or interpret by itself what it receives on them. So you can implement arbitrary tcp protocols using them. This isn't very useful standalone as shown here for clarity, but you can freely combine a raw socket vhost with other lws server and client features and other vhosts handling http or ws. Becuase raw socket events have their own callback reasons, the handlers can be integrated in a single protocol that also handles http and ws server and client callbacks without conflict. ## build ``` $ cmake . && make ``` ## usage -s means listen using tls ``` $ ./lws-minimal-raw-vhost [2018/03/22 14:49:47:9516] USER: LWS minimal raw vhost [2018/03/22 14:49:47:9673] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/03/22 14:49:52:3789] USER: LWS_CALLBACK_RAW_ADOPT [2018/03/22 14:49:57:4271] USER: LWS_CALLBACK_RAW_CLOSE ``` ``` $ nc localhost 7681 hello hello ``` Connect one or more sessions to the server using netcat... lines you type into netcat are sent to the server, which echos them to all connected clients. <file_sep>These are buildable test apps that run in CI to confirm correct api operation. |name|tests| ---|--- api-test-lwsac|LWS Allocated Chunks api api-test-lws_struct-json|Selftests for lws_struct JSON serialization and deserialization api-test-lws_tokenize|Generic secure string tokenizer api api-test-fts|LWS Full-text Search api api-test-gencrypto|LWS Generic Crypto apis api-test-jose|LWS JOSE apis api-test-smtp_client|SMTP client for sending emails <file_sep>#!/bin/bash if [ "$COVERITY_SCAN_BRANCH" == 1 ]; then exit; fi if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq if [ "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; then sudo apt-get install -y -qq realpath libjemalloc1 libev4 libuv-dev libdbus-1-dev valgrind mosquitto sudo apt-get remove python-six sudo pip install "six>=1.9" sudo pip install "Twisted==16.0.0" sudo pip install "pyopenssl>=0.14" sudo pip install autobahntestsuite wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2 cd / sudo tar xf /tmp/openssl.tar.bz2 sudo ldconfig sudo update-ca-certificates fi if [ "$LWS_METHOD" == "mbedtls" -o "$LWS_METHOD" == "ss+mbedtls" ]; then sudo apt-get install -y -qq realpath libjemalloc1 libev4 libuv-dev valgrind wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2 cd / sudo tar xf /tmp/openssl.tar.bz2 sudo ldconfig sudo update-ca-certificates fi if [ "$LWS_METHOD" == "smp" ]; then sudo apt-get install -y -qq realpath libjemalloc1 libev4 wget https://libwebsockets.org/openssl-1.1.0-trusty.tar.bz2 -O/tmp/openssl.tar.bz2 cd / sudo tar xf /tmp/openssl.tar.bz2 sudo ldconfig sudo update-ca-certificates fi if [ "$LWS_METHOD" == "libev" ]; then sudo apt-get install -y -qq libev-dev; fi if [ "$LWS_METHOD" == "libuv" -o "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; then sudo apt-get install -y -qq libuv-dev; #libuv1 libuv1-dev; fi fi if [ "$TRAVIS_OS_NAME" == "osx" ]; then if [ "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; then brew update; brew install dbus; fi if [ "$LWS_METHOD" == "libev" ]; then brew update; brew install libev; fi if [ "$LWS_METHOD" == "libuv" -o "$LWS_METHOD" == "lwsws" -o "$LWS_METHOD" == "lwsws2" ]; then brew update; brew install libuv; fi fi <file_sep>SEED vector creation ===================== This page documents the code that was used to generate the SEED CFB and OFB test vectors as well as the code used to verify them against another implementation. The vectors were generated using OpenSSL and verified with `Botan`_. Creation -------- ``cryptography`` was modified to support SEED in CFB and OFB modes. Then the following python script was run to generate the vector files. .. literalinclude:: /development/custom-vectors/seed/generate_seed.py Download link: :download:`generate_seed.py </development/custom-vectors/seed/generate_seed.py>` Verification ------------ The following Python code was used to verify the vectors using the `Botan`_ project's Python bindings. .. literalinclude:: /development/custom-vectors/seed/verify_seed.py Download link: :download:`verify_seed.py </development/custom-vectors/seed/verify_seed.py>` .. _`Botan`: https://botan.randombit.net <file_sep># lws detailed latency ![lws detailed latency example plot](../doc-assets/lws-detailed-latency-example.png) ## Introduction lws has the capability to make detailed latency measurements and report them in realtime to a specified callback. A default callback is provided that renders the data as text in space-separated format suitable for gnuplot, to a specified file. ## Configuring Enable `LWS_WITH_DETAILED_LATENCY` at cmake. Create your context with something similar to this ``` #if defined(LWS_WITH_DETAILED_LATENCY) info.detailed_latency_cb = lws_det_lat_plot_cb; info.detailed_latency_filepath = "/tmp/lws-latency-results"; #endif ``` `lws_det_lat_plot_cb` is provided by lws as a convenience to convert the stuct data provided at the callback interface to space-separated text data that is easy to process with shell commands and gnuplot. ## `lws_det_lat_plot_cb` format ``` 728239173547 N 23062 0 0 23062 0 0 0 728239192554 C 18879 0 0 18879 0 0 0 728239217894 T 25309 0 0 25309 0 0 0 728239234998 r 0 0 0 0 271 172 256 728239250611 r 0 0 0 0 69 934 4096 728239255679 w 19 122 18 159 20 80 80 728239275718 w 20 117 15 152 18 80 80 728239295578 w 10 73 7 90 7 80 80 728239315567 w 9 67 5 81 7 80 80 728239335745 w 23 133 9 165 14 80 80 ... ``` Each event is shown in 9 columns - unix time in us - event type - N = Name resolution - C = TCP Connection - T = TLS negotiation server - t = TLS negotiation client - r = Read - w = Write - us duration, for w time client spent waiting to write - us duration, for w time data spent in transit to proxy - us duration, for w time proxy waited to send data - as a convenience, sum of last 3 columns above - us duration, time spent in callback - last 2 are actual / requested size in bytes ## Processing captured data with ministat Eg, to summarize overall latencies on all captured writes ``` $ cat /tmp/lws-latency-results | grep " w " | cut -d' ' -f6 | ministat ... N Min Max Median Avg Stddev x 1000 43 273 141 132.672 32.471693 ``` ## Processing captured data with gnuplot ### Gnuplot plotting script Create a gnuplot script, eg myscript.gp ``` reset set term pngcairo enhanced nocrop font "OpenSans, 12" size 800,600#output terminal and file set output "lws-latency.png" #set yrange [0:10000] #to put an empty boundary around the #data inside an autoscaled graph. set offset graph 0.05,0.05,0.05,0.0 set style fill transparent solid 0.5 #fillstyle set tics out nomirror set xlabel "event" set ylabel "latency (us)" set format x "" set title "Write latency" set key invert reverse Right inside nobox set key autotitle columnheader set style data histogram set style histogram rowstacked set style fill solid border -1 set boxwidth 0.75 set style fill solid 1.00 noborder set tic scale 0 set grid ytics lc rgb "#505050" unset border unset xtics plot '/tmp/1' \ using ($3 + $4 + $5):xtic(1) w boxes lt rgbcolor "blue" title 'prox wr wait', \ '' using ($3 + $4):xtic(1) w boxes lt rgbcolor "green" title 'txfr to prox', \ '' using 3:xtic(1) w boxes lt rgbcolor "red" title 'cli wri wait' ``` ### gnuplot invocation ``` $ cat /tmp/lws-latency-results | grep " w " \>/tmp/1 ; gnuplot myscript.gp && eog lws-latency.png ``` <file_sep># lws minimal http client-h2-rxflow The application reads from a server with tightly controlled and rate-limited receive flow control using h2 tx credit. ## build ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -l| Connect to https://localhost:7681 and accept selfsigned cert --server <name>|set server name to connect to --path <path>|URL path to access on server -k|Apply tls option LCCSCF_ALLOW_INSECURE -j|Apply tls option LCCSCF_ALLOW_SELFSIGNED -m|Apply tls option LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK -e|Apply tls option LCCSCF_ALLOW_EXPIRED -v|Connection validity use 3s / 10s instead of default 5m / 5m10s --nossl| disable ssl connection -f <initial credit>|Indicate we will manually manage tx credit and set a new connection-specific initial tx credit RX is constrained to 1024 bytes every 250ms ``` $ ./lws-minimal-http-client-h2-rxflow --server phys.org --path "/" -f 1024 [2019/12/26 13:32:59:6801] U: LWS minimal http client [-d<verbosity>] [-l] [--h1] [2019/12/26 13:33:00:5087] N: system_notify_cb: manual peer tx credit 1024 [2019/12/26 13:33:01:7390] U: Connected to 172.16.58.3, http response: 200 [2019/12/26 13:33:01:7441] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:01:0855] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:02:3367] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:02:5858] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:02:8384] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:02:0886] U: RECEIVE_CLIENT_HTTP_READ: read 1024 ... [2019/12/26 13:33:46:1152] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:47:3650] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:47:6150] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:47:8666] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:47:1154] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:48:3656] U: RECEIVE_CLIENT_HTTP_READ: read 1024 [2019/12/26 13:33:48:6157] U: RECEIVE_CLIENT_HTTP_READ: read 380 [2019/12/26 13:33:48:6219] U: LWS_CALLBACK_COMPLETED_CLIENT_HTTP [2019/12/26 13:33:48:7050] U: Completed: OK ``` <file_sep># JOSE support JOSE is a set of web standards aimed at encapsulating crypto operations flexibly inside JSON objects. Lws provides lightweight apis to performs operations on JWK, JWS and JWE independent of the tls backend in use. The JSON parsing is handled by the lws lejp stream parser. |Part|RFC|Function| |---|---|---| |JWS|[RFC7515](https://tools.ietf.org/html/rfc7515)|JSON Web Signatures| |JWE|[RFC7516](https://tools.ietf.org/html/rfc7516)|JSON Web Encryption| |JWK|[RFC7517](https://tools.ietf.org/html/rfc7517)|JSON Web Keys| |JWA|[RFC7518](https://tools.ietf.org/html/rfc7518)|JSON Web Algorithms| JWA is a set of recommendations for which combinations of algorithms are deemed desirable and secure, which implies what must be done for useful implementations of JWS, JWE and JWK. ## Supported algorithms ### Supported keys - All RFC7517 / JWK forms: octet, RSA and EC - singleton and keys[] arrays of keys supported ### Symmetric ciphers - All common AES varaiants: CBC, CFB128, CFB8, CTR, EVB, OFB, KW and XTS ### Asymmetric ciphers - RSA - EC (P-256, P-384 and P-521 JWA curves) ### Payload auth and crypt - AES_128_CBC_HMAC_SHA_256 - AES_192_CBC_HMAC_SHA_384 - AES_256_CBC_HMAC_SHA_512 - AES_128_GCM For the required and recommended asymmetric algorithms, support currently looks like this |JWK kty|JWA|lws| |---|---|---| |EC|Recommended+|yes| |RSA|Required|yes| |oct|Required|yes| |JWE alg|JWA|lws| |---|---|---| |RSA1_5|Recommended-|yes| |RSA-OAEP|Recommended+|no| |ECDH-ES|Recommended+|no| |JWS alg|JWA|lws| |---|---|---| |HS256|Required|yes| |RS256|Recommended+|yes| |ES256|Recommended|yes| ## Minimal Example tools [JWK](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/crypto/minimal-crypto-jwk) [JWS](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/crypto/minimal-crypto-jws) [JWE](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/crypto/minimal-crypto-jwe) ## API tests See `./minimal-examples/api-tests/api-test-jose/` for example test code. The tests are built and confirmed during CI. <file_sep># `lws_system` See `include/libwebsockets/lws-system.h` for function and object prototypes. ## System integration api `lws_system` allows you to set a `system_ops` struct at context creation time, which can write up some function callbacks for system integration. The goal is the user code calls these by getting the ops struct pointer from the context using `lws_system_get_ops(context)` and so does not spread system dependencies around the user code, making it directly usable on completely different platforms. ``` typedef struct lws_system_ops { int (*reboot)(void); int (*set_clock)(lws_usec_t us); int (*attach)(struct lws_context *context, int tsi, lws_attach_cb_t cb, lws_system_states_t state, void *opaque, struct lws_attach_item **get); } lws_system_ops_t; ``` |Item|Meaning| |---|---| |`(*reboot)()`|Reboot the system| |`(*set_clock)()`|Set the system clock| |`(*attach)()`|Request an event loop callback from another thread context| ### `reboot` Reboots the device ### `set_clock` Set the system clock to us-resolution Unix time in seconds ### `attach` Request a callback from the event loop from a foreign thread. This is used, for example, for foreign threads to set up their event loop activity in their callback, and eg, exit once it is done, with their event loop activity able to continue wholly from the lws event loop thread and stack context. ## Foreign thread `attach` architecture When lws is started, it should define an `lws_system_ops_t` at context creation time which defines its `.attach` handler. In the `.attach` handler implementation, it should perform platform-specific locking around a call to `__lws_system_attach()`, a public lws api that actually queues the callback request and does the main work. The platform-specific wrapper is just there to do the locking so multiple calls from different threads to the `.attach()` operation can't conflict. User code can indicate it wants a callback from the lws event loop like this: ``` lws_system_get_ops(context)->attach(context, tsi, cb, state, opaque, NULL) ``` `context` is a pointer to the lws_context, `tsi` is normally 0, `cb` is the user callback in the form ``` void (*lws_attach_cb_t)(struct lws_context *context, int tsi, void *opaque); ``` `state` is the `lws_system` state we should have reached before performing the callback (usually, `LWS_SYSTATE_OPERATIONAL`), and `opaque` is a user pointer that will be passed into the callback. `cb` will normally want to create scheduled events and set up lws network-related activity from the event loop thread and stack context. Once the event loop callback has been booked by calling this api, the thread and its stack context that booked it may be freed. It will be called back and can continue operations from the lws event loop thread and stack context. For that reason, if `opaque` is needed it will usually point to something on the heap, since the stack context active at the time the callback was booked may be long dead by the time of the callback. See ./lib/system/README.md for more details. ## `lws_system` blobs "Blobs" are arbitrary binary objects that have a total length. Lws lets you set them in two ways - "directly", by pointing to them, which has no heap implication - "heap", by adding one or more arbitrary chunk to a chained heap object In the "heap" case, it can be incrementally defined and the blob doesn't all have to be declared at once. For read, the same api allows you to read all or part of the blob into a user buffer. The following kinds of blob are defined |Item|Meaning| |---|---| |`LWS_SYSBLOB_TYPE_AUTH`|Auth-related blob 1, typically a registration token| |`LWS_SYSBLOB_TYPE_AUTH + 1`|Auth-related blob 2, typically an auth token| |`LWS_SYSBLOB_TYPE_CLIENT_CERT_DER`|Client cert public part| |`LWS_SYSBLOB_TYPE_CLIENT_KEY_DER`|Client cert key part| |`LWS_SYSBLOB_TYPE_DEVICE_SERIAL`|Arbitrary device serial number| |`LWS_SYSBLOB_TYPE_DEVICE_FW_VERSION`|Arbitrary firmware version| |`LWS_SYSBLOB_TYPE_DEVICE_TYPE`|Arbitrary Device Type identifier| |`LWS_SYSBLOB_TYPE_NTP_SERVER`|String with the ntp server address (defaults to pool.ntp.org)| ### Blob handle api Returns an object representing the blob for a particular type (listed above) ``` lws_system_blob_t * lws_system_get_blob(struct lws_context *context, lws_system_blob_item_t type, int idx); ``` ### Blob Setting apis Sets the blob to point length `len` at `ptr`. No heap allocation is used. ``` void lws_system_blob_direct_set(lws_system_blob_t *b, const uint8_t *ptr, size_t len); ``` Allocates and copied `len` bytes from `buf` into heap and chains it on the end of any existing. ``` int lws_system_blob_heap_append(lws_system_blob_t *b, const uint8_t *buf, size_t len) ``` Remove any content from the blob, freeing it if it was on the heap ``` void lws_system_blob_heap_empty(lws_system_blob_t *b) ``` ### Blob getting apis Get the total size of the blob (ie, if on the heap, the aggreate size of all the chunks that were appeneded) ``` size_t lws_system_blob_get_size(lws_system_blob_t *b) ``` Copy part or all of the blob starting at offset ofs into a user buffer at buf. `*len` should be the length of the user buffer on entry, on exit it's set to the used extent of `buf`. This works the same whether the bob is a direct pointer or on the heap. ``` int lws_system_blob_get(lws_system_blob_t *b, uint8_t *buf, size_t *len, size_t ofs) ``` If you know that the blob was handled as a single direct pointer, or a single allocation, you can get a pointer to it without copying using this. ``` int lws_system_blob_get_single_ptr(lws_system_blob_t *b, const uint8_t **ptr) ``` ### Blob destroy api Deallocates any heap allocation for the blob ``` void lws_system_blob_destroy(lws_system_blob_t *b) ``` ## System state and notifiers Lws implements a state in the context that reflects the readiness of the system for various steps leading up to normal operation. By default it acts in a backwards-compatible way and directly reaches the OPERATIONAL state just after the context is created. However other pieces of lws, and user, code may define notification handlers that get called back when the state changes incrementally, and may veto or delay the changes until work necessary for the new state has completed asynchronously. The generic states defined are: |State|Meaning| |---|---| |`LWS_SYSTATE_CONTEXT_CREATED`|The context was just created.| |`LWS_SYSTATE_INITIALIZED`|The vhost protocols have been initialized| |`LWS_SYSTATE_IFACE_COLDPLUG`|Existing network interfaces have been iterated| |`LWS_SYSTATE_DHCP`|Network identity is available| |`LWS_SYSTATE_TIME_VALID`|The system knows the time| |`LWS_SYSTATE_POLICY_VALID`|If the system needs information about how to act from the net, it has it| |`LWS_SYSTATE_REGISTERED`|The device has a registered identity| |`LWS_SYSTATE_AUTH1`|The device identity has produced a time-limited access token| |`LWS_SYSTATE_AUTH2`|Optional second access token for different services| |`LWS_SYSTATE_OPERATIONAL`|The system is ready for user code to work normally| |`LWS_SYSTATE_POLICY_INVALID`|All connections are being dropped because policy information is changing. It will transition back to `LWS_SYSTATE_INITIALIZED` and onward to `OPERATIONAL` again afterwards with the new policy| ### Inserting a notifier You should create an object `lws_system_notify_link_t` in non-const memory and zero it down. Set the `notify_cb` member and the `name` member and then register it using either `lws_system_reg_notifier()` or the `.register_notifier_list` member of the context creation info struct to make sure it will exist early enough to see all events. The context creation info method takes a list of pointers to notify_link structs ending with a NULL entry. <file_sep>#!/bin/bash if [ -z "$1" -o -z "$2" ] ; then echo "required args missing" exit 1 fi IDX=$3 TOT=$4 MYTEST=`echo $0 | sed "s/\/[^\/]*\$//g" |sed "s/.*\///g"` mkdir -p $2/$MYTEST rm -f $2/$MYTEST/*.log $2/$MYTEST/*.result FAILS=0 WHICH=$IDX SPID= SCRIPT_DIR=`dirname $0` SCRIPT_DIR=`readlink -f $SCRIPT_DIR` LOGPATH=$2 feedback() { if [ "$2" != "$4" ] ; then FAILS=$(( $FAILS + 1 )) echo -n -e "\e[31m" fi T=" --- killed --- " if [ ! -z "`cat $LOGPATH/$MYTEST/$3.time`" ] ; then T="`cat $LOGPATH/$MYTEST/$3.time | grep real | sed "s/.*\ //g"`" T="$T `cat $LOGPATH/$MYTEST/$3.time | grep user | sed "s/.*\ //g"`" T="$T `cat $LOGPATH/$MYTEST/$3.time | grep sys | sed "s/.*\ //g"`" fi printf "%-35s [ %3s/%3s ]: %3s : %8s : %s\n" $1 $WHICH $TOT $2 "$T" $3 if [ "$2" != "0" ] ; then echo -n -e "\e[0m" fi WHICH=$(( $WHICH + 1)) } spawn() { if [ ! -z "$1" ] ; then if [ `ps $1 | wc -l` -eq 2 ]; then # echo "prerequisite still up" return 0 fi fi QQ=`pwd` cd $SCRIPT_DIR cd $2 $3 $4 $5 > $LOGPATH/$MYTEST/serverside.log 2> $LOGPATH/$MYTEST/serverside.log & SPID=$! cd $QQ sleep 0.5s # echo "launched prerequisite $SPID" } _dotest() { EXPRES=0 if [ ! -z "$4" ] ; then EXPRES=$4 fi T=$3 # echo "$1/lws-$MYTEST $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} ${14}" ( { /usr/bin/time -p /usr/bin/valgrind -q $1/lws-$MYTEST $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} ${14} > $2/$MYTEST/$T.log 2> $2/$MYTEST/$T.log ; echo $? > $2/$MYTEST/$T.result } 2> $2/$MYTEST/$T.time >/dev/null ) >/dev/null 2> /dev/null & W=$! WT=0 while [ $WT -le 820 ] ; do kill -0 $W 2>/dev/null if [ $? -ne 0 ] ; then WT=10000 else if [ $WT -ge 800 ] ; then WT=10000 kill $W 2>/dev/null wait $W 2>/dev/null fi fi sleep 0.1s WT=$(( $WT + 1 )) done R=254 if [ -e $2/$MYTEST/$T.result ] ; then R=`cat $2/$MYTEST/$T.result` cat $2/$MYTEST/$T.log | tail -n 3 > $2/$MYTEST/$T.time if [ $R -ne $EXPRES ] ; then pwd echo Expected result $EXPRES but got $R echo cat $2/$MYTEST/$T.log echo fi fi feedback $MYTEST $R $T $EXPRES } dotest() { _dotest $1 $2 $3 0 "$4" "$5" "$6" "$7" "$8" "$9" "${10}" "${11}" "${12}" "${13}" } dofailtest() { _dotest $1 $2 $3 1 $4 $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} } <file_sep>/** @file noja_webserver_main.h * Webserver daemon header file * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _NOJA_WEBSERVER_MAIN_H #define _NOJA_WEBSERVER_MAIN_H #if defined(QT_CORE_LIB) #if defined(SYS_INFO) #undef SYS_INFO #endif #if defined(SYSERR) #undef SYSERR #endif #define SYS_INFO 0 #define SYSERR(x, ...) { fprintf(stdout, __VA_ARGS__); fflush(stdout); } #endif #endif <file_sep>#ifdef _WIN32 #include <Wincrypt.h> #else #include <fcntl.h> #include <unistd.h> /* for defined(BSD) */ #include <sys/param.h> #ifdef BSD /* for SYS_getentropy */ #include <sys/syscall.h> #endif #ifdef __APPLE__ #include <sys/random.h> /* To support weak linking we need to declare this as a weak import even if * it's not present in sys/random (e.g. macOS < 10.12). */ extern int getentropy(void *buffer, size_t size) __attribute((weak_import)); #endif #ifdef __linux__ /* for SYS_getrandom */ #include <sys/syscall.h> #ifndef GRND_NONBLOCK #define GRND_NONBLOCK 0x0001 #endif /* GRND_NONBLOCK */ #endif /* __linux__ */ #endif /* _WIN32 */ #define CRYPTOGRAPHY_OSRANDOM_ENGINE_CRYPTGENRANDOM 1 #define CRYPTOGRAPHY_OSRANDOM_ENGINE_GETENTROPY 2 #define CRYPTOGRAPHY_OSRANDOM_ENGINE_GETRANDOM 3 #define CRYPTOGRAPHY_OSRANDOM_ENGINE_DEV_URANDOM 4 #ifndef CRYPTOGRAPHY_OSRANDOM_ENGINE #if defined(_WIN32) /* Windows */ #define CRYPTOGRAPHY_OSRANDOM_ENGINE CRYPTOGRAPHY_OSRANDOM_ENGINE_CRYPTGENRANDOM #elif defined(BSD) && defined(SYS_getentropy) /* OpenBSD 5.6+ & macOS with SYS_getentropy defined, although < 10.12 will fallback * to urandom */ #define CRYPTOGRAPHY_OSRANDOM_ENGINE CRYPTOGRAPHY_OSRANDOM_ENGINE_GETENTROPY #elif defined(__linux__) && defined(SYS_getrandom) /* Linux 3.4.17+ */ #define CRYPTOGRAPHY_OSRANDOM_ENGINE CRYPTOGRAPHY_OSRANDOM_ENGINE_GETRANDOM #else /* Keep this as last entry, fall back to /dev/urandom */ #define CRYPTOGRAPHY_OSRANDOM_ENGINE CRYPTOGRAPHY_OSRANDOM_ENGINE_DEV_URANDOM #endif #endif /* CRYPTOGRAPHY_OSRANDOM_ENGINE */ /* Fallbacks need /dev/urandom helper functions. */ #if CRYPTOGRAPHY_OSRANDOM_ENGINE == CRYPTOGRAPHY_OSRANDOM_ENGINE_GETRANDOM || \ CRYPTOGRAPHY_OSRANDOM_ENGINE == CRYPTOGRAPHY_OSRANDOM_ENGINE_DEV_URANDOM || \ (CRYPTOGRAPHY_OSRANDOM_ENGINE == CRYPTOGRAPHY_OSRANDOM_ENGINE_GETENTROPY && \ defined(__APPLE__)) #define CRYPTOGRAPHY_OSRANDOM_NEEDS_DEV_URANDOM 1 #endif enum { CRYPTOGRAPHY_OSRANDOM_GETRANDOM_INIT_FAILED = -2, CRYPTOGRAPHY_OSRANDOM_GETRANDOM_NOT_INIT, CRYPTOGRAPHY_OSRANDOM_GETRANDOM_FALLBACK, CRYPTOGRAPHY_OSRANDOM_GETRANDOM_WORKS }; enum { CRYPTOGRAPHY_OSRANDOM_GETENTROPY_NOT_INIT, CRYPTOGRAPHY_OSRANDOM_GETENTROPY_FALLBACK, CRYPTOGRAPHY_OSRANDOM_GETENTROPY_WORKS }; /* engine ctrl */ #define CRYPTOGRAPHY_OSRANDOM_GET_IMPLEMENTATION ENGINE_CMD_BASE /* error reporting */ static void ERR_load_Cryptography_OSRandom_strings(void); static void ERR_Cryptography_OSRandom_error(int function, int reason, char *file, int line); #define CRYPTOGRAPHY_OSRANDOM_F_INIT 100 #define CRYPTOGRAPHY_OSRANDOM_F_RAND_BYTES 101 #define CRYPTOGRAPHY_OSRANDOM_F_FINISH 102 #define CRYPTOGRAPHY_OSRANDOM_F_DEV_URANDOM_FD 300 #define CRYPTOGRAPHY_OSRANDOM_F_DEV_URANDOM_READ 301 #define CRYPTOGRAPHY_OSRANDOM_R_CRYPTACQUIRECONTEXT 100 #define CRYPTOGRAPHY_OSRANDOM_R_CRYPTGENRANDOM 101 #define CRYPTOGRAPHY_OSRANDOM_R_CRYPTRELEASECONTEXT 102 #define CRYPTOGRAPHY_OSRANDOM_R_GETENTROPY_FAILED 200 #define CRYPTOGRAPHY_OSRANDOM_R_DEV_URANDOM_OPEN_FAILED 300 #define CRYPTOGRAPHY_OSRANDOM_R_DEV_URANDOM_READ_FAILED 301 #define CRYPTOGRAPHY_OSRANDOM_R_GETRANDOM_INIT_FAILED 400 #define CRYPTOGRAPHY_OSRANDOM_R_GETRANDOM_INIT_FAILED_EAGAIN 401 #define CRYPTOGRAPHY_OSRANDOM_R_GETRANDOM_INIT_FAILED_UNEXPECTED 402 #define CRYPTOGRAPHY_OSRANDOM_R_GETRANDOM_FAILED 403 #define CRYPTOGRAPHY_OSRANDOM_R_GETRANDOM_NOT_INIT 404 <file_sep>/** @file noja_webserver_mem.c * Simple memory managment module implementation * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #include "noja_webserver_mem.h" /** @ingroup group_internal * @brief allocate heap memory * * This function allocate a specified heap size * * @param[in] ctx Webserver context that requested the allocated memory * @param[in] size Size of meomory to allocate * @return Pointer to the allocated memory, NULL if failed */ void* nwsAlloc(NwsContextInternal *ctx, unsigned int size #if defined(NWS_MEMORY_ALLOC_DBG) , const char *function, unsigned int line #endif ) { void *buf = NULL; buf = malloc(size); if(buf == NULL) { SYSERR(-ERR_WEBSERVER, "Unable to malloc %d bytes", size); return buf; } if(ctx) { ctx->memAllocCnt += 1; ctx->memAllocSize += size; if(ctx->memAllocSize > ctx->memHighSize) { ctx->memHighSize = ctx->memAllocSize; } #if defined(NWS_MEMORY_ALLOC_DBG) fprintf(stderr, "Alloc[%s.%d] Address=%08X, Size=%d, Count=%d, Total Size: %d\n", function, line, (unsigned int)buf, size, ctx->memAllocCnt, ctx->memAllocSize); #endif } return buf; } /** @ingroup group_internal * @brief free allocated heap memory * * This function free an allocated memory * * @param[in] ctx Webserver context that requested the allocated memory * @param[in] buf pointer to the memory to free * @param[in] size Size of meomory to free */ void nwsFree(NwsContextInternal *ctx, void* buf, unsigned int size #if defined(NWS_MEMORY_ALLOC_DBG) , const char *function, unsigned int line #endif ) { if(buf == NULL) { return; } if(ctx) { ctx->memAllocCnt -= 1; ctx->memAllocSize -= size; #if defined(NWS_MEMORY_ALLOC_DBG) fprintf(stderr, "Free[%s.%d] Address=%08X, Size=%d, Count=%d, Total Size: %d\n", function, line, (unsigned int)buf, size, ctx->memAllocCnt, ctx->memAllocSize); #endif } free(buf); }<file_sep># lws minimal dbus client This demonstrates nonblocking, asynchronous dbus method calls as the client. ## build Using libdbus requires additional non-default include paths setting, same as is necessary for lws build described in ./lib/roles/dbus/README.md CMake can guess one path and the library name usually, see the README above for details of how to override for custom libdbus and cross build. Fedora example: ``` $ cmake .. -DLWS_DBUS_INCLUDE2="/usr/lib64/dbus-1.0/include" $ make ``` Ubuntu example: ``` $ cmake .. -DLWS_DBUS_INCLUDE2="/usr/lib/x86_64-linux-gnu/dbus-1.0/include" $ make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 The minimal client connects to the minimal dbus server example, which is expected to be listening on its default abstract unix domain socket path. It call the server Echo method with "Hello!" and returns to the event loop. When the reply comes, it prints the returned message. Afterwards it just sits there receiving unsolicited messages from the server example, until closed by the user. ``` $ ./lws-minimal-dbus-client ctx [2018/10/05 06:08:31:4901] NOTICE: pending_call_notify [2018/10/05 06:08:31:4929] USER: pending_call_notify: received 'Hello!' ^C[2018/10/05 06:09:22:4409] NOTICE: destroy_dbus_client_conn [2018/10/05 06:09:22:4691] NOTICE: Exiting cleanly ... ``` <file_sep>/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #if !defined(__LWS_SSH_H__) #define __LWS_SSH_H__ #if defined(LWS_WITH_MBEDTLS) #include "mbedtls/sha1.h" #include "mbedtls/sha256.h" #include "mbedtls/sha512.h" #include "mbedtls/rsa.h" #endif #include "lws-plugin-ssh.h" #define LWS_SIZE_EC25519 32 #define LWS_SIZE_EC25519_PUBKEY 32 #define LWS_SIZE_EC25519_PRIKEY 64 #define LWS_SIZE_SHA256 32 #define LWS_SIZE_SHA512 64 #define LWS_SIZE_AES256_KEY 32 #define LWS_SIZE_AES256_IV 12 #define LWS_SIZE_AES256_MAC 16 #define LWS_SIZE_AES256_BLOCK 16 #define LWS_SIZE_CHACHA256_KEY (2 * 32) #define POLY1305_TAGLEN 16 #define POLY1305_KEYLEN 32 #define crypto_hash_sha512_BYTES 64U #define PEEK_U64(p) \ (((uint64_t)(((const uint8_t *)(p))[0]) << 56) | \ ((uint64_t)(((const uint8_t *)(p))[1]) << 48) | \ ((uint64_t)(((const uint8_t *)(p))[2]) << 40) | \ ((uint64_t)(((const uint8_t *)(p))[3]) << 32) | \ ((uint64_t)(((const uint8_t *)(p))[4]) << 24) | \ ((uint64_t)(((const uint8_t *)(p))[5]) << 16) | \ ((uint64_t)(((const uint8_t *)(p))[6]) << 8) | \ (uint64_t)(((const uint8_t *)(p))[7])) #define PEEK_U32(p) \ (((uint32_t)(((const uint8_t *)(p))[0]) << 24) | \ ((uint32_t)(((const uint8_t *)(p))[1]) << 16) | \ ((uint32_t)(((const uint8_t *)(p))[2]) << 8) | \ (uint32_t)(((const uint8_t *)(p))[3])) #define PEEK_U16(p) \ (((uint16_t)(((const uint8_t *)(p))[0]) << 8) | \ (uint16_t)(((const uint8_t *)(p))[1])) #define POKE_U64(p, v) \ do { \ const uint64_t __v = (v); \ ((uint8_t *)(p))[0] = (__v >> 56) & 0xff; \ ((uint8_t *)(p))[1] = (__v >> 48) & 0xff; \ ((uint8_t *)(p))[2] = (__v >> 40) & 0xff; \ ((uint8_t *)(p))[3] = (__v >> 32) & 0xff; \ ((uint8_t *)(p))[4] = (__v >> 24) & 0xff; \ ((uint8_t *)(p))[5] = (__v >> 16) & 0xff; \ ((uint8_t *)(p))[6] = (__v >> 8) & 0xff; \ ((uint8_t *)(p))[7] = __v & 0xff; \ } while (0) #define POKE_U32(p, v) \ do { \ const uint32_t __v = (v); \ ((uint8_t *)(p))[0] = (__v >> 24) & 0xff; \ ((uint8_t *)(p))[1] = (__v >> 16) & 0xff; \ ((uint8_t *)(p))[2] = (__v >> 8) & 0xff; \ ((uint8_t *)(p))[3] = __v & 0xff; \ } while (0) #define POKE_U16(p, v) \ do { \ const uint16_t __v = (v); \ ((uint8_t *)(p))[0] = (__v >> 8) & 0xff; \ ((uint8_t *)(p))[1] = __v & 0xff; \ } while (0) enum { SSH_MSG_DISCONNECT = 1, SSH_MSG_IGNORE = 2, SSH_MSG_UNIMPLEMENTED = 3, SSH_MSG_DEBUG = 4, SSH_MSG_SERVICE_REQUEST = 5, SSH_MSG_SERVICE_ACCEPT = 6, SSH_MSG_KEXINIT = 20, SSH_MSG_NEWKEYS = 21, /* 30 .. 49: KEX messages specific to KEX protocol */ SSH_MSG_KEX_ECDH_INIT = 30, SSH_MSG_KEX_ECDH_REPLY = 31, /* 50... userauth */ SSH_MSG_USERAUTH_REQUEST = 50, SSH_MSG_USERAUTH_FAILURE = 51, SSH_MSG_USERAUTH_SUCCESS = 52, SSH_MSG_USERAUTH_BANNER = 53, /* 60... publickey */ SSH_MSG_USERAUTH_PK_OK = 60, /* 80... connection */ SSH_MSG_GLOBAL_REQUEST = 80, SSH_MSG_REQUEST_SUCCESS = 81, SSH_MSG_REQUEST_FAILURE = 82, SSH_MSG_CHANNEL_OPEN = 90, SSH_MSG_CHANNEL_OPEN_CONFIRMATION = 91, SSH_MSG_CHANNEL_OPEN_FAILURE = 92, SSH_MSG_CHANNEL_WINDOW_ADJUST = 93, SSH_MSG_CHANNEL_DATA = 94, SSH_MSG_CHANNEL_EXTENDED_DATA = 95, SSH_MSG_CHANNEL_EOF = 96, SSH_MSG_CHANNEL_CLOSE = 97, SSH_MSG_CHANNEL_REQUEST = 98, SSH_MSG_CHANNEL_SUCCESS = 99, SSH_MSG_CHANNEL_FAILURE = 100, SSH_EXTENDED_DATA_STDERR = 1, SSH_CH_TYPE_SESSION = 1, SSH_CH_TYPE_SCP = 2, SSH_CH_TYPE_SFTP = 3, SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT = 1, SSH_DISCONNECT_PROTOCOL_ERROR = 2, SSH_DISCONNECT_KEY_EXCHANGE_FAILED = 3, SSH_DISCONNECT_RESERVED = 4, SSH_DISCONNECT_MAC_ERROR = 5, SSH_DISCONNECT_COMPRESSION_ERROR = 6, SSH_DISCONNECT_SERVICE_NOT_AVAILABLE = 7, SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED = 8, SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE = 9, SSH_DISCONNECT_CONNECTION_LOST = 10, SSH_DISCONNECT_BY_APPLICATION = 11, SSH_DISCONNECT_TOO_MANY_CONNECTIONS = 12, SSH_DISCONNECT_AUTH_CANCELLED_BY_USER = 13, SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE = 14, SSH_DISCONNECT_ILLEGAL_USER_NAME = 15, SSH_OPEN_ADMINISTRATIVELY_PROHIBITED = 1, SSH_OPEN_CONNECT_FAILED = 2, SSH_OPEN_UNKNOWN_CHANNEL_TYPE = 3, SSH_OPEN_RESOURCE_SHORTAGE = 4, KEX_STATE_EXPECTING_CLIENT_OFFER = 0, KEX_STATE_REPLIED_TO_OFFER, KEX_STATE_CRYPTO_INITIALIZED, SSH_KEYIDX_IV = 0, SSH_KEYIDX_ENC, SSH_KEYIDX_INTEG, /* things we may write on the connection */ SSH_WT_NONE = 0, SSH_WT_VERSION, SSH_WT_OFFER, SSH_WT_OFFER_REPLY, SSH_WT_SEND_NEWKEYS, SSH_WT_UA_ACCEPT, SSH_WT_UA_FAILURE, SSH_WT_UA_BANNER, SSH_WT_UA_PK_OK, SSH_WT_UA_SUCCESS, SSH_WT_CH_OPEN_CONF, SSH_WT_CH_FAILURE, SSH_WT_CHRQ_SUCC, SSH_WT_CHRQ_FAILURE, SSH_WT_SCP_ACK_OKAY, SSH_WT_SCP_ACK_ERROR, SSH_WT_CH_CLOSE, SSH_WT_CH_EOF, SSH_WT_WINDOW_ADJUST, SSH_WT_EXIT_STATUS, /* RX parser states */ SSH_INITIALIZE_TRANSIENT = 0, SSHS_IDSTRING, SSHS_IDSTRING_CR, SSHS_MSG_LEN, SSHS_MSG_PADDING, SSHS_MSG_ID, SSH_KEX_STATE_COOKIE, SSH_KEX_NL_KEX_ALGS_LEN, SSH_KEX_NL_KEX_ALGS, SSH_KEX_NL_SHK_ALGS_LEN, SSH_KEX_NL_SHK_ALGS, SSH_KEX_NL_EACTS_ALGS_LEN, SSH_KEX_NL_EACTS_ALGS, SSH_KEX_NL_EASTC_ALGS_LEN, SSH_KEX_NL_EASTC_ALGS, SSH_KEX_NL_MACTS_ALGS_LEN, SSH_KEX_NL_MACTS_ALGS, SSH_KEX_NL_MASTC_ALGS_LEN, SSH_KEX_NL_MASTC_ALGS, SSH_KEX_NL_CACTS_ALGS_LEN, SSH_KEX_NL_CACTS_ALGS, SSH_KEX_NL_CASTC_ALGS_LEN, SSH_KEX_NL_CASTC_ALGS, SSH_KEX_NL_LCTS_ALGS_LEN, SSH_KEX_NL_LCTS_ALGS, SSH_KEX_NL_LSTC_ALGS_LEN, SSH_KEX_NL_LSTC_ALGS, SSH_KEX_FIRST_PKT, SSH_KEX_RESERVED, SSH_KEX_STATE_ECDH_KEYLEN, SSH_KEX_STATE_ECDH_Q_C, SSHS_MSG_EAT_PADDING, SSH_KEX_STATE_SKIP, SSHS_GET_STRING_LEN, SSHS_GET_STRING, SSHS_GET_STRING_LEN_ALLOC, SSHS_GET_STRING_ALLOC, SSHS_DO_SERVICE_REQUEST, SSHS_DO_UAR_SVC, SSHS_DO_UAR_PUBLICKEY, SSHS_NVC_DO_UAR_CHECK_PUBLICKEY, SSHS_DO_UAR_SIG_PRESENT, SSHS_NVC_DO_UAR_ALG, SSHS_NVC_DO_UAR_PUBKEY_BLOB, SSHS_NVC_DO_UAR_SIG, SSHS_GET_U32, SSHS_NVC_CHOPEN_TYPE, SSHS_NVC_CHOPEN_SENDER_CH, SSHS_NVC_CHOPEN_WINSIZE, SSHS_NVC_CHOPEN_PKTSIZE, SSHS_NVC_CHRQ_RECIP, SSHS_NVC_CHRQ_TYPE, SSHS_CHRQ_WANT_REPLY, SSHS_NVC_CHRQ_TERM, SSHS_NVC_CHRQ_TW, SSHS_NVC_CHRQ_TH, SSHS_NVC_CHRQ_TWP, SSHS_NVC_CHRQ_THP, SSHS_NVC_CHRQ_MODES, SSHS_NVC_CHRQ_ENV_NAME, SSHS_NVC_CHRQ_ENV_VALUE, SSHS_NVC_CHRQ_EXEC_CMD, SSHS_NVC_CHRQ_SUBSYSTEM, SSHS_NVC_CH_EOF, SSHS_NVC_CH_CLOSE, SSHS_NVC_CD_RECIP, SSHS_NVC_CD_DATA, SSHS_NVC_CD_DATA_ALLOC, SSHS_NVC_WA_RECIP, SSHS_NVC_WA_ADD, SSHS_NVC_DISCONNECT_REASON, SSHS_NVC_DISCONNECT_DESC, SSHS_NVC_DISCONNECT_LANG, SSHS_SCP_COLLECTSTR = 0, SSHS_SCP_PAYLOADIN = 1, /* from https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13 */ SECSH_FILEXFER_VERSION = 6, /* sftp packet types */ SSH_FXP_INIT = 1, SSH_FXP_VERSION = 2, SSH_FXP_OPEN = 3, SSH_FXP_CLOSE = 4, SSH_FXP_READ = 5, SSH_FXP_WRITE = 6, SSH_FXP_LSTAT = 7, SSH_FXP_FSTAT = 8, SSH_FXP_SETSTAT = 9, SSH_FXP_FSETSTAT = 10, SSH_FXP_OPENDIR = 11, SSH_FXP_READDIR = 12, SSH_FXP_REMOVE = 13, SSH_FXP_MKDIR = 14, SSH_FXP_RMDIR = 15, SSH_FXP_REALPATH = 16, SSH_FXP_STAT = 17, SSH_FXP_RENAME = 18, SSH_FXP_READLINK = 19, SSH_FXP_LINK = 21, SSH_FXP_BLOCK = 22, SSH_FXP_UNBLOCK = 23, SSH_FXP_STATUS = 101, SSH_FXP_HANDLE = 102, SSH_FXP_DATA = 103, SSH_FXP_NAME = 104, SSH_FXP_ATTRS = 105, SSH_FXP_EXTENDED = 200, SSH_FXP_EXTENDED_REPLY = 201, /* sftp return codes */ SSH_FX_OK = 0, SSH_FX_EOF = 1, SSH_FX_NO_SUCH_FILE = 2, SSH_FX_PERMISSION_DENIED = 3, SSH_FX_FAILURE = 4, SSH_FX_BAD_MESSAGE = 5, SSH_FX_NO_CONNECTION = 6, SSH_FX_CONNECTION_LOST = 7, SSH_FX_OP_UNSUPPORTED = 8, SSH_FX_INVALID_HANDLE = 9, SSH_FX_NO_SUCH_PATH = 10, SSH_FX_FILE_ALREADY_EXISTS = 11, SSH_FX_WRITE_PROTECT = 12, SSH_FX_NO_MEDIA = 13, SSH_FX_NO_SPACE_ON_FILESYSTEM = 14, SSH_FX_QUOTA_EXCEEDED = 15, SSH_FX_UNKNOWN_PRINCIPAL = 16, SSH_FX_LOCK_CONFLICT = 17, SSH_FX_DIR_NOT_EMPTY = 18, SSH_FX_NOT_A_DIRECTORY = 19, SSH_FX_INVALID_FILENAME = 20, SSH_FX_LINK_LOOP = 21, SSH_FX_CANNOT_DELETE = 22, SSH_FX_INVALID_PARAMETER = 23, SSH_FX_FILE_IS_A_DIRECTORY = 24, SSH_FX_BYTE_RANGE_LOCK_CONFLICT = 25, SSH_FX_BYTE_RANGE_LOCK_REFUSED = 26, SSH_FX_DELETE_PENDING = 27, SSH_FX_FILE_CORRUPT = 28, SSH_FX_OWNER_INVALID = 29, SSH_FX_GROUP_INVALID = 30, SSH_FX_NO_MATCHING_BYTE_RANGE_LOCK = 31, SSH_PENDING_TIMEOUT_CONNECT_TO_SUCCESSFUL_AUTH = PENDING_TIMEOUT_USER_REASON_BASE + 0, SSH_AUTH_STATE_NO_AUTH = 0, SSH_AUTH_STATE_GAVE_AUTH_IGNORE_REQS = 1, }; #define LWS_SSH_INITIAL_WINDOW 16384 struct lws_ssh_userauth { struct lws_genhash_ctx hash_ctx; char *username; char *service; char *alg; uint8_t *pubkey; uint32_t pubkey_len; uint8_t *sig; uint32_t sig_len; char sig_present; }; struct lws_ssh_keys { /* 3 == SSH_KEYIDX_IV (len=4), SSH_KEYIDX_ENC, SSH_KEYIDX_INTEG */ uint8_t key[3][LWS_SIZE_CHACHA256_KEY]; /* opaque allocation made when cipher activated */ void *cipher; uint8_t MAC_length; uint8_t padding_alignment; /* block size */ uint8_t valid:1; uint8_t full_length:1; }; struct lws_kex { uint8_t kex_r[256]; uint8_t Q_C[LWS_SIZE_EC25519]; /* client eph public key aka 'e' */ uint8_t eph_pri_key[LWS_SIZE_EC25519]; /* server eph private key */ uint8_t Q_S[LWS_SIZE_EC25519]; /* server ephemeral public key */ uint8_t kex_cookie[16]; uint8_t *I_C; /* malloc'd copy of client KEXINIT payload */ uint8_t *I_S; /* malloc'd copy of server KEXINIT payload */ uint32_t I_C_payload_len; uint32_t I_C_alloc_len; uint32_t I_S_payload_len; uint32_t kex_r_len; uint8_t match_bitfield; uint8_t newkeys; /* which sides newkeys have been applied */ struct lws_ssh_keys keys_next_cts; struct lws_ssh_keys keys_next_stc; }; struct lws_subprotocol_scp { char fp[128]; uint64_t len; uint32_t attr; char cmd; char ips; }; typedef union { struct lws_subprotocol_scp scp; } lws_subprotocol; struct per_session_data__sshd; struct lws_ssh_channel { struct lws_ssh_channel *next; struct per_session_data__sshd *pss; lws_subprotocol *sub; /* NULL, or allocated subprotocol state */ void *priv; /* owned by user code */ int type; uint32_t server_ch; uint32_t sender_ch; int32_t window; int32_t peer_window_est; uint32_t max_pkt; uint32_t spawn_pid; int retcode; uint8_t scheduled_close:1; uint8_t sent_close:1; uint8_t received_close:1; }; struct per_vhost_data__sshd; struct per_session_data__sshd { struct per_session_data__sshd *next; struct per_vhost_data__sshd *vhd; struct lws *wsi; struct lws_kex *kex; char *disconnect_desc; uint8_t K[LWS_SIZE_EC25519]; /* shared secret */ uint8_t session_id[LWS_SIZE_SHA256]; /* H from first working KEX */ char name[64]; char last_auth_req_username[32]; char last_auth_req_service[32]; struct lws_ssh_keys active_keys_cts; struct lws_ssh_keys active_keys_stc; struct lws_ssh_userauth *ua; struct lws_ssh_channel *ch_list; struct lws_ssh_channel *ch_temp; uint8_t *last_alloc; union { struct lws_ssh_pty pty; char aux[64]; } args; uint32_t ssh_sequence_ctr_cts; uint32_t ssh_sequence_ctr_stc; uint64_t payload_bytes_cts; uint64_t payload_bytes_stc; uint32_t disconnect_reason; char V_C[64]; /* Client version String */ uint8_t packet_assembly[2048]; uint32_t pa_pos; uint32_t msg_len; uint32_t pos; uint32_t len; uint32_t ctr; uint32_t npos; uint32_t reason; uint32_t channel_doing_spawn; int next_ch_num; uint8_t K_S[LWS_SIZE_EC25519]; /* server public key */ uint32_t copy_to_I_C:1; uint32_t okayed_userauth:1; uint32_t sent_banner:1; uint32_t seen_auth_req_before:1; uint32_t serviced_stderr_last:1; uint32_t kex_state; uint32_t chrq_server_port; uint32_t ch_recip; uint32_t count_auth_attempts; char parser_state; char state_after_string; char first_coming; uint8_t rq_want_reply; uint8_t ssh_auth_state; uint8_t msg_id; uint8_t msg_padding; uint8_t write_task[8]; struct lws_ssh_channel *write_channel[8]; uint8_t wt_head, wt_tail; }; struct per_vhost_data__sshd { struct lws_context *context; struct lws_vhost *vhost; const struct lws_protocols *protocol; struct per_session_data__sshd *live_pss_list; const struct lws_ssh_ops *ops; }; struct host_keys { uint8_t *data; uint32_t len; }; extern struct host_keys host_keys[]; extern int crypto_scalarmult_curve25519(unsigned char *q, const unsigned char *n, const unsigned char *p); extern int ed25519_key_parse(uint8_t *p, size_t len, char *type, size_t type_len, uint8_t *pub, uint8_t *pri); extern int kex_ecdh(struct per_session_data__sshd *pss, uint8_t *result, uint32_t *plen); extern uint32_t lws_g32(uint8_t **p); extern uint32_t lws_p32(uint8_t *p, uint32_t v); extern int lws_timingsafe_bcmp(const void *a, const void *b, uint32_t len); extern const char *lws_V_S; extern int lws_chacha_activate(struct lws_ssh_keys *keys); extern void lws_chacha_destroy(struct lws_ssh_keys *keys); extern uint32_t lws_chachapoly_get_length(struct lws_ssh_keys *keys, uint32_t seq, const uint8_t *in4); extern void poly1305_auth(u_char out[POLY1305_TAGLEN], const u_char *m, size_t inlen, const u_char key[POLY1305_KEYLEN]); extern int lws_chacha_decrypt(struct lws_ssh_keys *keys, uint32_t seq, const uint8_t *ct, uint32_t len, uint8_t *pt); extern int lws_chacha_encrypt(struct lws_ssh_keys *keys, uint32_t seq, const uint8_t *ct, uint32_t len, uint8_t *pt); extern void lws_pad_set_length(struct per_session_data__sshd *pss, void *start, uint8_t **p, struct lws_ssh_keys *keys); extern size_t get_gen_server_key_25519(struct per_session_data__sshd *pss, uint8_t *b, size_t len); extern int crypto_sign_ed25519(unsigned char *sm, unsigned long long *smlen, const unsigned char *m, size_t mlen, const unsigned char *sk); extern int crypto_sign_ed25519_keypair(struct lws_context *context, uint8_t *pk, uint8_t *sk); #endif <file_sep># `struct lws_sequencer` introduction Often a single network action like a client GET is just part of a larger series of actions, perhaps involving different connections. Since lws operates inside an event loop, if the outer sequencing doesn't, it can be awkward to synchronize these steps with what's happening on the network with a particular connection on the event loop thread. ![lws_sequencer](/doc-assets/lws_sequencer.svg) `struct lws_sequencer` provides a generic way to stage multi-step operations from inside the event loop. Because it participates in the event loop similar to a wsi, it always operates from the service thread context and can access structures that share the service thread without locking. It can also provide its own higher-level timeout handling. Naturally you can have many of them running in the same event loop operating independently. Sequencers themselves bind to a pt (per-thread) service thread, by default there's only one of these and it's the same as saying they bind to an `lws_context`. The sequencer callback may create wsi which in turn are bound to a vhost, but the sequencer itself is above all that. ## Sequencer timeouts The sequencer additionally maintains its own second-resolution timeout checked by lws for the step being sequenced... this is independent of any lws wsi timeouts which tend to be set and reset for very short-term timeout protection inside one transaction. The sequencer timeout operates separately and above any wsi timeout, and is typically only reset by the sequencer callback when it receives an event indicating a step completed or failed, or it sets up the next sequence step. If the sequencer timeout expires, then the sequencer receives a queued `LWSSEQ_TIMED_OUT` message informing it, and it can take corrective action or schedule a retry of the step. This message is queued and sent normally under the service thread context and in order of receipt. Unlike lws timeouts which force the wsi to close, the sequencer timeout only sends the message. This allows the timeout to be used to, eg, wait out a retry cooloff period and then start the retry when the `LWSSEQ_TIMED_OUT` is received, according to the state of the sequencer. ## Creating an `struct lws_sequencer` ``` typedef struct lws_seq_info { struct lws_context *context; /* lws_context for seq */ int tsi; /* thread service idx */ size_t user_size; /* size of user alloc */ void **puser; /* place ptr to user */ lws_seq_event_cb cb; /* seq callback */ const char *name; /* seq name */ const lws_retry_bo_t *retry; /* retry policy */ } lws_seq_info_t; ``` ``` struct lws_sequencer * lws_sequencer_create(lws_seq_info_t *info); ``` When created, in lws the sequencer objects are bound to a 'per-thread', which is by default the same as to say bound to the `lws_context`. You can tag them with an opaque user data pointer, and they are also bound to a user-specified callback which handles sequencer events ``` typedef int (*lws_seq_event_cb)(struct lws_sequencer *seq, void *user_data, lws_seq_events_t event, void *data); ``` `struct lws_sequencer` objects are private to lws and opaque to the user. A small set of apis lets you perform operations on the pointer returned by the create api. ## Queueing events on a sequencer Each sequencer object can be passed "events", which are held on a per-sequencer queue and handled strictly in the order they arrived on subsequent event loops. `LWSSEQ_CREATED` and `LWSSEQ_DESTROYED` events are produced by lws reflecting the sequencer's lifecycle, but otherwise the event indexes have a user-defined meaning and are queued on the sequencer by user code for eventual consumption by user code in the sequencer callback. Pending events are removed from the sequencer queues and sent to the sequencer callback from inside the event loop at a rate of one per event loop wait. ## Destroying sequencers `struct lws_sequencer` objects are cleaned up during context destruction if they are still around. Normally the sequencer callback receives a queued message that informs it that it's either failed at the current step, or succeeded and that was the last step, and requests that it should be destroyed by returning `LWSSEQ_RET_DESTROY` from the sequencer callback. ## Lifecycle considerations Sequencers may spawn additional assets like client wsi as part of the sequenced actions... the lifecycle of the sequencer and the assets overlap but do not necessarily depend on each other... that is a wsi created by the sequencer may outlive the sequencer. It's important therefore to detach assets from the sequencer and the sequencer from the assets when each step is over and the asset is "out of scope" for the sequencer. It doesn't necessarily mean closing the assets, just making sure pointers are invalidated. For example, if a client wsi held a pointer to the sequencer as its `.user_data`, when the wsi is out of scope for the sequencer it can set it to NULL, eg, `lws_set_wsi_user(wsi, NULL);`. Under some conditions wsi may want to hang around a bit to see if there is a subsequent client wsi transaction they can be reused on. They will clean themselves up when they time out. ## Watching wsi lifecycle from a sequencer When a sequencer is creating a wsi as part of its sequence, it will be very interested in lifecycle events. At client wsi creation time, the sequencer callback can set info->seq to itself in order to receive lifecycle messages about its wsi. |message|meaning| |---|---| |`LWSSEQ_WSI_CONNECTED`|The wsi has become connected| |`LWSSEQ_WSI_CONN_FAIL`|The wsi has failed to connect| |`LWSSEQ_WSI_CONN_CLOSE`|The wsi had been connected, but has now closed| By receiving these, the sequencer can understand when it should attempt reconnections or that it cannot progress the sequence. When dealing with wsi that were created by the sequencer, they may close at any time, eg, be closed by the remote peer or an intermediary. The `LWSSEQ_WSI_CONN_CLOSE` message may have been queued but since they are strictly handled in the order they arrived, before it was handled an earlier message may want to cause some api to be called on the now-free()-d wsi. To detect this situation safely, there is a sequencer api `lws_sequencer_check_wsi()` which peeks the message buffer and returns nonzero if it later contains an `LWSSEQ_WSI_CONN_CLOSE` already. <file_sep>/** @file noja_webserver_cfg.h * Contain common libwebserver configurations declaration * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _NOJA_WEBSERVER_CFG_H #define _NOJA_WEBSERVER_CFG_H /** HTTPS default port number */ #define NWS_PORT_DEFAULT 80 /** Websocket defaukt pingpong interval in seconds */ #define NWS_PINGPONG_INTERVAL_DEFAULT 10 /** libwebsockets defaukt service interval in milliseconds */ #define NWS_SERVICE_INTERVAL_DEFAULT 100 /** Webserver mount point */ #define NWS_MOUNT_DIR "/var/www/html/mount" /** MOUNT directory relative to MOUNT directory */ #define NWS_MOUNT_PUBLIC "public" /** HTML directory relative to PUBLIC directory */ #define NWS_PUBLIC_HTML NWS_MOUNT_PUBLIC "/html" /** built-ins directory relative to PUBLIC directory */ #define NWS_PUBLIC_BUILTIN NWS_MOUNT_PUBLIC "/built-in" /** built-ins directory relative to PUBLIC directory */ #define NWS_MOUNT_STAGING "staging" /** Maximum length of resource path */ #define NWS_MAX_PATH_LENGTH 255 /** Maximum number of language versions */ #define NWS_MAX_LANG_VER 2 /** Maximum language translation a language version can have */ #define NWS_MAX_LANG_TRANSLATIONS 10 /** Maximum length of any name entity in any Webserver structure */ #define NWS_MAX_NAME_LENGTH 255 /** define the maximum pages the website can have */ #define NWS_MAX_PAGES 100 /** define the maximum redirects the webserver can support */ #define NWS_MAX_REDIRECTS 10 /** specify the maximum protocol and subprotocol supported */ #define NWS_MAX_PROTOCOLS 10 /** Webserver default virtual host name */ #define NWS_WEBSERVER_ROOT_URL "relay20xx.nojapower.com" #endif <file_sep># lws api test smtp client Demonstrates how to send email through your local MTA ## build Requires lws was built with `-DLWS_WITH_SMTP=1` at cmake. ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -r <<EMAIL>>|Send the test email to this email address ``` $ ./lws-api-test-smtp_client -r <EMAIL> [2019/04/17 05:12:06:5293] USER: LWS API selftest: SMTP client [2019/04/17 05:12:06:5635] NOTICE: LGSSMTP_IDLE: connecting to 127.0.0.1:25 [2019/04/17 05:12:06:6238] NOTICE: email_sent_or_failed: sent OK [2019/04/17 05:12:06:6394] USER: Completed: PASS ``` <file_sep># Secure Streams Secure Streams is a client API that strictly decouples the policy for connections from the payloads. The user code only deals with the stream type name and payloads, a policy database set at `lws_context` creation time decides all policy about the connection, including the endpoint, tls CA, and even the wire protocol. |name|demonstrates| ---|--- minimal-secure-streams|Minimal secure streams client / proxy example minimal-secure-streams-tx|Proxy used for client-tx test below minimal-secure-streams-client-tx|Secure streams client showing tx and rx <file_sep>|Example|Demonstrates| ---|--- minimal-http-server-basicauth|Shows how to protect a mount using a password file and basic auth minimal-http-server-custom-headers|Shows how to query custom headers that lws doesn't already know minimal-http-server-deaddrop|Shows how to use the deaddrop drag and drop file upload + sharing plugin minimal-http-server-dynamic|Serves both static and dynamically generated http content minimal-http-server-eventlib-foreign|Demonstrates integrating lws with a foreign event library minimal-http-server-eventlib-demos|Using the demo plugins with event libraries minimal-http-server-eventlib|Same as minimal-http-server but works with a supported event library minimal-http-server-form-get|Process a GET form minimal-http-server-form-post-file|Process a multipart POST form with file transfer minimal-http-server-form-post|Process a POST form (no file transfer) minimal-http-server-fulltext-search|Demonstrates using lws Fulltext Search minimal-http-server-mimetypes|Shows how to add support for additional mimetypes at runtime minimal-http-server-multivhost|Same as minimal-http-server but three different vhosts minimal-http-server-proxy|Reverse Proxy minimal-http-server-smp|Multiple service threads minimal-http-server-sse-ring|Server Side Events with ringbuffer and threaded event sources minimal-http-server-sse|Simple Server Side Events minimal-http-server-tls-80|Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler, redirect to https on port 80 minimal-http-server-tls-mem|Serves using TLS with the cert and key provided as memory buffers instead of files minimal-http-server-tls|Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler minimal-http-server|Serves a directory over http/1, custom 404 handler <file_sep>/** @file noja_webserver_type.h * Main header file for the implementation of REL20 Webserver Library * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _NOJA_WEBSERVER_TYPE_H #define _NOJA_WEBSERVER_TYPE_H /** @ingroup group_main_apis * @brief Webserver handle to distinguish different webserver context */ typedef void* NwsContext; /** @ingroup group_main_apis * @brief 16-bit HTTP port number */ typedef unsigned short NwsHttpPort; /** @ingroup group_main_apis * @brief 8-bit time interval. Each tick represent one second */ typedef unsigned char NwsTimeIntervalS; /** @ingroup group_main_apis * @brief 16-bit time interval. Each tick represent one millisecond */ typedef unsigned short NwsTimeIntervalMS; /** @ingroup group_main_apis * @brief List of error codes for Webserver APIs * * The following enum is a list of Webserver API implemntation error codes. * NOTE: This enum should be defined in the Data Manager */ enum NwsErrors_e { /** No error occured */ NwsError_Ok, /** WEbserver context is NULL or invalid*/ NwsError_InvalidContext, /** ping-pong interval is out-of-range */ NwsError_PingPongInterval, /** specified mount directory does not exists */ NwsError_MountNotExists, /** no website package to load or website package has missing/invalid resources*/ NwsError_NoWebsitePackage, /** website package failed signature check */ NwsError_WebsitePackageSignature, /** website package version is not supported by the current Webserver version */ NwsError_WebsitePackageVersion, /** configuration file failed to load */ NwsError_ConfigurationFile, /** configuration file not found */ NwsError_NoConfigurationFile, /** specified port is invalid or reserved */ NwsError_Port, /** no SSL certificate and private key to use for secured connection */ NwsError_SSLCertificate, /** the webserver is already active */ NwsError_WebserverActive, /** the webserver is already not active */ NwsError_WebserverNotActive, /** the webserver not initialise */ NwsError_WebserverNotInitialise, /** One or more file in the website package is missing */ NwsError_OneOrMoreFileMissing, /** General error occured */ NwsError_Ng }; /** @ingroup group_main_apis * @brief List of error codes for Webserver APIs*/ typedef enum NwsErrors_e NwsErrors; #endif <file_sep>[run] branch = True source = cryptography tests/ [paths] source = src/cryptography .tox/*/lib/python*/site-packages/cryptography .tox/pypy/site-packages/cryptography [report] exclude_lines = @abc.abstractmethod @abc.abstractproperty <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/err.h> """ TYPES = """ static const int Cryptography_HAS_EC_CODES; static const int Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR; static const int ERR_LIB_DH; static const int ERR_LIB_EVP; static const int ERR_LIB_EC; static const int ERR_LIB_PEM; static const int ERR_LIB_ASN1; static const int ERR_LIB_RSA; static const int ERR_LIB_PKCS12; static const int ERR_LIB_SSL; static const int ERR_LIB_X509; static const int ASN1_R_BOOLEAN_IS_WRONG_LENGTH; static const int ASN1_R_BUFFER_TOO_SMALL; static const int ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER; static const int ASN1_R_DATA_IS_WRONG; static const int ASN1_R_DECODE_ERROR; static const int ASN1_R_DEPTH_EXCEEDED; static const int ASN1_R_ENCODE_ERROR; static const int ASN1_R_ERROR_GETTING_TIME; static const int ASN1_R_ERROR_LOADING_SECTION; static const int ASN1_R_MSTRING_WRONG_TAG; static const int ASN1_R_NESTED_ASN1_STRING; static const int ASN1_R_NO_MATCHING_CHOICE_TYPE; static const int ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM; static const int ASN1_R_UNKNOWN_OBJECT_TYPE; static const int ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE; static const int ASN1_R_UNKNOWN_TAG; static const int ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE; static const int ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE; static const int ASN1_R_UNSUPPORTED_TYPE; static const int ASN1_R_WRONG_TAG; static const int ASN1_R_NO_CONTENT_TYPE; static const int ASN1_R_NO_MULTIPART_BODY_FAILURE; static const int ASN1_R_NO_MULTIPART_BOUNDARY; static const int ASN1_R_HEADER_TOO_LONG; static const int DH_R_INVALID_PUBKEY; static const int EVP_F_EVP_ENCRYPTFINAL_EX; static const int EVP_R_AES_KEY_SETUP_FAILED; static const int EVP_R_BAD_DECRYPT; static const int EVP_R_CIPHER_PARAMETER_ERROR; static const int EVP_R_CTRL_NOT_IMPLEMENTED; static const int EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED; static const int EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH; static const int EVP_R_DECODE_ERROR; static const int EVP_R_DIFFERENT_KEY_TYPES; static const int EVP_R_INITIALIZATION_ERROR; static const int EVP_R_INPUT_NOT_INITIALIZED; static const int EVP_R_INVALID_KEY_LENGTH; static const int EVP_R_KEYGEN_FAILURE; static const int EVP_R_MISSING_PARAMETERS; static const int EVP_R_NO_CIPHER_SET; static const int EVP_R_NO_DIGEST_SET; static const int EVP_R_PUBLIC_KEY_NOT_RSA; static const int EVP_R_UNKNOWN_PBE_ALGORITHM; static const int EVP_R_UNSUPPORTED_CIPHER; static const int EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION; static const int EVP_R_UNSUPPORTED_KEYLENGTH; static const int EVP_R_UNSUPPORTED_SALT_TYPE; static const int EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM; static const int EVP_R_WRONG_FINAL_BLOCK_LENGTH; static const int EVP_R_CAMELLIA_KEY_SETUP_FAILED; static const int EC_R_UNKNOWN_GROUP; static const int PEM_R_BAD_BASE64_DECODE; static const int PEM_R_BAD_DECRYPT; static const int PEM_R_BAD_END_LINE; static const int PEM_R_BAD_IV_CHARS; static const int PEM_R_BAD_PASSWORD_READ; static const int PEM_R_ERROR_CONVERTING_PRIVATE_KEY; static const int PEM_R_NO_START_LINE; static const int PEM_R_NOT_DEK_INFO; static const int PEM_R_NOT_ENCRYPTED; static const int PEM_R_NOT_PROC_TYPE; static const int PEM_R_PROBLEMS_GETTING_PASSWORD; static const int PEM_R_READ_KEY; static const int PEM_R_SHORT_HEADER; static const int PEM_R_UNSUPPORTED_CIPHER; static const int PEM_R_UNSUPPORTED_ENCRYPTION; static const int PKCS12_R_PKCS12_CIPHERFINAL_ERROR; static const int RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE; static const int RSA_R_DATA_TOO_LARGE_FOR_MODULUS; static const int RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY; static const int RSA_R_BLOCK_TYPE_IS_NOT_01; static const int RSA_R_BLOCK_TYPE_IS_NOT_02; static const int RSA_R_PKCS_DECODING_ERROR; static const int RSA_R_OAEP_DECODING_ERROR; static const int SSL_TLSEXT_ERR_OK; static const int SSL_TLSEXT_ERR_ALERT_WARNING; static const int SSL_TLSEXT_ERR_ALERT_FATAL; static const int SSL_TLSEXT_ERR_NOACK; static const int SSL_AD_CLOSE_NOTIFY; static const int SSL_AD_UNEXPECTED_MESSAGE; static const int SSL_AD_BAD_RECORD_MAC; static const int SSL_AD_RECORD_OVERFLOW; static const int SSL_AD_DECOMPRESSION_FAILURE; static const int SSL_AD_HANDSHAKE_FAILURE; static const int SSL_AD_BAD_CERTIFICATE; static const int SSL_AD_UNSUPPORTED_CERTIFICATE; static const int SSL_AD_CERTIFICATE_REVOKED; static const int SSL_AD_CERTIFICATE_EXPIRED; static const int SSL_AD_CERTIFICATE_UNKNOWN; static const int SSL_AD_ILLEGAL_PARAMETER; static const int SSL_AD_UNKNOWN_CA; static const int SSL_AD_ACCESS_DENIED; static const int SSL_AD_DECODE_ERROR; static const int SSL_AD_DECRYPT_ERROR; static const int SSL_AD_PROTOCOL_VERSION; static const int SSL_AD_INSUFFICIENT_SECURITY; static const int SSL_AD_INTERNAL_ERROR; static const int SSL_AD_USER_CANCELLED; static const int SSL_AD_NO_RENEGOTIATION; static const int SSL_AD_UNSUPPORTED_EXTENSION; static const int SSL_AD_CERTIFICATE_UNOBTAINABLE; static const int SSL_AD_UNRECOGNIZED_NAME; static const int SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE; static const int SSL_AD_BAD_CERTIFICATE_HASH_VALUE; static const int SSL_AD_UNKNOWN_PSK_IDENTITY; static const int X509_R_CERT_ALREADY_IN_HASH_TABLE; """ FUNCTIONS = """ void ERR_error_string_n(unsigned long, char *, size_t); const char *ERR_lib_error_string(unsigned long); const char *ERR_func_error_string(unsigned long); const char *ERR_reason_error_string(unsigned long); unsigned long ERR_get_error(void); unsigned long ERR_peek_error(void); unsigned long ERR_peek_last_error(void); void ERR_clear_error(void); void ERR_put_error(int, int, int, const char *, int); int ERR_GET_LIB(unsigned long); int ERR_GET_FUNC(unsigned long); int ERR_GET_REASON(unsigned long); """ CUSTOMIZATIONS = """ static const long Cryptography_HAS_EC_CODES = 1; #ifdef RSA_R_PKCS_DECODING_ERROR static const long Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR = 1; #else static const long Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR = 0; static const long RSA_R_PKCS_DECODING_ERROR = 0; #endif """ <file_sep>Overview of lws test apps ========================= Are you building a client? You just need to look at the test client [libwebsockets-test-client](../test-apps/test-client.c). If you are building a standalone server, there are three choices, in order of preferability. 1) lwsws + protocol plugins Lws provides a generic web server app that can be configured with JSON config files. https://libwebsockets.org itself uses this method. With lwsws handling the serving part, you only need to write an lws protocol plugin. See [plugin-standalone](../plugin-standalone) for an example of how to do that outside lws itself, using lws public apis. $ cmake .. -DLWS_WITH_LWSWS=1 See [README.lwsws.md](../READMEs/README.lwsws.md) for information on how to configure lwsws. NOTE this method implies libuv is used by lws, to provide crossplatform implementations of timers, dynamic lib loading etc for plugins and lwsws. 2) Using plugins in code This method lets you configure web serving in code, instead of using lwsws. Plugins are still used, but you have a choice whether to dynamically load them or statically include them. In this example, they are dynamically loaded. $ cmake .. -DLWS_WITH_PLUGINS=1 See, eg, the [test-server](../test-apps/test-server.c) 3) protocols in the server app This is the original way lws implemented servers, plugins and libuv are not required, but without plugins separating the protocol code directly, the combined code is all squidged together and is much less maintainable. This method is still supported in lws but all ongoing and future work is being done in protocol plugins only. You can simply include the plugin contents and have it buit statically into your server, just define this before including the plugin source ``` #define LWS_PLUGIN_STATIC ``` This gets you most of the advantages without needing dynamic loading + libuv. Notes about lws test apps ========================= @section tsb Testing server with a browser If you run [libwebsockets-test-server](../test-apps/test-server.c) and point your browser (eg, Chrome) to http://127.0.0.1:7681 It will fetch a script in the form of `test.html`, and then run the script in there on the browser to open a websocket connection. Incrementing numbers should appear in the browser display. By default the test server logs to both stderr and syslog, you can control what is logged using `-d <log level>`, see later. @section tsd Running test server as a Daemon You can use the -D option on the test server to have it fork into the background and return immediately. In this daemonized mode all stderr is disabled and logging goes only to syslog, eg, `/var/log/messages` or similar. The server maintains a lockfile at `/tmp/.lwsts-lock` that contains the pid of the master process, and deletes this file when the master process terminates. To stop the daemon, do ``` $ kill \`cat /tmp/.lwsts-lock\` ``` If it finds a stale lock (the pid mentioned in the file does not exist any more) it will delete the lock and create a new one during startup. If the lock is valid, the daemon will exit with a note on stderr that it was already running. @section clicert Testing Client Certs Here is a very quick way to create a CA, and a client and server cert from it, for testing. ``` $ cp -rp ./scripts/client-ca /tmp $ cd /tmp/client-ca $ ./create-ca.sh $ ./create-server-cert.sh server $ ./create-client-cert.sh client ``` The last step wants an export password, you will need this password again to import the p12 format certificate into your browser. This will get you the following |name|function| |----|--------| |ca.pem|Your Certificate Authority cert| |ca.key|Private key for the CA cert| |client.pem|Client certificate, signed by your CA| |client.key|Client private key| |client.p12|combined client.pem + client.key in p12 format for browsers| |server.pem|Server cert, signed by your CA| |server.key|Server private key| You can confirm yourself the client and server certs are signed by the CA. ``` $ openssl verify -verbose -trusted ca.pem server.pem $ openssl verify -verbose -trusted ca.pem client.pem ``` Import the client.p12 file into your browser. In FFOX57 it's - preferences - Privacy & Security - Certificates | View Certificates - Certificate Manager | Your Certificates | Import... - Enter the password you gave when creating client1.p12 - Click OK. You can then run the test server like this: ``` $ libwebsockets-test-server -s -A ca.pem -K server.key -C server.pem -v ``` When you connect your browser to https://localhost:7681 after accepting the selfsigned server cert, your browser will pop up a prompt to send the server your client cert (the -v switch enables this). The server will only accept a client cert that has been signed by ca.pem. @section sssl Using SSL on the server side To test it using SSL/WSS, just run the test server with ``` $ libwebsockets-test-server --ssl ``` and use the URL ``` https://127.0.0.1:7681 ``` The connection will be entirely encrypted using some generated certificates that your browser will not accept, since they are not signed by any real Certificate Authority. Just accept the certificates in the browser and the connection will proceed in first https and then websocket wss, acting exactly the same. [test-server.c](../test-apps/test-server.c) is all that is needed to use libwebsockets for serving both the script html over http and websockets. @section lwstsdynvhost Dynamic Vhosts You can send libwebsockets-test-server or libwebsockets-test-server-v2.0 a SIGUSR1 to toggle the creation and destruction of an identical second vhost on port + 1. This is intended as a test and demonstration for how to bring up and remove vhosts dynamically. @section unixskt Testing Unix Socket Server support Start the test server with -U and the path to create the unix domain socket ``` $ libwebsockets-test-server -U /tmp/uds ``` On exit, lws will delete the socket inode. To test the client side, eg ``` $ nc -C -U /tmp/uds -i 30 ``` and type `GET / HTTP/1.1` followed by two ENTER. The contents of test.html should be returned. @section wscl Testing websocket client support If you run the test server as described above, you can also connect to it using the test client as well as a browser. ``` $ libwebsockets-test-client localhost ``` will by default connect to the test server on localhost:7681 and print the dumb increment number from the server at the same time as drawing random circles in the mirror protocol; if you connect to the test server using a browser at the same time you will be able to see the circles being drawn. The test client supports SSL too, use ``` $ libwebsockets-test-client localhost --ssl -s ``` the -s tells it to accept the default self-signed cert from the server, otherwise it will strictly fail the connection if there is no CA cert to validate the server's certificate. @section choosingts Choosing between test server variations If you will be doing standalone serving with lws, ideally you should avoid making your own server at all, and use lwsws with your own protocol plugins. The second best option is follow test-server-v2.0.c, which uses a mount to autoserve a directory, and lws protocol plugins for ws, without needing any user callback code (other than what's needed in the protocol plugin). For those two options libuv is needed to support the protocol plugins, if that's not possible then the other variations with their own protocol code should be considered. @section tassl Testing SSL on the client side To test SSL/WSS client action, just run the client test with ``` $ libwebsockets-test-client localhost --ssl ``` By default the client test applet is set to accept self-signed certificates used by the test server, this is indicated by the `use_ssl` var being set to `2`. Set it to `1` to reject any server certificate that it doesn't have a trusted CA cert for. @section taping Using the websocket ping utility libwebsockets-test-ping connects as a client to a remote websocket server and pings it like the normal unix ping utility. ``` $ libwebsockets-test-ping localhost handshake OK for protocol lws-mirror-protocol Websocket PING localhost.localdomain (127.0.0.1) 64 bytes of data. 64 bytes from localhost: req=1 time=0.1ms 64 bytes from localhost: req=2 time=0.1ms 64 bytes from localhost: req=3 time=0.1ms 64 bytes from localhost: req=4 time=0.2ms 64 bytes from localhost: req=5 time=0.1ms 64 bytes from localhost: req=6 time=0.2ms 64 bytes from localhost: req=7 time=0.2ms 64 bytes from localhost: req=8 time=0.1ms ^C --- localhost.localdomain websocket ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7458ms rtt min/avg/max = 0.110/0.185/0.218 ms $ ``` By default it sends 64 byte payload packets using the 04 PING packet opcode type. You can change the payload size using the `-s=` flag, up to a maximum of 125 mandated by the 04 standard. Using the lws-mirror protocol that is provided by the test server, libwebsockets-test-ping can also use larger payload sizes up to 4096 is BINARY packets; lws-mirror will copy them back to the client and they appear as a PONG. Use the `-m` flag to select this operation. The default interval between pings is 1s, you can use the -i= flag to set this, including fractions like `-i=0.01` for 10ms interval. Before you can even use the PING opcode that is part of the standard, you must complete a handshake with a specified protocol. By default lws-mirror-protocol is used which is supported by the test server. But if you are using it on another server, you can specify the protocol to handshake with by `--protocol=protocolname` @section ta fraggle Fraggle test app By default it runs in server mode ``` $ libwebsockets-test-fraggle libwebsockets test fraggle (C) Copyright 2010-2011 <NAME> <<EMAIL>> licensed under MIT Compiled with SSL support, not using it Listening on port 7681 server sees client connect accepted v06 connection Spamming 360 random fragments Spamming session over, len = 371913. sum = 0x2D3C0AE Spamming 895 random fragments Spamming session over, len = 875970. sum = 0x6A74DA1 ... ``` You need to run a second session in client mode, you have to give the `-c` switch and the server address at least: ``` $ libwebsockets-test-fraggle -c localhost libwebsockets test fraggle (C) Copyright 2010-2011 <NAME> <<EMAIL>.com> licensed under MIT Client mode Connecting to localhost:7681 denied deflate-stream extension handshake OK for protocol fraggle-protocol client connects to server EOM received 371913 correctly from 360 fragments EOM received 875970 correctly from 895 fragments EOM received 247140 correctly from 258 fragments EOM received 695451 correctly from 692 fragments ... ``` The fraggle test sends a random number up to 1024 fragmented websocket frames each of a random size between 1 and 2001 bytes in a single message, then sends a checksum and starts sending a new randomly sized and fragmented message. The fraggle test client receives the same message fragments and computes the same checksum using websocket framing to see when the message has ended. It then accepts the server checksum message and compares that to its checksum. @section taproxy proxy support The http_proxy environment variable is respected by the client connection code for both `ws://` and `wss://`. It doesn't support authentication. You use it like this ``` $ export http_proxy=myproxy.com:3128 $ libwebsockets-test-client someserver.com ``` @section talog debug logging By default logging of severity "notice", "warn" or "err" is enabled to stderr. Again by default other logging is compiled in but disabled from printing. By default debug logs below "notice" in severity are not compiled in. To get them included, add this option in CMAKE ``` $ cmake .. -DCMAKE_BUILD_TYPE=DEBUG ``` If you want to see more detailed debug logs, you can control a bitfield to select which logs types may print using the `lws_set_log_level()` api, in the test apps you can use `-d <number>` to control this. The types of logging available are (OR together the numbers to select multiple) - 1 ERR - 2 WARN - 4 NOTICE - 8 INFO - 16 DEBUG - 32 PARSER - 64 HEADER - 128 EXTENSION - 256 CLIENT - 512 LATENCY @section ws13 Websocket version supported The final IETF standard is supported for both client and server, protocol version 13. @section latency Latency Tracking Since libwebsockets runs using `poll()` and a single threaded approach, any unexpected latency coming from system calls would be bad news. There's now a latency tracking scheme that can be built in with `-DLWS_WITH_LATENCY=1` at cmake, logging the time taken for system calls to complete and if the whole action did complete that time or was deferred. You can see the detailed data by enabling logging level 512 (eg, `-d 519` on the test server to see that and the usual logs), however even without that the "worst" latency is kept and reported to the logs with NOTICE severity when the context is destroyed. Some care is needed interpreting them, if the action completed the first figure (in us) is the time taken for the whole action, which may have retried through the poll loop many times and will depend on network roundtrip times. High figures here don't indicate a problem. The figure in us reported after "lat" in the logging is the time taken by this particular attempt. High figures here may indicate a problem, or if you system is loaded with another app at that time, such as the browser, it may simply indicate the OS gave preferential treatment to the other app during that call. @section autobahn Autobahn Test Suite Lws can be tested against the autobahn websocket fuzzer in both client and server modes 1) pip install autobahntestsuite 2) From your build dir: ``` $ cmake .. -DLWS_WITHOUT_EXTENSIONS=0 -DLWS_WITH_MINIMAL_EXAMPLES=1 && make ``` 3) ../scripts/autobahn-test.sh 4) In a browser go to the directory you ran wstest in (eg, /projects/libwebsockets) file:///projects/libwebsockets/build/reports/clients/index.html to see the results @section autobahnnotes Autobahn Test Notes 1) Two of the tests make no sense for Libwebsockets to support and we fail them. - Tests 2.10 + 2.11: sends multiple pings on one connection. Lws policy is to only allow one active ping in flight on each connection, the rest are dropped. The autobahn test itself admits this is not part of the standard, just someone's random opinion about how they think a ws server should act. So we will fail this by design and it is no problem about RFC6455 compliance. 2) Currently two parts of autobahn are broken and we skip them https://github.com/crossbario/autobahn-testsuite/issues/71 <file_sep>/** @file noja_webserver.c * REL-20 Webserver interface implementation * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #include <stdio.h> #include "noja_webserver_cmn.h" #include "noja_webserver_pkg.h" #include "noja_webserver_http.h" #include "noja_webserver_mem.h" /** @ingroup group_main_apis * @brief Call to initialise the Webserver module. * * This API will initialise the Webserver module. When called, the Webserver will parse the configuration file * present in the mount directory. On successful configuration parsing, the Webserver will build the website based * from the configuration (e.g. setup all URLs, redirects). Calling this function while the Webserver is active will * result to error and may terminate the Webserver process. * * @param[in] port Specify the port the HTTP protocol will use. Normal value for this parameter are 80, 443 (preferred), and 8080 * Make sure the port specified in not reserved. * @param[in] serviceInterval Specify the webserver process service interval. This is the minimum amount of time (in millisecond) * the Webserver process will be blocked to allow the processes with equal or lower priority CPU time. * @param[in] pingPongInterval Specify the amount of time (in seconds) the Webserver will wait for the pong reply * to its ping request before terminating the connection. For details about the ping-pong frames, refer to https://tools.ietf.org/html/rfc6455. * @param[in] mount Specify the path to the mount directory * @param[out] context Handle to the context of the current webserver intance. * @return NwsError_MountNotExists the specified mount directory does not exists * @return NwsError_NoWebsitePackage No website package is installed in the mount directory * @return NwsError_WebsitePackageVersion The current website package is not supported * @return NwsError_ConfigurationFile The configuration file failed to load due to error * @return NwsError_NoConfigurationFile Specified configuration file does not exists. * @return NwsError_OneOrMoreFileMissing One or more referenced file in the config is not found in the package * @return NwsError_Port The specified port is invalid or reserved * @return NwsError_SSLCertificate Unable to get the SSL certificate and private key for establishing secured connection * @return NwsError_Ng General error occured */ NwsErrors nwsInitialise(NwsHttpPort port, NwsTimeIntervalMS serviceInterval, NwsTimeIntervalS pingPongInterval, const char* mount, NwsContext *context) { struct lws_context_creation_info createInfo; NwsContextInternal *ctxInt; NwsErrors result = NwsError_Ok; int index; if ( mount == NULL || context == NULL) { SYSERR(SYS_INFO, "Invalid parameters"); return NwsError_Ng; } ctxInt = (NwsContextInternal*) NWSALLOC(NULL, sizeof(NwsContextInternal)); memset(ctxInt, 0, sizeof(NwsContextInternal)); *context = ctxInt; /* set website path */ snprintf(ctxInt->mounts.html, NWS_MAX_PATH_LENGTH, "%s/%s", mount, NWS_PUBLIC_HTML); snprintf(ctxInt->mounts.builtins, NWS_MAX_PATH_LENGTH, "%s/%s", mount, NWS_PUBLIC_BUILTIN); snprintf(ctxInt->mounts.staging, NWS_MAX_PATH_LENGTH, "%s/%s", mount, NWS_MOUNT_STAGING); ctxInt->port = port; ctxInt->srvcInt = serviceInterval; ctxInt->ppInt = pingPongInterval; /* TODO: check if an existing webserver is already initialised */ if( (result = nwsPackageConfirmVer(ctxInt->mounts.html, ctxInt)) != NwsError_Ok || (result = nwsConfirmPackageFiles(ctxInt->mounts.html)) != NwsError_Ok || (result = nwsParseConfig(ctxInt->mounts.html, ctxInt)) != NwsError_Ok) { return result; } memset(&createInfo, 0, sizeof(struct lws_context_creation_info)); createInfo.port = port; createInfo.mounts = ctxInt->cfg.pages; createInfo.ws_ping_pong_interval = pingPongInterval; createInfo.options = LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE; createInfo.timeout_secs = pingPongInterval; createInfo.vhost_name = NWS_WEBSERVER_ROOT_URL; for(index = 0; index <= NWS_MAX_REDIRECTS; index++) { if(ctxInt->cfg.redirects.redirect[index].code == 404) { createInfo.error_document_404 = ctxInt->cfg.redirects.redirect[index].page; break; } } ctxInt->cntx = lws_create_context(&createInfo); if (ctxInt->cntx == NULL) { SYSERR(SYS_INFO, "Failed to create the websocket context"); result = NwsError_Ng; } else if (lws_create_vhost(ctxInt->cntx, &createInfo) == 0) { SYSERR(SYS_INFO, "Failed to create the vhost"); result = NwsError_Ng; } #if defined(NWS_DEBUG) NwsConfiguration *cfg = &(ctxInt->cfg); fprintf(stdout, "------ Configuration ------\n"); fprintf(stdout, "Version: %d.%d\n", cfg->ver.maj, cfg->ver.min); fprintf(stdout, "Website:\n"); for(index = 0; index < NWS_MAX_PAGES; index++) { struct lws_http_mount *curPage = &(cfg->pages[index]); if(curPage->mountpoint == NULL) { continue; } while(strchr(curPage->origin,'\\')) { char *tmp = strchr(curPage->origin,'\\'); *tmp = '/'; } while(strchr(curPage->mountpoint,'\\')) { char *tmp = strchr(curPage->mountpoint,'\\'); *tmp = '/'; } fprintf(stdout, " [%d] Address: %08Xh; Next: %08Xh\n", index, (unsigned int)curPage, (unsigned int)curPage->mount_next); fprintf(stdout, " Origin: %s\n", curPage->origin ? curPage->origin : "NULL"); fprintf(stdout, " Protocol: %08Xh\n", (unsigned int)curPage->origin_protocol); fprintf(stdout, " Mount Point: %s\n", curPage->mountpoint ? curPage->mountpoint : "NULL"); fprintf(stdout, " Mount Point Length: %d\n", (unsigned int)curPage->mountpoint_len); fprintf(stdout, " Def: %s\n", curPage->def ? curPage->def : "NULL"); } NwsCfgRedirects *redirects = &(cfg->redirects); fprintf(stdout, "Redirects:\n"); for(index = 0; index < redirects->cnt; index++) { NwsCfgRedirect *redirect = &(redirects->redirect[index]); fprintf(stdout, " [%d] Code: %d\n", index, redirect->code); fprintf(stdout, " URL: %s\n",redirect->page); } #endif return result; } /** @ingroup group_main_apis * @brief Call to install new website package and configuration. * * This API will install new configuration and website package from the path specified in the parameter. This function will confirm the * configuration in the path specified follows the current configuraiton schema. The function will also confirm if the current website * package version is supported. Following these checks, this functions will check of the website package is complete based from the * configuration file included. * * @param[in] website Specify the path of the website package to install. * @return NwsError_Ok if no error occured * @return NwsError_NoWebsitePackage No website package to install or the website package is invalid * @return NwsError_WebsitePackageVersion The current website package is not supported * @return NwsError_WebsitePackageSignature Website package failed the signature verification and can't be trusted * @return NwsError_ConfigurationFile The configuration file failed to load due to error * @return NwsError_Ng General error occured */ NwsErrors nwsInstallWebsite(const char* website) { PARAM_UNUSED(website); return NwsError_Ok; } /** @ingroup group_main_apis * @brief Call to allow the Webserver to process and reply to requests * * Webserver process should call this function to allow the Webserver to handle new and pending requests. This function should * be called after a successful nwsInitialise call. Webserver will become active on initial call to this function. Call to this * function is blocking. If this function failed, the process should call the nwsStop function, calling this function again after * the previous call failed may result to unexpected behaviour. * * @param[in] ctx Context handle for the webserver to process. * @return NwsError_Ok if no error occured * @return NwsError_WebserverActive Another instance of the webserver is already running * @return NwsError_WebserverNotInitialise Webserver is currently not initialised * @return NwsError_Ng error occurred while the webserver is processing the requests */ NwsErrors nwsProcess(NwsContext ctx) { int result = 0; NwsContextInternal *ctxInt = ctx; if (ctx == NULL) { return NwsError_Ng; } if((result = lws_service(ctxInt->cntx, ctxInt->srvcInt)) < 0) { SYSERR(SYS_INFO, "Webserver lws_service failed! Error code: %d", result); return NwsError_Ng; } return NwsError_Ok; } /** @ingroup group_main_apis * @brief Call to terminate the Webserver service * * This API will stop the Webserver service. All current webserver sessions will terminate and may result to HTTP status 500 or 503 * in the client browser. When Webserver is stopped, the Webserver needs to intialise again before calling the nwsProcess function. * * @param[in] ctx Pointer to the context handle for the webserver to stop. * @return NwsError_Ok if no error occured * @return NwsError_WebserverNotActive There is no webserver to stop * @return NwsError_Ng error occurred while trying to stop the webserver */ NwsErrors nwsStop(NwsContext *ctx) { NwsContextInternal *contextLoc = NULL; int index; if ( ctx == NULL || *ctx == NULL) { SYSERR(SYS_INFO, "Invalid parameter"); return NwsError_Ng; } contextLoc = (NwsContextInternal *) *ctx; if(contextLoc->cntx) { lws_context_destroy(contextLoc->cntx); } /* release resources from mount point */ for(index = 0; index < NWS_MAX_PAGES; index++) { if(contextLoc->cfg.pages[index].def) { NWSFREE(contextLoc, (void*)contextLoc->cfg.pages[index].def, strbuflen(contextLoc->cfg.pages[index].def)); } if(contextLoc->cfg.pages[index].mountpoint) { NWSFREE(contextLoc, (void*)contextLoc->cfg.pages[index].mountpoint, strbuflen(contextLoc->cfg.pages[index].mountpoint)); } if(contextLoc->cfg.pages[index].origin) { NWSFREE(contextLoc, (void*)contextLoc->cfg.pages[index].origin, strbuflen(contextLoc->cfg.pages[index].origin)); } } if(contextLoc->memAllocCnt || contextLoc->memAllocSize) { SYSERR(SYS_INFO, "Possible memory leak exists!. Max Memory Allocated=%d bytes; Remaining Allocated" " Count: %d; Remaining Allocated Size: %d bytes", contextLoc->memHighSize + sizeof(NwsContextInternal), contextLoc->memAllocCnt, contextLoc->memAllocSize); } NWSFREE(NULL, contextLoc, sizeof(NwsContextInternal)); *ctx = NULL; return NwsError_Ok; } <file_sep># lws api test lws_tokenize Performs selftests for lws_tokenize ## build ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -s "input string"|String to tokenize -f 15|LWS_TOKENIZE_F_ flag values to apply to processing of -s ``` $ ./lws-api-test-lws_tokenize [2018/10/09 09:14:17:4834] USER: LWS API selftest: lws_tokenize [2018/10/09 09:14:17:4835] USER: Completed: PASS: 6, FAIL: 0 ``` If the `-s string` option is given, the string is tokenized on stdout in the format used to produce the tests in the sources ``` $ ./lws-api-test-lws_tokenize -s "hello: 1234,256" [2018/10/09 09:14:17:4834] USER: LWS API selftest: lws_tokenize { LWS_TOKZE_TOKEN_NAME_COLON, "hello", 5 } { LWS_TOKZE_INTEGER, "1234", 4 } { LWS_TOKZE_DELIMITER, ",", 1 } { LWS_TOKZE_INTEGER, "256", 3 } { LWS_TOKZE_ENDED, "", 0 } ``` <file_sep># Include the file which creates VER_xxx environmental variables if they don't # already exist. # This is a NOJA makefile for integrating with the NOJA build scripts include ../../user/global.mak include $(NOJACORE)/nojacore.mak CFLAGS := $(subst,-Wall,,$(CFLAGS)) CFLAGS := $(subst,-Werror,,$(CFLAGS)) # Variables NAME = cjson MAKE = /usr/bin/make RM = /bin/rm -rf MKDIR = /bin/mkdir CP = /bin/cp BUILD_PATH = ./bin UNITTEST_CSRC = $(wildcard test/*.c) # Targets all: freescale # when developing don't clean the host environment clean : freescale-clean # clean : freescale-clean host-clean # Freescale targets freescale: freescale-setup $(MAKE) -C $(BUILD_PATH)/$@ @test -d $(ROOTDIR)/user/lib || $(MKDIR) $(ROOTDIR)/user/lib $(CP) $(BUILD_PATH)/$@/lib$(NAME).a $(ROOTDIR)/user/lib freescale-clean: $(RM) $(BUILD_PATH)/freescale freescale-setup: ./setup_freescale.sh # Host targets host: host-setup $(MAKE) -C $(BUILD_PATH)/$@ @test -d $(ROOTDIR)/user/lib-host || $(MKDIR) $(ROOTDIR)/user/lib-host $(CP) $(BUILD_PATH)/$@/lib$(NAME).a $(ROOTDIR)/user/lib-host host-clean: $(RM) $(BUILD_PATH)/host host-setup: ./setup_host.sh check: @echo "lib$(NAME) unit tests not implemented, yet!" pre_copy: doc: <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import binascii import os import pytest from cryptography.hazmat.backends.interfaces import CipherBackend from cryptography.hazmat.primitives.ciphers import algorithms, modes from .utils import generate_encrypt_test from ...utils import load_nist_vectors @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.IDEA(b"\x00" * 16), modes.ECB() ), skip_message="Does not support IDEA ECB", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestIDEAModeECB(object): test_ECB = generate_encrypt_test( load_nist_vectors, os.path.join("ciphers", "IDEA"), ["idea-ecb.txt"], lambda key, **kwargs: algorithms.IDEA(binascii.unhexlify((key))), lambda **kwargs: modes.ECB(), ) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.IDEA(b"\x00" * 16), modes.CBC(b"\x00" * 8) ), skip_message="Does not support IDEA CBC", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestIDEAModeCBC(object): test_CBC = generate_encrypt_test( load_nist_vectors, os.path.join("ciphers", "IDEA"), ["idea-cbc.txt"], lambda key, **kwargs: algorithms.IDEA(binascii.unhexlify((key))), lambda iv, **kwargs: modes.CBC(binascii.unhexlify(iv)) ) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.IDEA(b"\x00" * 16), modes.OFB(b"\x00" * 8) ), skip_message="Does not support IDEA OFB", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestIDEAModeOFB(object): test_OFB = generate_encrypt_test( load_nist_vectors, os.path.join("ciphers", "IDEA"), ["idea-ofb.txt"], lambda key, **kwargs: algorithms.IDEA(binascii.unhexlify((key))), lambda iv, **kwargs: modes.OFB(binascii.unhexlify(iv)) ) @pytest.mark.supported( only_if=lambda backend: backend.cipher_supported( algorithms.IDEA(b"\x00" * 16), modes.CFB(b"\x00" * 8) ), skip_message="Does not support IDEA CFB", ) @pytest.mark.requires_backend_interface(interface=CipherBackend) class TestIDEAModeCFB(object): test_CFB = generate_encrypt_test( load_nist_vectors, os.path.join("ciphers", "IDEA"), ["idea-cfb.txt"], lambda key, **kwargs: algorithms.IDEA(binascii.unhexlify((key))), lambda iv, **kwargs: modes.CFB(binascii.unhexlify(iv)) ) <file_sep>This readme file explains how to build the Demo Webserver Application. The project has the following components: Webserver.exe +- LibWebserver +- LibWebsockets (https://libwebsockets.org/) +- OpenSSL (https://www.openssl.org/) +- LibCJSON (https://github.com/DaveGamble/cJSON) +- LibXML2 (http://xmlsoft.org/) +- LibZLIB (Optional, if not found will exclude by LibXML2 configuration) (https://zlib.net/) +- LibIconV (Not built by this script. Optional, if not found will exclude by LibXML2 configuration) (https://www.gnu.org/software/libiconv/) Requirements: * MSYS2 * MinGW32/64 Toolchain * CMAKE * QT MinGW32/64 Build Toolkits 1. MSYS2 Setup MSYS2 offer Linux like environment on top of Windows. It contains GNU utilities (bash, sh, mkdir, grep, etc..) for building an applications. MSYS2 is synonymous to or has the same functions as CYGWIN. 1.1. Installing MSYS2 1.1.1 Follow MSYS2 installation procedures from https://www.msys2.org/. Select MSYS2 64-bit. 1.1.2. Do not forget to update the base packages and package DB (this is important to update the base-devel package). $ pacman -Syu 1.1.3. Install the required MSYS2 packages: a. MinGW32 $ pacman -S mingw-w64-i686-toolchain b. MinGW64 $ pacman -S mingw-w64-x86_64-toolchain (This is required when building for x86-64 platform but is not yet implemented in the script) c. CMake $ pacman -S mingw-w64-x86_64-cmake d. Diff $ pacman -S diffutils 1.1.4. Check PERL version. OpenSSL required PERL with version greater or equal 5.10 $ perl -v a. If PERL is not found or less than the required version, install the latest (NOTE: make sure you are using the PERL that comes in the MSYS2 repo, otherwise the path in the openssl configuration may be be parsed incorrectly. Execute 'which perl' and make sure you are running PERL from '/usr/bin'): $ pacman -S Perl 1.2. Setup requires mount points. Open "<install path>/msys64/etc/fstab" and add the following lines, replace <install path> with correct path: <install path>/msys64/mingw32 /mingw32 ntfs binary 0 0 <install path>/msys64/mingw64 /mingw64 ntfs binary 0 0 <install path>/rc20-user/ /rc20 ntfs binary 0 0 <install path>/rc20-user/user/libwebserver /nws ntfs binary 0 0 1.3. Open MSYS2 shell and confirm if the paths are mounted correctly. If not, try to command "mount --all". If still not mounting, check if the paths are correct. Make sure you are using the correct file system, in the mount instructions earlier "ntfs" is used as file system. Replace this with your correct file system. 2. QT Creator. I will not explain how to install QT as I assumed you already have QT installed. The menus and settings described in this section are based from QT Creator 4.0.1. If your QT is not the same, just search for the proper dialog windows and settings. 2.1. Open QT Creator, in the main menu select [Tools]->[Options] to open the "Options" dialog window. 2.2. In the Item List on the right, please select [Build & Run]. 2.3. In the "Build & Run" panel select [Compilers]. 2.4. In the "Compiler" tab, click [Add] button and select MINGW. Set the following properties: Name: MSYS2 MinGW32 G++ Compiler Path: <install path>\msys64\mingw32\bin\g++.exe 2.5. Click [Apply] button 2.6. In the "Debuggers" tab, click [Add] button. Set the following properties: Name: MSYS2 MinGW32 GDB Path: <install path>\msys64\mingw32\bin\gdb.exe 2.7. Click [Apply] button 2.8. In the "CMake" tab, click [Add] button. Set the following properties: Name: MSYS2 MinGW32 CMake Path: <install path>\msys64\mingw64\bin\cmake.exe 2.9. Click [Apply] button 2.10. In the "Kits" tab, click [Add] button. Set the following properties: Name: Desktop Qt %{Qt:Version} MSYS2 MinGW 32bit Device Type: Desktop Device: Local PC Compiler: MSYS2 MinGW32 G++ Debugger: MSYS2 MinGW32 GDB QT Version: QT <your version> MinGW 32bit QT mkspec: win32-g++ CMakeTool: MSYS2 MinGW32 CMake CMake Generator: MSYS Makefiles 2.11. Click [Apply] button, then [OK] 3. QT Project. 3.1. In QT Creator open the "<install_path>\rc20-user\user\libwebserver\app\webserver.pro". 3.2. When asked for build kits, select "Desktop Qt %{Qt:Version} MSYS2 MinGW 32bit". 3.3. The project has the following structure: Webserver.pro (Main Project) +- Webserver.pri (Path declaration) +- Console.pro (Console application) +- LibWebserver.pri (Project settings to use libwebserver) +- LibWebserver.pro (Libwebserver implementation) 3.4. Click the [Projects] button on the right side of the QT creator. 3.5. If there are multiple build kits for this project, select "Desktop Qt %{Qt:Version} MSYS2 MinGW 32bit" 3.6. In the Build steps, add "make install" by: 3.6.1. Click [Add Build Step] and select "Make". Set "Make arguments" to "install". 3.7. Open "<install_path>\rc20-user\user\libwebserver\app\webserver.pri" file and make sure NWS_DEP_LIB_PATH and NWS_DEP_INC_PATH are correct. 4. Build depedencies. You need to build the dependencies first before you can debug the project in QT creator. 4.1. Open command prompt and go to: <install path>\rc20-user\user\libwebserver 4.2. Execute the build batch file. <install path>\rc20-user\user\libwebserver>\build.bat -lc 4.3. The application is deployed to <install path>\rc20-user\user\libwebserver>\out. Call webserver.exe if you want to execute. Please note default port for this demo is 80. If 80 is blocked then use another port. Use webserver -h to see all options. 5. You can now run the project in QT creator. 5.1. In the main menu, select [Build]->[Run QMake] TIP: Always run QMake whenever you changed any build settings. This is to make sure you have the latest makefile. 5.2. In the main menu, select [Build]->[Rebuild All] Notes: 1. About the build scripts: build.bat - execute the build.sh script in MSYS2 bash shell build.sh - actual build script 2. If you are facing problems in downloading and updating MSYS2, there is a copy in my shared folder: S:/_Public_/ChrisF/MSYS2 3. If you prefer CYGWIN, then please use CYGWIN but you need to change the script to match the CYGWIN environment. 4. About building in Windows Command Prompt instead of MSYS/CYGWIN shell. I experienced many errors in doing this and to save time I decided not to continue with this build further. I don't see any issue in building using MSYS/CYGWIN shell as it is basically the same as building with Windows command prompt. 5. You don't need to build the dependencies all the time. One-time build is OK as the dependencies may not change. All dependencies are installed in <installed path>/msys64/<mingw32 or mingw64> <file_sep>## Using UDP in lws UDP is supported in lws... the quickest way is to use the api `lws_create_adopt_udp()` which returns a wsi bound to the provided vhost, protocol, `lws_retry` struct, dns address and port. The wsi can be treated normally and `lws_write()` used to write on it. ## Implementing UDP retries Retries are important in udp but there's no standardized ack method unlike tcp. Lws allows you to bind an `lws_retry` struct describing the policy to the udp wsi, but since one UDP socket may have many transactions in flight, the `lws_sul` and `uint16_t` to count the retries must live in the user's transaction object like this ``` ... lws_sorted_usec_list_t sul; uint16_t retry; ... ``` in the `LWS_CALLBACK_RAW_WRITEABLE` callback, before doing the write, set up the retry like this ``` if (lws_dll2_is_detached(&transaction->sul_write.list) && lws_retry_sul_schedule_retry_wsi(wsi, &transaction->sul_write, transaction_retry_write_cb, &transaction->retry_count_write)) { /* we have reached the end of our concealed retries */ lwsl_warn("%s: concealed retries done, failing\n", __func__); goto retry_conn; } ``` This manages the retry counter in the transaction object, guards against it wrapping, selects the timeout using the policy bound to the wsi, and sets the `lws_sul` in the transaction object to call the given callback if the sul time expires. In the callback, it should simply call `lws_callback_on_writable()` for the udp wsi. ## Simulating packetloss lws now allows you to set the amount of simulated packetloss on udp rx and tx in the context creation info struct, using `.udp_loss_sim_tx_pc` and `.udp_loss_sim_rx_pc`, the values are percentages between 0 and 100. 0, the default, means no packetloss. <file_sep>/** * @file include/dbschema/dbDataTypeDefsFull.h * @brief This generated file contains the macro definition providing details * of all dbconfig data types. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbDataTypeDefsFull_h.xsl : 2452 bytes, CRC32 = 4220150139 * relay-datatypes.xml : 3123717 bytes, CRC32 = 136298885 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATATYPEDEFSFULL_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATATYPEDEFSFULL_H_ /**The Data Type definitions * Arguments: type, category, isEnum, size * type Name of the type * category Basic storage category for the type * isEnum 1 if an enum, 0 if not * size Size of the type in bytes */ #define DATA_TYPE_DEFNS \ \ DATA_TYPE_DEFN( I8, dpType1B, 0, 1 ) \ DATA_TYPE_DEFN( UI8, dpType1BU, 0, 1 ) \ DATA_TYPE_DEFN( F8, dpType1B, 0, 1 ) \ DATA_TYPE_DEFN( UF8, dpType1BU, 0, 1 ) \ DATA_TYPE_DEFN( TimeFormat, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DateFormat, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OkFail, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BattTestState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( EnDis, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( RelayState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OkSCct, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( RdyNr, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OnOff, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AvgPeriod, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SysFreq, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( USense, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AuxConfig, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AlOp, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OpenClose, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TripMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TtaMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DndMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( VrcMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( RatedFreq, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaTimeIsLocal, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( I16, dpType2B, 0, 2 ) \ DATA_TYPE_DEFN( UI16, dpType2BU, 0, 2 ) \ DATA_TYPE_DEFN( I32, dpType4B, 0, 4 ) \ DATA_TYPE_DEFN( UI32, dpType4BU, 0, 4 ) \ DATA_TYPE_DEFN( F32, dpType4BU, 0, 4 ) \ DATA_TYPE_DEFN( TimeStamp, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( TccCurve, dpTypeV2B, 0, 670 ) \ DATA_TYPE_DEFN( LogEvent, dpTypeFB, 0, 28 ) \ DATA_TYPE_DEFN( LogOpen, dpTypeFB, 0, 34 ) \ DATA_TYPE_DEFN( CoNoticeType, dpTypeFB, 0, 30 ) \ DATA_TYPE_DEFN( LoadProfileNoticeType, dpTypeFB, 0, 12 ) \ DATA_TYPE_DEFN( CanSdoReadReqType, dpTypeFB, 0, 10 ) \ DATA_TYPE_DEFN( Str, dpTypeV1B, 0, 41 ) \ DATA_TYPE_DEFN( CoType, dpTypeV1B, 0, 23 ) \ DATA_TYPE_DEFN( EventDataID, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DbClientId, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BaudRateType, dpType4B, 1, 4 ) \ DATA_TYPE_DEFN( SwVersion, dpTypeFB, 0, 6 ) \ DATA_TYPE_DEFN( CanObjType, dpTypeFB, 0, 4 ) \ DATA_TYPE_DEFN( CanErrStatus, dpTypeFB, 0, 48 ) \ DATA_TYPE_DEFN( ChangeEvent, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( Co, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CoSrc, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CoState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CirBufDetails, dpTypeFB, 0, 20 ) \ DATA_TYPE_DEFN( TccType, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LogEventRqst, dpTypeFB, 0, 32 ) \ DATA_TYPE_DEFN( LocalRemote, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LoadProfileDefType, dpTypeV2B, 0, 202 ) \ DATA_TYPE_DEFN( Signal, dpTypeFB, 0, 10 ) \ DATA_TYPE_DEFN( MeasPhaseSeqAbcType, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( MeasPhaseSeqRstType, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( ProtDirOut, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LogicStr, dpTypeV1B, 0, 41 ) \ DATA_TYPE_DEFN( DbFileCommand, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialBaudRate, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialDuplex, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialRTSMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialRTSOnLevel, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialDTRMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialDTROnLevel, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialParity, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialCTSMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialDSRMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialDCDMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsWlanNetworkAuthentication, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsWlanDataEncryption, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaDNP3BinaryInputs, dpTypeV2B, 0, 3072 ) \ DATA_TYPE_DEFN( ScadaDNP3BinaryOutputs, dpTypeV2B, 0, 1024 ) \ DATA_TYPE_DEFN( ScadaDNP3BinaryCounters, dpTypeV2B, 0, 2048 ) \ DATA_TYPE_DEFN( ScadaDNP3AnalogInputs, dpTypeV2B, 0, 2048 ) \ DATA_TYPE_DEFN( ScadaDNP3OctetStrings, dpTypeV2B, 0, 512 ) \ DATA_TYPE_DEFN( BinaryInputObject01Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BinaryInputObject02Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BinaryOutputObject10Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BinaryCounterObject20Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BinaryCounterObject21Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BinaryCounterObject22Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BinaryCounterObject23Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AnalogInputObject30Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AnalogInputObject32Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AnalogInputObject34Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ProtStatus, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( LogStartEnd, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LogEventSrc, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LogEventPhase, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( EventDeState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ActiveGrp, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CmsErrorCodes, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LineSupplyStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TccCurveName, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( HmiTccCurveClass, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SwState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SimWriteAddr, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( SimImageBytes, dpTypeV1B, 0, 9 ) \ DATA_TYPE_DEFN( OcEfSefDirs, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TripModeDLA, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( HmiPassword, dpTypeFB, 0, 64 ) \ DATA_TYPE_DEFN( HmiAuthGroup, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TripCurrent, dpTypeFB, 0, 16 ) \ DATA_TYPE_DEFN( Bool, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( IpAddr, dpTypeFB, 0, 4 ) \ DATA_TYPE_DEFN( CommsPort, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SignalList, dpTypeV1B, 0, 255 ) \ DATA_TYPE_DEFN( CommsSerialPinStatus, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CommsConnectionStatus, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortDetectedType, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( SerialPortConfigType, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( UsbPortConfigType, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( LanPortConfigType, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( DataflowUnit, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( SmpTick, dpTypeFB, 0, 256 ) \ DATA_TYPE_DEFN( SignalBitField, dpType4BU, 0, 4 ) \ DATA_TYPE_DEFN( CommsConnType, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( YesNo, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( ProtectionState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AutoIp, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( ProgramSimCmd, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( UsbDiscCmd, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( UsbDiscStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( StrArray, dpTypeV1B, 0, 255 ) \ DATA_TYPE_DEFN( UpdateError, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SerialNumber, dpTypeFB, 0, 13 ) \ DATA_TYPE_DEFN( SerialPartCode, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( HmiMsgboxTitle, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( HmiMsgboxOperation, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( HmiMsgboxError, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( BaxMetaId, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( LogicStrCode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DbPopulate, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( HmiMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ClearCommand, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BxmlMapHmi, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( BxmlNamespace, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( BxmlType, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( CmsConnectStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ERR, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( ErrModules, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( FileSystemType, dpType4B, 1, 4 ) \ DATA_TYPE_DEFN( HmiErrMsg, dpTypeFB, 0, 16 ) \ DATA_TYPE_DEFN( HmiPwdGroup, dpTypeFB, 0, 4 ) \ DATA_TYPE_DEFN( IOSettingMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SmaChannelState, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CommsProtocols, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( ShutdownReason, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsSerialFlowControlMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( HmiMsgboxMessage, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( CommsSerialDCDControlMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( T10BFormatMeasurand, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( T101ChannelMode, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( PeriodicCounterOperation, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( T10BReportMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaT10BMSP, dpTypeV2B, 0, 2048 ) \ DATA_TYPE_DEFN( ScadaT10BMDP, dpTypeV2B, 0, 512 ) \ DATA_TYPE_DEFN( ScadaT10BCSC, dpTypeV2B, 0, 1024 ) \ DATA_TYPE_DEFN( ScadaT10BCDC, dpTypeV2B, 0, 512 ) \ DATA_TYPE_DEFN( ScadaT10BMME, dpTypeV2B, 0, 2048 ) \ DATA_TYPE_DEFN( ScadaT10BCSE, dpTypeV2B, 0, 26 ) \ DATA_TYPE_DEFN( ScadaT10BPME, dpTypeV2B, 0, 512 ) \ DATA_TYPE_DEFN( ScadaT10BMIT, dpTypeV2B, 0, 1024 ) \ DATA_TYPE_DEFN( T10BControlMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( T10BParamRepMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsIpProtocolMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CanIoInputRecTimes, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( Arr8, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( GPIOSettingMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( IoStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ConfigIOCardNum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SwitchgearTypes, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LocInputRecTimes, dpTypeFB, 0, 3 ) \ DATA_TYPE_DEFN( LoSeqMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LogicChannelMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( T10BCounterRepMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ACOState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ACOOpMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaT10BSinglePointInformation, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( FailOk, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ACOHealthReason, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SupplyState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LoadState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( MakeBeforeBreak, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( T101TimeStampSize, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaT10BDoublePointInformation, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( ScadaT10BSingleCommand, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( ScadaT10BDoubleCommand, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( ScadaT10BSetPointCommand, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( ScadaT10BParameterOfMeasuredValues, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( ScadaT10BIntegratedTotal, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( ScadaT10BMeasuredValues, dpTypeV2B, 0, 4000 ) \ DATA_TYPE_DEFN( LogEventV, dpTypeFB, 0, 536 ) \ DATA_TYPE_DEFN( PhaseConfig, dpType2BU, 1, 2 ) \ DATA_TYPE_DEFN( OscCaptureTime, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OscCapturePrior, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OscEvent, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LogTransferRequest, dpTypeFB, 0, 32 ) \ DATA_TYPE_DEFN( LogTransferReply, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( HmiMsgboxData, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( OscSimStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( EventTitleId, dpType2BU, 1, 2 ) \ DATA_TYPE_DEFN( HrmIndividual, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( Duration, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( LogPQDIF, dpTypeV1B, 0, 128 ) \ DATA_TYPE_DEFN( OscCaptureFormat, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( UpdateStep, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( SimExtSupplyStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaScaleRangeTable, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( UsbDiscEjectResult, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaEventSource, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( ExtDataId, dpType2BU, 1, 2 ) \ DATA_TYPE_DEFN( AutoOpenMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( Uv4VoltageType, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( Uv4Voltages, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SingleTripleMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OsmSwitchCount, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BatteryTestResult, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BatteryTestNotPerformedReason, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( UserAnalogCfg, dpTypeFB, 0, 20 ) \ DATA_TYPE_DEFN( SingleTripleVoltageType, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( AbbrevStrId, dpType2BU, 1, 2 ) \ DATA_TYPE_DEFN( SystemStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LockDynamic, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BatteryType, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DNP3SAKeyUpdateVerificationMethod, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( MACAlgorithm, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DNP3SAVersion, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( AESAlgorithm, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DNP3SAUpdateKeyInstallStep, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SecurityStatisticsObject121Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SecurityStatisticsObject122Enum, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaDNP3SecurityStatistics, dpTypeV2B, 0, 1024 ) \ DATA_TYPE_DEFN( DNP3SAUpdateKeyInstalledStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( UsbDiscDNP3SAUpdateKeyFileError, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( s61850GseSubscDefn, dpTypeV2B, 0, 3072 ) \ DATA_TYPE_DEFN( IEC61499AppStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( IEC61499Command, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OperatingMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LatchEnable, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( DDT, dpTypeFB, 0, 4 ) \ DATA_TYPE_DEFN( DDTDef, dpTypeFB, 0, 1700 ) \ DATA_TYPE_DEFN( DemoUnitMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( StrArray2, dpTypeV2B, 0, 512 ) \ DATA_TYPE_DEFN( SwVersionExt, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( RemoteUpdateCommand, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( RemoteUpdateState, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( RemoteUpdateStatus, dpTypeFB, 0, 8 ) \ DATA_TYPE_DEFN( IEC61499FBOOTChEv, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CmsClientSupports, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( IEC61499FBOOTStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( IEC61499FBOOTOper, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SignalQuality, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( GpsTimeSyncStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( WlanConnectionMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( MobileNetworkSimCardStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( MobileNetworkMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( PhaseToSelection, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( BusAndLine, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SyncLiveDeadMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SynchroniserStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( PowerFlowDirection, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CoReq, dpTypeFB, 0, 40 ) \ DATA_TYPE_DEFN( AutoRecloseStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TripsToLockout, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( YnOperationalMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( YnDirectionalMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( HmiListSource, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( StrArray1024, dpTypeV2B, 0, 1024 ) \ DATA_TYPE_DEFN( RelayModelName, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CmsSecurityLevel, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ModemConnectStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( S61850CIDUpdateStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( WLanTxPower, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( WlanConnectStatus, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( UpdateInterlockStatus, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( GPSStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ResetCommand, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( Array16, dpTypeV2B, 0, 202 ) \ DATA_TYPE_DEFN( AlertDisplayMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( Signals, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( CommsPortHmi, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortHmiGadget, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortHmiNoLAN, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( HrmIndividualSinglePhase, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( Uv4VoltageTypeSinglePhase, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( WlanPortConfigType, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( MobileNetworkPortConfigType, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortHmiNoUSBC, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortHmiNoUSBCWIFI, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortHmiNoUSBCWIFI4G, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortLANSetREL01, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortLANSetREL02, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortLANSetREL03, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortLANSetREL15WLAN, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortLANSetREL15WWAN, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( FaultLocFaultType, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TimeUnit, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ScadaProtocolLoadedStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( diagDataGeneral1, dpTypeV2B, 0, 2048 ) \ DATA_TYPE_DEFN( SWModel, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( NeutralPolarisation, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TimeSyncStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( Ipv6Addr, dpTypeFB, 0, 16 ) \ DATA_TYPE_DEFN( IpVersion, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( SDCardStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( OscSamplesPerCycle, dpType2BU, 1, 2 ) \ DATA_TYPE_DEFN( OscCaptureTimeExt, dpType4BU, 1, 4 ) \ DATA_TYPE_DEFN( HrmIndividualExt, dpType2BU, 1, 2 ) \ DATA_TYPE_DEFN( HrmIndividualSinglePhaseExt, dpType2BU, 1, 2 ) \ DATA_TYPE_DEFN( RC20CommsPortNoUSBCWIFI, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( RC20CommsPortNoUSBCWIFI4G, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( LogHrm64, dpTypeV2B, 0, 512 ) \ DATA_TYPE_DEFN( BatteryCapacityConfidence, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( PMUPerfClass, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( RC20CommsPortLAN, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( RC20CommsPortLAN4G, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( PMUQuality, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( PMUStatus, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( PMUConfigStatus, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( NamedVariableListDef, dpTypeV2B, 0, 4096 ) \ DATA_TYPE_DEFN( LineSupplyRange, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( TimeSyncUnlockedTime, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CBF_backup_trip, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CbfCurrentMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortREL15, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortREL204G, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortREL02, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( CommsPortREL01, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( ActiveInactive, dpType1B, 1, 1 ) \ DATA_TYPE_DEFN( UserCredentialResultStatus, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( CredentialOperationMode, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( UserName, dpTypeFB, 0, 64 ) \ DATA_TYPE_DEFN( Password, dpTypeFB, 0, 64 ) \ DATA_TYPE_DEFN( RoleBitMap, dpType4BU, 0, 4 ) \ DATA_TYPE_DEFN( ConstraintT10BRG, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ConnectionStateT10BRG, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ConnectionMethodT10BRG, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( pinPukResult, dpType1BU, 1, 1 ) \ DATA_TYPE_DEFN( ChangedLog, dpType1B, 1, 1 ) /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBDATATYPEDEFSFULL_H_ <file_sep>/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #define LWS_AESGCM_IV 12 #define LWS_AESGCM_TAG 16 /* jwe-rsa-aescbc.c */ int lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs(struct lws_jwe *jwe); int lws_jwe_encrypt_rsa_aes_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len); int lws_jwe_auth_and_decrypt_cbc_hs(struct lws_jwe *jwe, uint8_t *enc_cek, uint8_t *aad, int aad_len); /* jws-rsa-aesgcm.c */ int lws_jwe_auth_and_decrypt_gcm(struct lws_jwe *jwe, uint8_t *enc_cek, uint8_t *aad, int aad_len); int lws_jwe_auth_and_decrypt_rsa_aes_gcm(struct lws_jwe *jwe); int lws_jwe_encrypt_gcm(struct lws_jwe *jwe, uint8_t *enc_cek, uint8_t *aad, int aad_len); int lws_jwe_encrypt_rsa_aes_gcm(struct lws_jwe *jwe, char *temp, int *temp_len); /* jwe-rsa-aeskw.c */ int lws_jwe_encrypt_aeskw_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len); int lws_jwe_auth_and_decrypt_aeskw_cbc_hs(struct lws_jwe *jwe); /* aescbc.c */ int lws_jwe_auth_and_decrypt_cbc_hs(struct lws_jwe *jwe, uint8_t *enc_cek, uint8_t *aad, int aad_len); int lws_jwe_encrypt_cbc_hs(struct lws_jwe *jwe, uint8_t *cek, uint8_t *aad, int aad_len); int lws_jwe_auth_and_decrypt_ecdh_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len); int lws_jwe_encrypt_ecdh_cbc_hs(struct lws_jwe *jwe, char *temp, int *temp_len); <file_sep>/** * @file include/dbschema/dbDataTypes.h * @brief This generated file contains the enumeration which identifies all * datatypes. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbDataTypes_h.xsl : 1607 bytes, CRC32 = 2530104322 * relay-datatypes.xml : 3123717 bytes, CRC32 = 136298885 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATATYPES_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATATYPES_H_ /**Unique IDs assigned to all known DB data types (including enums). */ enum DbDataTypeIds_t { DataType_NAN = 0, DataType_I8 = 1, DataType_UI8 = 2, DataType_F8 = 3, DataType_UF8 = 4, DataType_TimeFormat = 5, DataType_DateFormat = 6, DataType_OkFail = 7, DataType_BattTestState = 8, DataType_EnDis = 9, DataType_RelayState = 10, DataType_OkSCct = 11, DataType_RdyNr = 12, DataType_OnOff = 13, DataType_AvgPeriod = 14, DataType_SysFreq = 15, DataType_USense = 16, DataType_AuxConfig = 17, DataType_AlOp = 18, DataType_OpenClose = 19, DataType_TripMode = 20, DataType_TtaMode = 21, DataType_DndMode = 22, DataType_VrcMode = 23, DataType_RatedFreq = 24, DataType_ScadaTimeIsLocal = 26, DataType_I16 = 28, DataType_UI16 = 29, DataType_I32 = 30, DataType_UI32 = 31, DataType_F32 = 32, DataType_TimeStamp = 33, DataType_TccCurve = 34, DataType_LogEvent = 38, DataType_LogOpen = 39, DataType_CoNoticeType = 40, DataType_LoadProfileNoticeType = 41, DataType_CanSdoReadReqType = 42, DataType_Str = 43, DataType_CoType = 44, DataType_EventDataID = 45, DataType_DbClientId = 46, DataType_BaudRateType = 47, DataType_SwVersion = 48, DataType_CanObjType = 50, DataType_CanErrStatus = 52, DataType_ChangeEvent = 53, DataType_Co = 54, DataType_CoSrc = 55, DataType_CoState = 56, DataType_CirBufDetails = 57, DataType_TccType = 58, DataType_LogEventRqst = 59, DataType_LocalRemote = 60, DataType_LoadProfileDefType = 61, DataType_Signal = 62, DataType_MeasPhaseSeqAbcType = 63, DataType_MeasPhaseSeqRstType = 64, DataType_ProtDirOut = 65, DataType_LogicStr = 66, DataType_DbFileCommand = 67, DataType_CommsSerialBaudRate = 71, DataType_CommsSerialDuplex = 72, DataType_CommsSerialRTSMode = 73, DataType_CommsSerialRTSOnLevel = 74, DataType_CommsSerialDTRMode = 75, DataType_CommsSerialDTROnLevel = 76, DataType_CommsSerialParity = 77, DataType_CommsSerialCTSMode = 78, DataType_CommsSerialDSRMode = 79, DataType_CommsSerialDCDMode = 80, DataType_CommsWlanNetworkAuthentication = 81, DataType_CommsWlanDataEncryption = 82, DataType_ScadaDNP3BinaryInputs = 83, DataType_ScadaDNP3BinaryOutputs = 84, DataType_ScadaDNP3BinaryCounters = 85, DataType_ScadaDNP3AnalogInputs = 86, DataType_ScadaDNP3OctetStrings = 87, DataType_BinaryInputObject01Enum = 88, DataType_BinaryInputObject02Enum = 89, DataType_BinaryOutputObject10Enum = 90, DataType_BinaryCounterObject20Enum = 91, DataType_BinaryCounterObject21Enum = 92, DataType_BinaryCounterObject22Enum = 93, DataType_BinaryCounterObject23Enum = 94, DataType_AnalogInputObject30Enum = 95, DataType_AnalogInputObject32Enum = 96, DataType_AnalogInputObject34Enum = 97, DataType_ProtStatus = 98, DataType_LogStartEnd = 99, DataType_LogEventSrc = 100, DataType_LogEventPhase = 101, DataType_EventDeState = 102, DataType_ActiveGrp = 103, DataType_CmsErrorCodes = 105, DataType_LineSupplyStatus = 106, DataType_TccCurveName = 107, DataType_HmiTccCurveClass = 108, DataType_SwState = 109, DataType_SimWriteAddr = 110, DataType_SimImageBytes = 111, DataType_OcEfSefDirs = 112, DataType_TripModeDLA = 113, DataType_HmiPassword = 114, DataType_HmiAuthGroup = 115, DataType_TripCurrent = 116, DataType_Bool = 117, DataType_IpAddr = 118, DataType_CommsPort = 119, DataType_SignalList = 120, DataType_CommsSerialPinStatus = 121, DataType_CommsConnectionStatus = 122, DataType_CommsPortDetectedType = 123, DataType_SerialPortConfigType = 124, DataType_UsbPortConfigType = 125, DataType_LanPortConfigType = 126, DataType_DataflowUnit = 128, DataType_SmpTick = 129, DataType_SignalBitField = 130, DataType_CommsConnType = 131, DataType_YesNo = 132, DataType_ProtectionState = 133, DataType_AutoIp = 134, DataType_ProgramSimCmd = 135, DataType_UsbDiscCmd = 136, DataType_UsbDiscStatus = 137, DataType_StrArray = 138, DataType_UpdateError = 139, DataType_SerialNumber = 140, DataType_SerialPartCode = 141, DataType_HmiMsgboxTitle = 142, DataType_HmiMsgboxOperation = 143, DataType_HmiMsgboxError = 144, DataType_BaxMetaId = 145, DataType_LogicStrCode = 146, DataType_DbPopulate = 147, DataType_HmiMode = 148, DataType_ClearCommand = 149, DataType_BxmlMapHmi = 150, DataType_BxmlNamespace = 151, DataType_BxmlType = 152, DataType_CmsConnectStatus = 153, DataType_ERR = 154, DataType_ErrModules = 155, DataType_FileSystemType = 156, DataType_HmiErrMsg = 157, DataType_HmiPwdGroup = 158, DataType_IOSettingMode = 159, DataType_SmaChannelState = 160, DataType_CommsProtocols = 161, DataType_ShutdownReason = 162, DataType_CommsSerialFlowControlMode = 163, DataType_HmiMsgboxMessage = 164, DataType_CommsSerialDCDControlMode = 165, DataType_T10BFormatMeasurand = 166, DataType_T101ChannelMode = 167, DataType_PeriodicCounterOperation = 168, DataType_T10BReportMode = 169, DataType_ScadaT10BMSP = 170, DataType_ScadaT10BMDP = 171, DataType_ScadaT10BCSC = 172, DataType_ScadaT10BCDC = 173, DataType_ScadaT10BMME = 174, DataType_ScadaT10BCSE = 175, DataType_ScadaT10BPME = 176, DataType_ScadaT10BMIT = 177, DataType_T10BControlMode = 178, DataType_T10BParamRepMode = 179, DataType_CommsIpProtocolMode = 180, DataType_CanIoInputRecTimes = 181, DataType_Arr8 = 182, DataType_GPIOSettingMode = 183, DataType_IoStatus = 184, DataType_ConfigIOCardNum = 185, DataType_SwitchgearTypes = 186, DataType_LocInputRecTimes = 187, DataType_LoSeqMode = 188, DataType_LogicChannelMode = 189, DataType_T10BCounterRepMode = 190, DataType_ACOState = 191, DataType_ACOOpMode = 192, DataType_ScadaT10BSinglePointInformation = 193, DataType_FailOk = 194, DataType_ACOHealthReason = 195, DataType_SupplyState = 196, DataType_LoadState = 197, DataType_MakeBeforeBreak = 198, DataType_T101TimeStampSize = 199, DataType_ScadaT10BDoublePointInformation = 200, DataType_ScadaT10BSingleCommand = 201, DataType_ScadaT10BDoubleCommand = 202, DataType_ScadaT10BSetPointCommand = 203, DataType_ScadaT10BParameterOfMeasuredValues = 204, DataType_ScadaT10BIntegratedTotal = 205, DataType_ScadaT10BMeasuredValues = 206, DataType_LogEventV = 207, DataType_PhaseConfig = 208, DataType_OscCaptureTime = 209, DataType_OscCapturePrior = 210, DataType_OscEvent = 211, DataType_LogTransferRequest = 212, DataType_LogTransferReply = 213, DataType_HmiMsgboxData = 214, DataType_OscSimStatus = 215, DataType_EventTitleId = 216, DataType_HrmIndividual = 217, DataType_Duration = 218, DataType_LogPQDIF = 219, DataType_OscCaptureFormat = 220, DataType_UpdateStep = 221, DataType_SimExtSupplyStatus = 222, DataType_ScadaScaleRangeTable = 223, DataType_UsbDiscEjectResult = 224, DataType_ScadaEventSource = 225, DataType_ExtDataId = 226, DataType_AutoOpenMode = 227, DataType_Uv4VoltageType = 228, DataType_Uv4Voltages = 229, DataType_SingleTripleMode = 230, DataType_OsmSwitchCount = 231, DataType_BatteryTestResult = 232, DataType_BatteryTestNotPerformedReason = 233, DataType_UserAnalogCfg = 234, DataType_SingleTripleVoltageType = 235, DataType_AbbrevStrId = 236, DataType_SystemStatus = 237, DataType_LockDynamic = 238, DataType_BatteryType = 239, DataType_DNP3SAKeyUpdateVerificationMethod = 240, DataType_MACAlgorithm = 241, DataType_DNP3SAVersion = 242, DataType_AESAlgorithm = 243, DataType_DNP3SAUpdateKeyInstallStep = 244, DataType_SecurityStatisticsObject121Enum = 245, DataType_SecurityStatisticsObject122Enum = 246, DataType_ScadaDNP3SecurityStatistics = 247, DataType_DNP3SAUpdateKeyInstalledStatus = 248, DataType_UsbDiscDNP3SAUpdateKeyFileError = 249, DataType_s61850GseSubscDefn = 250, DataType_IEC61499AppStatus = 251, DataType_IEC61499Command = 252, DataType_OperatingMode = 253, DataType_LatchEnable = 254, DataType_DDT = 255, DataType_DDTDef = 256, DataType_DemoUnitMode = 257, DataType_StrArray2 = 258, DataType_SwVersionExt = 260, DataType_RemoteUpdateCommand = 261, DataType_RemoteUpdateState = 262, DataType_RemoteUpdateStatus = 263, DataType_IEC61499FBOOTChEv = 264, DataType_CmsClientSupports = 265, DataType_IEC61499FBOOTStatus = 266, DataType_IEC61499FBOOTOper = 267, DataType_SignalQuality = 268, DataType_GpsTimeSyncStatus = 269, DataType_WlanConnectionMode = 270, DataType_MobileNetworkSimCardStatus = 271, DataType_MobileNetworkMode = 272, DataType_PhaseToSelection = 273, DataType_BusAndLine = 274, DataType_SyncLiveDeadMode = 275, DataType_SynchroniserStatus = 276, DataType_PowerFlowDirection = 277, DataType_CoReq = 278, DataType_AutoRecloseStatus = 279, DataType_TripsToLockout = 280, DataType_YnOperationalMode = 281, DataType_YnDirectionalMode = 282, DataType_HmiListSource = 283, DataType_StrArray1024 = 284, DataType_RelayModelName = 285, DataType_CmsSecurityLevel = 286, DataType_ModemConnectStatus = 287, DataType_S61850CIDUpdateStatus = 288, DataType_WLanTxPower = 289, DataType_WlanConnectStatus = 290, DataType_UpdateInterlockStatus = 291, DataType_GPSStatus = 292, DataType_ResetCommand = 293, DataType_Array16 = 294, DataType_AlertDisplayMode = 295, DataType_Signals = 296, DataType_CommsPortHmi = 297, DataType_CommsPortHmiGadget = 298, DataType_CommsPortHmiNoLAN = 299, DataType_HrmIndividualSinglePhase = 300, DataType_Uv4VoltageTypeSinglePhase = 301, DataType_WlanPortConfigType = 302, DataType_MobileNetworkPortConfigType = 303, DataType_CommsPortHmiNoUSBC = 304, DataType_CommsPortHmiNoUSBCWIFI = 305, DataType_CommsPortHmiNoUSBCWIFI4G = 306, DataType_CommsPortLANSetREL01 = 307, DataType_CommsPortLANSetREL02 = 308, DataType_CommsPortLANSetREL03 = 309, DataType_CommsPortLANSetREL15WLAN = 310, DataType_CommsPortLANSetREL15WWAN = 311, DataType_FaultLocFaultType = 312, DataType_TimeUnit = 313, DataType_ScadaProtocolLoadedStatus = 314, DataType_diagDataGeneral1 = 315, DataType_SWModel = 316, DataType_NeutralPolarisation = 317, DataType_TimeSyncStatus = 318, DataType_Ipv6Addr = 319, DataType_IpVersion = 320, DataType_SDCardStatus = 321, DataType_OscSamplesPerCycle = 322, DataType_OscCaptureTimeExt = 323, DataType_HrmIndividualExt = 324, DataType_HrmIndividualSinglePhaseExt = 325, DataType_RC20CommsPortNoUSBCWIFI = 326, DataType_RC20CommsPortNoUSBCWIFI4G = 327, DataType_LogHrm64 = 328, DataType_BatteryCapacityConfidence = 329, DataType_PMUPerfClass = 330, DataType_RC20CommsPortLAN = 331, DataType_RC20CommsPortLAN4G = 332, DataType_PMUQuality = 333, DataType_PMUStatus = 334, DataType_PMUConfigStatus = 335, DataType_NamedVariableListDef = 336, DataType_LineSupplyRange = 337, DataType_TimeSyncUnlockedTime = 338, DataType_CBF_backup_trip = 339, DataType_CbfCurrentMode = 340, DataType_CommsPortREL15 = 341, DataType_CommsPortREL204G = 342, DataType_CommsPortREL02 = 343, DataType_CommsPortREL01 = 344, DataType_ActiveInactive = 345, DataType_UserCredentialResultStatus = 346, DataType_CredentialOperationMode = 347, DataType_UserName = 348, DataType_Password = 349, DataType_RoleBitMap = 350, DataType_ConstraintT10BRG = 351, DataType_ConnectionStateT10BRG = 353, DataType_ConnectionMethodT10BRG = 354, DataType_pinPukResult = 355, DataType_ChangedLog = 358 }; /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBDATATYPES_H_ <file_sep>/** * @file include/dbschema/dbDataPointDefs.h * @brief This generated file contains the macro definition providing details of * all datapoints. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbDataPointDefs_h.xsl : 2399 bytes, CRC32 = 1739990854 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATAPOINTDEFS_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATAPOINTDEFS_H_ /**The DataPoint definitions * Arguments: name, type, desc, text * name Datapoint name * type Datapoint value data type * desc English description text for the datapoint * text English display string for the enumeration value */ #define DATAPOINT_DEFNS \ \ DPOINT_DEFN( TimeFmt, TimeFormat, "Time format", "" ) \ DPOINT_DEFN( DateFmt, DateFormat, "Date format", "" ) \ DPOINT_DEFN( DEPRECATED_BattTest, BattTestState, "Battery test indication", "" ) \ DPOINT_DEFN( SiteDesc, Str, "Site description", "" ) \ DPOINT_DEFN( IsDirty, UI16, "This 'IsDirty' flag is set whenever a non-volatile datapoint is changed by the dbSet() family of routines. When set it is to the dpId of the changed datapoint. It is cleared by the dbServer when _starting_ a save to file. ", "" ) \ DPOINT_DEFN( AuxSupply, OkFail, "State of Aux. supply", "" ) \ DPOINT_DEFN( BattState, OkFail, "State of Battery", "" ) \ DPOINT_DEFN( OCCoilState, EnDis, "State of Open/Close coil", "" ) \ DPOINT_DEFN( RelayState, RelayState, "State of Relay", "" ) \ DPOINT_DEFN( ActCLM, UI8, "Active Cold Load Multipl.", "" ) \ DPOINT_DEFN( OsmOpCoilState, OkSCct, "State of OSM operating coil", "" ) \ DPOINT_DEFN( DriverState, RdyNr, "State of Driver", "" ) \ DPOINT_DEFN( NumProtGroups, UI8, "Number of protection groups", "" ) \ DPOINT_DEFN( ActProtGroup, UI8, "Active protection group.\r\n\r\nNOTE: Not avail to DNP as set points are not supported.", "" ) \ DPOINT_DEFN( BattTestAuto, EnDis, "Automatic battery test", "" ) \ DPOINT_DEFN( AvgPeriod, AvgPeriod, "Averaging period", "" ) \ DPOINT_DEFN( ProtStepState, ProtectionState, "This represents the current state of the step engine. This value is considered to be internal to the protection process; it's primary purpose is to allow the protection process determine it's previous state on power up. In single-triple configurations, this datapoint refers to phase A only.", "" ) \ DPOINT_DEFN( USensing, RdyNr, "Voltage sensing", "" ) \ DPOINT_DEFN( DoorState, OpenClose, "Auxiliary configuration", "" ) \ DPOINT_DEFN( BtnOpen, AuxConfig, "Open button mode", "" ) \ DPOINT_DEFN( BtnRecl, TimeFormat, "Auto reclose button mode", "" ) \ DPOINT_DEFN( BtnEf, TimeFormat, "Earth fault button mode", "" ) \ DPOINT_DEFN( BtnSef, TimeFormat, "Sensitive earth fault button mode", "" ) \ DPOINT_DEFN( SigCtrlRqstTripClose, Signal, "Request a trip / close. To request a close set value to 1, to request an open set value to 0.", "" ) \ DPOINT_DEFN( CntOps, UI16, "Count of OSM operations", "" ) \ DPOINT_DEFN( CntWearOsm, UI16, "OSM wear", "" ) \ DPOINT_DEFN( CntOpsOc, UI16, "Count of over current operations", "" ) \ DPOINT_DEFN( CntOpsEf, UI16, "Count of earth fault operations", "" ) \ DPOINT_DEFN( CntOpsSef, UI16, "Count of SEF operations", "" ) \ DPOINT_DEFN( BattI, UI16, "Battery current", "" ) \ DPOINT_DEFN( BattU, UI16, "Battery voltage", "" ) \ DPOINT_DEFN( BattCap, UI16, "Battery capacity", "" ) \ DPOINT_DEFN( LcdCont, UI16, "LCD Contrast", "" ) \ DPOINT_DEFN( SwitchFailureStatusFlag, UI8, "An internal flag used by the simSwRqst library to flag if the 'failure' mode is set. Applies only to phase A for single-triple configurations.", "" ) \ DPOINT_DEFN( DbSourceFiles, UI8, "The bit field of source files used when populating the database. The bits are defined by the DbPopulate enum.", "" ) \ DPOINT_DEFN( SigMalfRelayLog, Signal, "The logger process (logprocess) detected an error.", "" ) \ DPOINT_DEFN( HmiMode, HmiMode, "Sets the current mode of operation the HMI (i.e. panel). An HMI mode changes the initial form displayed on the panel screen, can force the panel to remain on, and can modify other HMI behaviour. This 'HmiMode' is *not* related to local/remote. This datapoint should be set by the SMP process only.", "" ) \ DPOINT_DEFN( ClearFaultCntr, ClearCommand, "Requests to clear the fault counter.", "" ) \ DPOINT_DEFN( ClearScadaCntr, ClearCommand, "Request to clear the SCADA counters", "" ) \ DPOINT_DEFN( ClearEnergyMeters, ClearCommand, "Request to clear the energy meters", "" ) \ DPOINT_DEFN( UpdateRelayNew, Str, "Relay firmware version string which is about to be installed. Used at startup to verify whether a firmware update was successful: if IdRelaySoftwareVer matches this datapoint then software update was successful.", "" ) \ DPOINT_DEFN( UpdateSimNew, Str, "SIM firmware version string which is about to be installed. Used at startup to verify whether a firmware update was successful: if IdSIMSoftwareVer matches this datapoint then software update was successful.", "" ) \ DPOINT_DEFN( SigExtSupplyStatusShutDown, Signal, "External Load Shutdown", "" ) \ DPOINT_DEFN( IdUbootSoftwareVer, Str, "U-Boot version string. Populated at startup by SMP.", "" ) \ DPOINT_DEFN( CntOpsOsm, UI32, "Count OSM operations", "" ) \ DPOINT_DEFN( SigCtrlHltOn, Signal, "Hot Line Tag is turned on", "" ) \ DPOINT_DEFN( AuxVoltage, UI32, "Auxiliary voltage", "" ) \ DPOINT_DEFN( PwdSettings, Str, "Settings password", "" ) \ DPOINT_DEFN( PwdConnect, Str, "CS Connect password", "" ) \ DPOINT_DEFN( SigCtrlHltRqstReset, Signal, "This signal is used to request resetting of the HLT tag. The intent is for this signal to be set only by the panel _after_ the user enters a password. \r\n\r\nNOTE: That this value must NOT be flagged as IsProtSetting.", "" ) \ DPOINT_DEFN( IdMicrokernelSoftwareVer, Str, "Microkernel version string. Populated at startup by SMP.", "" ) \ DPOINT_DEFN( CmsConnectStatus, CmsConnectStatus, "CMS link connection status between PC and relay. set by relay CMS process. Default value is disconnected.", "" ) \ DPOINT_DEFN( SigPickupLsdUa, Signal, "Voltage on A bushing is above LSD level", "" ) \ DPOINT_DEFN( SigPickupLsdUb, Signal, "Voltage on B bushing is above LSD level", "" ) \ DPOINT_DEFN( SigPickupLsdUc, Signal, "Voltage on C bushing is above LSD level", "" ) \ DPOINT_DEFN( SigPickupLsdUr, Signal, "Voltage on R bushing is above LSD level", "" ) \ DPOINT_DEFN( SigPickupLsdUs, Signal, "Voltage on S bushing is above LSD level", "" ) \ DPOINT_DEFN( SigPickupLsdUt, Signal, "Voltage on T bushing is above LSD level", "" ) \ DPOINT_DEFN( OsmModelStr, Str, "The OSM model description.\r\n\r\nNOTE: This is set by the SCADA process, the value is derived from the part code field of the OSM's serial number.", "" ) \ DPOINT_DEFN( LoadProfDefAddr, UI32, "load profile defination address allocated by metering", "" ) \ DPOINT_DEFN( LoadProfNotice, LoadProfileNoticeType, "load Profile notice", "" ) \ DPOINT_DEFN( LoadProfValAddr, UI32, "Load Profile values address allocated by metering process", "" ) \ DPOINT_DEFN( SigStatusCloseBlocking, Signal, "Close operations from any source are blocked (set whenever any of HLT or Logical Block Close is set). (Not set when HLT is On by LL).", "" ) \ DPOINT_DEFN( SigCtrlBlockCloseOn, Signal, "Control to block close from all sources. Can be driven from IO, Logic or SCADA", "" ) \ DPOINT_DEFN( CmsHasCrc, UI8, "Flag: If non-0 CMS packets have CRC appended. ", "" ) \ DPOINT_DEFN( CmsCntErr, UI32, "Counter: Number of corrupted packets rxd+number of NAK_CRC packets rxd.", "" ) \ DPOINT_DEFN( CmsCntTxd, UI32, "Counter: Number of packets txd. ", "" ) \ DPOINT_DEFN( CmsCntRxd, UI32, "Counter: Number of packets rxd.", "" ) \ DPOINT_DEFN( CmsAuxPort, UI16, "The additional port ID that the DMS module will accept commands from.", "" ) \ DPOINT_DEFN( SigOpenGrp1, Signal, "Open due to Group 1 tripping", "" ) \ DPOINT_DEFN( CmsAuxHasCrc, UI8, "Flag: If non-0 CMS packets have CRC appended. ", "" ) \ DPOINT_DEFN( CmsAuxCntErr, UI32, "Counter: Number of corrupted packets rxd+number of NAK_CRC packets rxd.", "" ) \ DPOINT_DEFN( CmsAuxCntTxd, UI32, "Counter: Number of packets txd. ", "" ) \ DPOINT_DEFN( CmsAuxCntRxd, UI32, "Counter: Number of packets rxd.", "" ) \ DPOINT_DEFN( CmsVer, Str, "CMS process version", "" ) \ DPOINT_DEFN( ProtGlbFreqRated, RatedFreq, "Rated frequency for the protection ", "" ) \ DPOINT_DEFN( ProtGlbUsys, UI32, "Rated system voltage", "" ) \ DPOINT_DEFN( ProtGlbLsdLevel, UI32, "Loss of Supply Detector Level", "" ) \ DPOINT_DEFN( SigOpenGrp2, Signal, "Open due to Group 2 tripping", "" ) \ DPOINT_DEFN( SigOpenGrp3, Signal, "Open due to Group 3 tripping", "" ) \ DPOINT_DEFN( SigOpenGrp4, Signal, "Open due to Group 4 tripping", "" ) \ DPOINT_DEFN( PanelButtEF, EnDis, "HMI Earth Fault fast key control", "" ) \ DPOINT_DEFN( PanelButtSEF, EnDis, "HMI Sensitive Earth Fault fast key control", "" ) \ DPOINT_DEFN( PanelButtAR, EnDis, "HMI Automatic Reclosing fast key control", "" ) \ DPOINT_DEFN( PanelButtCL, EnDis, "HMI Cold Load fast key control", "" ) \ DPOINT_DEFN( PanelButtLL, EnDis, "HMI Live Line fast key control", "" ) \ DPOINT_DEFN( PanelButtActiveGroup, EnDis, "HMI ActiveGroup fast key control", "" ) \ DPOINT_DEFN( PanelButtProtection, EnDis, "HMI Protection fast key control", "" ) \ DPOINT_DEFN( PanelDelayedClose, EnDis, "HMI delayed close", "" ) \ DPOINT_DEFN( PanelDelayedCloseTime, UI16, "HMI delayed close time", "" ) \ DPOINT_DEFN( MicrokernelFsType, FileSystemType, "The file system type used by the microkernel (as identified by the microkernel's bax meta data).", "" ) \ DPOINT_DEFN( HmiErrMsg, ERR, "If any process writes an error code to this database HMI will display an error message dialog.", "" ) \ DPOINT_DEFN( HmiErrMsgFull, HmiErrMsg, "If any process writes an error structure to this datapoint HMI will display an error message dialog. See also HmiErrMsg for a simpler mechanism of display error messages.", "" ) \ DPOINT_DEFN( ScadaCounterCallDropouts, UI32, "The number of modem calls where RC10 did not initiate hanging up", "" ) \ DPOINT_DEFN( ScadaCounterCallFails, UI32, "Increments when Slave does not connect to the base station modem.", "" ) \ DPOINT_DEFN( CanSimSetResetTimeUI16, UI16, "UPS External Load Reset Time.\r\n\r\nNOTE: This deprecates dpId:85", "" ) \ DPOINT_DEFN( HmiPasswordUser, HmiPwdGroup, "The 'user' password as 4 ASCII characters.", "" ) \ DPOINT_DEFN( UpdateFailed, Signal, "Update failed for relay firmware component, and could not be reverted.", "" ) \ DPOINT_DEFN( UpdateReverted, Signal, "An update failed and was successfully reverted to the previous version.", "" ) \ DPOINT_DEFN( SwitchCoefCUa, UI32, "Switchgear CUa Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCUb, UI32, "Switchgear CUb Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCUc, UI32, "Switchgear CUc Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCUr, UI32, "Switchgear CUr Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCUs, UI32, "Switchgear CUs Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCUt, UI32, "Switchgear CUt Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCIa, UI32, "Switchgear CIa Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCIb, UI32, "Switchgear CIb Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCIc, UI32, "Switchgear CIc Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchCoefCIn, UI32, "Switchgear CIn Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( LogEventDir, Str, "Event log file directory", "" ) \ DPOINT_DEFN( LogCloseOpenDir, Str, "Close Open log file directory", "" ) \ DPOINT_DEFN( LogLoadProfDir, Str, "Load Profile log file directory", "" ) \ DPOINT_DEFN( LogFaultProfDir, Str, "Fault profile log file directory", "" ) \ DPOINT_DEFN( LogChangeDir, Str, "Change log file directory", "" ) \ DPOINT_DEFN( SysSettingDir, Str, "System setting file directory", "" ) \ DPOINT_DEFN( ScadaTimeLocal, ScadaTimeIsLocal, "Flag to indicate if time sent over SCADA should be interpreted as local time or UTC time. \r\n\r\nNOTE: The interpretation of this value is reversed. 0 == Local, 1 == GMT/UTC.", "" ) \ DPOINT_DEFN( TimeZone, I32, "System timezone, stored as number of seconds offset from UTC. NB: The weird negative value is for time zones -13h and -14h which aren't legally adopted but are theoretically possible.", "" ) \ DPOINT_DEFN( UpdateSettingsLogFailed, Signal, "Failed to backup or restore relay settings and/or logs", "" ) \ DPOINT_DEFN( DbugCmsSerial, UI32, "This value sets the trace level for debugging the CMS serial transport protocol. Note that debug tracing is only available if CMS is built with DEBUG options.", "" ) \ DPOINT_DEFN( USBDConfigType, UsbPortConfigType, "USB D Device config type for COMMS library", "" ) \ DPOINT_DEFN( USBEConfigType, UsbPortConfigType, "USB E Device config type for COMMS library", "" ) \ DPOINT_DEFN( USBFConfigType, SerialPortConfigType, "USB C2 Device config type for COMMS library", "" ) \ DPOINT_DEFN( Rs232Dte2ConfigType, SerialPortConfigType, "RS-232P Port configuration type", "" ) \ DPOINT_DEFN( CommsChEvGrp5, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 5 settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp6, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 6 settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp7, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 7 settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp8, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 8 settings.", "" ) \ DPOINT_DEFN( SigUSBUnsupported, Signal, "USB Unsupported Device Connected", "" ) \ DPOINT_DEFN( SigUSBMismatched, Signal, "USB Mismatched Device Connected", "" ) \ DPOINT_DEFN( DNP3_ModemDialOut, Bool, "DNP3 ModemDialOut", "" ) \ DPOINT_DEFN( CMS_ModemDialOut, Bool, "CMS ModemDialOut", "" ) \ DPOINT_DEFN( DNP3_ModemPreDialString, Str, "DNP3 ModemPreDialString", "" ) \ DPOINT_DEFN( CMS_ModemPreDialString, Str, "CMS ModemPreDialString", "" ) \ DPOINT_DEFN( DNP3_ModemDialNumber1, Str, "DNP3 ModemDialNumber1", "" ) \ DPOINT_DEFN( DNP3_ModemDialNumber2, Str, "DNP3 ModemDialNumber2", "" ) \ DPOINT_DEFN( DNP3_ModemDialNumber3, Str, "DNP3 ModemDialNumber3", "" ) \ DPOINT_DEFN( DNP3_ModemDialNumber4, Str, "DNP3 ModemDialNumber4", "" ) \ DPOINT_DEFN( DNP3_ModemDialNumber5, Str, "DNP3 ModemDialNumber5", "" ) \ DPOINT_DEFN( ProtTstSeq, UI32, "Base address of test sequence", "" ) \ DPOINT_DEFN( ProtTstLogStep, UI32, "Test prot has loaded a new step", "" ) \ DPOINT_DEFN( ProtTstDbug, Str, "Debug string", "" ) \ DPOINT_DEFN( ProtCfgBase, UI32, "Base address of protection config", "" ) \ DPOINT_DEFN( G1_OcAt, UI32, "Grp1 OC Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G1_OcDnd, DndMode, "Grp1 _OC DND", "" ) \ DPOINT_DEFN( G1_EfAt, UI32, "Grp1 _EF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G1_EfDnd, DndMode, "Grp1 _EF DND", "" ) \ DPOINT_DEFN( G1_SefAt, UI32, "Grp1 _SEF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G1_SefDnd, DndMode, "Grp1 _SEF DND", "" ) \ DPOINT_DEFN( G1_ArOCEF_ZSCmode, EnDis, "Grp1 1AutoReclose ZSC mod", "" ) \ DPOINT_DEFN( G1_VrcEnable, EnDis, "Grp1 AutoReclose VRC mode", "" ) \ DPOINT_DEFN( CMS_ModemDialNumber1, Str, "CMS ModemDialNumber1", "" ) \ DPOINT_DEFN( G1_ArOCEF_Trec1, UI32, "Grp1 AutoReclose Reclose Trip 1", "" ) \ DPOINT_DEFN( G1_ArOCEF_Trec2, UI32, "Grp1 AutoReclose Reclose Trip 2", "" ) \ DPOINT_DEFN( G1_ArOCEF_Trec3, UI32, "Grp1 AutoReclose Reclose Trip 3", "" ) \ DPOINT_DEFN( G1_ResetTime, UI32, "Grp1 Reset time", "" ) \ DPOINT_DEFN( G1_TtaMode, TtaMode, "Grp1 Transient additional time mode", "" ) \ DPOINT_DEFN( G1_TtaTime, UI32, "Grp1 Transient additional time", "" ) \ DPOINT_DEFN( G1_SstOcForward, UI8, "Grp1 OC Single shot to trip.", "" ) \ DPOINT_DEFN( G1_EftEnable, EnDis, "Grp1 En/Disables the excess fast trip engine.", "" ) \ DPOINT_DEFN( G1_ClpClm, UI32, "Grp1 CLP multiplier", "" ) \ DPOINT_DEFN( G1_ClpTcl, UI32, "Grp1 CLP load time", "" ) \ DPOINT_DEFN( G1_ClpTrec, UI32, "Grp1 CLP recognition time", "" ) \ DPOINT_DEFN( G1_IrrIrm, UI32, "Grp1 IRR multiplier", "" ) \ DPOINT_DEFN( G1_IrrTir, UI32, "Grp1 IRR restraint time", "" ) \ DPOINT_DEFN( G1_VrcMode, VrcMode, "Grp1 VRC mode", "" ) \ DPOINT_DEFN( G1_VrcUMmin, UI32, "Grp1 VRC voltage multiplier", "" ) \ DPOINT_DEFN( G1_AbrMode, EnDis, "Grp1 ABR mode", "" ) \ DPOINT_DEFN( G1_OC1F_Ip, UI32, "Grp1 OC1+ Pickup current", "" ) \ DPOINT_DEFN( G1_OC1F_Tcc, UI16, "Grp1 OC1+ TCC Type", "" ) \ DPOINT_DEFN( G1_OC1F_TDtMin, UI32, "Grp1 OC1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_OC1F_TDtRes, UI32, "Grp1 OC1+ DT reset time", "" ) \ DPOINT_DEFN( G1_OC1F_Tm, UI32, "Grp1 OC1+ Time multiplier", "" ) \ DPOINT_DEFN( G1_OC1F_Imin, UI32, "Grp1 OC1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G1_OC1F_Tmin, UI32, "Grp1 OC1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G1_OC1F_Tmax, UI32, "Grp1 OC1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G1_OC1F_Ta, UI32, "Grp1 OC1+ Additional time", "" ) \ DPOINT_DEFN( CMS_ModemDialNumber2, Str, "CMS ModemDialNumber2", "" ) \ DPOINT_DEFN( G1_OC1F_ImaxEn, EnDis, "Grp1 OC1+ Enable Max mode", "" ) \ DPOINT_DEFN( G1_OC1F_Imax, UI32, "Grp1 OC1+ Max current multiplier", "" ) \ DPOINT_DEFN( G1_OC1F_DirEn, EnDis, "Grp1 OC1+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_OC1F_Tr1, TripMode, "Grp1 OC1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_OC1F_Tr2, TripMode, "Grp1 OC1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_OC1F_Tr3, TripMode, "Grp1 OC1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_OC1F_Tr4, TripMode, "Grp1 OC1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_OC1F_TccUD, TccCurve, "Grp1 OC1+ User defined curve", "" ) \ DPOINT_DEFN( G1_OC2F_Ip, UI32, "Grp1 OC2+ Pickup current", "" ) \ DPOINT_DEFN( G1_OC2F_Tcc, UI16, "Grp1 OC2+ TCC Type", "" ) \ DPOINT_DEFN( G1_OC2F_TDtMin, UI32, "Grp1 OC2+ DT min tripping time", "" ) \ DPOINT_DEFN( G1_OC2F_TDtRes, UI32, "Grp1 OC2+ DT reset time", "" ) \ DPOINT_DEFN( G1_OC2F_Tm, UI32, "Grp1 OC2+ Time multiplier", "" ) \ DPOINT_DEFN( G1_OC2F_Imin, UI32, "Grp1 OC2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G1_OC2F_Tmin, UI32, "Grp1 OC2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G1_OC2F_Tmax, UI32, "Grp1 OC2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G1_OC2F_Ta, UI32, "Grp1 OC2+ Additional time", "" ) \ DPOINT_DEFN( G1_EftTripCount, UI8, "Grp1 Applicable to EFT mode: The threshould count of the number of protection trips before disabling fast trips.", "" ) \ DPOINT_DEFN( G1_OC2F_ImaxEn, EnDis, "Grp1 OC2+ Enable Max mode", "" ) \ DPOINT_DEFN( G1_OC2F_Imax, UI32, "Grp1 OC2+ Max current multiplier", "" ) \ DPOINT_DEFN( G1_OC2F_DirEn, EnDis, "Grp1 OC2+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_OC2F_Tr1, TripMode, "Grp1 OC2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_OC2F_Tr2, TripMode, "Grp1 OC2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_OC2F_Tr3, TripMode, "Grp1 OC2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_OC2F_Tr4, TripMode, "Grp1 OC2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_OC2F_TccUD, TccCurve, "Grp1 OC2+ User defined curve", "" ) \ DPOINT_DEFN( G1_OC3F_Ip, UI32, "Grp1 OC3+ Pickup current", "" ) \ DPOINT_DEFN( G1_OC3F_TDtMin, UI32, "Grp1 OC3+ DT tripping time", "" ) \ DPOINT_DEFN( G1_OC3F_TDtRes, UI32, "Grp1 OC3+ DT reset time", "" ) \ DPOINT_DEFN( G1_OC3F_DirEn, EnDis, "Grp1 OC3+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_OC3F_Tr1, TripMode, "Grp1 OC3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_OC3F_Tr2, TripMode, "Grp1 OC3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_OC3F_Tr3, TripMode, "Grp1 OC3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_OC3F_Tr4, TripMode, "Grp1 OC3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_OC1R_Ip, UI32, "Grp1 OC1- Pickup current", "" ) \ DPOINT_DEFN( G1_OC1R_Tcc, UI16, "Grp1 OC1- TCC Type", "" ) \ DPOINT_DEFN( G1_OC1R_TDtMin, UI32, "Grp1 OC1- DT min tripping time", "" ) \ DPOINT_DEFN( G1_OC1R_TDtRes, UI32, "Grp1 OC1- DT reset time", "" ) \ DPOINT_DEFN( G1_OC1R_Tm, UI32, "Grp1 OC1- Time multiplier", "" ) \ DPOINT_DEFN( G1_OC1R_Imin, UI32, "Grp1 OC1- Min. current multiplier", "" ) \ DPOINT_DEFN( G1_OC1R_Tmin, UI32, "Grp1 OC1- Minimum tripping time", "" ) \ DPOINT_DEFN( G1_OC1R_Tmax, UI32, "Grp1 OC1- Maximum tripping time", "" ) \ DPOINT_DEFN( G1_OC1R_Ta, UI32, "Grp1 OC1- Additional time", "" ) \ DPOINT_DEFN( G1_EftTripWindow, UI8, "Grp1 Applicable to EFT mode: The period window used when monitoring the number of protection trips.", "" ) \ DPOINT_DEFN( G1_OC1R_ImaxEn, EnDis, "Grp1 OC1- Enable Max mode", "" ) \ DPOINT_DEFN( G1_OC1R_Imax, UI32, "Grp1 OC1- Max current multiplier", "" ) \ DPOINT_DEFN( G1_OC1R_DirEn, EnDis, "Grp1 OC1- Enable directional protection", "" ) \ DPOINT_DEFN( G1_OC1R_Tr1, TripMode, "Grp1 OC1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_OC1R_Tr2, TripMode, "Grp1 OC1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_OC1R_Tr3, TripMode, "Grp1 OC1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_OC1R_Tr4, TripMode, "Grp1 OC1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_OC1R_TccUD, TccCurve, "Grp1 OC1- User defined curve", "" ) \ DPOINT_DEFN( G1_OC2R_Ip, UI32, "Grp1 OC2- Pickup current", "" ) \ DPOINT_DEFN( G1_OC2R_Tcc, UI16, "Grp1 OC2- TCC Type", "" ) \ DPOINT_DEFN( G1_OC2R_TDtMin, UI32, "Grp1 OC2- DT min tripping time", "" ) \ DPOINT_DEFN( G1_OC2R_TDtRes, UI32, "Grp1 OC2- DT reset time", "" ) \ DPOINT_DEFN( G1_OC2R_Tm, UI32, "Grp1 OC2- Time multiplier", "" ) \ DPOINT_DEFN( G1_OC2R_Imin, UI32, "Grp1 OC2- Min. current multiplier", "" ) \ DPOINT_DEFN( G1_OC2R_Tmin, UI32, "Grp1 OC2- Minimum tripping time", "" ) \ DPOINT_DEFN( G1_OC2R_Tmax, UI32, "Grp1 OC2- Maximum tripping time", "" ) \ DPOINT_DEFN( G1_OC2R_Ta, UI32, "Grp1 OC2- Additional time", "" ) \ DPOINT_DEFN( G1_OC2R_ImaxEn, EnDis, "Grp1 OC2- Enable Max mode", "" ) \ DPOINT_DEFN( G1_OC2R_Imax, UI32, "Grp1 OC2- Max current multiplier", "" ) \ DPOINT_DEFN( G1_OC2R_DirEn, EnDis, "Grp1 OC2- Enable directional protection", "" ) \ DPOINT_DEFN( G1_OC2R_Tr1, TripMode, "Grp1 OC2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_OC2R_Tr2, TripMode, "Grp1 OC2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_OC2R_Tr3, TripMode, "Grp1 OC2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_OC2R_Tr4, TripMode, "Grp1 OC2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_OC2R_TccUD, TccCurve, "Grp1 OC2- User defined curve", "" ) \ DPOINT_DEFN( G1_OC3R_Ip, UI32, "Grp1 OC3- Pickup current", "" ) \ DPOINT_DEFN( G1_OC3R_TDtMin, UI32, "Grp1 OC3- DT tripping time", "" ) \ DPOINT_DEFN( G1_OC3R_TDtRes, UI32, "Grp1 OC3- DT reset time", "" ) \ DPOINT_DEFN( G1_OC3R_DirEn, EnDis, "Grp1 OC3- Enable directional protection", "" ) \ DPOINT_DEFN( G1_OC3R_Tr1, TripMode, "Grp1 OC3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_OC3R_Tr2, TripMode, "Grp1 OC3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_OC3R_Tr3, TripMode, "Grp1 OC3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_OC3R_Tr4, TripMode, "Grp1 OC3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_EF1F_Ip, UI32, "Grp1 EF1+ Pickup current", "" ) \ DPOINT_DEFN( G1_EF1F_Tcc, UI16, "Grp1 EF1+ TCC Type", "" ) \ DPOINT_DEFN( G1_EF1F_TDtMin, UI32, "Grp1 EF1+ DT min tripping time", "" ) \ DPOINT_DEFN( G1_EF1F_TDtRes, UI32, "Grp1 EF1+ DT reset time", "" ) \ DPOINT_DEFN( G1_EF1F_Tm, UI32, "Grp1 EF1+ Time multiplier", "" ) \ DPOINT_DEFN( G1_EF1F_Imin, UI32, "Grp1 EF1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G1_EF1F_Tmin, UI32, "Grp1 EF1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G1_EF1F_Tmax, UI32, "Grp1 EF1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G1_EF1F_Ta, UI32, "Grp1 EF1+ Additional time", "" ) \ DPOINT_DEFN( G1_DEPRECATED_G1EF1F_Tres, UI32, "Grp1 EF1+ Reset time", "" ) \ DPOINT_DEFN( G1_EF1F_ImaxEn, EnDis, "Grp1 EF1+ Enable Max mode", "" ) \ DPOINT_DEFN( G1_EF1F_Imax, UI32, "Grp1 EF1+ Max current multiplier", "" ) \ DPOINT_DEFN( G1_EF1F_DirEn, EnDis, "Grp1 EF1+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_EF1F_Tr1, TripMode, "Grp1 EF1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_EF1F_Tr2, TripMode, "Grp1 EF1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_EF1F_Tr3, TripMode, "Grp1 EF1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_EF1F_Tr4, TripMode, "Grp1 EF1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_EF1F_TccUD, TccCurve, "Grp1 EF1+ User defined curve", "" ) \ DPOINT_DEFN( G1_EF2F_Ip, UI32, "Grp1 EF2+ Pickup current", "" ) \ DPOINT_DEFN( G1_EF2F_Tcc, UI16, "Grp1 EF2+ TCC Type", "" ) \ DPOINT_DEFN( G1_EF2F_TDtMin, UI32, "Grp1 EF2+ DT min tripping time", "" ) \ DPOINT_DEFN( G1_EF2F_TDtRes, UI32, "Grp1 EF2+ DT reset time", "" ) \ DPOINT_DEFN( G1_EF2F_Tm, UI32, "Grp1 EF2+ Time multiplier", "" ) \ DPOINT_DEFN( G1_EF2F_Imin, UI32, "Grp1 EF2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G1_EF2F_Tmin, UI32, "Grp1 EF2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G1_EF2F_Tmax, UI32, "Grp1 EF2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G1_EF2F_Ta, UI32, "Grp1 EF2+ Additional time", "" ) \ DPOINT_DEFN( G1_DEPRECATED_G1EF2F_Tres, UI32, "Grp1 EF2+ Reset time", "" ) \ DPOINT_DEFN( G1_EF2F_ImaxEn, EnDis, "Grp1 EF2+ Enable Max mode", "" ) \ DPOINT_DEFN( G1_EF2F_Imax, UI32, "Grp1 EF2+ Max mode", "" ) \ DPOINT_DEFN( G1_EF2F_DirEn, EnDis, "Grp1 EF2+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_EF2F_Tr1, TripMode, "Grp1 EF2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_EF2F_Tr2, TripMode, "Grp1 EF2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_EF2F_Tr3, TripMode, "Grp1 EF2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_EF2F_Tr4, TripMode, "Grp1 EF2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_EF2F_TccUD, TccCurve, "Grp1 EF2+ User defined curve", "" ) \ DPOINT_DEFN( G1_EF3F_Ip, UI32, "Grp1 EF3+ Pickup current", "" ) \ DPOINT_DEFN( G1_EF3F_TDtMin, UI32, "Grp1 EF3+ DT tripping time", "" ) \ DPOINT_DEFN( G1_EF3F_TDtRes, UI32, "Grp1 EF3+ DT reset time", "" ) \ DPOINT_DEFN( G1_EF3F_DirEn, EnDis, "Grp1 EF3+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_EF3F_Tr1, TripMode, "Grp1 EF3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_EF3F_Tr2, TripMode, "Grp1 EF3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_EF3F_Tr3, TripMode, "Grp1 EF3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_EF3F_Tr4, TripMode, "Grp1 EF3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_EF1R_Ip, UI32, "Grp1 EF1- Pickup current", "" ) \ DPOINT_DEFN( G1_EF1R_Tcc, UI16, "Grp1 EF1- TCC Type", "" ) \ DPOINT_DEFN( G1_EF1R_TDtMin, UI32, "Grp1 EF1- DT min tripping time", "" ) \ DPOINT_DEFN( G1_EF1R_TDtRes, UI32, "Grp1 EF1- DT reset time", "" ) \ DPOINT_DEFN( G1_EF1R_Tm, UI32, "Grp1 EF1- Time multiplier", "" ) \ DPOINT_DEFN( G1_EF1R_Imin, UI32, "Grp1 EF1- Min. current multiplier", "" ) \ DPOINT_DEFN( G1_EF1R_Tmin, UI32, "Grp1 EF1- Minimum tripping time", "" ) \ DPOINT_DEFN( G1_EF1R_Tmax, UI32, "Grp1 EF1- Maximum tripping time", "" ) \ DPOINT_DEFN( G1_EF1R_Ta, UI32, "Grp1 EF1- Additional time", "" ) \ DPOINT_DEFN( G1_DEPRECATED_G1EF1R_Tres, UI32, "Grp1 EF1- Reset time", "" ) \ DPOINT_DEFN( G1_EF1R_ImaxEn, EnDis, "Grp1 EF1- Enable Max mode", "" ) \ DPOINT_DEFN( G1_EF1R_Imax, UI32, "Grp1 EF1- Max current multiplier", "" ) \ DPOINT_DEFN( G1_EF1R_DirEn, EnDis, "Grp1 EF1- Enable directional protection", "" ) \ DPOINT_DEFN( G1_EF1R_Tr1, TripMode, "Grp1 EF1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_EF1R_Tr2, TripMode, "Grp1 EF1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_EF1R_Tr3, TripMode, "Grp1 EF1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_EF1R_Tr4, TripMode, "Grp1 EF1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_EF1R_TccUD, TccCurve, "Grp1 EF1- User defined curve", "" ) \ DPOINT_DEFN( G1_EF2R_Ip, UI32, "Grp1 EF2- Pickup current", "" ) \ DPOINT_DEFN( G1_EF2R_Tcc, UI16, "Grp1 EF2- TCC Type", "" ) \ DPOINT_DEFN( G1_EF2R_TDtMin, UI32, "Grp1 EF2- DT min tripping time", "" ) \ DPOINT_DEFN( G1_EF2R_TDtRes, UI32, "Grp1 EF2- DT reset time", "" ) \ DPOINT_DEFN( G1_EF2R_Tm, UI32, "Grp1 EF2- Time multiplier", "" ) \ DPOINT_DEFN( G1_EF2R_Imin, UI32, "Grp1 EF2- Min. current multiplier", "" ) \ DPOINT_DEFN( G1_EF2R_Tmin, UI32, "Grp1 EF2- Minimum tripping time", "" ) \ DPOINT_DEFN( G1_EF2R_Tmax, UI32, "Grp1 EF2- Maximum tripping time", "" ) \ DPOINT_DEFN( G1_EF2R_Ta, UI32, "Grp1 EF2- Additional time", "" ) \ DPOINT_DEFN( G1_EF2R_ImaxEn, EnDis, "Grp1 EF2- Enable Max mode", "" ) \ DPOINT_DEFN( G1_EF2R_Imax, UI32, "Grp1 EF2- Max current multiplier", "" ) \ DPOINT_DEFN( G1_EF2R_DirEn, EnDis, "Grp1 EF2- Enable directional protection", "" ) \ DPOINT_DEFN( G1_EF2R_Tr1, TripMode, "Grp1 EF2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_EF2R_Tr2, TripMode, "Grp1 EF2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_EF2R_Tr3, TripMode, "Grp1 EF2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_EF2R_Tr4, TripMode, "Grp1 EF2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_EF2R_TccUD, TccCurve, "Grp1 EF2- User defined curve", "" ) \ DPOINT_DEFN( G1_EF3R_Ip, UI32, "Grp1 EF3- Pickup current", "" ) \ DPOINT_DEFN( G1_EF3R_TDtMin, UI32, "Grp1 EF3- DT tripping time", "" ) \ DPOINT_DEFN( G1_EF3R_TDtRes, UI32, "Grp1 EF3- DT reset time", "" ) \ DPOINT_DEFN( G1_EF3R_DirEn, EnDis, "Grp1 EF3- Enable directional protection", "" ) \ DPOINT_DEFN( G1_EF3R_Tr1, TripMode, "Grp1 EF3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_EF3R_Tr2, TripMode, "Grp1 EF3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_EF3R_Tr3, TripMode, "Grp1 EF3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_EF3R_Tr4, TripMode, "Grp1 EF3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_SEFF_Ip, UI32, "Grp1 SEF+ Pickup current", "" ) \ DPOINT_DEFN( G1_SEFF_TDtMin, UI32, "Grp1 SEF+ DT tripping time", "" ) \ DPOINT_DEFN( G1_SEFF_TDtRes, UI32, "Grp1 SEF+ DT reset time", "" ) \ DPOINT_DEFN( G1_SEFF_DirEn, EnDis, "Grp1 SEF+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_SEFF_Tr1, TripMode, "Grp1 SEF+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_SEFF_Tr2, TripMode, "Grp1 SEF+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_SEFF_Tr3, TripMode, "Grp1 SEF+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_SEFF_Tr4, TripMode, "Grp1 SEF+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_SEFR_Ip, UI32, "Grp1 SEF- Pickup current", "" ) \ DPOINT_DEFN( G1_SEFR_TDtMin, UI32, "Grp1 SEF- DT tripping time", "" ) \ DPOINT_DEFN( G1_SEFR_TDtRes, UI32, "Grp1 SEF- DT reset time", "" ) \ DPOINT_DEFN( G1_SEFR_DirEn, EnDis, "Grp1 SEF- Enable directional protection", "" ) \ DPOINT_DEFN( G1_SEFR_Tr1, TripMode, "Grp1 SEF- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_SEFR_Tr2, TripMode, "Grp1 SEF- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_SEFR_Tr3, TripMode, "Grp1 SEF- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_SEFR_Tr4, TripMode, "Grp1 SEF- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_OcLl_Ip, UI32, "Grp1 OC3 LL Pickup current", "" ) \ DPOINT_DEFN( G1_OcLl_TDtMin, UI32, "Grp1 OC LL3 DT tripping time", "" ) \ DPOINT_DEFN( G1_OcLl_TDtRes, UI32, "Grp1 OC LL3 DT reset time", "" ) \ DPOINT_DEFN( G1_EfLl_Ip, UI32, "Grp1 EF LL3 Pickup current", "" ) \ DPOINT_DEFN( G1_EfLl_TDtMin, UI32, "Grp1 EF LL3 DT tripping time", "" ) \ DPOINT_DEFN( G1_EfLl_TDtRes, UI32, "Grp1 EF LL3 DT reset time", "" ) \ DPOINT_DEFN( G1_Uv1_Um, UI32, "Grp1 UV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G1_Uv1_TDtMin, UI32, "Grp1 UV1 DT tripping time", "" ) \ DPOINT_DEFN( G1_Uv1_TDtRes, UI32, "Grp1 UV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Uv1_Trm, TripMode, "Grp1 1 UV1 Trip mod", "" ) \ DPOINT_DEFN( G1_Uv2_Um, UI32, "Grp1 UV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G1_Uv2_TDtMin, UI32, "Grp1 UV2 DT tripping time", "" ) \ DPOINT_DEFN( G1_Uv2_TDtRes, UI32, "Grp1 UV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Uv2_Trm, TripMode, "Grp1 1 UV2 Trip mod", "" ) \ DPOINT_DEFN( G1_Uv3_TDtMin, UI32, "Grp1 UV3 DT tripping time", "" ) \ DPOINT_DEFN( G1_Uv3_TDtRes, UI32, "Grp1 UV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Uv3_Trm, TripMode, "Grp1 1 UV3 Trip mod", "" ) \ DPOINT_DEFN( G1_Ov1_Um, UI32, "Grp1 OV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G1_Ov1_TDtMin, UI32, "Grp1 OV1 DT tripping time", "" ) \ DPOINT_DEFN( G1_Ov1_TDtRes, UI32, "Grp1 OV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Ov1_Trm, TripMode, "Grp1 1 OV1 Trip mod", "" ) \ DPOINT_DEFN( G1_Ov2_Um, UI32, "Grp1 OV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G1_Ov2_TDtMin, UI32, "Grp1 OV2 DT tripping time", "" ) \ DPOINT_DEFN( G1_Ov2_TDtRes, UI32, "Grp1 OV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Ov2_Trm, TripMode, "Grp1 1 OV2 Trip mod", "" ) \ DPOINT_DEFN( G1_Uf_Fp, UI32, "Grp1 UF Pickup frequency", "" ) \ DPOINT_DEFN( G1_Uf_TDtMin, UI32, "Grp1 UF DT tripping time", "" ) \ DPOINT_DEFN( G1_Uf_TDtRes, UI32, "Grp1 UF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Uf_Trm, TripModeDLA, "Grp1 UF Trip mode", "" ) \ DPOINT_DEFN( G1_Of_Fp, UI32, "Grp1 OF Pickup frequency", "" ) \ DPOINT_DEFN( G1_Of_TDtMin, UI32, "Grp1 OF DT tripping time", "" ) \ DPOINT_DEFN( G1_Of_TDtRes, UI32, "Grp1 OF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Of_Trm, TripModeDLA, "Grp1 OF Trip mode", "" ) \ DPOINT_DEFN( G1_DEPRECATED_OC1F_ImaxAbs, UI32, "Grp1 OC1+ Max abs current", "" ) \ DPOINT_DEFN( G1_DEPRECATED_OC2F_ImaxAbs, UI32, "Grp1 OC2+ Max abs current", "" ) \ DPOINT_DEFN( G1_DEPRECATED_OC1R_ImaxAbs, UI32, "Grp1 OC1- Max abs current", "" ) \ DPOINT_DEFN( G1_DEPRECATED_OC2R_ImaxAbs, UI32, "Grp1 OC2- Max abs current", "" ) \ DPOINT_DEFN( G1_DEPRECATED_EF1F_ImaxAbs, UI32, "Grp1 EF1+ Max abs current", "" ) \ DPOINT_DEFN( G1_DEPRECATED_EF2F_ImaxAbs, UI32, "Grp1 EF2+ Max abs current", "" ) \ DPOINT_DEFN( G1_DEPRECATED_EF1R_ImaxAbs, UI32, "Grp1 EF1- Max abs current", "" ) \ DPOINT_DEFN( G1_DEPRECATED_EF2R_ImaxAbs, UI32, "Grp1 EF2- Max abs current", "" ) \ DPOINT_DEFN( G1_SstEfForward, UI8, "Grp1 EF Single shot to trip", "" ) \ DPOINT_DEFN( G1_SstSefForward, UI8, "Grp1 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G1_AbrTrest, UI32, "Grp1 The ABR restoration time in s.", "" ) \ DPOINT_DEFN( G1_AutoOpenMode, AutoOpenMode, "Grp1 AutoOpen method: Disabled/Timer/Power Flow", "" ) \ DPOINT_DEFN( G1_AutoOpenTime, UI16, "Grp1 The time in minutes to wait before auto open after a close by ABR", "" ) \ DPOINT_DEFN( G1_AutoOpenOpns, UI8, "Grp1 The number of times this element will allow ABR closes before locking out.", "" ) \ DPOINT_DEFN( G1_SstOcReverse, UI8, "Grp1 ", "" ) \ DPOINT_DEFN( G1_SstEfReverse, UI8, "Grp1 Grp 1 EF Single shot to trip", "" ) \ DPOINT_DEFN( G1_SstSefReverse, UI8, "Grp1 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G1_ArUVOV_Trec, UI32, "Grp1 Under / Over voltage auto reclose time in seconds", "" ) \ DPOINT_DEFN( G1_GrpName, Str, "Grp1 _Group Name", "" ) \ DPOINT_DEFN( G1_GrpDes, Str, "Grp1 G1_Grp Description Group description", "" ) \ DPOINT_DEFN( CMS_ModemDialNumber3, Str, "CMS ModemDialNumber3", "" ) \ DPOINT_DEFN( CMS_ModemDialNumber4, Str, "CMS ModemDialNumber4", "" ) \ DPOINT_DEFN( CMS_ModemDialNumber5, Str, "CMS ModemDialNumber5", "" ) \ DPOINT_DEFN( DNP3_ModemAutoDialInterval, UI32, "Modem Auto Dial Interval time between failure to connect to one number in seconds.", "" ) \ DPOINT_DEFN( CMS_ModemAutoDialInterval, UI32, "Modem Auto Dial Interval time between failure to connect to one number in seconds.", "" ) \ DPOINT_DEFN( DNP3_ModemConnectionTimeout, UI32, "Modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( CMS_ModemConnectionTimeout, UI32, "Modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( ScadaDnp3IpTcpSlavePort, UI16, "The TCP port used by the controller to listen to DNP3 requests. ", "" ) \ DPOINT_DEFN( CMS_PortNumber, UI16, "CMS tcp/ip port number", "" ) \ DPOINT_DEFN( UpdateFileCopyFail, UI8, "Notifies the update process that an update file failed to be copied to the staging area.", "" ) \ DPOINT_DEFN( ScadaHMIEnableProtocol, EnDis, "HMI Protocol Enabled in SCADA", "" ) \ DPOINT_DEFN( ScadaHMIChannelPort, CommsPort, "HMI Communication Channel Port in SCADA", "" ) \ DPOINT_DEFN( ScadaHMIRemotePort, CommsPort, "scada HMI remote port", "" ) \ DPOINT_DEFN( ScadaCMSLocalPort, CommsPort, "SCADA CMS Port #1", "" ) \ DPOINT_DEFN( UsbGadgetConnectionStatus, CommsConnectionStatus, "Usb gadget connection status : disconnected, connected.", "" ) \ DPOINT_DEFN( ShutdownExpected, ShutdownReason, "Indicates that a shutdown is imminent in certain situations. (Not used for all shutdown types.)", "" ) \ DPOINT_DEFN( SigSimNotCalibrated, Signal, "The SIM is not calibrated", "" ) \ DPOINT_DEFN( Io1OpMode, LocalRemote, "The operating mode that the digital inputs of IO module 1 are to operate under.", "" ) \ DPOINT_DEFN( Io2OpMode, LocalRemote, "The operating mode that the digital inputs of IO module 2 are to operate under.", "" ) \ DPOINT_DEFN( RestoreEnabled, YesNo, "Indicates whether the restore operations are enabled in recovery mode. Operations include restore settings and logs.", "" ) \ DPOINT_DEFN( ReportTimeSetting, UI32, "Standard Unix Time. For reporting a time setting.", "" ) \ DPOINT_DEFN( ScadaOpMode, LocalRemote, "The local/remote mode that the SCADA process is operating under. This is to be set by the SCADA process ONLY - if other processes write to this point then strange (& bad) things WILL happen.", "" ) \ DPOINT_DEFN( CmsSerialFrameRxTimeout, UI32, "Applicable only for the CMS serial protocol. The timeout used when receiving a frame. This value can be modified by CMS (for e.g. based on the baud rate). ", "" ) \ DPOINT_DEFN( CopyComplete, UI8, "Indicates whether a copy operation is complete. Should be set 0 prior to beginning the copy.", "" ) \ DPOINT_DEFN( ReqSetExtLoad, OnOff, "Request to set the external load on or off", "" ) \ DPOINT_DEFN( ControlExtLoad, OnOff, "Selector for setting the external load request (on write). Indicates the current on/off state of the external load otherwise.", "" ) \ DPOINT_DEFN( SigLineSupplyStatusAbnormal, Signal, "Indicated when line supply (AC) status is low or high", "" ) \ DPOINT_DEFN( ChEvEventLog, ChangeEvent, "Event log changes", "" ) \ DPOINT_DEFN( ChEvCloseOpenLog, ChangeEvent, "Close/open log changes", "" ) \ DPOINT_DEFN( ChEvFaultProfileLog, ChangeEvent, "Fault profile log changes", "" ) \ DPOINT_DEFN( ChEvLoadProfileLog, ChangeEvent, "Load profile log changes", "" ) \ DPOINT_DEFN( ChEvChangeLog, ChangeEvent, "Change log changes", "" ) \ DPOINT_DEFN( SimBatteryVoltageScaled, UI16, "Battery voltage scaled to report in mV. The value is Ubt multiplied by 10. \r\n\r\nNote that this value is not for IEC protocols as they have per point scaling.", "" ) \ DPOINT_DEFN( LocalInputDebouncePeriod, UI16, "Local input debounce period in milliseconds", "" ) \ DPOINT_DEFN( ScadaT101ChannelMode, T101ChannelMode, "Operating mode for IEC 60870-5-101 serial channel: Balanced or Unbalanced", "" ) \ DPOINT_DEFN( ScadaT101DataLinkAddSize, UI8, "Number of bytes in IEC 60870-5-101 Data Link Address: 0, 1 or 2 for Balanced links, 1 or 2 for Unbalanced links.", "" ) \ DPOINT_DEFN( ScadaT104TCPPortNr, UI16, "IEC 60870-5-104 TCP port. Only change from default 2404 assigned by IANA if the master requires this.", "" ) \ DPOINT_DEFN( ScadaT101CAASize, UI8, "Number of bytes in the Common Address of ASDU: 1 or 2. For IEC 60870-5-104 this parameter is ignored and the value 2 is always used.", "" ) \ DPOINT_DEFN( ScadaT10BCAA, UI16, "Common Address of ASDU for both IEC 60870-5-101 and -104. This value must be unique for each controlled station in the system. Value 0 is reserved. Values 255 and 65535 are used as broadcast addresses for 1- and 2-byte address sizes.", "" ) \ DPOINT_DEFN( ScadaT101DataLinkAdd, UI16, "IEC 60870-5-101 Data Link Address. This is unique for each controlled station that shares the same communication channel. Value 0 is reserved. Values 255 and 65535 are reserved as broadcast addresses for 1- and 2-byte address sizes.", "" ) \ DPOINT_DEFN( ScadaT101COTSize, UI8, "IEC 60870-5-101 size of Cause of Transmission: 1 or 2 bytes. In IEC 60870-5-104, this field is ignored and the COT always occupies 2 bytes.", "" ) \ DPOINT_DEFN( ScadaT101IOASize, UI8, "IEC 60870-5-101 size of Information Object Address: 1, 2 or 3 bytes.", "" ) \ DPOINT_DEFN( ScadaT101SingleCharEnable, EnDis, "IEC 60870-5-101 Enable Single Character Messages. When enabled, the outstation sends the single character message instead of a full data link message to indicate a null or ACK response. When disabled, the full data link format is always used.", "" ) \ DPOINT_DEFN( ScadaT101MaxDLFrameSize, UI16, "Maximum Data Link Frame Length for IEC 60870-5-101 (in bytes)", "" ) \ DPOINT_DEFN( ScadaT101FrameTimeout, UI16, "Frame timeout (first byte to last byte) for IEC 60870-5-101 data link frames.", "" ) \ DPOINT_DEFN( ScadaT101LinkConfirmTimeout, UI16, "IEC 60870-5-101 Data Link Confirm Timeout (ms)", "" ) \ DPOINT_DEFN( ScadaT10BSelectExecuteTimeout, UI16, "IEC 60870-5-101 / -104 Select / Execute Timeout (seconds)", "" ) \ DPOINT_DEFN( ScadaT104ControlTSTimeout, UI16, "IEC 60870-5-104 maximum acceptable difference between timestamp in a timestamped control and the receiver clock (seconds)", "" ) \ DPOINT_DEFN( ScadaT101TimeStampSize, T101TimeStampSize, "IEC 60870-5-101 Size of time stamps (3 bytes or 7 bytes)", "" ) \ DPOINT_DEFN( ScadaT10BClockValidPeriod, UI32, "IEC 60870-5-101 / -104 Period after a clock synchronization for which the clock is considered valid (seconds)", "" ) \ DPOINT_DEFN( ScadaT10BCyclicPeriod, UI16, "IEC 60870-5-101 / -104 Period of measuring & reporting data configured for Cyclic Reporting (seconds). Set to zero to disable cyclic reporting.", "" ) \ DPOINT_DEFN( ScadaT10BBackgroundPeriod, UI16, "IEC 60870-5-101 / -104 Period for providing background updates for data (seconds). Set to 0 to disable all background reporting.", "" ) \ DPOINT_DEFN( ScadaT10BSinglePointRepMode, T10BReportMode, "IEC 60870-5-101 / -104 Single Point Status Reporting Mode: Disabled, Event without time stamp, Event with time stamp, Cyclic, Background, Interrogation", "" ) \ DPOINT_DEFN( ScadaT10BDoublePointRepMode, T10BReportMode, "IEC 60870-5-101 / -104 Double Point Status Reporting Mode: Disabled, Event without time stamp, Event with time stamp, Cyclic, Background, Interrogation", "" ) \ DPOINT_DEFN( ScadaT10BSingleCmdRepMode, T10BControlMode, "IEC 60870-5-101 / -104 Single Command Mode: Disabled, Select before Execute, Direct Execute", "" ) \ DPOINT_DEFN( ScadaT10BDoubleCmdRepMode, T10BControlMode, "IEC 60870-5-101 / -104 Double Command Mode: Disabled, Select before Execute, Direct Execute", "" ) \ DPOINT_DEFN( ScadaT10BMeasurandRepMode, T10BReportMode, "IEC 60870-5-101 / -104 Measurand Report Mode: Disabled, Event without time stamp, Event with time stamp, Cyclic, Background, Interrogation", "" ) \ DPOINT_DEFN( ScadaT10BSetpointRepMode, T10BControlMode, "IEC 60870-5-101 / -104 Set Point Command Mode: Disabled, Select before Execute, Direct Execute", "" ) \ DPOINT_DEFN( ScadaT10BParamCmdRepMode, T10BParamRepMode, "IEC 60870-5-101 / -104 Parameter Command Reporting Mode: Disabled, Interrogation, Enabled but not reported", "" ) \ DPOINT_DEFN( ScadaT10BIntTotRepMode, T10BCounterRepMode, "IEC 60870-5-101 / -104 Integrated Total Reporting Mode: Disabled, Event without time stamp, Event with time stamp, Interrogation without time stamp, Interrogation with time stamp", "" ) \ DPOINT_DEFN( ScadaT10BSinglePointBaseIOA, UI32, "IEC 60870-5-101 / -104 Single Point Information Base Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BDoublePointBaseIOA, UI32, "IEC 60870-5-101 / -104 Double Point Information Base Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BSingleCmdBaseIOA, UI32, "IEC 60870-5-101 / -104 Single Command Base Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BDoubleCmdBaseIOA, UI32, "IEC 60870-5-101 / -104 Double Command Base Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BMeasurandBaseIOA, UI32, "IEC 60870-5-101 / -104 Measurand Base Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BSetpointBaseIOA, UI32, "IEC 60870-5-101 / -104 Set Point Command Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BParamCmdBaseIOA, UI32, "IEC 60870-5-101 / -104 Parameter Command Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BIntTotBaseIOA, UI32, "IEC 60870-5-101 / -104 Integrated Total Information Object Address", "" ) \ DPOINT_DEFN( ScadaT10BFormatMeasurand, T10BFormatMeasurand, "IEC 60870-5-101 / -104 Measurand Format: Normalized, Scaled or Float", "" ) \ DPOINT_DEFN( ScadaT10BCounterGeneralLocalFrzPeriod, UI16, "IEC 60870-5-101 / -104 Integrated Total General Local Freeze Period (minutes). Recommended values: 1, 5, 10, 15, 30, 60 (1 hr), 180 (3 hr), 360 (6 hr), 720 (12 hr), 1440 (daily), 10080 (weekly)", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp1LocalFrzPeriod, UI16, "IEC 60870-5-101 / -104 Integrated Total Group 1 Local Freeze Period (minutes). Recommended values: 1, 5, 10, 15, 30, 60 (1 hr), 180 (3 hr), 360 (6 hr), 720 (12 hr), 1440 (daily), 10080 (weekly)", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp2LocalFrzPeriod, UI16, "IEC 60870-5-101 / -104 Integrated Total Group 2 Local Freeze Period (minutes). Recommended values: 1, 5, 10, 15, 30, 60 (1 hr), 180 (3 hr), 360 (6 hr), 720 (12 hr), 1440 (daily), 10080 (weekly)", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp3LocalFrzPeriod, UI16, "IEC 60870-5-101 / -104 Integrated Total Group 3 Local Freeze Period (minutes). Recommended values: 1, 5, 10, 15, 30, 60 (1 hr), 180 (3 hr), 360 (6 hr), 720 (12 hr), 1440 (daily), 10080 (weekly)", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp4LocalFrzPeriod, UI16, "IEC 60870-5-101 / -104 Integrated Total Group 4 Local Freeze Period (minutes). Recommended values: 1, 5, 10, 15, 30, 60 (1 hr), 180 (3 hr), 360 (6 hr), 720 (12 hr), 1440 (daily), 10080 (weekly)", "" ) \ DPOINT_DEFN( ScadaT10BCounterGeneralLocalFrzFunction, PeriodicCounterOperation, "IEC 60870-5-101 / -104 Integrated Total General Local Freeze Function", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp1LocalFrzFunction, PeriodicCounterOperation, "IEC 60870-5-101 / -104 Integrated Total Group 1 Local Freeze Function", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp2LocalFrzFunction, PeriodicCounterOperation, "IEC 60870-5-101 / -104 Integrated Total Group 2 Local Freeze Function", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp3LocalFrzFunction, PeriodicCounterOperation, "IEC 60870-5-101 / -104 Integrated Total Group 3 Local Freeze Function", "" ) \ DPOINT_DEFN( ScadaT10BCounterGrp4LocalFrzFunction, PeriodicCounterOperation, "IEC 60870-5-101 / -104 Integrated Total Group 4 Local Freeze Function", "" ) \ DPOINT_DEFN( ScadaT10BSingleInfoInputs, ScadaT10BMSP, "IEC 60870-5-101 / -104 Single Point Information Points", "" ) \ DPOINT_DEFN( ScadaT10BDoubleInfoInputs, ScadaT10BMDP, "IEC 60870-5-101 / -104 Double Point Information Points", "" ) \ DPOINT_DEFN( ScadaT10BSingleCmndOutputs, ScadaT10BCSC, "IEC 60870-5-101 / -104 Single Command Points", "" ) \ DPOINT_DEFN( ScadaT10BDoubleCmndOutputs, ScadaT10BCDC, "IEC 60870-5-101 / -104 Double Command Points", "" ) \ DPOINT_DEFN( ScadaT10BMeasuredValues, ScadaT10BMME, "IEC 60870-5-101 / -104 Measurand Points", "" ) \ DPOINT_DEFN( ScadaT10BSetpointCommand, ScadaT10BCSE, "IEC 60870-5-101 / -104 Set Point Command Points", "" ) \ DPOINT_DEFN( ScadaT10BParameterCommand, ScadaT10BPME, "IEC 60870-5-101 / -104 Parameter Command Points", "" ) \ DPOINT_DEFN( ScadaT10BIntegratedTotal, ScadaT10BMIT, "IEC 60870-5-101 / -104 Integrated Total Points", "" ) \ DPOINT_DEFN( CmsMainConnectionTimeout, UI32, "Timeout waiting for data from CMS main channel to determine disconnection.", "" ) \ DPOINT_DEFN( CmsAuxConnectionTimeout, UI32, "Timeout waiting for data from CMS aux channel to determine disconnection.", "" ) \ DPOINT_DEFN( CmsMainConnected, Bool, "Indicates whether or not the CMS is connected via the main channel.", "" ) \ DPOINT_DEFN( CmsAuxConnected, Bool, "Indicates whether or not CMS is connected via the aux channel.", "" ) \ DPOINT_DEFN( ScadaDnp3IpProtocolMode, CommsIpProtocolMode, "DNP3: IP Protocol mode", "" ) \ DPOINT_DEFN( ScadaDnp3IpValidMasterAddr, YesNo, "Whether to accept DNP3 messages from the configured Master's IP address.", "" ) \ DPOINT_DEFN( ScadaDnp3IpMasterAddr, IpAddr, "The Master's IP address. This is used for authorizing, if “Check Master IP Address” is ON, and for sending unsolicited messages.", "" ) \ DPOINT_DEFN( T10BPhaseCurrentDeadband, I16, "IEC 60870-5-101 / -104 Phase Current Deadband, sets deadband for Ia, Ib and Ic", "" ) \ DPOINT_DEFN( ScadaDnp3IpTcpMasterPort, UI16, "This is the TCP port where the controller will send all the responses.\r\nThis port shall be used by the master to listen and receive the incoming\r\nrequests from the controller.\r\n", "" ) \ DPOINT_DEFN( ScadaDnp3IpUdpSlavePort, UI16, "Local UDP port for sending and/or receiving UDP datagrams. If the mode is TCP this port is used to receive broadcast UDP messages.", "" ) \ DPOINT_DEFN( ScadaDnp3IpTimeout, UI32, "Timer to break the TCPIP connect and go back to listening if the DNP3 protocol has no traffic for the set period of time. This timer relates only to DNP3 traffic. When set to 0 it will never time out.", "" ) \ DPOINT_DEFN( ScadaDnp3IpTcpKeepAlive, UI32, "The time period for the keep-alive timer on active TCP connections.", "" ) \ DPOINT_DEFN( ScadaDnp3IpUdpMasterPortInit, UI16, "Destination UDP port for initial unsolicited null responses.", "" ) \ DPOINT_DEFN( ScadaDnp3IpUdpMasterPortInRqst, YesNo, "The port number of the incoming message will be used as the destination port number instead of the ‘UDP Master Port’ setting value.", "" ) \ DPOINT_DEFN( ScadaDnp3IpUdpMasterPort, UI16, "Destination UDP port for sending all responses other than initial unsolicited Null response if ‘UDP Master Port In Request’ is OFF.", "" ) \ DPOINT_DEFN( T101_ModemDialOut, Bool, "IEC 60870-5-101 Modem Dial Out", "" ) \ DPOINT_DEFN( T101_ModemPreDialString, Str, "IEC 60870-5-101 Modem Pre Dial String", "" ) \ DPOINT_DEFN( T101_ModemDialNumber1, Str, "IEC 60870-5-101 Modem Dial Number 1", "" ) \ DPOINT_DEFN( T101_ModemDialNumber2, Str, "IEC 60870-5-101 Modem Dial Number 2", "" ) \ DPOINT_DEFN( T101_ModemDialNumber3, Str, "IEC 60870-5-101 Modem Dial Number 3", "" ) \ DPOINT_DEFN( T101_ModemDialNumber4, Str, "IEC 60870-5-101 Modem Dial Number 4", "" ) \ DPOINT_DEFN( T101_ModemDialNumber5, Str, "IEC 60870-5-101 Modem Dial Number 5", "" ) \ DPOINT_DEFN( ScadaT10BEnableProtocol, EnDis, "IEC 60870-5-101 / -104 protocol enabled for SCADA", "" ) \ DPOINT_DEFN( ScadaT104PendingFrames, UI16, "Maximum number of unconfirmed frames that may be sent by the IEC 60870-5-104 interface before receiving an acknowledgement response. This is parameter \"k\" defined in IEC 60870-5-104.", "" ) \ DPOINT_DEFN( ScadaT10BChannelPort, CommsPort, "IEC 60870-5-101 / -104 Channel Port", "" ) \ DPOINT_DEFN( ScadaT104ConfirmAfter, UI16, "Send an acknowledgement after receiving this number of IEC 60870-5-104 frames. This is parameter \"w\" defined in IEC 60870-5-104. Recommendation: \"w\" should not exceed 2/3 of \"k\".", "" ) \ DPOINT_DEFN( T101_ModemAutoDialInterval, UI32, "Modem Auto Dial Interval time between failure to connect to one number in seconds.", "" ) \ DPOINT_DEFN( T101_ModemConnectionTimeout, UI32, "Modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( T101RxCnt, UI32, "IEC 60870-5-101 RX diagnostic count. This is the count of the bytes received on the physical port used by IEC 60870-5-101. ", "" ) \ DPOINT_DEFN( T101TxCnt, UI32, "IEC 60870-5-101 count of bytes transmitted by the physical port that is used by the protocol.", "" ) \ DPOINT_DEFN( T104RxCnt, UI32, "IEC 60870-5-104 count of TCP/IP packets recieved by the IEC 60870-5-104 interface", "" ) \ DPOINT_DEFN( T104TxCnt, UI32, "IEC 60870-5-104 count of TCP/IP packets transmited by the IEC 60870-5-104 interface", "" ) \ DPOINT_DEFN( T10BPhaseVoltageDeadband, I16, "IEC 60870-5-101 / -104 Phase Voltage Deadband, sets deadband for Ua, Ub & Uc", "" ) \ DPOINT_DEFN( T10BResidualCurrentDeadband, I16, "IEC 60870-5-101 / -104 Residual Current Deadband, sets deadband for In", "" ) \ DPOINT_DEFN( T10B3PhasePowerDeadband, I16, "IEC 60870-5-101 / -104 Three Phase Power Deadband, sets deadband for: KVA, KW & KVAr", "" ) \ DPOINT_DEFN( T10BPhaseCurrentHiLimit, I16, "IEC 60870-5-101 / -104 Phase current high limit parameter. Sets high limit for Ia, Ib & Ic. An event is generated if this limit is exceeded and the points are configured to report events.", "" ) \ DPOINT_DEFN( T10BResidualCurrentHiLimit, I16, "IEC 60870-5-101 / -104 Residual current high limit parameter. Sets high limit for In. An event is generated if this limit is exceeded and the points are configured to report events.", "" ) \ DPOINT_DEFN( IdIo1SerialNumber, SerialNumber, "Identification: IO1 Number", "" ) \ DPOINT_DEFN( Curv1, TccCurve, "TccCurve1", "" ) \ DPOINT_DEFN( Curv2, TccCurve, "TccCurve2", "" ) \ DPOINT_DEFN( Curv3, TccCurve, "TccCurve3", "" ) \ DPOINT_DEFN( Curv4, TccCurve, "TccCurve4", "" ) \ DPOINT_DEFN( Curv5, TccCurve, "TccCurve5", "" ) \ DPOINT_DEFN( Curv6, TccCurve, "TccCurve6", "" ) \ DPOINT_DEFN( Curv7, TccCurve, "TccCurve7", "" ) \ DPOINT_DEFN( Curv8, TccCurve, "TccCurve8", "" ) \ DPOINT_DEFN( Curv9, TccCurve, "TccCurve9", "" ) \ DPOINT_DEFN( Curv10, TccCurve, "TccCurve10", "" ) \ DPOINT_DEFN( Curv11, TccCurve, "TccCurve11", "" ) \ DPOINT_DEFN( Curv12, TccCurve, "TccCurve12", "" ) \ DPOINT_DEFN( Curv13, TccCurve, "TccCurve13", "" ) \ DPOINT_DEFN( Curv14, TccCurve, "TccCurve14", "" ) \ DPOINT_DEFN( Curv15, TccCurve, "TccCurve15", "" ) \ DPOINT_DEFN( Curv16, TccCurve, "TccCurve16", "" ) \ DPOINT_DEFN( Curv17, TccCurve, "TccCurve17", "" ) \ DPOINT_DEFN( Curv18, TccCurve, "TccCurve18", "" ) \ DPOINT_DEFN( Curv19, TccCurve, "TccCurve19", "" ) \ DPOINT_DEFN( Curv20, TccCurve, "TccCurve20", "" ) \ DPOINT_DEFN( Curv21, TccCurve, "TccCurve21", "" ) \ DPOINT_DEFN( Curv22, TccCurve, "TccCurve22", "" ) \ DPOINT_DEFN( Curv23, TccCurve, "TccCurve23", "" ) \ DPOINT_DEFN( Curv24, TccCurve, "TccCurve24", "" ) \ DPOINT_DEFN( Curv25, TccCurve, "TccCurve25", "" ) \ DPOINT_DEFN( Curv26, TccCurve, "TccCurve26", "" ) \ DPOINT_DEFN( Curv27, TccCurve, "TccCurve27", "" ) \ DPOINT_DEFN( Curv28, TccCurve, "TccCurve28", "" ) \ DPOINT_DEFN( Curv29, TccCurve, "TccCurve29", "" ) \ DPOINT_DEFN( Curv30, TccCurve, "TccCurve30", "" ) \ DPOINT_DEFN( Curv31, TccCurve, "TccCurve31", "" ) \ DPOINT_DEFN( Curv32, TccCurve, "TccCurve32", "" ) \ DPOINT_DEFN( Curv33, TccCurve, "TccCurve33", "" ) \ DPOINT_DEFN( Curv34, TccCurve, "TccCurve34", "" ) \ DPOINT_DEFN( Curv35, TccCurve, "TccCurve35", "" ) \ DPOINT_DEFN( Curv36, TccCurve, "TccCurve36", "" ) \ DPOINT_DEFN( Curv37, TccCurve, "TccCurve37", "" ) \ DPOINT_DEFN( Curv38, TccCurve, "TccCurve38", "" ) \ DPOINT_DEFN( Curv39, TccCurve, "TccCurve39", "" ) \ DPOINT_DEFN( Curv40, TccCurve, "TccCurve40", "" ) \ DPOINT_DEFN( Curv41, TccCurve, "TccCurve41", "" ) \ DPOINT_DEFN( Curv42, TccCurve, "TccCurve42", "" ) \ DPOINT_DEFN( Curv43, TccCurve, "TccCurve43", "" ) \ DPOINT_DEFN( Curv44, TccCurve, "TccCurve44", "" ) \ DPOINT_DEFN( Curv45, TccCurve, "TccCurve45", "" ) \ DPOINT_DEFN( Curv46, TccCurve, "TccCurve46", "" ) \ DPOINT_DEFN( Curv47, TccCurve, "TccCurve47", "" ) \ DPOINT_DEFN( Curv48, TccCurve, "TccCurve48", "" ) \ DPOINT_DEFN( Curv49, TccCurve, "TccCurve49", "" ) \ DPOINT_DEFN( Curv50, TccCurve, "TccCurve50", "" ) \ DPOINT_DEFN( SimRqOpen, EnDis, "SIM Request Open. Applies to phase A only in single-triple configurations.", "" ) \ DPOINT_DEFN( SimRqClose, EnDis, "SIM Request Close. Applies to phase A only in single-triple configurations.", "" ) \ DPOINT_DEFN( SimLockout, EnDis, "SIM Lockout", "" ) \ DPOINT_DEFN( DEPRCATED_EvArUInit, Bool, "Event AR voltage initiation", "" ) \ DPOINT_DEFN( DERECATED_EvArUClose, Bool, "Event AR voltage close", "" ) \ DPOINT_DEFN( DEPRECATED_EvArURes, Bool, "Event AR voltage reset", "" ) \ DPOINT_DEFN( CoOpen, LogOpen, "CO Log Open", "" ) \ DPOINT_DEFN( CoClose, LogOpen, "CO Log Close", "" ) \ DPOINT_DEFN( CoOpenReq, LogOpen, "CO Log Open Req. Applies only to phase A in single-triple configurations.", "" ) \ DPOINT_DEFN( CoCloseReq, LogOpen, "CO Log Close Req. Applies only to phase A in single-triple configurations.", "" ) \ DPOINT_DEFN( LogFaultBufAddr1, UI32, "The fault profile buffer No1 address, See #log4", "" ) \ DPOINT_DEFN( LogFaultBufAddr2, UI32, "The fault profile buffer No2 address, See #log4", "" ) \ DPOINT_DEFN( LogFaultBufAddr3, UI32, "The fault proifle buffer No3 address, See #log4", "" ) \ DPOINT_DEFN( LogFaultBufAddr4, UI32, "The fault profile buffer No4 address, See #log4", "" ) \ DPOINT_DEFN( CanSdoReadReq, CanSdoReadReqType, "SDO request from any process other than CAN", "" ) \ DPOINT_DEFN( CanSdoReadSucc, UI8, "CAN process respond the read request with success", "" ) \ DPOINT_DEFN( CanSimTripCloseRequestStatus, UI8, "No Trip or close request active: 0\r\n Trip active: 3\r\n Trip Fail: 5\r\n Close active: 9\r\n Close Fail: 17\r\n\r\n", "" ) \ DPOINT_DEFN( CanSimSwitchPositionStatus, UI8, "open:0, closed:1, unavailable: 2.\r\nNOTE: DO NOT DEPRECATE THIS POINT. Even though CAN may no longer be using this point it is needed for backwards compatibility with CMS to allow configuration of the IEC SCADA point map.\r\nNOTE: Not avail to DNP as double points are not supported.", "" ) \ DPOINT_DEFN( CanSimSwitchManualTrip, UI8, "Normal state: 0, manual trip: 1", "" ) \ DPOINT_DEFN( CanSimSwitchConnectionStatus, UI8, "Disconnected: 1, connected:0", "" ) \ DPOINT_DEFN( CanSimSwitchLockoutStatus, UI8, "Undetermined: 0,Mechanically Unlocked: 1, Mechanically locked: 2", "" ) \ DPOINT_DEFN( CanSimOSMActuatorFaultStatus, UI8, "No fault: 0, coil open cirucit: 1, coil short circuit: 2", "" ) \ DPOINT_DEFN( CanSimOSMlimitSwitchFaultStatus, UI8, "Description: No Fault: 0\r\n Open limit switch failed closed: 3\r\n Open limit switch failed open: 5\r\n Close limit switch failed closed: 9\r\n Close limit switch failed open: 17\r\n Close and Open switches both failed closed: 33\r\n Close and Mechanical Interlock Switch Closed:65\r\n \r\n", "" ) \ DPOINT_DEFN( CanSimDriverStatus, UI8, "Description: DriverNotReady: 1\r\n DriverReady: 0\r\n CapNotConnected: 3\r\n Resting: 5\r\n Failed: 7\r\n CapOverVolt: 9\r\n", "" ) \ DPOINT_DEFN( CanSimTripCAPVoltage, UI16, "0 to 350 volts", "" ) \ DPOINT_DEFN( CanSimCloseCAPVoltage, UI16, "0 to 350 volts", "" ) \ DPOINT_DEFN( CanSimSIMCalibrationStatus, UI8, "SIM calibrated, not calibrated or Calibration currupted", "" ) \ DPOINT_DEFN( CanSimSwitchgearType, UI8, "Including OSM 300, OSM 200, OSM 300M", "" ) \ DPOINT_DEFN( CanSimSwitchgearCTRatio, UI16, "CT ratio from 0 to 5000", "" ) \ DPOINT_DEFN( CanSimSIMCTaCalCoef, UI16, "CTA calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCTbCalCoef, UI16, "CTB calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCTcCalCoef, UI16, "CTC calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCTnCalCoef, UI16, "CTN calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCTTempCompCoef, UI16, "CT calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCVTaCalCoef, UI16, "CVTa Calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCVTbCalCoef, UI16, "CVTb Calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCVTcCalCoef, UI16, "CVTc Calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCVTrCalCoef, UI16, "CVTr Calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCVTsCalCoef, UI16, "CVTs Calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCVTtCalCoef, UI16, "CVTt Calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCVTTempCompCoef, UI16, "CVT calibration temperature compensation. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimCalibrationWriteData, UI8, "write data from memory to flash", "" ) \ DPOINT_DEFN( CanSimBatteryStatus, UI8, "Battery normal, high, low or disconnected\r\nNormal: 0 \r\n High: 4\r\n Low: 2\r\n Disconnected: 1\r\n", "" ) \ DPOINT_DEFN( CanSimBatteryChargerStatus, UI8, "Battery charger Status\r\nBattery Charger Off:1 (No battery connected)\r\n Battery Charger FLAT:2\r\n Battery Charger Normal:4 \r\n Battery Charger LowPower: 8\r\n Battery Charger Trickle: 16\r\n Battery Charger Fail:32\r\n", "" ) \ DPOINT_DEFN( CanSimLowPowerBatteryCharge, UI8, "Battery charge mode: low=1 or normal=0", "" ) \ DPOINT_DEFN( CanSimBatteryVoltage, UI16, "Battery voltage from 0.00 to 40.00", "" ) \ DPOINT_DEFN( CanSimBatteryCurrent, I16, "Battery current from -20.00 to 20.00 amps", "" ) \ DPOINT_DEFN( CanSimBatteryChargerCurrent, I16, "Battery charger current from -20.00 to 20.00 amps ", "" ) \ DPOINT_DEFN( CanSimBatteryCapacityRemaining, UI8, "0-100 represent percentage in battery capacity remaining ", "" ) \ DPOINT_DEFN( CanSimSetTotalBatteryCapacity, UI8, "set battery capacity from 10 to 50Ah", "" ) \ DPOINT_DEFN( CanSimSetBatteryType, UI8, "VRLA=0, GEL=1 Obsolete - This datapoint has been replaced by BatteryType (#8657).", "" ) \ DPOINT_DEFN( CanSimInitiateBatteryTest, UI8, "Write 1 to initiate the test. Indicates 0 when complete", "" ) \ DPOINT_DEFN( CanSimBatteryTestResult, UI8, "0: battery health, 1: battery suspect, 2: battery faulty, 3: battery test failed", "" ) \ DPOINT_DEFN( CanSimExtSupplyStatus, UI8, "0: on, 1: off, 3:overload, 5:shutdown. 9: limited", "" ) \ DPOINT_DEFN( CanSimExtSupplyCurrent, I16, "0 to 10.00 amps, ", "" ) \ DPOINT_DEFN( CanSimSetExtLoad, UI8, "On: 1, Off:0", "" ) \ DPOINT_DEFN( CanSimSetShutdownLevel, UI8, "10-50% in 1% increments", "" ) \ DPOINT_DEFN( CanSimSetShutdownTime, UI16, "0 mins to 1440 mins shutdown time. Note that 0 disables external load shutdown.", "" ) \ DPOINT_DEFN( CanSimUPSStatus, UI8, "AC & Battery OK: 0\r\nAC Off: 1\r\nBattery Off: 2\r\nPowering Down: 4\r\nEntering Standby: 8\r\nStandby: 16\r\nEntering Standby due to Battery Low Capacity: 32\r\n", "" ) \ DPOINT_DEFN( CanSimLineSupplyStatus, LineSupplyStatus, "Normal (On): 0, Disconnected (Off): 1, High: 2, Low: 3, Surge: 6", "" ) \ DPOINT_DEFN( CanSimLineSupplyRange, UI8, "Disconneted: 0, 110v: 1, 240V: 2\r\nNot used here", "" ) \ DPOINT_DEFN( CanSimUPSPowerUp, UI8, "Normal: 0, Watchdog: 1", "" ) \ DPOINT_DEFN( CanSimReadTime, UI32, "Standard Unix Time", "" ) \ DPOINT_DEFN( CanSimSetTimeDate, UI32, "Standard Unix Time. Assigning a new unix time value will update both the controller's clock and the battery backed clock on the SIM.", "" ) \ DPOINT_DEFN( CanSimSIMTemp, I16, "Cubicle temperature in degrees Celsius from -127.00 to 128.00", "" ) \ DPOINT_DEFN( CanSimRequestWatchdogUpdate, UI8, "RequestWatchdog: 1", "" ) \ DPOINT_DEFN( CanSimRespondWatchdogRequest, UI8, "Respondwatchdog: 1", "" ) \ DPOINT_DEFN( CanSimDisableWatchdog, UI32, "Disable watchdog", "" ) \ DPOINT_DEFN( CanSimModuleResetStatus, UI8, "Module reset: 1", "" ) \ DPOINT_DEFN( CanSimResetModule, UI8, "Request for the module to be reset: 1", "" ) \ DPOINT_DEFN( CanSimShutdownRequest, UI8, "Module is request to shutdown", "" ) \ DPOINT_DEFN( CanSimModuleHealth, UI8, "Healthy: 0, fault: 1", "" ) \ DPOINT_DEFN( CanSimModuleFault, UI16, "Healthy: 00000000\r\n Flash:00000001\r\n Ram:00000010\r\n Temperature sensor: 00000100\r\n PowerSupply: 00001000\r\n Firmware CRC error: 00010000\r\n ", "" ) \ DPOINT_DEFN( CanSimModuleTemp, I16, " -127 to 128 degrees", "" ) \ DPOINT_DEFN( CanSimModuleVoltage, UI16, "Provide the actual voltage supply to the module", "" ) \ DPOINT_DEFN( CanSimModuleType, UI8, "SIM: 0, Relay:1, IO1:2, IO2:3,PC:4,Other:5. The default value is 1 for the relay", "" ) \ DPOINT_DEFN( CanSimReadSerialNumber, Str, "Serial Number in YYMMNNNN\r\nYY is year\r\nMM is month\r\nNNNN is device number", "" ) \ DPOINT_DEFN( CanSimBootLoaderVers, SwVersion, "Bootloader verion number xxxx\r\nBytes[0..1] - Major\r\nBytes[2..3] - Minor\r\nBytes[4..5] - Build\r\n", "" ) \ DPOINT_DEFN( IdIo2SerialNumber, SerialNumber, "Identification: IO2 Number", "" ) \ DPOINT_DEFN( CanSimReadHWVers, UI32, "Firmware version major number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor \r\n", "" ) \ DPOINT_DEFN( CanSimReadSWVers, SwVersion, "Software version major number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor\r\nbytes[4..5] Build\r\nbytes[6..7] Mode 0=Debug, 1=Release\r\n", "" ) \ DPOINT_DEFN( CanIo1InputStatus, UI8, "IO1 Inputs status (1 bit per input)", "" ) \ DPOINT_DEFN( CanIo2InputStatus, UI8, "IO2 Inputs status (1 bit per input)", "" ) \ DPOINT_DEFN( CanSimCANControllerOverrun, UI8, "Health:0, overrun:1", "" ) \ DPOINT_DEFN( CanSimCANControllerError, UI8, "Health: 0, error:1", "" ) \ DPOINT_DEFN( CanSimCANMessagebufferoverflow, UI8, "Health: 0, overflow:1", "" ) \ DPOINT_DEFN( CanIo1InputEnable, UI8, "IO 1 Inputs enable (1 bit per input)", "" ) \ DPOINT_DEFN( CanIo2InputEnable, UI8, "IO 2 Inputs enable (1 bit per input)", "" ) \ DPOINT_DEFN( CanIo1InputTrigger, UI8, "IO 1 Inputs edge or level trigger (1 bit per input)", "" ) \ DPOINT_DEFN( CanIo2InputTrigger, UI8, "IO 2 Inputs edge or level trigger (1 bit per input)", "" ) \ DPOINT_DEFN( CanSimEmergShutdownRequest, UI8, "Relay is requested to emergence shutdown", "" ) \ DPOINT_DEFN( SigPickup, Signal, "Pickup output of any of OC1+, OC2+, OC3+, OC1-, OC2-, OC3-, EF1+, EF2+, EF3+, EF1-, EF2-, EF3-, SEF+, SEF-, EFLL, OCLL, UF, UV1, UV2, UV3, PhA, PhB, PhC, PhN elements activated", "" ) \ DPOINT_DEFN( SigPickupOc1F, Signal, "Pickup output of OC1+ activated", "" ) \ DPOINT_DEFN( SigPickupOc2F, Signal, "Pickup output of OC2+ activated", "" ) \ DPOINT_DEFN( SigPickupOc3F, Signal, "Pickup output of OC3+ activated", "" ) \ DPOINT_DEFN( SigPickupOc1R, Signal, "Pickup output of OC1- activated", "" ) \ DPOINT_DEFN( SigPickupOc2R, Signal, "Pickup output of OC2- activated", "" ) \ DPOINT_DEFN( SigPickupOc3R, Signal, "Pickup output of OC3- activated", "" ) \ DPOINT_DEFN( SigPickupEf1F, Signal, "Pickup output of EF1+ activated", "" ) \ DPOINT_DEFN( SigPickupEf2F, Signal, "Pickup output of EF2+ activated", "" ) \ DPOINT_DEFN( SigPickupEf3F, Signal, "Pickup output of EF3+ activated", "" ) \ DPOINT_DEFN( SigPickupEf1R, Signal, "Pickup output of EF1- activated", "" ) \ DPOINT_DEFN( SigPickupEf2R, Signal, "Pickup output of EF2- activated", "" ) \ DPOINT_DEFN( SigPickupEf3R, Signal, "Pickup output of EF3- activated", "" ) \ DPOINT_DEFN( SigPickupSefF, Signal, "Pickup output of SEF+ activated", "" ) \ DPOINT_DEFN( SigPickupSefR, Signal, "Pickup output of SEF- activated", "" ) \ DPOINT_DEFN( SigPickupOcll, Signal, "Pickup output of OCLL3 activated (formerly OCLL)", "" ) \ DPOINT_DEFN( SigPickupEfll, Signal, "Pickup output of EFLL3 activated (formerly EFLL)", "" ) \ DPOINT_DEFN( SigPickupUv1, Signal, "Pickup output of UV1 activated", "" ) \ DPOINT_DEFN( SigPickupUv2, Signal, "Pickup output of UV2 activated", "" ) \ DPOINT_DEFN( SigPickupUv3, Signal, "Pickup output of UV3 activated", "" ) \ DPOINT_DEFN( SigPickupOv1, Signal, "Pickup output of OV1 activated", "" ) \ DPOINT_DEFN( SigPickupOv2, Signal, "Pickup output of OV2 activated", "" ) \ DPOINT_DEFN( SigPickupOf, Signal, "Pickup output of OF activated", "" ) \ DPOINT_DEFN( SigPickupUf, Signal, "Pickup output of UF activated", "" ) \ DPOINT_DEFN( SigPickupUabcGT, Signal, "Pickup output of Uabc> activated", "" ) \ DPOINT_DEFN( SigPickupUabcLT, Signal, "Pickup output of Uabc< activated", "" ) \ DPOINT_DEFN( SigPickupUrstGT, Signal, "Pickup output of Urst> activated", "" ) \ DPOINT_DEFN( SigPickupUrstLT, Signal, "Pickup output of Urst< activated", "" ) \ DPOINT_DEFN( G2_OcAt, UI32, "Grp2 OC Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G2_OcDnd, DndMode, "Grp2 _OC DND", "" ) \ DPOINT_DEFN( G2_EfAt, UI32, "Grp2 _EF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G2_EfDnd, DndMode, "Grp2 _EF DND", "" ) \ DPOINT_DEFN( G2_SefAt, UI32, "Grp2 _SEF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G2_SefDnd, DndMode, "Grp2 _SEF DND", "" ) \ DPOINT_DEFN( G2_ArOCEF_ZSCmode, EnDis, "Grp2 1AutoReclose ZSC mod", "" ) \ DPOINT_DEFN( G2_VrcEnable, EnDis, "Grp2 AutoReclose VRC mode", "" ) \ DPOINT_DEFN( CanDataRequestIo1, CanObjType, "request data from IO 1 device on the CAN bus", "" ) \ DPOINT_DEFN( G2_ArOCEF_Trec1, UI32, "Grp2 AutoReclose Reclose Trip 1", "" ) \ DPOINT_DEFN( G2_ArOCEF_Trec2, UI32, "Grp2 AutoReclose Reclose Trip 2", "" ) \ DPOINT_DEFN( G2_ArOCEF_Trec3, UI32, "Grp2 AutoReclose Reclose Trip 3", "" ) \ DPOINT_DEFN( G2_ResetTime, UI32, "Grp2 Reset time", "" ) \ DPOINT_DEFN( G2_TtaMode, TtaMode, "Grp2 Transient additional time mode", "" ) \ DPOINT_DEFN( G2_TtaTime, UI32, "Grp2 Transient additional time", "" ) \ DPOINT_DEFN( G2_SstOcForward, UI8, "Grp2 OC Single shot to trip.", "" ) \ DPOINT_DEFN( G2_EftEnable, EnDis, "Grp2 En/Disables the excess fast trip engine.", "" ) \ DPOINT_DEFN( G2_ClpClm, UI32, "Grp2 CLP multiplier", "" ) \ DPOINT_DEFN( G2_ClpTcl, UI32, "Grp2 CLP load time", "" ) \ DPOINT_DEFN( G2_ClpTrec, UI32, "Grp2 CLP recognition time", "" ) \ DPOINT_DEFN( G2_IrrIrm, UI32, "Grp2 IRR multiplier", "" ) \ DPOINT_DEFN( G2_IrrTir, UI32, "Grp2 IRR restraint time", "" ) \ DPOINT_DEFN( G2_VrcMode, VrcMode, "Grp2 VRC mode", "" ) \ DPOINT_DEFN( G2_VrcUMmin, UI32, "Grp2 VRC voltage multiplier", "" ) \ DPOINT_DEFN( G2_AbrMode, EnDis, "Grp2 ABR mode", "" ) \ DPOINT_DEFN( G2_OC1F_Ip, UI32, "Grp2 OC1+ Pickup current", "" ) \ DPOINT_DEFN( G2_OC1F_Tcc, UI16, "Grp2 OC1+ TCC Type", "" ) \ DPOINT_DEFN( G2_OC1F_TDtMin, UI32, "Grp2 OC1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_OC1F_TDtRes, UI32, "Grp2 OC1+ DT reset time", "" ) \ DPOINT_DEFN( G2_OC1F_Tm, UI32, "Grp2 OC1+ Time multiplier", "" ) \ DPOINT_DEFN( G2_OC1F_Imin, UI32, "Grp2 OC1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G2_OC1F_Tmin, UI32, "Grp2 OC1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G2_OC1F_Tmax, UI32, "Grp2 OC1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G2_OC1F_Ta, UI32, "Grp2 OC1+ Additional time", "" ) \ DPOINT_DEFN( CanDataRequestIo2, CanObjType, "request data from IO 2 device on the CAN bus", "" ) \ DPOINT_DEFN( G2_OC1F_ImaxEn, EnDis, "Grp2 OC1+ Enable Max mode", "" ) \ DPOINT_DEFN( G2_OC1F_Imax, UI32, "Grp2 OC1+ Max current multiplier", "" ) \ DPOINT_DEFN( G2_OC1F_DirEn, EnDis, "Grp2 OC1+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_OC1F_Tr1, TripMode, "Grp2 OC1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_OC1F_Tr2, TripMode, "Grp2 OC1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_OC1F_Tr3, TripMode, "Grp2 OC1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_OC1F_Tr4, TripMode, "Grp2 OC1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_OC1F_TccUD, TccCurve, "Grp2 OC1+ User defined curve", "" ) \ DPOINT_DEFN( G2_OC2F_Ip, UI32, "Grp2 OC2+ Pickup current", "" ) \ DPOINT_DEFN( G2_OC2F_Tcc, UI16, "Grp2 OC2+ TCC Type", "" ) \ DPOINT_DEFN( G2_OC2F_TDtMin, UI32, "Grp2 OC2+ DT min tripping time", "" ) \ DPOINT_DEFN( G2_OC2F_TDtRes, UI32, "Grp2 OC2+ DT reset time", "" ) \ DPOINT_DEFN( G2_OC2F_Tm, UI32, "Grp2 OC2+ Time multiplier", "" ) \ DPOINT_DEFN( G2_OC2F_Imin, UI32, "Grp2 OC2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G2_OC2F_Tmin, UI32, "Grp2 OC2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G2_OC2F_Tmax, UI32, "Grp2 OC2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G2_OC2F_Ta, UI32, "Grp2 OC2+ Additional time", "" ) \ DPOINT_DEFN( G2_EftTripCount, UI8, "Grp2 Applicable to EFT mode: The threshould count of the number of protection trips before disabling fast trips.", "" ) \ DPOINT_DEFN( G2_OC2F_ImaxEn, EnDis, "Grp2 OC2+ Enable Max mode", "" ) \ DPOINT_DEFN( G2_OC2F_Imax, UI32, "Grp2 OC2+ Max current multiplier", "" ) \ DPOINT_DEFN( G2_OC2F_DirEn, EnDis, "Grp2 OC2+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_OC2F_Tr1, TripMode, "Grp2 OC2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_OC2F_Tr2, TripMode, "Grp2 OC2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_OC2F_Tr3, TripMode, "Grp2 OC2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_OC2F_Tr4, TripMode, "Grp2 OC2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_OC2F_TccUD, TccCurve, "Grp2 OC2+ User defined curve", "" ) \ DPOINT_DEFN( G2_OC3F_Ip, UI32, "Grp2 OC3+ Pickup current", "" ) \ DPOINT_DEFN( G2_OC3F_TDtMin, UI32, "Grp2 OC3+ DT tripping time", "" ) \ DPOINT_DEFN( G2_OC3F_TDtRes, UI32, "Grp2 OC3+ DT reset time", "" ) \ DPOINT_DEFN( G2_OC3F_DirEn, EnDis, "Grp2 OC3+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_OC3F_Tr1, TripMode, "Grp2 OC3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_OC3F_Tr2, TripMode, "Grp2 OC3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_OC3F_Tr3, TripMode, "Grp2 OC3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_OC3F_Tr4, TripMode, "Grp2 OC3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_OC1R_Ip, UI32, "Grp2 OC1- Pickup current", "" ) \ DPOINT_DEFN( G2_OC1R_Tcc, UI16, "Grp2 OC1- TCC Type", "" ) \ DPOINT_DEFN( G2_OC1R_TDtMin, UI32, "Grp2 OC1- DT min tripping time", "" ) \ DPOINT_DEFN( G2_OC1R_TDtRes, UI32, "Grp2 OC1- DT reset time", "" ) \ DPOINT_DEFN( G2_OC1R_Tm, UI32, "Grp2 OC1- Time multiplier", "" ) \ DPOINT_DEFN( G2_OC1R_Imin, UI32, "Grp2 OC1- Min. current multiplier", "" ) \ DPOINT_DEFN( G2_OC1R_Tmin, UI32, "Grp2 OC1- Minimum tripping time", "" ) \ DPOINT_DEFN( G2_OC1R_Tmax, UI32, "Grp2 OC1- Maximum tripping time", "" ) \ DPOINT_DEFN( G2_OC1R_Ta, UI32, "Grp2 OC1- Additional time", "" ) \ DPOINT_DEFN( G2_EftTripWindow, UI8, "Grp2 Applicable to EFT mode: The period window used when monitoring the number of protection trips.", "" ) \ DPOINT_DEFN( G2_OC1R_ImaxEn, EnDis, "Grp2 OC1- Enable Max mode", "" ) \ DPOINT_DEFN( G2_OC1R_Imax, UI32, "Grp2 OC1- Max current multiplier", "" ) \ DPOINT_DEFN( G2_OC1R_DirEn, EnDis, "Grp2 OC1- Enable directional protection", "" ) \ DPOINT_DEFN( G2_OC1R_Tr1, TripMode, "Grp2 OC1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_OC1R_Tr2, TripMode, "Grp2 OC1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_OC1R_Tr3, TripMode, "Grp2 OC1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_OC1R_Tr4, TripMode, "Grp2 OC1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_OC1R_TccUD, TccCurve, "Grp2 OC1- User defined curve", "" ) \ DPOINT_DEFN( G2_OC2R_Ip, UI32, "Grp2 OC2- Pickup current", "" ) \ DPOINT_DEFN( G2_OC2R_Tcc, UI16, "Grp2 OC2- TCC Type", "" ) \ DPOINT_DEFN( G2_OC2R_TDtMin, UI32, "Grp2 OC2- DT min tripping time", "" ) \ DPOINT_DEFN( G2_OC2R_TDtRes, UI32, "Grp2 OC2- DT reset time", "" ) \ DPOINT_DEFN( G2_OC2R_Tm, UI32, "Grp2 OC2- Time multiplier", "" ) \ DPOINT_DEFN( G2_OC2R_Imin, UI32, "Grp2 OC2- Min. current multiplier", "" ) \ DPOINT_DEFN( G2_OC2R_Tmin, UI32, "Grp2 OC2- Minimum tripping time", "" ) \ DPOINT_DEFN( G2_OC2R_Tmax, UI32, "Grp2 OC2- Maximum tripping time", "" ) \ DPOINT_DEFN( G2_OC2R_Ta, UI32, "Grp2 OC2- Additional time", "" ) \ DPOINT_DEFN( G2_OC2R_ImaxEn, EnDis, "Grp2 OC2- Enable Max mode", "" ) \ DPOINT_DEFN( G2_OC2R_Imax, UI32, "Grp2 OC2- Max current multiplier", "" ) \ DPOINT_DEFN( G2_OC2R_DirEn, EnDis, "Grp2 OC2- Enable directional protection", "" ) \ DPOINT_DEFN( G2_OC2R_Tr1, TripMode, "Grp2 OC2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_OC2R_Tr2, TripMode, "Grp2 OC2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_OC2R_Tr3, TripMode, "Grp2 OC2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_OC2R_Tr4, TripMode, "Grp2 OC2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_OC2R_TccUD, TccCurve, "Grp2 OC2- User defined curve", "" ) \ DPOINT_DEFN( G2_OC3R_Ip, UI32, "Grp2 OC3- Pickup current", "" ) \ DPOINT_DEFN( G2_OC3R_TDtMin, UI32, "Grp2 OC3- DT tripping time", "" ) \ DPOINT_DEFN( G2_OC3R_TDtRes, UI32, "Grp2 OC3- DT reset time", "" ) \ DPOINT_DEFN( G2_OC3R_DirEn, EnDis, "Grp2 OC3- Enable directional protection", "" ) \ DPOINT_DEFN( G2_OC3R_Tr1, TripMode, "Grp2 OC3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_OC3R_Tr2, TripMode, "Grp2 OC3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_OC3R_Tr3, TripMode, "Grp2 OC3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_OC3R_Tr4, TripMode, "Grp2 OC3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_EF1F_Ip, UI32, "Grp2 EF1+ Pickup current", "" ) \ DPOINT_DEFN( G2_EF1F_Tcc, UI16, "Grp2 EF1+ TCC Type", "" ) \ DPOINT_DEFN( G2_EF1F_TDtMin, UI32, "Grp2 EF1+ DT min tripping time", "" ) \ DPOINT_DEFN( G2_EF1F_TDtRes, UI32, "Grp2 EF1+ DT reset time", "" ) \ DPOINT_DEFN( G2_EF1F_Tm, UI32, "Grp2 EF1+ Time multiplier", "" ) \ DPOINT_DEFN( G2_EF1F_Imin, UI32, "Grp2 EF1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G2_EF1F_Tmin, UI32, "Grp2 EF1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G2_EF1F_Tmax, UI32, "Grp2 EF1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G2_EF1F_Ta, UI32, "Grp2 EF1+ Additional time", "" ) \ DPOINT_DEFN( G2_DEPRECATED_G1EF1F_Tres, UI32, "Grp2 EF1+ Reset time", "" ) \ DPOINT_DEFN( G2_EF1F_ImaxEn, EnDis, "Grp2 EF1+ Enable Max mode", "" ) \ DPOINT_DEFN( G2_EF1F_Imax, UI32, "Grp2 EF1+ Max current multiplier", "" ) \ DPOINT_DEFN( G2_EF1F_DirEn, EnDis, "Grp2 EF1+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_EF1F_Tr1, TripMode, "Grp2 EF1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_EF1F_Tr2, TripMode, "Grp2 EF1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_EF1F_Tr3, TripMode, "Grp2 EF1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_EF1F_Tr4, TripMode, "Grp2 EF1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_EF1F_TccUD, TccCurve, "Grp2 EF1+ User defined curve", "" ) \ DPOINT_DEFN( G2_EF2F_Ip, UI32, "Grp2 EF2+ Pickup current", "" ) \ DPOINT_DEFN( G2_EF2F_Tcc, UI16, "Grp2 EF2+ TCC Type", "" ) \ DPOINT_DEFN( G2_EF2F_TDtMin, UI32, "Grp2 EF2+ DT min tripping time", "" ) \ DPOINT_DEFN( G2_EF2F_TDtRes, UI32, "Grp2 EF2+ DT reset time", "" ) \ DPOINT_DEFN( G2_EF2F_Tm, UI32, "Grp2 EF2+ Time multiplier", "" ) \ DPOINT_DEFN( G2_EF2F_Imin, UI32, "Grp2 EF2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G2_EF2F_Tmin, UI32, "Grp2 EF2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G2_EF2F_Tmax, UI32, "Grp2 EF2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G2_EF2F_Ta, UI32, "Grp2 EF2+ Additional time", "" ) \ DPOINT_DEFN( G2_DEPRECATED_G1EF2F_Tres, UI32, "Grp2 EF2+ Reset time", "" ) \ DPOINT_DEFN( G2_EF2F_ImaxEn, EnDis, "Grp2 EF2+ Enable Max mode", "" ) \ DPOINT_DEFN( G2_EF2F_Imax, UI32, "Grp2 EF2+ Max mode", "" ) \ DPOINT_DEFN( G2_EF2F_DirEn, EnDis, "Grp2 EF2+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_EF2F_Tr1, TripMode, "Grp2 EF2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_EF2F_Tr2, TripMode, "Grp2 EF2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_EF2F_Tr3, TripMode, "Grp2 EF2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_EF2F_Tr4, TripMode, "Grp2 EF2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_EF2F_TccUD, TccCurve, "Grp2 EF2+ User defined curve", "" ) \ DPOINT_DEFN( G2_EF3F_Ip, UI32, "Grp2 EF3+ Pickup current", "" ) \ DPOINT_DEFN( G2_EF3F_TDtMin, UI32, "Grp2 EF3+ DT tripping time", "" ) \ DPOINT_DEFN( G2_EF3F_TDtRes, UI32, "Grp2 EF3+ DT reset time", "" ) \ DPOINT_DEFN( G2_EF3F_DirEn, EnDis, "Grp2 EF3+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_EF3F_Tr1, TripMode, "Grp2 EF3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_EF3F_Tr2, TripMode, "Grp2 EF3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_EF3F_Tr3, TripMode, "Grp2 EF3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_EF3F_Tr4, TripMode, "Grp2 EF3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_EF1R_Ip, UI32, "Grp2 EF1- Pickup current", "" ) \ DPOINT_DEFN( G2_EF1R_Tcc, UI16, "Grp2 EF1- TCC Type", "" ) \ DPOINT_DEFN( G2_EF1R_TDtMin, UI32, "Grp2 EF1- DT min tripping time", "" ) \ DPOINT_DEFN( G2_EF1R_TDtRes, UI32, "Grp2 EF1- DT reset time", "" ) \ DPOINT_DEFN( G2_EF1R_Tm, UI32, "Grp2 EF1- Time multiplier", "" ) \ DPOINT_DEFN( G2_EF1R_Imin, UI32, "Grp2 EF1- Min. current multiplier", "" ) \ DPOINT_DEFN( G2_EF1R_Tmin, UI32, "Grp2 EF1- Minimum tripping time", "" ) \ DPOINT_DEFN( G2_EF1R_Tmax, UI32, "Grp2 EF1- Maximum tripping time", "" ) \ DPOINT_DEFN( G2_EF1R_Ta, UI32, "Grp2 EF1- Additional time", "" ) \ DPOINT_DEFN( G2_DEPRECATED_G1EF1R_Tres, UI32, "Grp2 EF1- Reset time", "" ) \ DPOINT_DEFN( G2_EF1R_ImaxEn, EnDis, "Grp2 EF1- Enable Max mode", "" ) \ DPOINT_DEFN( G2_EF1R_Imax, UI32, "Grp2 EF1- Max current multiplier", "" ) \ DPOINT_DEFN( G2_EF1R_DirEn, EnDis, "Grp2 EF1- Enable directional protection", "" ) \ DPOINT_DEFN( G2_EF1R_Tr1, TripMode, "Grp2 EF1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_EF1R_Tr2, TripMode, "Grp2 EF1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_EF1R_Tr3, TripMode, "Grp2 EF1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_EF1R_Tr4, TripMode, "Grp2 EF1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_EF1R_TccUD, TccCurve, "Grp2 EF1- User defined curve", "" ) \ DPOINT_DEFN( G2_EF2R_Ip, UI32, "Grp2 EF2- Pickup current", "" ) \ DPOINT_DEFN( G2_EF2R_Tcc, UI16, "Grp2 EF2- TCC Type", "" ) \ DPOINT_DEFN( G2_EF2R_TDtMin, UI32, "Grp2 EF2- DT min tripping time", "" ) \ DPOINT_DEFN( G2_EF2R_TDtRes, UI32, "Grp2 EF2- DT reset time", "" ) \ DPOINT_DEFN( G2_EF2R_Tm, UI32, "Grp2 EF2- Time multiplier", "" ) \ DPOINT_DEFN( G2_EF2R_Imin, UI32, "Grp2 EF2- Min. current multiplier", "" ) \ DPOINT_DEFN( G2_EF2R_Tmin, UI32, "Grp2 EF2- Minimum tripping time", "" ) \ DPOINT_DEFN( G2_EF2R_Tmax, UI32, "Grp2 EF2- Maximum tripping time", "" ) \ DPOINT_DEFN( G2_EF2R_Ta, UI32, "Grp2 EF2- Additional time", "" ) \ DPOINT_DEFN( G2_EF2R_ImaxEn, EnDis, "Grp2 EF2- Enable Max mode", "" ) \ DPOINT_DEFN( G2_EF2R_Imax, UI32, "Grp2 EF2- Max current multiplier", "" ) \ DPOINT_DEFN( G2_EF2R_DirEn, EnDis, "Grp2 EF2- Enable directional protection", "" ) \ DPOINT_DEFN( G2_EF2R_Tr1, TripMode, "Grp2 EF2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_EF2R_Tr2, TripMode, "Grp2 EF2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_EF2R_Tr3, TripMode, "Grp2 EF2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_EF2R_Tr4, TripMode, "Grp2 EF2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_EF2R_TccUD, TccCurve, "Grp2 EF2- User defined curve", "" ) \ DPOINT_DEFN( G2_EF3R_Ip, UI32, "Grp2 EF3- Pickup current", "" ) \ DPOINT_DEFN( G2_EF3R_TDtMin, UI32, "Grp2 EF3- DT tripping time", "" ) \ DPOINT_DEFN( G2_EF3R_TDtRes, UI32, "Grp2 EF3- DT reset time", "" ) \ DPOINT_DEFN( G2_EF3R_DirEn, EnDis, "Grp2 EF3- Enable directional protection", "" ) \ DPOINT_DEFN( G2_EF3R_Tr1, TripMode, "Grp2 EF3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_EF3R_Tr2, TripMode, "Grp2 EF3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_EF3R_Tr3, TripMode, "Grp2 EF3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_EF3R_Tr4, TripMode, "Grp2 EF3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_SEFF_Ip, UI32, "Grp2 SEF+ Pickup current", "" ) \ DPOINT_DEFN( G2_SEFF_TDtMin, UI32, "Grp2 SEF+ DT tripping time", "" ) \ DPOINT_DEFN( G2_SEFF_TDtRes, UI32, "Grp2 SEF+ DT reset time", "" ) \ DPOINT_DEFN( G2_SEFF_DirEn, EnDis, "Grp2 SEF+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_SEFF_Tr1, TripMode, "Grp2 SEF+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_SEFF_Tr2, TripMode, "Grp2 SEF+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_SEFF_Tr3, TripMode, "Grp2 SEF+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_SEFF_Tr4, TripMode, "Grp2 SEF+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_SEFR_Ip, UI32, "Grp2 SEF- Pickup current", "" ) \ DPOINT_DEFN( G2_SEFR_TDtMin, UI32, "Grp2 SEF- DT tripping time", "" ) \ DPOINT_DEFN( G2_SEFR_TDtRes, UI32, "Grp2 SEF- DT reset time", "" ) \ DPOINT_DEFN( G2_SEFR_DirEn, EnDis, "Grp2 SEF- Enable directional protection", "" ) \ DPOINT_DEFN( G2_SEFR_Tr1, TripMode, "Grp2 SEF- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_SEFR_Tr2, TripMode, "Grp2 SEF- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_SEFR_Tr3, TripMode, "Grp2 SEF- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_SEFR_Tr4, TripMode, "Grp2 SEF- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_OcLl_Ip, UI32, "Grp2 OC3 LL Pickup current", "" ) \ DPOINT_DEFN( G2_OcLl_TDtMin, UI32, "Grp2 OC LL3 DT tripping time", "" ) \ DPOINT_DEFN( G2_OcLl_TDtRes, UI32, "Grp2 OC LL3 DT reset time", "" ) \ DPOINT_DEFN( G2_EfLl_Ip, UI32, "Grp2 EF LL3 Pickup current", "" ) \ DPOINT_DEFN( G2_EfLl_TDtMin, UI32, "Grp2 EF LL3 DT tripping time", "" ) \ DPOINT_DEFN( G2_EfLl_TDtRes, UI32, "Grp2 EF LL3 DT reset time", "" ) \ DPOINT_DEFN( G2_Uv1_Um, UI32, "Grp2 UV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G2_Uv1_TDtMin, UI32, "Grp2 UV1 DT tripping time", "" ) \ DPOINT_DEFN( G2_Uv1_TDtRes, UI32, "Grp2 UV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Uv1_Trm, TripMode, "Grp2 1 UV1 Trip mod", "" ) \ DPOINT_DEFN( G2_Uv2_Um, UI32, "Grp2 UV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G2_Uv2_TDtMin, UI32, "Grp2 UV2 DT tripping time", "" ) \ DPOINT_DEFN( G2_Uv2_TDtRes, UI32, "Grp2 UV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Uv2_Trm, TripMode, "Grp2 1 UV2 Trip mod", "" ) \ DPOINT_DEFN( G2_Uv3_TDtMin, UI32, "Grp2 UV3 DT tripping time", "" ) \ DPOINT_DEFN( G2_Uv3_TDtRes, UI32, "Grp2 UV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Uv3_Trm, TripMode, "Grp2 1 UV3 Trip mod", "" ) \ DPOINT_DEFN( G2_Ov1_Um, UI32, "Grp2 OV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G2_Ov1_TDtMin, UI32, "Grp2 OV1 DT tripping time", "" ) \ DPOINT_DEFN( G2_Ov1_TDtRes, UI32, "Grp2 OV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Ov1_Trm, TripMode, "Grp2 1 OV1 Trip mod", "" ) \ DPOINT_DEFN( G2_Ov2_Um, UI32, "Grp2 OV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G2_Ov2_TDtMin, UI32, "Grp2 OV2 DT tripping time", "" ) \ DPOINT_DEFN( G2_Ov2_TDtRes, UI32, "Grp2 OV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Ov2_Trm, TripMode, "Grp2 1 OV2 Trip mod", "" ) \ DPOINT_DEFN( G2_Uf_Fp, UI32, "Grp2 UF Pickup frequency", "" ) \ DPOINT_DEFN( G2_Uf_TDtMin, UI32, "Grp2 UF DT tripping time", "" ) \ DPOINT_DEFN( G2_Uf_TDtRes, UI32, "Grp2 UF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Uf_Trm, TripModeDLA, "Grp2 UF Trip mode", "" ) \ DPOINT_DEFN( G2_Of_Fp, UI32, "Grp2 OF Pickup frequency", "" ) \ DPOINT_DEFN( G2_Of_TDtMin, UI32, "Grp2 OF DT tripping time", "" ) \ DPOINT_DEFN( G2_Of_TDtRes, UI32, "Grp2 OF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Of_Trm, TripModeDLA, "Grp2 OF Trip mode", "" ) \ DPOINT_DEFN( G2_DEPRECATED_OC1F_ImaxAbs, UI32, "Grp2 OC1+ Max abs current", "" ) \ DPOINT_DEFN( G2_DEPRECATED_OC2F_ImaxAbs, UI32, "Grp2 OC2+ Max abs current", "" ) \ DPOINT_DEFN( G2_DEPRECATED_OC1R_ImaxAbs, UI32, "Grp2 OC1- Max abs current", "" ) \ DPOINT_DEFN( G2_DEPRECATED_OC2R_ImaxAbs, UI32, "Grp2 OC2- Max abs current", "" ) \ DPOINT_DEFN( G2_DEPRECATED_EF1F_ImaxAbs, UI32, "Grp2 EF1+ Max abs current", "" ) \ DPOINT_DEFN( G2_DEPRECATED_EF2F_ImaxAbs, UI32, "Grp2 EF2+ Max abs current", "" ) \ DPOINT_DEFN( G2_DEPRECATED_EF1R_ImaxAbs, UI32, "Grp2 EF1- Max abs current", "" ) \ DPOINT_DEFN( G2_DEPRECATED_EF2R_ImaxAbs, UI32, "Grp2 EF2- Max abs current", "" ) \ DPOINT_DEFN( G2_SstEfForward, UI8, "Grp2 EF Single shot to trip", "" ) \ DPOINT_DEFN( G2_SstSefForward, UI8, "Grp2 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G2_AbrTrest, UI32, "Grp2 The ABR restoration time in s.", "" ) \ DPOINT_DEFN( G2_AutoOpenMode, AutoOpenMode, "Grp2 AutoOpen method: Disabled/Timer/Power Flow", "" ) \ DPOINT_DEFN( G2_AutoOpenTime, UI16, "Grp2 The time in minutes to wait before auto open after a close by ABR", "" ) \ DPOINT_DEFN( G2_AutoOpenOpns, UI8, "Grp2 The number of times this element will allow ABR closes before locking out.", "" ) \ DPOINT_DEFN( G2_SstOcReverse, UI8, "Grp2 ", "" ) \ DPOINT_DEFN( G2_SstEfReverse, UI8, "Grp2 Grp 1 EF Single shot to trip", "" ) \ DPOINT_DEFN( G2_SstSefReverse, UI8, "Grp2 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G2_ArUVOV_Trec, UI32, "Grp2 Under / Over voltage auto reclose time in seconds", "" ) \ DPOINT_DEFN( G2_GrpName, Str, "Grp2 _Group Name", "" ) \ DPOINT_DEFN( G2_GrpDes, Str, "Grp2 G1_Grp Description Group description", "" ) \ DPOINT_DEFN( CanIo1InputRecognitionTime, CanIoInputRecTimes, "IO1 Input recognition times: 1 byte per input. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2InputRecognitionTime, CanIoInputRecTimes, "IO2 Input recognition times: 1 byte per input. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputEnable, UI8, "IO1 Output enable/disable (1 bit per output)", "" ) \ DPOINT_DEFN( CanIo2OutputEnable, UI8, "IO2 Output enable/disable (1 bit per output)", "" ) \ DPOINT_DEFN( CanIo1OutputSet, UI8, "IO1 Output setting (1 bit per output)", "" ) \ DPOINT_DEFN( CanIo2OutputSet, UI8, "IO2 Output setting (1 bit per output)", "" ) \ DPOINT_DEFN( CanIo1OutputPulseEnable, UI8, "IO1 Output pulse enable/disable (1 bit per output)", "" ) \ DPOINT_DEFN( CanIo2OutputPulseEnable, UI8, "IO2 Output pulse enable/disable (1 bit per output)", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime1, UI16, "IO1 Output 1 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime2, UI16, "IO1 Output 2 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime3, UI16, "IO1 Output 3 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime4, UI16, "IO1 Output 4 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime5, UI16, "IO1 Output 5 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime6, UI16, "IO1 Output 6 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime7, UI16, "IO1 Output 7 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo1OutputPulseTime8, UI16, "IO1 Output 8 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime1, UI16, "IO2 Output 1 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime2, UI16, "IO2 Output 2 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime3, UI16, "IO2 Output 3 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime4, UI16, "IO2 Output 4 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime5, UI16, "IO2 Output 5 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime6, UI16, "IO2 Output 6 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime7, UI16, "IO2 Output 7 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( CanIo2OutputPulseTime8, UI16, "IO2 Output 8 pulse time. Units of 10ms.", "" ) \ DPOINT_DEFN( UsbABCShutdownEnable, EnDis, "Usb ABC ports shutdown enable", "" ) \ DPOINT_DEFN( ScadaDnp3RqstCnt, UI32, "A simple counter of the number of requests received from the SCADA master. ", "" ) \ DPOINT_DEFN( ScadaDnp3IpUnathIpAddr, IpAddr, "The IP address of the most recent unauthorised attempt to establish a TCP / UDP connection.", "" ) \ DPOINT_DEFN( SigUSBHostOff, Signal, "USB host power off", "" ) \ DPOINT_DEFN( CanIo1ModuleType, UI8, "Module type", "" ) \ DPOINT_DEFN( CanIo2ModuleType, UI8, "Module type", "" ) \ DPOINT_DEFN( CanIo1ModuleHealth, UI8, "Healthy: 0, fault: 1", "" ) \ DPOINT_DEFN( CanIo2ModuleHealth, UI8, "Healthy: 0, fault: 1", "" ) \ DPOINT_DEFN( CanIo1ModuleFault, UI16, "Healthy: 00000000\r\nFlash:00000001\r\nRam:00000010\r\nTemperature sensor: 00000100\r\nPowerSupply: 00001000\r\nFirmware CRC error: 00010000\r\n", "" ) \ DPOINT_DEFN( CanIo2ModuleFault, UI16, "Healthy: 00000000\r\nFlash:00000001\r\nRam:00000010\r\nTemperature sensor: 00000100\r\nPowerSupply: 00001000\r\nFirmware CRC error: 00010000\r\n", "" ) \ DPOINT_DEFN( CanIo1SerialNumber, Arr8, "Serial Number in YYMMNNNN\r\nYY is year\r\nMM is month\r\nNNNN is device number\r\n", "" ) \ DPOINT_DEFN( CanIo2SerialNumber, Arr8, "Serial Number in YYMMNNNN\r\nYY is year\r\nMM is month\r\nNNNN is device number\r\n", "" ) \ DPOINT_DEFN( CanIo1PartAndSupplierCode, Str, "IO1 Part and Supplier Code", "" ) \ DPOINT_DEFN( CanIo2PartAndSupplierCode, Str, "IO2 Part and Supplier Code", "" ) \ DPOINT_DEFN( CanIo1Test, UI8, "IO1 Test off:0, Test1:1, Test2:2, Test3:3", "" ) \ DPOINT_DEFN( CanIo2Test, UI8, "IO2 Test off:0, Test1:1, Test2:2, Test3:3", "" ) \ DPOINT_DEFN( IO1Number, ConfigIOCardNum, "IO1 assigned number: indicates the IO number assigned to IO card with the serial number stored in the IdIo1SerialNumber datapoint.", "" ) \ DPOINT_DEFN( IO2Number, ConfigIOCardNum, "IO2 assigned number: indicates the IO number assigned to IO card with the serial number stored in the IdIo2SerialNumber datapoint.", "" ) \ DPOINT_DEFN( IoStatusILocCh1, IoStatus, "Input status (used instead of IoSettingILocCh since DB 7)", "" ) \ DPOINT_DEFN( IoStatusILocCh2, IoStatus, "Input status (used instead of IoSettingILocCh since DB 7)", "" ) \ DPOINT_DEFN( IoStatusILocCh3, IoStatus, "Input status (used instead of IoSettingILocCh since DB 7)", "" ) \ DPOINT_DEFN( CanIo1ReadHwVers, UI32, "Version number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor ", "" ) \ DPOINT_DEFN( CanIo2ReadHwVers, UI32, "Version number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor ", "" ) \ DPOINT_DEFN( CanIo1ReadSwVers, SwVersion, "Software version major number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor\r\nbytes[4..5] Build\r\nbytes[6..7] Mode 0=Debug, 1=Release", "" ) \ DPOINT_DEFN( CanIo2ReadSwVers, SwVersion, "Software version major number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor\r\nbytes[4..5] Build\r\nbytes[6..7] Mode 0=Debug, 1=Release", "" ) \ DPOINT_DEFN( IdIO1SoftwareVer, Str, "IO1 software version", "" ) \ DPOINT_DEFN( IdIO2SoftwareVer, Str, "IO2 software version", "" ) \ DPOINT_DEFN( IdIO1HardwareVer, Str, "IO1 hardware version", "" ) \ DPOINT_DEFN( IdIO2HardwareVer, Str, "IO2 hardware version", "" ) \ DPOINT_DEFN( CanIoAddrReq, Arr8, "Address request with serial code YYMMNNNN", "" ) \ DPOINT_DEFN( CanIo1ResetModule, UI8, "Request for the module to be reset: 1", "" ) \ DPOINT_DEFN( CanIo2ResetModule, UI8, "Request for the module to be reset: 1", "" ) \ DPOINT_DEFN( SwitchgearType, SwitchgearTypes, "The current switchgear type.", "" ) \ DPOINT_DEFN( IoSettingIo1InputEnable, UI8, "Bitwise input enable", "" ) \ DPOINT_DEFN( IoSettingIo1OutputEnable, UI8, "Bitwise output enable", "" ) \ DPOINT_DEFN( IoSettingIo2InputEnable, UI8, "Bitwise input enable", "" ) \ DPOINT_DEFN( IoSettingIo2OutputEnable, UI8, "Bitwise output enable", "" ) \ DPOINT_DEFN( IoSettingILocEnable, UI8, "Bitwise input enable", "" ) \ DPOINT_DEFN( SigLockoutProt, Signal, "This signal will be set when the switch has been opened to Lockout by any protection source.", "" ) \ DPOINT_DEFN( IoSettingILocTrec1, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingILocTrec2, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingILocTrec3, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh1, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh2, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh3, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh4, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh5, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh6, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh7, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo1InTrecCh8, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh1, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh2, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh3, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh4, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh5, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh6, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh7, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( IoSettingIo2InTrecCh8, UI8, "Input recognition time. Units of 10ms", "" ) \ DPOINT_DEFN( LogicVAR1, Signal, "Logic VAR1", "" ) \ DPOINT_DEFN( LogicVAR2, Signal, "Logic VAR2", "" ) \ DPOINT_DEFN( LogicVAR3, Signal, "Logic VAR3", "" ) \ DPOINT_DEFN( LogicVAR4, Signal, "Logic VAR4", "" ) \ DPOINT_DEFN( LogicVAR5, Signal, "Logic VAR5", "" ) \ DPOINT_DEFN( LogicVAR6, Signal, "Logic VAR6", "" ) \ DPOINT_DEFN( LogicVAR7, Signal, "Logic VAR7", "" ) \ DPOINT_DEFN( LogicVAR8, Signal, "Logic VAR8", "" ) \ DPOINT_DEFN( LogicVAR9, Signal, "Logic VAR9", "" ) \ DPOINT_DEFN( LogicVAR10, Signal, "Logic VAR10", "" ) \ DPOINT_DEFN( LogicVAR11, Signal, "Logic VAR11", "" ) \ DPOINT_DEFN( LogicVAR12, Signal, "Logic VAR12", "" ) \ DPOINT_DEFN( LogicVAR13, Signal, "Logic VAR13", "" ) \ DPOINT_DEFN( LogicVAR14, Signal, "Logic VAR14", "" ) \ DPOINT_DEFN( LogicVAR15, Signal, "Logic VAR15", "" ) \ DPOINT_DEFN( LogicVAR16, Signal, "Logic VAR16", "" ) \ DPOINT_DEFN( SigCtrlLoSeq2On, Signal, "If set forces the 2nd trip in a fault sequence to go to lockout.", "" ) \ DPOINT_DEFN( SigCtrlLoSeq3On, Signal, "If set forces the 3rd trip in a fault sequence to go to lockout.", "" ) \ DPOINT_DEFN( ActLoSeqMode, LoSeqMode, "The maximum number of trips before lockout. This is driven by the SigCtrlLoSeqXOn signals.", "" ) \ DPOINT_DEFN( IoProcessOpMode, LocalRemote, "The operating mode that the io process operates under. This is dynamic, switched according to local input and GPIO activity.", "" ) \ DPOINT_DEFN( SigCtrlSSMOn, Signal, "Short Sequence Mode. When TRUE only the first and last trips in the sequence are active.", "" ) \ DPOINT_DEFN( SigCtrlFTDisOn, Signal, "When TRUE the 2nd OC/EF trip engine is disabled.", "" ) \ DPOINT_DEFN( p2pRemoteLanAddr, IpAddr, "p2p comm remote LAN IPv4 address", "" ) \ DPOINT_DEFN( p2pCommUpdateRates, UI32, "p2p comm update rates", "" ) \ DPOINT_DEFN( p2pCommEnable, EnDis, "p2p comm enable/disable", "" ) \ DPOINT_DEFN( SigCtrlLogTest, Signal, "A 'dummy' test bit whose sole purpose is to generate log events when changed.", "" ) \ DPOINT_DEFN( ChEventIo1, ChangeEvent, "IO1 settings batch change", "" ) \ DPOINT_DEFN( ChEventIo2, ChangeEvent, "IO2 settings batch change", "" ) \ DPOINT_DEFN( LogicCh1NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh2NameOffline, Str, "Logic channel name Offline setting", "" ) \ DPOINT_DEFN( LogicCh3NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh4NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh5NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh6NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh7NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh8NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh1InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh2InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh3InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh4InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh5InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh6InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh7InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh8InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicChEnable, UI8, "Logic channel enable", "" ) \ DPOINT_DEFN( G3_OcAt, UI32, "Grp3 OC Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G3_OcDnd, DndMode, "Grp3 _OC DND", "" ) \ DPOINT_DEFN( G3_EfAt, UI32, "Grp3 _EF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G3_EfDnd, DndMode, "Grp3 _EF DND", "" ) \ DPOINT_DEFN( G3_SefAt, UI32, "Grp3 _SEF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G3_SefDnd, DndMode, "Grp3 _SEF DND", "" ) \ DPOINT_DEFN( G3_ArOCEF_ZSCmode, EnDis, "Grp3 1AutoReclose ZSC mod", "" ) \ DPOINT_DEFN( G3_VrcEnable, EnDis, "Grp3 AutoReclose VRC mode", "" ) \ DPOINT_DEFN( LogicChMode, LogicChannelMode, "Logic channel mode", "" ) \ DPOINT_DEFN( G3_ArOCEF_Trec1, UI32, "Grp3 AutoReclose Reclose Trip 1", "" ) \ DPOINT_DEFN( G3_ArOCEF_Trec2, UI32, "Grp3 AutoReclose Reclose Trip 2", "" ) \ DPOINT_DEFN( G3_ArOCEF_Trec3, UI32, "Grp3 AutoReclose Reclose Trip 3", "" ) \ DPOINT_DEFN( G3_ResetTime, UI32, "Grp3 Reset time", "" ) \ DPOINT_DEFN( G3_TtaMode, TtaMode, "Grp3 Transient additional time mode", "" ) \ DPOINT_DEFN( G3_TtaTime, UI32, "Grp3 Transient additional time", "" ) \ DPOINT_DEFN( G3_SstOcForward, UI8, "Grp3 OC Single shot to trip.", "" ) \ DPOINT_DEFN( G3_EftEnable, EnDis, "Grp3 En/Disables the excess fast trip engine.", "" ) \ DPOINT_DEFN( G3_ClpClm, UI32, "Grp3 CLP multiplier", "" ) \ DPOINT_DEFN( G3_ClpTcl, UI32, "Grp3 CLP load time", "" ) \ DPOINT_DEFN( G3_ClpTrec, UI32, "Grp3 CLP recognition time", "" ) \ DPOINT_DEFN( G3_IrrIrm, UI32, "Grp3 IRR multiplier", "" ) \ DPOINT_DEFN( G3_IrrTir, UI32, "Grp3 IRR restraint time", "" ) \ DPOINT_DEFN( G3_VrcMode, VrcMode, "Grp3 VRC mode", "" ) \ DPOINT_DEFN( G3_VrcUMmin, UI32, "Grp3 VRC voltage multiplier", "" ) \ DPOINT_DEFN( G3_AbrMode, EnDis, "Grp3 ABR mode", "" ) \ DPOINT_DEFN( G3_OC1F_Ip, UI32, "Grp3 OC1+ Pickup current", "" ) \ DPOINT_DEFN( G3_OC1F_Tcc, UI16, "Grp3 OC1+ TCC Type", "" ) \ DPOINT_DEFN( G3_OC1F_TDtMin, UI32, "Grp3 OC1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_OC1F_TDtRes, UI32, "Grp3 OC1+ DT reset time", "" ) \ DPOINT_DEFN( G3_OC1F_Tm, UI32, "Grp3 OC1+ Time multiplier", "" ) \ DPOINT_DEFN( G3_OC1F_Imin, UI32, "Grp3 OC1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G3_OC1F_Tmin, UI32, "Grp3 OC1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G3_OC1F_Tmax, UI32, "Grp3 OC1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G3_OC1F_Ta, UI32, "Grp3 OC1+ Additional time", "" ) \ DPOINT_DEFN( LogicChLogChange, UI8, "Log logic channel changes", "" ) \ DPOINT_DEFN( G3_OC1F_ImaxEn, EnDis, "Grp3 OC1+ Enable Max mode", "" ) \ DPOINT_DEFN( G3_OC1F_Imax, UI32, "Grp3 OC1+ Max current multiplier", "" ) \ DPOINT_DEFN( G3_OC1F_DirEn, EnDis, "Grp3 OC1+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_OC1F_Tr1, TripMode, "Grp3 OC1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_OC1F_Tr2, TripMode, "Grp3 OC1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_OC1F_Tr3, TripMode, "Grp3 OC1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_OC1F_Tr4, TripMode, "Grp3 OC1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_OC1F_TccUD, TccCurve, "Grp3 OC1+ User defined curve", "" ) \ DPOINT_DEFN( G3_OC2F_Ip, UI32, "Grp3 OC2+ Pickup current", "" ) \ DPOINT_DEFN( G3_OC2F_Tcc, UI16, "Grp3 OC2+ TCC Type", "" ) \ DPOINT_DEFN( G3_OC2F_TDtMin, UI32, "Grp3 OC2+ DT min tripping time", "" ) \ DPOINT_DEFN( G3_OC2F_TDtRes, UI32, "Grp3 OC2+ DT reset time", "" ) \ DPOINT_DEFN( G3_OC2F_Tm, UI32, "Grp3 OC2+ Time multiplier", "" ) \ DPOINT_DEFN( G3_OC2F_Imin, UI32, "Grp3 OC2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G3_OC2F_Tmin, UI32, "Grp3 OC2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G3_OC2F_Tmax, UI32, "Grp3 OC2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G3_OC2F_Ta, UI32, "Grp3 OC2+ Additional time", "" ) \ DPOINT_DEFN( G3_EftTripCount, UI8, "Grp3 Applicable to EFT mode: The threshould count of the number of protection trips before disabling fast trips.", "" ) \ DPOINT_DEFN( G3_OC2F_ImaxEn, EnDis, "Grp3 OC2+ Enable Max mode", "" ) \ DPOINT_DEFN( G3_OC2F_Imax, UI32, "Grp3 OC2+ Max current multiplier", "" ) \ DPOINT_DEFN( G3_OC2F_DirEn, EnDis, "Grp3 OC2+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_OC2F_Tr1, TripMode, "Grp3 OC2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_OC2F_Tr2, TripMode, "Grp3 OC2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_OC2F_Tr3, TripMode, "Grp3 OC2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_OC2F_Tr4, TripMode, "Grp3 OC2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_OC2F_TccUD, TccCurve, "Grp3 OC2+ User defined curve", "" ) \ DPOINT_DEFN( G3_OC3F_Ip, UI32, "Grp3 OC3+ Pickup current", "" ) \ DPOINT_DEFN( G3_OC3F_TDtMin, UI32, "Grp3 OC3+ DT tripping time", "" ) \ DPOINT_DEFN( G3_OC3F_TDtRes, UI32, "Grp3 OC3+ DT reset time", "" ) \ DPOINT_DEFN( G3_OC3F_DirEn, EnDis, "Grp3 OC3+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_OC3F_Tr1, TripMode, "Grp3 OC3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_OC3F_Tr2, TripMode, "Grp3 OC3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_OC3F_Tr3, TripMode, "Grp3 OC3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_OC3F_Tr4, TripMode, "Grp3 OC3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_OC1R_Ip, UI32, "Grp3 OC1- Pickup current", "" ) \ DPOINT_DEFN( G3_OC1R_Tcc, UI16, "Grp3 OC1- TCC Type", "" ) \ DPOINT_DEFN( G3_OC1R_TDtMin, UI32, "Grp3 OC1- DT min tripping time", "" ) \ DPOINT_DEFN( G3_OC1R_TDtRes, UI32, "Grp3 OC1- DT reset time", "" ) \ DPOINT_DEFN( G3_OC1R_Tm, UI32, "Grp3 OC1- Time multiplier", "" ) \ DPOINT_DEFN( G3_OC1R_Imin, UI32, "Grp3 OC1- Min. current multiplier", "" ) \ DPOINT_DEFN( G3_OC1R_Tmin, UI32, "Grp3 OC1- Minimum tripping time", "" ) \ DPOINT_DEFN( G3_OC1R_Tmax, UI32, "Grp3 OC1- Maximum tripping time", "" ) \ DPOINT_DEFN( G3_OC1R_Ta, UI32, "Grp3 OC1- Additional time", "" ) \ DPOINT_DEFN( G3_EftTripWindow, UI8, "Grp3 Applicable to EFT mode: The period window used when monitoring the number of protection trips.", "" ) \ DPOINT_DEFN( G3_OC1R_ImaxEn, EnDis, "Grp3 OC1- Enable Max mode", "" ) \ DPOINT_DEFN( G3_OC1R_Imax, UI32, "Grp3 OC1- Max current multiplier", "" ) \ DPOINT_DEFN( G3_OC1R_DirEn, EnDis, "Grp3 OC1- Enable directional protection", "" ) \ DPOINT_DEFN( G3_OC1R_Tr1, TripMode, "Grp3 OC1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_OC1R_Tr2, TripMode, "Grp3 OC1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_OC1R_Tr3, TripMode, "Grp3 OC1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_OC1R_Tr4, TripMode, "Grp3 OC1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_OC1R_TccUD, TccCurve, "Grp3 OC1- User defined curve", "" ) \ DPOINT_DEFN( G3_OC2R_Ip, UI32, "Grp3 OC2- Pickup current", "" ) \ DPOINT_DEFN( G3_OC2R_Tcc, UI16, "Grp3 OC2- TCC Type", "" ) \ DPOINT_DEFN( G3_OC2R_TDtMin, UI32, "Grp3 OC2- DT min tripping time", "" ) \ DPOINT_DEFN( G3_OC2R_TDtRes, UI32, "Grp3 OC2- DT reset time", "" ) \ DPOINT_DEFN( G3_OC2R_Tm, UI32, "Grp3 OC2- Time multiplier", "" ) \ DPOINT_DEFN( G3_OC2R_Imin, UI32, "Grp3 OC2- Min. current multiplier", "" ) \ DPOINT_DEFN( G3_OC2R_Tmin, UI32, "Grp3 OC2- Minimum tripping time", "" ) \ DPOINT_DEFN( G3_OC2R_Tmax, UI32, "Grp3 OC2- Maximum tripping time", "" ) \ DPOINT_DEFN( G3_OC2R_Ta, UI32, "Grp3 OC2- Additional time", "" ) \ DPOINT_DEFN( G3_OC2R_ImaxEn, EnDis, "Grp3 OC2- Enable Max mode", "" ) \ DPOINT_DEFN( G3_OC2R_Imax, UI32, "Grp3 OC2- Max current multiplier", "" ) \ DPOINT_DEFN( G3_OC2R_DirEn, EnDis, "Grp3 OC2- Enable directional protection", "" ) \ DPOINT_DEFN( G3_OC2R_Tr1, TripMode, "Grp3 OC2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_OC2R_Tr2, TripMode, "Grp3 OC2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_OC2R_Tr3, TripMode, "Grp3 OC2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_OC2R_Tr4, TripMode, "Grp3 OC2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_OC2R_TccUD, TccCurve, "Grp3 OC2- User defined curve", "" ) \ DPOINT_DEFN( G3_OC3R_Ip, UI32, "Grp3 OC3- Pickup current", "" ) \ DPOINT_DEFN( G3_OC3R_TDtMin, UI32, "Grp3 OC3- DT tripping time", "" ) \ DPOINT_DEFN( G3_OC3R_TDtRes, UI32, "Grp3 OC3- DT reset time", "" ) \ DPOINT_DEFN( G3_OC3R_DirEn, EnDis, "Grp3 OC3- Enable directional protection", "" ) \ DPOINT_DEFN( G3_OC3R_Tr1, TripMode, "Grp3 OC3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_OC3R_Tr2, TripMode, "Grp3 OC3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_OC3R_Tr3, TripMode, "Grp3 OC3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_OC3R_Tr4, TripMode, "Grp3 OC3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_EF1F_Ip, UI32, "Grp3 EF1+ Pickup current", "" ) \ DPOINT_DEFN( G3_EF1F_Tcc, UI16, "Grp3 EF1+ TCC Type", "" ) \ DPOINT_DEFN( G3_EF1F_TDtMin, UI32, "Grp3 EF1+ DT min tripping time", "" ) \ DPOINT_DEFN( G3_EF1F_TDtRes, UI32, "Grp3 EF1+ DT reset time", "" ) \ DPOINT_DEFN( G3_EF1F_Tm, UI32, "Grp3 EF1+ Time multiplier", "" ) \ DPOINT_DEFN( G3_EF1F_Imin, UI32, "Grp3 EF1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G3_EF1F_Tmin, UI32, "Grp3 EF1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G3_EF1F_Tmax, UI32, "Grp3 EF1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G3_EF1F_Ta, UI32, "Grp3 EF1+ Additional time", "" ) \ DPOINT_DEFN( G3_DEPRECATED_G1EF1F_Tres, UI32, "Grp3 EF1+ Reset time", "" ) \ DPOINT_DEFN( G3_EF1F_ImaxEn, EnDis, "Grp3 EF1+ Enable Max mode", "" ) \ DPOINT_DEFN( G3_EF1F_Imax, UI32, "Grp3 EF1+ Max current multiplier", "" ) \ DPOINT_DEFN( G3_EF1F_DirEn, EnDis, "Grp3 EF1+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_EF1F_Tr1, TripMode, "Grp3 EF1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_EF1F_Tr2, TripMode, "Grp3 EF1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_EF1F_Tr3, TripMode, "Grp3 EF1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_EF1F_Tr4, TripMode, "Grp3 EF1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_EF1F_TccUD, TccCurve, "Grp3 EF1+ User defined curve", "" ) \ DPOINT_DEFN( G3_EF2F_Ip, UI32, "Grp3 EF2+ Pickup current", "" ) \ DPOINT_DEFN( G3_EF2F_Tcc, UI16, "Grp3 EF2+ TCC Type", "" ) \ DPOINT_DEFN( G3_EF2F_TDtMin, UI32, "Grp3 EF2+ DT min tripping time", "" ) \ DPOINT_DEFN( G3_EF2F_TDtRes, UI32, "Grp3 EF2+ DT reset time", "" ) \ DPOINT_DEFN( G3_EF2F_Tm, UI32, "Grp3 EF2+ Time multiplier", "" ) \ DPOINT_DEFN( G3_EF2F_Imin, UI32, "Grp3 EF2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G3_EF2F_Tmin, UI32, "Grp3 EF2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G3_EF2F_Tmax, UI32, "Grp3 EF2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G3_EF2F_Ta, UI32, "Grp3 EF2+ Additional time", "" ) \ DPOINT_DEFN( G3_DEPRECATED_G1EF2F_Tres, UI32, "Grp3 EF2+ Reset time", "" ) \ DPOINT_DEFN( G3_EF2F_ImaxEn, EnDis, "Grp3 EF2+ Enable Max mode", "" ) \ DPOINT_DEFN( G3_EF2F_Imax, UI32, "Grp3 EF2+ Max mode", "" ) \ DPOINT_DEFN( G3_EF2F_DirEn, EnDis, "Grp3 EF2+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_EF2F_Tr1, TripMode, "Grp3 EF2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_EF2F_Tr2, TripMode, "Grp3 EF2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_EF2F_Tr3, TripMode, "Grp3 EF2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_EF2F_Tr4, TripMode, "Grp3 EF2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_EF2F_TccUD, TccCurve, "Grp3 EF2+ User defined curve", "" ) \ DPOINT_DEFN( G3_EF3F_Ip, UI32, "Grp3 EF3+ Pickup current", "" ) \ DPOINT_DEFN( G3_EF3F_TDtMin, UI32, "Grp3 EF3+ DT tripping time", "" ) \ DPOINT_DEFN( G3_EF3F_TDtRes, UI32, "Grp3 EF3+ DT reset time", "" ) \ DPOINT_DEFN( G3_EF3F_DirEn, EnDis, "Grp3 EF3+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_EF3F_Tr1, TripMode, "Grp3 EF3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_EF3F_Tr2, TripMode, "Grp3 EF3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_EF3F_Tr3, TripMode, "Grp3 EF3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_EF3F_Tr4, TripMode, "Grp3 EF3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_EF1R_Ip, UI32, "Grp3 EF1- Pickup current", "" ) \ DPOINT_DEFN( G3_EF1R_Tcc, UI16, "Grp3 EF1- TCC Type", "" ) \ DPOINT_DEFN( G3_EF1R_TDtMin, UI32, "Grp3 EF1- DT min tripping time", "" ) \ DPOINT_DEFN( G3_EF1R_TDtRes, UI32, "Grp3 EF1- DT reset time", "" ) \ DPOINT_DEFN( G3_EF1R_Tm, UI32, "Grp3 EF1- Time multiplier", "" ) \ DPOINT_DEFN( G3_EF1R_Imin, UI32, "Grp3 EF1- Min. current multiplier", "" ) \ DPOINT_DEFN( G3_EF1R_Tmin, UI32, "Grp3 EF1- Minimum tripping time", "" ) \ DPOINT_DEFN( G3_EF1R_Tmax, UI32, "Grp3 EF1- Maximum tripping time", "" ) \ DPOINT_DEFN( G3_EF1R_Ta, UI32, "Grp3 EF1- Additional time", "" ) \ DPOINT_DEFN( G3_DEPRECATED_G1EF1R_Tres, UI32, "Grp3 EF1- Reset time", "" ) \ DPOINT_DEFN( G3_EF1R_ImaxEn, EnDis, "Grp3 EF1- Enable Max mode", "" ) \ DPOINT_DEFN( G3_EF1R_Imax, UI32, "Grp3 EF1- Max current multiplier", "" ) \ DPOINT_DEFN( G3_EF1R_DirEn, EnDis, "Grp3 EF1- Enable directional protection", "" ) \ DPOINT_DEFN( G3_EF1R_Tr1, TripMode, "Grp3 EF1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_EF1R_Tr2, TripMode, "Grp3 EF1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_EF1R_Tr3, TripMode, "Grp3 EF1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_EF1R_Tr4, TripMode, "Grp3 EF1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_EF1R_TccUD, TccCurve, "Grp3 EF1- User defined curve", "" ) \ DPOINT_DEFN( G3_EF2R_Ip, UI32, "Grp3 EF2- Pickup current", "" ) \ DPOINT_DEFN( G3_EF2R_Tcc, UI16, "Grp3 EF2- TCC Type", "" ) \ DPOINT_DEFN( G3_EF2R_TDtMin, UI32, "Grp3 EF2- DT min tripping time", "" ) \ DPOINT_DEFN( G3_EF2R_TDtRes, UI32, "Grp3 EF2- DT reset time", "" ) \ DPOINT_DEFN( G3_EF2R_Tm, UI32, "Grp3 EF2- Time multiplier", "" ) \ DPOINT_DEFN( G3_EF2R_Imin, UI32, "Grp3 EF2- Min. current multiplier", "" ) \ DPOINT_DEFN( G3_EF2R_Tmin, UI32, "Grp3 EF2- Minimum tripping time", "" ) \ DPOINT_DEFN( G3_EF2R_Tmax, UI32, "Grp3 EF2- Maximum tripping time", "" ) \ DPOINT_DEFN( G3_EF2R_Ta, UI32, "Grp3 EF2- Additional time", "" ) \ DPOINT_DEFN( G3_EF2R_ImaxEn, EnDis, "Grp3 EF2- Enable Max mode", "" ) \ DPOINT_DEFN( G3_EF2R_Imax, UI32, "Grp3 EF2- Max current multiplier", "" ) \ DPOINT_DEFN( G3_EF2R_DirEn, EnDis, "Grp3 EF2- Enable directional protection", "" ) \ DPOINT_DEFN( G3_EF2R_Tr1, TripMode, "Grp3 EF2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_EF2R_Tr2, TripMode, "Grp3 EF2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_EF2R_Tr3, TripMode, "Grp3 EF2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_EF2R_Tr4, TripMode, "Grp3 EF2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_EF2R_TccUD, TccCurve, "Grp3 EF2- User defined curve", "" ) \ DPOINT_DEFN( G3_EF3R_Ip, UI32, "Grp3 EF3- Pickup current", "" ) \ DPOINT_DEFN( G3_EF3R_TDtMin, UI32, "Grp3 EF3- DT tripping time", "" ) \ DPOINT_DEFN( G3_EF3R_TDtRes, UI32, "Grp3 EF3- DT reset time", "" ) \ DPOINT_DEFN( G3_EF3R_DirEn, EnDis, "Grp3 EF3- Enable directional protection", "" ) \ DPOINT_DEFN( G3_EF3R_Tr1, TripMode, "Grp3 EF3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_EF3R_Tr2, TripMode, "Grp3 EF3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_EF3R_Tr3, TripMode, "Grp3 EF3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_EF3R_Tr4, TripMode, "Grp3 EF3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_SEFF_Ip, UI32, "Grp3 SEF+ Pickup current", "" ) \ DPOINT_DEFN( G3_SEFF_TDtMin, UI32, "Grp3 SEF+ DT tripping time", "" ) \ DPOINT_DEFN( G3_SEFF_TDtRes, UI32, "Grp3 SEF+ DT reset time", "" ) \ DPOINT_DEFN( G3_SEFF_DirEn, EnDis, "Grp3 SEF+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_SEFF_Tr1, TripMode, "Grp3 SEF+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_SEFF_Tr2, TripMode, "Grp3 SEF+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_SEFF_Tr3, TripMode, "Grp3 SEF+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_SEFF_Tr4, TripMode, "Grp3 SEF+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_SEFR_Ip, UI32, "Grp3 SEF- Pickup current", "" ) \ DPOINT_DEFN( G3_SEFR_TDtMin, UI32, "Grp3 SEF- DT tripping time", "" ) \ DPOINT_DEFN( G3_SEFR_TDtRes, UI32, "Grp3 SEF- DT reset time", "" ) \ DPOINT_DEFN( G3_SEFR_DirEn, EnDis, "Grp3 SEF- Enable directional protection", "" ) \ DPOINT_DEFN( G3_SEFR_Tr1, TripMode, "Grp3 SEF- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_SEFR_Tr2, TripMode, "Grp3 SEF- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_SEFR_Tr3, TripMode, "Grp3 SEF- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_SEFR_Tr4, TripMode, "Grp3 SEF- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_OcLl_Ip, UI32, "Grp3 OC3 LL Pickup current", "" ) \ DPOINT_DEFN( G3_OcLl_TDtMin, UI32, "Grp3 OC LL3 DT tripping time", "" ) \ DPOINT_DEFN( G3_OcLl_TDtRes, UI32, "Grp3 OC LL3 DT reset time", "" ) \ DPOINT_DEFN( G3_EfLl_Ip, UI32, "Grp3 EF LL3 Pickup current", "" ) \ DPOINT_DEFN( G3_EfLl_TDtMin, UI32, "Grp3 EF LL3 DT tripping time", "" ) \ DPOINT_DEFN( G3_EfLl_TDtRes, UI32, "Grp3 EF LL3 DT reset time", "" ) \ DPOINT_DEFN( G3_Uv1_Um, UI32, "Grp3 UV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G3_Uv1_TDtMin, UI32, "Grp3 UV1 DT tripping time", "" ) \ DPOINT_DEFN( G3_Uv1_TDtRes, UI32, "Grp3 UV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Uv1_Trm, TripMode, "Grp3 1 UV1 Trip mod", "" ) \ DPOINT_DEFN( G3_Uv2_Um, UI32, "Grp3 UV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G3_Uv2_TDtMin, UI32, "Grp3 UV2 DT tripping time", "" ) \ DPOINT_DEFN( G3_Uv2_TDtRes, UI32, "Grp3 UV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Uv2_Trm, TripMode, "Grp3 1 UV2 Trip mod", "" ) \ DPOINT_DEFN( G3_Uv3_TDtMin, UI32, "Grp3 UV3 DT tripping time", "" ) \ DPOINT_DEFN( G3_Uv3_TDtRes, UI32, "Grp3 UV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Uv3_Trm, TripMode, "Grp3 1 UV3 Trip mod", "" ) \ DPOINT_DEFN( G3_Ov1_Um, UI32, "Grp3 OV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G3_Ov1_TDtMin, UI32, "Grp3 OV1 DT tripping time", "" ) \ DPOINT_DEFN( G3_Ov1_TDtRes, UI32, "Grp3 OV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Ov1_Trm, TripMode, "Grp3 1 OV1 Trip mod", "" ) \ DPOINT_DEFN( G3_Ov2_Um, UI32, "Grp3 OV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G3_Ov2_TDtMin, UI32, "Grp3 OV2 DT tripping time", "" ) \ DPOINT_DEFN( G3_Ov2_TDtRes, UI32, "Grp3 OV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Ov2_Trm, TripMode, "Grp3 1 OV2 Trip mod", "" ) \ DPOINT_DEFN( G3_Uf_Fp, UI32, "Grp3 UF Pickup frequency", "" ) \ DPOINT_DEFN( G3_Uf_TDtMin, UI32, "Grp3 UF DT tripping time", "" ) \ DPOINT_DEFN( G3_Uf_TDtRes, UI32, "Grp3 UF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Uf_Trm, TripModeDLA, "Grp3 UF Trip mode", "" ) \ DPOINT_DEFN( G3_Of_Fp, UI32, "Grp3 OF Pickup frequency", "" ) \ DPOINT_DEFN( G3_Of_TDtMin, UI32, "Grp3 OF DT tripping time", "" ) \ DPOINT_DEFN( G3_Of_TDtRes, UI32, "Grp3 OF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Of_Trm, TripModeDLA, "Grp3 OF Trip mode", "" ) \ DPOINT_DEFN( G3_DEPRECATED_OC1F_ImaxAbs, UI32, "Grp3 OC1+ Max abs current", "" ) \ DPOINT_DEFN( G3_DEPRECATED_OC2F_ImaxAbs, UI32, "Grp3 OC2+ Max abs current", "" ) \ DPOINT_DEFN( G3_DEPRECATED_OC1R_ImaxAbs, UI32, "Grp3 OC1- Max abs current", "" ) \ DPOINT_DEFN( G3_DEPRECATED_OC2R_ImaxAbs, UI32, "Grp3 OC2- Max abs current", "" ) \ DPOINT_DEFN( G3_DEPRECATED_EF1F_ImaxAbs, UI32, "Grp3 EF1+ Max abs current", "" ) \ DPOINT_DEFN( G3_DEPRECATED_EF2F_ImaxAbs, UI32, "Grp3 EF2+ Max abs current", "" ) \ DPOINT_DEFN( G3_DEPRECATED_EF1R_ImaxAbs, UI32, "Grp3 EF1- Max abs current", "" ) \ DPOINT_DEFN( G3_DEPRECATED_EF2R_ImaxAbs, UI32, "Grp3 EF2- Max abs current", "" ) \ DPOINT_DEFN( G3_SstEfForward, UI8, "Grp3 EF Single shot to trip", "" ) \ DPOINT_DEFN( G3_SstSefForward, UI8, "Grp3 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G3_AbrTrest, UI32, "Grp3 The ABR restoration time in s.", "" ) \ DPOINT_DEFN( G3_AutoOpenMode, AutoOpenMode, "Grp3 AutoOpen method: Disabled/Timer/Power Flow", "" ) \ DPOINT_DEFN( G3_AutoOpenTime, UI16, "Grp3 The time in minutes to wait before auto open after a close by ABR", "" ) \ DPOINT_DEFN( G3_AutoOpenOpns, UI8, "Grp3 The number of times this element will allow ABR closes before locking out.", "" ) \ DPOINT_DEFN( G3_SstOcReverse, UI8, "Grp3 ", "" ) \ DPOINT_DEFN( G3_SstEfReverse, UI8, "Grp3 Grp 1 EF Single shot to trip", "" ) \ DPOINT_DEFN( G3_SstSefReverse, UI8, "Grp3 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G3_ArUVOV_Trec, UI32, "Grp3 Under / Over voltage auto reclose time in seconds", "" ) \ DPOINT_DEFN( G3_GrpName, Str, "Grp3 _Group Name", "" ) \ DPOINT_DEFN( G3_GrpDes, Str, "Grp3 G1_Grp Description Group description", "" ) \ DPOINT_DEFN( LogicCh1OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh2OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh3OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh4OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh5OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh6OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh7OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh8OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh1RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh2RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh3RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh4RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh5RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh6RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh7RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh8RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh1ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh2ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh3ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh4ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh5ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh6ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh7ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh8ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh1PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh2PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh3PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh4PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh5PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh6PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh7PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh8PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicChPulseEnable, UI8, "Logic channel pulse enable", "" ) \ DPOINT_DEFN( LogicCh1Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh2Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh3Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh4Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh5Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh6Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh7Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh8Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh1Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh2Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh3Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh4Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh5Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh6Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh7Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh8Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( SigMntActivated, Signal, "This signal is set when MNT is activated (threshold number of trips within the configured window) and reset when DFT is reset. Only 'set' events need to be logged. NOTE: That the name refers to EFT (Excess Fast Trips) as this was the original name for the dPoint.", "" ) \ DPOINT_DEFN( SigCtrlACOOn, Signal, "ACO is switched on. NOTE: from DB26 this is volatile so that ACO will always be OFF after a startup/reset.", "" ) \ DPOINT_DEFN( CanGpioRdData, SimImageBytes, "GPIO image download read", "" ) \ DPOINT_DEFN( CanGpioFirmwareVerifyStatus, UI8, "0 DOWNLOAD_NEXT - get next block of data.\r\n1 DOWNLOAD_REPT - repeat block as data was corrupt.\r\n2 DOWNLOAD_BUSY - unit still processing the data.\r\n\r\nWhen polled indicates what it is currently happening with the block data.", "" ) \ DPOINT_DEFN( CanGpioFirmwareTypeRunning, UI8, "CanGpioFirmwareTypeRunning\r\n0 main code running\r\n1 mini bootloader running\r\n2 main bootloader running", "" ) \ DPOINT_DEFN( CanDataRequestIo, CanObjType, "Request data from IO device 3 on the CAN network\r\n(where 3 is the default GPIO device number prior to address allocation, as opposed to 4 for IO1 and 5 for IO2)", "" ) \ DPOINT_DEFN( IdGpioSoftwareVer, Str, "Identification: GPIO Software Version\r\nUsed while programming GPIO. Refer to IdIO1SoftwareVer, IdIO2SoftwareVer for IO software versions when running", "" ) \ DPOINT_DEFN( ProgramGpioCmd, UI8, "Issue commands to the GPIO programmer process.", "" ) \ DPOINT_DEFN( ScadaT104TimeoutT0, UI8, "Timeout t0 defined in IEC 60870-5-104: Timeout of connection establishment. This should usually be longer than timeout t1.", "" ) \ DPOINT_DEFN( ScadaT104TimeoutT1, UI8, "Timeout t1 defined in IEC 60870-5-104: Timeout for an expected response. If this expires, the channel will be closed. Timeout t1 is set longer than timeout t2.", "" ) \ DPOINT_DEFN( ScadaT104TimeoutT2, UI8, "Timeout t2 defined in IEC 60870-5-104: Maximum delay before sending an acknowledgement S-frame if no data frame needs to be sent. Timeout t2 should be less than timeout t1.", "" ) \ DPOINT_DEFN( ScadaT104TimeoutT3, UI32, "Timeout t3 defined in IEC 60870-5-104: Maximum channel idle time before sending a keep-alive U-frame. This is the timeout for activity on a connection. Set to zero to disable this check, maximum 48 hours. If used, this timeout should be set longer than t1.", "" ) \ DPOINT_DEFN( LogicCh1Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh2Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh3Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh4Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh5Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh6Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh7Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh8Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( p2pChannelPort, CommsPort, "p2p comm channel port", "" ) \ DPOINT_DEFN( p2pMappedUI8_0, UI8, "p2p comm locally mapped UI8 number 0", "" ) \ DPOINT_DEFN( p2pMappedUI8_1, UI8, "p2p comm locally mapped UI8 number 1", "" ) \ DPOINT_DEFN( p2pMappedSignal_0, Signal, "p2p comm locally mapped signal number 0", "" ) \ DPOINT_DEFN( p2pMappedSignal_1, Signal, "p2p comm locally mapped signal number 1", "" ) \ DPOINT_DEFN( p2pMappedSignal_2, Signal, "p2p comm locally mapped signal number 2", "" ) \ DPOINT_DEFN( p2pMappedSignal_3, Signal, "p2p comm locally mapped signal number 3", "" ) \ DPOINT_DEFN( CanGpioRequestMoreData, UI8, "Number of packets to send \r\n\r\nSent by the device firmware is being loaded on to. Therefore it has control of the data flow.", "" ) \ DPOINT_DEFN( SigPickupRangeSupply, Signal, "One of the monitored supply signals is out of the configured range.", "" ) \ DPOINT_DEFN( SigPickupRangeLoad, Signal, "Any load related signal is within the configured range.", "" ) \ DPOINT_DEFN( SigPickupRangeUV1, Signal, "U1 Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUVab, Signal, "Uab Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUVbc, Signal, "Ubc Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUVca, Signal, "Uca Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUFabc, Signal, "Fabc Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUVrs, Signal, "Urs Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUVst, Signal, "Ust Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUVtr, Signal, "Utr Signal is under the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeUFrst, Signal, "Frst Signal is under the threshold.", "" ) \ DPOINT_DEFN( SupplyHealthState, SupplyState, "The health state of local supply source.", "" ) \ DPOINT_DEFN( LoadHealthState, LoadState, "The health state of the load.", "" ) \ DPOINT_DEFN( SigLoadDead, Signal, "The load dead signal.", "" ) \ DPOINT_DEFN( SigSupplyUnhealthy, Signal, "ACO: Source Not Healthy", "" ) \ DPOINT_DEFN( ACO_Debug, UI32, "ACO Debug", "" ) \ DPOINT_DEFN( ACO_TPup, UI32, "ACO Time", "" ) \ DPOINT_DEFN( EvACOState, LogEvent, "The ACO state has changed.", "" ) \ DPOINT_DEFN( SigOpenPeer, Signal, "the map to remote SigOpen.", "" ) \ DPOINT_DEFN( SigClosedPeer, Signal, "The map to remote SigClosed", "" ) \ DPOINT_DEFN( SigMalfunctionPeer, Signal, "the peer's SigMalfunction", "" ) \ DPOINT_DEFN( SigWarningPeer, Signal, "The peer's SigWarning", "" ) \ DPOINT_DEFN( p2pMappedUI32_0, UI32, "p2p comm locally mapped UI32 number 0", "" ) \ DPOINT_DEFN( ProtStatusStatePeer, UI32, "The Peer's ProtStatusState", "" ) \ DPOINT_DEFN( p2pMappedUI32_1, UI32, "p2p comm locally mapped UI32 number 1", "" ) \ DPOINT_DEFN( SigPickupRangeOFrst, Signal, "Frst Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOFabc, Signal, "Fabc Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOVtr, Signal, "Utr Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOVst, Signal, "Ust Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOVrs, Signal, "Urs Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOV1, Signal, "U1 Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOVab, Signal, "Uab Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOVbc, Signal, "Ubc Signal is over the threshold.", "" ) \ DPOINT_DEFN( SigPickupRangeOVca, Signal, "Uca Signal is over the threshold.", "" ) \ DPOINT_DEFN( ACOOperationMode, ACOOpMode, "ACO Operation Mode", "" ) \ DPOINT_DEFN( ACOMakeBeforeBreak, EnDis, "ACO Make Before Break", "" ) \ DPOINT_DEFN( SigOpenACO, Signal, "Open due to ACO restore operation", "" ) \ DPOINT_DEFN( SigClosedACO, Signal, "Closed due to ACO restore operation", "" ) \ DPOINT_DEFN( SigSupplyUnhealthyPeer, Signal, "Peer Source Not Healthy", "" ) \ DPOINT_DEFN( ACOOperationModePeer, ACOOpMode, "Peer ACO Operation Mode", "" ) \ DPOINT_DEFN( ACODisplayState, OpenClose, "ACO Current State", "" ) \ DPOINT_DEFN( ACODisplayStatePeer, OpenClose, "Peer ACO Current State", "" ) \ DPOINT_DEFN( ACOHealth, ACOHealthReason, "ACO Health", "" ) \ DPOINT_DEFN( ACOHealthPeer, ACOHealthReason, "Peer ACO Health", "" ) \ DPOINT_DEFN( SigCtrlACOOnPeer, Signal, "Peer ACO is switched on", "" ) \ DPOINT_DEFN( ACOMakeBeforeBreakPeer, EnDis, "Peer ACO Make Before Break", "" ) \ DPOINT_DEFN( G4_OcAt, UI32, "Grp4 OC Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G4_OcDnd, DndMode, "Grp4 _OC DND", "" ) \ DPOINT_DEFN( G4_EfAt, UI32, "Grp4 _EF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G4_EfDnd, DndMode, "Grp4 _EF DND", "" ) \ DPOINT_DEFN( G4_SefAt, UI32, "Grp4 _SEF Torque Angle. See MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G4_SefDnd, DndMode, "Grp4 _SEF DND", "" ) \ DPOINT_DEFN( G4_ArOCEF_ZSCmode, EnDis, "Grp4 1AutoReclose ZSC mod", "" ) \ DPOINT_DEFN( G4_VrcEnable, EnDis, "Grp4 AutoReclose VRC mode", "" ) \ DPOINT_DEFN( SimSwitchStatusPeer, SwState, "0:Unknown, 1:Open, 2:Close, 3:Lockout, 4:InterLocked, 5:OpenABR, 6:Failure, 7:OpenACO, 8:OpenAC, 9:LogicallyLocked", "" ) \ DPOINT_DEFN( G4_ArOCEF_Trec1, UI32, "Grp4 AutoReclose Reclose Trip 1", "" ) \ DPOINT_DEFN( G4_ArOCEF_Trec2, UI32, "Grp4 AutoReclose Reclose Trip 2", "" ) \ DPOINT_DEFN( G4_ArOCEF_Trec3, UI32, "Grp4 AutoReclose Reclose Trip 3", "" ) \ DPOINT_DEFN( G4_ResetTime, UI32, "Grp4 Reset time", "" ) \ DPOINT_DEFN( G4_TtaMode, TtaMode, "Grp4 Transient additional time mode", "" ) \ DPOINT_DEFN( G4_TtaTime, UI32, "Grp4 Transient additional time", "" ) \ DPOINT_DEFN( G4_SstOcForward, UI8, "Grp4 OC Single shot to trip.", "" ) \ DPOINT_DEFN( G4_EftEnable, EnDis, "Grp4 En/Disables the excess fast trip engine.", "" ) \ DPOINT_DEFN( G4_ClpClm, UI32, "Grp4 CLP multiplier", "" ) \ DPOINT_DEFN( G4_ClpTcl, UI32, "Grp4 CLP load time", "" ) \ DPOINT_DEFN( G4_ClpTrec, UI32, "Grp4 CLP recognition time", "" ) \ DPOINT_DEFN( G4_IrrIrm, UI32, "Grp4 IRR multiplier", "" ) \ DPOINT_DEFN( G4_IrrTir, UI32, "Grp4 IRR restraint time", "" ) \ DPOINT_DEFN( G4_VrcMode, VrcMode, "Grp4 VRC mode", "" ) \ DPOINT_DEFN( G4_VrcUMmin, UI32, "Grp4 VRC voltage multiplier", "" ) \ DPOINT_DEFN( G4_AbrMode, EnDis, "Grp4 ABR mode", "" ) \ DPOINT_DEFN( G4_OC1F_Ip, UI32, "Grp4 OC1+ Pickup current", "" ) \ DPOINT_DEFN( G4_OC1F_Tcc, UI16, "Grp4 OC1+ TCC Type", "" ) \ DPOINT_DEFN( G4_OC1F_TDtMin, UI32, "Grp4 OC1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_OC1F_TDtRes, UI32, "Grp4 OC1+ DT reset time", "" ) \ DPOINT_DEFN( G4_OC1F_Tm, UI32, "Grp4 OC1+ Time multiplier", "" ) \ DPOINT_DEFN( G4_OC1F_Imin, UI32, "Grp4 OC1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G4_OC1F_Tmin, UI32, "Grp4 OC1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G4_OC1F_Tmax, UI32, "Grp4 OC1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G4_OC1F_Ta, UI32, "Grp4 OC1+ Additional time", "" ) \ DPOINT_DEFN( G4_OC1F_ImaxEn, EnDis, "Grp4 OC1+ Enable Max mode", "" ) \ DPOINT_DEFN( G4_OC1F_Imax, UI32, "Grp4 OC1+ Max current multiplier", "" ) \ DPOINT_DEFN( G4_OC1F_DirEn, EnDis, "Grp4 OC1+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_OC1F_Tr1, TripMode, "Grp4 OC1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_OC1F_Tr2, TripMode, "Grp4 OC1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_OC1F_Tr3, TripMode, "Grp4 OC1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_OC1F_Tr4, TripMode, "Grp4 OC1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_OC1F_TccUD, TccCurve, "Grp4 OC1+ User defined curve", "" ) \ DPOINT_DEFN( G4_OC2F_Ip, UI32, "Grp4 OC2+ Pickup current", "" ) \ DPOINT_DEFN( G4_OC2F_Tcc, UI16, "Grp4 OC2+ TCC Type", "" ) \ DPOINT_DEFN( G4_OC2F_TDtMin, UI32, "Grp4 OC2+ DT min tripping time", "" ) \ DPOINT_DEFN( G4_OC2F_TDtRes, UI32, "Grp4 OC2+ DT reset time", "" ) \ DPOINT_DEFN( G4_OC2F_Tm, UI32, "Grp4 OC2+ Time multiplier", "" ) \ DPOINT_DEFN( G4_OC2F_Imin, UI32, "Grp4 OC2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G4_OC2F_Tmin, UI32, "Grp4 OC2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G4_OC2F_Tmax, UI32, "Grp4 OC2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G4_OC2F_Ta, UI32, "Grp4 OC2+ Additional time", "" ) \ DPOINT_DEFN( G4_EftTripCount, UI8, "Grp4 Applicable to EFT mode: The threshould count of the number of protection trips before disabling fast trips.", "" ) \ DPOINT_DEFN( G4_OC2F_ImaxEn, EnDis, "Grp4 OC2+ Enable Max mode", "" ) \ DPOINT_DEFN( G4_OC2F_Imax, UI32, "Grp4 OC2+ Max current multiplier", "" ) \ DPOINT_DEFN( G4_OC2F_DirEn, EnDis, "Grp4 OC2+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_OC2F_Tr1, TripMode, "Grp4 OC2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_OC2F_Tr2, TripMode, "Grp4 OC2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_OC2F_Tr3, TripMode, "Grp4 OC2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_OC2F_Tr4, TripMode, "Grp4 OC2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_OC2F_TccUD, TccCurve, "Grp4 OC2+ User defined curve", "" ) \ DPOINT_DEFN( G4_OC3F_Ip, UI32, "Grp4 OC3+ Pickup current", "" ) \ DPOINT_DEFN( G4_OC3F_TDtMin, UI32, "Grp4 OC3+ DT tripping time", "" ) \ DPOINT_DEFN( G4_OC3F_TDtRes, UI32, "Grp4 OC3+ DT reset time", "" ) \ DPOINT_DEFN( G4_OC3F_DirEn, EnDis, "Grp4 OC3+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_OC3F_Tr1, TripMode, "Grp4 OC3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_OC3F_Tr2, TripMode, "Grp4 OC3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_OC3F_Tr3, TripMode, "Grp4 OC3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_OC3F_Tr4, TripMode, "Grp4 OC3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_OC1R_Ip, UI32, "Grp4 OC1- Pickup current", "" ) \ DPOINT_DEFN( G4_OC1R_Tcc, UI16, "Grp4 OC1- TCC Type", "" ) \ DPOINT_DEFN( G4_OC1R_TDtMin, UI32, "Grp4 OC1- DT min tripping time", "" ) \ DPOINT_DEFN( G4_OC1R_TDtRes, UI32, "Grp4 OC1- DT reset time", "" ) \ DPOINT_DEFN( G4_OC1R_Tm, UI32, "Grp4 OC1- Time multiplier", "" ) \ DPOINT_DEFN( G4_OC1R_Imin, UI32, "Grp4 OC1- Min. current multiplier", "" ) \ DPOINT_DEFN( G4_OC1R_Tmin, UI32, "Grp4 OC1- Minimum tripping time", "" ) \ DPOINT_DEFN( G4_OC1R_Tmax, UI32, "Grp4 OC1- Maximum tripping time", "" ) \ DPOINT_DEFN( G4_OC1R_Ta, UI32, "Grp4 OC1- Additional time", "" ) \ DPOINT_DEFN( G4_EftTripWindow, UI8, "Grp4 Applicable to EFT mode: The period window used when monitoring the number of protection trips.", "" ) \ DPOINT_DEFN( G4_OC1R_ImaxEn, EnDis, "Grp4 OC1- Enable Max mode", "" ) \ DPOINT_DEFN( G4_OC1R_Imax, UI32, "Grp4 OC1- Max current multiplier", "" ) \ DPOINT_DEFN( G4_OC1R_DirEn, EnDis, "Grp4 OC1- Enable directional protection", "" ) \ DPOINT_DEFN( G4_OC1R_Tr1, TripMode, "Grp4 OC1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_OC1R_Tr2, TripMode, "Grp4 OC1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_OC1R_Tr3, TripMode, "Grp4 OC1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_OC1R_Tr4, TripMode, "Grp4 OC1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_OC1R_TccUD, TccCurve, "Grp4 OC1- User defined curve", "" ) \ DPOINT_DEFN( G4_OC2R_Ip, UI32, "Grp4 OC2- Pickup current", "" ) \ DPOINT_DEFN( G4_OC2R_Tcc, UI16, "Grp4 OC2- TCC Type", "" ) \ DPOINT_DEFN( G4_OC2R_TDtMin, UI32, "Grp4 OC2- DT min tripping time", "" ) \ DPOINT_DEFN( G4_OC2R_TDtRes, UI32, "Grp4 OC2- DT reset time", "" ) \ DPOINT_DEFN( G4_OC2R_Tm, UI32, "Grp4 OC2- Time multiplier", "" ) \ DPOINT_DEFN( G4_OC2R_Imin, UI32, "Grp4 OC2- Min. current multiplier", "" ) \ DPOINT_DEFN( G4_OC2R_Tmin, UI32, "Grp4 OC2- Minimum tripping time", "" ) \ DPOINT_DEFN( G4_OC2R_Tmax, UI32, "Grp4 OC2- Maximum tripping time", "" ) \ DPOINT_DEFN( G4_OC2R_Ta, UI32, "Grp4 OC2- Additional time", "" ) \ DPOINT_DEFN( G4_OC2R_ImaxEn, EnDis, "Grp4 OC2- Enable Max mode", "" ) \ DPOINT_DEFN( G4_OC2R_Imax, UI32, "Grp4 OC2- Max current multiplier", "" ) \ DPOINT_DEFN( G4_OC2R_DirEn, EnDis, "Grp4 OC2- Enable directional protection", "" ) \ DPOINT_DEFN( G4_OC2R_Tr1, TripMode, "Grp4 OC2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_OC2R_Tr2, TripMode, "Grp4 OC2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_OC2R_Tr3, TripMode, "Grp4 OC2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_OC2R_Tr4, TripMode, "Grp4 OC2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_OC2R_TccUD, TccCurve, "Grp4 OC2- User defined curve", "" ) \ DPOINT_DEFN( G4_OC3R_Ip, UI32, "Grp4 OC3- Pickup current", "" ) \ DPOINT_DEFN( G4_OC3R_TDtMin, UI32, "Grp4 OC3- DT tripping time", "" ) \ DPOINT_DEFN( G4_OC3R_TDtRes, UI32, "Grp4 OC3- DT reset time", "" ) \ DPOINT_DEFN( G4_OC3R_DirEn, EnDis, "Grp4 OC3- Enable directional protection", "" ) \ DPOINT_DEFN( G4_OC3R_Tr1, TripMode, "Grp4 OC3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_OC3R_Tr2, TripMode, "Grp4 OC3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_OC3R_Tr3, TripMode, "Grp4 OC3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_OC3R_Tr4, TripMode, "Grp4 OC3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_EF1F_Ip, UI32, "Grp4 EF1+ Pickup current", "" ) \ DPOINT_DEFN( G4_EF1F_Tcc, UI16, "Grp4 EF1+ TCC Type", "" ) \ DPOINT_DEFN( G4_EF1F_TDtMin, UI32, "Grp4 EF1+ DT min tripping time", "" ) \ DPOINT_DEFN( G4_EF1F_TDtRes, UI32, "Grp4 EF1+ DT reset time", "" ) \ DPOINT_DEFN( G4_EF1F_Tm, UI32, "Grp4 EF1+ Time multiplier", "" ) \ DPOINT_DEFN( G4_EF1F_Imin, UI32, "Grp4 EF1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G4_EF1F_Tmin, UI32, "Grp4 EF1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G4_EF1F_Tmax, UI32, "Grp4 EF1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G4_EF1F_Ta, UI32, "Grp4 EF1+ Additional time", "" ) \ DPOINT_DEFN( G4_DEPRECATED_G1EF1F_Tres, UI32, "Grp4 EF1+ Reset time", "" ) \ DPOINT_DEFN( G4_EF1F_ImaxEn, EnDis, "Grp4 EF1+ Enable Max mode", "" ) \ DPOINT_DEFN( G4_EF1F_Imax, UI32, "Grp4 EF1+ Max current multiplier", "" ) \ DPOINT_DEFN( G4_EF1F_DirEn, EnDis, "Grp4 EF1+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_EF1F_Tr1, TripMode, "Grp4 EF1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_EF1F_Tr2, TripMode, "Grp4 EF1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_EF1F_Tr3, TripMode, "Grp4 EF1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_EF1F_Tr4, TripMode, "Grp4 EF1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_EF1F_TccUD, TccCurve, "Grp4 EF1+ User defined curve", "" ) \ DPOINT_DEFN( G4_EF2F_Ip, UI32, "Grp4 EF2+ Pickup current", "" ) \ DPOINT_DEFN( G4_EF2F_Tcc, UI16, "Grp4 EF2+ TCC Type", "" ) \ DPOINT_DEFN( G4_EF2F_TDtMin, UI32, "Grp4 EF2+ DT min tripping time", "" ) \ DPOINT_DEFN( G4_EF2F_TDtRes, UI32, "Grp4 EF2+ DT reset time", "" ) \ DPOINT_DEFN( G4_EF2F_Tm, UI32, "Grp4 EF2+ Time multiplier", "" ) \ DPOINT_DEFN( G4_EF2F_Imin, UI32, "Grp4 EF2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G4_EF2F_Tmin, UI32, "Grp4 EF2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G4_EF2F_Tmax, UI32, "Grp4 EF2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G4_EF2F_Ta, UI32, "Grp4 EF2+ Additional time", "" ) \ DPOINT_DEFN( G4_DEPRECATED_G1EF2F_Tres, UI32, "Grp4 EF2+ Reset time", "" ) \ DPOINT_DEFN( G4_EF2F_ImaxEn, EnDis, "Grp4 EF2+ Enable Max mode", "" ) \ DPOINT_DEFN( G4_EF2F_Imax, UI32, "Grp4 EF2+ Max mode", "" ) \ DPOINT_DEFN( G4_EF2F_DirEn, EnDis, "Grp4 EF2+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_EF2F_Tr1, TripMode, "Grp4 EF2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_EF2F_Tr2, TripMode, "Grp4 EF2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_EF2F_Tr3, TripMode, "Grp4 EF2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_EF2F_Tr4, TripMode, "Grp4 EF2+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_EF2F_TccUD, TccCurve, "Grp4 EF2+ User defined curve", "" ) \ DPOINT_DEFN( G4_EF3F_Ip, UI32, "Grp4 EF3+ Pickup current", "" ) \ DPOINT_DEFN( G4_EF3F_TDtMin, UI32, "Grp4 EF3+ DT tripping time", "" ) \ DPOINT_DEFN( G4_EF3F_TDtRes, UI32, "Grp4 EF3+ DT reset time", "" ) \ DPOINT_DEFN( G4_EF3F_DirEn, EnDis, "Grp4 EF3+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_EF3F_Tr1, TripMode, "Grp4 EF3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_EF3F_Tr2, TripMode, "Grp4 EF3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_EF3F_Tr3, TripMode, "Grp4 EF3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_EF3F_Tr4, TripMode, "Grp4 EF3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_EF1R_Ip, UI32, "Grp4 EF1- Pickup current", "" ) \ DPOINT_DEFN( G4_EF1R_Tcc, UI16, "Grp4 EF1- TCC Type", "" ) \ DPOINT_DEFN( G4_EF1R_TDtMin, UI32, "Grp4 EF1- DT min tripping time", "" ) \ DPOINT_DEFN( G4_EF1R_TDtRes, UI32, "Grp4 EF1- DT reset time", "" ) \ DPOINT_DEFN( G4_EF1R_Tm, UI32, "Grp4 EF1- Time multiplier", "" ) \ DPOINT_DEFN( G4_EF1R_Imin, UI32, "Grp4 EF1- Min. current multiplier", "" ) \ DPOINT_DEFN( G4_EF1R_Tmin, UI32, "Grp4 EF1- Minimum tripping time", "" ) \ DPOINT_DEFN( G4_EF1R_Tmax, UI32, "Grp4 EF1- Maximum tripping time", "" ) \ DPOINT_DEFN( G4_EF1R_Ta, UI32, "Grp4 EF1- Additional time", "" ) \ DPOINT_DEFN( G4_DEPRECATED_G1EF1R_Tres, UI32, "Grp4 EF1- Reset time", "" ) \ DPOINT_DEFN( G4_EF1R_ImaxEn, EnDis, "Grp4 EF1- Enable Max mode", "" ) \ DPOINT_DEFN( G4_EF1R_Imax, UI32, "Grp4 EF1- Max current multiplier", "" ) \ DPOINT_DEFN( G4_EF1R_DirEn, EnDis, "Grp4 EF1- Enable directional protection", "" ) \ DPOINT_DEFN( G4_EF1R_Tr1, TripMode, "Grp4 EF1- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_EF1R_Tr2, TripMode, "Grp4 EF1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_EF1R_Tr3, TripMode, "Grp4 EF1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_EF1R_Tr4, TripMode, "Grp4 EF1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_EF1R_TccUD, TccCurve, "Grp4 EF1- User defined curve", "" ) \ DPOINT_DEFN( G4_EF2R_Ip, UI32, "Grp4 EF2- Pickup current", "" ) \ DPOINT_DEFN( G4_EF2R_Tcc, UI16, "Grp4 EF2- TCC Type", "" ) \ DPOINT_DEFN( G4_EF2R_TDtMin, UI32, "Grp4 EF2- DT min tripping time", "" ) \ DPOINT_DEFN( G4_EF2R_TDtRes, UI32, "Grp4 EF2- DT reset time", "" ) \ DPOINT_DEFN( G4_EF2R_Tm, UI32, "Grp4 EF2- Time multiplier", "" ) \ DPOINT_DEFN( G4_EF2R_Imin, UI32, "Grp4 EF2- Min. current multiplier", "" ) \ DPOINT_DEFN( G4_EF2R_Tmin, UI32, "Grp4 EF2- Minimum tripping time", "" ) \ DPOINT_DEFN( G4_EF2R_Tmax, UI32, "Grp4 EF2- Maximum tripping time", "" ) \ DPOINT_DEFN( G4_EF2R_Ta, UI32, "Grp4 EF2- Additional time", "" ) \ DPOINT_DEFN( G4_EF2R_ImaxEn, EnDis, "Grp4 EF2- Enable Max mode", "" ) \ DPOINT_DEFN( G4_EF2R_Imax, UI32, "Grp4 EF2- Max current multiplier", "" ) \ DPOINT_DEFN( G4_EF2R_DirEn, EnDis, "Grp4 EF2- Enable directional protection", "" ) \ DPOINT_DEFN( G4_EF2R_Tr1, TripMode, "Grp4 EF2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_EF2R_Tr2, TripMode, "Grp4 EF2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_EF2R_Tr3, TripMode, "Grp4 EF2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_EF2R_Tr4, TripMode, "Grp4 EF2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_EF2R_TccUD, TccCurve, "Grp4 EF2- User defined curve", "" ) \ DPOINT_DEFN( G4_EF3R_Ip, UI32, "Grp4 EF3- Pickup current", "" ) \ DPOINT_DEFN( G4_EF3R_TDtMin, UI32, "Grp4 EF3- DT tripping time", "" ) \ DPOINT_DEFN( G4_EF3R_TDtRes, UI32, "Grp4 EF3- DT reset time", "" ) \ DPOINT_DEFN( G4_EF3R_DirEn, EnDis, "Grp4 EF3- Enable directional protection", "" ) \ DPOINT_DEFN( G4_EF3R_Tr1, TripMode, "Grp4 EF3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_EF3R_Tr2, TripMode, "Grp4 EF3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_EF3R_Tr3, TripMode, "Grp4 EF3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_EF3R_Tr4, TripMode, "Grp4 EF3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_SEFF_Ip, UI32, "Grp4 SEF+ Pickup current", "" ) \ DPOINT_DEFN( G4_SEFF_TDtMin, UI32, "Grp4 SEF+ DT tripping time", "" ) \ DPOINT_DEFN( G4_SEFF_TDtRes, UI32, "Grp4 SEF+ DT reset time", "" ) \ DPOINT_DEFN( G4_SEFF_DirEn, EnDis, "Grp4 SEF+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_SEFF_Tr1, TripMode, "Grp4 SEF+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_SEFF_Tr2, TripMode, "Grp4 SEF+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_SEFF_Tr3, TripMode, "Grp4 SEF+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_SEFF_Tr4, TripMode, "Grp4 SEF+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_SEFR_Ip, UI32, "Grp4 SEF- Pickup current", "" ) \ DPOINT_DEFN( G4_SEFR_TDtMin, UI32, "Grp4 SEF- DT tripping time", "" ) \ DPOINT_DEFN( G4_SEFR_TDtRes, UI32, "Grp4 SEF- DT reset time", "" ) \ DPOINT_DEFN( G4_SEFR_DirEn, EnDis, "Grp4 SEF- Enable directional protection", "" ) \ DPOINT_DEFN( G4_SEFR_Tr1, TripMode, "Grp4 SEF- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_SEFR_Tr2, TripMode, "Grp4 SEF- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_SEFR_Tr3, TripMode, "Grp4 SEF- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_SEFR_Tr4, TripMode, "Grp4 SEF- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_OcLl_Ip, UI32, "Grp4 OC3 LL Pickup current", "" ) \ DPOINT_DEFN( G4_OcLl_TDtMin, UI32, "Grp4 OC LL3 DT tripping time", "" ) \ DPOINT_DEFN( G4_OcLl_TDtRes, UI32, "Grp4 OC LL3 DT reset time", "" ) \ DPOINT_DEFN( G4_EfLl_Ip, UI32, "Grp4 EF LL3 Pickup current", "" ) \ DPOINT_DEFN( G4_EfLl_TDtMin, UI32, "Grp4 EF LL3 DT tripping time", "" ) \ DPOINT_DEFN( G4_EfLl_TDtRes, UI32, "Grp4 EF LL3 DT reset time", "" ) \ DPOINT_DEFN( G4_Uv1_Um, UI32, "Grp4 UV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G4_Uv1_TDtMin, UI32, "Grp4 UV1 DT tripping time", "" ) \ DPOINT_DEFN( G4_Uv1_TDtRes, UI32, "Grp4 UV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Uv1_Trm, TripMode, "Grp4 1 UV1 Trip mod", "" ) \ DPOINT_DEFN( G4_Uv2_Um, UI32, "Grp4 UV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G4_Uv2_TDtMin, UI32, "Grp4 UV2 DT tripping time", "" ) \ DPOINT_DEFN( G4_Uv2_TDtRes, UI32, "Grp4 UV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Uv2_Trm, TripMode, "Grp4 1 UV2 Trip mod", "" ) \ DPOINT_DEFN( G4_Uv3_TDtMin, UI32, "Grp4 UV3 DT tripping time", "" ) \ DPOINT_DEFN( G4_Uv3_TDtRes, UI32, "Grp4 UV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Uv3_Trm, TripMode, "Grp4 1 UV3 Trip mod", "" ) \ DPOINT_DEFN( G4_Ov1_Um, UI32, "Grp4 OV1 Voltage multiplier", "" ) \ DPOINT_DEFN( G4_Ov1_TDtMin, UI32, "Grp4 OV1 DT tripping time", "" ) \ DPOINT_DEFN( G4_Ov1_TDtRes, UI32, "Grp4 OV1 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Ov1_Trm, TripMode, "Grp4 1 OV1 Trip mod", "" ) \ DPOINT_DEFN( G4_Ov2_Um, UI32, "Grp4 OV2 Voltage multiplier", "" ) \ DPOINT_DEFN( G4_Ov2_TDtMin, UI32, "Grp4 OV2 DT tripping time", "" ) \ DPOINT_DEFN( G4_Ov2_TDtRes, UI32, "Grp4 OV2 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Ov2_Trm, TripMode, "Grp4 1 OV2 Trip mod", "" ) \ DPOINT_DEFN( G4_Uf_Fp, UI32, "Grp4 UF Pickup frequency", "" ) \ DPOINT_DEFN( G4_Uf_TDtMin, UI32, "Grp4 UF DT tripping time", "" ) \ DPOINT_DEFN( G4_Uf_TDtRes, UI32, "Grp4 UF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Uf_Trm, TripModeDLA, "Grp4 UF Trip mode", "" ) \ DPOINT_DEFN( G4_Of_Fp, UI32, "Grp4 OF Pickup frequency", "" ) \ DPOINT_DEFN( G4_Of_TDtMin, UI32, "Grp4 OF DT tripping time", "" ) \ DPOINT_DEFN( G4_Of_TDtRes, UI32, "Grp4 OF DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Of_Trm, TripModeDLA, "Grp4 OF Trip mode", "" ) \ DPOINT_DEFN( G4_DEPRECATED_OC1F_ImaxAbs, UI32, "Grp4 OC1+ Max abs current", "" ) \ DPOINT_DEFN( G4_DEPRECATED_OC2F_ImaxAbs, UI32, "Grp4 OC2+ Max abs current", "" ) \ DPOINT_DEFN( G4_DEPRECATED_OC1R_ImaxAbs, UI32, "Grp4 OC1- Max abs current", "" ) \ DPOINT_DEFN( G4_DEPRECATED_OC2R_ImaxAbs, UI32, "Grp4 OC2- Max abs current", "" ) \ DPOINT_DEFN( G4_DEPRECATED_EF1F_ImaxAbs, UI32, "Grp4 EF1+ Max abs current", "" ) \ DPOINT_DEFN( G4_DEPRECATED_EF2F_ImaxAbs, UI32, "Grp4 EF2+ Max abs current", "" ) \ DPOINT_DEFN( G4_DEPRECATED_EF1R_ImaxAbs, UI32, "Grp4 EF1- Max abs current", "" ) \ DPOINT_DEFN( G4_DEPRECATED_EF2R_ImaxAbs, UI32, "Grp4 EF2- Max abs current", "" ) \ DPOINT_DEFN( G4_SstEfForward, UI8, "Grp4 EF Single shot to trip", "" ) \ DPOINT_DEFN( G4_SstSefForward, UI8, "Grp4 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G4_AbrTrest, UI32, "Grp4 The ABR restoration time in s.", "" ) \ DPOINT_DEFN( G4_AutoOpenMode, AutoOpenMode, "Grp4 AutoOpen method: Disabled/Timer/Power Flow", "" ) \ DPOINT_DEFN( G4_AutoOpenTime, UI16, "Grp4 The time in minutes to wait before auto open after a close by ABR", "" ) \ DPOINT_DEFN( G4_AutoOpenOpns, UI8, "Grp4 The number of times this element will allow ABR closes before locking out.", "" ) \ DPOINT_DEFN( G4_SstOcReverse, UI8, "Grp4 ", "" ) \ DPOINT_DEFN( G4_SstEfReverse, UI8, "Grp4 Grp 1 EF Single shot to trip", "" ) \ DPOINT_DEFN( G4_SstSefReverse, UI8, "Grp4 SEF Single shot to trip", "" ) \ DPOINT_DEFN( G4_ArUVOV_Trec, UI32, "Grp4 Under / Over voltage auto reclose time in seconds", "" ) \ DPOINT_DEFN( G4_GrpName, Str, "Grp4 _Group Name", "" ) \ DPOINT_DEFN( G4_GrpDes, Str, "Grp4 G1_Grp Description Group description", "" ) \ DPOINT_DEFN( ChEvLifetimeCounters, ChangeEvent, "This datapoint is used to log the change to lifetime counters.", "" ) \ DPOINT_DEFN( ACOUnhealthy, Signal, "ACO Unhealthy", "" ) \ DPOINT_DEFN( p2pHealth, OkFail, "p2pcomm health indicator", "" ) \ DPOINT_DEFN( SigP2PCommFail, Signal, "warning when p2pcomm fails", "" ) \ DPOINT_DEFN( ACOIsMaster, Bool, "Is this recloser ACO master?", "" ) \ DPOINT_DEFN( ACOEnableSlave, UI8, "Enable the peer as slave", "" ) \ DPOINT_DEFN( ACOEnableSlavePeer, UI8, "The remote mapped datapoint of ACOEnableSlave.", "" ) \ DPOINT_DEFN( ACOSwRqst , UI32, "Control to request an ACO close or open ", "" ) \ DPOINT_DEFN( ACOSwState , UI32, "Indication of ACO switch state. ", "" ) \ DPOINT_DEFN( ACOSwStatePeer, UI32, "Indication of ACO switch state. ", "" ) \ DPOINT_DEFN( ACOSwRqstPeer, UI32, "Control to request an ACO close or open ", "" ) \ DPOINT_DEFN( ChEvLogic, ChangeEvent, "Log change to logic settings", "" ) \ DPOINT_DEFN( SupplyHealthStatePeer, SupplyState, "The health state of peer supply source.", "" ) \ DPOINT_DEFN( ResetBinaryFaultTargets, Signal, "Request Reset Binary Fault Targets", "" ) \ DPOINT_DEFN( IaTrip, UI32, "Trip current - Phase A", "" ) \ DPOINT_DEFN( IbTrip, UI32, "Trip current - Phase B", "" ) \ DPOINT_DEFN( IcTrip, UI32, "Trip current - Phase C", "" ) \ DPOINT_DEFN( InTrip, UI32, "Trip current - Neutral", "" ) \ DPOINT_DEFN( ResetTripCurrents, Signal, "Request to reset trip currents", "" ) \ DPOINT_DEFN( ACO_TPupPeer, UI32, "Peer's ACO Time", "" ) \ DPOINT_DEFN( LoadDeadPeer, UI32, "for ACO debug purpose only", "" ) \ DPOINT_DEFN( CanIoModuleResetStatus, UI8, "IO Module reset status", "" ) \ DPOINT_DEFN( ScadaDNP3EnableCommsLog, EnDis, "Enable DNP3 comms logging", "" ) \ DPOINT_DEFN( ScadaCMSEnableCommsLog, EnDis, "Enable CMS comms logging", "" ) \ DPOINT_DEFN( ScadaHMIEnableCommsLog, EnDis, "Enable HMI comms logging", "" ) \ DPOINT_DEFN( p2pCommEnableCommsLog, EnDis, "Enable p2pcomm comms logging", "" ) \ DPOINT_DEFN( p2pCommCommsLogMaxSize, UI8, "p2pcomm comms log maximum size(Mbytes)", "" ) \ DPOINT_DEFN( ScadaDNP3CommsLogMaxSize, UI8, "DNP3 comms log maximum size(Mbytes)", "" ) \ DPOINT_DEFN( ScadaCMSCommsLogMaxSize, UI8, "CMS comms log maximum size(Mbytes)", "" ) \ DPOINT_DEFN( ScadaHMICommsLogMaxSize, UI8, "HMI comms log maximum size(Mbytes)", "" ) \ DPOINT_DEFN( ScadaT10BEnableCommsLog, EnDis, "Enable T10B comms log ", "" ) \ DPOINT_DEFN( ScadaT10BCommsLogMaxSize, UI8, "T10B comms log maximum size(Mbytes)", "" ) \ DPOINT_DEFN( SigOpenLogic, Signal, "Open due to logic", "" ) \ DPOINT_DEFN( SigClosedLogic, Signal, "Closed due to logic", "" ) \ DPOINT_DEFN( ChEvIoSettings, ChangeEvent, "This datapoint is used to log 'batch' changes to I/O settings", "" ) \ DPOINT_DEFN( SigOperWarning, Signal, "Operational Warning", "" ) \ DPOINT_DEFN( SigOperWarningPeer, Signal, "Peer Operational Warning", "" ) \ DPOINT_DEFN( LogEventV, LogEventV, "For passing events with variable length critical parameter values.", "" ) \ DPOINT_DEFN( PhaseConfig, PhaseConfig, "Phase configuration", "" ) \ DPOINT_DEFN( ScadaDnp3PollWatchDogTime, UI16, "ScadaDnp3 Poll WatchDog Time (in minutes)", "" ) \ DPOINT_DEFN( ScadaT10BPollWatchDogTime, UI16, "ScadaT10B Poll WatchDog Time (in minutes)", "" ) \ DPOINT_DEFN( ScadaDnp3BinaryControlWatchDogTime, UI16, "ScadaDnp3 Binary Control WatchDog Time (in minutes)", "" ) \ DPOINT_DEFN( ScadaT10BBinaryControlWatchDogTime, UI16, "ScadaT10B Binary Control WatchDog Time(in minutes)", "" ) \ DPOINT_DEFN( ScadaDnp3Polled, UI8, "ScadaDnp3 Polled. Set when polled by master. ", "" ) \ DPOINT_DEFN( ScadaT10BPolled, UI8, "ScadaT10B Polled. Set when polled by master.", "" ) \ DPOINT_DEFN( ScadaDnp3CommunicationWatchDogTimeout, UI32, "ScadaDnp3 Communication WatchDog Timeout", "" ) \ DPOINT_DEFN( ScadaT10BCommunicationWatchDogTimeout, UI32, "ScadaT10B Communication WatchDog Timeout", "" ) \ DPOINT_DEFN( ScadaDnp3WatchDogControl, Signal, "ScadaDnp3 WatchDog Control", "" ) \ DPOINT_DEFN( ScadaT10BWatchDogControl, Signal, "ScadaT10B WatchDog Control", "" ) \ DPOINT_DEFN( IaLGVT, UI32, "Last Good Value Trapped for phase A", "" ) \ DPOINT_DEFN( IcLGVT, UI32, "Last Good Value Trapped for phase C", "" ) \ DPOINT_DEFN( IaMDIToday, UI32, "Maximum Demand for phase A for TODAY ", "" ) \ DPOINT_DEFN( IbMDIToday, UI32, "Maximum Demand for phase B for TODAY ", "" ) \ DPOINT_DEFN( IcMDIToday, UI32, "Maximum Demand for phase C for TODAY ", "" ) \ DPOINT_DEFN( IaMDIYesterday, UI32, "Maximum Demand for phase A for YESTERDAY ", "" ) \ DPOINT_DEFN( IbMDIYesterday, UI32, "Maximum Demand for phase B for YESTERDAY ", "" ) \ DPOINT_DEFN( IcMDIYesterday, UI32, "Maximum Demand for phase C for YESTERDAY ", "" ) \ DPOINT_DEFN( IaMDILastWeek, UI32, "Maximum Demand for phase A for LAST WEEK ", "" ) \ DPOINT_DEFN( IbMDILastWeek, UI32, "Maximum Demand for phase B for LAST WEEK ", "" ) \ DPOINT_DEFN( IcMDILastWeek, UI32, "Maximum Demand for phase C for LAST WEEK", "" ) \ DPOINT_DEFN( IbLGVT, UI32, "Last Good Value Trapped for phase B", "" ) \ DPOINT_DEFN( IdRelayNumModel, UI32, "Relay serial number - model field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdRelayNumPlant, UI32, "Relay serial number - plant field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdRelayNumDate, UI32, "Relay serial number - date field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdRelayNumSeq, UI32, "Relay serial number - sequence field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdRelaySwVer1, UI32, "Relay firmware version - Field 1. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdRelaySwVer2, UI32, "Relay firmware version - field 2. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdRelaySwVer3, UI32, "Relay firmware version - field 3. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdRelaySwVer4, UI32, "Relay firmware version - field 4. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMNumModel, UI32, "SIM serial number - model field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMNumPlant, UI32, "SIM serial number - supplier field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMNumDate, UI32, "SIM serial number - date field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMNumSeq, UI32, "SIM serial number - sequence field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMSwVer1, UI32, "SIM firmware - field 1. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMSwVer2, UI32, "SIM firmware - field 2. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMSwVer3, UI32, "SIM firmware - field 3. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdSIMSwVer4, UI32, "SIM firmware - field 4. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllVerStrs() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumModel, UI32, "Osm serial number - model field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumPlant, UI32, "Osm serial number - plant field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumDate, UI32, "Osm serial number - date field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumSeq, UI32, "Osm serial number - sequence field. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( SigRTCHwFault, Signal, "RTC Hardware Fault", "" ) \ DPOINT_DEFN( SigCtrlLinkHltToLl, Signal, "Link HLT to LL", "" ) \ DPOINT_DEFN( OscEnable, EnDis, "Enable or disable oscillography", "" ) \ DPOINT_DEFN( OscCaptureTime, OscCaptureTime, "Length of an oscillography capture.", "" ) \ DPOINT_DEFN( OscCapturePrior, OscCapturePrior, "Percentage of oscillography capture time to occur before the trigger event.", "" ) \ DPOINT_DEFN( OscOverwrite, EnDis, "Overwrite existing oscillography captures.", "" ) \ DPOINT_DEFN( OscSaveToUSB, EnDis, "Enables or disables saving oscillography captures to a USB memory stick.", "" ) \ DPOINT_DEFN( SigCtrlRqstOscCapture, Signal, "Request that the oscillography process perform a capture.", "" ) \ DPOINT_DEFN( OscEvent, OscEvent, "Event to trigger an oscillography capture", "" ) \ DPOINT_DEFN( SigPickupLSDIabc, Signal, "The currents are below LSD threshold.", "" ) \ DPOINT_DEFN( QueryGpio, UI32, "Set or query for io process regarding GPIO:\r\nUpper byte selects gpio device, or 0 to for all gpio. Lower bytes select operation: 0 to dump interesting details to system message log, 0x1 to reset gpio.", "" ) \ DPOINT_DEFN( OscEventTriggered, YesNo, "Indicates if an oscillography event has occurred.", "" ) \ DPOINT_DEFN( OscEventTriggerType, OscEvent, "Type of oscillography event that was last triggered.", "" ) \ DPOINT_DEFN( OscLogCount, UI8, "Number of oscillography logs currently in internal storage.", "" ) \ DPOINT_DEFN( OscTransferData, YesNo, "Set to Yes to copy captured oscillography data to the USB memory stick.", "" ) \ DPOINT_DEFN( HrmIaTDD, UI32, "Total Demand Distortion for Ia", "" ) \ DPOINT_DEFN( HrmIbTDD, UI32, "Total Demand Distortion for Ib", "" ) \ DPOINT_DEFN( HrmIcTDD, UI32, "Total Demand Distortion for Ic", "" ) \ DPOINT_DEFN( HrmUaTHD, UI32, "Total Harmonic Distortion for Ua", "" ) \ DPOINT_DEFN( HrmUbTHD, UI32, "Total Harmonic Distortion for Ub", "" ) \ DPOINT_DEFN( HrmUcTHD, UI32, "Total Harmonic Distortion for Uc", "" ) \ DPOINT_DEFN( HrmInTDD, UI32, "Total Demand Distortion for In", "" ) \ DPOINT_DEFN( EventLogOldestId, UI32, "Log record ID for oldest record in the current RC10 event log", "" ) \ DPOINT_DEFN( EventLogNewestId, UI32, "Log record ID for newest record in the current RC10 event log", "" ) \ DPOINT_DEFN( SettingLogOldestId, UI32, "Log record ID for oldest record in the current RC10 setting log\r\n", "" ) \ DPOINT_DEFN( SettingLogNewestId, UI32, "Log record ID for newest record in the current RC10 setting log", "" ) \ DPOINT_DEFN( FaultLogOldestId, UI32, "Log record ID for oldest record in the current RC10 fault log", "" ) \ DPOINT_DEFN( FaultLogNewestId, UI32, "Log record ID for newest record in the current RC10 fault log", "" ) \ DPOINT_DEFN( CloseOpenLogOldestId, UI32, "Log record ID for oldest record in the current RC10 close/open log", "" ) \ DPOINT_DEFN( CloseOpenLogNewestId, UI32, "Log record ID for newest record in the current RC10 close/open log", "" ) \ DPOINT_DEFN( LoadProfileOldestId, UI32, "Log record ID for oldest record in the current RC10 load profile", "" ) \ DPOINT_DEFN( LoadProfileNewestId, UI32, "Log record ID for newest record in the current RC10 load profile", "" ) \ DPOINT_DEFN( LogToCmsTransferRequest, LogTransferRequest, "The cms process makes requests to the log process to generate data to send to the CMS", "" ) \ DPOINT_DEFN( LogToCmsTransferReply, LogTransferReply, "The log process replies with the result of the generation of log data", "" ) \ DPOINT_DEFN( OscSimFilename, Str, "Name of the file to play for an oscillography simulation.", "" ) \ DPOINT_DEFN( OscSimLoopCount, UI16, "Number of times to loop an oscillography simulation; zero for infinite.", "" ) \ DPOINT_DEFN( OscSimRun, YesNo, "Starts or stops an oscillography simulation. Set to 1 to start the simulation running.", "" ) \ DPOINT_DEFN( OscSimStatus, OscSimStatus, "Status of the current or last oscillography simulation.", "" ) \ DPOINT_DEFN( OscTraceDir, Str, "Name of the directory that stores COMTRADE trace files for oscillography captures.", "" ) \ DPOINT_DEFN( HrmIa1st, UI32, "Ia fundamental current (1st harmonic)", "" ) \ DPOINT_DEFN( HrmIb1st, UI32, "Ib fundamental current (1st harmonic)", "" ) \ DPOINT_DEFN( HrmIc1st, UI32, "Ic fundamental current (1st harmonic)", "" ) \ DPOINT_DEFN( HrmIn1st, UI32, "In fundamental current (1st harmonic)", "" ) \ DPOINT_DEFN( CmsPort, UI8, "The port ID that the CMS module will accept commands from.", "" ) \ DPOINT_DEFN( SigOpen, Signal, "Switch is open", "" ) \ DPOINT_DEFN( SigOpenProt, Signal, "Open due to Prot, OC1+, OC2+, OC3+, OC1-, OC2-, OC3-, EF1+, EF2+, EF3+, EF1-, EF2-, EF3-, SEF+, SEF-, OCLL, EFLL, UV1, UV2, UV3, OV1, OV2, OF, UF", "" ) \ DPOINT_DEFN( SigOpenOc1F, Signal, "Open due to OC1+ tripping", "" ) \ DPOINT_DEFN( SigOpenOc2F, Signal, "Open due to OC2+ tripping", "" ) \ DPOINT_DEFN( SigOpenOc3F, Signal, "Open due to OC3+ tripping", "" ) \ DPOINT_DEFN( SigOpenOc1R, Signal, "Open due to OC1- tripping", "" ) \ DPOINT_DEFN( SigOpenOc2R, Signal, "Open due to OC2- tripping", "" ) \ DPOINT_DEFN( SigOpenOc3R, Signal, "Open due to OC3- tripping", "" ) \ DPOINT_DEFN( SigOpenEf1F, Signal, "Open due to EF1+ tripping", "" ) \ DPOINT_DEFN( SigOpenEf2F, Signal, "Open due to EF2+ tripping", "" ) \ DPOINT_DEFN( SigOpenEf3F, Signal, "Open due to EF3+ tripping", "" ) \ DPOINT_DEFN( SigOpenEf1R, Signal, "Open due to EF1- tripping", "" ) \ DPOINT_DEFN( SigOpenEf2R, Signal, "Open due to EF2- tripping", "" ) \ DPOINT_DEFN( SigOpenEf3R, Signal, "Open due to EF3- tripping", "" ) \ DPOINT_DEFN( SigOpenSefF, Signal, "Open due to SEF+ tripping", "" ) \ DPOINT_DEFN( SigOpenSefR, Signal, "Open due to SEF- tripping", "" ) \ DPOINT_DEFN( SigOpenOcll, Signal, "Open due to OCLL3 tripping (formerly OCLL)", "" ) \ DPOINT_DEFN( SigOpenEfll, Signal, "Open due to EFLL3 tripping (formerly EFLL)", "" ) \ DPOINT_DEFN( SigOpenUv1, Signal, "Open due to UV1 tripping", "" ) \ DPOINT_DEFN( SigOpenUv2, Signal, "Open due to UV2 tripping", "" ) \ DPOINT_DEFN( SigOpenUv3, Signal, "Open due to UV3 tripping", "" ) \ DPOINT_DEFN( SigOpenOv1, Signal, "Open due to OV1 tripping", "" ) \ DPOINT_DEFN( SigOpenOv2, Signal, "Open due to OV2 tripping", "" ) \ DPOINT_DEFN( SigOpenOf, Signal, "Open due to OF tripping", "" ) \ DPOINT_DEFN( SigOpenUf, Signal, "Open due to UF tripping", "" ) \ DPOINT_DEFN( SigOpenRemote, Signal, "Open due to SCADA or I/O control signal", "" ) \ DPOINT_DEFN( SigOpenSCADA, Signal, "Open due to SCADA control signal", "" ) \ DPOINT_DEFN( SigOpenIO, Signal, "Open due to I/O control signal", "" ) \ DPOINT_DEFN( SigOpenLocal, Signal, "Open due to HMI, PC contol signal or manual tripping", "" ) \ DPOINT_DEFN( SigOpenMMI, Signal, "Open due to HMI control signal", "" ) \ DPOINT_DEFN( SigOpenPC, Signal, "Open due to PC control signal", "" ) \ DPOINT_DEFN( DEPRECATED_SigOpenManual, Signal, "Open due to manual tripping(no origin discovered)", "" ) \ DPOINT_DEFN( SigAlarm, Signal, "Alarm ouput of any of OC1+, OC2+, OC3+, OC1-, OC2-, OC3-, EF1+, EF2+, EF3+, EF1-, EF2-, EF3-, SEF+, SEF-, UV1, UV2, UV3, OV1, OV2, OF, UF elements activated", "" ) \ DPOINT_DEFN( SigAlarmOc1F, Signal, "Alarm output of OC1+ activated", "" ) \ DPOINT_DEFN( SigAlarmOc2F, Signal, "Alarm output of OC2+ activated", "" ) \ DPOINT_DEFN( SigAlarmOc3F, Signal, "Alarm output of OC3+ activated", "" ) \ DPOINT_DEFN( SigAlarmOc1R, Signal, "Alarm output of OC1- activated", "" ) \ DPOINT_DEFN( SigAlarmOc2R, Signal, "Alarm output of OC2- activated", "" ) \ DPOINT_DEFN( SigAlarmOc3R, Signal, "Alarm output of OC3- activated", "" ) \ DPOINT_DEFN( SigAlarmEf1F, Signal, "Alarm output of EF1+ activated", "" ) \ DPOINT_DEFN( SigAlarmEf2F, Signal, "Alarm output of EF2+ activated", "" ) \ DPOINT_DEFN( SigAlarmEf3F, Signal, "Alarm output of EF3+ activated", "" ) \ DPOINT_DEFN( SigAlarmEf1R, Signal, "Alarm output of EF1- activated", "" ) \ DPOINT_DEFN( SigAlarmEf2R, Signal, "Alarm output of EF2- activated", "" ) \ DPOINT_DEFN( SigAlarmEf3R, Signal, "Alarm output of EF3- activated", "" ) \ DPOINT_DEFN( SigAlarmSefF, Signal, "Alarm output of SEF+ activated", "" ) \ DPOINT_DEFN( SigAlarmSefR, Signal, "Alarm output of SEF- activated", "" ) \ DPOINT_DEFN( SigAlarmUv1, Signal, "Alarm output of UV1 activated", "" ) \ DPOINT_DEFN( SigAlarmUv2, Signal, "Alarm output of UV2 activated", "" ) \ DPOINT_DEFN( SigAlarmUv3, Signal, "Alarm output of UV3 activated", "" ) \ DPOINT_DEFN( SigAlarmOv1, Signal, "Alarm output of OV1 activated", "" ) \ DPOINT_DEFN( SigAlarmOv2, Signal, "Alarm output of OV2 activated", "" ) \ DPOINT_DEFN( SigAlarmOf, Signal, "Alarm output of OF activated", "" ) \ DPOINT_DEFN( SigAlarmUf, Signal, "Alarm output of UF activated", "" ) \ DPOINT_DEFN( SigClosed, Signal, "Switch is closed", "" ) \ DPOINT_DEFN( SigClosedAR, Signal, "Closed due to AR OCEF, AR SEF, AR UV, ABR contol signal", "" ) \ DPOINT_DEFN( SigClosedAR_OcEf, Signal, "Closed due to AR OCEFSEF reclosing. AR SEF signal is not used any more. SigClosedAR_OcEf is the primary signal to report AR operations.", "" ) \ DPOINT_DEFN( SigClosedAR_Sef, Signal, "Closed due to AR OCEFSEF reclosing. AR SEF signal is not used any more. SigClosedAR_OcEf is the primary signal to report AR operations.", "" ) \ DPOINT_DEFN( SigClosedAR_Uv, Signal, "Closed due to AR UV reclosing", "" ) \ DPOINT_DEFN( SigClosedAR_Ov, Signal, "Closed due to AR OV reclosing", "" ) \ DPOINT_DEFN( SigClosedABR, Signal, "Closed due to ABR reclosing", "" ) \ DPOINT_DEFN( SigClosedRemote, Signal, "Closed due to SCADA or I/O control signal", "" ) \ DPOINT_DEFN( SigClosedSCADA, Signal, "Closed due to SCADA control signal", "" ) \ DPOINT_DEFN( SigClosedIO, Signal, "Closed due to I/O control signal", "" ) \ DPOINT_DEFN( SigClosedLocal, Signal, "Closed due to HMI, PC contol signal or undefined closed", "" ) \ DPOINT_DEFN( SigClosedMMI, Signal, "Closed due to HMI control signal", "" ) \ DPOINT_DEFN( SigClosedPC, Signal, "Closed due to PC control signal", "" ) \ DPOINT_DEFN( SigClosedUndef, Signal, "Source of close undefined, recognized after On(Power) or servicing", "" ) \ DPOINT_DEFN( CmsPortBaud, BaudRateType, "CMS default port's BAUD rate based on the Linux's termbits.h MACRO. Please to see the BaudRateType enum to tell the proper Baud rate value. ", "" ) \ DPOINT_DEFN( DEPRECATED_CmsAuxPortBaud, BaudRateType, "CMS default port's BAUD rate based on the Linux's termbits.h MACRO. Please to see the BaudRateType enum to tell the proper Baud rate value. ", "" ) \ DPOINT_DEFN( CmsPortCrcCnt, I32, "CMS default port CRC error counter", "" ) \ DPOINT_DEFN( CmsAuxPortCrcCnt, UI32, "CMS AUX port's CRC error counter", "" ) \ DPOINT_DEFN( HrmUa1st, UI32, "Ua fundamental voltage (1st harmonic)", "" ) \ DPOINT_DEFN( CanDataRequestSim, CanObjType, "request data from SIM device on the CAN network", "" ) \ DPOINT_DEFN( ProtCfgInUse, UI32, "The base address of the protection configuration in use. Set by the protection process after loading a new config.", "" ) \ DPOINT_DEFN( CanSimBusErr, UI32, "CAN bus error status", "" ) \ DPOINT_DEFN( ChEvNonGroup, ChangeEvent, "This datapoint is used to log 'batch' changes to non-grouped protection settings.", "" ) \ DPOINT_DEFN( ChEvGrp1, ChangeEvent, "This datapoint is used to log 'batch' changes to protection group 1 settings", "" ) \ DPOINT_DEFN( ChEvGrp2, ChangeEvent, "This datapoint is used to log 'batch' changes to protection group 2 settings.", "" ) \ DPOINT_DEFN( ChEvGrp3, ChangeEvent, "This datapoint is used to log 'batch' changes to protection group 2 settings.", "" ) \ DPOINT_DEFN( ChEvGrp4, ChangeEvent, "This datapoint is used to log 'batch' changes to protection group 4 settings.", "" ) \ DPOINT_DEFN( HrmUb1st, UI32, "Ub fundamental voltage (1st harmonic)", "" ) \ DPOINT_DEFN( SigCtrlProtOn, Signal, "Protection is switched on \r\n", "" ) \ DPOINT_DEFN( SigCtrlGroup1On, Signal, "Active Group 1 \r\n", "" ) \ DPOINT_DEFN( SigCtrlGroup2On, Signal, "Active Group 2\r\n", "" ) \ DPOINT_DEFN( SigCtrlGroup3On, Signal, "Active Group 3\r\n", "" ) \ DPOINT_DEFN( SigCtrlGroup4On, Signal, "Active Group 4 \r\n", "" ) \ DPOINT_DEFN( SigCtrlEFOn, Signal, "Earth overcurrent element is switched on\r\n", "" ) \ DPOINT_DEFN( SigCtrlSEFOn, Signal, "Sensitive Earth fault element is switched on\r\n", "" ) \ DPOINT_DEFN( SigCtrlUVOn, Signal, "Undervoltage element is switched on\r\n", "" ) \ DPOINT_DEFN( SigCtrlUFOn, Signal, "Under frequency element is switched on\r\n", "" ) \ DPOINT_DEFN( SigCtrlOVOn, Signal, "Overvoltage element is switched on\r\n", "" ) \ DPOINT_DEFN( SigCtrlOFOn, Signal, "Overfrequency element is switched on\r\n", "" ) \ DPOINT_DEFN( SigCtrlCLPOn, Signal, "Cold load pickup element is switched on\r\n", "" ) \ DPOINT_DEFN( SigCtrlLLOn, Signal, "Live line element is switched on \r\n", "" ) \ DPOINT_DEFN( SigCtrlAROn, Signal, "OC/NPS/EF/SEF, VE reclosing and ABR are switched on", "" ) \ DPOINT_DEFN( SigCtrlMNTOn, Signal, "MNT is enabled", "" ) \ DPOINT_DEFN( SigCtrlABROn, Signal, "Control to turn on/off Automatic Backfeed Restoration. NOTE: Should be flagged as volatile as we do not want the relay to restart with ABR on.\r\n", "" ) \ DPOINT_DEFN( SigStatusConnectionEstablished, Signal, "?CONNECT? string received from DCE or the DCD signal has changed state from low to high.", "" ) \ DPOINT_DEFN( SigStatusConnectionCompleted, Signal, "Hangup due to inactive timeout or received ?NO CARRIER? string from DCE or the DCD signal has changed from high to low.", "" ) \ DPOINT_DEFN( SigStatusDialupInitiated, Signal, "Started dialling to master due to unsolicited response.", "" ) \ DPOINT_DEFN( SigStatusDialupFailed, Signal, "Failed to dial in to Master", "" ) \ DPOINT_DEFN( SigMalfunction, Signal, "Activated by any other malfunction", "" ) \ DPOINT_DEFN( HrmUc1st, UI32, "Uc fundamental voltage (1st harmonic)", "" ) \ DPOINT_DEFN( HrmIa2nd, UI32, "Ia 2nd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb2nd, UI32, "Ib 2nd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc2nd, UI32, "Ic 2nd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( SigMalfRelay, Signal, "Internal fault of Relay module detected", "" ) \ DPOINT_DEFN( SigMalfSimComms, Signal, "No response from SIM", "" ) \ DPOINT_DEFN( SigMalfIo1Comms, Signal, "No response from I/O1", "" ) \ DPOINT_DEFN( SigMalfIo2Comms, Signal, "No response from I/O2", "" ) \ DPOINT_DEFN( SigMalfIo1Fault, Signal, "I/O1 internal fault detected", "" ) \ DPOINT_DEFN( SigMalfIo2Fault, Signal, "I/O2 internal fault detected", "" ) \ DPOINT_DEFN( SigWarning, Signal, "Activated by any Warning", "" ) \ DPOINT_DEFN( HrmIn2nd, UI32, "In 2nd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa2nd, UI32, "Ua 2nd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( CntrOcATrips, I32, "Fault Counter of OC A Trips", "" ) \ DPOINT_DEFN( CntrOcBTrips, I32, "Fault counter of OC B Trips", "" ) \ DPOINT_DEFN( CntrOcCTrips, I32, "Fault counter of OC C Trips", "" ) \ DPOINT_DEFN( CntrEfTrips, I32, "Fault counter of EF Trips", "" ) \ DPOINT_DEFN( CntrSefTrips, I32, "Fault counter of SEF Trips", "" ) \ DPOINT_DEFN( CntrUvTrips, I32, "Fault counter of UV Trips", "" ) \ DPOINT_DEFN( CntrOvTrips, I32, "Fault counter of OV Trips", "" ) \ DPOINT_DEFN( CntrUfTrips, I32, "Fault counter of UF Trips", "" ) \ DPOINT_DEFN( CntrOfTrips, I32, "Fault counter of OF Trips", "" ) \ DPOINT_DEFN( TripCnt, UI32, "Lifetime counter of Total Close/Open Operation. This value is calculated from TripCnta, TripCntb, and TripCntc; trip count can not be reset by writing to this DPID.", "" ) \ DPOINT_DEFN( MechanicalWear, UI32, "Mechanical wear (min value is no wear, max value is 100%). Ratio of total operations and maximum operations (see DPIDs 'SP_OC1' and 'TripCnt').", "" ) \ DPOINT_DEFN( BreakerWear, UI32, "Breaker wear (min value is no wear, max value is 100%). Value is calculated from BreakerWeara (b|c), writing to this DPID does not reset breaker wear.", "" ) \ DPOINT_DEFN( MeasCurrIa, UI32, "Measurement Currents: Ia", "" ) \ DPOINT_DEFN( MeasCurrIb, UI32, "Measurement Current: Ib", "" ) \ DPOINT_DEFN( MeasCurrIc, UI32, "Measurement Current: Ic", "" ) \ DPOINT_DEFN( MeasCurrIn, UI32, "Measurement Current: In", "" ) \ DPOINT_DEFN( MeasVoltUa, UI32, "Measurement Voltage: Ua", "" ) \ DPOINT_DEFN( MeasVoltUb, UI32, "Measurement Voltage: Ub", "" ) \ DPOINT_DEFN( MeasVoltUc, UI32, "Measurement Voltage: Uc", "" ) \ DPOINT_DEFN( MeasVoltUab, UI32, "Measurement Voltage: Uab", "" ) \ DPOINT_DEFN( MeasVoltUbc, UI32, "Measurement Voltage: Ubc", "" ) \ DPOINT_DEFN( MeasVoltUca, UI32, "Measurement Voltage: Uca", "" ) \ DPOINT_DEFN( MeasVoltUr, UI32, "Measurement Voltage: Ur", "" ) \ DPOINT_DEFN( MeasVoltUs, UI32, "Measurement Voltage: Us", "" ) \ DPOINT_DEFN( MeasVoltUt, UI32, "Measurement Voltage: Ut", "" ) \ DPOINT_DEFN( MeasVoltUrs, UI32, "Measurement Voltage: Urs", "" ) \ DPOINT_DEFN( MeasVoltUst, UI32, "Measurement Voltage: Ust", "" ) \ DPOINT_DEFN( MeasVoltUtr, UI32, "Measurement Voltage: Utr", "" ) \ DPOINT_DEFN( MeasFreqabc, UI32, "Measurement Frequency: abc", "" ) \ DPOINT_DEFN( MeasFreqrst, UI32, "Measurement Frequency: rst", "" ) \ DPOINT_DEFN( MeasPowerPhase3kVA, UI32, "Measurement Power: Phase3kVA", "" ) \ DPOINT_DEFN( MeasPowerPhase3kW, UI32, "Measurement Power: Phase3kW", "" ) \ DPOINT_DEFN( MeasPowerPhase3kVAr, UI32, "Measurement Power: Phase3kVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseAkVA, UI32, "Measurement Power: PhaseAkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseAkW, UI32, "Measurement Power: PhaseAkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseAkVAr, UI32, "Measurement Power: PhaseAkVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseBkVA, UI32, "Measurement Power: PhaseBkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseBkW, UI32, "Measurement Power: PhaseBkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseBkVAr, UI32, "Measurement Power: PhaseBkVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseCkVA, UI32, "Measurement Power: PhaseCkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseCkW, UI32, "Measurement Power: PhaseCkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseCkVAr, UI32, "Measurement Power: PhaseCkVAr", "" ) \ DPOINT_DEFN( MeasPowerFactor3phase, I32, "Measurement Power Factor: 3 phase", "" ) \ DPOINT_DEFN( MeasPowerFactorAphase, I32, "Measurement Power Factor: A phase", "" ) \ DPOINT_DEFN( MeasPowerFactorBphase, I32, "Measurement Power Factor: B phase", "" ) \ DPOINT_DEFN( MeasPowerFactorCphase, I32, "Measurement Power Factor: C phase", "" ) \ DPOINT_DEFN( HrmUb2nd, UI32, "Ub 2nd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( MeasPowerFlowDirectionOC, ProtDirOut, "Measurement Power Flow Direction: OC", "" ) \ DPOINT_DEFN( MeasPowerFlowDirectionEF, ProtDirOut, "Measurement Power Flow Direction: EF", "" ) \ DPOINT_DEFN( MeasPowerFlowDirectionSEF, ProtDirOut, "Measurement Power Flow Direction: SEF", "" ) \ DPOINT_DEFN( MeasEnergyPhase3FkVAh, UI32, "Lifetime Measurement Energy: Phase3FkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhase3FkVArh, UI32, "Lifetime Measurement Energy: Phase3FkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhase3FkWh, UI32, "Lifetime Measurement Energy: Phase3FkWh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseAFkVAh, UI32, "Lifetime Measurement Energy: PhaseAFkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseAFkVArh, UI32, "Lifetime Measurement Energy: PhaseAFkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseAFkWh, UI32, "Lifetime Measurement Energy: PhaseAFkWh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseBFkVAh, UI32, "Lifetime Measurement Energy: PhaseBFkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseBFkVArh, UI32, "Lifetime Measurement Energy: PhaseBFkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseBFkWh, UI32, "Lifetime Measurement Energy: PhaseBFkWh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseCFkVAh, UI32, "Lifetime Measurement Energy: PhaseCFkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseCFkVArh, UI32, "Lifetime Measurement Energy: PhaseCFkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseCFkWh, UI32, "Lifetime Measurement Energy: PhaseCFkWh", "" ) \ DPOINT_DEFN( MeasEnergyPhase3RkVAh, UI32, "Lifetime Measurement Energy: Phase3RkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhase3RkVArh, UI32, "Lifetime Measurement Energy: Phase3RkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhase3RkWh, UI32, "Lifetime Measurement Energy: Phase3RkWh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseARkVAh, UI32, "Lifetime Measurement Energy: PhaseARkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseARkVArh, UI32, "Lifetime Measurement Energy: PhaseARkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseARkWh, UI32, "Lifetime Measurement Energy: PhaseARkWh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseBRkVAh, UI32, "Lifetime Measurement Energy: PhaseBRkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseBRkVArh, UI32, "Lifetime Measurement Energy: PhaseBRkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseBRkWh, UI32, "Lifetime Measurement Energy: PhaseBRkWh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseCRkVAh, UI32, "Lifetime Measurement Energy: PhaseCRkVAh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseCRkVArh, UI32, "Lifetime Measurement Energy: PhaseCRkVArh", "" ) \ DPOINT_DEFN( MeasEnergyPhaseCRkWh, UI32, "Lifetime Measurement Energy: PhaseCRkWh", "" ) \ DPOINT_DEFN( IdRelayNumber, SerialNumber, "Identification: Relay Number", "" ) \ DPOINT_DEFN( IdRelayDbVer, Str, "Identification: Relay Database Version", "" ) \ DPOINT_DEFN( IdRelaySoftwareVer, Str, "Identification: Relay Software Version", "" ) \ DPOINT_DEFN( IdRelayHardwareVer, Str, "Identification: Relay Hardware Version", "" ) \ DPOINT_DEFN( IdSIMNumber, SerialNumber, "Identification: SIM Number", "" ) \ DPOINT_DEFN( IdSIMSoftwareVer, Str, "Identification: SIM Software Version", "" ) \ DPOINT_DEFN( IdSIMHardwareVer, Str, "Identification: SIM Hardware Version", "" ) \ DPOINT_DEFN( IdPanelNumber, SerialNumber, "Identification: Panel Number", "" ) \ DPOINT_DEFN( IdPanelHMIVer, Str, "Identification: Panel Hardware Version", "" ) \ DPOINT_DEFN( IdPanelSoftwareVer, Str, "Identification: Panel Software Version", "" ) \ DPOINT_DEFN( IdPanelHardwareVer, Str, "Identification: Panel Hardware Version", "" ) \ DPOINT_DEFN( SysDateTime, TimeStamp, "System Date and Time", "" ) \ DPOINT_DEFN( HltEnableCid, DbClientId, "The CID of the process that enabled HLT. This is set by the prot configurator process when approving the setting of HLT. It is also used by config process when determining whether a request to disable HLT should be approved.", "" ) \ DPOINT_DEFN( SysControlMode, LocalRemote, "System Status: Local/Remote Mode", "" ) \ DPOINT_DEFN( MeasLoadProfDef, LoadProfileDefType, "Load Profile definition, byte[0-1] always set to 1 by CMS, ", "" ) \ DPOINT_DEFN( MeasLoadProfTimer, UI16, "Load profile interval timer in mins. (1, 5, 15, 20, 30, 60, 120)", "" ) \ DPOINT_DEFN( HrmUc2nd, UI32, "Uc 2nd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( SimSwReqOpen, UI8, "*TEST DPOINT* This datapoint is used to signal an open request. The idea being that non protection processes will write to this point to signal an open request.\r\n\r\nNOTE: This point is highly likely to be deprecated. It is only here for temporary dev. purposes.", "" ) \ DPOINT_DEFN( SimSwReqClose, UI8, "*TEST DPOINT* This datapoint is used to signal a close request. The idea being that non protection processes will write to this point to signal a close request.\r\n\r\nNOTE: This point is highly likely to be deprecated. It is only here for temporary dev. purposes.", "" ) \ DPOINT_DEFN( HrmIa3rd, UI32, "Ia 3rd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( SigCtrlRqstOpen, Signal, "Request the switch to open", "" ) \ DPOINT_DEFN( SigCtrlRqstClose, Signal, "Request the switch to close", "" ) \ DPOINT_DEFN( SigCtrlRemoteOn, Signal, "Control mode is set Remote", "" ) \ DPOINT_DEFN( SigGenLockout, Signal, "All AR OCEF, AR SEF, ABR elements are set in the O1 state ", "" ) \ DPOINT_DEFN( SigGenARInit, Signal, "Any of AR OCEF, AR SEF, AR UV or ABR elements set in one of O2, O3 or O4 states", "" ) \ DPOINT_DEFN( SigGenProtInit, Signal, "Logical OR of AR initiated and Pickup signals", "" ) \ DPOINT_DEFN( HrmIb3rd, UI32, "Ib 3rd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( swsimEn, UI8, "This value en/disables the switch simulator. If the value is even the simulator is enabled. This value should not be confused with dpId 2262 (enSwSimulator). The role of enSwSimulator is to tell the simultor whether to use the switch simulator (i.e . whether to set this point) during a simulation run.", "" ) \ DPOINT_DEFN( HrmIc3rd, UI32, "Ic 3rd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusActive, Signal, "Set if Trip or Close Active or failed. If failed, reset when next sucessfull trip or close", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripFail, Signal, "Opening time exceeds 60ms or no confirmation received that open command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseFail, Signal, "Closing time exceeds 100ms or no confirmation received that close command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripActive, Signal, "Set while trip active", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseActive, Signal, "Set while close active", "" ) \ DPOINT_DEFN( SigSwitchPositionStatusUnavailable, Signal, "OSM Position Status is Unavailable due to being disconnected or a malfunction", "" ) \ DPOINT_DEFN( SigSwitchManualTrip, Signal, "Open due to manual operation", "" ) \ DPOINT_DEFN( SigSwitchDisconnectionStatus, Signal, "OSM Disconnected", "" ) \ DPOINT_DEFN( HrmIn3rd, UI32, "In 3rd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( SigSwitchLockoutStatusMechaniclocked, Signal, "OSM Mechanically Locked Out, Trip ring pulled down", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusCoilOc, Signal, "OSM Actuator 1 Coil open circuit", "" ) \ DPOINT_DEFN( SigOsmActuatorFaultStatusCoilSc, Signal, "OSM coil short circuit detected", "" ) \ DPOINT_DEFN( SigOsmLimitFaultStatusFault, Signal, "OSM Limit Switch Fault", "" ) \ DPOINT_DEFN( SigDriverStatusNotReady, Signal, "SIM Actuator Driver Not Ready", "" ) \ DPOINT_DEFN( SigBatteryStatusAbnormal, Signal, "Battery is either high, low or disconnected", "" ) \ DPOINT_DEFN( SigBatteryChargerStatusFlat, Signal, "Battery Charge State: Flat", "" ) \ DPOINT_DEFN( SigBatteryChargerStatusNormal, Signal, "Battery Charge State: Normal", "" ) \ DPOINT_DEFN( SigBatteryChargerStatusLowPower, Signal, "Battery charge state is in low power mode", "" ) \ DPOINT_DEFN( SigBatteryChargerStatusTrickle, Signal, "Battery Charge State: Trickle", "" ) \ DPOINT_DEFN( SigBatteryChargerStatusFails, Signal, "Battery charger fault", "" ) \ DPOINT_DEFN( SigLowPowerBatteryCharge, Signal, "High system power, puts battery charger in low power charge state", "" ) \ DPOINT_DEFN( SigExtSupplyStatusOff, Signal, "External supply is off", "" ) \ DPOINT_DEFN( SigExtSupplyStatusOverLoad, Signal, "External load overload", "" ) \ DPOINT_DEFN( SigUPSStatusAcOff, Signal, "UPS is in \"AC Off\" state", "" ) \ DPOINT_DEFN( SigUPSStatusBatteryOff, Signal, "UPS is in \"Battery Off\" state", "" ) \ DPOINT_DEFN( SigUPSPowerDown, Signal, "System shutdown in less than 5 min due to low battery level", "" ) \ DPOINT_DEFN( HrmUa3rd, UI32, "Ua 3rd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb3rd, UI32, "Ub 3rd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( SigModuleSimHealthFault, Signal, "SIM Module Fault", "" ) \ DPOINT_DEFN( SigModuleTypeSimDisconnected, Signal, "SIM Disconnected", "" ) \ DPOINT_DEFN( SigModuleTypeIo1Connected, Signal, "IO1 Connected", "" ) \ DPOINT_DEFN( SigModuleTypeIo2Connected, Signal, "IO2 Connected", "" ) \ DPOINT_DEFN( SigModuleTypePcConnected, Signal, "PC Connected", "" ) \ DPOINT_DEFN( SigCANControllerOverrun, Signal, "CAN Bus Overrun(from SIM Side)", "" ) \ DPOINT_DEFN( SigCANControllerError, Signal, "CAN Bus Error (from SIM Side)", "" ) \ DPOINT_DEFN( SigCANMessagebufferoverflow, Signal, "CAN Buf Overflow (from SIM Side)", "" ) \ DPOINT_DEFN( swsimInLockout, UI8, "BOOL flag indicating that an open to Lockout was initiated. This is reset when the switch is closed. NOTE: Do not use this flag to determine if in Lockout, use SigGenLockout instead. Applies to phase A only in single-triple configurations.", "" ) \ DPOINT_DEFN( fpgaBaseAddr, UI32, "This is the base address of the FPGA. Note that this is set by dbServer at startup; the default value provided is ignored.", "" ) \ DPOINT_DEFN( MeasCurrI1, UI32, "Measurement Currents: I1", "" ) \ DPOINT_DEFN( MeasCurrI2, UI32, "Measurement Currents: I2", "" ) \ DPOINT_DEFN( MeasVoltUar, UI32, "Measurement Voltage: Uar", "" ) \ DPOINT_DEFN( MeasVoltUbs, UI32, "Measurement Voltage: Ubs", "" ) \ DPOINT_DEFN( MeasVoltUct, UI32, "Measurement Voltage: Uct", "" ) \ DPOINT_DEFN( MeasVoltU0, UI32, "Measurement Voltage: U0", "" ) \ DPOINT_DEFN( MeasVoltU1, UI32, "Measurement Voltage: U1", "" ) \ DPOINT_DEFN( MeasVoltU2, UI32, "Measurement Voltage: U2", "" ) \ DPOINT_DEFN( MeasA0, I32, "Measurement A0:\r\nThe 21-bit value is scaled in pi-radians with a range from -pi to +pi. The 21 bit (signed integer) value is sign extended to fill the 32 bit buffer; therefore this value can be treated as a normal I32.\r\n\r\nTo convert the value into degrees: divide the number by 2^18 and multiply by 180.\r\n\r\n", "" ) \ DPOINT_DEFN( MeasA1, I32, "Measurement A1:\r\nThe 21-bit value is scaled in pi-radians with a range from -pi to +pi. The 21 bit (signed integer) value is sign extended to fill the 32 bit buffer; therefore this value can be treated as a normal I32.\r\n\r\nTo convert the value into degrees: divide the number by 2^18 and multiply by 180.\r\n\r\n", "" ) \ DPOINT_DEFN( MeasA2, I32, "Measurement A2:\r\nThe 21-bit value is scaled in pi-radians with a range from -pi to +pi. The 21 bit (signed integer) value is sign extended to fill the 32 bit buffer; therefore this value can be treated as a normal I32.\r\n\r\nTo convert the value into degrees: divide the number by 2^18 and multiply by 180.\r\n\r\n", "" ) \ DPOINT_DEFN( MeasPhSABC, MeasPhaseSeqAbcType, "Measurement PhSABC", "" ) \ DPOINT_DEFN( MeasPhSRST, MeasPhaseSeqRstType, "Measurement PhSRST", "" ) \ DPOINT_DEFN( HrmUc3rd, UI32, "Uc 3rd harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa4th, UI32, "Ia 4th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb4th, UI32, "Ib 4th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc4th, UI32, "Ic 4th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( smpFpgaDataValid, I8, "FPGA's data is valid, this will be set by the SMP process after downloading the FPGA image. ", "" ) \ DPOINT_DEFN( SigClosedAR_VE, Signal, "Closed due to AR VE reclosing. (TRUE if closed because of either AR UV or AR OV).", "" ) \ DPOINT_DEFN( HrmIn4th, UI32, "In 4th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa4th, UI32, "Ua 4th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb4th, UI32, "Ub 4th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( seqSimulatorFname, Str, "The name of the simulator sequence .CSV file.", "" ) \ DPOINT_DEFN( enSwSimulator, UI8, "This BOOL value will enable the use of the switch simulator while running a simulator sequence.", "" ) \ DPOINT_DEFN( enSeqSimulator, UI8, "Setting this value to non-zero will start the simulator sequence run. Setting this to '2' will continuously run the simulator sequence.\r\n\r\nSetting this value to zero will abort a active simulator run.", "" ) \ DPOINT_DEFN( HrmUc4th, UI32, "Uc 4th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa5th, UI32, "Ia 5th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh1, IoStatus, "IO1 Input Channel1", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh2, IoStatus, "IO1 Input Channel2", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh3, IoStatus, "IO1 Input Channel3", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh4, IoStatus, "IO1 Input Channel4", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh5, IoStatus, "IO1 Input Channel5", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh6, IoStatus, "IO1 Input Channel6", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh7, IoStatus, "IO1 Input Channel7", "" ) \ DPOINT_DEFN( IoSettingIo1InputCh8, IoStatus, "IO1 Input Channel8", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh1, IoStatus, "IO2 Input Channel1", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh2, IoStatus, "IO2 Input Channel2", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh3, IoStatus, "IO2 Input Channel3", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh4, IoStatus, "IO2 Input Channel4", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh5, IoStatus, "IO2 Input Channel5", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh6, IoStatus, "IO2 Input Channel6", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh7, IoStatus, "IO2 Input Channel7", "" ) \ DPOINT_DEFN( IoSettingIo2InputCh8, IoStatus, "IO2 Input Channel8", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh1, IoStatus, "IO1 Output Channel1", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh2, IoStatus, "IO1 Output Channel2", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh3, IoStatus, "IO1 Output Channel3", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh4, IoStatus, "IO1 Output Channel4", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh5, IoStatus, "IO1 Output Channel5", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh6, IoStatus, "IO1 Output Channel6", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh7, IoStatus, "IO1 Output Channel7", "" ) \ DPOINT_DEFN( IoSettingIo1OutputCh8, IoStatus, "IO1 Output Channel8", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh1, IoStatus, "IO2 Output Channel1", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh2, IoStatus, "IO2 Output Channel2", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh3, IoStatus, "IO2 Output Channel3", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh4, IoStatus, "IO2 Output Channel4", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh5, IoStatus, "IO2 Output Channel5", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh6, IoStatus, "IO2 Output Channel6", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh7, IoStatus, "IO2 Output Channel7", "" ) \ DPOINT_DEFN( IoSettingIo2OutputCh8, IoStatus, "IO2 Output Channel8", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh1, UI16, "IO Setting: IO1 Output Recognition Time Channel1 ", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh2, UI16, "IO Setting: IO1 Output Recognition Time Channel2", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh3, UI16, "IO Setting: IO1 Output Recognition Time Channel3", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh4, UI16, "IO Setting: IO1 Output Recognition Time Channel4", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh5, UI16, "IO Setting: IO1 Output Recognition Time Channel5", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh6, UI16, "IO Setting: IO1 Output Recognition Time Channel6", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh7, UI16, "IO Setting: IO1 Output Recognition Time Channel7", "" ) \ DPOINT_DEFN( IoSettingIo1TrecCh8, UI16, "IO Setting: IO1 Output Recognition Time Channel8", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh1, UI16, "IO Setting: IO2 Output Recognition Time Channel1", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh2, UI16, "IO Setting: IO2 Output Recognition Time Channel2", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh3, UI16, "IO Setting: IO2 Output Recognition Time Channel3", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh4, UI16, "IO Setting: IO2 Output Recognition Time Channel4", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh5, UI16, "IO Setting: IO2 Output Recognition Time Channel5", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh6, UI16, "IO Setting: IO2 Output Recognition Time Channel6", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh7, UI16, "IO Setting: IO2 Output Recognition Time Channel7", "" ) \ DPOINT_DEFN( IoSettingIo2TrecCh8, UI16, "IO Setting: IO2 Output Recognition Time Channel8", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh1, UI16, "IO Setting: IO1 Output Reset Time Channel1", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh2, UI16, "IO Setting: IO1 Output Reset Time Channel2", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh3, UI16, "IO Setting: IO1 Output Reset Time Channel3", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh4, UI16, "IO Setting: IO1 Output Reset Time Channel4", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh5, UI16, "IO Setting: IO1 Output Reset Time Channel5", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh6, UI16, "IO Setting: IO1 Output Reset Time Channel6", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh7, UI16, "IO Setting: IO1 Output Reset Time Channel7", "" ) \ DPOINT_DEFN( IoSettingIo1TresCh8, UI16, "IO Setting: IO1 Output Reset Time Channel8", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh1, UI16, "IO Setting: IO2 Output Reset Time Channel1", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh2, UI16, "IO Setting: IO2 Output Reset Time Channel2", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh3, UI16, "IO Setting: IO2 Output Reset Time Channel3", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh4, UI16, "IO Setting: IO2 Output Reset Time Channel4", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh5, UI16, "IO Setting: IO2 Output Reset Time Channel5", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh6, UI16, "IO Setting: IO2 Output Reset Time Channel6", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh7, UI16, "IO Setting: IO2 Output Reset Time Channel7", "" ) \ DPOINT_DEFN( IoSettingIo2TresCh8, UI16, "IO Setting: IO2 Output Reset Time Channel8", "" ) \ DPOINT_DEFN( IoSettingRpnStrLoc1, LogicStr, "IO RPN String for I Local Channel1", "" ) \ DPOINT_DEFN( IoSettingRpnStrLoc2, LogicStr, "IO RPN String for I Local Channel2", "" ) \ DPOINT_DEFN( IoSettingRpnStrLoc3, LogicStr, "IO RPN String for I Local Channel3", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In1, LogicStr, "IO RPN String for IO1 input Channel1", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In2, LogicStr, "IO RPN String for IO1 input Channel2", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In3, LogicStr, "IO RPN String for IO1 input Channel3", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In4, LogicStr, "IO RPN String for IO1 input Channel4", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In5, LogicStr, "IO RPN String for IO1 input Channel5", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In6, LogicStr, "IO RPN String for IO1 input Channel6", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In7, LogicStr, "IO RPN String for IO1 input Channel7", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1In8, LogicStr, "IO RPN String for IO1 input Channel8", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out1, LogicStr, "IO RPN String for IO1 output Channel1", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out2, LogicStr, "IO RPN String for IO1 output Channel2", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out3, LogicStr, "IO RPN String for IO1 output Channel3", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out4, LogicStr, "IO RPN String for IO1 output Channel4", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out5, LogicStr, "IO RPN String for IO1 output Channel5", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out6, LogicStr, "IO RPN String for IO1 output Channel6", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out7, LogicStr, "IO RPN String for IO1 output Channel7", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo1Out8, LogicStr, "IO RPN String for IO1 output Channel8", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In1, LogicStr, "IO RPN String for IO2 input Channel1", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In2, LogicStr, "IO RPN String for IO2 input Channel2", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In3, LogicStr, "IO RPN String for IO2 input Channel3", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In4, LogicStr, "IO RPN String for IO2 input Channel4", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In5, LogicStr, "IO RPN String for IO2 input Channel5", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In6, LogicStr, "IO RPN String for IO2 input Channel6", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In7, LogicStr, "IO RPN String for IO2 input Channel7", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2In8, LogicStr, "IO RPN String for IO2 input Channel8", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out1, LogicStr, "IO RPN String for IO2 output Channel1", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out2, LogicStr, "IO RPN String for IO2 output Channel2", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out3, LogicStr, "IO RPN String for IO2 output Channel3", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out4, LogicStr, "IO RPN String for IO2 output Channel4", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out5, LogicStr, "IO RPN String for IO2 output Channel5", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out6, LogicStr, "IO RPN String for IO2 output Channel6", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out7, LogicStr, "IO RPN String for IO2 output Channel7", "" ) \ DPOINT_DEFN( IoSettingRpnStrIo2Out8, LogicStr, "IO RPN String for IO2 output Channel8", "" ) \ DPOINT_DEFN( IoSettingILocMode, IOSettingMode, "IO Setting: Local inputs mode\r\n0:Disable, 1:Enable", "" ) \ DPOINT_DEFN( IoSettingIo1Mode, GPIOSettingMode, "IO Setting: IO1 Mode\r\n0:Disable, 1:Enable, 2:Test1, 3:Test2, 4:Test3", "" ) \ DPOINT_DEFN( IoSettingIo2Mode, GPIOSettingMode, "IO Setting: IO2 Mode\r\n0:Disable, 1:Enable, 2:Test1, 3:Test2, 4:Test3", "" ) \ DPOINT_DEFN( TestIo, UI8, "This is point is used for the testing purpose. \r\n\r\n\r\n", "" ) \ DPOINT_DEFN( MeasPowerPhaseF3kVA, UI32, "Measurement Power (Forward): Phase3kVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseF3kW, UI32, "Measurement Power (Forward): Phase3kW", "" ) \ DPOINT_DEFN( MeasPowerPhaseF3kVAr, UI32, "Measurement Power (Forward): Phase3kVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseFAkVA, UI32, "Measurement Power (Forward): PhaseAkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseFAkW, UI32, "Measurement Power (Forward): PhaseAkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseFAkVAr, UI32, "Measurement Power (Forward): PhaseAkVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseFBkVA, UI32, "Measurement Power (Forward): PhaseBkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseFBkW, UI32, "Measurement Power (Forward): PhaseBkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseFBkVAr, UI32, "Measurement Power (Forward): PhaseBkVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseFCkVA, UI32, "Measurement Power (Forward): PhaseCkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseFCkW, UI32, "Measurement Power (Forward): PhaseCkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseFCkVAr, UI32, "Measurement Power (Forward): PhaseCkVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseR3kVA, UI32, "Measurement Power (Reverse): Phase3kVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseR3kW, UI32, "Measurement Power (Reverse): Phase3kW", "" ) \ DPOINT_DEFN( MeasPowerPhaseR3kVAr, UI32, "Measurement Power (Reverse): Phase3kVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseRAkVA, UI32, "Measurement Power (Reverse): PhaseAkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseRAkW, UI32, "Measurement Power (Reverse): PhaseAkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseRAkVAr, UI32, "Measurement Power (Reverse): PhaseAkVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseRBkVA, UI32, "Measurement Power (Reverse): PhaseBkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseRBkW, UI32, "Measurement Power (Reverse): PhaseBkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseRBkVAr, UI32, "Measurement Power (Reverse): PhaseBkVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseRCkVA, UI32, "Measurement Power (Reverse): PhaseCkVA", "" ) \ DPOINT_DEFN( MeasPowerPhaseRCkW, UI32, "Measurement Power (Reverse): PhaseCkW", "" ) \ DPOINT_DEFN( MeasPowerPhaseRCkVAr, UI32, "Measurement Power (Reverse): PhaseCkVAr", "" ) \ DPOINT_DEFN( ProtOcDir, ProtDirOut, "Over current (OC) protection's direction output(F/R/?)", "" ) \ DPOINT_DEFN( ProtEfDir, ProtDirOut, "Earth fault (EF) protection's direction output (F/R/?) ", "" ) \ DPOINT_DEFN( ProtSefDir, ProtDirOut, "Sensitive earth fault (SEF) protection direction output (F/R/?)", "" ) \ DPOINT_DEFN( HrmIb5th, UI32, "Ib 5th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( MeasLoadProfEnrg3FkVAh, UI32, "Load profile interval Energy for Forward 3 Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrg3FkVArh, UI32, "Load profile interval Energy for Forward 3 Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrg3FkWh, UI32, "Load profile interval Energy for Forward 3 Phase in kWh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgAFkVAh, UI32, "Load profile interval Energy for Forward A Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgAFkVArh, UI32, "Load profile interval Energy for Forward A Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgAFkWh, UI32, "Load profile interval Energy for Forward A Phase in kWh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgBFkVAh, UI32, "Load profile interval Energy for Forward B Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgBFkVArh, UI32, "Load profile interval Energy for Forward B Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgBFkWh, UI32, "Load profile interval Energy for Forward B Phase in kWh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgCFkVAh, UI32, "Load profile interval Energy for Forward C Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgCFkVArh, UI32, "Load profile interval Energy for Forward C Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgCFkWh, UI32, "Load profile interval Energy for Forward C Phase in kWh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrg3RkVAh, UI32, "Load profile interval Energy for Reverse 3 Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrg3RkVArh, UI32, "Load profile interval Energy for Reverse 3 Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrg3RkWh, UI32, "Load profile interval Energy for Reverse 3 Phase in kWh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgARkVAh, UI32, "Load profile interval Energy for Reverse A Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgARkVArh, UI32, "Load profile interval Energy for Reverse A Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgARkWh, UI32, "Load profile interval Energy for Reverse A Phase in kWh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgBRkVAh, UI32, "Load profile interval Energy for Reverse B Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgBRkVArh, UI32, "Load profile interval Energy for Reverse B Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgBRkWh, UI32, "Load profile interval Energy for Reverse B Phase in kWh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgCRkVAh, UI32, "Load profile interval Energy for Reverse C Phase in kVAh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgCRkVArh, UI32, "Load profile interval Energy for Reverse C Phase in kVArh", "" ) \ DPOINT_DEFN( MeasLoadProfEnrgCRkWh, UI32, "Load profile interval Energy for Reverse C Phase in kWh", "" ) \ DPOINT_DEFN( FaultProfileDataAddr, UI32, "This value provides the address of the FaultProfileData structure maintained by the protection process", "" ) \ DPOINT_DEFN( dbSaveFName, Str, "The name of the database saved values file. This file is read from at startup and written to at shutdown.", "" ) \ DPOINT_DEFN( dbConfigFName, Str, "The name of the file used by the database server when instructed to save / read the configuration.", "" ) \ DPOINT_DEFN( dbFileCmd, DbFileCommand, "This datapoint is used to issue file save / read commands to the DB server. On completion of the command the value will be reset to DbFCmdNone.", "" ) \ DPOINT_DEFN( HrmIc5th, UI32, "Ic 5th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn5th, UI32, "In 5th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa5th, UI32, "Ua 5th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb5th, UI32, "Ub 5th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( protLifeTickCnt, UI32, "This is a lifetime 'tick' counter for the protection process. It is incremented by the protection process at every 1/4 cycle tick.", "" ) \ DPOINT_DEFN( HrmUc5th, UI32, "Uc 5th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( ScadaDnp3GenLinkSlaveAddr, UI32, "Slave Address in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenLinkConfirmationMode, UI8, "Confirmation Mode in SCADA DNP3 General Setting\r\n(0 never, 1 sometimes, 2 always)", "" ) \ DPOINT_DEFN( ScadaDnp3GenLinkConfirmationTimeout, UI32, "Confirmation Timeout in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenLinkMaxRetries, UI32, "Maximum Retries in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenLinkMaxTransFrameSize, UI32, "Maximum Transmitted Frame Size in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenLinkValidMasterAddr, Bool, "Validate Master Address in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenAppSBOTimeout, UI32, "SBO Timeout in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenAppConfirmationMode, UI8, "Confirmation Mode in SCADA DNP3 General Setting\r\n(0 Events, 1 Events and Mult)", "" ) \ DPOINT_DEFN( ScadaDnp3GenAppConfirmationTimeout, UI32, "Confirmation Timeout in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenAppNeedTimeDelay, UI32, "Need Time Delay in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenAppColdRestartDelay, UI32, "Cold Restart Delay in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenAppWarmRestartDelay, UI32, "Warm Restart Delay in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenUnsolicitedResponse, EnDis, "Unsolicited Response in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenMasterAddr, UI32, "Master Address in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenRetryDelay, UI32, "Retry Delay in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenRetries, UI32, "Retries in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenOfflineInterval, UI32, "Offline Interval in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass1, UI8, "Class1 in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass1Events, UI32, "Events in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass1Delays, UI32, "Delay in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass2, UI8, "Class2 in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass2Events, UI32, "Events in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass2Delays, UI32, "Delay in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass3, UI8, "Class3 in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass3Events, UI32, "Events in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDnp3GenClass3Delays, UI32, "Delay in SCADA DNP3 General Setting", "" ) \ DPOINT_DEFN( ScadaDNP3BinaryInputs, ScadaDNP3BinaryInputs, "Binary Inputs Structure Datapoint for SCADA DNP3", "" ) \ DPOINT_DEFN( ScadaDNP3BinaryOutputs, ScadaDNP3BinaryOutputs, "Binary Outputs Structure Datapoint for SCADA DNP3", "" ) \ DPOINT_DEFN( ScadaDNP3BinaryCounters, ScadaDNP3BinaryCounters, "Binary Counters Structure Datapoint for SCADA DNP3", "" ) \ DPOINT_DEFN( ScadaDNP3AnalogInputs, ScadaDNP3AnalogInputs, "Analog Inputs Structure Datapoint for SCADA DNP3", "" ) \ DPOINT_DEFN( ScadaDNP3OctetStrings, ScadaDNP3OctetStrings, "Octet Strings Structure Datapoint for SCADA DNP3", "" ) \ DPOINT_DEFN( ScadaDNP3EnableProtocol, EnDis, "DNP3 Protocol Enabled in SCADA", "" ) \ DPOINT_DEFN( ScadaDNP3ChannelPort, CommsPort, "DNP3 Communication Channel Port in SCADA", "" ) \ DPOINT_DEFN( ScadaCMSEnableProtocol, EnDis, "Enables Port #2 for CMS.\r\nName of this datapoint is incorrect, but we can't change it. Trust this description.", "" ) \ DPOINT_DEFN( ScadaCMSUseDNP3Trans, EnDis, "CMS Use DNP3 for Transmission in SCADA", "" ) \ DPOINT_DEFN( ScadaCMSChannelPort, CommsPort, "SCADA CMS Port #2", "" ) \ DPOINT_DEFN( ScadaAnlogInputEvReport, UI8, "Analogue Event Reporting in Analog Inputs tab of SCADA DNP3\r\n(0 Report all events, 1 Report Last Event)\r\n(Discarded. Replaced with additional options in Object32-SCADA DNP3 AnalogInputs)", "" ) \ DPOINT_DEFN( CanSimTripRequestFailCode, UI32, "Description: BIT 0: switch gear not connected\r\n BIT 1: mechanical lockout\r\n BIT 2: operation active\r\n BIT 3: faulty actuator\r\n BIT 4: mechanism failure\r\n\r\n__NOTE:__ While set by the SIM this will be 'quietly' reset by the protection process once it has been detected.", "" ) \ DPOINT_DEFN( CanSimTripRetry, UI8, "Description: If there is a need for more than one retry on a trip operation due to the switches not being in the correct state, this will return that a retry has occurred and the retry number", "" ) \ DPOINT_DEFN( CanSimOperationFault, UI32, "Description: BIT0 Close capacitor Voltage drop too high\r\n BIT1 Trip Capacitor Voltage drop too high\r\n BIT2 Trip Capacitor Voltage dropped on a close operation (indicates cap board diode failed)\r\n\r\nThe capacitor voltages will also be returned when this operation is sent through\r\n", "" ) \ DPOINT_DEFN( CanSimCloseRequestFailCode, UI32, "Description: BIT 0: switch gear not connected\r\n BIT 1: mechanical lockout\r\n BIT 2: operation active\r\n BIT 3: faulty actuator\r\n BIT 4: mechanism failure\r\n BIT 5: Excess operations\r\n BIT 6: Close Cap Not Ok\r\n BIT 7: Trip Cap can’t perform 2 trips\r\n\r\n__NOTE:__ While set by the SIM this will be 'quietly' reset by the protection process once it has been detected.", "" ) \ DPOINT_DEFN( CanSimCloseRetry, UI8, "Description: If there is a need for more than one retry on a close operation due to the switches not being in the correct state, this will return that a retry has occurred and the retry number", "" ) \ DPOINT_DEFN( HrmIa6th, UI32, "Ia 6th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( ProtStatusState, UI32, "The bitfield representing the current protection status state. The bitfield is defined by the ProtStatus enum. This value is written to the event log on ProtStatus events. This value is set by the protCfg process. This is a display only value; changing this value does _NOT_ change the actual protection state.", "" ) \ DPOINT_DEFN( IdRelayFpgaVer, Str, "Identification: Relay FPGA Version", "" ) \ DPOINT_DEFN( CmsShutdownRequest, UI8, "CMS shutdown request flag, monitored by the SMP process.\r\n2016/04/20. Renamed for CMS-1577", "" ) \ DPOINT_DEFN( HrmIb6th, UI32, "Ib 6th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( CanSimOSMDisableActuatorTest, UI32, "1217 - disables the ctuator test\r\n2171 - enables the actuator test\r\n \r\n", "" ) \ DPOINT_DEFN( resetRelayCtr, UI8, "CMS set 1 to this dp, and the relay will restart", "" ) \ DPOINT_DEFN( HrmIc6th, UI32, "Ic 6th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn6th, UI32, "In 6th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa6th, UI32, "Ua 6th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb6th, UI32, "Ub 6th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusQ503Failed, Signal, "SIM Actuator Driver Q503 Failed", "" ) \ DPOINT_DEFN( ClearEventLogDir, Bool, "Clear the event log directory", "" ) \ DPOINT_DEFN( ClearCloseOpenLogDir, Bool, "Clear the Close/Open log directory", "" ) \ DPOINT_DEFN( ClearFaultProfileDir, Bool, "Clear the Fault Profile directory", "" ) \ DPOINT_DEFN( ClearLoadProfileDir, Bool, "Clear the Load Profile Directory", "" ) \ DPOINT_DEFN( ClearChangeLogDir, Bool, "Clear the Change Log directory", "" ) \ DPOINT_DEFN( UpsRestartTime, TimeStamp, "Time of the last system startup. Set by the SMP when it starts, even if startup is unsuccessful.", "" ) \ DPOINT_DEFN( DbugDbServer, UI32, "This value en/disables debug/trace reporting in the dbServer.\r\n\r\n0 == No trace reports.\r\n1 == File save / read operations.", "" ) \ DPOINT_DEFN( CmsOpMode, LocalRemote, "The local/remote mode that the CMS channel is to operate with.", "" ) \ DPOINT_DEFN( CmsAuxOpMode, LocalRemote, "The local/remote mode that the CMS AUX channel is to operate with.", "" ) \ DPOINT_DEFN( CmsAux2OpMode, LocalRemote, "The local/remote mode that the CMS AUX 2 channel is to operate with.", "" ) \ DPOINT_DEFN( IoOpMode, LocalRemote, "The operating mode that the local digital inputs are to operate under.", "" ) \ DPOINT_DEFN( HmiOpMode, LocalRemote, "The local/remote mode that the HMI process is to operate under", "" ) \ DPOINT_DEFN( DEPRECATED_HmiServerLifeTickCnt, UI32, "This is a lifetime 'tick' counter for the HMI server process. It is incremented with no specific period.", "" ) \ DPOINT_DEFN( DEPRECATED_HmiPanelLifeTickCnt, UI32, "This is a lifetime 'tick' counter for the HMI server process. It is incremented with no specific period.", "" ) \ DPOINT_DEFN( CanSimSIMCTaCalCoefHi, UI16, "CTA high channel calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCTbCalCoefHi, UI16, "CTB high channel calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimSIMCTcCalCoefHi, UI16, "CTC high channel calibration coefficient from 0 to 65535. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCUa, UI16, "Switchgear Default CUa Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCUb, UI16, "Switchgear Default CUb Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCUc, UI16, "Switchgear Default CUc Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCUr, UI16, "Switchgear Default CUr Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCUs, UI16, "Switchgear Default CUs Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCUt, UI16, "Switchgear Default CUt Coefficients. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCIa, UI16, "Switchgear Default CIa Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCIb, UI16, "Switchgear Default CIb Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCIc, UI16, "Switchgear Default CIc Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( SwitchDefaultCoefCIn, UI16, "Switchgear Default CIn Coefficent. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTaCalCoef, UI16, "CTA Default calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTbCalCoef, UI16, "CTB Default calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTcCalCoef, UI16, "CTC Default calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTnCalCoef, UI16, "CTN Default calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTTempCompCoef, UI16, "CT Default temperature Compensation Coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCVTaCalCoef, UI16, "CVTa Default Calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCVTbCalCoef, UI16, "CVTb Default Calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCVTcCalCoef, UI16, "CVTc Default Calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCVTrCalCoef, UI16, "CVTr Default Calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCVTsCalCoef, UI16, "CVTs Default Calibration coefficient. After multiply the \"ScalingMultply\" value, it will give the actual coefficients based on the nominated unit.", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCVTtCalCoef, UI16, "CVTt Default Calibration coefficient", "" ) \ DPOINT_DEFN( CanSimSIMDefaultCVTTempCompCoef, UI16, "CVT Default Temperature compensation coefficient", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTaCalCoefHi, UI16, "CTA high channel default calibration coefficient from 0 to 65535", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTbCalCoefHi, UI16, "CTB high channel default calibration coefficient from 0 to 65535", "" ) \ DPOINT_DEFN( CanSimDefaultSIMCTcCalCoefHi, UI16, "CTC high channel default calibration coefficient from 0 to 65535", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCUa, UI16, "Fpga Default CUa Coefficients", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCUb, UI16, "Fpga Default CUb Coefficients", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCUc, UI16, "Fpga Default CUc Coefficients", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCUr, UI16, "Fpga Default CUr Coefficients", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCUs, UI16, "Fpga Default CUs Coefficients", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCUt, UI16, "Fpga Default CUt Coefficients", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCIa, UI16, "Fpga Default CIa Coefficent", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCIb, UI16, "Fpga Default CIb Coefficent", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCIc, UI16, "Fpga Default CIc Coefficent", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCIaHi, UI16, "Fpga Default CIa High Channel Coefficent", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCIbHi, UI16, "Fpga Default CIb High Channel Coefficent", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCIcHi, UI16, "Fpga Default CIc High Channel Coefficent", "" ) \ DPOINT_DEFN( FpgaDefaultCoefCIn, UI16, "Fpga Default CIn Coefficent", "" ) \ DPOINT_DEFN( SaveSimCalibration, UI8, "when relay get notification of this DBpoint, it will save the calibration to the SIM non-volatile memory. And reset the SIM (in order to save non-volatile memory). \r\nCMS or panel process set this value to 1 after the download the calibration in whole. Then Calibration process save this value to 2 once it calculate the calibration value for the SIM. \r\nSimProg process will start the SIM bootload main program in order the save the value to SIM's flash once it get notifcation of this DB set to 2. ", "" ) \ DPOINT_DEFN( StartSimCalibration, UI8, "This is used a group (bulkset) notification from CMS about the SIM calibration values. ", "" ) \ DPOINT_DEFN( SimSwitchStatus, SwState, "0:Unknown, 1:Open, 2:Close, 3:Lockout, 4:InterLocked, 5:OpenABR, 6:Failure, 7:OpenACO, 8:OpenAC, 9:LogicallyLocked", "" ) \ DPOINT_DEFN( CanSimRdData, SimImageBytes, "SIM image download write\r\nOn request byte[0] = number of bytes to read\r\nOn return byte[0..8] is the data", "" ) \ DPOINT_DEFN( CanSimFirmwareTypeRunning, UI8, "CanSimFirmwareTypeRunning\r\n0 main code running\r\n1 mini bootloader running\r\n2 main bootloader running\r\n", "" ) \ DPOINT_DEFN( CanSimRequestMoreData, UI8, "Number of packets to send \r\n\r\nSent by the device firmware is being loaded on to. Therefore it has control of the data flow.\r\n", "" ) \ DPOINT_DEFN( CanSimFirmwareVerifyStatus, UI8, "0 DOWNLOAD_NEXT - get next block of data.\r\n1 DOWNLOAD_REPT - repeat block as data was corrupt.\r\n2 DOWNLOAD_BUSY - unit still processing the data.\r\n\r\nWhen polled indicates what it is currently happening with the block data.\r\n", "" ) \ DPOINT_DEFN( CanSimResetExtLoad, UI8, " Off:0\r\n On:1\r\n \r\nSetExtLoadReset: \r\nOnly If external supply is on, the external supply will be turned off for 10 sec and then on again.\r\n\r\nIf external supply off when sent through nothing will happen \r\n\r\nRelay can write to the this point\r\n", "" ) \ DPOINT_DEFN( CanSimBatteryCapacityAmpHrs, UI16, "Battery Capacity 0 – 50.00 Amp Hrs \r\n\r\nNo Battery Connected Capacity = 0 Amp Hrs\r\nAfter battery connected the battery capacity is calculated\r\n", "" ) \ DPOINT_DEFN( CanSimPower, UI32, "Power provided to peripherals through SIM or PSC.\r\n0 to 500Watts, resolutions is 0.01Watt.\r\n\r\nNote: Older SIM's only wrote the low 16-bits of this value, leaving the high 16-bits in a random state. Make sure to mask off the high bits before using this value.", "" ) \ DPOINT_DEFN( HmiResourceFile, Str, "The last successfully loaded HMI resource file. This will be the default resource file used when the relay restarts.", "" ) \ DPOINT_DEFN( StartSwgCalibration, UI8, "This is used a group (bulkset) notification from CMS about the SWG calibration values", "" ) \ DPOINT_DEFN( HmiPasswords, HmiPassword, "All passwords for controlling access to content in the HMI panel. ", "" ) \ DPOINT_DEFN( IabcRMS_trip, TripCurrent, "Instantaneous current for phase A, B, and C at the time the breaker was opened. This value is used internally by the relay, it can be safely ignored by CMS.", "" ) \ DPOINT_DEFN( OC_SP1, UI32, "Maximum number of operations for set point 1 (see also KA_SP1). This is the Y-axis for the breaker maintenace curve (CO verse KA).", "" ) \ DPOINT_DEFN( OC_SP2, UI32, "Maximum number of operations for set point 2 (see also KA_SP2). This is the Y-axis for the breaker maintenace curve (CO verse KA).", "" ) \ DPOINT_DEFN( OC_SP3, UI32, "Maximum number of operations for set point 3 (see also KA_SP3). This is the Y-axis for the breaker maintenace curve (CO verse KA).", "" ) \ DPOINT_DEFN( KA_SP1, UI32, "Interruption current (RMS) in milliamps for set point 1 (see also CO_SP1). This is the X-axis for the breaker maintenace curve (CO verse KA).", "" ) \ DPOINT_DEFN( KA_SP2, UI32, "Interruption current (RMS) in milliamps for set point 2 (see also CO_SP2). This is the X-axis for the breaker maintenace curve (CO verse KA).", "" ) \ DPOINT_DEFN( KA_SP3, UI32, "Interruption current (RMS) in milliamps for set point 3 (see also CO_SP3). This is the X-axis for the breaker maintenace curve (CO verse KA).", "" ) \ DPOINT_DEFN( TripCnta, UI32, "Total number of open operations for the phase A breaker.", "" ) \ DPOINT_DEFN( TripCntb, UI32, "Total number of open operations for the phase B breaker.", "" ) \ DPOINT_DEFN( TripCntc, UI32, "Total number of open operations for the phase C breaker.", "" ) \ DPOINT_DEFN( BreakerWeara, UI32, "Phase A breaker wear (min value is no wear, max value is 100%). ", "" ) \ DPOINT_DEFN( BreakerWearb, UI32, "Phase B breaker wear (min value is no wear, max value is 100%). ", "" ) \ DPOINT_DEFN( BreakerWearc, UI32, "Phase C breaker wear (min value is no wear, max value is 100%). ", "" ) \ DPOINT_DEFN( IabcRMS, TripCurrent, "Instantaneous current for phase A, B, and C.", "" ) \ DPOINT_DEFN( RelayWdResponseTime, UI32, "This point is used for checking the watch dog response time. SIM should turn off the relay if relay don't respond with in 1 second. Can use this db point to control how long relay going to response. Don't ever change the default value from 0 (only let the tester change this value after relay is running). ", "" ) \ DPOINT_DEFN( ChEvLoadProfDef, ChangeEvent, "This is used to log setting change in load profile log definition", "" ) \ DPOINT_DEFN( SimulSwitchPositionStatus, UI8, "open:0, closed:1, unavailable: 2 *** Candidate for deprecation since DB v17? ***", "" ) \ DPOINT_DEFN( ActiveSwitchPositionStatus, UI32, "** Internal to simSwRqst ONLY ** You do not need to know what this is for. You do not want to know what this is for. Move along citizen.", "" ) \ DPOINT_DEFN( RelayCTaCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative. ", "" ) \ DPOINT_DEFN( RelayCTbCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCTcCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCTaCalCoefHi, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCTbCalCoefHi, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCTcCalCoefHi, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCTnCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCVTaCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCVTbCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCVTcCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCVTrCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCVTsCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( RelayCVTtCalCoef, I32, "This value will provide a relay FPGA calibration coefficient offset value by multiply this point, final value to FPGA will be added with this offset. Note: it can be negative.", "" ) \ DPOINT_DEFN( StartRelayCalibration, UI8, "This is used a group (bulkset) notification from CMS about the relay calibration values. ", "" ) \ DPOINT_DEFN( scadaPollPeriod, UI32, "The period (in ms) between polls of the database to check for events. ", "" ) \ DPOINT_DEFN( scadaPollCount, UI32, "The count of the number of SCADA DB poll periods since startup. Changes to this counter trigger a scan of the DB to detect SCADA events. This is set by the prot process using dbSet() so notifications will be sent.", "" ) \ DPOINT_DEFN( HrmUc6th, UI32, "Uc 6th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa7th, UI32, "Ia 7th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb7th, UI32, "Ib 7th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc7th, UI32, "Ic 7th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn7th, UI32, "In 7th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa7th, UI32, "Ua 7th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb7th, UI32, "Ub 7th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc7th, UI32, "Uc 7th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa8th, UI32, "Ia 8th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb8th, UI32, "Ib 8th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc8th, UI32, "Ic 8th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn8th, UI32, "In 8th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa8th, UI32, "Ua 8th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb8th, UI32, "Ub 8th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc8th, UI32, "Uc 8th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa9th, UI32, "Ia 9th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb9th, UI32, "Ib 9th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc9th, UI32, "Ic 9th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn9th, UI32, "In 9th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa9th, UI32, "Ua 9th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb9th, UI32, "Ub 9th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc9th, UI32, "Uc 9th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa10th, UI32, "Ia 10th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb10th, UI32, "Ib 10th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc10th, UI32, "Ic 10th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn10th, UI32, "In 10th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa10th, UI32, "Ua 10th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb10th, UI32, "Ub 10th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc10th, UI32, "Uc 10th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa11th, UI32, "Ia 11th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb11th, UI32, "Ib 11th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc11th, UI32, "Ic 11th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn11th, UI32, "In 11th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa11th, UI32, "Ua 11th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb11th, UI32, "Ub 11th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc11th, UI32, "Uc 11th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa12th, UI32, "Ia 12th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb12th, UI32, "Ib 12th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc12th, UI32, "Ic 12th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn12th, UI32, "In 12th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa12th, UI32, "Ua 12th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb12th, UI32, "Ub 12th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc12th, UI32, "Uc 12th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa13th, UI32, "Ia 13th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb13th, UI32, "Ib 13th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc13th, UI32, "Ic 13th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn13th, UI32, "In 13th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa13th, UI32, "Ua 13th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb13th, UI32, "Ub 13th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc13th, UI32, "Uc 13th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa14th, UI32, "Ia 14th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb14th, UI32, "Ib 14th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc14th, UI32, "Ic 14th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn14th, UI32, "In 14th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa14th, UI32, "Ua 14th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb14th, UI32, "Ub 14th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc14th, UI32, "Uc 14th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIa15th, UI32, "Ia 15th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIb15th, UI32, "Ib 15th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIc15th, UI32, "Ic 15th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmIn15th, UI32, "In 15th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUa15th, UI32, "Ua 15th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUb15th, UI32, "Ub 15th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( HrmUc15th, UI32, "Uc 15th harmonic, as a percentage of the 1st harmonic.", "" ) \ DPOINT_DEFN( ConfirmUpdateType, UI8, "An indicator for the type of update to be confirmed. Allows selection of appropriate prompt to user on HMI.", "" ) \ DPOINT_DEFN( SigListWarning, SignalList, "All signals which are active for the warning signal.", "" ) \ DPOINT_DEFN( SigListMalfunction, SignalList, "List of all Malfunctions", "" ) \ DPOINT_DEFN( Rs232DteConfigType, SerialPortConfigType, "RS-232 Port configuration type", "" ) \ DPOINT_DEFN( USBAConfigType, UsbPortConfigType, "USB A Device config type for COMMS library", "" ) \ DPOINT_DEFN( USBBConfigType, UsbPortConfigType, "USB B Device config type for COMMS library", "" ) \ DPOINT_DEFN( USBCConfigType, UsbPortConfigType, "USB C Device config type for COMMS library", "" ) \ DPOINT_DEFN( Dnp3DataflowUnit, DataflowUnit, "For Dnp3 counter page display purpose. If using serial, we let user see the unit as in \"bytes\"; if using TCP/IP, we let user see \"packet\" as unit. ", "" ) \ DPOINT_DEFN( Dnp3RxCnt, UI32, "DNP3 RX data count for HMI's \"DNP3 counter\" page. This is not real DNP3 RX data count, but count of the physical port DNP3 is using. If using serial, this value will be in unit of \"bytes\"; if using TCP/IP, the unit will be \"packets\" as indicated in \"Dnp3DataflowUnit\" db point. ", "" ) \ DPOINT_DEFN( Dnp3TxCnt, UI32, "DNP3 TX data count for HMI's \"DNP3 counter\" page. This is not real DNP3 RX data count, but count of the physical port DNP3 is using. If using serial, this value will be in unit of \"bytes\"; if using TCP/IP, the unit will be \"packets\" as indicated in \"Dnp3DataflowUnit\" db point. ", "" ) \ DPOINT_DEFN( SigPickupPhA, Signal, "Pickup output of Phase A activated.", "" ) \ DPOINT_DEFN( SigPickupPhB, Signal, "Pickup output of Phase B activated.", "" ) \ DPOINT_DEFN( SigPickupPhC, Signal, "Pickup output of Phase C activated.", "" ) \ DPOINT_DEFN( SigPickupPhN, Signal, "Pickup output of Phase N activated.", "" ) \ DPOINT_DEFN( SigMalfComms, Signal, "SIM or I/O Module comms error", "" ) \ DPOINT_DEFN( SigMalfPanelComms, Signal, "Panel communication error", "" ) \ DPOINT_DEFN( SigMalfRc10, Signal, "Active due to Module fault and Comms error", "" ) \ DPOINT_DEFN( SigMalfModule, Signal, "Active due to Panel module, SIM disconnected, SIM fault, I/O1 fault, I/O2 fault, Relay Fault", "" ) \ DPOINT_DEFN( SigMalfPanelModule, Signal, "Internal fault of HMI (panel) module detected.", "" ) \ DPOINT_DEFN( SigMalfOsm, Signal, "Active due to 1, 2 or 3xCoil OC; Limit switch fault, Coil SC ", "" ) \ DPOINT_DEFN( SigMalfCanBus, Signal, "Active due to CAN Bus Overrun, Error, Overflow", "" ) \ DPOINT_DEFN( SigOpenPhA, Signal, "Open due to Phase A tripping", "" ) \ DPOINT_DEFN( SigOpenPhB, Signal, "Open due to Phase B tripping", "" ) \ DPOINT_DEFN( SigOpenPhC, Signal, "Open due to Phase C tripping", "" ) \ DPOINT_DEFN( SigOpenPhN, Signal, "Open due to Phase N tripping", "" ) \ DPOINT_DEFN( SigOpenABRAutoOpen, Signal, "Open due to ABR AutoOpen operation", "" ) \ DPOINT_DEFN( SigOpenUndef, Signal, "Open state recognized after On (Power) or switch reconnection.", "" ) \ DPOINT_DEFN( SigAlarmPhA, Signal, "Alarm output of Phase A activated", "" ) \ DPOINT_DEFN( SigAlarmPhB, Signal, "Alarm output of Phase B activated", "" ) \ DPOINT_DEFN( SigAlarmPhC, Signal, "Alarm output of Phase C activated", "" ) \ DPOINT_DEFN( SigAlarmPhN, Signal, "Alarm output of Phase N activated", "" ) \ DPOINT_DEFN( SigClosedABRAutoOpen, Signal, "Closed due to a ABR operation while an ABR Auto Open operatin count is active", "" ) \ DPOINT_DEFN( SmpTicks, SmpTick, "Tick counts for all monitored processes. Use DbClientId to index this array of UI32s.", "" ) \ DPOINT_DEFN( SignalBitFieldOpen, SignalBitField, "The bit field value indicating the open event categories. Applies only to phase A in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldClose, SignalBitField, "The bit field value identifying the close event categories. Applies to phase A only in single-triple configurations.", "" ) \ DPOINT_DEFN( G1_SerialDTRStatus, CommsSerialPinStatus, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_SerialDSRStatus, CommsSerialPinStatus, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_SerialCDStatus, CommsSerialPinStatus, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_SerialRTSStatus, CommsSerialPinStatus, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_SerialCTSStatus, CommsSerialPinStatus, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_SerialRIStatus, CommsSerialPinStatus, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_ConnectionStatus, CommsConnectionStatus, "Grp1 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G1_BytesReceivedStatus, UI32, "Grp1 Bytes received on a port.", "" ) \ DPOINT_DEFN( G1_BytesTransmittedStatus, UI32, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_PacketsReceivedStatus, UI32, "Grp1 Packets received on a port.", "" ) \ DPOINT_DEFN( G1_PacketsTransmittedStatus, UI32, "Grp1 Packets Transmitted", "" ) \ DPOINT_DEFN( G1_ErrorPacketsReceivedStatus, UI32, "Grp1 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G1_ErrorPacketsTransmittedStatus, UI32, "Grp1 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G1_IpAddrStatus, IpAddr, "Grp1 IPv4 Address", "" ) \ DPOINT_DEFN( G1_SubnetMaskStatus, IpAddr, "Grp1 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G1_DefaultGatewayStatus, IpAddr, "Grp1 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G1_PortDetectedType, CommsPortDetectedType, "Grp1 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G1_PortDetectedName, Str, "Grp1 USB Port detected device name", "" ) \ DPOINT_DEFN( G1_SerialTxTestStatus, OnOff, "Grp1 serial port TX testing status", "" ) \ DPOINT_DEFN( G1_PacketsReceivedStatusIPv6, UI32, "Grp1 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G1_PacketsTransmittedStatusIPv6, UI32, "Grp1 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G1_ErrorPacketsReceivedStatusIPv6, UI32, "Grp1 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G1_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp1 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G1_Ipv6AddrStatus, Ipv6Addr, "Grp1 IPv6 Address", "" ) \ DPOINT_DEFN( G1_LanPrefixLengthStatus, UI8, "Grp1 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G1_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp1 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G1_IpVersionStatus, IpVersion, "Grp1 LAN IP version", "" ) \ DPOINT_DEFN( G2_SerialDTRStatus, CommsSerialPinStatus, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_SerialDSRStatus, CommsSerialPinStatus, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_SerialCDStatus, CommsSerialPinStatus, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_SerialRTSStatus, CommsSerialPinStatus, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_SerialCTSStatus, CommsSerialPinStatus, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_SerialRIStatus, CommsSerialPinStatus, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_ConnectionStatus, CommsConnectionStatus, "Grp2 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G2_BytesReceivedStatus, UI32, "Grp2 Bytes received on a port.", "" ) \ DPOINT_DEFN( G2_BytesTransmittedStatus, UI32, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_PacketsReceivedStatus, UI32, "Grp2 Packets received on a port.", "" ) \ DPOINT_DEFN( G2_PacketsTransmittedStatus, UI32, "Grp2 Packets Transmitted", "" ) \ DPOINT_DEFN( G2_ErrorPacketsReceivedStatus, UI32, "Grp2 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G2_ErrorPacketsTransmittedStatus, UI32, "Grp2 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G2_IpAddrStatus, IpAddr, "Grp2 IPv4 Address", "" ) \ DPOINT_DEFN( G2_SubnetMaskStatus, IpAddr, "Grp2 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G2_DefaultGatewayStatus, IpAddr, "Grp2 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G2_PortDetectedType, CommsPortDetectedType, "Grp2 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G2_PortDetectedName, Str, "Grp2 USB Port detected device name", "" ) \ DPOINT_DEFN( G2_SerialTxTestStatus, OnOff, "Grp2 serial port TX testing status", "" ) \ DPOINT_DEFN( G2_PacketsReceivedStatusIPv6, UI32, "Grp2 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G2_PacketsTransmittedStatusIPv6, UI32, "Grp2 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G2_ErrorPacketsReceivedStatusIPv6, UI32, "Grp2 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G2_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp2 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G2_Ipv6AddrStatus, Ipv6Addr, "Grp2 IPv6 Address", "" ) \ DPOINT_DEFN( G2_LanPrefixLengthStatus, UI8, "Grp2 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G2_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp2 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G2_IpVersionStatus, IpVersion, "Grp2 LAN IP version", "" ) \ DPOINT_DEFN( G3_SerialDTRStatus, CommsSerialPinStatus, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_SerialDSRStatus, CommsSerialPinStatus, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_SerialCDStatus, CommsSerialPinStatus, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_SerialRTSStatus, CommsSerialPinStatus, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_SerialCTSStatus, CommsSerialPinStatus, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_SerialRIStatus, CommsSerialPinStatus, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_ConnectionStatus, CommsConnectionStatus, "Grp3 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G3_BytesReceivedStatus, UI32, "Grp3 Bytes received on a port.", "" ) \ DPOINT_DEFN( G3_BytesTransmittedStatus, UI32, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_PacketsReceivedStatus, UI32, "Grp3 Packets received on a port.", "" ) \ DPOINT_DEFN( G3_PacketsTransmittedStatus, UI32, "Grp3 Packets Transmitted", "" ) \ DPOINT_DEFN( G3_ErrorPacketsReceivedStatus, UI32, "Grp3 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G3_ErrorPacketsTransmittedStatus, UI32, "Grp3 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G3_IpAddrStatus, IpAddr, "Grp3 IPv4 Address", "" ) \ DPOINT_DEFN( G3_SubnetMaskStatus, IpAddr, "Grp3 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G3_DefaultGatewayStatus, IpAddr, "Grp3 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G3_PortDetectedType, CommsPortDetectedType, "Grp3 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G3_PortDetectedName, Str, "Grp3 USB Port detected device name", "" ) \ DPOINT_DEFN( G3_SerialTxTestStatus, OnOff, "Grp3 serial port TX testing status", "" ) \ DPOINT_DEFN( G3_PacketsReceivedStatusIPv6, UI32, "Grp3 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G3_PacketsTransmittedStatusIPv6, UI32, "Grp3 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G3_ErrorPacketsReceivedStatusIPv6, UI32, "Grp3 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G3_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp3 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G3_Ipv6AddrStatus, Ipv6Addr, "Grp3 IPv6 Address", "" ) \ DPOINT_DEFN( G3_LanPrefixLengthStatus, UI8, "Grp3 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G3_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp3 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G3_IpVersionStatus, IpVersion, "Grp3 LAN IP version", "" ) \ DPOINT_DEFN( G4_SerialDTRStatus, CommsSerialPinStatus, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_SerialDSRStatus, CommsSerialPinStatus, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_SerialCDStatus, CommsSerialPinStatus, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_SerialRTSStatus, CommsSerialPinStatus, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_SerialCTSStatus, CommsSerialPinStatus, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_SerialRIStatus, CommsSerialPinStatus, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_ConnectionStatus, CommsConnectionStatus, "Grp4 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G4_BytesReceivedStatus, UI32, "Grp4 Bytes received on a port.", "" ) \ DPOINT_DEFN( G4_BytesTransmittedStatus, UI32, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_PacketsReceivedStatus, UI32, "Grp4 Packets received on a port.", "" ) \ DPOINT_DEFN( G4_PacketsTransmittedStatus, UI32, "Grp4 Packets Transmitted", "" ) \ DPOINT_DEFN( G4_ErrorPacketsReceivedStatus, UI32, "Grp4 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G4_ErrorPacketsTransmittedStatus, UI32, "Grp4 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G4_IpAddrStatus, IpAddr, "Grp4 IPv4 Address", "" ) \ DPOINT_DEFN( G4_SubnetMaskStatus, IpAddr, "Grp4 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G4_DefaultGatewayStatus, IpAddr, "Grp4 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G4_PortDetectedType, CommsPortDetectedType, "Grp4 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G4_PortDetectedName, Str, "Grp4 USB Port detected device name", "" ) \ DPOINT_DEFN( G4_SerialTxTestStatus, OnOff, "Grp4 serial port TX testing status", "" ) \ DPOINT_DEFN( G4_PacketsReceivedStatusIPv6, UI32, "Grp4 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G4_PacketsTransmittedStatusIPv6, UI32, "Grp4 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G4_ErrorPacketsReceivedStatusIPv6, UI32, "Grp4 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G4_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp4 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G4_Ipv6AddrStatus, Ipv6Addr, "Grp4 IPv6 Address", "" ) \ DPOINT_DEFN( G4_LanPrefixLengthStatus, UI8, "Grp4 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G4_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp4 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G4_IpVersionStatus, IpVersion, "Grp4 LAN IP version", "" ) \ DPOINT_DEFN( G1_SerialPortTestCmd, Signal, "Grp1 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G1_SerialPortHangupCmd, Signal, "Grp1 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G1_BytesReceivedResetCmd, Signal, "Grp1 reset bytes Received", "" ) \ DPOINT_DEFN( G1_BytesTransmittedResetCmd, Signal, "Grp1 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G2_SerialPortTestCmd, Signal, "Grp2 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G2_SerialPortHangupCmd, Signal, "Grp2 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G2_BytesReceivedResetCmd, Signal, "Grp2 reset bytes Received", "" ) \ DPOINT_DEFN( G2_BytesTransmittedResetCmd, Signal, "Grp2 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G3_SerialPortTestCmd, Signal, "Grp3 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G3_SerialPortHangupCmd, Signal, "Grp3 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G3_BytesReceivedResetCmd, Signal, "Grp3 reset bytes Received", "" ) \ DPOINT_DEFN( G3_BytesTransmittedResetCmd, Signal, "Grp3 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G4_SerialPortTestCmd, Signal, "Grp4 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G4_SerialPortHangupCmd, Signal, "Grp4 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G4_BytesReceivedResetCmd, Signal, "Grp4 reset bytes Received", "" ) \ DPOINT_DEFN( G4_BytesTransmittedResetCmd, Signal, "Grp4 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G1_SerialBaudRate, CommsSerialBaudRate, "Grp1 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G1_SerialDuplexType, CommsSerialDuplex, "Grp1 Serial Duplex Type", "" ) \ DPOINT_DEFN( G1_SerialRTSMode, CommsSerialRTSMode, "Grp1 Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G1_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp1 Serial RTS On Level", "" ) \ DPOINT_DEFN( G1_SerialDTRMode, CommsSerialDTRMode, "Grp1 Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G1_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp1 Serial DTR On Level", "" ) \ DPOINT_DEFN( G1_SerialParity, CommsSerialParity, "Grp1 Serial Parity", "" ) \ DPOINT_DEFN( G1_SerialCTSMode, CommsSerialCTSMode, "Grp1 Clear To Send setting.", "" ) \ DPOINT_DEFN( G1_SerialDSRMode, CommsSerialDSRMode, "Grp1 Data Set Ready setting.", "" ) \ DPOINT_DEFN( G1_SerialDTRLowTime, UI32, "Grp1 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G1_SerialTxDelay, UI32, "Grp1 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G1_SerialPreTxTime, UI32, "Grp1 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G1_SerialDCDFallTime, UI32, "Grp1 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G1_SerialCharTimeout, UI32, "Grp1 Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G1_SerialPostTxTime, UI32, "Grp1 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G1_SerialInactivityTime, UI32, "Grp1 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G1_SerialCollisionAvoidance, Bool, "Grp1 Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G1_SerialMinIdleTime, UI32, "Grp1 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G1_SerialMaxRandomDelay, UI32, "Grp1 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G1_ModemPoweredFromExtLoad, Bool, "Grp1 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G1_ModemUsedWithLeasedLine, Bool, "Grp1 Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G1_ModemInitString, Str, "Grp1 Modem Init String", "" ) \ DPOINT_DEFN( G1_ModemMaxCallDuration, UI32, "Grp1 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G1_ModemResponseTime, UI32, "Grp1 Modem Response Time", "" ) \ DPOINT_DEFN( G1_ModemHangUpCommand, Str, "Grp1 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G1_ModemOffHookCommand, Str, "Grp1 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G1_ModemAutoAnswerOn, Str, "Grp1 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G1_ModemAutoAnswerOff, Str, "Grp1 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G1_RadioPreamble, Bool, "Grp1 Radio Preamble", "" ) \ DPOINT_DEFN( G1_RadioPreambleChar, UI8, "Grp1 Radio Preamble Char", "" ) \ DPOINT_DEFN( G1_RadioPreambleRepeat, UI32, "Grp1 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G1_RadioPreambleLastChar, UI8, "Grp1 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G1_LanSpecifyIP, YesNo, "Grp1 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G1_LanIPAddr, IpAddr, "Grp1 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G1_LanSubnetMask, IpAddr, "Grp1 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G1_LanDefaultGateway, IpAddr, "Grp1 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G1_WlanNetworkSSID, Str, "Grp1 Wlan Network SSID", "" ) \ DPOINT_DEFN( G1_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp1 Wlan Network Authentication", "" ) \ DPOINT_DEFN( G1_WlanDataEncryption, CommsWlanDataEncryption, "Grp1 Wlan Data Encryption", "" ) \ DPOINT_DEFN( G1_WlanNetworkKey, Str, "Grp1 Wlan Network Key", "" ) \ DPOINT_DEFN( G1_WlanKeyIndex, UI32, "Grp1 Wlan Key Index", "" ) \ DPOINT_DEFN( G1_PortLocalRemoteMode, LocalRemote, "Grp1 Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G1_GPRSServiceProvider, Str, "Grp1 GPRS service provider name", "" ) \ DPOINT_DEFN( G1_GPRSUserName, Str, "Grp1 GPRS user name", "" ) \ DPOINT_DEFN( G1_GPRSPassWord, Str, "Grp1 ", "" ) \ DPOINT_DEFN( G1_SerialDebugMode, YesNo, "Grp1 serial debug mode selection", "" ) \ DPOINT_DEFN( G1_SerialDebugFileName, Str, "Grp1 ", "" ) \ DPOINT_DEFN( G1_GPRSBaudRate, CommsSerialBaudRate, "Grp1 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G1_GPRSConnectionTimeout, UI32, "Grp1 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G1_DNP3InputPipe, Str, "Grp1 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G1_DNP3OutputPipe, Str, "Grp1 DNP3 output pipe", "" ) \ DPOINT_DEFN( G1_CMSInputPipe, Str, "Grp1 CMS Input Pipe", "" ) \ DPOINT_DEFN( G1_CMSOutputPipe, Str, "Grp1 CMS Output Pipe", "" ) \ DPOINT_DEFN( G1_HMIInputPipe, Str, "Grp1 HMI Input Pipe", "" ) \ DPOINT_DEFN( G1_HMIOutputPipe, Str, "Grp1 HMI Output Pipe", "" ) \ DPOINT_DEFN( G1_DNP3ChannelRequest, Str, "Grp1 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G1_DNP3ChannelOpen, Str, "Grp1 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G1_CMSChannelRequest, Str, "Grp1 CMS Channel Request", "" ) \ DPOINT_DEFN( G1_CMSChannelOpen, Str, "Grp1 CMS Channel Open", "" ) \ DPOINT_DEFN( G1_HMIChannelRequest, Str, "Grp1 HMI Channel Request", "" ) \ DPOINT_DEFN( G1_HMIChannelOpen, Str, "Grp1 HMI Channel Open", "" ) \ DPOINT_DEFN( G1_GPRSUseModemSetting, YesNo, "Grp1 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G1_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp1 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.\r\n\r\n*NOTE* Max value temporarily set to prevent setting of PTT RTS/CTS until we have that working.", "" ) \ DPOINT_DEFN( G1_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp1 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G1_T10BInputPipe, Str, "Grp1 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G1_T10BOutputPipe, Str, "Grp1 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G1_T10BChannelRequest, Str, "Grp1 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G1_T10BChannelOpen, Str, "Grp1 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G1_P2PInputPipe, Str, "Grp1 P2P input pipe ", "" ) \ DPOINT_DEFN( G1_P2POutputPipe, Str, "Grp1 P2P output pipe ", "" ) \ DPOINT_DEFN( G1_P2PChannelRequest, Str, "Grp1 P2P Channel Request", "" ) \ DPOINT_DEFN( G1_P2PChannelOpen, Str, "Grp1 P2P Channel Open", "" ) \ DPOINT_DEFN( G1_PGEInputPipe, Str, "Grp1 PGE Input Pipe", "" ) \ DPOINT_DEFN( G1_PGEOutputPipe, Str, "Grp1 PGE output pipe ", "" ) \ DPOINT_DEFN( G1_PGEChannelRequest, Str, "Grp1 PGE Channel Request", "" ) \ DPOINT_DEFN( G1_PGEChannelOpen, Str, "Grp1 PGE Channel Open", "" ) \ DPOINT_DEFN( G1_LanProvideIP, YesNo, "Grp1 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G1_LanSpecifyIPv6, YesNo, "Grp1 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G1_LanIPv6Addr, Ipv6Addr, "Grp1 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G1_LanPrefixLength, UI8, "Grp1 LAN Prefix Length", "" ) \ DPOINT_DEFN( G1_LanIPv6DefaultGateway, Ipv6Addr, "Grp1 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G1_LanIpVersion, IpVersion, "Grp1 LAN IP version", "" ) \ DPOINT_DEFN( G2_SerialBaudRate, CommsSerialBaudRate, "Grp2 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G2_SerialDuplexType, CommsSerialDuplex, "Grp2 Serial Duplex Type", "" ) \ DPOINT_DEFN( G2_SerialRTSMode, CommsSerialRTSMode, "Grp2 Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G2_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp2 Serial RTS On Level", "" ) \ DPOINT_DEFN( G2_SerialDTRMode, CommsSerialDTRMode, "Grp2 Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G2_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp2 Serial DTR On Level", "" ) \ DPOINT_DEFN( G2_SerialParity, CommsSerialParity, "Grp2 Serial Parity", "" ) \ DPOINT_DEFN( G2_SerialCTSMode, CommsSerialCTSMode, "Grp2 Clear To Send setting.", "" ) \ DPOINT_DEFN( G2_SerialDSRMode, CommsSerialDSRMode, "Grp2 Data Set Ready setting.", "" ) \ DPOINT_DEFN( G2_SerialDTRLowTime, UI32, "Grp2 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G2_SerialTxDelay, UI32, "Grp2 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G2_SerialPreTxTime, UI32, "Grp2 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G2_SerialDCDFallTime, UI32, "Grp2 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G2_SerialCharTimeout, UI32, "Grp2 Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G2_SerialPostTxTime, UI32, "Grp2 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G2_SerialInactivityTime, UI32, "Grp2 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G2_SerialCollisionAvoidance, Bool, "Grp2 Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G2_SerialMinIdleTime, UI32, "Grp2 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G2_SerialMaxRandomDelay, UI32, "Grp2 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G2_ModemPoweredFromExtLoad, Bool, "Grp2 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G2_ModemUsedWithLeasedLine, Bool, "Grp2 Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G2_ModemInitString, Str, "Grp2 Modem Init String", "" ) \ DPOINT_DEFN( G2_ModemMaxCallDuration, UI32, "Grp2 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G2_ModemResponseTime, UI32, "Grp2 Modem Response Time", "" ) \ DPOINT_DEFN( G2_ModemHangUpCommand, Str, "Grp2 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G2_ModemOffHookCommand, Str, "Grp2 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G2_ModemAutoAnswerOn, Str, "Grp2 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G2_ModemAutoAnswerOff, Str, "Grp2 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G2_RadioPreamble, Bool, "Grp2 Radio Preamble", "" ) \ DPOINT_DEFN( G2_RadioPreambleChar, UI8, "Grp2 Radio Preamble Char", "" ) \ DPOINT_DEFN( G2_RadioPreambleRepeat, UI32, "Grp2 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G2_RadioPreambleLastChar, UI8, "Grp2 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G2_LanSpecifyIP, YesNo, "Grp2 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G2_LanIPAddr, IpAddr, "Grp2 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G2_LanSubnetMask, IpAddr, "Grp2 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G2_LanDefaultGateway, IpAddr, "Grp2 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G2_WlanNetworkSSID, Str, "Grp2 Wlan Network SSID", "" ) \ DPOINT_DEFN( G2_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp2 Wlan Network Authentication", "" ) \ DPOINT_DEFN( G2_WlanDataEncryption, CommsWlanDataEncryption, "Grp2 Wlan Data Encryption", "" ) \ DPOINT_DEFN( G2_WlanNetworkKey, Str, "Grp2 Wlan Network Key", "" ) \ DPOINT_DEFN( G2_WlanKeyIndex, UI32, "Grp2 Wlan Key Index", "" ) \ DPOINT_DEFN( G2_PortLocalRemoteMode, LocalRemote, "Grp2 Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G2_GPRSServiceProvider, Str, "Grp2 GPRS service provider name", "" ) \ DPOINT_DEFN( G2_GPRSUserName, Str, "Grp2 GPRS user name", "" ) \ DPOINT_DEFN( G2_GPRSPassWord, Str, "Grp2 ", "" ) \ DPOINT_DEFN( G2_SerialDebugMode, YesNo, "Grp2 serial debug mode selection", "" ) \ DPOINT_DEFN( G2_SerialDebugFileName, Str, "Grp2 ", "" ) \ DPOINT_DEFN( G2_GPRSBaudRate, CommsSerialBaudRate, "Grp2 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G2_GPRSConnectionTimeout, UI32, "Grp2 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G2_DNP3InputPipe, Str, "Grp2 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G2_DNP3OutputPipe, Str, "Grp2 DNP3 output pipe", "" ) \ DPOINT_DEFN( G2_CMSInputPipe, Str, "Grp2 CMS Input Pipe", "" ) \ DPOINT_DEFN( G2_CMSOutputPipe, Str, "Grp2 CMS Output Pipe", "" ) \ DPOINT_DEFN( G2_HMIInputPipe, Str, "Grp2 HMI Input Pipe", "" ) \ DPOINT_DEFN( G2_HMIOutputPipe, Str, "Grp2 HMI Output Pipe", "" ) \ DPOINT_DEFN( G2_DNP3ChannelRequest, Str, "Grp2 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G2_DNP3ChannelOpen, Str, "Grp2 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G2_CMSChannelRequest, Str, "Grp2 CMS Channel Request", "" ) \ DPOINT_DEFN( G2_CMSChannelOpen, Str, "Grp2 CMS Channel Open", "" ) \ DPOINT_DEFN( G2_HMIChannelRequest, Str, "Grp2 HMI Channel Request", "" ) \ DPOINT_DEFN( G2_HMIChannelOpen, Str, "Grp2 HMI Channel Open", "" ) \ DPOINT_DEFN( G2_GPRSUseModemSetting, YesNo, "Grp2 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G2_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp2 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G2_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp2 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G2_T10BInputPipe, Str, "Grp2 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G2_T10BOutputPipe, Str, "Grp2 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G2_T10BChannelRequest, Str, "Grp2 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G2_T10BChannelOpen, Str, "Grp2 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G2_P2PInputPipe, Str, "Grp2 P2P input pipe ", "" ) \ DPOINT_DEFN( G2_P2POutputPipe, Str, "Grp2 P2P output pipe ", "" ) \ DPOINT_DEFN( G2_P2PChannelRequest, Str, "Grp2 P2P Channel Request", "" ) \ DPOINT_DEFN( G2_P2PChannelOpen, Str, "Grp2 P2P Channel Open", "" ) \ DPOINT_DEFN( G2_PGEInputPipe, Str, "Grp2 PGE Input Pipe", "" ) \ DPOINT_DEFN( G2_PGEOutputPipe, Str, "Grp2 PGE output pipe ", "" ) \ DPOINT_DEFN( G2_PGEChannelRequest, Str, "Grp2 PGE Channel Request", "" ) \ DPOINT_DEFN( G2_PGEChannelOpen, Str, "Grp2 PGE Channel Open", "" ) \ DPOINT_DEFN( G2_LanProvideIP, YesNo, "Grp2 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G2_LanSpecifyIPv6, YesNo, "Grp2 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G2_LanIPv6Addr, Ipv6Addr, "Grp2 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G2_LanPrefixLength, UI8, "Grp2 LAN Prefix Length", "" ) \ DPOINT_DEFN( G2_LanIPv6DefaultGateway, Ipv6Addr, "Grp2 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G2_LanIpVersion, IpVersion, "Grp2 LAN IP version", "" ) \ DPOINT_DEFN( G3_SerialBaudRate, CommsSerialBaudRate, "Grp3 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G3_SerialDuplexType, CommsSerialDuplex, "Grp3 Serial Duplex Type", "" ) \ DPOINT_DEFN( G3_SerialRTSMode, CommsSerialRTSMode, "Grp3 Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G3_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp3 Serial RTS On Level", "" ) \ DPOINT_DEFN( G3_SerialDTRMode, CommsSerialDTRMode, "Grp3 Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G3_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp3 Serial DTR On Level", "" ) \ DPOINT_DEFN( G3_SerialParity, CommsSerialParity, "Grp3 Serial Parity", "" ) \ DPOINT_DEFN( G3_SerialCTSMode, CommsSerialCTSMode, "Grp3 Clear To Send setting.", "" ) \ DPOINT_DEFN( G3_SerialDSRMode, CommsSerialDSRMode, "Grp3 Data Set Ready setting.", "" ) \ DPOINT_DEFN( G3_SerialDTRLowTime, UI32, "Grp3 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G3_SerialTxDelay, UI32, "Grp3 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G3_SerialPreTxTime, UI32, "Grp3 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G3_SerialDCDFallTime, UI32, "Grp3 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G3_SerialCharTimeout, UI32, "Grp3 Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G3_SerialPostTxTime, UI32, "Grp3 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G3_SerialInactivityTime, UI32, "Grp3 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G3_SerialCollisionAvoidance, Bool, "Grp3 Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G3_SerialMinIdleTime, UI32, "Grp3 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G3_SerialMaxRandomDelay, UI32, "Grp3 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G3_ModemPoweredFromExtLoad, Bool, "Grp3 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G3_ModemUsedWithLeasedLine, Bool, "Grp3 Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G3_ModemInitString, Str, "Grp3 Modem Init String", "" ) \ DPOINT_DEFN( G3_ModemMaxCallDuration, UI32, "Grp3 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G3_ModemResponseTime, UI32, "Grp3 Modem Response Time", "" ) \ DPOINT_DEFN( G3_ModemHangUpCommand, Str, "Grp3 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G3_ModemOffHookCommand, Str, "Grp3 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G3_ModemAutoAnswerOn, Str, "Grp3 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G3_ModemAutoAnswerOff, Str, "Grp3 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G3_RadioPreamble, Bool, "Grp3 Radio Preamble", "" ) \ DPOINT_DEFN( G3_RadioPreambleChar, UI8, "Grp3 Radio Preamble Char", "" ) \ DPOINT_DEFN( G3_RadioPreambleRepeat, UI32, "Grp3 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G3_RadioPreambleLastChar, UI8, "Grp3 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G3_LanSpecifyIP, YesNo, "Grp3 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G3_LanIPAddr, IpAddr, "Grp3 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G3_LanSubnetMask, IpAddr, "Grp3 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G3_LanDefaultGateway, IpAddr, "Grp3 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G3_WlanNetworkSSID, Str, "Grp3 Wlan Network SSID", "" ) \ DPOINT_DEFN( G3_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp3 Wlan Network Authentication", "" ) \ DPOINT_DEFN( G3_WlanDataEncryption, CommsWlanDataEncryption, "Grp3 Wlan Data Encryption", "" ) \ DPOINT_DEFN( G3_WlanNetworkKey, Str, "Grp3 Wlan Network Key", "" ) \ DPOINT_DEFN( G3_WlanKeyIndex, UI32, "Grp3 Wlan Key Index", "" ) \ DPOINT_DEFN( G3_PortLocalRemoteMode, LocalRemote, "Grp3 Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G3_GPRSServiceProvider, Str, "Grp3 GPRS service provider name", "" ) \ DPOINT_DEFN( G3_GPRSUserName, Str, "Grp3 GPRS user name", "" ) \ DPOINT_DEFN( G3_GPRSPassWord, Str, "Grp3 ", "" ) \ DPOINT_DEFN( G3_SerialDebugMode, YesNo, "Grp3 serial debug mode selection", "" ) \ DPOINT_DEFN( G3_SerialDebugFileName, Str, "Grp3 ", "" ) \ DPOINT_DEFN( G3_GPRSBaudRate, CommsSerialBaudRate, "Grp3 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G3_GPRSConnectionTimeout, UI32, "Grp3 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G3_DNP3InputPipe, Str, "Grp3 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G3_DNP3OutputPipe, Str, "Grp3 DNP3 output pipe", "" ) \ DPOINT_DEFN( G3_CMSInputPipe, Str, "Grp3 CMS Input Pipe", "" ) \ DPOINT_DEFN( G3_CMSOutputPipe, Str, "Grp3 CMS Output Pipe", "" ) \ DPOINT_DEFN( G3_HMIInputPipe, Str, "Grp3 HMI Input Pipe", "" ) \ DPOINT_DEFN( G3_HMIOutputPipe, Str, "Grp3 HMI Output Pipe", "" ) \ DPOINT_DEFN( G3_DNP3ChannelRequest, Str, "Grp3 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G3_DNP3ChannelOpen, Str, "Grp3 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G3_CMSChannelRequest, Str, "Grp3 CMS Channel Request", "" ) \ DPOINT_DEFN( G3_CMSChannelOpen, Str, "Grp3 CMS Channel Open", "" ) \ DPOINT_DEFN( G3_HMIChannelRequest, Str, "Grp3 HMI Channel Request", "" ) \ DPOINT_DEFN( G3_HMIChannelOpen, Str, "Grp3 HMI Channel Open", "" ) \ DPOINT_DEFN( G3_GPRSUseModemSetting, YesNo, "Grp3 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G3_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp3 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G3_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp3 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G3_T10BInputPipe, Str, "Grp3 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G3_T10BOutputPipe, Str, "Grp3 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G3_T10BChannelRequest, Str, "Grp3 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G3_T10BChannelOpen, Str, "Grp3 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G3_P2PInputPipe, Str, "Grp3 P2P input pipe ", "" ) \ DPOINT_DEFN( G3_P2POutputPipe, Str, "Grp3 P2P output pipe ", "" ) \ DPOINT_DEFN( G3_P2PChannelRequest, Str, "Grp3 P2P Channel Request", "" ) \ DPOINT_DEFN( G3_P2PChannelOpen, Str, "Grp3 P2P Channel Open", "" ) \ DPOINT_DEFN( G3_PGEInputPipe, Str, "Grp3 PGE Input Pipe", "" ) \ DPOINT_DEFN( G3_PGEOutputPipe, Str, "Grp3 PGE output pipe ", "" ) \ DPOINT_DEFN( G3_PGEChannelRequest, Str, "Grp3 PGE Channel Request", "" ) \ DPOINT_DEFN( G3_PGEChannelOpen, Str, "Grp3 PGE Channel Open", "" ) \ DPOINT_DEFN( G3_LanProvideIP, YesNo, "Grp3 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G3_LanSpecifyIPv6, YesNo, "Grp3 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G3_LanIPv6Addr, Ipv6Addr, "Grp3 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G3_LanPrefixLength, UI8, "Grp3 LAN Prefix Length", "" ) \ DPOINT_DEFN( G3_LanIPv6DefaultGateway, Ipv6Addr, "Grp3 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G3_LanIpVersion, IpVersion, "Grp3 LAN IP version", "" ) \ DPOINT_DEFN( G4_SerialBaudRate, CommsSerialBaudRate, "Grp4 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G4_SerialDuplexType, CommsSerialDuplex, "Grp4 Serial Duplex Type", "" ) \ DPOINT_DEFN( G4_SerialRTSMode, CommsSerialRTSMode, "Grp4 Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G4_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp4 Serial RTS On Level", "" ) \ DPOINT_DEFN( G4_SerialDTRMode, CommsSerialDTRMode, "Grp4 Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G4_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp4 Serial DTR On Level", "" ) \ DPOINT_DEFN( G4_SerialParity, CommsSerialParity, "Grp4 Serial Parity", "" ) \ DPOINT_DEFN( G4_SerialCTSMode, CommsSerialCTSMode, "Grp4 Clear To Send setting.", "" ) \ DPOINT_DEFN( G4_SerialDSRMode, CommsSerialDSRMode, "Grp4 Data Set Ready setting.", "" ) \ DPOINT_DEFN( G4_SerialDTRLowTime, UI32, "Grp4 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G4_SerialTxDelay, UI32, "Grp4 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G4_SerialPreTxTime, UI32, "Grp4 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G4_SerialDCDFallTime, UI32, "Grp4 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G4_SerialCharTimeout, UI32, "Grp4 Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G4_SerialPostTxTime, UI32, "Grp4 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G4_SerialInactivityTime, UI32, "Grp4 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G4_SerialCollisionAvoidance, Bool, "Grp4 Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G4_SerialMinIdleTime, UI32, "Grp4 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G4_SerialMaxRandomDelay, UI32, "Grp4 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G4_ModemPoweredFromExtLoad, Bool, "Grp4 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G4_ModemUsedWithLeasedLine, Bool, "Grp4 Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G4_ModemInitString, Str, "Grp4 Modem Init String", "" ) \ DPOINT_DEFN( G4_ModemMaxCallDuration, UI32, "Grp4 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G4_ModemResponseTime, UI32, "Grp4 Modem Response Time", "" ) \ DPOINT_DEFN( G4_ModemHangUpCommand, Str, "Grp4 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G4_ModemOffHookCommand, Str, "Grp4 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G4_ModemAutoAnswerOn, Str, "Grp4 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G4_ModemAutoAnswerOff, Str, "Grp4 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G4_RadioPreamble, Bool, "Grp4 Radio Preamble", "" ) \ DPOINT_DEFN( G4_RadioPreambleChar, UI8, "Grp4 Radio Preamble Char", "" ) \ DPOINT_DEFN( G4_RadioPreambleRepeat, UI32, "Grp4 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G4_RadioPreambleLastChar, UI8, "Grp4 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G4_LanSpecifyIP, YesNo, "Grp4 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G4_LanIPAddr, IpAddr, "Grp4 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G4_LanSubnetMask, IpAddr, "Grp4 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G4_LanDefaultGateway, IpAddr, "Grp4 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G4_WlanNetworkSSID, Str, "Grp4 Wlan Network SSID", "" ) \ DPOINT_DEFN( G4_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp4 Wlan Network Authentication", "" ) \ DPOINT_DEFN( G4_WlanDataEncryption, CommsWlanDataEncryption, "Grp4 Wlan Data Encryption", "" ) \ DPOINT_DEFN( G4_WlanNetworkKey, Str, "Grp4 Wlan Network Key", "" ) \ DPOINT_DEFN( G4_WlanKeyIndex, UI32, "Grp4 Wlan Key Index", "" ) \ DPOINT_DEFN( G4_PortLocalRemoteMode, LocalRemote, "Grp4 Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G4_GPRSServiceProvider, Str, "Grp4 GPRS service provider name", "" ) \ DPOINT_DEFN( G4_GPRSUserName, Str, "Grp4 GPRS user name", "" ) \ DPOINT_DEFN( G4_GPRSPassWord, Str, "Grp4 ", "" ) \ DPOINT_DEFN( G4_SerialDebugMode, YesNo, "Grp4 serial debug mode selection", "" ) \ DPOINT_DEFN( G4_SerialDebugFileName, Str, "Grp4 ", "" ) \ DPOINT_DEFN( G4_GPRSBaudRate, CommsSerialBaudRate, "Grp4 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G4_GPRSConnectionTimeout, UI32, "Grp4 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G4_DNP3InputPipe, Str, "Grp4 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G4_DNP3OutputPipe, Str, "Grp4 DNP3 output pipe", "" ) \ DPOINT_DEFN( G4_CMSInputPipe, Str, "Grp4 CMS Input Pipe", "" ) \ DPOINT_DEFN( G4_CMSOutputPipe, Str, "Grp4 CMS Output Pipe", "" ) \ DPOINT_DEFN( G4_HMIInputPipe, Str, "Grp4 HMI Input Pipe", "" ) \ DPOINT_DEFN( G4_HMIOutputPipe, Str, "Grp4 HMI Output Pipe", "" ) \ DPOINT_DEFN( G4_DNP3ChannelRequest, Str, "Grp4 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G4_DNP3ChannelOpen, Str, "Grp4 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G4_CMSChannelRequest, Str, "Grp4 CMS Channel Request", "" ) \ DPOINT_DEFN( G4_CMSChannelOpen, Str, "Grp4 CMS Channel Open", "" ) \ DPOINT_DEFN( G4_HMIChannelRequest, Str, "Grp4 HMI Channel Request", "" ) \ DPOINT_DEFN( G4_HMIChannelOpen, Str, "Grp4 HMI Channel Open", "" ) \ DPOINT_DEFN( G4_GPRSUseModemSetting, YesNo, "Grp4 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G4_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp4 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G4_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp4 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G4_T10BInputPipe, Str, "Grp4 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G4_T10BOutputPipe, Str, "Grp4 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G4_T10BChannelRequest, Str, "Grp4 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G4_T10BChannelOpen, Str, "Grp4 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G4_P2PInputPipe, Str, "Grp4 P2P input pipe ", "" ) \ DPOINT_DEFN( G4_P2POutputPipe, Str, "Grp4 P2P output pipe ", "" ) \ DPOINT_DEFN( G4_P2PChannelRequest, Str, "Grp4 P2P Channel Request", "" ) \ DPOINT_DEFN( G4_P2PChannelOpen, Str, "Grp4 P2P Channel Open", "" ) \ DPOINT_DEFN( G4_PGEInputPipe, Str, "Grp4 PGE Input Pipe", "" ) \ DPOINT_DEFN( G4_PGEOutputPipe, Str, "Grp4 PGE output pipe ", "" ) \ DPOINT_DEFN( G4_PGEChannelRequest, Str, "Grp4 PGE Channel Request", "" ) \ DPOINT_DEFN( G4_PGEChannelOpen, Str, "Grp4 PGE Channel Open", "" ) \ DPOINT_DEFN( G4_LanProvideIP, YesNo, "Grp4 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G4_LanSpecifyIPv6, YesNo, "Grp4 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G4_LanIPv6Addr, Ipv6Addr, "Grp4 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G4_LanPrefixLength, UI8, "Grp4 LAN Prefix Length", "" ) \ DPOINT_DEFN( G4_LanIPv6DefaultGateway, Ipv6Addr, "Grp4 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G4_LanIpVersion, IpVersion, "Grp4 LAN IP version", "" ) \ DPOINT_DEFN( TripMaxCurrIa, UI32, "Max phase A current at the time of the most recent trip.", "" ) \ DPOINT_DEFN( TripMaxCurrIb, UI32, "Max phase B current at the time of the most recent trip", "" ) \ DPOINT_DEFN( TripMaxCurrIc, UI32, "Max phase C current at the time of the most recent trip.", "" ) \ DPOINT_DEFN( TripMaxCurrIn, UI32, "Max neutral current at the time of the most recent trip", "" ) \ DPOINT_DEFN( TripMinVoltP2P, UI32, "Minimum phase to phase voltage as of the most recent under voltage trip", "" ) \ DPOINT_DEFN( TripMaxVoltP2P, UI32, "Maximum phase to phase voltage as of the most recent over voltage trip", "" ) \ DPOINT_DEFN( TripMinFreq, UI32, "Minimum frequency measured up to the most recent under frequency operation.", "" ) \ DPOINT_DEFN( TripMaxFreq, UI32, "Maximum frequency measured up to the most recent over frequency trip command.", "" ) \ DPOINT_DEFN( UsbDiscMountPath, Str, "If a zero length string then there is no USB disc mounted, otherwise this value specifies the absolute file system path for the mounted USB disc (e.g. /var/usb)", "" ) \ DPOINT_DEFN( CanSimPartAndSupplierCode, Str, "SIM Part And Supplier Code", "" ) \ DPOINT_DEFN( CanSimCalibrationInvalidate, UI32, "SIM Calibration Invalidate", "" ) \ DPOINT_DEFN( ProgramSimCmd, ProgramSimCmd, "Issue commands to the SIM programmer process (progSim).", "" ) \ DPOINT_DEFN( ScadaCounterFramesTx, UI32, "Count of the number of frames transmitted", "" ) \ DPOINT_DEFN( ScadaCounterFramesRx, UI32, "Count of the number of frames received", "" ) \ DPOINT_DEFN( ScadaCounterErrorLength, UI32, "Count of the number of length errors.", "" ) \ DPOINT_DEFN( ScadaCounterErrorCrc, UI32, "Count of the number of CRC errors.", "" ) \ DPOINT_DEFN( ScadaCounterBufferC1, UI32, "Count of the number of buffered class 1 events.", "" ) \ DPOINT_DEFN( ScadaCounterBufferC2, UI32, "Count of the number of buffered class 2 events.", "" ) \ DPOINT_DEFN( ScadaCounterBufferC3, UI32, "Count of the number of buffered class 3 events.", "" ) \ DPOINT_DEFN( CommsChEvNonGroup, ChangeEvent, "This datapoint is used to log 'batch' changes to non-grouped comms settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp1, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 1 settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp2, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 2 settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp3, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 3 settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp4, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 4 settings.", "" ) \ DPOINT_DEFN( SigPickupLSD, Signal, "Pickup output of Loss of Supply Detection elemet activated.", "" ) \ DPOINT_DEFN( SigCtrlLocalOn, Signal, "Control mode is set to Local", "" ) \ DPOINT_DEFN( SigCtrlTestBit, Signal, "The test bit, available for testing of SCADA controls.", "" ) \ DPOINT_DEFN( SigUpsPowerUp, Signal, "UPS Power Up", "" ) \ DPOINT_DEFN( SigLineSupplyStatusNormal, Signal, "Line Supply Normal. Not currently used.", "" ) \ DPOINT_DEFN( SigLineSupplyStatusOff, Signal, "Line Supply Off", "" ) \ DPOINT_DEFN( SigLineSupplyStatusHigh, Signal, "Line Supply High.\r\n\r\nNot currently used.", "" ) \ DPOINT_DEFN( SigOperationFaultCap, Signal, "SIM operation fault due to capacitor voltage drop", "" ) \ DPOINT_DEFN( SigRelayCANMessagebufferoverflow, Signal, "CAN Buf Overflow (from Relay Side)", "" ) \ DPOINT_DEFN( SigRelayCANControllerError, Signal, "CAN Bus Error (from Relay Side)", "" ) \ DPOINT_DEFN( UsbDiscCmd, UsbDiscCmd, "Specify the command which should be performed by the usbcopy process.", "" ) \ DPOINT_DEFN( UsbDiscCmdPercent, UI8, "Percentage complete for the current USB copy command (0 not started, 100 complete).", "" ) \ DPOINT_DEFN( UsbDiscStatus, UsbDiscStatus, "Status of the USB disc copy process (usbcopy).", "" ) \ DPOINT_DEFN( UsbDiscUpdateCount, UI32, "Number of upgrade files found on the USB disc which usbcopy can move to /var/nand/staging. Set by usbcopy when a disc is inserted.", "" ) \ DPOINT_DEFN( UsbDiscUpdateVersions, StrArray, "Version strings for all updates found on the USB disc. Set by usbcopy when a disc is inserted.", "" ) \ DPOINT_DEFN( UsbDiscError, UpdateError, "Error messages generated by usbcopy which are displayed on the user interface.", "" ) \ DPOINT_DEFN( UpdateFilesReady, Bool, "Notify the update process that new update files are ready. A process sets this DPID to true when it has added new files to the staging directory (/var/nand/staging).", "" ) \ DPOINT_DEFN( UpdateBootOk, Bool, "Set to true by SMP after it determines the relay image has booted okay. Typically this is ~150s after starting up (refer SMP_BOOT_OK_TIME_S). Setting this value will force the update process to delete files, use with caution.", "" ) \ DPOINT_DEFN( IdOsmNumber, SerialNumber, "13 character serial number for the switchgear. For single-triple, this is the serial number of the first switch.", "" ) \ DPOINT_DEFN( PanelDelayedCloseRemain, UI16, "Number of seconds remaining before delayed close is asserted (zero means no delayed close active).", "" ) \ DPOINT_DEFN( FactorySettings, EnDis, "If enabled additional factory settings will be presented on the user interface.", "" ) \ DPOINT_DEFN( G5_SerialDTRStatus, CommsSerialPinStatus, "Grp5 No description", "" ) \ DPOINT_DEFN( G5_SerialDSRStatus, CommsSerialPinStatus, "Grp5 No description", "" ) \ DPOINT_DEFN( G5_SerialCDStatus, CommsSerialPinStatus, "Grp5 No description", "" ) \ DPOINT_DEFN( G5_SerialRTSStatus, CommsSerialPinStatus, "Grp5 No description", "" ) \ DPOINT_DEFN( G5_SerialCTSStatus, CommsSerialPinStatus, "Grp5 No description", "" ) \ DPOINT_DEFN( G5_SerialRIStatus, CommsSerialPinStatus, "Grp5 No description", "" ) \ DPOINT_DEFN( G5_ConnectionStatus, CommsConnectionStatus, "Grp5 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G5_BytesReceivedStatus, UI32, "Grp5 Bytes received on a port.", "" ) \ DPOINT_DEFN( G5_BytesTransmittedStatus, UI32, "Grp5 No description", "" ) \ DPOINT_DEFN( G5_PacketsReceivedStatus, UI32, "Grp5 Packets received on a port.", "" ) \ DPOINT_DEFN( G5_PacketsTransmittedStatus, UI32, "Grp5 Packets Transmitted", "" ) \ DPOINT_DEFN( G5_ErrorPacketsReceivedStatus, UI32, "Grp5 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G5_ErrorPacketsTransmittedStatus, UI32, "Grp5 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G5_IpAddrStatus, IpAddr, "Grp5 IPv4 Address", "" ) \ DPOINT_DEFN( G5_SubnetMaskStatus, IpAddr, "Grp5 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G5_DefaultGatewayStatus, IpAddr, "Grp5 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G5_PortDetectedType, CommsPortDetectedType, "Grp5 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G5_PortDetectedName, Str, "Grp5 USB Port detected device name", "" ) \ DPOINT_DEFN( G5_SerialTxTestStatus, OnOff, "Grp5 serial port TX testing status", "" ) \ DPOINT_DEFN( G5_PacketsReceivedStatusIPv6, UI32, "Grp5 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G5_PacketsTransmittedStatusIPv6, UI32, "Grp5 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G5_ErrorPacketsReceivedStatusIPv6, UI32, "Grp5 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G5_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp5 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G5_Ipv6AddrStatus, Ipv6Addr, "Grp5 IPv6 Address", "" ) \ DPOINT_DEFN( G5_LanPrefixLengthStatus, UI8, "Grp5 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G5_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp5 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G5_IpVersionStatus, IpVersion, "Grp5 LAN IP version", "" ) \ DPOINT_DEFN( G6_SerialDTRStatus, CommsSerialPinStatus, "Grp6 No description", "" ) \ DPOINT_DEFN( G6_SerialDSRStatus, CommsSerialPinStatus, "Grp6 No description", "" ) \ DPOINT_DEFN( G6_SerialCDStatus, CommsSerialPinStatus, "Grp6 No description", "" ) \ DPOINT_DEFN( G6_SerialRTSStatus, CommsSerialPinStatus, "Grp6 No description", "" ) \ DPOINT_DEFN( G6_SerialCTSStatus, CommsSerialPinStatus, "Grp6 No description", "" ) \ DPOINT_DEFN( G6_SerialRIStatus, CommsSerialPinStatus, "Grp6 No description", "" ) \ DPOINT_DEFN( G6_ConnectionStatus, CommsConnectionStatus, "Grp6 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G6_BytesReceivedStatus, UI32, "Grp6 Bytes received on a port.", "" ) \ DPOINT_DEFN( G6_BytesTransmittedStatus, UI32, "Grp6 No description", "" ) \ DPOINT_DEFN( G6_PacketsReceivedStatus, UI32, "Grp6 Packets received on a port.", "" ) \ DPOINT_DEFN( G6_PacketsTransmittedStatus, UI32, "Grp6 Packets Transmitted", "" ) \ DPOINT_DEFN( G6_ErrorPacketsReceivedStatus, UI32, "Grp6 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G6_ErrorPacketsTransmittedStatus, UI32, "Grp6 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G6_IpAddrStatus, IpAddr, "Grp6 IPv4 Address", "" ) \ DPOINT_DEFN( G6_SubnetMaskStatus, IpAddr, "Grp6 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G6_DefaultGatewayStatus, IpAddr, "Grp6 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G6_PortDetectedType, CommsPortDetectedType, "Grp6 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G6_PortDetectedName, Str, "Grp6 USB Port detected device name", "" ) \ DPOINT_DEFN( G6_SerialTxTestStatus, OnOff, "Grp6 serial port TX testing status", "" ) \ DPOINT_DEFN( G6_PacketsReceivedStatusIPv6, UI32, "Grp6 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G6_PacketsTransmittedStatusIPv6, UI32, "Grp6 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G6_ErrorPacketsReceivedStatusIPv6, UI32, "Grp6 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G6_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp6 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G6_Ipv6AddrStatus, Ipv6Addr, "Grp6 IPv6 Address", "" ) \ DPOINT_DEFN( G6_LanPrefixLengthStatus, UI8, "Grp6 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G6_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp6 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G6_IpVersionStatus, IpVersion, "Grp6 LAN IP version", "" ) \ DPOINT_DEFN( G7_SerialDTRStatus, CommsSerialPinStatus, "Grp7 No description", "" ) \ DPOINT_DEFN( G7_SerialDSRStatus, CommsSerialPinStatus, "Grp7 No description", "" ) \ DPOINT_DEFN( G7_SerialCDStatus, CommsSerialPinStatus, "Grp7 No description", "" ) \ DPOINT_DEFN( G7_SerialRTSStatus, CommsSerialPinStatus, "Grp7 No description", "" ) \ DPOINT_DEFN( G7_SerialCTSStatus, CommsSerialPinStatus, "Grp7 No description", "" ) \ DPOINT_DEFN( G7_SerialRIStatus, CommsSerialPinStatus, "Grp7 No description", "" ) \ DPOINT_DEFN( G7_ConnectionStatus, CommsConnectionStatus, "Grp7 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G7_BytesReceivedStatus, UI32, "Grp7 Bytes received on a port.", "" ) \ DPOINT_DEFN( G7_BytesTransmittedStatus, UI32, "Grp7 No description", "" ) \ DPOINT_DEFN( G7_PacketsReceivedStatus, UI32, "Grp7 Packets received on a port.", "" ) \ DPOINT_DEFN( G7_PacketsTransmittedStatus, UI32, "Grp7 Packets Transmitted", "" ) \ DPOINT_DEFN( G7_ErrorPacketsReceivedStatus, UI32, "Grp7 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G7_ErrorPacketsTransmittedStatus, UI32, "Grp7 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G7_IpAddrStatus, IpAddr, "Grp7 IPv4 Address", "" ) \ DPOINT_DEFN( G7_SubnetMaskStatus, IpAddr, "Grp7 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G7_DefaultGatewayStatus, IpAddr, "Grp7 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G7_PortDetectedType, CommsPortDetectedType, "Grp7 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G7_PortDetectedName, Str, "Grp7 USB Port detected device name", "" ) \ DPOINT_DEFN( G7_SerialTxTestStatus, OnOff, "Grp7 serial port TX testing status", "" ) \ DPOINT_DEFN( G7_PacketsReceivedStatusIPv6, UI32, "Grp7 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G7_PacketsTransmittedStatusIPv6, UI32, "Grp7 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G7_ErrorPacketsReceivedStatusIPv6, UI32, "Grp7 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G7_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp7 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G7_Ipv6AddrStatus, Ipv6Addr, "Grp7 IPv6 Address", "" ) \ DPOINT_DEFN( G7_LanPrefixLengthStatus, UI8, "Grp7 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G7_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp7 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G7_IpVersionStatus, IpVersion, "Grp7 LAN IP version", "" ) \ DPOINT_DEFN( G8_SerialDTRStatus, CommsSerialPinStatus, "Grp8 No description", "" ) \ DPOINT_DEFN( G8_SerialDSRStatus, CommsSerialPinStatus, "Grp8 No description", "" ) \ DPOINT_DEFN( G8_SerialCDStatus, CommsSerialPinStatus, "Grp8 No description", "" ) \ DPOINT_DEFN( G8_SerialRTSStatus, CommsSerialPinStatus, "Grp8 No description", "" ) \ DPOINT_DEFN( G8_SerialCTSStatus, CommsSerialPinStatus, "Grp8 No description", "" ) \ DPOINT_DEFN( G8_SerialRIStatus, CommsSerialPinStatus, "Grp8 No description", "" ) \ DPOINT_DEFN( G8_ConnectionStatus, CommsConnectionStatus, "Grp8 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G8_BytesReceivedStatus, UI32, "Grp8 Bytes received on a port.", "" ) \ DPOINT_DEFN( G8_BytesTransmittedStatus, UI32, "Grp8 No description", "" ) \ DPOINT_DEFN( G8_PacketsReceivedStatus, UI32, "Grp8 Packets received on a port.", "" ) \ DPOINT_DEFN( G8_PacketsTransmittedStatus, UI32, "Grp8 Packets Transmitted", "" ) \ DPOINT_DEFN( G8_ErrorPacketsReceivedStatus, UI32, "Grp8 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G8_ErrorPacketsTransmittedStatus, UI32, "Grp8 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G8_IpAddrStatus, IpAddr, "Grp8 IPv4 Address", "" ) \ DPOINT_DEFN( G8_SubnetMaskStatus, IpAddr, "Grp8 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G8_DefaultGatewayStatus, IpAddr, "Grp8 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G8_PortDetectedType, CommsPortDetectedType, "Grp8 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G8_PortDetectedName, Str, "Grp8 USB Port detected device name", "" ) \ DPOINT_DEFN( G8_SerialTxTestStatus, OnOff, "Grp8 serial port TX testing status", "" ) \ DPOINT_DEFN( G8_PacketsReceivedStatusIPv6, UI32, "Grp8 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G8_PacketsTransmittedStatusIPv6, UI32, "Grp8 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G8_ErrorPacketsReceivedStatusIPv6, UI32, "Grp8 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G8_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp8 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G8_Ipv6AddrStatus, Ipv6Addr, "Grp8 IPv6 Address", "" ) \ DPOINT_DEFN( G8_LanPrefixLengthStatus, UI8, "Grp8 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G8_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp8 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G8_IpVersionStatus, IpVersion, "Grp8 LAN IP version", "" ) \ DPOINT_DEFN( G5_SerialPortTestCmd, Signal, "Grp5 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G5_SerialPortHangupCmd, Signal, "Grp5 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G5_BytesReceivedResetCmd, Signal, "Grp5 reset bytes Received", "" ) \ DPOINT_DEFN( G5_BytesTransmittedResetCmd, Signal, "Grp5 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G6_SerialPortTestCmd, Signal, "Grp6 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G6_SerialPortHangupCmd, Signal, "Grp6 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G6_BytesReceivedResetCmd, Signal, "Grp6 reset bytes Received", "" ) \ DPOINT_DEFN( G6_BytesTransmittedResetCmd, Signal, "Grp6 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G7_SerialPortTestCmd, Signal, "Grp7 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G7_SerialPortHangupCmd, Signal, "Grp7 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G7_BytesReceivedResetCmd, Signal, "Grp7 reset bytes Received", "" ) \ DPOINT_DEFN( G7_BytesTransmittedResetCmd, Signal, "Grp7 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G8_SerialPortTestCmd, Signal, "Grp8 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G8_SerialPortHangupCmd, Signal, "Grp8 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G8_BytesReceivedResetCmd, Signal, "Grp8 reset bytes Received", "" ) \ DPOINT_DEFN( G8_BytesTransmittedResetCmd, Signal, "Grp8 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G5_SerialBaudRate, CommsSerialBaudRate, "Grp5 Serial Baud Rate (default value is 57600)", "" ) \ DPOINT_DEFN( G5_SerialDuplexType, CommsSerialDuplex, "Grp5_Serial Duplex Type", "" ) \ DPOINT_DEFN( G5_SerialRTSMode, CommsSerialRTSMode, "Grp5_Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G5_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp5_Serial RTS On Level", "" ) \ DPOINT_DEFN( G5_SerialDTRMode, CommsSerialDTRMode, "Grp5_Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G5_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp5_Serial DTR On Level", "" ) \ DPOINT_DEFN( G5_SerialParity, CommsSerialParity, "Grp5_Serial Parity", "" ) \ DPOINT_DEFN( G5_SerialCTSMode, CommsSerialCTSMode, "Grp5_Clear To Send setting.", "" ) \ DPOINT_DEFN( G5_SerialDSRMode, CommsSerialDSRMode, "Grp5_Data Set Ready setting.", "" ) \ DPOINT_DEFN( G5_SerialDTRLowTime, UI32, "Grp5 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G5_SerialTxDelay, UI32, "Grp5 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G5_SerialPreTxTime, UI32, "Grp5 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G5_SerialDCDFallTime, UI32, "Grp5 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G5_SerialCharTimeout, UI32, "Grp5_Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G5_SerialPostTxTime, UI32, "Grp5 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G5_SerialInactivityTime, UI32, "Grp5 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G5_SerialCollisionAvoidance, Bool, "Grp5_Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G5_SerialMinIdleTime, UI32, "Grp5 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G5_SerialMaxRandomDelay, UI32, "Grp5 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G5_ModemPoweredFromExtLoad, Bool, "Grp5 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G5_ModemUsedWithLeasedLine, Bool, "Grp5_Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G5_ModemInitString, Str, "Grp5 Modem Init String", "" ) \ DPOINT_DEFN( G5_ModemMaxCallDuration, UI32, "Grp5 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G5_ModemResponseTime, UI32, "Grp5 Modem Response Time", "" ) \ DPOINT_DEFN( G5_ModemHangUpCommand, Str, "Grp5 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G5_ModemOffHookCommand, Str, "Grp5 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G5_ModemAutoAnswerOn, Str, "Grp5 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G5_ModemAutoAnswerOff, Str, "Grp5 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G5_RadioPreamble, Bool, "Grp5 Radio Preamble", "" ) \ DPOINT_DEFN( G5_RadioPreambleChar, UI8, "Grp5 Radio Preamble Char", "" ) \ DPOINT_DEFN( G5_RadioPreambleRepeat, UI32, "Grp5 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G5_RadioPreambleLastChar, UI8, "Grp5 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G5_LanSpecifyIP, YesNo, "Grp5 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G5_LanIPAddr, IpAddr, "Grp5 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G5_LanSubnetMask, IpAddr, "Grp5 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G5_LanDefaultGateway, IpAddr, "Grp5 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G5_WlanNetworkSSID, Str, "Grp5 Wlan Network SSID", "" ) \ DPOINT_DEFN( G5_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp5_Wlan Network Authentication", "" ) \ DPOINT_DEFN( G5_WlanDataEncryption, CommsWlanDataEncryption, "Grp5_Wlan Data Encryption", "" ) \ DPOINT_DEFN( G5_WlanNetworkKey, Str, "Grp5_Wlan Network Key", "" ) \ DPOINT_DEFN( G5_WlanKeyIndex, UI32, "Grp5_Wlan Key Index", "" ) \ DPOINT_DEFN( G5_PortLocalRemoteMode, LocalRemote, "Grp5_Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G5_GPRSServiceProvider, Str, "Grp5_GPRS service provider name", "" ) \ DPOINT_DEFN( G5_GPRSUserName, Str, "Grp5_GPRS user name", "" ) \ DPOINT_DEFN( G5_GPRSPassWord, Str, "Grp5_", "" ) \ DPOINT_DEFN( G5_SerialDebugMode, YesNo, "Grp5 serial debug mode selection", "" ) \ DPOINT_DEFN( G5_SerialDebugFileName, Str, "Grp5_", "" ) \ DPOINT_DEFN( G5_GPRSBaudRate, CommsSerialBaudRate, "Grp5 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G5_GPRSConnectionTimeout, UI32, "Grp5 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G5_DNP3InputPipe, Str, "Grp5 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G5_DNP3OutputPipe, Str, "Grp5 DNP3 output pipe", "" ) \ DPOINT_DEFN( G5_CMSInputPipe, Str, "Grp5 CMS Input Pipe", "" ) \ DPOINT_DEFN( G5_CMSOutputPipe, Str, "Grp5 CMS Output Pipe", "" ) \ DPOINT_DEFN( G5_HMIInputPipe, Str, "Grp5 HMI Input Pipe", "" ) \ DPOINT_DEFN( G5_HMIOutputPipe, Str, "Grp5 HMI Output Pipe", "" ) \ DPOINT_DEFN( G5_DNP3ChannelRequest, Str, "Grp5 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G5_DNP3ChannelOpen, Str, "Grp5 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G5_CMSChannelRequest, Str, "Grp5 CMS Channel Request", "" ) \ DPOINT_DEFN( G5_CMSChannelOpen, Str, "Grp5 CMS Channel Open", "" ) \ DPOINT_DEFN( G5_HMIChannelRequest, Str, "Grp5 HMI Channel Request", "" ) \ DPOINT_DEFN( G5_HMIChannelOpen, Str, "Grp5 HMI Channel Open", "" ) \ DPOINT_DEFN( G5_GPRSUseModemSetting, YesNo, "Grp5 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G5_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp5 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G5_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp5 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G5_T10BInputPipe, Str, "Grp5 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G5_T10BOutputPipe, Str, "Grp5 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G5_T10BChannelRequest, Str, "Grp5 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G5_T10BChannelOpen, Str, "Grp5 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G5_P2PInputPipe, Str, "Grp5 P2P input pipe ", "" ) \ DPOINT_DEFN( G5_P2POutputPipe, Str, "Grp5 P2P output pipe ", "" ) \ DPOINT_DEFN( G5_P2PChannelRequest, Str, "Grp5 P2P Channel Request", "" ) \ DPOINT_DEFN( G5_P2PChannelOpen, Str, "Grp5 P2P Channel Open", "" ) \ DPOINT_DEFN( G5_PGEInputPipe, Str, "Grp5 PGE Input Pipe", "" ) \ DPOINT_DEFN( G5_PGEOutputPipe, Str, "Grp5 PGE output pipe ", "" ) \ DPOINT_DEFN( G5_PGEChannelRequest, Str, "Grp5 PGE Channel Request", "" ) \ DPOINT_DEFN( G5_PGEChannelOpen, Str, "Grp5 PGE Channel Open", "" ) \ DPOINT_DEFN( G5_LanProvideIP, YesNo, "Grp5 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G5_LanSpecifyIPv6, YesNo, "Grp5 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G5_LanIPv6Addr, Ipv6Addr, "Grp5 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G5_LanPrefixLength, UI8, "Grp5 LAN Prefix Length", "" ) \ DPOINT_DEFN( G5_LanIPv6DefaultGateway, Ipv6Addr, "Grp5 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G5_LanIpVersion, IpVersion, "Grp5 LAN IP version", "" ) \ DPOINT_DEFN( G6_SerialBaudRate, CommsSerialBaudRate, "Grp6 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G6_SerialDuplexType, CommsSerialDuplex, "Grp6_Serial Duplex Type", "" ) \ DPOINT_DEFN( G6_SerialRTSMode, CommsSerialRTSMode, "Grp6_Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G6_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp6_Serial RTS On Level", "" ) \ DPOINT_DEFN( G6_SerialDTRMode, CommsSerialDTRMode, "Grp6_Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G6_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp6_Serial DTR On Level", "" ) \ DPOINT_DEFN( G6_SerialParity, CommsSerialParity, "Grp6_Serial Parity", "" ) \ DPOINT_DEFN( G6_SerialCTSMode, CommsSerialCTSMode, "Grp6_Clear To Send setting.", "" ) \ DPOINT_DEFN( G6_SerialDSRMode, CommsSerialDSRMode, "Grp6_Data Set Ready setting.", "" ) \ DPOINT_DEFN( G6_SerialDTRLowTime, UI32, "Grp6 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G6_SerialTxDelay, UI32, "Grp6 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G6_SerialPreTxTime, UI32, "Grp6 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G6_SerialDCDFallTime, UI32, "Grp6 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G6_SerialCharTimeout, UI32, "Grp6_Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G6_SerialPostTxTime, UI32, "Grp6 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G6_SerialInactivityTime, UI32, "Grp6 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G6_SerialCollisionAvoidance, Bool, "Grp6_Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G6_SerialMinIdleTime, UI32, "Grp6 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G6_SerialMaxRandomDelay, UI32, "Grp6 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G6_ModemPoweredFromExtLoad, Bool, "Grp6 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G6_ModemUsedWithLeasedLine, Bool, "Grp6_Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G6_ModemInitString, Str, "Grp6 Modem Init String", "" ) \ DPOINT_DEFN( G6_ModemMaxCallDuration, UI32, "Grp6 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G6_ModemResponseTime, UI32, "Grp6 Modem Response Time", "" ) \ DPOINT_DEFN( G6_ModemHangUpCommand, Str, "Grp6 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G6_ModemOffHookCommand, Str, "Grp6 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G6_ModemAutoAnswerOn, Str, "Grp6 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G6_ModemAutoAnswerOff, Str, "Grp6 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G6_RadioPreamble, Bool, "Grp6 Radio Preamble", "" ) \ DPOINT_DEFN( G6_RadioPreambleChar, UI8, "Grp6 Radio Preamble Char", "" ) \ DPOINT_DEFN( G6_RadioPreambleRepeat, UI32, "Grp6 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G6_RadioPreambleLastChar, UI8, "Grp6 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G6_LanSpecifyIP, YesNo, "Grp6 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G6_LanIPAddr, IpAddr, "Grp6 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G6_LanSubnetMask, IpAddr, "Grp6 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G6_LanDefaultGateway, IpAddr, "Grp6 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G6_WlanNetworkSSID, Str, "Grp6 Wlan Network SSID", "" ) \ DPOINT_DEFN( G6_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp6_Wlan Network Authentication", "" ) \ DPOINT_DEFN( G6_WlanDataEncryption, CommsWlanDataEncryption, "Grp6_Wlan Data Encryption", "" ) \ DPOINT_DEFN( G6_WlanNetworkKey, Str, "Grp6_Wlan Network Key", "" ) \ DPOINT_DEFN( G6_WlanKeyIndex, UI32, "Grp6_Wlan Key Index", "" ) \ DPOINT_DEFN( G6_PortLocalRemoteMode, LocalRemote, "Grp6_Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G6_GPRSServiceProvider, Str, "Grp6_GPRS service provider name", "" ) \ DPOINT_DEFN( G6_GPRSUserName, Str, "Grp6_GPRS user name", "" ) \ DPOINT_DEFN( G6_GPRSPassWord, Str, "Grp6_", "" ) \ DPOINT_DEFN( G6_SerialDebugMode, YesNo, "Grp6 serial debug mode selection", "" ) \ DPOINT_DEFN( G6_SerialDebugFileName, Str, "Grp6_", "" ) \ DPOINT_DEFN( G6_GPRSBaudRate, CommsSerialBaudRate, "Grp6 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G6_GPRSConnectionTimeout, UI32, "Grp6 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G6_DNP3InputPipe, Str, "Grp6 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G6_DNP3OutputPipe, Str, "Grp6 DNP3 output pipe", "" ) \ DPOINT_DEFN( G6_CMSInputPipe, Str, "Grp6 CMS Input Pipe", "" ) \ DPOINT_DEFN( G6_CMSOutputPipe, Str, "Grp6 CMS Output Pipe", "" ) \ DPOINT_DEFN( G6_HMIInputPipe, Str, "Grp6 HMI Input Pipe", "" ) \ DPOINT_DEFN( G6_HMIOutputPipe, Str, "Grp6 HMI Output Pipe", "" ) \ DPOINT_DEFN( G6_DNP3ChannelRequest, Str, "Grp6 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G6_DNP3ChannelOpen, Str, "Grp6 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G6_CMSChannelRequest, Str, "Grp6 CMS Channel Request", "" ) \ DPOINT_DEFN( G6_CMSChannelOpen, Str, "Grp6 CMS Channel Open", "" ) \ DPOINT_DEFN( G6_HMIChannelRequest, Str, "Grp6 HMI Channel Request", "" ) \ DPOINT_DEFN( G6_HMIChannelOpen, Str, "Grp6 HMI Channel Open", "" ) \ DPOINT_DEFN( G6_GPRSUseModemSetting, YesNo, "Grp6 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G6_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp6 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G6_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp6 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G6_T10BInputPipe, Str, "Grp6 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G6_T10BOutputPipe, Str, "Grp6 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G6_T10BChannelRequest, Str, "Grp6 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G6_T10BChannelOpen, Str, "Grp6 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G6_P2PInputPipe, Str, "Grp6 P2P input pipe ", "" ) \ DPOINT_DEFN( G6_P2POutputPipe, Str, "Grp6 P2P output pipe ", "" ) \ DPOINT_DEFN( G6_P2PChannelRequest, Str, "Grp6 P2P Channel Request", "" ) \ DPOINT_DEFN( G6_P2PChannelOpen, Str, "Grp6 P2P Channel Open", "" ) \ DPOINT_DEFN( G6_PGEInputPipe, Str, "Grp6 PGE Input Pipe", "" ) \ DPOINT_DEFN( G6_PGEOutputPipe, Str, "Grp6 PGE output pipe ", "" ) \ DPOINT_DEFN( G6_PGEChannelRequest, Str, "Grp6 PGE Channel Request", "" ) \ DPOINT_DEFN( G6_PGEChannelOpen, Str, "Grp6 PGE Channel Open", "" ) \ DPOINT_DEFN( G6_LanProvideIP, YesNo, "Grp6 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G6_LanSpecifyIPv6, YesNo, "Grp6 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G6_LanIPv6Addr, Ipv6Addr, "Grp6 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G6_LanPrefixLength, UI8, "Grp6 LAN Prefix Length", "" ) \ DPOINT_DEFN( G6_LanIPv6DefaultGateway, Ipv6Addr, "Grp6 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G6_LanIpVersion, IpVersion, "Grp6 LAN IP version", "" ) \ DPOINT_DEFN( G7_SerialBaudRate, CommsSerialBaudRate, "Grp7 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G7_SerialDuplexType, CommsSerialDuplex, "Grp7_Serial Duplex Type", "" ) \ DPOINT_DEFN( G7_SerialRTSMode, CommsSerialRTSMode, "Grp7_Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G7_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp7_Serial RTS On Level", "" ) \ DPOINT_DEFN( G7_SerialDTRMode, CommsSerialDTRMode, "Grp7_Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G7_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp7_Serial DTR On Level", "" ) \ DPOINT_DEFN( G7_SerialParity, CommsSerialParity, "Grp7_Serial Parity", "" ) \ DPOINT_DEFN( G7_SerialCTSMode, CommsSerialCTSMode, "Grp7_Clear To Send setting.", "" ) \ DPOINT_DEFN( G7_SerialDSRMode, CommsSerialDSRMode, "Grp7_Data Set Ready setting.", "" ) \ DPOINT_DEFN( G7_SerialDTRLowTime, UI32, "Grp7 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G7_SerialTxDelay, UI32, "Grp7 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G7_SerialPreTxTime, UI32, "Grp7 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G7_SerialDCDFallTime, UI32, "Grp7 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G7_SerialCharTimeout, UI32, "Grp7_Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G7_SerialPostTxTime, UI32, "Grp7 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G7_SerialInactivityTime, UI32, "Grp7 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G7_SerialCollisionAvoidance, Bool, "Grp7_Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G7_SerialMinIdleTime, UI32, "Grp7 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G7_SerialMaxRandomDelay, UI32, "Grp7 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G7_ModemPoweredFromExtLoad, Bool, "Grp7 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G7_ModemUsedWithLeasedLine, Bool, "Grp7_Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G7_ModemInitString, Str, "Grp7 Modem Init String", "" ) \ DPOINT_DEFN( G7_ModemMaxCallDuration, UI32, "Grp7 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G7_ModemResponseTime, UI32, "Grp7 Modem Response Time", "" ) \ DPOINT_DEFN( G7_ModemHangUpCommand, Str, "Grp7 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G7_ModemOffHookCommand, Str, "Grp7 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G7_ModemAutoAnswerOn, Str, "Grp7 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G7_ModemAutoAnswerOff, Str, "Grp7 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G7_RadioPreamble, Bool, "Grp7 Radio Preamble", "" ) \ DPOINT_DEFN( G7_RadioPreambleChar, UI8, "Grp7 Radio Preamble Char", "" ) \ DPOINT_DEFN( G7_RadioPreambleRepeat, UI32, "Grp7 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G7_RadioPreambleLastChar, UI8, "Grp7 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G7_LanSpecifyIP, YesNo, "Grp7 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G7_LanIPAddr, IpAddr, "Grp7 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G7_LanSubnetMask, IpAddr, "Grp7 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G7_LanDefaultGateway, IpAddr, "Grp7 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G7_WlanNetworkSSID, Str, "Grp7 Wlan Network SSID", "" ) \ DPOINT_DEFN( G7_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp7_Wlan Network Authentication", "" ) \ DPOINT_DEFN( G7_WlanDataEncryption, CommsWlanDataEncryption, "Grp7_Wlan Data Encryption", "" ) \ DPOINT_DEFN( G7_WlanNetworkKey, Str, "Grp7_Wlan Network Key", "" ) \ DPOINT_DEFN( G7_WlanKeyIndex, UI32, "Grp7_Wlan Key Index", "" ) \ DPOINT_DEFN( G7_PortLocalRemoteMode, LocalRemote, "Grp7_Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G7_GPRSServiceProvider, Str, "Grp7_GPRS service provider name", "" ) \ DPOINT_DEFN( G7_GPRSUserName, Str, "Grp7_GPRS user name", "" ) \ DPOINT_DEFN( G7_GPRSPassWord, Str, "Grp7_", "" ) \ DPOINT_DEFN( G7_SerialDebugMode, YesNo, "Grp7 serial debug mode selection", "" ) \ DPOINT_DEFN( G7_SerialDebugFileName, Str, "Grp7_", "" ) \ DPOINT_DEFN( G7_GPRSBaudRate, CommsSerialBaudRate, "Grp7 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G7_GPRSConnectionTimeout, UI32, "Grp7 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G7_DNP3InputPipe, Str, "Grp7 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G7_DNP3OutputPipe, Str, "Grp7 DNP3 output pipe", "" ) \ DPOINT_DEFN( G7_CMSInputPipe, Str, "Grp7 CMS Input Pipe", "" ) \ DPOINT_DEFN( G7_CMSOutputPipe, Str, "Grp7 CMS Output Pipe", "" ) \ DPOINT_DEFN( G7_HMIInputPipe, Str, "Grp7 HMI Input Pipe", "" ) \ DPOINT_DEFN( G7_HMIOutputPipe, Str, "Grp7 HMI Output Pipe", "" ) \ DPOINT_DEFN( G7_DNP3ChannelRequest, Str, "Grp7 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G7_DNP3ChannelOpen, Str, "Grp7 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G7_CMSChannelRequest, Str, "Grp7 CMS Channel Request", "" ) \ DPOINT_DEFN( G7_CMSChannelOpen, Str, "Grp7 CMS Channel Open", "" ) \ DPOINT_DEFN( G7_HMIChannelRequest, Str, "Grp7 HMI Channel Request", "" ) \ DPOINT_DEFN( G7_HMIChannelOpen, Str, "Grp7 HMI Channel Open", "" ) \ DPOINT_DEFN( G7_GPRSUseModemSetting, YesNo, "Grp7 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G7_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp7 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G7_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp7 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G7_T10BInputPipe, Str, "Grp7 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G7_T10BOutputPipe, Str, "Grp7 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G7_T10BChannelRequest, Str, "Grp7 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G7_T10BChannelOpen, Str, "Grp7 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G7_P2PInputPipe, Str, "Grp7 P2P input pipe ", "" ) \ DPOINT_DEFN( G7_P2POutputPipe, Str, "Grp7 P2P output pipe ", "" ) \ DPOINT_DEFN( G7_P2PChannelRequest, Str, "Grp7 P2P Channel Request", "" ) \ DPOINT_DEFN( G7_P2PChannelOpen, Str, "Grp7 P2P Channel Open", "" ) \ DPOINT_DEFN( G7_PGEInputPipe, Str, "Grp7 PGE Input Pipe", "" ) \ DPOINT_DEFN( G7_PGEOutputPipe, Str, "Grp7 PGE output pipe ", "" ) \ DPOINT_DEFN( G7_PGEChannelRequest, Str, "Grp7 PGE Channel Request", "" ) \ DPOINT_DEFN( G7_PGEChannelOpen, Str, "Grp7 PGE Channel Open", "" ) \ DPOINT_DEFN( G7_LanProvideIP, YesNo, "Grp7 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G7_LanSpecifyIPv6, YesNo, "Grp7 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G7_LanIPv6Addr, Ipv6Addr, "Grp7 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G7_LanPrefixLength, UI8, "Grp7 LAN Prefix Length", "" ) \ DPOINT_DEFN( G7_LanIPv6DefaultGateway, Ipv6Addr, "Grp7 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G7_LanIpVersion, IpVersion, "Grp7 LAN IP version", "" ) \ DPOINT_DEFN( G8_SerialBaudRate, CommsSerialBaudRate, "Grp8 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G8_SerialDuplexType, CommsSerialDuplex, "Grp8_Serial Duplex Type", "" ) \ DPOINT_DEFN( G8_SerialRTSMode, CommsSerialRTSMode, "Grp8_Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G8_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp8_Serial RTS On Level", "" ) \ DPOINT_DEFN( G8_SerialDTRMode, CommsSerialDTRMode, "Grp8_Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G8_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp8_Serial DTR On Level", "" ) \ DPOINT_DEFN( G8_SerialParity, CommsSerialParity, "Grp8_Serial Parity", "" ) \ DPOINT_DEFN( G8_SerialCTSMode, CommsSerialCTSMode, "Grp8_Clear To Send setting.", "" ) \ DPOINT_DEFN( G8_SerialDSRMode, CommsSerialDSRMode, "Grp8_Data Set Ready setting.", "" ) \ DPOINT_DEFN( G8_SerialDTRLowTime, UI32, "Grp8 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G8_SerialTxDelay, UI32, "Grp8 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G8_SerialPreTxTime, UI32, "Grp8 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G8_SerialDCDFallTime, UI32, "Grp8 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G8_SerialCharTimeout, UI32, "Grp8_Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G8_SerialPostTxTime, UI32, "Grp8 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G8_SerialInactivityTime, UI32, "Grp8 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G8_SerialCollisionAvoidance, Bool, "Grp8_Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G8_SerialMinIdleTime, UI32, "Grp8 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G8_SerialMaxRandomDelay, UI32, "Grp8 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G8_ModemPoweredFromExtLoad, Bool, "Grp8 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G8_ModemUsedWithLeasedLine, Bool, "Grp8_Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G8_ModemInitString, Str, "Grp8 Modem Init String", "" ) \ DPOINT_DEFN( G8_ModemMaxCallDuration, UI32, "Grp8 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G8_ModemResponseTime, UI32, "Grp8 Modem Response Time", "" ) \ DPOINT_DEFN( G8_ModemHangUpCommand, Str, "Grp8 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G8_ModemOffHookCommand, Str, "Grp8 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G8_ModemAutoAnswerOn, Str, "Grp8 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G8_ModemAutoAnswerOff, Str, "Grp8 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G8_RadioPreamble, Bool, "Grp8 Radio Preamble", "" ) \ DPOINT_DEFN( G8_RadioPreambleChar, UI8, "Grp8 Radio Preamble Char", "" ) \ DPOINT_DEFN( G8_RadioPreambleRepeat, UI32, "Grp8 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G8_RadioPreambleLastChar, UI8, "Grp8 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G8_LanSpecifyIP, YesNo, "Grp8 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G8_LanIPAddr, IpAddr, "Grp8 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G8_LanSubnetMask, IpAddr, "Grp8 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G8_LanDefaultGateway, IpAddr, "Grp8 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G8_WlanNetworkSSID, Str, "Grp8 Wlan Network SSID", "" ) \ DPOINT_DEFN( G8_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp8_Wlan Network Authentication", "" ) \ DPOINT_DEFN( G8_WlanDataEncryption, CommsWlanDataEncryption, "Grp8_Wlan Data Encryption", "" ) \ DPOINT_DEFN( G8_WlanNetworkKey, Str, "Grp8_Wlan Network Key", "" ) \ DPOINT_DEFN( G8_WlanKeyIndex, UI32, "Grp8_Wlan Key Index", "" ) \ DPOINT_DEFN( G8_PortLocalRemoteMode, LocalRemote, "Grp8_Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G8_GPRSServiceProvider, Str, "Grp8_GPRS service provider name", "" ) \ DPOINT_DEFN( G8_GPRSUserName, Str, "Grp8_GPRS user name", "" ) \ DPOINT_DEFN( G8_GPRSPassWord, Str, "Grp8_", "" ) \ DPOINT_DEFN( G8_SerialDebugMode, YesNo, "Grp8 serial debug mode selection", "" ) \ DPOINT_DEFN( G8_SerialDebugFileName, Str, "Grp8_", "" ) \ DPOINT_DEFN( G8_GPRSBaudRate, CommsSerialBaudRate, "Grp8 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G8_GPRSConnectionTimeout, UI32, "Grp8 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G8_DNP3InputPipe, Str, "Grp8 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G8_DNP3OutputPipe, Str, "Grp8 DNP3 output pipe", "" ) \ DPOINT_DEFN( G8_CMSInputPipe, Str, "Grp8 CMS Input Pipe", "" ) \ DPOINT_DEFN( G8_CMSOutputPipe, Str, "Grp8 CMS Output Pipe", "" ) \ DPOINT_DEFN( G8_HMIInputPipe, Str, "Grp8 HMI Input Pipe", "" ) \ DPOINT_DEFN( G8_HMIOutputPipe, Str, "Grp8 HMI Output Pipe", "" ) \ DPOINT_DEFN( G8_DNP3ChannelRequest, Str, "Grp8 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G8_DNP3ChannelOpen, Str, "Grp8 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G8_CMSChannelRequest, Str, "Grp8 CMS Channel Request", "" ) \ DPOINT_DEFN( G8_CMSChannelOpen, Str, "Grp8 CMS Channel Open", "" ) \ DPOINT_DEFN( G8_HMIChannelRequest, Str, "Grp8 HMI Channel Request", "" ) \ DPOINT_DEFN( G8_HMIChannelOpen, Str, "Grp8 HMI Channel Open", "" ) \ DPOINT_DEFN( G8_GPRSUseModemSetting, YesNo, "Grp8 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G8_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp8 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G8_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp8 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G8_T10BInputPipe, Str, "Grp8 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G8_T10BOutputPipe, Str, "Grp8 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G8_T10BChannelRequest, Str, "Grp8 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G8_T10BChannelOpen, Str, "Grp8 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G8_P2PInputPipe, Str, "Grp8 P2P input pipe ", "" ) \ DPOINT_DEFN( G8_P2POutputPipe, Str, "Grp8 P2P output pipe ", "" ) \ DPOINT_DEFN( G8_P2PChannelRequest, Str, "Grp8 P2P Channel Request", "" ) \ DPOINT_DEFN( G8_P2PChannelOpen, Str, "Grp8 P2P Channel Open", "" ) \ DPOINT_DEFN( G8_PGEInputPipe, Str, "Grp8 PGE Input Pipe", "" ) \ DPOINT_DEFN( G8_PGEOutputPipe, Str, "Grp8 PGE output pipe ", "" ) \ DPOINT_DEFN( G8_PGEChannelRequest, Str, "Grp8 PGE Channel Request", "" ) \ DPOINT_DEFN( G8_PGEChannelOpen, Str, "Grp8 PGE Channel Open", "" ) \ DPOINT_DEFN( G8_LanProvideIP, YesNo, "Grp8 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G8_LanSpecifyIPv6, YesNo, "Grp8 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G8_LanIPv6Addr, Ipv6Addr, "Grp8 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G8_LanPrefixLength, UI8, "Grp8 LAN Prefix Length", "" ) \ DPOINT_DEFN( G8_LanIPv6DefaultGateway, Ipv6Addr, "Grp8 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G8_LanIpVersion, IpVersion, "Grp8 LAN IP version", "" ) \ DPOINT_DEFN( G1_Hrm_VTHD_Mode, TripModeDLA, "Grp1 Trip mode for Voltage THD protection.", "" ) \ DPOINT_DEFN( G1_Hrm_VTHD_Level, UI32, "Grp1 Level above which Voltage THD values should trigger protection.", "" ) \ DPOINT_DEFN( G1_Hrm_VTHD_TDtMin, UI32, "Grp1 Minimum tripping time for Voltage THD protection.", "" ) \ DPOINT_DEFN( G1_Hrm_ITDD_Mode, TripModeDLA, "Grp1 Trip mode for Current TDD protection.", "" ) \ DPOINT_DEFN( G1_Hrm_ITDD_Level, UI32, "Grp1 Level above which Current TDD values should trigger protection.", "" ) \ DPOINT_DEFN( G1_Hrm_ITDD_TDtMin, UI32, "Grp1 Minimum tripping time for Current TDD protection.", "" ) \ DPOINT_DEFN( G1_Hrm_Ind_Mode, TripModeDLA, "Grp1 Trip mode for individual harmonics protection.", "" ) \ DPOINT_DEFN( G1_Hrm_Ind_TDtMin, UI32, "Grp1 Minimum tripping time for individual harmonics protection.", "" ) \ DPOINT_DEFN( G1_Hrm_IndA_Name, HrmIndividual, "Grp1 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G1_Hrm_IndA_Level, UI32, "Grp1 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G1_Hrm_IndB_Name, HrmIndividual, "Grp1 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G1_Hrm_IndB_Level, UI32, "Grp1 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G1_Hrm_IndC_Name, HrmIndividual, "Grp1 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G1_Hrm_IndC_Level, UI32, "Grp1 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G1_Hrm_IndD_Name, HrmIndividual, "Grp1 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G1_Hrm_IndD_Level, UI32, "Grp1 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G1_Hrm_IndE_Name, HrmIndividual, "Grp1 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G1_Hrm_IndE_Level, UI32, "Grp1 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G1_OCLL1_Ip, UI32, "Grp1 OCLL1 Pickup current", "" ) \ DPOINT_DEFN( G1_OCLL1_Tcc, UI16, "Grp1 OCLL1 TCC Type", "" ) \ DPOINT_DEFN( G1_OCLL1_TDtMin, UI32, "Grp1 OCLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_OCLL1_TDtRes, UI32, "Grp1 OCLL1 DT reset time", "" ) \ DPOINT_DEFN( G1_OCLL1_Tm, UI32, "Grp1 OCLL1 Time multiplier", "" ) \ DPOINT_DEFN( G1_OCLL1_Imin, UI32, "Grp1 OCLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G1_OCLL1_Tmin, UI32, "Grp1 OCLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G1_OCLL1_Tmax, UI32, "Grp1 OCLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G1_OCLL1_Ta, UI32, "Grp1 OCLL1 Additional time", "" ) \ DPOINT_DEFN( G1_OCLL1_ImaxEn, EnDis, "Grp1 OCLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G1_OCLL1_Imax, UI32, "Grp1 OCLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G1_OCLL1_En, EnDis, "Grp1 OCLL1 Enable", "" ) \ DPOINT_DEFN( G1_OCLL1_TccUD, TccCurve, "Grp1 OCLL1 User defined curve", "" ) \ DPOINT_DEFN( G1_OCLL2_Ip, UI32, "Grp1 OCLL2 Pickup current", "" ) \ DPOINT_DEFN( G1_OCLL2_Tcc, UI16, "Grp1 OCLL2 TCC Type", "" ) \ DPOINT_DEFN( G1_OCLL2_TDtMin, UI32, "Grp1 OCLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_OCLL2_TDtRes, UI32, "Grp1 OCLL2 DT reset time", "" ) \ DPOINT_DEFN( G1_OCLL2_Tm, UI32, "Grp1 OCLL2 Time multiplier", "" ) \ DPOINT_DEFN( G1_OCLL2_Imin, UI32, "Grp1 OCLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G1_OCLL2_Tmin, UI32, "Grp1 OCLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G1_OCLL2_Tmax, UI32, "Grp1 OCLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G1_OCLL2_Ta, UI32, "Grp1 OCLL2 Additional time", "" ) \ DPOINT_DEFN( G1_OCLL2_ImaxEn, EnDis, "Grp1 OCLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G1_OCLL2_Imax, UI32, "Grp1 OCLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G1_OCLL2_En, EnDis, "Grp1 OCLL2 Enable", "" ) \ DPOINT_DEFN( G1_OCLL2_TccUD, TccCurve, "Grp1 OCLL2 User defined curve", "" ) \ DPOINT_DEFN( G1_OCLL3_En, EnDis, "Grp1 OCLL3 Enable", "" ) \ DPOINT_DEFN( G1_AutoClose_En, EnDis, "Grp1 Auto Close en/disable mode.", "" ) \ DPOINT_DEFN( G1_AutoClose_Tr, UI16, "Grp1 The time in seconds to wait before auto close after voltage on both ABC/RST bushing is detected (OSM must be open by UV3).", "" ) \ DPOINT_DEFN( G1_AutoOpenPowerFlowDirChanged, EnDis, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_AutoOpenPowerFlowReduced, EnDis, "Grp1 No description", "" ) \ DPOINT_DEFN( G2_Hrm_VTHD_Mode, TripModeDLA, "Grp2 Trip mode for Voltage THD protection.", "" ) \ DPOINT_DEFN( G2_Hrm_VTHD_Level, UI32, "Grp2 Level above which Voltage THD values should trigger protection.", "" ) \ DPOINT_DEFN( G2_Hrm_VTHD_TDtMin, UI32, "Grp2 Minimum tripping time for Voltage THD protection.", "" ) \ DPOINT_DEFN( G2_Hrm_ITDD_Mode, TripModeDLA, "Grp2 Trip mode for Current TDD protection.", "" ) \ DPOINT_DEFN( G2_Hrm_ITDD_Level, UI32, "Grp2 Level above which Current TDD values should trigger protection.", "" ) \ DPOINT_DEFN( G2_Hrm_ITDD_TDtMin, UI32, "Grp2 Minimum tripping time for Current TDD protection.", "" ) \ DPOINT_DEFN( G2_Hrm_Ind_Mode, TripModeDLA, "Grp2 Trip mode for individual harmonics protection.", "" ) \ DPOINT_DEFN( G2_Hrm_Ind_TDtMin, UI32, "Grp2 Minimum tripping time for individual harmonics protection.", "" ) \ DPOINT_DEFN( G2_Hrm_IndA_Name, HrmIndividual, "Grp2 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G2_Hrm_IndA_Level, UI32, "Grp2 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G2_Hrm_IndB_Name, HrmIndividual, "Grp2 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G2_Hrm_IndB_Level, UI32, "Grp2 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G2_Hrm_IndC_Name, HrmIndividual, "Grp2 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G2_Hrm_IndC_Level, UI32, "Grp2 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G2_Hrm_IndD_Name, HrmIndividual, "Grp2 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G2_Hrm_IndD_Level, UI32, "Grp2 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G2_Hrm_IndE_Name, HrmIndividual, "Grp2 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G2_Hrm_IndE_Level, UI32, "Grp2 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G2_OCLL1_Ip, UI32, "Grp2 OCLL1 Pickup current", "" ) \ DPOINT_DEFN( G2_OCLL1_Tcc, UI16, "Grp2 OCLL1 TCC Type", "" ) \ DPOINT_DEFN( G2_OCLL1_TDtMin, UI32, "Grp2 OCLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_OCLL1_TDtRes, UI32, "Grp2 OCLL1 DT reset time", "" ) \ DPOINT_DEFN( G2_OCLL1_Tm, UI32, "Grp2 OCLL1 Time multiplier", "" ) \ DPOINT_DEFN( G2_OCLL1_Imin, UI32, "Grp2 OCLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G2_OCLL1_Tmin, UI32, "Grp2 OCLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G2_OCLL1_Tmax, UI32, "Grp2 OCLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G2_OCLL1_Ta, UI32, "Grp2 OCLL1 Additional time", "" ) \ DPOINT_DEFN( G2_OCLL1_ImaxEn, EnDis, "Grp2 OCLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G2_OCLL1_Imax, UI32, "Grp2 OCLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G2_OCLL1_En, EnDis, "Grp2 OCLL1 Enable", "" ) \ DPOINT_DEFN( G2_OCLL1_TccUD, TccCurve, "Grp2 OCLL1 User defined curve", "" ) \ DPOINT_DEFN( G2_OCLL2_Ip, UI32, "Grp2 OCLL2 Pickup current", "" ) \ DPOINT_DEFN( G2_OCLL2_Tcc, UI16, "Grp2 OCLL2 TCC Type", "" ) \ DPOINT_DEFN( G2_OCLL2_TDtMin, UI32, "Grp2 OCLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_OCLL2_TDtRes, UI32, "Grp2 OCLL2 DT reset time", "" ) \ DPOINT_DEFN( G2_OCLL2_Tm, UI32, "Grp2 OCLL2 Time multiplier", "" ) \ DPOINT_DEFN( G2_OCLL2_Imin, UI32, "Grp2 OCLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G2_OCLL2_Tmin, UI32, "Grp2 OCLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G2_OCLL2_Tmax, UI32, "Grp2 OCLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G2_OCLL2_Ta, UI32, "Grp2 OCLL2 Additional time", "" ) \ DPOINT_DEFN( G2_OCLL2_ImaxEn, EnDis, "Grp2 OCLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G2_OCLL2_Imax, UI32, "Grp2 OCLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G2_OCLL2_En, EnDis, "Grp2 OCLL2 Enable", "" ) \ DPOINT_DEFN( G2_OCLL2_TccUD, TccCurve, "Grp2 OCLL2 User defined curve", "" ) \ DPOINT_DEFN( G2_OCLL3_En, EnDis, "Grp2 OCLL3 Enable", "" ) \ DPOINT_DEFN( G2_AutoClose_En, EnDis, "Grp2 Auto Close en/disable mode.", "" ) \ DPOINT_DEFN( G2_AutoClose_Tr, UI16, "Grp2 The time in seconds to wait before auto close after voltage on both ABC/RST bushing is detected (OSM must be open by UV3).", "" ) \ DPOINT_DEFN( G2_AutoOpenPowerFlowDirChanged, EnDis, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_AutoOpenPowerFlowReduced, EnDis, "Grp2 No description", "" ) \ DPOINT_DEFN( G3_Hrm_VTHD_Mode, TripModeDLA, "Grp3 Trip mode for Voltage THD protection.", "" ) \ DPOINT_DEFN( G3_Hrm_VTHD_Level, UI32, "Grp3 Level above which Voltage THD values should trigger protection.", "" ) \ DPOINT_DEFN( G3_Hrm_VTHD_TDtMin, UI32, "Grp3 Minimum tripping time for Voltage THD protection.", "" ) \ DPOINT_DEFN( G3_Hrm_ITDD_Mode, TripModeDLA, "Grp3 Trip mode for Current TDD protection.", "" ) \ DPOINT_DEFN( G3_Hrm_ITDD_Level, UI32, "Grp3 Level above which Current TDD values should trigger protection.", "" ) \ DPOINT_DEFN( G3_Hrm_ITDD_TDtMin, UI32, "Grp3 Minimum tripping time for Current TDD protection.", "" ) \ DPOINT_DEFN( G3_Hrm_Ind_Mode, TripModeDLA, "Grp3 Trip mode for individual harmonics protection.", "" ) \ DPOINT_DEFN( G3_Hrm_Ind_TDtMin, UI32, "Grp3 Minimum tripping time for individual harmonics protection.", "" ) \ DPOINT_DEFN( G3_Hrm_IndA_Name, HrmIndividual, "Grp3 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G3_Hrm_IndA_Level, UI32, "Grp3 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G3_Hrm_IndB_Name, HrmIndividual, "Grp3 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G3_Hrm_IndB_Level, UI32, "Grp3 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G3_Hrm_IndC_Name, HrmIndividual, "Grp3 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G3_Hrm_IndC_Level, UI32, "Grp3 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G3_Hrm_IndD_Name, HrmIndividual, "Grp3 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G3_Hrm_IndD_Level, UI32, "Grp3 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G3_Hrm_IndE_Name, HrmIndividual, "Grp3 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G3_Hrm_IndE_Level, UI32, "Grp3 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G3_OCLL1_Ip, UI32, "Grp3 OCLL1 Pickup current", "" ) \ DPOINT_DEFN( G3_OCLL1_Tcc, UI16, "Grp3 OCLL1 TCC Type", "" ) \ DPOINT_DEFN( G3_OCLL1_TDtMin, UI32, "Grp3 OCLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_OCLL1_TDtRes, UI32, "Grp3 OCLL1 DT reset time", "" ) \ DPOINT_DEFN( G3_OCLL1_Tm, UI32, "Grp3 OCLL1 Time multiplier", "" ) \ DPOINT_DEFN( G3_OCLL1_Imin, UI32, "Grp3 OCLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G3_OCLL1_Tmin, UI32, "Grp3 OCLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G3_OCLL1_Tmax, UI32, "Grp3 OCLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G3_OCLL1_Ta, UI32, "Grp3 OCLL1 Additional time", "" ) \ DPOINT_DEFN( G3_OCLL1_ImaxEn, EnDis, "Grp3 OCLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G3_OCLL1_Imax, UI32, "Grp3 OCLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G3_OCLL1_En, EnDis, "Grp3 OCLL1 Enable", "" ) \ DPOINT_DEFN( G3_OCLL1_TccUD, TccCurve, "Grp3 OCLL1 User defined curve", "" ) \ DPOINT_DEFN( G3_OCLL2_Ip, UI32, "Grp3 OCLL2 Pickup current", "" ) \ DPOINT_DEFN( G3_OCLL2_Tcc, UI16, "Grp3 OCLL2 TCC Type", "" ) \ DPOINT_DEFN( G3_OCLL2_TDtMin, UI32, "Grp3 OCLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_OCLL2_TDtRes, UI32, "Grp3 OCLL2 DT reset time", "" ) \ DPOINT_DEFN( G3_OCLL2_Tm, UI32, "Grp3 OCLL2 Time multiplier", "" ) \ DPOINT_DEFN( G3_OCLL2_Imin, UI32, "Grp3 OCLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G3_OCLL2_Tmin, UI32, "Grp3 OCLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G3_OCLL2_Tmax, UI32, "Grp3 OCLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G3_OCLL2_Ta, UI32, "Grp3 OCLL2 Additional time", "" ) \ DPOINT_DEFN( G3_OCLL2_ImaxEn, EnDis, "Grp3 OCLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G3_OCLL2_Imax, UI32, "Grp3 OCLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G3_OCLL2_En, EnDis, "Grp3 OCLL2 Enable", "" ) \ DPOINT_DEFN( G3_OCLL2_TccUD, TccCurve, "Grp3 OCLL2 User defined curve", "" ) \ DPOINT_DEFN( G3_OCLL3_En, EnDis, "Grp3 OCLL3 Enable", "" ) \ DPOINT_DEFN( G3_AutoClose_En, EnDis, "Grp3 Auto Close en/disable mode.", "" ) \ DPOINT_DEFN( G3_AutoClose_Tr, UI16, "Grp3 The time in seconds to wait before auto close after voltage on both ABC/RST bushing is detected (OSM must be open by UV3).", "" ) \ DPOINT_DEFN( G3_AutoOpenPowerFlowDirChanged, EnDis, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_AutoOpenPowerFlowReduced, EnDis, "Grp3 No description", "" ) \ DPOINT_DEFN( G4_Hrm_VTHD_Mode, TripModeDLA, "Grp4 Trip mode for Voltage THD protection.", "" ) \ DPOINT_DEFN( G4_Hrm_VTHD_Level, UI32, "Grp4 Level above which Voltage THD values should trigger protection.", "" ) \ DPOINT_DEFN( G4_Hrm_VTHD_TDtMin, UI32, "Grp4 Minimum tripping time for Voltage THD protection.", "" ) \ DPOINT_DEFN( G4_Hrm_ITDD_Mode, TripModeDLA, "Grp4 Trip mode for Current TDD protection.", "" ) \ DPOINT_DEFN( G4_Hrm_ITDD_Level, UI32, "Grp4 Level above which Current TDD values should trigger protection.", "" ) \ DPOINT_DEFN( G4_Hrm_ITDD_TDtMin, UI32, "Grp4 Minimum tripping time for Current TDD protection.", "" ) \ DPOINT_DEFN( G4_Hrm_Ind_Mode, TripModeDLA, "Grp4 Trip mode for individual harmonics protection.", "" ) \ DPOINT_DEFN( G4_Hrm_Ind_TDtMin, UI32, "Grp4 Minimum tripping time for individual harmonics protection.", "" ) \ DPOINT_DEFN( G4_Hrm_IndA_Name, HrmIndividual, "Grp4 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G4_Hrm_IndA_Level, UI32, "Grp4 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G4_Hrm_IndB_Name, HrmIndividual, "Grp4 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G4_Hrm_IndB_Level, UI32, "Grp4 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G4_Hrm_IndC_Name, HrmIndividual, "Grp4 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G4_Hrm_IndC_Level, UI32, "Grp4 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G4_Hrm_IndD_Name, HrmIndividual, "Grp4 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G4_Hrm_IndD_Level, UI32, "Grp4 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G4_Hrm_IndE_Name, HrmIndividual, "Grp4 Name of the harmonic to select for this protection element.", "" ) \ DPOINT_DEFN( G4_Hrm_IndE_Level, UI32, "Grp4 Level above which harmonic distortion values should trigger protection.", "" ) \ DPOINT_DEFN( G4_OCLL1_Ip, UI32, "Grp4 OCLL1 Pickup current", "" ) \ DPOINT_DEFN( G4_OCLL1_Tcc, UI16, "Grp4 OCLL1 TCC Type", "" ) \ DPOINT_DEFN( G4_OCLL1_TDtMin, UI32, "Grp4 OCLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_OCLL1_TDtRes, UI32, "Grp4 OCLL1 DT reset time", "" ) \ DPOINT_DEFN( G4_OCLL1_Tm, UI32, "Grp4 OCLL1 Time multiplier", "" ) \ DPOINT_DEFN( G4_OCLL1_Imin, UI32, "Grp4 OCLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G4_OCLL1_Tmin, UI32, "Grp4 OCLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G4_OCLL1_Tmax, UI32, "Grp4 OCLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G4_OCLL1_Ta, UI32, "Grp4 OCLL1 Additional time", "" ) \ DPOINT_DEFN( G4_OCLL1_ImaxEn, EnDis, "Grp4 OCLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G4_OCLL1_Imax, UI32, "Grp4 OCLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G4_OCLL1_En, EnDis, "Grp4 OCLL1 Enable", "" ) \ DPOINT_DEFN( G4_OCLL1_TccUD, TccCurve, "Grp4 OCLL1 User defined curve", "" ) \ DPOINT_DEFN( G4_OCLL2_Ip, UI32, "Grp4 OCLL2 Pickup current", "" ) \ DPOINT_DEFN( G4_OCLL2_Tcc, UI16, "Grp4 OCLL2 TCC Type", "" ) \ DPOINT_DEFN( G4_OCLL2_TDtMin, UI32, "Grp4 OCLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_OCLL2_TDtRes, UI32, "Grp4 OCLL2 DT reset time", "" ) \ DPOINT_DEFN( G4_OCLL2_Tm, UI32, "Grp4 OCLL2 Time multiplier", "" ) \ DPOINT_DEFN( G4_OCLL2_Imin, UI32, "Grp4 OCLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G4_OCLL2_Tmin, UI32, "Grp4 OCLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G4_OCLL2_Tmax, UI32, "Grp4 OCLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G4_OCLL2_Ta, UI32, "Grp4 OCLL2 Additional time", "" ) \ DPOINT_DEFN( G4_OCLL2_ImaxEn, EnDis, "Grp4 OCLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G4_OCLL2_Imax, UI32, "Grp4 OCLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G4_OCLL2_En, EnDis, "Grp4 OCLL2 Enable", "" ) \ DPOINT_DEFN( G4_OCLL2_TccUD, TccCurve, "Grp4 OCLL2 User defined curve", "" ) \ DPOINT_DEFN( G4_OCLL3_En, EnDis, "Grp4 OCLL3 Enable", "" ) \ DPOINT_DEFN( G4_AutoClose_En, EnDis, "Grp4 Auto Close en/disable mode.", "" ) \ DPOINT_DEFN( G4_AutoClose_Tr, UI16, "Grp4 The time in seconds to wait before auto close after voltage on both ABC/RST bushing is detected (OSM must be open by UV3).", "" ) \ DPOINT_DEFN( G4_AutoOpenPowerFlowDirChanged, EnDis, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_AutoOpenPowerFlowReduced, EnDis, "Grp4 No description", "" ) \ DPOINT_DEFN( SigCtrlHRMOn, Signal, "Harmonic element is switched on", "" ) \ DPOINT_DEFN( SigPickupHrm, Signal, "Pickup output of harmonics (THD, TDD, or any discrete harmonic) activated", "" ) \ DPOINT_DEFN( SigAlarmHrm, Signal, "Alarm output of harmonics (THD, TDD, or any discrete harmonic) activated", "" ) \ DPOINT_DEFN( SigOpenHrm, Signal, "Open output of harmonics (THD, TDD, or any discrete harmonic) activated", "" ) \ DPOINT_DEFN( CntrHrmTrips, UI32, "Fault counter of HRM Trips", "" ) \ DPOINT_DEFN( TripMaxHrm, UI32, "Maximum harmonic percentage between the Open and Trip", "" ) \ DPOINT_DEFN( SigCtrlBlockProtOpenOn, Signal, "Control to block open from protection. Intended to be driven from IO, Logic, SCADA.", "" ) \ DPOINT_DEFN( StartupExtLoadConfirm, UI8, "Checked and set at startup to see whether the external load was switched on at prior startup without causing a reboot (eg. due to short circuit).", "" ) \ DPOINT_DEFN( InMDIToday, UI32, "Maximum Demand for neutral current for TODAY ", "" ) \ DPOINT_DEFN( InMDIYesterday, UI32, "Maximum Demand for neutral current for YESTERDAY ", "" ) \ DPOINT_DEFN( InMDILastWeek, UI32, "Maximum Demand for neutral current for LAST WEEK ", "" ) \ DPOINT_DEFN( ClearOscCaptures, ClearCommand, "Erase Oscillography Files", "" ) \ DPOINT_DEFN( InterruptMonitorEnable, EnDis, "Enables or disables monitoring of long and short duration interruptions.", "" ) \ DPOINT_DEFN( InterruptLogShortEnable, EnDis, "Enables or disables logging of short duration interruptions.", "" ) \ DPOINT_DEFN( InterruptDuration, UI32, "Minimum duration in seconds for detecting a long duration interruption. Interruptions that last less than this amount are characterised as short duration interruptions.", "" ) \ DPOINT_DEFN( InterruptShortABCCnt, UI32, "U(a,b,c) Number of Short Interruptions", "" ) \ DPOINT_DEFN( InterruptShortRSTCnt, UI32, "U(r,s,t) Number of Short Interruptions", "" ) \ DPOINT_DEFN( InterruptLongABCCnt, UI32, "U(a,b,c) Number of Long Interruptions", "" ) \ DPOINT_DEFN( InterruptLongRSTCnt, UI32, "U(r,s,t) Number of Long Interruptions", "" ) \ DPOINT_DEFN( InterruptShortABCTotDuration, Duration, "U(a,b,c) Accumulated Short Interruption Duration in seconds", "" ) \ DPOINT_DEFN( InterruptShortRSTTotDuration, Duration, "U(r,s,t) Accumulated Short Interruption Duration in seconds", "" ) \ DPOINT_DEFN( InterruptLongABCTotDuration, Duration, "U(a,b,c) Accumulated Long Interruption Duration in seconds", "" ) \ DPOINT_DEFN( InterruptLongRSTTotDuration, Duration, "U(r,s,t) Accumulated Long Interruption Duration in seconds", "" ) \ DPOINT_DEFN( SagMonitorEnable, EnDis, "Enables or disables the monitoring of voltage sags.", "" ) \ DPOINT_DEFN( SagNormalThreshold, UI32, "Normal threshold multiplier for sags.", "" ) \ DPOINT_DEFN( SagMinThreshold, UI32, "Minimum threshold multiplier for sags.", "" ) \ DPOINT_DEFN( SagTime, UI32, "Number of milliseconds that the voltage should be abnormally low before it is registered as a sag.", "" ) \ DPOINT_DEFN( SwellMonitorEnable, EnDis, "Enables or disables the monitoring of voltage swells.", "" ) \ DPOINT_DEFN( SwellNormalThreshold, UI32, "Normal threshold multiplier for swells.", "" ) \ DPOINT_DEFN( SwellTime, UI32, "Number of milliseconds that the voltage should be abnormally high before it is registered as a swell.", "" ) \ DPOINT_DEFN( SagSwellResetTime, UI32, "Number of milliseconds before the detection process for a sag or swell should reset.", "" ) \ DPOINT_DEFN( SagABCCnt, UI32, "U(a,b,c) Number of Sags", "" ) \ DPOINT_DEFN( SagRSTCnt, UI32, "U(r,s,t) Number of Sags", "" ) \ DPOINT_DEFN( SwellABCCnt, UI32, "U(a,b,c) Number of Swells", "" ) \ DPOINT_DEFN( SwellRSTCnt, UI32, "U(r,s,t) Number of Swells", "" ) \ DPOINT_DEFN( SagABCLastDuration, Duration, "Duration of the last sag that occurred on ABC.", "" ) \ DPOINT_DEFN( SagRSTLastDuration, Duration, "Duration of the last sag that occurred on RST.", "" ) \ DPOINT_DEFN( SwellABCLastDuration, Duration, "Duration of the last swell that occurred on ABC.", "" ) \ DPOINT_DEFN( SwellRSTLastDuration, Duration, "Duration of the last swell that occurred on RST.", "" ) \ DPOINT_DEFN( HrmLogEnabled, EnDis, "Enables or disables logging of harmonic values that are out of range.", "" ) \ DPOINT_DEFN( HrmLogTHDEnabled, EnDis, "Enables or disables logging of out of range THD values.", "" ) \ DPOINT_DEFN( HrmLogTHDDeadband, UI32, "Deadband value for logging out of range THD values.", "" ) \ DPOINT_DEFN( HrmLogTDDEnabled, EnDis, "Enables or disables logging of out of range TDD values.", "" ) \ DPOINT_DEFN( HrmLogTDDDeadband, UI32, "Deadband value for logging out of range TDD values.", "" ) \ DPOINT_DEFN( HrmLogIndivIEnabled, EnDis, "Enables or disables logging of out of range individual current harmonic values.", "" ) \ DPOINT_DEFN( HrmLogIndivIDeadband, UI32, "Deadband value for logging out of range individual current harmonic values.", "" ) \ DPOINT_DEFN( HrmLogIndivVEnabled, EnDis, "Enables or disables logging of out of range individual voltage harmonic values.", "" ) \ DPOINT_DEFN( HrmLogIndivVDeadband, UI32, "Deadband value for logging out of range individual voltage harmonic values.", "" ) \ DPOINT_DEFN( HrmLogTime, UI16, "Minimum time for a harmonic value to be out of range before it triggers logging.", "" ) \ DPOINT_DEFN( InterruptClearCounters, ClearCommand, "Erase Interruption Counters and Duration Counters", "" ) \ DPOINT_DEFN( SagSwellClearCounters, ClearCommand, "Erase Sag/Swell Counters and Duration Counters", "" ) \ DPOINT_DEFN( LogInterrupt, LogPQDIF, "For passing abbreviated interruption PQDIF events to the logging process.", "" ) \ DPOINT_DEFN( LogSagSwell, LogPQDIF, "For passing abbreviated sag/swell PQDIF events to the logging process.", "" ) \ DPOINT_DEFN( LogHrm, LogPQDIF, "For passing abbreviated harmonic PQDIF events to the logging process.", "" ) \ DPOINT_DEFN( CanIo1OutputEnableMasked, UI8, "GPIO enable/disable masked outputs", "" ) \ DPOINT_DEFN( CanIo2OutputEnableMasked, UI8, "GPIO output enable/disable masked outputs", "" ) \ DPOINT_DEFN( CanIo1OutputSetMasked, UI16, "Set GPIO outputs using a bit mask", "" ) \ DPOINT_DEFN( CanIo2OutputSetMasked, UI16, "Set GPIO outputs using a bit mask", "" ) \ DPOINT_DEFN( LogInterruptDir, Str, "Log file directory for long and short duration interruptions.", "" ) \ DPOINT_DEFN( LogSagSwellDir, Str, "Log file directory for sags and swells.", "" ) \ DPOINT_DEFN( LogHrmDir, Str, "Log file directory for harmonics.", "" ) \ DPOINT_DEFN( ClearInterruptDir, Bool, "Clears the log directory for long and short duration interruptions.", "" ) \ DPOINT_DEFN( ClearSagSwellDir, Bool, "Clears the log directory for sags and swells.", "" ) \ DPOINT_DEFN( ClearHrmDir, Bool, "Clears the log directory for harmonics.", "" ) \ DPOINT_DEFN( ChEvInterruptLog, ChangeEvent, "Interruption log changes.", "" ) \ DPOINT_DEFN( ChEvSagSwellLog, ChangeEvent, "Sag/swell log changes", "" ) \ DPOINT_DEFN( ChEvHrmLog, ChangeEvent, "Harmonic log changes.", "" ) \ DPOINT_DEFN( OscSaveFormat, OscCaptureFormat, "File format to use when saving oscillography captures.", "" ) \ DPOINT_DEFN( PGEChannelPort, CommsPort, "Channel Port for 2179 protocol", "" ) \ DPOINT_DEFN( PGEEnableProtocol, EnDis, "2179 Protocol Enabled", "" ) \ DPOINT_DEFN( PGEEnableCommsLog, EnDis, "Enable 2179 comms logging", "" ) \ DPOINT_DEFN( PGECommsLogMaxSize, UI8, "2179 comms log maximum size(Mbytes)", "" ) \ DPOINT_DEFN( PGESlaveAddress, UI16, "2179 Slave Address", "" ) \ DPOINT_DEFN( PGEMasterAddress, UI8, "2179 Master Address", "" ) \ DPOINT_DEFN( PGEIgnoreMasterAddress, UI8, "2179 Ignore Master Address", "" ) \ DPOINT_DEFN( G11_SerialDTRStatus, CommsSerialPinStatus, "Grp11 No description", "" ) \ DPOINT_DEFN( G11_SerialDSRStatus, CommsSerialPinStatus, "Grp11 No description", "" ) \ DPOINT_DEFN( G11_SerialCDStatus, CommsSerialPinStatus, "Grp11 No description", "" ) \ DPOINT_DEFN( G11_SerialRTSStatus, CommsSerialPinStatus, "Grp11 No description", "" ) \ DPOINT_DEFN( G11_SerialCTSStatus, CommsSerialPinStatus, "Grp11 No description", "" ) \ DPOINT_DEFN( G11_SerialRIStatus, CommsSerialPinStatus, "Grp11 No description", "" ) \ DPOINT_DEFN( G11_ConnectionStatus, CommsConnectionStatus, "Grp11 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G11_BytesReceivedStatus, UI32, "Grp11 Bytes received on a port.", "" ) \ DPOINT_DEFN( G11_BytesTransmittedStatus, UI32, "Grp11 No description", "" ) \ DPOINT_DEFN( G11_PacketsReceivedStatus, UI32, "Grp11 Packets received on a port.", "" ) \ DPOINT_DEFN( G11_PacketsTransmittedStatus, UI32, "Grp11 Packets Transmitted", "" ) \ DPOINT_DEFN( G11_ErrorPacketsReceivedStatus, UI32, "Grp11 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G11_ErrorPacketsTransmittedStatus, UI32, "Grp11 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G11_IpAddrStatus, IpAddr, "Grp11 IPv4 Address", "" ) \ DPOINT_DEFN( G11_SubnetMaskStatus, IpAddr, "Grp11 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G11_DefaultGatewayStatus, IpAddr, "Grp11 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G11_PortDetectedType, CommsPortDetectedType, "Grp11 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G11_PortDetectedName, Str, "Grp11 USB Port detected device name", "" ) \ DPOINT_DEFN( G11_SerialTxTestStatus, OnOff, "Grp11 serial port TX testing status", "" ) \ DPOINT_DEFN( G11_PacketsReceivedStatusIPv6, UI32, "Grp11 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G11_PacketsTransmittedStatusIPv6, UI32, "Grp11 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G11_ErrorPacketsReceivedStatusIPv6, UI32, "Grp11 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G11_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp11 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G11_Ipv6AddrStatus, Ipv6Addr, "Grp11 IPv6 Address", "" ) \ DPOINT_DEFN( G11_LanPrefixLengthStatus, UI8, "Grp11 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G11_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp11 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G11_IpVersionStatus, IpVersion, "Grp11 LAN IP version", "" ) \ DPOINT_DEFN( G11_SerialPortTestCmd, Signal, "Grp11_If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G11_SerialPortHangupCmd, Signal, "Grp11_Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G11_BytesReceivedResetCmd, Signal, "Grp11_reset bytes Received", "" ) \ DPOINT_DEFN( G11_BytesTransmittedResetCmd, Signal, "Grp11_reset bytes Transmitted", "" ) \ DPOINT_DEFN( G11_SerialBaudRate, CommsSerialBaudRate, "Grp11_Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G11_SerialDuplexType, CommsSerialDuplex, "Grp11_Serial Duplex Type", "" ) \ DPOINT_DEFN( G11_SerialRTSMode, CommsSerialRTSMode, "Grp11_Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G11_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp11_Serial RTS On Level", "" ) \ DPOINT_DEFN( G11_SerialDTRMode, CommsSerialDTRMode, "Grp11_Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G11_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp11_Serial DTR On Level", "" ) \ DPOINT_DEFN( G11_SerialParity, CommsSerialParity, "Grp11_Serial Parity", "" ) \ DPOINT_DEFN( G11_SerialCTSMode, CommsSerialCTSMode, "Grp11_Clear To Send setting.", "" ) \ DPOINT_DEFN( G11_SerialDSRMode, CommsSerialDSRMode, "Grp11_Data Set Ready setting.", "" ) \ DPOINT_DEFN( G11_SerialDTRLowTime, UI32, "Grp11 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G11_SerialTxDelay, UI32, "Grp11 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G11_SerialPreTxTime, UI32, "Grp11 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G11_SerialDCDFallTime, UI32, "Grp11 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G11_SerialCharTimeout, UI32, "Grp11_Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G11_SerialPostTxTime, UI32, "Grp11 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G11_SerialInactivityTime, UI32, "Grp11 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G11_SerialCollisionAvoidance, Bool, "Grp11_Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G11_SerialMinIdleTime, UI32, "Grp11 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G11_SerialMaxRandomDelay, UI32, "Grp11 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G11_ModemPoweredFromExtLoad, Bool, "Grp11_Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G11_ModemUsedWithLeasedLine, Bool, "Grp11_Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G11_ModemInitString, Str, "Grp11_Modem Init String", "" ) \ DPOINT_DEFN( G11_ModemDialOut, Bool, "Grp11_Modem Dial Out", "" ) \ DPOINT_DEFN( G11_ModemPreDialString, Str, "Grp11_Modem Pre Dial String", "" ) \ DPOINT_DEFN( G11_ModemDialNumber1, Str, "Grp11_Modem Dial Number1", "" ) \ DPOINT_DEFN( G11_ModemDialNumber2, Str, "Grp11_Modem Dial Number2", "" ) \ DPOINT_DEFN( G11_ModemDialNumber3, Str, "Grp11_Modem Dial Number3", "" ) \ DPOINT_DEFN( G11_ModemDialNumber4, Str, "Grp11_Modem Dial Number4", "" ) \ DPOINT_DEFN( G11_ModemDialNumber5, Str, "Grp11_Modem Dial Number5", "" ) \ DPOINT_DEFN( G11_ModemAutoDialInterval, UI32, "Grp11_Modem Auto Dial Interval time between failure to connect to one number in seconds. ", "" ) \ DPOINT_DEFN( G11_ModemConnectionTimeout, UI32, "Grp11_Modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G11_ModemMaxCallDuration, UI32, "Grp11 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G11_ModemResponseTime, UI32, "Grp11 Modem Response Time", "" ) \ DPOINT_DEFN( G11_ModemHangUpCommand, Str, "Grp11_Modem Hang Up Command", "" ) \ DPOINT_DEFN( G11_ModemOffHookCommand, Str, "Grp11_Modem Off Hook Command", "" ) \ DPOINT_DEFN( G11_ModemAutoAnswerOn, Str, "Grp11_Modem Auto Answer On", "" ) \ DPOINT_DEFN( G11_ModemAutoAnswerOff, Str, "Grp11_Modem Auto Answer On", "" ) \ DPOINT_DEFN( G11_RadioPreamble, Bool, "Grp11_Radio Preamble", "" ) \ DPOINT_DEFN( G11_RadioPreambleChar, UI8, "Grp11_Radio Preamble Char", "" ) \ DPOINT_DEFN( G11_RadioPreambleRepeat, UI32, "Grp11_Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G11_RadioPreambleLastChar, UI8, "Grp11_Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G11_LanSpecifyIP, YesNo, "Grp11 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G11_LanIPAddr, IpAddr, "Grp11 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G11_LanSubnetMask, IpAddr, "Grp11 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G11_LanDefaultGateway, IpAddr, "Grp11 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G11_WlanNetworkSSID, Str, "Grp11_Wlan Network SSID", "" ) \ DPOINT_DEFN( G11_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp11_Wlan Network Authentication", "" ) \ DPOINT_DEFN( G11_WlanDataEncryption, CommsWlanDataEncryption, "Grp11_Wlan Data Encryption", "" ) \ DPOINT_DEFN( G11_WlanNetworkKey, Str, "Grp11_Wlan Network Key", "" ) \ DPOINT_DEFN( G11_WlanKeyIndex, UI32, "Grp11_Wlan Key Index", "" ) \ DPOINT_DEFN( G11_PortLocalRemoteMode, LocalRemote, "Grp11_Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G11_GPRSServiceProvider, Str, "Grp11_GPRS service provider name", "" ) \ DPOINT_DEFN( G11_GPRSUserName, Str, "Grp11_GPRS user name", "" ) \ DPOINT_DEFN( G11_GPRSPassWord, Str, "Grp11_", "" ) \ DPOINT_DEFN( G11_SerialDebugMode, YesNo, "Grp11_serial debug mode selection", "" ) \ DPOINT_DEFN( G11_SerialDebugFileName, Str, "Grp11_", "" ) \ DPOINT_DEFN( G11_GPRSBaudRate, CommsSerialBaudRate, "Grp11_GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G11_GPRSConnectionTimeout, UI32, "Grp11 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G11_DNP3InputPipe, Str, "Grp11_DNP3 input pipe ", "" ) \ DPOINT_DEFN( G11_DNP3OutputPipe, Str, "Grp11_DNP3 output pipe", "" ) \ DPOINT_DEFN( G11_CMSInputPipe, Str, "Grp11_CMS Input Pipe", "" ) \ DPOINT_DEFN( G11_CMSOutputPipe, Str, "Grp11_CMS Output Pipe", "" ) \ DPOINT_DEFN( G11_HMIInputPipe, Str, "Grp11_HMI Input Pipe", "" ) \ DPOINT_DEFN( G11_HMIOutputPipe, Str, "Grp11_HMI Output Pipe", "" ) \ DPOINT_DEFN( G11_DNP3ChannelRequest, Str, "Grp11_DNP3 Channel Request", "" ) \ DPOINT_DEFN( G11_DNP3ChannelOpen, Str, "Grp11_DNP3 Channel Open", "" ) \ DPOINT_DEFN( G11_CMSChannelRequest, Str, "Grp11_CMS Channel Request", "" ) \ DPOINT_DEFN( G11_CMSChannelOpen, Str, "Grp11_CMS Channel Open", "" ) \ DPOINT_DEFN( G11_HMIChannelRequest, Str, "Grp11_HMI Channel Request", "" ) \ DPOINT_DEFN( G11_HMIChannelOpen, Str, "Grp11_HMI Channel Open", "" ) \ DPOINT_DEFN( G11_GPRSUseModemSetting, YesNo, "Grp11 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G11_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp11_Replaced SerialRTSMode element for DB v5+.\r\nWe dont choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G11_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp11_Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G11_T10BInputPipe, Str, "Grp11_IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G11_T10BOutputPipe, Str, "Grp11_IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G11_T10BChannelRequest, Str, "Grp11_IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G11_T10BChannelOpen, Str, "Grp11_IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G11_P2PInputPipe, Str, "Grp11_P2P input pipe ", "" ) \ DPOINT_DEFN( G11_P2POutputPipe, Str, "Grp11_P2P output pipe ", "" ) \ DPOINT_DEFN( G11_P2PChannelRequest, Str, "Grp11_P2P Channel Request", "" ) \ DPOINT_DEFN( G11_P2PChannelOpen, Str, "Grp11_P2P Channel Open", "" ) \ DPOINT_DEFN( G11_PGEInputPipe, Str, "Grp11_PGE Input Pipe", "" ) \ DPOINT_DEFN( G11_PGEOutputPipe, Str, "Grp11_PGE output pipe ", "" ) \ DPOINT_DEFN( G11_PGEChannelRequest, Str, "Grp11_PGE Channel Request", "" ) \ DPOINT_DEFN( G11_PGEChannelOpen, Str, "Grp11_PGE Channel Open", "" ) \ DPOINT_DEFN( G11_LanProvideIP, YesNo, "Grp11 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G11_LanSpecifyIPv6, YesNo, "Grp11 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G11_LanIPv6Addr, Ipv6Addr, "Grp11 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G11_LanPrefixLength, UI8, "Grp11 LAN Prefix Length", "" ) \ DPOINT_DEFN( G11_LanIPv6DefaultGateway, Ipv6Addr, "Grp11 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G11_LanIpVersion, IpVersion, "Grp11 LAN IP version", "" ) \ DPOINT_DEFN( LanConfigType, UsbPortConfigType, "LAN port config type", "" ) \ DPOINT_DEFN( CommsChEvGrp11, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 11 settings.", "" ) \ DPOINT_DEFN( SigPickupNps1F, Signal, "Pickup output of NPS1+ activated", "" ) \ DPOINT_DEFN( SigPickupNps2F, Signal, "Pickup output of NPS2+ activated", "" ) \ DPOINT_DEFN( SigPickupNps3F, Signal, "Pickup output of NPS3+ activated", "" ) \ DPOINT_DEFN( SigPickupNps1R, Signal, "Pickup output of NPS1- activated", "" ) \ DPOINT_DEFN( SigPickupNps2R, Signal, "Pickup output of NPS2- activated", "" ) \ DPOINT_DEFN( SigPickupNps3R, Signal, "Pickup output of NPS3- activated", "" ) \ DPOINT_DEFN( SigPickupOcll1, Signal, "Pickup output of OCLL1 activated", "" ) \ DPOINT_DEFN( SigPickupOcll2, Signal, "Pickup output of OCLL2 activated", "" ) \ DPOINT_DEFN( SigPickupNpsll1, Signal, "Pickup output of NPSLL1 activated", "" ) \ DPOINT_DEFN( SigPickupNpsll2, Signal, "Pickup output of NPSLL2 activated", "" ) \ DPOINT_DEFN( SigPickupNpsll3, Signal, "Pickup output of NPSLL3 activated", "" ) \ DPOINT_DEFN( SigPickupEfll1, Signal, "Pickup output of EFLL1 activated", "" ) \ DPOINT_DEFN( SigPickupEfll2, Signal, "Pickup output of EFLL2 activated", "" ) \ DPOINT_DEFN( SigPickupSefll, Signal, "Pickup output of SEFLL activated", "" ) \ DPOINT_DEFN( SigOpenNps1F, Signal, "Open due to NPS1+ tripping", "" ) \ DPOINT_DEFN( SigOpenNps2F, Signal, "Open due to NPS2+ tripping", "" ) \ DPOINT_DEFN( SigOpenNps3F, Signal, "Open due to NPS3+ tripping", "" ) \ DPOINT_DEFN( SigOpenNps1R, Signal, "Open due to NPS1- tripping", "" ) \ DPOINT_DEFN( SigOpenNps2R, Signal, "Open due to NPS2- tripping", "" ) \ DPOINT_DEFN( SigOpenNps3R, Signal, "Open due to NPS3- tripping", "" ) \ DPOINT_DEFN( SigOpenOcll1, Signal, "Open due to OCLL1 tripping", "" ) \ DPOINT_DEFN( SigOpenOcll2, Signal, "Open due to OCLL2 tripping", "" ) \ DPOINT_DEFN( SigOpenNpsll1, Signal, "Open due to NPSLL1 tripping", "" ) \ DPOINT_DEFN( SigOpenNpsll2, Signal, "Open due to NPSLL2 tripping", "" ) \ DPOINT_DEFN( SigOpenNpsll3, Signal, "Open due to NPSLL3 tripping", "" ) \ DPOINT_DEFN( SigOpenEfll1, Signal, "Open due to EFLL1 tripping", "" ) \ DPOINT_DEFN( SigOpenEfll2, Signal, "Open due to EFLL2 tripping", "" ) \ DPOINT_DEFN( SigOpenSefll, Signal, "Open due to SEFLL tripping", "" ) \ DPOINT_DEFN( SigAlarmNps1F, Signal, "Alarm output of NPS1+ activated", "" ) \ DPOINT_DEFN( SigAlarmNps2F, Signal, "Alarm output of NPS2+ activated", "" ) \ DPOINT_DEFN( SigAlarmNps3F, Signal, "Alarm output of NPS3+ activated", "" ) \ DPOINT_DEFN( SigAlarmNps1R, Signal, "Alarm output of NPS1- activated", "" ) \ DPOINT_DEFN( SigAlarmNps2R, Signal, "Alarm output of NPS2- activated", "" ) \ DPOINT_DEFN( SigAlarmNps3R, Signal, "Alarm output of NPS3- activated", "" ) \ DPOINT_DEFN( SigCtrlNPSOn, Signal, "Negative phase sequence element is switched on\r\n", "" ) \ DPOINT_DEFN( CntrNpsTrips, UI32, "Fault Counter of NPS Trips", "" ) \ DPOINT_DEFN( MeasPowerFlowDirectionNPS, ProtDirOut, "Measurement Power Flow Direction: NPS", "" ) \ DPOINT_DEFN( ProtNpsDir, ProtDirOut, "Negative phase sequency (NPS) protection's direction output(F/R/?)", "" ) \ DPOINT_DEFN( TripMaxCurrI2, UI32, "Max I2 current at the time of the most recent trip.", "" ) \ DPOINT_DEFN( G1_NpsAt, UI32, "Grp1 NPS Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G1_NpsDnd, DndMode, "Grp1 NPS DND", "" ) \ DPOINT_DEFN( G1_SstNpsForward, UI8, "Grp1 NPS+ Single shot to trip.", "" ) \ DPOINT_DEFN( G1_SstNpsReverse, UI8, "Grp1 NPS- Single shot to trip.", "" ) \ DPOINT_DEFN( G1_NPS1F_Ip, UI32, "Grp1 NPS1+ Pickup current", "" ) \ DPOINT_DEFN( G1_NPS1F_Tcc, UI16, "Grp1 NPS1+ TCC Type", "" ) \ DPOINT_DEFN( G1_NPS1F_TDtMin, UI32, "Grp1 NPS1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_NPS1F_TDtRes, UI32, "Grp1 NPS1+ DT reset time", "" ) \ DPOINT_DEFN( G1_NPS1F_Tm, UI32, "Grp1 NPS1+ Time multiplier", "" ) \ DPOINT_DEFN( G1_NPS1F_Imin, UI32, "Grp1 NPS1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G1_NPS1F_Tmin, UI32, "Grp1 NPS1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G1_NPS1F_Tmax, UI32, "Grp1 NPS1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G1_NPS1F_Ta, UI32, "Grp1 NPS1+ Additional time", "" ) \ DPOINT_DEFN( G1_NPS1F_ImaxEn, EnDis, "Grp1 NPS1+ Enable Max mode", "" ) \ DPOINT_DEFN( G1_NPS1F_Imax, UI32, "Grp1 NPS1+ Max current multiplier", "" ) \ DPOINT_DEFN( G1_NPS1F_DirEn, EnDis, "Grp1 NPS1+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_NPS1F_Tr1, TripMode, "Grp1 NPS1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_NPS1F_Tr2, TripMode, "Grp1 NPS1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_NPS1F_Tr3, TripMode, "Grp1 NPS1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_NPS1F_Tr4, TripMode, "Grp1 NPS1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_NPS1F_TccUD, TccCurve, "Grp1 NPS1+ User defined curve", "" ) \ DPOINT_DEFN( G1_NPS2F_Ip, UI32, "Grp1 NPS2+ Pickup current", "" ) \ DPOINT_DEFN( G1_NPS2F_Tcc, UI16, "Grp1 NPS2+ TCC Type", "" ) \ DPOINT_DEFN( G1_NPS2F_TDtMin, UI32, "Grp1 NPS2+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_NPS2F_TDtRes, UI32, "Grp1 NPS2+ DT reset time", "" ) \ DPOINT_DEFN( G1_NPS2F_Tm, UI32, "Grp1 NPS2+ Time multiplier", "" ) \ DPOINT_DEFN( G1_NPS2F_Imin, UI32, "Grp1 NPS2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G1_NPS2F_Tmin, UI32, "Grp1 NPS2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G1_NPS2F_Tmax, UI32, "Grp1 NPS2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G1_NPS2F_Ta, UI32, "Grp1 NPS2+ Additional time", "" ) \ DPOINT_DEFN( G1_NPS2F_ImaxEn, EnDis, "Grp1 NPS2+ Enable Max mode", "" ) \ DPOINT_DEFN( G1_NPS2F_Imax, UI32, "Grp1 NPS2+ Max current multiplier", "" ) \ DPOINT_DEFN( G1_NPS2F_DirEn, EnDis, "Grp1 NPS2+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_NPS2F_Tr1, TripMode, "Grp1 NPS2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_NPS2F_Tr2, TripMode, "Grp1 NPS2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_NPS2F_Tr3, TripMode, "Grp1 NPS2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_NPS2F_Tr4, TripMode, "Grp1 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_NPS2F_TccUD, TccCurve, "Grp1 NPS2+ User defined curve", "" ) \ DPOINT_DEFN( G1_NPS3F_Ip, UI32, "Grp1 NPS3+ Pickup current", "" ) \ DPOINT_DEFN( G1_NPS3F_TDtMin, UI32, "Grp1 NPS3+ DT tripping time", "" ) \ DPOINT_DEFN( G1_NPS3F_TDtRes, UI32, "Grp1 NPS3+ DT reset time", "" ) \ DPOINT_DEFN( G1_NPS3F_DirEn, EnDis, "Grp1 NPS3+ Enable directional protection", "" ) \ DPOINT_DEFN( G1_NPS3F_Tr1, TripMode, "Grp1 NPS3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_NPS3F_Tr2, TripMode, "Grp1 NPS3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_NPS3F_Tr3, TripMode, "Grp1 NPS3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_NPS3F_Tr4, TripMode, "Grp1 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_NPS1R_Ip, UI32, "Grp1 NPS1- Pickup current", "" ) \ DPOINT_DEFN( G1_NPS1R_Tcc, UI16, "Grp1 NPS1- TCC Type", "" ) \ DPOINT_DEFN( G1_NPS1R_TDtMin, UI32, "Grp1 NPS1- DT min tripping time", "" ) \ DPOINT_DEFN( G1_NPS1R_TDtRes, UI32, "Grp1 NPS1- DT reset time", "" ) \ DPOINT_DEFN( G1_NPS1R_Tm, UI32, "Grp1 NPS1- Time multiplier", "" ) \ DPOINT_DEFN( G1_NPS1R_Imin, UI32, "Grp1 NPS1- Min. current multiplier", "" ) \ DPOINT_DEFN( G1_NPS1R_Tmin, UI32, "Grp1 NPS1- Minimum tripping time", "" ) \ DPOINT_DEFN( G1_NPS1R_Tmax, UI32, "Grp1 NPS1- Maximum tripping time", "" ) \ DPOINT_DEFN( G1_NPS1R_Ta, UI32, "Grp1 NPS1- Additional time", "" ) \ DPOINT_DEFN( G1_NPS1R_ImaxEn, EnDis, "Grp1 NPS1- Enable Max mode", "" ) \ DPOINT_DEFN( G1_NPS1R_Imax, UI32, "Grp1 NPS1- Max current multiplier", "" ) \ DPOINT_DEFN( G1_NPS1R_DirEn, EnDis, "Grp1 NPS1- Enable directional protection", "" ) \ DPOINT_DEFN( G1_NPS1R_Tr1, TripMode, "Grp1 NPS1- Mode, Trip 1", "" ) \ DPOINT_DEFN( G1_NPS1R_Tr2, TripMode, "Grp1 NPS1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_NPS1R_Tr3, TripMode, "Grp1 NPS1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_NPS1R_Tr4, TripMode, "Grp1 NPS1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_NPS1R_TccUD, TccCurve, "Grp1 NPS1- User defined curve", "" ) \ DPOINT_DEFN( G1_NPS2R_Ip, UI32, "Grp1 NPS2- Pickup current", "" ) \ DPOINT_DEFN( G1_NPS2R_Tcc, UI16, "Grp1 NPS2- TCC Type", "" ) \ DPOINT_DEFN( G1_NPS2R_TDtMin, UI32, "Grp1 NPS2- DT min tripping time", "" ) \ DPOINT_DEFN( G1_NPS2R_TDtRes, UI32, "Grp1 NPS2- DT reset time", "" ) \ DPOINT_DEFN( G1_NPS2R_Tm, UI32, "Grp1 NPS2- Time multiplier", "" ) \ DPOINT_DEFN( G1_NPS2R_Imin, UI32, "Grp1 NPS2- Min. current multiplier", "" ) \ DPOINT_DEFN( G1_NPS2R_Tmin, UI32, "Grp1 NPS2- Minimum tripping time", "" ) \ DPOINT_DEFN( G1_NPS2R_Tmax, UI32, "Grp1 NPS2- Maximum tripping time", "" ) \ DPOINT_DEFN( G1_NPS2R_Ta, UI32, "Grp1 NPS2- Additional time", "" ) \ DPOINT_DEFN( G1_NPS2R_ImaxEn, EnDis, "Grp1 NPS2- Enable Max mode", "" ) \ DPOINT_DEFN( G1_NPS2R_Imax, UI32, "Grp1 NPS2- Max current multiplier", "" ) \ DPOINT_DEFN( G1_NPS2R_DirEn, EnDis, "Grp1 NPS2- Enable directional protection", "" ) \ DPOINT_DEFN( G1_NPS2R_Tr1, TripMode, "Grp1 NPS2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_NPS2R_Tr2, TripMode, "Grp1 NPS2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_NPS2R_Tr3, TripMode, "Grp1 NPS2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_NPS2R_Tr4, TripMode, "Grp1 NPS2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_NPS2R_TccUD, TccCurve, "Grp1 NPS2- User defined curve", "" ) \ DPOINT_DEFN( G1_NPS3R_Ip, UI32, "Grp1 NPS3- Pickup current", "" ) \ DPOINT_DEFN( G1_NPS3R_TDtMin, UI32, "Grp1 NPS3- DT tripping time", "" ) \ DPOINT_DEFN( G1_NPS3R_TDtRes, UI32, "Grp1 NPS3- DT reset time", "" ) \ DPOINT_DEFN( G1_NPS3R_DirEn, EnDis, "Grp1 NPS3- Enable directional protection", "" ) \ DPOINT_DEFN( G1_NPS3R_Tr1, TripMode, "Grp1 NPS3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G1_NPS3R_Tr2, TripMode, "Grp1 NPS3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G1_NPS3R_Tr3, TripMode, "Grp1 NPS3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G1_NPS3R_Tr4, TripMode, "Grp1 NPS3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G1_NPSLL1_Ip, UI32, "Grp1 NPSLL1 Pickup current", "" ) \ DPOINT_DEFN( G1_NPSLL1_Tcc, UI16, "Grp1 NPSLL1 TCC Type", "" ) \ DPOINT_DEFN( G1_NPSLL1_TDtMin, UI32, "Grp1 NPSLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_NPSLL1_TDtRes, UI32, "Grp1 NPSLL1 DT reset time", "" ) \ DPOINT_DEFN( G1_NPSLL1_Tm, UI32, "Grp1 NPSLL1 Time multiplier", "" ) \ DPOINT_DEFN( G1_NPSLL1_Imin, UI32, "Grp1 NPSLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G1_NPSLL1_Tmin, UI32, "Grp1 NPSLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G1_NPSLL1_Tmax, UI32, "Grp1 NPSLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G1_NPSLL1_Ta, UI32, "Grp1 NPSLL1 Additional time", "" ) \ DPOINT_DEFN( G1_NPSLL1_ImaxEn, EnDis, "Grp1 NPSLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G1_NPSLL1_Imax, UI32, "Grp1 NPSLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G1_NPSLL1_En, EnDis, "Grp1 NPSLL1 Enable", "" ) \ DPOINT_DEFN( G1_NPSLL1_TccUD, TccCurve, "Grp1 NPSLL1 User defined curve", "" ) \ DPOINT_DEFN( G1_NPSLL2_Ip, UI32, "Grp1 NPSLL2 Pickup current", "" ) \ DPOINT_DEFN( G1_NPSLL2_Tcc, UI16, "Grp1 NPSLL2 TCC Type", "" ) \ DPOINT_DEFN( G1_NPSLL2_TDtMin, UI32, "Grp1 NPSLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_NPSLL2_TDtRes, UI32, "Grp1 NPSLL2 DT reset time", "" ) \ DPOINT_DEFN( G1_NPSLL2_Tm, UI32, "Grp1 NPSLL2 Time multiplier", "" ) \ DPOINT_DEFN( G1_NPSLL2_Imin, UI32, "Grp1 NPSLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G1_NPSLL2_Tmin, UI32, "Grp1 NPSLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G1_NPSLL2_Tmax, UI32, "Grp1 NPSLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G1_NPSLL2_Ta, UI32, "Grp1 NPSLL2 Additional time", "" ) \ DPOINT_DEFN( G1_NPSLL2_ImaxEn, EnDis, "Grp1 NPSLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G1_NPSLL2_Imax, UI32, "Grp1 NPSLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G1_NPSLL2_En, EnDis, "Grp1 NPSLL2 Enable", "" ) \ DPOINT_DEFN( G1_NPSLL2_TccUD, TccCurve, "Grp1 NPSLL2 User defined curve", "" ) \ DPOINT_DEFN( G1_NPSLL3_Ip, UI32, "Grp1 NPSLL3 Pickup current", "" ) \ DPOINT_DEFN( G1_NPSLL3_TDtMin, UI32, "Grp1 NPSLL3 DT tripping time", "" ) \ DPOINT_DEFN( G1_NPSLL3_TDtRes, UI32, "Grp1 NPSLL3 DT reset time", "" ) \ DPOINT_DEFN( G1_NPSLL3_En, EnDis, "Grp1 NPSLL3 Enable", "" ) \ DPOINT_DEFN( G1_EFLL1_Ip, UI32, "Grp1 EFLL1 Pickup current", "" ) \ DPOINT_DEFN( G1_EFLL1_Tcc, UI16, "Grp1 EFLL1 TCC Type", "" ) \ DPOINT_DEFN( G1_EFLL1_TDtMin, UI32, "Grp1 EFLL1 DT min tripping time", "" ) \ DPOINT_DEFN( G1_EFLL1_TDtRes, UI32, "Grp1 EFLL1 DT reset time", "" ) \ DPOINT_DEFN( G1_EFLL1_Tm, UI32, "Grp1 EFLL1 Time multiplier", "" ) \ DPOINT_DEFN( G1_EFLL1_Imin, UI32, "Grp1 EFLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G1_EFLL1_Tmin, UI32, "Grp1 EFLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G1_EFLL1_Tmax, UI32, "Grp1 EFLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G1_EFLL1_Ta, UI32, "Grp1 EFLL1 Additional time", "" ) \ DPOINT_DEFN( G1_EFLL1_ImaxEn, EnDis, "Grp1 EFLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G1_EFLL1_Imax, UI32, "Grp1 EFLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G1_EFLL1_En, EnDis, "Grp1 EFLL1 Enable", "" ) \ DPOINT_DEFN( G1_EFLL1_TccUD, TccCurve, "Grp1 EFLL1 User defined curve", "" ) \ DPOINT_DEFN( G1_EFLL2_Ip, UI32, "Grp1 EFLL2 Pickup current", "" ) \ DPOINT_DEFN( G1_EFLL2_Tcc, UI16, "Grp1 EFLL2 TCC Type", "" ) \ DPOINT_DEFN( G1_EFLL2_TDtMin, UI32, "Grp1 EFLL2 DT min tripping time", "" ) \ DPOINT_DEFN( G1_EFLL2_TDtRes, UI32, "Grp1 EFLL2 DT reset time", "" ) \ DPOINT_DEFN( G1_EFLL2_Tm, UI32, "Grp1 EFLL2 Time multiplier", "" ) \ DPOINT_DEFN( G1_EFLL2_Imin, UI32, "Grp1 EFLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G1_EFLL2_Tmin, UI32, "Grp1 EFLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G1_EFLL2_Tmax, UI32, "Grp1 EFLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G1_EFLL2_Ta, UI32, "Grp1 EFLL2 Additional time", "" ) \ DPOINT_DEFN( G1_EFLL2_ImaxEn, EnDis, "Grp1 EFLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G1_EFLL2_Imax, UI32, "Grp1 EFLL2 Max mode", "" ) \ DPOINT_DEFN( G1_EFLL2_En, EnDis, "Grp1 EFLL2 Enable", "" ) \ DPOINT_DEFN( G1_EFLL2_TccUD, TccCurve, "Grp1 EFLL2 User defined curve", "" ) \ DPOINT_DEFN( G1_EFLL3_En, EnDis, "Grp1 EFLL3 Enable", "" ) \ DPOINT_DEFN( G1_SEFLL_Ip, UI32, "Grp1 SEFLL Pickup current", "" ) \ DPOINT_DEFN( G1_SEFLL_TDtMin, UI32, "Grp1 SEFLL DT tripping time", "" ) \ DPOINT_DEFN( G1_SEFLL_TDtRes, UI32, "Grp1 SEFLL DT reset time", "" ) \ DPOINT_DEFN( G1_SEFLL_En, EnDis, "Grp1 SEFLL Enable", "" ) \ DPOINT_DEFN( G1_AutoOpenPowerFlowReduction, UI8, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_AutoOpenPowerFlowTime, UI16, "Grp1 No description", "" ) \ DPOINT_DEFN( G1_LSRM_Timer, UI16, "Grp1 ", "" ) \ DPOINT_DEFN( G1_LSRM_En, EnDis, "Grp1 ", "" ) \ DPOINT_DEFN( G1_Uv4_TDtMin, UI32, "Grp1 UV4 DT operation time", "" ) \ DPOINT_DEFN( G1_Uv4_TDtRes, UI32, "Grp1 UV4 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Uv4_Trm, TripMode, "Grp1 UV4 Trip mode", "" ) \ DPOINT_DEFN( G1_Uv4_Um_min, UI32, "Grp1 UV4 Min voltage multiplier", "" ) \ DPOINT_DEFN( G1_Uv4_Um_max, UI32, "Grp1 UV4 Max voltage multiplier", "" ) \ DPOINT_DEFN( G1_Uv4_Um_mid, UI32, "Grp1 UV4 Mid voltage multiplier", "" ) \ DPOINT_DEFN( G1_Uv4_Tlock, UI16, "Grp1 UV4 lockout time", "" ) \ DPOINT_DEFN( G1_Uv4_Utype, Uv4VoltageType, "Grp1 UV4: Voltage type - Phase/Ground or Phase/Phase", "" ) \ DPOINT_DEFN( G1_Uv4_Voltages, Uv4Voltages, "Grp1 UV4: Voltages - ABC_RST, ABC, RST", "" ) \ DPOINT_DEFN( G1_SingleTripleModeF, SingleTripleMode, "Grp1 Single-triple mode for the forward direction.", "" ) \ DPOINT_DEFN( G1_SingleTripleModeR, SingleTripleMode, "Grp1 Single-triple mode for the reverse direction.", "" ) \ DPOINT_DEFN( G1_SinglePhaseVoltageDetect, EnDis, "Grp1 Indicates whether ABR should monitor all three phases or any single phase for below LSD when single-triple is active.", "" ) \ DPOINT_DEFN( G1_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp1 Voltages to monitor for UV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G1_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp1 Voltages to monitor for OV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G1_LlbEnable, EnDis, "Grp1 Live Load Block Enable/disable", "" ) \ DPOINT_DEFN( G1_LlbUM, UI32, "Grp1 LLB voltage multiplier", "" ) \ DPOINT_DEFN( G1_SectionaliserMode, EnDis, "Grp1 Sectionaliser Mode", "" ) \ DPOINT_DEFN( G1_OcDcr, LockDynamic, "Grp1 OC DCR", "" ) \ DPOINT_DEFN( G1_NpsDcr, LockDynamic, "Grp1 NPS DCR", "" ) \ DPOINT_DEFN( G1_EfDcr, LockDynamic, "Grp1 EF DCR", "" ) \ DPOINT_DEFN( G1_SefDcr, LockDynamic, "Grp1 SEF DCR", "" ) \ DPOINT_DEFN( G1_Ov3_Um, UI32, "Grp1 OV3 Voltage multiplier", "" ) \ DPOINT_DEFN( G1_Ov3_TDtMin, UI32, "Grp1 OV3 DT tripping time", "" ) \ DPOINT_DEFN( G1_Ov3_TDtRes, UI32, "Grp1 OV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G1_Ov3_Trm, TripMode, "Grp1 OV3 Trip mode", "" ) \ DPOINT_DEFN( G1_Ov4_Um, UI32, "Grp1 OV4 Voltage multiplier", "" ) \ DPOINT_DEFN( G1_Ov4_TDtMin, UI32, "Grp1 OV4 DT tripping time", "" ) \ DPOINT_DEFN( G1_Ov4_TDtRes, UI32, "Grp1 OV4 DT reset time. Note that this value is not yet user configurable", "" ) \ DPOINT_DEFN( G1_Ov4_Trm, TripMode, "Grp1 OV4 Trip mode", "" ) \ DPOINT_DEFN( G1_SequenceAdvanceStep, UI8, "Grp1 The sequence advance step config; specifies the maximum count that the sequence step will be advanced to if LSD is detected while the switch is closed.", "" ) \ DPOINT_DEFN( G1_UV3_SSTOnly, EnDis, "Grp1 Enable flag for UV3 Operate in SST only mode.", "" ) \ DPOINT_DEFN( G1_OV3MovingAverageMode, EnDis, "Grp1 Moving average mode for OV3", "" ) \ DPOINT_DEFN( G1_OV3MovingAverageWindow, UI32, "Grp1 Length of the OV3 moving average window in seconds", "" ) \ DPOINT_DEFN( G1_ArveTripsToLockout, TripsToLockout, "Grp1 Number of trips to lockout for voltage engines.", "" ) \ DPOINT_DEFN( G1_I2I1_Trm, TripModeDLA, "Grp1 I2/I1 trip mode", "" ) \ DPOINT_DEFN( G1_I2I1_Pickup, UI32, "Grp1 I2/I1 pickup value", "" ) \ DPOINT_DEFN( G1_I2I1_MinI2, UI32, "Grp1 Minimum I2 value for I2/I1 operation", "" ) \ DPOINT_DEFN( G1_I2I1_TDtMin, UI32, "Grp1 I2/I1 minimum tripping time", "" ) \ DPOINT_DEFN( G1_I2I1_TDtRes, UI32, "Grp1 I2/I1 DT reset time", "" ) \ DPOINT_DEFN( G1_SEFF_Ip_HighPrec, UI32, "Grp1 SEF+ Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G1_SEFR_Ip_HighPrec, UI32, "Grp1 SEF- Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G1_SEFLL_Ip_HighPrec, UI32, "Grp1 SEFLL Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G1_SSTControl_En, EnDis, "Grp1 Enable/disable setting for SST Control feature.", "" ) \ DPOINT_DEFN( G1_SSTControl_Tst, UI32, "Grp1 SST Control: time", "" ) \ DPOINT_DEFN( G2_NpsAt, UI32, "Grp2 NPS Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G2_NpsDnd, DndMode, "Grp2 NPS DND", "" ) \ DPOINT_DEFN( G2_SstNpsForward, UI8, "Grp2 NPS+ Single shot to trip.", "" ) \ DPOINT_DEFN( G2_SstNpsReverse, UI8, "Grp2 NPS- Single shot to trip.", "" ) \ DPOINT_DEFN( G2_NPS1F_Ip, UI32, "Grp2 NPS1+ Pickup current", "" ) \ DPOINT_DEFN( G2_NPS1F_Tcc, UI16, "Grp2 NPS1+ TCC Type", "" ) \ DPOINT_DEFN( G2_NPS1F_TDtMin, UI32, "Grp2 NPS1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_NPS1F_TDtRes, UI32, "Grp2 NPS1+ DT reset time", "" ) \ DPOINT_DEFN( G2_NPS1F_Tm, UI32, "Grp2 NPS1+ Time multiplier", "" ) \ DPOINT_DEFN( G2_NPS1F_Imin, UI32, "Grp2 NPS1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G2_NPS1F_Tmin, UI32, "Grp2 NPS1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G2_NPS1F_Tmax, UI32, "Grp2 NPS1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G2_NPS1F_Ta, UI32, "Grp2 NPS1+ Additional time", "" ) \ DPOINT_DEFN( G2_NPS1F_ImaxEn, EnDis, "Grp2 NPS1+ Enable Max mode", "" ) \ DPOINT_DEFN( G2_NPS1F_Imax, UI32, "Grp2 NPS1+ Max current multiplier", "" ) \ DPOINT_DEFN( G2_NPS1F_DirEn, EnDis, "Grp2 NPS1+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_NPS1F_Tr1, TripMode, "Grp2 NPS1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_NPS1F_Tr2, TripMode, "Grp2 NPS1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_NPS1F_Tr3, TripMode, "Grp2 NPS1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_NPS1F_Tr4, TripMode, "Grp2 NPS1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_NPS1F_TccUD, TccCurve, "Grp2 NPS1+ User defined curve", "" ) \ DPOINT_DEFN( G2_NPS2F_Ip, UI32, "Grp2 NPS2+ Pickup current", "" ) \ DPOINT_DEFN( G2_NPS2F_Tcc, UI16, "Grp2 NPS2+ TCC Type", "" ) \ DPOINT_DEFN( G2_NPS2F_TDtMin, UI32, "Grp2 NPS2+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_NPS2F_TDtRes, UI32, "Grp2 NPS2+ DT reset time", "" ) \ DPOINT_DEFN( G2_NPS2F_Tm, UI32, "Grp2 NPS2+ Time multiplier", "" ) \ DPOINT_DEFN( G2_NPS2F_Imin, UI32, "Grp2 NPS2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G2_NPS2F_Tmin, UI32, "Grp2 NPS2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G2_NPS2F_Tmax, UI32, "Grp2 NPS2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G2_NPS2F_Ta, UI32, "Grp2 NPS2+ Additional time", "" ) \ DPOINT_DEFN( G2_NPS2F_ImaxEn, EnDis, "Grp2 NPS2+ Enable Max mode", "" ) \ DPOINT_DEFN( G2_NPS2F_Imax, UI32, "Grp2 NPS2+ Max current multiplier", "" ) \ DPOINT_DEFN( G2_NPS2F_DirEn, EnDis, "Grp2 NPS2+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_NPS2F_Tr1, TripMode, "Grp2 NPS2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_NPS2F_Tr2, TripMode, "Grp2 NPS2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_NPS2F_Tr3, TripMode, "Grp2 NPS2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_NPS2F_Tr4, TripMode, "Grp2 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_NPS2F_TccUD, TccCurve, "Grp2 NPS2+ User defined curve", "" ) \ DPOINT_DEFN( G2_NPS3F_Ip, UI32, "Grp2 NPS3+ Pickup current", "" ) \ DPOINT_DEFN( G2_NPS3F_TDtMin, UI32, "Grp2 NPS3+ DT tripping time", "" ) \ DPOINT_DEFN( G2_NPS3F_TDtRes, UI32, "Grp2 NPS3+ DT reset time", "" ) \ DPOINT_DEFN( G2_NPS3F_DirEn, EnDis, "Grp2 NPS3+ Enable directional protection", "" ) \ DPOINT_DEFN( G2_NPS3F_Tr1, TripMode, "Grp2 NPS3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_NPS3F_Tr2, TripMode, "Grp2 NPS3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_NPS3F_Tr3, TripMode, "Grp2 NPS3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_NPS3F_Tr4, TripMode, "Grp2 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_NPS1R_Ip, UI32, "Grp2 NPS1- Pickup current", "" ) \ DPOINT_DEFN( G2_NPS1R_Tcc, UI16, "Grp2 NPS1- TCC Type", "" ) \ DPOINT_DEFN( G2_NPS1R_TDtMin, UI32, "Grp2 NPS1- DT min tripping time", "" ) \ DPOINT_DEFN( G2_NPS1R_TDtRes, UI32, "Grp2 NPS1- DT reset time", "" ) \ DPOINT_DEFN( G2_NPS1R_Tm, UI32, "Grp2 NPS1- Time multiplier", "" ) \ DPOINT_DEFN( G2_NPS1R_Imin, UI32, "Grp2 NPS1- Min. current multiplier", "" ) \ DPOINT_DEFN( G2_NPS1R_Tmin, UI32, "Grp2 NPS1- Minimum tripping time", "" ) \ DPOINT_DEFN( G2_NPS1R_Tmax, UI32, "Grp2 NPS1- Maximum tripping time", "" ) \ DPOINT_DEFN( G2_NPS1R_Ta, UI32, "Grp2 NPS1- Additional time", "" ) \ DPOINT_DEFN( G2_NPS1R_ImaxEn, EnDis, "Grp2 NPS1- Enable Max mode", "" ) \ DPOINT_DEFN( G2_NPS1R_Imax, UI32, "Grp2 NPS1- Max current multiplier", "" ) \ DPOINT_DEFN( G2_NPS1R_DirEn, EnDis, "Grp2 NPS1- Enable directional protection", "" ) \ DPOINT_DEFN( G2_NPS1R_Tr1, TripMode, "Grp2 NPS1- Mode, Trip 1", "" ) \ DPOINT_DEFN( G2_NPS1R_Tr2, TripMode, "Grp2 NPS1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_NPS1R_Tr3, TripMode, "Grp2 NPS1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_NPS1R_Tr4, TripMode, "Grp2 NPS1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_NPS1R_TccUD, TccCurve, "Grp2 NPS1- User defined curve", "" ) \ DPOINT_DEFN( G2_NPS2R_Ip, UI32, "Grp2 NPS2- Pickup current", "" ) \ DPOINT_DEFN( G2_NPS2R_Tcc, UI16, "Grp2 NPS2- TCC Type", "" ) \ DPOINT_DEFN( G2_NPS2R_TDtMin, UI32, "Grp2 NPS2- DT min tripping time", "" ) \ DPOINT_DEFN( G2_NPS2R_TDtRes, UI32, "Grp2 NPS2- DT reset time", "" ) \ DPOINT_DEFN( G2_NPS2R_Tm, UI32, "Grp2 NPS2- Time multiplier", "" ) \ DPOINT_DEFN( G2_NPS2R_Imin, UI32, "Grp2 NPS2- Min. current multiplier", "" ) \ DPOINT_DEFN( G2_NPS2R_Tmin, UI32, "Grp2 NPS2- Minimum tripping time", "" ) \ DPOINT_DEFN( G2_NPS2R_Tmax, UI32, "Grp2 NPS2- Maximum tripping time", "" ) \ DPOINT_DEFN( G2_NPS2R_Ta, UI32, "Grp2 NPS2- Additional time", "" ) \ DPOINT_DEFN( G2_NPS2R_ImaxEn, EnDis, "Grp2 NPS2- Enable Max mode", "" ) \ DPOINT_DEFN( G2_NPS2R_Imax, UI32, "Grp2 NPS2- Max current multiplier", "" ) \ DPOINT_DEFN( G2_NPS2R_DirEn, EnDis, "Grp2 NPS2- Enable directional protection", "" ) \ DPOINT_DEFN( G2_NPS2R_Tr1, TripMode, "Grp2 NPS2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_NPS2R_Tr2, TripMode, "Grp2 NPS2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_NPS2R_Tr3, TripMode, "Grp2 NPS2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_NPS2R_Tr4, TripMode, "Grp2 NPS2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_NPS2R_TccUD, TccCurve, "Grp2 NPS2- User defined curve", "" ) \ DPOINT_DEFN( G2_NPS3R_Ip, UI32, "Grp2 NPS3- Pickup current", "" ) \ DPOINT_DEFN( G2_NPS3R_TDtMin, UI32, "Grp2 NPS3- DT tripping time", "" ) \ DPOINT_DEFN( G2_NPS3R_TDtRes, UI32, "Grp2 NPS3- DT reset time", "" ) \ DPOINT_DEFN( G2_NPS3R_DirEn, EnDis, "Grp2 NPS3- Enable directional protection", "" ) \ DPOINT_DEFN( G2_NPS3R_Tr1, TripMode, "Grp2 NPS3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G2_NPS3R_Tr2, TripMode, "Grp2 NPS3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G2_NPS3R_Tr3, TripMode, "Grp2 NPS3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G2_NPS3R_Tr4, TripMode, "Grp2 NPS3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G2_NPSLL1_Ip, UI32, "Grp2 NPSLL1 Pickup current", "" ) \ DPOINT_DEFN( G2_NPSLL1_Tcc, UI16, "Grp2 NPSLL1 TCC Type", "" ) \ DPOINT_DEFN( G2_NPSLL1_TDtMin, UI32, "Grp2 NPSLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_NPSLL1_TDtRes, UI32, "Grp2 NPSLL1 DT reset time", "" ) \ DPOINT_DEFN( G2_NPSLL1_Tm, UI32, "Grp2 NPSLL1 Time multiplier", "" ) \ DPOINT_DEFN( G2_NPSLL1_Imin, UI32, "Grp2 NPSLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G2_NPSLL1_Tmin, UI32, "Grp2 NPSLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G2_NPSLL1_Tmax, UI32, "Grp2 NPSLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G2_NPSLL1_Ta, UI32, "Grp2 NPSLL1 Additional time", "" ) \ DPOINT_DEFN( G2_NPSLL1_ImaxEn, EnDis, "Grp2 NPSLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G2_NPSLL1_Imax, UI32, "Grp2 NPSLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G2_NPSLL1_En, EnDis, "Grp2 NPSLL1 Enable", "" ) \ DPOINT_DEFN( G2_NPSLL1_TccUD, TccCurve, "Grp2 NPSLL1 User defined curve", "" ) \ DPOINT_DEFN( G2_NPSLL2_Ip, UI32, "Grp2 NPSLL2 Pickup current", "" ) \ DPOINT_DEFN( G2_NPSLL2_Tcc, UI16, "Grp2 NPSLL2 TCC Type", "" ) \ DPOINT_DEFN( G2_NPSLL2_TDtMin, UI32, "Grp2 NPSLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_NPSLL2_TDtRes, UI32, "Grp2 NPSLL2 DT reset time", "" ) \ DPOINT_DEFN( G2_NPSLL2_Tm, UI32, "Grp2 NPSLL2 Time multiplier", "" ) \ DPOINT_DEFN( G2_NPSLL2_Imin, UI32, "Grp2 NPSLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G2_NPSLL2_Tmin, UI32, "Grp2 NPSLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G2_NPSLL2_Tmax, UI32, "Grp2 NPSLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G2_NPSLL2_Ta, UI32, "Grp2 NPSLL2 Additional time", "" ) \ DPOINT_DEFN( G2_NPSLL2_ImaxEn, EnDis, "Grp2 NPSLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G2_NPSLL2_Imax, UI32, "Grp2 NPSLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G2_NPSLL2_En, EnDis, "Grp2 NPSLL2 Enable", "" ) \ DPOINT_DEFN( G2_NPSLL2_TccUD, TccCurve, "Grp2 NPSLL2 User defined curve", "" ) \ DPOINT_DEFN( G2_NPSLL3_Ip, UI32, "Grp2 NPSLL3 Pickup current", "" ) \ DPOINT_DEFN( G2_NPSLL3_TDtMin, UI32, "Grp2 NPSLL3 DT tripping time", "" ) \ DPOINT_DEFN( G2_NPSLL3_TDtRes, UI32, "Grp2 NPSLL3 DT reset time", "" ) \ DPOINT_DEFN( G2_NPSLL3_En, EnDis, "Grp2 NPSLL3 Enable", "" ) \ DPOINT_DEFN( G2_EFLL1_Ip, UI32, "Grp2 EFLL1 Pickup current", "" ) \ DPOINT_DEFN( G2_EFLL1_Tcc, UI16, "Grp2 EFLL1 TCC Type", "" ) \ DPOINT_DEFN( G2_EFLL1_TDtMin, UI32, "Grp2 EFLL1 DT min tripping time", "" ) \ DPOINT_DEFN( G2_EFLL1_TDtRes, UI32, "Grp2 EFLL1 DT reset time", "" ) \ DPOINT_DEFN( G2_EFLL1_Tm, UI32, "Grp2 EFLL1 Time multiplier", "" ) \ DPOINT_DEFN( G2_EFLL1_Imin, UI32, "Grp2 EFLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G2_EFLL1_Tmin, UI32, "Grp2 EFLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G2_EFLL1_Tmax, UI32, "Grp2 EFLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G2_EFLL1_Ta, UI32, "Grp2 EFLL1 Additional time", "" ) \ DPOINT_DEFN( G2_EFLL1_ImaxEn, EnDis, "Grp2 EFLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G2_EFLL1_Imax, UI32, "Grp2 EFLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G2_EFLL1_En, EnDis, "Grp2 EFLL1 Enable", "" ) \ DPOINT_DEFN( G2_EFLL1_TccUD, TccCurve, "Grp2 EFLL1 User defined curve", "" ) \ DPOINT_DEFN( G2_EFLL2_Ip, UI32, "Grp2 EFLL2 Pickup current", "" ) \ DPOINT_DEFN( G2_EFLL2_Tcc, UI16, "Grp2 EFLL2 TCC Type", "" ) \ DPOINT_DEFN( G2_EFLL2_TDtMin, UI32, "Grp2 EFLL2 DT min tripping time", "" ) \ DPOINT_DEFN( G2_EFLL2_TDtRes, UI32, "Grp2 EFLL2 DT reset time", "" ) \ DPOINT_DEFN( G2_EFLL2_Tm, UI32, "Grp2 EFLL2 Time multiplier", "" ) \ DPOINT_DEFN( G2_EFLL2_Imin, UI32, "Grp2 EFLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G2_EFLL2_Tmin, UI32, "Grp2 EFLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G2_EFLL2_Tmax, UI32, "Grp2 EFLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G2_EFLL2_Ta, UI32, "Grp2 EFLL2 Additional time", "" ) \ DPOINT_DEFN( G2_EFLL2_ImaxEn, EnDis, "Grp2 EFLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G2_EFLL2_Imax, UI32, "Grp2 EFLL2 Max mode", "" ) \ DPOINT_DEFN( G2_EFLL2_En, EnDis, "Grp2 EFLL2 Enable", "" ) \ DPOINT_DEFN( G2_EFLL2_TccUD, TccCurve, "Grp2 EFLL2 User defined curve", "" ) \ DPOINT_DEFN( G2_EFLL3_En, EnDis, "Grp2 EFLL3 Enable", "" ) \ DPOINT_DEFN( G2_SEFLL_Ip, UI32, "Grp2 SEFLL Pickup current", "" ) \ DPOINT_DEFN( G2_SEFLL_TDtMin, UI32, "Grp2 SEFLL DT tripping time", "" ) \ DPOINT_DEFN( G2_SEFLL_TDtRes, UI32, "Grp2 SEFLL DT reset time", "" ) \ DPOINT_DEFN( G2_SEFLL_En, EnDis, "Grp2 SEFLL Enable", "" ) \ DPOINT_DEFN( G2_AutoOpenPowerFlowReduction, UI8, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_AutoOpenPowerFlowTime, UI16, "Grp2 No description", "" ) \ DPOINT_DEFN( G2_LSRM_Timer, UI16, "Grp2 ", "" ) \ DPOINT_DEFN( G2_LSRM_En, EnDis, "Grp2 ", "" ) \ DPOINT_DEFN( G2_Uv4_TDtMin, UI32, "Grp2 UV4 DT operation time", "" ) \ DPOINT_DEFN( G2_Uv4_TDtRes, UI32, "Grp2 UV4 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Uv4_Trm, TripMode, "Grp2 UV4 Trip mode", "" ) \ DPOINT_DEFN( G2_Uv4_Um_min, UI32, "Grp2 UV4 Min voltage multiplier", "" ) \ DPOINT_DEFN( G2_Uv4_Um_max, UI32, "Grp2 UV4 Max voltage multiplier", "" ) \ DPOINT_DEFN( G2_Uv4_Um_mid, UI32, "Grp2 UV4 Mid voltage multiplier", "" ) \ DPOINT_DEFN( G2_Uv4_Tlock, UI16, "Grp2 UV4 lockout time", "" ) \ DPOINT_DEFN( G2_Uv4_Utype, Uv4VoltageType, "Grp2 UV4: Voltage type - Phase/Ground or Phase/Phase", "" ) \ DPOINT_DEFN( G2_Uv4_Voltages, Uv4Voltages, "Grp2 UV4: Voltages - ABC_RST, ABC, RST", "" ) \ DPOINT_DEFN( G2_SingleTripleModeF, SingleTripleMode, "Grp2 Single-triple mode for the forward direction.", "" ) \ DPOINT_DEFN( G2_SingleTripleModeR, SingleTripleMode, "Grp2 Single-triple mode for the reverse direction.", "" ) \ DPOINT_DEFN( G2_SinglePhaseVoltageDetect, EnDis, "Grp2 Indicates whether ABR should monitor all three phases or any single phase for below LSD when single-triple is active.", "" ) \ DPOINT_DEFN( G2_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp2 Voltages to monitor for UV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G2_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp2 Voltages to monitor for OV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G2_LlbEnable, EnDis, "Grp2 Live Load Block Enable/disable", "" ) \ DPOINT_DEFN( G2_LlbUM, UI32, "Grp2 LLB voltage multiplier", "" ) \ DPOINT_DEFN( G2_SectionaliserMode, EnDis, "Grp2 Sectionaliser Mode", "" ) \ DPOINT_DEFN( G2_OcDcr, LockDynamic, "Grp2 OC DCR", "" ) \ DPOINT_DEFN( G2_NpsDcr, LockDynamic, "Grp2 NPS DCR", "" ) \ DPOINT_DEFN( G2_EfDcr, LockDynamic, "Grp2 EF DCR", "" ) \ DPOINT_DEFN( G2_SefDcr, LockDynamic, "Grp2 SEF DCR", "" ) \ DPOINT_DEFN( G2_Ov3_Um, UI32, "Grp2 OV3 Voltage multiplier", "" ) \ DPOINT_DEFN( G2_Ov3_TDtMin, UI32, "Grp2 OV3 DT tripping time", "" ) \ DPOINT_DEFN( G2_Ov3_TDtRes, UI32, "Grp2 OV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G2_Ov3_Trm, TripMode, "Grp2 OV3 Trip mode", "" ) \ DPOINT_DEFN( G2_Ov4_Um, UI32, "Grp2 OV4 Voltage multiplier", "" ) \ DPOINT_DEFN( G2_Ov4_TDtMin, UI32, "Grp2 OV4 DT tripping time", "" ) \ DPOINT_DEFN( G2_Ov4_TDtRes, UI32, "Grp2 OV4 DT reset time. Note that this value is not yet user configurable", "" ) \ DPOINT_DEFN( G2_Ov4_Trm, TripMode, "Grp2 OV4 Trip mode", "" ) \ DPOINT_DEFN( G2_SequenceAdvanceStep, UI8, "Grp2 The sequence advance step config; specifies the maximum count that the sequence step will be advanced to if LSD is detected while the switch is closed.", "" ) \ DPOINT_DEFN( G2_UV3_SSTOnly, EnDis, "Grp2 Enable flag for UV3 Operate in SST only mode.", "" ) \ DPOINT_DEFN( G2_OV3MovingAverageMode, EnDis, "Grp2 Moving average mode for OV3", "" ) \ DPOINT_DEFN( G2_OV3MovingAverageWindow, UI32, "Grp2 Length of the OV3 moving average window in seconds", "" ) \ DPOINT_DEFN( G2_ArveTripsToLockout, TripsToLockout, "Grp2 Number of trips to lockout for voltage engines.", "" ) \ DPOINT_DEFN( G2_I2I1_Trm, TripModeDLA, "Grp2 I2/I1 trip mode", "" ) \ DPOINT_DEFN( G2_I2I1_Pickup, UI32, "Grp2 I2/I1 pickup value", "" ) \ DPOINT_DEFN( G2_I2I1_MinI2, UI32, "Grp2 Minimum I2 value for I2/I1 operation", "" ) \ DPOINT_DEFN( G2_I2I1_TDtMin, UI32, "Grp2 I2/I1 minimum tripping time", "" ) \ DPOINT_DEFN( G2_I2I1_TDtRes, UI32, "Grp2 I2/I1 DT reset time", "" ) \ DPOINT_DEFN( G2_SEFF_Ip_HighPrec, UI32, "Grp2 SEF+ Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G2_SEFR_Ip_HighPrec, UI32, "Grp2 SEF- Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G2_SEFLL_Ip_HighPrec, UI32, "Grp2 SEFLL Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G2_SSTControl_En, EnDis, "Grp2 Enable/disable setting for SST Control feature.", "" ) \ DPOINT_DEFN( G2_SSTControl_Tst, UI32, "Grp2 SST Control: time", "" ) \ DPOINT_DEFN( G3_NpsAt, UI32, "Grp3 NPS Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G3_NpsDnd, DndMode, "Grp3 NPS DND", "" ) \ DPOINT_DEFN( G3_SstNpsForward, UI8, "Grp3 NPS+ Single shot to trip.", "" ) \ DPOINT_DEFN( G3_SstNpsReverse, UI8, "Grp3 NPS- Single shot to trip.", "" ) \ DPOINT_DEFN( G3_NPS1F_Ip, UI32, "Grp3 NPS1+ Pickup current", "" ) \ DPOINT_DEFN( G3_NPS1F_Tcc, UI16, "Grp3 NPS1+ TCC Type", "" ) \ DPOINT_DEFN( G3_NPS1F_TDtMin, UI32, "Grp3 NPS1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_NPS1F_TDtRes, UI32, "Grp3 NPS1+ DT reset time", "" ) \ DPOINT_DEFN( G3_NPS1F_Tm, UI32, "Grp3 NPS1+ Time multiplier", "" ) \ DPOINT_DEFN( G3_NPS1F_Imin, UI32, "Grp3 NPS1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G3_NPS1F_Tmin, UI32, "Grp3 NPS1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G3_NPS1F_Tmax, UI32, "Grp3 NPS1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G3_NPS1F_Ta, UI32, "Grp3 NPS1+ Additional time", "" ) \ DPOINT_DEFN( G3_NPS1F_ImaxEn, EnDis, "Grp3 NPS1+ Enable Max mode", "" ) \ DPOINT_DEFN( G3_NPS1F_Imax, UI32, "Grp3 NPS1+ Max current multiplier", "" ) \ DPOINT_DEFN( G3_NPS1F_DirEn, EnDis, "Grp3 NPS1+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_NPS1F_Tr1, TripMode, "Grp3 NPS1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_NPS1F_Tr2, TripMode, "Grp3 NPS1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_NPS1F_Tr3, TripMode, "Grp3 NPS1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_NPS1F_Tr4, TripMode, "Grp3 NPS1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_NPS1F_TccUD, TccCurve, "Grp3 NPS1+ User defined curve", "" ) \ DPOINT_DEFN( G3_NPS2F_Ip, UI32, "Grp3 NPS2+ Pickup current", "" ) \ DPOINT_DEFN( G3_NPS2F_Tcc, UI16, "Grp3 NPS2+ TCC Type", "" ) \ DPOINT_DEFN( G3_NPS2F_TDtMin, UI32, "Grp3 NPS2+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_NPS2F_TDtRes, UI32, "Grp3 NPS2+ DT reset time", "" ) \ DPOINT_DEFN( G3_NPS2F_Tm, UI32, "Grp3 NPS2+ Time multiplier", "" ) \ DPOINT_DEFN( G3_NPS2F_Imin, UI32, "Grp3 NPS2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G3_NPS2F_Tmin, UI32, "Grp3 NPS2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G3_NPS2F_Tmax, UI32, "Grp3 NPS2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G3_NPS2F_Ta, UI32, "Grp3 NPS2+ Additional time", "" ) \ DPOINT_DEFN( G3_NPS2F_ImaxEn, EnDis, "Grp3 NPS2+ Enable Max mode", "" ) \ DPOINT_DEFN( G3_NPS2F_Imax, UI32, "Grp3 NPS2+ Max current multiplier", "" ) \ DPOINT_DEFN( G3_NPS2F_DirEn, EnDis, "Grp3 NPS2+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_NPS2F_Tr1, TripMode, "Grp3 NPS2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_NPS2F_Tr2, TripMode, "Grp3 NPS2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_NPS2F_Tr3, TripMode, "Grp3 NPS2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_NPS2F_Tr4, TripMode, "Grp3 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_NPS2F_TccUD, TccCurve, "Grp3 NPS2+ User defined curve", "" ) \ DPOINT_DEFN( G3_NPS3F_Ip, UI32, "Grp3 NPS3+ Pickup current", "" ) \ DPOINT_DEFN( G3_NPS3F_TDtMin, UI32, "Grp3 NPS3+ DT tripping time", "" ) \ DPOINT_DEFN( G3_NPS3F_TDtRes, UI32, "Grp3 NPS3+ DT reset time", "" ) \ DPOINT_DEFN( G3_NPS3F_DirEn, EnDis, "Grp3 NPS3+ Enable directional protection", "" ) \ DPOINT_DEFN( G3_NPS3F_Tr1, TripMode, "Grp3 NPS3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_NPS3F_Tr2, TripMode, "Grp3 NPS3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_NPS3F_Tr3, TripMode, "Grp3 NPS3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_NPS3F_Tr4, TripMode, "Grp3 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_NPS1R_Ip, UI32, "Grp3 NPS1- Pickup current", "" ) \ DPOINT_DEFN( G3_NPS1R_Tcc, UI16, "Grp3 NPS1- TCC Type", "" ) \ DPOINT_DEFN( G3_NPS1R_TDtMin, UI32, "Grp3 NPS1- DT min tripping time", "" ) \ DPOINT_DEFN( G3_NPS1R_TDtRes, UI32, "Grp3 NPS1- DT reset time", "" ) \ DPOINT_DEFN( G3_NPS1R_Tm, UI32, "Grp3 NPS1- Time multiplier", "" ) \ DPOINT_DEFN( G3_NPS1R_Imin, UI32, "Grp3 NPS1- Min. current multiplier", "" ) \ DPOINT_DEFN( G3_NPS1R_Tmin, UI32, "Grp3 NPS1- Minimum tripping time", "" ) \ DPOINT_DEFN( G3_NPS1R_Tmax, UI32, "Grp3 NPS1- Maximum tripping time", "" ) \ DPOINT_DEFN( G3_NPS1R_Ta, UI32, "Grp3 NPS1- Additional time", "" ) \ DPOINT_DEFN( G3_NPS1R_ImaxEn, EnDis, "Grp3 NPS1- Enable Max mode", "" ) \ DPOINT_DEFN( G3_NPS1R_Imax, UI32, "Grp3 NPS1- Max current multiplier", "" ) \ DPOINT_DEFN( G3_NPS1R_DirEn, EnDis, "Grp3 NPS1- Enable directional protection", "" ) \ DPOINT_DEFN( G3_NPS1R_Tr1, TripMode, "Grp3 NPS1- Mode, Trip 1", "" ) \ DPOINT_DEFN( G3_NPS1R_Tr2, TripMode, "Grp3 NPS1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_NPS1R_Tr3, TripMode, "Grp3 NPS1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_NPS1R_Tr4, TripMode, "Grp3 NPS1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_NPS1R_TccUD, TccCurve, "Grp3 NPS1- User defined curve", "" ) \ DPOINT_DEFN( G3_NPS2R_Ip, UI32, "Grp3 NPS2- Pickup current", "" ) \ DPOINT_DEFN( G3_NPS2R_Tcc, UI16, "Grp3 NPS2- TCC Type", "" ) \ DPOINT_DEFN( G3_NPS2R_TDtMin, UI32, "Grp3 NPS2- DT min tripping time", "" ) \ DPOINT_DEFN( G3_NPS2R_TDtRes, UI32, "Grp3 NPS2- DT reset time", "" ) \ DPOINT_DEFN( G3_NPS2R_Tm, UI32, "Grp3 NPS2- Time multiplier", "" ) \ DPOINT_DEFN( G3_NPS2R_Imin, UI32, "Grp3 NPS2- Min. current multiplier", "" ) \ DPOINT_DEFN( G3_NPS2R_Tmin, UI32, "Grp3 NPS2- Minimum tripping time", "" ) \ DPOINT_DEFN( G3_NPS2R_Tmax, UI32, "Grp3 NPS2- Maximum tripping time", "" ) \ DPOINT_DEFN( G3_NPS2R_Ta, UI32, "Grp3 NPS2- Additional time", "" ) \ DPOINT_DEFN( G3_NPS2R_ImaxEn, EnDis, "Grp3 NPS2- Enable Max mode", "" ) \ DPOINT_DEFN( G3_NPS2R_Imax, UI32, "Grp3 NPS2- Max current multiplier", "" ) \ DPOINT_DEFN( G3_NPS2R_DirEn, EnDis, "Grp3 NPS2- Enable directional protection", "" ) \ DPOINT_DEFN( G3_NPS2R_Tr1, TripMode, "Grp3 NPS2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_NPS2R_Tr2, TripMode, "Grp3 NPS2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_NPS2R_Tr3, TripMode, "Grp3 NPS2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_NPS2R_Tr4, TripMode, "Grp3 NPS2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_NPS2R_TccUD, TccCurve, "Grp3 NPS2- User defined curve", "" ) \ DPOINT_DEFN( G3_NPS3R_Ip, UI32, "Grp3 NPS3- Pickup current", "" ) \ DPOINT_DEFN( G3_NPS3R_TDtMin, UI32, "Grp3 NPS3- DT tripping time", "" ) \ DPOINT_DEFN( G3_NPS3R_TDtRes, UI32, "Grp3 NPS3- DT reset time", "" ) \ DPOINT_DEFN( G3_NPS3R_DirEn, EnDis, "Grp3 NPS3- Enable directional protection", "" ) \ DPOINT_DEFN( G3_NPS3R_Tr1, TripMode, "Grp3 NPS3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G3_NPS3R_Tr2, TripMode, "Grp3 NPS3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G3_NPS3R_Tr3, TripMode, "Grp3 NPS3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G3_NPS3R_Tr4, TripMode, "Grp3 NPS3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G3_NPSLL1_Ip, UI32, "Grp3 NPSLL1 Pickup current", "" ) \ DPOINT_DEFN( G3_NPSLL1_Tcc, UI16, "Grp3 NPSLL1 TCC Type", "" ) \ DPOINT_DEFN( G3_NPSLL1_TDtMin, UI32, "Grp3 NPSLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_NPSLL1_TDtRes, UI32, "Grp3 NPSLL1 DT reset time", "" ) \ DPOINT_DEFN( G3_NPSLL1_Tm, UI32, "Grp3 NPSLL1 Time multiplier", "" ) \ DPOINT_DEFN( G3_NPSLL1_Imin, UI32, "Grp3 NPSLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G3_NPSLL1_Tmin, UI32, "Grp3 NPSLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G3_NPSLL1_Tmax, UI32, "Grp3 NPSLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G3_NPSLL1_Ta, UI32, "Grp3 NPSLL1 Additional time", "" ) \ DPOINT_DEFN( G3_NPSLL1_ImaxEn, EnDis, "Grp3 NPSLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G3_NPSLL1_Imax, UI32, "Grp3 NPSLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G3_NPSLL1_En, EnDis, "Grp3 NPSLL1 Enable", "" ) \ DPOINT_DEFN( G3_NPSLL1_TccUD, TccCurve, "Grp3 NPSLL1 User defined curve", "" ) \ DPOINT_DEFN( G3_NPSLL2_Ip, UI32, "Grp3 NPSLL2 Pickup current", "" ) \ DPOINT_DEFN( G3_NPSLL2_Tcc, UI16, "Grp3 NPSLL2 TCC Type", "" ) \ DPOINT_DEFN( G3_NPSLL2_TDtMin, UI32, "Grp3 NPSLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_NPSLL2_TDtRes, UI32, "Grp3 NPSLL2 DT reset time", "" ) \ DPOINT_DEFN( G3_NPSLL2_Tm, UI32, "Grp3 NPSLL2 Time multiplier", "" ) \ DPOINT_DEFN( G3_NPSLL2_Imin, UI32, "Grp3 NPSLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G3_NPSLL2_Tmin, UI32, "Grp3 NPSLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G3_NPSLL2_Tmax, UI32, "Grp3 NPSLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G3_NPSLL2_Ta, UI32, "Grp3 NPSLL2 Additional time", "" ) \ DPOINT_DEFN( G3_NPSLL2_ImaxEn, EnDis, "Grp3 NPSLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G3_NPSLL2_Imax, UI32, "Grp3 NPSLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G3_NPSLL2_En, EnDis, "Grp3 NPSLL2 Enable", "" ) \ DPOINT_DEFN( G3_NPSLL2_TccUD, TccCurve, "Grp3 NPSLL2 User defined curve", "" ) \ DPOINT_DEFN( G3_NPSLL3_Ip, UI32, "Grp3 NPSLL3 Pickup current", "" ) \ DPOINT_DEFN( G3_NPSLL3_TDtMin, UI32, "Grp3 NPSLL3 DT tripping time", "" ) \ DPOINT_DEFN( G3_NPSLL3_TDtRes, UI32, "Grp3 NPSLL3 DT reset time", "" ) \ DPOINT_DEFN( G3_NPSLL3_En, EnDis, "Grp3 NPSLL3 Enable", "" ) \ DPOINT_DEFN( G3_EFLL1_Ip, UI32, "Grp3 EFLL1 Pickup current", "" ) \ DPOINT_DEFN( G3_EFLL1_Tcc, UI16, "Grp3 EFLL1 TCC Type", "" ) \ DPOINT_DEFN( G3_EFLL1_TDtMin, UI32, "Grp3 EFLL1 DT min tripping time", "" ) \ DPOINT_DEFN( G3_EFLL1_TDtRes, UI32, "Grp3 EFLL1 DT reset time", "" ) \ DPOINT_DEFN( G3_EFLL1_Tm, UI32, "Grp3 EFLL1 Time multiplier", "" ) \ DPOINT_DEFN( G3_EFLL1_Imin, UI32, "Grp3 EFLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G3_EFLL1_Tmin, UI32, "Grp3 EFLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G3_EFLL1_Tmax, UI32, "Grp3 EFLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G3_EFLL1_Ta, UI32, "Grp3 EFLL1 Additional time", "" ) \ DPOINT_DEFN( G3_EFLL1_ImaxEn, EnDis, "Grp3 EFLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G3_EFLL1_Imax, UI32, "Grp3 EFLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G3_EFLL1_En, EnDis, "Grp3 EFLL1 Enable", "" ) \ DPOINT_DEFN( G3_EFLL1_TccUD, TccCurve, "Grp3 EFLL1 User defined curve", "" ) \ DPOINT_DEFN( G3_EFLL2_Ip, UI32, "Grp3 EFLL2 Pickup current", "" ) \ DPOINT_DEFN( G3_EFLL2_Tcc, UI16, "Grp3 EFLL2 TCC Type", "" ) \ DPOINT_DEFN( G3_EFLL2_TDtMin, UI32, "Grp3 EFLL2 DT min tripping time", "" ) \ DPOINT_DEFN( G3_EFLL2_TDtRes, UI32, "Grp3 EFLL2 DT reset time", "" ) \ DPOINT_DEFN( G3_EFLL2_Tm, UI32, "Grp3 EFLL2 Time multiplier", "" ) \ DPOINT_DEFN( G3_EFLL2_Imin, UI32, "Grp3 EFLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G3_EFLL2_Tmin, UI32, "Grp3 EFLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G3_EFLL2_Tmax, UI32, "Grp3 EFLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G3_EFLL2_Ta, UI32, "Grp3 EFLL2 Additional time", "" ) \ DPOINT_DEFN( G3_EFLL2_ImaxEn, EnDis, "Grp3 EFLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G3_EFLL2_Imax, UI32, "Grp3 EFLL2 Max mode", "" ) \ DPOINT_DEFN( G3_EFLL2_En, EnDis, "Grp3 EFLL2 Enable", "" ) \ DPOINT_DEFN( G3_EFLL2_TccUD, TccCurve, "Grp3 EFLL2 User defined curve", "" ) \ DPOINT_DEFN( G3_EFLL3_En, EnDis, "Grp3 EFLL3 Enable", "" ) \ DPOINT_DEFN( G3_SEFLL_Ip, UI32, "Grp3 SEFLL Pickup current", "" ) \ DPOINT_DEFN( G3_SEFLL_TDtMin, UI32, "Grp3 SEFLL DT tripping time", "" ) \ DPOINT_DEFN( G3_SEFLL_TDtRes, UI32, "Grp3 SEFLL DT reset time", "" ) \ DPOINT_DEFN( G3_SEFLL_En, EnDis, "Grp3 SEFLL Enable", "" ) \ DPOINT_DEFN( G3_AutoOpenPowerFlowReduction, UI8, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_AutoOpenPowerFlowTime, UI16, "Grp3 No description", "" ) \ DPOINT_DEFN( G3_LSRM_Timer, UI16, "Grp3 ", "" ) \ DPOINT_DEFN( G3_LSRM_En, EnDis, "Grp3 ", "" ) \ DPOINT_DEFN( G3_Uv4_TDtMin, UI32, "Grp3 UV4 DT operation time", "" ) \ DPOINT_DEFN( G3_Uv4_TDtRes, UI32, "Grp3 UV4 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Uv4_Trm, TripMode, "Grp3 UV4 Trip mode", "" ) \ DPOINT_DEFN( G3_Uv4_Um_min, UI32, "Grp3 UV4 Min voltage multiplier", "" ) \ DPOINT_DEFN( G3_Uv4_Um_max, UI32, "Grp3 UV4 Max voltage multiplier", "" ) \ DPOINT_DEFN( G3_Uv4_Um_mid, UI32, "Grp3 UV4 Mid voltage multiplier", "" ) \ DPOINT_DEFN( G3_Uv4_Tlock, UI16, "Grp3 UV4 lockout time", "" ) \ DPOINT_DEFN( G3_Uv4_Utype, Uv4VoltageType, "Grp3 UV4: Voltage type - Phase/Ground or Phase/Phase", "" ) \ DPOINT_DEFN( G3_Uv4_Voltages, Uv4Voltages, "Grp3 UV4: Voltages - ABC_RST, ABC, RST", "" ) \ DPOINT_DEFN( G3_SingleTripleModeF, SingleTripleMode, "Grp3 Single-triple mode for the forward direction.", "" ) \ DPOINT_DEFN( G3_SingleTripleModeR, SingleTripleMode, "Grp3 Single-triple mode for the reverse direction.", "" ) \ DPOINT_DEFN( G3_SinglePhaseVoltageDetect, EnDis, "Grp3 Indicates whether ABR should monitor all three phases or any single phase for below LSD when single-triple is active.", "" ) \ DPOINT_DEFN( G3_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp3 Voltages to monitor for UV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G3_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp3 Voltages to monitor for OV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G3_LlbEnable, EnDis, "Grp3 Live Load Block Enable/disable", "" ) \ DPOINT_DEFN( G3_LlbUM, UI32, "Grp3 LLB voltage multiplier", "" ) \ DPOINT_DEFN( G3_SectionaliserMode, EnDis, "Grp3 Sectionaliser Mode", "" ) \ DPOINT_DEFN( G3_OcDcr, LockDynamic, "Grp3 OC DCR", "" ) \ DPOINT_DEFN( G3_NpsDcr, LockDynamic, "Grp3 NPS DCR", "" ) \ DPOINT_DEFN( G3_EfDcr, LockDynamic, "Grp3 EF DCR", "" ) \ DPOINT_DEFN( G3_SefDcr, LockDynamic, "Grp3 SEF DCR", "" ) \ DPOINT_DEFN( G3_Ov3_Um, UI32, "Grp3 OV3 Voltage multiplier", "" ) \ DPOINT_DEFN( G3_Ov3_TDtMin, UI32, "Grp3 OV3 DT tripping time", "" ) \ DPOINT_DEFN( G3_Ov3_TDtRes, UI32, "Grp3 OV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G3_Ov3_Trm, TripMode, "Grp3 OV3 Trip mode", "" ) \ DPOINT_DEFN( G3_Ov4_Um, UI32, "Grp3 OV4 Voltage multiplier", "" ) \ DPOINT_DEFN( G3_Ov4_TDtMin, UI32, "Grp3 OV4 DT tripping time", "" ) \ DPOINT_DEFN( G3_Ov4_TDtRes, UI32, "Grp3 OV4 DT reset time. Note that this value is not yet user configurable", "" ) \ DPOINT_DEFN( G3_Ov4_Trm, TripMode, "Grp3 OV4 Trip mode", "" ) \ DPOINT_DEFN( G3_SequenceAdvanceStep, UI8, "Grp3 The sequence advance step config; specifies the maximum count that the sequence step will be advanced to if LSD is detected while the switch is closed.", "" ) \ DPOINT_DEFN( G3_UV3_SSTOnly, EnDis, "Grp3 Enable flag for UV3 Operate in SST only mode.", "" ) \ DPOINT_DEFN( G3_OV3MovingAverageMode, EnDis, "Grp3 Moving average mode for OV3", "" ) \ DPOINT_DEFN( G3_OV3MovingAverageWindow, UI32, "Grp3 Length of the OV3 moving average window in seconds", "" ) \ DPOINT_DEFN( G3_ArveTripsToLockout, TripsToLockout, "Grp3 Number of trips to lockout for voltage engines.", "" ) \ DPOINT_DEFN( G3_I2I1_Trm, TripModeDLA, "Grp3 I2/I1 trip mode", "" ) \ DPOINT_DEFN( G3_I2I1_Pickup, UI32, "Grp3 I2/I1 pickup value", "" ) \ DPOINT_DEFN( G3_I2I1_MinI2, UI32, "Grp3 Minimum I2 value for I2/I1 operation", "" ) \ DPOINT_DEFN( G3_I2I1_TDtMin, UI32, "Grp3 I2/I1 minimum tripping time", "" ) \ DPOINT_DEFN( G3_I2I1_TDtRes, UI32, "Grp3 I2/I1 DT reset time", "" ) \ DPOINT_DEFN( G3_SEFF_Ip_HighPrec, UI32, "Grp3 SEF+ Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G3_SEFR_Ip_HighPrec, UI32, "Grp3 SEF- Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G3_SEFLL_Ip_HighPrec, UI32, "Grp3 SEFLL Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G3_SSTControl_En, EnDis, "Grp3 Enable/disable setting for SST Control feature.", "" ) \ DPOINT_DEFN( G3_SSTControl_Tst, UI32, "Grp3 SST Control: time", "" ) \ DPOINT_DEFN( G4_NpsAt, UI32, "Grp4 NPS Torque Angle. Ref MeasA0 for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( G4_NpsDnd, DndMode, "Grp4 NPS DND", "" ) \ DPOINT_DEFN( G4_SstNpsForward, UI8, "Grp4 NPS+ Single shot to trip.", "" ) \ DPOINT_DEFN( G4_SstNpsReverse, UI8, "Grp4 NPS- Single shot to trip.", "" ) \ DPOINT_DEFN( G4_NPS1F_Ip, UI32, "Grp4 NPS1+ Pickup current", "" ) \ DPOINT_DEFN( G4_NPS1F_Tcc, UI16, "Grp4 NPS1+ TCC Type", "" ) \ DPOINT_DEFN( G4_NPS1F_TDtMin, UI32, "Grp4 NPS1+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_NPS1F_TDtRes, UI32, "Grp4 NPS1+ DT reset time", "" ) \ DPOINT_DEFN( G4_NPS1F_Tm, UI32, "Grp4 NPS1+ Time multiplier", "" ) \ DPOINT_DEFN( G4_NPS1F_Imin, UI32, "Grp4 NPS1+ Min. current multiplier", "" ) \ DPOINT_DEFN( G4_NPS1F_Tmin, UI32, "Grp4 NPS1+ Minimum tripping time", "" ) \ DPOINT_DEFN( G4_NPS1F_Tmax, UI32, "Grp4 NPS1+ Maximum tripping time", "" ) \ DPOINT_DEFN( G4_NPS1F_Ta, UI32, "Grp4 NPS1+ Additional time", "" ) \ DPOINT_DEFN( G4_NPS1F_ImaxEn, EnDis, "Grp4 NPS1+ Enable Max mode", "" ) \ DPOINT_DEFN( G4_NPS1F_Imax, UI32, "Grp4 NPS1+ Max current multiplier", "" ) \ DPOINT_DEFN( G4_NPS1F_DirEn, EnDis, "Grp4 NPS1+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_NPS1F_Tr1, TripMode, "Grp4 NPS1+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_NPS1F_Tr2, TripMode, "Grp4 NPS1+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_NPS1F_Tr3, TripMode, "Grp4 NPS1+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_NPS1F_Tr4, TripMode, "Grp4 NPS1+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_NPS1F_TccUD, TccCurve, "Grp4 NPS1+ User defined curve", "" ) \ DPOINT_DEFN( G4_NPS2F_Ip, UI32, "Grp4 NPS2+ Pickup current", "" ) \ DPOINT_DEFN( G4_NPS2F_Tcc, UI16, "Grp4 NPS2+ TCC Type", "" ) \ DPOINT_DEFN( G4_NPS2F_TDtMin, UI32, "Grp4 NPS2+ DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_NPS2F_TDtRes, UI32, "Grp4 NPS2+ DT reset time", "" ) \ DPOINT_DEFN( G4_NPS2F_Tm, UI32, "Grp4 NPS2+ Time multiplier", "" ) \ DPOINT_DEFN( G4_NPS2F_Imin, UI32, "Grp4 NPS2+ Min. current multiplier", "" ) \ DPOINT_DEFN( G4_NPS2F_Tmin, UI32, "Grp4 NPS2+ Minimum tripping time", "" ) \ DPOINT_DEFN( G4_NPS2F_Tmax, UI32, "Grp4 NPS2+ Maximum tripping time", "" ) \ DPOINT_DEFN( G4_NPS2F_Ta, UI32, "Grp4 NPS2+ Additional time", "" ) \ DPOINT_DEFN( G4_NPS2F_ImaxEn, EnDis, "Grp4 NPS2+ Enable Max mode", "" ) \ DPOINT_DEFN( G4_NPS2F_Imax, UI32, "Grp4 NPS2+ Max current multiplier", "" ) \ DPOINT_DEFN( G4_NPS2F_DirEn, EnDis, "Grp4 NPS2+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_NPS2F_Tr1, TripMode, "Grp4 NPS2+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_NPS2F_Tr2, TripMode, "Grp4 NPS2+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_NPS2F_Tr3, TripMode, "Grp4 NPS2+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_NPS2F_Tr4, TripMode, "Grp4 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_NPS2F_TccUD, TccCurve, "Grp4 NPS2+ User defined curve", "" ) \ DPOINT_DEFN( G4_NPS3F_Ip, UI32, "Grp4 NPS3+ Pickup current", "" ) \ DPOINT_DEFN( G4_NPS3F_TDtMin, UI32, "Grp4 NPS3+ DT tripping time", "" ) \ DPOINT_DEFN( G4_NPS3F_TDtRes, UI32, "Grp4 NPS3+ DT reset time", "" ) \ DPOINT_DEFN( G4_NPS3F_DirEn, EnDis, "Grp4 NPS3+ Enable directional protection", "" ) \ DPOINT_DEFN( G4_NPS3F_Tr1, TripMode, "Grp4 NPS3+ Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_NPS3F_Tr2, TripMode, "Grp4 NPS3+ Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_NPS3F_Tr3, TripMode, "Grp4 NPS3+ Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_NPS3F_Tr4, TripMode, "Grp4 NPS3+ Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_NPS1R_Ip, UI32, "Grp4 NPS1- Pickup current", "" ) \ DPOINT_DEFN( G4_NPS1R_Tcc, UI16, "Grp4 NPS1- TCC Type", "" ) \ DPOINT_DEFN( G4_NPS1R_TDtMin, UI32, "Grp4 NPS1- DT min tripping time", "" ) \ DPOINT_DEFN( G4_NPS1R_TDtRes, UI32, "Grp4 NPS1- DT reset time", "" ) \ DPOINT_DEFN( G4_NPS1R_Tm, UI32, "Grp4 NPS1- Time multiplier", "" ) \ DPOINT_DEFN( G4_NPS1R_Imin, UI32, "Grp4 NPS1- Min. current multiplier", "" ) \ DPOINT_DEFN( G4_NPS1R_Tmin, UI32, "Grp4 NPS1- Minimum tripping time", "" ) \ DPOINT_DEFN( G4_NPS1R_Tmax, UI32, "Grp4 NPS1- Maximum tripping time", "" ) \ DPOINT_DEFN( G4_NPS1R_Ta, UI32, "Grp4 NPS1- Additional time", "" ) \ DPOINT_DEFN( G4_NPS1R_ImaxEn, EnDis, "Grp4 NPS1- Enable Max mode", "" ) \ DPOINT_DEFN( G4_NPS1R_Imax, UI32, "Grp4 NPS1- Max current multiplier", "" ) \ DPOINT_DEFN( G4_NPS1R_DirEn, EnDis, "Grp4 NPS1- Enable directional protection", "" ) \ DPOINT_DEFN( G4_NPS1R_Tr1, TripMode, "Grp4 NPS1- Mode, Trip 1", "" ) \ DPOINT_DEFN( G4_NPS1R_Tr2, TripMode, "Grp4 NPS1- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_NPS1R_Tr3, TripMode, "Grp4 NPS1- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_NPS1R_Tr4, TripMode, "Grp4 NPS1- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_NPS1R_TccUD, TccCurve, "Grp4 NPS1- User defined curve", "" ) \ DPOINT_DEFN( G4_NPS2R_Ip, UI32, "Grp4 NPS2- Pickup current", "" ) \ DPOINT_DEFN( G4_NPS2R_Tcc, UI16, "Grp4 NPS2- TCC Type", "" ) \ DPOINT_DEFN( G4_NPS2R_TDtMin, UI32, "Grp4 NPS2- DT min tripping time", "" ) \ DPOINT_DEFN( G4_NPS2R_TDtRes, UI32, "Grp4 NPS2- DT reset time", "" ) \ DPOINT_DEFN( G4_NPS2R_Tm, UI32, "Grp4 NPS2- Time multiplier", "" ) \ DPOINT_DEFN( G4_NPS2R_Imin, UI32, "Grp4 NPS2- Min. current multiplier", "" ) \ DPOINT_DEFN( G4_NPS2R_Tmin, UI32, "Grp4 NPS2- Minimum tripping time", "" ) \ DPOINT_DEFN( G4_NPS2R_Tmax, UI32, "Grp4 NPS2- Maximum tripping time", "" ) \ DPOINT_DEFN( G4_NPS2R_Ta, UI32, "Grp4 NPS2- Additional time", "" ) \ DPOINT_DEFN( G4_NPS2R_ImaxEn, EnDis, "Grp4 NPS2- Enable Max mode", "" ) \ DPOINT_DEFN( G4_NPS2R_Imax, UI32, "Grp4 NPS2- Max current multiplier", "" ) \ DPOINT_DEFN( G4_NPS2R_DirEn, EnDis, "Grp4 NPS2- Enable directional protection", "" ) \ DPOINT_DEFN( G4_NPS2R_Tr1, TripMode, "Grp4 NPS2- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_NPS2R_Tr2, TripMode, "Grp4 NPS2- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_NPS2R_Tr3, TripMode, "Grp4 NPS2- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_NPS2R_Tr4, TripMode, "Grp4 NPS2- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_NPS2R_TccUD, TccCurve, "Grp4 NPS2- User defined curve", "" ) \ DPOINT_DEFN( G4_NPS3R_Ip, UI32, "Grp4 NPS3- Pickup current", "" ) \ DPOINT_DEFN( G4_NPS3R_TDtMin, UI32, "Grp4 NPS3- DT tripping time", "" ) \ DPOINT_DEFN( G4_NPS3R_TDtRes, UI32, "Grp4 NPS3- DT reset time", "" ) \ DPOINT_DEFN( G4_NPS3R_DirEn, EnDis, "Grp4 NPS3- Enable directional protection", "" ) \ DPOINT_DEFN( G4_NPS3R_Tr1, TripMode, "Grp4 NPS3- Mode, Trip 1 ", "" ) \ DPOINT_DEFN( G4_NPS3R_Tr2, TripMode, "Grp4 NPS3- Mode, Trip 2", "" ) \ DPOINT_DEFN( G4_NPS3R_Tr3, TripMode, "Grp4 NPS3- Mode, Trip 3", "" ) \ DPOINT_DEFN( G4_NPS3R_Tr4, TripMode, "Grp4 NPS3- Mode, Trip 4", "" ) \ DPOINT_DEFN( G4_NPSLL1_Ip, UI32, "Grp4 NPSLL1 Pickup current", "" ) \ DPOINT_DEFN( G4_NPSLL1_Tcc, UI16, "Grp4 NPSLL1 TCC Type", "" ) \ DPOINT_DEFN( G4_NPSLL1_TDtMin, UI32, "Grp4 NPSLL1 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_NPSLL1_TDtRes, UI32, "Grp4 NPSLL1 DT reset time", "" ) \ DPOINT_DEFN( G4_NPSLL1_Tm, UI32, "Grp4 NPSLL1 Time multiplier", "" ) \ DPOINT_DEFN( G4_NPSLL1_Imin, UI32, "Grp4 NPSLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G4_NPSLL1_Tmin, UI32, "Grp4 NPSLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G4_NPSLL1_Tmax, UI32, "Grp4 NPSLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G4_NPSLL1_Ta, UI32, "Grp4 NPSLL1 Additional time", "" ) \ DPOINT_DEFN( G4_NPSLL1_ImaxEn, EnDis, "Grp4 NPSLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G4_NPSLL1_Imax, UI32, "Grp4 NPSLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G4_NPSLL1_En, EnDis, "Grp4 NPSLL1 Enable", "" ) \ DPOINT_DEFN( G4_NPSLL1_TccUD, TccCurve, "Grp4 NPSLL1 User defined curve", "" ) \ DPOINT_DEFN( G4_NPSLL2_Ip, UI32, "Grp4 NPSLL2 Pickup current", "" ) \ DPOINT_DEFN( G4_NPSLL2_Tcc, UI16, "Grp4 NPSLL2 TCC Type", "" ) \ DPOINT_DEFN( G4_NPSLL2_TDtMin, UI32, "Grp4 NPSLL2 DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_NPSLL2_TDtRes, UI32, "Grp4 NPSLL2 DT reset time", "" ) \ DPOINT_DEFN( G4_NPSLL2_Tm, UI32, "Grp4 NPSLL2 Time multiplier", "" ) \ DPOINT_DEFN( G4_NPSLL2_Imin, UI32, "Grp4 NPSLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G4_NPSLL2_Tmin, UI32, "Grp4 NPSLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G4_NPSLL2_Tmax, UI32, "Grp4 NPSLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G4_NPSLL2_Ta, UI32, "Grp4 NPSLL2 Additional time", "" ) \ DPOINT_DEFN( G4_NPSLL2_ImaxEn, EnDis, "Grp4 NPSLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G4_NPSLL2_Imax, UI32, "Grp4 NPSLL2 Max current multiplier", "" ) \ DPOINT_DEFN( G4_NPSLL2_En, EnDis, "Grp4 NPSLL2 Enable", "" ) \ DPOINT_DEFN( G4_NPSLL2_TccUD, TccCurve, "Grp4 NPSLL2 User defined curve", "" ) \ DPOINT_DEFN( G4_NPSLL3_Ip, UI32, "Grp4 NPSLL3 Pickup current", "" ) \ DPOINT_DEFN( G4_NPSLL3_TDtMin, UI32, "Grp4 NPSLL3 DT tripping time", "" ) \ DPOINT_DEFN( G4_NPSLL3_TDtRes, UI32, "Grp4 NPSLL3 DT reset time", "" ) \ DPOINT_DEFN( G4_NPSLL3_En, EnDis, "Grp4 NPSLL3 Enable", "" ) \ DPOINT_DEFN( G4_EFLL1_Ip, UI32, "Grp4 EFLL1 Pickup current", "" ) \ DPOINT_DEFN( G4_EFLL1_Tcc, UI16, "Grp4 EFLL1 TCC Type", "" ) \ DPOINT_DEFN( G4_EFLL1_TDtMin, UI32, "Grp4 EFLL1 DT min tripping time", "" ) \ DPOINT_DEFN( G4_EFLL1_TDtRes, UI32, "Grp4 EFLL1 DT reset time", "" ) \ DPOINT_DEFN( G4_EFLL1_Tm, UI32, "Grp4 EFLL1 Time multiplier", "" ) \ DPOINT_DEFN( G4_EFLL1_Imin, UI32, "Grp4 EFLL1 Min. current multiplier", "" ) \ DPOINT_DEFN( G4_EFLL1_Tmin, UI32, "Grp4 EFLL1 Minimum tripping time", "" ) \ DPOINT_DEFN( G4_EFLL1_Tmax, UI32, "Grp4 EFLL1 Maximum tripping time", "" ) \ DPOINT_DEFN( G4_EFLL1_Ta, UI32, "Grp4 EFLL1 Additional time", "" ) \ DPOINT_DEFN( G4_EFLL1_ImaxEn, EnDis, "Grp4 EFLL1 Enable Max mode", "" ) \ DPOINT_DEFN( G4_EFLL1_Imax, UI32, "Grp4 EFLL1 Max current multiplier", "" ) \ DPOINT_DEFN( G4_EFLL1_En, EnDis, "Grp4 EFLL1 Enable", "" ) \ DPOINT_DEFN( G4_EFLL1_TccUD, TccCurve, "Grp4 EFLL1 User defined curve", "" ) \ DPOINT_DEFN( G4_EFLL2_Ip, UI32, "Grp4 EFLL2 Pickup current", "" ) \ DPOINT_DEFN( G4_EFLL2_Tcc, UI16, "Grp4 EFLL2 TCC Type", "" ) \ DPOINT_DEFN( G4_EFLL2_TDtMin, UI32, "Grp4 EFLL2 DT min tripping time", "" ) \ DPOINT_DEFN( G4_EFLL2_TDtRes, UI32, "Grp4 EFLL2 DT reset time", "" ) \ DPOINT_DEFN( G4_EFLL2_Tm, UI32, "Grp4 EFLL2 Time multiplier", "" ) \ DPOINT_DEFN( G4_EFLL2_Imin, UI32, "Grp4 EFLL2 Min. current multiplier", "" ) \ DPOINT_DEFN( G4_EFLL2_Tmin, UI32, "Grp4 EFLL2 Minimum tripping time", "" ) \ DPOINT_DEFN( G4_EFLL2_Tmax, UI32, "Grp4 EFLL2 Maximum tripping time", "" ) \ DPOINT_DEFN( G4_EFLL2_Ta, UI32, "Grp4 EFLL2 Additional time", "" ) \ DPOINT_DEFN( G4_EFLL2_ImaxEn, EnDis, "Grp4 EFLL2 Enable Max mode", "" ) \ DPOINT_DEFN( G4_EFLL2_Imax, UI32, "Grp4 EFLL2 Max mode", "" ) \ DPOINT_DEFN( G4_EFLL2_En, EnDis, "Grp4 EFLL2 Enable", "" ) \ DPOINT_DEFN( G4_EFLL2_TccUD, TccCurve, "Grp4 EFLL2 User defined curve", "" ) \ DPOINT_DEFN( G4_EFLL3_En, EnDis, "Grp4 EFLL3 Enable", "" ) \ DPOINT_DEFN( G4_SEFLL_Ip, UI32, "Grp4 SEFLL Pickup current", "" ) \ DPOINT_DEFN( G4_SEFLL_TDtMin, UI32, "Grp4 SEFLL DT tripping time", "" ) \ DPOINT_DEFN( G4_SEFLL_TDtRes, UI32, "Grp4 SEFLL DT reset time", "" ) \ DPOINT_DEFN( G4_SEFLL_En, EnDis, "Grp4 SEFLL Enable", "" ) \ DPOINT_DEFN( G4_AutoOpenPowerFlowReduction, UI8, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_AutoOpenPowerFlowTime, UI16, "Grp4 No description", "" ) \ DPOINT_DEFN( G4_LSRM_Timer, UI16, "Grp4 ", "" ) \ DPOINT_DEFN( G4_LSRM_En, EnDis, "Grp4 ", "" ) \ DPOINT_DEFN( G4_Uv4_TDtMin, UI32, "Grp4 UV4 DT operation time", "" ) \ DPOINT_DEFN( G4_Uv4_TDtRes, UI32, "Grp4 UV4 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Uv4_Trm, TripMode, "Grp4 UV4 Trip mode", "" ) \ DPOINT_DEFN( G4_Uv4_Um_min, UI32, "Grp4 UV4 Min voltage multiplier", "" ) \ DPOINT_DEFN( G4_Uv4_Um_max, UI32, "Grp4 UV4 Max voltage multiplier", "" ) \ DPOINT_DEFN( G4_Uv4_Um_mid, UI32, "Grp4 UV4 Mid voltage multiplier", "" ) \ DPOINT_DEFN( G4_Uv4_Tlock, UI16, "Grp4 UV4 lockout time", "" ) \ DPOINT_DEFN( G4_Uv4_Utype, Uv4VoltageType, "Grp4 UV4: Voltage type - Phase/Ground or Phase/Phase", "" ) \ DPOINT_DEFN( G4_Uv4_Voltages, Uv4Voltages, "Grp4 UV4: Voltages - ABC_RST, ABC, RST", "" ) \ DPOINT_DEFN( G4_SingleTripleModeF, SingleTripleMode, "Grp4 Single-triple mode for the forward direction.", "" ) \ DPOINT_DEFN( G4_SingleTripleModeR, SingleTripleMode, "Grp4 Single-triple mode for the reverse direction.", "" ) \ DPOINT_DEFN( G4_SinglePhaseVoltageDetect, EnDis, "Grp4 Indicates whether ABR should monitor all three phases or any single phase for below LSD when single-triple is active.", "" ) \ DPOINT_DEFN( G4_Uv1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp4 Voltages to monitor for UV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G4_Ov1_SingleTripleVoltageType, SingleTripleVoltageType, "Grp4 Voltages to monitor for OV1 when single-triple is active.", "" ) \ DPOINT_DEFN( G4_LlbEnable, EnDis, "Grp4 Live Load Block Enable/disable", "" ) \ DPOINT_DEFN( G4_LlbUM, UI32, "Grp4 LLB voltage multiplier", "" ) \ DPOINT_DEFN( G4_SectionaliserMode, EnDis, "Grp4 Sectionaliser Mode", "" ) \ DPOINT_DEFN( G4_OcDcr, LockDynamic, "Grp4 OC DCR", "" ) \ DPOINT_DEFN( G4_NpsDcr, LockDynamic, "Grp4 NPS DCR", "" ) \ DPOINT_DEFN( G4_EfDcr, LockDynamic, "Grp4 EF DCR", "" ) \ DPOINT_DEFN( G4_SefDcr, LockDynamic, "Grp4 SEF DCR", "" ) \ DPOINT_DEFN( G4_Ov3_Um, UI32, "Grp4 OV3 Voltage multiplier", "" ) \ DPOINT_DEFN( G4_Ov3_TDtMin, UI32, "Grp4 OV3 DT tripping time", "" ) \ DPOINT_DEFN( G4_Ov3_TDtRes, UI32, "Grp4 OV3 DT reset time. Note that this value is not yet user configurable.", "" ) \ DPOINT_DEFN( G4_Ov3_Trm, TripMode, "Grp4 OV3 Trip mode", "" ) \ DPOINT_DEFN( G4_Ov4_Um, UI32, "Grp4 OV4 Voltage multiplier", "" ) \ DPOINT_DEFN( G4_Ov4_TDtMin, UI32, "Grp4 OV4 DT tripping time", "" ) \ DPOINT_DEFN( G4_Ov4_TDtRes, UI32, "Grp4 OV4 DT reset time. Note that this value is not yet user configurable", "" ) \ DPOINT_DEFN( G4_Ov4_Trm, TripMode, "Grp4 OV4 Trip mode", "" ) \ DPOINT_DEFN( G4_SequenceAdvanceStep, UI8, "Grp4 The sequence advance step config; specifies the maximum count that the sequence step will be advanced to if LSD is detected while the switch is closed.", "" ) \ DPOINT_DEFN( G4_UV3_SSTOnly, EnDis, "Grp4 Enable flag for UV3 Operate in SST only mode.", "" ) \ DPOINT_DEFN( G4_OV3MovingAverageMode, EnDis, "Grp4 Moving average mode for OV3", "" ) \ DPOINT_DEFN( G4_OV3MovingAverageWindow, UI32, "Grp4 Length of the OV3 moving average window in seconds", "" ) \ DPOINT_DEFN( G4_ArveTripsToLockout, TripsToLockout, "Grp4 Number of trips to lockout for voltage engines.", "" ) \ DPOINT_DEFN( G4_I2I1_Trm, TripModeDLA, "Grp4 I2/I1 trip mode", "" ) \ DPOINT_DEFN( G4_I2I1_Pickup, UI32, "Grp4 I2/I1 pickup value", "" ) \ DPOINT_DEFN( G4_I2I1_MinI2, UI32, "Grp4 Minimum I2 value for I2/I1 operation", "" ) \ DPOINT_DEFN( G4_I2I1_TDtMin, UI32, "Grp4 I2/I1 minimum tripping time", "" ) \ DPOINT_DEFN( G4_I2I1_TDtRes, UI32, "Grp4 I2/I1 DT reset time", "" ) \ DPOINT_DEFN( G4_SEFF_Ip_HighPrec, UI32, "Grp4 SEF+ Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G4_SEFR_Ip_HighPrec, UI32, "Grp4 SEF- Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G4_SEFLL_Ip_HighPrec, UI32, "Grp4 SEFLL Pickup current for 3 Phase SEF switchgear", "" ) \ DPOINT_DEFN( G4_SSTControl_En, EnDis, "Grp4 Enable/disable setting for SST Control feature.", "" ) \ DPOINT_DEFN( G4_SSTControl_Tst, UI32, "Grp4 SST Control: time", "" ) \ DPOINT_DEFN( SignalBitFieldOpenHigh, SignalBitField, "The bit field value indicating the open event categories (high word). Applies only to phase A in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldCloseHigh, SignalBitField, "The bit field value identifying the close event categories (high word). Applies to phase A only in single-triple configurations.", "" ) \ DPOINT_DEFN( IdRelayModelNo, UI8, "Relay Model Number : REL01, REL02, REL03, REL15, REL15-4G, REL20, REL20-4G", "" ) \ DPOINT_DEFN( IdRelayModelStr, Str, "string display for relay model : \"\", REL-01, REL-02, REL-03, REL-15, REL-15-4G", "" ) \ DPOINT_DEFN( PanelButtABR, EnDis, "HMI Auto Backfeed Restoration fast key control", "" ) \ DPOINT_DEFN( PanelButtACO, EnDis, "HMI Auto Change Over fast key control", "" ) \ DPOINT_DEFN( PanelButtUV, EnDis, "HMI Undervoltage fast key control", "" ) \ DPOINT_DEFN( FastkeyConfigNum, UI8, "Fast key configuration number (1-6)", "" ) \ DPOINT_DEFN( ScadaT10BSendDayOfWeek, EnDis, "When Enabled (the default), the Day Of Week field of time objects is set to the Day Of Week value (1=Monday, 2=Tuesday, .., 7=Sunday) matching the date in the time object. When Disabled, the Day Of week field is set to zero (meaning \"Not used\").", "" ) \ DPOINT_DEFN( SigOpenOc, Signal, "Open due to OC1+, OC2+, OC3+, OC1-, OC2-, OC3-", "" ) \ DPOINT_DEFN( SigOpenEf, Signal, "Open due to EF1+, EF2+, EF3+, EF1-, EF2-, EF3-", "" ) \ DPOINT_DEFN( SigOpenSef, Signal, "Open due to SEF+, SEF-", "" ) \ DPOINT_DEFN( SigOpenUv, Signal, "Open due to UV1, UV2, UV3, UV4", "" ) \ DPOINT_DEFN( SigOpenOv, Signal, "Open due to OV1, OV2, OV3", "" ) \ DPOINT_DEFN( SigAlarmOc, Signal, "Alarm ouput of any of OC1+, OC2+, OC3+, OC1-, OC2-, OC3- elements activated", "" ) \ DPOINT_DEFN( SigAlarmEf, Signal, "Alarm ouput of any of EF elements activated", "" ) \ DPOINT_DEFN( SigAlarmSef, Signal, "Alarm ouput of any of SEF+, SEF- elements activated", "" ) \ DPOINT_DEFN( SigAlarmUv, Signal, "Alarm ouput of any of UV elements activated", "" ) \ DPOINT_DEFN( SigAlarmOv, Signal, "Alarm ouput of any of OV1, OV2 elements activated", "" ) \ DPOINT_DEFN( SigPickupOc, Signal, "Pickup output of any of OC1+, OC2+, OC3+, OC1-, OC2-, OC3- elements activated", "" ) \ DPOINT_DEFN( SigPickupEf, Signal, "Pickup output of any of EF1+, EF2+, EF3+, EF1-, EF2-, EF3-", "" ) \ DPOINT_DEFN( SigPickupSef, Signal, "Pickup output of any of SEF+, SEF- elements activated", "" ) \ DPOINT_DEFN( SigPickupUv, Signal, "Pickup output of any of UV1, UV2, UV3, UV4 elements activated", "" ) \ DPOINT_DEFN( SigPickupOv, Signal, "Pickup output of any of OV1, OV2, OV3, OV4 elements activated", "" ) \ DPOINT_DEFN( ScadaT10B_M_EI_BufferOverflow_COI, I8, "Special Cause of Initialization (COI) qualifier code for M_EI_NA_1 message to be sent if event buffer overflow is detected. The default value -1 inhibits this feature. Valid values are 0..2 for \"standard\" conformance and 32..127 for \"private\" use. Values 3..31 are reserved for future standard assignment.", "" ) \ DPOINT_DEFN( PGESBOTimeout, UI16, "Timeout between Select and Operate for controls", "" ) \ DPOINT_DEFN( Lan_MAC, Str, "MAC address of LAN port", "" ) \ DPOINT_DEFN( SigMalfLoadSavedDb, Signal, "Active due to failure of loading saved db values on startup.", "" ) \ DPOINT_DEFN( ScadaT10BScaleRange, ScadaScaleRangeTable, "Scale range for IEC 60870-5 SCADA protocols: Standard or Alternate", "" ) \ DPOINT_DEFN( ProgramSimStatus, UI8, "Indicates the status of SIM programming (for firmware update or calibration)", "" ) \ DPOINT_DEFN( InstallFilesReady, UI8, "Notify the update process that new update files are ready. A process sets this DPID to true when it has added new files to the staging directory (/var/nand/staging). This is the same as for UpdateFilesReady except that files are installed regardless of version.", "" ) \ DPOINT_DEFN( UsbDiscInstallCount, UI32, "Number of install files found on the USB disc which usbcopy can move to /var/nand/staging. Includes those that are downgrades or same as installed versions. Set by usbcopy when a disc is inserted.", "" ) \ DPOINT_DEFN( UsbDiscInstallVersions, StrArray, "Version strings for all installation files found on the USB disc. Includes those that are downgrades or same as installed versions. Set by usbcopy when a disc is inserted.", "" ) \ DPOINT_DEFN( OscUsbCaptureInProgress, Bool, "TRUE if the oscillography process is writing a capture to the USB stick, FALSE if no such capture is in progress. Only set by captures, not \"Transfer Oscillography Captures to USB\".\r\n", "" ) \ DPOINT_DEFN( UsbDiscEjectResult, UsbDiscEjectResult, "Unmount result of the USB disc.", "" ) \ DPOINT_DEFN( InterruptShortABCLastDuration, Duration, "Duration of the last short interruption on U(a,b,c)", "" ) \ DPOINT_DEFN( InterruptShortRSTLastDuration, Duration, "Duration of the last short interruption on U(r,s,t)", "" ) \ DPOINT_DEFN( InterruptLongABCLastDuration, Duration, "Duration of the last long interruption on U(a,b,c) in seconds", "" ) \ DPOINT_DEFN( InterruptLongRSTLastDuration, Duration, "Duration of the last long interruption on U(r,s,t) in seconds", "" ) \ DPOINT_DEFN( ScadaT104BlockUntilDisconnected, EnDis, "If enabled the relay will not accept any new TCP connections (for the IEC protocol) if there is an existing connection.", "" ) \ DPOINT_DEFN( TripHrmComponent, UI8, "Harmonic component that caused the trip.\r\n\r\n0:No harmonic trip, or switch has been closed again.\r\n1..3:THD(a, b, c)\r\n4..7:TDD(a, b, c, n)\r\n8..64:I(a, b, c, n) I2, I3, I4, I5, I6, I7, I8, I9, I10, I11, I12, I13, I14, I15\r\n65..106:V(a, b, c) V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15\r\n", "" ) \ DPOINT_DEFN( UsbDiscUpdatePossible, UI8, "Indicates whether or not an update from USB is possible. Programatically derived from other status including UsbDiscError and UsbDiscUpdateCount.", "" ) \ DPOINT_DEFN( UsbDiscInstallPossible, UI8, "Indicates whether or not an install from USB is possible. Programatically derived from other status including UsbDiscError and UsbDiscInstallCount.", "" ) \ DPOINT_DEFN( UpdateStep, UpdateStep, "Indicates the current step/phase in performing a firmware or language update or installation.", "" ) \ DPOINT_DEFN( SigClosedUV3AutoClose, Signal, "Closed due to UV3 AutoClose", "" ) \ DPOINT_DEFN( InstallPeriod, UI16, "Period of time expected to complete firmware installation/update. Set as U16 to allow indication of seconds if not minutes.", "" ) \ DPOINT_DEFN( I2Trip, UI32, "Trip current - Negative sequence", "" ) \ DPOINT_DEFN( CanSimSwitchPositionStatusST, UI16, "Position of each of the phases in a single-triple environment. The value is a collection of three 4-bit fields for A, B, and C where each bit field has the values open:0, closed:1, or unavailable:2. A is bits 0..3, B is bits 4..7, and C is bits 8..11. If the recloser is triple-only, then A will report the common state and B/C will be reported as unavailable.", "" ) \ DPOINT_DEFN( CanSimSwitchManualTripST, UI8, "Mnaual trip state of the phases in a single-triple environment. Bit 0 is set if A is manually tripped. Bit 1 is set if B is manually tripped. Bit 2 is set if C is manually tripped. If the recloser is single-triple, then the common manual trip state is reported in A with B/C always zero.", "" ) \ DPOINT_DEFN( CanSimSwitchConnectedPhases, UI8, "Set of phases that are connected in a single triple environment. Bit 0 is set if A is connected. Bit 1 is set if B is connected. Bit 2 is set if C is connected. If the recloser is triple-only, then only A will be reported as connected.", "" ) \ DPOINT_DEFN( CanSimSwitchLockoutStatusST, UI16, "Lockout status of each of the phases in a single-triple environment. The value is a collection of three 4-bit fields for A, B, and C where each bit field has the values Undetermined: 0, Mechanically Unlocked: 1, Mechanically locked: 2. A is bits 0..3, B is bits 4..7, and C is bits 8..11. If the recloser is triple-only, then A will report the common state and B/C will be reported as undetermined.", "" ) \ DPOINT_DEFN( CanSimSwitchSetCosType, UI8, "Controls the type of COS messages to be sent from the SIM for position, lockout, and manual trip reports. 0: COS messages are triple-only, 1: COS messages are single-triple.", "" ) \ DPOINT_DEFN( SimSwitchStatusA, SwState, "Status of phase A in a single-triple system:\r\n\r\n0:Unknown, 1:Open, 2:Close, 3:Lockout, 4:InterLocked, 5:OpenABR, 6:Failure, 7:OpenACO, 8:OpenAC, 9:LogicallyLocked", "" ) \ DPOINT_DEFN( SimSwitchStatusB, SwState, "Status of phase B in a single-triple system:\r\n\r\n0:Unknown, 1:Open, 2:Close, 3:Lockout, 4:InterLocked, 5:OpenABR, 6:Failure, 7:OpenACO, 8:OpenAC, 9:LogicallyLocked", "" ) \ DPOINT_DEFN( SimSwitchStatusC, SwState, "Status of phase C in a single-triple system:\r\n\r\n0:Unknown, 1:Open, 2:Close, 3:Lockout, 4:InterLocked, 5:OpenABR, 6:Failure, 7:OpenACO, 8:OpenAC, 9:LogicallyLocked", "" ) \ DPOINT_DEFN( SimSingleTriple, Bool, "TRUE if the SIM is capable of single-triple operations (SIM-02), FALSE if the SIM is capable of triple-only operations (SIM-01).", "" ) \ DPOINT_DEFN( SigCtrlRqstCloseA, Signal, "Request the switch to close phase A (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstCloseB, Signal, "Request the switch to close phase B (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstCloseC, Signal, "Request the switch to close phase C (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstCloseAB, Signal, "Request the switch to close phases A and B (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstCloseAC, Signal, "Request the switch to close phases A and C (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstCloseBC, Signal, "Request the switch to close phases B and C (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstCloseABC, Signal, "Request the switch to close phases A, B, and C (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstOpenA, Signal, "Request the switch to open phase A (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstOpenB, Signal, "Request the switch to open phase B (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstOpenC, Signal, "Request the switch to open phase C (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstOpenAB, Signal, "Request the switch to open phases A and B (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstOpenAC, Signal, "Request the switch to open phases A and C (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstOpenBC, Signal, "Request the switch to open phases B and C (single-triple only)", "" ) \ DPOINT_DEFN( SigCtrlRqstOpenABC, Signal, "Request the switch to open phases A, B, and C (single-triple only)", "" ) \ DPOINT_DEFN( CanSimTripCloseRequestStatusB, UI8, "No Trip or close request active: 0\r\n Trip active: 3\r\n Trip Fail: 5\r\n Close active: 9\r\n Close Fail: 17\r\n", "" ) \ DPOINT_DEFN( CanSimTripCloseRequestStatusC, UI8, "No Trip or close request active: 0\r\n Trip active: 3\r\n Trip Fail: 5\r\n Close active: 9\r\n Close Fail: 17", "" ) \ DPOINT_DEFN( CanSimTripRequestFailCodeB, UI32, "Description: BIT 0: switch gear not connected\r\n BIT 1: mechanical lockout\r\n BIT 2: operation active\r\n BIT 3: faulty actuator\r\n BIT 4: mechanism failure\r\n\r\n__NOTE:__ While set by the SIM this will be 'quietly' reset by the protection process once it has been detected.", "" ) \ DPOINT_DEFN( CanSimTripRequestFailCodeC, UI32, "Description: BIT 0: switch gear not connected\r\n BIT 1: mechanical lockout\r\n BIT 2: operation active\r\n BIT 3: faulty actuator\r\n BIT 4: mechanism failure\r\n\r\n__NOTE:__ While set by the SIM this will be 'quietly' reset by the protection process once it has been detected.", "" ) \ DPOINT_DEFN( CanSimCloseRequestFailCodeB, UI32, "Description: BIT 0: switch gear not connected\r\n BIT 1: mechanical lockout\r\n BIT 2: operation active\r\n BIT 3: faulty actuator\r\n BIT 4: mechanism failure\r\n BIT 5: Excess operations\r\n BIT 6: Close Cap Not Ok\r\n BIT 7: Trip Cap can’t perform 2 trips\r\n\r\n__NOTE:__ While set by the SIM this will be 'quietly' reset by the protection process once it has been detected.", "" ) \ DPOINT_DEFN( CanSimCloseRequestFailCodeC, UI32, "Description: BIT 0: switch gear not connected\r\n BIT 1: mechanical lockout\r\n BIT 2: operation active\r\n BIT 3: faulty actuator\r\n BIT 4: mechanism failure\r\n BIT 5: Excess operations\r\n BIT 6: Close Cap Not Ok\r\n BIT 7: Trip Cap can’t perform 2 trips\r\n\r\n__NOTE:__ While set by the SIM this will be 'quietly' reset by the protection process once it has been detected.", "" ) \ DPOINT_DEFN( CanSimOSMActuatorFaultStatusB, UI8, "No fault: 0, coil open cirucit: 1, coil short circuit: 2", "" ) \ DPOINT_DEFN( CanSimOSMActuatorFaultStatusC, UI8, "No fault: 0, coil open cirucit: 1, coil short circuit: 2", "" ) \ DPOINT_DEFN( CanSimOSMlimitSwitchFaultStatusB, UI8, "Description: No Fault: 0\r\n Open limit switch failed closed: 3\r\n Open limit switch failed open: 5\r\n Close limit switch failed closed: 9\r\n Close limit switch failed open: 17\r\n Close and Open switches both failed closed: 33\r\n Close and Mechanical Interlock Switch Closed:65", "" ) \ DPOINT_DEFN( CanSimOSMlimitSwitchFaultStatusC, UI8, "Description: No Fault: 0\r\n Open limit switch failed closed: 3\r\n Open limit switch failed open: 5\r\n Close limit switch failed closed: 9\r\n Close limit switch failed open: 17\r\n Close and Open switches both failed closed: 33\r\n Close and Mechanical Interlock Switch Closed:65", "" ) \ DPOINT_DEFN( CanSimTripRetryB, UI8, "Trip retry count for phase B", "" ) \ DPOINT_DEFN( CanSimTripRetryC, UI8, "Trip retry count for phase C", "" ) \ DPOINT_DEFN( SigCtrlUV4On, Signal, "UV4 Sag element switched On", "" ) \ DPOINT_DEFN( SigOpenUv4, Signal, "Open due to UV4 (Sag) tripping", "" ) \ DPOINT_DEFN( SigMalfSimRunningMiniBootloader, Signal, "Set if SIM is stuck in mini bootloader", "" ) \ DPOINT_DEFN( SigOpenSwitchA, Signal, "Phase A on the switch has opened in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigOpenSwitchB, Signal, "Phase B on the switch has opened in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigOpenSwitchC, Signal, "Phase C on the switch has opened in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigClosedSwitchA, Signal, "Phase A on the switch has closed in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigClosedSwitchB, Signal, "Phase B on the switch has closed in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigClosedSwitchC, Signal, "Phase C on the switch has closed in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigSwitchDisconnectionStatusA, Signal, "OSM Disconnected on phase A in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigSwitchDisconnectionStatusB, Signal, "OSM Disconnected on phase B in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigSwitchDisconnectionStatusC, Signal, "OSM Disconnected on phase C in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigSwitchLockoutStatusMechaniclockedA, Signal, "OSM Mechanically Locked Out, Trip ring pulled down on phase A in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigSwitchLockoutStatusMechaniclockedB, Signal, "OSM Mechanically Locked Out, Trip ring pulled down on phase B in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigSwitchLockoutStatusMechaniclockedC, Signal, "OSM Mechanically Locked Out, Trip ring pulled down on phase C in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigMalfOsmA, Signal, "Active due to 1, 2 or 3xCoil OC; Limit switch fault, Coil SC on phase A in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigMalfOsmB, Signal, "Active due to 1, 2 or 3xCoil OC; Limit switch fault, Coil SC on phase B in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigMalfOsmC, Signal, "Active due to 1, 2 or 3 x Coil OC; Limit switch fault, Coil SC on phase C in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusCoilOcA, Signal, "OSM actuator on phase A has coil open circuit", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusCoilOcB, Signal, "OSM actuator on phase B has coil open circuit", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusCoilOcC, Signal, "OSM actuator on phase C has coil open circuit", "" ) \ DPOINT_DEFN( SigOsmActuatorFaultStatusCoilScA, Signal, "OSM actuator on phase A has a coil short circuit", "" ) \ DPOINT_DEFN( SigOsmActuatorFaultStatusCoilScB, Signal, "OSM actuator on phase B has a coil short circuit", "" ) \ DPOINT_DEFN( SigOsmActuatorFaultStatusCoilScC, Signal, "OSM actuator on phase C has a coil short circuit", "" ) \ DPOINT_DEFN( SigOsmLimitFaultStatusFaultA, Signal, "OSM Limit Switch Fault on phase A in a single-triple configuration", "" ) \ DPOINT_DEFN( SigOsmLimitFaultStatusFaultB, Signal, "OSM Limit Switch Fault on phase B in a single-triple configuration", "" ) \ DPOINT_DEFN( SigOsmLimitFaultStatusFaultC, Signal, "OSM Limit Switch Fault on phase C in a single-triple configuration", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusQ503FailedA, Signal, "SIM Actuator Driver Q503 Failed on phase A in a single-triple configuration", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusQ503FailedB, Signal, "SIM Actuator Driver Q503 Failed on phase B in a single-triple configuration", "" ) \ DPOINT_DEFN( SigOSMActuatorFaultStatusQ503FailedC, Signal, "SIM Actuator Driver Q503 Failed on phase C in a single-triple configuration", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusActiveA, Signal, "Set if Trip or Close Active or failed on phase A. If failed, reset when next sucessfull trip or close", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusActiveB, Signal, "Set if Trip or Close Active or failed on phase B. If failed, reset when next sucessfull trip or close", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusActiveC, Signal, "Set if Trip or Close Active or failed on phase C. If failed, reset when next sucessfull trip or close", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripFailA, Signal, "Opening time on phase A exceeds 60ms or no confirmation received that open command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripFailB, Signal, "Opening time on phase B exceeds 60ms or no confirmation received that open command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripFailC, Signal, "Opening time on phase C exceeds 60ms or no confirmation received that open command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseFailA, Signal, "Closing time on phase A exceeds 100ms or no confirmation received that close command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseFailB, Signal, "Closing time on phase B exceeds 100ms or no confirmation received that close command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseFailC, Signal, "Closing time on phase C exceeds 100ms or no confirmation received that close command was executed succefully", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripActiveA, Signal, "Set while trip active on phase A", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripActiveB, Signal, "Set while trip active on phase B", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusTripActiveC, Signal, "Set while trip active on phase C", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseActiveA, Signal, "Set while close active on phase A", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseActiveB, Signal, "Set while close active on phase B", "" ) \ DPOINT_DEFN( SigTripCloseRequestStatusCloseActiveC, Signal, "Set while close active on phase C", "" ) \ DPOINT_DEFN( SigCtrlPhaseSelA, Signal, "Phase Select A is on", "" ) \ DPOINT_DEFN( SigCtrlPhaseSelB, Signal, "Phase Select B is on", "" ) \ DPOINT_DEFN( SigCtrlPhaseSelC, Signal, "Phase Select C is on", "" ) \ DPOINT_DEFN( PanelButtPhaseSel, EnDis, "HMI phase select fast key control", "" ) \ DPOINT_DEFN( SingleTripleModeGlobal, SingleTripleMode, "Single-triple mode that is active globally for when direction is not relevant.", "" ) \ DPOINT_DEFN( s61850ServEnable, EnDis, "IEC 61850 MMS Server Enable", "" ) \ DPOINT_DEFN( SigPickupUv4, Signal, "Pickup output of UV4 Sag activated", "" ) \ DPOINT_DEFN( SigAlarmUv4, Signal, "Alarm output of UV4 Sag activated", "" ) \ DPOINT_DEFN( SigPickupUabcUv4, Signal, "Pickup output of UV4 Sag activated on ABC", "" ) \ DPOINT_DEFN( SigPickupUrstUv4, Signal, "Pickup output of UV4 Sag activated on RST", "" ) \ DPOINT_DEFN( SigAlarmUabcUv4, Signal, "Alarm output of UV4 Sag activated for ABC", "" ) \ DPOINT_DEFN( SigAlarmUrstUv4, Signal, "Alarm output of UV4 Sag activated for RST", "" ) \ DPOINT_DEFN( StackCheckEnable, EnDis, "Enable or disable stack checking", "" ) \ DPOINT_DEFN( StackCheckInterval, UI32, "time interval between stack checks (in seconds)", "" ) \ DPOINT_DEFN( SigAlarmUv4Midpoint, Signal, "Alarm output of UV4 Sag Midpoint activated", "" ) \ DPOINT_DEFN( SigAlarmUabcUv4Midpoint, Signal, "Alarm output of UV4 Sag Midpoint activated for ABC", "" ) \ DPOINT_DEFN( SigAlarmUrstUv4Midpoint, Signal, "Alarm output of UV4 Sag Midpoint activated for RST", "" ) \ DPOINT_DEFN( SigOpenUv4Midpoint, Signal, "Open due to UV4 (Sag) tripping with the sag still above the midpoint", "" ) \ DPOINT_DEFN( SigOpenUabcUv4Midpoint, Signal, "Open due to UV4 (Sag) tripping with the sag still above the midpoint on ABC", "" ) \ DPOINT_DEFN( SigOpenUrstUv4Midpoint, Signal, "Open due to UV4 (Sag) tripping with the sag still above the midpoint on RST", "" ) \ DPOINT_DEFN( SigOpenUv4Ua, Signal, "Open or Alarm of UV4 for Ua", "" ) \ DPOINT_DEFN( SigOpenUv4Ub, Signal, "Open or Alarm of UV4 for Ub", "" ) \ DPOINT_DEFN( SigOpenUv4Uc, Signal, "Open or Alarm of UV4 for Uc", "" ) \ DPOINT_DEFN( SigOpenUv4Ur, Signal, "Open or Alarm of UV4 for Ur", "" ) \ DPOINT_DEFN( SigOpenUv4Us, Signal, "Open or Alarm of UV4 for Us", "" ) \ DPOINT_DEFN( SigOpenUv4Ut, Signal, "Open or Alarm of UV4 for Ut", "" ) \ DPOINT_DEFN( SigOpenUv4Uab, Signal, "Open or Alarm of UV4 for Uab", "" ) \ DPOINT_DEFN( SigOpenUv4Ubc, Signal, "Open or Alarm of UV4 for Ubc", "" ) \ DPOINT_DEFN( SigOpenUv4Uca, Signal, "Open or Alarm of UV4 for Uca", "" ) \ DPOINT_DEFN( SigOpenUv4Urs, Signal, "Open or Alarm of UV4 for Urs", "" ) \ DPOINT_DEFN( SigOpenUv4Ust, Signal, "Open or Alarm of UV4 for Ust", "" ) \ DPOINT_DEFN( SigOpenUv4Utr, Signal, "Open or Alarm of UV4 for Utr", "" ) \ DPOINT_DEFN( SigStatusCloseBlockingUv4, Signal, "UV4 Sag blocking activated", "" ) \ DPOINT_DEFN( TripMinVoltUv4, UI32, "The minimum sag voltage prior to the UV4 Sag Trip.\r\nNOTE: That the DB value is in volts (not 1/8 volt as other voltage values).", "" ) \ DPOINT_DEFN( ActiveSwitchPositionStatusST, UI32, "** Internal to simSwRqst ONLY ** Points to either SimulSwitchPositionStatusST or CanSimSwitchPositionStatusST depending upon whether the simulated switch is enabled or not.", "" ) \ DPOINT_DEFN( SimulSwitchPositionStatusST, UI16, "Simulated position of the single-triple switch: three 4-bit fields each indicating open:0, closed:1, unavailable:2", "" ) \ DPOINT_DEFN( SigGenLockoutA, Signal, "All AR OCEF, AR SEF, ABR elements are set in the O1 state for phase A in single-triple configurations.", "" ) \ DPOINT_DEFN( SigGenLockoutB, Signal, "All AR OCEF, AR SEF, ABR elements are set in the O1 state for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( SigGenLockoutC, Signal, "All AR OCEF, AR SEF, ABR elements are set in the O1 state for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( SigLockoutProtA, Signal, "This signal will be set when phase A of the switch has been opened to Lockout by any protection source in single-triple configurations.", "" ) \ DPOINT_DEFN( SigLockoutProtB, Signal, "This signal will be set when phase B of the switch has been opened to Lockout by any protection source in single-triple configurations.", "" ) \ DPOINT_DEFN( SigLockoutProtC, Signal, "This signal will be set when phase C of the switch has been opened to Lockout by any protection source in single-triple configurations.", "" ) \ DPOINT_DEFN( SwitchFailureStatusFlagB, UI8, "An internal flag used by the simSwRqst library to flag if the 'failure' mode is set on phase B.", "" ) \ DPOINT_DEFN( SwitchFailureStatusFlagC, UI8, "An internal flag used by the simSwRqst library to flag if the 'failure' mode is set on phase C.", "" ) \ DPOINT_DEFN( CoOpenReqB, LogOpen, "Open request for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( CoOpenReqC, LogOpen, "Open request for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( CoCloseReqB, LogOpen, "CO Log Close Req for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( CoCloseReqC, LogOpen, "CO Log Close Req for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldOpenB, SignalBitField, "The bit field value indicating the open event categories for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldOpenHighB, SignalBitField, "The bit field value indicating the open event categories (high word) for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldOpenC, SignalBitField, "The bit field value indicating the open event categories for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldOpenHighC, SignalBitField, "The bit field value indicating the open event categories (high word) for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldCloseB, SignalBitField, "The bit field value identifying the close event categories for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldCloseHighB, SignalBitField, "The bit field value identifying the close event categories (high word) for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldCloseC, SignalBitField, "The bit field value identifying the close event categories for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( SignalBitFieldCloseHighC, SignalBitField, "The bit field value identifying the close event categories (high word) for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( swsimInLockoutB, UI8, "BOOL flag indicating that an open to Lockout was initiated on phase B in single-triple configurations. This is reset when the switch is closed. NOTE: Do not use this flag to determine if in Lockout, use SigGenLockoutB instead. ", "" ) \ DPOINT_DEFN( swsimInLockoutC, UI8, "BOOL flag indicating that an open to Lockout was initiated on phase C in single-triple configurations. This is reset when the switch is closed. NOTE: Do not use this flag to determine if in Lockout, use SigGenLockoutC instead. ", "" ) \ DPOINT_DEFN( SimRqOpenB, EnDis, "SIM Request Open for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( SimRqOpenC, EnDis, "SIM Request Open for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( SimRqCloseB, EnDis, "SIM Request Close for phase B in single-triple configurations.", "" ) \ DPOINT_DEFN( SimRqCloseC, EnDis, "SIM Request Close for phase C in single-triple configurations.", "" ) \ DPOINT_DEFN( DurMonUpdateInterval, UI32, "Duration monitor report update inteval (in seconds)", "" ) \ DPOINT_DEFN( DurMonInitFlag, UI8, "flag to indicate duration monitor boot up initialization. The first duration monitor initialization call will set it to 1.", "" ) \ DPOINT_DEFN( MechanicalWeara, UI32, "Mechanical wear on phase A (min value is no wear, max value is 100%). Ratio of total operations and maximum operations.", "" ) \ DPOINT_DEFN( MechanicalWearb, UI32, "Mechanical wear on phase B (min value is no wear, max value is 100%). Ratio of total operations and maximum operations.", "" ) \ DPOINT_DEFN( MechanicalWearc, UI32, "Mechanical wear on phase C (min value is no wear, max value is 100%). Ratio of total operations and maximum operations.", "" ) \ DPOINT_DEFN( IdOsmNumber2, SerialNumber, "13 character serial number for the second switchgear in a single-triple configuration.", "" ) \ DPOINT_DEFN( IdOsmNumber3, SerialNumber, "13 character serial number for the third switchgear in a single-triple configuration.", "" ) \ DPOINT_DEFN( IdOsmNumberA, SerialNumber, "13 character serial number for the phase A switchgear in a single-triple configuration. Note: this is a derived point based on IdOsmNumber1.", "" ) \ DPOINT_DEFN( IdOsmNumberB, SerialNumber, "13 character serial number for the phase B switchgear in a single-triple configuration. Note: this is a derived point based on IdOsmNumber2.", "" ) \ DPOINT_DEFN( IdOsmNumberC, SerialNumber, "13 character serial number for the phase C switchgear in a single-triple configuration. Note: this is a derived point based on IdOsmNumber3.", "" ) \ DPOINT_DEFN( OsmSwitchCount, OsmSwitchCount, "Number of switches in use for single-triple (1 or 3).", "" ) \ DPOINT_DEFN( SwitchLogicallyLockedPhases, UI8, "Internal datapoint that indicates which phases are currently logically locked. That is, the phase is not mechanically locked but some other phase is mechanically locked so this one needs to act as though it is mechanically locked. Bitflags: A=1, B=2, C=4", "" ) \ DPOINT_DEFN( SigSwitchLogicallyLockedA, Signal, "Phase A is logically locked out because either B or C is mechanically locked out.", "" ) \ DPOINT_DEFN( SigSwitchLogicallyLockedB, Signal, "Phase B is logically locked out because either A or C is mechanically locked out.", "" ) \ DPOINT_DEFN( SigSwitchLogicallyLockedC, Signal, "Phase C is logically locked out because either A or B is mechanically locked out.", "" ) \ DPOINT_DEFN( SigBatteryTestInitiate, Signal, "Initiates a battery test.", "" ) \ DPOINT_DEFN( SigBatteryTestRunning, Signal, "Set when a battery test is running.", "" ) \ DPOINT_DEFN( SigBatteryTestPassed, Signal, "Set if the last battery test passed.", "" ) \ DPOINT_DEFN( SigBatteryTestNotPerformed, Signal, "Set if the last battery test could not be performed for some reason.", "" ) \ DPOINT_DEFN( SigBatteryTestCheckBattery, Signal, "Set if the last battery test resulted in \"Check Battery\".", "" ) \ DPOINT_DEFN( SigBatteryTestFaulty, Signal, "Set if the battery test circuitry in the SIM or PSC is faulty.", "" ) \ DPOINT_DEFN( SigBatteryTestAutoOn, Signal, "Battery test automatic mode is on.", "" ) \ DPOINT_DEFN( BatteryTestInterval, UI32, "Interval between automatic battery tests.", "" ) \ DPOINT_DEFN( BatteryTestIntervalUnits, UI32, "This is an internal datapoint that expresses the units for the BatteryTestInterval datapoint. This datapoint is set to the number of minutes in each unit. Normally set to 1440 for \"days\", but can be set to 1 to change the units to \"minutes\" or 60 for \"hours\" for QA testing.", "" ) \ DPOINT_DEFN( BatteryTestResult, BatteryTestResult, "Result of the last battery test.", "" ) \ DPOINT_DEFN( BatteryTestNotPerformedReason, BatteryTestNotPerformedReason, "Reason why the last battery test could not be performed.", "" ) \ DPOINT_DEFN( BatteryTestLastPerformedTime, TimeStamp, "Time and date when the last battery test was performed.", "" ) \ DPOINT_DEFN( ClearBatteryTestResults, ClearCommand, "Clears the battery test results.", "" ) \ DPOINT_DEFN( BatteryTestSupported, Bool, "TRUE if the SIM supports battery testing, FALSE if the SIM software version is too old to support battery testing.", "" ) \ DPOINT_DEFN( SigTrip3Lockout3On, Signal, "Set when 3-phase Trip, 3-phase Lockout is enabled for single-triple. Will be clear if single-triple is not active.", "" ) \ DPOINT_DEFN( SigTrip1Lockout3On, Signal, "Set when 1-phase Trip, 3-phase Lockout is enabled for single-triple. Will be clear if single-triple is not active.", "" ) \ DPOINT_DEFN( SigTrip1Lockout1On, Signal, "Set when 1-phase Trip, 1-phase Lockout is enabled for single-triple. Will be clear if single-triple is not active.", "" ) \ DPOINT_DEFN( MeasPowerPhaseS3kW, I32, "Signed 3 Phase forward kW", "" ) \ DPOINT_DEFN( MeasPowerPhaseS3kVAr, I32, "Signed 3 Phase forward kVAr", "" ) \ DPOINT_DEFN( MeasPowerFactorS3phase, I32, "Signed 3 Phase PF", "" ) \ DPOINT_DEFN( MeasPowerPhaseSAkW, I32, "Signed Phase A kW", "" ) \ DPOINT_DEFN( MeasPowerPhaseSAkVAr, I32, "Signed Phase A kVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseSBkW, I32, "Signed Phase B kW", "" ) \ DPOINT_DEFN( MeasPowerPhaseSBkVAr, I32, "Signed Phase B kVAr", "" ) \ DPOINT_DEFN( MeasPowerPhaseSCkW, I32, "Signed Phase C kW", "" ) \ DPOINT_DEFN( MeasPowerPhaseSCkVAr, I32, "Signed Phase C kVAr", "" ) \ DPOINT_DEFN( UserAnalogCfg01, UserAnalogCfg, "User analog 1 config", "" ) \ DPOINT_DEFN( UserAnalogCfg02, UserAnalogCfg, "User analog 2 config", "" ) \ DPOINT_DEFN( UserAnalogCfg03, UserAnalogCfg, "User analog 3 config", "" ) \ DPOINT_DEFN( UserAnalogCfg04, UserAnalogCfg, "User analog 4 config", "" ) \ DPOINT_DEFN( UserAnalogCfg05, UserAnalogCfg, "User analog 5 config", "" ) \ DPOINT_DEFN( UserAnalogCfg06, UserAnalogCfg, "User analog 6 config", "" ) \ DPOINT_DEFN( UserAnalogCfg07, UserAnalogCfg, "User analog 7 config", "" ) \ DPOINT_DEFN( UserAnalogCfg08, UserAnalogCfg, "User analog 8 config", "" ) \ DPOINT_DEFN( UserAnalogCfg09, UserAnalogCfg, "User analog 9 config", "" ) \ DPOINT_DEFN( UserAnalogCfg10, UserAnalogCfg, "User analog 10 config", "" ) \ DPOINT_DEFN( UserAnalogCfg11, UserAnalogCfg, "User analog 11 config", "" ) \ DPOINT_DEFN( UserAnalogCfg12, UserAnalogCfg, "User analog 12 config", "" ) \ DPOINT_DEFN( UserAnalogOut01, F32, "User analog 1 output", "" ) \ DPOINT_DEFN( UserAnalogOut02, F32, "User analog 2 output", "" ) \ DPOINT_DEFN( UserAnalogOut03, F32, "User analog 3 output", "" ) \ DPOINT_DEFN( UserAnalogOut04, F32, "User analog 4 output", "" ) \ DPOINT_DEFN( UserAnalogOut05, F32, "User analog 5 output", "" ) \ DPOINT_DEFN( UserAnalogOut06, F32, "User analog 6 output", "" ) \ DPOINT_DEFN( UserAnalogOut07, F32, "User analog 7 output", "" ) \ DPOINT_DEFN( UserAnalogOut08, F32, "User analog 8 output", "" ) \ DPOINT_DEFN( UserAnalogOut09, F32, "User analog 9 output", "" ) \ DPOINT_DEFN( UserAnalogOut10, F32, "User analog 10 output", "" ) \ DPOINT_DEFN( UserAnalogOut11, F32, "User analog 11 output", "" ) \ DPOINT_DEFN( UserAnalogOut12, F32, "User analog 12 output", "" ) \ DPOINT_DEFN( SectionaliserEnable, EnDis, "Hardware to operate as sectionaliser", "" ) \ DPOINT_DEFN( ProtStepStateB, ProtectionState, "This represents the current state of the step engine for phase B in single-triple configurations. This value is considered to be internal to the protection process.", "" ) \ DPOINT_DEFN( ProtStepStateC, ProtectionState, "This represents the current state of the step engine for phase C in single-triple configurations. This value is considered to be internal to the protection process.", "" ) \ DPOINT_DEFN( UserAnalogCfgOn, EnDis, "User configurable analog enable/disable", "" ) \ DPOINT_DEFN( SigGenARInitA, Signal, "Any of AR OCEF, AR SEF, AR UV or ABR elements set in one of O2, O3 or O4 states have been set on switch phase A in a single-triple configuration", "" ) \ DPOINT_DEFN( SigGenARInitB, Signal, "Any of AR OCEF, AR SEF, AR UV or ABR elements set in one of O2, O3 or O4 states have been set on switch phase B in a single-triple configuration", "" ) \ DPOINT_DEFN( SigGenARInitC, Signal, "Any of AR OCEF, AR SEF, AR UV or ABR elements set in one of O2, O3 or O4 states have been set on switch phase C in a single-triple configuration", "" ) \ DPOINT_DEFN( SigIncorrectPhaseSeq, Signal, "Incorrect phase sequence has been detected.", "" ) \ DPOINT_DEFN( TripHrmComponentA, UI8, "Harmonic component that caused the trip on phase A in a single-triple configuration.", "" ) \ DPOINT_DEFN( TripHrmComponentB, UI8, "Harmonic component that caused the trip on phase B in a single-triple configuration.", "" ) \ DPOINT_DEFN( TripHrmComponentC, UI8, "Harmonic component that caused the trip on phase C in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrHrmATrips, UI32, "Fault counter of HRM Trips on phase A in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrHrmBTrips, UI32, "Fault counter of HRM Trips on phase B in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrHrmCTrips, UI32, "Fault counter of HRM Trips on phase C in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrHrmNTrips, UI32, "Fault counter of HRM Trips on neutral in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrUvATrips, I32, "Fault counter of UV Trips on phase A in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrUvBTrips, I32, "Fault counter of UV Trips on phase B in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrUvCTrips, I32, "Fault counter of UV Trips on phase C in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrOvATrips, I32, "Fault counter of OV Trips on phase A in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrOvBTrips, I32, "Fault counter of OV Trips on phase B in a single-triple configuration.", "" ) \ DPOINT_DEFN( CntrOvCTrips, I32, "Fault counter of OV Trips on phase C in a single-triple configuration.", "" ) \ DPOINT_DEFN( TripMinUvA, UI32, "Minimum A phase to ground voltage as of the most recent under voltage trip", "" ) \ DPOINT_DEFN( TripMinUvB, UI32, "Minimum B phase to ground voltage as of the most recent under voltage trip", "" ) \ DPOINT_DEFN( TripMinUvC, UI32, "Minimum C phase to ground voltage as of the most recent under voltage trip", "" ) \ DPOINT_DEFN( TripMaxOvA, UI32, "Maximum A phase to ground voltage as of the most recent over voltage trip", "" ) \ DPOINT_DEFN( TripMaxOvB, UI32, "Maximum B phase to ground voltage as of the most recent over voltage trip", "" ) \ DPOINT_DEFN( TripMaxOvC, UI32, "Maximum C phase to ground voltage as of the most recent over voltage trip", "" ) \ DPOINT_DEFN( SigAlarmSwitchA, Signal, "Alarm on switch phase A activated in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigAlarmSwitchB, Signal, "Alarm on switch phase B activated in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigAlarmSwitchC, Signal, "Alarm on switch phase C activated in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigOpenLSRM, Signal, "Open due to LSRM tripping", "" ) \ DPOINT_DEFN( OscTraceUsbDir, Str, "If a zero length string then there is no USB disc mounted, otherwise this value specifies the absolute file system path for the mounted USB disc including subdirectory to Oscillography files (e.g. /var/usb/rc10/osc/SERIALNUMBER)", "" ) \ DPOINT_DEFN( GenericDir, Str, "If a zero length string then no path specified, otherwise this value specifies the absolute directory path which can be used with CMS protocol GETDIR query.", "" ) \ DPOINT_DEFN( SigCtrlLLBOn, Signal, "Live Load Block", "" ) \ DPOINT_DEFN( SigStatusCloseBlockingLLB, Signal, "LLB blocking activated", "" ) \ DPOINT_DEFN( AlarmMode, Signal, "Alarm mode on/off", "" ) \ DPOINT_DEFN( SigFaultTargetOpen, Signal, "Parent of all fault flags that also indicate an open. Note that setting this point should also cause SigOpenFaultTarget to be set (which will in turn set SigOpen)", "" ) \ DPOINT_DEFN( s61850ClientIpAddr1, IpAddr, "IP Address of IEC 61850 Client (1) connected to RC10 Server", "" ) \ DPOINT_DEFN( s61850GOOSEPublEnable, EnDis, "IEC 61850 GOOSE Publisher Enable", "" ) \ DPOINT_DEFN( s61850GOOSESubscrEnable, EnDis, "IEC 61850 GOOSE Subscriber Enable", "" ) \ DPOINT_DEFN( s61850ServerIpAddr, IpAddr, "IP Address of IEC 61850 Server in RC10. May be derived from CID file or from Cfg data.", "" ) \ DPOINT_DEFN( s61850PktsRx, UI32, "IEC 61850 Count of total received packets", "" ) \ DPOINT_DEFN( s61850PktsTx, UI32, "IEC 61850 Count of total transmitted packets", "" ) \ DPOINT_DEFN( s61850RxErrPkts, UI32, "IEC 61850 Count of received packets with errors", "" ) \ DPOINT_DEFN( s61850ChannelPort, CommsPort, "IEC 61850 Server (MMS) - Communication Channel selection", "" ) \ DPOINT_DEFN( s61850GOOSEPort, CommsPort, "IEC 61850 GOOSE Communication Channel selection", "" ) \ DPOINT_DEFN( GOOSE_broadcastMacAddr, Str, "GOOSE Publisher Broadcast MAC address", "" ) \ DPOINT_DEFN( GOOSE_TxCount, UI32, "IEC 61850: GOOSE Publisher - Number of Packets transmitted", "" ) \ DPOINT_DEFN( s61850IEDName, Str, "IEC 61850 IED name for RC10", "" ) \ DPOINT_DEFN( SigOpenSectionaliser, Signal, "Open due to Sectionaliser tripping", "" ) \ DPOINT_DEFN( ChEvCurveSettings, ChangeEvent, "This datapoint is used to log 'batch' changes to curve settings", "" ) \ DPOINT_DEFN( ScadaT10BCyclicWaitForSI, YesNo, "If \"No\", cyclic reporting starts when initialization completes. If \"Yes\", cyclc reporting is suppressed until after Station Initialization completes.", "" ) \ DPOINT_DEFN( ScadaT10BCyclicStartMaxDelay, UI16, "Delay from initialization until first cyclic report is generated. If Cyclic wait for Station Interrogation is \"Yes\", cyclic reporting starts after this period if no interrogation is performed and the cyclic reporting starts immediately after an interrogation if one is performed.", "" ) \ DPOINT_DEFN( SigCmdResetProtConfig, Signal, "DbFileCommand_DbFCmdResetProtConfig completed protection configuration reset", "" ) \ DPOINT_DEFN( SigMalfSectionaliserMismatch, Signal, "Auto Reclose map contains sectionaliser settings with sectionaliser mode disabled", "" ) \ DPOINT_DEFN( SigCtrlSectionaliserOn, Signal, "Sectionaliser Mode Switched On. This is a 'view only' of the current sectionaliser state. Writing to this point will NOT change the sectionalising mode. ", "" ) \ DPOINT_DEFN( UnitTestRoundTrip, UI8, "Internal datapoint that is used by the unit test framework to \"ping\" dbserver to see if it has processed all pending requests.", "" ) \ DPOINT_DEFN( SigOpenSim, Signal, "Indicates if the SigOpen is TRUE because of a switch open signal in Sim", "" ) \ DPOINT_DEFN( SigFaultTarget, Signal, "Parent of all fault flags. ", "" ) \ DPOINT_DEFN( SigFaultTargetNonOpen, Signal, "The parent of all fault signals that are NOT also children of SigOpen.", "" ) \ DPOINT_DEFN( ExtLoadStatus, OnOff, "Status of external load", "" ) \ DPOINT_DEFN( LogicChModeView, LogicChannelMode, "View of the logic channel mode (a mirror of LogicChMode)", "" ) \ DPOINT_DEFN( IoSettingILocModeView, IOSettingMode, "View of the local input mode (a mirror of IoSettingILocMode)", "" ) \ DPOINT_DEFN( IoSettingIo1ModeView, GPIOSettingMode, "The view/status determined related to IoSettingIo1Mode. Setting IoSettingIo1Mode may result in work happening before ultimately setting quietly (or not) of IoSettingIo1Mode to indicate status, and also set this IoSettingIo1ModeView to match.", "" ) \ DPOINT_DEFN( IoSettingIo2ModeView, GPIOSettingMode, "The view/status determined related to IoSettingIo2Mode. Setting IoSettingIo2Mode may result in work happening before ultimately setting quietly (or not) of IoSettingIo2Mode to indicate status, and also set this IoSettingIo2ModeView to match.", "" ) \ DPOINT_DEFN( SigOpenOcllTop, Signal, "Open due to OCLL1, OCLL2, OCLL3", "" ) \ DPOINT_DEFN( SigOpenEfllTop, Signal, "Open due to EFLL1, EFLL2, EFLL3", "" ) \ DPOINT_DEFN( LogicVAR17, Signal, "Logic VAR17", "" ) \ DPOINT_DEFN( LogicVAR18, Signal, "Logic VAR18", "" ) \ DPOINT_DEFN( LogicVAR19, Signal, "Logic VAR19", "" ) \ DPOINT_DEFN( LogicVAR20, Signal, "Logic VAR20", "" ) \ DPOINT_DEFN( LogicVAR21, Signal, "Logic VAR21", "" ) \ DPOINT_DEFN( LogicVAR22, Signal, "Logic VAR22", "" ) \ DPOINT_DEFN( LogicVAR23, Signal, "Logic VAR23", "" ) \ DPOINT_DEFN( LogicVAR24, Signal, "Logic VAR24", "" ) \ DPOINT_DEFN( LogicVAR25, Signal, "Logic VAR25", "" ) \ DPOINT_DEFN( LogicVAR26, Signal, "Logic VAR26", "" ) \ DPOINT_DEFN( LogicVAR27, Signal, "Logic VAR27", "" ) \ DPOINT_DEFN( LogicVAR28, Signal, "Logic VAR28", "" ) \ DPOINT_DEFN( LogicVAR29, Signal, "Logic VAR29", "" ) \ DPOINT_DEFN( LogicVAR30, Signal, "Logic VAR30", "" ) \ DPOINT_DEFN( LogicVAR31, Signal, "Logic VAR31", "" ) \ DPOINT_DEFN( LogicVAR32, Signal, "Logic VAR32", "" ) \ DPOINT_DEFN( s61850ClientIpAddr2, IpAddr, "IP Address of IEC 61850 Client (2) connected to RC10 Server", "" ) \ DPOINT_DEFN( s61850ClientIpAddr3, IpAddr, "IP Address of IEC 61850 Client (3) connected to RC10 Server", "" ) \ DPOINT_DEFN( s61850ClientIpAddr4, IpAddr, "IP Address of IEC 61850 Client (4) connected to RC10 Server", "" ) \ DPOINT_DEFN( s61850ServerTcpPort, UI16, "IEC 61850 Server (MMS) - TCP Port number used for MMS connections", "" ) \ DPOINT_DEFN( s61850TestDI1Bool, Bool, "IEC 61850 Test Digital Input 1 - free for User tests", "" ) \ DPOINT_DEFN( s61850TestDI2Bool, Bool, "IEC 61850 Test Digital Input 2 - free for User tests", "" ) \ DPOINT_DEFN( s61850TestDI3Sig, Signal, "IEC 61850 Test Digital Input 3 - free for User tests", "" ) \ DPOINT_DEFN( s61850TestAI1, I32, "IEC 61850 Test Analog Input 1 (Integer 32) - free for User tests", "" ) \ DPOINT_DEFN( s61850TestAI2, F32, "IEC 61850 Test Analog Input 2 (Float 32) - free for User tests", "" ) \ DPOINT_DEFN( s61850DiagCtrl, I32, "IEC 61850 Diagnostic Control (I32) for User tests", "" ) \ DPOINT_DEFN( LogicCh9OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh9RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh9ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh9PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh9Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh9Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh9Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh9NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh9InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh10OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh10RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh10ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh10PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh10Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh10Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh10Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh10NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh10InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh11OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh11RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh11ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh11PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh11Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh11Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh11Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh11NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh11InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh12OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh12RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh12ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh12PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh12Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh12Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh12Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh12NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh12InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh13OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh13RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh13ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh13PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh13Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh13Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh13Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh13NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh13InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh14OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh14RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh14ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh14PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh14Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh14Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh14Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh14NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh14InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh15OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh15RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh15ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh15PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh15Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh15Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh15Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh15NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh15InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh16OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh16RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh16ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh16PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh16Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh16Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh16Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh16NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh16InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh17OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh17RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh17ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh17PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh17Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh17Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh17Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh17NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh17InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh18OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh18RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh18ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh18PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh18Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh18Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh18Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh18NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh18InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh19OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh19RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh19ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh19PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh19Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh19Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh19Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh19NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh19InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh20OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh20RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh20ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh20PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh20Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh20Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh20Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh20NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh20InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh21OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh21RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh21ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh21PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh21Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh21Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh21Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh21NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh21InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh22OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh22RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh22ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh22PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh22Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh22Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh22Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh22NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh22InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh23OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh23RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh23ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh23PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh23Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh23Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh23Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh23NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh23InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh24OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh24RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh24ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh24PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh24Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh24Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh24Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh24NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh24InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh25OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh25RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh25ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh25PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh25Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh25Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh25Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh25NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh25InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh26OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh26RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh26ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh26PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh26Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh26Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh26Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh26NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh26InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh27OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh27RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh27ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh27PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh27Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh27Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh27Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh27NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh27InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh28OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh28RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh28ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh28PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh28Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh28Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh28Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh28NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh28InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh29OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh29RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh29ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh29PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh29Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh29Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh29Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh29NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh29InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh30OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh30RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh30ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh30PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh30Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh30Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh30Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh30NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh30InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh31OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh31RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh31ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh31PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh31Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh31Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh31Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh31NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh31InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicCh32OutputExp, LogicStr, "Logic channel output expression", "" ) \ DPOINT_DEFN( LogicCh32RecTime, UI16, "Logic channel recognition time", "" ) \ DPOINT_DEFN( LogicCh32ResetTime, UI16, "Logic channel reset time", "" ) \ DPOINT_DEFN( LogicCh32PulseTime, UI16, "Logic channel pulse time", "" ) \ DPOINT_DEFN( LogicCh32Output, OnOff, "Logic channel output", "" ) \ DPOINT_DEFN( LogicCh32Enable, Bool, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicCh32Name, Str, "Logic channel name", "" ) \ DPOINT_DEFN( LogicCh32NameOffline, Str, "Logic channel name offline setting", "" ) \ DPOINT_DEFN( LogicCh32InputExp, LogicStr, "Logic channel input expression", "" ) \ DPOINT_DEFN( LogicChWriteProtect17to32, EnDis, "Prevent setting logic channel attributes for channels 17 to 32", "" ) \ DPOINT_DEFN( SigStatusCloseBlocked, Signal, "Close operation blocked from ANY source", "" ) \ DPOINT_DEFN( LogicChEnableExt, UI32, "Logic channel enable", "" ) \ DPOINT_DEFN( LogicChPulseEnableExt, UI32, "Logic channel pulse enable", "" ) \ DPOINT_DEFN( LogicChLogChangeExt, UI32, "Logic channel log change of state", "" ) \ DPOINT_DEFN( ResetFaultFlagsOnClose, EnDis, "If enabled binary fault flags are reset when either (a) the switch closes or (b) the 'reset fault flags' binary output is activated. Otherwise binary fault flags are only reset when the 'reset fault flags' binary output is activated.", "" ) \ DPOINT_DEFN( SigOpenNps, Signal, "Open due to NPS1+, NPS2+, NPS3+, NPS1-, NPS2-, NPS3-", "" ) \ DPOINT_DEFN( SigAlarmNps, Signal, "Alarm ouput of any of NPS1+, NPS2+, NPS3+, NPS1-, NPS2-, NPS3- elements activated", "" ) \ DPOINT_DEFN( SystemStatus, SystemStatus, "System Status on panel display", "" ) \ DPOINT_DEFN( SigMalfGpioRunningMiniBootloader, Signal, "Set if GPIO is stuck in mini bootloader", "" ) \ DPOINT_DEFN( SigAlarmProtectionOperation, Signal, "Alarm output of Protection Operation. Set whenever a protection element has decided to operate, reset when all engines have reset.", "" ) \ DPOINT_DEFN( s61850GseSig1, Signal, "IEC 61850 Goose Digital Input 1 - Signal", "" ) \ DPOINT_DEFN( s61850GseSig2, Signal, "IEC 61850 Goose Digital Input 2 - Signal", "" ) \ DPOINT_DEFN( s61850GseSig3, Signal, "IEC 61850 Goose Digital Input 3 - Signal", "" ) \ DPOINT_DEFN( s61850GseSig4, Signal, "IEC 61850 Goose Digital Input 4 - Signal", "" ) \ DPOINT_DEFN( s61850GseSig5, Signal, "IEC 61850 Goose Digital Input 5 - Signal", "" ) \ DPOINT_DEFN( s61850GseSig6, Signal, "IEC 61850 Goose Digital Input 6 - Signal", "" ) \ DPOINT_DEFN( s61850GseSig7, Signal, "IEC 61850 Goose Digital Input 7 - Signal", "" ) \ DPOINT_DEFN( s61850GseSubChg, Bool, "Protocol IEC61850: Goose Subscription change event for batch notifications.", "" ) \ DPOINT_DEFN( s61850GseBool1, Bool, "IEC 61850 Goose Digital Input 1 - Boolean", "" ) \ DPOINT_DEFN( s61850GseBool2, Bool, "IEC 61850 Goose Digital Input 2 - Boolean", "" ) \ DPOINT_DEFN( s61850GseBool3, Bool, "IEC 61850 Goose Digital Input 3 - Boolean", "" ) \ DPOINT_DEFN( s61850GseBool4, Bool, "IEC 61850 Goose Digital Input 4 - Boolean", "" ) \ DPOINT_DEFN( s61850GseFp1, F32, "IEC 61850 Goose Analog FP Input 1", "" ) \ DPOINT_DEFN( s61850GseFp2, F32, "IEC 61850 Goose Analog FP Input 2", "" ) \ DPOINT_DEFN( s61850GseFp3, F32, "IEC 61850 Goose Analog FP Input 3", "" ) \ DPOINT_DEFN( s61850GseFp4, F32, "IEC 61850 Goose Analog FP Input 4", "" ) \ DPOINT_DEFN( s61850GseFp5, F32, "IEC 61850 Goose Analog FP Input 5", "" ) \ DPOINT_DEFN( s61850GseFp6, F32, "IEC 61850 Goose Analog FP Input 6", "" ) \ DPOINT_DEFN( s61850GseFp7, F32, "IEC 61850 Goose Analog FP Input 7", "" ) \ DPOINT_DEFN( s61850GseFp8, F32, "IEC 61850 Goose Analog FP Input 8", "" ) \ DPOINT_DEFN( s61850GseInt1, I32, "IEC 61850 Goose Analog Integer Input 1", "" ) \ DPOINT_DEFN( s61850GseInt2, I32, "IEC 61850 Goose Analog Integer Input 2", "" ) \ DPOINT_DEFN( s61850GseInt3, I32, "IEC 61850 Goose Analog Integer Input 3", "" ) \ DPOINT_DEFN( s61850GseInt4, I32, "IEC 61850 Goose Analog Integer Input 4", "" ) \ DPOINT_DEFN( s61850GseInt5, I32, "IEC 61850 Goose Analog Integer Input 5", "" ) \ DPOINT_DEFN( s61850GseInt6, I32, "IEC 61850 Goose Analog Integer Input 6", "" ) \ DPOINT_DEFN( s61850GseInt7, I32, "IEC 61850 Goose Analog Integer Input 7", "" ) \ DPOINT_DEFN( s61850GseInt8, I32, "IEC 61850 Goose Analog Integer Input 8", "" ) \ DPOINT_DEFN( FSMountFailure, UI8, "File system mount failure", "" ) \ DPOINT_DEFN( SigPickupABR, Signal, "Pickup output of ABR element activated", "" ) \ DPOINT_DEFN( SimExtSupplyStatusView, SimExtSupplyStatus, "Intended to track the external supply status provided via CanSimExtSupplyStatus.", "" ) \ DPOINT_DEFN( BatteryType, BatteryType, "Battery Type, AGM or GEL", "" ) \ DPOINT_DEFN( UsbDiscHasDNP3SAUpdateKey, Bool, "Indicates whether a connected USB disc has a DNP3 update key file", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileVer, Str, "Version of update key file", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileNetworkName, Str, "Network name in DNP3-SA update key file on USB", "" ) \ DPOINT_DEFN( DNP3SA_ExpectSessKeyChangeInterval, UI16, "Expected session key change interval", "" ) \ DPOINT_DEFN( DNP3SA_ExpectSessKeyChangeCount, UI32, "Expected session key change count", "" ) \ DPOINT_DEFN( DNP3SA_MaxSessKeyStatusCount, UI8, "Session key status count maximum", "" ) \ DPOINT_DEFN( DNP3SA_AggressiveMode, OnOff, "DNP3SA Aggressive mode", "" ) \ DPOINT_DEFN( DNP3SA_MACAlgorithm, MACAlgorithm, "DNP3SA MAC Algorithm", "" ) \ DPOINT_DEFN( DNP3SA_KeyWrapAlgorithm, AESAlgorithm, "DNP3SA Key Wrap Algorithm", "" ) \ DPOINT_DEFN( DNP3SA_SessKeyChangeIntervalMonitoring, OnOff, "DNP3SA Session Key Change Interval Monitoring", "" ) \ DPOINT_DEFN( DNP3SA_Enable, EnDis, "Enable DNP3-SA", "" ) \ DPOINT_DEFN( DNP3SA_Version, DNP3SAVersion, "DNP3-SA Version status", "" ) \ DPOINT_DEFN( DNP3SA_UpdateKeyInstalled, DNP3SAUpdateKeyInstalledStatus, "DNP3SA Update Key Installed", "" ) \ DPOINT_DEFN( DNP3SA_UpdateKeyFileVer, Str, "DNP3SA Update Key File Version", "" ) \ DPOINT_DEFN( DNP3SA_UpdateKeyInstallState, DNP3SAUpdateKeyInstallStep, "DNP3SA Update Key installation step/state", "" ) \ DPOINT_DEFN( DNP3SA_UnexpectedMsgCount, UI32, "DNP3SA Unexpected message count", "" ) \ DPOINT_DEFN( DNP3SA_AuthorizeFailCount, UI32, "DNP3SA Authorization Fail Count", "" ) \ DPOINT_DEFN( DNP3SA_AuthenticateFailCount, UI32, "DNP3SA Authentication Fail Count", "" ) \ DPOINT_DEFN( DNP3SA_ReplyTimeoutCount, UI32, "DNP3SA Reply Timeout Count", "" ) \ DPOINT_DEFN( DNP3SA_RekeyCount, UI32, "DNP3SA Rekey Count", "" ) \ DPOINT_DEFN( DNP3SA_TotalMsgTxCount, UI32, "DNP3SA Total Message Transmitted Count", "" ) \ DPOINT_DEFN( DNP3SA_TotalMsgRxCount, UI32, "DNP3SA Total Message Received Count", "" ) \ DPOINT_DEFN( DNP3SA_CriticalMsgTxCount, UI32, "DNP3SA Critical Message Tx Count", "" ) \ DPOINT_DEFN( DNP3SA_CriticalMsgRxCount, UI32, "DNP3SA Critical Message Rx Count", "" ) \ DPOINT_DEFN( DNP3SA_DiscardedMsgCount, UI32, "DNP3SA Discarded Message Count", "" ) \ DPOINT_DEFN( DNP3SA_AuthenticateSuccessCount, UI32, "DNP3SA Authenticate Success Count", "" ) \ DPOINT_DEFN( DNP3SA_ErrorMsgTxCount, UI32, "DNP3SA Error Message Tx Count", "" ) \ DPOINT_DEFN( DNP3SA_ErrorMsgRxCount, UI32, "DNP3SA Error Message Rx Count", "" ) \ DPOINT_DEFN( DNP3SA_SessKeyChangeCount, UI32, "DNP3SA Session Key Change Count", "" ) \ DPOINT_DEFN( DNP3SA_FailedSessKeyChangeCount, UI32, "DNP3SA Failed Session Key Change Count", "" ) \ DPOINT_DEFN( ClearDnp3SACntr, ClearCommand, "Clear DNP3-SA Counters", "" ) \ DPOINT_DEFN( IdSIMModelStr, Str, "String to display for SIM model : \"\", SIM-01, SIM-02, SIM-03", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileUserNum, UI16, "User number", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileUserRole, UI16, "User Role", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileCryptoAlg, UI8, "Crypto algorithm", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileDNP3SlaveAddr, UI16, "DNP3 Slave address", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileDevSerialNum, Str, "Device serial number", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileEnableSA, YesNo, "Enable DNP3-SA after install", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileKeyVer, Str, "Update key version", "" ) \ DPOINT_DEFN( DNP3SA_UpdateKeyFileKeyVer, Str, "Protocol DNP3 Update Key Version", "" ) \ DPOINT_DEFN( DNP3SA_MaxErrorCount, UI8, "Number of error messages sent before disabling error message transmission", "" ) \ DPOINT_DEFN( DNP3SA_MaxErrorMessagesSent, UI16, "Maximum error messages sent", "" ) \ DPOINT_DEFN( DNP3SA_MaxAuthenticationFails, UI16, "Maximum authentication failures", "" ) \ DPOINT_DEFN( DNP3SA_MaxAuthenticationRekeys, UI16, "Maximum authentication rekeys", "" ) \ DPOINT_DEFN( DNP3SA_MaxReplyTimeouts, UI16, "Maximum reply timeouts", "" ) \ DPOINT_DEFN( DNP3SA_DisallowSHA1, Bool, "Disallow SHA1", "" ) \ DPOINT_DEFN( ScadaDNP3SecurityStatistics, ScadaDNP3SecurityStatistics, "This is the datapoint that CMS will use to download the required point map to the RC10", "" ) \ DPOINT_DEFN( DNP3SA_VersionSelect, DNP3SAVersion, "Select DNP3-SA Version (which is via offline settings on CMS)", "" ) \ DPOINT_DEFN( ClearDNP3SAUpdateKey, ClearCommand, "Remove DNP3SA Update Key", "" ) \ DPOINT_DEFN( SigAlarmOv3, Signal, "Alarm output of OV3 activated", "" ) \ DPOINT_DEFN( SigAlarmOv4, Signal, "Alarm output of OV4 activated", "" ) \ DPOINT_DEFN( SigOpenOv3, Signal, "Open due to OV3 tripping", "" ) \ DPOINT_DEFN( SigOpenOv4, Signal, "Open due to OV4 tripping", "" ) \ DPOINT_DEFN( SigPickupOv3, Signal, "Pickup output of OV3 activated", "" ) \ DPOINT_DEFN( SigPickupOv4, Signal, "Pickup output of OV4 activated", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileError, UsbDiscDNP3SAUpdateKeyFileError, "Stores value indicating the nature of an error involving USB DNP3-SA key file", "" ) \ DPOINT_DEFN( ProtAngIa, I16, "Protection Angle Ia:\r\nThe value is scaled in pi-radians with a range from -pi to +pi. The (signed integer) value is sign extended to fill the 16 bit buffer; therefore this value can be treated as a normal I16.\r\n\r\nTo convert the value into degrees: divide the number by 2^13 and multiply by 180.", "" ) \ DPOINT_DEFN( ProtAngIb, I16, "Protection Angle Ib: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( ProtAngIc, I16, "Protection Angle Ic: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( ProtAngUa, I16, "Protection Angle Ua: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( ProtAngUb, I16, "Protection Angle Ub: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( ProtAngUc, I16, "Protection Angle Uc: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( ProtAngUr, I16, "Protection Angle Ur: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( ProtAngUs, I16, "Protection Angle Us: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( ProtAngUt, I16, "Protection Angle Ut: See ProtAngIa for an explanation of the scale factor.", "" ) \ DPOINT_DEFN( MeasVoltUn, UI32, "Measurement Voltage: Un", "" ) \ DPOINT_DEFN( TripMaxVoltUn, UI32, "Maximum Un voltage as of the most recent OV3 trip", "" ) \ DPOINT_DEFN( TripMaxVoltU2, UI32, "Maximum U2 voltage as of the most recent OV4 trip", "" ) \ DPOINT_DEFN( UsbDiscDNP3SAUpdateKeyFileName, Str, "Name of file containing DNP3SA update key", "" ) \ DPOINT_DEFN( BatteryTypeChangeSupported, Bool, "TRUE if the SIM supports battery type changing, FALSE if the SIM software version is too old to support battery type changing.", "" ) \ DPOINT_DEFN( UsbDiscInstallError, UpdateError, "The \"forced install\" operation has more strict requirements than update only. So this point may indicate an error to prevent install, while the UsbDiscError indicates ok for update.", "" ) \ DPOINT_DEFN( UsbDiscUpdateDirFiles, StrArray, "List of all file names (or as many that can fit in the data type) existing in the USB updates directory, regardless of whether valid or not.", "" ) \ DPOINT_DEFN( UsbDiscUpdateDirFileCount, UI32, "Number of files in the USB updates directory.", "" ) \ DPOINT_DEFN( SigLogicConfigIssue, Signal, "Set when RC10 detects logic operations are happening too fast, probably due to a loop outside the loop detection capability.", "" ) \ DPOINT_DEFN( SigLowestUa, Signal, "Ua has the lowest voltage sag", "" ) \ DPOINT_DEFN( SigLowestUb, Signal, "Ub has the lowest voltage sag", "" ) \ DPOINT_DEFN( SigLowestUc, Signal, "Uc has the lowest voltage sag", "" ) \ DPOINT_DEFN( SigCtrlInhibitMultiPhaseClosesOn, Signal, "When enabled in a single-triple configuration, multi-phase close operations from the Panel, CMS, or Logic are not allowed.", "" ) \ DPOINT_DEFN( CanSimModuleFeatures, UI32, "Bit flags that indicate what features are supported by the SIM.", "" ) \ DPOINT_DEFN( CanSimMaxPower, UI16, "Maximum power supported by the SIM's power supply. 0 to 500W in 0.01W units. Default is 50W.", "" ) \ DPOINT_DEFN( IdOsmNumber1, SerialNumber, "13 character serial number for the first switchgear in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigSwitchOpen, Signal, "Set if the switch is open, reset otherwise. The feature of this point is that the timestamp will be the time of receipt of the CAN SwitchPositionStatus message from the SIM.", "" ) \ DPOINT_DEFN( SigSwitchClosed, Signal, "Set if the switch is closed, reset otherwise. The feature of this point is that the timestamp will be the time of receipt of the CAN SwitchPositionStatus message from the SIM.", "" ) \ DPOINT_DEFN( s61850GseSimFlgEn, EnDis, "IEC 61850 Monitor Goose Simulation (or Test) Flag", "" ) \ DPOINT_DEFN( s61850GseSimProc, EnDis, "IEC 61850 Process Received Simulated Goose Messages (on/off) ", "" ) \ DPOINT_DEFN( s61850TestQualEn, EnDis, "IEC 61850 Process Quality bits for Test flag", "" ) \ DPOINT_DEFN( s61850GseSubscr01, s61850GseSubscDefn, "IEC 61850: Goose Subscription 01 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr02, s61850GseSubscDefn, "IEC 61850: Goose Subscription 02 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr03, s61850GseSubscDefn, "IEC 61850: Goose Subscription 03 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr04, s61850GseSubscDefn, "IEC 61850: Goose Subscription 04 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( IEC61499Enable, EnDis, "IEC 61499 Enabled", "" ) \ DPOINT_DEFN( IEC61499PortNumber, UI16, "TCP Port number for IEC 61499 Runtime Management Device (Default = 61499)", "" ) \ DPOINT_DEFN( IEC61499AppStatus, IEC61499AppStatus, "Status of the IEC 61499 Runtime resources. The status shall correspond to one of the following \"Running\", or \"Stopped\" to indicate if the installed resources are running or stopped.", "" ) \ DPOINT_DEFN( IEC61499Command, IEC61499Command, "Data point used to issue commands to the IEC61499 Runtime. Upon completion of the execution of the issued command, the value is reset to IEC61499CmdNone. (Default=IEC61499CmdNone)", "" ) \ DPOINT_DEFN( OperatingMode, OperatingMode, "Operating mode of the system: Recloser, Switch, Alarm Switch, Sectionaliser", "" ) \ DPOINT_DEFN( AlarmLatchMode, LatchEnable, "The latch mode for Alarms. Configured under the 'Fault Flags' collections of settings", "" ) \ DPOINT_DEFN( IdPSCSoftwareVer, Str, "Identification: PSC Software Version", "" ) \ DPOINT_DEFN( IdPSCHardwareVer, Str, "Identification: PSC Hardware Version", "" ) \ DPOINT_DEFN( IdPSCNumber, SerialNumber, "Identification: PSC Serial Number", "" ) \ DPOINT_DEFN( CanPscModuleType, UI8, "Module type of the PSC, which should be 6", "" ) \ DPOINT_DEFN( CanPscReadSerialNumber, Str, "Serial Number in YYMMNNNN format", "" ) \ DPOINT_DEFN( CanPscPartAndSupplierCode, Str, "PSC Part And Supplier Code", "" ) \ DPOINT_DEFN( SigModuleTypePscConnected, Signal, "PSC Connected", "" ) \ DPOINT_DEFN( CanPscReadHWVers, UI32, "Firmware version major number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor \r\n", "" ) \ DPOINT_DEFN( CanPscReadSWVers, SwVersion, "Software version major number\r\nbytes[0..1] Major\r\nbytes[2..3] Minor\r\nbytes[4..5] Build\r\nbytes[6..7] Mode 0=Debug, 1=Release\r\n", "" ) \ DPOINT_DEFN( PhaseToPhaseTripping, EnDis, "When enabled, lockout all three phases in single triple when a multi phase fault (i.e. OC fault on more than one phase) occurs and the trip is to lockout.", "" ) \ DPOINT_DEFN( CanPscRdData, SimImageBytes, "PSC image download write\r\nOn request byte[0] = number of bytes to read\r\nOn return byte[0..8] is the data", "" ) \ DPOINT_DEFN( CanPscFirmwareVerifyStatus, UI8, "0 DOWNLOAD_NEXT - get next block of data.\r\n1 DOWNLOAD_REPT - repeat block as data was corrupt.\r\n2 DOWNLOAD_BUSY - unit still processing the data.\r\n\r\nWhen polled indicates what it is currently happening with the block data.\r\n", "" ) \ DPOINT_DEFN( CanPscFirmwareTypeRunning, UI8, "0 main code running\r\n1 mini bootloader running\r\n2 main bootloader running\r\n", "" ) \ DPOINT_DEFN( ProgramPscCmd, ProgramSimCmd, "Issue commands to the PSC programmer process (progPsc).", "" ) \ DPOINT_DEFN( CanDataRequestPsc, CanObjType, "request data from PSC device on the CAN network", "" ) \ DPOINT_DEFN( ProgramPscStatus, UI8, "Indicates the status of PSC programming (for firmware update)", "" ) \ DPOINT_DEFN( CanPscRequestMoreData, UI8, "Number of packets to send", "" ) \ DPOINT_DEFN( SigCtrlRqstTripCloseA, Signal, "Request a trip / close on A. To request a close set value to 1, to request an open set value to 0.", "" ) \ DPOINT_DEFN( SigCtrlRqstTripCloseB, Signal, "Request a trip / close on B. To request a close set value to 1, to request an open set value to 0.", "" ) \ DPOINT_DEFN( SigCtrlRqstTripCloseC, Signal, "Request a trip / close on C. To request a close set value to 1, to request an open set value to 0.", "" ) \ DPOINT_DEFN( GOOSE_RxCount, UI32, "IEC 61850: GOOSE Subscriber - Number of Packets received. ", "" ) \ DPOINT_DEFN( s61850ClrGseCntrs, ClearCommand, "IEC 61850: Erase Goose Subscriber and Publisher Counters", "" ) \ DPOINT_DEFN( SigClosedSwitchAll, Signal, "All switch phases are closed in a single-triple configuration.", "" ) \ DPOINT_DEFN( SigOpenSwitchAll, Signal, "All switch phases are open in a single-triple configuration.", "" ) \ DPOINT_DEFN( SwitchgearTypeSIMChanged, Bool, "Set to TRUE when the switchgear type has changed due to a change from SIM-01 to SIM-02 or vice versa. This indicates that a system reset will be required.", "" ) \ DPOINT_DEFN( SwitchgearTypeEraseSettings, Bool, "Set to TRUE when the settings and logs should be erased due to a change from SIM-01 to SIM-02 or vice versa which changed the switchgear type.", "" ) \ DPOINT_DEFN( UpdatePscNew, Str, "PSC firmware version string which is about to be installed. Used at startup to verify whether a firmware update was successful: if IdPSCSoftwareVer matches this datapoint then software update was successful.", "" ) \ DPOINT_DEFN( s61850GseSubscr05, s61850GseSubscDefn, "IEC 61850: Goose Subscription 05 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr06, s61850GseSubscDefn, "IEC 61850: Goose Subscription 06 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr07, s61850GseSubscDefn, "IEC 61850: Goose Subscription 07 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr08, s61850GseSubscDefn, "IEC 61850: Goose Subscription 08 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr09, s61850GseSubscDefn, "IEC 61850: Goose Subscription 09 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr10, s61850GseSubscDefn, "IEC 61850: Goose Subscription 10 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( SigModuleTypePscDisconnected, Signal, "PSC is disconnected and the SIM is not capable of providing system power.", "" ) \ DPOINT_DEFN( SigMalfPscRunningMiniBootloader, Signal, "Set if PSC is stuck in mini bootloader", "" ) \ DPOINT_DEFN( SigMalfPscFault, Signal, "PSC internal fault detected", "" ) \ DPOINT_DEFN( CanPscModuleFault, UI16, "PSC module health. Healthy: 00000000, otherwise bits indicate type of fault.", "" ) \ DPOINT_DEFN( CanPscModuleHealth, UI8, "Healthy: 0, fault: 1", "" ) \ DPOINT_DEFN( ScadaT10BTimeLocal, ScadaTimeIsLocal, "Flag to indicate if time sent over SCADA should be interpreted as local time or UTC time.", "" ) \ DPOINT_DEFN( ScadaT10BIpValidMasterAddr, YesNo, "Whether to accept IEC messages from the configured Master's IP address.", "" ) \ DPOINT_DEFN( ScadaT10BIpMasterAddr, IpAddr, "The Master's IP address. This is used for authorizing, if \"Check Master IP Address\" is ON, and for sending unsolicited messages.", "" ) \ DPOINT_DEFN( DDT001, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT002, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT003, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT004, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT005, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT006, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT007, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT008, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT009, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT010, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT011, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT012, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT013, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT014, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT015, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT016, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT017, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT018, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT019, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT020, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT021, DDT, "Dynamic Data Type (32 bits) ", "" ) \ DPOINT_DEFN( DDT022, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT023, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT024, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT025, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT026, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT027, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT028, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT029, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT030, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT031, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT032, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT033, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT034, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT035, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT036, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT037, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT038, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT039, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT040, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT041, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT042, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT043, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT044, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT045, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT046, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT047, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT048, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT049, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT050, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT051, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT052, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT053, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT054, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT055, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT056, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT057, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT058, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT059, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT060, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT061, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT062, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT063, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT064, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT065, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT066, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT067, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT068, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT069, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT070, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT071, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT072, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT073, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT074, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT075, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT076, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT077, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT078, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT079, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT080, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT081, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT082, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT083, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT084, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT085, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT086, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT087, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT088, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT089, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT090, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT091, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT092, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT093, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT094, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT095, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT096, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT097, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT098, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT099, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( DDT100, DDT, "Dynamic Data Type. Represent any number that fits into 32 bits. Used only in IEC 61499", "" ) \ DPOINT_DEFN( SigAlarmOcll1, Signal, "Alarm output of OCLL1 activated", "" ) \ DPOINT_DEFN( SigAlarmOcll2, Signal, "Alarm output of OCLL2 activated", "" ) \ DPOINT_DEFN( SigAlarmOcll3, Signal, "Alarm output of OCLL3 activated", "" ) \ DPOINT_DEFN( SigAlarmNpsll1, Signal, "Alarm output of NPSLL1 activated", "" ) \ DPOINT_DEFN( SigAlarmNpsll2, Signal, "Alarm output of NPSLL2 activated", "" ) \ DPOINT_DEFN( SigAlarmNpsll3, Signal, "Alarm output of NPSLL3 activated", "" ) \ DPOINT_DEFN( SigAlarmEfll1, Signal, "Alarm output of EFLL1 activated", "" ) \ DPOINT_DEFN( SigAlarmEfll2, Signal, "Alarm output of EFLL2 activated", "" ) \ DPOINT_DEFN( SigAlarmEfll3, Signal, "Alarm output of EFLL3 activated", "" ) \ DPOINT_DEFN( SigAlarmSefll, Signal, "Alarm output of SEFLL activated", "" ) \ DPOINT_DEFN( DDTDef01, DDTDef, "Dynamic Data Type definitions. Contains 100 DDT definitions. Each definition consists of channel, name and type.", "" ) \ DPOINT_DEFN( CanSimBulkReadCount, UI8, "Maximum bulk read count for SIM. On SIM's that support it, this indicates the number of \"Read Data\" packets that can be returned for a bulk read request.", "" ) \ DPOINT_DEFN( CanIoBulkReadCount, UI8, "Maximum bulk read count for GPIO. On GPIO's that support it, this indicates the number of \"Read Data\" packets that can be returned for a bulk read request.", "" ) \ DPOINT_DEFN( CanPscBulkReadCount, UI8, "Maximum bulk read count for PSC. On PSC's that support it, this indicates the number of \"Read Data\" packets that can be returned for a bulk read request.", "" ) \ DPOINT_DEFN( DemoUnitMode, DemoUnitMode, "If configured (set to Standard or Single Triple), the Demonstration Unit Functionality in the Demo Box will be available.", "" ) \ DPOINT_DEFN( DemoUnitAvailable, Bool, "** Internal to Demonstration Unit functionality only ** If set to TRUE, the Demonstration Unit functionality is available on the HMI panel. The Demonstration Unit is available when the SIM module is detected as disconnected and un-available when the SIM module is detected as connected.", "" ) \ DPOINT_DEFN( LanguagesAvailable, StrArray2, "List of languages available", "" ) \ DPOINT_DEFN( DemoUnitActive, Bool, "** Internal to Demonstration Unit functionality only ** If set to TRUE, the Demonstration Unit functionality is active on the HMI panel. The Demonstration Unit is active when the Demonstration Unit is Available and not Disabled.", "" ) \ DPOINT_DEFN( CanSimReadSWVersExt, SwVersionExt, "SIM software version extended details\r\n", "" ) \ DPOINT_DEFN( CanIo1ReadSwVersExt, SwVersionExt, "IO1 extended software version details", "" ) \ DPOINT_DEFN( CanIo2ReadSwVersExt, SwVersionExt, "IO2 extended software version details", "" ) \ DPOINT_DEFN( CanPscReadSWVersExt, SwVersionExt, "PSC extended software version details", "" ) \ DPOINT_DEFN( RemoteUpdateCommand, RemoteUpdateCommand, "Remote update command", "" ) \ DPOINT_DEFN( RemoteUpdateStatus, RemoteUpdateStatus, "Remote Update Status", "" ) \ DPOINT_DEFN( IEC61499FBOOTChEv, IEC61499FBOOTChEv, "Data point used to generate change log events relating to the FBOOT file. The point is set to automatically generate a change log and 'silently' (not using dbSet to prevent events being generated) resetting the data point directly to [0] IEC61499FBOOTNoCh", "" ) \ DPOINT_DEFN( SigStatusIEC61499FailedFBOOT, Signal, "Signal used to indicate the status of a failed FBOOT, i.e. the FBOOT may be malformed or unable to be executed", "" ) \ DPOINT_DEFN( IdOsmNumModelA, UI32, "SW A serial number field 1. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumModelB, UI32, "SW B serial number field 1. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumModelC, UI32, "SW C serial number field 1. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumPlantA, UI32, "SW A serial number field 2. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumPlantB, UI32, "SW B serial number field 2. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumPlantC, UI32, "SW C serial number field 2. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumDateA, UI32, "SW A serial number field 3. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumDateB, UI32, "SW B serial number field 3. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumDateC, UI32, "SW C serial number field 3. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumSeqA, UI32, "SW A serial number field 4. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumSeqB, UI32, "SW B serial number field 4. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( IdOsmNumSeqC, UI32, "SW C serial number field 4. Send Notifications on New Values Only to prevent perpetual event handling condition if decodeAllSerNums() is called in response to a change event of this data point (such as with scadaS101).", "" ) \ DPOINT_DEFN( LLBPhasesBlocked, UI8, "Bit mask that indicates which phases currently have LLB active on them in a single-triple configuration.", "" ) \ DPOINT_DEFN( CmsClientCapabilities, UI32, "This bit field is used by connecting CMS client devices to announce their capabilities. The values are supposed to be from the CmsClientSupports enumeration. Refer to the wiki page for legal values.", "" ) \ DPOINT_DEFN( SigGenLockoutAll, Signal, "All AR OCEF, AR SEF, ABR elements are set in the Lockout state for all phases in single-triple configurations.", "" ) \ DPOINT_DEFN( SigLockoutProtAll, Signal, "This signal will be set when all switches have been opened to Lockout by any protection source in single-triple.", "" ) \ DPOINT_DEFN( CmsClientAllowAny, Bool, "If set to TRUE, then any CMS client can connect even if its client capabilities are not compatible. This is intended for testing only.", "" ) \ DPOINT_DEFN( IEC61499FBOOTStatus, IEC61499FBOOTStatus, "Status of the IEC 61499 FBOOT file. The status shall correspond to one of the following \"None\" or \"Installed\".", "" ) \ DPOINT_DEFN( IEC61499AppsRunning, UI8, "Number of IEC 61499 Resources installed on the device", "" ) \ DPOINT_DEFN( IEC61499AppsFailed, UI8, "Number of IEC 61499 Resources which failed to install", "" ) \ DPOINT_DEFN( IEC61499FBOOTOper, IEC61499FBOOTOper, "Status of the IEC 61499 FBOOT file operation. The file operations include Delete FBOOT from non-volatile memory and Copy FBOOT from USB. The status shall correspond to the data type values.", "" ) \ DPOINT_DEFN( PanelButtHLT, EnDis, "HMI Hot Line Tag fast key control", "" ) \ DPOINT_DEFN( GpsAvailable, YesNo, "Indicate whether GPS module is available or not. Depends on partcode number. ", "" ) \ DPOINT_DEFN( Gps_PortDetectedName, Str, "USB detected port name, ttyUSBx.", "" ) \ DPOINT_DEFN( Gps_Enable, EnDis, "GPS enable control", "" ) \ DPOINT_DEFN( Gps_Restart, YesNo, "GPS restart control\r\n2016/04/20 changed title for CMS-1577", "" ) \ DPOINT_DEFN( Gps_SignalQuality, SignalQuality, "Quality of the GPS signal: No Signal, Low Signal, Very Good, or Excellent", "" ) \ DPOINT_DEFN( Gps_Longitude, I32, "GPS Longitude", "" ) \ DPOINT_DEFN( Gps_Latitude, I32, "GPS Latitude", "" ) \ DPOINT_DEFN( Gps_Altitude, I16, "GPS Altitude", "" ) \ DPOINT_DEFN( Gps_TimeSyncStatus, GpsTimeSyncStatus, "GPS time sync status: not synced or locked", "" ) \ DPOINT_DEFN( SigGpsLocked, Signal, "GPS time locked when set, not synchronised when reset", "" ) \ DPOINT_DEFN( PqChEvNonGroup, ChangeEvent, "For logging changes to power quality settings", "" ) \ DPOINT_DEFN( ChEvSwitchgearCalib, ChangeEvent, "For logging changes to switchgear calibration settings", "" ) \ DPOINT_DEFN( ProtocolChEvNonGroup, ChangeEvent, "To log changes in protocol settings", "" ) \ DPOINT_DEFN( Gps_SyncSimTime, Bool, "Set to TRUE to force the SIM's time to be synchronised with the time from the GPS. Will be quietly reset to FALSE once synchronisation is complete.", "" ) \ DPOINT_DEFN( Gps_PPS, Signal, "Set if the GPS PPS signal is present and the GPS is enabled for updating the time. Reset if the GPS is disabled or the PPS signal has stopped. Note: just because PPS is present doesn't mean that the GPS has yet \"locked\". This signal is typically used to control whether the user can manually set the time via HMI, CMS, and SCADA or not.", "" ) \ DPOINT_DEFN( SigModuleSimUnhealthy, Signal, "SIM Module Health Fault", "" ) \ DPOINT_DEFN( SigLanAvailable, Signal, "Indicates if the hardware has an Ethernet port for LAN access.", "" ) \ DPOINT_DEFN( MntReset, Bool, "Notification from the protection configurator that it has reset SigMntActivated.", "" ) \ DPOINT_DEFN( WlanConfigType, UsbPortConfigType, "WLAN port config type", "" ) \ DPOINT_DEFN( MobileNetworkConfigType, UsbPortConfigType, "Mobile network port config type", "" ) \ DPOINT_DEFN( WlanConnectionMode, WlanConnectionMode, "WLAN connection mode: Access Point or Client", "" ) \ DPOINT_DEFN( WlanAccessPointSSID, Str, "SSID to use when WLAN is configured as Access Point. Not used in Client mode.", "" ) \ DPOINT_DEFN( WlanAccessPointIP, IpAddr, "IP address to use when the WLAN is configured as an Access Point. Not used in Client mode.", "" ) \ DPOINT_DEFN( WlanIPRangeLow, IpAddr, "WLAN IP Address Range Low", "" ) \ DPOINT_DEFN( WlanIPRangeHigh, IpAddr, "WLAN IP Address Range High", "" ) \ DPOINT_DEFN( WlanClientIPAddr1, IpAddr, "WLAN Client IP Address 1", "" ) \ DPOINT_DEFN( WlanClientIPAddr2, IpAddr, "WLAN Client IP Address 2", "" ) \ DPOINT_DEFN( WlanClientIPAddr3, IpAddr, "WLAN Client IP Address 3", "" ) \ DPOINT_DEFN( WlanClientIPAddr4, IpAddr, "WLAN Client IP Address 4", "" ) \ DPOINT_DEFN( WlanClientIPAddr5, IpAddr, "WLAN Client IP Address 5", "" ) \ DPOINT_DEFN( WlanSignalQuality, SignalQuality, "WLAN Signal Quality", "" ) \ DPOINT_DEFN( MobileNetworkSignalQuality, SignalQuality, "Mobile Network Signal Quality", "" ) \ DPOINT_DEFN( MobileNetworkSimCardStatus, MobileNetworkSimCardStatus, "Mobile Network SIM Card Status: Detected or Not Detected", "" ) \ DPOINT_DEFN( MobileNetworkMode, MobileNetworkMode, "Mobile network mode: GSM, WCDMA, etc", "" ) \ DPOINT_DEFN( MobileNetworkModemSerialNumber, Str, "Mobile Network Modem Serial Number", "" ) \ DPOINT_DEFN( MobileNetworkIMEI, Str, "Mobile Network IMEI", "" ) \ DPOINT_DEFN( WlanHideNetwork, YesNo, "When WLAN is in Access Point mode, hide the SSID from Wi-Fi clients and do not broadcast it.", "" ) \ DPOINT_DEFN( WlanChannelNumber, UI8, "WLAN channel number when in Access Point mode", "" ) \ DPOINT_DEFN( WlanRestart, YesNo, "WLAN Restart", "" ) \ DPOINT_DEFN( MobileNetworkRestart, YesNo, "Mobile Network Restart", "" ) \ DPOINT_DEFN( SigWlanAvailable, Signal, "Indicate whether WLAN comms board is available or not. Depends on partcode number.", "" ) \ DPOINT_DEFN( SigMobileNetworkAvailable, Signal, "Indicate whether mobile network comms board is available or not. Depends on partcode number.", "" ) \ DPOINT_DEFN( SigCommsBoardConnected, Signal, "Set to 1 if the REL-15 comms board is connected. Set to 0 if the comms board is not connected.", "" ) \ DPOINT_DEFN( G12_SerialBaudRate, CommsSerialBaudRate, "Grp12 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G12_SerialDuplexType, CommsSerialDuplex, "Grp12 Serial Duplex Type", "" ) \ DPOINT_DEFN( G12_SerialRTSMode, CommsSerialRTSMode, "Grp12 Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G12_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp12 Serial RTS On Level", "" ) \ DPOINT_DEFN( G12_SerialDTRMode, CommsSerialDTRMode, "Grp12 Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G12_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp12 Serial DTR On Level", "" ) \ DPOINT_DEFN( G12_SerialParity, CommsSerialParity, "Grp12 Serial Parity", "" ) \ DPOINT_DEFN( G12_SerialCTSMode, CommsSerialCTSMode, "Grp12 Clear To Send setting.", "" ) \ DPOINT_DEFN( G12_SerialDSRMode, CommsSerialDSRMode, "Grp12 Data Set Ready setting.", "" ) \ DPOINT_DEFN( G12_SerialDTRLowTime, UI32, "Grp12 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G12_SerialTxDelay, UI32, "Grp12 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G12_SerialPreTxTime, UI32, "Grp12 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G12_SerialDCDFallTime, UI32, "Grp12 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G12_SerialCharTimeout, UI32, "Grp12 Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G12_SerialPostTxTime, UI32, "Grp12 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G12_SerialInactivityTime, UI32, "Grp12 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G12_SerialCollisionAvoidance, Bool, "Grp12 Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G12_SerialMinIdleTime, UI32, "Grp12 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G12_SerialMaxRandomDelay, UI32, "Grp12 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G12_ModemPoweredFromExtLoad, Bool, "Grp12 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G12_ModemUsedWithLeasedLine, Bool, "Grp12 Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G12_ModemInitString, Str, "Grp12 Modem Init String", "" ) \ DPOINT_DEFN( G12_ModemDialOut, Bool, "Grp12 Modem Dial Out", "" ) \ DPOINT_DEFN( G12_ModemPreDialString, Str, "Grp12 Modem Pre Dial String", "" ) \ DPOINT_DEFN( G12_ModemDialNumber1, Str, "Grp12 Modem Dial Number1", "" ) \ DPOINT_DEFN( G12_ModemDialNumber2, Str, "Grp12 Modem Dial Number2", "" ) \ DPOINT_DEFN( G12_ModemDialNumber3, Str, "Grp12 Modem Dial Number3", "" ) \ DPOINT_DEFN( G12_ModemDialNumber4, Str, "Grp12 Modem Dial Number4", "" ) \ DPOINT_DEFN( G12_ModemDialNumber5, Str, "Grp12 Modem Dial Number5", "" ) \ DPOINT_DEFN( G12_ModemAutoDialInterval, UI32, "Grp12 Modem Auto Dial Interval time between failure to connect to one number in seconds. ", "" ) \ DPOINT_DEFN( G12_ModemConnectionTimeout, UI32, "Grp12 Modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G12_ModemMaxCallDuration, UI32, "Grp12 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G12_ModemResponseTime, UI32, "Grp12 Modem Response Time", "" ) \ DPOINT_DEFN( G12_ModemHangUpCommand, Str, "Grp12 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G12_ModemOffHookCommand, Str, "Grp12 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G12_ModemAutoAnswerOn, Str, "Grp12 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G12_ModemAutoAnswerOff, Str, "Grp12 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G12_RadioPreamble, Bool, "Grp12 Radio Preamble", "" ) \ DPOINT_DEFN( G12_RadioPreambleChar, UI8, "Grp12 Radio Preamble Char", "" ) \ DPOINT_DEFN( G12_RadioPreambleRepeat, UI32, "Grp12 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G12_RadioPreambleLastChar, UI8, "Grp12 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G12_LanSpecifyIP, YesNo, "Grp12 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G12_LanIPAddr, IpAddr, "Grp12 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G12_LanSubnetMask, IpAddr, "Grp12 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G12_LanDefaultGateway, IpAddr, "Grp12 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G12_WlanNetworkSSID, Str, "Grp12 Wlan Network SSID", "" ) \ DPOINT_DEFN( G12_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp12 Wlan Network Authentication", "" ) \ DPOINT_DEFN( G12_WlanDataEncryption, CommsWlanDataEncryption, "Grp12 Wlan Data Encryption", "" ) \ DPOINT_DEFN( G12_WlanNetworkKey, Str, "Grp12 Wlan Network Key", "" ) \ DPOINT_DEFN( G12_WlanKeyIndex, UI32, "Grp12 Wlan Key Index", "" ) \ DPOINT_DEFN( G12_PortLocalRemoteMode, LocalRemote, "Grp12 Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G12_GPRSServiceProvider, Str, "Grp12 GPRS service provider name", "" ) \ DPOINT_DEFN( G12_GPRSUserName, Str, "Grp12 GPRS user name", "" ) \ DPOINT_DEFN( G12_GPRSPassWord, Str, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_SerialDebugMode, YesNo, "Grp12 serial debug mode selection", "" ) \ DPOINT_DEFN( G12_SerialDebugFileName, Str, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_GPRSBaudRate, CommsSerialBaudRate, "Grp12 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G12_GPRSConnectionTimeout, UI32, "Grp12 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G12_DNP3InputPipe, Str, "Grp12 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G12_DNP3OutputPipe, Str, "Grp12 DNP3 output pipe", "" ) \ DPOINT_DEFN( G12_CMSInputPipe, Str, "Grp12 CMS Input Pipe", "" ) \ DPOINT_DEFN( G12_CMSOutputPipe, Str, "Grp12 CMS Output Pipe", "" ) \ DPOINT_DEFN( G12_HMIInputPipe, Str, "Grp12 HMI Input Pipe", "" ) \ DPOINT_DEFN( G12_HMIOutputPipe, Str, "Grp12 HMI Output Pipe", "" ) \ DPOINT_DEFN( G12_DNP3ChannelRequest, Str, "Grp12 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G12_DNP3ChannelOpen, Str, "Grp12 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G12_CMSChannelRequest, Str, "Grp12 CMS Channel Request", "" ) \ DPOINT_DEFN( G12_CMSChannelOpen, Str, "Grp12 CMS Channel Open", "" ) \ DPOINT_DEFN( G12_HMIChannelRequest, Str, "Grp12 HMI Channel Request", "" ) \ DPOINT_DEFN( G12_HMIChannelOpen, Str, "Grp12 HMI Channel Open", "" ) \ DPOINT_DEFN( G12_GPRSUseModemSetting, YesNo, "Grp12 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G12_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp12 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G12_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp12 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G12_T10BInputPipe, Str, "Grp12 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G12_T10BOutputPipe, Str, "Grp12 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G12_T10BChannelRequest, Str, "Grp12 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G12_T10BChannelOpen, Str, "Grp12 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G12_P2PInputPipe, Str, "Grp12 P2P input pipe ", "" ) \ DPOINT_DEFN( G12_P2POutputPipe, Str, "Grp12 P2P output pipe ", "" ) \ DPOINT_DEFN( G12_P2PChannelRequest, Str, "Grp12 P2P Channel Request", "" ) \ DPOINT_DEFN( G12_P2PChannelOpen, Str, "Grp12 P2P Channel Open", "" ) \ DPOINT_DEFN( G12_PGEInputPipe, Str, "Grp12 PGE Input Pipe", "" ) \ DPOINT_DEFN( G12_PGEOutputPipe, Str, "Grp12 PGE output pipe ", "" ) \ DPOINT_DEFN( G12_PGEChannelRequest, Str, "Grp12 PGE Channel Request", "" ) \ DPOINT_DEFN( G12_PGEChannelOpen, Str, "Grp12 PGE Channel Open", "" ) \ DPOINT_DEFN( G12_LanProvideIP, YesNo, "Grp12 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G12_LanSpecifyIPv6, YesNo, "Grp12 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G12_LanIPv6Addr, Ipv6Addr, "Grp12 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G12_LanPrefixLength, UI8, "Grp12 LAN Prefix Length", "" ) \ DPOINT_DEFN( G12_LanIPv6DefaultGateway, Ipv6Addr, "Grp12 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G12_LanIpVersion, IpVersion, "Grp12 LAN IP version", "" ) \ DPOINT_DEFN( G12_SerialDTRStatus, CommsSerialPinStatus, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_SerialDSRStatus, CommsSerialPinStatus, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_SerialCDStatus, CommsSerialPinStatus, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_SerialRTSStatus, CommsSerialPinStatus, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_SerialCTSStatus, CommsSerialPinStatus, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_SerialRIStatus, CommsSerialPinStatus, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_ConnectionStatus, CommsConnectionStatus, "Grp12 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G12_BytesReceivedStatus, UI32, "Grp12 Bytes received on a port.", "" ) \ DPOINT_DEFN( G12_BytesTransmittedStatus, UI32, "Grp12 No description", "" ) \ DPOINT_DEFN( G12_PacketsReceivedStatus, UI32, "Grp12 Packets received on a port.", "" ) \ DPOINT_DEFN( G12_PacketsTransmittedStatus, UI32, "Grp12 Packets Transmitted", "" ) \ DPOINT_DEFN( G12_ErrorPacketsReceivedStatus, UI32, "Grp12 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G12_ErrorPacketsTransmittedStatus, UI32, "Grp12 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G12_IpAddrStatus, IpAddr, "Grp12 IPv4 Address", "" ) \ DPOINT_DEFN( G12_SubnetMaskStatus, IpAddr, "Grp12 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G12_DefaultGatewayStatus, IpAddr, "Grp12 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G12_PortDetectedType, CommsPortDetectedType, "Grp12 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G12_PortDetectedName, Str, "Grp12 USB Port detected device name", "" ) \ DPOINT_DEFN( G12_SerialTxTestStatus, OnOff, "Grp12 serial port TX testing status", "" ) \ DPOINT_DEFN( G12_PacketsReceivedStatusIPv6, UI32, "Grp12 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G12_PacketsTransmittedStatusIPv6, UI32, "Grp12 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G12_ErrorPacketsReceivedStatusIPv6, UI32, "Grp12 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G12_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp12 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G12_Ipv6AddrStatus, Ipv6Addr, "Grp12 IPv6 Address", "" ) \ DPOINT_DEFN( G12_LanPrefixLengthStatus, UI8, "Grp12 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G12_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp12 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G12_IpVersionStatus, IpVersion, "Grp12 LAN IP version", "" ) \ DPOINT_DEFN( G13_SerialDTRStatus, CommsSerialPinStatus, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_SerialDSRStatus, CommsSerialPinStatus, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_SerialCDStatus, CommsSerialPinStatus, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_SerialRTSStatus, CommsSerialPinStatus, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_SerialCTSStatus, CommsSerialPinStatus, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_SerialRIStatus, CommsSerialPinStatus, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_ConnectionStatus, CommsConnectionStatus, "Grp13 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G13_BytesReceivedStatus, UI32, "Grp13 Bytes received on a port.", "" ) \ DPOINT_DEFN( G13_BytesTransmittedStatus, UI32, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_PacketsReceivedStatus, UI32, "Grp13 Packets received on a port.", "" ) \ DPOINT_DEFN( G13_PacketsTransmittedStatus, UI32, "Grp13 Packets Transmitted", "" ) \ DPOINT_DEFN( G13_ErrorPacketsReceivedStatus, UI32, "Grp13 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G13_ErrorPacketsTransmittedStatus, UI32, "Grp13 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G13_IpAddrStatus, IpAddr, "Grp13 IPv4 Address", "" ) \ DPOINT_DEFN( G13_SubnetMaskStatus, IpAddr, "Grp13 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G13_DefaultGatewayStatus, IpAddr, "Grp13 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G13_PortDetectedType, CommsPortDetectedType, "Grp13 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G13_PortDetectedName, Str, "Grp13 USB Port detected device name", "" ) \ DPOINT_DEFN( G13_SerialTxTestStatus, OnOff, "Grp13 serial port TX testing status", "" ) \ DPOINT_DEFN( G13_PacketsReceivedStatusIPv6, UI32, "Grp13 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G13_PacketsTransmittedStatusIPv6, UI32, "Grp13 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G13_ErrorPacketsReceivedStatusIPv6, UI32, "Grp13 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G13_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp13 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G13_Ipv6AddrStatus, Ipv6Addr, "Grp13 IPv6 Address", "" ) \ DPOINT_DEFN( G13_LanPrefixLengthStatus, UI8, "Grp13 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G13_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp13 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G13_IpVersionStatus, IpVersion, "Grp13 LAN IP version", "" ) \ DPOINT_DEFN( G12_SerialPortTestCmd, Signal, "Grp12 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G12_SerialPortHangupCmd, Signal, "Grp12 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G12_BytesReceivedResetCmd, Signal, "Grp12 reset bytes Received", "" ) \ DPOINT_DEFN( G12_BytesTransmittedResetCmd, Signal, "Grp12 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G13_SerialPortTestCmd, Signal, "Grp13 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G13_SerialPortHangupCmd, Signal, "Grp13 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G13_BytesReceivedResetCmd, Signal, "Grp13 reset bytes Received", "" ) \ DPOINT_DEFN( G13_BytesTransmittedResetCmd, Signal, "Grp13 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G13_SerialBaudRate, CommsSerialBaudRate, "Grp13 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G13_SerialDuplexType, CommsSerialDuplex, "Grp13 Serial Duplex Type", "" ) \ DPOINT_DEFN( G13_SerialRTSMode, CommsSerialRTSMode, "Grp13 Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G13_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp13 Serial RTS On Level", "" ) \ DPOINT_DEFN( G13_SerialDTRMode, CommsSerialDTRMode, "Grp13 Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G13_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp13 Serial DTR On Level", "" ) \ DPOINT_DEFN( G13_SerialParity, CommsSerialParity, "Grp13 Serial Parity", "" ) \ DPOINT_DEFN( G13_SerialCTSMode, CommsSerialCTSMode, "Grp13 Clear To Send setting.", "" ) \ DPOINT_DEFN( G13_SerialDSRMode, CommsSerialDSRMode, "Grp13 Data Set Ready setting.", "" ) \ DPOINT_DEFN( G13_SerialDTRLowTime, UI32, "Grp13 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G13_SerialTxDelay, UI32, "Grp13 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G13_SerialPreTxTime, UI32, "Grp13 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G13_SerialDCDFallTime, UI32, "Grp13 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G13_SerialCharTimeout, UI32, "Grp13 Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G13_SerialPostTxTime, UI32, "Grp13 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G13_SerialInactivityTime, UI32, "Grp13 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G13_SerialCollisionAvoidance, Bool, "Grp13 Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G13_SerialMinIdleTime, UI32, "Grp13 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G13_SerialMaxRandomDelay, UI32, "Grp13 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G13_ModemPoweredFromExtLoad, Bool, "Grp13 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G13_ModemUsedWithLeasedLine, Bool, "Grp13 Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G13_ModemInitString, Str, "Grp13 Modem Init String", "" ) \ DPOINT_DEFN( G13_ModemDialOut, Bool, "Grp13 Modem Dial Out", "" ) \ DPOINT_DEFN( G13_ModemPreDialString, Str, "Grp13 Modem Pre Dial String", "" ) \ DPOINT_DEFN( G13_ModemDialNumber1, Str, "Grp13 Modem Dial Number1", "" ) \ DPOINT_DEFN( G13_ModemDialNumber2, Str, "Grp13 Modem Dial Number2", "" ) \ DPOINT_DEFN( G13_ModemDialNumber3, Str, "Grp13 Modem Dial Number3", "" ) \ DPOINT_DEFN( G13_ModemDialNumber4, Str, "Grp13 Modem Dial Number4", "" ) \ DPOINT_DEFN( G13_ModemDialNumber5, Str, "Grp13 Modem Dial Number5", "" ) \ DPOINT_DEFN( G13_ModemAutoDialInterval, UI32, "Grp13 Modem Auto Dial Interval time between failure to connect to one number in seconds. ", "" ) \ DPOINT_DEFN( G13_ModemConnectionTimeout, UI32, "Grp13 Modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G13_ModemMaxCallDuration, UI32, "Grp13 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G13_ModemResponseTime, UI32, "Grp13 Modem Response Time", "" ) \ DPOINT_DEFN( G13_ModemHangUpCommand, Str, "Grp13 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G13_ModemOffHookCommand, Str, "Grp13 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G13_ModemAutoAnswerOn, Str, "Grp13 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G13_ModemAutoAnswerOff, Str, "Grp13 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G13_RadioPreamble, Bool, "Grp13 Radio Preamble", "" ) \ DPOINT_DEFN( G13_RadioPreambleChar, UI8, "Grp13 Radio Preamble Char", "" ) \ DPOINT_DEFN( G13_RadioPreambleRepeat, UI32, "Grp13 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G13_RadioPreambleLastChar, UI8, "Grp13 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G13_LanSpecifyIP, YesNo, "Grp13 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G13_LanIPAddr, IpAddr, "Grp13 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G13_LanSubnetMask, IpAddr, "Grp13 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G13_LanDefaultGateway, IpAddr, "Grp13 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G13_WlanNetworkSSID, Str, "Grp13 Wlan Network SSID", "" ) \ DPOINT_DEFN( G13_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp13 Wlan Network Authentication", "" ) \ DPOINT_DEFN( G13_WlanDataEncryption, CommsWlanDataEncryption, "Grp13 Wlan Data Encryption", "" ) \ DPOINT_DEFN( G13_WlanNetworkKey, Str, "Grp13 Wlan Network Key", "" ) \ DPOINT_DEFN( G13_WlanKeyIndex, UI32, "Grp13 Wlan Key Index", "" ) \ DPOINT_DEFN( G13_PortLocalRemoteMode, LocalRemote, "Grp13 Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G13_GPRSServiceProvider, Str, "Grp13 GPRS service provider name", "" ) \ DPOINT_DEFN( G13_GPRSUserName, Str, "Grp13 GPRS user name", "" ) \ DPOINT_DEFN( G13_GPRSPassWord, Str, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_SerialDebugMode, YesNo, "Grp13 serial debug mode selection", "" ) \ DPOINT_DEFN( G13_SerialDebugFileName, Str, "Grp13 No description", "" ) \ DPOINT_DEFN( G13_GPRSBaudRate, CommsSerialBaudRate, "Grp13 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G13_GPRSConnectionTimeout, UI32, "Grp13 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G13_DNP3InputPipe, Str, "Grp13 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G13_DNP3OutputPipe, Str, "Grp13 DNP3 output pipe", "" ) \ DPOINT_DEFN( G13_CMSInputPipe, Str, "Grp13 CMS Input Pipe", "" ) \ DPOINT_DEFN( G13_CMSOutputPipe, Str, "Grp13 CMS Output Pipe", "" ) \ DPOINT_DEFN( G13_HMIInputPipe, Str, "Grp13 HMI Input Pipe", "" ) \ DPOINT_DEFN( G13_HMIOutputPipe, Str, "Grp13 HMI Output Pipe", "" ) \ DPOINT_DEFN( G13_DNP3ChannelRequest, Str, "Grp13 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G13_DNP3ChannelOpen, Str, "Grp13 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G13_CMSChannelRequest, Str, "Grp13 CMS Channel Request", "" ) \ DPOINT_DEFN( G13_CMSChannelOpen, Str, "Grp13 CMS Channel Open", "" ) \ DPOINT_DEFN( G13_HMIChannelRequest, Str, "Grp13 HMI Channel Request", "" ) \ DPOINT_DEFN( G13_HMIChannelOpen, Str, "Grp13 HMI Channel Open", "" ) \ DPOINT_DEFN( G13_GPRSUseModemSetting, YesNo, "Grp13 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G13_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp13 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G13_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp13 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G13_T10BInputPipe, Str, "Grp13 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G13_T10BOutputPipe, Str, "Grp13 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G13_T10BChannelRequest, Str, "Grp13 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G13_T10BChannelOpen, Str, "Grp13 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G13_P2PInputPipe, Str, "Grp13 P2P input pipe ", "" ) \ DPOINT_DEFN( G13_P2POutputPipe, Str, "Grp13 P2P output pipe ", "" ) \ DPOINT_DEFN( G13_P2PChannelRequest, Str, "Grp13 P2P Channel Request", "" ) \ DPOINT_DEFN( G13_P2PChannelOpen, Str, "Grp13 P2P Channel Open", "" ) \ DPOINT_DEFN( G13_PGEInputPipe, Str, "Grp13 PGE Input Pipe", "" ) \ DPOINT_DEFN( G13_PGEOutputPipe, Str, "Grp13 PGE output pipe ", "" ) \ DPOINT_DEFN( G13_PGEChannelRequest, Str, "Grp13 PGE Channel Request", "" ) \ DPOINT_DEFN( G13_PGEChannelOpen, Str, "Grp13 PGE Channel Open", "" ) \ DPOINT_DEFN( G13_LanProvideIP, YesNo, "Grp13 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G13_LanSpecifyIPv6, YesNo, "Grp13 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G13_LanIPv6Addr, Ipv6Addr, "Grp13 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G13_LanPrefixLength, UI8, "Grp13 LAN Prefix Length", "" ) \ DPOINT_DEFN( G13_LanIPv6DefaultGateway, Ipv6Addr, "Grp13 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G13_LanIpVersion, IpVersion, "Grp13 LAN IP version", "" ) \ DPOINT_DEFN( SigMalfRel03, Signal, "Part code is REL-03, but REL-15 comms board is connected.", "" ) \ DPOINT_DEFN( SigMalfRel15, Signal, "Part code is REL-15 but comms board is not connected, or 4G modem is connected.", "" ) \ DPOINT_DEFN( SigMalfRel15_4G, Signal, "Part code is REL-15-4G but comms board is not connected or 4G modem is not connected.", "" ) \ DPOINT_DEFN( SyncEnabled, EnDis, "Enable or disable synchronisation.", "" ) \ DPOINT_DEFN( SigWarningSyncSingleTriple, Signal, "Synchronisation has been activated on a single-triple system that is not in 3-phase trip / 3-phase lockout mode.", "" ) \ DPOINT_DEFN( SyncPhaseToSelection, PhaseToSelection, "Selects phase-to-ground or phase-to-phase mode for synchronisation.", "" ) \ DPOINT_DEFN( SyncBusAndLine, BusAndLine, "Selects which side is the \"Bus\" and which side is the \"Line\" in synchronisation.", "" ) \ DPOINT_DEFN( SyncLiveDeadAR, SyncLiveDeadMode, "Auto-reclose mode when energising a dead section of the network during synchronisation.", "" ) \ DPOINT_DEFN( SyncLiveDeadManual, SyncLiveDeadMode, "Manual close mode when energising a dead section of the network during synchronisation.", "" ) \ DPOINT_DEFN( SyncDLDBAR, EnDis, "Auto-reclose mode in case of reconnection of two dead sections during synchronisation.", "" ) \ DPOINT_DEFN( SyncDLDBManual, EnDis, "Manual close mode in case of reconnection of two dead sections during synchronisation.", "" ) \ DPOINT_DEFN( SyncLiveBusMultiplier, UI16, "Live bus minimum voltage limit for synchronisation.", "" ) \ DPOINT_DEFN( SyncLiveLineMultiplier, UI16, "Live line minimum voltage limit for synchronisation.", "" ) \ DPOINT_DEFN( SyncMaxBusMultiplier, UI16, "Bus maximum allowed voltage during synchronisation.", "" ) \ DPOINT_DEFN( SyncMaxLineMultiplier, UI16, "Line maximum allowed voltage during synchronisation.", "" ) \ DPOINT_DEFN( SyncCheckEnabled, EnDis, "Enable or disable synchronism check.", "" ) \ DPOINT_DEFN( SyncVoltageDiffMultiplier, UI16, "Multiplier for setting the maximum allowable voltage difference for synchronisation.", "" ) \ DPOINT_DEFN( SyncMaxSyncSlipFreq, UI16, "Maximum slip frequency to detect synchronous conditions.", "" ) \ DPOINT_DEFN( SyncMaxPhaseAngleDiff, UI16, "Maximum allowable phase angle difference for synchronisation.", "" ) \ DPOINT_DEFN( SyncManualPreSyncTime, UI16, "Time to check the synchronism prior to allowing a manual close.", "" ) \ DPOINT_DEFN( SyncMaxFreqDeviation, UI16, "Maximum allowable frequency deviation from the fundamental frequency for synchronisation.", "" ) \ DPOINT_DEFN( SyncMaxAutoSlipFreq, UI16, "Maximum allowable slip frequency for auto-synchronisation to operate.", "" ) \ DPOINT_DEFN( SyncMaxROCSlipFreq, UI16, "Maximum rate of change of slip frequency for auto-synchronisation.", "" ) \ DPOINT_DEFN( SyncAutoWaitingTime, UI32, "Waiting time for auto-synchroniser.", "" ) \ DPOINT_DEFN( SyncAntiMotoringEnabled, EnDis, "Enable or disable anti-motoring protection for synchronisation.", "" ) \ DPOINT_DEFN( SynchroniserStatus, SynchroniserStatus, "Status of the auto-synchroniser.", "" ) \ DPOINT_DEFN( SyncDeltaVStatus, OkFail, "Voltage status for auto-synchronisation.", "" ) \ DPOINT_DEFN( SyncSlipFreqStatus, OkFail, "Slip frequency status for auto-synchronisation.", "" ) \ DPOINT_DEFN( SyncAdvanceAngleStatus, OkFail, "Status of the advance angle for auto-synchronisation.", "" ) \ DPOINT_DEFN( SyncDeltaPhaseStatus, OkFail, "Status of the phase angle difference for auto-synchronisation.", "" ) \ DPOINT_DEFN( SigAutoSynchroniserInitiate, Signal, "Initiate auto-synchroniser.", "" ) \ DPOINT_DEFN( SigAutoSynchroniserInitiated, Signal, "Auto-synchronisation has been initiated.", "" ) \ DPOINT_DEFN( SigAutoSynchroniserRelease, Signal, "Auto-synchronisation has released to close the switch.", "" ) \ DPOINT_DEFN( SigSyncHealthCheck, Signal, "All values are within the configured range for auto-synchronisation.", "" ) \ DPOINT_DEFN( SigSyncTimedHealthCheck, Signal, "All values are within the configured ranges for the duration of pre-sync time for auto-synchronisation.", "" ) \ DPOINT_DEFN( SigSyncPhaseSeqMatch, Signal, "The phase sequence between Line and Bus matches for synchronisation.", "" ) \ DPOINT_DEFN( SyncAdvanceAngle, I32, "Calculated advance angle for synchronisation.", "" ) \ DPOINT_DEFN( MobileNetwork_DebugPortName, Str, "MobileNetwork debug port detected name", "" ) \ DPOINT_DEFN( SyncSlipFreq, I32, "Measured slip frequency for synchronisation.", "" ) \ DPOINT_DEFN( SyncMaxDeltaV, I32, "Maximum measured voltage difference between line and bus phases.", "" ) \ DPOINT_DEFN( SyncMaxDeltaPhase, I32, "Maximum measured phase angle difference between line and bus phases for synchronisation.", "" ) \ DPOINT_DEFN( CommsChEvGrp12, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 12 settings.", "" ) \ DPOINT_DEFN( CommsChEvGrp13, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 13 settings.", "" ) \ DPOINT_DEFN( SigPickupNps, Signal, "Pickup output of any NPS element activated", "" ) \ DPOINT_DEFN( FaultProfileDataAddrB, UI32, "This value provides the address of the Ph B FaultProfileData structure maintained by the protection process", "" ) \ DPOINT_DEFN( FaultProfileDataAddrC, UI32, "This value provides the address of the Ph C FaultProfileData structure maintained by the protection process", "" ) \ DPOINT_DEFN( SyncStateFlags, UI32, "Internal state flags that communicate the current state of the Synchronism engine from protection to other modules.", "" ) \ DPOINT_DEFN( DEPRECATED_PowerFlowDirection, Signal, "This datapoint is deprecated. Use CfgPowerFlowDirection (10600) instead.", "" ) \ DPOINT_DEFN( SigCtrlRestrictTripMode, Signal, "When “Restrict Trip Mode” is enabled:\r\n1.) The local Trip commands shall be blocked when the device is in remote mode.\r\n2.) Remote trip commands shall be blocked when the device is in local mode.", "" ) \ DPOINT_DEFN( s61850GseSubscr11, s61850GseSubscDefn, "IEC 61850: Goose Subscription 11 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr12, s61850GseSubscDefn, "IEC 61850: Goose Subscription 12 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr13, s61850GseSubscDefn, "IEC 61850: Goose Subscription 13 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr14, s61850GseSubscDefn, "IEC 61850: Goose Subscription 14 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr15, s61850GseSubscDefn, "IEC 61850: Goose Subscription 15 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr16, s61850GseSubscDefn, "IEC 61850: Goose Subscription 16 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr17, s61850GseSubscDefn, "IEC 61850: Goose Subscription 17 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr18, s61850GseSubscDefn, "IEC 61850: Goose Subscription 18 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr19, s61850GseSubscDefn, "IEC 61850: Goose Subscription 19 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850GseSubscr20, s61850GseSubscDefn, "IEC 61850: Goose Subscription 20 - Define Goose Control Block and DataSet", "" ) \ DPOINT_DEFN( s61850CIDFileCheck, UI32, "IEC 61850: CID File Change Check value (CRC)", "" ) \ DPOINT_DEFN( SyncFundFreq, UI32, "Fundamental frequency for Synchronism to determine the deviation from \"normal\".", "" ) \ DPOINT_DEFN( MobileNetworkPortName, Str, "Port name for mobile network (ttyUSBx).", "" ) \ DPOINT_DEFN( WlanAPSubnetMask, IpAddr, "subnet mask for wlan AP mode.", "" ) \ DPOINT_DEFN( WlanAPNetworkAuthentication, CommsWlanNetworkAuthentication, "Network authentication mode for wlan AP mode. ", "" ) \ DPOINT_DEFN( WlanAPDataEncryption, CommsWlanDataEncryption, "Data encryption mode for wlan AP mode.", "" ) \ DPOINT_DEFN( WlanAPNetworkKey, Str, "password for wlan AP mode. ", "" ) \ DPOINT_DEFN( ProtConfigCount, UI16, "Count number of times the protection configuration has been changed by the protCfg process.", "" ) \ DPOINT_DEFN( OpenReqA, CoReq, "Open request for phase A in single-triple configurations, or all phases for 3 phase recloser.", "" ) \ DPOINT_DEFN( OpenReqB, CoReq, "Open request for phase B in single-triple configurations", "" ) \ DPOINT_DEFN( OpenReqC, CoReq, "Open request for phase C in single-triple configurations", "" ) \ DPOINT_DEFN( CoLogOpen, CoReq, "Contains data to log open operation", "" ) \ DPOINT_DEFN( MobileNetworkSignalStrength, I8, "Mobile network signal strength reading", "" ) \ DPOINT_DEFN( WlanFWVersion, Str, "Wlan loaded FW version", "" ) \ DPOINT_DEFN( CmsSecurity, CmsSecurityLevel, "Defines the level of security to apply to CMS communications: Disabled, Authenticated, or Authenticated & Encrypted.", "" ) \ DPOINT_DEFN( SigAutoSynchroniserCancel, Signal, "Cancel auto-synchroniser.", "" ) \ DPOINT_DEFN( IEC61499CtrlStartStop, UI8, "Send WARM or STOP event", "" ) \ DPOINT_DEFN( SyncAutoAction, UI32, "Internal datapoint that is used to communicate between prot_config and prot whenever requests arrive to initiate or cancel auto-sync. Low bits are the event source, high bits are the action to take (initiate or cancel).", "" ) \ DPOINT_DEFN( FreqabcROC, I32, "Rate of change of F ABC in Hz/sec", "" ) \ DPOINT_DEFN( WT1, UI16, "Windowing 1 time for averaging In for high-precision SEF calculations. Number of cycles for the window.", "" ) \ DPOINT_DEFN( WT2, UI16, "Windowing 2 time for averaging In for high-precision SEF calculations. Number of inner windows as defined by WT1.", "" ) \ DPOINT_DEFN( A_WT1, UI32, "In value averaged over windowing time 1 (WT1) for high-precision SEF calculations.", "" ) \ DPOINT_DEFN( A_WT2, UI32, "In value averaged over windowing time 2 (WT2) for high-precision SEF calculations.", "" ) \ DPOINT_DEFN( AutoRecloseStatus, AutoRecloseStatus, "Auto Reclose Status. At time of writing (11/1/2016) this is for use by S61850. Refer to spec NOJA-191-0015.", "" ) \ DPOINT_DEFN( CloseReqAR, Signal, "Close request by AR. Originally created for use by IEC 61850 protocol. Refer to spec NOJA-191-0015.", "" ) \ DPOINT_DEFN( SigCtrlOV3On, Signal, "OV3 element is switched on", "" ) \ DPOINT_DEFN( s61850EnableCommslog, EnDis, "s61850 enable commslog", "" ) \ DPOINT_DEFN( PanelButtLogicVAR1, EnDis, "HMI VAR1 fast key control", "" ) \ DPOINT_DEFN( PanelButtLogicVAR2, EnDis, "HMI VAR2 fast key control", "" ) \ DPOINT_DEFN( SigHighPrecisionSEF, Signal, "When set, this signal indicates that the OSM type has CT's capable of high-precision SEF reporting.", "" ) \ DPOINT_DEFN( MeasVoltU0RST, UI32, "Measurement Voltage: U0 RST", "" ) \ DPOINT_DEFN( MeasVoltUnRST, UI32, "Measurement Voltage: Un RST", "" ) \ DPOINT_DEFN( MeasVoltU1RST, UI32, "Measurement Voltage: U1 RST", "" ) \ DPOINT_DEFN( MeasVoltU2RST, UI32, "Measurement Voltage: U2 RST", "" ) \ DPOINT_DEFN( G1_Yn_TDtMin, UI32, "Grp1 Admittance protection (Yn) DT min tripping time in ms", "" ) \ DPOINT_DEFN( G1_Yn_OperationalMode, YnOperationalMode, "Grp1 Admittance protection (Yn) operational mode", "" ) \ DPOINT_DEFN( G1_Yn_DirectionalMode, YnDirectionalMode, "Grp1 Admittance protection (Yn) directional mode", "" ) \ DPOINT_DEFN( G1_Yn_Um, UI32, "Grp1 Admittance protection (Yn) voltage multiplier for Un", "" ) \ DPOINT_DEFN( G1_Yn_Ioper, UI32, "Grp1 Admittance protection (Yn) minimum In for operation", "" ) \ DPOINT_DEFN( G1_Yn_TDtRes, UI32, "Grp1 Admittance protection (Yn) fault reset time", "" ) \ DPOINT_DEFN( G1_Yn_FwdSusceptance, I32, "Grp1 Admittance protection (Yn) forward susceptance pickup level", "" ) \ DPOINT_DEFN( G1_Yn_RevSusceptance, I32, "Grp1 Admittance protection (Yn) reverse susceptance pickup level", "" ) \ DPOINT_DEFN( G1_Yn_FwdConductance, I32, "Grp1 Admittance protection (Yn) forward conductance pickup level", "" ) \ DPOINT_DEFN( G1_Yn_RevConductance, I32, "Grp1 Admittance protection (Yn) reverse conductance pickup level", "" ) \ DPOINT_DEFN( G1_Yn_Tr1, TripMode, "Grp1 Admittance protection (Yn) mode for trip 1", "" ) \ DPOINT_DEFN( G1_Yn_Tr2, TripMode, "Grp1 Admittance protection (Yn) mode for trip 2", "" ) \ DPOINT_DEFN( G1_Yn_Tr3, TripMode, "Grp1 Admittance protection (Yn) mode for trip 3", "" ) \ DPOINT_DEFN( G1_Yn_Tr4, TripMode, "Grp1 Admittance protection (Yn) mode for trip 4", "" ) \ DPOINT_DEFN( G1_OC1F_TccName, Str, "Grp1 Name of OC1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_OC2F_TccName, Str, "Grp1 Name of OC2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_OC1R_TccName, Str, "Grp1 Name of OC1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_OC2R_TccName, Str, "Grp1 Name of OC2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_NPS1F_TccName, Str, "Grp1 Name of NPS1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_NPS2F_TccName, Str, "Grp1 Name of NPS2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_NPS1R_TccName, Str, "Grp1 Name of NPS1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_NPS2R_TccName, Str, "Grp1 Name of NPS2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_EF1F_TccName, Str, "Grp1 Name of EF1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_EF2F_TccName, Str, "Grp1 Name of EF2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_EF1R_TccName, Str, "Grp1 Name of EF1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_EF2R_TccName, Str, "Grp1 Name of EF2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_OCLL1_TccName, Str, "Grp1 Name of OCLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_OCLL2_TccName, Str, "Grp1 Name of OCLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_NPSLL1_TccName, Str, "Grp1 Name of NPSLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_NPSLL2_TccName, Str, "Grp1 Name of NPSLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_EFLL1_TccName, Str, "Grp1 Name of EFLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_EFLL2_TccName, Str, "Grp1 Name of EFLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G1_DE_EF_AdvPolarDet, EnDis, "Grp1 Enable/disable advanced polar detection for EF neutral direction.", "" ) \ DPOINT_DEFN( G1_DE_EF_MinNVD, UI32, "Grp1 Minimum voltage level for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_EF_MaxFwdAngle, I32, "Grp1 Maximum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_EF_MinFwdAngle, I32, "Grp1 Minimum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_EF_MaxRevAngle, I32, "Grp1 Maximum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_EF_MinRevAngle, I32, "Grp1 Minimum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_SEF_AdvPolarDet, EnDis, "Grp1 Enable/disable advanced polar detection for SEF neutral direction.", "" ) \ DPOINT_DEFN( G1_DE_SEF_MinNVD, UI32, "Grp1 Minimum voltage level for SEF neutral advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_SEF_MaxFwdAngle, I32, "Grp1 Maximum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_SEF_MinFwdAngle, I32, "Grp1 Minimum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_SEF_MaxRevAngle, I32, "Grp1 Maximum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_SEF_MinRevAngle, I32, "Grp1 Minimum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_DE_SEF_Polarisation, NeutralPolarisation, "Grp1 Polarisation type for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G1_Hrm_IndA_NameExt, HrmIndividualExt, "Grp1 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G1_Hrm_IndB_NameExt, HrmIndividualExt, "Grp1 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G1_Hrm_IndC_NameExt, HrmIndividualExt, "Grp1 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G1_Hrm_IndD_NameExt, HrmIndividualExt, "Grp1 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G1_Hrm_IndE_NameExt, HrmIndividualExt, "Grp1 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G1_ROCOF_Trm, TripModeDLA, "Grp1 ROCOF trip mode", "" ) \ DPOINT_DEFN( G1_ROCOF_Pickup, UI32, "Grp1 ROCOF pickup value in Hz/s", "" ) \ DPOINT_DEFN( G1_ROCOF_TDtMin, UI32, "Grp1 ROCOF tripping time", "" ) \ DPOINT_DEFN( G1_ROCOF_TDtRes, UI32, "Grp1 ROCOF DT reset time", "" ) \ DPOINT_DEFN( G1_VVS_Trm, TripModeDLA, "Grp1 VVS trip mode", "" ) \ DPOINT_DEFN( G1_VVS_Pickup, UI32, "Grp1 VVS pickup angle", "" ) \ DPOINT_DEFN( G1_VVS_TDtMin, UI32, "Grp1 VVS DT tripping time", "" ) \ DPOINT_DEFN( G1_VVS_TDtRes, UI32, "Grp1 VVS DT reset time", "" ) \ DPOINT_DEFN( G1_PDOP_Trm, TripModeDLA, "Grp1 PDOP trip mode", "" ) \ DPOINT_DEFN( G1_PDOP_Pickup, UI32, "Grp1 Pickup value for directional overpower protection (kVA).", "" ) \ DPOINT_DEFN( G1_PDOP_Angle, I32, "Grp1 Pickup angle for directional overpower protection.", "" ) \ DPOINT_DEFN( G1_PDOP_TDtMin, UI32, "Grp1 PDOP tripping time", "" ) \ DPOINT_DEFN( G1_PDOP_TDtRes, UI32, "Grp1 PDOP reset time", "" ) \ DPOINT_DEFN( G1_PDUP_Trm, TripModeDLA, "Grp1 PDUP trip mode", "" ) \ DPOINT_DEFN( G1_PDUP_Pickup, UI32, "Grp1 PDUP pickup value in kVA", "" ) \ DPOINT_DEFN( G1_PDUP_Angle, I32, "Grp1 PDUP pickup angle", "" ) \ DPOINT_DEFN( G1_PDUP_TDtMin, UI32, "Grp1 PDUP tripping time", "" ) \ DPOINT_DEFN( G1_PDUP_TDtRes, UI32, "Grp1 PDUP reset time", "" ) \ DPOINT_DEFN( G1_PDUP_TDtDis, UI32, "Grp1 PDUP disable time", "" ) \ DPOINT_DEFN( G2_Yn_TDtMin, UI32, "Grp2 Admittance protection (Yn) DT min tripping time in ms", "" ) \ DPOINT_DEFN( G2_Yn_OperationalMode, YnOperationalMode, "Grp2 Admittance protection (Yn) operational mode", "" ) \ DPOINT_DEFN( G2_Yn_DirectionalMode, YnDirectionalMode, "Grp2 Admittance protection (Yn) directional mode", "" ) \ DPOINT_DEFN( G2_Yn_Um, UI32, "Grp2 Admittance protection (Yn) voltage multiplier for Un", "" ) \ DPOINT_DEFN( G2_Yn_Ioper, UI32, "Grp2 Admittance protection (Yn) minimum In for operation", "" ) \ DPOINT_DEFN( G2_Yn_TDtRes, UI32, "Grp2 Admittance protection (Yn) fault reset time", "" ) \ DPOINT_DEFN( G2_Yn_FwdSusceptance, I32, "Grp2 Admittance protection (Yn) forward susceptance pickup level", "" ) \ DPOINT_DEFN( G2_Yn_RevSusceptance, I32, "Grp2 Admittance protection (Yn) reverse susceptance pickup level", "" ) \ DPOINT_DEFN( G2_Yn_FwdConductance, I32, "Grp2 Admittance protection (Yn) forward conductance pickup level", "" ) \ DPOINT_DEFN( G2_Yn_RevConductance, I32, "Grp2 Admittance protection (Yn) reverse conductance pickup level", "" ) \ DPOINT_DEFN( G2_Yn_Tr1, TripMode, "Grp2 Admittance protection (Yn) mode for trip 1", "" ) \ DPOINT_DEFN( G2_Yn_Tr2, TripMode, "Grp2 Admittance protection (Yn) mode for trip 2", "" ) \ DPOINT_DEFN( G2_Yn_Tr3, TripMode, "Grp2 Admittance protection (Yn) mode for trip 3", "" ) \ DPOINT_DEFN( G2_Yn_Tr4, TripMode, "Grp2 Admittance protection (Yn) mode for trip 4", "" ) \ DPOINT_DEFN( G2_OC1F_TccName, Str, "Grp2 Name of OC1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_OC2F_TccName, Str, "Grp2 Name of OC2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_OC1R_TccName, Str, "Grp2 Name of OC1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_OC2R_TccName, Str, "Grp2 Name of OC2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_NPS1F_TccName, Str, "Grp2 Name of NPS1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_NPS2F_TccName, Str, "Grp2 Name of NPS2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_NPS1R_TccName, Str, "Grp2 Name of NPS1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_NPS2R_TccName, Str, "Grp2 Name of NPS2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_EF1F_TccName, Str, "Grp2 Name of EF1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_EF2F_TccName, Str, "Grp2 Name of EF2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_EF1R_TccName, Str, "Grp2 Name of EF1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_EF2R_TccName, Str, "Grp2 Name of EF2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_OCLL1_TccName, Str, "Grp2 Name of OCLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_OCLL2_TccName, Str, "Grp2 Name of OCLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_NPSLL1_TccName, Str, "Grp2 Name of NPSLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_NPSLL2_TccName, Str, "Grp2 Name of NPSLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_EFLL1_TccName, Str, "Grp2 Name of EFLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_EFLL2_TccName, Str, "Grp2 Name of EFLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G2_DE_EF_AdvPolarDet, EnDis, "Grp2 Enable/disable advanced polar detection for EF neutral direction.", "" ) \ DPOINT_DEFN( G2_DE_EF_MinNVD, UI32, "Grp2 Minimum voltage level for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_EF_MaxFwdAngle, I32, "Grp2 Maximum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_EF_MinFwdAngle, I32, "Grp2 Minimum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_EF_MaxRevAngle, I32, "Grp2 Maximum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_EF_MinRevAngle, I32, "Grp2 Minimum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_SEF_AdvPolarDet, EnDis, "Grp2 Enable/disable advanced polar detection for SEF neutral direction.", "" ) \ DPOINT_DEFN( G2_DE_SEF_MinNVD, UI32, "Grp2 Minimum voltage level for SEF neutral advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_SEF_MaxFwdAngle, I32, "Grp2 Maximum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_SEF_MinFwdAngle, I32, "Grp2 Minimum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_SEF_MaxRevAngle, I32, "Grp2 Maximum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_SEF_MinRevAngle, I32, "Grp2 Minimum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_DE_SEF_Polarisation, NeutralPolarisation, "Grp2 Polarisation type for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G2_Hrm_IndA_NameExt, HrmIndividualExt, "Grp2 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G2_Hrm_IndB_NameExt, HrmIndividualExt, "Grp2 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G2_Hrm_IndC_NameExt, HrmIndividualExt, "Grp2 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G2_Hrm_IndD_NameExt, HrmIndividualExt, "Grp2 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G2_Hrm_IndE_NameExt, HrmIndividualExt, "Grp2 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G2_ROCOF_Trm, TripModeDLA, "Grp2 ROCOF trip mode", "" ) \ DPOINT_DEFN( G2_ROCOF_Pickup, UI32, "Grp2 ROCOF pickup value in Hz/s", "" ) \ DPOINT_DEFN( G2_ROCOF_TDtMin, UI32, "Grp2 ROCOF tripping time", "" ) \ DPOINT_DEFN( G2_ROCOF_TDtRes, UI32, "Grp2 ROCOF DT reset time", "" ) \ DPOINT_DEFN( G2_VVS_Trm, TripModeDLA, "Grp2 VVS trip mode", "" ) \ DPOINT_DEFN( G2_VVS_Pickup, UI32, "Grp2 VVS pickup angle", "" ) \ DPOINT_DEFN( G2_VVS_TDtMin, UI32, "Grp2 VVS DT tripping time", "" ) \ DPOINT_DEFN( G2_VVS_TDtRes, UI32, "Grp2 VVS DT reset time", "" ) \ DPOINT_DEFN( G2_PDOP_Trm, TripModeDLA, "Grp2 PDOP trip mode", "" ) \ DPOINT_DEFN( G2_PDOP_Pickup, UI32, "Grp2 Pickup value for directional overpower protection (kVA).", "" ) \ DPOINT_DEFN( G2_PDOP_Angle, I32, "Grp2 Pickup angle for directional overpower protection.", "" ) \ DPOINT_DEFN( G2_PDOP_TDtMin, UI32, "Grp2 PDOP tripping time", "" ) \ DPOINT_DEFN( G2_PDOP_TDtRes, UI32, "Grp2 PDOP reset time", "" ) \ DPOINT_DEFN( G2_PDUP_Trm, TripModeDLA, "Grp2 PDUP trip mode", "" ) \ DPOINT_DEFN( G2_PDUP_Pickup, UI32, "Grp2 PDUP pickup value in kVA", "" ) \ DPOINT_DEFN( G2_PDUP_Angle, I32, "Grp2 PDUP pickup angle", "" ) \ DPOINT_DEFN( G2_PDUP_TDtMin, UI32, "Grp2 PDUP tripping time", "" ) \ DPOINT_DEFN( G2_PDUP_TDtRes, UI32, "Grp2 PDUP reset time", "" ) \ DPOINT_DEFN( G2_PDUP_TDtDis, UI32, "Grp2 PDUP disable time", "" ) \ DPOINT_DEFN( G3_Yn_TDtMin, UI32, "Grp3 Admittance protection (Yn) DT min tripping time in ms", "" ) \ DPOINT_DEFN( G3_Yn_OperationalMode, YnOperationalMode, "Grp3 Admittance protection (Yn) operational mode", "" ) \ DPOINT_DEFN( G3_Yn_DirectionalMode, YnDirectionalMode, "Grp3 Admittance protection (Yn) directional mode", "" ) \ DPOINT_DEFN( G3_Yn_Um, UI32, "Grp3 Admittance protection (Yn) voltage multiplier for Un", "" ) \ DPOINT_DEFN( G3_Yn_Ioper, UI32, "Grp3 Admittance protection (Yn) minimum In for operation", "" ) \ DPOINT_DEFN( G3_Yn_TDtRes, UI32, "Grp3 Admittance protection (Yn) fault reset time", "" ) \ DPOINT_DEFN( G3_Yn_FwdSusceptance, I32, "Grp3 Admittance protection (Yn) forward susceptance pickup level", "" ) \ DPOINT_DEFN( G3_Yn_RevSusceptance, I32, "Grp3 Admittance protection (Yn) reverse susceptance pickup level", "" ) \ DPOINT_DEFN( G3_Yn_FwdConductance, I32, "Grp3 Admittance protection (Yn) forward conductance pickup level", "" ) \ DPOINT_DEFN( G3_Yn_RevConductance, I32, "Grp3 Admittance protection (Yn) reverse conductance pickup level", "" ) \ DPOINT_DEFN( G3_Yn_Tr1, TripMode, "Grp3 Admittance protection (Yn) mode for trip 1", "" ) \ DPOINT_DEFN( G3_Yn_Tr2, TripMode, "Grp3 Admittance protection (Yn) mode for trip 2", "" ) \ DPOINT_DEFN( G3_Yn_Tr3, TripMode, "Grp3 Admittance protection (Yn) mode for trip 3", "" ) \ DPOINT_DEFN( G3_Yn_Tr4, TripMode, "Grp3 Admittance protection (Yn) mode for trip 4", "" ) \ DPOINT_DEFN( G3_OC1F_TccName, Str, "Grp3 Name of OC1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_OC2F_TccName, Str, "Grp3 Name of OC2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_OC1R_TccName, Str, "Grp3 Name of OC1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_OC2R_TccName, Str, "Grp3 Name of OC2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_NPS1F_TccName, Str, "Grp3 Name of NPS1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_NPS2F_TccName, Str, "Grp3 Name of NPS2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_NPS1R_TccName, Str, "Grp3 Name of NPS1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_NPS2R_TccName, Str, "Grp3 Name of NPS2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_EF1F_TccName, Str, "Grp3 Name of EF1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_EF2F_TccName, Str, "Grp3 Name of EF2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_EF1R_TccName, Str, "Grp3 Name of EF1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_EF2R_TccName, Str, "Grp3 Name of EF2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_OCLL1_TccName, Str, "Grp3 Name of OCLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_OCLL2_TccName, Str, "Grp3 Name of OCLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_NPSLL1_TccName, Str, "Grp3 Name of NPSLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_NPSLL2_TccName, Str, "Grp3 Name of NPSLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_EFLL1_TccName, Str, "Grp3 Name of EFLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_EFLL2_TccName, Str, "Grp3 Name of EFLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G3_DE_EF_AdvPolarDet, EnDis, "Grp3 Enable/disable advanced polar detection for EF neutral direction.", "" ) \ DPOINT_DEFN( G3_DE_EF_MinNVD, UI32, "Grp3 Minimum voltage level for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_EF_MaxFwdAngle, I32, "Grp3 Maximum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_EF_MinFwdAngle, I32, "Grp3 Minimum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_EF_MaxRevAngle, I32, "Grp3 Maximum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_EF_MinRevAngle, I32, "Grp3 Minimum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_SEF_AdvPolarDet, EnDis, "Grp3 Enable/disable advanced polar detection for SEF neutral direction.", "" ) \ DPOINT_DEFN( G3_DE_SEF_MinNVD, UI32, "Grp3 Minimum voltage level for SEF neutral advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_SEF_MaxFwdAngle, I32, "Grp3 Maximum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_SEF_MinFwdAngle, I32, "Grp3 Minimum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_SEF_MaxRevAngle, I32, "Grp3 Maximum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_SEF_MinRevAngle, I32, "Grp3 Minimum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_DE_SEF_Polarisation, NeutralPolarisation, "Grp3 Polarisation type for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G3_Hrm_IndA_NameExt, HrmIndividualExt, "Grp3 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G3_Hrm_IndB_NameExt, HrmIndividualExt, "Grp3 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G3_Hrm_IndC_NameExt, HrmIndividualExt, "Grp3 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G3_Hrm_IndD_NameExt, HrmIndividualExt, "Grp3 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G3_Hrm_IndE_NameExt, HrmIndividualExt, "Grp3 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G3_ROCOF_Trm, TripModeDLA, "Grp3 ROCOF trip mode", "" ) \ DPOINT_DEFN( G3_ROCOF_Pickup, UI32, "Grp3 ROCOF pickup value in Hz/s", "" ) \ DPOINT_DEFN( G3_ROCOF_TDtMin, UI32, "Grp3 ROCOF tripping time", "" ) \ DPOINT_DEFN( G3_ROCOF_TDtRes, UI32, "Grp3 ROCOF DT reset time", "" ) \ DPOINT_DEFN( G3_VVS_Trm, TripModeDLA, "Grp3 VVS trip mode", "" ) \ DPOINT_DEFN( G3_VVS_Pickup, UI32, "Grp3 VVS pickup angle", "" ) \ DPOINT_DEFN( G3_VVS_TDtMin, UI32, "Grp3 VVS DT tripping time", "" ) \ DPOINT_DEFN( G3_VVS_TDtRes, UI32, "Grp3 VVS DT reset time", "" ) \ DPOINT_DEFN( G3_PDOP_Trm, TripModeDLA, "Grp3 PDOP trip mode", "" ) \ DPOINT_DEFN( G3_PDOP_Pickup, UI32, "Grp3 Pickup value for directional overpower protection (kVA).", "" ) \ DPOINT_DEFN( G3_PDOP_Angle, I32, "Grp3 Pickup angle for directional overpower protection.", "" ) \ DPOINT_DEFN( G3_PDOP_TDtMin, UI32, "Grp3 PDOP tripping time", "" ) \ DPOINT_DEFN( G3_PDOP_TDtRes, UI32, "Grp3 PDOP reset time", "" ) \ DPOINT_DEFN( G3_PDUP_Trm, TripModeDLA, "Grp3 PDUP trip mode", "" ) \ DPOINT_DEFN( G3_PDUP_Pickup, UI32, "Grp3 PDUP pickup value in kVA", "" ) \ DPOINT_DEFN( G3_PDUP_Angle, I32, "Grp3 PDUP pickup angle", "" ) \ DPOINT_DEFN( G3_PDUP_TDtMin, UI32, "Grp3 PDUP tripping time", "" ) \ DPOINT_DEFN( G3_PDUP_TDtRes, UI32, "Grp3 PDUP reset time", "" ) \ DPOINT_DEFN( G3_PDUP_TDtDis, UI32, "Grp3 PDUP disable time", "" ) \ DPOINT_DEFN( G4_Yn_TDtMin, UI32, "Grp4 Admittance protection (Yn) DT min tripping time in ms", "" ) \ DPOINT_DEFN( G4_Yn_OperationalMode, YnOperationalMode, "Grp4 Admittance protection (Yn) operational mode", "" ) \ DPOINT_DEFN( G4_Yn_DirectionalMode, YnDirectionalMode, "Grp4 Admittance protection (Yn) directional mode", "" ) \ DPOINT_DEFN( G4_Yn_Um, UI32, "Grp4 Admittance protection (Yn) voltage multiplier for Un", "" ) \ DPOINT_DEFN( G4_Yn_Ioper, UI32, "Grp4 Admittance protection (Yn) minimum In for operation", "" ) \ DPOINT_DEFN( G4_Yn_TDtRes, UI32, "Grp4 Admittance protection (Yn) fault reset time", "" ) \ DPOINT_DEFN( G4_Yn_FwdSusceptance, I32, "Grp4 Admittance protection (Yn) forward susceptance pickup level", "" ) \ DPOINT_DEFN( G4_Yn_RevSusceptance, I32, "Grp4 Admittance protection (Yn) reverse susceptance pickup level", "" ) \ DPOINT_DEFN( G4_Yn_FwdConductance, I32, "Grp4 Admittance protection (Yn) forward conductance pickup level", "" ) \ DPOINT_DEFN( G4_Yn_RevConductance, I32, "Grp4 Admittance protection (Yn) reverse conductance pickup level", "" ) \ DPOINT_DEFN( G4_Yn_Tr1, TripMode, "Grp4 Admittance protection (Yn) mode for trip 1", "" ) \ DPOINT_DEFN( G4_Yn_Tr2, TripMode, "Grp4 Admittance protection (Yn) mode for trip 2", "" ) \ DPOINT_DEFN( G4_Yn_Tr3, TripMode, "Grp4 Admittance protection (Yn) mode for trip 3", "" ) \ DPOINT_DEFN( G4_Yn_Tr4, TripMode, "Grp4 Admittance protection (Yn) mode for trip 4", "" ) \ DPOINT_DEFN( G4_OC1F_TccName, Str, "Grp4 Name of OC1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_OC2F_TccName, Str, "Grp4 Name of OC2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_OC1R_TccName, Str, "Grp4 Name of OC1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_OC2R_TccName, Str, "Grp4 Name of OC2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_NPS1F_TccName, Str, "Grp4 Name of NPS1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_NPS2F_TccName, Str, "Grp4 Name of NPS2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_NPS1R_TccName, Str, "Grp4 Name of NPS1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_NPS2R_TccName, Str, "Grp4 Name of NPS2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_EF1F_TccName, Str, "Grp4 Name of EF1+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_EF2F_TccName, Str, "Grp4 Name of EF2+ TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_EF1R_TccName, Str, "Grp4 Name of EF1- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_EF2R_TccName, Str, "Grp4 Name of EF2- TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_OCLL1_TccName, Str, "Grp4 Name of OCLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_OCLL2_TccName, Str, "Grp4 Name of OCLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_NPSLL1_TccName, Str, "Grp4 Name of NPSLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_NPSLL2_TccName, Str, "Grp4 Name of NPSLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_EFLL1_TccName, Str, "Grp4 Name of EFLL1 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_EFLL2_TccName, Str, "Grp4 Name of EFLL2 TCC type. Volatile point populated at runtime, appears in change log as a fake entry.", "" ) \ DPOINT_DEFN( G4_DE_EF_AdvPolarDet, EnDis, "Grp4 Enable/disable advanced polar detection for EF neutral direction.", "" ) \ DPOINT_DEFN( G4_DE_EF_MinNVD, UI32, "Grp4 Minimum voltage level for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_EF_MaxFwdAngle, I32, "Grp4 Maximum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_EF_MinFwdAngle, I32, "Grp4 Minimum forward angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_EF_MaxRevAngle, I32, "Grp4 Maximum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_EF_MinRevAngle, I32, "Grp4 Minimum reverse angle for neutral EF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_SEF_AdvPolarDet, EnDis, "Grp4 Enable/disable advanced polar detection for SEF neutral direction.", "" ) \ DPOINT_DEFN( G4_DE_SEF_MinNVD, UI32, "Grp4 Minimum voltage level for SEF neutral advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_SEF_MaxFwdAngle, I32, "Grp4 Maximum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_SEF_MinFwdAngle, I32, "Grp4 Minimum forward angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_SEF_MaxRevAngle, I32, "Grp4 Maximum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_SEF_MinRevAngle, I32, "Grp4 Minimum reverse angle for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_DE_SEF_Polarisation, NeutralPolarisation, "Grp4 Polarisation type for neutral SEF advanced polar direction detection.", "" ) \ DPOINT_DEFN( G4_Hrm_IndA_NameExt, HrmIndividualExt, "Grp4 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G4_Hrm_IndB_NameExt, HrmIndividualExt, "Grp4 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G4_Hrm_IndC_NameExt, HrmIndividualExt, "Grp4 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G4_Hrm_IndD_NameExt, HrmIndividualExt, "Grp4 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G4_Hrm_IndE_NameExt, HrmIndividualExt, "Grp4 Name of the harmonic to select for this protection element (RC20)", "" ) \ DPOINT_DEFN( G4_ROCOF_Trm, TripModeDLA, "Grp4 ROCOF trip mode", "" ) \ DPOINT_DEFN( G4_ROCOF_Pickup, UI32, "Grp4 ROCOF pickup value in Hz/s", "" ) \ DPOINT_DEFN( G4_ROCOF_TDtMin, UI32, "Grp4 ROCOF tripping time", "" ) \ DPOINT_DEFN( G4_ROCOF_TDtRes, UI32, "Grp4 ROCOF DT reset time", "" ) \ DPOINT_DEFN( G4_VVS_Trm, TripModeDLA, "Grp4 VVS trip mode", "" ) \ DPOINT_DEFN( G4_VVS_Pickup, UI32, "Grp4 VVS pickup angle", "" ) \ DPOINT_DEFN( G4_VVS_TDtMin, UI32, "Grp4 VVS DT tripping time", "" ) \ DPOINT_DEFN( G4_VVS_TDtRes, UI32, "Grp4 VVS DT reset time", "" ) \ DPOINT_DEFN( G4_PDOP_Trm, TripModeDLA, "Grp4 PDOP trip mode", "" ) \ DPOINT_DEFN( G4_PDOP_Pickup, UI32, "Grp4 Pickup value for directional overpower protection (kVA).", "" ) \ DPOINT_DEFN( G4_PDOP_Angle, I32, "Grp4 Pickup angle for directional overpower protection.", "" ) \ DPOINT_DEFN( G4_PDOP_TDtMin, UI32, "Grp4 PDOP tripping time", "" ) \ DPOINT_DEFN( G4_PDOP_TDtRes, UI32, "Grp4 PDOP reset time", "" ) \ DPOINT_DEFN( G4_PDUP_Trm, TripModeDLA, "Grp4 PDUP trip mode", "" ) \ DPOINT_DEFN( G4_PDUP_Pickup, UI32, "Grp4 PDUP pickup value in kVA", "" ) \ DPOINT_DEFN( G4_PDUP_Angle, I32, "Grp4 PDUP pickup angle", "" ) \ DPOINT_DEFN( G4_PDUP_TDtMin, UI32, "Grp4 PDUP tripping time", "" ) \ DPOINT_DEFN( G4_PDUP_TDtRes, UI32, "Grp4 PDUP reset time", "" ) \ DPOINT_DEFN( G4_PDUP_TDtDis, UI32, "Grp4 PDUP disable time", "" ) \ DPOINT_DEFN( SigCtrlYnOn, Signal, "Admittance protection (Yn) is turned on", "" ) \ DPOINT_DEFN( SigAlarmYn, Signal, "Alarm ouput of the Yn element activated", "" ) \ DPOINT_DEFN( SigPickupYn, Signal, "Pickup output of admittance protection (Yn)", "" ) \ DPOINT_DEFN( SigOpenYn, Signal, "Open due to admittance protection (Yn)", "" ) \ DPOINT_DEFN( CntrYnTrips, I32, "Fault counter for Yn trips", "" ) \ DPOINT_DEFN( TripMaxGn, I32, "Maximum Gn (conductance) at the time of the most recent trip.", "" ) \ DPOINT_DEFN( TripMaxBn, I32, "Maximum Bn (susceptance) at the time of the most recent trip.", "" ) \ DPOINT_DEFN( TripMinGn, I32, "Minimum Gn (conductance) at the time of the most recent trip.", "" ) \ DPOINT_DEFN( TripMinBn, I32, "Minimum Bn (susceptance) at the time of the most recent trip.", "" ) \ DPOINT_DEFN( MeasGn, I32, "Measured value of Gn (conductance) for admittance protection (Yn)", "" ) \ DPOINT_DEFN( MeasBn, I32, "Measured value of Bn (susceptance) for admittance protection (Yn)", "" ) \ DPOINT_DEFN( s61850GooseOpMode, LocalRemote, "This is separate to the ScadaOpMode because GOOSE can co-exist with another protocol on a different port", "" ) \ DPOINT_DEFN( UsbDiscUpdateDirFiles1024, StrArray1024, "Holds the list of files found in the USB updates directory, whether valid or not. Created to replace the usage of UsbDiscUpdateDirFiles in order to allow more files in the list", "" ) \ DPOINT_DEFN( UsbDiscUpdateVersions1024, StrArray1024, "Version strings for all updates found on the USB disc. Set by usbcopy when a disc is inserted.", "" ) \ DPOINT_DEFN( UsbDiscInstallVersions1024, StrArray1024, "Version strings for all installation files found on the USB disc. Includes those that are downgrades or same as installed versions. Set by usbcopy when a disc is inserted.", "" ) \ DPOINT_DEFN( s61850CommsLogMaxSize, UI8, "s61850 comms log maximum file size", "" ) \ DPOINT_DEFN( RelayModelDisplayName, RelayModelName, "Relay model names for display : RC10, RC15 ...", "" ) \ DPOINT_DEFN( SwitchStateOwner, DbClientId, "Identifies which process currently owns the state of the switch state in signal trees like SigOpen, SigClosed, etc.", "" ) \ DPOINT_DEFN( SwitchStateOwnerPtr, UI32, "Points to the signal list that was last set on the SigOpen/SigClose trees by the SwitchStateOwner. This is a pointer into shared memory.", "" ) \ DPOINT_DEFN( ModemConnectState, ModemConnectStatus, "Modem Connection state", "" ) \ DPOINT_DEFN( ModemRetryWaitTime, UI32, "Waiting time for next modem retry", "" ) \ DPOINT_DEFN( s61850RqstEnableMMS, UI8, "The 61850 MMS should be enabled when the process is able.", "" ) \ DPOINT_DEFN( s61850RqstEnableGoosePub, UI8, "The 61850 GOOSE publisher should be enabled when the process is able.", "" ) \ DPOINT_DEFN( s61850CIDFileUpdateStatus, UI8, "Indicator of state/status for CID file update", "" ) \ DPOINT_DEFN( SigAlarmI2I1, Signal, "Alarm output of I2/I1 activated", "" ) \ DPOINT_DEFN( SigPickupI2I1, Signal, "Pickup output of I2/I1 activated", "" ) \ DPOINT_DEFN( SigOpenI2I1, Signal, "Open due to I2/I1 tripping", "" ) \ DPOINT_DEFN( CntrI2I1Trips, I32, "Fault Counter of I2/I1 Trips", "" ) \ DPOINT_DEFN( TripMaxI2I1, UI32, "Maximum I2/I1 between the Open and Trip", "" ) \ DPOINT_DEFN( MeasI2I1, UI32, "Measurement: I2/I1", "" ) \ DPOINT_DEFN( MobileNetworkModemFWNumber, Str, "MobileNetwork Modem Firmware Number", "" ) \ DPOINT_DEFN( WlanMACAddr, Str, "Wlan port MAC address", "" ) \ DPOINT_DEFN( Diagnostic1, UI32, "General use point for diagnostics in internal developer test builds. Should not be used in production code.", "" ) \ DPOINT_DEFN( Diagnostic2, UI32, "General use point for diagnostics in internal developer test builds. Should not be used in production code.", "" ) \ DPOINT_DEFN( Diagnostic3, UI32, "General use point for diagnostics in internal developer test builds. Should not be used in production code.", "" ) \ DPOINT_DEFN( Diagnostic4, UI32, "General use point for diagnostics in internal developer test builds. Should not be used in production code.", "" ) \ DPOINT_DEFN( MeasCurrIn_mA, UI32, "Measurement Current: In High Precision SEF", "" ) \ DPOINT_DEFN( InTrip_mA, UI32, "Trip current - Neutral High Precision SEF", "" ) \ DPOINT_DEFN( TripMaxCurrIn_mA, UI32, "Max neutral current at the time of the most recent trip (high precision SEF)", "" ) \ DPOINT_DEFN( UPSMobileNetworkTime, UI16, "UPS mobile network time", "" ) \ DPOINT_DEFN( UPSWlanTime, UI16, "UPS Wlan time", "" ) \ DPOINT_DEFN( UPSMobileNetworkResetTime, UI16, "UPS mobile network reset time", "" ) \ DPOINT_DEFN( UPSWlanResetTime, UI16, "UPS wlan reset time", "" ) \ DPOINT_DEFN( CmdResetFaultTargets, Bool, "Internal point used to communicate the reset fault targets state between Relay processes. CMS should use the ResetBinaryFaultTargets signal instead.", "" ) \ DPOINT_DEFN( CfgPowerFlowDirection, PowerFlowDirection, "Power Flow Direction, RST to ABC or ABC to RST", "" ) \ DPOINT_DEFN( LLBlocksClose, OnOff, "Live line blocks all close operations when this setting is enabled.", "" ) \ DPOINT_DEFN( SyncDiagnostics, EnDis, "Internal datapoint that enables extra diagnostics for the Synchronism feature.", "" ) \ DPOINT_DEFN( CanPscHeatsinkTemp, I16, "Temperature on the main PSC heatsink in Celcius.", "" ) \ DPOINT_DEFN( CanPscModuleVoltage, UI16, "Input voltage to the PSC", "" ) \ DPOINT_DEFN( WlanTxPower, WLanTxPower, "Wlan Tx power selection: 0-low, 1-medium, 2-high.", "" ) \ DPOINT_DEFN( SigClosedAutoSync, Signal, "Closed due to auto-synchroniser", "" ) \ DPOINT_DEFN( LLAllowClose, OnOff, "Live line blocks all close operations when this setting is off.", "" ) \ DPOINT_DEFN( WlanConnectState, WlanConnectStatus, "wlan connect state during bringing up", "" ) \ DPOINT_DEFN( SigSyncDeltaVStatus, Signal, "Voltage is synchronised for Synchronism", "" ) \ DPOINT_DEFN( SigSyncSlipFreqStatus, Signal, "Frequency is synchronised for Sync-Check", "" ) \ DPOINT_DEFN( SigSyncDeltaPhaseStatus, Signal, "Phase angle is synchronised for Sync-Check", "" ) \ DPOINT_DEFN( CmsAuxConfigMaxFrameSizeTx, UI32, "Configuration option that specifies the maximum size of all frames sent by the CMS protocol over the AUX (2nd) port. The size is the total size of the frame and includes the CMS header (prefix) and CMS CRC (footer). ", "" ) \ DPOINT_DEFN( CmsConfigMaxFrameSizeTx, UI32, "Configuration option that specifies the maximum size of all frames sent by the CMS protocol over the 1ary port. The size is the total size of the frame and includes the CMS header (prefix) and CMS CRC (footer). ", "" ) \ DPOINT_DEFN( IdRelayFwModelNo, UI8, "The Firmware Image type associated with a Relay Model Number : RLM-01 (REL01), RLM-02 (REL02), RLM-03 (REL03),RLM-15 (REL15), RLM-15 (REL15-4G)", "" ) \ DPOINT_DEFN( SigMalfWLAN, Signal, "WLAN has hardware failure", "" ) \ DPOINT_DEFN( UpdateLock, UI16, "For interlock to prevent concurrent updates (0 = unlocked, 1 = locked by CMS, 2 = locked by HMI)", "" ) \ DPOINT_DEFN( WlanSignalQualityLoadProfile, UI8, "WLAN Signal Quality, only used for load profile", "" ) \ DPOINT_DEFN( MobileNetworkSignalQualityLoadProfile, UI8, "Mobile Network Signal Quality, only used for load profile", "" ) \ DPOINT_DEFN( Gps_SignalQualityLoadProfile, UI8, "GPS Signal Quality, only used for load profile", "" ) \ DPOINT_DEFN( Gps_Latitude_Field1, I16, "Gps Latitude value Field1, first 3 digits", "" ) \ DPOINT_DEFN( Gps_Latitude_Field2, I16, "Gps Latitude value Field2, middle 3 digits", "" ) \ DPOINT_DEFN( Gps_Latitude_Field3, I16, "Gps Latitude value Field3, last 3 digits", "" ) \ DPOINT_DEFN( Gps_Longitude_Field1, I16, "Gps Longitude value Field1, first 3 digits", "" ) \ DPOINT_DEFN( Gps_Longitude_Field2, I16, "Gps Longitude value Field2, middle 3 digits", "" ) \ DPOINT_DEFN( Gps_Longitude_Field3, I16, "Gps Longitude value Field3, last 3 digits", "" ) \ DPOINT_DEFN( AlertFlagsDisplayed, EnDis, "Enable or disable display of the fault flags on the home screen.", "" ) \ DPOINT_DEFN( AlertName1, Str, "Name of the 1st alert to display on the ALERTS page if enabled and active.", "" ) \ DPOINT_DEFN( AlertName2, Str, "Name of the 2nd alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName3, Str, "Name of the 3rd alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName4, Str, "Name of the 4th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName5, Str, "Name of the 5th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName6, Str, "Name of the 6th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName7, Str, "Name of the 7th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName8, Str, "Name of the 8th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName9, Str, "Name of the 9th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName10, Str, "Name of the 10th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName11, Str, "Name of the 11th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName12, Str, "Name of the 12th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName13, Str, "Name of the 13th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName14, Str, "Name of the 14th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName15, Str, "Name of the 15th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName16, Str, "Name of the 16th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName17, Str, "Name of the 17th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName18, Str, "Name of the 18th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName19, Str, "Name of the 19th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertName20, Str, "Name of the 20th alert to display on the ALERTS page if enabled and active", "" ) \ DPOINT_DEFN( AlertMode1, EnDis, "Enables or disables the 1st alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode2, EnDis, "Enables or disables the 2nd alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode3, EnDis, "Enables or disables the 3rd alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode4, EnDis, "Enables or disables the 4th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode5, EnDis, "Enables or disables the 5th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode6, EnDis, "Enables or disables the 6th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode7, EnDis, "Enables or disables the 7th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode8, EnDis, "Enables or disables the 8th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode9, EnDis, "Enables or disables the 9th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode10, EnDis, "Enables or disables the 10th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode11, EnDis, "Enables or disables the 11th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode12, EnDis, "Enables or disables the 12th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode13, EnDis, "Enables or disables the 13th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode14, EnDis, "Enables or disables the 14th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode15, EnDis, "Enables or disables the 15th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode16, EnDis, "Enables or disables the 16th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode17, EnDis, "Enables or disables the 17th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode18, EnDis, "Enables or disables the 18th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode19, EnDis, "Enables or disables the 19th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertMode20, EnDis, "Enables or disables the 20th alert to display on the ALERTS page", "" ) \ DPOINT_DEFN( AlertExpr1, UI16, "The expression for the 1st alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr2, UI16, "The expression for the 2nd alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr3, UI16, "The expression for the 3rd alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr4, UI16, "The expression for the 4th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr5, UI16, "The expression for the 5th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr6, UI16, "The expression for the 6th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr7, UI16, "The expression for the 7th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr8, UI16, "The expression for the 8th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr9, UI16, "The expression for the 9th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr10, UI16, "The expression for the 10th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr11, UI16, "The expression for the 11th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr12, UI16, "The expression for the 12th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr13, UI16, "The expression for the 13th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr14, UI16, "The expression for the 14th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr15, UI16, "The expression for the 15th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr16, UI16, "The expression for the 16th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr17, UI16, "The expression for the 17th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr18, UI16, "The expression for the 18th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr19, UI16, "The expression for the 19th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertExpr20, UI16, "The expression for the 20th alert to display on the ALERTS page. This is a datapoint identifier and must refer to a signal datapoint.", "" ) \ DPOINT_DEFN( AlertDisplayNames, StrArray1024, "List of alert names to display on the ALERTS page. The companion datapoint AlertDisplayNamesChanged will also be incremented every time this datapoint is modified.", "" ) \ DPOINT_DEFN( AlertDefaultsPopulated, Bool, "Set to TRUE by the Relay after it populates the default alert settings after a database reset.", "" ) \ DPOINT_DEFN( AlertGroup, ChangeEvent, "This datapoint is intended for use in bulk set operations for the alert settings.", "" ) \ DPOINT_DEFN( AlertDisplayNamesChanged, UI32, "Volatile 32-bit counter that is incremented every time the AlertDisplayNames datapoint is changed. This can be used as a quick \"has it been modified?\" check.", "" ) \ DPOINT_DEFN( WlanClientMACAddr1, Str, "wlan client 1 MAC ", "" ) \ DPOINT_DEFN( WlanClientMACAddr2, Str, "wlan client 2 MAC", "" ) \ DPOINT_DEFN( WlanClientMACAddr3, Str, "wlan client 3 MAC", "" ) \ DPOINT_DEFN( WlanClientMACAddr4, Str, "wlan client 4 MAC", "" ) \ DPOINT_DEFN( WlanClientMACAddr5, Str, "wlan client 5 MAC", "" ) \ DPOINT_DEFN( UpdateError, UpdateError, "Error code for update/install operation result", "" ) \ DPOINT_DEFN( GPS_Status, GPSStatus, "GPS status", "" ) \ DPOINT_DEFN( SigGPSUnplugged, Signal, "GPS unplugged", "" ) \ DPOINT_DEFN( SigGPSMalfunction, Signal, "GPS malfunction", "" ) \ DPOINT_DEFN( Gps_SetTime, UI32, "to indicate GPS has set system time.", "" ) \ DPOINT_DEFN( CmdResetBinaryFaultTargets, ResetCommand, "Request Reset Binary Fault Targets", "" ) \ DPOINT_DEFN( CmdResetTripCurrents, ResetCommand, "Request to reset trip currents", "" ) \ DPOINT_DEFN( SigSimAndOsmModelMismatch, Signal, "Connected SIM's supported OSM models does not include the configured OSM model.", "" ) \ DPOINT_DEFN( SigBlockPickupEff, Signal, "Pickup blocked on EF+ engines", "" ) \ DPOINT_DEFN( SigBlockPickupEfr, Signal, "Pickup blocked on EF- engines", "" ) \ DPOINT_DEFN( SigBlockPickupSeff, Signal, "Pickup blocked on SEF+ engines", "" ) \ DPOINT_DEFN( SigBlockPickupSefr, Signal, "Pickup blocked on SEF- engines", "" ) \ DPOINT_DEFN( SigBlockPickupOv3, Signal, "Pickup blocked on OV3 engines", "" ) \ DPOINT_DEFN( SigFaultLocatorStatus, Signal, "Set when the fault location data is valid. Clear when fault location is being calculated or fault location is not enabled.", "" ) \ DPOINT_DEFN( FaultLocFaultType, FaultLocFaultType, "Type of fault that occurred, to aid in determining the fault location.", "" ) \ DPOINT_DEFN( FaultLocM, I32, "Distance to Fault (km)", "" ) \ DPOINT_DEFN( FaultLocZf, I32, "Magnitude of fault impedance", "" ) \ DPOINT_DEFN( FaultLocThetaF, I32, "Phase angle of fault impedance (degree)", "" ) \ DPOINT_DEFN( FaultLocZLoop, I32, "Magnitude of faulted loop impedance", "" ) \ DPOINT_DEFN( FaultLocThetaLoop, I32, "Phase angle of faulted loop impedance (degree)", "" ) \ DPOINT_DEFN( FaultLocIa, UI32, "Ia value at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocIb, UI32, "Ib value at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocIc, UI32, "Ic value at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocAIa, I16, "Ia angle at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocAIb, I16, "Ib angle at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocAIc, I16, "Ic angle at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocUa, UI32, "Ua value at time of fault, direct from the FPGA", "" ) \ DPOINT_DEFN( FaultLocUb, UI32, "Ub value at time of fault, direct from the FPGA", "" ) \ DPOINT_DEFN( FaultLocUc, UI32, "Uc value at time of fault, direct from the FPGA", "" ) \ DPOINT_DEFN( FaultLocAUa, I16, "Ua angle at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocAUb, I16, "Ub angle at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocAUc, I16, "Uc angle at time of fault, direct from FPGA", "" ) \ DPOINT_DEFN( FaultLocDetectedType, FaultLocFaultType, "Detected type for fault location. Set by protection prior to the fault location algorithm starting to run.", "" ) \ DPOINT_DEFN( FaultLocTrigger, UI32, "Incremented by protection each time the fault location algorithm should be run.", "" ) \ DPOINT_DEFN( FaultLocEnable, EnDis, "Fault locator enable/disable setting.", "" ) \ DPOINT_DEFN( FaultLocR0, UI32, "R0 setting for fault location.", "" ) \ DPOINT_DEFN( FaultLocX0, UI32, "X0 setting for fault location.", "" ) \ DPOINT_DEFN( FaultLocR1, UI32, "R1 setting for fault location.", "" ) \ DPOINT_DEFN( FaultLocX1, UI32, "X1 setting for fault location.", "" ) \ DPOINT_DEFN( FaultLocRA, UI32, "RA setting for fault location.", "" ) \ DPOINT_DEFN( FaultLocXA, UI32, "XA setting for fault location.", "" ) \ DPOINT_DEFN( FaultLocLengthOfLine, UI32, "Length of the line for fault location.", "" ) \ DPOINT_DEFN( GPSEnableCommsLog, EnDis, "Enable GPS comms logging", "" ) \ DPOINT_DEFN( GPSCommsLogMaxSize, UI8, "GPS comms log maximum size(Mbytes)", "" ) \ DPOINT_DEFN( SigResetFaultLocation, Signal, "Resets the fault location information in the database.", "" ) \ DPOINT_DEFN( AlertDisplayDatapoints, Array16, "List of numeric/enum datapoint identifiers for alerts. Each entry is a datapoint identifier, or zero for a name-only alert.", "" ) \ DPOINT_DEFN( AlertDisplayMode, AlertDisplayMode, "Internal datapoint that indicates the mode to display the alerts in.", "" ) \ DPOINT_DEFN( FtstCaptureNextPtr, UI32, "This is an internal datapoint for communication between the prot and ftst processes.", "" ) \ DPOINT_DEFN( FtstCaptureLastPtr, UI32, "This is an internal datapoint for communication between the prot and ftst processes.", "" ) \ DPOINT_DEFN( FaultLocXLoop, I32, "Reactance of faulted loop impedance", "" ) \ DPOINT_DEFN( SigArReset, Signal, "AR Sequence Active is active if the Auto Reclose Sequence is in progress", "" ) \ DPOINT_DEFN( SigArResetPhA, Signal, "AR Sequence Active is active if the Auto Reclose Sequence is in progress on phase A, for a single-triple configuration", "" ) \ DPOINT_DEFN( SigArResetPhB, Signal, "AR Sequence Active is active if the Auto Reclose Sequence is in progress on phase B, for a single-triple configuration", "" ) \ DPOINT_DEFN( SigArResetPhC, Signal, "AR Sequence Active is active if the Auto Reclose Sequence is in progress on phase C, for a single-triple configuration", "" ) \ DPOINT_DEFN( LogicSGAStopped, Signal, "Set when logic is stopped due to a loop in the logic, or if SGA is stopped due to an error.", "" ) \ DPOINT_DEFN( LogicSGAStoppedLogic, Signal, "Set when logic is stopped due to a loop in the logic.", "" ) \ DPOINT_DEFN( LogicSGAStoppedSGA, Signal, "Set when SGA is stopped due to an error.", "" ) \ DPOINT_DEFN( LogicSGAThrottling, Signal, "Set when logic or SGA is throttling.", "" ) \ DPOINT_DEFN( LogicSGAThrottlingLogic, Signal, "Set when logic is throttling.", "" ) \ DPOINT_DEFN( LogicSGAThrottlingSGA, Signal, "Set when SGA is throttling.", "" ) \ DPOINT_DEFN( SigUSBOCOnboard, Signal, "onboard usb device overcurrent", "" ) \ DPOINT_DEFN( SigUSBOCExternal, Signal, "external usb hub device overcurrent", "" ) \ DPOINT_DEFN( SigUSBOCModem, Signal, "4G Modem overcurrent ", "" ) \ DPOINT_DEFN( SigUSBOCWifi, Signal, "comms board wifi overcurrent", "" ) \ DPOINT_DEFN( SigUSBOCGPS, Signal, "comms board GPS overcurrent", "" ) \ DPOINT_DEFN( LoadedScadaProtocolDNP3, UI8, "Used to indicate that DNP3 has been loaded at startup and can be enabled/disabled without a restart", "" ) \ DPOINT_DEFN( LoadedScadaRestartReqWarning, Signal, "Set when a SCADA protocol is set to be enabled but was not enabled at last startup", "" ) \ DPOINT_DEFN( IdPSCModelStr, Str, "Identification: PSC Model Number", "" ) \ DPOINT_DEFN( WlanConfigTypeNonUps, UsbPortConfigType, "WLAN port config type (not updated by UPS)", "" ) \ DPOINT_DEFN( MobileNetworkConfigTypeNonUps, UsbPortConfigType, "Mobile network port config type (not updated by UPS)", "" ) \ DPOINT_DEFN( CanPscFirmwareUpdateFeatures, UI32, "Internal datapoint that lists the set of CAN firmware update features that are supported by the PSC.", "" ) \ DPOINT_DEFN( CanSimFirmwareUpdateFeatures, UI32, "Internal datapoint that lists the set of CAN firmware update features that are supported by the SIM.", "" ) \ DPOINT_DEFN( CanGpioFirmwareUpdateFeatures, UI32, "Internal datapoint that lists the set of CAN firmware update features that are supported by the GPIO currently being updated.", "" ) \ DPOINT_DEFN( CanPscTransferStatus, UI8, "Internal datapoint that indicates the result of transferring bulk data to the PSC during a firmware update.", "" ) \ DPOINT_DEFN( CanSimTransferStatus, UI8, "Internal datapoint that indicates the result of transferring bulk data to the SIM during a firmware update.", "" ) \ DPOINT_DEFN( CanGpioTransferStatus, UI8, "Internal datapoint that indicates the result of transferring bulk data to the GPIO during a firmware update.", "" ) \ DPOINT_DEFN( CanPscActiveApplicationDetails, SimWriteAddr, "Internal datapoint that indicates which application is active in the PSC.", "" ) \ DPOINT_DEFN( CanSimActiveApplicationDetails, SimWriteAddr, "Internal datapoint that indicates which application is active in the SIM.", "" ) \ DPOINT_DEFN( CanGpioActiveApplicationDetails, SimWriteAddr, "Internal datapoint that indicates which application is active in the GPIO.", "" ) \ DPOINT_DEFN( CanPscInactiveApplicationDetails, SimWriteAddr, "Internal datapoint that indicates which application is inactive in the PSC.", "" ) \ DPOINT_DEFN( CanSimInactiveApplicationDetails, SimWriteAddr, "Internal datapoint that indicates which application is inactive in the SIM.", "" ) \ DPOINT_DEFN( CanGpioInactiveApplicationDetails, SimWriteAddr, "Internal datapoint that indicates which application is inactive in the GPIO.", "" ) \ DPOINT_DEFN( CanPscPWR1Status, UI8, "Internal datapoint that indicates the status of PSC power output 1.", "" ) \ DPOINT_DEFN( CanPscSimPresent, UI8, "Internal datapoint that indicates if the SIM is present on the CAN bus according to the PSC.", "" ) \ DPOINT_DEFN( sigFirmwareHardwareMismatch, Signal, "signal for the \"Firmware/Hardware Mismatch\" warning indication", "" ) \ DPOINT_DEFN( FirmwareHardwareVersion, UI8, "Tracks the intended hardware version of the currently installed firmware", "" ) \ DPOINT_DEFN( UnitOfTime, TimeUnit, "unit of time", "" ) \ DPOINT_DEFN( LoadedScadaProtocol60870, UI8, "Used to indicate that IEC 60870 has been loaded at startup and can be enabled/disabled without a restart", "" ) \ DPOINT_DEFN( LoadedScadaProtocol61850MMS, UI8, "Used to indicate that IEC 61850 MMS Server has been loaded at startup and can be enabled/disabled without a restart", "" ) \ DPOINT_DEFN( LoadedScadaProtocol2179, UI8, "Used to indicate that 2179 has been loaded at startup and can be enabled/disabled without a restart", "" ) \ DPOINT_DEFN( LoadedScadaProtocol61850GoosePub, UI8, "Used to indicate that IEC 61850 Goose Publisher has been loaded at startup and can be enabled/disabled without a restart", "" ) \ DPOINT_DEFN( LoadedScadaProtocol61850GooseSub, UI8, "Used to indicate that IEC 61850 Goose Subscriber has been loaded at startup and can be enabled/disabled without a restart", "" ) \ DPOINT_DEFN( DiagCounter1, diagDataGeneral1, "Variable length database point to hold array of counters for diagnostic purposes. For developer use only. ", "" ) \ DPOINT_DEFN( DiagCounterCtrl1, UI32, "UI32 to control for Diagnostic counters (1) for diagnostic purposes. For developer use only.", "" ) \ DPOINT_DEFN( SigProtOcDirF, Signal, "OC direction is forward", "" ) \ DPOINT_DEFN( SigProtOcDirR, Signal, "OC direction is reverse", "" ) \ DPOINT_DEFN( SNTPEnable, EnDis, "Control point for enabling/disabling SNTP", "" ) \ DPOINT_DEFN( SNTPServIpAddr1, IpAddr, "IP address of the primary IPv4 SNTP server", "" ) \ DPOINT_DEFN( SNTPServIpAddr2, IpAddr, "IP address of the secondary IPv4 SNTP server", "" ) \ DPOINT_DEFN( SNTPUpdateInterval, UI16, "Update interval for SNTP (minutes)", "" ) \ DPOINT_DEFN( SNTPRetryInterval, UI16, "Retry interval for SNTP (seconds)", "" ) \ DPOINT_DEFN( SNTPRetryAttempts, UI8, "Number of SNTP retry attempts", "" ) \ DPOINT_DEFN( TmSrc, TimeSyncStatus, "Time Sync Source displayed on the RTC Settings page", "" ) \ DPOINT_DEFN( Diagnostic5, UI32, "General use point for diagnostics in internal developer test builds. Should not be used in production code.", "" ) \ DPOINT_DEFN( Diagnostic6, UI32, "General use point for diagnostics in internal developer test builds. Should not be used in production code.", "" ) \ DPOINT_DEFN( Diagnostic7, UI32, "General use point for diagnostics in internal developer test builds. Should not be used in production code.", "" ) \ DPOINT_DEFN( SNTPSetTime, UI32, "Used to indicate that SNTP has set system time", "" ) \ DPOINT_DEFN( SNTPServerResponse, UI8, "Used by msntp utility to indicate whether or not the server has acknowledged the time sync attempt", "" ) \ DPOINT_DEFN( SNTPSyncStatus, Signal, "This signal is used to track the current syncing status of SNTP", "" ) \ DPOINT_DEFN( SNTP1Error, Signal, "IO/Logic point used to indicate that the relay failed to synchronise with SNTP Server 1", "" ) \ DPOINT_DEFN( SNTP2Error, Signal, "IO/Logic point used to indicate that the relay failed to synchronise with SNTP Server 2", "" ) \ DPOINT_DEFN( SNTPUnableToSync, Signal, "Warning for SNTP failure to sync", "" ) \ DPOINT_DEFN( SigUSBOCReset, Signal, "Reset USB Overcurrent will reset USB ports that have had an over current fault.", "" ) \ DPOINT_DEFN( SigUSBOCMalfunction, Signal, "This is the parent signal for all USB overcurrent signals", "" ) \ DPOINT_DEFN( CmdResetFaultLocation, ResetCommand, "Resets the fault location information in the database.", "" ) \ DPOINT_DEFN( SigMalfRel20, Signal, "Part code is REL-20 but comms board is not connected, or 4G modem is not connected.", "" ) \ DPOINT_DEFN( CurrentLanguage, Str, "English name of the current language that is configured for displaying the HMI.", "" ) \ DPOINT_DEFN( SNTPServIpv6Addr1, Ipv6Addr, "IP address of the primary IPv6 SNTP server", "" ) \ DPOINT_DEFN( SNTPServIpv6Addr2, Ipv6Addr, "IP address of the secondary IPv6 SNTP server", "" ) \ DPOINT_DEFN( SNTPServIpVersion, IpVersion, "SNTP IP Version for the servers", "" ) \ DPOINT_DEFN( ScadaDnp3Ipv6MasterAddr, Ipv6Addr, "The Master's IPv6 address. This is used for authorizing, if “Check Master IP Address” is ON, and for sending unsolicited messages.", "" ) \ DPOINT_DEFN( ScadaDnp3Ipv6UnathIpAddr, Ipv6Addr, "The IPv6 address of the most recent unauthorised attempt to establish a TCP / UDP connection.", "" ) \ DPOINT_DEFN( ScadaDnp3IpVersion, IpVersion, "IP version for the DNP3 Protocol", "" ) \ DPOINT_DEFN( ScadaT10BIpv6MasterAddr, Ipv6Addr, "The Master's IPv6 address. This is used for authorizing, if \"Check Master IP Address\" is ON, and for sending unsolicited messages.", "" ) \ DPOINT_DEFN( ScadaT10BIpVersion, IpVersion, "IP Version for the Protocol IEC60870", "" ) \ DPOINT_DEFN( s61850ClientIpVersion, IpVersion, "IP Version of the MMS server Protocol IEC61850: ", "" ) \ DPOINT_DEFN( s61850ClientIpv6Addr1, Ipv6Addr, "IPv6 Address of IEC 61850 Client (1) connected to RC10 Server", "" ) \ DPOINT_DEFN( s61850ClientIpv6Addr2, Ipv6Addr, "IPv6 Address of IEC 61850 Client (2) connected to RC10 Server", "" ) \ DPOINT_DEFN( s61850ClientIpv6Addr3, Ipv6Addr, "IPv6 Address of IEC 61850 Client (3) connected to RC10 Server", "" ) \ DPOINT_DEFN( s61850ClientIpv6Addr4, Ipv6Addr, "IPv6 Address of IEC 61850 Client (4) connected to RC10 Server", "" ) \ DPOINT_DEFN( ScadaCMSIpVersion, IpVersion, "Ip Version for Protocol CMS: Port 2 ", "" ) \ DPOINT_DEFN( p2pRemoteIpVersion, IpVersion, "p2p comm IP Version", "" ) \ DPOINT_DEFN( p2pRemoteLanIpv6Addr, Ipv6Addr, "p2p comm remote LAN IPv6 address", "" ) \ DPOINT_DEFN( s61850GseSubsSts, UI32, "IEC 61850: Goose Subscriber Status.\r\nThis is a bit field (UI32) in which the MS 20 bits represent the status of configured Goose subscriptions 1-20. 1 = Active 0 = Timed out.", "" ) \ DPOINT_DEFN( WlanAccessPointIPv6, Ipv6Addr, "IPv6 address to use when the WLAN is configured as an Access Point. Not used in Client mode.", "" ) \ DPOINT_DEFN( WlanAPSubnetPrefixLength, UI8, "WLAN AP Subnet Prefix Length", "" ) \ DPOINT_DEFN( ftpEnable, EnDis, "Enable File transfer Protocol (ftp). For readonly (download) reading of files for Oscillography or as required.", "" ) \ DPOINT_DEFN( WlanClientIPv6Addr1, Ipv6Addr, "WLAN Client IPv6 Address 1", "" ) \ DPOINT_DEFN( WlanClientIPv6Addr2, Ipv6Addr, "WLAN Client IPv6 Address 2", "" ) \ DPOINT_DEFN( WlanClientIPv6Addr3, Ipv6Addr, "WLAN Client IPv6 Address 3", "" ) \ DPOINT_DEFN( WlanClientIPv6Addr4, Ipv6Addr, "WLAN Client IPv6 Address 4", "" ) \ DPOINT_DEFN( WlanClientIPv6Addr5, Ipv6Addr, "WLAN Client IPv6 Address 5", "" ) \ DPOINT_DEFN( SNTP1v6Error, Signal, "IO/Logic point used to indicate that the relay failed to synchronize with SNTP IPv6 Server 1", "" ) \ DPOINT_DEFN( SNTP2v6Error, Signal, "IO/Logic point used to indicate that the relay failed to synchronize with SNTP IPv6 Server 2", "" ) \ DPOINT_DEFN( SigACOOpModeEqualOn, Signal, "Set true to select ACO Operation Mode Equal On", "" ) \ DPOINT_DEFN( SigACOOpModeMainOn, Signal, "Set true to select ACO Operation Mode Main On", "" ) \ DPOINT_DEFN( SigACOOpModeAltOn, Signal, "Set true to select ACO Operation Mode Alt On", "" ) \ DPOINT_DEFN( SigCtrlPanelOn, Signal, "Upon a 0 -> 1 transition, force the Panel's screen on and disable the 5 minute auto-suspend timer. Upon a 1 -> 0 transition, force the Panel's screen off.", "" ) \ DPOINT_DEFN( SigMalRel20Dummy, Signal, "It is a redundant data point of #10838. Should be removed.", "" ) \ DPOINT_DEFN( RC20SIMIaCalCoef, F32, "calibration coefficients of Ia in SIM20", "" ) \ DPOINT_DEFN( RC20SIMIbCalCoef, F32, "it is the temp settings for calibration (Ib) in Relay20", "" ) \ DPOINT_DEFN( RC20SIMIcCalCoef, F32, "it is the temp settings for calibration in Relay20 (Ic)", "" ) \ DPOINT_DEFN( RC20SIMInCalCoef, F32, "It is temp setting for cailbration in Relay20 (SIM20, In)", "" ) \ DPOINT_DEFN( RC20SIMIaCalCoefHi, F32, "it is the temp settings for calibration in Relay20 (Ia)", "" ) \ DPOINT_DEFN( RC20SIMIbCalCoefHi, F32, "it is the temp settings for calibration in Relay20.", "" ) \ DPOINT_DEFN( RC20SIMIcCalCoefHi, F32, "It is the temp settings for calibration in Relay20", "" ) \ DPOINT_DEFN( RC20SIMUaCalCoef, F32, "It is temp setting for cailbration in Relay20 (SIM20, Ua)", "" ) \ DPOINT_DEFN( RC20SIMUbCalCoef, F32, "It is temp setting for cailbration in Relay20 (SIM20, Ub)", "" ) \ DPOINT_DEFN( RC20SIMUcCalCoef, F32, "It is temp setting for cailbration in Relay20 (SIM20, Ub)", "" ) \ DPOINT_DEFN( RC20SIMUrCalCoef, F32, "It is temp setting for cailbration in Relay20 (SIM20, Ur)", "" ) \ DPOINT_DEFN( RC20SIMUsCalCoef, F32, "It is temp setting for cailbration in Relay20 (SIM20, Us)", "" ) \ DPOINT_DEFN( RC20SIMUtCalCoef, F32, "It is temp setting for cailbration in Relay20 (SIM20, Ut)", "" ) \ DPOINT_DEFN( RC20SwitchIaCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Ia)", "" ) \ DPOINT_DEFN( RC20SwitchIbCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Ib)", "" ) \ DPOINT_DEFN( RC20SwitchIcCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Ic)", "" ) \ DPOINT_DEFN( RC20SwitchInCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, In)", "" ) \ DPOINT_DEFN( RC20SwitchUaCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Ua)", "" ) \ DPOINT_DEFN( RC20SwitchUbCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Ub)", "" ) \ DPOINT_DEFN( RC20SwitchUcCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Uc)", "" ) \ DPOINT_DEFN( RC20SwitchUrCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Ur)", "" ) \ DPOINT_DEFN( RC20SwitchUsCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Us)", "" ) \ DPOINT_DEFN( RC20SwitchUtCalCoef, F32, "It is temp setting for cailbration in Relay20 (Switchgear, Ut)", "" ) \ DPOINT_DEFN( RC20RelayIaCalCoef, F32, "It is setting for cailbration in Relay20 (Relay, Ia)", "" ) \ DPOINT_DEFN( RC20RelayIbCalCoef, F32, "It is temp setting for cailbration in Relay20 (Relay, Ib)", "" ) \ DPOINT_DEFN( RC20RelayIcCalCoef, F32, "It is temp setting for cailbration in Relay20 (Relay, Ic)", "" ) \ DPOINT_DEFN( RC20RelayInCalCoef, F32, "It is temp setting for calibration in Relay20 (Relay, In)", "" ) \ DPOINT_DEFN( RC20RelayUaCalCoef, F32, "It is temp setting for calibration in Relay20 (Relay, Ua)", "" ) \ DPOINT_DEFN( RC20RelayUbCalCoef, F32, "It is temp setting for calibration in Relay20 (Relay, Ub)", "" ) \ DPOINT_DEFN( RC20RelayUcCalCoef, F32, "It is temp setting for calibration in Relay20 (Relay, Uc)", "" ) \ DPOINT_DEFN( RC20RelayUrCalCoef, F32, "It is temp setting for calibration in Relay20 (Relay, Ur)", "" ) \ DPOINT_DEFN( RC20RelayUsCalCoef, F32, "It is temp setting for calibration in Relay20 (Relay, Us)", "" ) \ DPOINT_DEFN( RC20RelayUtCalCoef, F32, "It is temp setting for calibration in Relay20 (Relay, Ut)", "" ) \ DPOINT_DEFN( RC20RelayIaCalCoefHi, F32, "It is temp setting for calibration in Relay20 (Relay, Ia_hi)", "" ) \ DPOINT_DEFN( RC20RelayIbCalCoefHi, F32, "It is temp setting for calibration in Relay20 (Relay, Ib_hi)", "" ) \ DPOINT_DEFN( RC20RelayIcCalCoefHi, F32, "It is temp setting for calibration in Relay20 (Relay, Ic_hi)", "" ) \ DPOINT_DEFN( RC20SwitchDefaultGainI, F32, "It is temp setting for calibration in Relay20 (Switch, default current)", "" ) \ DPOINT_DEFN( RC20SwitchDefaultGainU, F32, "It is temp setting for calibration in Relay20 (Switch, default voltage)", "" ) \ DPOINT_DEFN( RC20SIMDefaultGainILow, F32, "It is temp setting for calibration in Relay20 (SIM, default low current)", "" ) \ DPOINT_DEFN( RC20SIMDefaultGainIHigh, F32, "It is temp setting for calibration in Relay20 (SIM, default high current)", "" ) \ DPOINT_DEFN( RC20SIMDefaultGainIn, F32, "It is temp setting for calibration in Relay20 (SIM, SEF current)", "" ) \ DPOINT_DEFN( RC20SIMDefaultGainU, F32, "It is temp setting for calibration in Relay20 (SIM, voltage)", "" ) \ DPOINT_DEFN( RC20RelayDefaultGainILow, F32, "It is temp setting for calibration in Relay20 (Relay, low current)", "" ) \ DPOINT_DEFN( RC20RelayDefaultGainIHigh, F32, "It is temp setting for calibration in Relay20 (Relay, high current)", "" ) \ DPOINT_DEFN( RC20RelayDefaultGainIn, F32, "It is temp setting for calibration in Relay20 (Relay, SEF current)", "" ) \ DPOINT_DEFN( RC20RelayDefaultGainU, F32, "It is temp setting for calibration in Relay20 (Relay, Voltage)", "" ) \ DPOINT_DEFN( RC20FPGADefaultGainILow, UI32, "It is temp setting for calibration in Relay20 (FPGA, low current)", "" ) \ DPOINT_DEFN( RC20FPGADefaultGainIHigh, UI32, "It is temp setting for calibration in Relay20 (FPGA, high current)", "" ) \ DPOINT_DEFN( RC20FPGADefaultGainIn, UI32, "It is temp setting for calibration in Relay20 (FPGA, sef current)", "" ) \ DPOINT_DEFN( RC20FPGADefaultGainU, UI32, "It is temp setting for calibration in Relay20 (FPGA, Voltage)", "" ) \ DPOINT_DEFN( RC20ConstCalCoefILow, F32, "It is constant coefficient for calibration in RC20 (low current).", "" ) \ DPOINT_DEFN( RC20ConstCalCoefIHigh, F32, "It is constant coefficient for calibration in RC20 (high current).", "" ) \ DPOINT_DEFN( RC20ConstCalCoefIn, F32, "It is constant coefficient for calibration in RC20 (SEF current).", "" ) \ DPOINT_DEFN( RC20ConstCalCoefU, F32, "It is constant coefficient for calibration in RC20 (SEF current).", "" ) \ DPOINT_DEFN( ScadaDNP3GenAppFragMaxSize, UI32, "Maximum Application Fragment Size in DNP3 General Settings.", "" ) \ DPOINT_DEFN( LineSupplyVoltage, UI16, "Line supply voltage input to the cubicle; e.g. 240V, 110V, etc.", "" ) \ DPOINT_DEFN( SaveRelayCalibration, UI8, "when relay get notification of this DBpoint, it will save the calibration to the Relay Nor Flash. \r\nCMS or panel process set this value to 1 after the download the calibration into Relay in whole. Then Calibration process save this value to 2 once it calculate the calibration value for Relay and save them in the database in RAM. \r\nOnce SMP get notifcation of this DB updated to 2, the calibration process should save the Relay coefficients to Nor Flash.", "" ) \ DPOINT_DEFN( SaveSwgCalibration, UI8, "when relay get notification of this DBpoint, it will save the Switchgear coefficients to CID file in nand flash. \r\nCMS or panel process set this value to 1 after the download the Switchgear coiefficients into Relay in whole. Then Calibration process save this value to 2 once it calculate the calibration value for Switchgear and save them in the CID file in RAM. \r\nOnce SMP get notifcation of this DB updated to 2, the calibration process should save the Switchgear coefficients into the CID file to Nand Flash. ", "" ) \ DPOINT_DEFN( SDCardStatus, SDCardStatus, "Status of the SD card: no card, unformatted, ready, ...", "" ) \ DPOINT_DEFN( RC20FPGAIa, UI32, "It is RC20 FPGA Ia value", "" ) \ DPOINT_DEFN( RC20FPGAIb, UI32, "It is RC20 FPGA Ib value", "" ) \ DPOINT_DEFN( RC20FPGAIc, UI32, "It is RC20 FPGA Ic value", "" ) \ DPOINT_DEFN( RC20FPGAIaHi, UI32, "It is RC20 FPGA Ia High value", "" ) \ DPOINT_DEFN( RC20FPGAIbHi, UI32, "It is RC20 FPGA Ib High value", "" ) \ DPOINT_DEFN( RC20FPGAIcHi, UI32, "It is RC20 FPGA Ic High value", "" ) \ DPOINT_DEFN( RC20FPGAIn, UI32, "It is RC20 FPGA In value", "" ) \ DPOINT_DEFN( RC20FPGAUa, UI32, "It is RC20 FPGA Ua value", "" ) \ DPOINT_DEFN( RC20FPGAUb, UI32, "It is RC20 FPGA Ub value", "" ) \ DPOINT_DEFN( RC20FPGAUc, UI32, "It is RC20 FPGA Uc value", "" ) \ DPOINT_DEFN( RC20FPGAUr, UI32, "It is RC20 FPGA Ur value", "" ) \ DPOINT_DEFN( RC20FPGAUs, UI32, "It is RC20 FPGA Us value", "" ) \ DPOINT_DEFN( RC20FPGAUt, UI32, "It is RC20 FPGA Ut value", "" ) \ DPOINT_DEFN( RC20SwitchIaCalCoefHi, F32, "Ia High coeff for RC20Switchgear", "" ) \ DPOINT_DEFN( RC20SwitchIbCalCoefHi, F32, "Ib High coeff for RC20Switchgear", "" ) \ DPOINT_DEFN( RC20SwitchIcCalCoefHi, F32, "Ic High coeff for RC20Switchgear", "" ) \ DPOINT_DEFN( PQSaveToSDCard, EnDis, "Enables or disables logging of power quality data to the SD card if one is inserted.", "" ) \ DPOINT_DEFN( OscSamplesPerCycle, OscSamplesPerCycle, "Number of samples per cycle for oscillography captures", "" ) \ DPOINT_DEFN( OscLogCountSD, UI32, "Number of oscillography captures that are currently stored on the SD card.", "" ) \ DPOINT_DEFN( OscCaptureTimeExt, OscCaptureTimeExt, "Length of an oscillography capture in seconds.", "" ) \ DPOINT_DEFN( PscTransformerCalib110V, UI32, "Calibration coefficient for the 110V transformer tap on the PSC.", "" ) \ DPOINT_DEFN( PscTransformerCalib220V, UI32, "Calibration coefficient for the 220V transformer tap on the PSC", "" ) \ DPOINT_DEFN( G14_SerialDTRStatus, CommsSerialPinStatus, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_SerialDSRStatus, CommsSerialPinStatus, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_SerialCDStatus, CommsSerialPinStatus, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_SerialRTSStatus, CommsSerialPinStatus, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_SerialCTSStatus, CommsSerialPinStatus, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_SerialRIStatus, CommsSerialPinStatus, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_ConnectionStatus, CommsConnectionStatus, "Grp14 Connection status: disconnected, connected, connecting.", "" ) \ DPOINT_DEFN( G14_BytesReceivedStatus, UI32, "Grp14 Bytes received on a port.", "" ) \ DPOINT_DEFN( G14_BytesTransmittedStatus, UI32, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_PacketsReceivedStatus, UI32, "Grp14 Packets received on a port.", "" ) \ DPOINT_DEFN( G14_PacketsTransmittedStatus, UI32, "Grp14 Packets Transmitted", "" ) \ DPOINT_DEFN( G14_ErrorPacketsReceivedStatus, UI32, "Grp14 Error Packets received on a port.", "" ) \ DPOINT_DEFN( G14_ErrorPacketsTransmittedStatus, UI32, "Grp14 Error Packets Transmitted", "" ) \ DPOINT_DEFN( G14_IpAddrStatus, IpAddr, "Grp14 IPv4 Address", "" ) \ DPOINT_DEFN( G14_SubnetMaskStatus, IpAddr, "Grp14 IPv4 Subnet Mask Status", "" ) \ DPOINT_DEFN( G14_DefaultGatewayStatus, IpAddr, "Grp14 IPv4 Default Gateway Status", "" ) \ DPOINT_DEFN( G14_PortDetectedType, CommsPortDetectedType, "Grp14 Each port can report it's detected type. RS232DTE always report as serial type.", "" ) \ DPOINT_DEFN( G14_PortDetectedName, Str, "Grp14 USB Port detected device name", "" ) \ DPOINT_DEFN( G14_SerialTxTestStatus, OnOff, "Grp14 serial port TX testing status", "" ) \ DPOINT_DEFN( G14_PacketsReceivedStatusIPv6, UI32, "Grp14 Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G14_PacketsTransmittedStatusIPv6, UI32, "Grp14 Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G14_ErrorPacketsReceivedStatusIPv6, UI32, "Grp14 Error Packets received on a port.(IPv6)", "" ) \ DPOINT_DEFN( G14_ErrorPacketsTransmittedStatusIPv6, UI32, "Grp14 Error Packets Transmitted (IPv6)", "" ) \ DPOINT_DEFN( G14_Ipv6AddrStatus, Ipv6Addr, "Grp14 IPv6 Address", "" ) \ DPOINT_DEFN( G14_LanPrefixLengthStatus, UI8, "Grp14 Prefix Length for the IPv6 Address", "" ) \ DPOINT_DEFN( G14_Ipv6DefaultGatewayStatus, Ipv6Addr, "Grp14 IPv6 Default Gateway Status", "" ) \ DPOINT_DEFN( G14_IpVersionStatus, IpVersion, "Grp14 LAN IP version", "" ) \ DPOINT_DEFN( G14_SerialPortTestCmd, Signal, "Grp14 If is set, the serial port is into the test mode. It will print \"Noja \" continuously on serial port until this db point is OFF or a 30seconds timer passed.", "" ) \ DPOINT_DEFN( G14_SerialPortHangupCmd, Signal, "Grp14 Whenever this db point is set, comms process (library) will hang up the phone (Using DTR or \"+++\" sequence).", "" ) \ DPOINT_DEFN( G14_BytesReceivedResetCmd, Signal, "Grp14 reset bytes Received", "" ) \ DPOINT_DEFN( G14_BytesTransmittedResetCmd, Signal, "Grp14 reset bytes Transmitted", "" ) \ DPOINT_DEFN( G14_SerialBaudRate, CommsSerialBaudRate, "Grp14 Serial Baud Rate (default value is 19200)", "" ) \ DPOINT_DEFN( G14_SerialDuplexType, CommsSerialDuplex, "Grp14 Serial Duplex Type", "" ) \ DPOINT_DEFN( G14_SerialRTSMode, CommsSerialRTSMode, "Grp14 Request To end signal. Used for flow control / transmitter control. In Flow control mode the RC10 asserts this signal to indicate it is ready to receive data. If RC10 is not ready to receive data, it drops this signal. In PTT mode RTS is used to control the transmitter.", "" ) \ DPOINT_DEFN( G14_SerialRTSOnLevel, CommsSerialRTSOnLevel, "Grp14 Serial RTS On Level", "" ) \ DPOINT_DEFN( G14_SerialDTRMode, CommsSerialDTRMode, "Grp14 Data Terminal Ready signal. RC10 asserts DTR when ready to begin communication. DTR Off causes the modem to hang Up.", "" ) \ DPOINT_DEFN( G14_SerialDTROnLevel, CommsSerialDTROnLevel, "Grp14 Serial DTR On Level", "" ) \ DPOINT_DEFN( G14_SerialParity, CommsSerialParity, "Grp14 Serial Parity", "" ) \ DPOINT_DEFN( G14_SerialCTSMode, CommsSerialCTSMode, "Grp14 Clear To Send setting.", "" ) \ DPOINT_DEFN( G14_SerialDSRMode, CommsSerialDSRMode, "Grp14 Data Set Ready setting.", "" ) \ DPOINT_DEFN( G14_SerialDCDMode, CommsSerialDCDMode, "Grp14 Serial DCD Mode", "" ) \ DPOINT_DEFN( G14_SerialDTRLowTime, UI32, "Grp14 Minimum period of time the DTR", "" ) \ DPOINT_DEFN( G14_SerialTxDelay, UI32, "Grp14 Minimum time, in ms, after receiving a character through the physical communication port, before transmitting a character in response. This has particular use in multi-drop RS485 or radio-modem communication environments where the master must be given time to disable its transmitting hardware before it can be ready to receive a message from the slave device.", "" ) \ DPOINT_DEFN( G14_SerialPreTxTime, UI32, "Grp14 Pre transmission interval between interval between assertion of RTS and starting to  send data.", "" ) \ DPOINT_DEFN( G14_SerialDCDFallTime, UI32, "Grp14 Set duration the RC10 will wait after loss of carrier before sending a hang up command or assuming the session has ended.", "" ) \ DPOINT_DEFN( G14_SerialCharTimeout, UI32, "Grp14 Maximum time, in chars length, between received bytes in a data link frame. After any byte is received in a data link frame, if this time is exceeded before another byte is received, then the current frame is rejected, and scanning for the beginning of another frame is immediately started.", "" ) \ DPOINT_DEFN( G14_SerialPostTxTime, UI32, "Grp14 Post Transmission interval between sending last character of data and negating RTS.", "" ) \ DPOINT_DEFN( G14_SerialInactivityTime, UI32, "Grp14 The number of seconds the RC10 will wait without any activity in transmission line before showing the SCADA Port Status as disconnected.", "" ) \ DPOINT_DEFN( G14_SerialCollisionAvoidance, Bool, "Grp14 Collision avoidance is required for point to multi-point communication channels.", "" ) \ DPOINT_DEFN( G14_SerialMinIdleTime, UI32, "Grp14 This parameter provides a minimum time between retries to connect to master, and allows grading of groups of slaves (e.g. on a per feeder basis) communicating with the same master.", "" ) \ DPOINT_DEFN( G14_SerialMaxRandomDelay, UI32, "Grp14 This parameter provides a maximum delay in addition to the Min Idle Time.", "" ) \ DPOINT_DEFN( G14_ModemPoweredFromExtLoad, Bool, "Grp14 Modem Powered From Ext Load", "" ) \ DPOINT_DEFN( G14_ModemUsedWithLeasedLine, Bool, "Grp14 Modem Used With Leased Line", "" ) \ DPOINT_DEFN( G14_ModemInitString, Str, "Grp14 Modem Init String", "" ) \ DPOINT_DEFN( G14_ModemDialOut, Bool, "Grp14 Modem Dial Out", "" ) \ DPOINT_DEFN( G14_ModemPreDialString, Str, "Grp14 Modem Pre Dial String", "" ) \ DPOINT_DEFN( G14_ModemDialNumber1, Str, "Grp14 Modem Dial Number1", "" ) \ DPOINT_DEFN( G14_ModemDialNumber2, Str, "Grp14 Modem Dial Number2", "" ) \ DPOINT_DEFN( G14_ModemDialNumber3, Str, "Grp14 Modem Dial Number3", "" ) \ DPOINT_DEFN( G14_ModemDialNumber4, Str, "Grp14 Modem Dial Number4", "" ) \ DPOINT_DEFN( G14_ModemDialNumber5, Str, "Grp14 Modem Dial Number5", "" ) \ DPOINT_DEFN( G14_ModemAutoDialInterval, UI32, "Grp14 Modem Auto Dial Interval time between failure to connect to one number in seconds. ", "" ) \ DPOINT_DEFN( G14_ModemConnectionTimeout, UI32, "Grp14 Modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G14_ModemMaxCallDuration, UI32, "Grp14 Modem Max Call Duration in minutes. If set to zero, then the timer is disabled. ", "" ) \ DPOINT_DEFN( G14_ModemResponseTime, UI32, "Grp14 Modem Response Time", "" ) \ DPOINT_DEFN( G14_ModemHangUpCommand, Str, "Grp14 Modem Hang Up Command", "" ) \ DPOINT_DEFN( G14_ModemOffHookCommand, Str, "Grp14 Modem Off Hook Command", "" ) \ DPOINT_DEFN( G14_ModemAutoAnswerOn, Str, "Grp14 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G14_ModemAutoAnswerOff, Str, "Grp14 Modem Auto Answer On", "" ) \ DPOINT_DEFN( G14_RadioPreamble, Bool, "Grp14 Radio Preamble", "" ) \ DPOINT_DEFN( G14_RadioPreambleChar, UI8, "Grp14 Radio Preamble Char", "" ) \ DPOINT_DEFN( G14_RadioPreambleRepeat, UI32, "Grp14 Radio Preamble Repeat", "" ) \ DPOINT_DEFN( G14_RadioPreambleLastChar, UI8, "Grp14 Radio Preamble Last Char", "" ) \ DPOINT_DEFN( G14_LanSpecifyIP, YesNo, "Grp14 Lan Specify IPv4", "" ) \ DPOINT_DEFN( G14_LanIPAddr, IpAddr, "Grp14 Lan IPv4 Addr", "" ) \ DPOINT_DEFN( G14_LanSubnetMask, IpAddr, "Grp14 Lan IPv4 Subnet Mask", "" ) \ DPOINT_DEFN( G14_LanDefaultGateway, IpAddr, "Grp14 Lan IPv4 Default Gateway", "" ) \ DPOINT_DEFN( G14_WlanNetworkSSID, Str, "Grp14 Wlan Network SSID", "" ) \ DPOINT_DEFN( G14_WlanNetworkAuthentication, CommsWlanNetworkAuthentication, "Grp14 Wlan Network Authentication", "" ) \ DPOINT_DEFN( G14_WlanDataEncryption, CommsWlanDataEncryption, "Grp14 Wlan Data Encryption", "" ) \ DPOINT_DEFN( G14_WlanNetworkKey, Str, "Grp14 Wlan Network Key", "" ) \ DPOINT_DEFN( G14_WlanKeyIndex, UI32, "Grp14 Wlan Key Index", "" ) \ DPOINT_DEFN( G14_PortLocalRemoteMode, LocalRemote, "Grp14 Each port has a local/remote mode. Note: it is possible CMS and DNP3 both use same physical port, they must sharing same local remote mode.", "" ) \ DPOINT_DEFN( G14_GPRSServiceProvider, Str, "Grp14 GPRS service provider name", "" ) \ DPOINT_DEFN( G14_GPRSUserName, Str, "Grp14 GPRS user name", "" ) \ DPOINT_DEFN( G14_GPRSPassWord, Str, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_SerialDebugMode, YesNo, "Grp14 serial debug mode selection", "" ) \ DPOINT_DEFN( G14_SerialDebugFileName, Str, "Grp14 No description", "" ) \ DPOINT_DEFN( G14_GPRSBaudRate, CommsSerialBaudRate, "Grp14 GPRS Baud Rate (default value is 115200)", "" ) \ DPOINT_DEFN( G14_GPRSConnectionTimeout, UI32, "Grp14 GPRS modem Connection Timeout: the length of time of cubicle will wait after dialing a number of a connection to be established", "" ) \ DPOINT_DEFN( G14_DNP3InputPipe, Str, "Grp14 DNP3 input pipe ", "" ) \ DPOINT_DEFN( G14_DNP3OutputPipe, Str, "Grp14 DNP3 output pipe", "" ) \ DPOINT_DEFN( G14_CMSInputPipe, Str, "Grp14 CMS Input Pipe", "" ) \ DPOINT_DEFN( G14_CMSOutputPipe, Str, "Grp14 CMS Output Pipe", "" ) \ DPOINT_DEFN( G14_HMIInputPipe, Str, "Grp14 HMI Input Pipe", "" ) \ DPOINT_DEFN( G14_HMIOutputPipe, Str, "Grp14 HMI Output Pipe", "" ) \ DPOINT_DEFN( G14_DNP3ChannelRequest, Str, "Grp14 DNP3 Channel Request", "" ) \ DPOINT_DEFN( G14_DNP3ChannelOpen, Str, "Grp14 DNP3 Channel Open", "" ) \ DPOINT_DEFN( G14_CMSChannelRequest, Str, "Grp14 CMS Channel Request", "" ) \ DPOINT_DEFN( G14_CMSChannelOpen, Str, "Grp14 CMS Channel Open", "" ) \ DPOINT_DEFN( G14_HMIChannelRequest, Str, "Grp14 HMI Channel Request", "" ) \ DPOINT_DEFN( G14_HMIChannelOpen, Str, "Grp14 HMI Channel Open", "" ) \ DPOINT_DEFN( G14_GPRSUseModemSetting, YesNo, "Grp14 GPRS Use Modem Setting, instead of saved RC10 settings. ", "" ) \ DPOINT_DEFN( G14_SerialFlowControlMode, CommsSerialFlowControlMode, "Grp14 Replaced SerialRTSMode element for DB v5+.\r\nWe don't choice RTS mode any more. Use flow control instead of it.", "" ) \ DPOINT_DEFN( G14_SerialDCDControlMode, CommsSerialDCDControlMode, "Grp14 Whether DCD blocks TX. This point replaces SerialDCDMode.", "" ) \ DPOINT_DEFN( G14_T10BInputPipe, Str, "Grp14 IEC 60870-5-101 / -104 Input Pipe", "" ) \ DPOINT_DEFN( G14_T10BOutputPipe, Str, "Grp14 IEC 60870-5-101 / -104 Output Pipe", "" ) \ DPOINT_DEFN( G14_T10BChannelRequest, Str, "Grp14 IEC 60870-5-101 -104 Channel Request", "" ) \ DPOINT_DEFN( G14_T10BChannelOpen, Str, "Grp14 IEC 60870-5-101 / -104 Channel Open", "" ) \ DPOINT_DEFN( G14_P2PInputPipe, Str, "Grp14 P2P input pipe ", "" ) \ DPOINT_DEFN( G14_P2POutputPipe, Str, "Grp14 P2P output pipe ", "" ) \ DPOINT_DEFN( G14_P2PChannelRequest, Str, "Grp14 P2P Channel Request", "" ) \ DPOINT_DEFN( G14_P2PChannelOpen, Str, "Grp14 P2P Channel Open", "" ) \ DPOINT_DEFN( G14_PGEInputPipe, Str, "Grp14 PGE Input Pipe", "" ) \ DPOINT_DEFN( G14_PGEOutputPipe, Str, "Grp14 PGE output pipe ", "" ) \ DPOINT_DEFN( G14_PGEChannelRequest, Str, "Grp14 PGE Channel Request", "" ) \ DPOINT_DEFN( G14_PGEChannelOpen, Str, "Grp14 PGE Channel Open", "" ) \ DPOINT_DEFN( G14_LanProvideIP, YesNo, "Grp14 When operating in access point mode, provide IP addresses automatically via DHCP.", "" ) \ DPOINT_DEFN( G14_LanSpecifyIPv6, YesNo, "Grp14 Lan Specify IPv6", "" ) \ DPOINT_DEFN( G14_LanIPv6Addr, Ipv6Addr, "Grp14 LAN IPv6 Address", "" ) \ DPOINT_DEFN( G14_LanPrefixLength, UI8, "Grp14 LAN Prefix Length", "" ) \ DPOINT_DEFN( G14_LanIPv6DefaultGateway, Ipv6Addr, "Grp14 LAN IPv6 Default Gateway", "" ) \ DPOINT_DEFN( G14_LanIpVersion, IpVersion, "Grp14 LAN IP version", "" ) \ DPOINT_DEFN( LanBConfigType, UsbPortConfigType, "LAN2 port config type", "" ) \ DPOINT_DEFN( CommsChEvGrp14, ChangeEvent, "This datapoint is used to log 'batch' changes to comms group 14 settings.", "" ) \ DPOINT_DEFN( LogHrm64, LogHrm64, "Internal datapoint for passing abbreviated PQDIF events to the logging process for harmonic disturbances with up to 64 harmonics.", "" ) \ DPOINT_DEFN( TripHrmComponentExt, UI32, "Harmonic component that caused the trip (RC20)\r\n\r\n0:No harmonic trip, or switch has been closed again.\r\n1..3:THD(a, b, c)\r\n4..7:TDD(a, b, c, n)\r\n8..64:I(a, b, c, n) I2, I3, I4, I5, I6, I7, I8, I9, I10, I11, I12, I13, I14, I15\r\n65..106:V(a, b, c) V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15\r\n107..298:I(a, b, c, n) I16, I17, I18, ..., I63\r\n299..442:V(a, b, c) V16, V17, V18, ..., V63\r\n\r\n", "" ) \ DPOINT_DEFN( TripHrmComponentAExt, UI32, "Harmonic component that caused the trip on phase A in a single-triple configuration (RC20)", "" ) \ DPOINT_DEFN( TripHrmComponentBExt, UI32, "Harmonic component that caused the trip on phase B in a single-triple configuration (RC20)", "" ) \ DPOINT_DEFN( TripHrmComponentCExt, UI32, "Harmonic component that caused the trip on phase C in a single-triple configuration (RC20)", "" ) \ DPOINT_DEFN( SwgUseCalibratedValue, EnDis, "If it is set to 0, it will use the Switch gear default calibration coefficient. \r\nif it is set to 1, it will use the Switch gear current calibration coefficient. ", "" ) \ DPOINT_DEFN( SimUseCalibratedValue, EnDis, "If it is set to 0, it will use the Sim default calibration coefficient. \r\nif it is set to 1, it will use the Sim current calibration coefficient. ", "" ) \ DPOINT_DEFN( RelayUseCalibratedValue, EnDis, "If it is set to 0, it will use the Relay default calibration coefficient. \r\nif it is set to 1, it will use the Relay current calibration coefficient. ", "" ) \ DPOINT_DEFN( LanB_MAC, Str, "MAC address of LAN2 port", "" ) \ DPOINT_DEFN( EnableCalibration, EnDis, "It is the data point to enable/disable the calibration", "" ) \ DPOINT_DEFN( UpdateFPGACalib, EnDis, "Update FPGA Calibration Value", "" ) \ DPOINT_DEFN( SigCtrlROCOFOn, Signal, "ROCOF protection element is switched on", "" ) \ DPOINT_DEFN( SigSEFProtMode, Signal, "Set TRUE by Prot config when SEF elements are being used for Protection. Map shows any of R, L, C or S.\r\nSet FALSE by Prot config when SEF elements are NOT being used for Protection. Map shows other than R, L, C or S.\r\n", "" ) \ DPOINT_DEFN( SigCtrlVVSOn, Signal, "Voltage vector shift protection element is on", "" ) \ DPOINT_DEFN( SigPickupROCOF, Signal, "Pickup output of ROCOF activated", "" ) \ DPOINT_DEFN( SigPickupVVS, Signal, "Pickup output of VVS activated", "" ) \ DPOINT_DEFN( SigOpenROCOF, Signal, "Open due to ROCOF tripping", "" ) \ DPOINT_DEFN( SigOpenVVS, Signal, "Open due to VVS tripping", "" ) \ DPOINT_DEFN( SigAlarmROCOF, Signal, "Alarm output of ROCOF activated", "" ) \ DPOINT_DEFN( SigAlarmVVS, Signal, "Alarm output of VVS activated", "" ) \ DPOINT_DEFN( CntrROCOFTrips, I32, "Fault counter of ROCOF trips", "" ) \ DPOINT_DEFN( CntrVVSTrips, I32, "Fault counter of VVS trips", "" ) \ DPOINT_DEFN( TripMaxROCOF, UI32, "Maximum ROCOF value for the most recent ROCOF protection event", "" ) \ DPOINT_DEFN( TripMaxVVS, UI32, "Maximum VVS value for the most recent VVS protection event", "" ) \ DPOINT_DEFN( PeakPower, UI16, "Peak power consumed by the cubicle's power supply", "" ) \ DPOINT_DEFN( ExternalSupplyPower, UI16, "Average amount of power consumed by the external supply", "" ) \ DPOINT_DEFN( BatteryCapacityConfidence, BatteryCapacityConfidence, "Describes how confident the PSC is in the battery's confidence: unknown, not confident, or confident.", "" ) \ DPOINT_DEFN( CanBusHighPower, Signal, "The power on the CAN bus has exceeded 100W.", "" ) \ DPOINT_DEFN( IdPSCNumModel, UI32, "First component of the PSC serial number for IEC104 reporting.", "" ) \ DPOINT_DEFN( IdPSCNumPlant, UI32, "Second field of the PSC serial number for IEC104 reporting.", "" ) \ DPOINT_DEFN( IdPSCNumDate, UI32, "Third file for the PSC serial number for IEC104 reporting.", "" ) \ DPOINT_DEFN( IdPSCNumSeq, UI32, "Fourth field for the PSC serial number for IEC104 reporting.", "" ) \ DPOINT_DEFN( IdPSCSwVer1, UI32, "First field of the PSC firmware version for IEC104 reporting.", "" ) \ DPOINT_DEFN( IdPSCSwVer2, UI32, "Second field of the PSC firmware version for IEC104 reporting.", "" ) \ DPOINT_DEFN( IdPSCSwVer3, UI32, "Third field of the PSC firmware version for IEC104 reporting.", "" ) \ DPOINT_DEFN( IdPSCSwVer4, UI32, "Fourth field of the PSC firmware version for IEC104 reporting.", "" ) \ DPOINT_DEFN( SigCtrlPMUOn, Signal, "PMU function is switched on. When disabled PMU application will only monitor for configuration datapoint changes.", "" ) \ DPOINT_DEFN( SigCtrlPMUProcessingOn, Signal, "PMU processing is switched on. When disabled the PMU module is enabled but data processing and transmission does not occur. This flag is not persistent and resets when the SigCtrlPMUOn is changed.", "" ) \ DPOINT_DEFN( PMUStationName, Str, "PMU station name (from CID file, \"1-Station A\" - \"Station A\" would be station name)", "" ) \ DPOINT_DEFN( PMUStationIDCode, UI16, "PMU ID number: 1-65534 (from CID file, \"1-Station A\" - \"1\" would be station id code)", "" ) \ DPOINT_DEFN( PMUNominalFrequency, UI8, "Fundamental frequency (50Hz or 60Hz)", "" ) \ DPOINT_DEFN( PMUMessageRate, UI8, "Selects the message rate in frames per second for synchrophasor data streaming. For 50Hz, 10,25,50. For 60Hz, 10,12,15,20,30,60", "" ) \ DPOINT_DEFN( PMUPerfClass, PMUPerfClass, "The M (Narrow Bandwidth setting) represents filters with a cut off frequency approximately 1/4 of message rate. The P (Fast Response setting) represents filters with a higher cut off frequency.", "" ) \ DPOINT_DEFN( PMUDataSetDef, NamedVariableListDef, "Defines the PMU DataSet in the form of an IEC 61850 Named Variable List. This datapoint is typically populated from the 61850 CID file.", "" ) \ DPOINT_DEFN( PMURequireCIDConfig, EnDis, "Selects if the PMU is must be configured by the 61850 CID file. If Disabled then the PMU will start using the existing datapoint values if they are available. The PMU will still be configured from the CID file if the loaded CID contains a PMU configuration, however the PMU will not wait for the CID file to be loaded if the datapoints contain valid configuration.", "" ) \ DPOINT_DEFN( PMUCommsPort, CommsPort, "Communication port to for PMU communications. Only Ethernet based port can be selected.", "" ) \ DPOINT_DEFN( PMUIPVersion, IpVersion, "IPv4 or IPv6, TMW only support IPv4 currently. Disabled will use MAC address for non-routed SV", "" ) \ DPOINT_DEFN( PMUIPAddrPDC, IpAddr, "IPv4 Address of PDC used when PMUIPVersion=IPv4", "" ) \ DPOINT_DEFN( PMUIP6AddrPDC, Ipv6Addr, "IPv6 Address of PDC used when PMUIPVersion=IPv6", "" ) \ DPOINT_DEFN( PMUMACAddrPDC, Str, "MAC Address of PDC used when PMUIPVersion=Disabled", "" ) \ DPOINT_DEFN( PMUOutputPort, UI16, "PMU UDP Port number (for 90-5 SAV Data)", "" ) \ DPOINT_DEFN( PMUControlPort, UI16, "PMU TCP Port number (for IEEE C37.118.2)", "" ) \ DPOINT_DEFN( PMUConfigVersion, UI16, "Configuration change counter. IEEE C37.118.2 requires that the value must update for each changed configuration packet sent to a PDC", "" ) \ DPOINT_DEFN( PMUVLANAppId, UI16, "PMU 90-5 VLAN AppId (from CID file)", "" ) \ DPOINT_DEFN( PMUVLANVID, UI16, "PMU 90-5 VLAN VID (from CID file)", "" ) \ DPOINT_DEFN( PMUVLANPriority, UI8, "PMU 90-5 VLAN Priority (from CID file)", "" ) \ DPOINT_DEFN( PMUSmvOpts, UI16, "Contains the value of the 'SmvOpts' attribute from the PMU SampledValue Control Block", "" ) \ DPOINT_DEFN( PMUConfRev, UI32, "Contains the value of the 'confRev' attribute from the PMU SampledValue Control Block", "" ) \ DPOINT_DEFN( PMUNumberOfASDU, UI8, "Number of ASDU to be transmitted in 90-5 frames. Additional ASDU will contain the previous sample set values.", "" ) \ DPOINT_DEFN( PMUQuality, PMUQuality, "PMU data quality", "" ) \ DPOINT_DEFN( PMUStatus, PMUStatus, "Status of the PMU module", "" ) \ DPOINT_DEFN( PMU_Ua, UI32, "Synchrophasor Voltages: Ua", "" ) \ DPOINT_DEFN( PMU_Ub, UI32, "Synchrophasor Voltages: Ub", "" ) \ DPOINT_DEFN( PMU_Uc, UI32, "Synchrophasor Voltages: Uc", "" ) \ DPOINT_DEFN( PMU_Ur, UI32, "Synchrophasor Voltages: Ur", "" ) \ DPOINT_DEFN( PMU_Us, UI32, "Synchrophasor Voltages: Us", "" ) \ DPOINT_DEFN( PMU_Ut, UI32, "Synchrophasor Voltages: Ut", "" ) \ DPOINT_DEFN( PMU_Ia, UI32, "Synchrophasor Currents: Ia", "" ) \ DPOINT_DEFN( PMU_Ib, UI32, "Synchrophasor Currents: Ib", "" ) \ DPOINT_DEFN( PMU_Ic, UI32, "Synchrophasor Currents: Ic", "" ) \ DPOINT_DEFN( PMU_A_Ua, I32, "Synchrophasor Angles: Ua", "" ) \ DPOINT_DEFN( PMU_A_Ub, I32, "Synchrophasor Angles: Ub", "" ) \ DPOINT_DEFN( PMU_A_Uc, I32, "Synchrophasor Angles: Uc", "" ) \ DPOINT_DEFN( PMU_A_Ur, I32, "Synchrophasor Angles: Ur", "" ) \ DPOINT_DEFN( PMU_A_Us, I32, "Synchrophasor Angles: Us", "" ) \ DPOINT_DEFN( PMU_A_Ut, I32, "Synchrophasor Angles: Ut", "" ) \ DPOINT_DEFN( PMU_A_Ia, I32, "Synchrophasor Angles: Ia", "" ) \ DPOINT_DEFN( PMU_A_Ib, I32, "Synchrophasor Angles: Ib", "" ) \ DPOINT_DEFN( PMU_A_Ic, I32, "Synchrophasor Angles: Ic", "" ) \ DPOINT_DEFN( PMU_F_ABC, UI32, "Synchrophasor Freq: ABC", "" ) \ DPOINT_DEFN( PMU_F_RST, UI32, "Synchrophasor Freq: RST", "" ) \ DPOINT_DEFN( PMU_ROCOF_ABC, I32, "Synchrophasor ROCOF: ABC", "" ) \ DPOINT_DEFN( PMU_ROCOF_RST, I32, "Synchrophasor ROCOF: RST", "" ) \ DPOINT_DEFN( PMULoadCIDConfigStatus, PMUConfigStatus, "Indicates to the PMU process the current configuration status of the PMU related datapoints from the 61850 CID file. This is set by s61850App after configuring the PMU related datapoints from the CID file. The PMU process will not try to begin operating until the value of this point is 1. Handled values are -1 = configuration failed, 0 = unconfigured, 1 = configured.", "" ) \ DPOINT_DEFN( PMU_Timestamp, TimeStamp, "Timestamp for the Synchrophasor Voltage, Current, and Frequency datapoint values", "" ) \ DPOINT_DEFN( USBL_IPAddr, IpAddr, "It is the USB local port IP address when USBL Ethernet driver is used. ", "" ) \ DPOINT_DEFN( USBL_PortNumber, UI16, "TCP Port Number for USB Local port when used as ethernet. ", "" ) \ DPOINT_DEFN( SigRTCTimeNotSync, Signal, "RTC is not synchronized. The time is in 1970 by default. It is set to 1 when RTC is found to have 1970 as the system time.", "" ) \ DPOINT_DEFN( PMU_IEEE_Stat, UI16, "Holds the IEEE C37.118.2 format stat value for the last synchrophasor values stored to the database.", "" ) \ DPOINT_DEFN( USBL_IPAddrV6, Ipv6Addr, "USB local port IPv6 address.", "" ) \ DPOINT_DEFN( HTTPServerPort, UI16, "It is the HTTp server port to be opened for user connection.", "" ) \ DPOINT_DEFN( USBL_IpVersion, IpVersion, "USB local port IP version: V4 or V6", "" ) \ DPOINT_DEFN( SigCorruptedPartition, Signal, "Warning to signal that the main RLM-20 partition has been corrupted and that the RLM is currently booted from partition 2", "" ) \ DPOINT_DEFN( SigRLM20UpgradeFailure, Signal, "Warning displayed when relay fails to boot from the main partition after an update", "" ) \ DPOINT_DEFN( SigUbootConsoleActive, Signal, "Signal used to determine whether or not the RS232 console is enabled in U-BOOT", "" ) \ DPOINT_DEFN( SigRlm20nor2backupReqd, Signal, "An update has recently been completed on the RLM-20 and a backup of nor1 to nor2 is still required", "" ) \ DPOINT_DEFN( LineSupplyRange, LineSupplyRange, "Input range that the power supply is currently operating off: 110V, 220V, DC, Detecting, or Off.", "" ) \ DPOINT_DEFN( PscDcCalibCoef, UI32, "Calibration coefficient for the DC input selection on the PSC", "" ) \ DPOINT_DEFN( SigMalfAnalogBoard, Signal, "Analog board is missing or throws communication error", "" ) \ DPOINT_DEFN( TmLok, TimeSyncUnlockedTime, "Indicates a range of seconds since loss of time source sync was detected. Starting from offset 'UnlockedLessThan10s' the sequence of values matches the IEEE C37.118.2 unlocked time field.", "" ) \ DPOINT_DEFN( SigACOMakeBeforeBreak, Signal, "Signal version of the ACOMakeBeforeBreak data point, for use with Io and Logic.", "" ) \ DPOINT_DEFN( SigGpsEnable, Signal, "Signal to enable GPS", "" ) \ DPOINT_DEFN( SigWlanEnable, Signal, "Signal to enable WLAN", "" ) \ DPOINT_DEFN( SigMobileNetworkEnable, Signal, "Signal to enable Mobile Network", "" ) \ DPOINT_DEFN( MobileNetwork_SerialPort1, Str, "MobileNetwork SerialPort1", "" ) \ DPOINT_DEFN( MobileNetwork_SerialPort2, Str, "MobileNetwork SerialPort2", "" ) \ DPOINT_DEFN( MobileNetwork_SerialPort3, Str, "MobileNetwork SerialPort3", "" ) \ DPOINT_DEFN( CanSimSetTimeStamp, TimeStamp, "It is the timestamp version of CanSimSetTimeDate", "" ) \ DPOINT_DEFN( PMU_In, UI32, "Synchrophasor Currents: In", "" ) \ DPOINT_DEFN( PMU_A_In, I32, "Synchrophasor Angles: In", "" ) \ DPOINT_DEFN( FpgaSyncControllerDelay, UI32, "Delay that is added as an offset to the PPS time in the FPGA. Configured in FPGA register 10.", "" ) \ DPOINT_DEFN( FpgaSyncSensorDelay, UI32, "Delay that is added as an offset to the PPS time in the FPGA. Configured in FPGA register 10.", "" ) \ DPOINT_DEFN( CbfBackupTripMode, OnOff, "Enables or disables CBF backup trip mode", "" ) \ DPOINT_DEFN( CbfPhaseCurrent, UI32, "the pickup current threshold for phase currents in CBF (Ia/b/c Backup Pickup, A)", "" ) \ DPOINT_DEFN( CbfEfCurrent, UI32, "the pickup current threshold for earth fault currents in CBF (In Backup Pickup, A)", "" ) \ DPOINT_DEFN( CbfCurrentCheckMode, CbfCurrentMode, "Current mode checks if any of the enabled phase currents (OC) or residual currents (EF) exceed the user set threshold", "" ) \ DPOINT_DEFN( CbfFailBackupTrip, CBF_backup_trip, "Selection of the type of mode that the CBF will be set on for backup trip (CBF malfunction, CBF malf/current and Current)", "" ) \ DPOINT_DEFN( CbfBackupTripTime, UI32, "The time before the CBF backup time is triggered ", "" ) \ DPOINT_DEFN( SigCbfBackupTripBlocked, Signal, "Block backup trip for logic that blocks the CBF backup trip mode signal", "" ) \ DPOINT_DEFN( SigPickupCbfDefault, Signal, "CBF Default Pickup", "" ) \ DPOINT_DEFN( SigPickupCbfBackupTrip, Signal, "Backup trip Pickup signal", "" ) \ DPOINT_DEFN( SigCBFMalfunction, Signal, "CBF malfunction has occured. CBF malfunction occurs when the SIM retries 3 times and the recloser does not indicate open or there is current when the re-closer is open", "" ) \ DPOINT_DEFN( SigCBFMalfCurrent, Signal, "CBF Malfunction due to current. Fault due to Current -- Re-purpose this point", "" ) \ DPOINT_DEFN( SigCBFBackupTrip, Signal, "CBF Backup Trip has occurred", "" ) \ DPOINT_DEFN( SigCBFMalf, Signal, "parent signal for CBF Malfunctions", "" ) \ DPOINT_DEFN( DefGWPriority0, CommsPort, "System Default Gateway", "" ) \ DPOINT_DEFN( DefGWPriority1, CommsPort, "System Default Gateway", "" ) \ DPOINT_DEFN( DefGWPriority2, CommsPort, "System Default Gateway", "" ) \ DPOINT_DEFN( DefGWPriority3, CommsPort, "System Default Gateway", "" ) \ DPOINT_DEFN( DefGWStatus0, ActiveInactive, "System Default Gateway", "" ) \ DPOINT_DEFN( DefGWStatus1, ActiveInactive, "System Default Gateway", "" ) \ DPOINT_DEFN( DefGWStatus2, ActiveInactive, "System Default Gateway", "" ) \ DPOINT_DEFN( DefGWStatus3, ActiveInactive, "System Default Gateway", "" ) \ DPOINT_DEFN( SigCbfBackupTripMode, Signal, "Signal to enable CBF Backup Trip mode On (works with CbfBackupTripMode #11403) takes care of logic and I/O", "" ) \ DPOINT_DEFN( UseCentralCredentialServer, EnDis, "It is the data point to enable/disable the centralized LDAP user credential server", "" ) \ DPOINT_DEFN( UserCredentialOperMode, CredentialOperationMode, "It is the user credential mode", "" ) \ DPOINT_DEFN( CredentialOperName, Str, "it is a temporary holder for user name in credential operation. It should be set to NULL string when the credential operation mode is in standby mode.", "" ) \ DPOINT_DEFN( CredentialOperFirstPassword, Str, "It is the first password used in credential operation", "" ) \ DPOINT_DEFN( CredentialOperSecondPassword, Str, "It is the second password used in credential operations. it is available for \"add new user\" and \"change password\"", "" ) \ DPOINT_DEFN( CredentialOperRoleBitMap, RoleBitMap, "Its stores the user credential update on role assignment bitmap. ", "" ) \ DPOINT_DEFN( SaveUserCredentialOper, UI8, "It is a toggle point to save the user credential change", "" ) \ DPOINT_DEFN( UserAccessState, UserCredentialResultStatus, "It is the user access state for the user credential operations", "" ) \ DPOINT_DEFN( SigUSBOCOnboardA, Signal, "USB A Overcurrent in RC20", "" ) \ DPOINT_DEFN( SigUSBOCOnboardB, Signal, "USB B Overcurrent in RC20", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGConnectionEnable, EnDis, "Grp1 IEC 60870-5-104 SCADA Redundancy Group enable or disable this connection", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGAllowControls, EnDis, "Grp1 IEC 60870-5-104 SCADA Redundancy Group allow or disable controls for this connection", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGConnectionName, Str, "Grp1 IEC 60870-5-104 SCADA Redundancy Group connection name", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGChannelPort, CommsPort, "Grp1 IEC 60870-5-104 SCADA Redundancy Group physical port selected for communications (eg USBA, LAN)", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGIpVersion, IpVersion, "Grp1 IEC 60870-5-104 SCADA Redundancy Group IP Version: IPv4 | IPv6", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGSlaveTCPPort, UI16, "Grp1 IEC 60870-5-104 SCADA Redundancy Group Slave TCP Port Number (1024 - 65535)", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGConstraints, ConstraintT10BRG, "Grp1 IEC 60870-5-104 SCADA Redundancy Group Constraints", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGOriginatorAddress, UI8, "Grp1 IEC 60870-5-104 SCADA Redundancy Group Originator Address", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGMasterTCPPort, UI16, "Grp1 IEC 60870-5-104 SCADA Redundancy Group Master TCP Port Number", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGMasterIPv4Addr, IpAddr, "Grp1 IEC 60870-5-104 SCADA Redundancy Group Master IPv4 Address", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, "Grp1 IEC 60870-5-104 SCADA Redundancy Group Master IPv6 Address", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, "Grp1 IEC 60870-5-104 SCADA Redundancy Group network connection state. Can be:\r\n * Closed - Not in Testing or Started state\r\n * Testing - Connected and servicing keep alive, no data or controls\r\n * Started - Connected and exchanging data and controls", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGStatusOriginatorAddress, UI8, "Grp1 IEC 60870-5-104 SCADA Redundancy Group Originator Address of last connected Master", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGStatusMasterTCPPort, UI16, "Grp1 IEC 60870-5-104 SCADA Redundancy Group TCP Port of last connected Master", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, "Grp1 IEC 60870-5-104 SCADA Redundancy Group IPv4 address of last connected Master", "" ) \ DPOINT_DEFN( G1_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, "Grp1 IEC 60870-5-104 SCADA Redundancy Group IPv6 address of last connected master", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGConnectionEnable, EnDis, "Grp2 IEC 60870-5-104 SCADA Redundancy Group enable or disable this connection", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGAllowControls, EnDis, "Grp2 IEC 60870-5-104 SCADA Redundancy Group allow or disable controls for this connection", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGConnectionName, Str, "Grp2 IEC 60870-5-104 SCADA Redundancy Group connection name", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGChannelPort, CommsPort, "Grp2 IEC 60870-5-104 SCADA Redundancy Group physical port selected for communications (eg USBA, LAN)", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGIpVersion, IpVersion, "Grp2 IEC 60870-5-104 SCADA Redundancy Group IP Version: IPv4 | IPv6", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGSlaveTCPPort, UI16, "Grp2 IEC 60870-5-104 SCADA Redundancy Group Slave TCP Port Number (1024 - 65535)", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGConstraints, ConstraintT10BRG, "Grp2 IEC 60870-5-104 SCADA Redundancy Group Constraints", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGOriginatorAddress, UI8, "Grp2 IEC 60870-5-104 SCADA Redundancy Group Originator Address", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGMasterTCPPort, UI16, "Grp2 IEC 60870-5-104 SCADA Redundancy Group Master TCP Port Number", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGMasterIPv4Addr, IpAddr, "Grp2 IEC 60870-5-104 SCADA Redundancy Group Master IPv4 Address", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, "Grp2 IEC 60870-5-104 SCADA Redundancy Group Master IPv6 Address", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, "Grp2 IEC 60870-5-104 SCADA Redundancy Group network connection state. Can be:\r\n * Closed - Not in Testing or Started state\r\n * Testing - Connected and servicing keep alive, no data or controls\r\n * Started - Connected and exchanging data and controls", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGStatusOriginatorAddress, UI8, "Grp2 IEC 60870-5-104 SCADA Redundancy Group Originator Address of last connected Master", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGStatusMasterTCPPort, UI16, "Grp2 IEC 60870-5-104 SCADA Redundancy Group TCP Port of last connected Master", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, "Grp2 IEC 60870-5-104 SCADA Redundancy Group IPv4 address of last connected Master", "" ) \ DPOINT_DEFN( G2_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, "Grp2 IEC 60870-5-104 SCADA Redundancy Group IPv6 address of last connected master", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGConnectionEnable, EnDis, "Grp3 IEC 60870-5-104 SCADA Redundancy Group enable or disable this connection", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGAllowControls, EnDis, "Grp3 IEC 60870-5-104 SCADA Redundancy Group allow or disable controls for this connection", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGConnectionName, Str, "Grp3 IEC 60870-5-104 SCADA Redundancy Group connection name", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGChannelPort, CommsPort, "Grp3 IEC 60870-5-104 SCADA Redundancy Group physical port selected for communications (eg USBA, LAN)", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGIpVersion, IpVersion, "Grp3 IEC 60870-5-104 SCADA Redundancy Group IP Version: IPv4 | IPv6", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGSlaveTCPPort, UI16, "Grp3 IEC 60870-5-104 SCADA Redundancy Group Slave TCP Port Number (1024 - 65535)", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGConstraints, ConstraintT10BRG, "Grp3 IEC 60870-5-104 SCADA Redundancy Group Constraints", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGOriginatorAddress, UI8, "Grp3 IEC 60870-5-104 SCADA Redundancy Group Originator Address", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGMasterTCPPort, UI16, "Grp3 IEC 60870-5-104 SCADA Redundancy Group Master TCP Port Number", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGMasterIPv4Addr, IpAddr, "Grp3 IEC 60870-5-104 SCADA Redundancy Group Master IPv4 Address", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, "Grp3 IEC 60870-5-104 SCADA Redundancy Group Master IPv6 Address", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, "Grp3 IEC 60870-5-104 SCADA Redundancy Group network connection state. Can be:\r\n * Closed - Not in Testing or Started state\r\n * Testing - Connected and servicing keep alive, no data or controls\r\n * Started - Connected and exchanging data and controls", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGStatusOriginatorAddress, UI8, "Grp3 IEC 60870-5-104 SCADA Redundancy Group Originator Address of last connected Master", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGStatusMasterTCPPort, UI16, "Grp3 IEC 60870-5-104 SCADA Redundancy Group TCP Port of last connected Master", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, "Grp3 IEC 60870-5-104 SCADA Redundancy Group IPv4 address of last connected Master", "" ) \ DPOINT_DEFN( G3_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, "Grp3 IEC 60870-5-104 SCADA Redundancy Group IPv6 address of last connected master", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGConnectionEnable, EnDis, "Grp4 IEC 60870-5-104 SCADA Redundancy Group enable or disable this connection", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGAllowControls, EnDis, "Grp4 IEC 60870-5-104 SCADA Redundancy Group allow or disable controls for this connection", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGConnectionName, Str, "Grp4 IEC 60870-5-104 SCADA Redundancy Group connection name", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGChannelPort, CommsPort, "Grp4 IEC 60870-5-104 SCADA Redundancy Group physical port selected for communications (eg USBA, LAN)", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGIpVersion, IpVersion, "Grp4 IEC 60870-5-104 SCADA Redundancy Group IP Version: IPv4 | IPv6", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGSlaveTCPPort, UI16, "Grp4 IEC 60870-5-104 SCADA Redundancy Group Slave TCP Port Number (1024 - 65535)", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGConstraints, ConstraintT10BRG, "Grp4 IEC 60870-5-104 SCADA Redundancy Group Constraints", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGOriginatorAddress, UI8, "Grp4 IEC 60870-5-104 SCADA Redundancy Group Originator Address", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGMasterTCPPort, UI16, "Grp4 IEC 60870-5-104 SCADA Redundancy Group Master TCP Port Number", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGMasterIPv4Addr, IpAddr, "Grp4 IEC 60870-5-104 SCADA Redundancy Group Master IPv4 Address", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGMasterIPv6Addr, Ipv6Addr, "Grp4 IEC 60870-5-104 SCADA Redundancy Group Master IPv6 Address", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGStatusConnectionState, ConnectionStateT10BRG, "Grp4 IEC 60870-5-104 SCADA Redundancy Group network connection state. Can be:\r\n * Closed - Not in Testing or Started state\r\n * Testing - Connected and servicing keep alive, no data or controls\r\n * Started - Connected and exchanging data and controls", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGStatusOriginatorAddress, UI8, "Grp4 IEC 60870-5-104 SCADA Redundancy Group Originator Address of last connected Master", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGStatusMasterTCPPort, UI16, "Grp4 IEC 60870-5-104 SCADA Redundancy Group TCP Port of last connected Master", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGStatusMasterIPv4Addr, IpAddr, "Grp4 IEC 60870-5-104 SCADA Redundancy Group IPv4 address of last connected Master", "" ) \ DPOINT_DEFN( G4_ScadaT10BRGStatusMasterIPv6Addr, Ipv6Addr, "Grp4 IEC 60870-5-104 SCADA Redundancy Group IPv6 address of last connected master", "" ) \ DPOINT_DEFN( ScadaT10BEnableGroup1, EnDis, "IEC 60870-5-104 Redundancy Group 1 enabled for SCADA", "" ) \ DPOINT_DEFN( ScadaT10BEnableGroup2, EnDis, "IEC 60870-5-104 Redundancy Group 2 enabled for SCADA", "" ) \ DPOINT_DEFN( PinUpdateHMI1, Str, "Volatile datapoint to receive the PIN from HMI (1)", "" ) \ DPOINT_DEFN( PinUpdateHMI2, Str, "Volatile datapoint to receive the PIN from HMI (2)", "" ) \ DPOINT_DEFN( PukUpdateHMI1, Str, "Volatile datapoint to receive the PUK from HMI (1)", "" ) \ DPOINT_DEFN( PukUpdateHMI2, Str, "Volatile datapoint to receive the PUK from HMI (2)", "" ) \ DPOINT_DEFN( PinStore, Str, "Stores the confirmed value of PIN entered from HMI or CMS", "" ) \ DPOINT_DEFN( PukStore, Str, "Stores the confirmed value of PUK entered from HMI or CMS", "" ) \ DPOINT_DEFN( PinUpdateCMS, Str, "PIN updated from the CMS user interface. Non Vol so that CMS can upload it once set.", "" ) \ DPOINT_DEFN( PukUpdateCMS, Str, "PUK updated from the CMS user interface", "" ) \ DPOINT_DEFN( PinResultHMI, UI8, "Status of processing of the PIN entry from the HMI", "" ) \ DPOINT_DEFN( PukResultHMI, UI8, "Status of processing of the PUK entry from the HMI", "" ) \ DPOINT_DEFN( PinResultCMS, UI8, "Status of processing of the PIN entry from the CMS", "" ) \ DPOINT_DEFN( PukResultCMS, UI8, "Status of processing of the PUK entry from the CMS", "" ) \ DPOINT_DEFN( SigNmSimError, Signal, "Reports SIM error (0 or 1) for Network Modem interface.", "" ) \ DPOINT_DEFN( ScadaT10BConnectionMethodGroup1, ConnectionMethodT10BRG, "IEC 60870-5-104 Redundancy Group 1 connection method for SCADA\r\n", "" ) \ DPOINT_DEFN( ScadaT10BConnectionMethodGroup2, ConnectionMethodT10BRG, "IEC 60870-5-104 Redundancy Group 2 connection method for SCADA", "" ) \ DPOINT_DEFN( SigCtrlPDOPOn, Signal, "PDOP protection element is switched on", "" ) \ DPOINT_DEFN( SigCtrlPDUPOn, Signal, "PDUP protection element is switched on", "" ) \ DPOINT_DEFN( SigPickupPDOP, Signal, "Pickup output of PDOP activated", "" ) \ DPOINT_DEFN( SigPickupPDUP, Signal, "Pickup output of PDUP activated", "" ) \ DPOINT_DEFN( SigOpenPDOP, Signal, "Open due to PDOP tripping", "" ) \ DPOINT_DEFN( SigOpenPDUP, Signal, "Open due to PDUP tripping", "" ) \ DPOINT_DEFN( SigAlarmPDOP, Signal, "Alarm output of PDOP activated", "" ) \ DPOINT_DEFN( SigAlarmPDUP, Signal, "Alarm output of PDUP activated", "" ) \ DPOINT_DEFN( CntrPDOPTrips, I32, "Fault counter of PDOP trips", "" ) \ DPOINT_DEFN( CntrPDUPTrips, I32, "Fault counter of PDUP trips", "" ) \ DPOINT_DEFN( TripMaxPDOP, UI32, "Maximum PDOP value for the most recent PDOP protection event", "" ) \ DPOINT_DEFN( TripAnglePDOP, I32, "PDOP angle value for the most recent PDOP protection event", "" ) \ DPOINT_DEFN( TripMinPDUP, UI32, "Minimum PDUP value for the most recent PDUP protection event", "" ) \ DPOINT_DEFN( TripAnglePDUP, I32, "PDUP angle value for the most recent PDUP protection event", "" ) \ DPOINT_DEFN( MeasAngle3phase, I32, "3 phase angle measurement", "" ) \ DPOINT_DEFN( PinLastWriteStatus, UI8, "The last status result from a PIN write to the SIM. ", "" ) \ DPOINT_DEFN( PukLastWriteStatus, UI8, "The last status result from a PUK write to the SIM", "" ) \ DPOINT_DEFN( PinLastWriteString, Str, "The Last PIN value that was written to the SIM (as string)", "" ) \ DPOINT_DEFN( PukLastWriteString, Str, "The Last PUK value that was written to the SIM (as string)", "" ) \ DPOINT_DEFN( LinkStatusLAN, UI8, "Link status of LAN", "" ) \ DPOINT_DEFN( LinkStatusLAN2, UI8, "Link Status of LAN2", "" ) \ DPOINT_DEFN( SigSIMCardError, Signal, "Signal to represent a SIM Card Error. This is set for the SIM Card error states like Missing or Faulty, and also for the PIN and/or PUK required states.\r\nSignal is required for Warnings and for use by Logic and IO, also available for SGA.", "" ) \ DPOINT_DEFN( SigSIMCardPINReqd, Signal, "SIM Cards requires PIN entry to operate,", "" ) \ DPOINT_DEFN( SigSIMCardPINError, Signal, "SIM Card PIN entry failed", "" ) \ DPOINT_DEFN( SigSIMCardBlockedByPIN, Signal, "SIM Card is blocked by 3 PIN failed attempts. Requires PUK entry.", "" ) \ DPOINT_DEFN( SigSIMCardPUKError, Signal, "SIM card PUK Entry failed.", "" ) \ DPOINT_DEFN( SigSIMCardBlockedPerm, Signal, "The SIM card has had more than 10 failed PUK entry attempts and is permanently blocked, i.e. destroyed. A new SIM is needed.", "" ) \ DPOINT_DEFN( GPRSServiceProvider2, Str, "Mobile GPRS Service Provider 2", "" ) \ DPOINT_DEFN( GPRSServiceProvider3, Str, "Mobile GPRS Service Provider 3", "" ) \ DPOINT_DEFN( GPRSServiceProvider4, Str, "Mobile GPRS Service Provider 4", "" ) \ DPOINT_DEFN( GPRSServiceProvider5, Str, "Mobile GPRS Service Provider 5", "" ) \ DPOINT_DEFN( GPRSServiceProvider6, Str, "Mobile GPRS Service Provider 6", "" ) \ DPOINT_DEFN( GPRSServiceProvider7, Str, "Mobile GPRS Service Provider 7", "" ) \ DPOINT_DEFN( GPRSServiceProvider8, Str, "Mobile GPRS Service Provider 8", "" ) \ DPOINT_DEFN( GPRSUserName2, Str, "Mobile GPRS user name 2", "" ) \ DPOINT_DEFN( GPRSUserName3, Str, "Mobile GPRS user name 3", "" ) \ DPOINT_DEFN( GPRSUserName4, Str, "Mobile GPRS user name 4", "" ) \ DPOINT_DEFN( GPRSUserName5, Str, "Mobile GPRS user name 5", "" ) \ DPOINT_DEFN( GPRSUserName6, Str, "Mobile GPRS user name 6", "" ) \ DPOINT_DEFN( GPRSUserName7, Str, "Mobile GPRS user name 7", "" ) \ DPOINT_DEFN( GPRSUserName8, Str, "Mobile GPRS user name 8", "" ) \ DPOINT_DEFN( GPRSPassWord2, Str, "Mobile GPRS password 2", "" ) \ DPOINT_DEFN( GPRSPassWord3, Str, "Mobile GPRS password 3", "" ) \ DPOINT_DEFN( GPRSPassWord4, Str, "Mobile GPRS password 4", "" ) \ DPOINT_DEFN( GPRSPassWord5, Str, "Mobile GPRS password 5", "" ) \ DPOINT_DEFN( GPRSPassWord6, Str, "Mobile GPRS password 6", "" ) \ DPOINT_DEFN( GPRSPassWord7, Str, "Mobile GPRS password 7", "" ) \ DPOINT_DEFN( GPRSPassWord8, Str, "Mobile GPRS password 8", "" ) \ DPOINT_DEFN( GPRSDialingAPN, UI8, "GPRS Dialing APN number", "" ) \ DPOINT_DEFN( SmpTicks2, SmpTick, "Tick counts for all monitored processes (DBClientId's 64 to127).", "" ) \ DPOINT_DEFN( SigPMURetransmitEnable, Signal, "Enable PMU Retransmission feature", "" ) \ DPOINT_DEFN( SigPMURetransmitLogEnable, Signal, "Enable PMU Retransmission event logs", "" ) \ DPOINT_DEFN( MobileNetworkSIMCardID, Str, "Mobile Network SIM Card ID is the 20 digit SIM Card ID read by the AT command \"CCID\". Used to detect a changed SIM card.", "" ) \ DPOINT_DEFN( PinUpdated, ChangedLog, "Data point to be triggered by PinStore change to show \"Pin Updated\" as Parameter and \"Changed\" as new value in Settings logs. The data type ChangedLog has the enum value \"Changed\".", "" ) \ DPOINT_DEFN( PukUpdated, ChangedLog, "Data point to be triggered by PukStore change to show \"PUK Updated\" as Parameter and \"Changed\" as new value in Settings logs. The data type ChangedLog has the enum value \"Changed\".", "" ) /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBDATAPOINTDEFS_H_ <file_sep># raw-proxy plugin ## Enabling for build ``` $ cmake .. -DLWS_ROLE_RAW_PROXY=1 ``` ## configuration pvo |pvo|value meaning| |---|---| |onward|The onward proxy destination, in the form `ipv4:addr[:port]`| ## Note for vhost selection Notice that since it proxies the packets "raw", there's no SNI or Host: header to resolve amongst multiple vhosts on the same listen port. So the vhost you associate with this protocol must be alone on its own port. It's also possible to apply this or other role + protocols as a fallback after http[s] processing rejected the first packet from an incoming connection. See `./READMEs/README-http-fallback.md` ## Note for packet size For throughput, since often one side is localhost that can handle larger packets easily, you should create the context used with this plugin with ``` info.pt_serv_buf_size = 8192; ``` lwsws already does this. ## Using with C See the minimal example `./minimal-example/raw/minimal-raw-proxy` for a working example of a vhost that accepts connections and then proxies them using this plugin. The example is almost all boilerplate for setting up the context and the pvo. ## Using with lwsws For a usage where the plugin "owns" the whole vhost, you should enable the plugin protocol on the vhost as usual, and specify the "onward" pvo with: ``` "ws-protocols": [{ "raw-proxy": { "status": "ok", "onward": "ipv4:remote.address.com:port" } }], ``` and then define the vhost with: ``` "apply-listen-accept": "1", "listen-accept-role": "raw-proxy", "listen-accept-protocol": "raw-proxy" ``` which tells it to apply the role and protocol as soon as a connection is accepted on the vhost. <file_sep>cmake_minimum_required(VERSION 3.17.3.0) project(CMAKE_TRY_COMPILE C) set(CMAKE_VERBOSE_MAKEFILE 1) set(CMAKE_C_FLAGS " -std=c89") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_DEFINITIONS}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_LINKER_FLAGS}") include_directories(${INCLUDE_DIRECTORIES}) set(CMAKE_SUPPRESS_REGENERATION 1) link_directories(${LINK_DIRECTORIES}) add_definitions([==[-pedantic]==]) cmake_policy(SET CMP0065 OLD) cmake_policy(SET CMP0083 OLD) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "C:/Workarea/Embedded/rc20/rc20-user/lib3p/libcjson/CMakeFiles/CMakeTmp") add_executable(cmTC_33e7b "C:/Workarea/Embedded/rc20/rc20-user/lib3p/libcjson/CMakeFiles/CMakeTmp/src.c") target_link_libraries(cmTC_33e7b ${LINK_LIBRARIES}) <file_sep>#!/bin/bash # # run this from your build dir having configured # -DLWS_WITH_MINIMAL_EXAMPLES=1 to get all the examples # that apply built into ./bin # # Eg, # # build $ ../minimal-examples/selftests.sh echo echo "----------------------------------------------" echo "------- tests: lws minimal example selftests" echo LOGGING_PATH=/tmp/logs # for mebedtls, we need the CA certs in ./build where we run from cp ../minimal-examples/http-client/minimal-http-client-multi/warmcat.com.cer . cp ../minimal-examples/http-client/minimal-http-client-post/libwebsockets.org.cer . MINEX=`dirname $0` MINEX=`realpath $MINEX` TESTS=0 for i in `find $MINEX -name selftest.sh` ; do BN=`echo -n "$i" | sed "s/\/[^\/]*\$//g" | sed "s/.*\///g"` if [ -e `pwd`/bin/lws-$BN ] ; then C=`cat $i | grep COUNT_TESTS= | cut -d= -f2` TESTS=$(( $TESTS + $C )) fi done FAILS=0 WH=1 for i in `find $MINEX -name selftest.sh` ; do BN=`echo -n "$i" | sed "s/\/[^\/]*\$//g" | sed "s/.*\///g"` if [ -e `pwd`/bin/lws-$BN ] ; then C=`cat $i | grep COUNT_TESTS= | cut -d= -f2` sh $i `pwd`/bin $LOGGING_PATH $WH $TESTS $MINEX FAILS=$(( $FAILS + $? )) L=`ps fax | grep lws- | cut -d' ' -f2` kill $L 2>/dev/null kill -9 $L 2>/dev/null wait $L 2>/dev/null WH=$(( $WH + $C )) fi done if [ $FAILS -eq 0 ] ; then echo "All $TESTS passed" exit 0 else echo "Failed: $FAILS / $TESTS" exit 1 fi <file_sep>/** * @file dbSchemaCRC.h * @brief Define for the schema checksum value. This is the CRC32 value of all * of the generated schema files (excluding this file). It is contained * within a seperate header file so that it does not itself alter the * checksum value of the files. * * The DB_CRC32 define in this file is automatically updated and should not * be altered manually. */ #ifndef _DBSCHEMACRC_H_ #define _DBSCHEMACRC_H_ /** Define for the schema checksum value. */ #define DB_CRC32 0x #endif // #ifndef _DBSCHEMACRC_H_ <file_sep>Pages {#mainpage} ============ ## Introduction Webserver is use to serve the web application GUI rendered by the DCM application (and web browsers). Webserver can also be used by the DCM to access data references that map to configuration settings on the relay using HTTP methods and WebSocket APIs. DCM can perform configuration offline (no active REL-20 is connected) and online (directly accessing an active REL-20). The following figure describe the fundamental structure of the Webserver library. <br> ![img def1] <br> As described earlier, Webserver is used in DCM online and off-line device configurations. For this reason, Webserver shall be included in all applications that implement off-line configuration functions. The design assumes the application platform allows the Webserver to run. The following system model shows the relation of offline and online Webservers. <br> ![img def2] <br> The Webserver package contains one library (libwebserver), the libserver library is linked to libwebsockets, libxml2, and libcjson third party libraries during compile time. The libwebserver library is also linked to libdataref and librbac (there should be an equivalent security module in the DCM or other Relay application) dynamic libraries during run-time. Consumer must make sure all dynamic libraries and their external dependencies are deployed properly to run the Webserver. Webserver is built as a static library; it is assumed it is used once in the REL-20 implementation or any other applications. The following figure shows the webserver deployment model. Webserver may link to dynamic library; it is the responsibility of the application or library to make sure all needed dynamic libraries are included. Note that some platforms (e.g. iOS) may not allow the use of dynamic library for this reason dynamic library consumed by the Webserver may be built as static instead. <br> ![img def3] <br> ## How to Build the Library On libwebserver just run: <br><br> <code>make all</code><br> ## How to Use To link your library to the Webserver library, add the following to your makefile:<br><br> <code>include [path]/user/libweserver/lib/noja_webserver.mak</code><br> To use the business rules library, include the following:<br><br> <code>\#include "noja_webserver.h"</code><br> Or for C++ project:<br><br> <code>\#include "noja_webserver_cpp.h"</code><br> Please refer to the Webserver Main APIs for the list of functions user can use. <br> ## List of APIs Webserver APIs are divided into to major groups Main APIs and Protocol APIs. Main APIs are used by all processes that manages the Webserver service. The Protocol APIs are APIs used by subprotocols that attached to the Relay WebSockets Protocol. See @subpage modules <br> [img def1]: artefacts/01.png "Software Architecture" [img def2]: artefacts/02.png "System Model" [img def3]: artefacts/03.png "Deployment Model"<file_sep>#!/bin/bash export websockets_bin_dir="bin/host" if [ -e "$websockets_bin_dir" ] then exit 0 fi . ./setup_common.sh cmake -G "Unix Makefiles" -DRC10_LIB_SUBPATH=lib-host -DCMAKE_TOOLCHAIN_FILE=./toolchain-host.cmake $NOJA_CMAKE_VARS ../../ <file_sep>/** * @file include/dbschema/dbEnumDefs.h * @brief This generated file contains the macro definition providing details of * all dbconfig enumerated data type values. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbEnumDefs_h.xsl : 5056 bytes, CRC32 = 3685147892 * relay-datatypes.xml : 3123717 bytes, CRC32 = 136298885 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBENUMDEFS_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBENUMDEFS_H_ /**The Enumeration definitions * Arguments: type, name, text * type Enumeration type name * name Enumeration value name * text English display string for the enumeration value */ #define ENUM_DEFNS_TimeFormat \ \ ENUM_DEFN_TimeFormat( TimeFormat, 12, "12 Hour" ) \ ENUM_DEFN_TimeFormat( TimeFormat, 24, "24 Hour" ) #define ENUM_DEFNS_DateFormat \ \ ENUM_DEFN_DateFormat( DateFormat, dmy, "dd/mm/yyyy" ) \ ENUM_DEFN_DateFormat( DateFormat, mdy, "mm/dd/yyyy" ) #define ENUM_DEFNS_OkFail \ \ ENUM_DEFN_OkFail( OkFail, Fail, "Fail" ) \ ENUM_DEFN_OkFail( OkFail, OK, "OK" ) #define ENUM_DEFNS_BattTestState \ \ ENUM_DEFN_BattTestState( BattTestState, Fail, "Fail" ) \ ENUM_DEFN_BattTestState( BattTestState, OK, "OK" ) \ ENUM_DEFN_BattTestState( BattTestState, Apply, "Apply" ) \ ENUM_DEFN_BattTestState( BattTestState, Testing, "Testing" ) #define ENUM_DEFNS_EnDis \ \ ENUM_DEFN_EnDis( EnDis, Dis, "D" ) \ ENUM_DEFN_EnDis( EnDis, En, "E" ) #define ENUM_DEFNS_RelayState \ \ ENUM_DEFN_RelayState( RelayState, Ready, "Ready" ) \ ENUM_DEFN_RelayState( RelayState, Warn, "Warning" ) \ ENUM_DEFN_RelayState( RelayState, Pickup, "Pickup" ) \ ENUM_DEFN_RelayState( RelayState, Lockout, "Lockout" ) #define ENUM_DEFNS_OkSCct \ \ ENUM_DEFN_OkSCct( OkSCct, SCct, "Short Circuit" ) \ ENUM_DEFN_OkSCct( OkSCct, OK, "OK" ) #define ENUM_DEFNS_RdyNr \ \ ENUM_DEFN_RdyNr( RdyNr, NotRdy, "Not Ready" ) \ ENUM_DEFN_RdyNr( RdyNr, Rdy, "Ready" ) #define ENUM_DEFNS_OnOff \ \ ENUM_DEFN_OnOff( OnOff, Off, "Off" ) \ ENUM_DEFN_OnOff( OnOff, On, "On" ) #define ENUM_DEFNS_AvgPeriod \ \ ENUM_DEFN_AvgPeriod( AvgPeriod, 1m, "1 minute" ) \ ENUM_DEFN_AvgPeriod( AvgPeriod, 5m, "5 minutes" ) \ ENUM_DEFN_AvgPeriod( AvgPeriod, 10m, "10 minutes" ) \ ENUM_DEFN_AvgPeriod( AvgPeriod, 15m, "15 minutes" ) \ ENUM_DEFN_AvgPeriod( AvgPeriod, 30m, "30 minutes" ) \ ENUM_DEFN_AvgPeriod( AvgPeriod, 60m, "60 minutes" ) #define ENUM_DEFNS_SysFreq \ \ ENUM_DEFN_SysFreq( SysFreq, 50, "50 Hz" ) \ ENUM_DEFN_SysFreq( SysFreq, 60, "60 Hz" ) #define ENUM_DEFNS_USense \ \ ENUM_DEFN_USense( USense, 1ph, "Single phase" ) \ ENUM_DEFN_USense( USense, 3ph, "Three phase" ) #define ENUM_DEFNS_AuxConfig \ \ ENUM_DEFN_AuxConfig( AuxConfig, DC, "DC" ) \ ENUM_DEFN_AuxConfig( AuxConfig, Star, "AC HV Star" ) \ ENUM_DEFN_AuxConfig( AuxConfig, Delta, "AC HV Delta" ) #define ENUM_DEFNS_AlOp \ \ ENUM_DEFN_AlOp( AlOp, Alarm, "Alarm" ) \ ENUM_DEFN_AlOp( AlOp, Op, "Operate" ) #define ENUM_DEFNS_OpenClose \ \ ENUM_DEFN_OpenClose( OpenClose, NA, "NA" ) \ ENUM_DEFN_OpenClose( OpenClose, Open, "Open" ) \ ENUM_DEFN_OpenClose( OpenClose, Close, "Closed" ) #define ENUM_DEFNS_TripMode \ \ ENUM_DEFN_TripMode( TripMode, Disable, "Disabled" ) \ ENUM_DEFN_TripMode( TripMode, Reclose, "Reclose" ) \ ENUM_DEFN_TripMode( TripMode, Lockout, "Lockout" ) \ ENUM_DEFN_TripMode( TripMode, Alarm, "Alarm" ) \ ENUM_DEFN_TripMode( TripMode, Count, "Count" ) \ ENUM_DEFN_TripMode( TripMode, Sectionalise, "Sectionalise" ) #define ENUM_DEFNS_TtaMode \ \ ENUM_DEFN_TtaMode( TtaMode, Trans, "Transient" ) \ ENUM_DEFN_TtaMode( TtaMode, Cont, "Continuous" ) #define ENUM_DEFNS_DndMode \ \ ENUM_DEFN_DndMode( DndMode, Block, "Block" ) \ ENUM_DEFN_DndMode( DndMode, Trip, "Trip" ) #define ENUM_DEFNS_VrcMode \ \ ENUM_DEFN_VrcMode( VrcMode, ABC, "ABC" ) \ ENUM_DEFN_VrcMode( VrcMode, RST, "RST" ) \ ENUM_DEFN_VrcMode( VrcMode, Ring, "Ring" ) #define ENUM_DEFNS_RatedFreq \ \ ENUM_DEFN_RatedFreq( RatedFreq, 50, "50" ) \ ENUM_DEFN_RatedFreq( RatedFreq, 60, "60" ) \ ENUM_DEFN_RatedFreq( RatedFreq, Auto, "Auto" ) #define ENUM_DEFNS_ScadaTimeIsLocal \ \ ENUM_DEFN_ScadaTimeIsLocal( ScadaTimeIsLocal, Yes, "Local" ) \ ENUM_DEFN_ScadaTimeIsLocal( ScadaTimeIsLocal, No, "GMT/UTC" ) #define ENUM_DEFNS_EventDataID \ \ ENUM_DEFN_EventDataID( EventDataID, NAN, "NAN" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxIn, "Max(In), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxIa, "Max(Ia), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxIb, "Max(Ib), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxIc, "Max(Ic), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, Iop, "Iop, A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, Up, "Up, kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, OIRM, "OIRM={arg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, Tr, "Tr, s={arg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxU1, "Max(U1), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinU1, "Min(U1), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, FreezeI, "Imax, A={arg:0 *1/4}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUab, "Max(Uab), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUbc, "Max(Ubc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUca, "Max(Uca), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, TripIa, "Trip(Ia), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, TripIb, "Trip(Ib), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, TripIc, "Trip(Ic), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, TripIn, "Trip(In), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, OsmLimitOpenFailedClosed, "Open Limit Switch Failed Closed" ) \ ENUM_DEFN_EventDataID( EventDataID, OsmLimitOpenFailedOpen, "Open Limit Switch Failed Open" ) \ ENUM_DEFN_EventDataID( EventDataID, OsmLimitCloseFailedClosed, "Close Limit Switch Failed Closed" ) \ ENUM_DEFN_EventDataID( EventDataID, OsmLimitCloseFailedOpen, "Close Limit Switch Failed Open" ) \ ENUM_DEFN_EventDataID( EventDataID, OsmLimitCloseOpenFailedClosed, "Close & Open Limit Sw Failed Closed" ) \ ENUM_DEFN_EventDataID( EventDataID, OsmLimitCloseMechFailedClosed, "Close & M.Ilock Lim.Sw Failed Closed" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryHealthy, "Healthy" ) \ ENUM_DEFN_EventDataID( EventDataID, BatterySuspect, "Suspect" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryFaulty, "Faulty" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestFailed, "Test Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleFlashFault, "Flash" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleRamFault, "Ram" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleTempFault, "Temp Sensor" ) \ ENUM_DEFN_EventDataID( EventDataID, ModulePsFault, "Power Supply" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleFmFault, "Firmware CRC" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleBootloadFault, "Bootloader CRC" ) \ ENUM_DEFN_EventDataID( EventDataID, simStepCnt, "Simulation step {arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibrated, "Calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibrated, "Not Calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibratedCorrupted, "Cal Values Corrupted" ) \ ENUM_DEFN_EventDataID( EventDataID, TripRequestFail0, "OSM Not Connected" ) \ ENUM_DEFN_EventDataID( EventDataID, TripRequestFail1, "Mechanically Locked" ) \ ENUM_DEFN_EventDataID( EventDataID, TripRequestFail2, "Operation Active" ) \ ENUM_DEFN_EventDataID( EventDataID, TripRequestFail3, "Faulty Actuator" ) \ ENUM_DEFN_EventDataID( EventDataID, TripRequestFail4, "Mechanism Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail0, "OSM Not Connected" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail1, "Mechanically Locked" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail2, "Command Pending" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail3, "Faulty Actuator" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail4, "Mechanism Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail5, "Duty Cycle Exceeded" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail6, "Close Cap Not Ok" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail7, "Trip Cap Not OK" ) \ ENUM_DEFN_EventDataID( EventDataID, OperationFault0, "Close Volt Drop Too High" ) \ ENUM_DEFN_EventDataID( EventDataID, OperationFault1, "Trip Volt Drop Too High" ) \ ENUM_DEFN_EventDataID( EventDataID, OperationFault2, "Trip Volt Drop On Close" ) \ ENUM_DEFN_EventDataID( EventDataID, FreqOp, "Freq Op, Hz={arg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, FreqMin, "Min Freq, Hz={arg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, FreqMax, "Max Freq, Hz={arg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, ProtStatus, "{arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, ActGroup, "Act. Group: {arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUab, "Min(Uab), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUbc, "Min(Ubc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUca, "Min(Uca), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUa, "Max(Ua), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUb, "Max(Ub), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUc, "Max(Uc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUr, "Max(Ur), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUs, "Max(Us), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUt, "Max(Ut), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, AoTopen, "T(open), mins = {arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, OCLM, "OCLM={arg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, LineSupplyStatusNormal, "Normal" ) \ ENUM_DEFN_EventDataID( EventDataID, LineSupplyStatusDisconnected, "Disconnected" ) \ ENUM_DEFN_EventDataID( EventDataID, LineSupplyStatusHigh, "High" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryNormal, "Normal" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryDisconnected, "Disconnected" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryLow, "Low" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryHigh, "High" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibIa, "SIM Ia is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibIb, "SIM Ib is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibIc, "SIM Ic is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibIn, "SIM In is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibIaHi, "SIM Ia (High) is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibIbHi, "SIM Ib (High) is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibIcHi, "SIM Ic (High) is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibUa, "SIM Ua is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibUb, "SIM Ub is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibUc, "SIM Uc is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibUr, "SIM Ur is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibUs, "SIM Us is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibUt, "SIM Ut is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibIa, "Switchgear Ia is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibIb, "Switchgear Ib is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibIc, "Switchgear Ic is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibIn, "Switchgear In is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibUa, "Switchgear Ua is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibUb, "Switchgear Ub is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibUc, "Switchgear Uc is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibUr, "Switchgear Ur is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibUs, "Switchgear Us is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibUt, "Switchgear Ut is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SimCalibAll, "All SIM coefficients are calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgCalibAll, "All sw. coefficients are calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, TtaTat, "Tat, s={arg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail8, "Already Closed" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseRequestFail9, "Excess Actuator Current Draw" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestNotPerformed, "Not Performed" ) \ ENUM_DEFN_EventDataID( EventDataID, LineSupplyStatusLo, "Low" ) \ ENUM_DEFN_EventDataID( EventDataID, SmpShutdownUser, "User Shutdown" ) \ ENUM_DEFN_EventDataID( EventDataID, SmpShutdownPower, "Power Supply" ) \ ENUM_DEFN_EventDataID( EventDataID, SmpShutdownError, "Internal Error" ) \ ENUM_DEFN_EventDataID( EventDataID, HangupDcd, "DCD" ) \ ENUM_DEFN_EventDataID( EventDataID, HangupInactive, "Inactive" ) \ ENUM_DEFN_EventDataID( EventDataID, HangupMaxDuration, "Max Call Duration" ) \ ENUM_DEFN_EventDataID( EventDataID, Unsol, "Unsolicited Dial Out" ) \ ENUM_DEFN_EventDataID( EventDataID, Remote, "Remote Dial In" ) \ ENUM_DEFN_EventDataID( EventDataID, ErrorMsgId, "ID {arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, RecoveryLaunch, "Startup Error" ) \ ENUM_DEFN_EventDataID( EventDataID, RecoveryFs, "No File System" ) \ ENUM_DEFN_EventDataID( EventDataID, RecoveryUser, "User Request" ) \ ENUM_DEFN_EventDataID( EventDataID, RelayFirmware, "Relay Firmware" ) \ ENUM_DEFN_EventDataID( EventDataID, SimFirmware, "SIM Firmware" ) \ ENUM_DEFN_EventDataID( EventDataID, HmiResource, "Language" ) \ ENUM_DEFN_EventDataID( EventDataID, DbSchema, "DB Schema" ) \ ENUM_DEFN_EventDataID( EventDataID, ErrorMsgNumber, "Code {arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, MicrokernelFirmware, "Microkernel Firmware" ) \ ENUM_DEFN_EventDataID( EventDataID, UbootFirmware, "U-Boot Firmware" ) \ ENUM_DEFN_EventDataID( EventDataID, GpioFirmware, "GPIO Firmware" ) \ ENUM_DEFN_EventDataID( EventDataID, RelaySettings, "Relay Settings" ) \ ENUM_DEFN_EventDataID( EventDataID, RelayLog, "Relay Log" ) \ ENUM_DEFN_EventDataID( EventDataID, BackupRelaySettings, "Backup Relay Settings" ) \ ENUM_DEFN_EventDataID( EventDataID, BackupRelayLog, "Backup Relay Log" ) \ ENUM_DEFN_EventDataID( EventDataID, USBA, "USB A" ) \ ENUM_DEFN_EventDataID( EventDataID, USBB, "USB B" ) \ ENUM_DEFN_EventDataID( EventDataID, USBC, "USB C" ) \ ENUM_DEFN_EventDataID( EventDataID, USBCSP, "USB CSP" ) \ ENUM_DEFN_EventDataID( EventDataID, RS232, "RS232" ) \ ENUM_DEFN_EventDataID( EventDataID, RS232P, "RS232P" ) \ ENUM_DEFN_EventDataID( EventDataID, Success, "Success" ) \ ENUM_DEFN_EventDataID( EventDataID, Fail, "Fail" ) \ ENUM_DEFN_EventDataID( EventDataID, Unknown, "Unknown" ) \ ENUM_DEFN_EventDataID( EventDataID, LoSeq2, "79-2 LO" ) \ ENUM_DEFN_EventDataID( EventDataID, LoSeq3, "79-3 LO" ) \ ENUM_DEFN_EventDataID( EventDataID, IO1, "IO1" ) \ ENUM_DEFN_EventDataID( EventDataID, IO2, "IO2" ) \ ENUM_DEFN_EventDataID( EventDataID, IO3, "IO3" ) \ ENUM_DEFN_EventDataID( EventDataID, IO4, "IO4" ) \ ENUM_DEFN_EventDataID( EventDataID, SmpShutdownSwitchgearType, "OSM Model Change" ) \ ENUM_DEFN_EventDataID( EventDataID, ACO, "{arg:0 @195}" ) \ ENUM_DEFN_EventDataID( EventDataID, SourceUnhealthy, "Source Not Healthy" ) \ ENUM_DEFN_EventDataID( EventDataID, Channel, "Channel" ) \ ENUM_DEFN_EventDataID( EventDataID, LogicState, "Logic State" ) \ ENUM_DEFN_EventDataID( EventDataID, SerialNumber, "Serial Number" ) \ ENUM_DEFN_EventDataID( EventDataID, Dnp3PollWatchDog, "DNP3 Poll Watchdog" ) \ ENUM_DEFN_EventDataID( EventDataID, Dnp3BinaryControlWatchDog, "DNP3 Binary Control Watchdog" ) \ ENUM_DEFN_EventDataID( EventDataID, T10BPollWatchDog, "T10B Poll Watchdog" ) \ ENUM_DEFN_EventDataID( EventDataID, T10BBinaryControlWatchDog, "T10B Binary Control Watchdog" ) \ ENUM_DEFN_EventDataID( EventDataID, OscTrip, "Trip(Osc)" ) \ ENUM_DEFN_EventDataID( EventDataID, OscPickup, "Osc Pickup" ) \ ENUM_DEFN_EventDataID( EventDataID, OscClose, "Osc Close" ) \ ENUM_DEFN_EventDataID( EventDataID, OscAlarm, "Osc Alarm" ) \ ENUM_DEFN_EventDataID( EventDataID, OscLogic, "Osc Logic" ) \ ENUM_DEFN_EventDataID( EventDataID, OscIOInputs, "Osc IO Inputs" ) \ ENUM_DEFN_EventDataID( EventDataID, CannotOverwrite, "Cannot Overwrite" ) \ ENUM_DEFN_EventDataID( EventDataID, DiscFull, "Disc Full" ) \ ENUM_DEFN_EventDataID( EventDataID, CommsError, "Comms Error" ) \ ENUM_DEFN_EventDataID( EventDataID, String, "{arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, On, "On" ) \ ENUM_DEFN_EventDataID( EventDataID, Off, "Off" ) \ ENUM_DEFN_EventDataID( EventDataID, Disabled, "Disabled" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxHrmTHD, "Max(HRM), THD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxHrmTDD, "Max(HRM), TDD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxHrmIndA, "Max(HRM), A={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxHrmIndB, "Max(HRM), B={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxHrmIndC, "Max(HRM), C={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxHrmIndD, "Max(HRM), D={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxHrmIndE, "Max(HRM), E={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, Overload, "Overload" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxI2, "Max(I2), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, TripI2, "Trip(I2), A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, WriteToSIM, "Write to SIM" ) \ ENUM_DEFN_EventDataID( EventDataID, DeviceNotReady, "Device Not Ready" ) \ ENUM_DEFN_EventDataID( EventDataID, AoTopenPF, "T(open), secs = {arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestPassed, "Battery Test Passed" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestCheckBattery, "Check Battery" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestFaulty, "Battery Test Circuit Fault" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestVoltageTooLow, "Voltage Too Low" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestACOff, "AC Off" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestBatteryOff, "Battery Off" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestResting, "Resting" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestNotCharging, "Battery Being Discharged" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestNotSupported, "Not Supported" ) \ ENUM_DEFN_EventDataID( EventDataID, BatteryTestTimeout, "Timeout" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleManufFault, "Invalid Manufacturing Details" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleIncorrectSWFault, "Incorrect Software" ) \ ENUM_DEFN_EventDataID( EventDataID, SystemCheck, "System Check" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUa, "Min(Ua), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUb, "Min(Ub), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUc, "Min(Uc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUr, "Min(Ur), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUs, "Min(Us), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinUt, "Min(Ut), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, LineSupplyStatusSurge, "Surge" ) \ ENUM_DEFN_EventDataID( EventDataID, OscProtOperation, "Protection Operation Oscillography" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxUn, "Max(Un), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxU2, "Max(U2), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, EventLog, "Event Log" ) \ ENUM_DEFN_EventDataID( EventDataID, CloseOpenLog, "Close/Open Log" ) \ ENUM_DEFN_EventDataID( EventDataID, FaultLog, "Fault Log" ) \ ENUM_DEFN_EventDataID( EventDataID, LoadProfileLog, "Load Profile Log" ) \ ENUM_DEFN_EventDataID( EventDataID, SettingsLog, "Settings Log" ) \ ENUM_DEFN_EventDataID( EventDataID, InterruptionsLog, "Interruptions Log" ) \ ENUM_DEFN_EventDataID( EventDataID, SagSwellLog, "Sags/Swells Log" ) \ ENUM_DEFN_EventDataID( EventDataID, HarmonicsLog, "Harmonics Log" ) \ ENUM_DEFN_EventDataID( EventDataID, SysErrorLog, "System Error Log" ) \ ENUM_DEFN_EventDataID( EventDataID, WarningsLog, "Warnings Log" ) \ ENUM_DEFN_EventDataID( EventDataID, MalfunctionsLog, "Malfunctions Log" ) \ ENUM_DEFN_EventDataID( EventDataID, PscFirmware, "PSC firmware update" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61499AppMissingFBOOT, "Missing FBOOT" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61499AppFailedFBOOT, "Failed FBOOT" ) \ ENUM_DEFN_EventDataID( EventDataID, Invalid, "Invalid" ) \ ENUM_DEFN_EventDataID( EventDataID, Rel03ModuleFault, "REL-03 Module Fault" ) \ ENUM_DEFN_EventDataID( EventDataID, Rel15ModuleFault, "REL-15 Module Fault" ) \ ENUM_DEFN_EventDataID( EventDataID, Rel15_4G_ModuleFault, "REL-15-4G Module Fault" ) \ ENUM_DEFN_EventDataID( EventDataID, AutoSyncFailed, "Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, AutoSyncReleased, "Released" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncDeltaVFail, "∆V Fail" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncDeltaFreqFail, "∆f Fail" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncDeltaPhaseFail, "∆ϕ Fail" ) \ ENUM_DEFN_EventDataID( EventDataID, AutoSync, "Auto-Sync" ) \ ENUM_DEFN_EventDataID( EventDataID, LangEnglish, "English" ) \ ENUM_DEFN_EventDataID( EventDataID, LangPortuguese, "Portuguese" ) \ ENUM_DEFN_EventDataID( EventDataID, LangSpanish, "Spanish" ) \ ENUM_DEFN_EventDataID( EventDataID, LangPolish, "Polish" ) \ ENUM_DEFN_EventDataID( EventDataID, LangEnglishUS, "US English" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncBlockingLLDB, "LLDB Blocking" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncBlockingDLLB, "DLLB Blocking" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncBlockingDLDB, "DLDB Blocking" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncCheckFail, "Sync-check Fail" ) \ ENUM_DEFN_EventDataID( EventDataID, AutoSyncCancelled, "Cancelled" ) \ ENUM_DEFN_EventDataID( EventDataID, SyncLLLBFail, "LLLB Fail" ) \ ENUM_DEFN_EventDataID( EventDataID, Stop, "Stop" ) \ ENUM_DEFN_EventDataID( EventDataID, Warm, "Warm" ) \ ENUM_DEFN_EventDataID( EventDataID, IDE, "IDE" ) \ ENUM_DEFN_EventDataID( EventDataID, MissingDependency, "Incompatible Files" ) \ ENUM_DEFN_EventDataID( EventDataID, GnRev, "Gn REV, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, GnFwd, "Gn FWD, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, BnRev, "Bn REV, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, BnFwd, "Bn FWD, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinGnRev, "Min(Gn REV), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxGnFwd, "Max(Gn FWD), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinBnRev, "Min(Bn REV), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxBnFwd, "Max(Bn FWD), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN_EventDataID( EventDataID, OV3, "OV3" ) \ ENUM_DEFN_EventDataID( EventDataID, DNP3, "DNP3" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC60870, "IEC 60870" ) \ ENUM_DEFN_EventDataID( EventDataID, CMS, "CMS" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61850, "IEC 61850" ) \ ENUM_DEFN_EventDataID( EventDataID, P2PComms, "P2PComms" ) \ ENUM_DEFN_EventDataID( EventDataID, Panel, "Panel" ) \ ENUM_DEFN_EventDataID( EventDataID, 2179, "2179" ) \ ENUM_DEFN_EventDataID( EventDataID, ExceptionFPE, "Floating Point Exception" ) \ ENUM_DEFN_EventDataID( EventDataID, I2I1op, "Iop, I2/I1={arg:0 *1/1000}%" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxI2I1, "Max(I2/I1)={arg:0 *1/1000}%" ) \ ENUM_DEFN_EventDataID( EventDataID, OV3abc, "OV3(ABC)" ) \ ENUM_DEFN_EventDataID( EventDataID, OV3rst, "OV3(RST)" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxIn_mA, "Max(In), A={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, TripIn_mA, "Trip(In), A={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, Iop_mA, "Iop, A={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, Timeout, "Timeout" ) \ ENUM_DEFN_EventDataID( EventDataID, InvalidDbVersion, "Invalid Database Version" ) \ ENUM_DEFN_EventDataID( EventDataID, FileIoError, "Internal File System Error" ) \ ENUM_DEFN_EventDataID( EventDataID, UsbIoError, "USB Access Error" ) \ ENUM_DEFN_EventDataID( EventDataID, TooManyUpdateFiles, "Too Many Update Files" ) \ ENUM_DEFN_EventDataID( EventDataID, FileSysMismatch, "Incompatible File System" ) \ ENUM_DEFN_EventDataID( EventDataID, InvalidMicrokernel, "Invalid Microkernel" ) \ ENUM_DEFN_EventDataID( EventDataID, UnsupportedHardware, "Unsupported Hardware" ) \ ENUM_DEFN_EventDataID( EventDataID, BackupSettingsFailed, "Settings Backup Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, BackupLogsFailed, "Logs Backup Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, UnsupportedPartCode, "Unsupported Part Number" ) \ ENUM_DEFN_EventDataID( EventDataID, RemoveBackupFailed, "Remove Backup Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, NoSerialNum, "No Serial Number" ) \ ENUM_DEFN_EventDataID( EventDataID, DbAccessFail, "Database Access Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, FailedBooting, "Failed Booting" ) \ ENUM_DEFN_EventDataID( EventDataID, FailedLoadingFirmware, "Failed Loading Firmware" ) \ ENUM_DEFN_EventDataID( EventDataID, FailedInitialisation, "Failed Initialisation" ) \ ENUM_DEFN_EventDataID( EventDataID, APNotFound, "AP Not Found" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongAPPasswordLength, "Wrong AP Password Length" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongClientPassword, "Wrong Client Password" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongClientPasswordLength, "Wrong Client Password Length" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongPasswordLength, "Wrong Password Length" ) \ ENUM_DEFN_EventDataID( EventDataID, APConfigFailure, "AP Config Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, InvalidChannel, "Invalid Channel" ) \ ENUM_DEFN_EventDataID( EventDataID, QueryMACFailed, "Query MAC Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, APFailure, "AP Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, APScanFailure, "AP Scan Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, ChannelRegionFailed, "Channel Region Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, InitialisationFailed, "Initialisation Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, InvalidRFBand, "Invalid RF Band" ) \ ENUM_DEFN_EventDataID( EventDataID, JoiningAPFailure, "Joining AP Failure" ) \ ENUM_DEFN_EventDataID( EventDataID, PasswordMissing, "Password Missing" ) \ ENUM_DEFN_EventDataID( EventDataID, QueryFWVerFailed, "Query FW Ver Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, SetRFFrequencyFailed, "Set RF Frequency Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, SettingPasswordFailed, "Setting Password Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, SettingRFFailed, "Setting RF Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, SettingTXPowerFailed, "Setting TX Power Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, SSIDMismatch, "SSID Mismatch" ) \ ENUM_DEFN_EventDataID( EventDataID, UnsupportedRF, "Unsupported RF" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongJoinCommand, "Wrong Join Command" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongJoinParameter, "Wrong Join Parameter" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongOperationMode, "Wrong Operation Mode" ) \ ENUM_DEFN_EventDataID( EventDataID, WrongParameter, "Wrong Parameter" ) \ ENUM_DEFN_EventDataID( EventDataID, NoFiles, "No Files" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI2nd, "I2" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI3rd, "I3" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI4th, "I4" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI5th, "I5" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI6th, "I6" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI7th, "I7" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI8th, "I8" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI9th, "I9" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI10th, "I10" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI11th, "I11" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI12th, "I12" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI13th, "I13" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI14th, "I14" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI15th, "I15" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn2nd, "In2" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn3rd, "In3" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn4th, "In4" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn5th, "In5" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn6th, "In6" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn7th, "In7" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn8th, "In8" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn9th, "In9" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn10th, "In10" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn11th, "In11" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn12th, "In12" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn13th, "In13" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn14th, "In14" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn15th, "In15" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV2nd, "V2" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV3rd, "V3" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV4th, "V4" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV5th, "V5" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV6th, "V6" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV7th, "V7" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV8th, "V8" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV9th, "V9" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV10th, "V10" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV11th, "V11" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV12th, "V12" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV13th, "V13" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV14th, "V14" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV15th, "V15" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmTHD_op, "HRM, THD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmTDD_op, "HRM, TDD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIndA_op, "HRM, A={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIndB_op, "HRM, B={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIndC_op, "HRM, C={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIndD_op, "HRM, D={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIndE_op, "HRM, E={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61499ExternEvtLim, "SGA External Events Limit" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61499InternEvtLim, "SGA Internal Events Limit" ) \ ENUM_DEFN_EventDataID( EventDataID, SIM03, "SIM03" ) \ ENUM_DEFN_EventDataID( EventDataID, EFF, "EF+" ) \ ENUM_DEFN_EventDataID( EventDataID, EFR, "EF-" ) \ ENUM_DEFN_EventDataID( EventDataID, SEFF, "SEF+" ) \ ENUM_DEFN_EventDataID( EventDataID, SEFR, "SEF-" ) \ ENUM_DEFN_EventDataID( EventDataID, ABC, "ABC" ) \ ENUM_DEFN_EventDataID( EventDataID, RST, "RST" ) \ ENUM_DEFN_EventDataID( EventDataID, GPS, "GPS" ) \ ENUM_DEFN_EventDataID( EventDataID, InvalidUpdateFile, "Invalid Update File" ) \ ENUM_DEFN_EventDataID( EventDataID, Failed, "Failed" ) \ ENUM_DEFN_EventDataID( EventDataID, Distance, "FltDiskm, km={iarg:0 *1/10 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, FaultImpedance, "Zf∡θf, Ω={iarg:0 *1/10 .1}∡{iarg:1 *" ) \ ENUM_DEFN_EventDataID( EventDataID, FaultedLoopImpedance, "ZLoop∡θLoop, Ω={iarg:0 *1/10 .1}∡{ia" ) \ ENUM_DEFN_EventDataID( EventDataID, OutOfRange, "Out of Range" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61499ResourceLimit, "SGA Resource Limit" ) \ ENUM_DEFN_EventDataID( EventDataID, SIM01, "SIM01" ) \ ENUM_DEFN_EventDataID( EventDataID, SIM02, "SIM02" ) \ ENUM_DEFN_EventDataID( EventDataID, LangRussian, "Russian" ) \ ENUM_DEFN_EventDataID( EventDataID, SSTControl_Tst, "Tst, s={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, USBONBOARD, "Onboard Ports" ) \ ENUM_DEFN_EventDataID( EventDataID, USBEXTERNAL, "External Hub Ports" ) \ ENUM_DEFN_EventDataID( EventDataID, WIFI, "WiFi" ) \ ENUM_DEFN_EventDataID( EventDataID, MODEM, "Mobile Network Modem" ) \ ENUM_DEFN_EventDataID( EventDataID, FaultImpedanceZ, "Zf Ω={iarg:0 *1/10 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, FaultImpedanceTheta, "θf={iarg:0 *1/10 .1}°" ) \ ENUM_DEFN_EventDataID( EventDataID, FaultedLoopImpedanceZ, "ZLoop Ω={iarg:0 *1/10 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, FaultedLoopImpedanceTheta, "θLoop={iarg:0 *1/10 .1}°" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61850GoosePub, "IEC 61850 GOOSE Publisher" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61850GooseSub, "IEC 61850 GOOSE Subscriber" ) \ ENUM_DEFN_EventDataID( EventDataID, IEC61850MMS, "IEC 61850 MMS" ) \ ENUM_DEFN_EventDataID( EventDataID, LangTurkish, "Turkish" ) \ ENUM_DEFN_EventDataID( EventDataID, LangRomanian, "Romanian" ) \ ENUM_DEFN_EventDataID( EventDataID, RelayCalibIa, "Relay Ia is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, RelayCalibIb, "Relay Ib is calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI16th, "I16" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI17th, "I17" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI18th, "I18" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI19th, "I19" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI20th, "I20" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI21st, "I21" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI22nd, "I22" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI23rd, "I23" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI24th, "I24" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI25th, "I25" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI26th, "I26" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI27th, "I27" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI28th, "I28" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI29th, "I29" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI30th, "I30" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI31st, "I31" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI32nd, "I32" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI33rd, "I33" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI34th, "I34" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI35th, "I35" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI36th, "I36" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI37th, "I37" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI38th, "I38" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI39th, "I39" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI40th, "I40" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI41st, "I41" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI42nd, "I42" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI43rd, "I43" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI44th, "I44" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI45th, "I45" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI46th, "I46" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI47th, "I47" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI48th, "I48" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI49th, "I49" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI50th, "I50" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI51st, "I51" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI52nd, "I52" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI53rd, "I53" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI54th, "I54" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI55th, "I55" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI56th, "I56" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI57th, "I57" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI58th, "I58" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI59th, "I59" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI60th, "I60" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI61st, "I61" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI62nd, "I62" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmI63rd, "I63" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn16th, "In16" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn17th, "In17" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn18th, "In18" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn19th, "In19" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn20th, "In20" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn21st, "In21" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn22nd, "In22" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn23rd, "In23" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn24th, "In24" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn25th, "In25" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn26th, "In26" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn27th, "In27" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn28th, "In28" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn29th, "In29" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn30th, "In30" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn31st, "In31" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn32nd, "In32" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn33rd, "In33" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn34th, "In34" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn35th, "In35" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn36th, "In36" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn37th, "In37" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn38th, "In38" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn39th, "In39" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn40th, "In40" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn41st, "In41" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn42nd, "In42" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn43rd, "In43" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn44th, "In44" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn45th, "In45" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn46th, "In46" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn47th, "In47" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn48th, "In48" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn49th, "In49" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn50th, "In50" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn51st, "In51" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn52nd, "In52" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn53rd, "In53" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn54th, "In54" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn55th, "In55" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn56th, "In56" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn57th, "In57" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn58th, "In58" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn59th, "In59" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn60th, "In60" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn61st, "In61" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn62nd, "In62" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmIn63rd, "In63" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV16th, "V16" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV17th, "V17" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV18th, "V18" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV19th, "V19" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV20th, "V20" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV21st, "V21" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV22nd, "V22" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV23rd, "V23" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV24th, "V24" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV25th, "V25" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV26th, "V26" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV27th, "V27" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV28th, "V28" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV29th, "V29" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV30th, "V30" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV31st, "V31" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV32nd, "V32" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV33rd, "V33" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV34th, "V34" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV35th, "V35" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV36th, "V36" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV37th, "V37" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV38th, "V38" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV39th, "V39" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV40th, "V40" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV41st, "V41" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV42nd, "V42" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV43rd, "V43" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV44th, "V44" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV45th, "V45" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV46th, "V46" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV47th, "V47" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV48th, "V48" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV49th, "V49" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV50th, "V50" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV51st, "V51" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV52nd, "V52" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV53rd, "V53" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV54th, "V54" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV55th, "V55" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV56th, "V56" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV57th, "V57" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV58th, "V58" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV59th, "V59" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV60th, "V60" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV61st, "V61" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV62nd, "V62" ) \ ENUM_DEFN_EventDataID( EventDataID, HrmV63rd, "V63" ) \ ENUM_DEFN_EventDataID( EventDataID, ROCOF_op, "ROCOF, Hz/s={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxROCOF, "Max(ROCOF), Hz/s={arg:0 *1/100 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, VVS_op, "VVS, °={arg:0 *1/1000}" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxVVS, "Max(VVS), °={arg:0 *1/1000}" ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibIa, "Sim Ia is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibIb, "Sim Ib is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibIc, "Sim Ic is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibIaHigh, "Sim Ia High is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibIbHigh, "Sim Ib High is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibIcHigh, "Sim Ic High is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibIn, "Sim In is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibVa, "Sim Va is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibVb, "Sim Vb is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibVc, "Sim Vc is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibVr, "Sim Vr is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibVs, "Sim Vs is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SimNotCalibVt, "Sim Vt is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibIa, "Relay Ia is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibIb, "Relay Ib is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibIc, "Relay Ic is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibIaHigh, "Relay Ia High is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibIcHigh, "Relay Ic High is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibIn, "Relay In is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibVa, "Relay Va is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibVb, "Relay Vb is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibVc, "Relay Vc is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibVr, "Relay Vr is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibVs, "Relay Vs is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibVt, "Relay Vt is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibIa, "Switchgear Ia is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibIb, "Switchgear Ib is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibIc, "Switchgear Ic is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibIaHigh, "Switchgear Ia High is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibIbHigh, "Switchgear Ib High is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibIcHigh, "Switchgear Ic High is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibVa, "Switchgear Va is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibVb, "Switchgear Vb is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibVc, "Switchgear Vc is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibVr, "Switchgear Vr is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibVs, "Switchgear Vs is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibVt, "Switchgear Vt is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, SwgNotCalibIn, "SwitchGEAR In is not calibrated" ) \ ENUM_DEFN_EventDataID( EventDataID, RelayNotCalibIbHigh, "Relay Ib High is not calibrated." ) \ ENUM_DEFN_EventDataID( EventDataID, WriteToRelay, "Save Relay Calibration" ) \ ENUM_DEFN_EventDataID( EventDataID, WriteToSwg, "Save Switchgear Calibration" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleFaultUpdate, "Update" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleFaultBatteryCharger, "Battery Charger" ) \ ENUM_DEFN_EventDataID( EventDataID, ModuleFaultPowerOutputs, "Power Outputs" ) \ ENUM_DEFN_EventDataID( EventDataID, RTCFaulty, "RTC is faulty." ) \ ENUM_DEFN_EventDataID( EventDataID, RTCNotSync, "RTC is not synchronized" ) \ ENUM_DEFN_EventDataID( EventDataID, SIM20, "SIM20" ) \ ENUM_DEFN_EventDataID( EventDataID, CBFIa, "Ia,A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, CBFIb, "Ib,A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, CBFIc, "Ic,A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, CBFIn, "In,A={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, InvalidUser, "Invalid User name or Password" ) \ ENUM_DEFN_EventDataID( EventDataID, UserAuthenticated, "User Credential Operation Successful" ) \ ENUM_DEFN_EventDataID( EventDataID, USBONBOARDA, "USB A" ) \ ENUM_DEFN_EventDataID( EventDataID, USBONBOARDB, "USB B" ) \ ENUM_DEFN_EventDataID( EventDataID, MaxPDOP, "Max(PDOP), kVA={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, MinPDUP, "Min(PDUP), kVA={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, PDOP_op, "PDOP, kVA={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, PDUP_op, "PDUP, kVA={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, PDOPAngle, "θPDOP, °={iarg:0 *1/10 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, PDUPAngle, "θPDUP, °={iarg:0 *1/10 .1}" ) \ ENUM_DEFN_EventDataID( EventDataID, SIMCardError, "SIM Card Error" ) \ ENUM_DEFN_EventDataID( EventDataID, SIMPINRequired, "SIM PIN Required" ) \ ENUM_DEFN_EventDataID( EventDataID, SIMPINError, "SIM PIN Error" ) \ ENUM_DEFN_EventDataID( EventDataID, SIMBlocked, "SIM Blocked" ) \ ENUM_DEFN_EventDataID( EventDataID, SIMPUKRequired, "SIM PUK Required" ) \ ENUM_DEFN_EventDataID( EventDataID, SIMCardPUKError, "SIM Card PUK Error" ) \ ENUM_DEFN_EventDataID( EventDataID, SIMCardBlockedPerm, "SIM Card Blocked permanently" ) \ ENUM_DEFN_EventDataID( EventDataID, PDCAddr, "PDC, addr={arg:0}" ) \ ENUM_DEFN_EventDataID( EventDataID, PDCPort, "port={arg:0}" ) #define ENUM_DEFNS_DbClientId \ \ ENUM_DEFN_DbClientId( DbClientId, NAN, "Non client ID" ) \ ENUM_DEFN_DbClientId( DbClientId, CMS, "PC" ) \ ENUM_DEFN_DbClientId( DbClientId, HMI, "HMI" ) \ ENUM_DEFN_DbClientId( DbClientId, Scada, "SCADA" ) \ ENUM_DEFN_DbClientId( DbClientId, IO, "IO" ) \ ENUM_DEFN_DbClientId( DbClientId, Prot, "Protection" ) \ ENUM_DEFN_DbClientId( DbClientId, ProtUTest, "Protection Unit Test" ) \ ENUM_DEFN_DbClientId( DbClientId, ProtCfg, "Protection Config" ) \ ENUM_DEFN_DbClientId( DbClientId, DbClientTest, "DB Test Client" ) \ ENUM_DEFN_DbClientId( DbClientId, CAN, "CAN process Client ID" ) \ ENUM_DEFN_DbClientId( DbClientId, LOG, "Log Process Client ID" ) \ ENUM_DEFN_DbClientId( DbClientId, SIM, "SIM" ) \ ENUM_DEFN_DbClientId( DbClientId, CAN_TEST, "CAN TEST process ID" ) \ ENUM_DEFN_DbClientId( DbClientId, SimOpTest, "SIM Sw Test" ) \ ENUM_DEFN_DbClientId( DbClientId, Panel, "Panel" ) \ ENUM_DEFN_DbClientId( DbClientId, DbClientTestListener, "DB Test Listener" ) \ ENUM_DEFN_DbClientId( DbClientId, Simulator, "Simulator" ) \ ENUM_DEFN_DbClientId( DbClientId, Meter, "Meter" ) \ ENUM_DEFN_DbClientId( DbClientId, DbServer, "DbServer" ) \ ENUM_DEFN_DbClientId( DbClientId, SMP, "System Management Process" ) \ ENUM_DEFN_DbClientId( DbClientId, CMS2, "CMS AUX" ) \ ENUM_DEFN_DbClientId( DbClientId, CMS3, "CMS AUX 2" ) \ ENUM_DEFN_DbClientId( DbClientId, COMMS, "communication" ) \ ENUM_DEFN_DbClientId( DbClientId, CALIB, "calibration process" ) \ ENUM_DEFN_DbClientId( DbClientId, SmpTest, "SMP Test" ) \ ENUM_DEFN_DbClientId( DbClientId, UPS, "UPS process" ) \ ENUM_DEFN_DbClientId( DbClientId, UsbCopy, "USB Copy" ) \ ENUM_DEFN_DbClientId( DbClientId, Update, "Update" ) \ ENUM_DEFN_DbClientId( DbClientId, UsbGadget, "USB Gadget" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA0, "SMA0" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA1, "SMA1" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA2, "SMA2" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA3, "SMA3" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA4, "SMA4" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA5, "SMA5" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA6, "SMA6" ) \ ENUM_DEFN_DbClientId( DbClientId, SMA7, "SMA7" ) \ ENUM_DEFN_DbClientId( DbClientId, T10B, "SCADA IEC 60870" ) \ ENUM_DEFN_DbClientId( DbClientId, p2pComm, "p2p Communication" ) \ ENUM_DEFN_DbClientId( DbClientId, ProgGPIO, "GPIO programmer" ) \ ENUM_DEFN_DbClientId( DbClientId, Logic, "Logic" ) \ ENUM_DEFN_DbClientId( DbClientId, LogComms, "LogComms" ) \ ENUM_DEFN_DbClientId( DbClientId, RelayInput, "Relay Input" ) \ ENUM_DEFN_DbClientId( DbClientId, IO1, "I/O 1" ) \ ENUM_DEFN_DbClientId( DbClientId, IO2, "I/O 2" ) \ ENUM_DEFN_DbClientId( DbClientId, IO3, "I/O 3" ) \ ENUM_DEFN_DbClientId( DbClientId, IO4, "I/O 4" ) \ ENUM_DEFN_DbClientId( DbClientId, Oscillography, "Oscillography" ) \ ENUM_DEFN_DbClientId( DbClientId, PGE, "SCADA 2179" ) \ ENUM_DEFN_DbClientId( DbClientId, s61850, "SCADA IEC 61850 MMS" ) \ ENUM_DEFN_DbClientId( DbClientId, System, "System" ) \ ENUM_DEFN_DbClientId( DbClientId, ProgPSC, "PSC Programmer" ) \ ENUM_DEFN_DbClientId( DbClientId, PSC, "PSC" ) \ ENUM_DEFN_DbClientId( DbClientId, SmartGridAutomation, "Smart Grid Automation" ) \ ENUM_DEFN_DbClientId( DbClientId, GPS, "GPS" ) \ ENUM_DEFN_DbClientId( DbClientId, Hotplug, "Hotplug" ) \ ENUM_DEFN_DbClientId( DbClientId, s61850_GOOSE, "IEC 61850 GOOSE" ) \ ENUM_DEFN_DbClientId( DbClientId, WLAN, "WLAN" ) \ ENUM_DEFN_DbClientId( DbClientId, FaultLocator, "Fault Locator" ) \ ENUM_DEFN_DbClientId( DbClientId, SNTP, "SNTP" ) \ ENUM_DEFN_DbClientId( DbClientId, PMU, "PMU" ) \ ENUM_DEFN_DbClientId( DbClientId, OPCUASERVER, "OPCUA Server" ) \ ENUM_DEFN_DbClientId( DbClientId, UserCredential, "User Credential management" ) \ ENUM_DEFN_DbClientId( DbClientId, Webserver, "Webserver" ) #define ENUM_DEFNS_BaudRateType \ \ ENUM_DEFN_BaudRateType( BaudRateType, B19200, "19200bps" ) \ ENUM_DEFN_BaudRateType( BaudRateType, B115200, "115200bps" ) #define ENUM_DEFNS_ChangeEvent \ \ ENUM_DEFN_ChangeEvent( ChangeEvent, ChNoDisp, "" ) \ ENUM_DEFN_ChangeEvent( ChangeEvent, ChChanged, "Changed" ) \ ENUM_DEFN_ChangeEvent( ChangeEvent, ChErased, "Erased" ) #define ENUM_DEFNS_Co \ \ ENUM_DEFN_Co( Co, Close, "Close" ) \ ENUM_DEFN_Co( Co, Open, "Open" ) \ ENUM_DEFN_Co( Co, ClosePhA, "Close A" ) \ ENUM_DEFN_Co( Co, ClosePhB, "Close B" ) \ ENUM_DEFN_Co( Co, ClosePhC, "Close C" ) \ ENUM_DEFN_Co( Co, OpenPhA, "Open A" ) \ ENUM_DEFN_Co( Co, OpenPhB, "Open B" ) \ ENUM_DEFN_Co( Co, OpenPhC, "Open C" ) #define ENUM_DEFNS_CoSrc \ \ ENUM_DEFN_CoSrc( CoSrc, Oc1f, "OC1+" ) \ ENUM_DEFN_CoSrc( CoSrc, Oc2f, "OC2+" ) \ ENUM_DEFN_CoSrc( CoSrc, Oc3f, "OC3+" ) \ ENUM_DEFN_CoSrc( CoSrc, Oc1r, "OC1-" ) \ ENUM_DEFN_CoSrc( CoSrc, Oc2r, "OC2-" ) \ ENUM_DEFN_CoSrc( CoSrc, Oc3r, "OC3-" ) \ ENUM_DEFN_CoSrc( CoSrc, Ef1f, "EF1+" ) \ ENUM_DEFN_CoSrc( CoSrc, Ef2f, "EF2+" ) \ ENUM_DEFN_CoSrc( CoSrc, Ef3f, "EF3+" ) \ ENUM_DEFN_CoSrc( CoSrc, Ef1r, "EF1-" ) \ ENUM_DEFN_CoSrc( CoSrc, Ef2r, "EF2-" ) \ ENUM_DEFN_CoSrc( CoSrc, Ef3r, "EF3-" ) \ ENUM_DEFN_CoSrc( CoSrc, Seff, "SEF+" ) \ ENUM_DEFN_CoSrc( CoSrc, Sefr, "SEF-" ) \ ENUM_DEFN_CoSrc( CoSrc, Efll, "EFLL3" ) \ ENUM_DEFN_CoSrc( CoSrc, Ocll, "OCLL3" ) \ ENUM_DEFN_CoSrc( CoSrc, Uf, "UF" ) \ ENUM_DEFN_CoSrc( CoSrc, Of, "OF" ) \ ENUM_DEFN_CoSrc( CoSrc, Uv1, "UV1" ) \ ENUM_DEFN_CoSrc( CoSrc, Uv2, "UV2" ) \ ENUM_DEFN_CoSrc( CoSrc, Uv3, "UV3" ) \ ENUM_DEFN_CoSrc( CoSrc, Ov1, "OV1" ) \ ENUM_DEFN_CoSrc( CoSrc, Ov2, "OV2" ) \ ENUM_DEFN_CoSrc( CoSrc, Hlt, "HLT" ) \ ENUM_DEFN_CoSrc( CoSrc, ArOcef, "AR OC/EF/SEF" ) \ ENUM_DEFN_CoSrc( CoSrc, ArSef, "AR OC/EF/SEF" ) \ ENUM_DEFN_CoSrc( CoSrc, ArUv, "AR OV/UV" ) \ ENUM_DEFN_CoSrc( CoSrc, ArOv, "AR OV/UV" ) \ ENUM_DEFN_CoSrc( CoSrc, Abr, "ABR" ) \ ENUM_DEFN_CoSrc( CoSrc, Scada, "SCADA" ) \ ENUM_DEFN_CoSrc( CoSrc, Io, "IO" ) \ ENUM_DEFN_CoSrc( CoSrc, Hmi, "HMI" ) \ ENUM_DEFN_CoSrc( CoSrc, Pc, "PC" ) \ ENUM_DEFN_CoSrc( CoSrc, AoTimer, "AutoOpen Timer" ) \ ENUM_DEFN_CoSrc( CoSrc, Manual, "Manual" ) \ ENUM_DEFN_CoSrc( CoSrc, T10B, "SCADA" ) \ ENUM_DEFN_CoSrc( CoSrc, Aco, "ACO" ) \ ENUM_DEFN_CoSrc( CoSrc, Ar, "AR" ) \ ENUM_DEFN_CoSrc( CoSrc, Logic, "Logic" ) \ ENUM_DEFN_CoSrc( CoSrc, Undef, "Undefined" ) \ ENUM_DEFN_CoSrc( CoSrc, Hrm, "HRM" ) \ ENUM_DEFN_CoSrc( CoSrc, Nps1f, "NPS1+" ) \ ENUM_DEFN_CoSrc( CoSrc, Nps2f, "NPS2+" ) \ ENUM_DEFN_CoSrc( CoSrc, Nps3f, "NPS3+" ) \ ENUM_DEFN_CoSrc( CoSrc, Nps1r, "NPS1-" ) \ ENUM_DEFN_CoSrc( CoSrc, Nps2r, "NPS2-" ) \ ENUM_DEFN_CoSrc( CoSrc, Nps3r, "NPS3-" ) \ ENUM_DEFN_CoSrc( CoSrc, Npsll1, "NPSLL1" ) \ ENUM_DEFN_CoSrc( CoSrc, Npsll2, "NPSLL2" ) \ ENUM_DEFN_CoSrc( CoSrc, Npsll3, "NPSLL3" ) \ ENUM_DEFN_CoSrc( CoSrc, Ocll1, "OCLL1" ) \ ENUM_DEFN_CoSrc( CoSrc, Ocll2, "OCLL2" ) \ ENUM_DEFN_CoSrc( CoSrc, Efll1, "EFLL1" ) \ ENUM_DEFN_CoSrc( CoSrc, Efll2, "EFLL2" ) \ ENUM_DEFN_CoSrc( CoSrc, Sefll, "SEFLL" ) \ ENUM_DEFN_CoSrc( CoSrc, Ac, "UV3 AutoClose" ) \ ENUM_DEFN_CoSrc( CoSrc, AoPowerFlowDirChanged, "AutoOpen Power Flow Dir Changed" ) \ ENUM_DEFN_CoSrc( CoSrc, AoPowerFlowReduced, "AutoOpen Power Flow Reduced" ) \ ENUM_DEFN_CoSrc( CoSrc, AbrAo, "ABR AutoOpen" ) \ ENUM_DEFN_CoSrc( CoSrc, RelayInput1, "Relay Input 1" ) \ ENUM_DEFN_CoSrc( CoSrc, RelayInput2, "Relay Input 2" ) \ ENUM_DEFN_CoSrc( CoSrc, RelayInput3, "Relay Input 3" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input1, "IO1 Input 1" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input2, "IO1 Input 2" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input3, "IO1 Input 3" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input4, "IO1 Input 4" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input5, "IO1 Input 5" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input6, "IO1 Input 6" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input7, "IO1 Input 7" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1Input8, "IO1 Input 8" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input1, "IO2 Input 1" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input2, "IO2 Input 2" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input3, "IO2 Input 3" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input4, "IO2 Input 4" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input5, "IO2 Input 5" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input6, "IO2 Input 6" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input7, "IO2 Input 7" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2Input8, "IO2 Input 8" ) \ ENUM_DEFN_CoSrc( CoSrc, Uv4, "UV4 (Sag)" ) \ ENUM_DEFN_CoSrc( CoSrc, ArOcNpsEfSef, "AR OC/NPS/EF/SEF" ) \ ENUM_DEFN_CoSrc( CoSrc, Sectionaliser, "Sectionaliser" ) \ ENUM_DEFN_CoSrc( CoSrc, PGE, "SCADA" ) \ ENUM_DEFN_CoSrc( CoSrc, RelayInput, "Relay Input" ) \ ENUM_DEFN_CoSrc( CoSrc, Io1, "IO1" ) \ ENUM_DEFN_CoSrc( CoSrc, Io2, "IO2" ) \ ENUM_DEFN_CoSrc( CoSrc, Ov3, "OV3" ) \ ENUM_DEFN_CoSrc( CoSrc, Ov4, "OV4" ) \ ENUM_DEFN_CoSrc( CoSrc, s61850, "IEC 61850" ) \ ENUM_DEFN_CoSrc( CoSrc, SmartGridAutomation, "Smart Grid Automation" ) \ ENUM_DEFN_CoSrc( CoSrc, AutoSync, "Auto-sync" ) \ ENUM_DEFN_CoSrc( CoSrc, Yn, "Yn" ) \ ENUM_DEFN_CoSrc( CoSrc, ArOcNpsEfSefYn, "AR OC/NPS/EF/SEF/Yn" ) \ ENUM_DEFN_CoSrc( CoSrc, s61850_GOOSE, "GOOSE" ) \ ENUM_DEFN_CoSrc( CoSrc, I2I1, "I2/I1" ) \ ENUM_DEFN_CoSrc( CoSrc, ROCOF, "ROCOF" ) \ ENUM_DEFN_CoSrc( CoSrc, VVS, "VVS" ) \ ENUM_DEFN_CoSrc( CoSrc, PDOP, "PDOP" ) \ ENUM_DEFN_CoSrc( CoSrc, PDUP, "PDUP" ) #define ENUM_DEFNS_CoState \ \ ENUM_DEFN_CoState( CoState, O1, "Lockout" ) \ ENUM_DEFN_CoState( CoState, O2, "Open 2" ) \ ENUM_DEFN_CoState( CoState, O3, "Open 3" ) \ ENUM_DEFN_CoState( CoState, O4, "Open 4" ) \ ENUM_DEFN_CoState( CoState, C0, "Close 0" ) \ ENUM_DEFN_CoState( CoState, C1, "Close 1" ) \ ENUM_DEFN_CoState( CoState, C2, "Close 2" ) \ ENUM_DEFN_CoState( CoState, C3, "Close 3" ) \ ENUM_DEFN_CoState( CoState, C4, "Close 4" ) \ ENUM_DEFN_CoState( CoState, OReclose, "" ) \ ENUM_DEFN_CoState( CoState, CReclose, "" ) \ ENUM_DEFN_CoState( CoState, OAutoClose, "Open UV3 AutoClose" ) \ ENUM_DEFN_CoState( CoState, OABR, "Open ABR" ) \ ENUM_DEFN_CoState( CoState, OAutoOpen, "Open AutoOpen" ) \ ENUM_DEFN_CoState( CoState, SectionaliserO5, "O5" ) \ ENUM_DEFN_CoState( CoState, SectionaliserO2, "O2" ) \ ENUM_DEFN_CoState( CoState, SectionaliserO3, "O3" ) \ ENUM_DEFN_CoState( CoState, SectionaliserO4, "O4" ) #define ENUM_DEFNS_TccType \ \ ENUM_DEFN_TccType( TccType, TccType_NAN, "" ) \ ENUM_DEFN_TccType( TccType, TccType_Iec, "IEC Trip" ) \ ENUM_DEFN_TccType( TccType, TccType_AnsiTrip, "ANSI Trip" ) \ ENUM_DEFN_TccType( TccType, TccType_AnsiRes, "ANSI Reset" ) \ ENUM_DEFN_TccType( TccType, TccType_Noja, "NOJA Trip" ) \ ENUM_DEFN_TccType( TccType, TccType_User, "User Standard Curve" ) \ ENUM_DEFN_TccType( TccType, TccType_UD, "User Defined Curve" ) #define ENUM_DEFNS_LocalRemote \ \ ENUM_DEFN_LocalRemote( LocalRemote, Local, "Local" ) \ ENUM_DEFN_LocalRemote( LocalRemote, Remote, "Remote" ) #define ENUM_DEFNS_MeasPhaseSeqAbcType \ \ ENUM_DEFN_MeasPhaseSeqAbcType( MeasPhaseSeqAbcType, ABC, "ABC" ) \ ENUM_DEFN_MeasPhaseSeqAbcType( MeasPhaseSeqAbcType, ACB, "ACB" ) \ ENUM_DEFN_MeasPhaseSeqAbcType( MeasPhaseSeqAbcType, Unknown, "???" ) #define ENUM_DEFNS_MeasPhaseSeqRstType \ \ ENUM_DEFN_MeasPhaseSeqRstType( MeasPhaseSeqRstType, RST, "RST" ) \ ENUM_DEFN_MeasPhaseSeqRstType( MeasPhaseSeqRstType, RTS, "RTS" ) \ ENUM_DEFN_MeasPhaseSeqRstType( MeasPhaseSeqRstType, Unknown, "???" ) #define ENUM_DEFNS_ProtDirOut \ \ ENUM_DEFN_ProtDirOut( ProtDirOut, Forward, "+" ) \ ENUM_DEFN_ProtDirOut( ProtDirOut, Reverse, "-" ) \ ENUM_DEFN_ProtDirOut( ProtDirOut, Unknown, "?" ) #define ENUM_DEFNS_DbFileCommand \ \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdNone, "DB No file command" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdSave, "DB Save all datapoints" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdRead, "DB Read all datapoints" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdSaveConfig, "DB Save configuration" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdReadConfig, "DB Load configuration" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdCrashSave, "DB crash save" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdCrashLoad, "DB crash recover" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdManualSave, "DB Manual save all datapoints" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdSaveSwitchgearType, "DB Save Switchgear Type" ) \ ENUM_DEFN_DbFileCommand( DbFileCommand, DbFCmdResetProtConfig, "DB Reset protection configuration" ) #define ENUM_DEFNS_CommsSerialBaudRate \ \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 300, "300" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 600, "600" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 1200, "1200" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 2400, "2400" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 4800, "4800" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 9600, "9600" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 19200, "19200" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 38400, "38400" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 115200, "115200" ) \ ENUM_DEFN_CommsSerialBaudRate( CommsSerialBaudRate, 57600, "57600" ) #define ENUM_DEFNS_CommsSerialDuplex \ \ ENUM_DEFN_CommsSerialDuplex( CommsSerialDuplex, half, "Half" ) \ ENUM_DEFN_CommsSerialDuplex( CommsSerialDuplex, full, "Full" ) #define ENUM_DEFNS_CommsSerialRTSMode \ \ ENUM_DEFN_CommsSerialRTSMode( CommsSerialRTSMode, Ignore, "Ignore" ) \ ENUM_DEFN_CommsSerialRTSMode( CommsSerialRTSMode, FlowControl, "Flow Control" ) \ ENUM_DEFN_CommsSerialRTSMode( CommsSerialRTSMode, ControlPTT, "Control PTT" ) #define ENUM_DEFNS_CommsSerialRTSOnLevel \ \ ENUM_DEFN_CommsSerialRTSOnLevel( CommsSerialRTSOnLevel, High, "High" ) \ ENUM_DEFN_CommsSerialRTSOnLevel( CommsSerialRTSOnLevel, Low, "Low" ) #define ENUM_DEFNS_CommsSerialDTRMode \ \ ENUM_DEFN_CommsSerialDTRMode( CommsSerialDTRMode, Ignore, "Ignore" ) \ ENUM_DEFN_CommsSerialDTRMode( CommsSerialDTRMode, Control, "Control" ) #define ENUM_DEFNS_CommsSerialDTROnLevel \ \ ENUM_DEFN_CommsSerialDTROnLevel( CommsSerialDTROnLevel, High, "High" ) \ ENUM_DEFN_CommsSerialDTROnLevel( CommsSerialDTROnLevel, Low, "Low" ) #define ENUM_DEFNS_CommsSerialParity \ \ ENUM_DEFN_CommsSerialParity( CommsSerialParity, none, "None" ) \ ENUM_DEFN_CommsSerialParity( CommsSerialParity, even, "Even" ) \ ENUM_DEFN_CommsSerialParity( CommsSerialParity, odd, "Odd" ) #define ENUM_DEFNS_CommsSerialCTSMode \ \ ENUM_DEFN_CommsSerialCTSMode( CommsSerialCTSMode, Ignore, "Ignore" ) \ ENUM_DEFN_CommsSerialCTSMode( CommsSerialCTSMode, MonitorHigh, "Monitor High" ) \ ENUM_DEFN_CommsSerialCTSMode( CommsSerialCTSMode, MonitorLow, "Monitor Low" ) #define ENUM_DEFNS_CommsSerialDSRMode \ \ ENUM_DEFN_CommsSerialDSRMode( CommsSerialDSRMode, Ignore, "Ignore" ) \ ENUM_DEFN_CommsSerialDSRMode( CommsSerialDSRMode, MonitorHigh, "Monitor High" ) \ ENUM_DEFN_CommsSerialDSRMode( CommsSerialDSRMode, MonitorLow, "Monitor Low" ) #define ENUM_DEFNS_CommsSerialDCDMode \ \ ENUM_DEFN_CommsSerialDCDMode( CommsSerialDCDMode, Ignore, "Ignore" ) \ ENUM_DEFN_CommsSerialDCDMode( CommsSerialDCDMode, MonitorHigh, "Monitor High" ) \ ENUM_DEFN_CommsSerialDCDMode( CommsSerialDCDMode, MonitorLow, "Monitor Low" ) #define ENUM_DEFNS_CommsWlanNetworkAuthentication \ \ ENUM_DEFN_CommsWlanNetworkAuthentication( CommsWlanNetworkAuthentication, None, "WEP Open" ) \ ENUM_DEFN_CommsWlanNetworkAuthentication( CommsWlanNetworkAuthentication, Shared, "WEP Shared" ) \ ENUM_DEFN_CommsWlanNetworkAuthentication( CommsWlanNetworkAuthentication, WPA2Personal, "WPA2-Personal" ) \ ENUM_DEFN_CommsWlanNetworkAuthentication( CommsWlanNetworkAuthentication, WPAPersonal, "WPA-Personal" ) #define ENUM_DEFNS_CommsWlanDataEncryption \ \ ENUM_DEFN_CommsWlanDataEncryption( CommsWlanDataEncryption, TKIP, "TKIP" ) \ ENUM_DEFN_CommsWlanDataEncryption( CommsWlanDataEncryption, AES, "AES" ) #define ENUM_DEFNS_BinaryInputObject01Enum \ \ ENUM_DEFN_BinaryInputObject01Enum( BinaryInputObject01Enum, BinaryInput, "Binary Input" ) \ ENUM_DEFN_BinaryInputObject01Enum( BinaryInputObject01Enum, StatusBinaryInput, "Binary Input with Status" ) #define ENUM_DEFNS_BinaryInputObject02Enum \ \ ENUM_DEFN_BinaryInputObject02Enum( BinaryInputObject02Enum, NoTimeBinaryInputChange, "Binary Input Change without Time" ) \ ENUM_DEFN_BinaryInputObject02Enum( BinaryInputObject02Enum, TimeBinaryInputChange, "Binary Input Change with Time" ) \ ENUM_DEFN_BinaryInputObject02Enum( BinaryInputObject02Enum, RelTimeBinaryInputChange, "Binary Input Change with Relative Time" ) #define ENUM_DEFNS_BinaryOutputObject10Enum \ \ ENUM_DEFN_BinaryOutputObject10Enum( BinaryOutputObject10Enum, BinaryOutput, "Binary Output" ) \ ENUM_DEFN_BinaryOutputObject10Enum( BinaryOutputObject10Enum, StatusBinaryOutput, "Binary Output with Status" ) #define ENUM_DEFNS_BinaryCounterObject20Enum \ \ ENUM_DEFN_BinaryCounterObject20Enum( BinaryCounterObject20Enum, 32BitBinaryCounter, "32-Bit Binary Counter" ) \ ENUM_DEFN_BinaryCounterObject20Enum( BinaryCounterObject20Enum, 16BitBinaryCounter, "16-Bit Binary Counter" ) \ ENUM_DEFN_BinaryCounterObject20Enum( BinaryCounterObject20Enum, 32BitBinaryCounterNoFlag, "32-Bit Binary Counter without Flag" ) \ ENUM_DEFN_BinaryCounterObject20Enum( BinaryCounterObject20Enum, 16BitBinaryCounterNoFlag, "16-Bit Binary Counter without Flag" ) \ ENUM_DEFN_BinaryCounterObject20Enum( BinaryCounterObject20Enum, Disabled, "Disabled" ) #define ENUM_DEFNS_BinaryCounterObject21Enum \ \ ENUM_DEFN_BinaryCounterObject21Enum( BinaryCounterObject21Enum, 32BitFrozenCounter, "32-Bit Frozen Counter" ) \ ENUM_DEFN_BinaryCounterObject21Enum( BinaryCounterObject21Enum, 16BitFrozenCounter, "16-Bit Frozen Counter" ) \ ENUM_DEFN_BinaryCounterObject21Enum( BinaryCounterObject21Enum, 32BitFrozenCounterTimeFreeze, "32-Bit Frozen Counter with Time Of Freeze" ) \ ENUM_DEFN_BinaryCounterObject21Enum( BinaryCounterObject21Enum, 16BitFrozenCounterTimeFreeze, "16-Bit Frozen Counter with Time Of Freeze" ) \ ENUM_DEFN_BinaryCounterObject21Enum( BinaryCounterObject21Enum, 32BitFrozenCounterNoFlag, "32-Bit Frozen Counter without Flag" ) \ ENUM_DEFN_BinaryCounterObject21Enum( BinaryCounterObject21Enum, 16BitFrozenCounterNoFlag, "16-Bit Frozen Counter without Flag" ) \ ENUM_DEFN_BinaryCounterObject21Enum( BinaryCounterObject21Enum, Disabled, "Disabled" ) #define ENUM_DEFNS_BinaryCounterObject22Enum \ \ ENUM_DEFN_BinaryCounterObject22Enum( BinaryCounterObject22Enum, 32BitCounterChangeEvent, "32-Bit Counter Change Event" ) \ ENUM_DEFN_BinaryCounterObject22Enum( BinaryCounterObject22Enum, 16BitCounterChangeEvent, "16-Bit Counter Change Event" ) \ ENUM_DEFN_BinaryCounterObject22Enum( BinaryCounterObject22Enum, 32BitTimeCounterChangeEvent, "32-Bit Counter Change Event with Time" ) \ ENUM_DEFN_BinaryCounterObject22Enum( BinaryCounterObject22Enum, 16BitTimeCounterChangeEvent, "16-Bit Counter Change Event with Time" ) \ ENUM_DEFN_BinaryCounterObject22Enum( BinaryCounterObject22Enum, Disabled, "Disabled" ) #define ENUM_DEFNS_BinaryCounterObject23Enum \ \ ENUM_DEFN_BinaryCounterObject23Enum( BinaryCounterObject23Enum, 32BitFrozenCounterEvent, "32-Bit Frozen Counter Event" ) \ ENUM_DEFN_BinaryCounterObject23Enum( BinaryCounterObject23Enum, 16BitFrozenCounterEvent, "16-Bit Frozen Counter Event" ) \ ENUM_DEFN_BinaryCounterObject23Enum( BinaryCounterObject23Enum, 32BitTimeFrozenCounterEvent, "32-Bit Frozen Counter Event with Time" ) \ ENUM_DEFN_BinaryCounterObject23Enum( BinaryCounterObject23Enum, 16BitTimeFrozenCounterEvent, "16-Bit Frozen Counter Event with Time" ) \ ENUM_DEFN_BinaryCounterObject23Enum( BinaryCounterObject23Enum, Disabled, "Disabled" ) #define ENUM_DEFNS_AnalogInputObject30Enum \ \ ENUM_DEFN_AnalogInputObject30Enum( AnalogInputObject30Enum, 32BitAnalogInput, "32-Bit Analog Input" ) \ ENUM_DEFN_AnalogInputObject30Enum( AnalogInputObject30Enum, 16BitAnalogInput, "16-Bit Analog Input" ) \ ENUM_DEFN_AnalogInputObject30Enum( AnalogInputObject30Enum, 32BitAnalogInputNoFlag, "32-Bit Analog Input without Flag" ) \ ENUM_DEFN_AnalogInputObject30Enum( AnalogInputObject30Enum, 16BitAnalogInputNoFlag, "16-Bit Analog Input without Flag" ) #define ENUM_DEFNS_AnalogInputObject32Enum \ \ ENUM_DEFN_AnalogInputObject32Enum( AnalogInputObject32Enum, 32BitAnalogChangeEventNoTimeReportAll, "Var 1: 32-Bit Analog Change Event without Time - Report All" ) \ ENUM_DEFN_AnalogInputObject32Enum( AnalogInputObject32Enum, 16BitAnalogChangeEventNoTimeReportAll, "Var 2: 16-Bit Analog Change Event without Time - Report All" ) \ ENUM_DEFN_AnalogInputObject32Enum( AnalogInputObject32Enum, 32BitTimeAnalogChangeEvent, "Var 3: 32-Bit Analog Change Event with Time" ) \ ENUM_DEFN_AnalogInputObject32Enum( AnalogInputObject32Enum, 16BitTimeAnalogChangeEvent, "Var 4: 16-Bit Analog Change Event with Time" ) \ ENUM_DEFN_AnalogInputObject32Enum( AnalogInputObject32Enum, 32BitAnalogChangeEventNoTimeReportLast, "Var 1: 32-Bit Analog Change Event without Time - Report Last" ) \ ENUM_DEFN_AnalogInputObject32Enum( AnalogInputObject32Enum, 16BitAnalogChangeEventNoTimeReportLast, "Var 2: 16-Bit Analog Change Event without Time - Report Last" ) #define ENUM_DEFNS_AnalogInputObject34Enum \ \ ENUM_DEFN_AnalogInputObject34Enum( AnalogInputObject34Enum, 16BitAnalogInputReportDeadband, "16-Bit Analog Input Reporting Deadband" ) \ ENUM_DEFN_AnalogInputObject34Enum( AnalogInputObject34Enum, 32BitAnalogInputReportDeadband, "32-Bit Analog Input Reporting Deadband" ) #define ENUM_DEFNS_ProtStatus \ \ ENUM_DEFN_ProtStatus( ProtStatus, Prot, "Prot" ) \ ENUM_DEFN_ProtStatus( ProtStatus, AR, "AR" ) \ ENUM_DEFN_ProtStatus( ProtStatus, LL, "LL" ) \ ENUM_DEFN_ProtStatus( ProtStatus, EF, "EF" ) \ ENUM_DEFN_ProtStatus( ProtStatus, SEF, "SEF" ) \ ENUM_DEFN_ProtStatus( ProtStatus, UV, "UV" ) \ ENUM_DEFN_ProtStatus( ProtStatus, OV, "OV" ) \ ENUM_DEFN_ProtStatus( ProtStatus, UF, "UF" ) \ ENUM_DEFN_ProtStatus( ProtStatus, OF, "OF" ) \ ENUM_DEFN_ProtStatus( ProtStatus, ABR, "ABR" ) \ ENUM_DEFN_ProtStatus( ProtStatus, CLP, "CLP" ) \ ENUM_DEFN_ProtStatus( ProtStatus, SSM, "SSM" ) \ ENUM_DEFN_ProtStatus( ProtStatus, DFT, "DFT" ) \ ENUM_DEFN_ProtStatus( ProtStatus, MNT, "MNT" ) \ ENUM_DEFN_ProtStatus( ProtStatus, ACO, "ACO" ) \ ENUM_DEFN_ProtStatus( ProtStatus, 79_2, "79-2" ) \ ENUM_DEFN_ProtStatus( ProtStatus, 79_3, "79-3" ) \ ENUM_DEFN_ProtStatus( ProtStatus, HRM, "HRM" ) \ ENUM_DEFN_ProtStatus( ProtStatus, NPS, "NPS" ) \ ENUM_DEFN_ProtStatus( ProtStatus, UV4, "UV4 (Sag)" ) \ ENUM_DEFN_ProtStatus( ProtStatus, LLB, "LLB" ) \ ENUM_DEFN_ProtStatus( ProtStatus, AlarmMode, "Alarm Mode" ) \ ENUM_DEFN_ProtStatus( ProtStatus, Yn, "Yn" ) \ ENUM_DEFN_ProtStatus( ProtStatus, OV3, "OV3" ) \ ENUM_DEFN_ProtStatus( ProtStatus, ROCOF, "ROCOF" ) \ ENUM_DEFN_ProtStatus( ProtStatus, VVS, "VVS" ) \ ENUM_DEFN_ProtStatus( ProtStatus, PDOP, "PDOP" ) \ ENUM_DEFN_ProtStatus( ProtStatus, PDUP, "PDUP" ) \ ENUM_DEFN_ProtStatus( ProtStatus, HLT, "HLT" ) #define ENUM_DEFNS_LogStartEnd \ \ ENUM_DEFN_LogStartEnd( LogStartEnd, Start, "(start)" ) \ ENUM_DEFN_LogStartEnd( LogStartEnd, End, "(end)" ) \ ENUM_DEFN_LogStartEnd( LogStartEnd, NaSet, "" ) \ ENUM_DEFN_LogStartEnd( LogStartEnd, NaReset, "" ) #define ENUM_DEFNS_LogEventSrc \ \ ENUM_DEFN_LogEventSrc( LogEventSrc, Oc1f, "OC1+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Oc2f, "OC2+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Oc3f, "OC3+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Oc1r, "OC1-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Oc2r, "OC2-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Oc3r, "OC3-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ef1f, "EF1+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ef2f, "EF2+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ef3f, "EF3+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ef1r, "EF1-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ef2r, "EF2-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ef3r, "EF3-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Seff, "SEF+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Sefr, "SEF-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Sst, "SST" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ocll, "OCLL3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Efll, "EFLL3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Uv1, "UV1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Uv2, "UV2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Uv3, "UV3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ov1, "OV1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ov2, "OV2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UrstUnder, "Urst LT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UabcUnder, "Uabc LT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UrstOver, "Urst GT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UabcOver, "Uabc GT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Uf, "UF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Of, "OF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Lsd, "LSD" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Vrc, "VRC" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Abr, "ABR" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ir, "IR" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Clp, "CLP" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ArOcef, "AR OC/EF/SEF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ArSef, "AR OC/EF/SEF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Hmi, "HMI" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Pc, "PC" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io, "I/O" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Scada, "SCADA" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Tta, "TTA" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ArUv, "AR OV/UV" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, DeOcefsef, "DE OC/EF/SEF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ArOv, "AR OV/UV" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Sim, "SIM" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Comms, "Comms" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1, "I/O1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2, "I/O2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Relay, "Relay" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Prot, "Protection" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ao, "AutoOpen" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Calib, "Calibration process" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, HmiClient, "HMI" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, SwSimul, "Switch Simulator" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Smp, "SMP" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, HLT, "HLT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, LL, "LL" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, AbrAo, "ABR AutoOpen" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Usb, "USB" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, T10B, "SCADA" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ExtLoad, "ExtLoad" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Aco, "ACO" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Logic, "Logic" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, RelayInput, "Relay Input" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io3, "I/O3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io4, "I/O4" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UrUnder, "Ur LT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UaUnder, "Ua LT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UrOver, "Ur GT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UaOver, "Ua GT" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ar, "AR" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, De, "DE" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Oscillography, "OSC" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Hrm, "HRM" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Nps1f, "NPS1+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Nps2f, "NPS2+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Nps3f, "NPS3+" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Nps1r, "NPS1-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Nps2r, "NPS2-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Nps3r, "NPS3-" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Npsll1, "NPSLL1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Npsll2, "NPSLL2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Npsll3, "NPSLL3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ocll1, "OCLL1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ocll2, "OCLL2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Efll1, "EFLL1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Efll2, "EFLL2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Sefll, "SEFLL" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Mode, "Mode" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ac, "UV3 AutoClose" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input1, "I/O1 Input 1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input2, "I/O1 Input 2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input3, "I/O1 Input 3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input4, "I/O1 Input 4" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input5, "I/O1 Input 5" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input6, "I/O1 Input 6" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input7, "I/O1 Input 7" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io1Input8, "I/O1 Input 8" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input1, "I/O2 Input 1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input2, "I/O2 Input 2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input3, "I/O2 Input 3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input4, "I/O2 Input 4" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input5, "I/O2 Input 5" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input6, "I/O2 Input 6" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input7, "I/O2 Input 7" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Io2Input8, "I/O2 Input 8" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, RelayInput1, "Relay Input 1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, RelayInput2, "Relay Input 2" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, RelayInput3, "Relay Input 3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Uv4, "UV4 (Sag)" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ArOcNpsEfSef, "AR OC/NPS/EF/SEF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, DeOcNpsEfSef, "DE OC/NPS/EF/SEF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Auto, "AUTO" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Sectionaliser, "Sectionaliser" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, CloseBlocking, "Logic Close Blocking" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, LLB, "LLB" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, PGE, "SCADA" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, System, "System" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ov3, "OV3" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Ov4, "OV4" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, s61850, "IEC 61850" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Psc, "PSC" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, SmartGridAutomation, "SGA" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, GPS, "GPS" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Synchronisation, "Synchronisation" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, MPCB, "Multiphase Close Blocking" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Yn, "Yn" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ArOcNpsEfSefYn, "AR OC/NPS/EF/SEF/Yn" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, s61850_GOOSE, "GOOSE" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, I2I1, "I2/I1" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, UPS, "UPS" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, FaultLocator, "Fault Locator" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, SGA_Logic, "SGA/Logic" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, SNTP, "SNTP" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, ROCOF, "ROCOF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, VVS, "VVS" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, RTC, "RTC" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, CBF, "CBF" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, PDOP, "PDOP" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, PDUP, "PDUP" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, PMU, "PMU" ) \ ENUM_DEFN_LogEventSrc( LogEventSrc, Undefined, "Undefined" ) #define ENUM_DEFNS_LogEventPhase \ \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseNAN, "" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseA, "A" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseB, "B" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseC, "C" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseN, "N" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseNa, "" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseAB, "AB" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseBC, "BC" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseCA, "CA" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseABC, "ABC" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseR, "R" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseS, "S" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseT, "T" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseRS, "RS" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseST, "ST" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseTR, "TR" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseAE, "AE" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseBE, "BE" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseCE, "CE" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseABE, "ABE" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseBCE, "BCE" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseCAE, "CAE" ) \ ENUM_DEFN_LogEventPhase( LogEventPhase, PhaseABCE, "ABCE" ) #define ENUM_DEFNS_EventDeState \ \ ENUM_DEFN_EventDeState( EventDeState, eventDeStateForward, "+" ) \ ENUM_DEFN_EventDeState( EventDeState, eventDeStateReverse, "-" ) \ ENUM_DEFN_EventDeState( EventDeState, eventDeStateUnknown, "?" ) #define ENUM_DEFNS_ActiveGrp \ \ ENUM_DEFN_ActiveGrp( ActiveGrp, activeGrpNoGroup, "" ) \ ENUM_DEFN_ActiveGrp( ActiveGrp, activeGrp1, "1" ) \ ENUM_DEFN_ActiveGrp( ActiveGrp, activeGrp2, "2" ) \ ENUM_DEFN_ActiveGrp( ActiveGrp, activeGrp3, "3" ) \ ENUM_DEFN_ActiveGrp( ActiveGrp, activeGrp4, "4" ) #define ENUM_DEFNS_CmsErrorCodes \ \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, OK, "OK" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, IncorrectAccessCode, "Incorrect Access Code" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InvalidDataPointID, "Invalid Data Point ID" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, ValueOutOfRange, "Value Out Of Range" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InvalidValueSize, "Invalid Value Size" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InvalidChunkIndex, "Invalid Chunk Index" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InvalidFileName, "Invalid File Name" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, FileReadError, "File Read Error" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, FileWriteError, "File Write Error" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, FileNameConflict, "File Name Conflict" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InvalidDirectoryName, "Invalid Directory Name" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, OutOfSpace, "Out Of Space" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InvalidPermissions, "Invalid Permissions" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, SystemError, "System Error" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InvalidCommand, "Invalid Command" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, InaccurateValue, "Value is inaccurate" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, RequestApprovalTimeout, "Request Approval Timeout" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, RequestDenied, "Request Denied" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, FileNotExisting, "File does not exist" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, DirectoryNotExisting, "Directory does not exist" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, OpenSwitchgearFailed, "Open request failed" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, CloseSwitchgearFailed, "Close request failed" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, DataLogFailed, "Data Log Failed" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, ProcessingFileError, "File processing error" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, TimedOut, "Timed Out" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, DuplicateMessageInQueue, "Duplicate Message In Queue" ) \ ENUM_DEFN_CmsErrorCodes( CmsErrorCodes, NullValue, "Null Value" ) #define ENUM_DEFNS_LineSupplyStatus \ \ ENUM_DEFN_LineSupplyStatus( LineSupplyStatus, On, "ON" ) \ ENUM_DEFN_LineSupplyStatus( LineSupplyStatus, Off, "OFF" ) \ ENUM_DEFN_LineSupplyStatus( LineSupplyStatus, High, "HIGH" ) \ ENUM_DEFN_LineSupplyStatus( LineSupplyStatus, Low, "LOW" ) \ ENUM_DEFN_LineSupplyStatus( LineSupplyStatus, Surge, "SURGE" ) #define ENUM_DEFNS_TccCurveName \ \ ENUM_DEFN_TccCurveName( TccCurveName, TimeDefinite, "TD" ) \ ENUM_DEFN_TccCurveName( TccCurveName, UserDefined, "UDC" ) #define ENUM_DEFNS_HmiTccCurveClass \ \ ENUM_DEFN_HmiTccCurveClass( HmiTccCurveClass, Td, "TD" ) \ ENUM_DEFN_HmiTccCurveClass( HmiTccCurveClass, Reset, "Reset" ) \ ENUM_DEFN_HmiTccCurveClass( HmiTccCurveClass, NoReset, "No Reset" ) #define ENUM_DEFNS_SwState \ \ ENUM_DEFN_SwState( SwState, Unknown, "Disconn." ) \ ENUM_DEFN_SwState( SwState, Open, "Open" ) \ ENUM_DEFN_SwState( SwState, Closed, "Closed" ) \ ENUM_DEFN_SwState( SwState, Lockout, "Lockout" ) \ ENUM_DEFN_SwState( SwState, ILock, "MechLock" ) \ ENUM_DEFN_SwState( SwState, OpenABR, "Open" ) \ ENUM_DEFN_SwState( SwState, Failure, "Failure" ) \ ENUM_DEFN_SwState( SwState, OpenACO, "Open" ) \ ENUM_DEFN_SwState( SwState, OpenAC, "Open UV3" ) \ ENUM_DEFN_SwState( SwState, LogicallyLocked, "SWLocked" ) #define ENUM_DEFNS_OcEfSefDirs \ \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UUU, "?/?/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UUP, "?/?/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UUN, "?/?/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UPU, "?/+/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UPP, "?/+/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UPN, "?/+/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UNU, "?/-/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UNP, "?/-/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, UNN, "?/-/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PUU, "+/?/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PUP, "+/?/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PUN, "+/?/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PPU, "+/+/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PPP, "+/+/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PPN, "+/+/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PNU, "+/-/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PNP, "+/-/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, PNN, "+/-/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NUU, "-/?/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NUP, "-/?/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NUN, "-/?/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NPU, "-/+/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NPP, "-/+/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NPN, "-/+/-" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NNU, "-/-/?" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NNP, "-/-/+" ) \ ENUM_DEFN_OcEfSefDirs( OcEfSefDirs, NNN, "-/-/-" ) #define ENUM_DEFNS_TripModeDLA \ \ ENUM_DEFN_TripModeDLA( TripModeDLA, Disable, "Disable" ) \ ENUM_DEFN_TripModeDLA( TripModeDLA, Lockout, "Lockout" ) \ ENUM_DEFN_TripModeDLA( TripModeDLA, Alarm, "Alarm" ) #define ENUM_DEFNS_HmiAuthGroup \ \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group0, "Default" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group1, "Password" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group2, "Password" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group3, "Factory" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group4, "Recovery" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group5, "Group 5" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group6, "Group 6" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group7, "Group 7" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group8, "Group 8" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group9, "Group 9" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group10, "Group 10" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group11, "Group 11" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group12, "Group 12" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group13, "Group 13" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group14, "Group 14" ) \ ENUM_DEFN_HmiAuthGroup( HmiAuthGroup, Group15, "Group 15" ) #define ENUM_DEFNS_Bool \ \ ENUM_DEFN_Bool( Bool, False, "False" ) \ ENUM_DEFN_Bool( Bool, True, "True" ) #define ENUM_DEFNS_CommsPort \ \ ENUM_DEFN_CommsPort( CommsPort, Rs232, "RS232" ) \ ENUM_DEFN_CommsPort( CommsPort, UsbA, "USBA" ) \ ENUM_DEFN_CommsPort( CommsPort, UsbB, "USBB" ) \ ENUM_DEFN_CommsPort( CommsPort, UsbC, "USBC" ) \ ENUM_DEFN_CommsPort( CommsPort, Rs232Dte2, "RS232P" ) \ ENUM_DEFN_CommsPort( CommsPort, UsbD, "USBA2" ) \ ENUM_DEFN_CommsPort( CommsPort, UsbE, "USBB2" ) \ ENUM_DEFN_CommsPort( CommsPort, UsbF, "USBC2" ) \ ENUM_DEFN_CommsPort( CommsPort, UsbGadget, "CMS" ) \ ENUM_DEFN_CommsPort( CommsPort, PortNone, "None" ) \ ENUM_DEFN_CommsPort( CommsPort, Lan, "LAN" ) \ ENUM_DEFN_CommsPort( CommsPort, Wlan, "WLAN" ) \ ENUM_DEFN_CommsPort( CommsPort, MobileNetwork, "Mobile Network Modem" ) \ ENUM_DEFN_CommsPort( CommsPort, GPS, "GPS" ) \ ENUM_DEFN_CommsPort( CommsPort, LanB, "LAN2" ) #define ENUM_DEFNS_CommsSerialPinStatus \ \ ENUM_DEFN_CommsSerialPinStatus( CommsSerialPinStatus, CommsSerialPinStatusLow, "Low" ) \ ENUM_DEFN_CommsSerialPinStatus( CommsSerialPinStatus, CommsSerialPinStatusHigh, "High" ) \ ENUM_DEFN_CommsSerialPinStatus( CommsSerialPinStatus, CommsSerialPinStatusIgnore, "Ignore" ) #define ENUM_DEFNS_CommsConnectionStatus \ \ ENUM_DEFN_CommsConnectionStatus( CommsConnectionStatus, CommsConnectionStatusDisconnected, "Disconnected" ) \ ENUM_DEFN_CommsConnectionStatus( CommsConnectionStatus, CommsConnectionStatusConnected, "Connected" ) \ ENUM_DEFN_CommsConnectionStatus( CommsConnectionStatus, CommsConnectionStatusConnecting, "Connecting" ) #define ENUM_DEFNS_CommsPortDetectedType \ \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, UnknownType, "Unknown" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, SerialType, "Serial" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, DualSerialType, "Dual Serial" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, LanType, "LAN" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, WlanType, "WLAN" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, GPRSType, "GPRS" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, BluetoothType, "Bluetooth" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, UnsupportedType, "Unsupported" ) \ ENUM_DEFN_CommsPortDetectedType( CommsPortDetectedType, MobileNetworkType, "Mobile Network Modem" ) #define ENUM_DEFNS_SerialPortConfigType \ \ ENUM_DEFN_SerialPortConfigType( SerialPortConfigType, NotUsed, "Disabled" ) \ ENUM_DEFN_SerialPortConfigType( SerialPortConfigType, SerialDirect, "Serial Direct" ) \ ENUM_DEFN_SerialPortConfigType( SerialPortConfigType, SerialModem, "Modem" ) \ ENUM_DEFN_SerialPortConfigType( SerialPortConfigType, SerialRadio, "Radio" ) \ ENUM_DEFN_SerialPortConfigType( SerialPortConfigType, SerialGPRS, "GPRS" ) #define ENUM_DEFNS_UsbPortConfigType \ \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, NotUsed, "Disabled" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, UsbSerialDirect, "Serial Direct" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, UsbSerialModem, "Modem" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, UsbSerialRadio, "Radio" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, UsbLAN, "LAN" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, UsbWLAN, "WLAN" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, UsbGPRS, "GPRS" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, UsbBlueTooth, "Bluetooth" ) \ ENUM_DEFN_UsbPortConfigType( UsbPortConfigType, MobileNetwork, "Mobile Network" ) #define ENUM_DEFNS_LanPortConfigType \ \ ENUM_DEFN_LanPortConfigType( LanPortConfigType, Disabled, "Disabled" ) \ ENUM_DEFN_LanPortConfigType( LanPortConfigType, LAN, "LAN" ) #define ENUM_DEFNS_DataflowUnit \ \ ENUM_DEFN_DataflowUnit( DataflowUnit, UsingByteCount, "Byte" ) \ ENUM_DEFN_DataflowUnit( DataflowUnit, UsingPacketCount, "Packet" ) #define ENUM_DEFNS_CommsConnType \ \ ENUM_DEFN_CommsConnType( CommsConnType, Disabled, "Disabled" ) \ ENUM_DEFN_CommsConnType( CommsConnType, Serial, "Serial" ) \ ENUM_DEFN_CommsConnType( CommsConnType, SerialModem, "SerialModem" ) \ ENUM_DEFN_CommsConnType( CommsConnType, SerialRadio, "SerialRadio" ) \ ENUM_DEFN_CommsConnType( CommsConnType, LAN, "LAN" ) \ ENUM_DEFN_CommsConnType( CommsConnType, WLAN, "WLAN" ) #define ENUM_DEFNS_YesNo \ \ ENUM_DEFN_YesNo( YesNo, No, "No" ) \ ENUM_DEFN_YesNo( YesNo, Yes, "Yes" ) #define ENUM_DEFNS_ProtectionState \ \ ENUM_DEFN_ProtectionState( ProtectionState, Init, "Unknown: Initialised" ) \ ENUM_DEFN_ProtectionState( ProtectionState, NFF, "Closed: NFF" ) \ ENUM_DEFN_ProtectionState( ProtectionState, Pup, "Closed: Pickup" ) \ ENUM_DEFN_ProtectionState( ProtectionState, Fault, "Closed: Fault" ) \ ENUM_DEFN_ProtectionState( ProtectionState, AR, "Open: AR" ) \ ENUM_DEFN_ProtectionState( ProtectionState, Lockout, "Open: Lockout" ) \ ENUM_DEFN_ProtectionState( ProtectionState, ABR, "Open: ABR" ) \ ENUM_DEFN_ProtectionState( ProtectionState, OpenACO, "Open: ACO" ) \ ENUM_DEFN_ProtectionState( ProtectionState, OpenAC, "Open UV3 AutoClose" ) #define ENUM_DEFNS_AutoIp \ \ ENUM_DEFN_AutoIp( AutoIp, YesUsingDhcp, "Yes" ) \ ENUM_DEFN_AutoIp( AutoIp, NotUseDhcp, "No" ) #define ENUM_DEFNS_ProgramSimCmd \ \ ENUM_DEFN_ProgramSimCmd( ProgramSimCmd, None, "No command (default value)" ) \ ENUM_DEFN_ProgramSimCmd( ProgramSimCmd, WriteFile, "Write file /var/nand/simimg/img.new" ) \ ENUM_DEFN_ProgramSimCmd( ProgramSimCmd, WriteFileNoRestart, "Write but do not restart Relay" ) #define ENUM_DEFNS_UsbDiscCmd \ \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, None, "No command" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, CopyLogs, "Copy Logs" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, CopyUpdates, "Copy Updates" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, RestoreLogs, "Restore logs" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, RestoreSettings, "Restore settings" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, CopyInt, "Copy interruption logs" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, CopySag, "Copy sag/swell logs" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, CopyHrm, "Copy harmonic logs" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, CopyUsbInstallFiles, "Copy installation files" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, Eject, "Eject USB" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, FindDNP3SAUpdateKey, "Find DNP3-SA update key" ) \ ENUM_DEFN_UsbDiscCmd( UsbDiscCmd, CopyDNP3SAUpdateKey, "Copy DNP3-SA update key" ) #define ENUM_DEFNS_UsbDiscStatus \ \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, NoDisc, "No Disc" ) \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, Ready, "Ready" ) \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, BusyCopyLog, "Copying Logs" ) \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, BusyCopyUpdate, "Copying Updates" ) \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, BusyCopyOsc, "Copying Captures" ) \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, AboutToUnmount, "Syncing Filesystem" ) \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, BusyFindDNP3SAUpdateKey, "Searching" ) \ ENUM_DEFN_UsbDiscStatus( UsbDiscStatus, BusyCopyDNP3SAUpdateKey, "Copying DNP3SA key" ) #define ENUM_DEFNS_UpdateError \ \ ENUM_DEFN_UpdateError( UpdateError, None, "None" ) \ ENUM_DEFN_UpdateError( UpdateError, Unspecified, "Unspecified Error" ) \ ENUM_DEFN_UpdateError( UpdateError, UpdateCount, "Too Many Update Files" ) \ ENUM_DEFN_UpdateError( UpdateError, UpdateInvalid, "Invalid Update File" ) \ ENUM_DEFN_UpdateError( UpdateError, UpdateUnknown, "Unrecognised Update Type" ) \ ENUM_DEFN_UpdateError( UpdateError, FileSystemIo, "Internal File System Error" ) \ ENUM_DEFN_UpdateError( UpdateError, DbVersion, "Invalid Database Version" ) \ ENUM_DEFN_UpdateError( UpdateError, UsbIoErr, "USB Read Error" ) \ ENUM_DEFN_UpdateError( UpdateError, HwMajor, "Unsupported hardware version" ) \ ENUM_DEFN_UpdateError( UpdateError, ModuleCode, "Unsupported module" ) \ ENUM_DEFN_UpdateError( UpdateError, FileSystemMismatch, "Incompatible file system" ) \ ENUM_DEFN_UpdateError( UpdateError, BackupSettingsFailed, "Backup of settings failed" ) \ ENUM_DEFN_UpdateError( UpdateError, BackupLogsFailed, "Backup of logs failed" ) \ ENUM_DEFN_UpdateError( UpdateError, InvalidMicrokernel, "Invalid microkernel" ) \ ENUM_DEFN_UpdateError( UpdateError, BackupBlocked, "Backup obstructed" ) \ ENUM_DEFN_UpdateError( UpdateError, MissingSerialNum, "Missing Serial Number" ) \ ENUM_DEFN_UpdateError( UpdateError, CommsError, "Comms Error" ) \ ENUM_DEFN_UpdateError( UpdateError, UpdateTimeout, "Timeout" ) \ ENUM_DEFN_UpdateError( UpdateError, MissingDependency, "Missing Dependency" ) \ ENUM_DEFN_UpdateError( UpdateError, NoFiles, "No Files" ) \ ENUM_DEFN_UpdateError( UpdateError, DbAccessError, "Database Access Error" ) \ ENUM_DEFN_UpdateError( UpdateError, RevertFailed, "Revert Failed" ) #define ENUM_DEFNS_SerialPartCode \ \ ENUM_DEFN_SerialPartCode( SerialPartCode, Invalid, "Invalid" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM200_15_16_630, "OSM 15-16-630-200" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM203_27_12_630, "OSM 27-12-630-203" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM210_15_16_630, "OSM 15-16-630-210" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM210_27_12_630, "OSM 27-12-630-213" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_15_16_800_REAL, "OSM 15-16-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM312_15_16_800, "OSM 15-16-800-312" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_15_16_800_DIN, "OSM 15-16-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM311_15_16_800_DIN, "OSM 15-16-800-311" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, GPIO01, "GPIO-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, PAN01, "PAN-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, SIM01, "SIM-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, RLM01, "RLM-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM320_15_12_800, "OSM 15-12-800-320" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM320_27_12_800, "OSM 27-12-800-320" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_12_630, "OSM 38-12-630-300" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM301_38_12_630, "OSM 38-12-630-301" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_15_16_800, "OSM 15-12-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_27_12_800, "OSM 27-12-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, RLM02, "RLM-02" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_12_800, "OSM 38-12-800-300" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM301_38_12_800, "OSM 38-12-800-301" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM312_15_12_800, "OSM 15-12-800-312" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM312_27_12_800, "OSM 27-12-800-312" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM220_15_16_630, "OSM 15-16-630-220" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM223_27_12_630, "OSM 27-12-630-223" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_27_12_630, "OSM 27-12-630-300" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, SIM02, "SIM-02" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM211_15_16_630, "OSM 15-16-630-211" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, SIM03, "SIM-03" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_15_12_800_DIN, "OSM 15-12-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_27_12_800_DIN, "OSM 27-12-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM311_27_12_800, "OSM 27-12-800-311" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM311_27_12_800_DIN, "OSM 27-12-800-311" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM311_15_16_800, "OSM 15-16-800-311" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, RLM20, "RLM-20" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM302_38_12_800, "OSM 38-12-800-302" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_15_16_800_GMK, "OSM 15-16-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_27_12_800_GMK, "OSM 27-12-800-310" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, RLM03, "RLM-03" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, RLM15, "RLM-15" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, RLM15_4G, "RLM-15-4G" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_15_16_800_SEF, "OSM 15-16-800-310-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_27_12_800_SEF, "OSM 27-12-800-310-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_12_800_SEF, "OSM 38-12-800-300-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM312_15_16_800_SEF, "OSM 15-16-800-312-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM312_27_12_800_SEF, "OSM 27-12-800-312-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM302_38_12_800_SEF, "OSM 38-12-800-302-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_16_800_SEF, "OSM 38-16-800-300-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM302_38_16_800_SEF, "OSM 38-16-800-302-SEF" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_16_800, "OSM 38-16-800-300" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM301_38_16_800, "OSM 38-16-800-301" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM302_38_16_800, "OSM 38-16-800-302" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, PSC20, "PSC-20" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, SIM20, "SIM-20" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, RLM20_4G, "RLM-20-4G" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_16_800_DCT, "OSM 38-16-800-300-DCT" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM313_15_16_800, "OSM 15-16-800-313" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM313_27_12_800, "OSM 27-12-800-313" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM303_38_12_800, "OSM 38-12-800-303" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM303_38_16_800, "OSM 38-16-800-303" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_15_16_800_60C, "OSM 15-16-800-310-60C" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM310_27_12_800_60C, "OSM 27-12-800-310-60C" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_12_800_60C, "OSM 38-12-800-300-60C" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_16_800_60C, "OSM 38-16-800-300-60C" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM314_15_16_800, "OSM 15-16-800-314" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM314_27_12_800, "OSM 27-12-800-314" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM304_38_16_800, "OSM 38-16-800-304" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, OSM300_38_16_800_D60, "OSM 38-16-800-300-D60" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, LANG01, "LANG-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, LANG20, "LANG-20" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, DBS01, "DBS-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UKERN01, "UKERN-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UKERN02, "UKERN-02" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UKERN03, "UKERN-03" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UKERN15, "UKERN-15" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UKERN15_4G, "UKERN-15-4G" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UBOOT01, "UBOOT-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UBOOT02, "UBOOT-02" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UBOOT20, "UBOOT-20" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UBOOT03, "UBOOT-03" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UBOOT15, "UBOOT-15" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UBOOT15_4G, "UBOOT-15-4G" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, UBOOT20_4G, "UBOOT20_4G" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, FPGA01, "FPGA-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, SMP01, "SMP-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, DNP3S01, "DNP3S-01" ) \ ENUM_DEFN_SerialPartCode( SerialPartCode, S61850_CID01, "S61850 CID" ) #define ENUM_DEFNS_HmiMsgboxTitle \ \ ENUM_DEFN_HmiMsgboxTitle( HmiMsgboxTitle, Unknown, "MESSAGE" ) \ ENUM_DEFN_HmiMsgboxTitle( HmiMsgboxTitle, FastkeyError, "WARNING" ) \ ENUM_DEFN_HmiMsgboxTitle( HmiMsgboxTitle, SetDatapoint, "CHANGE VALUE WARNING" ) \ ENUM_DEFN_HmiMsgboxTitle( HmiMsgboxTitle, USBOperation, "USB Operation" ) #define ENUM_DEFNS_HmiMsgboxOperation \ \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, Unknown, "perform operation" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyProtection, "modify protection" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyEF, "modify Earth Fault (EF)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeySEF, "modify SEF" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyAR, "modify Auto-Reclosing (AR)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyCL, "modify Cold Load (CL)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyLL, "modify Live Line (LL)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyGroup, "modify active group" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyMode, "modify remote mode" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyClose, "close" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyOpen, "open" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, SetDatapoint, "edit value" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyABR, "modify Auto Backfeed Restore (ABR)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyACO, "modify Auto Change Over (ACO)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyUV, "modify Undervoltage (UV)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyPhaseSelA, "modify Phase Select A" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyPhaseSelB, "modify Phase Select B" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyPhaseSelC, "modify Phase Select C" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyHLT, "modify Hot Line Tag (HLT)" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyLogicVAR1, "modify VAR1" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, FastkeyLogicVAR2, "modify VAR2" ) \ ENUM_DEFN_HmiMsgboxOperation( HmiMsgboxOperation, InstallFirmwareFromUSB, "install firmware from USB" ) #define ENUM_DEFNS_HmiMsgboxError \ \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, Unknown, "Error unknown" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, DpidWrite, "Denied" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, DpidWriteMode, "Wrong control mode" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, WriteHlt, "Hot Line Tag enabled" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, DpidConfirm, "Blocked" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, FastkeyDisabled, "Fast Key disabled" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, Internal, "Internal error" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, Blank, "" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, ExtLoadOverload, "External Load Overload" ) \ ENUM_DEFN_HmiMsgboxError( HmiMsgboxError, UpdateInProgress, "Another source is performing update" ) #define ENUM_DEFNS_BaxMetaId \ \ ENUM_DEFN_BaxMetaId( BaxMetaId, DbMajor, "{I32}Database major version" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, VerStr, "{UTF8}File data version" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, FileData, "{I32:SerialPartCode}File data type" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, Source, "{UTF8}File data source" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, HwMajor, "{I32}Max supported major hardware version" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, HwMajorList, "{I32_ARRAY}Supported major hardware versions" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, DbMinor, "{I32}Database minor version" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, HwType, "{I32:SerialPartCode}Target hardware type" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, LanguageId, "{I32}Language ID" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, ResourceId, "{I32}Resource ID" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, VerMajor, "{I32}Major version number" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, VerMinor, "{I32}Minor version number" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, VerRc, "{I32}Release candidate number" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, Desc, "{UTF8}Description" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, FamilyId, "{I32}Family ID" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, ObfuscationSalt, "{RAW}Obfuscation salt" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, ObfuscationCheck, "{RAW}Obfuscation check value" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, HwTypeOthers, "{I32_ARRAY}Other hardware types" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, HwMajorOthers, "{I32_ARRAY}Other hardware versions" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpState, "{RAW}SMP State" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpStep, "{RAW}SMP Step" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpExceptionCount, "{I32}SMP Exception Count" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpExceptions, "{RAW}SMP Exceptions" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpUpFailConsecutive, "{I32}SMP Consecutive Startup Failures" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpUpFailTotal, "{I32}SMP Total Startup Failures" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpDownFailConsecutive, "{I32}SMP Consecutive Shutdown Failures" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpDownFailTotal, "{I32}SMP Total Shutdown Failures" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpDownTime, "{RAW}SMP Shutdown Time" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpDownType, "{I32}SMP Shutdown Type" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpUpMode, "{I32}SMP Startup Mode" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpLimpType, "{I32}SMP Limp Type" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, LanguageCode, "{UTF8}Language Code" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, LanguageName, "{UTF8}Language Name" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, FsType, "{I32:FileSystemType}File System Format" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpRestoreFailed, "{I32}SMP Restore Failed" ) \ ENUM_DEFN_BaxMetaId( BaxMetaId, SmpDownSrc, "{I32}SMP Shutdown Source" ) #define ENUM_DEFNS_LogicStrCode \ \ ENUM_DEFN_LogicStrCode( LogicStrCode, Null, "NULL" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Or, "Logical OR" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Nor, "Logical NOR" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Xor, "Logical XOR" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Not, "Logical NOT" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, And, "Logical AND" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Nand, "Logical NAND" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Gt, "Greater Than" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Lt, "Less Than" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Eq, "Equal" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Read, "{UI16}Read Datapoint" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Push, "{I32}Push Immediate Data" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Copy, "Duplicate Top-Of-Stack" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Ift, "If Top-Of-Stack True" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Iff, "If Top-Of-Stack False" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Stop, "Stop" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, Sto, "{UI16}Write Datapoint" ) \ ENUM_DEFN_LogicStrCode( LogicStrCode, FastTrip, "Fast Trip (Private)" ) #define ENUM_DEFNS_DbPopulate \ \ ENUM_DEFN_DbPopulate( DbPopulate, Schema, "Schema file" ) \ ENUM_DEFN_DbPopulate( DbPopulate, ConfigDef1, "Default config 1" ) \ ENUM_DEFN_DbPopulate( DbPopulate, ConfigDef2, "Default config 2" ) \ ENUM_DEFN_DbPopulate( DbPopulate, Config, "Config file" ) \ ENUM_DEFN_DbPopulate( DbPopulate, CrashSave, "Crash save file" ) #define ENUM_DEFNS_HmiMode \ \ ENUM_DEFN_HmiMode( HmiMode, Normal, "Normal" ) \ ENUM_DEFN_HmiMode( HmiMode, Limp, "Limp" ) \ ENUM_DEFN_HmiMode( HmiMode, Update, "Update" ) \ ENUM_DEFN_HmiMode( HmiMode, Shutdown, "Shutdown" ) \ ENUM_DEFN_HmiMode( HmiMode, Startup, "Startup" ) \ ENUM_DEFN_HmiMode( HmiMode, SwitchgearTypeMismatch, "Switchgear Type Mismatch" ) #define ENUM_DEFNS_ClearCommand \ \ ENUM_DEFN_ClearCommand( ClearCommand, None, "" ) \ ENUM_DEFN_ClearCommand( ClearCommand, Clear, "Erased" ) #define ENUM_DEFNS_BxmlMapHmi \ \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, Invalid, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, hmi, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, forms, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, form, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, area, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, label, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, button, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, data_field, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, tab_strip, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, widgets, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, name, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, x_pos, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, y_pos, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, width, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, height, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_cancel, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_select, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_got_focus, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_lost_focus, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_draw, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, text_align, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, text, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, help_text, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, enabled, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, visible, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, link_id, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, link_up, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, link_down, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, link_left, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, link_right, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, view_group, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, action_group, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, border_style, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, layout, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, config, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, enums, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, enum, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, id, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, min, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, max, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, entry, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, number, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, string, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, short_string, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, auto_fill, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, version, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, major, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, minor, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, patch, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, file_id, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, file_version, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, user_name, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, user_version, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, authenticate, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, max_retry, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, pw_init, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, pw_mask, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, mask_all, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, init_to_default, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, pw_default, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, log, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, log_label, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, sort, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, scroll_amount, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, view, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, reset_log, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, auto_update, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, source, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, expires_ms, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, resource_rc, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, resource_id, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, db_version, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, language_id, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, language_name, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, language_display, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, marketing_version, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, svn_version, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, svn_url, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, confirm_text, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, confirm_title, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, auth, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, family_id, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, font, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, count, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, glyphs, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, glyph, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, code_point, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, segment, "{HEX}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, language_code, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, list, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, list_source, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, list_item, "" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_oversize, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, confirm_form, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_enter, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, on_condition, "{UTF8}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, list_source_type, "List Source Type" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, columns, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, selectable, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, list_update_trigger, "{I32}" ) \ ENUM_DEFN_BxmlMapHmi( BxmlMapHmi, alerts, "" ) #define ENUM_DEFNS_BxmlNamespace \ \ ENUM_DEFN_BxmlNamespace( BxmlNamespace, Hmi, "HMI" ) #define ENUM_DEFNS_BxmlType \ \ ENUM_DEFN_BxmlType( BxmlType, Unknown, "Unknown" ) \ ENUM_DEFN_BxmlType( BxmlType, UTF8, "UTF8" ) \ ENUM_DEFN_BxmlType( BxmlType, I32, "I32" ) \ ENUM_DEFN_BxmlType( BxmlType, RAW, "RAW" ) #define ENUM_DEFNS_CmsConnectStatus \ \ ENUM_DEFN_CmsConnectStatus( CmsConnectStatus, Disconnected, "Disconnected (default value)" ) \ ENUM_DEFN_CmsConnectStatus( CmsConnectStatus, Connected, "Connected" ) \ ENUM_DEFN_CmsConnectStatus( CmsConnectStatus, Deprecated_Idle, "Connection Idle with no activity in " ) #define ENUM_DEFNS_ERR \ \ ENUM_DEFN_ERR( ERR, NONE, "None" ) \ ENUM_DEFN_ERR( ERR, SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, UNKNOWN_DPID, "Unknown datapoint ID" ) \ ENUM_DEFN_ERR( ERR, BAD_SIZE, "Insufficent space in destination" ) \ ENUM_DEFN_ERR( ERR, BAD_VALUE, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, MALLOC, "Could not allocate memory" ) \ ENUM_DEFN_ERR( ERR, BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, BAD_DB_ENTRY, "Bad DbEntry" ) \ ENUM_DEFN_ERR( ERR, MODE_REFUSED, "Failed local/remote test" ) \ ENUM_DEFN_ERR( ERR, NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN_ERR( ERR, NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN_ERR( ERR, NO_MEM, "No memory" ) \ ENUM_DEFN_ERR( ERR, HLT_REFUSED, "Hot line tag refused" ) \ ENUM_DEFN_ERR( ERR, NO_SUCH_FILE, "File does not exist" ) \ ENUM_DEFN_ERR( ERR, HMI_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN_ERR( ERR, HMI_NO_MEMORY, "No memory" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_OPEN, "Bad device" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_PERMISSIONS, "Device IO Insufficient permissions" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_CONFIG, "Device IO configuration failed" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_TIMEOUT, "Device IO timeout" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_NAK, "Device IO NAK" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_WRITE, "Device IO write failed" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_COLLISION, "Device IO message collision" ) \ ENUM_DEFN_ERR( ERR, HMI_IO_CORRUPTED, "Device IO corrupted" ) \ ENUM_DEFN_ERR( ERR, HMI_MSG_NO_HANDLER, "No message handler" ) \ ENUM_DEFN_ERR( ERR, HMI_MSG_TIMEOUT, "Message timeout" ) \ ENUM_DEFN_ERR( ERR, HMI_CHANNEL_SYNC, "Invalid start-of-packet" ) \ ENUM_DEFN_ERR( ERR, HMI_CHANNEL_OVERFLOW, "Channel overflow" ) \ ENUM_DEFN_ERR( ERR, HMI_CHANNEL_PARTIAL, "Chanel timeout" ) \ ENUM_DEFN_ERR( ERR, HMI_CHANNEL_NO_WRITER, "No writer on IPC channel" ) \ ENUM_DEFN_ERR( ERR, HMI_IPC_MESSAGE_SIZE, "Invalid message size" ) \ ENUM_DEFN_ERR( ERR, HMI_IPC_MESSAGE_ID, "Invalid message ID" ) \ ENUM_DEFN_ERR( ERR, HMI_IPC_MESSAGE_BUFFER, "Could not allocate message buffer" ) \ ENUM_DEFN_ERR( ERR, HMI_IPC_NO_HANDLER, "No handler for IPC message" ) \ ENUM_DEFN_ERR( ERR, HMI_IPC_EXPECTED_SIZE, "Invalid IPC message size" ) \ ENUM_DEFN_ERR( ERR, HMI_IPC_OPERATION, "Unknown operation for IPC message" ) \ ENUM_DEFN_ERR( ERR, HMI_MEMPOOL_FULL, "Memory pool full" ) \ ENUM_DEFN_ERR( ERR, HMI_MEMPOOL_INVALID_POOL, "Invalid memory pool" ) \ ENUM_DEFN_ERR( ERR, HMI_MEMPOOL_INVALID_GROUP, "Invalid memory pool group." ) \ ENUM_DEFN_ERR( ERR, HMI_MEMPOOL_CORRUPT, "Memory pool is corrupt" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_SUSPENDED, "Display manager suspended" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DPID_DENIED, "Denied setting datapoint" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_VARIABLE_NOT_FOUND, "Unknown display manager variable" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_VARIABLE_SIZE, "Display manager variable too small" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_VARIABLE_TYPE, "Invalid display manager variable data type" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_COMMAND_ARGS, "Bad format for display manager command" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_COMMAND_DPID, "Invalid datapoint for display manager command" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DRAW_NO_SPACE, "Display manager exhausted draw memory" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_ENUM_NAME, "Invalid display manager enum name" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_ENUM_ID, "Invalid display manager enum identifier" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_ENUM_VALUE, "Display manager enum value out of range" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_ENUM_MISSING, "Display manager enum no string" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_TEXT_DPID, "Display manager invalid datapoint ID" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DPID_TYPE, "Display manager data type unknown" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DPID_ENTRY, "Invalid display manager datapoint entry" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DPID_VALUE, "Invalid display manager datapoint value" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DPID_OUT_BUFFER, "Display manager print buffer too small" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DPID_TYPE_OPERATION, "Display manager datapoint operation not supported" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_DPID_TYPE_MISMATCH, "Display manager datapoint type mismatch" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_WIDGET_TYPE, "Invalid display manager widget operation" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_FORM_DEPTH, "Exceeded display manager maximum menu depth" ) \ ENUM_DEFN_ERR( ERR, HMI_PANEL_DISPLAY_RANGE, "Bad display manager address" ) \ ENUM_DEFN_ERR( ERR, HMI_PANEL_SEGMENT_TABLE_FULL, "Panel glyph RAM full" ) \ ENUM_DEFN_ERR( ERR, HMI_PANEL_UNKNOWN_GLYPH, "Unknown glyph" ) \ ENUM_DEFN_ERR( ERR, HMI_SESSION_COUNT, "Exceeded maximum session count" ) \ ENUM_DEFN_ERR( ERR, HMI_SESSION_PORT, "Invalid session port number" ) \ ENUM_DEFN_ERR( ERR, HMI_CIRCBUFF_NO_MEM, "No memory for circular buffer" ) \ ENUM_DEFN_ERR( ERR, HMI_TIMER_CLOCK, "Monotonic clock not supported" ) \ ENUM_DEFN_ERR( ERR, HMI_RESOURCE_DIR, "Could not open resource directory" ) \ ENUM_DEFN_ERR( ERR, HMI_RESOURCE_INIT, "Resource module not initialised" ) \ ENUM_DEFN_ERR( ERR, HMI_RESOURCE_NAME, "Invalid resource file name" ) \ ENUM_DEFN_ERR( ERR, HMI_RESOURCE_NONE, "No resource files found" ) \ ENUM_DEFN_ERR( ERR, HMI_RESOURCE_RECORD, "Missing resource record" ) \ ENUM_DEFN_ERR( ERR, HMI_BUFFER_SIZE, "Buffer too small" ) \ ENUM_DEFN_ERR( ERR, HMI_AUTH_PASSWORD, "Invalid password" ) \ ENUM_DEFN_ERR( ERR, HMI_AUTH_SET_PASSWORD, "Could not set password" ) \ ENUM_DEFN_ERR( ERR, HMI_AUTH_PASSWORD_FORM, "Missing password form" ) \ ENUM_DEFN_ERR( ERR, HMI_COMMAND_DPID_TYPE, "Can't set unknown datapoint type" ) \ ENUM_DEFN_ERR( ERR, HMI_DM_MSGBOX_ID, "Invalid message box ID" ) \ ENUM_DEFN_ERR( ERR, HMI_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, HMI_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN_ERR( ERR, HMI_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, HMI_UNKNOWN_DPID, "" ) \ ENUM_DEFN_ERR( ERR, HMI_PANEL_WRITE_TIME, "Took too long to write a message to the panel" ) \ ENUM_DEFN_ERR( ERR, SMP_ALREADY_RUNNING, "Already running" ) \ ENUM_DEFN_ERR( ERR, SMP_INVALID_LOCK, "Invalid lock" ) \ ENUM_DEFN_ERR( ERR, SMP_IPC_SIZE, "Invalid message size" ) \ ENUM_DEFN_ERR( ERR, SMP_IPC_ID, "Invalid message ID" ) \ ENUM_DEFN_ERR( ERR, SMP_IPC_NO_HANDLER, "No message handler" ) \ ENUM_DEFN_ERR( ERR, SMP_IPC_EXPECTED_SIZE, "Invalid message payload size" ) \ ENUM_DEFN_ERR( ERR, SMP_IPC_STATE, "Invalid state" ) \ ENUM_DEFN_ERR( ERR, SMP_IPC_NO_CLIENTS, "No clients connected" ) \ ENUM_DEFN_ERR( ERR, SMP_FORK, "Could not fork" ) \ ENUM_DEFN_ERR( ERR, SMP_WAITPID, "Call to waitpid() failed" ) \ ENUM_DEFN_ERR( ERR, SMP_OPEN, "Call to open() failed." ) \ ENUM_DEFN_ERR( ERR, SMP_PID, "Unknown process identifier" ) \ ENUM_DEFN_ERR( ERR, SMP_ABORT_UP, "" ) \ ENUM_DEFN_ERR( ERR, SMP_CLIENT_ID, "Invalid client ID" ) \ ENUM_DEFN_ERR( ERR, SMP_LAUNCH_RESULT, "Invalid launch command result" ) \ ENUM_DEFN_ERR( ERR, SMP_LAUNCH_COMMAND, "Invalid launch command" ) \ ENUM_DEFN_ERR( ERR, SMP_LED_MODE, "Invalid LED flash pattern" ) \ ENUM_DEFN_ERR( ERR, SMP_NVM_FILE, "Could save data to non-volatile memory" ) \ ENUM_DEFN_ERR( ERR, SMP_NVM_SIZE, "Invalid data size for non-volatile memory" ) \ ENUM_DEFN_ERR( ERR, SMP_NVM_CRASH_DEVICE, "Could not read or write non-volatile memory" ) \ ENUM_DEFN_ERR( ERR, SMP_PANEL_DISCONNECTED, "Panel is disconnected" ) \ ENUM_DEFN_ERR( ERR, SMP_SCHED_NOT_SET, "Scheduling policy not set" ) \ ENUM_DEFN_ERR( ERR, SMP_SCHED_PRIORITY, "Call to setpriority() failed" ) \ ENUM_DEFN_ERR( ERR, SMP_SCHED_SCHEDULE, "Call to sched_setschedule() failed" ) \ ENUM_DEFN_ERR( ERR, SMP_SCHED_CLIENT_ID, "Can't set priority" ) \ ENUM_DEFN_ERR( ERR, SMP_PROCESS_STATE, "Unexpected state" ) \ ENUM_DEFN_ERR( ERR, SMP_CONFIG_FILE, "Invalid configuration file" ) \ ENUM_DEFN_ERR( ERR, SMP_CONFIG_ELEMENT, "Invalid configuration file format" ) \ ENUM_DEFN_ERR( ERR, SMP_CONFIG_TYPE, "Invalid configuration file format" ) \ ENUM_DEFN_ERR( ERR, SMP_CONFIG_VALUE, "Invalid configuration file format" ) \ ENUM_DEFN_ERR( ERR, SMP_FPGA_IRQ, "FPGA not interrupting" ) \ ENUM_DEFN_ERR( ERR, SMP_UP_TIMEOUT, "Too long to start up" ) \ ENUM_DEFN_ERR( ERR, SMP_DOWN_TIMEOUT, "Too long to shutdown" ) \ ENUM_DEFN_ERR( ERR, SMP_PROCESS_TERMINATED, "Process terminated unexpectedly" ) \ ENUM_DEFN_ERR( ERR, SMP_PROCESS_ERROR, "Process exited unexpectedly." ) \ ENUM_DEFN_ERR( ERR, SMP_PROCESS_SIGNAL, "Unhandled signal" ) \ ENUM_DEFN_ERR( ERR, SMP_DB_NOT_AVAILABLE, "Database not ready" ) \ ENUM_DEFN_ERR( ERR, SMP_ARG_MISSING, "Missing argument" ) \ ENUM_DEFN_ERR( ERR, SMP_ARG_SERIAL_FORMAT, "Invalid serial number format" ) \ ENUM_DEFN_ERR( ERR, SMP_ARG_MISSING_VALUE, "Missing argument value" ) \ ENUM_DEFN_ERR( ERR, SMP_CAN_TRANSMIT, "CAN transmit error" ) \ ENUM_DEFN_ERR( ERR, SMP_SERIALISE_SIZE, "Unexpected size mismatch" ) \ ENUM_DEFN_ERR( ERR, SMP_SERIALISE_FILE_TYPE, "Unknown file format" ) \ ENUM_DEFN_ERR( ERR, SMP_FSYNC, "Call to fsync() system call failed" ) \ ENUM_DEFN_ERR( ERR, SMP_CLOSE, "Call to close() or fclose() system call failed" ) \ ENUM_DEFN_ERR( ERR, SMP_UNLINK, "Call to unlink() system call failed" ) \ ENUM_DEFN_ERR( ERR, SMP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, SMP_NO_MEM, "" ) \ ENUM_DEFN_ERR( ERR, SMP_NOT_IMPLEMENTED, "" ) \ ENUM_DEFN_ERR( ERR, SMP_SYSTEM, "" ) \ ENUM_DEFN_ERR( ERR, SMP_NOT_INITIALISED, "" ) \ ENUM_DEFN_ERR( ERR, SMP_LAUNCH_NOT_READY, "Launch controller not ready" ) \ ENUM_DEFN_ERR( ERR, SMP_FS_TYPE_MISMATCH, "File System Type Mismatch" ) \ ENUM_DEFN_ERR( ERR, TSCHED_INVALID_TIMER, "Invalid timer" ) \ ENUM_DEFN_ERR( ERR, TSCHED_NO_FREE_TIMERS, "No free timers" ) \ ENUM_DEFN_ERR( ERR, TSCHED_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, TSCHED_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, TSCHED_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, BAX_META_ID, "Invalid BAX meta ID" ) \ ENUM_DEFN_ERR( ERR, BAX_META_SIZE, "Invalid size field for meta data" ) \ ENUM_DEFN_ERR( ERR, BAX_WRITE, "Write callback function failed" ) \ ENUM_DEFN_ERR( ERR, BAX_READ, "Read callback function failed." ) \ ENUM_DEFN_ERR( ERR, BAX_FSEEK, "Could not seek to the desired position" ) \ ENUM_DEFN_ERR( ERR, BAX_NO_WRITE, "Missing write function" ) \ ENUM_DEFN_ERR( ERR, BAX_INVALID_MAGIC, "Invalid magic number" ) \ ENUM_DEFN_ERR( ERR, BAX_INVALID_SIZE, "Invalid footer size" ) \ ENUM_DEFN_ERR( ERR, BAX_INVALID_VERSION, "Bad footer" ) \ ENUM_DEFN_ERR( ERR, BAX_FOOTER_CHECKSUM, "Bad footer checksum" ) \ ENUM_DEFN_ERR( ERR, BAX_META_CHECKSUM, "Bad meta checksum" ) \ ENUM_DEFN_ERR( ERR, BAX_DATA_CHECKSUM, "Bad payload checksum" ) \ ENUM_DEFN_ERR( ERR, BAX_TYPE_MISMATCH, "Meta type mismatch" ) \ ENUM_DEFN_ERR( ERR, BAX_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, BAX_MALLOC, "" ) \ ENUM_DEFN_ERR( ERR, BAX_NOT_IMPLEMENTED, "" ) \ ENUM_DEFN_ERR( ERR, UPDATE_OPEN_FILE, "Could not open file" ) \ ENUM_DEFN_ERR( ERR, UPDATE_COUNT, "Too many files" ) \ ENUM_DEFN_ERR( ERR, UPDATE_TYPE, "Unknown file ID" ) \ ENUM_DEFN_ERR( ERR, UPDATE_INVALID, "Invalid file format" ) \ ENUM_DEFN_ERR( ERR, UPDATE_META, "Missing meta data" ) \ ENUM_DEFN_ERR( ERR, UPDATE_PATH, "Invalid path" ) \ ENUM_DEFN_ERR( ERR, UPDATE_UNKNOWN_MODULE_CODE, "Unknown module code" ) \ ENUM_DEFN_ERR( ERR, UPDATE_UNKOWN_HW_MAJOR, "Unknown hardware version string" ) \ ENUM_DEFN_ERR( ERR, UPDATE_MODULE_CODE_MISMATCH, "Module code mismatch" ) \ ENUM_DEFN_ERR( ERR, UPDATE_HW_MAJOR_MISMATCH, "Unsupported hardware" ) \ ENUM_DEFN_ERR( ERR, UPDATE_BAD_SIZE, "" ) \ ENUM_DEFN_ERR( ERR, UPDATE_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, UPDATE_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN_ERR( ERR, UPDATE_FILE_VALIDATE, "Update validation failed" ) \ ENUM_DEFN_ERR( ERR, UPDATE_GPIO_PROG_FAIL, "GPIO programming failed" ) \ ENUM_DEFN_ERR( ERR, UPDATE_INVALID_FILENAME, "Invalid file name" ) \ ENUM_DEFN_ERR( ERR, UPDATE_READ_FILE, "Read error" ) \ ENUM_DEFN_ERR( ERR, UPDATE_OLD_FILE, "Old file" ) \ ENUM_DEFN_ERR( ERR, UPDATE_SIM_DISCONNECTED, "SIM disconnected" ) \ ENUM_DEFN_ERR( ERR, UPDATE_NOR_ERROR, "NOR Error" ) \ ENUM_DEFN_ERR( ERR, UPDATE_INVALID_UKERN, "Invalid Microkernel" ) \ ENUM_DEFN_ERR( ERR, UPDATE_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, UPDATE_BACKUP_FAILED, "Backup Failed" ) \ ENUM_DEFN_ERR( ERR, UPDATE_DB_MISMATCH, "Database mismatch" ) \ ENUM_DEFN_ERR( ERR, UPDATE_GPIO_NOT_CONNECTED, "GPIO disconnected" ) \ ENUM_DEFN_ERR( ERR, CHANNEL_SYNC, "Invalid start-of-packet" ) \ ENUM_DEFN_ERR( ERR, CHANNEL_OVERFLOW, "Message overflow" ) \ ENUM_DEFN_ERR( ERR, CHANNEL_NO_WRITER, "No writer" ) \ ENUM_DEFN_ERR( ERR, CHANNEL_PARTIAL, "Message timeout" ) \ ENUM_DEFN_ERR( ERR, CHANNEL_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, CHANNEL_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, CHANNEL_NO_MEM, "No memory" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_OPEN_FILE, "Could not open file" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_WRITE_FILE, "Could not write file" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_READ_FILE, "Could not read file" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_UPDATE_COUNT, "Too many update files" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_UPDATE_TYPE, "Unknown file ID" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_UPDATE_INVALID, "Invalid file format" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_UPDATE_META, "Missing meta data" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_OPEN_FILE_USB, "Could not open USB file" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_WRITE_FILE_USB, "Could not write USB file" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_READ_FILE_USB, "Could not read USB file" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_OLD_UPDATE_FILE, "Update File Old" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_UMOUNT_FAILED, "Unmount of the USB disc failed" ) \ ENUM_DEFN_ERR( ERR, USBCOPY_UPDATE_INVALID_FILENAME, "Invalid File Name" ) \ ENUM_DEFN_ERR( ERR, FSM_IN_TRANSITION, "Already in transition" ) \ ENUM_DEFN_ERR( ERR, FSM_INVALID_TRANSITION, "Invalid transition" ) \ ENUM_DEFN_ERR( ERR, FSM_INVALID_STATE_ID, "Unknown state ID" ) \ ENUM_DEFN_ERR( ERR, FSM_NO_STATE, "No initial state" ) \ ENUM_DEFN_ERR( ERR, FSM_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, BXML_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, BXML_MALLOC, "Dynamic memory allocation failed" ) \ ENUM_DEFN_ERR( ERR, BXML_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, BXML_NOT_IMPLEMENTED, "Function not implemented" ) \ ENUM_DEFN_ERR( ERR, BXML_BUFFER_SIZE, "Buffer too small" ) \ ENUM_DEFN_ERR( ERR, BXML_NO_MEM, "Insufficient internal memory" ) \ ENUM_DEFN_ERR( ERR, BXML_NO_DATA_ATTACHED, "BXML file not attached" ) \ ENUM_DEFN_ERR( ERR, BXML_EOF, "Unexpected end of file" ) \ ENUM_DEFN_ERR( ERR, BXML_SEEK, "Could not seek to required position" ) \ ENUM_DEFN_ERR( ERR, BXML_FILE_MARKER, "Invalid BXML file" ) \ ENUM_DEFN_ERR( ERR, BXML_FILE_MAJOR, "Unknown version" ) \ ENUM_DEFN_ERR( ERR, BXML_RECORD_SIZE, "Invalid record size" ) \ ENUM_DEFN_ERR( ERR, BXML_RECORD_ALIGNMENT, "Invalid record alignment" ) \ ENUM_DEFN_ERR( ERR, BXML_NOT_SUPPORTED, "Unsupported operation" ) \ ENUM_DEFN_ERR( ERR, BXML_NODE_DATA_TYPE, "Invalid node data type" ) \ ENUM_DEFN_ERR( ERR, CALIB_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, CALIB_SYSTEM, "" ) \ ENUM_DEFN_ERR( ERR, CAN_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, CAN_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, CAN_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, CAN_BAD_SIZE, "" ) \ ENUM_DEFN_ERR( ERR, CMS_SYSTEM, "" ) \ ENUM_DEFN_ERR( ERR, CMS_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, CMS_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, CMS_BAD_SIZE, "" ) \ ENUM_DEFN_ERR( ERR, CMS_SERIAL_TIMEOUT, "" ) \ ENUM_DEFN_ERR( ERR, COMMS_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, COMMS_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, DB_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, DB_UNKNOWN_DPID, "Unknown datapoint" ) \ ENUM_DEFN_ERR( ERR, DB_HLT_REFUSED, "Hot line tag refused" ) \ ENUM_DEFN_ERR( ERR, DB_MODE_REFUSED, "Failed local/remote test" ) \ ENUM_DEFN_ERR( ERR, DB_BAD_SIZE, "Insufficent space in destination" ) \ ENUM_DEFN_ERR( ERR, DB_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, DB_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, DB_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN_ERR( ERR, DB_BAD_DB_ENTRY, "Bad DbEntry" ) \ ENUM_DEFN_ERR( ERR, DB_NON_RQST, "Non-requestable datapoint" ) \ ENUM_DEFN_ERR( ERR, DB_BAD_EVENT_DATA_SIZE, "Bad data size" ) \ ENUM_DEFN_ERR( ERR, DB_OUT_OF_RANGE, "Out of range" ) \ ENUM_DEFN_ERR( ERR, DB_TIMEOUT, "Timeout" ) \ ENUM_DEFN_ERR( ERR, DBQ_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, DBQ_MALLOC, "" ) \ ENUM_DEFN_ERR( ERR, DBQ_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, DBQ_BAD_SIZE, "" ) \ ENUM_DEFN_ERR( ERR, DBQ_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, DBSVR_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, DBSVR_MALLOC, "" ) \ ENUM_DEFN_ERR( ERR, DBSVR_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, DBSVR_NO_SUCH_FILE, "" ) \ ENUM_DEFN_ERR( ERR, DBSVR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, DBSVR_CLWR_BUFF_FULL, "Client buffer full" ) \ ENUM_DEFN_ERR( ERR, DBSVR_CLWR_FAIL, "Client write failed" ) \ ENUM_DEFN_ERR( ERR, IO_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, IO_BAD_PARAM, "" ) \ ENUM_DEFN_ERR( ERR, IO_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, LOG_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, LOG_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN_ERR( ERR, LOG_BAD_SIZE, "Insufficent space in destination" ) \ ENUM_DEFN_ERR( ERR, LOG_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, LOG_NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN_ERR( ERR, LOG_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, SIG_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, SIG_UNKNOWN_DPID, "Unknown datapoint ID" ) \ ENUM_DEFN_ERR( ERR, LIBSMP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, UNIVAR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, UNIVAR_BAD_SIZE, "Insufficient space in destination" ) \ ENUM_DEFN_ERR( ERR, UNIVAR_NO_MEM, "No memory" ) \ ENUM_DEFN_ERR( ERR, UNIVAR_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN_ERR( ERR, UNIVAR_NOT_INITIALISED, "Not initialised" ) \ ENUM_DEFN_ERR( ERR, LOGPROC_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, LOGPROC_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, LOGPROC_BAD_SIZE, "" ) \ ENUM_DEFN_ERR( ERR, LOGPROC_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, LOGPROC_UNKNOWN_EVENT, "Unrecognised event" ) \ ENUM_DEFN_ERR( ERR, METER_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, METER_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, METER_UNKNOWN_DPID, "" ) \ ENUM_DEFN_ERR( ERR, PROGSIM_BAD_PARAM, "" ) \ ENUM_DEFN_ERR( ERR, PROGSIM_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, PROGSIM_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, PROGGPIO_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, PROGGPIO_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, PROGGPIO_BAD_VALUE, "Bad value" ) \ ENUM_DEFN_ERR( ERR, PROT_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, PROT_BAD_SIZE, "" ) \ ENUM_DEFN_ERR( ERR, PROT_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, PROT_BAD_PARAM, "Bad paramater" ) \ ENUM_DEFN_ERR( ERR, PROTCFG_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, PROTCFG_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, SCADA_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, SCADA_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, SCADA_DNP_UNRECOGNISED_DPID, "Suspicious behaviour" ) \ ENUM_DEFN_ERR( ERR, SCADA_SIZE_UNABLE_TO_SCALE, "Unable to scale" ) \ ENUM_DEFN_ERR( ERR, SIMOP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, SIMOP_SYSTEM, "" ) \ ENUM_DEFN_ERR( ERR, SIMOP_UNKNOWN_RQST, "Unknown request" ) \ ENUM_DEFN_ERR( ERR, SWITCH_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, SWITCH_NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN_ERR( ERR, SWITCH_BAD_PARAM, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, SWITCH_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, SIMU_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, SIMU_SYSTEM, "" ) \ ENUM_DEFN_ERR( ERR, DNP_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN_ERR( ERR, DNP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, DNP_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, FONT_UNKNOWN_ARG, "Unknown command line argument" ) \ ENUM_DEFN_ERR( ERR, FONT_FOPEN, "Call to fopen() system call failed" ) \ ENUM_DEFN_ERR( ERR, FONT_NOT_IMPLEMENTED, "Function not implemented" ) \ ENUM_DEFN_ERR( ERR, FONT_MALLOC, "Call to malloc() failed" ) \ ENUM_DEFN_ERR( ERR, FONT_WARNING, "Warning treated as error" ) \ ENUM_DEFN_ERR( ERR, FONT_CODE_POINT_RANGE, "Code point out of range" ) \ ENUM_DEFN_ERR( ERR, TMWSCL_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN_ERR( ERR, TMWSCL_NO_MEM, "No memory" ) \ ENUM_DEFN_ERR( ERR, TMWSCL_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, TMWSCL_UNKNOWN_DPID, "Unknown datapoint ID" ) \ ENUM_DEFN_ERR( ERR, TMWSCL_NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN_ERR( ERR, DBTEST_SYSTEM, "" ) \ ENUM_DEFN_ERR( ERR, DBTEST_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, UPS_SYSTEM, "System call failed" ) \ ENUM_DEFN_ERR( ERR, UPS_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, X2B_NULL, "NULL parameter" ) \ ENUM_DEFN_ERR( ERR, X2B_NO_MEM, "Memory exhausted" ) \ ENUM_DEFN_ERR( ERR, X2B_NOT_IMPLEMENTED, "Function not implemented" ) \ ENUM_DEFN_ERR( ERR, X2B_SIGNAL_HANDLER, "Could not register signal handler" ) \ ENUM_DEFN_ERR( ERR, X2B_IN_FILE, "Could not open input file" ) \ ENUM_DEFN_ERR( ERR, X2B_OUT_FILE, "Could not open output file" ) \ ENUM_DEFN_ERR( ERR, X2B_UNKNOWN_FILE_FORMAT, "Unspecified input file" ) \ ENUM_DEFN_ERR( ERR, X2B_READFILE, "Could not read file" ) \ ENUM_DEFN_ERR( ERR, X2B_READFILE_EOF, "Premature end of file" ) \ ENUM_DEFN_ERR( ERR, X2B_ID_MAP_FORMAT, "Invalid map file" ) \ ENUM_DEFN_ERR( ERR, X2B_ID_MAP_NAMESPACE, "Unknown namespace ID" ) \ ENUM_DEFN_ERR( ERR, X2B_ID_MAP_EMPTY, "Unknown map ID database" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_HEADER_SIZE, "Invalid BXML header size" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_MARKER, "Invalid BXML marker" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_VERSION_MAJOR, "Invalid BXML version" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_NAMESPACE_ID, "Namespace ID mismatch" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_RECORD_SIZE, "Invalid BXML record" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_RECORD_DATA_SIZE, "Invalid record data size" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_RECORD_TOO_LARGE, "Maximum record size exceeded" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_CRC, "Invalid CRC" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_UNKNOWN_ATTRIBUTE, "Unknown attribute" ) \ ENUM_DEFN_ERR( ERR, X2B_BXML_UNKNOWN_ELEMENT, "Unknown element name" ) \ ENUM_DEFN_ERR( ERR, X2B_MXML_LOAD_FILE, "Mini-xml library error" ) \ ENUM_DEFN_ERR( ERR, X2B_MXML_NEW_XML, "Mini-xml error" ) \ ENUM_DEFN_ERR( ERR, DBVER_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, DBVER_BAD_VALUE, "" ) \ ENUM_DEFN_ERR( ERR, TR_WARNING, "Treated warning as error" ) \ ENUM_DEFN_ERR( ERR, TR_TEXT_POSITION, "Invalid text position" ) \ ENUM_DEFN_ERR( ERR, TR_GLYPH_RAW, "Invalid glyph file" ) \ ENUM_DEFN_ERR( ERR, TR_GLYPH_PICTURE, "Invalid picture in glyph file" ) \ ENUM_DEFN_ERR( ERR, TR_GLYPH_SIZE_MISMATCH, "Invalid size in glyph file" ) \ ENUM_DEFN_ERR( ERR, TR_GLYPH_DATA_MISMATCH, "Glyph data specified twice differently" ) \ ENUM_DEFN_ERR( ERR, TR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, TR_NO_MEM, "" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_NO_MEM, "" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_SERIAL_PERMISSIONS, "" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_SERIAL_OPEN_FAILED, "" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_SERIAL_CONFIG, "" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_SERIAL_CREATE_EVENT, "" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_SERIAL_WRITE_FAILED, "" ) \ ENUM_DEFN_ERR( ERR, PSNIFF_SERIAL_READ_FAILED, "" ) \ ENUM_DEFN_ERR( ERR, NOR_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN_ERR( ERR, NOR_LOCATION, "Invalid NOR location" ) \ ENUM_DEFN_ERR( ERR, NOR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN_ERR( ERR, NOR_FWRITE, "The write or fwrite system call failed" ) \ ENUM_DEFN_ERR( ERR, NOR_FREAD, "The read or fread system call failed" ) \ ENUM_DEFN_ERR( ERR, NOR_OPEN, "The open or fopen system call failed" ) \ ENUM_DEFN_ERR( ERR, NOR_IOCTL, "The ioctl system call failed" ) \ ENUM_DEFN_ERR( ERR, SMA_SYSTEM, "SMA_SYSTEM" ) \ ENUM_DEFN_ERR( ERR, SMA_BAD_PARAM, "SMA_BAD_PARAM" ) \ ENUM_DEFN_ERR( ERR, SMA_BAD_VALUE, "SMA_BAD_VALUE" ) \ ENUM_DEFN_ERR( ERR, SMA_BAD_CMD, "SMA: Illegal command" ) \ ENUM_DEFN_ERR( ERR, SMA_TIMER_FAIL, "SMA: Timer operation failed" ) \ ENUM_DEFN_ERR( ERR, T10B_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN_ERR( ERR, T10B_BAD_PARAM, "Bad parameter in IEC 60870-5-101 / -104" ) \ ENUM_DEFN_ERR( ERR, T10B_SYSTEM, "Syatem call failed in IEC 60870-5-101 / -104" ) \ ENUM_DEFN_ERR( ERR, SCADA_T10B_BAD_PARAM, "Bad parameter in T10B support" ) \ ENUM_DEFN_ERR( ERR, SCADA_T10B_SYSTEM, "System call failed in T10B support" ) \ ENUM_DEFN_ERR( ERR, P2P_SYSTEM, "P2P_SYSTEM" ) \ ENUM_DEFN_ERR( ERR, P2P_BAD_PARAM, "P2P_BAD_PARAM" ) \ ENUM_DEFN_ERR( ERR, P2P_BAD_VALUE, "P2P_BAD_VALUE" ) \ ENUM_DEFN_ERR( ERR, P2P_BAD_CMD, "P2P_BAD_CMD" ) \ ENUM_DEFN_ERR( ERR, EXTSUPPLY_OVERLOAD, "External Supply Overload" ) \ ENUM_DEFN_ERR( ERR, S61850_SYSTEM, "System Call failed in S61850" ) \ ENUM_DEFN_ERR( ERR, S61850_MALLOC, "Memory Allocation fault in S61850" ) \ ENUM_DEFN_ERR( ERR, S61850_BAD_PARAMETER, "Bad Parameter (generic) in S61850" ) \ ENUM_DEFN_ERR( ERR, S61850_BAD_DB_ENTRY, "DBEntry fault in S61850" ) \ ENUM_DEFN_ERR( ERR, S61850_UNEXPECT_NULL_CNTXT, "Unexpected NULL in S61850 context" ) \ ENUM_DEFN_ERR( ERR, S61850_MAPPING_FAULT, "Mapping fault in S61850" ) \ ENUM_DEFN_ERR( ERR, S61850_LAST_VALUE, "End of reserved range for IEC 61850" ) \ ENUM_DEFN_ERR( ERR, EXTLOAD_OVERLOAD, "External Load Overload Active" ) \ ENUM_DEFN_ERR( ERR, HTTP_BAD_PARAM, "bad parameter for http server" ) \ ENUM_DEFN_ERR( ERR, WEBSERVER, "Webserver Failed" ) #define ENUM_DEFNS_ErrModules \ \ ENUM_DEFN_ErrModules( ErrModules, hmi, "HMI" ) \ ENUM_DEFN_ErrModules( ErrModules, smp, "SMP" ) \ ENUM_DEFN_ErrModules( ErrModules, libtsched, "TSCHED" ) \ ENUM_DEFN_ErrModules( ErrModules, libbax, "BAX" ) \ ENUM_DEFN_ErrModules( ErrModules, update, "UPDATE" ) \ ENUM_DEFN_ErrModules( ErrModules, libchannel, "CHANNEL" ) \ ENUM_DEFN_ErrModules( ErrModules, usbcopy, "USBCOPY" ) \ ENUM_DEFN_ErrModules( ErrModules, libfsm, "FSM" ) \ ENUM_DEFN_ErrModules( ErrModules, libpolarssl, "POLARSSL" ) \ ENUM_DEFN_ErrModules( ErrModules, libbxml, "BXML" ) \ ENUM_DEFN_ErrModules( ErrModules, calib, "CALIB" ) \ ENUM_DEFN_ErrModules( ErrModules, can, "CAN" ) \ ENUM_DEFN_ErrModules( ErrModules, cms, "CMS" ) \ ENUM_DEFN_ErrModules( ErrModules, comms, "COMMS" ) \ ENUM_DEFN_ErrModules( ErrModules, libdbapi, "DB" ) \ ENUM_DEFN_ErrModules( ErrModules, dbquery, "DBQ" ) \ ENUM_DEFN_ErrModules( ErrModules, dbserver, "DBSVR" ) \ ENUM_DEFN_ErrModules( ErrModules, io, "IO" ) \ ENUM_DEFN_ErrModules( ErrModules, libcsv, "CSV" ) \ ENUM_DEFN_ErrModules( ErrModules, libdebug, "DEBUG" ) \ ENUM_DEFN_ErrModules( ErrModules, liblog, "LOG" ) \ ENUM_DEFN_ErrModules( ErrModules, libsignal, "SIG" ) \ ENUM_DEFN_ErrModules( ErrModules, libsmp, "LIBSMP" ) \ ENUM_DEFN_ErrModules( ErrModules, libuboot_env, "UBOOT" ) \ ENUM_DEFN_ErrModules( ErrModules, libunivar, "UNIVAR" ) \ ENUM_DEFN_ErrModules( ErrModules, logprocess, "LOGPROC" ) \ ENUM_DEFN_ErrModules( ErrModules, meter, "METER" ) \ ENUM_DEFN_ErrModules( ErrModules, progsim, "PROGSIM" ) \ ENUM_DEFN_ErrModules( ErrModules, prot, "PROT" ) \ ENUM_DEFN_ErrModules( ErrModules, protcfg, "PROTCFG" ) \ ENUM_DEFN_ErrModules( ErrModules, scada_dnp, "SCADA" ) \ ENUM_DEFN_ErrModules( ErrModules, simop, "SIMOP" ) \ ENUM_DEFN_ErrModules( ErrModules, libsimswrqst, "SWITCH" ) \ ENUM_DEFN_ErrModules( ErrModules, simulator, "SIMU" ) \ ENUM_DEFN_ErrModules( ErrModules, libtrace, "TRACE" ) \ ENUM_DEFN_ErrModules( ErrModules, tmwscl_dnp, "DNP" ) \ ENUM_DEFN_ErrModules( ErrModules, microkernel, "UKERN" ) \ ENUM_DEFN_ErrModules( ErrModules, hmifont, "FONT" ) \ ENUM_DEFN_ErrModules( ErrModules, tmwscl, "TMWSCL" ) \ ENUM_DEFN_ErrModules( ErrModules, dbtest, "DBTEST" ) \ ENUM_DEFN_ErrModules( ErrModules, ups, "UPS" ) \ ENUM_DEFN_ErrModules( ErrModules, xml2bin, "X2B" ) \ ENUM_DEFN_ErrModules( ErrModules, dbver, "DBVER" ) \ ENUM_DEFN_ErrModules( ErrModules, translate, "TR" ) \ ENUM_DEFN_ErrModules( ErrModules, panelsniffer, "PSNIFF" ) \ ENUM_DEFN_ErrModules( ErrModules, libnor, "NOR" ) \ ENUM_DEFN_ErrModules( ErrModules, sma, "SMA" ) \ ENUM_DEFN_ErrModules( ErrModules, tmwscl_T10B, "T10B" ) \ ENUM_DEFN_ErrModules( ErrModules, scada_T10B, "SCADA_T10B" ) \ ENUM_DEFN_ErrModules( ErrModules, P2P, "P2P" ) \ ENUM_DEFN_ErrModules( ErrModules, extsupply, "External Supply" ) \ ENUM_DEFN_ErrModules( ErrModules, iec61850, "S61850" ) #define ENUM_DEFNS_FileSystemType \ \ ENUM_DEFN_FileSystemType( FileSystemType, Unknown, "Unknown" ) \ ENUM_DEFN_FileSystemType( FileSystemType, Unspecified, "Unspecified" ) \ ENUM_DEFN_FileSystemType( FileSystemType, Yaffs2_0, "YAFFS 2 (r13160)" ) \ ENUM_DEFN_FileSystemType( FileSystemType, Yaffs2_1, "YAFFS 2 (rNotReleased)" ) \ ENUM_DEFN_FileSystemType( FileSystemType, ubifs, "UBIFS" ) #define ENUM_DEFNS_IOSettingMode \ \ ENUM_DEFN_IOSettingMode( IOSettingMode, Disable, "Disable" ) \ ENUM_DEFN_IOSettingMode( IOSettingMode, Enable, "Enable" ) \ ENUM_DEFN_IOSettingMode( IOSettingMode, Test, "Test" ) #define ENUM_DEFNS_SmaChannelState \ \ ENUM_DEFN_SmaChannelState( SmaChannelState, SmaChannelClosed, "SmaChannelClosed" ) \ ENUM_DEFN_SmaChannelState( SmaChannelState, SmaChannelConnecting, "SmaChannelConnecting" ) \ ENUM_DEFN_SmaChannelState( SmaChannelState, SmaChannelConnected, "SmaChannelConnected" ) #define ENUM_DEFNS_CommsProtocols \ \ ENUM_DEFN_CommsProtocols( CommsProtocols, DNP3Protocol, "DNP3Protocol" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, CMSProtocol, "CMSProtocol" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, HMIProtocol, "HMIProtocol" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, T10BProtocol, "IEC 60870-5-101 / -104" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, P2PProtocol, "P2PProtocol" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, PGEProtocol, "2179Protocol" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, GPS, "GPS" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, NumOfProtocols, "NumOfProtocols" ) \ ENUM_DEFN_CommsProtocols( CommsProtocols, Unknown, "Unknown" ) #define ENUM_DEFNS_ShutdownReason \ \ ENUM_DEFN_ShutdownReason( ShutdownReason, SaveSimCalibration, "SaveSimCalibration" ) #define ENUM_DEFNS_CommsSerialFlowControlMode \ \ ENUM_DEFN_CommsSerialFlowControlMode( CommsSerialFlowControlMode, None, "None" ) \ ENUM_DEFN_CommsSerialFlowControlMode( CommsSerialFlowControlMode, Hardware, "Hardware" ) \ ENUM_DEFN_CommsSerialFlowControlMode( CommsSerialFlowControlMode, PTT, "PTT" ) \ ENUM_DEFN_CommsSerialFlowControlMode( CommsSerialFlowControlMode, PTTCTS, "PTT CTS" ) #define ENUM_DEFNS_HmiMsgboxMessage \ \ ENUM_DEFN_HmiMsgboxMessage( HmiMsgboxMessage, CopyComplete, "Copy Complete" ) #define ENUM_DEFNS_CommsSerialDCDControlMode \ \ ENUM_DEFN_CommsSerialDCDControlMode( CommsSerialDCDControlMode, Ignore, "Ignore" ) \ ENUM_DEFN_CommsSerialDCDControlMode( CommsSerialDCDControlMode, Block, "Block TX" ) #define ENUM_DEFNS_T10BFormatMeasurand \ \ ENUM_DEFN_T10BFormatMeasurand( T10BFormatMeasurand, Normalized, "Normalized" ) \ ENUM_DEFN_T10BFormatMeasurand( T10BFormatMeasurand, Scaled, "Scaled" ) \ ENUM_DEFN_T10BFormatMeasurand( T10BFormatMeasurand, Float, "32-bit Float" ) #define ENUM_DEFNS_T101ChannelMode \ \ ENUM_DEFN_T101ChannelMode( T101ChannelMode, Unbalanced, "Unbalanced" ) \ ENUM_DEFN_T101ChannelMode( T101ChannelMode, Balanced, "Balanced" ) #define ENUM_DEFNS_PeriodicCounterOperation \ \ ENUM_DEFN_PeriodicCounterOperation( PeriodicCounterOperation, Disabled, "Disabled" ) \ ENUM_DEFN_PeriodicCounterOperation( PeriodicCounterOperation, Freeze, "Freeze" ) \ ENUM_DEFN_PeriodicCounterOperation( PeriodicCounterOperation, FreezeAndClear, "Freeze and Clear" ) #define ENUM_DEFNS_T10BReportMode \ \ ENUM_DEFN_T10BReportMode( T10BReportMode, Disabled, "Disabled" ) \ ENUM_DEFN_T10BReportMode( T10BReportMode, Default, "Use default mode for data type" ) \ ENUM_DEFN_T10BReportMode( T10BReportMode, EventNoTime, "Event reporting with no time stamp" ) \ ENUM_DEFN_T10BReportMode( T10BReportMode, EventWithTime, "Event reporting with time stamp" ) \ ENUM_DEFN_T10BReportMode( T10BReportMode, Background, "Background reporting (no events)" ) \ ENUM_DEFN_T10BReportMode( T10BReportMode, Cyclic, "Cyclic Reporting (no events)" ) \ ENUM_DEFN_T10BReportMode( T10BReportMode, Interrogation, "Interrogation" ) #define ENUM_DEFNS_T10BControlMode \ \ ENUM_DEFN_T10BControlMode( T10BControlMode, Disabled, "Disabled" ) \ ENUM_DEFN_T10BControlMode( T10BControlMode, Default, "Use default mode for data type" ) \ ENUM_DEFN_T10BControlMode( T10BControlMode, SelectExecute, "Select before Execute" ) \ ENUM_DEFN_T10BControlMode( T10BControlMode, DirectExecute, "Direct Execute (no Select required)" ) #define ENUM_DEFNS_T10BParamRepMode \ \ ENUM_DEFN_T10BParamRepMode( T10BParamRepMode, Disabled, "Disabled" ) \ ENUM_DEFN_T10BParamRepMode( T10BParamRepMode, Default, "Use default mode for data type" ) \ ENUM_DEFN_T10BParamRepMode( T10BParamRepMode, Interrogation, "Interrogation" ) \ ENUM_DEFN_T10BParamRepMode( T10BParamRepMode, NotReported, "Not Reported" ) #define ENUM_DEFNS_CommsIpProtocolMode \ \ ENUM_DEFN_CommsIpProtocolMode( CommsIpProtocolMode, Udp, "UDP" ) \ ENUM_DEFN_CommsIpProtocolMode( CommsIpProtocolMode, Tcp, "TCP" ) #define ENUM_DEFNS_GPIOSettingMode \ \ ENUM_DEFN_GPIOSettingMode( GPIOSettingMode, Disable, "Disable" ) \ ENUM_DEFN_GPIOSettingMode( GPIOSettingMode, Enable, "Enable" ) \ ENUM_DEFN_GPIOSettingMode( GPIOSettingMode, Test1, "Test1" ) \ ENUM_DEFN_GPIOSettingMode( GPIOSettingMode, Test2, "Test2" ) \ ENUM_DEFN_GPIOSettingMode( GPIOSettingMode, Test3, "Test3" ) #define ENUM_DEFNS_IoStatus \ \ ENUM_DEFN_IoStatus( IoStatus, Off, "Off" ) \ ENUM_DEFN_IoStatus( IoStatus, On, "On" ) \ ENUM_DEFN_IoStatus( IoStatus, Undetermined, "???" ) \ ENUM_DEFN_IoStatus( IoStatus, DisabledIndividual, "D" ) \ ENUM_DEFN_IoStatus( IoStatus, DisabledGlobal, "Na" ) \ ENUM_DEFN_IoStatus( IoStatus, Disabled, "Na" ) #define ENUM_DEFNS_ConfigIOCardNum \ \ ENUM_DEFN_ConfigIOCardNum( ConfigIOCardNum, 1, "1" ) \ ENUM_DEFN_ConfigIOCardNum( ConfigIOCardNum, 2, "2" ) #define ENUM_DEFNS_SwitchgearTypes \ \ ENUM_DEFN_SwitchgearTypes( SwitchgearTypes, Unknown, "Unknown" ) \ ENUM_DEFN_SwitchgearTypes( SwitchgearTypes, 3Phase, "3 phase" ) \ ENUM_DEFN_SwitchgearTypes( SwitchgearTypes, 1Phase, "1 phase" ) \ ENUM_DEFN_SwitchgearTypes( SwitchgearTypes, SingleTriple, "Single Triple" ) \ ENUM_DEFN_SwitchgearTypes( SwitchgearTypes, ThreePhaseSEF, "3 phase SEF" ) #define ENUM_DEFNS_LoSeqMode \ \ ENUM_DEFN_LoSeqMode( LoSeqMode, MaxTrips2, "2" ) \ ENUM_DEFN_LoSeqMode( LoSeqMode, MaxTrips3, "3" ) \ ENUM_DEFN_LoSeqMode( LoSeqMode, MaxTrips4, "Normal" ) #define ENUM_DEFNS_LogicChannelMode \ \ ENUM_DEFN_LogicChannelMode( LogicChannelMode, Disable, "D" ) \ ENUM_DEFN_LogicChannelMode( LogicChannelMode, Enable, "E" ) \ ENUM_DEFN_LogicChannelMode( LogicChannelMode, Test, "T" ) #define ENUM_DEFNS_T10BCounterRepMode \ \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Disabled, "Disabled" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Default, "Use default reporting mode for data type" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, EventNoTime, "Event reporting with no time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, EventWithTime, "Event reporting with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Interrogation, "Interrogation (no events)" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, InterrogationWithTime, "Counter Interrogation with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr1EventNoTime, "Counter Group 1 event without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr1EventWithTime, "Counter group 1 event with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr1Interrogation, "Counter group 1 interrogation without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr1InterrogationWithTime, "Counter group 1 interrogation with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr2EventNoTime, "Counter group 2 event without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr2EventWithTime, "Counter group 2 event with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr2Interrogation, "Counte group 2 interrogation without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr2InterrogationWithTime, "Counter group 2 interrogation with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr3EventNoTime, "Counter group 3 event without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr3EventWithTime, "Counter group 3 event with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr3Interrogation, "Counter group 3 interrogation without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr3InterrogationWithTime, "Counter group 3 interrogation with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr4EventNoTime, "Counter group 4 event without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr4EventWithTime, "Counter group 4 event with time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr4Interrogation, "Counter group 4 interrogation without time stamp" ) \ ENUM_DEFN_T10BCounterRepMode( T10BCounterRepMode, Ctr4InterrogationWithTime, "Counter group 4 interrogation with time stamp" ) #define ENUM_DEFNS_ACOState \ \ ENUM_DEFN_ACOState( ACOState, Off, "Off" ) \ ENUM_DEFN_ACOState( ACOState, Active, "Active" ) \ ENUM_DEFN_ACOState( ACOState, Supplying, "Supplying Load" ) \ ENUM_DEFN_ACOState( ACOState, NotSupplying, "Not Supplying Load" ) #define ENUM_DEFNS_ACOOpMode \ \ ENUM_DEFN_ACOOpMode( ACOOpMode, Equal, "Equal" ) \ ENUM_DEFN_ACOOpMode( ACOOpMode, Main, "Main" ) \ ENUM_DEFN_ACOOpMode( ACOOpMode, Alternative, "Alt" ) #define ENUM_DEFNS_FailOk \ \ ENUM_DEFN_FailOk( FailOk, OK, "OK" ) \ ENUM_DEFN_FailOk( FailOk, Fail, "Fail" ) #define ENUM_DEFNS_ACOHealthReason \ \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, OK, "OK" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, SwitchStatus, "OSM Status" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, UVTripMap, "UV3 AR Map" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, VrcMode, "VRC Mode" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, AbrEn, "ABR On" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, MalWarn, "This ACR" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, ProtOn, "Prot Off" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, LLHLT, "LL/HLT On" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, P2PComms, "Peer Comms" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, ProtSettings, "Prot Settings" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, ACOSettings, "ACO Settings" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, OperationMode, "ACO Mode" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, MakeBeforeBreak, "Make Bef Brk" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, PeerHealth, "Remote ACR" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, Open, "User Trip" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, Lockout, "Prot Lockout" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, CloseTripFail, "Close/Tr Fail" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, ProtActive, "AR Active" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, Manual, "Operator" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, IllegalClose, "Close Both" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, PeerOff, "Remote ACR" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, LoadLive, "Load Live" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, EnableTimeout, "Timeout" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, UVOff, "UV is Off" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, CloseBlocking, "CloseBlocking" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, ProtectionOpenBlocking, "Open Blocking" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, SingleTripleMode, "S/T Mode" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, SectionaliserEnabled, "Sectionaliser" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, SyncEnabled, "Sync Enabled" ) \ ENUM_DEFN_ACOHealthReason( ACOHealthReason, CBF, "CBF" ) #define ENUM_DEFNS_SupplyState \ \ ENUM_DEFN_SupplyState( SupplyState, Disabled, "NA" ) \ ENUM_DEFN_SupplyState( SupplyState, Init, "Init" ) \ ENUM_DEFN_SupplyState( SupplyState, Healthy, "Healthy" ) \ ENUM_DEFN_SupplyState( SupplyState, Unhealthy, "Unhealthy" ) \ ENUM_DEFN_SupplyState( SupplyState, PickupHealthy, "Pickup Healthy" ) #define ENUM_DEFNS_LoadState \ \ ENUM_DEFN_LoadState( LoadState, Disabled, "NA" ) \ ENUM_DEFN_LoadState( LoadState, Init, "Init" ) \ ENUM_DEFN_LoadState( LoadState, Dead, "Dead" ) \ ENUM_DEFN_LoadState( LoadState, Undead, "Not Dead" ) #define ENUM_DEFNS_MakeBeforeBreak \ \ ENUM_DEFN_MakeBeforeBreak( MakeBeforeBreak, BreakBeforeMake, "Break Before Make" ) \ ENUM_DEFN_MakeBeforeBreak( MakeBeforeBreak, MakeBeforeBreak, "Make Before Break" ) #define ENUM_DEFNS_T101TimeStampSize \ \ ENUM_DEFN_T101TimeStampSize( T101TimeStampSize, 3, "3 (24-bit)" ) \ ENUM_DEFN_T101TimeStampSize( T101TimeStampSize, 7, "7 (56-bit)" ) #define ENUM_DEFNS_PhaseConfig \ \ ENUM_DEFN_PhaseConfig( PhaseConfig, ABC, "ABC" ) \ ENUM_DEFN_PhaseConfig( PhaseConfig, ACB, "ACB" ) \ ENUM_DEFN_PhaseConfig( PhaseConfig, BCA, "BCA" ) \ ENUM_DEFN_PhaseConfig( PhaseConfig, CAB, "CAB" ) \ ENUM_DEFN_PhaseConfig( PhaseConfig, BAC, "BAC" ) \ ENUM_DEFN_PhaseConfig( PhaseConfig, CBA, "CBA" ) #define ENUM_DEFNS_OscCaptureTime \ \ ENUM_DEFN_OscCaptureTime( OscCaptureTime, HalfSec, "0.5" ) \ ENUM_DEFN_OscCaptureTime( OscCaptureTime, 1Sec, "1" ) \ ENUM_DEFN_OscCaptureTime( OscCaptureTime, 3Sec, "3" ) #define ENUM_DEFNS_OscCapturePrior \ \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, None, "0" ) \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, 5Pct, "5" ) \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, 10Pct, "10" ) \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, 20Pct, "20" ) \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, 40Pct, "40" ) \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, 50Pct, "50" ) \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, 60Pct, "60" ) \ ENUM_DEFN_OscCapturePrior( OscCapturePrior, 80Pct, "80" ) #define ENUM_DEFNS_OscEvent \ \ ENUM_DEFN_OscEvent( OscEvent, Trip, "Trip" ) \ ENUM_DEFN_OscEvent( OscEvent, Pickup, "Pickup" ) \ ENUM_DEFN_OscEvent( OscEvent, Close, "Close" ) \ ENUM_DEFN_OscEvent( OscEvent, Alarm, "Alarm" ) \ ENUM_DEFN_OscEvent( OscEvent, Logic, "Logic" ) \ ENUM_DEFN_OscEvent( OscEvent, IOInputs, "IO Inputs" ) \ ENUM_DEFN_OscEvent( OscEvent, ProtOperation, "Prot Operation" ) \ ENUM_DEFN_OscEvent( OscEvent, Unknown, "Unknown" ) #define ENUM_DEFNS_HmiMsgboxData \ \ ENUM_DEFN_HmiMsgboxData( HmiMsgboxData, None, "" ) \ ENUM_DEFN_HmiMsgboxData( HmiMsgboxData, ReferEventLog, "Check event log" ) \ ENUM_DEFN_HmiMsgboxData( HmiMsgboxData, ExtLoadOverload, "Please wait 1 minute" ) #define ENUM_DEFNS_OscSimStatus \ \ ENUM_DEFN_OscSimStatus( OscSimStatus, Stopped, "Stopped" ) \ ENUM_DEFN_OscSimStatus( OscSimStatus, Running, "Running" ) \ ENUM_DEFN_OscSimStatus( OscSimStatus, Finished, "Finished" ) \ ENUM_DEFN_OscSimStatus( OscSimStatus, NoFile, "NoFile" ) \ ENUM_DEFN_OscSimStatus( OscSimStatus, InvalidFormat, "InvalidFormat" ) \ ENUM_DEFN_OscSimStatus( OscSimStatus, UnrecogChannels, "UnrecogChannels" ) \ ENUM_DEFN_OscSimStatus( OscSimStatus, TooLarge, "TooLarge" ) \ ENUM_DEFN_OscSimStatus( OscSimStatus, Failed, "Failed" ) #define ENUM_DEFNS_EventTitleId \ \ ENUM_DEFN_EventTitleId( EventTitleId, NAN, "NAN" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvChangeBlocked, "Operation Blocked" ) \ ENUM_DEFN_EventTitleId( EventTitleId, VsagCloseBlocking, "UV4 Sag Blocking" ) \ ENUM_DEFN_EventTitleId( EventTitleId, LoggerProcessFault, "Logger Process Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvRecoveryMode, "Entered Recovery Mode" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUpdateInitiated, "Update Initiated" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvExtSupplyStatusShutDown, "External Load Shutdown" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigCtrlHltOn, "Hot Line Tag On" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigCtrlHltRqstReset, "HLT Forced Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigCtrlBlockCloseOn, "Block Close" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvRestoreFailed, "Restore Failed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBSerial, "USB Serial Connect" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBLan, "USB LAN Connect" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBGadget, "USB Gadget Connect" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBWlan, "USB WLAN Connect" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBGPRS, "USB GPRS Connect" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBBluetooth, "USB Bluetooth Connect" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBUnsupported, "USB Unsupported" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBMismatched, "USB Mismatch" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvRqstOpen, "Protection Operation" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvLogsRestored, "Restored Logs" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvDatabaseRestored, "Restored Database" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvLoadedCrashSave, "Load Fast Save File" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSimCommsFail, "SIM Comms Fail" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Event_Pickup, "Pickup" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Event_Res, "Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Event_Trip, "Trip" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSimOpen, "OSM Open" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSimClose, "OSM Closed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvArIInit, "AR Initiated" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvArIClose, "Close" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvArIRes, "Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, DEPRCATED_EvArUInit, "" ) \ ENUM_DEFN_EventTitleId( EventTitleId, DERECATED_EvArUClose, "" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvInvalidSerialNumber, "Invalid Serial Number" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvIoSerialNumberChange, "IO Module Change" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUSBHostOff, "USB Host Power Off" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigCtrlLogTest, "Test Mode" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvIo1Fault, "I/O1 Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvIo2Fault, "I/O2 Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigEftActivated, "MNT Exceeded" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvACOState, "ACO" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSupplyUnhealthy, "Source Not Healthy" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvLogicChannelOut, "Logic Channel Change" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvInvalidLogic, "Logic Exp Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvExtSupplyStatusReset, "External Supply Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvRTCHwFault, "RTC Hardware Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOscCapture, "Capture" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvInvalidSwitchSerialNum, "Invalid OSM Type" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Event_Alarm, "Alarm" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Event_Freeze, "Freeze" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigStatusDialupInitiated, "Dial-up Initiated" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigStatusDialupFailed, "Dial-up Failed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfRelay, "Relay Module Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfSimComms, "SIM Comms Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfIo1Comms, "I/O1 Comms Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfIo2Comms, "I/O2 Comms Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfIo1Fault, "I/O1 Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfIo2Fault, "I/O2 Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigCtrlRemoteOn, "Control Mode Is Set To Remote" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SimDisconnected, "SIM Disconnected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvTripCloseRequestStatusTripFail, "Excessive To" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvTripCloseRequestStatusCloseFail, "Excessive Tc" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwitchManualTrip, "Manual Trip" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwitchDisconnectionStatus, "OSM Disconnected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwitchLockoutStatusMechaniclocked, "Mechanically Locked" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOSMActuatorFaultStatusCoilOc, "OSM Coil OC" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOsmActuatorFaultStatusCoilSc, "OSM Coil SC" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOsmLimitFaultStatusFault, "OSM Limit Switch Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvDriverStatusNotReady, "SIM Caps Not Charged" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwitchHeaterControlOn, "Switch Heater Control On" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwtichHeaterControlFailed, "Switch Heater Control Failed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvExtSupplyStatusOff, "External Load Off" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvExtSupplyStatusOverLoad, "External Load Overload" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUPSStatusAcOff, "AC Off" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUPSStatusBatteryOff, "Battery Off" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUPSPowerDown, "Critical Battery Level" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SimModuleFault, "SIM Module Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvModuleTypeSimDisconnected, "SIM Disconnected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvModuleTypeIo1Connected, "IO1 Connected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvModuleTypeIo2Connected, "IO2 Connected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvModuleTypePcConnected, "PC Connected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCANControllerOverrun, "Can Bus Overrun" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCANControllerError, "Can Bus Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCANMessagebufferoverflow, "CAN Buffer Overflow" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvBatteryTestResult, "Battery Test" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvLineSupplyStatus, "AC Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Not_Used_EvUPSPowerUp, "UPS Power Up" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvRTCStatus, "RTC Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSetTimeDate, "RTC Setting Change" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvDisableWatchdog, "Watchdog Disabled" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvResetModule, "Reset SIM" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvModuleFault, "SIM Module Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Not_Used_EvSupplyStatus, "AC Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSimSeqStep, "Simulator Step" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSimSeq, "Simulation Run" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Not_Used_EvSwitchHeaterControlOff, "Switch Heater Control: Off" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSimCalibration, "SIM Calibration Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvProtStatus, "Prot Status Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvGroupSettings, "Group Settings Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvTripRequestFailCode, "Trip Request Fail" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCloseRequestFailCode, "Close Request Fail" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOperationFail, "Capacitor Voltage Abnormal" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvClpRec, "T_rec" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvClpOp, "T_ocl" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvIrRec, "TrecIr" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvIrOp, "T_oir" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvZscInc, "ZSC" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOSMActuatorFaultStatusQ503Failed, "SIM Driver Q503 Failed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOcEfSefDir, "Dir. Control Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvBatteryStatus, "Battery Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCalib, "OSM Calibration Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSimSaveCalib, "SIM Calibration Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Event_Coredump, "Core Dump Generated" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Event_SysErr, "System Message Logged" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvTtaInit, "Time Addition" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvLoadProfileChanged, "Load profile configuration changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfComms, "Module Comms Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfPanelComms, "Panel Disconnected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfRc10, "Controller Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfPanelModule, "Panel Module Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfOsm, "OSM Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigMalfCanBus, "CAN Bus Malfunction" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCloseBlocked, "Close Req. Blocked" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSmpRestart, "Restart" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSmpShutdown, "Shutdown" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSmpStartup, "Power Restart" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvVRCOp, "VRC Blocking" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvDataSave, "Data Save" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvConnectionCompleted, "Connection Completed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvConnectionEstablished, "Connection Established" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUpdateOk, "Update Successful" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvUpdateFailed, "Update Failed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSystemSettingsChanged, "System Settings Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvIoSettingsChanged, "I/O Settings Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCommsSettingsChanged, "Comms Settings Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, ProtocolSettingsChanged, "Protocol Settings Changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvPanelCommsError, "Panel Comms Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SimRunningMiniBootloader, "SIM in Minibootloader Mode" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCloseBlocking, "Logic Close Blocking" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvProtOpenBlocking, "Protection Open Blocking" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvOpenBlocked, "Open Blocked" ) \ ENUM_DEFN_EventTitleId( EventTitleId, LSRMTimerActive, "T,LSRM" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwitchLogicallyLocked, "SW Locked" ) \ ENUM_DEFN_EventTitleId( EventTitleId, LiveLoadBlocking, "LLB Blocking" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Count, "Count" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SeqAdvInc, "Sequence Advance" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigIncorrectPhaseSeq, "Incorrect phase sequence" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SectionaliseMismatch, "Sectionaliser mismatch" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SectionaliseMode, "Sectionaliser mode changed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, WrongControlMode, "Wrong Control Mode" ) \ ENUM_DEFN_EventTitleId( EventTitleId, BlockedByHLT, "Operation Blocked by HLT" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvModuleTypePscDisconnected, "PSC Disconnected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, LogRolloverIdRollover, "Log Id Rollover" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvPscFault, "PSC Module Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, PscRunningMiniBootloader, "PSC In Minibootloader Mode" ) \ ENUM_DEFN_EventTitleId( EventTitleId, IEC61499AppStatusEv, "SGA Res" ) \ ENUM_DEFN_EventTitleId( EventTitleId, GPSConnected, "GPS Connected" ) \ ENUM_DEFN_EventTitleId( EventTitleId, GPSLocked, "GPS Locked" ) \ ENUM_DEFN_EventTitleId( EventTitleId, GPSRestart, "GPS Restart" ) \ ENUM_DEFN_EventTitleId( EventTitleId, WlanRestart, "Wi-Fi Restart" ) \ ENUM_DEFN_EventTitleId( EventTitleId, MobileNetworkRestart, "Mobile Network Modem Restart" ) \ ENUM_DEFN_EventTitleId( EventTitleId, AutoSync, "Auto-Sync" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SyncInvalidSingleTriple, "Invalid Auto-Sync Single Triple Cnfg" ) \ ENUM_DEFN_EventTitleId( EventTitleId, IEC61499Command, "SGA" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SigLogicConfigIssue, "Logic Configuration Issue" ) \ ENUM_DEFN_EventTitleId( EventTitleId, IEC61850LoadCIDFile, "ICD/CID File Loading" ) \ ENUM_DEFN_EventTitleId( EventTitleId, IEC61850DeleteCIDFile, "ICD/CID File Deleted" ) \ ENUM_DEFN_EventTitleId( EventTitleId, OperationBlocking, "Operation Blocking" ) \ ENUM_DEFN_EventTitleId( EventTitleId, CommsLogging, "Comms Logging" ) \ ENUM_DEFN_EventTitleId( EventTitleId, UPSWlanReset, "Wi-Fi Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, UPSMobilenetworkReset, "Mobile Network Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, UPSWlanShutdown, "Wi-Fi Shutdown" ) \ ENUM_DEFN_EventTitleId( EventTitleId, UPSMobilenetworkShutdown, "Mobile Network Shutdown" ) \ ENUM_DEFN_EventTitleId( EventTitleId, WLANFail, "Wlan Fail" ) \ ENUM_DEFN_EventTitleId( EventTitleId, WLANError, "Wlan Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, ResetBinaryFaultTargets, "Reset Binary Fault Targets" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SimAndOsmModelMismatch, "SIM and OSM Model Mismatch" ) \ ENUM_DEFN_EventTitleId( EventTitleId, BlockPickup, "Block Pickup" ) \ ENUM_DEFN_EventTitleId( EventTitleId, InhibitOV3, "Inhibit OV3" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvGPSUnplugged, "GPS Unplugged" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvGPSMalfunction, "GPS Malfunction" ) \ ENUM_DEFN_EventTitleId( EventTitleId, IEC61499FbootStatus, "SGA fboot Failed" ) \ ENUM_DEFN_EventTitleId( EventTitleId, DistanceToFault, "Distance to Fault" ) \ ENUM_DEFN_EventTitleId( EventTitleId, Distance, "Distance" ) \ ENUM_DEFN_EventTitleId( EventTitleId, FaultImpedance, "Fault Impedance" ) \ ENUM_DEFN_EventTitleId( EventTitleId, FaultedLoopImpedance, "Faulted Loop Impedance" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvLogicSGAThrottling, "Logic/SGA Throttling" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvLogicSGAStopped, "Logic/SGA Stopped" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SSTControl, "SST Control" ) \ ENUM_DEFN_EventTitleId( EventTitleId, USBOvercurrent, "USB Device Overcurrent" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvFirmwareHardwareMismatch, "Firmware/Hardware Mismatch" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvScadaRequiresRestart, "Protocol requires RC Restart" ) \ ENUM_DEFN_EventTitleId( EventTitleId, UPSGpsShutdown, "GPS Shutdown" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSNTPSyncFail, "SNTP Unable to Sync" ) \ ENUM_DEFN_EventTitleId( EventTitleId, USBOvercurrentReset, "USB Ports Overcurrent Reset" ) \ ENUM_DEFN_EventTitleId( EventTitleId, RelayNotCalib, "Relay is not calibrated." ) \ ENUM_DEFN_EventTitleId( EventTitleId, SimNotCalib, "Sim is not Calibrated" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SwgNotCalibrated, "Switchgear is not calibrated" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvRelayCalibration, "Relay Calibration Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwgCalibration, "Switchgear Calibration Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, CanBusHighPower, "CAN Bus High Power" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvAnalogError, "Analog Board Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCommsError, "Comms Board Error" ) \ ENUM_DEFN_EventTitleId( EventTitleId, GPSUpdateSysTime, "Clock updated" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvSwitchgearCalibration, "Switchgear Calibration Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCBFDefaultPickup, "CBF Pickup" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCBFBackupPickup, "Backup Trip Pickup" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCBFBackupBlocked, "Block Backup Trip" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCBFMalfunction, "CBF Malfunction" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvCBFBackupTrip, "CBF Backup Trip" ) \ ENUM_DEFN_EventTitleId( EventTitleId, AddUser, "Add New User" ) \ ENUM_DEFN_EventTitleId( EventTitleId, RemoveUser, "Remove User" ) \ ENUM_DEFN_EventTitleId( EventTitleId, ChangePassword, "Change Password" ) \ ENUM_DEFN_EventTitleId( EventTitleId, RoleBitMapUpdate, "Role bit-map update" ) \ ENUM_DEFN_EventTitleId( EventTitleId, UserCredentialbatchUpdate, "User Credential Batch Update" ) \ ENUM_DEFN_EventTitleId( EventTitleId, ResetCredential, "Reset Credential files" ) \ ENUM_DEFN_EventTitleId( EventTitleId, VerifyUser, "Verify User" ) \ ENUM_DEFN_EventTitleId( EventTitleId, SIMCardStatus, "SIM Card Status" ) \ ENUM_DEFN_EventTitleId( EventTitleId, EvPMURetransmission, "PMU Retransmission" ) #define ENUM_DEFNS_HrmIndividual \ \ ENUM_DEFN_HrmIndividual( HrmIndividual, Disable, "Disable" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I2, "I2" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I3, "I3" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I4, "I4" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I5, "I5" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I6, "I6" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I7, "I7" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I8, "I8" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I9, "I9" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I10, "I10" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I11, "I11" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I12, "I12" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I13, "I13" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I14, "I14" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, I15, "I15" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In2, "In2" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In3, "In3" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In4, "In4" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In5, "In5" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In6, "In6" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In7, "In7" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In8, "In8" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In9, "In9" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In10, "In10" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In11, "In11" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In12, "In12" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In13, "In13" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In14, "In14" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, In15, "In15" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V2, "V2" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V3, "V3" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V4, "V4" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V5, "V5" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V6, "V6" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V7, "V7" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V8, "V8" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V9, "V9" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V10, "V10" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V11, "V11" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V12, "V12" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V13, "V13" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V14, "V14" ) \ ENUM_DEFN_HrmIndividual( HrmIndividual, V15, "V15" ) #define ENUM_DEFNS_OscCaptureFormat \ \ ENUM_DEFN_OscCaptureFormat( OscCaptureFormat, ComtradeBinary, "BINARY COMTRADE" ) \ ENUM_DEFN_OscCaptureFormat( OscCaptureFormat, ComtradeAscii, "ASCII COMTRADE" ) #define ENUM_DEFNS_UpdateStep \ \ ENUM_DEFN_UpdateStep( UpdateStep, None, "None" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateUboot, "Installing uboot" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateMicrokernel, "Installing microkernel" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateLanguage, "Installing language files" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateGpio, "Installing GPIO firmware" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateSIM, "Installing SIM firmware" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateRelay, "Installing relay firmware" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdatePanel, "Installing panel firmware" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateDbSchema, "Installing database schema" ) \ ENUM_DEFN_UpdateStep( UpdateStep, CopyFiles, "Copying files" ) \ ENUM_DEFN_UpdateStep( UpdateStep, ValidateFiles, "Validating files" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdatePsc, "Installing PSC firmware" ) \ ENUM_DEFN_UpdateStep( UpdateStep, UpdateComplete, "Update complete" ) #define ENUM_DEFNS_SimExtSupplyStatus \ \ ENUM_DEFN_SimExtSupplyStatus( SimExtSupplyStatus, On, "On" ) \ ENUM_DEFN_SimExtSupplyStatus( SimExtSupplyStatus, Off, "Off" ) \ ENUM_DEFN_SimExtSupplyStatus( SimExtSupplyStatus, Overload, "Overload" ) \ ENUM_DEFN_SimExtSupplyStatus( SimExtSupplyStatus, Shutdown, "Shutdown" ) \ ENUM_DEFN_SimExtSupplyStatus( SimExtSupplyStatus, Limited, "Limited" ) #define ENUM_DEFNS_ScadaScaleRangeTable \ \ ENUM_DEFN_ScadaScaleRangeTable( ScadaScaleRangeTable, StandardScaling, "Standard" ) \ ENUM_DEFN_ScadaScaleRangeTable( ScadaScaleRangeTable, AlternateScaling, "Alternate" ) #define ENUM_DEFNS_UsbDiscEjectResult \ \ ENUM_DEFN_UsbDiscEjectResult( UsbDiscEjectResult, OK, "It is safe to remove the USB disc." ) \ ENUM_DEFN_UsbDiscEjectResult( UsbDiscEjectResult, TransferInProgress, "File transfer in progress." ) #define ENUM_DEFNS_ScadaEventSource \ \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, Dnp3BinaryInput, "DNP3 Binary Input" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S101SinglePoint, "S101 Single Point (Binary Input)" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S61850BinarySP, "s61850 Binary Single Point" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, Dnp3BinaryCounter, "DNP3 Binary Counter" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S101DoublePoint, "S101 Double Point (Binary Input)" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S61850BinaryDP, "s61850 Binary Double Point" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, Dnp3AnalogInput, "DNP3 Analog Input" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S101MeasuredValue, "S101 Measured Value (Analog Input)" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S61850AnalogIn, "S61850 Analog Input" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S101MonitoredIntegratedTotal, "S101 Monitored Integrated Total (Binary Counter)" ) \ ENUM_DEFN_ScadaEventSource( ScadaEventSource, S61850GseSubsDef, "Goose Subscription Definition" ) #define ENUM_DEFNS_ExtDataId \ \ ENUM_DEFN_ExtDataId( ExtDataId, LogEventSrc, "Log event source" ) \ ENUM_DEFN_ExtDataId( ExtDataId, LogicProcDpId, "Logic Id" ) \ ENUM_DEFN_ExtDataId( ExtDataId, StateType, "enum StateType" ) #define ENUM_DEFNS_AutoOpenMode \ \ ENUM_DEFN_AutoOpenMode( AutoOpenMode, Disabled, "Disabled" ) \ ENUM_DEFN_AutoOpenMode( AutoOpenMode, Timer, "Timer" ) \ ENUM_DEFN_AutoOpenMode( AutoOpenMode, PowerFlow, "Power Flow" ) #define ENUM_DEFNS_Uv4VoltageType \ \ ENUM_DEFN_Uv4VoltageType( Uv4VoltageType, Ph_Gnd, "Ph/Gnd" ) \ ENUM_DEFN_Uv4VoltageType( Uv4VoltageType, Ph_Ph, "Ph/Ph" ) #define ENUM_DEFNS_Uv4Voltages \ \ ENUM_DEFN_Uv4Voltages( Uv4Voltages, AbcRst, "ABC_RST" ) \ ENUM_DEFN_Uv4Voltages( Uv4Voltages, Abc, "ABC" ) \ ENUM_DEFN_Uv4Voltages( Uv4Voltages, Rst, "RST" ) #define ENUM_DEFNS_SingleTripleMode \ \ ENUM_DEFN_SingleTripleMode( SingleTripleMode, Trip3Lockout3, "3Ph Trip / 3Ph Lockout" ) \ ENUM_DEFN_SingleTripleMode( SingleTripleMode, Trip1Lockout3, "1Ph Trip / 3Ph Lockout" ) \ ENUM_DEFN_SingleTripleMode( SingleTripleMode, Trip1Lockout1, "1Ph Trip / 1Ph Lockout" ) #define ENUM_DEFNS_OsmSwitchCount \ \ ENUM_DEFN_OsmSwitchCount( OsmSwitchCount, 1Switch, "1" ) \ ENUM_DEFN_OsmSwitchCount( OsmSwitchCount, 3Switches, "3" ) #define ENUM_DEFNS_BatteryTestResult \ \ ENUM_DEFN_BatteryTestResult( BatteryTestResult, NotRunYet, "Battery Test Not Run Yet" ) \ ENUM_DEFN_BatteryTestResult( BatteryTestResult, Passed, "Battery Test Passed" ) \ ENUM_DEFN_BatteryTestResult( BatteryTestResult, CheckBattery, "Check Battery" ) \ ENUM_DEFN_BatteryTestResult( BatteryTestResult, Faulty, "Battery Test Circuit Fault" ) \ ENUM_DEFN_BatteryTestResult( BatteryTestResult, NotPerformed, "Not Performed" ) #define ENUM_DEFNS_BatteryTestNotPerformedReason \ \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, NoReason, "No Reason Given" ) \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, ACOff, "AC Off" ) \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, BatteryOff, "Battery Off" ) \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, Resting, "Resting" ) \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, NotCharging, "Battery Being Discharged" ) \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, VoltageTooLow, "Voltage Too Low" ) \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, NotSupported, "Not Supported" ) \ ENUM_DEFN_BatteryTestNotPerformedReason( BatteryTestNotPerformedReason, Timeout, "Timeout" ) #define ENUM_DEFNS_SingleTripleVoltageType \ \ ENUM_DEFN_SingleTripleVoltageType( SingleTripleVoltageType, Ph_Gnd, "Ph/Gnd" ) \ ENUM_DEFN_SingleTripleVoltageType( SingleTripleVoltageType, U1, "U1" ) #define ENUM_DEFNS_AbbrevStrId \ \ ENUM_DEFN_AbbrevStrId( AbbrevStrId, OC, "OC" ) \ ENUM_DEFN_AbbrevStrId( AbbrevStrId, NPS, "NPS" ) \ ENUM_DEFN_AbbrevStrId( AbbrevStrId, EF, "EF" ) \ ENUM_DEFN_AbbrevStrId( AbbrevStrId, SEF, "SEF" ) #define ENUM_DEFNS_SystemStatus \ \ ENUM_DEFN_SystemStatus( SystemStatus, Blank, "" ) \ ENUM_DEFN_SystemStatus( SystemStatus, Sectionaliser, "Sectionaliser " ) \ ENUM_DEFN_SystemStatus( SystemStatus, SingleTriple, "Single Triple " ) \ ENUM_DEFN_SystemStatus( SystemStatus, SingleTripleSectionaliser, "Single Triple Sectionaliser " ) \ ENUM_DEFN_SystemStatus( SystemStatus, ACOinitiated, ">> ACO initiated " ) \ ENUM_DEFN_SystemStatus( SystemStatus, ProtectionInitiated, ">> Protection initiated " ) \ ENUM_DEFN_SystemStatus( SystemStatus, DemoUnit, ">> Demo " ) \ ENUM_DEFN_SystemStatus( SystemStatus, SynchronisationEnabled, ">> Synchronisation Enabled " ) \ ENUM_DEFN_SystemStatus( SystemStatus, UpdateInProgress, ">> Update in progress " ) #define ENUM_DEFNS_LockDynamic \ \ ENUM_DEFN_LockDynamic( LockDynamic, Lock, "Lock" ) \ ENUM_DEFN_LockDynamic( LockDynamic, Dynamic, "Dynamic" ) #define ENUM_DEFNS_BatteryType \ \ ENUM_DEFN_BatteryType( BatteryType, AGM, "AGM" ) \ ENUM_DEFN_BatteryType( BatteryType, GEL, "GEL" ) #define ENUM_DEFNS_DNP3SAKeyUpdateVerificationMethod \ \ ENUM_DEFN_DNP3SAKeyUpdateVerificationMethod( DNP3SAKeyUpdateVerificationMethod, SerialNumber, "SerialNumber" ) \ ENUM_DEFN_DNP3SAKeyUpdateVerificationMethod( DNP3SAKeyUpdateVerificationMethod, SerialNumAndDNP3Address, "Serial number and DNP3 address" ) #define ENUM_DEFNS_MACAlgorithm \ \ ENUM_DEFN_MACAlgorithm( MACAlgorithm, HMAC_SHA1_4, "HMAC-SHA1/8" ) \ ENUM_DEFN_MACAlgorithm( MACAlgorithm, HMAC_SHA1_8, "HMAC-SHA1/10" ) \ ENUM_DEFN_MACAlgorithm( MACAlgorithm, HMAC_SHA1_10, "HMAC-SHA256/8" ) \ ENUM_DEFN_MACAlgorithm( MACAlgorithm, HMAC_SHA256_8, "HMAC-SHA256/16" ) \ ENUM_DEFN_MACAlgorithm( MACAlgorithm, HMAC_SHA256_16, "HMAC-SHA1/8" ) #define ENUM_DEFNS_DNP3SAVersion \ \ ENUM_DEFN_DNP3SAVersion( DNP3SAVersion, V2, "DNP3-SAv2" ) \ ENUM_DEFN_DNP3SAVersion( DNP3SAVersion, V5, "DNP3-SAv5" ) #define ENUM_DEFNS_AESAlgorithm \ \ ENUM_DEFN_AESAlgorithm( AESAlgorithm, AES128, "AES 128" ) \ ENUM_DEFN_AESAlgorithm( AESAlgorithm, AES256, "AES 256" ) #define ENUM_DEFNS_DNP3SAUpdateKeyInstallStep \ \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, NotStarted, "Not started" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, GetKey, "Find key" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, KeyNotFound, "Key not found" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, KeyFound, "Key found" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, StartInstall, "Start install" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, InstallInProgress, "Install in progress" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, InstallFailed, "Install failed" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstallStep( DNP3SAUpdateKeyInstallStep, Success, "Install succeeded" ) #define ENUM_DEFNS_SecurityStatisticsObject121Enum \ \ ENUM_DEFN_SecurityStatisticsObject121Enum( SecurityStatisticsObject121Enum, 32BitSecurityStatWithFlag, "Security statistic 32 bit with flag" ) #define ENUM_DEFNS_SecurityStatisticsObject122Enum \ \ ENUM_DEFN_SecurityStatisticsObject122Enum( SecurityStatisticsObject122Enum, 32BitSecurityStatWithFlag, "32-bit Security Statistic Change Event without Time" ) \ ENUM_DEFN_SecurityStatisticsObject122Enum( SecurityStatisticsObject122Enum, 32BitTimeSecurityStatWithFlag, "32-bit Security Statistic Change Event with Time" ) #define ENUM_DEFNS_DNP3SAUpdateKeyInstalledStatus \ \ ENUM_DEFN_DNP3SAUpdateKeyInstalledStatus( DNP3SAUpdateKeyInstalledStatus, KeyNotFound, "Not found" ) \ ENUM_DEFN_DNP3SAUpdateKeyInstalledStatus( DNP3SAUpdateKeyInstalledStatus, KeyInstalled, "Installed" ) #define ENUM_DEFNS_UsbDiscDNP3SAUpdateKeyFileError \ \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, None, "No Error" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, TooManyFiles, "Too many files" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, FileFormatInvalid, "Invalid file format" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, OpenFail, "Failed to open file" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidUserId, "Invalid User number" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidUserRole, "Invalid user role" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidDNP3Address, "Invalid DNP3 slave address" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidDeviceSerialNumber, "Invalid relay serial number" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidKeyVersion, "Invalid update key version" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidVerificationMethod, "Invalid verification method" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidFileVersion, "Invalid config. file version" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidFileFormatVersion, "Invalid file format version" ) \ ENUM_DEFN_UsbDiscDNP3SAUpdateKeyFileError( UsbDiscDNP3SAUpdateKeyFileError, InvalidEnableAfterInstall, "Invalid enable DNP3-SA after install" ) #define ENUM_DEFNS_IEC61499AppStatus \ \ ENUM_DEFN_IEC61499AppStatus( IEC61499AppStatus, Stopped, "Stopped" ) \ ENUM_DEFN_IEC61499AppStatus( IEC61499AppStatus, Running, "Running" ) #define ENUM_DEFNS_IEC61499Command \ \ ENUM_DEFN_IEC61499Command( IEC61499Command, IEC61499CmdNone, "IEC61499 Command - None" ) \ ENUM_DEFN_IEC61499Command( IEC61499Command, IEC61499CmdStart, "IEC61499 Start Command" ) \ ENUM_DEFN_IEC61499Command( IEC61499Command, IEC61499CmdStop, "IEC61499 Stop Command" ) \ ENUM_DEFN_IEC61499Command( IEC61499Command, IEC61499CmdDeleteFromNAND, "IEC61499 Delete FBOOT from NAND" ) \ ENUM_DEFN_IEC61499Command( IEC61499Command, IEC61499CmdUSBToNAND, "IEC61499 Copy from USB to NAND" ) \ ENUM_DEFN_IEC61499Command( IEC61499Command, IEC61499CmdStagingToNAND, "IEC61499 Copy from Staging to NAND" ) #define ENUM_DEFNS_OperatingMode \ \ ENUM_DEFN_OperatingMode( OperatingMode, Recloser, "Recloser" ) \ ENUM_DEFN_OperatingMode( OperatingMode, Switch, "Switch" ) \ ENUM_DEFN_OperatingMode( OperatingMode, AlarmSwitch, "Alarm Switch" ) \ ENUM_DEFN_OperatingMode( OperatingMode, Sectionaliser, "Sectionaliser" ) #define ENUM_DEFNS_LatchEnable \ \ ENUM_DEFN_LatchEnable( LatchEnable, UnLatched, "Not Latched" ) \ ENUM_DEFN_LatchEnable( LatchEnable, Latched, "Latched" ) #define ENUM_DEFNS_DemoUnitMode \ \ ENUM_DEFN_DemoUnitMode( DemoUnitMode, Disabled, "Disabled" ) \ ENUM_DEFN_DemoUnitMode( DemoUnitMode, Standard, "Standard" ) \ ENUM_DEFN_DemoUnitMode( DemoUnitMode, SingleTriple, "Single Triple" ) #define ENUM_DEFNS_RemoteUpdateCommand \ \ ENUM_DEFN_RemoteUpdateCommand( RemoteUpdateCommand, None, "None" ) \ ENUM_DEFN_RemoteUpdateCommand( RemoteUpdateCommand, Validate, "Validate" ) \ ENUM_DEFN_RemoteUpdateCommand( RemoteUpdateCommand, Update, "Update" ) \ ENUM_DEFN_RemoteUpdateCommand( RemoteUpdateCommand, Reset, "Reset" ) #define ENUM_DEFNS_RemoteUpdateState \ \ ENUM_DEFN_RemoteUpdateState( RemoteUpdateState, Idle, "Idle" ) \ ENUM_DEFN_RemoteUpdateState( RemoteUpdateState, Validating, "Validating" ) \ ENUM_DEFN_RemoteUpdateState( RemoteUpdateState, InProgress, "Update in progress" ) \ ENUM_DEFN_RemoteUpdateState( RemoteUpdateState, Blocked, "Blocked" ) #define ENUM_DEFNS_IEC61499FBOOTChEv \ \ ENUM_DEFN_IEC61499FBOOTChEv( IEC61499FBOOTChEv, IEC61499FBOOTNoCh, "" ) \ ENUM_DEFN_IEC61499FBOOTChEv( IEC61499FBOOTChEv, IEC61499FBOOTChUSB, "Installed" ) \ ENUM_DEFN_IEC61499FBOOTChEv( IEC61499FBOOTChEv, IEC61499FBOOTChStage, "Installed" ) \ ENUM_DEFN_IEC61499FBOOTChEv( IEC61499FBOOTChEv, IEC61499FBOOTChDel, "Deleted" ) #define ENUM_DEFNS_CmsClientSupports \ \ ENUM_DEFN_CmsClientSupports( CmsClientSupports, sw3ph, "3 phase switchgear" ) \ ENUM_DEFN_CmsClientSupports( CmsClientSupports, sw1ph, "1 phase switchgear" ) \ ENUM_DEFN_CmsClientSupports( CmsClientSupports, swST, "Single-Triple switchgear" ) #define ENUM_DEFNS_IEC61499FBOOTStatus \ \ ENUM_DEFN_IEC61499FBOOTStatus( IEC61499FBOOTStatus, None, "None" ) \ ENUM_DEFN_IEC61499FBOOTStatus( IEC61499FBOOTStatus, Installed, "Installed" ) #define ENUM_DEFNS_IEC61499FBOOTOper \ \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, None, "None" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, SuccessCopy, "SuccessCopy" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, SuccessOverwrite, "SuccessOverwrite" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, SuccessDelete, "SuccessDelete" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailCopy, "FailCopy" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailOverwrite, "FailOverwrite" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailDelete, "FailDelete" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailCopyCannotRead, "FailCopyCannotRead" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailCopyInvalidFile, "FailCopyInvalidFile" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailCopyLargeFile, "FailCopyLargeFile" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailDeletePermission, "FailDeletePermission" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailCopyFileNotFound, "FailCopyFileNotFound" ) \ ENUM_DEFN_IEC61499FBOOTOper( IEC61499FBOOTOper, FailCopyNoResource, "FailCopyNoResource" ) #define ENUM_DEFNS_SignalQuality \ \ ENUM_DEFN_SignalQuality( SignalQuality, NoSignal, "Unknown" ) \ ENUM_DEFN_SignalQuality( SignalQuality, LowSignal, "Low Signal" ) \ ENUM_DEFN_SignalQuality( SignalQuality, VeryGood, "Very Good" ) \ ENUM_DEFN_SignalQuality( SignalQuality, Excellent, "Excellent" ) #define ENUM_DEFNS_GpsTimeSyncStatus \ \ ENUM_DEFN_GpsTimeSyncStatus( GpsTimeSyncStatus, NoSync, "Syncing with GPS" ) \ ENUM_DEFN_GpsTimeSyncStatus( GpsTimeSyncStatus, Locked, "Locked by GPS" ) \ ENUM_DEFN_GpsTimeSyncStatus( GpsTimeSyncStatus, NoPPS, "No PPS Signal" ) #define ENUM_DEFNS_WlanConnectionMode \ \ ENUM_DEFN_WlanConnectionMode( WlanConnectionMode, AccessPoint, "Access Point" ) \ ENUM_DEFN_WlanConnectionMode( WlanConnectionMode, Client, "Client" ) #define ENUM_DEFNS_MobileNetworkSimCardStatus \ \ ENUM_DEFN_MobileNetworkSimCardStatus( MobileNetworkSimCardStatus, NotDetected, "Not Detected" ) \ ENUM_DEFN_MobileNetworkSimCardStatus( MobileNetworkSimCardStatus, Detected, "Detected" ) #define ENUM_DEFNS_MobileNetworkMode \ \ ENUM_DEFN_MobileNetworkMode( MobileNetworkMode, Unknown, "Unknown" ) \ ENUM_DEFN_MobileNetworkMode( MobileNetworkMode, GSM, "GSM(2G)" ) \ ENUM_DEFN_MobileNetworkMode( MobileNetworkMode, WCDMA, "WCDMA(3G)" ) \ ENUM_DEFN_MobileNetworkMode( MobileNetworkMode, WCDMA_GSM, "WCDMA(3G)" ) \ ENUM_DEFN_MobileNetworkMode( MobileNetworkMode, LTE_WCDMA_GSM, "LTE(4G)" ) #define ENUM_DEFNS_PhaseToSelection \ \ ENUM_DEFN_PhaseToSelection( PhaseToSelection, PhaseToGround, "Phase to Ground" ) \ ENUM_DEFN_PhaseToSelection( PhaseToSelection, PhaseToPhase, "Phase to Phase" ) #define ENUM_DEFNS_BusAndLine \ \ ENUM_DEFN_BusAndLine( BusAndLine, BusABCLineRST, "Bus: ABC & Line: RST" ) \ ENUM_DEFN_BusAndLine( BusAndLine, BusRSTLineABC, "Bus: RST & Line: ABC" ) #define ENUM_DEFNS_SyncLiveDeadMode \ \ ENUM_DEFN_SyncLiveDeadMode( SyncLiveDeadMode, Disabled, "Disabled" ) \ ENUM_DEFN_SyncLiveDeadMode( SyncLiveDeadMode, LLDB, "LLDB" ) \ ENUM_DEFN_SyncLiveDeadMode( SyncLiveDeadMode, DLLB, "DLLB" ) \ ENUM_DEFN_SyncLiveDeadMode( SyncLiveDeadMode, LLDBOrDLLB, "LLDB or DLLB" ) #define ENUM_DEFNS_SynchroniserStatus \ \ ENUM_DEFN_SynchroniserStatus( SynchroniserStatus, Fail, "Fail" ) \ ENUM_DEFN_SynchroniserStatus( SynchroniserStatus, Ok, "OK" ) \ ENUM_DEFN_SynchroniserStatus( SynchroniserStatus, Released, "Released" ) \ ENUM_DEFN_SynchroniserStatus( SynchroniserStatus, Stopped, "Stopped" ) #define ENUM_DEFNS_PowerFlowDirection \ \ ENUM_DEFN_PowerFlowDirection( PowerFlowDirection, RST_to_ABC, "RST to ABC" ) \ ENUM_DEFN_PowerFlowDirection( PowerFlowDirection, ABC_to_RST, "ABC to RST" ) #define ENUM_DEFNS_AutoRecloseStatus \ \ ENUM_DEFN_AutoRecloseStatus( AutoRecloseStatus, Ready, "Ready" ) \ ENUM_DEFN_AutoRecloseStatus( AutoRecloseStatus, InProgress, "In progress" ) \ ENUM_DEFN_AutoRecloseStatus( AutoRecloseStatus, Successful, "AR successful" ) #define ENUM_DEFNS_TripsToLockout \ \ ENUM_DEFN_TripsToLockout( TripsToLockout, One, "1" ) \ ENUM_DEFN_TripsToLockout( TripsToLockout, Two, "2" ) \ ENUM_DEFN_TripsToLockout( TripsToLockout, Three, "3" ) \ ENUM_DEFN_TripsToLockout( TripsToLockout, Four, "4" ) #define ENUM_DEFNS_YnOperationalMode \ \ ENUM_DEFN_YnOperationalMode( YnOperationalMode, Gn, "Gn" ) \ ENUM_DEFN_YnOperationalMode( YnOperationalMode, Bn, "Bn" ) \ ENUM_DEFN_YnOperationalMode( YnOperationalMode, GnBn, "Gn & Bn" ) #define ENUM_DEFNS_YnDirectionalMode \ \ ENUM_DEFN_YnDirectionalMode( YnDirectionalMode, Forward, "Forward" ) \ ENUM_DEFN_YnDirectionalMode( YnDirectionalMode, Reverse, "Reverse" ) \ ENUM_DEFN_YnDirectionalMode( YnDirectionalMode, Bidirectional, "Bidirectional" ) #define ENUM_DEFNS_HmiListSource \ \ ENUM_DEFN_HmiListSource( HmiListSource, StrArray, "String Array" ) \ ENUM_DEFN_HmiListSource( HmiListSource, StrArray2, "String Array" ) #define ENUM_DEFNS_RelayModelName \ \ ENUM_DEFN_RelayModelName( RelayModelName, RC10, "RC10" ) \ ENUM_DEFN_RelayModelName( RelayModelName, RC15, "RC15" ) \ ENUM_DEFN_RelayModelName( RelayModelName, RC20, "RC20" ) #define ENUM_DEFNS_CmsSecurityLevel \ \ ENUM_DEFN_CmsSecurityLevel( CmsSecurityLevel, Disabled, "Disabled" ) \ ENUM_DEFN_CmsSecurityLevel( CmsSecurityLevel, Authenticated, "Authenticated" ) \ ENUM_DEFN_CmsSecurityLevel( CmsSecurityLevel, AuthenticatedAndEncrypted, "Authenticated & Encrypted" ) #define ENUM_DEFNS_ModemConnectStatus \ \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, Connecting, "Connecting" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, ModemError, "Modem Error" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, Restarting, "Restarting" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, Connected, "Connected" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SettingNetworkError, "Setting/Network Error" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, Retry, "Retry" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SIMCardError, "SIM Card Error" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, DisabledByUPS, "Disabled by UPS" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SIMPinRequired, "SIM PIN Required" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SIMPinError, "SIM PIN Error" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SIMBlocked, "SIM Blocked" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SIMPukRequired, "SIM PUK Required" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SIMPukError, "SIM PUK Error" ) \ ENUM_DEFN_ModemConnectStatus( ModemConnectStatus, SIMBlockedPermanently, "SIM Blocked Permanently" ) #define ENUM_DEFNS_S61850CIDUpdateStatus \ \ ENUM_DEFN_S61850CIDUpdateStatus( S61850CIDUpdateStatus, Idle, "Idle" ) \ ENUM_DEFN_S61850CIDUpdateStatus( S61850CIDUpdateStatus, NewCID, "New CID" ) \ ENUM_DEFN_S61850CIDUpdateStatus( S61850CIDUpdateStatus, DeletedCID, "CID deleted" ) #define ENUM_DEFNS_WLanTxPower \ \ ENUM_DEFN_WLanTxPower( WLanTxPower, Low, "Low" ) \ ENUM_DEFN_WLanTxPower( WLanTxPower, Medium, "Medium" ) \ ENUM_DEFN_WLanTxPower( WLanTxPower, High, "High" ) #define ENUM_DEFNS_WlanConnectStatus \ \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, Starting, "Starting" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, Booting, "Booting" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, LoadingFirmware, "Loading Firmware" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, Initialising, "Initialising" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, ErrorWrongClientPassword, "Error: Wrong Client Password" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, ErrorAPNotFound, "Error: AP Not Found" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, ErrorWrongPasswordLength, "Error: Wrong Password Length" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, ErrorAPPasswordLength, "Error: AP Password Length" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, ErrorClientPasswordLength, "Error: Client Password Length" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, ConnectedtoAP, "Connected to AP" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, AccessPointRunning, "Access Point Running" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, WiFiFailRefertoEventLog, "Wi-Fi Fail: Refer to Event Log" ) \ ENUM_DEFN_WlanConnectStatus( WlanConnectStatus, DisabledByUPS, "Disabled by UPS" ) #define ENUM_DEFNS_UpdateInterlockStatus \ \ ENUM_DEFN_UpdateInterlockStatus( UpdateInterlockStatus, Unlocked, "Unlocked" ) \ ENUM_DEFN_UpdateInterlockStatus( UpdateInterlockStatus, LockedByCMS, "Locked by CMS" ) \ ENUM_DEFN_UpdateInterlockStatus( UpdateInterlockStatus, LockedByHMI, "Locked by HMI" ) #define ENUM_DEFNS_GPSStatus \ \ ENUM_DEFN_GPSStatus( GPSStatus, Normal, "Normal" ) \ ENUM_DEFN_GPSStatus( GPSStatus, Unplugged, "Unplugged" ) \ ENUM_DEFN_GPSStatus( GPSStatus, Malfunction, "Malfunction" ) #define ENUM_DEFNS_ResetCommand \ \ ENUM_DEFN_ResetCommand( ResetCommand, None, "" ) \ ENUM_DEFN_ResetCommand( ResetCommand, Reset, "Reset" ) #define ENUM_DEFNS_AlertDisplayMode \ \ ENUM_DEFN_AlertDisplayMode( AlertDisplayMode, Empty, "Empty" ) \ ENUM_DEFN_AlertDisplayMode( AlertDisplayMode, SingleColumn, "Single Column Display" ) \ ENUM_DEFN_AlertDisplayMode( AlertDisplayMode, TwoColumn, "Two Column Display" ) #define ENUM_DEFNS_Signals \ \ ENUM_DEFN_Signals( Signals, HotLineTagOn, "Hot Line Tag On" ) \ ENUM_DEFN_Signals( Signals, LogicalBlockClose, "Logical Block Close" ) \ ENUM_DEFN_Signals( Signals, UpdateFailed, "Update Failed" ) \ ENUM_DEFN_Signals( Signals, UpdateReverted, "Update Reverted" ) \ ENUM_DEFN_Signals( Signals, UpdateSettingsLogsFail, "Update Settings or Logs Fail" ) \ ENUM_DEFN_Signals( Signals, USBUnsupported, "USB Unsupported" ) \ ENUM_DEFN_Signals( Signals, USBMismatched, "USB Mismatched" ) \ ENUM_DEFN_Signals( Signals, SIMNotCalibrated, "SIM Not Calibrated" ) \ ENUM_DEFN_Signals( Signals, SIMCommsFail, "SIM Comms Fail" ) \ ENUM_DEFN_Signals( Signals, LineSupplyStatusAbnormal, "Line Supply Status Abnormal" ) \ ENUM_DEFN_Signals( Signals, USBHostOff, "USB Host Off" ) \ ENUM_DEFN_Signals( Signals, SourceNotHealthy, "Source Not Healthy" ) \ ENUM_DEFN_Signals( Signals, ACOUnhealthy, "ACO Unhealthy" ) \ ENUM_DEFN_Signals( Signals, PeerCommsFailed, "Peer Comms Failed" ) \ ENUM_DEFN_Signals( Signals, RTCHardwareFault, "RTC Hardware Fault" ) \ ENUM_DEFN_Signals( Signals, DialupFailed, "Dial-up Failed" ) \ ENUM_DEFN_Signals( Signals, RelayModuleFault, "Relay Module Fault" ) \ ENUM_DEFN_Signals( Signals, SIMCommsError, "SIM Comms Error" ) \ ENUM_DEFN_Signals( Signals, IO1CommsError, "I/O1 Comms Error" ) \ ENUM_DEFN_Signals( Signals, IO2CommsError, "I/O2 Comms Error" ) \ ENUM_DEFN_Signals( Signals, IO1Fault, "I/O1 Fault" ) \ ENUM_DEFN_Signals( Signals, IO2Fault, "I/O2 Fault" ) \ ENUM_DEFN_Signals( Signals, ExcessiveTo, "Excessive To" ) \ ENUM_DEFN_Signals( Signals, ExcessiveTc, "Excessive Tc" ) \ ENUM_DEFN_Signals( Signals, OSMPositionStatusUnavailable, "OSM Position Status Unavailable" ) \ ENUM_DEFN_Signals( Signals, OSMDisconnected, "OSM Disconnected" ) \ ENUM_DEFN_Signals( Signals, MechanicallyLocked, "Mechanically Locked" ) \ ENUM_DEFN_Signals( Signals, OSMCoilOC, "OSM Coil OC" ) \ ENUM_DEFN_Signals( Signals, OSMCoilSC, "OSM Coil SC" ) \ ENUM_DEFN_Signals( Signals, OSMLimitSwitchFault, "OSM Limit Switch Fault" ) \ ENUM_DEFN_Signals( Signals, SIMCapsNotCharged, "SIM Caps Not Charged" ) \ ENUM_DEFN_Signals( Signals, BatteryStatusAbnormal, "Battery Status Abnormal" ) \ ENUM_DEFN_Signals( Signals, BatteryChargerStateLowPower, "Battery Charger State: Low Power" ) \ ENUM_DEFN_Signals( Signals, BatteryChargerFault, "Battery Charger Fault" ) \ ENUM_DEFN_Signals( Signals, ExternalLoadOverload, "External Load Overload" ) \ ENUM_DEFN_Signals( Signals, ACOff, "AC Off (On Battery Supply)" ) \ ENUM_DEFN_Signals( Signals, BatteryOff, "Battery Off (On AC Supply)" ) \ ENUM_DEFN_Signals( Signals, CriticalBatteryLevel, "Critical Battery Level" ) \ ENUM_DEFN_Signals( Signals, SIMModuleFault, "SIM Module Fault" ) \ ENUM_DEFN_Signals( Signals, SIMDisconnected, "SIM Disconnected" ) \ ENUM_DEFN_Signals( Signals, CANControllerOverrun, "CANControllerOverrun" ) \ ENUM_DEFN_Signals( Signals, CANControllerError, "CANControllerError" ) \ ENUM_DEFN_Signals( Signals, CANMessagebufferoverflow, "CANMessagebufferoverflow" ) \ ENUM_DEFN_Signals( Signals, WarningSignals, "Warning Signals" ) \ ENUM_DEFN_Signals( Signals, Malfunction, "Malfunction" ) \ ENUM_DEFN_Signals( Signals, ModuleCommsError, "Module Comms Error" ) \ ENUM_DEFN_Signals( Signals, PanelCommsError, "Panel Comms Error" ) \ ENUM_DEFN_Signals( Signals, ControllerFault, "Controller Fault" ) \ ENUM_DEFN_Signals( Signals, ControllerModuleFault, "Controller Module Fault" ) \ ENUM_DEFN_Signals( Signals, PanelModuleFault, "Panel Module Fault" ) \ ENUM_DEFN_Signals( Signals, OSMFault, "OSM Fault" ) \ ENUM_DEFN_Signals( Signals, CANBusMalfunction, "CAN Bus Malfunction" ) \ ENUM_DEFN_Signals( Signals, CapacitorVoltageAbnormal, "Capacitor Voltage Abnormal" ) \ ENUM_DEFN_Signals( Signals, IncorrectDBValuesLoaded, "Incorrect DB Values Loaded" ) \ ENUM_DEFN_Signals( Signals, SIMMinibootloaderMode, "SIM in Minibootloader Mode" ) \ ENUM_DEFN_Signals( Signals, DisconnectedPhA, "Disconnected Ph A" ) \ ENUM_DEFN_Signals( Signals, DisconnectedPhB, "Disconnected Ph B" ) \ ENUM_DEFN_Signals( Signals, DisconnectedPhC, "Disconnected Ph C" ) \ ENUM_DEFN_Signals( Signals, MechanicallyLockedPhA, "Mechanically Locked Ph A" ) \ ENUM_DEFN_Signals( Signals, MechanicallyLockedPhB, "Mechanically Locked Ph B" ) \ ENUM_DEFN_Signals( Signals, MechanicallyLockedPhC, "Mechanically Locked Ph C" ) \ ENUM_DEFN_Signals( Signals, CoilPhAOC, "Coil Ph A OC" ) \ ENUM_DEFN_Signals( Signals, CoilPhBOC, "Coil Ph B OC" ) \ ENUM_DEFN_Signals( Signals, CoilPhCOC, "Coil Ph C OC" ) \ ENUM_DEFN_Signals( Signals, CoilPhASC, "Coil Ph A SC" ) \ ENUM_DEFN_Signals( Signals, CoilPhBSC, "Coil Ph B SC" ) \ ENUM_DEFN_Signals( Signals, CoilPhCSC, "Coil Ph C SC" ) \ ENUM_DEFN_Signals( Signals, LimitSwitchFaultPhA, "Limit Switch Fault Ph A" ) \ ENUM_DEFN_Signals( Signals, LimitSwitchFaultPhB, "Limit Switch Fault Ph B" ) \ ENUM_DEFN_Signals( Signals, LimitSwitchFaultPhC, "Limit Switch Fault Ph C" ) \ ENUM_DEFN_Signals( Signals, ExcessiveToPhA, "Excessive To Ph A" ) \ ENUM_DEFN_Signals( Signals, ExcessiveToPhB, "Excessive To Ph B" ) \ ENUM_DEFN_Signals( Signals, ExcessiveToPhC, "Excessive To Ph C" ) \ ENUM_DEFN_Signals( Signals, ExcessiveTcPhA, "Excessive Tc Ph A" ) \ ENUM_DEFN_Signals( Signals, ExcessiveTcPhB, "Excessive Tc Ph B" ) \ ENUM_DEFN_Signals( Signals, ExcessiveTcPhC, "Excessive Tc Ph C" ) \ ENUM_DEFN_Signals( Signals, SWLockedPhA, "SW Locked Ph A" ) \ ENUM_DEFN_Signals( Signals, SWLockedPhB, "SW Locked Ph B" ) \ ENUM_DEFN_Signals( Signals, SWLockedPhC, "SW Locked Ph C" ) \ ENUM_DEFN_Signals( Signals, CheckBattery, "Check Battery" ) \ ENUM_DEFN_Signals( Signals, SIMCircuitFaulty, "Battery Test Circuit Fault" ) \ ENUM_DEFN_Signals( Signals, IncorrectPhaseSequence, "Incorrect Phase Sequence" ) \ ENUM_DEFN_Signals( Signals, SectionaliserConfigMismatch, "Sectionaliser configuration mismatch" ) \ ENUM_DEFN_Signals( Signals, GPIOMinibootloaderMode, "GPIO in Minibootloader Mode" ) \ ENUM_DEFN_Signals( Signals, LogicConfigurationIssue, "Logic Configuration Issue" ) \ ENUM_DEFN_Signals( Signals, PscDisconnected, "PSC Disconnected" ) \ ENUM_DEFN_Signals( Signals, PscRunningMiniBootloader, "PSC in Mini Bootloader Mode" ) \ ENUM_DEFN_Signals( Signals, PscModuleFault, "PSC Module Fault " ) \ ENUM_DEFN_Signals( Signals, SGAFbootFailed, "SGA fboot Failed" ) \ ENUM_DEFN_Signals( Signals, InvalidSingleTripleConfigAutoSync, "Invalid Auto-Sync Single Triple Cnfg" ) \ ENUM_DEFN_Signals( Signals, GPSEnabledUnplugged, "GPS is enabled and unplugged" ) \ ENUM_DEFN_Signals( Signals, GPSMalfunction, "GPS Malfunction" ) \ ENUM_DEFN_Signals( Signals, SimAndOsmModelMismatch, "SIM does not match OSM model number" ) \ ENUM_DEFN_Signals( Signals, LogicSGAStopped, "Logic/SGA Stopped" ) \ ENUM_DEFN_Signals( Signals, LogicSGAThrottling, "Logic/SGA Throttling" ) \ ENUM_DEFN_Signals( Signals, ScadaRestartReq, "SCADA Config requires RC restart" ) \ ENUM_DEFN_Signals( Signals, FirmwareHardwareMismatch, "Firmware/Hardware Mismatch" ) \ ENUM_DEFN_Signals( Signals, SNTPUnableToSync, "SNTP Unable to Sync" ) \ ENUM_DEFN_Signals( Signals, UsbOvercurrent, "USB Overcurrent" ) \ ENUM_DEFN_Signals( Signals, CanBusHighPower, "CAN Bus High Power " ) \ ENUM_DEFN_Signals( Signals, CorruptedPartition, "Corrupted Partition" ) \ ENUM_DEFN_Signals( Signals, RLM20UpgradeFailure, "RLM-20 Upgrade Failure" ) \ ENUM_DEFN_Signals( Signals, SigMalfAnalogBoard, "Analog Board Communication Error" ) \ ENUM_DEFN_Signals( Signals, CBFMalfunction, "CBF Malfunction" ) \ ENUM_DEFN_Signals( Signals, CBFBackupTrip, "CBF Backup Trip" ) \ ENUM_DEFN_Signals( Signals, SIMCardError, "SIM Card Error" ) \ ENUM_DEFN_Signals( Signals, SimCardPinRequired, "SIM Card PIN Required" ) \ ENUM_DEFN_Signals( Signals, SimCardPinError, "SIM Card PIN Error" ) \ ENUM_DEFN_Signals( Signals, SimCardBlocked, "SIM Card Blocked, SIM PUK Required" ) \ ENUM_DEFN_Signals( Signals, SimCardPukError, "SIM Card PUK Error" ) \ ENUM_DEFN_Signals( Signals, SimCardBlockedPermanently, "SIM Card Blocked Permanently" ) #define ENUM_DEFNS_CommsPortHmi \ \ ENUM_DEFN_CommsPortHmi( CommsPortHmi, RS232, "RS232" ) \ ENUM_DEFN_CommsPortHmi( CommsPortHmi, USBA, "USBA" ) \ ENUM_DEFN_CommsPortHmi( CommsPortHmi, USBB, "USBB" ) \ ENUM_DEFN_CommsPortHmi( CommsPortHmi, USBC, "USBC" ) \ ENUM_DEFN_CommsPortHmi( CommsPortHmi, RS232P, "RS232P" ) \ ENUM_DEFN_CommsPortHmi( CommsPortHmi, LAN, "LAN" ) #define ENUM_DEFNS_CommsPortHmiGadget \ \ ENUM_DEFN_CommsPortHmiGadget( CommsPortHmiGadget, RS232, "RS232" ) \ ENUM_DEFN_CommsPortHmiGadget( CommsPortHmiGadget, USBA, "USBA" ) \ ENUM_DEFN_CommsPortHmiGadget( CommsPortHmiGadget, USBB, "USBB" ) \ ENUM_DEFN_CommsPortHmiGadget( CommsPortHmiGadget, USBC, "USBC" ) \ ENUM_DEFN_CommsPortHmiGadget( CommsPortHmiGadget, RS232P, "RS232P" ) \ ENUM_DEFN_CommsPortHmiGadget( CommsPortHmiGadget, USBC2, "USBC2" ) \ ENUM_DEFN_CommsPortHmiGadget( CommsPortHmiGadget, USB_L, "USB-L" ) #define ENUM_DEFNS_CommsPortHmiNoLAN \ \ ENUM_DEFN_CommsPortHmiNoLAN( CommsPortHmiNoLAN, RS232, "RS232" ) \ ENUM_DEFN_CommsPortHmiNoLAN( CommsPortHmiNoLAN, USBA, "USBA" ) \ ENUM_DEFN_CommsPortHmiNoLAN( CommsPortHmiNoLAN, USBB, "USBB" ) \ ENUM_DEFN_CommsPortHmiNoLAN( CommsPortHmiNoLAN, USBC, "USBC" ) \ ENUM_DEFN_CommsPortHmiNoLAN( CommsPortHmiNoLAN, RS232P, "RS232P" ) #define ENUM_DEFNS_HrmIndividualSinglePhase \ \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, Disable, "Disable" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I2, "I2" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I3, "I3" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I4, "I4" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I5, "I5" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I6, "I6" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I7, "I7" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I8, "I8" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I9, "I9" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I10, "I10" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I11, "I11" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I12, "I12" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I13, "I13" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I14, "I14" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, I15, "I15" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V2, "V2" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V3, "V3" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V4, "V4" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V5, "V5" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V6, "V6" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V7, "V7" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V8, "V8" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V9, "V9" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V10, "V10" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V11, "V11" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V12, "V12" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V13, "V13" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V14, "V14" ) \ ENUM_DEFN_HrmIndividualSinglePhase( HrmIndividualSinglePhase, V15, "V15" ) #define ENUM_DEFNS_Uv4VoltageTypeSinglePhase \ \ ENUM_DEFN_Uv4VoltageTypeSinglePhase( Uv4VoltageTypeSinglePhase, PhGnd, "Ph/Gnd" ) #define ENUM_DEFNS_WlanPortConfigType \ \ ENUM_DEFN_WlanPortConfigType( WlanPortConfigType, Disabled, "Disabled" ) \ ENUM_DEFN_WlanPortConfigType( WlanPortConfigType, WLAN, "WLAN" ) #define ENUM_DEFNS_MobileNetworkPortConfigType \ \ ENUM_DEFN_MobileNetworkPortConfigType( MobileNetworkPortConfigType, Disabled, "Disabled" ) \ ENUM_DEFN_MobileNetworkPortConfigType( MobileNetworkPortConfigType, MobileNetworkModem, "Mobile Network Modem" ) #define ENUM_DEFNS_CommsPortHmiNoUSBC \ \ ENUM_DEFN_CommsPortHmiNoUSBC( CommsPortHmiNoUSBC, RS232, "RS232" ) \ ENUM_DEFN_CommsPortHmiNoUSBC( CommsPortHmiNoUSBC, USBA, "USBA" ) \ ENUM_DEFN_CommsPortHmiNoUSBC( CommsPortHmiNoUSBC, USBB, "USBB" ) \ ENUM_DEFN_CommsPortHmiNoUSBC( CommsPortHmiNoUSBC, RS232P, "RS232P" ) \ ENUM_DEFN_CommsPortHmiNoUSBC( CommsPortHmiNoUSBC, LAN, "LAN" ) #define ENUM_DEFNS_CommsPortHmiNoUSBCWIFI \ \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI( CommsPortHmiNoUSBCWIFI, RS232, "RS232" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI( CommsPortHmiNoUSBCWIFI, USBA, "USBA" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI( CommsPortHmiNoUSBCWIFI, USBB, "USBB" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI( CommsPortHmiNoUSBCWIFI, RS232P, "RS232P" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI( CommsPortHmiNoUSBCWIFI, LAN, "LAN" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI( CommsPortHmiNoUSBCWIFI, WLAN, "WLAN" ) #define ENUM_DEFNS_CommsPortHmiNoUSBCWIFI4G \ \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI4G( CommsPortHmiNoUSBCWIFI4G, RS232, "RS232" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI4G( CommsPortHmiNoUSBCWIFI4G, USBA, "USBA" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI4G( CommsPortHmiNoUSBCWIFI4G, USBB, "USBB" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI4G( CommsPortHmiNoUSBCWIFI4G, RS232P, "RS232P" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI4G( CommsPortHmiNoUSBCWIFI4G, LAN, "LAN" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI4G( CommsPortHmiNoUSBCWIFI4G, WLAN, "WLAN" ) \ ENUM_DEFN_CommsPortHmiNoUSBCWIFI4G( CommsPortHmiNoUSBCWIFI4G, MOBILENETWORK, "MOBILENETWORK" ) #define ENUM_DEFNS_CommsPortLANSetREL01 \ \ ENUM_DEFN_CommsPortLANSetREL01( CommsPortLANSetREL01, USBA, "USBA" ) \ ENUM_DEFN_CommsPortLANSetREL01( CommsPortLANSetREL01, USBB, "USBB" ) \ ENUM_DEFN_CommsPortLANSetREL01( CommsPortLANSetREL01, USBC, "USBC" ) #define ENUM_DEFNS_CommsPortLANSetREL02 \ \ ENUM_DEFN_CommsPortLANSetREL02( CommsPortLANSetREL02, USBA, "USBA" ) \ ENUM_DEFN_CommsPortLANSetREL02( CommsPortLANSetREL02, USBB, "USBB" ) \ ENUM_DEFN_CommsPortLANSetREL02( CommsPortLANSetREL02, USBC, "USBC" ) \ ENUM_DEFN_CommsPortLANSetREL02( CommsPortLANSetREL02, LAN, "LAN" ) #define ENUM_DEFNS_CommsPortLANSetREL03 \ \ ENUM_DEFN_CommsPortLANSetREL03( CommsPortLANSetREL03, USBA, "USBA" ) \ ENUM_DEFN_CommsPortLANSetREL03( CommsPortLANSetREL03, USBB, "USBB" ) \ ENUM_DEFN_CommsPortLANSetREL03( CommsPortLANSetREL03, LAN, "LAN" ) #define ENUM_DEFNS_CommsPortLANSetREL15WLAN \ \ ENUM_DEFN_CommsPortLANSetREL15WLAN( CommsPortLANSetREL15WLAN, USBA, "USBA" ) \ ENUM_DEFN_CommsPortLANSetREL15WLAN( CommsPortLANSetREL15WLAN, USBB, "USBB" ) \ ENUM_DEFN_CommsPortLANSetREL15WLAN( CommsPortLANSetREL15WLAN, LAN, "LAN" ) \ ENUM_DEFN_CommsPortLANSetREL15WLAN( CommsPortLANSetREL15WLAN, WLAN, "WLAN" ) #define ENUM_DEFNS_CommsPortLANSetREL15WWAN \ \ ENUM_DEFN_CommsPortLANSetREL15WWAN( CommsPortLANSetREL15WWAN, USBA, "USBA" ) \ ENUM_DEFN_CommsPortLANSetREL15WWAN( CommsPortLANSetREL15WWAN, USBB, "USBB" ) \ ENUM_DEFN_CommsPortLANSetREL15WWAN( CommsPortLANSetREL15WWAN, LAN, "LAN" ) \ ENUM_DEFN_CommsPortLANSetREL15WWAN( CommsPortLANSetREL15WWAN, WLAN, "WLAN" ) \ ENUM_DEFN_CommsPortLANSetREL15WWAN( CommsPortLANSetREL15WWAN, MOBILENETWORK, "MOBILENETWORK" ) #define ENUM_DEFNS_FaultLocFaultType \ \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, None, "None" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, AE, "AE" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, BE, "BE" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, CE, "CE" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, AB, "AB" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, BC, "BC" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, CA, "CA" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, ABC, "ABC" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, ABE, "ABE" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, BCE, "BCE" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, CAE, "CAE" ) \ ENUM_DEFN_FaultLocFaultType( FaultLocFaultType, ABCE, "ABCE" ) #define ENUM_DEFNS_TimeUnit \ \ ENUM_DEFN_TimeUnit( TimeUnit, min, "min" ) #define ENUM_DEFNS_ScadaProtocolLoadedStatus \ \ ENUM_DEFN_ScadaProtocolLoadedStatus( ScadaProtocolLoadedStatus, RestartReq, "Controller Restart Req" ) \ ENUM_DEFN_ScadaProtocolLoadedStatus( ScadaProtocolLoadedStatus, Ready, "Ready" ) #define ENUM_DEFNS_SWModel \ \ ENUM_DEFN_SWModel( SWModel, REL_01, "REL-01" ) \ ENUM_DEFN_SWModel( SWModel, REL_02, "REL-02" ) \ ENUM_DEFN_SWModel( SWModel, REL_03, "" ) \ ENUM_DEFN_SWModel( SWModel, REL_04, "" ) \ ENUM_DEFN_SWModel( SWModel, REL_15, "REL-15" ) \ ENUM_DEFN_SWModel( SWModel, REL_20, "REL-20" ) #define ENUM_DEFNS_NeutralPolarisation \ \ ENUM_DEFN_NeutralPolarisation( NeutralPolarisation, I0, "In" ) \ ENUM_DEFN_NeutralPolarisation( NeutralPolarisation, I0CosTheta, "In cos θ" ) \ ENUM_DEFN_NeutralPolarisation( NeutralPolarisation, I0SinTheta, "In sin θ" ) #define ENUM_DEFNS_TimeSyncStatus \ \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, Internal, "Internal" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, CMS, "CMS" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, SCADA, "SCADA" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, SyncingWithGPS, "Syncing With GPS" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, LockedByGPS, "Locked By GPS" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, SyncSNTPServ1, "SNTP IPv4 Server 1" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, SyncSNTPServ2, "SNTP IPv4 Server 2" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, SyncSNTPIPv6Serv1, "SNTP IPv6 Server 1" ) \ ENUM_DEFN_TimeSyncStatus( TimeSyncStatus, SyncSNTPIPv6Serv2, "SNTP IPv6 Server 2" ) #define ENUM_DEFNS_IpVersion \ \ ENUM_DEFN_IpVersion( IpVersion, Disabled, "None" ) \ ENUM_DEFN_IpVersion( IpVersion, IPv4, "IPv4" ) \ ENUM_DEFN_IpVersion( IpVersion, IPv6, "IPv6" ) \ ENUM_DEFN_IpVersion( IpVersion, IPv4_IPv6, "IPv4/IPv6" ) #define ENUM_DEFNS_SDCardStatus \ \ ENUM_DEFN_SDCardStatus( SDCardStatus, NoCard, "No Card" ) \ ENUM_DEFN_SDCardStatus( SDCardStatus, Unformatted, "Unformatted" ) \ ENUM_DEFN_SDCardStatus( SDCardStatus, Ready, "Ready" ) \ ENUM_DEFN_SDCardStatus( SDCardStatus, Eject, "Syncing Filesystem" ) #define ENUM_DEFNS_OscSamplesPerCycle \ \ ENUM_DEFN_OscSamplesPerCycle( OscSamplesPerCycle, Samples32, "32" ) \ ENUM_DEFN_OscSamplesPerCycle( OscSamplesPerCycle, Samples128, "128" ) \ ENUM_DEFN_OscSamplesPerCycle( OscSamplesPerCycle, Samples256, "256" ) #define ENUM_DEFNS_OscCaptureTimeExt \ \ ENUM_DEFN_OscCaptureTimeExt( OscCaptureTimeExt, Sec_0_5, "0.5" ) \ ENUM_DEFN_OscCaptureTimeExt( OscCaptureTimeExt, Sec_1, "1" ) \ ENUM_DEFN_OscCaptureTimeExt( OscCaptureTimeExt, Sec_3, "3" ) \ ENUM_DEFN_OscCaptureTimeExt( OscCaptureTimeExt, Sec_5, "5" ) \ ENUM_DEFN_OscCaptureTimeExt( OscCaptureTimeExt, Sec_10, "10" ) \ ENUM_DEFN_OscCaptureTimeExt( OscCaptureTimeExt, Sec_20, "20" ) \ ENUM_DEFN_OscCaptureTimeExt( OscCaptureTimeExt, Sec_30, "30" ) #define ENUM_DEFNS_HrmIndividualExt \ \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, Disable, "Disable" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I2, "I2" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I3, "I3" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I4, "I4" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I5, "I5" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I6, "I6" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I7, "I7" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I8, "I8" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I9, "I9" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I10, "I10" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I11, "I11" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I12, "I12" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I13, "I13" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I14, "I14" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I15, "I15" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I16, "I16" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I17, "I17" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I18, "I18" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I19, "I19" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I20, "I20" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I21, "I21" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I22, "I22" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I23, "I23" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I24, "I24" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I25, "I25" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I26, "I26" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I27, "I27" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I28, "I28" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I29, "I29" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I30, "I30" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I31, "I31" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I32, "I32" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I33, "I33" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I34, "I34" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I35, "I35" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I36, "I36" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I37, "I37" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I38, "I38" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I39, "I39" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I40, "I40" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I41, "I41" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I42, "I42" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I43, "I43" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I44, "I44" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I45, "I45" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I46, "I46" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I47, "I47" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I48, "I48" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I49, "I49" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I50, "I50" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I51, "I51" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I52, "I52" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I53, "I53" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I54, "I54" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I55, "I55" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I56, "I56" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I57, "I57" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I58, "I58" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I59, "I59" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I60, "I60" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I61, "I61" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I62, "I62" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, I63, "I63" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In2, "In2" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In3, "In3" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In4, "In4" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In5, "In5" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In6, "In6" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In7, "In7" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In8, "In8" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In9, "In9" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In10, "In10" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In11, "In11" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In12, "In12" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In13, "In13" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In14, "In14" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In15, "In15" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In16, "In16" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In17, "In17" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In18, "In18" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In19, "In19" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In20, "In20" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In21, "In21" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In22, "In22" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In23, "In23" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In24, "In24" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In25, "In25" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In26, "In26" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In27, "In27" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In28, "In28" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In29, "In29" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In30, "In30" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In31, "In31" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In32, "In32" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In33, "In33" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In34, "In34" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In35, "In35" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In36, "In36" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In37, "In37" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In38, "In38" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In39, "In39" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In40, "In40" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In41, "In41" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In42, "In42" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In43, "In43" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In44, "In44" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In45, "In45" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In46, "In46" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In47, "In47" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In48, "In48" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In49, "In49" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In50, "In50" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In51, "In51" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In52, "In52" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In53, "In53" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In54, "In54" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In55, "In55" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In56, "In56" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In57, "In57" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In58, "In58" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In59, "In59" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In60, "In60" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In61, "In61" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In62, "In62" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, In63, "In63" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V2, "V2" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V3, "V3" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V4, "V4" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V5, "V5" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V6, "V6" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V7, "V7" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V8, "V8" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V9, "V9" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V10, "V10" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V11, "V11" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V12, "V12" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V13, "V13" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V14, "V14" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V15, "V15" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V16, "V16" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V17, "V17" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V18, "V18" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V19, "V19" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V20, "V20" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V21, "V21" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V22, "V22" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V23, "V23" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V24, "V24" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V25, "V25" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V26, "V26" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V27, "V27" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V28, "V28" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V29, "V29" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V30, "V30" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V31, "V31" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V32, "V32" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V33, "V33" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V34, "V34" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V35, "V35" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V36, "V36" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V37, "V37" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V38, "V38" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V39, "V39" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V40, "V40" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V41, "V41" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V42, "V42" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V43, "V43" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V44, "V44" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V45, "V45" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V46, "V46" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V47, "V47" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V48, "V48" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V49, "V49" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V50, "V50" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V51, "V51" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V52, "V52" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V53, "V53" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V54, "V54" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V55, "V55" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V56, "V56" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V57, "V57" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V58, "V58" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V59, "V59" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V60, "V60" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V61, "V61" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V62, "V62" ) \ ENUM_DEFN_HrmIndividualExt( HrmIndividualExt, V63, "V63" ) #define ENUM_DEFNS_HrmIndividualSinglePhaseExt \ \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, Disable, "Disable" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I2, "I2" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I3, "I3" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I4, "I4" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I5, "I5" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I6, "I6" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I7, "I7" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I8, "I8" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I9, "I9" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I10, "I10" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I11, "I11" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I12, "I12" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I13, "I13" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I14, "I14" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I15, "I15" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I16, "I16" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I17, "I17" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I18, "I18" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I19, "I19" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I20, "I20" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I21, "I21" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I22, "I22" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I23, "I23" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I24, "I24" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I25, "I25" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I26, "I26" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I27, "I27" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I28, "I28" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I29, "I29" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I30, "I30" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I31, "I31" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I32, "I32" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I33, "I33" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I34, "I34" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I35, "I35" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I36, "I36" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I37, "I37" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I38, "I38" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I39, "I39" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I40, "I40" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I41, "I41" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I42, "I42" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I43, "I43" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I44, "I44" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I45, "I45" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I46, "I46" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I47, "I47" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I48, "I48" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I49, "I49" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I50, "I50" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I51, "I51" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I52, "I52" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I53, "I53" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I54, "I54" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I55, "I55" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I56, "I56" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I57, "I57" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I58, "I58" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I59, "I59" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I60, "I60" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I61, "I61" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I62, "I62" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, I63, "I63" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V2, "V2" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V3, "V3" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V4, "V4" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V5, "V5" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V6, "V6" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V7, "V7" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V8, "V8" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V9, "V9" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V10, "V10" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V11, "V11" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V12, "V12" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V13, "V13" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V14, "V14" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V15, "V15" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V16, "V16" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V17, "V17" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V18, "V18" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V19, "V19" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V20, "V20" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V21, "V21" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V22, "V22" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V23, "V23" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V24, "V24" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V25, "V25" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V26, "V26" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V27, "V27" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V28, "V28" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V29, "V29" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V30, "V30" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V31, "V31" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V32, "V32" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V33, "V33" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V34, "V34" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V35, "V35" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V36, "V36" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V37, "V37" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V38, "V38" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V39, "V39" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V40, "V40" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V41, "V41" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V42, "V42" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V43, "V43" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V44, "V44" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V45, "V45" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V46, "V46" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V47, "V47" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V48, "V48" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V49, "V49" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V50, "V50" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V51, "V51" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V52, "V52" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V53, "V53" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V54, "V54" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V55, "V55" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V56, "V56" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V57, "V57" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V58, "V58" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V59, "V59" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V60, "V60" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V61, "V61" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V62, "V62" ) \ ENUM_DEFN_HrmIndividualSinglePhaseExt( HrmIndividualSinglePhaseExt, V63, "V63" ) #define ENUM_DEFNS_RC20CommsPortNoUSBCWIFI \ \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI( RC20CommsPortNoUSBCWIFI, RS232, "RS232" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI( RC20CommsPortNoUSBCWIFI, USBA, "USBA" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI( RC20CommsPortNoUSBCWIFI, USBB, "USBB" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI( RC20CommsPortNoUSBCWIFI, RS232P, "RS232P" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI( RC20CommsPortNoUSBCWIFI, LAN, "LAN" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI( RC20CommsPortNoUSBCWIFI, WLAN, "WLAN" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI( RC20CommsPortNoUSBCWIFI, LANB, "LAN2" ) #define ENUM_DEFNS_RC20CommsPortNoUSBCWIFI4G \ \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, RS232, "RS232" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, USBA, "USBA" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, USBB, "USBB" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, RS232P, "RS232P" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, LAN, "LAN" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, WLAN, "WLAN" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, MOBILENETWORK, "MOBILENETWORK" ) \ ENUM_DEFN_RC20CommsPortNoUSBCWIFI4G( RC20CommsPortNoUSBCWIFI4G, LANB, "LAN2" ) #define ENUM_DEFNS_BatteryCapacityConfidence \ \ ENUM_DEFN_BatteryCapacityConfidence( BatteryCapacityConfidence, Unknown, "Unknown" ) \ ENUM_DEFN_BatteryCapacityConfidence( BatteryCapacityConfidence, NotConfident, "Not Confident" ) \ ENUM_DEFN_BatteryCapacityConfidence( BatteryCapacityConfidence, Confident, "Confident" ) #define ENUM_DEFNS_PMUPerfClass \ \ ENUM_DEFN_PMUPerfClass( PMUPerfClass, TypeM, "M" ) \ ENUM_DEFN_PMUPerfClass( PMUPerfClass, TypeP, "P" ) #define ENUM_DEFNS_RC20CommsPortLAN \ \ ENUM_DEFN_RC20CommsPortLAN( RC20CommsPortLAN, USBA, "USBA" ) \ ENUM_DEFN_RC20CommsPortLAN( RC20CommsPortLAN, USBB, "USBB" ) \ ENUM_DEFN_RC20CommsPortLAN( RC20CommsPortLAN, LAN, "LAN" ) \ ENUM_DEFN_RC20CommsPortLAN( RC20CommsPortLAN, WLAN, "WLAN" ) \ ENUM_DEFN_RC20CommsPortLAN( RC20CommsPortLAN, LAN2, "LAN2" ) #define ENUM_DEFNS_RC20CommsPortLAN4G \ \ ENUM_DEFN_RC20CommsPortLAN4G( RC20CommsPortLAN4G, USBA, "USBA" ) \ ENUM_DEFN_RC20CommsPortLAN4G( RC20CommsPortLAN4G, USBB, "USBB" ) \ ENUM_DEFN_RC20CommsPortLAN4G( RC20CommsPortLAN4G, LAN, "LAN" ) \ ENUM_DEFN_RC20CommsPortLAN4G( RC20CommsPortLAN4G, WLAN, "WLAN" ) \ ENUM_DEFN_RC20CommsPortLAN4G( RC20CommsPortLAN4G, MOBILENETWORK, "MOBILENETWORK" ) \ ENUM_DEFN_RC20CommsPortLAN4G( RC20CommsPortLAN4G, LAN2, "LAN2" ) #define ENUM_DEFNS_PMUQuality \ \ ENUM_DEFN_PMUQuality( PMUQuality, Unknown, "Unknown" ) \ ENUM_DEFN_PMUQuality( PMUQuality, Valid_100ns, "Valid, Error < 100 ns" ) \ ENUM_DEFN_PMUQuality( PMUQuality, Valid_1us, "Valid, Error < 1 us" ) \ ENUM_DEFN_PMUQuality( PMUQuality, Valid_10us, "Valid, Error < 10 us" ) \ ENUM_DEFN_PMUQuality( PMUQuality, Valid_100us, "Valid, Error < 100 us" ) \ ENUM_DEFN_PMUQuality( PMUQuality, Valid_1ms, "Valid, Error < 1 ms" ) \ ENUM_DEFN_PMUQuality( PMUQuality, Valid_10ms, "Valid, Error < 10 ms" ) \ ENUM_DEFN_PMUQuality( PMUQuality, Invalid, "Invalid" ) \ ENUM_DEFN_PMUQuality( PMUQuality, DataAbsent, "Data Absent" ) #define ENUM_DEFNS_PMUStatus \ \ ENUM_DEFN_PMUStatus( PMUStatus, Disabled, "Disabled" ) \ ENUM_DEFN_PMUStatus( PMUStatus, RequireCID, "Require CID Config" ) \ ENUM_DEFN_PMUStatus( PMUStatus, ConfigError, "Configuration Error" ) \ ENUM_DEFN_PMUStatus( PMUStatus, NoSync, "GPS Not Synced" ) \ ENUM_DEFN_PMUStatus( PMUStatus, Sync, "GPS Synced" ) #define ENUM_DEFNS_PMUConfigStatus \ \ ENUM_DEFN_PMUConfigStatus( PMUConfigStatus, Invalid, "Invalid" ) \ ENUM_DEFN_PMUConfigStatus( PMUConfigStatus, Unconfigured, "Unconfigured" ) \ ENUM_DEFN_PMUConfigStatus( PMUConfigStatus, Valid, "Valid" ) #define ENUM_DEFNS_LineSupplyRange \ \ ENUM_DEFN_LineSupplyRange( LineSupplyRange, AC110V, "110V" ) \ ENUM_DEFN_LineSupplyRange( LineSupplyRange, AC220V, "220V" ) \ ENUM_DEFN_LineSupplyRange( LineSupplyRange, DC, "DC" ) \ ENUM_DEFN_LineSupplyRange( LineSupplyRange, Detecting, "Detecting" ) \ ENUM_DEFN_LineSupplyRange( LineSupplyRange, Off, "Off" ) #define ENUM_DEFNS_TimeSyncUnlockedTime \ \ ENUM_DEFN_TimeSyncUnlockedTime( TimeSyncUnlockedTime, Unknown, "Unknown" ) \ ENUM_DEFN_TimeSyncUnlockedTime( TimeSyncUnlockedTime, Locked, "Locked" ) \ ENUM_DEFN_TimeSyncUnlockedTime( TimeSyncUnlockedTime, UnlockedLessThan10s, "Unlocked <10 s" ) \ ENUM_DEFN_TimeSyncUnlockedTime( TimeSyncUnlockedTime, UnlockedLessThan100s, "Unlocked <100 s" ) \ ENUM_DEFN_TimeSyncUnlockedTime( TimeSyncUnlockedTime, UnlockedLessThan1000s, "Unlocked <1000 s" ) \ ENUM_DEFN_TimeSyncUnlockedTime( TimeSyncUnlockedTime, Unlocked1000sOrMore, "Unlocked >=1000 s" ) #define ENUM_DEFNS_CBF_backup_trip \ \ ENUM_DEFN_CBF_backup_trip( CBF_backup_trip, CBF_malfunction, "Excessive To" ) \ ENUM_DEFN_CBF_backup_trip( CBF_backup_trip, CBF_malf_current, "Excessive To/Current" ) \ ENUM_DEFN_CBF_backup_trip( CBF_backup_trip, CBF_current, "Current" ) #define ENUM_DEFNS_CbfCurrentMode \ \ ENUM_DEFN_CbfCurrentMode( CbfCurrentMode, Oc, "Phase" ) \ ENUM_DEFN_CbfCurrentMode( CbfCurrentMode, OcEf, "Phase/Residual" ) \ ENUM_DEFN_CbfCurrentMode( CbfCurrentMode, Ef, "Residual" ) #define ENUM_DEFNS_CommsPortREL15 \ \ ENUM_DEFN_CommsPortREL15( CommsPortREL15, USBA, "USB A" ) \ ENUM_DEFN_CommsPortREL15( CommsPortREL15, USBB, "USB B" ) \ ENUM_DEFN_CommsPortREL15( CommsPortREL15, None, "None" ) \ ENUM_DEFN_CommsPortREL15( CommsPortREL15, LAN, "LAN" ) \ ENUM_DEFN_CommsPortREL15( CommsPortREL15, WLAN, "WLAN" ) #define ENUM_DEFNS_CommsPortREL204G \ \ ENUM_DEFN_CommsPortREL204G( CommsPortREL204G, USBA, "USB A" ) \ ENUM_DEFN_CommsPortREL204G( CommsPortREL204G, USBB, "USB B" ) \ ENUM_DEFN_CommsPortREL204G( CommsPortREL204G, None, "None" ) \ ENUM_DEFN_CommsPortREL204G( CommsPortREL204G, LAN, "LAN" ) \ ENUM_DEFN_CommsPortREL204G( CommsPortREL204G, WLAN, "WLAN" ) \ ENUM_DEFN_CommsPortREL204G( CommsPortREL204G, LAN2, "LAN 2" ) #define ENUM_DEFNS_CommsPortREL02 \ \ ENUM_DEFN_CommsPortREL02( CommsPortREL02, USBA, "USB A" ) \ ENUM_DEFN_CommsPortREL02( CommsPortREL02, USBB, "USB B" ) \ ENUM_DEFN_CommsPortREL02( CommsPortREL02, USBC, "USB C" ) \ ENUM_DEFN_CommsPortREL02( CommsPortREL02, None, "None" ) \ ENUM_DEFN_CommsPortREL02( CommsPortREL02, LAN, "LAN" ) #define ENUM_DEFNS_CommsPortREL01 \ \ ENUM_DEFN_CommsPortREL01( CommsPortREL01, USBA, "USB A" ) \ ENUM_DEFN_CommsPortREL01( CommsPortREL01, USBB, "USB B" ) \ ENUM_DEFN_CommsPortREL01( CommsPortREL01, USBC, "USB C" ) \ ENUM_DEFN_CommsPortREL01( CommsPortREL01, None, "None" ) #define ENUM_DEFNS_ActiveInactive \ \ ENUM_DEFN_ActiveInactive( ActiveInactive, Inactive, "Inactive" ) \ ENUM_DEFN_ActiveInactive( ActiveInactive, Active, "Active" ) #define ENUM_DEFNS_UserCredentialResultStatus \ \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, Success, "Success" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, DlopenErr, "dlopen() failure" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, SymbolErr, "Symbol not found" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, ServiceErr, "Service Error" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, SystemErr, "System Error" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, BuffErr, "Buffer Error" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, PerDenied, "Permission Denied" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AuthErr, "Authentication failure" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, CredInsufficient, "Can not access authentication data" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AuthInfoUnavail, "Authentication Service unavailable" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, UserUnknown, "User not known" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, MaxTries, "Maximum Retries" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, NewAuthTokReqd, "New authentication token required" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AcctExpired, "User account has expired " ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, SessionErr, "Session Error" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, CredUnavail, " user credentials unavailable" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, CredExpired, "User credentials expired" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, CredErr, "Failure setting user credentials" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, NoModuleData, "No Module Data" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, CovErr, "PAM Conversation Error" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AuthOkErr, "Authentication token error" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AuthTokRecoveryErr, "Auth Token Recover Error" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AuthTokLockBusy, " Authentication token lock busy" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AuthTokDisableAging, "Authentication token aging disabled" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, TryAgain, " password required input" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, Ignore, "Ignore account module" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, Abort, "Critical error Abortion" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, AuthTokExpired, "authentication token expired" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, ModuleUnknown, "module is not known" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, BadItem, "Bad item passed to Security Module" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, ConvAgain, "Conversation again without data" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, Incomplete, "auth stack not called complete" ) \ ENUM_DEFN_UserCredentialResultStatus( UserCredentialResultStatus, Standby, "Default Status" ) #define ENUM_DEFNS_CredentialOperationMode \ \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, StandbyMode, "Credential operation standby mode" ) \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, AddNewUser, "Add New User" ) \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, RemoveUser, "Remove the existing user" ) \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, ChangePassword, "Change existing user's password" ) \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, UpdateRoleInfo, "Update user's role bitmap" ) \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, BatchUpdateCredential, "batch update on user credentials" ) \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, ResetCredential, "Remove all credentials" ) \ ENUM_DEFN_CredentialOperationMode( CredentialOperationMode, VerifyUser, "UserName and Password verification" ) #define ENUM_DEFNS_ConstraintT10BRG \ \ ENUM_DEFN_ConstraintT10BRG( ConstraintT10BRG, OA, "OA" ) \ ENUM_DEFN_ConstraintT10BRG( ConstraintT10BRG, MPort, "M Port" ) \ ENUM_DEFN_ConstraintT10BRG( ConstraintT10BRG, OA_MPort, "OA+M Port" ) \ ENUM_DEFN_ConstraintT10BRG( ConstraintT10BRG, MIP, "M IP" ) \ ENUM_DEFN_ConstraintT10BRG( ConstraintT10BRG, OA_MIP, "OA+M IP" ) \ ENUM_DEFN_ConstraintT10BRG( ConstraintT10BRG, MPort_MIP, "M Port+M IP" ) \ ENUM_DEFN_ConstraintT10BRG( ConstraintT10BRG, OA_MPort_MIP, "OA+M Port+M IP" ) #define ENUM_DEFNS_ConnectionStateT10BRG \ \ ENUM_DEFN_ConnectionStateT10BRG( ConnectionStateT10BRG, Closed, "Closed" ) \ ENUM_DEFN_ConnectionStateT10BRG( ConnectionStateT10BRG, Testing, "Testing" ) \ ENUM_DEFN_ConnectionStateT10BRG( ConnectionStateT10BRG, Started, "Started" ) #define ENUM_DEFNS_ConnectionMethodT10BRG \ \ ENUM_DEFN_ConnectionMethodT10BRG( ConnectionMethodT10BRG, Method1, "Method 1" ) \ ENUM_DEFN_ConnectionMethodT10BRG( ConnectionMethodT10BRG, Method2, "Method 2" ) #define ENUM_DEFNS_pinPukResult \ \ ENUM_DEFN_pinPukResult( pinPukResult, None, "" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINEntered, "PIN Entered" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINNotEntered, "PIN Not Entered" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINConfirmOK, "PIN Confirm OK" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINConfirmFail, "PIN Confirm Fail" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINWriteSuccess, "PIN Write Success" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINWriteFail, "PIN Write Fail" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINMaxTriesExceeded, "PIN Max Tries Exceeded" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKEntered, "PUK Entered" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKNotEntered, "PUK Not Entered" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKConfirmOK, "PUK Confirm OK" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKConfirmFail, "PUK Confirm Fail" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKWriteSuccess, "PUK Write Success" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKWriteFail, "PUK Write Fail" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKMaxTriesExceeded, "PUK Max Tries Exceeded" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINEntryByCMS, "PIN Entry By CMS" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKEntryByCMS, "PUK Entry By CMS" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PINNotAvailable, "PIN Not Available" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKNotAvailable, "PUK Not Available" ) \ ENUM_DEFN_pinPukResult( pinPukResult, PUKWroteNewPIN, "PIN Write Success" ) #define ENUM_DEFNS_ChangedLog \ \ ENUM_DEFN_ChangedLog( ChangedLog, NoText, "" ) \ ENUM_DEFN_ChangedLog( ChangedLog, Changed, "Changed" ) /**The Enumeration definitions * Arguments: type, name, text * type Enumeration type name * name Enumeration value name * text English display string for the enumeration value */ #define ENUM_DEFNS \ \ ENUM_DEFN( TimeFormat, 12, "12 Hour" ) \ ENUM_DEFN( TimeFormat, 24, "24 Hour" ) \ ENUM_DEFN( DateFormat, dmy, "dd/mm/yyyy" ) \ ENUM_DEFN( DateFormat, mdy, "mm/dd/yyyy" ) \ ENUM_DEFN( OkFail, Fail, "Fail" ) \ ENUM_DEFN( OkFail, OK, "OK" ) \ ENUM_DEFN( BattTestState, Apply, "Apply" ) \ ENUM_DEFN( BattTestState, Fail, "Fail" ) \ ENUM_DEFN( BattTestState, OK, "OK" ) \ ENUM_DEFN( BattTestState, Testing, "Testing" ) \ ENUM_DEFN( EnDis, Dis, "D" ) \ ENUM_DEFN( EnDis, En, "E" ) \ ENUM_DEFN( RelayState, Lockout, "Lockout" ) \ ENUM_DEFN( RelayState, Pickup, "Pickup" ) \ ENUM_DEFN( RelayState, Ready, "Ready" ) \ ENUM_DEFN( RelayState, Warn, "Warning" ) \ ENUM_DEFN( OkSCct, OK, "OK" ) \ ENUM_DEFN( OkSCct, SCct, "Short Circuit" ) \ ENUM_DEFN( RdyNr, NotRdy, "Not Ready" ) \ ENUM_DEFN( RdyNr, Rdy, "Ready" ) \ ENUM_DEFN( OnOff, Off, "Off" ) \ ENUM_DEFN( OnOff, On, "On" ) \ ENUM_DEFN( AvgPeriod, 10m, "10 minutes" ) \ ENUM_DEFN( AvgPeriod, 15m, "15 minutes" ) \ ENUM_DEFN( AvgPeriod, 1m, "1 minute" ) \ ENUM_DEFN( AvgPeriod, 30m, "30 minutes" ) \ ENUM_DEFN( AvgPeriod, 5m, "5 minutes" ) \ ENUM_DEFN( AvgPeriod, 60m, "60 minutes" ) \ ENUM_DEFN( SysFreq, 50, "50 Hz" ) \ ENUM_DEFN( SysFreq, 60, "60 Hz" ) \ ENUM_DEFN( USense, 1ph, "Single phase" ) \ ENUM_DEFN( USense, 3ph, "Three phase" ) \ ENUM_DEFN( AuxConfig, DC, "DC" ) \ ENUM_DEFN( AuxConfig, Delta, "AC HV Delta" ) \ ENUM_DEFN( AuxConfig, Star, "AC HV Star" ) \ ENUM_DEFN( AlOp, Alarm, "Alarm" ) \ ENUM_DEFN( AlOp, Op, "Operate" ) \ ENUM_DEFN( OpenClose, Close, "Closed" ) \ ENUM_DEFN( OpenClose, NA, "NA" ) \ ENUM_DEFN( OpenClose, Open, "Open" ) \ ENUM_DEFN( TripMode, Alarm, "Alarm" ) \ ENUM_DEFN( TripMode, Count, "Count" ) \ ENUM_DEFN( TripMode, Disable, "Disabled" ) \ ENUM_DEFN( TripMode, Lockout, "Lockout" ) \ ENUM_DEFN( TripMode, Reclose, "Reclose" ) \ ENUM_DEFN( TripMode, Sectionalise, "Sectionalise" ) \ ENUM_DEFN( TtaMode, Cont, "Continuous" ) \ ENUM_DEFN( TtaMode, Trans, "Transient" ) \ ENUM_DEFN( DndMode, Block, "Block" ) \ ENUM_DEFN( DndMode, Trip, "Trip" ) \ ENUM_DEFN( VrcMode, ABC, "ABC" ) \ ENUM_DEFN( VrcMode, Ring, "Ring" ) \ ENUM_DEFN( VrcMode, RST, "RST" ) \ ENUM_DEFN( RatedFreq, 50, "50" ) \ ENUM_DEFN( RatedFreq, 60, "60" ) \ ENUM_DEFN( RatedFreq, Auto, "Auto" ) \ ENUM_DEFN( ScadaTimeIsLocal, No, "GMT/UTC" ) \ ENUM_DEFN( ScadaTimeIsLocal, Yes, "Local" ) \ ENUM_DEFN( EventDataID, 2179, "2179" ) \ ENUM_DEFN( EventDataID, ABC, "ABC" ) \ ENUM_DEFN( EventDataID, ACO, "{arg:0 @195}" ) \ ENUM_DEFN( EventDataID, ActGroup, "Act. Group: {arg:0}" ) \ ENUM_DEFN( EventDataID, AoTopen, "T(open), mins = {arg:0}" ) \ ENUM_DEFN( EventDataID, AoTopenPF, "T(open), secs = {arg:0}" ) \ ENUM_DEFN( EventDataID, APConfigFailure, "AP Config Failure" ) \ ENUM_DEFN( EventDataID, APFailure, "AP Failure" ) \ ENUM_DEFN( EventDataID, APNotFound, "AP Not Found" ) \ ENUM_DEFN( EventDataID, APScanFailure, "AP Scan Failure" ) \ ENUM_DEFN( EventDataID, AutoSync, "Auto-Sync" ) \ ENUM_DEFN( EventDataID, AutoSyncCancelled, "Cancelled" ) \ ENUM_DEFN( EventDataID, AutoSyncFailed, "Failed" ) \ ENUM_DEFN( EventDataID, AutoSyncReleased, "Released" ) \ ENUM_DEFN( EventDataID, BackupLogsFailed, "Logs Backup Failure" ) \ ENUM_DEFN( EventDataID, BackupRelayLog, "Backup Relay Log" ) \ ENUM_DEFN( EventDataID, BackupRelaySettings, "Backup Relay Settings" ) \ ENUM_DEFN( EventDataID, BackupSettingsFailed, "Settings Backup Failure" ) \ ENUM_DEFN( EventDataID, BatteryDisconnected, "Disconnected" ) \ ENUM_DEFN( EventDataID, BatteryFaulty, "Faulty" ) \ ENUM_DEFN( EventDataID, BatteryHealthy, "Healthy" ) \ ENUM_DEFN( EventDataID, BatteryHigh, "High" ) \ ENUM_DEFN( EventDataID, BatteryLow, "Low" ) \ ENUM_DEFN( EventDataID, BatteryNormal, "Normal" ) \ ENUM_DEFN( EventDataID, BatterySuspect, "Suspect" ) \ ENUM_DEFN( EventDataID, BatteryTestACOff, "AC Off" ) \ ENUM_DEFN( EventDataID, BatteryTestBatteryOff, "Battery Off" ) \ ENUM_DEFN( EventDataID, BatteryTestCheckBattery, "Check Battery" ) \ ENUM_DEFN( EventDataID, BatteryTestFailed, "Test Failed" ) \ ENUM_DEFN( EventDataID, BatteryTestFaulty, "Battery Test Circuit Fault" ) \ ENUM_DEFN( EventDataID, BatteryTestNotCharging, "Battery Being Discharged" ) \ ENUM_DEFN( EventDataID, BatteryTestNotPerformed, "Not Performed" ) \ ENUM_DEFN( EventDataID, BatteryTestNotSupported, "Not Supported" ) \ ENUM_DEFN( EventDataID, BatteryTestPassed, "Battery Test Passed" ) \ ENUM_DEFN( EventDataID, BatteryTestResting, "Resting" ) \ ENUM_DEFN( EventDataID, BatteryTestTimeout, "Timeout" ) \ ENUM_DEFN( EventDataID, BatteryTestVoltageTooLow, "Voltage Too Low" ) \ ENUM_DEFN( EventDataID, BnFwd, "Bn FWD, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, BnRev, "Bn REV, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, CannotOverwrite, "Cannot Overwrite" ) \ ENUM_DEFN( EventDataID, CBFIa, "Ia,A={arg:0}" ) \ ENUM_DEFN( EventDataID, CBFIb, "Ib,A={arg:0}" ) \ ENUM_DEFN( EventDataID, CBFIc, "Ic,A={arg:0}" ) \ ENUM_DEFN( EventDataID, CBFIn, "In,A={arg:0}" ) \ ENUM_DEFN( EventDataID, Channel, "Channel" ) \ ENUM_DEFN( EventDataID, ChannelRegionFailed, "Channel Region Failed" ) \ ENUM_DEFN( EventDataID, CloseOpenLog, "Close/Open Log" ) \ ENUM_DEFN( EventDataID, CloseRequestFail0, "OSM Not Connected" ) \ ENUM_DEFN( EventDataID, CloseRequestFail1, "Mechanically Locked" ) \ ENUM_DEFN( EventDataID, CloseRequestFail2, "Command Pending" ) \ ENUM_DEFN( EventDataID, CloseRequestFail3, "Faulty Actuator" ) \ ENUM_DEFN( EventDataID, CloseRequestFail4, "Mechanism Failure" ) \ ENUM_DEFN( EventDataID, CloseRequestFail5, "Duty Cycle Exceeded" ) \ ENUM_DEFN( EventDataID, CloseRequestFail6, "Close Cap Not Ok" ) \ ENUM_DEFN( EventDataID, CloseRequestFail7, "Trip Cap Not OK" ) \ ENUM_DEFN( EventDataID, CloseRequestFail8, "Already Closed" ) \ ENUM_DEFN( EventDataID, CloseRequestFail9, "Excess Actuator Current Draw" ) \ ENUM_DEFN( EventDataID, CMS, "CMS" ) \ ENUM_DEFN( EventDataID, CommsError, "Comms Error" ) \ ENUM_DEFN( EventDataID, DbAccessFail, "Database Access Failure" ) \ ENUM_DEFN( EventDataID, DbSchema, "DB Schema" ) \ ENUM_DEFN( EventDataID, DeviceNotReady, "Device Not Ready" ) \ ENUM_DEFN( EventDataID, Disabled, "Disabled" ) \ ENUM_DEFN( EventDataID, DiscFull, "Disc Full" ) \ ENUM_DEFN( EventDataID, Distance, "FltDiskm, km={iarg:0 *1/10 .1}" ) \ ENUM_DEFN( EventDataID, DNP3, "DNP3" ) \ ENUM_DEFN( EventDataID, Dnp3BinaryControlWatchDog, "DNP3 Binary Control Watchdog" ) \ ENUM_DEFN( EventDataID, Dnp3PollWatchDog, "DNP3 Poll Watchdog" ) \ ENUM_DEFN( EventDataID, EFF, "EF+" ) \ ENUM_DEFN( EventDataID, EFR, "EF-" ) \ ENUM_DEFN( EventDataID, ErrorMsgId, "ID {arg:0}" ) \ ENUM_DEFN( EventDataID, ErrorMsgNumber, "Code {arg:0}" ) \ ENUM_DEFN( EventDataID, EventLog, "Event Log" ) \ ENUM_DEFN( EventDataID, ExceptionFPE, "Floating Point Exception" ) \ ENUM_DEFN( EventDataID, Fail, "Fail" ) \ ENUM_DEFN( EventDataID, Failed, "Failed" ) \ ENUM_DEFN( EventDataID, FailedBooting, "Failed Booting" ) \ ENUM_DEFN( EventDataID, FailedInitialisation, "Failed Initialisation" ) \ ENUM_DEFN( EventDataID, FailedLoadingFirmware, "Failed Loading Firmware" ) \ ENUM_DEFN( EventDataID, FaultedLoopImpedance, "ZLoop∡θLoop, Ω={iarg:0 *1/10 .1}∡{ia" ) \ ENUM_DEFN( EventDataID, FaultedLoopImpedanceTheta, "θLoop={iarg:0 *1/10 .1}°" ) \ ENUM_DEFN( EventDataID, FaultedLoopImpedanceZ, "ZLoop Ω={iarg:0 *1/10 .1}" ) \ ENUM_DEFN( EventDataID, FaultImpedance, "Zf∡θf, Ω={iarg:0 *1/10 .1}∡{iarg:1 *" ) \ ENUM_DEFN( EventDataID, FaultImpedanceTheta, "θf={iarg:0 *1/10 .1}°" ) \ ENUM_DEFN( EventDataID, FaultImpedanceZ, "Zf Ω={iarg:0 *1/10 .1}" ) \ ENUM_DEFN( EventDataID, FaultLog, "Fault Log" ) \ ENUM_DEFN( EventDataID, FileIoError, "Internal File System Error" ) \ ENUM_DEFN( EventDataID, FileSysMismatch, "Incompatible File System" ) \ ENUM_DEFN( EventDataID, FreezeI, "Imax, A={arg:0 *1/4}" ) \ ENUM_DEFN( EventDataID, FreqMax, "Max Freq, Hz={arg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, FreqMin, "Min Freq, Hz={arg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, FreqOp, "Freq Op, Hz={arg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, GnFwd, "Gn FWD, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, GnRev, "Gn REV, mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, GpioFirmware, "GPIO Firmware" ) \ ENUM_DEFN( EventDataID, GPS, "GPS" ) \ ENUM_DEFN( EventDataID, HangupDcd, "DCD" ) \ ENUM_DEFN( EventDataID, HangupInactive, "Inactive" ) \ ENUM_DEFN( EventDataID, HangupMaxDuration, "Max Call Duration" ) \ ENUM_DEFN( EventDataID, HarmonicsLog, "Harmonics Log" ) \ ENUM_DEFN( EventDataID, HmiResource, "Language" ) \ ENUM_DEFN( EventDataID, HrmI10th, "I10" ) \ ENUM_DEFN( EventDataID, HrmI11th, "I11" ) \ ENUM_DEFN( EventDataID, HrmI12th, "I12" ) \ ENUM_DEFN( EventDataID, HrmI13th, "I13" ) \ ENUM_DEFN( EventDataID, HrmI14th, "I14" ) \ ENUM_DEFN( EventDataID, HrmI15th, "I15" ) \ ENUM_DEFN( EventDataID, HrmI16th, "I16" ) \ ENUM_DEFN( EventDataID, HrmI17th, "I17" ) \ ENUM_DEFN( EventDataID, HrmI18th, "I18" ) \ ENUM_DEFN( EventDataID, HrmI19th, "I19" ) \ ENUM_DEFN( EventDataID, HrmI20th, "I20" ) \ ENUM_DEFN( EventDataID, HrmI21st, "I21" ) \ ENUM_DEFN( EventDataID, HrmI22nd, "I22" ) \ ENUM_DEFN( EventDataID, HrmI23rd, "I23" ) \ ENUM_DEFN( EventDataID, HrmI24th, "I24" ) \ ENUM_DEFN( EventDataID, HrmI25th, "I25" ) \ ENUM_DEFN( EventDataID, HrmI26th, "I26" ) \ ENUM_DEFN( EventDataID, HrmI27th, "I27" ) \ ENUM_DEFN( EventDataID, HrmI28th, "I28" ) \ ENUM_DEFN( EventDataID, HrmI29th, "I29" ) \ ENUM_DEFN( EventDataID, HrmI2nd, "I2" ) \ ENUM_DEFN( EventDataID, HrmI30th, "I30" ) \ ENUM_DEFN( EventDataID, HrmI31st, "I31" ) \ ENUM_DEFN( EventDataID, HrmI32nd, "I32" ) \ ENUM_DEFN( EventDataID, HrmI33rd, "I33" ) \ ENUM_DEFN( EventDataID, HrmI34th, "I34" ) \ ENUM_DEFN( EventDataID, HrmI35th, "I35" ) \ ENUM_DEFN( EventDataID, HrmI36th, "I36" ) \ ENUM_DEFN( EventDataID, HrmI37th, "I37" ) \ ENUM_DEFN( EventDataID, HrmI38th, "I38" ) \ ENUM_DEFN( EventDataID, HrmI39th, "I39" ) \ ENUM_DEFN( EventDataID, HrmI3rd, "I3" ) \ ENUM_DEFN( EventDataID, HrmI40th, "I40" ) \ ENUM_DEFN( EventDataID, HrmI41st, "I41" ) \ ENUM_DEFN( EventDataID, HrmI42nd, "I42" ) \ ENUM_DEFN( EventDataID, HrmI43rd, "I43" ) \ ENUM_DEFN( EventDataID, HrmI44th, "I44" ) \ ENUM_DEFN( EventDataID, HrmI45th, "I45" ) \ ENUM_DEFN( EventDataID, HrmI46th, "I46" ) \ ENUM_DEFN( EventDataID, HrmI47th, "I47" ) \ ENUM_DEFN( EventDataID, HrmI48th, "I48" ) \ ENUM_DEFN( EventDataID, HrmI49th, "I49" ) \ ENUM_DEFN( EventDataID, HrmI4th, "I4" ) \ ENUM_DEFN( EventDataID, HrmI50th, "I50" ) \ ENUM_DEFN( EventDataID, HrmI51st, "I51" ) \ ENUM_DEFN( EventDataID, HrmI52nd, "I52" ) \ ENUM_DEFN( EventDataID, HrmI53rd, "I53" ) \ ENUM_DEFN( EventDataID, HrmI54th, "I54" ) \ ENUM_DEFN( EventDataID, HrmI55th, "I55" ) \ ENUM_DEFN( EventDataID, HrmI56th, "I56" ) \ ENUM_DEFN( EventDataID, HrmI57th, "I57" ) \ ENUM_DEFN( EventDataID, HrmI58th, "I58" ) \ ENUM_DEFN( EventDataID, HrmI59th, "I59" ) \ ENUM_DEFN( EventDataID, HrmI5th, "I5" ) \ ENUM_DEFN( EventDataID, HrmI60th, "I60" ) \ ENUM_DEFN( EventDataID, HrmI61st, "I61" ) \ ENUM_DEFN( EventDataID, HrmI62nd, "I62" ) \ ENUM_DEFN( EventDataID, HrmI63rd, "I63" ) \ ENUM_DEFN( EventDataID, HrmI6th, "I6" ) \ ENUM_DEFN( EventDataID, HrmI7th, "I7" ) \ ENUM_DEFN( EventDataID, HrmI8th, "I8" ) \ ENUM_DEFN( EventDataID, HrmI9th, "I9" ) \ ENUM_DEFN( EventDataID, HrmIn10th, "In10" ) \ ENUM_DEFN( EventDataID, HrmIn11th, "In11" ) \ ENUM_DEFN( EventDataID, HrmIn12th, "In12" ) \ ENUM_DEFN( EventDataID, HrmIn13th, "In13" ) \ ENUM_DEFN( EventDataID, HrmIn14th, "In14" ) \ ENUM_DEFN( EventDataID, HrmIn15th, "In15" ) \ ENUM_DEFN( EventDataID, HrmIn16th, "In16" ) \ ENUM_DEFN( EventDataID, HrmIn17th, "In17" ) \ ENUM_DEFN( EventDataID, HrmIn18th, "In18" ) \ ENUM_DEFN( EventDataID, HrmIn19th, "In19" ) \ ENUM_DEFN( EventDataID, HrmIn20th, "In20" ) \ ENUM_DEFN( EventDataID, HrmIn21st, "In21" ) \ ENUM_DEFN( EventDataID, HrmIn22nd, "In22" ) \ ENUM_DEFN( EventDataID, HrmIn23rd, "In23" ) \ ENUM_DEFN( EventDataID, HrmIn24th, "In24" ) \ ENUM_DEFN( EventDataID, HrmIn25th, "In25" ) \ ENUM_DEFN( EventDataID, HrmIn26th, "In26" ) \ ENUM_DEFN( EventDataID, HrmIn27th, "In27" ) \ ENUM_DEFN( EventDataID, HrmIn28th, "In28" ) \ ENUM_DEFN( EventDataID, HrmIn29th, "In29" ) \ ENUM_DEFN( EventDataID, HrmIn2nd, "In2" ) \ ENUM_DEFN( EventDataID, HrmIn30th, "In30" ) \ ENUM_DEFN( EventDataID, HrmIn31st, "In31" ) \ ENUM_DEFN( EventDataID, HrmIn32nd, "In32" ) \ ENUM_DEFN( EventDataID, HrmIn33rd, "In33" ) \ ENUM_DEFN( EventDataID, HrmIn34th, "In34" ) \ ENUM_DEFN( EventDataID, HrmIn35th, "In35" ) \ ENUM_DEFN( EventDataID, HrmIn36th, "In36" ) \ ENUM_DEFN( EventDataID, HrmIn37th, "In37" ) \ ENUM_DEFN( EventDataID, HrmIn38th, "In38" ) \ ENUM_DEFN( EventDataID, HrmIn39th, "In39" ) \ ENUM_DEFN( EventDataID, HrmIn3rd, "In3" ) \ ENUM_DEFN( EventDataID, HrmIn40th, "In40" ) \ ENUM_DEFN( EventDataID, HrmIn41st, "In41" ) \ ENUM_DEFN( EventDataID, HrmIn42nd, "In42" ) \ ENUM_DEFN( EventDataID, HrmIn43rd, "In43" ) \ ENUM_DEFN( EventDataID, HrmIn44th, "In44" ) \ ENUM_DEFN( EventDataID, HrmIn45th, "In45" ) \ ENUM_DEFN( EventDataID, HrmIn46th, "In46" ) \ ENUM_DEFN( EventDataID, HrmIn47th, "In47" ) \ ENUM_DEFN( EventDataID, HrmIn48th, "In48" ) \ ENUM_DEFN( EventDataID, HrmIn49th, "In49" ) \ ENUM_DEFN( EventDataID, HrmIn4th, "In4" ) \ ENUM_DEFN( EventDataID, HrmIn50th, "In50" ) \ ENUM_DEFN( EventDataID, HrmIn51st, "In51" ) \ ENUM_DEFN( EventDataID, HrmIn52nd, "In52" ) \ ENUM_DEFN( EventDataID, HrmIn53rd, "In53" ) \ ENUM_DEFN( EventDataID, HrmIn54th, "In54" ) \ ENUM_DEFN( EventDataID, HrmIn55th, "In55" ) \ ENUM_DEFN( EventDataID, HrmIn56th, "In56" ) \ ENUM_DEFN( EventDataID, HrmIn57th, "In57" ) \ ENUM_DEFN( EventDataID, HrmIn58th, "In58" ) \ ENUM_DEFN( EventDataID, HrmIn59th, "In59" ) \ ENUM_DEFN( EventDataID, HrmIn5th, "In5" ) \ ENUM_DEFN( EventDataID, HrmIn60th, "In60" ) \ ENUM_DEFN( EventDataID, HrmIn61st, "In61" ) \ ENUM_DEFN( EventDataID, HrmIn62nd, "In62" ) \ ENUM_DEFN( EventDataID, HrmIn63rd, "In63" ) \ ENUM_DEFN( EventDataID, HrmIn6th, "In6" ) \ ENUM_DEFN( EventDataID, HrmIn7th, "In7" ) \ ENUM_DEFN( EventDataID, HrmIn8th, "In8" ) \ ENUM_DEFN( EventDataID, HrmIn9th, "In9" ) \ ENUM_DEFN( EventDataID, HrmIndA_op, "HRM, A={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, HrmIndB_op, "HRM, B={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, HrmIndC_op, "HRM, C={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, HrmIndD_op, "HRM, D={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, HrmIndE_op, "HRM, E={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, HrmTDD_op, "HRM, TDD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, HrmTHD_op, "HRM, THD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, HrmV10th, "V10" ) \ ENUM_DEFN( EventDataID, HrmV11th, "V11" ) \ ENUM_DEFN( EventDataID, HrmV12th, "V12" ) \ ENUM_DEFN( EventDataID, HrmV13th, "V13" ) \ ENUM_DEFN( EventDataID, HrmV14th, "V14" ) \ ENUM_DEFN( EventDataID, HrmV15th, "V15" ) \ ENUM_DEFN( EventDataID, HrmV16th, "V16" ) \ ENUM_DEFN( EventDataID, HrmV17th, "V17" ) \ ENUM_DEFN( EventDataID, HrmV18th, "V18" ) \ ENUM_DEFN( EventDataID, HrmV19th, "V19" ) \ ENUM_DEFN( EventDataID, HrmV20th, "V20" ) \ ENUM_DEFN( EventDataID, HrmV21st, "V21" ) \ ENUM_DEFN( EventDataID, HrmV22nd, "V22" ) \ ENUM_DEFN( EventDataID, HrmV23rd, "V23" ) \ ENUM_DEFN( EventDataID, HrmV24th, "V24" ) \ ENUM_DEFN( EventDataID, HrmV25th, "V25" ) \ ENUM_DEFN( EventDataID, HrmV26th, "V26" ) \ ENUM_DEFN( EventDataID, HrmV27th, "V27" ) \ ENUM_DEFN( EventDataID, HrmV28th, "V28" ) \ ENUM_DEFN( EventDataID, HrmV29th, "V29" ) \ ENUM_DEFN( EventDataID, HrmV2nd, "V2" ) \ ENUM_DEFN( EventDataID, HrmV30th, "V30" ) \ ENUM_DEFN( EventDataID, HrmV31st, "V31" ) \ ENUM_DEFN( EventDataID, HrmV32nd, "V32" ) \ ENUM_DEFN( EventDataID, HrmV33rd, "V33" ) \ ENUM_DEFN( EventDataID, HrmV34th, "V34" ) \ ENUM_DEFN( EventDataID, HrmV35th, "V35" ) \ ENUM_DEFN( EventDataID, HrmV36th, "V36" ) \ ENUM_DEFN( EventDataID, HrmV37th, "V37" ) \ ENUM_DEFN( EventDataID, HrmV38th, "V38" ) \ ENUM_DEFN( EventDataID, HrmV39th, "V39" ) \ ENUM_DEFN( EventDataID, HrmV3rd, "V3" ) \ ENUM_DEFN( EventDataID, HrmV40th, "V40" ) \ ENUM_DEFN( EventDataID, HrmV41st, "V41" ) \ ENUM_DEFN( EventDataID, HrmV42nd, "V42" ) \ ENUM_DEFN( EventDataID, HrmV43rd, "V43" ) \ ENUM_DEFN( EventDataID, HrmV44th, "V44" ) \ ENUM_DEFN( EventDataID, HrmV45th, "V45" ) \ ENUM_DEFN( EventDataID, HrmV46th, "V46" ) \ ENUM_DEFN( EventDataID, HrmV47th, "V47" ) \ ENUM_DEFN( EventDataID, HrmV48th, "V48" ) \ ENUM_DEFN( EventDataID, HrmV49th, "V49" ) \ ENUM_DEFN( EventDataID, HrmV4th, "V4" ) \ ENUM_DEFN( EventDataID, HrmV50th, "V50" ) \ ENUM_DEFN( EventDataID, HrmV51st, "V51" ) \ ENUM_DEFN( EventDataID, HrmV52nd, "V52" ) \ ENUM_DEFN( EventDataID, HrmV53rd, "V53" ) \ ENUM_DEFN( EventDataID, HrmV54th, "V54" ) \ ENUM_DEFN( EventDataID, HrmV55th, "V55" ) \ ENUM_DEFN( EventDataID, HrmV56th, "V56" ) \ ENUM_DEFN( EventDataID, HrmV57th, "V57" ) \ ENUM_DEFN( EventDataID, HrmV58th, "V58" ) \ ENUM_DEFN( EventDataID, HrmV59th, "V59" ) \ ENUM_DEFN( EventDataID, HrmV5th, "V5" ) \ ENUM_DEFN( EventDataID, HrmV60th, "V60" ) \ ENUM_DEFN( EventDataID, HrmV61st, "V61" ) \ ENUM_DEFN( EventDataID, HrmV62nd, "V62" ) \ ENUM_DEFN( EventDataID, HrmV63rd, "V63" ) \ ENUM_DEFN( EventDataID, HrmV6th, "V6" ) \ ENUM_DEFN( EventDataID, HrmV7th, "V7" ) \ ENUM_DEFN( EventDataID, HrmV8th, "V8" ) \ ENUM_DEFN( EventDataID, HrmV9th, "V9" ) \ ENUM_DEFN( EventDataID, I2I1op, "Iop, I2/I1={arg:0 *1/1000}%" ) \ ENUM_DEFN( EventDataID, IDE, "IDE" ) \ ENUM_DEFN( EventDataID, IEC60870, "IEC 60870" ) \ ENUM_DEFN( EventDataID, IEC61499AppFailedFBOOT, "Failed FBOOT" ) \ ENUM_DEFN( EventDataID, IEC61499AppMissingFBOOT, "Missing FBOOT" ) \ ENUM_DEFN( EventDataID, IEC61499ExternEvtLim, "SGA External Events Limit" ) \ ENUM_DEFN( EventDataID, IEC61499InternEvtLim, "SGA Internal Events Limit" ) \ ENUM_DEFN( EventDataID, IEC61499ResourceLimit, "SGA Resource Limit" ) \ ENUM_DEFN( EventDataID, IEC61850, "IEC 61850" ) \ ENUM_DEFN( EventDataID, IEC61850GoosePub, "IEC 61850 GOOSE Publisher" ) \ ENUM_DEFN( EventDataID, IEC61850GooseSub, "IEC 61850 GOOSE Subscriber" ) \ ENUM_DEFN( EventDataID, IEC61850MMS, "IEC 61850 MMS" ) \ ENUM_DEFN( EventDataID, InitialisationFailed, "Initialisation Failed" ) \ ENUM_DEFN( EventDataID, InterruptionsLog, "Interruptions Log" ) \ ENUM_DEFN( EventDataID, Invalid, "Invalid" ) \ ENUM_DEFN( EventDataID, InvalidChannel, "Invalid Channel" ) \ ENUM_DEFN( EventDataID, InvalidDbVersion, "Invalid Database Version" ) \ ENUM_DEFN( EventDataID, InvalidMicrokernel, "Invalid Microkernel" ) \ ENUM_DEFN( EventDataID, InvalidRFBand, "Invalid RF Band" ) \ ENUM_DEFN( EventDataID, InvalidUpdateFile, "Invalid Update File" ) \ ENUM_DEFN( EventDataID, InvalidUser, "Invalid User name or Password" ) \ ENUM_DEFN( EventDataID, IO1, "IO1" ) \ ENUM_DEFN( EventDataID, IO2, "IO2" ) \ ENUM_DEFN( EventDataID, IO3, "IO3" ) \ ENUM_DEFN( EventDataID, IO4, "IO4" ) \ ENUM_DEFN( EventDataID, Iop, "Iop, A={arg:0}" ) \ ENUM_DEFN( EventDataID, Iop_mA, "Iop, A={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, JoiningAPFailure, "Joining AP Failure" ) \ ENUM_DEFN( EventDataID, LangEnglish, "English" ) \ ENUM_DEFN( EventDataID, LangEnglishUS, "US English" ) \ ENUM_DEFN( EventDataID, LangPolish, "Polish" ) \ ENUM_DEFN( EventDataID, LangPortuguese, "Portuguese" ) \ ENUM_DEFN( EventDataID, LangRomanian, "Romanian" ) \ ENUM_DEFN( EventDataID, LangRussian, "Russian" ) \ ENUM_DEFN( EventDataID, LangSpanish, "Spanish" ) \ ENUM_DEFN( EventDataID, LangTurkish, "Turkish" ) \ ENUM_DEFN( EventDataID, LineSupplyStatusDisconnected, "Disconnected" ) \ ENUM_DEFN( EventDataID, LineSupplyStatusHigh, "High" ) \ ENUM_DEFN( EventDataID, LineSupplyStatusLo, "Low" ) \ ENUM_DEFN( EventDataID, LineSupplyStatusNormal, "Normal" ) \ ENUM_DEFN( EventDataID, LineSupplyStatusSurge, "Surge" ) \ ENUM_DEFN( EventDataID, LoadProfileLog, "Load Profile Log" ) \ ENUM_DEFN( EventDataID, LogicState, "Logic State" ) \ ENUM_DEFN( EventDataID, LoSeq2, "79-2 LO" ) \ ENUM_DEFN( EventDataID, LoSeq3, "79-3 LO" ) \ ENUM_DEFN( EventDataID, MalfunctionsLog, "Malfunctions Log" ) \ ENUM_DEFN( EventDataID, MaxBnFwd, "Max(Bn FWD), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, MaxGnFwd, "Max(Gn FWD), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, MaxHrmIndA, "Max(HRM), A={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, MaxHrmIndB, "Max(HRM), B={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, MaxHrmIndC, "Max(HRM), C={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, MaxHrmIndD, "Max(HRM), D={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, MaxHrmIndE, "Max(HRM), E={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, MaxHrmTDD, "Max(HRM), TDD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, MaxHrmTHD, "Max(HRM), THD={arg:0 *1/10000 .1}%" ) \ ENUM_DEFN( EventDataID, MaxI2, "Max(I2), A={arg:0}" ) \ ENUM_DEFN( EventDataID, MaxI2I1, "Max(I2/I1)={arg:0 *1/1000}%" ) \ ENUM_DEFN( EventDataID, MaxIa, "Max(Ia), A={arg:0}" ) \ ENUM_DEFN( EventDataID, MaxIb, "Max(Ib), A={arg:0}" ) \ ENUM_DEFN( EventDataID, MaxIc, "Max(Ic), A={arg:0}" ) \ ENUM_DEFN( EventDataID, MaxIn, "Max(In), A={arg:0}" ) \ ENUM_DEFN( EventDataID, MaxIn_mA, "Max(In), A={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxPDOP, "Max(PDOP), kVA={arg:0}" ) \ ENUM_DEFN( EventDataID, MaxROCOF, "Max(ROCOF), Hz/s={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxU1, "Max(U1), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxU2, "Max(U2), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUa, "Max(Ua), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUab, "Max(Uab), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUb, "Max(Ub), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUbc, "Max(Ubc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUc, "Max(Uc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUca, "Max(Uca), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUn, "Max(Un), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUr, "Max(Ur), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUs, "Max(Us), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxUt, "Max(Ut), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MaxVVS, "Max(VVS), °={arg:0 *1/1000}" ) \ ENUM_DEFN( EventDataID, MicrokernelFirmware, "Microkernel Firmware" ) \ ENUM_DEFN( EventDataID, MinBnRev, "Min(Bn REV), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, MinGnRev, "Min(Gn REV), mSi={iarg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, MinPDUP, "Min(PDUP), kVA={arg:0}" ) \ ENUM_DEFN( EventDataID, MinU1, "Min(U1), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUa, "Min(Ua), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUab, "Min(Uab), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUb, "Min(Ub), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUbc, "Min(Ubc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUc, "Min(Uc), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUca, "Min(Uca), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUr, "Min(Ur), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUs, "Min(Us), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MinUt, "Min(Ut), kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, MissingDependency, "Incompatible Files" ) \ ENUM_DEFN( EventDataID, MODEM, "Mobile Network Modem" ) \ ENUM_DEFN( EventDataID, ModuleBootloadFault, "Bootloader CRC" ) \ ENUM_DEFN( EventDataID, ModuleFaultBatteryCharger, "Battery Charger" ) \ ENUM_DEFN( EventDataID, ModuleFaultPowerOutputs, "Power Outputs" ) \ ENUM_DEFN( EventDataID, ModuleFaultUpdate, "Update" ) \ ENUM_DEFN( EventDataID, ModuleFlashFault, "Flash" ) \ ENUM_DEFN( EventDataID, ModuleFmFault, "Firmware CRC" ) \ ENUM_DEFN( EventDataID, ModuleIncorrectSWFault, "Incorrect Software" ) \ ENUM_DEFN( EventDataID, ModuleManufFault, "Invalid Manufacturing Details" ) \ ENUM_DEFN( EventDataID, ModulePsFault, "Power Supply" ) \ ENUM_DEFN( EventDataID, ModuleRamFault, "Ram" ) \ ENUM_DEFN( EventDataID, ModuleTempFault, "Temp Sensor" ) \ ENUM_DEFN( EventDataID, NAN, "NAN" ) \ ENUM_DEFN( EventDataID, NoFiles, "No Files" ) \ ENUM_DEFN( EventDataID, NoSerialNum, "No Serial Number" ) \ ENUM_DEFN( EventDataID, OCLM, "OCLM={arg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, Off, "Off" ) \ ENUM_DEFN( EventDataID, OIRM, "OIRM={arg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, On, "On" ) \ ENUM_DEFN( EventDataID, OperationFault0, "Close Volt Drop Too High" ) \ ENUM_DEFN( EventDataID, OperationFault1, "Trip Volt Drop Too High" ) \ ENUM_DEFN( EventDataID, OperationFault2, "Trip Volt Drop On Close" ) \ ENUM_DEFN( EventDataID, OscAlarm, "Osc Alarm" ) \ ENUM_DEFN( EventDataID, OscClose, "Osc Close" ) \ ENUM_DEFN( EventDataID, OscIOInputs, "Osc IO Inputs" ) \ ENUM_DEFN( EventDataID, OscLogic, "Osc Logic" ) \ ENUM_DEFN( EventDataID, OscPickup, "Osc Pickup" ) \ ENUM_DEFN( EventDataID, OscProtOperation, "Protection Operation Oscillography" ) \ ENUM_DEFN( EventDataID, OscTrip, "Trip(Osc)" ) \ ENUM_DEFN( EventDataID, OsmLimitCloseFailedClosed, "Close Limit Switch Failed Closed" ) \ ENUM_DEFN( EventDataID, OsmLimitCloseFailedOpen, "Close Limit Switch Failed Open" ) \ ENUM_DEFN( EventDataID, OsmLimitCloseMechFailedClosed, "Close & M.Ilock Lim.Sw Failed Closed" ) \ ENUM_DEFN( EventDataID, OsmLimitCloseOpenFailedClosed, "Close & Open Limit Sw Failed Closed" ) \ ENUM_DEFN( EventDataID, OsmLimitOpenFailedClosed, "Open Limit Switch Failed Closed" ) \ ENUM_DEFN( EventDataID, OsmLimitOpenFailedOpen, "Open Limit Switch Failed Open" ) \ ENUM_DEFN( EventDataID, OutOfRange, "Out of Range" ) \ ENUM_DEFN( EventDataID, OV3, "OV3" ) \ ENUM_DEFN( EventDataID, OV3abc, "OV3(ABC)" ) \ ENUM_DEFN( EventDataID, OV3rst, "OV3(RST)" ) \ ENUM_DEFN( EventDataID, Overload, "Overload" ) \ ENUM_DEFN( EventDataID, P2PComms, "P2PComms" ) \ ENUM_DEFN( EventDataID, Panel, "Panel" ) \ ENUM_DEFN( EventDataID, PasswordMissing, "Password Missing" ) \ ENUM_DEFN( EventDataID, PDCAddr, "PDC, addr={arg:0}" ) \ ENUM_DEFN( EventDataID, PDCPort, "port={arg:0}" ) \ ENUM_DEFN( EventDataID, PDOP_op, "PDOP, kVA={arg:0}" ) \ ENUM_DEFN( EventDataID, PDOPAngle, "θPDOP, °={iarg:0 *1/10 .1}" ) \ ENUM_DEFN( EventDataID, PDUP_op, "PDUP, kVA={arg:0}" ) \ ENUM_DEFN( EventDataID, PDUPAngle, "θPDUP, °={iarg:0 *1/10 .1}" ) \ ENUM_DEFN( EventDataID, ProtStatus, "{arg:0}" ) \ ENUM_DEFN( EventDataID, PscFirmware, "PSC firmware update" ) \ ENUM_DEFN( EventDataID, QueryFWVerFailed, "Query FW Ver Failed" ) \ ENUM_DEFN( EventDataID, QueryMACFailed, "Query MAC Failed" ) \ ENUM_DEFN( EventDataID, RecoveryFs, "No File System" ) \ ENUM_DEFN( EventDataID, RecoveryLaunch, "Startup Error" ) \ ENUM_DEFN( EventDataID, RecoveryUser, "User Request" ) \ ENUM_DEFN( EventDataID, Rel03ModuleFault, "REL-03 Module Fault" ) \ ENUM_DEFN( EventDataID, Rel15_4G_ModuleFault, "REL-15-4G Module Fault" ) \ ENUM_DEFN( EventDataID, Rel15ModuleFault, "REL-15 Module Fault" ) \ ENUM_DEFN( EventDataID, RelayCalibIa, "Relay Ia is calibrated" ) \ ENUM_DEFN( EventDataID, RelayCalibIb, "Relay Ib is calibrated" ) \ ENUM_DEFN( EventDataID, RelayFirmware, "Relay Firmware" ) \ ENUM_DEFN( EventDataID, RelayLog, "Relay Log" ) \ ENUM_DEFN( EventDataID, RelayNotCalibIa, "Relay Ia is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibIaHigh, "Relay Ia High is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibIb, "Relay Ib is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibIbHigh, "Relay Ib High is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibIc, "Relay Ic is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibIcHigh, "Relay Ic High is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibIn, "Relay In is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibVa, "Relay Va is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibVb, "Relay Vb is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibVc, "Relay Vc is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibVr, "Relay Vr is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibVs, "Relay Vs is not calibrated." ) \ ENUM_DEFN( EventDataID, RelayNotCalibVt, "Relay Vt is not calibrated" ) \ ENUM_DEFN( EventDataID, RelaySettings, "Relay Settings" ) \ ENUM_DEFN( EventDataID, Remote, "Remote Dial In" ) \ ENUM_DEFN( EventDataID, RemoveBackupFailed, "Remove Backup Failure" ) \ ENUM_DEFN( EventDataID, ROCOF_op, "ROCOF, Hz/s={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, RS232, "RS232" ) \ ENUM_DEFN( EventDataID, RS232P, "RS232P" ) \ ENUM_DEFN( EventDataID, RST, "RST" ) \ ENUM_DEFN( EventDataID, RTCFaulty, "RTC is faulty." ) \ ENUM_DEFN( EventDataID, RTCNotSync, "RTC is not synchronized" ) \ ENUM_DEFN( EventDataID, SagSwellLog, "Sags/Swells Log" ) \ ENUM_DEFN( EventDataID, SEFF, "SEF+" ) \ ENUM_DEFN( EventDataID, SEFR, "SEF-" ) \ ENUM_DEFN( EventDataID, SerialNumber, "Serial Number" ) \ ENUM_DEFN( EventDataID, SetRFFrequencyFailed, "Set RF Frequency Failed" ) \ ENUM_DEFN( EventDataID, SettingPasswordFailed, "Setting Password Failed" ) \ ENUM_DEFN( EventDataID, SettingRFFailed, "Setting RF Failed" ) \ ENUM_DEFN( EventDataID, SettingsLog, "Settings Log" ) \ ENUM_DEFN( EventDataID, SettingTXPowerFailed, "Setting TX Power Failed" ) \ ENUM_DEFN( EventDataID, SIM01, "SIM01" ) \ ENUM_DEFN( EventDataID, SIM02, "SIM02" ) \ ENUM_DEFN( EventDataID, SIM03, "SIM03" ) \ ENUM_DEFN( EventDataID, SIM20, "SIM20" ) \ ENUM_DEFN( EventDataID, SIMBlocked, "SIM Blocked" ) \ ENUM_DEFN( EventDataID, SimCalibAll, "All SIM coefficients are calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibIa, "SIM Ia is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibIaHi, "SIM Ia (High) is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibIb, "SIM Ib is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibIbHi, "SIM Ib (High) is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibIc, "SIM Ic is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibIcHi, "SIM Ic (High) is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibIn, "SIM In is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibrated, "Calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibratedCorrupted, "Cal Values Corrupted" ) \ ENUM_DEFN( EventDataID, SimCalibUa, "SIM Ua is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibUb, "SIM Ub is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibUc, "SIM Uc is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibUr, "SIM Ur is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibUs, "SIM Us is calibrated" ) \ ENUM_DEFN( EventDataID, SimCalibUt, "SIM Ut is calibrated" ) \ ENUM_DEFN( EventDataID, SIMCardBlockedPerm, "SIM Card Blocked permanently" ) \ ENUM_DEFN( EventDataID, SIMCardError, "SIM Card Error" ) \ ENUM_DEFN( EventDataID, SIMCardPUKError, "SIM Card PUK Error" ) \ ENUM_DEFN( EventDataID, SimFirmware, "SIM Firmware" ) \ ENUM_DEFN( EventDataID, SimNotCalibIa, "Sim Ia is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibIaHigh, "Sim Ia High is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibIb, "Sim Ib is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibIbHigh, "Sim Ib High is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibIc, "Sim Ic is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibIcHigh, "Sim Ic High is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibIn, "Sim In is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibrated, "Not Calibrated" ) \ ENUM_DEFN( EventDataID, SimNotCalibVa, "Sim Va is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibVb, "Sim Vb is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibVc, "Sim Vc is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibVr, "Sim Vr is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibVs, "Sim Vs is not calibrated." ) \ ENUM_DEFN( EventDataID, SimNotCalibVt, "Sim Vt is not calibrated." ) \ ENUM_DEFN( EventDataID, SIMPINError, "SIM PIN Error" ) \ ENUM_DEFN( EventDataID, SIMPINRequired, "SIM PIN Required" ) \ ENUM_DEFN( EventDataID, SIMPUKRequired, "SIM PUK Required" ) \ ENUM_DEFN( EventDataID, simStepCnt, "Simulation step {arg:0}" ) \ ENUM_DEFN( EventDataID, SmpShutdownError, "Internal Error" ) \ ENUM_DEFN( EventDataID, SmpShutdownPower, "Power Supply" ) \ ENUM_DEFN( EventDataID, SmpShutdownSwitchgearType, "OSM Model Change" ) \ ENUM_DEFN( EventDataID, SmpShutdownUser, "User Shutdown" ) \ ENUM_DEFN( EventDataID, SourceUnhealthy, "Source Not Healthy" ) \ ENUM_DEFN( EventDataID, SSIDMismatch, "SSID Mismatch" ) \ ENUM_DEFN( EventDataID, SSTControl_Tst, "Tst, s={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, Stop, "Stop" ) \ ENUM_DEFN( EventDataID, String, "{arg:0}" ) \ ENUM_DEFN( EventDataID, Success, "Success" ) \ ENUM_DEFN( EventDataID, SwgCalibAll, "All sw. coefficients are calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibIa, "Switchgear Ia is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibIb, "Switchgear Ib is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibIc, "Switchgear Ic is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibIn, "Switchgear In is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibUa, "Switchgear Ua is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibUb, "Switchgear Ub is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibUc, "Switchgear Uc is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibUr, "Switchgear Ur is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibUs, "Switchgear Us is calibrated" ) \ ENUM_DEFN( EventDataID, SwgCalibUt, "Switchgear Ut is calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibIa, "Switchgear Ia is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibIaHigh, "Switchgear Ia High is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibIb, "Switchgear Ib is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibIbHigh, "Switchgear Ib High is not calibrated." ) \ ENUM_DEFN( EventDataID, SwgNotCalibIc, "Switchgear Ic is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibIcHigh, "Switchgear Ic High is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibIn, "SwitchGEAR In is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibVa, "Switchgear Va is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibVb, "Switchgear Vb is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibVc, "Switchgear Vc is not calibrated" ) \ ENUM_DEFN( EventDataID, SwgNotCalibVr, "Switchgear Vr is not calibrated." ) \ ENUM_DEFN( EventDataID, SwgNotCalibVs, "Switchgear Vs is not calibrated." ) \ ENUM_DEFN( EventDataID, SwgNotCalibVt, "Switchgear Vt is not calibrated." ) \ ENUM_DEFN( EventDataID, SyncBlockingDLDB, "DLDB Blocking" ) \ ENUM_DEFN( EventDataID, SyncBlockingDLLB, "DLLB Blocking" ) \ ENUM_DEFN( EventDataID, SyncBlockingLLDB, "LLDB Blocking" ) \ ENUM_DEFN( EventDataID, SyncCheckFail, "Sync-check Fail" ) \ ENUM_DEFN( EventDataID, SyncDeltaFreqFail, "∆f Fail" ) \ ENUM_DEFN( EventDataID, SyncDeltaPhaseFail, "∆ϕ Fail" ) \ ENUM_DEFN( EventDataID, SyncDeltaVFail, "∆V Fail" ) \ ENUM_DEFN( EventDataID, SyncLLLBFail, "LLLB Fail" ) \ ENUM_DEFN( EventDataID, SysErrorLog, "System Error Log" ) \ ENUM_DEFN( EventDataID, SystemCheck, "System Check" ) \ ENUM_DEFN( EventDataID, T10BBinaryControlWatchDog, "T10B Binary Control Watchdog" ) \ ENUM_DEFN( EventDataID, T10BPollWatchDog, "T10B Poll Watchdog" ) \ ENUM_DEFN( EventDataID, Timeout, "Timeout" ) \ ENUM_DEFN( EventDataID, TooManyUpdateFiles, "Too Many Update Files" ) \ ENUM_DEFN( EventDataID, Tr, "Tr, s={arg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, TripI2, "Trip(I2), A={arg:0}" ) \ ENUM_DEFN( EventDataID, TripIa, "Trip(Ia), A={arg:0}" ) \ ENUM_DEFN( EventDataID, TripIb, "Trip(Ib), A={arg:0}" ) \ ENUM_DEFN( EventDataID, TripIc, "Trip(Ic), A={arg:0}" ) \ ENUM_DEFN( EventDataID, TripIn, "Trip(In), A={arg:0}" ) \ ENUM_DEFN( EventDataID, TripIn_mA, "Trip(In), A={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, TripRequestFail0, "OSM Not Connected" ) \ ENUM_DEFN( EventDataID, TripRequestFail1, "Mechanically Locked" ) \ ENUM_DEFN( EventDataID, TripRequestFail2, "Operation Active" ) \ ENUM_DEFN( EventDataID, TripRequestFail3, "Faulty Actuator" ) \ ENUM_DEFN( EventDataID, TripRequestFail4, "Mechanism Failure" ) \ ENUM_DEFN( EventDataID, TtaTat, "Tat, s={arg:0 *1/10 .2}" ) \ ENUM_DEFN( EventDataID, UbootFirmware, "U-Boot Firmware" ) \ ENUM_DEFN( EventDataID, Unknown, "Unknown" ) \ ENUM_DEFN( EventDataID, Unsol, "Unsolicited Dial Out" ) \ ENUM_DEFN( EventDataID, UnsupportedHardware, "Unsupported Hardware" ) \ ENUM_DEFN( EventDataID, UnsupportedPartCode, "Unsupported Part Number" ) \ ENUM_DEFN( EventDataID, UnsupportedRF, "Unsupported RF" ) \ ENUM_DEFN( EventDataID, Up, "Up, kV={arg:0 *1/100 .1}" ) \ ENUM_DEFN( EventDataID, USBA, "USB A" ) \ ENUM_DEFN( EventDataID, USBB, "USB B" ) \ ENUM_DEFN( EventDataID, USBC, "USB C" ) \ ENUM_DEFN( EventDataID, USBCSP, "USB CSP" ) \ ENUM_DEFN( EventDataID, USBEXTERNAL, "External Hub Ports" ) \ ENUM_DEFN( EventDataID, UsbIoError, "USB Access Error" ) \ ENUM_DEFN( EventDataID, USBONBOARD, "Onboard Ports" ) \ ENUM_DEFN( EventDataID, USBONBOARDA, "USB A" ) \ ENUM_DEFN( EventDataID, USBONBOARDB, "USB B" ) \ ENUM_DEFN( EventDataID, UserAuthenticated, "User Credential Operation Successful" ) \ ENUM_DEFN( EventDataID, VVS_op, "VVS, °={arg:0 *1/1000}" ) \ ENUM_DEFN( EventDataID, Warm, "Warm" ) \ ENUM_DEFN( EventDataID, WarningsLog, "Warnings Log" ) \ ENUM_DEFN( EventDataID, WIFI, "WiFi" ) \ ENUM_DEFN( EventDataID, WriteToRelay, "Save Relay Calibration" ) \ ENUM_DEFN( EventDataID, WriteToSIM, "Write to SIM" ) \ ENUM_DEFN( EventDataID, WriteToSwg, "Save Switchgear Calibration" ) \ ENUM_DEFN( EventDataID, WrongAPPasswordLength, "Wrong AP Password Length" ) \ ENUM_DEFN( EventDataID, WrongClientPassword, "Wrong Client Password" ) \ ENUM_DEFN( EventDataID, WrongClientPasswordLength, "Wrong Client Password Length" ) \ ENUM_DEFN( EventDataID, WrongJoinCommand, "Wrong Join Command" ) \ ENUM_DEFN( EventDataID, WrongJoinParameter, "Wrong Join Parameter" ) \ ENUM_DEFN( EventDataID, WrongOperationMode, "Wrong Operation Mode" ) \ ENUM_DEFN( EventDataID, WrongParameter, "Wrong Parameter" ) \ ENUM_DEFN( EventDataID, WrongPasswordLength, "Wrong Password Length" ) \ ENUM_DEFN( DbClientId, CALIB, "calibration process" ) \ ENUM_DEFN( DbClientId, CAN, "CAN process Client ID" ) \ ENUM_DEFN( DbClientId, CAN_TEST, "CAN TEST process ID" ) \ ENUM_DEFN( DbClientId, CMS, "PC" ) \ ENUM_DEFN( DbClientId, CMS2, "CMS AUX" ) \ ENUM_DEFN( DbClientId, CMS3, "CMS AUX 2" ) \ ENUM_DEFN( DbClientId, COMMS, "communication" ) \ ENUM_DEFN( DbClientId, DbClientTest, "DB Test Client" ) \ ENUM_DEFN( DbClientId, DbClientTestListener, "DB Test Listener" ) \ ENUM_DEFN( DbClientId, DbServer, "DbServer" ) \ ENUM_DEFN( DbClientId, FaultLocator, "Fault Locator" ) \ ENUM_DEFN( DbClientId, GPS, "GPS" ) \ ENUM_DEFN( DbClientId, HMI, "HMI" ) \ ENUM_DEFN( DbClientId, Hotplug, "Hotplug" ) \ ENUM_DEFN( DbClientId, IO, "IO" ) \ ENUM_DEFN( DbClientId, IO1, "I/O 1" ) \ ENUM_DEFN( DbClientId, IO2, "I/O 2" ) \ ENUM_DEFN( DbClientId, IO3, "I/O 3" ) \ ENUM_DEFN( DbClientId, IO4, "I/O 4" ) \ ENUM_DEFN( DbClientId, LOG, "Log Process Client ID" ) \ ENUM_DEFN( DbClientId, LogComms, "LogComms" ) \ ENUM_DEFN( DbClientId, Logic, "Logic" ) \ ENUM_DEFN( DbClientId, Meter, "Meter" ) \ ENUM_DEFN( DbClientId, NAN, "Non client ID" ) \ ENUM_DEFN( DbClientId, OPCUASERVER, "OPCUA Server" ) \ ENUM_DEFN( DbClientId, Oscillography, "Oscillography" ) \ ENUM_DEFN( DbClientId, p2pComm, "p2p Communication" ) \ ENUM_DEFN( DbClientId, Panel, "Panel" ) \ ENUM_DEFN( DbClientId, PGE, "SCADA 2179" ) \ ENUM_DEFN( DbClientId, PMU, "PMU" ) \ ENUM_DEFN( DbClientId, ProgGPIO, "GPIO programmer" ) \ ENUM_DEFN( DbClientId, ProgPSC, "PSC Programmer" ) \ ENUM_DEFN( DbClientId, Prot, "Protection" ) \ ENUM_DEFN( DbClientId, ProtCfg, "Protection Config" ) \ ENUM_DEFN( DbClientId, ProtUTest, "Protection Unit Test" ) \ ENUM_DEFN( DbClientId, PSC, "PSC" ) \ ENUM_DEFN( DbClientId, RelayInput, "Relay Input" ) \ ENUM_DEFN( DbClientId, s61850, "SCADA IEC 61850 MMS" ) \ ENUM_DEFN( DbClientId, s61850_GOOSE, "IEC 61850 GOOSE" ) \ ENUM_DEFN( DbClientId, Scada, "SCADA" ) \ ENUM_DEFN( DbClientId, SIM, "SIM" ) \ ENUM_DEFN( DbClientId, SimOpTest, "SIM Sw Test" ) \ ENUM_DEFN( DbClientId, Simulator, "Simulator" ) \ ENUM_DEFN( DbClientId, SMA0, "SMA0" ) \ ENUM_DEFN( DbClientId, SMA1, "SMA1" ) \ ENUM_DEFN( DbClientId, SMA2, "SMA2" ) \ ENUM_DEFN( DbClientId, SMA3, "SMA3" ) \ ENUM_DEFN( DbClientId, SMA4, "SMA4" ) \ ENUM_DEFN( DbClientId, SMA5, "SMA5" ) \ ENUM_DEFN( DbClientId, SMA6, "SMA6" ) \ ENUM_DEFN( DbClientId, SMA7, "SMA7" ) \ ENUM_DEFN( DbClientId, SmartGridAutomation, "Smart Grid Automation" ) \ ENUM_DEFN( DbClientId, SMP, "System Management Process" ) \ ENUM_DEFN( DbClientId, SmpTest, "SMP Test" ) \ ENUM_DEFN( DbClientId, SNTP, "SNTP" ) \ ENUM_DEFN( DbClientId, System, "System" ) \ ENUM_DEFN( DbClientId, T10B, "SCADA IEC 60870" ) \ ENUM_DEFN( DbClientId, Update, "Update" ) \ ENUM_DEFN( DbClientId, UPS, "UPS process" ) \ ENUM_DEFN( DbClientId, UsbCopy, "USB Copy" ) \ ENUM_DEFN( DbClientId, UsbGadget, "USB Gadget" ) \ ENUM_DEFN( DbClientId, UserCredential, "User Credential management" ) \ ENUM_DEFN( DbClientId, Webserver, "Webserver" ) \ ENUM_DEFN( DbClientId, WLAN, "WLAN" ) \ ENUM_DEFN( BaudRateType, B115200, "115200bps" ) \ ENUM_DEFN( BaudRateType, B19200, "19200bps" ) \ ENUM_DEFN( ChangeEvent, ChChanged, "Changed" ) \ ENUM_DEFN( ChangeEvent, ChErased, "Erased" ) \ ENUM_DEFN( ChangeEvent, ChNoDisp, "" ) \ ENUM_DEFN( Co, Close, "Close" ) \ ENUM_DEFN( Co, ClosePhA, "Close A" ) \ ENUM_DEFN( Co, ClosePhB, "Close B" ) \ ENUM_DEFN( Co, ClosePhC, "Close C" ) \ ENUM_DEFN( Co, Open, "Open" ) \ ENUM_DEFN( Co, OpenPhA, "Open A" ) \ ENUM_DEFN( Co, OpenPhB, "Open B" ) \ ENUM_DEFN( Co, OpenPhC, "Open C" ) \ ENUM_DEFN( CoSrc, Abr, "ABR" ) \ ENUM_DEFN( CoSrc, AbrAo, "ABR AutoOpen" ) \ ENUM_DEFN( CoSrc, Ac, "UV3 AutoClose" ) \ ENUM_DEFN( CoSrc, Aco, "ACO" ) \ ENUM_DEFN( CoSrc, AoPowerFlowDirChanged, "AutoOpen Power Flow Dir Changed" ) \ ENUM_DEFN( CoSrc, AoPowerFlowReduced, "AutoOpen Power Flow Reduced" ) \ ENUM_DEFN( CoSrc, AoTimer, "AutoOpen Timer" ) \ ENUM_DEFN( CoSrc, Ar, "AR" ) \ ENUM_DEFN( CoSrc, ArOcef, "AR OC/EF/SEF" ) \ ENUM_DEFN( CoSrc, ArOcNpsEfSef, "AR OC/NPS/EF/SEF" ) \ ENUM_DEFN( CoSrc, ArOcNpsEfSefYn, "AR OC/NPS/EF/SEF/Yn" ) \ ENUM_DEFN( CoSrc, ArOv, "AR OV/UV" ) \ ENUM_DEFN( CoSrc, ArSef, "AR OC/EF/SEF" ) \ ENUM_DEFN( CoSrc, ArUv, "AR OV/UV" ) \ ENUM_DEFN( CoSrc, AutoSync, "Auto-sync" ) \ ENUM_DEFN( CoSrc, Ef1f, "EF1+" ) \ ENUM_DEFN( CoSrc, Ef1r, "EF1-" ) \ ENUM_DEFN( CoSrc, Ef2f, "EF2+" ) \ ENUM_DEFN( CoSrc, Ef2r, "EF2-" ) \ ENUM_DEFN( CoSrc, Ef3f, "EF3+" ) \ ENUM_DEFN( CoSrc, Ef3r, "EF3-" ) \ ENUM_DEFN( CoSrc, Efll, "EFLL3" ) \ ENUM_DEFN( CoSrc, Efll1, "EFLL1" ) \ ENUM_DEFN( CoSrc, Efll2, "EFLL2" ) \ ENUM_DEFN( CoSrc, Hlt, "HLT" ) \ ENUM_DEFN( CoSrc, Hmi, "HMI" ) \ ENUM_DEFN( CoSrc, Hrm, "HRM" ) \ ENUM_DEFN( CoSrc, I2I1, "I2/I1" ) \ ENUM_DEFN( CoSrc, Io, "IO" ) \ ENUM_DEFN( CoSrc, Io1, "IO1" ) \ ENUM_DEFN( CoSrc, Io1Input1, "IO1 Input 1" ) \ ENUM_DEFN( CoSrc, Io1Input2, "IO1 Input 2" ) \ ENUM_DEFN( CoSrc, Io1Input3, "IO1 Input 3" ) \ ENUM_DEFN( CoSrc, Io1Input4, "IO1 Input 4" ) \ ENUM_DEFN( CoSrc, Io1Input5, "IO1 Input 5" ) \ ENUM_DEFN( CoSrc, Io1Input6, "IO1 Input 6" ) \ ENUM_DEFN( CoSrc, Io1Input7, "IO1 Input 7" ) \ ENUM_DEFN( CoSrc, Io1Input8, "IO1 Input 8" ) \ ENUM_DEFN( CoSrc, Io2, "IO2" ) \ ENUM_DEFN( CoSrc, Io2Input1, "IO2 Input 1" ) \ ENUM_DEFN( CoSrc, Io2Input2, "IO2 Input 2" ) \ ENUM_DEFN( CoSrc, Io2Input3, "IO2 Input 3" ) \ ENUM_DEFN( CoSrc, Io2Input4, "IO2 Input 4" ) \ ENUM_DEFN( CoSrc, Io2Input5, "IO2 Input 5" ) \ ENUM_DEFN( CoSrc, Io2Input6, "IO2 Input 6" ) \ ENUM_DEFN( CoSrc, Io2Input7, "IO2 Input 7" ) \ ENUM_DEFN( CoSrc, Io2Input8, "IO2 Input 8" ) \ ENUM_DEFN( CoSrc, Logic, "Logic" ) \ ENUM_DEFN( CoSrc, Manual, "Manual" ) \ ENUM_DEFN( CoSrc, Nps1f, "NPS1+" ) \ ENUM_DEFN( CoSrc, Nps1r, "NPS1-" ) \ ENUM_DEFN( CoSrc, Nps2f, "NPS2+" ) \ ENUM_DEFN( CoSrc, Nps2r, "NPS2-" ) \ ENUM_DEFN( CoSrc, Nps3f, "NPS3+" ) \ ENUM_DEFN( CoSrc, Nps3r, "NPS3-" ) \ ENUM_DEFN( CoSrc, Npsll1, "NPSLL1" ) \ ENUM_DEFN( CoSrc, Npsll2, "NPSLL2" ) \ ENUM_DEFN( CoSrc, Npsll3, "NPSLL3" ) \ ENUM_DEFN( CoSrc, Oc1f, "OC1+" ) \ ENUM_DEFN( CoSrc, Oc1r, "OC1-" ) \ ENUM_DEFN( CoSrc, Oc2f, "OC2+" ) \ ENUM_DEFN( CoSrc, Oc2r, "OC2-" ) \ ENUM_DEFN( CoSrc, Oc3f, "OC3+" ) \ ENUM_DEFN( CoSrc, Oc3r, "OC3-" ) \ ENUM_DEFN( CoSrc, Ocll, "OCLL3" ) \ ENUM_DEFN( CoSrc, Ocll1, "OCLL1" ) \ ENUM_DEFN( CoSrc, Ocll2, "OCLL2" ) \ ENUM_DEFN( CoSrc, Of, "OF" ) \ ENUM_DEFN( CoSrc, Ov1, "OV1" ) \ ENUM_DEFN( CoSrc, Ov2, "OV2" ) \ ENUM_DEFN( CoSrc, Ov3, "OV3" ) \ ENUM_DEFN( CoSrc, Ov4, "OV4" ) \ ENUM_DEFN( CoSrc, Pc, "PC" ) \ ENUM_DEFN( CoSrc, PDOP, "PDOP" ) \ ENUM_DEFN( CoSrc, PDUP, "PDUP" ) \ ENUM_DEFN( CoSrc, PGE, "SCADA" ) \ ENUM_DEFN( CoSrc, RelayInput, "Relay Input" ) \ ENUM_DEFN( CoSrc, RelayInput1, "Relay Input 1" ) \ ENUM_DEFN( CoSrc, RelayInput2, "Relay Input 2" ) \ ENUM_DEFN( CoSrc, RelayInput3, "Relay Input 3" ) \ ENUM_DEFN( CoSrc, ROCOF, "ROCOF" ) \ ENUM_DEFN( CoSrc, s61850, "IEC 61850" ) \ ENUM_DEFN( CoSrc, s61850_GOOSE, "GOOSE" ) \ ENUM_DEFN( CoSrc, Scada, "SCADA" ) \ ENUM_DEFN( CoSrc, Sectionaliser, "Sectionaliser" ) \ ENUM_DEFN( CoSrc, Seff, "SEF+" ) \ ENUM_DEFN( CoSrc, Sefll, "SEFLL" ) \ ENUM_DEFN( CoSrc, Sefr, "SEF-" ) \ ENUM_DEFN( CoSrc, SmartGridAutomation, "Smart Grid Automation" ) \ ENUM_DEFN( CoSrc, T10B, "SCADA" ) \ ENUM_DEFN( CoSrc, Uf, "UF" ) \ ENUM_DEFN( CoSrc, Undef, "Undefined" ) \ ENUM_DEFN( CoSrc, Uv1, "UV1" ) \ ENUM_DEFN( CoSrc, Uv2, "UV2" ) \ ENUM_DEFN( CoSrc, Uv3, "UV3" ) \ ENUM_DEFN( CoSrc, Uv4, "UV4 (Sag)" ) \ ENUM_DEFN( CoSrc, VVS, "VVS" ) \ ENUM_DEFN( CoSrc, Yn, "Yn" ) \ ENUM_DEFN( CoState, C0, "Close 0" ) \ ENUM_DEFN( CoState, C1, "Close 1" ) \ ENUM_DEFN( CoState, C2, "Close 2" ) \ ENUM_DEFN( CoState, C3, "Close 3" ) \ ENUM_DEFN( CoState, C4, "Close 4" ) \ ENUM_DEFN( CoState, CReclose, "" ) \ ENUM_DEFN( CoState, O1, "Lockout" ) \ ENUM_DEFN( CoState, O2, "Open 2" ) \ ENUM_DEFN( CoState, O3, "Open 3" ) \ ENUM_DEFN( CoState, O4, "Open 4" ) \ ENUM_DEFN( CoState, OABR, "Open ABR" ) \ ENUM_DEFN( CoState, OAutoClose, "Open UV3 AutoClose" ) \ ENUM_DEFN( CoState, OAutoOpen, "Open AutoOpen" ) \ ENUM_DEFN( CoState, OReclose, "" ) \ ENUM_DEFN( CoState, SectionaliserO2, "O2" ) \ ENUM_DEFN( CoState, SectionaliserO3, "O3" ) \ ENUM_DEFN( CoState, SectionaliserO4, "O4" ) \ ENUM_DEFN( CoState, SectionaliserO5, "O5" ) \ ENUM_DEFN( TccType, TccType_AnsiRes, "ANSI Reset" ) \ ENUM_DEFN( TccType, TccType_AnsiTrip, "ANSI Trip" ) \ ENUM_DEFN( TccType, TccType_Iec, "IEC Trip" ) \ ENUM_DEFN( TccType, TccType_NAN, "" ) \ ENUM_DEFN( TccType, TccType_Noja, "NOJA Trip" ) \ ENUM_DEFN( TccType, TccType_UD, "User Defined Curve" ) \ ENUM_DEFN( TccType, TccType_User, "User Standard Curve" ) \ ENUM_DEFN( LocalRemote, Local, "Local" ) \ ENUM_DEFN( LocalRemote, Remote, "Remote" ) \ ENUM_DEFN( MeasPhaseSeqAbcType, ABC, "ABC" ) \ ENUM_DEFN( MeasPhaseSeqAbcType, ACB, "ACB" ) \ ENUM_DEFN( MeasPhaseSeqAbcType, Unknown, "???" ) \ ENUM_DEFN( MeasPhaseSeqRstType, RST, "RST" ) \ ENUM_DEFN( MeasPhaseSeqRstType, RTS, "RTS" ) \ ENUM_DEFN( MeasPhaseSeqRstType, Unknown, "???" ) \ ENUM_DEFN( ProtDirOut, Forward, "+" ) \ ENUM_DEFN( ProtDirOut, Reverse, "-" ) \ ENUM_DEFN( ProtDirOut, Unknown, "?" ) \ ENUM_DEFN( DbFileCommand, DbFCmdCrashLoad, "DB crash recover" ) \ ENUM_DEFN( DbFileCommand, DbFCmdCrashSave, "DB crash save" ) \ ENUM_DEFN( DbFileCommand, DbFCmdManualSave, "DB Manual save all datapoints" ) \ ENUM_DEFN( DbFileCommand, DbFCmdNone, "DB No file command" ) \ ENUM_DEFN( DbFileCommand, DbFCmdRead, "DB Read all datapoints" ) \ ENUM_DEFN( DbFileCommand, DbFCmdReadConfig, "DB Load configuration" ) \ ENUM_DEFN( DbFileCommand, DbFCmdResetProtConfig, "DB Reset protection configuration" ) \ ENUM_DEFN( DbFileCommand, DbFCmdSave, "DB Save all datapoints" ) \ ENUM_DEFN( DbFileCommand, DbFCmdSaveConfig, "DB Save configuration" ) \ ENUM_DEFN( DbFileCommand, DbFCmdSaveSwitchgearType, "DB Save Switchgear Type" ) \ ENUM_DEFN( CommsSerialBaudRate, 115200, "115200" ) \ ENUM_DEFN( CommsSerialBaudRate, 1200, "1200" ) \ ENUM_DEFN( CommsSerialBaudRate, 19200, "19200" ) \ ENUM_DEFN( CommsSerialBaudRate, 2400, "2400" ) \ ENUM_DEFN( CommsSerialBaudRate, 300, "300" ) \ ENUM_DEFN( CommsSerialBaudRate, 38400, "38400" ) \ ENUM_DEFN( CommsSerialBaudRate, 4800, "4800" ) \ ENUM_DEFN( CommsSerialBaudRate, 57600, "57600" ) \ ENUM_DEFN( CommsSerialBaudRate, 600, "600" ) \ ENUM_DEFN( CommsSerialBaudRate, 9600, "9600" ) \ ENUM_DEFN( CommsSerialDuplex, full, "Full" ) \ ENUM_DEFN( CommsSerialDuplex, half, "Half" ) \ ENUM_DEFN( CommsSerialRTSMode, ControlPTT, "Control PTT" ) \ ENUM_DEFN( CommsSerialRTSMode, FlowControl, "Flow Control" ) \ ENUM_DEFN( CommsSerialRTSMode, Ignore, "Ignore" ) \ ENUM_DEFN( CommsSerialRTSOnLevel, High, "High" ) \ ENUM_DEFN( CommsSerialRTSOnLevel, Low, "Low" ) \ ENUM_DEFN( CommsSerialDTRMode, Control, "Control" ) \ ENUM_DEFN( CommsSerialDTRMode, Ignore, "Ignore" ) \ ENUM_DEFN( CommsSerialDTROnLevel, High, "High" ) \ ENUM_DEFN( CommsSerialDTROnLevel, Low, "Low" ) \ ENUM_DEFN( CommsSerialParity, even, "Even" ) \ ENUM_DEFN( CommsSerialParity, none, "None" ) \ ENUM_DEFN( CommsSerialParity, odd, "Odd" ) \ ENUM_DEFN( CommsSerialCTSMode, Ignore, "Ignore" ) \ ENUM_DEFN( CommsSerialCTSMode, MonitorHigh, "Monitor High" ) \ ENUM_DEFN( CommsSerialCTSMode, MonitorLow, "Monitor Low" ) \ ENUM_DEFN( CommsSerialDSRMode, Ignore, "Ignore" ) \ ENUM_DEFN( CommsSerialDSRMode, MonitorHigh, "Monitor High" ) \ ENUM_DEFN( CommsSerialDSRMode, MonitorLow, "Monitor Low" ) \ ENUM_DEFN( CommsSerialDCDMode, Ignore, "Ignore" ) \ ENUM_DEFN( CommsSerialDCDMode, MonitorHigh, "Monitor High" ) \ ENUM_DEFN( CommsSerialDCDMode, MonitorLow, "Monitor Low" ) \ ENUM_DEFN( CommsWlanNetworkAuthentication, None, "WEP Open" ) \ ENUM_DEFN( CommsWlanNetworkAuthentication, Shared, "WEP Shared" ) \ ENUM_DEFN( CommsWlanNetworkAuthentication, WPA2Personal, "WPA2-Personal" ) \ ENUM_DEFN( CommsWlanNetworkAuthentication, WPAPersonal, "WPA-Personal" ) \ ENUM_DEFN( CommsWlanDataEncryption, AES, "AES" ) \ ENUM_DEFN( CommsWlanDataEncryption, TKIP, "TKIP" ) \ ENUM_DEFN( BinaryInputObject01Enum, BinaryInput, "Binary Input" ) \ ENUM_DEFN( BinaryInputObject01Enum, StatusBinaryInput, "Binary Input with Status" ) \ ENUM_DEFN( BinaryInputObject02Enum, NoTimeBinaryInputChange, "Binary Input Change without Time" ) \ ENUM_DEFN( BinaryInputObject02Enum, RelTimeBinaryInputChange, "Binary Input Change with Relative Time" ) \ ENUM_DEFN( BinaryInputObject02Enum, TimeBinaryInputChange, "Binary Input Change with Time" ) \ ENUM_DEFN( BinaryOutputObject10Enum, BinaryOutput, "Binary Output" ) \ ENUM_DEFN( BinaryOutputObject10Enum, StatusBinaryOutput, "Binary Output with Status" ) \ ENUM_DEFN( BinaryCounterObject20Enum, 16BitBinaryCounter, "16-Bit Binary Counter" ) \ ENUM_DEFN( BinaryCounterObject20Enum, 16BitBinaryCounterNoFlag, "16-Bit Binary Counter without Flag" ) \ ENUM_DEFN( BinaryCounterObject20Enum, 32BitBinaryCounter, "32-Bit Binary Counter" ) \ ENUM_DEFN( BinaryCounterObject20Enum, 32BitBinaryCounterNoFlag, "32-Bit Binary Counter without Flag" ) \ ENUM_DEFN( BinaryCounterObject20Enum, Disabled, "Disabled" ) \ ENUM_DEFN( BinaryCounterObject21Enum, 16BitFrozenCounter, "16-Bit Frozen Counter" ) \ ENUM_DEFN( BinaryCounterObject21Enum, 16BitFrozenCounterNoFlag, "16-Bit Frozen Counter without Flag" ) \ ENUM_DEFN( BinaryCounterObject21Enum, 16BitFrozenCounterTimeFreeze, "16-Bit Frozen Counter with Time Of Freeze" ) \ ENUM_DEFN( BinaryCounterObject21Enum, 32BitFrozenCounter, "32-Bit Frozen Counter" ) \ ENUM_DEFN( BinaryCounterObject21Enum, 32BitFrozenCounterNoFlag, "32-Bit Frozen Counter without Flag" ) \ ENUM_DEFN( BinaryCounterObject21Enum, 32BitFrozenCounterTimeFreeze, "32-Bit Frozen Counter with Time Of Freeze" ) \ ENUM_DEFN( BinaryCounterObject21Enum, Disabled, "Disabled" ) \ ENUM_DEFN( BinaryCounterObject22Enum, 16BitCounterChangeEvent, "16-Bit Counter Change Event" ) \ ENUM_DEFN( BinaryCounterObject22Enum, 16BitTimeCounterChangeEvent, "16-Bit Counter Change Event with Time" ) \ ENUM_DEFN( BinaryCounterObject22Enum, 32BitCounterChangeEvent, "32-Bit Counter Change Event" ) \ ENUM_DEFN( BinaryCounterObject22Enum, 32BitTimeCounterChangeEvent, "32-Bit Counter Change Event with Time" ) \ ENUM_DEFN( BinaryCounterObject22Enum, Disabled, "Disabled" ) \ ENUM_DEFN( BinaryCounterObject23Enum, 16BitFrozenCounterEvent, "16-Bit Frozen Counter Event" ) \ ENUM_DEFN( BinaryCounterObject23Enum, 16BitTimeFrozenCounterEvent, "16-Bit Frozen Counter Event with Time" ) \ ENUM_DEFN( BinaryCounterObject23Enum, 32BitFrozenCounterEvent, "32-Bit Frozen Counter Event" ) \ ENUM_DEFN( BinaryCounterObject23Enum, 32BitTimeFrozenCounterEvent, "32-Bit Frozen Counter Event with Time" ) \ ENUM_DEFN( BinaryCounterObject23Enum, Disabled, "Disabled" ) \ ENUM_DEFN( AnalogInputObject30Enum, 16BitAnalogInput, "16-Bit Analog Input" ) \ ENUM_DEFN( AnalogInputObject30Enum, 16BitAnalogInputNoFlag, "16-Bit Analog Input without Flag" ) \ ENUM_DEFN( AnalogInputObject30Enum, 32BitAnalogInput, "32-Bit Analog Input" ) \ ENUM_DEFN( AnalogInputObject30Enum, 32BitAnalogInputNoFlag, "32-Bit Analog Input without Flag" ) \ ENUM_DEFN( AnalogInputObject32Enum, 16BitAnalogChangeEventNoTimeReportAll, "Var 2: 16-Bit Analog Change Event without Time - Report All" ) \ ENUM_DEFN( AnalogInputObject32Enum, 16BitAnalogChangeEventNoTimeReportLast, "Var 2: 16-Bit Analog Change Event without Time - Report Last" ) \ ENUM_DEFN( AnalogInputObject32Enum, 16BitTimeAnalogChangeEvent, "Var 4: 16-Bit Analog Change Event with Time" ) \ ENUM_DEFN( AnalogInputObject32Enum, 32BitAnalogChangeEventNoTimeReportAll, "Var 1: 32-Bit Analog Change Event without Time - Report All" ) \ ENUM_DEFN( AnalogInputObject32Enum, 32BitAnalogChangeEventNoTimeReportLast, "Var 1: 32-Bit Analog Change Event without Time - Report Last" ) \ ENUM_DEFN( AnalogInputObject32Enum, 32BitTimeAnalogChangeEvent, "Var 3: 32-Bit Analog Change Event with Time" ) \ ENUM_DEFN( AnalogInputObject34Enum, 16BitAnalogInputReportDeadband, "16-Bit Analog Input Reporting Deadband" ) \ ENUM_DEFN( AnalogInputObject34Enum, 32BitAnalogInputReportDeadband, "32-Bit Analog Input Reporting Deadband" ) \ ENUM_DEFN( ProtStatus, 79_2, "79-2" ) \ ENUM_DEFN( ProtStatus, 79_3, "79-3" ) \ ENUM_DEFN( ProtStatus, ABR, "ABR" ) \ ENUM_DEFN( ProtStatus, ACO, "ACO" ) \ ENUM_DEFN( ProtStatus, AlarmMode, "Alarm Mode" ) \ ENUM_DEFN( ProtStatus, AR, "AR" ) \ ENUM_DEFN( ProtStatus, CLP, "CLP" ) \ ENUM_DEFN( ProtStatus, DFT, "DFT" ) \ ENUM_DEFN( ProtStatus, EF, "EF" ) \ ENUM_DEFN( ProtStatus, HLT, "HLT" ) \ ENUM_DEFN( ProtStatus, HRM, "HRM" ) \ ENUM_DEFN( ProtStatus, LL, "LL" ) \ ENUM_DEFN( ProtStatus, LLB, "LLB" ) \ ENUM_DEFN( ProtStatus, MNT, "MNT" ) \ ENUM_DEFN( ProtStatus, NPS, "NPS" ) \ ENUM_DEFN( ProtStatus, OF, "OF" ) \ ENUM_DEFN( ProtStatus, OV, "OV" ) \ ENUM_DEFN( ProtStatus, OV3, "OV3" ) \ ENUM_DEFN( ProtStatus, PDOP, "PDOP" ) \ ENUM_DEFN( ProtStatus, PDUP, "PDUP" ) \ ENUM_DEFN( ProtStatus, Prot, "Prot" ) \ ENUM_DEFN( ProtStatus, ROCOF, "ROCOF" ) \ ENUM_DEFN( ProtStatus, SEF, "SEF" ) \ ENUM_DEFN( ProtStatus, SSM, "SSM" ) \ ENUM_DEFN( ProtStatus, UF, "UF" ) \ ENUM_DEFN( ProtStatus, UV, "UV" ) \ ENUM_DEFN( ProtStatus, UV4, "UV4 (Sag)" ) \ ENUM_DEFN( ProtStatus, VVS, "VVS" ) \ ENUM_DEFN( ProtStatus, Yn, "Yn" ) \ ENUM_DEFN( LogStartEnd, End, "(end)" ) \ ENUM_DEFN( LogStartEnd, NaReset, "" ) \ ENUM_DEFN( LogStartEnd, NaSet, "" ) \ ENUM_DEFN( LogStartEnd, Start, "(start)" ) \ ENUM_DEFN( LogEventSrc, Abr, "ABR" ) \ ENUM_DEFN( LogEventSrc, AbrAo, "ABR AutoOpen" ) \ ENUM_DEFN( LogEventSrc, Ac, "UV3 AutoClose" ) \ ENUM_DEFN( LogEventSrc, Aco, "ACO" ) \ ENUM_DEFN( LogEventSrc, Ao, "AutoOpen" ) \ ENUM_DEFN( LogEventSrc, Ar, "AR" ) \ ENUM_DEFN( LogEventSrc, ArOcef, "AR OC/EF/SEF" ) \ ENUM_DEFN( LogEventSrc, ArOcNpsEfSef, "AR OC/NPS/EF/SEF" ) \ ENUM_DEFN( LogEventSrc, ArOcNpsEfSefYn, "AR OC/NPS/EF/SEF/Yn" ) \ ENUM_DEFN( LogEventSrc, ArOv, "AR OV/UV" ) \ ENUM_DEFN( LogEventSrc, ArSef, "AR OC/EF/SEF" ) \ ENUM_DEFN( LogEventSrc, ArUv, "AR OV/UV" ) \ ENUM_DEFN( LogEventSrc, Auto, "AUTO" ) \ ENUM_DEFN( LogEventSrc, Calib, "Calibration process" ) \ ENUM_DEFN( LogEventSrc, CBF, "CBF" ) \ ENUM_DEFN( LogEventSrc, CloseBlocking, "Logic Close Blocking" ) \ ENUM_DEFN( LogEventSrc, Clp, "CLP" ) \ ENUM_DEFN( LogEventSrc, Comms, "Comms" ) \ ENUM_DEFN( LogEventSrc, De, "DE" ) \ ENUM_DEFN( LogEventSrc, DeOcefsef, "DE OC/EF/SEF" ) \ ENUM_DEFN( LogEventSrc, DeOcNpsEfSef, "DE OC/NPS/EF/SEF" ) \ ENUM_DEFN( LogEventSrc, Ef1f, "EF1+" ) \ ENUM_DEFN( LogEventSrc, Ef1r, "EF1-" ) \ ENUM_DEFN( LogEventSrc, Ef2f, "EF2+" ) \ ENUM_DEFN( LogEventSrc, Ef2r, "EF2-" ) \ ENUM_DEFN( LogEventSrc, Ef3f, "EF3+" ) \ ENUM_DEFN( LogEventSrc, Ef3r, "EF3-" ) \ ENUM_DEFN( LogEventSrc, Efll, "EFLL3" ) \ ENUM_DEFN( LogEventSrc, Efll1, "EFLL1" ) \ ENUM_DEFN( LogEventSrc, Efll2, "EFLL2" ) \ ENUM_DEFN( LogEventSrc, ExtLoad, "ExtLoad" ) \ ENUM_DEFN( LogEventSrc, FaultLocator, "Fault Locator" ) \ ENUM_DEFN( LogEventSrc, GPS, "GPS" ) \ ENUM_DEFN( LogEventSrc, HLT, "HLT" ) \ ENUM_DEFN( LogEventSrc, Hmi, "HMI" ) \ ENUM_DEFN( LogEventSrc, HmiClient, "HMI" ) \ ENUM_DEFN( LogEventSrc, Hrm, "HRM" ) \ ENUM_DEFN( LogEventSrc, I2I1, "I2/I1" ) \ ENUM_DEFN( LogEventSrc, Io, "I/O" ) \ ENUM_DEFN( LogEventSrc, Io1, "I/O1" ) \ ENUM_DEFN( LogEventSrc, Io1Input1, "I/O1 Input 1" ) \ ENUM_DEFN( LogEventSrc, Io1Input2, "I/O1 Input 2" ) \ ENUM_DEFN( LogEventSrc, Io1Input3, "I/O1 Input 3" ) \ ENUM_DEFN( LogEventSrc, Io1Input4, "I/O1 Input 4" ) \ ENUM_DEFN( LogEventSrc, Io1Input5, "I/O1 Input 5" ) \ ENUM_DEFN( LogEventSrc, Io1Input6, "I/O1 Input 6" ) \ ENUM_DEFN( LogEventSrc, Io1Input7, "I/O1 Input 7" ) \ ENUM_DEFN( LogEventSrc, Io1Input8, "I/O1 Input 8" ) \ ENUM_DEFN( LogEventSrc, Io2, "I/O2" ) \ ENUM_DEFN( LogEventSrc, Io2Input1, "I/O2 Input 1" ) \ ENUM_DEFN( LogEventSrc, Io2Input2, "I/O2 Input 2" ) \ ENUM_DEFN( LogEventSrc, Io2Input3, "I/O2 Input 3" ) \ ENUM_DEFN( LogEventSrc, Io2Input4, "I/O2 Input 4" ) \ ENUM_DEFN( LogEventSrc, Io2Input5, "I/O2 Input 5" ) \ ENUM_DEFN( LogEventSrc, Io2Input6, "I/O2 Input 6" ) \ ENUM_DEFN( LogEventSrc, Io2Input7, "I/O2 Input 7" ) \ ENUM_DEFN( LogEventSrc, Io2Input8, "I/O2 Input 8" ) \ ENUM_DEFN( LogEventSrc, Io3, "I/O3" ) \ ENUM_DEFN( LogEventSrc, Io4, "I/O4" ) \ ENUM_DEFN( LogEventSrc, Ir, "IR" ) \ ENUM_DEFN( LogEventSrc, LL, "LL" ) \ ENUM_DEFN( LogEventSrc, LLB, "LLB" ) \ ENUM_DEFN( LogEventSrc, Logic, "Logic" ) \ ENUM_DEFN( LogEventSrc, Lsd, "LSD" ) \ ENUM_DEFN( LogEventSrc, Mode, "Mode" ) \ ENUM_DEFN( LogEventSrc, MPCB, "Multiphase Close Blocking" ) \ ENUM_DEFN( LogEventSrc, Nps1f, "NPS1+" ) \ ENUM_DEFN( LogEventSrc, Nps1r, "NPS1-" ) \ ENUM_DEFN( LogEventSrc, Nps2f, "NPS2+" ) \ ENUM_DEFN( LogEventSrc, Nps2r, "NPS2-" ) \ ENUM_DEFN( LogEventSrc, Nps3f, "NPS3+" ) \ ENUM_DEFN( LogEventSrc, Nps3r, "NPS3-" ) \ ENUM_DEFN( LogEventSrc, Npsll1, "NPSLL1" ) \ ENUM_DEFN( LogEventSrc, Npsll2, "NPSLL2" ) \ ENUM_DEFN( LogEventSrc, Npsll3, "NPSLL3" ) \ ENUM_DEFN( LogEventSrc, Oc1f, "OC1+" ) \ ENUM_DEFN( LogEventSrc, Oc1r, "OC1-" ) \ ENUM_DEFN( LogEventSrc, Oc2f, "OC2+" ) \ ENUM_DEFN( LogEventSrc, Oc2r, "OC2-" ) \ ENUM_DEFN( LogEventSrc, Oc3f, "OC3+" ) \ ENUM_DEFN( LogEventSrc, Oc3r, "OC3-" ) \ ENUM_DEFN( LogEventSrc, Ocll, "OCLL3" ) \ ENUM_DEFN( LogEventSrc, Ocll1, "OCLL1" ) \ ENUM_DEFN( LogEventSrc, Ocll2, "OCLL2" ) \ ENUM_DEFN( LogEventSrc, Of, "OF" ) \ ENUM_DEFN( LogEventSrc, Oscillography, "OSC" ) \ ENUM_DEFN( LogEventSrc, Ov1, "OV1" ) \ ENUM_DEFN( LogEventSrc, Ov2, "OV2" ) \ ENUM_DEFN( LogEventSrc, Ov3, "OV3" ) \ ENUM_DEFN( LogEventSrc, Ov4, "OV4" ) \ ENUM_DEFN( LogEventSrc, Pc, "PC" ) \ ENUM_DEFN( LogEventSrc, PDOP, "PDOP" ) \ ENUM_DEFN( LogEventSrc, PDUP, "PDUP" ) \ ENUM_DEFN( LogEventSrc, PGE, "SCADA" ) \ ENUM_DEFN( LogEventSrc, PMU, "PMU" ) \ ENUM_DEFN( LogEventSrc, Prot, "Protection" ) \ ENUM_DEFN( LogEventSrc, Psc, "PSC" ) \ ENUM_DEFN( LogEventSrc, Relay, "Relay" ) \ ENUM_DEFN( LogEventSrc, RelayInput, "Relay Input" ) \ ENUM_DEFN( LogEventSrc, RelayInput1, "Relay Input 1" ) \ ENUM_DEFN( LogEventSrc, RelayInput2, "Relay Input 2" ) \ ENUM_DEFN( LogEventSrc, RelayInput3, "Relay Input 3" ) \ ENUM_DEFN( LogEventSrc, ROCOF, "ROCOF" ) \ ENUM_DEFN( LogEventSrc, RTC, "RTC" ) \ ENUM_DEFN( LogEventSrc, s61850, "IEC 61850" ) \ ENUM_DEFN( LogEventSrc, s61850_GOOSE, "GOOSE" ) \ ENUM_DEFN( LogEventSrc, Scada, "SCADA" ) \ ENUM_DEFN( LogEventSrc, Sectionaliser, "Sectionaliser" ) \ ENUM_DEFN( LogEventSrc, Seff, "SEF+" ) \ ENUM_DEFN( LogEventSrc, Sefll, "SEFLL" ) \ ENUM_DEFN( LogEventSrc, Sefr, "SEF-" ) \ ENUM_DEFN( LogEventSrc, SGA_Logic, "SGA/Logic" ) \ ENUM_DEFN( LogEventSrc, Sim, "SIM" ) \ ENUM_DEFN( LogEventSrc, SmartGridAutomation, "SGA" ) \ ENUM_DEFN( LogEventSrc, Smp, "SMP" ) \ ENUM_DEFN( LogEventSrc, SNTP, "SNTP" ) \ ENUM_DEFN( LogEventSrc, Sst, "SST" ) \ ENUM_DEFN( LogEventSrc, SwSimul, "Switch Simulator" ) \ ENUM_DEFN( LogEventSrc, Synchronisation, "Synchronisation" ) \ ENUM_DEFN( LogEventSrc, System, "System" ) \ ENUM_DEFN( LogEventSrc, T10B, "SCADA" ) \ ENUM_DEFN( LogEventSrc, Tta, "TTA" ) \ ENUM_DEFN( LogEventSrc, UabcOver, "Uabc GT" ) \ ENUM_DEFN( LogEventSrc, UabcUnder, "Uabc LT" ) \ ENUM_DEFN( LogEventSrc, UaOver, "Ua GT" ) \ ENUM_DEFN( LogEventSrc, UaUnder, "Ua LT" ) \ ENUM_DEFN( LogEventSrc, Uf, "UF" ) \ ENUM_DEFN( LogEventSrc, Undefined, "Undefined" ) \ ENUM_DEFN( LogEventSrc, UPS, "UPS" ) \ ENUM_DEFN( LogEventSrc, UrOver, "Ur GT" ) \ ENUM_DEFN( LogEventSrc, UrstOver, "Urst GT" ) \ ENUM_DEFN( LogEventSrc, UrstUnder, "Urst LT" ) \ ENUM_DEFN( LogEventSrc, UrUnder, "Ur LT" ) \ ENUM_DEFN( LogEventSrc, Usb, "USB" ) \ ENUM_DEFN( LogEventSrc, Uv1, "UV1" ) \ ENUM_DEFN( LogEventSrc, Uv2, "UV2" ) \ ENUM_DEFN( LogEventSrc, Uv3, "UV3" ) \ ENUM_DEFN( LogEventSrc, Uv4, "UV4 (Sag)" ) \ ENUM_DEFN( LogEventSrc, Vrc, "VRC" ) \ ENUM_DEFN( LogEventSrc, VVS, "VVS" ) \ ENUM_DEFN( LogEventSrc, Yn, "Yn" ) \ ENUM_DEFN( LogEventPhase, PhaseA, "A" ) \ ENUM_DEFN( LogEventPhase, PhaseAB, "AB" ) \ ENUM_DEFN( LogEventPhase, PhaseABC, "ABC" ) \ ENUM_DEFN( LogEventPhase, PhaseABCE, "ABCE" ) \ ENUM_DEFN( LogEventPhase, PhaseABE, "ABE" ) \ ENUM_DEFN( LogEventPhase, PhaseAE, "AE" ) \ ENUM_DEFN( LogEventPhase, PhaseB, "B" ) \ ENUM_DEFN( LogEventPhase, PhaseBC, "BC" ) \ ENUM_DEFN( LogEventPhase, PhaseBCE, "BCE" ) \ ENUM_DEFN( LogEventPhase, PhaseBE, "BE" ) \ ENUM_DEFN( LogEventPhase, PhaseC, "C" ) \ ENUM_DEFN( LogEventPhase, PhaseCA, "CA" ) \ ENUM_DEFN( LogEventPhase, PhaseCAE, "CAE" ) \ ENUM_DEFN( LogEventPhase, PhaseCE, "CE" ) \ ENUM_DEFN( LogEventPhase, PhaseN, "N" ) \ ENUM_DEFN( LogEventPhase, PhaseNa, "" ) \ ENUM_DEFN( LogEventPhase, PhaseNAN, "" ) \ ENUM_DEFN( LogEventPhase, PhaseR, "R" ) \ ENUM_DEFN( LogEventPhase, PhaseRS, "RS" ) \ ENUM_DEFN( LogEventPhase, PhaseS, "S" ) \ ENUM_DEFN( LogEventPhase, PhaseST, "ST" ) \ ENUM_DEFN( LogEventPhase, PhaseT, "T" ) \ ENUM_DEFN( LogEventPhase, PhaseTR, "TR" ) \ ENUM_DEFN( EventDeState, eventDeStateForward, "+" ) \ ENUM_DEFN( EventDeState, eventDeStateReverse, "-" ) \ ENUM_DEFN( EventDeState, eventDeStateUnknown, "?" ) \ ENUM_DEFN( ActiveGrp, activeGrp1, "1" ) \ ENUM_DEFN( ActiveGrp, activeGrp2, "2" ) \ ENUM_DEFN( ActiveGrp, activeGrp3, "3" ) \ ENUM_DEFN( ActiveGrp, activeGrp4, "4" ) \ ENUM_DEFN( ActiveGrp, activeGrpNoGroup, "" ) \ ENUM_DEFN( CmsErrorCodes, CloseSwitchgearFailed, "Close request failed" ) \ ENUM_DEFN( CmsErrorCodes, DataLogFailed, "Data Log Failed" ) \ ENUM_DEFN( CmsErrorCodes, DirectoryNotExisting, "Directory does not exist" ) \ ENUM_DEFN( CmsErrorCodes, DuplicateMessageInQueue, "Duplicate Message In Queue" ) \ ENUM_DEFN( CmsErrorCodes, FileNameConflict, "File Name Conflict" ) \ ENUM_DEFN( CmsErrorCodes, FileNotExisting, "File does not exist" ) \ ENUM_DEFN( CmsErrorCodes, FileReadError, "File Read Error" ) \ ENUM_DEFN( CmsErrorCodes, FileWriteError, "File Write Error" ) \ ENUM_DEFN( CmsErrorCodes, InaccurateValue, "Value is inaccurate" ) \ ENUM_DEFN( CmsErrorCodes, IncorrectAccessCode, "Incorrect Access Code" ) \ ENUM_DEFN( CmsErrorCodes, InvalidChunkIndex, "Invalid Chunk Index" ) \ ENUM_DEFN( CmsErrorCodes, InvalidCommand, "Invalid Command" ) \ ENUM_DEFN( CmsErrorCodes, InvalidDataPointID, "Invalid Data Point ID" ) \ ENUM_DEFN( CmsErrorCodes, InvalidDirectoryName, "Invalid Directory Name" ) \ ENUM_DEFN( CmsErrorCodes, InvalidFileName, "Invalid File Name" ) \ ENUM_DEFN( CmsErrorCodes, InvalidPermissions, "Invalid Permissions" ) \ ENUM_DEFN( CmsErrorCodes, InvalidValueSize, "Invalid Value Size" ) \ ENUM_DEFN( CmsErrorCodes, NullValue, "Null Value" ) \ ENUM_DEFN( CmsErrorCodes, OK, "OK" ) \ ENUM_DEFN( CmsErrorCodes, OpenSwitchgearFailed, "Open request failed" ) \ ENUM_DEFN( CmsErrorCodes, OutOfSpace, "Out Of Space" ) \ ENUM_DEFN( CmsErrorCodes, ProcessingFileError, "File processing error" ) \ ENUM_DEFN( CmsErrorCodes, RequestApprovalTimeout, "Request Approval Timeout" ) \ ENUM_DEFN( CmsErrorCodes, RequestDenied, "Request Denied" ) \ ENUM_DEFN( CmsErrorCodes, SystemError, "System Error" ) \ ENUM_DEFN( CmsErrorCodes, TimedOut, "Timed Out" ) \ ENUM_DEFN( CmsErrorCodes, ValueOutOfRange, "Value Out Of Range" ) \ ENUM_DEFN( LineSupplyStatus, High, "HIGH" ) \ ENUM_DEFN( LineSupplyStatus, Low, "LOW" ) \ ENUM_DEFN( LineSupplyStatus, Off, "OFF" ) \ ENUM_DEFN( LineSupplyStatus, On, "ON" ) \ ENUM_DEFN( LineSupplyStatus, Surge, "SURGE" ) \ ENUM_DEFN( TccCurveName, TimeDefinite, "TD" ) \ ENUM_DEFN( TccCurveName, UserDefined, "UDC" ) \ ENUM_DEFN( HmiTccCurveClass, NoReset, "No Reset" ) \ ENUM_DEFN( HmiTccCurveClass, Reset, "Reset" ) \ ENUM_DEFN( HmiTccCurveClass, Td, "TD" ) \ ENUM_DEFN( SwState, Closed, "Closed" ) \ ENUM_DEFN( SwState, Failure, "Failure" ) \ ENUM_DEFN( SwState, ILock, "MechLock" ) \ ENUM_DEFN( SwState, Lockout, "Lockout" ) \ ENUM_DEFN( SwState, LogicallyLocked, "SWLocked" ) \ ENUM_DEFN( SwState, Open, "Open" ) \ ENUM_DEFN( SwState, OpenABR, "Open" ) \ ENUM_DEFN( SwState, OpenAC, "Open UV3" ) \ ENUM_DEFN( SwState, OpenACO, "Open" ) \ ENUM_DEFN( SwState, Unknown, "Disconn." ) \ ENUM_DEFN( OcEfSefDirs, NNN, "-/-/-" ) \ ENUM_DEFN( OcEfSefDirs, NNP, "-/-/+" ) \ ENUM_DEFN( OcEfSefDirs, NNU, "-/-/?" ) \ ENUM_DEFN( OcEfSefDirs, NPN, "-/+/-" ) \ ENUM_DEFN( OcEfSefDirs, NPP, "-/+/+" ) \ ENUM_DEFN( OcEfSefDirs, NPU, "-/+/?" ) \ ENUM_DEFN( OcEfSefDirs, NUN, "-/?/-" ) \ ENUM_DEFN( OcEfSefDirs, NUP, "-/?/+" ) \ ENUM_DEFN( OcEfSefDirs, NUU, "-/?/?" ) \ ENUM_DEFN( OcEfSefDirs, PNN, "+/-/-" ) \ ENUM_DEFN( OcEfSefDirs, PNP, "+/-/+" ) \ ENUM_DEFN( OcEfSefDirs, PNU, "+/-/?" ) \ ENUM_DEFN( OcEfSefDirs, PPN, "+/+/-" ) \ ENUM_DEFN( OcEfSefDirs, PPP, "+/+/+" ) \ ENUM_DEFN( OcEfSefDirs, PPU, "+/+/?" ) \ ENUM_DEFN( OcEfSefDirs, PUN, "+/?/-" ) \ ENUM_DEFN( OcEfSefDirs, PUP, "+/?/+" ) \ ENUM_DEFN( OcEfSefDirs, PUU, "+/?/?" ) \ ENUM_DEFN( OcEfSefDirs, UNN, "?/-/-" ) \ ENUM_DEFN( OcEfSefDirs, UNP, "?/-/+" ) \ ENUM_DEFN( OcEfSefDirs, UNU, "?/-/?" ) \ ENUM_DEFN( OcEfSefDirs, UPN, "?/+/-" ) \ ENUM_DEFN( OcEfSefDirs, UPP, "?/+/+" ) \ ENUM_DEFN( OcEfSefDirs, UPU, "?/+/?" ) \ ENUM_DEFN( OcEfSefDirs, UUN, "?/?/-" ) \ ENUM_DEFN( OcEfSefDirs, UUP, "?/?/+" ) \ ENUM_DEFN( OcEfSefDirs, UUU, "?/?/?" ) \ ENUM_DEFN( TripModeDLA, Alarm, "Alarm" ) \ ENUM_DEFN( TripModeDLA, Disable, "Disable" ) \ ENUM_DEFN( TripModeDLA, Lockout, "Lockout" ) \ ENUM_DEFN( HmiAuthGroup, Group0, "Default" ) \ ENUM_DEFN( HmiAuthGroup, Group1, "Password" ) \ ENUM_DEFN( HmiAuthGroup, Group10, "Group 10" ) \ ENUM_DEFN( HmiAuthGroup, Group11, "Group 11" ) \ ENUM_DEFN( HmiAuthGroup, Group12, "Group 12" ) \ ENUM_DEFN( HmiAuthGroup, Group13, "Group 13" ) \ ENUM_DEFN( HmiAuthGroup, Group14, "Group 14" ) \ ENUM_DEFN( HmiAuthGroup, Group15, "Group 15" ) \ ENUM_DEFN( HmiAuthGroup, Group2, "Password" ) \ ENUM_DEFN( HmiAuthGroup, Group3, "Factory" ) \ ENUM_DEFN( HmiAuthGroup, Group4, "Recovery" ) \ ENUM_DEFN( HmiAuthGroup, Group5, "Group 5" ) \ ENUM_DEFN( HmiAuthGroup, Group6, "Group 6" ) \ ENUM_DEFN( HmiAuthGroup, Group7, "Group 7" ) \ ENUM_DEFN( HmiAuthGroup, Group8, "Group 8" ) \ ENUM_DEFN( HmiAuthGroup, Group9, "Group 9" ) \ ENUM_DEFN( Bool, False, "False" ) \ ENUM_DEFN( Bool, True, "True" ) \ ENUM_DEFN( CommsPort, GPS, "GPS" ) \ ENUM_DEFN( CommsPort, Lan, "LAN" ) \ ENUM_DEFN( CommsPort, LanB, "LAN2" ) \ ENUM_DEFN( CommsPort, MobileNetwork, "Mobile Network Modem" ) \ ENUM_DEFN( CommsPort, PortNone, "None" ) \ ENUM_DEFN( CommsPort, Rs232, "RS232" ) \ ENUM_DEFN( CommsPort, Rs232Dte2, "RS232P" ) \ ENUM_DEFN( CommsPort, UsbA, "USBA" ) \ ENUM_DEFN( CommsPort, UsbB, "USBB" ) \ ENUM_DEFN( CommsPort, UsbC, "USBC" ) \ ENUM_DEFN( CommsPort, UsbD, "USBA2" ) \ ENUM_DEFN( CommsPort, UsbE, "USBB2" ) \ ENUM_DEFN( CommsPort, UsbF, "USBC2" ) \ ENUM_DEFN( CommsPort, UsbGadget, "CMS" ) \ ENUM_DEFN( CommsPort, Wlan, "WLAN" ) \ ENUM_DEFN( CommsSerialPinStatus, CommsSerialPinStatusHigh, "High" ) \ ENUM_DEFN( CommsSerialPinStatus, CommsSerialPinStatusIgnore, "Ignore" ) \ ENUM_DEFN( CommsSerialPinStatus, CommsSerialPinStatusLow, "Low" ) \ ENUM_DEFN( CommsConnectionStatus, CommsConnectionStatusConnected, "Connected" ) \ ENUM_DEFN( CommsConnectionStatus, CommsConnectionStatusConnecting, "Connecting" ) \ ENUM_DEFN( CommsConnectionStatus, CommsConnectionStatusDisconnected, "Disconnected" ) \ ENUM_DEFN( CommsPortDetectedType, BluetoothType, "Bluetooth" ) \ ENUM_DEFN( CommsPortDetectedType, DualSerialType, "Dual Serial" ) \ ENUM_DEFN( CommsPortDetectedType, GPRSType, "GPRS" ) \ ENUM_DEFN( CommsPortDetectedType, LanType, "LAN" ) \ ENUM_DEFN( CommsPortDetectedType, MobileNetworkType, "Mobile Network Modem" ) \ ENUM_DEFN( CommsPortDetectedType, SerialType, "Serial" ) \ ENUM_DEFN( CommsPortDetectedType, UnknownType, "Unknown" ) \ ENUM_DEFN( CommsPortDetectedType, UnsupportedType, "Unsupported" ) \ ENUM_DEFN( CommsPortDetectedType, WlanType, "WLAN" ) \ ENUM_DEFN( SerialPortConfigType, NotUsed, "Disabled" ) \ ENUM_DEFN( SerialPortConfigType, SerialDirect, "Serial Direct" ) \ ENUM_DEFN( SerialPortConfigType, SerialGPRS, "GPRS" ) \ ENUM_DEFN( SerialPortConfigType, SerialModem, "Modem" ) \ ENUM_DEFN( SerialPortConfigType, SerialRadio, "Radio" ) \ ENUM_DEFN( UsbPortConfigType, MobileNetwork, "Mobile Network" ) \ ENUM_DEFN( UsbPortConfigType, NotUsed, "Disabled" ) \ ENUM_DEFN( UsbPortConfigType, UsbBlueTooth, "Bluetooth" ) \ ENUM_DEFN( UsbPortConfigType, UsbGPRS, "GPRS" ) \ ENUM_DEFN( UsbPortConfigType, UsbLAN, "LAN" ) \ ENUM_DEFN( UsbPortConfigType, UsbSerialDirect, "Serial Direct" ) \ ENUM_DEFN( UsbPortConfigType, UsbSerialModem, "Modem" ) \ ENUM_DEFN( UsbPortConfigType, UsbSerialRadio, "Radio" ) \ ENUM_DEFN( UsbPortConfigType, UsbWLAN, "WLAN" ) \ ENUM_DEFN( LanPortConfigType, Disabled, "Disabled" ) \ ENUM_DEFN( LanPortConfigType, LAN, "LAN" ) \ ENUM_DEFN( DataflowUnit, UsingByteCount, "Byte" ) \ ENUM_DEFN( DataflowUnit, UsingPacketCount, "Packet" ) \ ENUM_DEFN( CommsConnType, Disabled, "Disabled" ) \ ENUM_DEFN( CommsConnType, LAN, "LAN" ) \ ENUM_DEFN( CommsConnType, Serial, "Serial" ) \ ENUM_DEFN( CommsConnType, SerialModem, "SerialModem" ) \ ENUM_DEFN( CommsConnType, SerialRadio, "SerialRadio" ) \ ENUM_DEFN( CommsConnType, WLAN, "WLAN" ) \ ENUM_DEFN( YesNo, No, "No" ) \ ENUM_DEFN( YesNo, Yes, "Yes" ) \ ENUM_DEFN( ProtectionState, ABR, "Open: ABR" ) \ ENUM_DEFN( ProtectionState, AR, "Open: AR" ) \ ENUM_DEFN( ProtectionState, Fault, "Closed: Fault" ) \ ENUM_DEFN( ProtectionState, Init, "Unknown: Initialised" ) \ ENUM_DEFN( ProtectionState, Lockout, "Open: Lockout" ) \ ENUM_DEFN( ProtectionState, NFF, "Closed: NFF" ) \ ENUM_DEFN( ProtectionState, OpenAC, "Open UV3 AutoClose" ) \ ENUM_DEFN( ProtectionState, OpenACO, "Open: ACO" ) \ ENUM_DEFN( ProtectionState, Pup, "Closed: Pickup" ) \ ENUM_DEFN( AutoIp, NotUseDhcp, "No" ) \ ENUM_DEFN( AutoIp, YesUsingDhcp, "Yes" ) \ ENUM_DEFN( ProgramSimCmd, None, "No command (default value)" ) \ ENUM_DEFN( ProgramSimCmd, WriteFile, "Write file /var/nand/simimg/img.new" ) \ ENUM_DEFN( ProgramSimCmd, WriteFileNoRestart, "Write but do not restart Relay" ) \ ENUM_DEFN( UsbDiscCmd, CopyDNP3SAUpdateKey, "Copy DNP3-SA update key" ) \ ENUM_DEFN( UsbDiscCmd, CopyHrm, "Copy harmonic logs" ) \ ENUM_DEFN( UsbDiscCmd, CopyInt, "Copy interruption logs" ) \ ENUM_DEFN( UsbDiscCmd, CopyLogs, "Copy Logs" ) \ ENUM_DEFN( UsbDiscCmd, CopySag, "Copy sag/swell logs" ) \ ENUM_DEFN( UsbDiscCmd, CopyUpdates, "Copy Updates" ) \ ENUM_DEFN( UsbDiscCmd, CopyUsbInstallFiles, "Copy installation files" ) \ ENUM_DEFN( UsbDiscCmd, Eject, "Eject USB" ) \ ENUM_DEFN( UsbDiscCmd, FindDNP3SAUpdateKey, "Find DNP3-SA update key" ) \ ENUM_DEFN( UsbDiscCmd, None, "No command" ) \ ENUM_DEFN( UsbDiscCmd, RestoreLogs, "Restore logs" ) \ ENUM_DEFN( UsbDiscCmd, RestoreSettings, "Restore settings" ) \ ENUM_DEFN( UsbDiscStatus, AboutToUnmount, "Syncing Filesystem" ) \ ENUM_DEFN( UsbDiscStatus, BusyCopyDNP3SAUpdateKey, "Copying DNP3SA key" ) \ ENUM_DEFN( UsbDiscStatus, BusyCopyLog, "Copying Logs" ) \ ENUM_DEFN( UsbDiscStatus, BusyCopyOsc, "Copying Captures" ) \ ENUM_DEFN( UsbDiscStatus, BusyCopyUpdate, "Copying Updates" ) \ ENUM_DEFN( UsbDiscStatus, BusyFindDNP3SAUpdateKey, "Searching" ) \ ENUM_DEFN( UsbDiscStatus, NoDisc, "No Disc" ) \ ENUM_DEFN( UsbDiscStatus, Ready, "Ready" ) \ ENUM_DEFN( UpdateError, BackupBlocked, "Backup obstructed" ) \ ENUM_DEFN( UpdateError, BackupLogsFailed, "Backup of logs failed" ) \ ENUM_DEFN( UpdateError, BackupSettingsFailed, "Backup of settings failed" ) \ ENUM_DEFN( UpdateError, CommsError, "Comms Error" ) \ ENUM_DEFN( UpdateError, DbAccessError, "Database Access Error" ) \ ENUM_DEFN( UpdateError, DbVersion, "Invalid Database Version" ) \ ENUM_DEFN( UpdateError, FileSystemIo, "Internal File System Error" ) \ ENUM_DEFN( UpdateError, FileSystemMismatch, "Incompatible file system" ) \ ENUM_DEFN( UpdateError, HwMajor, "Unsupported hardware version" ) \ ENUM_DEFN( UpdateError, InvalidMicrokernel, "Invalid microkernel" ) \ ENUM_DEFN( UpdateError, MissingDependency, "Missing Dependency" ) \ ENUM_DEFN( UpdateError, MissingSerialNum, "Missing Serial Number" ) \ ENUM_DEFN( UpdateError, ModuleCode, "Unsupported module" ) \ ENUM_DEFN( UpdateError, NoFiles, "No Files" ) \ ENUM_DEFN( UpdateError, None, "None" ) \ ENUM_DEFN( UpdateError, RevertFailed, "Revert Failed" ) \ ENUM_DEFN( UpdateError, Unspecified, "Unspecified Error" ) \ ENUM_DEFN( UpdateError, UpdateCount, "Too Many Update Files" ) \ ENUM_DEFN( UpdateError, UpdateInvalid, "Invalid Update File" ) \ ENUM_DEFN( UpdateError, UpdateTimeout, "Timeout" ) \ ENUM_DEFN( UpdateError, UpdateUnknown, "Unrecognised Update Type" ) \ ENUM_DEFN( UpdateError, UsbIoErr, "USB Read Error" ) \ ENUM_DEFN( SerialPartCode, DBS01, "DBS-01" ) \ ENUM_DEFN( SerialPartCode, DNP3S01, "DNP3S-01" ) \ ENUM_DEFN( SerialPartCode, FPGA01, "FPGA-01" ) \ ENUM_DEFN( SerialPartCode, GPIO01, "GPIO-01" ) \ ENUM_DEFN( SerialPartCode, Invalid, "Invalid" ) \ ENUM_DEFN( SerialPartCode, LANG01, "LANG-01" ) \ ENUM_DEFN( SerialPartCode, LANG20, "LANG-20" ) \ ENUM_DEFN( SerialPartCode, OSM200_15_16_630, "OSM 15-16-630-200" ) \ ENUM_DEFN( SerialPartCode, OSM203_27_12_630, "OSM 27-12-630-203" ) \ ENUM_DEFN( SerialPartCode, OSM210_15_16_630, "OSM 15-16-630-210" ) \ ENUM_DEFN( SerialPartCode, OSM210_27_12_630, "OSM 27-12-630-213" ) \ ENUM_DEFN( SerialPartCode, OSM211_15_16_630, "OSM 15-16-630-211" ) \ ENUM_DEFN( SerialPartCode, OSM220_15_16_630, "OSM 15-16-630-220" ) \ ENUM_DEFN( SerialPartCode, OSM223_27_12_630, "OSM 27-12-630-223" ) \ ENUM_DEFN( SerialPartCode, OSM300_27_12_630, "OSM 27-12-630-300" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_12_630, "OSM 38-12-630-300" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_12_800, "OSM 38-12-800-300" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_12_800_60C, "OSM 38-12-800-300-60C" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_12_800_SEF, "OSM 38-12-800-300-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_16_800, "OSM 38-16-800-300" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_16_800_60C, "OSM 38-16-800-300-60C" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_16_800_D60, "OSM 38-16-800-300-D60" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_16_800_DCT, "OSM 38-16-800-300-DCT" ) \ ENUM_DEFN( SerialPartCode, OSM300_38_16_800_SEF, "OSM 38-16-800-300-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM301_38_12_630, "OSM 38-12-630-301" ) \ ENUM_DEFN( SerialPartCode, OSM301_38_12_800, "OSM 38-12-800-301" ) \ ENUM_DEFN( SerialPartCode, OSM301_38_16_800, "OSM 38-16-800-301" ) \ ENUM_DEFN( SerialPartCode, OSM302_38_12_800, "OSM 38-12-800-302" ) \ ENUM_DEFN( SerialPartCode, OSM302_38_12_800_SEF, "OSM 38-12-800-302-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM302_38_16_800, "OSM 38-16-800-302" ) \ ENUM_DEFN( SerialPartCode, OSM302_38_16_800_SEF, "OSM 38-16-800-302-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM303_38_12_800, "OSM 38-12-800-303" ) \ ENUM_DEFN( SerialPartCode, OSM303_38_16_800, "OSM 38-16-800-303" ) \ ENUM_DEFN( SerialPartCode, OSM304_38_16_800, "OSM 38-16-800-304" ) \ ENUM_DEFN( SerialPartCode, OSM310_15_12_800_DIN, "OSM 15-12-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_15_16_800, "OSM 15-12-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_15_16_800_60C, "OSM 15-16-800-310-60C" ) \ ENUM_DEFN( SerialPartCode, OSM310_15_16_800_DIN, "OSM 15-16-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_15_16_800_GMK, "OSM 15-16-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_15_16_800_REAL, "OSM 15-16-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_15_16_800_SEF, "OSM 15-16-800-310-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM310_27_12_800, "OSM 27-12-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_27_12_800_60C, "OSM 27-12-800-310-60C" ) \ ENUM_DEFN( SerialPartCode, OSM310_27_12_800_DIN, "OSM 27-12-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_27_12_800_GMK, "OSM 27-12-800-310" ) \ ENUM_DEFN( SerialPartCode, OSM310_27_12_800_SEF, "OSM 27-12-800-310-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM311_15_16_800, "OSM 15-16-800-311" ) \ ENUM_DEFN( SerialPartCode, OSM311_15_16_800_DIN, "OSM 15-16-800-311" ) \ ENUM_DEFN( SerialPartCode, OSM311_27_12_800, "OSM 27-12-800-311" ) \ ENUM_DEFN( SerialPartCode, OSM311_27_12_800_DIN, "OSM 27-12-800-311" ) \ ENUM_DEFN( SerialPartCode, OSM312_15_12_800, "OSM 15-12-800-312" ) \ ENUM_DEFN( SerialPartCode, OSM312_15_16_800, "OSM 15-16-800-312" ) \ ENUM_DEFN( SerialPartCode, OSM312_15_16_800_SEF, "OSM 15-16-800-312-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM312_27_12_800, "OSM 27-12-800-312" ) \ ENUM_DEFN( SerialPartCode, OSM312_27_12_800_SEF, "OSM 27-12-800-312-SEF" ) \ ENUM_DEFN( SerialPartCode, OSM313_15_16_800, "OSM 15-16-800-313" ) \ ENUM_DEFN( SerialPartCode, OSM313_27_12_800, "OSM 27-12-800-313" ) \ ENUM_DEFN( SerialPartCode, OSM314_15_16_800, "OSM 15-16-800-314" ) \ ENUM_DEFN( SerialPartCode, OSM314_27_12_800, "OSM 27-12-800-314" ) \ ENUM_DEFN( SerialPartCode, OSM320_15_12_800, "OSM 15-12-800-320" ) \ ENUM_DEFN( SerialPartCode, OSM320_27_12_800, "OSM 27-12-800-320" ) \ ENUM_DEFN( SerialPartCode, PAN01, "PAN-01" ) \ ENUM_DEFN( SerialPartCode, PSC20, "PSC-20" ) \ ENUM_DEFN( SerialPartCode, RLM01, "RLM-01" ) \ ENUM_DEFN( SerialPartCode, RLM02, "RLM-02" ) \ ENUM_DEFN( SerialPartCode, RLM03, "RLM-03" ) \ ENUM_DEFN( SerialPartCode, RLM15, "RLM-15" ) \ ENUM_DEFN( SerialPartCode, RLM15_4G, "RLM-15-4G" ) \ ENUM_DEFN( SerialPartCode, RLM20, "RLM-20" ) \ ENUM_DEFN( SerialPartCode, RLM20_4G, "RLM-20-4G" ) \ ENUM_DEFN( SerialPartCode, S61850_CID01, "S61850 CID" ) \ ENUM_DEFN( SerialPartCode, SIM01, "SIM-01" ) \ ENUM_DEFN( SerialPartCode, SIM02, "SIM-02" ) \ ENUM_DEFN( SerialPartCode, SIM03, "SIM-03" ) \ ENUM_DEFN( SerialPartCode, SIM20, "SIM-20" ) \ ENUM_DEFN( SerialPartCode, SMP01, "SMP-01" ) \ ENUM_DEFN( SerialPartCode, UBOOT01, "UBOOT-01" ) \ ENUM_DEFN( SerialPartCode, UBOOT02, "UBOOT-02" ) \ ENUM_DEFN( SerialPartCode, UBOOT03, "UBOOT-03" ) \ ENUM_DEFN( SerialPartCode, UBOOT15, "UBOOT-15" ) \ ENUM_DEFN( SerialPartCode, UBOOT15_4G, "UBOOT-15-4G" ) \ ENUM_DEFN( SerialPartCode, UBOOT20, "UBOOT-20" ) \ ENUM_DEFN( SerialPartCode, UBOOT20_4G, "UBOOT20_4G" ) \ ENUM_DEFN( SerialPartCode, UKERN01, "UKERN-01" ) \ ENUM_DEFN( SerialPartCode, UKERN02, "UKERN-02" ) \ ENUM_DEFN( SerialPartCode, UKERN03, "UKERN-03" ) \ ENUM_DEFN( SerialPartCode, UKERN15, "UKERN-15" ) \ ENUM_DEFN( SerialPartCode, UKERN15_4G, "UKERN-15-4G" ) \ ENUM_DEFN( HmiMsgboxTitle, FastkeyError, "WARNING" ) \ ENUM_DEFN( HmiMsgboxTitle, SetDatapoint, "CHANGE VALUE WARNING" ) \ ENUM_DEFN( HmiMsgboxTitle, Unknown, "MESSAGE" ) \ ENUM_DEFN( HmiMsgboxTitle, USBOperation, "USB Operation" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyABR, "modify Auto Backfeed Restore (ABR)" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyACO, "modify Auto Change Over (ACO)" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyAR, "modify Auto-Reclosing (AR)" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyCL, "modify Cold Load (CL)" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyClose, "close" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyEF, "modify Earth Fault (EF)" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyGroup, "modify active group" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyHLT, "modify Hot Line Tag (HLT)" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyLL, "modify Live Line (LL)" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyLogicVAR1, "modify VAR1" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyLogicVAR2, "modify VAR2" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyMode, "modify remote mode" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyOpen, "open" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyPhaseSelA, "modify Phase Select A" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyPhaseSelB, "modify Phase Select B" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyPhaseSelC, "modify Phase Select C" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyProtection, "modify protection" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeySEF, "modify SEF" ) \ ENUM_DEFN( HmiMsgboxOperation, FastkeyUV, "modify Undervoltage (UV)" ) \ ENUM_DEFN( HmiMsgboxOperation, InstallFirmwareFromUSB, "install firmware from USB" ) \ ENUM_DEFN( HmiMsgboxOperation, SetDatapoint, "edit value" ) \ ENUM_DEFN( HmiMsgboxOperation, Unknown, "perform operation" ) \ ENUM_DEFN( HmiMsgboxError, Blank, "" ) \ ENUM_DEFN( HmiMsgboxError, DpidConfirm, "Blocked" ) \ ENUM_DEFN( HmiMsgboxError, DpidWrite, "Denied" ) \ ENUM_DEFN( HmiMsgboxError, DpidWriteMode, "Wrong control mode" ) \ ENUM_DEFN( HmiMsgboxError, ExtLoadOverload, "External Load Overload" ) \ ENUM_DEFN( HmiMsgboxError, FastkeyDisabled, "Fast Key disabled" ) \ ENUM_DEFN( HmiMsgboxError, Internal, "Internal error" ) \ ENUM_DEFN( HmiMsgboxError, Unknown, "Error unknown" ) \ ENUM_DEFN( HmiMsgboxError, UpdateInProgress, "Another source is performing update" ) \ ENUM_DEFN( HmiMsgboxError, WriteHlt, "Hot Line Tag enabled" ) \ ENUM_DEFN( BaxMetaId, DbMajor, "{I32}Database major version" ) \ ENUM_DEFN( BaxMetaId, DbMinor, "{I32}Database minor version" ) \ ENUM_DEFN( BaxMetaId, Desc, "{UTF8}Description" ) \ ENUM_DEFN( BaxMetaId, FamilyId, "{I32}Family ID" ) \ ENUM_DEFN( BaxMetaId, FileData, "{I32:SerialPartCode}File data type" ) \ ENUM_DEFN( BaxMetaId, FsType, "{I32:FileSystemType}File System Format" ) \ ENUM_DEFN( BaxMetaId, HwMajor, "{I32}Max supported major hardware version" ) \ ENUM_DEFN( BaxMetaId, HwMajorList, "{I32_ARRAY}Supported major hardware versions" ) \ ENUM_DEFN( BaxMetaId, HwMajorOthers, "{I32_ARRAY}Other hardware versions" ) \ ENUM_DEFN( BaxMetaId, HwType, "{I32:SerialPartCode}Target hardware type" ) \ ENUM_DEFN( BaxMetaId, HwTypeOthers, "{I32_ARRAY}Other hardware types" ) \ ENUM_DEFN( BaxMetaId, LanguageCode, "{UTF8}Language Code" ) \ ENUM_DEFN( BaxMetaId, LanguageId, "{I32}Language ID" ) \ ENUM_DEFN( BaxMetaId, LanguageName, "{UTF8}Language Name" ) \ ENUM_DEFN( BaxMetaId, ObfuscationCheck, "{RAW}Obfuscation check value" ) \ ENUM_DEFN( BaxMetaId, ObfuscationSalt, "{RAW}Obfuscation salt" ) \ ENUM_DEFN( BaxMetaId, ResourceId, "{I32}Resource ID" ) \ ENUM_DEFN( BaxMetaId, SmpDownFailConsecutive, "{I32}SMP Consecutive Shutdown Failures" ) \ ENUM_DEFN( BaxMetaId, SmpDownFailTotal, "{I32}SMP Total Shutdown Failures" ) \ ENUM_DEFN( BaxMetaId, SmpDownSrc, "{I32}SMP Shutdown Source" ) \ ENUM_DEFN( BaxMetaId, SmpDownTime, "{RAW}SMP Shutdown Time" ) \ ENUM_DEFN( BaxMetaId, SmpDownType, "{I32}SMP Shutdown Type" ) \ ENUM_DEFN( BaxMetaId, SmpExceptionCount, "{I32}SMP Exception Count" ) \ ENUM_DEFN( BaxMetaId, SmpExceptions, "{RAW}SMP Exceptions" ) \ ENUM_DEFN( BaxMetaId, SmpLimpType, "{I32}SMP Limp Type" ) \ ENUM_DEFN( BaxMetaId, SmpRestoreFailed, "{I32}SMP Restore Failed" ) \ ENUM_DEFN( BaxMetaId, SmpState, "{RAW}SMP State" ) \ ENUM_DEFN( BaxMetaId, SmpStep, "{RAW}SMP Step" ) \ ENUM_DEFN( BaxMetaId, SmpUpFailConsecutive, "{I32}SMP Consecutive Startup Failures" ) \ ENUM_DEFN( BaxMetaId, SmpUpFailTotal, "{I32}SMP Total Startup Failures" ) \ ENUM_DEFN( BaxMetaId, SmpUpMode, "{I32}SMP Startup Mode" ) \ ENUM_DEFN( BaxMetaId, Source, "{UTF8}File data source" ) \ ENUM_DEFN( BaxMetaId, VerMajor, "{I32}Major version number" ) \ ENUM_DEFN( BaxMetaId, VerMinor, "{I32}Minor version number" ) \ ENUM_DEFN( BaxMetaId, VerRc, "{I32}Release candidate number" ) \ ENUM_DEFN( BaxMetaId, VerStr, "{UTF8}File data version" ) \ ENUM_DEFN( LogicStrCode, And, "Logical AND" ) \ ENUM_DEFN( LogicStrCode, Copy, "Duplicate Top-Of-Stack" ) \ ENUM_DEFN( LogicStrCode, Eq, "Equal" ) \ ENUM_DEFN( LogicStrCode, FastTrip, "Fast Trip (Private)" ) \ ENUM_DEFN( LogicStrCode, Gt, "Greater Than" ) \ ENUM_DEFN( LogicStrCode, Iff, "If Top-Of-Stack False" ) \ ENUM_DEFN( LogicStrCode, Ift, "If Top-Of-Stack True" ) \ ENUM_DEFN( LogicStrCode, Lt, "Less Than" ) \ ENUM_DEFN( LogicStrCode, Nand, "Logical NAND" ) \ ENUM_DEFN( LogicStrCode, Nor, "Logical NOR" ) \ ENUM_DEFN( LogicStrCode, Not, "Logical NOT" ) \ ENUM_DEFN( LogicStrCode, Null, "NULL" ) \ ENUM_DEFN( LogicStrCode, Or, "Logical OR" ) \ ENUM_DEFN( LogicStrCode, Push, "{I32}Push Immediate Data" ) \ ENUM_DEFN( LogicStrCode, Read, "{UI16}Read Datapoint" ) \ ENUM_DEFN( LogicStrCode, Sto, "{UI16}Write Datapoint" ) \ ENUM_DEFN( LogicStrCode, Stop, "Stop" ) \ ENUM_DEFN( LogicStrCode, Xor, "Logical XOR" ) \ ENUM_DEFN( DbPopulate, Config, "Config file" ) \ ENUM_DEFN( DbPopulate, ConfigDef1, "Default config 1" ) \ ENUM_DEFN( DbPopulate, ConfigDef2, "Default config 2" ) \ ENUM_DEFN( DbPopulate, CrashSave, "Crash save file" ) \ ENUM_DEFN( DbPopulate, Schema, "Schema file" ) \ ENUM_DEFN( HmiMode, Limp, "Limp" ) \ ENUM_DEFN( HmiMode, Normal, "Normal" ) \ ENUM_DEFN( HmiMode, Shutdown, "Shutdown" ) \ ENUM_DEFN( HmiMode, Startup, "Startup" ) \ ENUM_DEFN( HmiMode, SwitchgearTypeMismatch, "Switchgear Type Mismatch" ) \ ENUM_DEFN( HmiMode, Update, "Update" ) \ ENUM_DEFN( ClearCommand, Clear, "Erased" ) \ ENUM_DEFN( ClearCommand, None, "" ) \ ENUM_DEFN( BxmlMapHmi, action_group, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, alerts, "" ) \ ENUM_DEFN( BxmlMapHmi, area, "" ) \ ENUM_DEFN( BxmlMapHmi, auth, "" ) \ ENUM_DEFN( BxmlMapHmi, authenticate, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, auto_fill, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, auto_update, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, border_style, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, button, "" ) \ ENUM_DEFN( BxmlMapHmi, code_point, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, columns, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, config, "" ) \ ENUM_DEFN( BxmlMapHmi, confirm_form, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, confirm_text, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, confirm_title, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, count, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, data_field, "" ) \ ENUM_DEFN( BxmlMapHmi, db_version, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, enabled, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, entry, "" ) \ ENUM_DEFN( BxmlMapHmi, enum, "" ) \ ENUM_DEFN( BxmlMapHmi, enums, "" ) \ ENUM_DEFN( BxmlMapHmi, expires_ms, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, family_id, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, file_id, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, file_version, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, font, "" ) \ ENUM_DEFN( BxmlMapHmi, form, "" ) \ ENUM_DEFN( BxmlMapHmi, forms, "" ) \ ENUM_DEFN( BxmlMapHmi, glyph, "" ) \ ENUM_DEFN( BxmlMapHmi, glyphs, "" ) \ ENUM_DEFN( BxmlMapHmi, height, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, help_text, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, hmi, "" ) \ ENUM_DEFN( BxmlMapHmi, id, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, init_to_default, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, Invalid, "" ) \ ENUM_DEFN( BxmlMapHmi, label, "" ) \ ENUM_DEFN( BxmlMapHmi, language_code, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, language_display, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, language_id, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, language_name, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, layout, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, link_down, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, link_id, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, link_left, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, link_right, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, link_up, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, list, "" ) \ ENUM_DEFN( BxmlMapHmi, list_item, "" ) \ ENUM_DEFN( BxmlMapHmi, list_source, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, list_source_type, "List Source Type" ) \ ENUM_DEFN( BxmlMapHmi, list_update_trigger, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, log, "" ) \ ENUM_DEFN( BxmlMapHmi, log_label, "" ) \ ENUM_DEFN( BxmlMapHmi, major, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, marketing_version, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, mask_all, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, max, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, max_retry, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, min, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, minor, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, name, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, number, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, on_cancel, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, on_condition, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, on_draw, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, on_enter, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, on_got_focus, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, on_lost_focus, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, on_oversize, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, on_select, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, patch, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, pw_default, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, pw_init, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, pw_mask, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, reset_log, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, resource_id, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, resource_rc, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, scroll_amount, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, segment, "{HEX}" ) \ ENUM_DEFN( BxmlMapHmi, selectable, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, short_string, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, sort, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, source, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, string, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, svn_url, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, svn_version, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, tab_strip, "" ) \ ENUM_DEFN( BxmlMapHmi, text, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, text_align, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, user_name, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, user_version, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, version, "" ) \ ENUM_DEFN( BxmlMapHmi, view, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, view_group, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, visible, "{UTF8}" ) \ ENUM_DEFN( BxmlMapHmi, widgets, "" ) \ ENUM_DEFN( BxmlMapHmi, width, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, x_pos, "{I32}" ) \ ENUM_DEFN( BxmlMapHmi, y_pos, "{I32}" ) \ ENUM_DEFN( BxmlNamespace, Hmi, "HMI" ) \ ENUM_DEFN( BxmlType, I32, "I32" ) \ ENUM_DEFN( BxmlType, RAW, "RAW" ) \ ENUM_DEFN( BxmlType, Unknown, "Unknown" ) \ ENUM_DEFN( BxmlType, UTF8, "UTF8" ) \ ENUM_DEFN( CmsConnectStatus, Connected, "Connected" ) \ ENUM_DEFN( CmsConnectStatus, Deprecated_Idle, "Connection Idle with no activity in " ) \ ENUM_DEFN( CmsConnectStatus, Disconnected, "Disconnected (default value)" ) \ ENUM_DEFN( ERR, BAD_DB_ENTRY, "Bad DbEntry" ) \ ENUM_DEFN( ERR, BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, BAD_SIZE, "Insufficent space in destination" ) \ ENUM_DEFN( ERR, BAD_VALUE, "Value out of range" ) \ ENUM_DEFN( ERR, BAX_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, BAX_DATA_CHECKSUM, "Bad payload checksum" ) \ ENUM_DEFN( ERR, BAX_FOOTER_CHECKSUM, "Bad footer checksum" ) \ ENUM_DEFN( ERR, BAX_FSEEK, "Could not seek to the desired position" ) \ ENUM_DEFN( ERR, BAX_INVALID_MAGIC, "Invalid magic number" ) \ ENUM_DEFN( ERR, BAX_INVALID_SIZE, "Invalid footer size" ) \ ENUM_DEFN( ERR, BAX_INVALID_VERSION, "Bad footer" ) \ ENUM_DEFN( ERR, BAX_MALLOC, "" ) \ ENUM_DEFN( ERR, BAX_META_CHECKSUM, "Bad meta checksum" ) \ ENUM_DEFN( ERR, BAX_META_ID, "Invalid BAX meta ID" ) \ ENUM_DEFN( ERR, BAX_META_SIZE, "Invalid size field for meta data" ) \ ENUM_DEFN( ERR, BAX_NO_WRITE, "Missing write function" ) \ ENUM_DEFN( ERR, BAX_NOT_IMPLEMENTED, "" ) \ ENUM_DEFN( ERR, BAX_READ, "Read callback function failed." ) \ ENUM_DEFN( ERR, BAX_TYPE_MISMATCH, "Meta type mismatch" ) \ ENUM_DEFN( ERR, BAX_WRITE, "Write callback function failed" ) \ ENUM_DEFN( ERR, BXML_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, BXML_BUFFER_SIZE, "Buffer too small" ) \ ENUM_DEFN( ERR, BXML_EOF, "Unexpected end of file" ) \ ENUM_DEFN( ERR, BXML_FILE_MAJOR, "Unknown version" ) \ ENUM_DEFN( ERR, BXML_FILE_MARKER, "Invalid BXML file" ) \ ENUM_DEFN( ERR, BXML_MALLOC, "Dynamic memory allocation failed" ) \ ENUM_DEFN( ERR, BXML_NO_DATA_ATTACHED, "BXML file not attached" ) \ ENUM_DEFN( ERR, BXML_NO_MEM, "Insufficient internal memory" ) \ ENUM_DEFN( ERR, BXML_NODE_DATA_TYPE, "Invalid node data type" ) \ ENUM_DEFN( ERR, BXML_NOT_IMPLEMENTED, "Function not implemented" ) \ ENUM_DEFN( ERR, BXML_NOT_SUPPORTED, "Unsupported operation" ) \ ENUM_DEFN( ERR, BXML_RECORD_ALIGNMENT, "Invalid record alignment" ) \ ENUM_DEFN( ERR, BXML_RECORD_SIZE, "Invalid record size" ) \ ENUM_DEFN( ERR, BXML_SEEK, "Could not seek to required position" ) \ ENUM_DEFN( ERR, BXML_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, CALIB_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, CALIB_SYSTEM, "" ) \ ENUM_DEFN( ERR, CAN_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, CAN_BAD_SIZE, "" ) \ ENUM_DEFN( ERR, CAN_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, CAN_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, CHANNEL_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, CHANNEL_NO_MEM, "No memory" ) \ ENUM_DEFN( ERR, CHANNEL_NO_WRITER, "No writer" ) \ ENUM_DEFN( ERR, CHANNEL_OVERFLOW, "Message overflow" ) \ ENUM_DEFN( ERR, CHANNEL_PARTIAL, "Message timeout" ) \ ENUM_DEFN( ERR, CHANNEL_SYNC, "Invalid start-of-packet" ) \ ENUM_DEFN( ERR, CHANNEL_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, CMS_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, CMS_BAD_SIZE, "" ) \ ENUM_DEFN( ERR, CMS_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, CMS_SERIAL_TIMEOUT, "" ) \ ENUM_DEFN( ERR, CMS_SYSTEM, "" ) \ ENUM_DEFN( ERR, COMMS_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, COMMS_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, DB_BAD_DB_ENTRY, "Bad DbEntry" ) \ ENUM_DEFN( ERR, DB_BAD_EVENT_DATA_SIZE, "Bad data size" ) \ ENUM_DEFN( ERR, DB_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, DB_BAD_SIZE, "Insufficent space in destination" ) \ ENUM_DEFN( ERR, DB_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN( ERR, DB_HLT_REFUSED, "Hot line tag refused" ) \ ENUM_DEFN( ERR, DB_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN( ERR, DB_MODE_REFUSED, "Failed local/remote test" ) \ ENUM_DEFN( ERR, DB_NON_RQST, "Non-requestable datapoint" ) \ ENUM_DEFN( ERR, DB_OUT_OF_RANGE, "Out of range" ) \ ENUM_DEFN( ERR, DB_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, DB_TIMEOUT, "Timeout" ) \ ENUM_DEFN( ERR, DB_UNKNOWN_DPID, "Unknown datapoint" ) \ ENUM_DEFN( ERR, DBQ_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, DBQ_BAD_SIZE, "" ) \ ENUM_DEFN( ERR, DBQ_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, DBQ_MALLOC, "" ) \ ENUM_DEFN( ERR, DBQ_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, DBSVR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, DBSVR_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, DBSVR_CLWR_BUFF_FULL, "Client buffer full" ) \ ENUM_DEFN( ERR, DBSVR_CLWR_FAIL, "Client write failed" ) \ ENUM_DEFN( ERR, DBSVR_MALLOC, "" ) \ ENUM_DEFN( ERR, DBSVR_NO_SUCH_FILE, "" ) \ ENUM_DEFN( ERR, DBSVR_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, DBTEST_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, DBTEST_SYSTEM, "" ) \ ENUM_DEFN( ERR, DBVER_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, DBVER_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, DNP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, DNP_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN( ERR, DNP_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, EXTLOAD_OVERLOAD, "External Load Overload Active" ) \ ENUM_DEFN( ERR, EXTSUPPLY_OVERLOAD, "External Supply Overload" ) \ ENUM_DEFN( ERR, FONT_CODE_POINT_RANGE, "Code point out of range" ) \ ENUM_DEFN( ERR, FONT_FOPEN, "Call to fopen() system call failed" ) \ ENUM_DEFN( ERR, FONT_MALLOC, "Call to malloc() failed" ) \ ENUM_DEFN( ERR, FONT_NOT_IMPLEMENTED, "Function not implemented" ) \ ENUM_DEFN( ERR, FONT_UNKNOWN_ARG, "Unknown command line argument" ) \ ENUM_DEFN( ERR, FONT_WARNING, "Warning treated as error" ) \ ENUM_DEFN( ERR, FSM_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, FSM_IN_TRANSITION, "Already in transition" ) \ ENUM_DEFN( ERR, FSM_INVALID_STATE_ID, "Unknown state ID" ) \ ENUM_DEFN( ERR, FSM_INVALID_TRANSITION, "Invalid transition" ) \ ENUM_DEFN( ERR, FSM_NO_STATE, "No initial state" ) \ ENUM_DEFN( ERR, HLT_REFUSED, "Hot line tag refused" ) \ ENUM_DEFN( ERR, HMI_AUTH_PASSWORD, "Invalid password" ) \ ENUM_DEFN( ERR, HMI_AUTH_PASSWORD_FORM, "Missing password form" ) \ ENUM_DEFN( ERR, HMI_AUTH_SET_PASSWORD, "Could not set password" ) \ ENUM_DEFN( ERR, HMI_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, HMI_BUFFER_SIZE, "Buffer too small" ) \ ENUM_DEFN( ERR, HMI_CHANNEL_NO_WRITER, "No writer on IPC channel" ) \ ENUM_DEFN( ERR, HMI_CHANNEL_OVERFLOW, "Channel overflow" ) \ ENUM_DEFN( ERR, HMI_CHANNEL_PARTIAL, "Chanel timeout" ) \ ENUM_DEFN( ERR, HMI_CHANNEL_SYNC, "Invalid start-of-packet" ) \ ENUM_DEFN( ERR, HMI_CIRCBUFF_NO_MEM, "No memory for circular buffer" ) \ ENUM_DEFN( ERR, HMI_COMMAND_DPID_TYPE, "Can't set unknown datapoint type" ) \ ENUM_DEFN( ERR, HMI_DM_COMMAND_ARGS, "Bad format for display manager command" ) \ ENUM_DEFN( ERR, HMI_DM_COMMAND_DPID, "Invalid datapoint for display manager command" ) \ ENUM_DEFN( ERR, HMI_DM_DPID_DENIED, "Denied setting datapoint" ) \ ENUM_DEFN( ERR, HMI_DM_DPID_ENTRY, "Invalid display manager datapoint entry" ) \ ENUM_DEFN( ERR, HMI_DM_DPID_OUT_BUFFER, "Display manager print buffer too small" ) \ ENUM_DEFN( ERR, HMI_DM_DPID_TYPE, "Display manager data type unknown" ) \ ENUM_DEFN( ERR, HMI_DM_DPID_TYPE_MISMATCH, "Display manager datapoint type mismatch" ) \ ENUM_DEFN( ERR, HMI_DM_DPID_TYPE_OPERATION, "Display manager datapoint operation not supported" ) \ ENUM_DEFN( ERR, HMI_DM_DPID_VALUE, "Invalid display manager datapoint value" ) \ ENUM_DEFN( ERR, HMI_DM_DRAW_NO_SPACE, "Display manager exhausted draw memory" ) \ ENUM_DEFN( ERR, HMI_DM_ENUM_ID, "Invalid display manager enum identifier" ) \ ENUM_DEFN( ERR, HMI_DM_ENUM_MISSING, "Display manager enum no string" ) \ ENUM_DEFN( ERR, HMI_DM_ENUM_NAME, "Invalid display manager enum name" ) \ ENUM_DEFN( ERR, HMI_DM_ENUM_VALUE, "Display manager enum value out of range" ) \ ENUM_DEFN( ERR, HMI_DM_FORM_DEPTH, "Exceeded display manager maximum menu depth" ) \ ENUM_DEFN( ERR, HMI_DM_MSGBOX_ID, "Invalid message box ID" ) \ ENUM_DEFN( ERR, HMI_DM_SUSPENDED, "Display manager suspended" ) \ ENUM_DEFN( ERR, HMI_DM_TEXT_DPID, "Display manager invalid datapoint ID" ) \ ENUM_DEFN( ERR, HMI_DM_VARIABLE_NOT_FOUND, "Unknown display manager variable" ) \ ENUM_DEFN( ERR, HMI_DM_VARIABLE_SIZE, "Display manager variable too small" ) \ ENUM_DEFN( ERR, HMI_DM_VARIABLE_TYPE, "Invalid display manager variable data type" ) \ ENUM_DEFN( ERR, HMI_DM_WIDGET_TYPE, "Invalid display manager widget operation" ) \ ENUM_DEFN( ERR, HMI_IO_COLLISION, "Device IO message collision" ) \ ENUM_DEFN( ERR, HMI_IO_CONFIG, "Device IO configuration failed" ) \ ENUM_DEFN( ERR, HMI_IO_CORRUPTED, "Device IO corrupted" ) \ ENUM_DEFN( ERR, HMI_IO_NAK, "Device IO NAK" ) \ ENUM_DEFN( ERR, HMI_IO_OPEN, "Bad device" ) \ ENUM_DEFN( ERR, HMI_IO_PERMISSIONS, "Device IO Insufficient permissions" ) \ ENUM_DEFN( ERR, HMI_IO_TIMEOUT, "Device IO timeout" ) \ ENUM_DEFN( ERR, HMI_IO_WRITE, "Device IO write failed" ) \ ENUM_DEFN( ERR, HMI_IPC_EXPECTED_SIZE, "Invalid IPC message size" ) \ ENUM_DEFN( ERR, HMI_IPC_MESSAGE_BUFFER, "Could not allocate message buffer" ) \ ENUM_DEFN( ERR, HMI_IPC_MESSAGE_ID, "Invalid message ID" ) \ ENUM_DEFN( ERR, HMI_IPC_MESSAGE_SIZE, "Invalid message size" ) \ ENUM_DEFN( ERR, HMI_IPC_NO_HANDLER, "No handler for IPC message" ) \ ENUM_DEFN( ERR, HMI_IPC_OPERATION, "Unknown operation for IPC message" ) \ ENUM_DEFN( ERR, HMI_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN( ERR, HMI_MEMPOOL_CORRUPT, "Memory pool is corrupt" ) \ ENUM_DEFN( ERR, HMI_MEMPOOL_FULL, "Memory pool full" ) \ ENUM_DEFN( ERR, HMI_MEMPOOL_INVALID_GROUP, "Invalid memory pool group." ) \ ENUM_DEFN( ERR, HMI_MEMPOOL_INVALID_POOL, "Invalid memory pool" ) \ ENUM_DEFN( ERR, HMI_MSG_NO_HANDLER, "No message handler" ) \ ENUM_DEFN( ERR, HMI_MSG_TIMEOUT, "Message timeout" ) \ ENUM_DEFN( ERR, HMI_NO_MEMORY, "No memory" ) \ ENUM_DEFN( ERR, HMI_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN( ERR, HMI_PANEL_DISPLAY_RANGE, "Bad display manager address" ) \ ENUM_DEFN( ERR, HMI_PANEL_SEGMENT_TABLE_FULL, "Panel glyph RAM full" ) \ ENUM_DEFN( ERR, HMI_PANEL_UNKNOWN_GLYPH, "Unknown glyph" ) \ ENUM_DEFN( ERR, HMI_PANEL_WRITE_TIME, "Took too long to write a message to the panel" ) \ ENUM_DEFN( ERR, HMI_RESOURCE_DIR, "Could not open resource directory" ) \ ENUM_DEFN( ERR, HMI_RESOURCE_INIT, "Resource module not initialised" ) \ ENUM_DEFN( ERR, HMI_RESOURCE_NAME, "Invalid resource file name" ) \ ENUM_DEFN( ERR, HMI_RESOURCE_NONE, "No resource files found" ) \ ENUM_DEFN( ERR, HMI_RESOURCE_RECORD, "Missing resource record" ) \ ENUM_DEFN( ERR, HMI_SESSION_COUNT, "Exceeded maximum session count" ) \ ENUM_DEFN( ERR, HMI_SESSION_PORT, "Invalid session port number" ) \ ENUM_DEFN( ERR, HMI_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, HMI_TIMER_CLOCK, "Monotonic clock not supported" ) \ ENUM_DEFN( ERR, HMI_UNKNOWN_DPID, "" ) \ ENUM_DEFN( ERR, HTTP_BAD_PARAM, "bad parameter for http server" ) \ ENUM_DEFN( ERR, IO_BAD_PARAM, "" ) \ ENUM_DEFN( ERR, IO_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, IO_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, LIBSMP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, LOG_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, LOG_BAD_SIZE, "Insufficent space in destination" ) \ ENUM_DEFN( ERR, LOG_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN( ERR, LOG_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN( ERR, LOG_NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN( ERR, LOG_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, LOGPROC_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, LOGPROC_BAD_SIZE, "" ) \ ENUM_DEFN( ERR, LOGPROC_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, LOGPROC_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, LOGPROC_UNKNOWN_EVENT, "Unrecognised event" ) \ ENUM_DEFN( ERR, MALLOC, "Could not allocate memory" ) \ ENUM_DEFN( ERR, METER_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, METER_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, METER_UNKNOWN_DPID, "" ) \ ENUM_DEFN( ERR, MODE_REFUSED, "Failed local/remote test" ) \ ENUM_DEFN( ERR, NO_MEM, "No memory" ) \ ENUM_DEFN( ERR, NO_SUCH_FILE, "File does not exist" ) \ ENUM_DEFN( ERR, NONE, "None" ) \ ENUM_DEFN( ERR, NOR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, NOR_FREAD, "The read or fread system call failed" ) \ ENUM_DEFN( ERR, NOR_FWRITE, "The write or fwrite system call failed" ) \ ENUM_DEFN( ERR, NOR_IOCTL, "The ioctl system call failed" ) \ ENUM_DEFN( ERR, NOR_LOCATION, "Invalid NOR location" ) \ ENUM_DEFN( ERR, NOR_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN( ERR, NOR_OPEN, "The open or fopen system call failed" ) \ ENUM_DEFN( ERR, NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN( ERR, NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN( ERR, P2P_BAD_CMD, "P2P_BAD_CMD" ) \ ENUM_DEFN( ERR, P2P_BAD_PARAM, "P2P_BAD_PARAM" ) \ ENUM_DEFN( ERR, P2P_BAD_VALUE, "P2P_BAD_VALUE" ) \ ENUM_DEFN( ERR, P2P_SYSTEM, "P2P_SYSTEM" ) \ ENUM_DEFN( ERR, PROGGPIO_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, PROGGPIO_BAD_VALUE, "Bad value" ) \ ENUM_DEFN( ERR, PROGGPIO_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, PROGSIM_BAD_PARAM, "" ) \ ENUM_DEFN( ERR, PROGSIM_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, PROGSIM_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, PROT_BAD_PARAM, "Bad paramater" ) \ ENUM_DEFN( ERR, PROT_BAD_SIZE, "" ) \ ENUM_DEFN( ERR, PROT_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, PROT_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, PROTCFG_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, PROTCFG_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, PSNIFF_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, PSNIFF_NO_MEM, "" ) \ ENUM_DEFN( ERR, PSNIFF_SERIAL_CONFIG, "" ) \ ENUM_DEFN( ERR, PSNIFF_SERIAL_CREATE_EVENT, "" ) \ ENUM_DEFN( ERR, PSNIFF_SERIAL_OPEN_FAILED, "" ) \ ENUM_DEFN( ERR, PSNIFF_SERIAL_PERMISSIONS, "" ) \ ENUM_DEFN( ERR, PSNIFF_SERIAL_READ_FAILED, "" ) \ ENUM_DEFN( ERR, PSNIFF_SERIAL_WRITE_FAILED, "" ) \ ENUM_DEFN( ERR, S61850_BAD_DB_ENTRY, "DBEntry fault in S61850" ) \ ENUM_DEFN( ERR, S61850_BAD_PARAMETER, "Bad Parameter (generic) in S61850" ) \ ENUM_DEFN( ERR, S61850_LAST_VALUE, "End of reserved range for IEC 61850" ) \ ENUM_DEFN( ERR, S61850_MALLOC, "Memory Allocation fault in S61850" ) \ ENUM_DEFN( ERR, S61850_MAPPING_FAULT, "Mapping fault in S61850" ) \ ENUM_DEFN( ERR, S61850_SYSTEM, "System Call failed in S61850" ) \ ENUM_DEFN( ERR, S61850_UNEXPECT_NULL_CNTXT, "Unexpected NULL in S61850 context" ) \ ENUM_DEFN( ERR, SCADA_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, SCADA_DNP_UNRECOGNISED_DPID, "Suspicious behaviour" ) \ ENUM_DEFN( ERR, SCADA_SIZE_UNABLE_TO_SCALE, "Unable to scale" ) \ ENUM_DEFN( ERR, SCADA_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, SCADA_T10B_BAD_PARAM, "Bad parameter in T10B support" ) \ ENUM_DEFN( ERR, SCADA_T10B_SYSTEM, "System call failed in T10B support" ) \ ENUM_DEFN( ERR, SIG_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, SIG_UNKNOWN_DPID, "Unknown datapoint ID" ) \ ENUM_DEFN( ERR, SIMOP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, SIMOP_SYSTEM, "" ) \ ENUM_DEFN( ERR, SIMOP_UNKNOWN_RQST, "Unknown request" ) \ ENUM_DEFN( ERR, SIMU_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, SIMU_SYSTEM, "" ) \ ENUM_DEFN( ERR, SMA_BAD_CMD, "SMA: Illegal command" ) \ ENUM_DEFN( ERR, SMA_BAD_PARAM, "SMA_BAD_PARAM" ) \ ENUM_DEFN( ERR, SMA_BAD_VALUE, "SMA_BAD_VALUE" ) \ ENUM_DEFN( ERR, SMA_SYSTEM, "SMA_SYSTEM" ) \ ENUM_DEFN( ERR, SMA_TIMER_FAIL, "SMA: Timer operation failed" ) \ ENUM_DEFN( ERR, SMP_ABORT_UP, "" ) \ ENUM_DEFN( ERR, SMP_ALREADY_RUNNING, "Already running" ) \ ENUM_DEFN( ERR, SMP_ARG_MISSING, "Missing argument" ) \ ENUM_DEFN( ERR, SMP_ARG_MISSING_VALUE, "Missing argument value" ) \ ENUM_DEFN( ERR, SMP_ARG_SERIAL_FORMAT, "Invalid serial number format" ) \ ENUM_DEFN( ERR, SMP_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, SMP_CAN_TRANSMIT, "CAN transmit error" ) \ ENUM_DEFN( ERR, SMP_CLIENT_ID, "Invalid client ID" ) \ ENUM_DEFN( ERR, SMP_CLOSE, "Call to close() or fclose() system call failed" ) \ ENUM_DEFN( ERR, SMP_CONFIG_ELEMENT, "Invalid configuration file format" ) \ ENUM_DEFN( ERR, SMP_CONFIG_FILE, "Invalid configuration file" ) \ ENUM_DEFN( ERR, SMP_CONFIG_TYPE, "Invalid configuration file format" ) \ ENUM_DEFN( ERR, SMP_CONFIG_VALUE, "Invalid configuration file format" ) \ ENUM_DEFN( ERR, SMP_DB_NOT_AVAILABLE, "Database not ready" ) \ ENUM_DEFN( ERR, SMP_DOWN_TIMEOUT, "Too long to shutdown" ) \ ENUM_DEFN( ERR, SMP_FORK, "Could not fork" ) \ ENUM_DEFN( ERR, SMP_FPGA_IRQ, "FPGA not interrupting" ) \ ENUM_DEFN( ERR, SMP_FS_TYPE_MISMATCH, "File System Type Mismatch" ) \ ENUM_DEFN( ERR, SMP_FSYNC, "Call to fsync() system call failed" ) \ ENUM_DEFN( ERR, SMP_INVALID_LOCK, "Invalid lock" ) \ ENUM_DEFN( ERR, SMP_IPC_EXPECTED_SIZE, "Invalid message payload size" ) \ ENUM_DEFN( ERR, SMP_IPC_ID, "Invalid message ID" ) \ ENUM_DEFN( ERR, SMP_IPC_NO_CLIENTS, "No clients connected" ) \ ENUM_DEFN( ERR, SMP_IPC_NO_HANDLER, "No message handler" ) \ ENUM_DEFN( ERR, SMP_IPC_SIZE, "Invalid message size" ) \ ENUM_DEFN( ERR, SMP_IPC_STATE, "Invalid state" ) \ ENUM_DEFN( ERR, SMP_LAUNCH_COMMAND, "Invalid launch command" ) \ ENUM_DEFN( ERR, SMP_LAUNCH_NOT_READY, "Launch controller not ready" ) \ ENUM_DEFN( ERR, SMP_LAUNCH_RESULT, "Invalid launch command result" ) \ ENUM_DEFN( ERR, SMP_LED_MODE, "Invalid LED flash pattern" ) \ ENUM_DEFN( ERR, SMP_NO_MEM, "" ) \ ENUM_DEFN( ERR, SMP_NOT_IMPLEMENTED, "" ) \ ENUM_DEFN( ERR, SMP_NOT_INITIALISED, "" ) \ ENUM_DEFN( ERR, SMP_NVM_CRASH_DEVICE, "Could not read or write non-volatile memory" ) \ ENUM_DEFN( ERR, SMP_NVM_FILE, "Could save data to non-volatile memory" ) \ ENUM_DEFN( ERR, SMP_NVM_SIZE, "Invalid data size for non-volatile memory" ) \ ENUM_DEFN( ERR, SMP_OPEN, "Call to open() failed." ) \ ENUM_DEFN( ERR, SMP_PANEL_DISCONNECTED, "Panel is disconnected" ) \ ENUM_DEFN( ERR, SMP_PID, "Unknown process identifier" ) \ ENUM_DEFN( ERR, SMP_PROCESS_ERROR, "Process exited unexpectedly." ) \ ENUM_DEFN( ERR, SMP_PROCESS_SIGNAL, "Unhandled signal" ) \ ENUM_DEFN( ERR, SMP_PROCESS_STATE, "Unexpected state" ) \ ENUM_DEFN( ERR, SMP_PROCESS_TERMINATED, "Process terminated unexpectedly" ) \ ENUM_DEFN( ERR, SMP_SCHED_CLIENT_ID, "Can't set priority" ) \ ENUM_DEFN( ERR, SMP_SCHED_NOT_SET, "Scheduling policy not set" ) \ ENUM_DEFN( ERR, SMP_SCHED_PRIORITY, "Call to setpriority() failed" ) \ ENUM_DEFN( ERR, SMP_SCHED_SCHEDULE, "Call to sched_setschedule() failed" ) \ ENUM_DEFN( ERR, SMP_SERIALISE_FILE_TYPE, "Unknown file format" ) \ ENUM_DEFN( ERR, SMP_SERIALISE_SIZE, "Unexpected size mismatch" ) \ ENUM_DEFN( ERR, SMP_SYSTEM, "" ) \ ENUM_DEFN( ERR, SMP_UNLINK, "Call to unlink() system call failed" ) \ ENUM_DEFN( ERR, SMP_UP_TIMEOUT, "Too long to start up" ) \ ENUM_DEFN( ERR, SMP_WAITPID, "Call to waitpid() failed" ) \ ENUM_DEFN( ERR, SWITCH_BAD_PARAM, "Value out of range" ) \ ENUM_DEFN( ERR, SWITCH_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN( ERR, SWITCH_NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN( ERR, SWITCH_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, T10B_BAD_PARAM, "Bad parameter in IEC 60870-5-101 / -104" ) \ ENUM_DEFN( ERR, T10B_MALLOC, "Could not allocate memory" ) \ ENUM_DEFN( ERR, T10B_SYSTEM, "Syatem call failed in IEC 60870-5-101 / -104" ) \ ENUM_DEFN( ERR, TMWSCL_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN( ERR, TMWSCL_NO_MEM, "No memory" ) \ ENUM_DEFN( ERR, TMWSCL_NOT_INITIALISED, "Module not initialised" ) \ ENUM_DEFN( ERR, TMWSCL_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, TMWSCL_UNKNOWN_DPID, "Unknown datapoint ID" ) \ ENUM_DEFN( ERR, TR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, TR_GLYPH_DATA_MISMATCH, "Glyph data specified twice differently" ) \ ENUM_DEFN( ERR, TR_GLYPH_PICTURE, "Invalid picture in glyph file" ) \ ENUM_DEFN( ERR, TR_GLYPH_RAW, "Invalid glyph file" ) \ ENUM_DEFN( ERR, TR_GLYPH_SIZE_MISMATCH, "Invalid size in glyph file" ) \ ENUM_DEFN( ERR, TR_NO_MEM, "" ) \ ENUM_DEFN( ERR, TR_TEXT_POSITION, "Invalid text position" ) \ ENUM_DEFN( ERR, TR_WARNING, "Treated warning as error" ) \ ENUM_DEFN( ERR, TSCHED_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, TSCHED_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN( ERR, TSCHED_INVALID_TIMER, "Invalid timer" ) \ ENUM_DEFN( ERR, TSCHED_NO_FREE_TIMERS, "No free timers" ) \ ENUM_DEFN( ERR, TSCHED_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, UNIVAR_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, UNIVAR_BAD_SIZE, "Insufficient space in destination" ) \ ENUM_DEFN( ERR, UNIVAR_NO_MEM, "No memory" ) \ ENUM_DEFN( ERR, UNIVAR_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN( ERR, UNIVAR_NOT_INITIALISED, "Not initialised" ) \ ENUM_DEFN( ERR, UNKNOWN_DPID, "Unknown datapoint ID" ) \ ENUM_DEFN( ERR, UPDATE_BACKUP_FAILED, "Backup Failed" ) \ ENUM_DEFN( ERR, UPDATE_BAD_PARAM, "Bad parameter" ) \ ENUM_DEFN( ERR, UPDATE_BAD_SIZE, "" ) \ ENUM_DEFN( ERR, UPDATE_BAD_VALUE, "Value out of range" ) \ ENUM_DEFN( ERR, UPDATE_COUNT, "Too many files" ) \ ENUM_DEFN( ERR, UPDATE_DB_MISMATCH, "Database mismatch" ) \ ENUM_DEFN( ERR, UPDATE_FILE_VALIDATE, "Update validation failed" ) \ ENUM_DEFN( ERR, UPDATE_GPIO_NOT_CONNECTED, "GPIO disconnected" ) \ ENUM_DEFN( ERR, UPDATE_GPIO_PROG_FAIL, "GPIO programming failed" ) \ ENUM_DEFN( ERR, UPDATE_HW_MAJOR_MISMATCH, "Unsupported hardware" ) \ ENUM_DEFN( ERR, UPDATE_INVALID, "Invalid file format" ) \ ENUM_DEFN( ERR, UPDATE_INVALID_FILENAME, "Invalid file name" ) \ ENUM_DEFN( ERR, UPDATE_INVALID_UKERN, "Invalid Microkernel" ) \ ENUM_DEFN( ERR, UPDATE_META, "Missing meta data" ) \ ENUM_DEFN( ERR, UPDATE_MODULE_CODE_MISMATCH, "Module code mismatch" ) \ ENUM_DEFN( ERR, UPDATE_NOR_ERROR, "NOR Error" ) \ ENUM_DEFN( ERR, UPDATE_NOT_IMPLEMENTED, "Not implemented" ) \ ENUM_DEFN( ERR, UPDATE_OLD_FILE, "Old file" ) \ ENUM_DEFN( ERR, UPDATE_OPEN_FILE, "Could not open file" ) \ ENUM_DEFN( ERR, UPDATE_PATH, "Invalid path" ) \ ENUM_DEFN( ERR, UPDATE_READ_FILE, "Read error" ) \ ENUM_DEFN( ERR, UPDATE_SIM_DISCONNECTED, "SIM disconnected" ) \ ENUM_DEFN( ERR, UPDATE_TYPE, "Unknown file ID" ) \ ENUM_DEFN( ERR, UPDATE_UNKNOWN_MODULE_CODE, "Unknown module code" ) \ ENUM_DEFN( ERR, UPDATE_UNKOWN_HW_MAJOR, "Unknown hardware version string" ) \ ENUM_DEFN( ERR, UPS_BAD_VALUE, "" ) \ ENUM_DEFN( ERR, UPS_SYSTEM, "System call failed" ) \ ENUM_DEFN( ERR, USBCOPY_OLD_UPDATE_FILE, "Update File Old" ) \ ENUM_DEFN( ERR, USBCOPY_OPEN_FILE, "Could not open file" ) \ ENUM_DEFN( ERR, USBCOPY_OPEN_FILE_USB, "Could not open USB file" ) \ ENUM_DEFN( ERR, USBCOPY_READ_FILE, "Could not read file" ) \ ENUM_DEFN( ERR, USBCOPY_READ_FILE_USB, "Could not read USB file" ) \ ENUM_DEFN( ERR, USBCOPY_UMOUNT_FAILED, "Unmount of the USB disc failed" ) \ ENUM_DEFN( ERR, USBCOPY_UPDATE_COUNT, "Too many update files" ) \ ENUM_DEFN( ERR, USBCOPY_UPDATE_INVALID, "Invalid file format" ) \ ENUM_DEFN( ERR, USBCOPY_UPDATE_INVALID_FILENAME, "Invalid File Name" ) \ ENUM_DEFN( ERR, USBCOPY_UPDATE_META, "Missing meta data" ) \ ENUM_DEFN( ERR, USBCOPY_UPDATE_TYPE, "Unknown file ID" ) \ ENUM_DEFN( ERR, USBCOPY_WRITE_FILE, "Could not write file" ) \ ENUM_DEFN( ERR, USBCOPY_WRITE_FILE_USB, "Could not write USB file" ) \ ENUM_DEFN( ERR, WEBSERVER, "Webserver Failed" ) \ ENUM_DEFN( ERR, X2B_BXML_CRC, "Invalid CRC" ) \ ENUM_DEFN( ERR, X2B_BXML_HEADER_SIZE, "Invalid BXML header size" ) \ ENUM_DEFN( ERR, X2B_BXML_MARKER, "Invalid BXML marker" ) \ ENUM_DEFN( ERR, X2B_BXML_NAMESPACE_ID, "Namespace ID mismatch" ) \ ENUM_DEFN( ERR, X2B_BXML_RECORD_DATA_SIZE, "Invalid record data size" ) \ ENUM_DEFN( ERR, X2B_BXML_RECORD_SIZE, "Invalid BXML record" ) \ ENUM_DEFN( ERR, X2B_BXML_RECORD_TOO_LARGE, "Maximum record size exceeded" ) \ ENUM_DEFN( ERR, X2B_BXML_UNKNOWN_ATTRIBUTE, "Unknown attribute" ) \ ENUM_DEFN( ERR, X2B_BXML_UNKNOWN_ELEMENT, "Unknown element name" ) \ ENUM_DEFN( ERR, X2B_BXML_VERSION_MAJOR, "Invalid BXML version" ) \ ENUM_DEFN( ERR, X2B_ID_MAP_EMPTY, "Unknown map ID database" ) \ ENUM_DEFN( ERR, X2B_ID_MAP_FORMAT, "Invalid map file" ) \ ENUM_DEFN( ERR, X2B_ID_MAP_NAMESPACE, "Unknown namespace ID" ) \ ENUM_DEFN( ERR, X2B_IN_FILE, "Could not open input file" ) \ ENUM_DEFN( ERR, X2B_MXML_LOAD_FILE, "Mini-xml library error" ) \ ENUM_DEFN( ERR, X2B_MXML_NEW_XML, "Mini-xml error" ) \ ENUM_DEFN( ERR, X2B_NO_MEM, "Memory exhausted" ) \ ENUM_DEFN( ERR, X2B_NOT_IMPLEMENTED, "Function not implemented" ) \ ENUM_DEFN( ERR, X2B_NULL, "NULL parameter" ) \ ENUM_DEFN( ERR, X2B_OUT_FILE, "Could not open output file" ) \ ENUM_DEFN( ERR, X2B_READFILE, "Could not read file" ) \ ENUM_DEFN( ERR, X2B_READFILE_EOF, "Premature end of file" ) \ ENUM_DEFN( ERR, X2B_SIGNAL_HANDLER, "Could not register signal handler" ) \ ENUM_DEFN( ERR, X2B_UNKNOWN_FILE_FORMAT, "Unspecified input file" ) \ ENUM_DEFN( ErrModules, calib, "CALIB" ) \ ENUM_DEFN( ErrModules, can, "CAN" ) \ ENUM_DEFN( ErrModules, cms, "CMS" ) \ ENUM_DEFN( ErrModules, comms, "COMMS" ) \ ENUM_DEFN( ErrModules, dbquery, "DBQ" ) \ ENUM_DEFN( ErrModules, dbserver, "DBSVR" ) \ ENUM_DEFN( ErrModules, dbtest, "DBTEST" ) \ ENUM_DEFN( ErrModules, dbver, "DBVER" ) \ ENUM_DEFN( ErrModules, extsupply, "External Supply" ) \ ENUM_DEFN( ErrModules, hmi, "HMI" ) \ ENUM_DEFN( ErrModules, hmifont, "FONT" ) \ ENUM_DEFN( ErrModules, iec61850, "S61850" ) \ ENUM_DEFN( ErrModules, io, "IO" ) \ ENUM_DEFN( ErrModules, libbax, "BAX" ) \ ENUM_DEFN( ErrModules, libbxml, "BXML" ) \ ENUM_DEFN( ErrModules, libchannel, "CHANNEL" ) \ ENUM_DEFN( ErrModules, libcsv, "CSV" ) \ ENUM_DEFN( ErrModules, libdbapi, "DB" ) \ ENUM_DEFN( ErrModules, libdebug, "DEBUG" ) \ ENUM_DEFN( ErrModules, libfsm, "FSM" ) \ ENUM_DEFN( ErrModules, liblog, "LOG" ) \ ENUM_DEFN( ErrModules, libnor, "NOR" ) \ ENUM_DEFN( ErrModules, libpolarssl, "POLARSSL" ) \ ENUM_DEFN( ErrModules, libsignal, "SIG" ) \ ENUM_DEFN( ErrModules, libsimswrqst, "SWITCH" ) \ ENUM_DEFN( ErrModules, libsmp, "LIBSMP" ) \ ENUM_DEFN( ErrModules, libtrace, "TRACE" ) \ ENUM_DEFN( ErrModules, libtsched, "TSCHED" ) \ ENUM_DEFN( ErrModules, libuboot_env, "UBOOT" ) \ ENUM_DEFN( ErrModules, libunivar, "UNIVAR" ) \ ENUM_DEFN( ErrModules, logprocess, "LOGPROC" ) \ ENUM_DEFN( ErrModules, meter, "METER" ) \ ENUM_DEFN( ErrModules, microkernel, "UKERN" ) \ ENUM_DEFN( ErrModules, P2P, "P2P" ) \ ENUM_DEFN( ErrModules, panelsniffer, "PSNIFF" ) \ ENUM_DEFN( ErrModules, progsim, "PROGSIM" ) \ ENUM_DEFN( ErrModules, prot, "PROT" ) \ ENUM_DEFN( ErrModules, protcfg, "PROTCFG" ) \ ENUM_DEFN( ErrModules, scada_dnp, "SCADA" ) \ ENUM_DEFN( ErrModules, scada_T10B, "SCADA_T10B" ) \ ENUM_DEFN( ErrModules, simop, "SIMOP" ) \ ENUM_DEFN( ErrModules, simulator, "SIMU" ) \ ENUM_DEFN( ErrModules, sma, "SMA" ) \ ENUM_DEFN( ErrModules, smp, "SMP" ) \ ENUM_DEFN( ErrModules, tmwscl, "TMWSCL" ) \ ENUM_DEFN( ErrModules, tmwscl_dnp, "DNP" ) \ ENUM_DEFN( ErrModules, tmwscl_T10B, "T10B" ) \ ENUM_DEFN( ErrModules, translate, "TR" ) \ ENUM_DEFN( ErrModules, update, "UPDATE" ) \ ENUM_DEFN( ErrModules, ups, "UPS" ) \ ENUM_DEFN( ErrModules, usbcopy, "USBCOPY" ) \ ENUM_DEFN( ErrModules, xml2bin, "X2B" ) \ ENUM_DEFN( FileSystemType, ubifs, "UBIFS" ) \ ENUM_DEFN( FileSystemType, Unknown, "Unknown" ) \ ENUM_DEFN( FileSystemType, Unspecified, "Unspecified" ) \ ENUM_DEFN( FileSystemType, Yaffs2_0, "YAFFS 2 (r13160)" ) \ ENUM_DEFN( FileSystemType, Yaffs2_1, "YAFFS 2 (rNotReleased)" ) \ ENUM_DEFN( IOSettingMode, Disable, "Disable" ) \ ENUM_DEFN( IOSettingMode, Enable, "Enable" ) \ ENUM_DEFN( IOSettingMode, Test, "Test" ) \ ENUM_DEFN( SmaChannelState, SmaChannelClosed, "SmaChannelClosed" ) \ ENUM_DEFN( SmaChannelState, SmaChannelConnected, "SmaChannelConnected" ) \ ENUM_DEFN( SmaChannelState, SmaChannelConnecting, "SmaChannelConnecting" ) \ ENUM_DEFN( CommsProtocols, CMSProtocol, "CMSProtocol" ) \ ENUM_DEFN( CommsProtocols, DNP3Protocol, "DNP3Protocol" ) \ ENUM_DEFN( CommsProtocols, GPS, "GPS" ) \ ENUM_DEFN( CommsProtocols, HMIProtocol, "HMIProtocol" ) \ ENUM_DEFN( CommsProtocols, NumOfProtocols, "NumOfProtocols" ) \ ENUM_DEFN( CommsProtocols, P2PProtocol, "P2PProtocol" ) \ ENUM_DEFN( CommsProtocols, PGEProtocol, "2179Protocol" ) \ ENUM_DEFN( CommsProtocols, T10BProtocol, "IEC 60870-5-101 / -104" ) \ ENUM_DEFN( CommsProtocols, Unknown, "Unknown" ) \ ENUM_DEFN( ShutdownReason, SaveSimCalibration, "SaveSimCalibration" ) \ ENUM_DEFN( CommsSerialFlowControlMode, Hardware, "Hardware" ) \ ENUM_DEFN( CommsSerialFlowControlMode, None, "None" ) \ ENUM_DEFN( CommsSerialFlowControlMode, PTT, "PTT" ) \ ENUM_DEFN( CommsSerialFlowControlMode, PTTCTS, "PTT CTS" ) \ ENUM_DEFN( HmiMsgboxMessage, CopyComplete, "Copy Complete" ) \ ENUM_DEFN( CommsSerialDCDControlMode, Block, "Block TX" ) \ ENUM_DEFN( CommsSerialDCDControlMode, Ignore, "Ignore" ) \ ENUM_DEFN( T10BFormatMeasurand, Float, "32-bit Float" ) \ ENUM_DEFN( T10BFormatMeasurand, Normalized, "Normalized" ) \ ENUM_DEFN( T10BFormatMeasurand, Scaled, "Scaled" ) \ ENUM_DEFN( T101ChannelMode, Balanced, "Balanced" ) \ ENUM_DEFN( T101ChannelMode, Unbalanced, "Unbalanced" ) \ ENUM_DEFN( PeriodicCounterOperation, Disabled, "Disabled" ) \ ENUM_DEFN( PeriodicCounterOperation, Freeze, "Freeze" ) \ ENUM_DEFN( PeriodicCounterOperation, FreezeAndClear, "Freeze and Clear" ) \ ENUM_DEFN( T10BReportMode, Background, "Background reporting (no events)" ) \ ENUM_DEFN( T10BReportMode, Cyclic, "Cyclic Reporting (no events)" ) \ ENUM_DEFN( T10BReportMode, Default, "Use default mode for data type" ) \ ENUM_DEFN( T10BReportMode, Disabled, "Disabled" ) \ ENUM_DEFN( T10BReportMode, EventNoTime, "Event reporting with no time stamp" ) \ ENUM_DEFN( T10BReportMode, EventWithTime, "Event reporting with time stamp" ) \ ENUM_DEFN( T10BReportMode, Interrogation, "Interrogation" ) \ ENUM_DEFN( T10BControlMode, Default, "Use default mode for data type" ) \ ENUM_DEFN( T10BControlMode, DirectExecute, "Direct Execute (no Select required)" ) \ ENUM_DEFN( T10BControlMode, Disabled, "Disabled" ) \ ENUM_DEFN( T10BControlMode, SelectExecute, "Select before Execute" ) \ ENUM_DEFN( T10BParamRepMode, Default, "Use default mode for data type" ) \ ENUM_DEFN( T10BParamRepMode, Disabled, "Disabled" ) \ ENUM_DEFN( T10BParamRepMode, Interrogation, "Interrogation" ) \ ENUM_DEFN( T10BParamRepMode, NotReported, "Not Reported" ) \ ENUM_DEFN( CommsIpProtocolMode, Tcp, "TCP" ) \ ENUM_DEFN( CommsIpProtocolMode, Udp, "UDP" ) \ ENUM_DEFN( GPIOSettingMode, Disable, "Disable" ) \ ENUM_DEFN( GPIOSettingMode, Enable, "Enable" ) \ ENUM_DEFN( GPIOSettingMode, Test1, "Test1" ) \ ENUM_DEFN( GPIOSettingMode, Test2, "Test2" ) \ ENUM_DEFN( GPIOSettingMode, Test3, "Test3" ) \ ENUM_DEFN( IoStatus, Disabled, "Na" ) \ ENUM_DEFN( IoStatus, DisabledGlobal, "Na" ) \ ENUM_DEFN( IoStatus, DisabledIndividual, "D" ) \ ENUM_DEFN( IoStatus, Off, "Off" ) \ ENUM_DEFN( IoStatus, On, "On" ) \ ENUM_DEFN( IoStatus, Undetermined, "???" ) \ ENUM_DEFN( ConfigIOCardNum, 1, "1" ) \ ENUM_DEFN( ConfigIOCardNum, 2, "2" ) \ ENUM_DEFN( SwitchgearTypes, 1Phase, "1 phase" ) \ ENUM_DEFN( SwitchgearTypes, 3Phase, "3 phase" ) \ ENUM_DEFN( SwitchgearTypes, SingleTriple, "Single Triple" ) \ ENUM_DEFN( SwitchgearTypes, ThreePhaseSEF, "3 phase SEF" ) \ ENUM_DEFN( SwitchgearTypes, Unknown, "Unknown" ) \ ENUM_DEFN( LoSeqMode, MaxTrips2, "2" ) \ ENUM_DEFN( LoSeqMode, MaxTrips3, "3" ) \ ENUM_DEFN( LoSeqMode, MaxTrips4, "Normal" ) \ ENUM_DEFN( LogicChannelMode, Disable, "D" ) \ ENUM_DEFN( LogicChannelMode, Enable, "E" ) \ ENUM_DEFN( LogicChannelMode, Test, "T" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr1EventNoTime, "Counter Group 1 event without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr1EventWithTime, "Counter group 1 event with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr1Interrogation, "Counter group 1 interrogation without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr1InterrogationWithTime, "Counter group 1 interrogation with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr2EventNoTime, "Counter group 2 event without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr2EventWithTime, "Counter group 2 event with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr2Interrogation, "Counte group 2 interrogation without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr2InterrogationWithTime, "Counter group 2 interrogation with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr3EventNoTime, "Counter group 3 event without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr3EventWithTime, "Counter group 3 event with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr3Interrogation, "Counter group 3 interrogation without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr3InterrogationWithTime, "Counter group 3 interrogation with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr4EventNoTime, "Counter group 4 event without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr4EventWithTime, "Counter group 4 event with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr4Interrogation, "Counter group 4 interrogation without time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Ctr4InterrogationWithTime, "Counter group 4 interrogation with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Default, "Use default reporting mode for data type" ) \ ENUM_DEFN( T10BCounterRepMode, Disabled, "Disabled" ) \ ENUM_DEFN( T10BCounterRepMode, EventNoTime, "Event reporting with no time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, EventWithTime, "Event reporting with time stamp" ) \ ENUM_DEFN( T10BCounterRepMode, Interrogation, "Interrogation (no events)" ) \ ENUM_DEFN( T10BCounterRepMode, InterrogationWithTime, "Counter Interrogation with time stamp" ) \ ENUM_DEFN( ACOState, Active, "Active" ) \ ENUM_DEFN( ACOState, NotSupplying, "Not Supplying Load" ) \ ENUM_DEFN( ACOState, Off, "Off" ) \ ENUM_DEFN( ACOState, Supplying, "Supplying Load" ) \ ENUM_DEFN( ACOOpMode, Alternative, "Alt" ) \ ENUM_DEFN( ACOOpMode, Equal, "Equal" ) \ ENUM_DEFN( ACOOpMode, Main, "Main" ) \ ENUM_DEFN( FailOk, Fail, "Fail" ) \ ENUM_DEFN( FailOk, OK, "OK" ) \ ENUM_DEFN( ACOHealthReason, AbrEn, "ABR On" ) \ ENUM_DEFN( ACOHealthReason, ACOSettings, "ACO Settings" ) \ ENUM_DEFN( ACOHealthReason, CBF, "CBF" ) \ ENUM_DEFN( ACOHealthReason, CloseBlocking, "CloseBlocking" ) \ ENUM_DEFN( ACOHealthReason, CloseTripFail, "Close/Tr Fail" ) \ ENUM_DEFN( ACOHealthReason, EnableTimeout, "Timeout" ) \ ENUM_DEFN( ACOHealthReason, IllegalClose, "Close Both" ) \ ENUM_DEFN( ACOHealthReason, LLHLT, "LL/HLT On" ) \ ENUM_DEFN( ACOHealthReason, LoadLive, "Load Live" ) \ ENUM_DEFN( ACOHealthReason, Lockout, "Prot Lockout" ) \ ENUM_DEFN( ACOHealthReason, MakeBeforeBreak, "Make Bef Brk" ) \ ENUM_DEFN( ACOHealthReason, MalWarn, "This ACR" ) \ ENUM_DEFN( ACOHealthReason, Manual, "Operator" ) \ ENUM_DEFN( ACOHealthReason, OK, "OK" ) \ ENUM_DEFN( ACOHealthReason, Open, "User Trip" ) \ ENUM_DEFN( ACOHealthReason, OperationMode, "ACO Mode" ) \ ENUM_DEFN( ACOHealthReason, P2PComms, "Peer Comms" ) \ ENUM_DEFN( ACOHealthReason, PeerHealth, "Remote ACR" ) \ ENUM_DEFN( ACOHealthReason, PeerOff, "Remote ACR" ) \ ENUM_DEFN( ACOHealthReason, ProtActive, "AR Active" ) \ ENUM_DEFN( ACOHealthReason, ProtectionOpenBlocking, "Open Blocking" ) \ ENUM_DEFN( ACOHealthReason, ProtOn, "Prot Off" ) \ ENUM_DEFN( ACOHealthReason, ProtSettings, "Prot Settings" ) \ ENUM_DEFN( ACOHealthReason, SectionaliserEnabled, "Sectionaliser" ) \ ENUM_DEFN( ACOHealthReason, SingleTripleMode, "S/T Mode" ) \ ENUM_DEFN( ACOHealthReason, SwitchStatus, "OSM Status" ) \ ENUM_DEFN( ACOHealthReason, SyncEnabled, "Sync Enabled" ) \ ENUM_DEFN( ACOHealthReason, UVOff, "UV is Off" ) \ ENUM_DEFN( ACOHealthReason, UVTripMap, "UV3 AR Map" ) \ ENUM_DEFN( ACOHealthReason, VrcMode, "VRC Mode" ) \ ENUM_DEFN( SupplyState, Disabled, "NA" ) \ ENUM_DEFN( SupplyState, Healthy, "Healthy" ) \ ENUM_DEFN( SupplyState, Init, "Init" ) \ ENUM_DEFN( SupplyState, PickupHealthy, "Pickup Healthy" ) \ ENUM_DEFN( SupplyState, Unhealthy, "Unhealthy" ) \ ENUM_DEFN( LoadState, Dead, "Dead" ) \ ENUM_DEFN( LoadState, Disabled, "NA" ) \ ENUM_DEFN( LoadState, Init, "Init" ) \ ENUM_DEFN( LoadState, Undead, "Not Dead" ) \ ENUM_DEFN( MakeBeforeBreak, BreakBeforeMake, "Break Before Make" ) \ ENUM_DEFN( MakeBeforeBreak, MakeBeforeBreak, "Make Before Break" ) \ ENUM_DEFN( T101TimeStampSize, 3, "3 (24-bit)" ) \ ENUM_DEFN( T101TimeStampSize, 7, "7 (56-bit)" ) \ ENUM_DEFN( PhaseConfig, ABC, "ABC" ) \ ENUM_DEFN( PhaseConfig, ACB, "ACB" ) \ ENUM_DEFN( PhaseConfig, BAC, "BAC" ) \ ENUM_DEFN( PhaseConfig, BCA, "BCA" ) \ ENUM_DEFN( PhaseConfig, CAB, "CAB" ) \ ENUM_DEFN( PhaseConfig, CBA, "CBA" ) \ ENUM_DEFN( OscCaptureTime, 1Sec, "1" ) \ ENUM_DEFN( OscCaptureTime, 3Sec, "3" ) \ ENUM_DEFN( OscCaptureTime, HalfSec, "0.5" ) \ ENUM_DEFN( OscCapturePrior, 10Pct, "10" ) \ ENUM_DEFN( OscCapturePrior, 20Pct, "20" ) \ ENUM_DEFN( OscCapturePrior, 40Pct, "40" ) \ ENUM_DEFN( OscCapturePrior, 50Pct, "50" ) \ ENUM_DEFN( OscCapturePrior, 5Pct, "5" ) \ ENUM_DEFN( OscCapturePrior, 60Pct, "60" ) \ ENUM_DEFN( OscCapturePrior, 80Pct, "80" ) \ ENUM_DEFN( OscCapturePrior, None, "0" ) \ ENUM_DEFN( OscEvent, Alarm, "Alarm" ) \ ENUM_DEFN( OscEvent, Close, "Close" ) \ ENUM_DEFN( OscEvent, IOInputs, "IO Inputs" ) \ ENUM_DEFN( OscEvent, Logic, "Logic" ) \ ENUM_DEFN( OscEvent, Pickup, "Pickup" ) \ ENUM_DEFN( OscEvent, ProtOperation, "Prot Operation" ) \ ENUM_DEFN( OscEvent, Trip, "Trip" ) \ ENUM_DEFN( OscEvent, Unknown, "Unknown" ) \ ENUM_DEFN( HmiMsgboxData, ExtLoadOverload, "Please wait 1 minute" ) \ ENUM_DEFN( HmiMsgboxData, None, "" ) \ ENUM_DEFN( HmiMsgboxData, ReferEventLog, "Check event log" ) \ ENUM_DEFN( OscSimStatus, Failed, "Failed" ) \ ENUM_DEFN( OscSimStatus, Finished, "Finished" ) \ ENUM_DEFN( OscSimStatus, InvalidFormat, "InvalidFormat" ) \ ENUM_DEFN( OscSimStatus, NoFile, "NoFile" ) \ ENUM_DEFN( OscSimStatus, Running, "Running" ) \ ENUM_DEFN( OscSimStatus, Stopped, "Stopped" ) \ ENUM_DEFN( OscSimStatus, TooLarge, "TooLarge" ) \ ENUM_DEFN( OscSimStatus, UnrecogChannels, "UnrecogChannels" ) \ ENUM_DEFN( EventTitleId, AddUser, "Add New User" ) \ ENUM_DEFN( EventTitleId, AutoSync, "Auto-Sync" ) \ ENUM_DEFN( EventTitleId, BlockedByHLT, "Operation Blocked by HLT" ) \ ENUM_DEFN( EventTitleId, BlockPickup, "Block Pickup" ) \ ENUM_DEFN( EventTitleId, CanBusHighPower, "CAN Bus High Power" ) \ ENUM_DEFN( EventTitleId, ChangePassword, "Change Password" ) \ ENUM_DEFN( EventTitleId, CommsLogging, "Comms Logging" ) \ ENUM_DEFN( EventTitleId, Count, "Count" ) \ ENUM_DEFN( EventTitleId, DEPRCATED_EvArUInit, "" ) \ ENUM_DEFN( EventTitleId, DERECATED_EvArUClose, "" ) \ ENUM_DEFN( EventTitleId, Distance, "Distance" ) \ ENUM_DEFN( EventTitleId, DistanceToFault, "Distance to Fault" ) \ ENUM_DEFN( EventTitleId, EvACOState, "ACO" ) \ ENUM_DEFN( EventTitleId, EvAnalogError, "Analog Board Error" ) \ ENUM_DEFN( EventTitleId, EvArIClose, "Close" ) \ ENUM_DEFN( EventTitleId, EvArIInit, "AR Initiated" ) \ ENUM_DEFN( EventTitleId, EvArIRes, "Reset" ) \ ENUM_DEFN( EventTitleId, EvBatteryStatus, "Battery Status" ) \ ENUM_DEFN( EventTitleId, EvBatteryTestResult, "Battery Test" ) \ ENUM_DEFN( EventTitleId, EvCalib, "OSM Calibration Changed" ) \ ENUM_DEFN( EventTitleId, EvCANControllerError, "Can Bus Error" ) \ ENUM_DEFN( EventTitleId, EvCANControllerOverrun, "Can Bus Overrun" ) \ ENUM_DEFN( EventTitleId, EvCANMessagebufferoverflow, "CAN Buffer Overflow" ) \ ENUM_DEFN( EventTitleId, EvCBFBackupBlocked, "Block Backup Trip" ) \ ENUM_DEFN( EventTitleId, EvCBFBackupPickup, "Backup Trip Pickup" ) \ ENUM_DEFN( EventTitleId, EvCBFBackupTrip, "CBF Backup Trip" ) \ ENUM_DEFN( EventTitleId, EvCBFDefaultPickup, "CBF Pickup" ) \ ENUM_DEFN( EventTitleId, EvCBFMalfunction, "CBF Malfunction" ) \ ENUM_DEFN( EventTitleId, EvChangeBlocked, "Operation Blocked" ) \ ENUM_DEFN( EventTitleId, EvCloseBlocked, "Close Req. Blocked" ) \ ENUM_DEFN( EventTitleId, EvCloseBlocking, "Logic Close Blocking" ) \ ENUM_DEFN( EventTitleId, EvCloseRequestFailCode, "Close Request Fail" ) \ ENUM_DEFN( EventTitleId, EvClpOp, "T_ocl" ) \ ENUM_DEFN( EventTitleId, EvClpRec, "T_rec" ) \ ENUM_DEFN( EventTitleId, EvCommsError, "Comms Board Error" ) \ ENUM_DEFN( EventTitleId, EvCommsSettingsChanged, "Comms Settings Changed" ) \ ENUM_DEFN( EventTitleId, EvConnectionCompleted, "Connection Completed" ) \ ENUM_DEFN( EventTitleId, EvConnectionEstablished, "Connection Established" ) \ ENUM_DEFN( EventTitleId, EvDatabaseRestored, "Restored Database" ) \ ENUM_DEFN( EventTitleId, EvDataSave, "Data Save" ) \ ENUM_DEFN( EventTitleId, EvDisableWatchdog, "Watchdog Disabled" ) \ ENUM_DEFN( EventTitleId, EvDriverStatusNotReady, "SIM Caps Not Charged" ) \ ENUM_DEFN( EventTitleId, Event_Alarm, "Alarm" ) \ ENUM_DEFN( EventTitleId, Event_Coredump, "Core Dump Generated" ) \ ENUM_DEFN( EventTitleId, Event_Freeze, "Freeze" ) \ ENUM_DEFN( EventTitleId, Event_Pickup, "Pickup" ) \ ENUM_DEFN( EventTitleId, Event_Res, "Reset" ) \ ENUM_DEFN( EventTitleId, Event_SysErr, "System Message Logged" ) \ ENUM_DEFN( EventTitleId, Event_Trip, "Trip" ) \ ENUM_DEFN( EventTitleId, EvExtSupplyStatusOff, "External Load Off" ) \ ENUM_DEFN( EventTitleId, EvExtSupplyStatusOverLoad, "External Load Overload" ) \ ENUM_DEFN( EventTitleId, EvExtSupplyStatusReset, "External Supply Reset" ) \ ENUM_DEFN( EventTitleId, EvExtSupplyStatusShutDown, "External Load Shutdown" ) \ ENUM_DEFN( EventTitleId, EvFirmwareHardwareMismatch, "Firmware/Hardware Mismatch" ) \ ENUM_DEFN( EventTitleId, EvGPSMalfunction, "GPS Malfunction" ) \ ENUM_DEFN( EventTitleId, EvGPSUnplugged, "GPS Unplugged" ) \ ENUM_DEFN( EventTitleId, EvGroupSettings, "Group Settings Changed" ) \ ENUM_DEFN( EventTitleId, EvInvalidLogic, "Logic Exp Error" ) \ ENUM_DEFN( EventTitleId, EvInvalidSerialNumber, "Invalid Serial Number" ) \ ENUM_DEFN( EventTitleId, EvInvalidSwitchSerialNum, "Invalid OSM Type" ) \ ENUM_DEFN( EventTitleId, EvIo1Fault, "I/O1 Fault" ) \ ENUM_DEFN( EventTitleId, EvIo2Fault, "I/O2 Fault" ) \ ENUM_DEFN( EventTitleId, EvIoSerialNumberChange, "IO Module Change" ) \ ENUM_DEFN( EventTitleId, EvIoSettingsChanged, "I/O Settings Changed" ) \ ENUM_DEFN( EventTitleId, EvIrOp, "T_oir" ) \ ENUM_DEFN( EventTitleId, EvIrRec, "TrecIr" ) \ ENUM_DEFN( EventTitleId, EvLineSupplyStatus, "AC Status" ) \ ENUM_DEFN( EventTitleId, EvLoadedCrashSave, "Load Fast Save File" ) \ ENUM_DEFN( EventTitleId, EvLoadProfileChanged, "Load profile configuration changed" ) \ ENUM_DEFN( EventTitleId, EvLogicChannelOut, "Logic Channel Change" ) \ ENUM_DEFN( EventTitleId, EvLogicSGAStopped, "Logic/SGA Stopped" ) \ ENUM_DEFN( EventTitleId, EvLogicSGAThrottling, "Logic/SGA Throttling" ) \ ENUM_DEFN( EventTitleId, EvLogsRestored, "Restored Logs" ) \ ENUM_DEFN( EventTitleId, EvModuleFault, "SIM Module Fault" ) \ ENUM_DEFN( EventTitleId, EvModuleTypeIo1Connected, "IO1 Connected" ) \ ENUM_DEFN( EventTitleId, EvModuleTypeIo2Connected, "IO2 Connected" ) \ ENUM_DEFN( EventTitleId, EvModuleTypePcConnected, "PC Connected" ) \ ENUM_DEFN( EventTitleId, EvModuleTypePscDisconnected, "PSC Disconnected" ) \ ENUM_DEFN( EventTitleId, EvModuleTypeSimDisconnected, "SIM Disconnected" ) \ ENUM_DEFN( EventTitleId, EvOcEfSefDir, "Dir. Control Changed" ) \ ENUM_DEFN( EventTitleId, EvOpenBlocked, "Open Blocked" ) \ ENUM_DEFN( EventTitleId, EvOperationFail, "Capacitor Voltage Abnormal" ) \ ENUM_DEFN( EventTitleId, EvOscCapture, "Capture" ) \ ENUM_DEFN( EventTitleId, EvOSMActuatorFaultStatusCoilOc, "OSM Coil OC" ) \ ENUM_DEFN( EventTitleId, EvOsmActuatorFaultStatusCoilSc, "OSM Coil SC" ) \ ENUM_DEFN( EventTitleId, EvOSMActuatorFaultStatusQ503Failed, "SIM Driver Q503 Failed" ) \ ENUM_DEFN( EventTitleId, EvOsmLimitFaultStatusFault, "OSM Limit Switch Fault" ) \ ENUM_DEFN( EventTitleId, EvPanelCommsError, "Panel Comms Error" ) \ ENUM_DEFN( EventTitleId, EvPMURetransmission, "PMU Retransmission" ) \ ENUM_DEFN( EventTitleId, EvProtOpenBlocking, "Protection Open Blocking" ) \ ENUM_DEFN( EventTitleId, EvProtStatus, "Prot Status Changed" ) \ ENUM_DEFN( EventTitleId, EvPscFault, "PSC Module Fault" ) \ ENUM_DEFN( EventTitleId, EvRecoveryMode, "Entered Recovery Mode" ) \ ENUM_DEFN( EventTitleId, EvRelayCalibration, "Relay Calibration Status" ) \ ENUM_DEFN( EventTitleId, EvResetModule, "Reset SIM" ) \ ENUM_DEFN( EventTitleId, EvRestoreFailed, "Restore Failed" ) \ ENUM_DEFN( EventTitleId, EvRqstOpen, "Protection Operation" ) \ ENUM_DEFN( EventTitleId, EvRTCHwFault, "RTC Hardware Fault" ) \ ENUM_DEFN( EventTitleId, EvRTCStatus, "RTC Reset" ) \ ENUM_DEFN( EventTitleId, EvScadaRequiresRestart, "Protocol requires RC Restart" ) \ ENUM_DEFN( EventTitleId, EvSetTimeDate, "RTC Setting Change" ) \ ENUM_DEFN( EventTitleId, EvSimCalibration, "SIM Calibration Status" ) \ ENUM_DEFN( EventTitleId, EvSimClose, "OSM Closed" ) \ ENUM_DEFN( EventTitleId, EvSimCommsFail, "SIM Comms Fail" ) \ ENUM_DEFN( EventTitleId, EvSimOpen, "OSM Open" ) \ ENUM_DEFN( EventTitleId, EvSimSaveCalib, "SIM Calibration Changed" ) \ ENUM_DEFN( EventTitleId, EvSimSeq, "Simulation Run" ) \ ENUM_DEFN( EventTitleId, EvSimSeqStep, "Simulator Step" ) \ ENUM_DEFN( EventTitleId, EvSmpRestart, "Restart" ) \ ENUM_DEFN( EventTitleId, EvSmpShutdown, "Shutdown" ) \ ENUM_DEFN( EventTitleId, EvSmpStartup, "Power Restart" ) \ ENUM_DEFN( EventTitleId, EvSNTPSyncFail, "SNTP Unable to Sync" ) \ ENUM_DEFN( EventTitleId, EvSupplyUnhealthy, "Source Not Healthy" ) \ ENUM_DEFN( EventTitleId, EvSwgCalibration, "Switchgear Calibration Status" ) \ ENUM_DEFN( EventTitleId, EvSwitchDisconnectionStatus, "OSM Disconnected" ) \ ENUM_DEFN( EventTitleId, EvSwitchgearCalibration, "Switchgear Calibration Status" ) \ ENUM_DEFN( EventTitleId, EvSwitchHeaterControlOn, "Switch Heater Control On" ) \ ENUM_DEFN( EventTitleId, EvSwitchLockoutStatusMechaniclocked, "Mechanically Locked" ) \ ENUM_DEFN( EventTitleId, EvSwitchLogicallyLocked, "SW Locked" ) \ ENUM_DEFN( EventTitleId, EvSwitchManualTrip, "Manual Trip" ) \ ENUM_DEFN( EventTitleId, EvSwtichHeaterControlFailed, "Switch Heater Control Failed" ) \ ENUM_DEFN( EventTitleId, EvSystemSettingsChanged, "System Settings Changed" ) \ ENUM_DEFN( EventTitleId, EvTripCloseRequestStatusCloseFail, "Excessive Tc" ) \ ENUM_DEFN( EventTitleId, EvTripCloseRequestStatusTripFail, "Excessive To" ) \ ENUM_DEFN( EventTitleId, EvTripRequestFailCode, "Trip Request Fail" ) \ ENUM_DEFN( EventTitleId, EvTtaInit, "Time Addition" ) \ ENUM_DEFN( EventTitleId, EvUpdateFailed, "Update Failed" ) \ ENUM_DEFN( EventTitleId, EvUpdateInitiated, "Update Initiated" ) \ ENUM_DEFN( EventTitleId, EvUpdateOk, "Update Successful" ) \ ENUM_DEFN( EventTitleId, EvUPSPowerDown, "Critical Battery Level" ) \ ENUM_DEFN( EventTitleId, EvUPSStatusAcOff, "AC Off" ) \ ENUM_DEFN( EventTitleId, EvUPSStatusBatteryOff, "Battery Off" ) \ ENUM_DEFN( EventTitleId, EvUSBBluetooth, "USB Bluetooth Connect" ) \ ENUM_DEFN( EventTitleId, EvUSBGadget, "USB Gadget Connect" ) \ ENUM_DEFN( EventTitleId, EvUSBGPRS, "USB GPRS Connect" ) \ ENUM_DEFN( EventTitleId, EvUSBHostOff, "USB Host Power Off" ) \ ENUM_DEFN( EventTitleId, EvUSBLan, "USB LAN Connect" ) \ ENUM_DEFN( EventTitleId, EvUSBMismatched, "USB Mismatch" ) \ ENUM_DEFN( EventTitleId, EvUSBSerial, "USB Serial Connect" ) \ ENUM_DEFN( EventTitleId, EvUSBUnsupported, "USB Unsupported" ) \ ENUM_DEFN( EventTitleId, EvUSBWlan, "USB WLAN Connect" ) \ ENUM_DEFN( EventTitleId, EvVRCOp, "VRC Blocking" ) \ ENUM_DEFN( EventTitleId, EvZscInc, "ZSC" ) \ ENUM_DEFN( EventTitleId, FaultedLoopImpedance, "Faulted Loop Impedance" ) \ ENUM_DEFN( EventTitleId, FaultImpedance, "Fault Impedance" ) \ ENUM_DEFN( EventTitleId, GPSConnected, "GPS Connected" ) \ ENUM_DEFN( EventTitleId, GPSLocked, "GPS Locked" ) \ ENUM_DEFN( EventTitleId, GPSRestart, "GPS Restart" ) \ ENUM_DEFN( EventTitleId, GPSUpdateSysTime, "Clock updated" ) \ ENUM_DEFN( EventTitleId, IEC61499AppStatusEv, "SGA Res" ) \ ENUM_DEFN( EventTitleId, IEC61499Command, "SGA" ) \ ENUM_DEFN( EventTitleId, IEC61499FbootStatus, "SGA fboot Failed" ) \ ENUM_DEFN( EventTitleId, IEC61850DeleteCIDFile, "ICD/CID File Deleted" ) \ ENUM_DEFN( EventTitleId, IEC61850LoadCIDFile, "ICD/CID File Loading" ) \ ENUM_DEFN( EventTitleId, InhibitOV3, "Inhibit OV3" ) \ ENUM_DEFN( EventTitleId, LiveLoadBlocking, "LLB Blocking" ) \ ENUM_DEFN( EventTitleId, LoggerProcessFault, "Logger Process Fault" ) \ ENUM_DEFN( EventTitleId, LogRolloverIdRollover, "Log Id Rollover" ) \ ENUM_DEFN( EventTitleId, LSRMTimerActive, "T,LSRM" ) \ ENUM_DEFN( EventTitleId, MobileNetworkRestart, "Mobile Network Modem Restart" ) \ ENUM_DEFN( EventTitleId, NAN, "NAN" ) \ ENUM_DEFN( EventTitleId, Not_Used_EvSupplyStatus, "AC Status" ) \ ENUM_DEFN( EventTitleId, Not_Used_EvSwitchHeaterControlOff, "Switch Heater Control: Off" ) \ ENUM_DEFN( EventTitleId, Not_Used_EvUPSPowerUp, "UPS Power Up" ) \ ENUM_DEFN( EventTitleId, OperationBlocking, "Operation Blocking" ) \ ENUM_DEFN( EventTitleId, ProtocolSettingsChanged, "Protocol Settings Changed" ) \ ENUM_DEFN( EventTitleId, PscRunningMiniBootloader, "PSC In Minibootloader Mode" ) \ ENUM_DEFN( EventTitleId, RelayNotCalib, "Relay is not calibrated." ) \ ENUM_DEFN( EventTitleId, RemoveUser, "Remove User" ) \ ENUM_DEFN( EventTitleId, ResetBinaryFaultTargets, "Reset Binary Fault Targets" ) \ ENUM_DEFN( EventTitleId, ResetCredential, "Reset Credential files" ) \ ENUM_DEFN( EventTitleId, RoleBitMapUpdate, "Role bit-map update" ) \ ENUM_DEFN( EventTitleId, SectionaliseMismatch, "Sectionaliser mismatch" ) \ ENUM_DEFN( EventTitleId, SectionaliseMode, "Sectionaliser mode changed" ) \ ENUM_DEFN( EventTitleId, SeqAdvInc, "Sequence Advance" ) \ ENUM_DEFN( EventTitleId, SigCtrlBlockCloseOn, "Block Close" ) \ ENUM_DEFN( EventTitleId, SigCtrlHltOn, "Hot Line Tag On" ) \ ENUM_DEFN( EventTitleId, SigCtrlHltRqstReset, "HLT Forced Reset" ) \ ENUM_DEFN( EventTitleId, SigCtrlLogTest, "Test Mode" ) \ ENUM_DEFN( EventTitleId, SigCtrlRemoteOn, "Control Mode Is Set To Remote" ) \ ENUM_DEFN( EventTitleId, SigEftActivated, "MNT Exceeded" ) \ ENUM_DEFN( EventTitleId, SigIncorrectPhaseSeq, "Incorrect phase sequence" ) \ ENUM_DEFN( EventTitleId, SigLogicConfigIssue, "Logic Configuration Issue" ) \ ENUM_DEFN( EventTitleId, SigMalfCanBus, "CAN Bus Malfunction" ) \ ENUM_DEFN( EventTitleId, SigMalfComms, "Module Comms Error" ) \ ENUM_DEFN( EventTitleId, SigMalfIo1Comms, "I/O1 Comms Error" ) \ ENUM_DEFN( EventTitleId, SigMalfIo1Fault, "I/O1 Fault" ) \ ENUM_DEFN( EventTitleId, SigMalfIo2Comms, "I/O2 Comms Error" ) \ ENUM_DEFN( EventTitleId, SigMalfIo2Fault, "I/O2 Fault" ) \ ENUM_DEFN( EventTitleId, SigMalfOsm, "OSM Fault" ) \ ENUM_DEFN( EventTitleId, SigMalfPanelComms, "Panel Disconnected" ) \ ENUM_DEFN( EventTitleId, SigMalfPanelModule, "Panel Module Fault" ) \ ENUM_DEFN( EventTitleId, SigMalfRc10, "Controller Fault" ) \ ENUM_DEFN( EventTitleId, SigMalfRelay, "Relay Module Fault" ) \ ENUM_DEFN( EventTitleId, SigMalfSimComms, "SIM Comms Error" ) \ ENUM_DEFN( EventTitleId, SigStatusDialupFailed, "Dial-up Failed" ) \ ENUM_DEFN( EventTitleId, SigStatusDialupInitiated, "Dial-up Initiated" ) \ ENUM_DEFN( EventTitleId, SimAndOsmModelMismatch, "SIM and OSM Model Mismatch" ) \ ENUM_DEFN( EventTitleId, SIMCardStatus, "SIM Card Status" ) \ ENUM_DEFN( EventTitleId, SimDisconnected, "SIM Disconnected" ) \ ENUM_DEFN( EventTitleId, SimModuleFault, "SIM Module Fault" ) \ ENUM_DEFN( EventTitleId, SimNotCalib, "Sim is not Calibrated" ) \ ENUM_DEFN( EventTitleId, SimRunningMiniBootloader, "SIM in Minibootloader Mode" ) \ ENUM_DEFN( EventTitleId, SSTControl, "SST Control" ) \ ENUM_DEFN( EventTitleId, SwgNotCalibrated, "Switchgear is not calibrated" ) \ ENUM_DEFN( EventTitleId, SyncInvalidSingleTriple, "Invalid Auto-Sync Single Triple Cnfg" ) \ ENUM_DEFN( EventTitleId, UPSGpsShutdown, "GPS Shutdown" ) \ ENUM_DEFN( EventTitleId, UPSMobilenetworkReset, "Mobile Network Reset" ) \ ENUM_DEFN( EventTitleId, UPSMobilenetworkShutdown, "Mobile Network Shutdown" ) \ ENUM_DEFN( EventTitleId, UPSWlanReset, "Wi-Fi Reset" ) \ ENUM_DEFN( EventTitleId, UPSWlanShutdown, "Wi-Fi Shutdown" ) \ ENUM_DEFN( EventTitleId, USBOvercurrent, "USB Device Overcurrent" ) \ ENUM_DEFN( EventTitleId, USBOvercurrentReset, "USB Ports Overcurrent Reset" ) \ ENUM_DEFN( EventTitleId, UserCredentialbatchUpdate, "User Credential Batch Update" ) \ ENUM_DEFN( EventTitleId, VerifyUser, "Verify User" ) \ ENUM_DEFN( EventTitleId, VsagCloseBlocking, "UV4 Sag Blocking" ) \ ENUM_DEFN( EventTitleId, WLANError, "Wlan Error" ) \ ENUM_DEFN( EventTitleId, WLANFail, "Wlan Fail" ) \ ENUM_DEFN( EventTitleId, WlanRestart, "Wi-Fi Restart" ) \ ENUM_DEFN( EventTitleId, WrongControlMode, "Wrong Control Mode" ) \ ENUM_DEFN( HrmIndividual, Disable, "Disable" ) \ ENUM_DEFN( HrmIndividual, I10, "I10" ) \ ENUM_DEFN( HrmIndividual, I11, "I11" ) \ ENUM_DEFN( HrmIndividual, I12, "I12" ) \ ENUM_DEFN( HrmIndividual, I13, "I13" ) \ ENUM_DEFN( HrmIndividual, I14, "I14" ) \ ENUM_DEFN( HrmIndividual, I15, "I15" ) \ ENUM_DEFN( HrmIndividual, I2, "I2" ) \ ENUM_DEFN( HrmIndividual, I3, "I3" ) \ ENUM_DEFN( HrmIndividual, I4, "I4" ) \ ENUM_DEFN( HrmIndividual, I5, "I5" ) \ ENUM_DEFN( HrmIndividual, I6, "I6" ) \ ENUM_DEFN( HrmIndividual, I7, "I7" ) \ ENUM_DEFN( HrmIndividual, I8, "I8" ) \ ENUM_DEFN( HrmIndividual, I9, "I9" ) \ ENUM_DEFN( HrmIndividual, In10, "In10" ) \ ENUM_DEFN( HrmIndividual, In11, "In11" ) \ ENUM_DEFN( HrmIndividual, In12, "In12" ) \ ENUM_DEFN( HrmIndividual, In13, "In13" ) \ ENUM_DEFN( HrmIndividual, In14, "In14" ) \ ENUM_DEFN( HrmIndividual, In15, "In15" ) \ ENUM_DEFN( HrmIndividual, In2, "In2" ) \ ENUM_DEFN( HrmIndividual, In3, "In3" ) \ ENUM_DEFN( HrmIndividual, In4, "In4" ) \ ENUM_DEFN( HrmIndividual, In5, "In5" ) \ ENUM_DEFN( HrmIndividual, In6, "In6" ) \ ENUM_DEFN( HrmIndividual, In7, "In7" ) \ ENUM_DEFN( HrmIndividual, In8, "In8" ) \ ENUM_DEFN( HrmIndividual, In9, "In9" ) \ ENUM_DEFN( HrmIndividual, V10, "V10" ) \ ENUM_DEFN( HrmIndividual, V11, "V11" ) \ ENUM_DEFN( HrmIndividual, V12, "V12" ) \ ENUM_DEFN( HrmIndividual, V13, "V13" ) \ ENUM_DEFN( HrmIndividual, V14, "V14" ) \ ENUM_DEFN( HrmIndividual, V15, "V15" ) \ ENUM_DEFN( HrmIndividual, V2, "V2" ) \ ENUM_DEFN( HrmIndividual, V3, "V3" ) \ ENUM_DEFN( HrmIndividual, V4, "V4" ) \ ENUM_DEFN( HrmIndividual, V5, "V5" ) \ ENUM_DEFN( HrmIndividual, V6, "V6" ) \ ENUM_DEFN( HrmIndividual, V7, "V7" ) \ ENUM_DEFN( HrmIndividual, V8, "V8" ) \ ENUM_DEFN( HrmIndividual, V9, "V9" ) \ ENUM_DEFN( OscCaptureFormat, ComtradeAscii, "ASCII COMTRADE" ) \ ENUM_DEFN( OscCaptureFormat, ComtradeBinary, "BINARY COMTRADE" ) \ ENUM_DEFN( UpdateStep, CopyFiles, "Copying files" ) \ ENUM_DEFN( UpdateStep, None, "None" ) \ ENUM_DEFN( UpdateStep, UpdateComplete, "Update complete" ) \ ENUM_DEFN( UpdateStep, UpdateDbSchema, "Installing database schema" ) \ ENUM_DEFN( UpdateStep, UpdateGpio, "Installing GPIO firmware" ) \ ENUM_DEFN( UpdateStep, UpdateLanguage, "Installing language files" ) \ ENUM_DEFN( UpdateStep, UpdateMicrokernel, "Installing microkernel" ) \ ENUM_DEFN( UpdateStep, UpdatePanel, "Installing panel firmware" ) \ ENUM_DEFN( UpdateStep, UpdatePsc, "Installing PSC firmware" ) \ ENUM_DEFN( UpdateStep, UpdateRelay, "Installing relay firmware" ) \ ENUM_DEFN( UpdateStep, UpdateSIM, "Installing SIM firmware" ) \ ENUM_DEFN( UpdateStep, UpdateUboot, "Installing uboot" ) \ ENUM_DEFN( UpdateStep, ValidateFiles, "Validating files" ) \ ENUM_DEFN( SimExtSupplyStatus, Limited, "Limited" ) \ ENUM_DEFN( SimExtSupplyStatus, Off, "Off" ) \ ENUM_DEFN( SimExtSupplyStatus, On, "On" ) \ ENUM_DEFN( SimExtSupplyStatus, Overload, "Overload" ) \ ENUM_DEFN( SimExtSupplyStatus, Shutdown, "Shutdown" ) \ ENUM_DEFN( ScadaScaleRangeTable, AlternateScaling, "Alternate" ) \ ENUM_DEFN( ScadaScaleRangeTable, StandardScaling, "Standard" ) \ ENUM_DEFN( UsbDiscEjectResult, OK, "It is safe to remove the USB disc." ) \ ENUM_DEFN( UsbDiscEjectResult, TransferInProgress, "File transfer in progress." ) \ ENUM_DEFN( ScadaEventSource, Dnp3AnalogInput, "DNP3 Analog Input" ) \ ENUM_DEFN( ScadaEventSource, Dnp3BinaryCounter, "DNP3 Binary Counter" ) \ ENUM_DEFN( ScadaEventSource, Dnp3BinaryInput, "DNP3 Binary Input" ) \ ENUM_DEFN( ScadaEventSource, S101DoublePoint, "S101 Double Point (Binary Input)" ) \ ENUM_DEFN( ScadaEventSource, S101MeasuredValue, "S101 Measured Value (Analog Input)" ) \ ENUM_DEFN( ScadaEventSource, S101MonitoredIntegratedTotal, "S101 Monitored Integrated Total (Binary Counter)" ) \ ENUM_DEFN( ScadaEventSource, S101SinglePoint, "S101 Single Point (Binary Input)" ) \ ENUM_DEFN( ScadaEventSource, S61850AnalogIn, "S61850 Analog Input" ) \ ENUM_DEFN( ScadaEventSource, S61850BinaryDP, "s61850 Binary Double Point" ) \ ENUM_DEFN( ScadaEventSource, S61850BinarySP, "s61850 Binary Single Point" ) \ ENUM_DEFN( ScadaEventSource, S61850GseSubsDef, "Goose Subscription Definition" ) \ ENUM_DEFN( ExtDataId, LogEventSrc, "Log event source" ) \ ENUM_DEFN( ExtDataId, LogicProcDpId, "Logic Id" ) \ ENUM_DEFN( ExtDataId, StateType, "enum StateType" ) \ ENUM_DEFN( AutoOpenMode, Disabled, "Disabled" ) \ ENUM_DEFN( AutoOpenMode, PowerFlow, "Power Flow" ) \ ENUM_DEFN( AutoOpenMode, Timer, "Timer" ) \ ENUM_DEFN( Uv4VoltageType, Ph_Gnd, "Ph/Gnd" ) \ ENUM_DEFN( Uv4VoltageType, Ph_Ph, "Ph/Ph" ) \ ENUM_DEFN( Uv4Voltages, Abc, "ABC" ) \ ENUM_DEFN( Uv4Voltages, AbcRst, "ABC_RST" ) \ ENUM_DEFN( Uv4Voltages, Rst, "RST" ) \ ENUM_DEFN( SingleTripleMode, Trip1Lockout1, "1Ph Trip / 1Ph Lockout" ) \ ENUM_DEFN( SingleTripleMode, Trip1Lockout3, "1Ph Trip / 3Ph Lockout" ) \ ENUM_DEFN( SingleTripleMode, Trip3Lockout3, "3Ph Trip / 3Ph Lockout" ) \ ENUM_DEFN( OsmSwitchCount, 1Switch, "1" ) \ ENUM_DEFN( OsmSwitchCount, 3Switches, "3" ) \ ENUM_DEFN( BatteryTestResult, CheckBattery, "Check Battery" ) \ ENUM_DEFN( BatteryTestResult, Faulty, "Battery Test Circuit Fault" ) \ ENUM_DEFN( BatteryTestResult, NotPerformed, "Not Performed" ) \ ENUM_DEFN( BatteryTestResult, NotRunYet, "Battery Test Not Run Yet" ) \ ENUM_DEFN( BatteryTestResult, Passed, "Battery Test Passed" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, ACOff, "AC Off" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, BatteryOff, "Battery Off" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, NoReason, "No Reason Given" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, NotCharging, "Battery Being Discharged" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, NotSupported, "Not Supported" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, Resting, "Resting" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, Timeout, "Timeout" ) \ ENUM_DEFN( BatteryTestNotPerformedReason, VoltageTooLow, "Voltage Too Low" ) \ ENUM_DEFN( SingleTripleVoltageType, Ph_Gnd, "Ph/Gnd" ) \ ENUM_DEFN( SingleTripleVoltageType, U1, "U1" ) \ ENUM_DEFN( AbbrevStrId, EF, "EF" ) \ ENUM_DEFN( AbbrevStrId, NPS, "NPS" ) \ ENUM_DEFN( AbbrevStrId, OC, "OC" ) \ ENUM_DEFN( AbbrevStrId, SEF, "SEF" ) \ ENUM_DEFN( SystemStatus, ACOinitiated, ">> ACO initiated " ) \ ENUM_DEFN( SystemStatus, Blank, "" ) \ ENUM_DEFN( SystemStatus, DemoUnit, ">> Demo " ) \ ENUM_DEFN( SystemStatus, ProtectionInitiated, ">> Protection initiated " ) \ ENUM_DEFN( SystemStatus, Sectionaliser, "Sectionaliser " ) \ ENUM_DEFN( SystemStatus, SingleTriple, "Single Triple " ) \ ENUM_DEFN( SystemStatus, SingleTripleSectionaliser, "Single Triple Sectionaliser " ) \ ENUM_DEFN( SystemStatus, SynchronisationEnabled, ">> Synchronisation Enabled " ) \ ENUM_DEFN( SystemStatus, UpdateInProgress, ">> Update in progress " ) \ ENUM_DEFN( LockDynamic, Dynamic, "Dynamic" ) \ ENUM_DEFN( LockDynamic, Lock, "Lock" ) \ ENUM_DEFN( BatteryType, AGM, "AGM" ) \ ENUM_DEFN( BatteryType, GEL, "GEL" ) \ ENUM_DEFN( DNP3SAKeyUpdateVerificationMethod, SerialNumAndDNP3Address, "Serial number and DNP3 address" ) \ ENUM_DEFN( DNP3SAKeyUpdateVerificationMethod, SerialNumber, "SerialNumber" ) \ ENUM_DEFN( MACAlgorithm, HMAC_SHA1_10, "HMAC-SHA256/8" ) \ ENUM_DEFN( MACAlgorithm, HMAC_SHA1_4, "HMAC-SHA1/8" ) \ ENUM_DEFN( MACAlgorithm, HMAC_SHA1_8, "HMAC-SHA1/10" ) \ ENUM_DEFN( MACAlgorithm, HMAC_SHA256_16, "HMAC-SHA1/8" ) \ ENUM_DEFN( MACAlgorithm, HMAC_SHA256_8, "HMAC-SHA256/16" ) \ ENUM_DEFN( DNP3SAVersion, V2, "DNP3-SAv2" ) \ ENUM_DEFN( DNP3SAVersion, V5, "DNP3-SAv5" ) \ ENUM_DEFN( AESAlgorithm, AES128, "AES 128" ) \ ENUM_DEFN( AESAlgorithm, AES256, "AES 256" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, GetKey, "Find key" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, InstallFailed, "Install failed" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, InstallInProgress, "Install in progress" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, KeyFound, "Key found" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, KeyNotFound, "Key not found" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, NotStarted, "Not started" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, StartInstall, "Start install" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstallStep, Success, "Install succeeded" ) \ ENUM_DEFN( SecurityStatisticsObject121Enum, 32BitSecurityStatWithFlag, "Security statistic 32 bit with flag" ) \ ENUM_DEFN( SecurityStatisticsObject122Enum, 32BitSecurityStatWithFlag, "32-bit Security Statistic Change Event without Time" ) \ ENUM_DEFN( SecurityStatisticsObject122Enum, 32BitTimeSecurityStatWithFlag, "32-bit Security Statistic Change Event with Time" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstalledStatus, KeyInstalled, "Installed" ) \ ENUM_DEFN( DNP3SAUpdateKeyInstalledStatus, KeyNotFound, "Not found" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, FileFormatInvalid, "Invalid file format" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidDeviceSerialNumber, "Invalid relay serial number" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidDNP3Address, "Invalid DNP3 slave address" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidEnableAfterInstall, "Invalid enable DNP3-SA after install" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidFileFormatVersion, "Invalid file format version" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidFileVersion, "Invalid config. file version" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidKeyVersion, "Invalid update key version" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidUserId, "Invalid User number" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidUserRole, "Invalid user role" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, InvalidVerificationMethod, "Invalid verification method" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, None, "No Error" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, OpenFail, "Failed to open file" ) \ ENUM_DEFN( UsbDiscDNP3SAUpdateKeyFileError, TooManyFiles, "Too many files" ) \ ENUM_DEFN( IEC61499AppStatus, Running, "Running" ) \ ENUM_DEFN( IEC61499AppStatus, Stopped, "Stopped" ) \ ENUM_DEFN( IEC61499Command, IEC61499CmdDeleteFromNAND, "IEC61499 Delete FBOOT from NAND" ) \ ENUM_DEFN( IEC61499Command, IEC61499CmdNone, "IEC61499 Command - None" ) \ ENUM_DEFN( IEC61499Command, IEC61499CmdStagingToNAND, "IEC61499 Copy from Staging to NAND" ) \ ENUM_DEFN( IEC61499Command, IEC61499CmdStart, "IEC61499 Start Command" ) \ ENUM_DEFN( IEC61499Command, IEC61499CmdStop, "IEC61499 Stop Command" ) \ ENUM_DEFN( IEC61499Command, IEC61499CmdUSBToNAND, "IEC61499 Copy from USB to NAND" ) \ ENUM_DEFN( OperatingMode, AlarmSwitch, "Alarm Switch" ) \ ENUM_DEFN( OperatingMode, Recloser, "Recloser" ) \ ENUM_DEFN( OperatingMode, Sectionaliser, "Sectionaliser" ) \ ENUM_DEFN( OperatingMode, Switch, "Switch" ) \ ENUM_DEFN( LatchEnable, Latched, "Latched" ) \ ENUM_DEFN( LatchEnable, UnLatched, "Not Latched" ) \ ENUM_DEFN( DemoUnitMode, Disabled, "Disabled" ) \ ENUM_DEFN( DemoUnitMode, SingleTriple, "Single Triple" ) \ ENUM_DEFN( DemoUnitMode, Standard, "Standard" ) \ ENUM_DEFN( RemoteUpdateCommand, None, "None" ) \ ENUM_DEFN( RemoteUpdateCommand, Reset, "Reset" ) \ ENUM_DEFN( RemoteUpdateCommand, Update, "Update" ) \ ENUM_DEFN( RemoteUpdateCommand, Validate, "Validate" ) \ ENUM_DEFN( RemoteUpdateState, Blocked, "Blocked" ) \ ENUM_DEFN( RemoteUpdateState, Idle, "Idle" ) \ ENUM_DEFN( RemoteUpdateState, InProgress, "Update in progress" ) \ ENUM_DEFN( RemoteUpdateState, Validating, "Validating" ) \ ENUM_DEFN( IEC61499FBOOTChEv, IEC61499FBOOTChDel, "Deleted" ) \ ENUM_DEFN( IEC61499FBOOTChEv, IEC61499FBOOTChStage, "Installed" ) \ ENUM_DEFN( IEC61499FBOOTChEv, IEC61499FBOOTChUSB, "Installed" ) \ ENUM_DEFN( IEC61499FBOOTChEv, IEC61499FBOOTNoCh, "" ) \ ENUM_DEFN( CmsClientSupports, sw1ph, "1 phase switchgear" ) \ ENUM_DEFN( CmsClientSupports, sw3ph, "3 phase switchgear" ) \ ENUM_DEFN( CmsClientSupports, swST, "Single-Triple switchgear" ) \ ENUM_DEFN( IEC61499FBOOTStatus, Installed, "Installed" ) \ ENUM_DEFN( IEC61499FBOOTStatus, None, "None" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailCopy, "FailCopy" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailCopyCannotRead, "FailCopyCannotRead" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailCopyFileNotFound, "FailCopyFileNotFound" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailCopyInvalidFile, "FailCopyInvalidFile" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailCopyLargeFile, "FailCopyLargeFile" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailCopyNoResource, "FailCopyNoResource" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailDelete, "FailDelete" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailDeletePermission, "FailDeletePermission" ) \ ENUM_DEFN( IEC61499FBOOTOper, FailOverwrite, "FailOverwrite" ) \ ENUM_DEFN( IEC61499FBOOTOper, None, "None" ) \ ENUM_DEFN( IEC61499FBOOTOper, SuccessCopy, "SuccessCopy" ) \ ENUM_DEFN( IEC61499FBOOTOper, SuccessDelete, "SuccessDelete" ) \ ENUM_DEFN( IEC61499FBOOTOper, SuccessOverwrite, "SuccessOverwrite" ) \ ENUM_DEFN( SignalQuality, Excellent, "Excellent" ) \ ENUM_DEFN( SignalQuality, LowSignal, "Low Signal" ) \ ENUM_DEFN( SignalQuality, NoSignal, "Unknown" ) \ ENUM_DEFN( SignalQuality, VeryGood, "Very Good" ) \ ENUM_DEFN( GpsTimeSyncStatus, Locked, "Locked by GPS" ) \ ENUM_DEFN( GpsTimeSyncStatus, NoPPS, "No PPS Signal" ) \ ENUM_DEFN( GpsTimeSyncStatus, NoSync, "Syncing with GPS" ) \ ENUM_DEFN( WlanConnectionMode, AccessPoint, "Access Point" ) \ ENUM_DEFN( WlanConnectionMode, Client, "Client" ) \ ENUM_DEFN( MobileNetworkSimCardStatus, Detected, "Detected" ) \ ENUM_DEFN( MobileNetworkSimCardStatus, NotDetected, "Not Detected" ) \ ENUM_DEFN( MobileNetworkMode, GSM, "GSM(2G)" ) \ ENUM_DEFN( MobileNetworkMode, LTE_WCDMA_GSM, "LTE(4G)" ) \ ENUM_DEFN( MobileNetworkMode, Unknown, "Unknown" ) \ ENUM_DEFN( MobileNetworkMode, WCDMA, "WCDMA(3G)" ) \ ENUM_DEFN( MobileNetworkMode, WCDMA_GSM, "WCDMA(3G)" ) \ ENUM_DEFN( PhaseToSelection, PhaseToGround, "Phase to Ground" ) \ ENUM_DEFN( PhaseToSelection, PhaseToPhase, "Phase to Phase" ) \ ENUM_DEFN( BusAndLine, BusABCLineRST, "Bus: ABC & Line: RST" ) \ ENUM_DEFN( BusAndLine, BusRSTLineABC, "Bus: RST & Line: ABC" ) \ ENUM_DEFN( SyncLiveDeadMode, Disabled, "Disabled" ) \ ENUM_DEFN( SyncLiveDeadMode, DLLB, "DLLB" ) \ ENUM_DEFN( SyncLiveDeadMode, LLDB, "LLDB" ) \ ENUM_DEFN( SyncLiveDeadMode, LLDBOrDLLB, "LLDB or DLLB" ) \ ENUM_DEFN( SynchroniserStatus, Fail, "Fail" ) \ ENUM_DEFN( SynchroniserStatus, Ok, "OK" ) \ ENUM_DEFN( SynchroniserStatus, Released, "Released" ) \ ENUM_DEFN( SynchroniserStatus, Stopped, "Stopped" ) \ ENUM_DEFN( PowerFlowDirection, ABC_to_RST, "ABC to RST" ) \ ENUM_DEFN( PowerFlowDirection, RST_to_ABC, "RST to ABC" ) \ ENUM_DEFN( AutoRecloseStatus, InProgress, "In progress" ) \ ENUM_DEFN( AutoRecloseStatus, Ready, "Ready" ) \ ENUM_DEFN( AutoRecloseStatus, Successful, "AR successful" ) \ ENUM_DEFN( TripsToLockout, Four, "4" ) \ ENUM_DEFN( TripsToLockout, One, "1" ) \ ENUM_DEFN( TripsToLockout, Three, "3" ) \ ENUM_DEFN( TripsToLockout, Two, "2" ) \ ENUM_DEFN( YnOperationalMode, Bn, "Bn" ) \ ENUM_DEFN( YnOperationalMode, Gn, "Gn" ) \ ENUM_DEFN( YnOperationalMode, GnBn, "Gn & Bn" ) \ ENUM_DEFN( YnDirectionalMode, Bidirectional, "Bidirectional" ) \ ENUM_DEFN( YnDirectionalMode, Forward, "Forward" ) \ ENUM_DEFN( YnDirectionalMode, Reverse, "Reverse" ) \ ENUM_DEFN( HmiListSource, StrArray, "String Array" ) \ ENUM_DEFN( HmiListSource, StrArray2, "String Array" ) \ ENUM_DEFN( RelayModelName, RC10, "RC10" ) \ ENUM_DEFN( RelayModelName, RC15, "RC15" ) \ ENUM_DEFN( RelayModelName, RC20, "RC20" ) \ ENUM_DEFN( CmsSecurityLevel, Authenticated, "Authenticated" ) \ ENUM_DEFN( CmsSecurityLevel, AuthenticatedAndEncrypted, "Authenticated & Encrypted" ) \ ENUM_DEFN( CmsSecurityLevel, Disabled, "Disabled" ) \ ENUM_DEFN( ModemConnectStatus, Connected, "Connected" ) \ ENUM_DEFN( ModemConnectStatus, Connecting, "Connecting" ) \ ENUM_DEFN( ModemConnectStatus, DisabledByUPS, "Disabled by UPS" ) \ ENUM_DEFN( ModemConnectStatus, ModemError, "Modem Error" ) \ ENUM_DEFN( ModemConnectStatus, Restarting, "Restarting" ) \ ENUM_DEFN( ModemConnectStatus, Retry, "Retry" ) \ ENUM_DEFN( ModemConnectStatus, SettingNetworkError, "Setting/Network Error" ) \ ENUM_DEFN( ModemConnectStatus, SIMBlocked, "SIM Blocked" ) \ ENUM_DEFN( ModemConnectStatus, SIMBlockedPermanently, "SIM Blocked Permanently" ) \ ENUM_DEFN( ModemConnectStatus, SIMCardError, "SIM Card Error" ) \ ENUM_DEFN( ModemConnectStatus, SIMPinError, "SIM PIN Error" ) \ ENUM_DEFN( ModemConnectStatus, SIMPinRequired, "SIM PIN Required" ) \ ENUM_DEFN( ModemConnectStatus, SIMPukError, "SIM PUK Error" ) \ ENUM_DEFN( ModemConnectStatus, SIMPukRequired, "SIM PUK Required" ) \ ENUM_DEFN( S61850CIDUpdateStatus, DeletedCID, "CID deleted" ) \ ENUM_DEFN( S61850CIDUpdateStatus, Idle, "Idle" ) \ ENUM_DEFN( S61850CIDUpdateStatus, NewCID, "New CID" ) \ ENUM_DEFN( WLanTxPower, High, "High" ) \ ENUM_DEFN( WLanTxPower, Low, "Low" ) \ ENUM_DEFN( WLanTxPower, Medium, "Medium" ) \ ENUM_DEFN( WlanConnectStatus, AccessPointRunning, "Access Point Running" ) \ ENUM_DEFN( WlanConnectStatus, Booting, "Booting" ) \ ENUM_DEFN( WlanConnectStatus, ConnectedtoAP, "Connected to AP" ) \ ENUM_DEFN( WlanConnectStatus, DisabledByUPS, "Disabled by UPS" ) \ ENUM_DEFN( WlanConnectStatus, ErrorAPNotFound, "Error: AP Not Found" ) \ ENUM_DEFN( WlanConnectStatus, ErrorAPPasswordLength, "Error: AP Password Length" ) \ ENUM_DEFN( WlanConnectStatus, ErrorClientPasswordLength, "Error: Client Password Length" ) \ ENUM_DEFN( WlanConnectStatus, ErrorWrongClientPassword, "Error: Wrong Client Password" ) \ ENUM_DEFN( WlanConnectStatus, ErrorWrongPasswordLength, "Error: Wrong Password Length" ) \ ENUM_DEFN( WlanConnectStatus, Initialising, "Initialising" ) \ ENUM_DEFN( WlanConnectStatus, LoadingFirmware, "Loading Firmware" ) \ ENUM_DEFN( WlanConnectStatus, Starting, "Starting" ) \ ENUM_DEFN( WlanConnectStatus, WiFiFailRefertoEventLog, "Wi-Fi Fail: Refer to Event Log" ) \ ENUM_DEFN( UpdateInterlockStatus, LockedByCMS, "Locked by CMS" ) \ ENUM_DEFN( UpdateInterlockStatus, LockedByHMI, "Locked by HMI" ) \ ENUM_DEFN( UpdateInterlockStatus, Unlocked, "Unlocked" ) \ ENUM_DEFN( GPSStatus, Malfunction, "Malfunction" ) \ ENUM_DEFN( GPSStatus, Normal, "Normal" ) \ ENUM_DEFN( GPSStatus, Unplugged, "Unplugged" ) \ ENUM_DEFN( ResetCommand, None, "" ) \ ENUM_DEFN( ResetCommand, Reset, "Reset" ) \ ENUM_DEFN( AlertDisplayMode, Empty, "Empty" ) \ ENUM_DEFN( AlertDisplayMode, SingleColumn, "Single Column Display" ) \ ENUM_DEFN( AlertDisplayMode, TwoColumn, "Two Column Display" ) \ ENUM_DEFN( Signals, ACOff, "AC Off (On Battery Supply)" ) \ ENUM_DEFN( Signals, ACOUnhealthy, "ACO Unhealthy" ) \ ENUM_DEFN( Signals, BatteryChargerFault, "Battery Charger Fault" ) \ ENUM_DEFN( Signals, BatteryChargerStateLowPower, "Battery Charger State: Low Power" ) \ ENUM_DEFN( Signals, BatteryOff, "Battery Off (On AC Supply)" ) \ ENUM_DEFN( Signals, BatteryStatusAbnormal, "Battery Status Abnormal" ) \ ENUM_DEFN( Signals, CanBusHighPower, "CAN Bus High Power " ) \ ENUM_DEFN( Signals, CANBusMalfunction, "CAN Bus Malfunction" ) \ ENUM_DEFN( Signals, CANControllerError, "CANControllerError" ) \ ENUM_DEFN( Signals, CANControllerOverrun, "CANControllerOverrun" ) \ ENUM_DEFN( Signals, CANMessagebufferoverflow, "CANMessagebufferoverflow" ) \ ENUM_DEFN( Signals, CapacitorVoltageAbnormal, "Capacitor Voltage Abnormal" ) \ ENUM_DEFN( Signals, CBFBackupTrip, "CBF Backup Trip" ) \ ENUM_DEFN( Signals, CBFMalfunction, "CBF Malfunction" ) \ ENUM_DEFN( Signals, CheckBattery, "Check Battery" ) \ ENUM_DEFN( Signals, CoilPhAOC, "Coil Ph A OC" ) \ ENUM_DEFN( Signals, CoilPhASC, "Coil Ph A SC" ) \ ENUM_DEFN( Signals, CoilPhBOC, "Coil Ph B OC" ) \ ENUM_DEFN( Signals, CoilPhBSC, "Coil Ph B SC" ) \ ENUM_DEFN( Signals, CoilPhCOC, "Coil Ph C OC" ) \ ENUM_DEFN( Signals, CoilPhCSC, "Coil Ph C SC" ) \ ENUM_DEFN( Signals, ControllerFault, "Controller Fault" ) \ ENUM_DEFN( Signals, ControllerModuleFault, "Controller Module Fault" ) \ ENUM_DEFN( Signals, CorruptedPartition, "Corrupted Partition" ) \ ENUM_DEFN( Signals, CriticalBatteryLevel, "Critical Battery Level" ) \ ENUM_DEFN( Signals, DialupFailed, "Dial-up Failed" ) \ ENUM_DEFN( Signals, DisconnectedPhA, "Disconnected Ph A" ) \ ENUM_DEFN( Signals, DisconnectedPhB, "Disconnected Ph B" ) \ ENUM_DEFN( Signals, DisconnectedPhC, "Disconnected Ph C" ) \ ENUM_DEFN( Signals, ExcessiveTc, "Excessive Tc" ) \ ENUM_DEFN( Signals, ExcessiveTcPhA, "Excessive Tc Ph A" ) \ ENUM_DEFN( Signals, ExcessiveTcPhB, "Excessive Tc Ph B" ) \ ENUM_DEFN( Signals, ExcessiveTcPhC, "Excessive Tc Ph C" ) \ ENUM_DEFN( Signals, ExcessiveTo, "Excessive To" ) \ ENUM_DEFN( Signals, ExcessiveToPhA, "Excessive To Ph A" ) \ ENUM_DEFN( Signals, ExcessiveToPhB, "Excessive To Ph B" ) \ ENUM_DEFN( Signals, ExcessiveToPhC, "Excessive To Ph C" ) \ ENUM_DEFN( Signals, ExternalLoadOverload, "External Load Overload" ) \ ENUM_DEFN( Signals, FirmwareHardwareMismatch, "Firmware/Hardware Mismatch" ) \ ENUM_DEFN( Signals, GPIOMinibootloaderMode, "GPIO in Minibootloader Mode" ) \ ENUM_DEFN( Signals, GPSEnabledUnplugged, "GPS is enabled and unplugged" ) \ ENUM_DEFN( Signals, GPSMalfunction, "GPS Malfunction" ) \ ENUM_DEFN( Signals, HotLineTagOn, "Hot Line Tag On" ) \ ENUM_DEFN( Signals, IncorrectDBValuesLoaded, "Incorrect DB Values Loaded" ) \ ENUM_DEFN( Signals, IncorrectPhaseSequence, "Incorrect Phase Sequence" ) \ ENUM_DEFN( Signals, InvalidSingleTripleConfigAutoSync, "Invalid Auto-Sync Single Triple Cnfg" ) \ ENUM_DEFN( Signals, IO1CommsError, "I/O1 Comms Error" ) \ ENUM_DEFN( Signals, IO1Fault, "I/O1 Fault" ) \ ENUM_DEFN( Signals, IO2CommsError, "I/O2 Comms Error" ) \ ENUM_DEFN( Signals, IO2Fault, "I/O2 Fault" ) \ ENUM_DEFN( Signals, LimitSwitchFaultPhA, "Limit Switch Fault Ph A" ) \ ENUM_DEFN( Signals, LimitSwitchFaultPhB, "Limit Switch Fault Ph B" ) \ ENUM_DEFN( Signals, LimitSwitchFaultPhC, "Limit Switch Fault Ph C" ) \ ENUM_DEFN( Signals, LineSupplyStatusAbnormal, "Line Supply Status Abnormal" ) \ ENUM_DEFN( Signals, LogicalBlockClose, "Logical Block Close" ) \ ENUM_DEFN( Signals, LogicConfigurationIssue, "Logic Configuration Issue" ) \ ENUM_DEFN( Signals, LogicSGAStopped, "Logic/SGA Stopped" ) \ ENUM_DEFN( Signals, LogicSGAThrottling, "Logic/SGA Throttling" ) \ ENUM_DEFN( Signals, Malfunction, "Malfunction" ) \ ENUM_DEFN( Signals, MechanicallyLocked, "Mechanically Locked" ) \ ENUM_DEFN( Signals, MechanicallyLockedPhA, "Mechanically Locked Ph A" ) \ ENUM_DEFN( Signals, MechanicallyLockedPhB, "Mechanically Locked Ph B" ) \ ENUM_DEFN( Signals, MechanicallyLockedPhC, "Mechanically Locked Ph C" ) \ ENUM_DEFN( Signals, ModuleCommsError, "Module Comms Error" ) \ ENUM_DEFN( Signals, OSMCoilOC, "OSM Coil OC" ) \ ENUM_DEFN( Signals, OSMCoilSC, "OSM Coil SC" ) \ ENUM_DEFN( Signals, OSMDisconnected, "OSM Disconnected" ) \ ENUM_DEFN( Signals, OSMFault, "OSM Fault" ) \ ENUM_DEFN( Signals, OSMLimitSwitchFault, "OSM Limit Switch Fault" ) \ ENUM_DEFN( Signals, OSMPositionStatusUnavailable, "OSM Position Status Unavailable" ) \ ENUM_DEFN( Signals, PanelCommsError, "Panel Comms Error" ) \ ENUM_DEFN( Signals, PanelModuleFault, "Panel Module Fault" ) \ ENUM_DEFN( Signals, PeerCommsFailed, "Peer Comms Failed" ) \ ENUM_DEFN( Signals, PscDisconnected, "PSC Disconnected" ) \ ENUM_DEFN( Signals, PscModuleFault, "PSC Module Fault " ) \ ENUM_DEFN( Signals, PscRunningMiniBootloader, "PSC in Mini Bootloader Mode" ) \ ENUM_DEFN( Signals, RelayModuleFault, "Relay Module Fault" ) \ ENUM_DEFN( Signals, RLM20UpgradeFailure, "RLM-20 Upgrade Failure" ) \ ENUM_DEFN( Signals, RTCHardwareFault, "RTC Hardware Fault" ) \ ENUM_DEFN( Signals, ScadaRestartReq, "SCADA Config requires RC restart" ) \ ENUM_DEFN( Signals, SectionaliserConfigMismatch, "Sectionaliser configuration mismatch" ) \ ENUM_DEFN( Signals, SGAFbootFailed, "SGA fboot Failed" ) \ ENUM_DEFN( Signals, SigMalfAnalogBoard, "Analog Board Communication Error" ) \ ENUM_DEFN( Signals, SimAndOsmModelMismatch, "SIM does not match OSM model number" ) \ ENUM_DEFN( Signals, SIMCapsNotCharged, "SIM Caps Not Charged" ) \ ENUM_DEFN( Signals, SimCardBlocked, "SIM Card Blocked, SIM PUK Required" ) \ ENUM_DEFN( Signals, SimCardBlockedPermanently, "SIM Card Blocked Permanently" ) \ ENUM_DEFN( Signals, SIMCardError, "SIM Card Error" ) \ ENUM_DEFN( Signals, SimCardPinError, "SIM Card PIN Error" ) \ ENUM_DEFN( Signals, SimCardPinRequired, "SIM Card PIN Required" ) \ ENUM_DEFN( Signals, SimCardPukError, "SIM Card PUK Error" ) \ ENUM_DEFN( Signals, SIMCircuitFaulty, "Battery Test Circuit Fault" ) \ ENUM_DEFN( Signals, SIMCommsError, "SIM Comms Error" ) \ ENUM_DEFN( Signals, SIMCommsFail, "SIM Comms Fail" ) \ ENUM_DEFN( Signals, SIMDisconnected, "SIM Disconnected" ) \ ENUM_DEFN( Signals, SIMMinibootloaderMode, "SIM in Minibootloader Mode" ) \ ENUM_DEFN( Signals, SIMModuleFault, "SIM Module Fault" ) \ ENUM_DEFN( Signals, SIMNotCalibrated, "SIM Not Calibrated" ) \ ENUM_DEFN( Signals, SNTPUnableToSync, "SNTP Unable to Sync" ) \ ENUM_DEFN( Signals, SourceNotHealthy, "Source Not Healthy" ) \ ENUM_DEFN( Signals, SWLockedPhA, "SW Locked Ph A" ) \ ENUM_DEFN( Signals, SWLockedPhB, "SW Locked Ph B" ) \ ENUM_DEFN( Signals, SWLockedPhC, "SW Locked Ph C" ) \ ENUM_DEFN( Signals, UpdateFailed, "Update Failed" ) \ ENUM_DEFN( Signals, UpdateReverted, "Update Reverted" ) \ ENUM_DEFN( Signals, UpdateSettingsLogsFail, "Update Settings or Logs Fail" ) \ ENUM_DEFN( Signals, USBHostOff, "USB Host Off" ) \ ENUM_DEFN( Signals, USBMismatched, "USB Mismatched" ) \ ENUM_DEFN( Signals, UsbOvercurrent, "USB Overcurrent" ) \ ENUM_DEFN( Signals, USBUnsupported, "USB Unsupported" ) \ ENUM_DEFN( Signals, WarningSignals, "Warning Signals" ) \ ENUM_DEFN( CommsPortHmi, LAN, "LAN" ) \ ENUM_DEFN( CommsPortHmi, RS232, "RS232" ) \ ENUM_DEFN( CommsPortHmi, RS232P, "RS232P" ) \ ENUM_DEFN( CommsPortHmi, USBA, "USBA" ) \ ENUM_DEFN( CommsPortHmi, USBB, "USBB" ) \ ENUM_DEFN( CommsPortHmi, USBC, "USBC" ) \ ENUM_DEFN( CommsPortHmiGadget, RS232, "RS232" ) \ ENUM_DEFN( CommsPortHmiGadget, RS232P, "RS232P" ) \ ENUM_DEFN( CommsPortHmiGadget, USB_L, "USB-L" ) \ ENUM_DEFN( CommsPortHmiGadget, USBA, "USBA" ) \ ENUM_DEFN( CommsPortHmiGadget, USBB, "USBB" ) \ ENUM_DEFN( CommsPortHmiGadget, USBC, "USBC" ) \ ENUM_DEFN( CommsPortHmiGadget, USBC2, "USBC2" ) \ ENUM_DEFN( CommsPortHmiNoLAN, RS232, "RS232" ) \ ENUM_DEFN( CommsPortHmiNoLAN, RS232P, "RS232P" ) \ ENUM_DEFN( CommsPortHmiNoLAN, USBA, "USBA" ) \ ENUM_DEFN( CommsPortHmiNoLAN, USBB, "USBB" ) \ ENUM_DEFN( CommsPortHmiNoLAN, USBC, "USBC" ) \ ENUM_DEFN( HrmIndividualSinglePhase, Disable, "Disable" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I10, "I10" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I11, "I11" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I12, "I12" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I13, "I13" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I14, "I14" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I15, "I15" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I2, "I2" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I3, "I3" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I4, "I4" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I5, "I5" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I6, "I6" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I7, "I7" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I8, "I8" ) \ ENUM_DEFN( HrmIndividualSinglePhase, I9, "I9" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V10, "V10" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V11, "V11" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V12, "V12" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V13, "V13" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V14, "V14" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V15, "V15" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V2, "V2" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V3, "V3" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V4, "V4" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V5, "V5" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V6, "V6" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V7, "V7" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V8, "V8" ) \ ENUM_DEFN( HrmIndividualSinglePhase, V9, "V9" ) \ ENUM_DEFN( Uv4VoltageTypeSinglePhase, PhGnd, "Ph/Gnd" ) \ ENUM_DEFN( WlanPortConfigType, Disabled, "Disabled" ) \ ENUM_DEFN( WlanPortConfigType, WLAN, "WLAN" ) \ ENUM_DEFN( MobileNetworkPortConfigType, Disabled, "Disabled" ) \ ENUM_DEFN( MobileNetworkPortConfigType, MobileNetworkModem, "Mobile Network Modem" ) \ ENUM_DEFN( CommsPortHmiNoUSBC, LAN, "LAN" ) \ ENUM_DEFN( CommsPortHmiNoUSBC, RS232, "RS232" ) \ ENUM_DEFN( CommsPortHmiNoUSBC, RS232P, "RS232P" ) \ ENUM_DEFN( CommsPortHmiNoUSBC, USBA, "USBA" ) \ ENUM_DEFN( CommsPortHmiNoUSBC, USBB, "USBB" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI, LAN, "LAN" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI, RS232, "RS232" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI, RS232P, "RS232P" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI, USBA, "USBA" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI, USBB, "USBB" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI, WLAN, "WLAN" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI4G, LAN, "LAN" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI4G, MOBILENETWORK, "MOBILENETWORK" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI4G, RS232, "RS232" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI4G, RS232P, "RS232P" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI4G, USBA, "USBA" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI4G, USBB, "USBB" ) \ ENUM_DEFN( CommsPortHmiNoUSBCWIFI4G, WLAN, "WLAN" ) \ ENUM_DEFN( CommsPortLANSetREL01, USBA, "USBA" ) \ ENUM_DEFN( CommsPortLANSetREL01, USBB, "USBB" ) \ ENUM_DEFN( CommsPortLANSetREL01, USBC, "USBC" ) \ ENUM_DEFN( CommsPortLANSetREL02, LAN, "LAN" ) \ ENUM_DEFN( CommsPortLANSetREL02, USBA, "USBA" ) \ ENUM_DEFN( CommsPortLANSetREL02, USBB, "USBB" ) \ ENUM_DEFN( CommsPortLANSetREL02, USBC, "USBC" ) \ ENUM_DEFN( CommsPortLANSetREL03, LAN, "LAN" ) \ ENUM_DEFN( CommsPortLANSetREL03, USBA, "USBA" ) \ ENUM_DEFN( CommsPortLANSetREL03, USBB, "USBB" ) \ ENUM_DEFN( CommsPortLANSetREL15WLAN, LAN, "LAN" ) \ ENUM_DEFN( CommsPortLANSetREL15WLAN, USBA, "USBA" ) \ ENUM_DEFN( CommsPortLANSetREL15WLAN, USBB, "USBB" ) \ ENUM_DEFN( CommsPortLANSetREL15WLAN, WLAN, "WLAN" ) \ ENUM_DEFN( CommsPortLANSetREL15WWAN, LAN, "LAN" ) \ ENUM_DEFN( CommsPortLANSetREL15WWAN, MOBILENETWORK, "MOBILENETWORK" ) \ ENUM_DEFN( CommsPortLANSetREL15WWAN, USBA, "USBA" ) \ ENUM_DEFN( CommsPortLANSetREL15WWAN, USBB, "USBB" ) \ ENUM_DEFN( CommsPortLANSetREL15WWAN, WLAN, "WLAN" ) \ ENUM_DEFN( FaultLocFaultType, AB, "AB" ) \ ENUM_DEFN( FaultLocFaultType, ABC, "ABC" ) \ ENUM_DEFN( FaultLocFaultType, ABCE, "ABCE" ) \ ENUM_DEFN( FaultLocFaultType, ABE, "ABE" ) \ ENUM_DEFN( FaultLocFaultType, AE, "AE" ) \ ENUM_DEFN( FaultLocFaultType, BC, "BC" ) \ ENUM_DEFN( FaultLocFaultType, BCE, "BCE" ) \ ENUM_DEFN( FaultLocFaultType, BE, "BE" ) \ ENUM_DEFN( FaultLocFaultType, CA, "CA" ) \ ENUM_DEFN( FaultLocFaultType, CAE, "CAE" ) \ ENUM_DEFN( FaultLocFaultType, CE, "CE" ) \ ENUM_DEFN( FaultLocFaultType, None, "None" ) \ ENUM_DEFN( TimeUnit, min, "min" ) \ ENUM_DEFN( ScadaProtocolLoadedStatus, Ready, "Ready" ) \ ENUM_DEFN( ScadaProtocolLoadedStatus, RestartReq, "Controller Restart Req" ) \ ENUM_DEFN( SWModel, REL_01, "REL-01" ) \ ENUM_DEFN( SWModel, REL_02, "REL-02" ) \ ENUM_DEFN( SWModel, REL_03, "" ) \ ENUM_DEFN( SWModel, REL_04, "" ) \ ENUM_DEFN( SWModel, REL_15, "REL-15" ) \ ENUM_DEFN( SWModel, REL_20, "REL-20" ) \ ENUM_DEFN( NeutralPolarisation, I0, "In" ) \ ENUM_DEFN( NeutralPolarisation, I0CosTheta, "In cos θ" ) \ ENUM_DEFN( NeutralPolarisation, I0SinTheta, "In sin θ" ) \ ENUM_DEFN( TimeSyncStatus, CMS, "CMS" ) \ ENUM_DEFN( TimeSyncStatus, Internal, "Internal" ) \ ENUM_DEFN( TimeSyncStatus, LockedByGPS, "Locked By GPS" ) \ ENUM_DEFN( TimeSyncStatus, SCADA, "SCADA" ) \ ENUM_DEFN( TimeSyncStatus, SyncingWithGPS, "Syncing With GPS" ) \ ENUM_DEFN( TimeSyncStatus, SyncSNTPIPv6Serv1, "SNTP IPv6 Server 1" ) \ ENUM_DEFN( TimeSyncStatus, SyncSNTPIPv6Serv2, "SNTP IPv6 Server 2" ) \ ENUM_DEFN( TimeSyncStatus, SyncSNTPServ1, "SNTP IPv4 Server 1" ) \ ENUM_DEFN( TimeSyncStatus, SyncSNTPServ2, "SNTP IPv4 Server 2" ) \ ENUM_DEFN( IpVersion, Disabled, "None" ) \ ENUM_DEFN( IpVersion, IPv4, "IPv4" ) \ ENUM_DEFN( IpVersion, IPv4_IPv6, "IPv4/IPv6" ) \ ENUM_DEFN( IpVersion, IPv6, "IPv6" ) \ ENUM_DEFN( SDCardStatus, Eject, "Syncing Filesystem" ) \ ENUM_DEFN( SDCardStatus, NoCard, "No Card" ) \ ENUM_DEFN( SDCardStatus, Ready, "Ready" ) \ ENUM_DEFN( SDCardStatus, Unformatted, "Unformatted" ) \ ENUM_DEFN( OscSamplesPerCycle, Samples128, "128" ) \ ENUM_DEFN( OscSamplesPerCycle, Samples256, "256" ) \ ENUM_DEFN( OscSamplesPerCycle, Samples32, "32" ) \ ENUM_DEFN( OscCaptureTimeExt, Sec_0_5, "0.5" ) \ ENUM_DEFN( OscCaptureTimeExt, Sec_1, "1" ) \ ENUM_DEFN( OscCaptureTimeExt, Sec_10, "10" ) \ ENUM_DEFN( OscCaptureTimeExt, Sec_20, "20" ) \ ENUM_DEFN( OscCaptureTimeExt, Sec_3, "3" ) \ ENUM_DEFN( OscCaptureTimeExt, Sec_30, "30" ) \ ENUM_DEFN( OscCaptureTimeExt, Sec_5, "5" ) \ ENUM_DEFN( HrmIndividualExt, Disable, "Disable" ) \ ENUM_DEFN( HrmIndividualExt, I10, "I10" ) \ ENUM_DEFN( HrmIndividualExt, I11, "I11" ) \ ENUM_DEFN( HrmIndividualExt, I12, "I12" ) \ ENUM_DEFN( HrmIndividualExt, I13, "I13" ) \ ENUM_DEFN( HrmIndividualExt, I14, "I14" ) \ ENUM_DEFN( HrmIndividualExt, I15, "I15" ) \ ENUM_DEFN( HrmIndividualExt, I16, "I16" ) \ ENUM_DEFN( HrmIndividualExt, I17, "I17" ) \ ENUM_DEFN( HrmIndividualExt, I18, "I18" ) \ ENUM_DEFN( HrmIndividualExt, I19, "I19" ) \ ENUM_DEFN( HrmIndividualExt, I2, "I2" ) \ ENUM_DEFN( HrmIndividualExt, I20, "I20" ) \ ENUM_DEFN( HrmIndividualExt, I21, "I21" ) \ ENUM_DEFN( HrmIndividualExt, I22, "I22" ) \ ENUM_DEFN( HrmIndividualExt, I23, "I23" ) \ ENUM_DEFN( HrmIndividualExt, I24, "I24" ) \ ENUM_DEFN( HrmIndividualExt, I25, "I25" ) \ ENUM_DEFN( HrmIndividualExt, I26, "I26" ) \ ENUM_DEFN( HrmIndividualExt, I27, "I27" ) \ ENUM_DEFN( HrmIndividualExt, I28, "I28" ) \ ENUM_DEFN( HrmIndividualExt, I29, "I29" ) \ ENUM_DEFN( HrmIndividualExt, I3, "I3" ) \ ENUM_DEFN( HrmIndividualExt, I30, "I30" ) \ ENUM_DEFN( HrmIndividualExt, I31, "I31" ) \ ENUM_DEFN( HrmIndividualExt, I32, "I32" ) \ ENUM_DEFN( HrmIndividualExt, I33, "I33" ) \ ENUM_DEFN( HrmIndividualExt, I34, "I34" ) \ ENUM_DEFN( HrmIndividualExt, I35, "I35" ) \ ENUM_DEFN( HrmIndividualExt, I36, "I36" ) \ ENUM_DEFN( HrmIndividualExt, I37, "I37" ) \ ENUM_DEFN( HrmIndividualExt, I38, "I38" ) \ ENUM_DEFN( HrmIndividualExt, I39, "I39" ) \ ENUM_DEFN( HrmIndividualExt, I4, "I4" ) \ ENUM_DEFN( HrmIndividualExt, I40, "I40" ) \ ENUM_DEFN( HrmIndividualExt, I41, "I41" ) \ ENUM_DEFN( HrmIndividualExt, I42, "I42" ) \ ENUM_DEFN( HrmIndividualExt, I43, "I43" ) \ ENUM_DEFN( HrmIndividualExt, I44, "I44" ) \ ENUM_DEFN( HrmIndividualExt, I45, "I45" ) \ ENUM_DEFN( HrmIndividualExt, I46, "I46" ) \ ENUM_DEFN( HrmIndividualExt, I47, "I47" ) \ ENUM_DEFN( HrmIndividualExt, I48, "I48" ) \ ENUM_DEFN( HrmIndividualExt, I49, "I49" ) \ ENUM_DEFN( HrmIndividualExt, I5, "I5" ) \ ENUM_DEFN( HrmIndividualExt, I50, "I50" ) \ ENUM_DEFN( HrmIndividualExt, I51, "I51" ) \ ENUM_DEFN( HrmIndividualExt, I52, "I52" ) \ ENUM_DEFN( HrmIndividualExt, I53, "I53" ) \ ENUM_DEFN( HrmIndividualExt, I54, "I54" ) \ ENUM_DEFN( HrmIndividualExt, I55, "I55" ) \ ENUM_DEFN( HrmIndividualExt, I56, "I56" ) \ ENUM_DEFN( HrmIndividualExt, I57, "I57" ) \ ENUM_DEFN( HrmIndividualExt, I58, "I58" ) \ ENUM_DEFN( HrmIndividualExt, I59, "I59" ) \ ENUM_DEFN( HrmIndividualExt, I6, "I6" ) \ ENUM_DEFN( HrmIndividualExt, I60, "I60" ) \ ENUM_DEFN( HrmIndividualExt, I61, "I61" ) \ ENUM_DEFN( HrmIndividualExt, I62, "I62" ) \ ENUM_DEFN( HrmIndividualExt, I63, "I63" ) \ ENUM_DEFN( HrmIndividualExt, I7, "I7" ) \ ENUM_DEFN( HrmIndividualExt, I8, "I8" ) \ ENUM_DEFN( HrmIndividualExt, I9, "I9" ) \ ENUM_DEFN( HrmIndividualExt, In10, "In10" ) \ ENUM_DEFN( HrmIndividualExt, In11, "In11" ) \ ENUM_DEFN( HrmIndividualExt, In12, "In12" ) \ ENUM_DEFN( HrmIndividualExt, In13, "In13" ) \ ENUM_DEFN( HrmIndividualExt, In14, "In14" ) \ ENUM_DEFN( HrmIndividualExt, In15, "In15" ) \ ENUM_DEFN( HrmIndividualExt, In16, "In16" ) \ ENUM_DEFN( HrmIndividualExt, In17, "In17" ) \ ENUM_DEFN( HrmIndividualExt, In18, "In18" ) \ ENUM_DEFN( HrmIndividualExt, In19, "In19" ) \ ENUM_DEFN( HrmIndividualExt, In2, "In2" ) \ ENUM_DEFN( HrmIndividualExt, In20, "In20" ) \ ENUM_DEFN( HrmIndividualExt, In21, "In21" ) \ ENUM_DEFN( HrmIndividualExt, In22, "In22" ) \ ENUM_DEFN( HrmIndividualExt, In23, "In23" ) \ ENUM_DEFN( HrmIndividualExt, In24, "In24" ) \ ENUM_DEFN( HrmIndividualExt, In25, "In25" ) \ ENUM_DEFN( HrmIndividualExt, In26, "In26" ) \ ENUM_DEFN( HrmIndividualExt, In27, "In27" ) \ ENUM_DEFN( HrmIndividualExt, In28, "In28" ) \ ENUM_DEFN( HrmIndividualExt, In29, "In29" ) \ ENUM_DEFN( HrmIndividualExt, In3, "In3" ) \ ENUM_DEFN( HrmIndividualExt, In30, "In30" ) \ ENUM_DEFN( HrmIndividualExt, In31, "In31" ) \ ENUM_DEFN( HrmIndividualExt, In32, "In32" ) \ ENUM_DEFN( HrmIndividualExt, In33, "In33" ) \ ENUM_DEFN( HrmIndividualExt, In34, "In34" ) \ ENUM_DEFN( HrmIndividualExt, In35, "In35" ) \ ENUM_DEFN( HrmIndividualExt, In36, "In36" ) \ ENUM_DEFN( HrmIndividualExt, In37, "In37" ) \ ENUM_DEFN( HrmIndividualExt, In38, "In38" ) \ ENUM_DEFN( HrmIndividualExt, In39, "In39" ) \ ENUM_DEFN( HrmIndividualExt, In4, "In4" ) \ ENUM_DEFN( HrmIndividualExt, In40, "In40" ) \ ENUM_DEFN( HrmIndividualExt, In41, "In41" ) \ ENUM_DEFN( HrmIndividualExt, In42, "In42" ) \ ENUM_DEFN( HrmIndividualExt, In43, "In43" ) \ ENUM_DEFN( HrmIndividualExt, In44, "In44" ) \ ENUM_DEFN( HrmIndividualExt, In45, "In45" ) \ ENUM_DEFN( HrmIndividualExt, In46, "In46" ) \ ENUM_DEFN( HrmIndividualExt, In47, "In47" ) \ ENUM_DEFN( HrmIndividualExt, In48, "In48" ) \ ENUM_DEFN( HrmIndividualExt, In49, "In49" ) \ ENUM_DEFN( HrmIndividualExt, In5, "In5" ) \ ENUM_DEFN( HrmIndividualExt, In50, "In50" ) \ ENUM_DEFN( HrmIndividualExt, In51, "In51" ) \ ENUM_DEFN( HrmIndividualExt, In52, "In52" ) \ ENUM_DEFN( HrmIndividualExt, In53, "In53" ) \ ENUM_DEFN( HrmIndividualExt, In54, "In54" ) \ ENUM_DEFN( HrmIndividualExt, In55, "In55" ) \ ENUM_DEFN( HrmIndividualExt, In56, "In56" ) \ ENUM_DEFN( HrmIndividualExt, In57, "In57" ) \ ENUM_DEFN( HrmIndividualExt, In58, "In58" ) \ ENUM_DEFN( HrmIndividualExt, In59, "In59" ) \ ENUM_DEFN( HrmIndividualExt, In6, "In6" ) \ ENUM_DEFN( HrmIndividualExt, In60, "In60" ) \ ENUM_DEFN( HrmIndividualExt, In61, "In61" ) \ ENUM_DEFN( HrmIndividualExt, In62, "In62" ) \ ENUM_DEFN( HrmIndividualExt, In63, "In63" ) \ ENUM_DEFN( HrmIndividualExt, In7, "In7" ) \ ENUM_DEFN( HrmIndividualExt, In8, "In8" ) \ ENUM_DEFN( HrmIndividualExt, In9, "In9" ) \ ENUM_DEFN( HrmIndividualExt, V10, "V10" ) \ ENUM_DEFN( HrmIndividualExt, V11, "V11" ) \ ENUM_DEFN( HrmIndividualExt, V12, "V12" ) \ ENUM_DEFN( HrmIndividualExt, V13, "V13" ) \ ENUM_DEFN( HrmIndividualExt, V14, "V14" ) \ ENUM_DEFN( HrmIndividualExt, V15, "V15" ) \ ENUM_DEFN( HrmIndividualExt, V16, "V16" ) \ ENUM_DEFN( HrmIndividualExt, V17, "V17" ) \ ENUM_DEFN( HrmIndividualExt, V18, "V18" ) \ ENUM_DEFN( HrmIndividualExt, V19, "V19" ) \ ENUM_DEFN( HrmIndividualExt, V2, "V2" ) \ ENUM_DEFN( HrmIndividualExt, V20, "V20" ) \ ENUM_DEFN( HrmIndividualExt, V21, "V21" ) \ ENUM_DEFN( HrmIndividualExt, V22, "V22" ) \ ENUM_DEFN( HrmIndividualExt, V23, "V23" ) \ ENUM_DEFN( HrmIndividualExt, V24, "V24" ) \ ENUM_DEFN( HrmIndividualExt, V25, "V25" ) \ ENUM_DEFN( HrmIndividualExt, V26, "V26" ) \ ENUM_DEFN( HrmIndividualExt, V27, "V27" ) \ ENUM_DEFN( HrmIndividualExt, V28, "V28" ) \ ENUM_DEFN( HrmIndividualExt, V29, "V29" ) \ ENUM_DEFN( HrmIndividualExt, V3, "V3" ) \ ENUM_DEFN( HrmIndividualExt, V30, "V30" ) \ ENUM_DEFN( HrmIndividualExt, V31, "V31" ) \ ENUM_DEFN( HrmIndividualExt, V32, "V32" ) \ ENUM_DEFN( HrmIndividualExt, V33, "V33" ) \ ENUM_DEFN( HrmIndividualExt, V34, "V34" ) \ ENUM_DEFN( HrmIndividualExt, V35, "V35" ) \ ENUM_DEFN( HrmIndividualExt, V36, "V36" ) \ ENUM_DEFN( HrmIndividualExt, V37, "V37" ) \ ENUM_DEFN( HrmIndividualExt, V38, "V38" ) \ ENUM_DEFN( HrmIndividualExt, V39, "V39" ) \ ENUM_DEFN( HrmIndividualExt, V4, "V4" ) \ ENUM_DEFN( HrmIndividualExt, V40, "V40" ) \ ENUM_DEFN( HrmIndividualExt, V41, "V41" ) \ ENUM_DEFN( HrmIndividualExt, V42, "V42" ) \ ENUM_DEFN( HrmIndividualExt, V43, "V43" ) \ ENUM_DEFN( HrmIndividualExt, V44, "V44" ) \ ENUM_DEFN( HrmIndividualExt, V45, "V45" ) \ ENUM_DEFN( HrmIndividualExt, V46, "V46" ) \ ENUM_DEFN( HrmIndividualExt, V47, "V47" ) \ ENUM_DEFN( HrmIndividualExt, V48, "V48" ) \ ENUM_DEFN( HrmIndividualExt, V49, "V49" ) \ ENUM_DEFN( HrmIndividualExt, V5, "V5" ) \ ENUM_DEFN( HrmIndividualExt, V50, "V50" ) \ ENUM_DEFN( HrmIndividualExt, V51, "V51" ) \ ENUM_DEFN( HrmIndividualExt, V52, "V52" ) \ ENUM_DEFN( HrmIndividualExt, V53, "V53" ) \ ENUM_DEFN( HrmIndividualExt, V54, "V54" ) \ ENUM_DEFN( HrmIndividualExt, V55, "V55" ) \ ENUM_DEFN( HrmIndividualExt, V56, "V56" ) \ ENUM_DEFN( HrmIndividualExt, V57, "V57" ) \ ENUM_DEFN( HrmIndividualExt, V58, "V58" ) \ ENUM_DEFN( HrmIndividualExt, V59, "V59" ) \ ENUM_DEFN( HrmIndividualExt, V6, "V6" ) \ ENUM_DEFN( HrmIndividualExt, V60, "V60" ) \ ENUM_DEFN( HrmIndividualExt, V61, "V61" ) \ ENUM_DEFN( HrmIndividualExt, V62, "V62" ) \ ENUM_DEFN( HrmIndividualExt, V63, "V63" ) \ ENUM_DEFN( HrmIndividualExt, V7, "V7" ) \ ENUM_DEFN( HrmIndividualExt, V8, "V8" ) \ ENUM_DEFN( HrmIndividualExt, V9, "V9" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, Disable, "Disable" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I10, "I10" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I11, "I11" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I12, "I12" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I13, "I13" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I14, "I14" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I15, "I15" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I16, "I16" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I17, "I17" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I18, "I18" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I19, "I19" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I2, "I2" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I20, "I20" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I21, "I21" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I22, "I22" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I23, "I23" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I24, "I24" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I25, "I25" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I26, "I26" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I27, "I27" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I28, "I28" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I29, "I29" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I3, "I3" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I30, "I30" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I31, "I31" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I32, "I32" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I33, "I33" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I34, "I34" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I35, "I35" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I36, "I36" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I37, "I37" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I38, "I38" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I39, "I39" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I4, "I4" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I40, "I40" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I41, "I41" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I42, "I42" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I43, "I43" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I44, "I44" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I45, "I45" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I46, "I46" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I47, "I47" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I48, "I48" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I49, "I49" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I5, "I5" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I50, "I50" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I51, "I51" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I52, "I52" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I53, "I53" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I54, "I54" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I55, "I55" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I56, "I56" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I57, "I57" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I58, "I58" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I59, "I59" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I6, "I6" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I60, "I60" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I61, "I61" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I62, "I62" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I63, "I63" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I7, "I7" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I8, "I8" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, I9, "I9" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V10, "V10" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V11, "V11" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V12, "V12" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V13, "V13" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V14, "V14" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V15, "V15" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V16, "V16" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V17, "V17" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V18, "V18" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V19, "V19" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V2, "V2" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V20, "V20" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V21, "V21" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V22, "V22" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V23, "V23" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V24, "V24" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V25, "V25" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V26, "V26" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V27, "V27" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V28, "V28" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V29, "V29" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V3, "V3" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V30, "V30" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V31, "V31" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V32, "V32" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V33, "V33" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V34, "V34" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V35, "V35" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V36, "V36" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V37, "V37" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V38, "V38" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V39, "V39" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V4, "V4" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V40, "V40" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V41, "V41" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V42, "V42" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V43, "V43" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V44, "V44" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V45, "V45" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V46, "V46" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V47, "V47" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V48, "V48" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V49, "V49" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V5, "V5" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V50, "V50" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V51, "V51" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V52, "V52" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V53, "V53" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V54, "V54" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V55, "V55" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V56, "V56" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V57, "V57" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V58, "V58" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V59, "V59" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V6, "V6" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V60, "V60" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V61, "V61" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V62, "V62" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V63, "V63" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V7, "V7" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V8, "V8" ) \ ENUM_DEFN( HrmIndividualSinglePhaseExt, V9, "V9" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI, LAN, "LAN" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI, LANB, "LAN2" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI, RS232, "RS232" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI, RS232P, "RS232P" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI, USBA, "USBA" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI, USBB, "USBB" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI, WLAN, "WLAN" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, LAN, "LAN" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, LANB, "LAN2" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, MOBILENETWORK, "MOBILENETWORK" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, RS232, "RS232" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, RS232P, "RS232P" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, USBA, "USBA" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, USBB, "USBB" ) \ ENUM_DEFN( RC20CommsPortNoUSBCWIFI4G, WLAN, "WLAN" ) \ ENUM_DEFN( BatteryCapacityConfidence, Confident, "Confident" ) \ ENUM_DEFN( BatteryCapacityConfidence, NotConfident, "Not Confident" ) \ ENUM_DEFN( BatteryCapacityConfidence, Unknown, "Unknown" ) \ ENUM_DEFN( PMUPerfClass, TypeM, "M" ) \ ENUM_DEFN( PMUPerfClass, TypeP, "P" ) \ ENUM_DEFN( RC20CommsPortLAN, LAN, "LAN" ) \ ENUM_DEFN( RC20CommsPortLAN, LAN2, "LAN2" ) \ ENUM_DEFN( RC20CommsPortLAN, USBA, "USBA" ) \ ENUM_DEFN( RC20CommsPortLAN, USBB, "USBB" ) \ ENUM_DEFN( RC20CommsPortLAN, WLAN, "WLAN" ) \ ENUM_DEFN( RC20CommsPortLAN4G, LAN, "LAN" ) \ ENUM_DEFN( RC20CommsPortLAN4G, LAN2, "LAN2" ) \ ENUM_DEFN( RC20CommsPortLAN4G, MOBILENETWORK, "MOBILENETWORK" ) \ ENUM_DEFN( RC20CommsPortLAN4G, USBA, "USBA" ) \ ENUM_DEFN( RC20CommsPortLAN4G, USBB, "USBB" ) \ ENUM_DEFN( RC20CommsPortLAN4G, WLAN, "WLAN" ) \ ENUM_DEFN( PMUQuality, DataAbsent, "Data Absent" ) \ ENUM_DEFN( PMUQuality, Invalid, "Invalid" ) \ ENUM_DEFN( PMUQuality, Unknown, "Unknown" ) \ ENUM_DEFN( PMUQuality, Valid_100ns, "Valid, Error < 100 ns" ) \ ENUM_DEFN( PMUQuality, Valid_100us, "Valid, Error < 100 us" ) \ ENUM_DEFN( PMUQuality, Valid_10ms, "Valid, Error < 10 ms" ) \ ENUM_DEFN( PMUQuality, Valid_10us, "Valid, Error < 10 us" ) \ ENUM_DEFN( PMUQuality, Valid_1ms, "Valid, Error < 1 ms" ) \ ENUM_DEFN( PMUQuality, Valid_1us, "Valid, Error < 1 us" ) \ ENUM_DEFN( PMUStatus, ConfigError, "Configuration Error" ) \ ENUM_DEFN( PMUStatus, Disabled, "Disabled" ) \ ENUM_DEFN( PMUStatus, NoSync, "GPS Not Synced" ) \ ENUM_DEFN( PMUStatus, RequireCID, "Require CID Config" ) \ ENUM_DEFN( PMUStatus, Sync, "GPS Synced" ) \ ENUM_DEFN( PMUConfigStatus, Invalid, "Invalid" ) \ ENUM_DEFN( PMUConfigStatus, Unconfigured, "Unconfigured" ) \ ENUM_DEFN( PMUConfigStatus, Valid, "Valid" ) \ ENUM_DEFN( LineSupplyRange, AC110V, "110V" ) \ ENUM_DEFN( LineSupplyRange, AC220V, "220V" ) \ ENUM_DEFN( LineSupplyRange, DC, "DC" ) \ ENUM_DEFN( LineSupplyRange, Detecting, "Detecting" ) \ ENUM_DEFN( LineSupplyRange, Off, "Off" ) \ ENUM_DEFN( TimeSyncUnlockedTime, Locked, "Locked" ) \ ENUM_DEFN( TimeSyncUnlockedTime, Unknown, "Unknown" ) \ ENUM_DEFN( TimeSyncUnlockedTime, Unlocked1000sOrMore, "Unlocked >=1000 s" ) \ ENUM_DEFN( TimeSyncUnlockedTime, UnlockedLessThan1000s, "Unlocked <1000 s" ) \ ENUM_DEFN( TimeSyncUnlockedTime, UnlockedLessThan100s, "Unlocked <100 s" ) \ ENUM_DEFN( TimeSyncUnlockedTime, UnlockedLessThan10s, "Unlocked <10 s" ) \ ENUM_DEFN( CBF_backup_trip, CBF_current, "Current" ) \ ENUM_DEFN( CBF_backup_trip, CBF_malf_current, "Excessive To/Current" ) \ ENUM_DEFN( CBF_backup_trip, CBF_malfunction, "Excessive To" ) \ ENUM_DEFN( CbfCurrentMode, Ef, "Residual" ) \ ENUM_DEFN( CbfCurrentMode, Oc, "Phase" ) \ ENUM_DEFN( CbfCurrentMode, OcEf, "Phase/Residual" ) \ ENUM_DEFN( CommsPortREL15, LAN, "LAN" ) \ ENUM_DEFN( CommsPortREL15, None, "None" ) \ ENUM_DEFN( CommsPortREL15, USBA, "USB A" ) \ ENUM_DEFN( CommsPortREL15, USBB, "USB B" ) \ ENUM_DEFN( CommsPortREL15, WLAN, "WLAN" ) \ ENUM_DEFN( CommsPortREL204G, LAN, "LAN" ) \ ENUM_DEFN( CommsPortREL204G, LAN2, "LAN 2" ) \ ENUM_DEFN( CommsPortREL204G, None, "None" ) \ ENUM_DEFN( CommsPortREL204G, USBA, "USB A" ) \ ENUM_DEFN( CommsPortREL204G, USBB, "USB B" ) \ ENUM_DEFN( CommsPortREL204G, WLAN, "WLAN" ) \ ENUM_DEFN( CommsPortREL02, LAN, "LAN" ) \ ENUM_DEFN( CommsPortREL02, None, "None" ) \ ENUM_DEFN( CommsPortREL02, USBA, "USB A" ) \ ENUM_DEFN( CommsPortREL02, USBB, "USB B" ) \ ENUM_DEFN( CommsPortREL02, USBC, "USB C" ) \ ENUM_DEFN( CommsPortREL01, None, "None" ) \ ENUM_DEFN( CommsPortREL01, USBA, "USB A" ) \ ENUM_DEFN( CommsPortREL01, USBB, "USB B" ) \ ENUM_DEFN( CommsPortREL01, USBC, "USB C" ) \ ENUM_DEFN( ActiveInactive, Active, "Active" ) \ ENUM_DEFN( ActiveInactive, Inactive, "Inactive" ) \ ENUM_DEFN( UserCredentialResultStatus, Abort, "Critical error Abortion" ) \ ENUM_DEFN( UserCredentialResultStatus, AcctExpired, "User account has expired " ) \ ENUM_DEFN( UserCredentialResultStatus, AuthErr, "Authentication failure" ) \ ENUM_DEFN( UserCredentialResultStatus, AuthInfoUnavail, "Authentication Service unavailable" ) \ ENUM_DEFN( UserCredentialResultStatus, AuthOkErr, "Authentication token error" ) \ ENUM_DEFN( UserCredentialResultStatus, AuthTokDisableAging, "Authentication token aging disabled" ) \ ENUM_DEFN( UserCredentialResultStatus, AuthTokExpired, "authentication token expired" ) \ ENUM_DEFN( UserCredentialResultStatus, AuthTokLockBusy, " Authentication token lock busy" ) \ ENUM_DEFN( UserCredentialResultStatus, AuthTokRecoveryErr, "Auth Token Recover Error" ) \ ENUM_DEFN( UserCredentialResultStatus, BadItem, "Bad item passed to Security Module" ) \ ENUM_DEFN( UserCredentialResultStatus, BuffErr, "Buffer Error" ) \ ENUM_DEFN( UserCredentialResultStatus, ConvAgain, "Conversation again without data" ) \ ENUM_DEFN( UserCredentialResultStatus, CovErr, "PAM Conversation Error" ) \ ENUM_DEFN( UserCredentialResultStatus, CredErr, "Failure setting user credentials" ) \ ENUM_DEFN( UserCredentialResultStatus, CredExpired, "User credentials expired" ) \ ENUM_DEFN( UserCredentialResultStatus, CredInsufficient, "Can not access authentication data" ) \ ENUM_DEFN( UserCredentialResultStatus, CredUnavail, " user credentials unavailable" ) \ ENUM_DEFN( UserCredentialResultStatus, DlopenErr, "dlopen() failure" ) \ ENUM_DEFN( UserCredentialResultStatus, Ignore, "Ignore account module" ) \ ENUM_DEFN( UserCredentialResultStatus, Incomplete, "auth stack not called complete" ) \ ENUM_DEFN( UserCredentialResultStatus, MaxTries, "Maximum Retries" ) \ ENUM_DEFN( UserCredentialResultStatus, ModuleUnknown, "module is not known" ) \ ENUM_DEFN( UserCredentialResultStatus, NewAuthTokReqd, "New authentication token required" ) \ ENUM_DEFN( UserCredentialResultStatus, NoModuleData, "No Module Data" ) \ ENUM_DEFN( UserCredentialResultStatus, PerDenied, "Permission Denied" ) \ ENUM_DEFN( UserCredentialResultStatus, ServiceErr, "Service Error" ) \ ENUM_DEFN( UserCredentialResultStatus, SessionErr, "Session Error" ) \ ENUM_DEFN( UserCredentialResultStatus, Standby, "Default Status" ) \ ENUM_DEFN( UserCredentialResultStatus, Success, "Success" ) \ ENUM_DEFN( UserCredentialResultStatus, SymbolErr, "Symbol not found" ) \ ENUM_DEFN( UserCredentialResultStatus, SystemErr, "System Error" ) \ ENUM_DEFN( UserCredentialResultStatus, TryAgain, " password required input" ) \ ENUM_DEFN( UserCredentialResultStatus, UserUnknown, "User not known" ) \ ENUM_DEFN( CredentialOperationMode, AddNewUser, "Add New User" ) \ ENUM_DEFN( CredentialOperationMode, BatchUpdateCredential, "batch update on user credentials" ) \ ENUM_DEFN( CredentialOperationMode, ChangePassword, "Change existing user's password" ) \ ENUM_DEFN( CredentialOperationMode, RemoveUser, "Remove the existing user" ) \ ENUM_DEFN( CredentialOperationMode, ResetCredential, "Remove all credentials" ) \ ENUM_DEFN( CredentialOperationMode, StandbyMode, "Credential operation standby mode" ) \ ENUM_DEFN( CredentialOperationMode, UpdateRoleInfo, "Update user's role bitmap" ) \ ENUM_DEFN( CredentialOperationMode, VerifyUser, "UserName and Password verification" ) \ ENUM_DEFN( ConstraintT10BRG, MIP, "M IP" ) \ ENUM_DEFN( ConstraintT10BRG, MPort, "M Port" ) \ ENUM_DEFN( ConstraintT10BRG, MPort_MIP, "M Port+M IP" ) \ ENUM_DEFN( ConstraintT10BRG, OA, "OA" ) \ ENUM_DEFN( ConstraintT10BRG, OA_MIP, "OA+M IP" ) \ ENUM_DEFN( ConstraintT10BRG, OA_MPort, "OA+M Port" ) \ ENUM_DEFN( ConstraintT10BRG, OA_MPort_MIP, "OA+M Port+M IP" ) \ ENUM_DEFN( ConnectionStateT10BRG, Closed, "Closed" ) \ ENUM_DEFN( ConnectionStateT10BRG, Started, "Started" ) \ ENUM_DEFN( ConnectionStateT10BRG, Testing, "Testing" ) \ ENUM_DEFN( ConnectionMethodT10BRG, Method1, "Method 1" ) \ ENUM_DEFN( ConnectionMethodT10BRG, Method2, "Method 2" ) \ ENUM_DEFN( pinPukResult, None, "" ) \ ENUM_DEFN( pinPukResult, PINConfirmFail, "PIN Confirm Fail" ) \ ENUM_DEFN( pinPukResult, PINConfirmOK, "PIN Confirm OK" ) \ ENUM_DEFN( pinPukResult, PINEntered, "PIN Entered" ) \ ENUM_DEFN( pinPukResult, PINEntryByCMS, "PIN Entry By CMS" ) \ ENUM_DEFN( pinPukResult, PINMaxTriesExceeded, "PIN Max Tries Exceeded" ) \ ENUM_DEFN( pinPukResult, PINNotAvailable, "PIN Not Available" ) \ ENUM_DEFN( pinPukResult, PINNotEntered, "PIN Not Entered" ) \ ENUM_DEFN( pinPukResult, PINWriteFail, "PIN Write Fail" ) \ ENUM_DEFN( pinPukResult, PINWriteSuccess, "PIN Write Success" ) \ ENUM_DEFN( pinPukResult, PUKConfirmFail, "PUK Confirm Fail" ) \ ENUM_DEFN( pinPukResult, PUKConfirmOK, "PUK Confirm OK" ) \ ENUM_DEFN( pinPukResult, PUKEntered, "PUK Entered" ) \ ENUM_DEFN( pinPukResult, PUKEntryByCMS, "PUK Entry By CMS" ) \ ENUM_DEFN( pinPukResult, PUKMaxTriesExceeded, "PUK Max Tries Exceeded" ) \ ENUM_DEFN( pinPukResult, PUKNotAvailable, "PUK Not Available" ) \ ENUM_DEFN( pinPukResult, PUKNotEntered, "PUK Not Entered" ) \ ENUM_DEFN( pinPukResult, PUKWriteFail, "PUK Write Fail" ) \ ENUM_DEFN( pinPukResult, PUKWriteSuccess, "PUK Write Success" ) \ ENUM_DEFN( pinPukResult, PUKWroteNewPIN, "PIN Write Success" ) \ ENUM_DEFN( ChangedLog, Changed, "Changed" ) \ ENUM_DEFN( ChangedLog, NoText, "" ) \ /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBENUMDEFS_H_ <file_sep>#!/bin/sh -ex # # Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. # # Licensed under the OpenSSL license (the "License"). You may not use # this file except in compliance with the License. You can obtain a copy # in the file LICENSE in the source distribution or at # https://www.openssl.org/source/license.html # krb5's test suite clears LD_LIBRARY_PATH LDFLAGS="-L`pwd`/$BLDTOP -Wl,-rpath,`pwd`/$BLDTOP" CFLAGS="-I`pwd`/$BLDTOP/include -I`pwd`/$SRCTOP/include" cd $SRCTOP/krb5/src autoreconf ./configure --with-ldap --with-prng-alg=os --enable-pkinit \ --with-crypto-impl=openssl --with-tls-impl=openssl \ CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" # quiet make so that Travis doesn't overflow make -s make check <file_sep># - Config file for the Libevent package # It defines the following variables # LIBWEBSOCKETS_INCLUDE_DIRS - include directories for FooBar # LIBWEBSOCKETS_LIBRARIES - libraries to link against # Get the path of the current file. get_filename_component(LWS_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) # Set the include directories. set(LIBWEBSOCKETS_INCLUDE_DIRS "@LWS__INCLUDE_DIRS@") # Include the project Targets file, this contains definitions for IMPORTED targets. include(${LWS_CMAKE_DIR}/LibwebsocketsTargets.cmake) # IMPORTED targets from LibwebsocketsTargets.cmake set(LIBWEBSOCKETS_LIBRARIES websockets websockets_shared) <file_sep>#!/bin/bash echo "----------------------------------------------------------------------------" echo " Automatically set up development environment for POSIX-platform" echo "----------------------------------------------------------------------------" echo "" echo " Includes 64bit-datatypes, float-datatypes, Ethernet-Interface," echo " ASN1-encoding, ..." echo "" echo " To include tests set directories for boost-test-framework and " echo " set FORTE_TESTS-option to 'ON'" echo "" echo "----------------------------------------------------------------------------" export forte_bin_dir="bin/lmsEv3" #set to boost-include directory export forte_boost_test_inc_dirs="" #set to boost-library directory export forte_boost_test_lib_dirs="" if [ ! -d "$forte_bin_dir" ]; then mkdir -p "$forte_bin_dir" fi if [ -d "$forte_bin_dir" ]; then echo "For building forte go to $forte_bin_dir and execute \"make\"" echo "forte can be found at ${forte_bin_dir}/src" echo "forte_tests can be found at ${forte_bin_dir}/tests" cd "./$forte_bin_dir" cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/cabral/work/arm-linux-gnueabi.cmake" -DFORTE_MODULE_LMS_EV3=ON -DFORTE_ARCHITECTURE=Posix -DFORTE_COM_ETH=ON -DFORTE_COM_FBDK=ON -DFORTE_COM_LOCAL=ON -DFORTE_TESTS=OFF -DFORTE_TESTS_INC_DIRS=${forte_boost_test_inc_dirs} -DFORTE_TESTS_LINK_DIRS=${forte_boost_test_inc_dirs} -DFORTE_MODULE_CONVERT=ON -DFORTE_MODULE_MATH=ON -DFORTE_MODULE_IEC61131=ON -DFORTE_MODULE_OSCAT=ON -DFORTE_MODULE_Test=ON -DFORTE_MODULE_UTILS=ON ../../ else echo "unable to create ${forte_bin_dir}" exit 1 fi<file_sep># lws api test smtp client Performs unit tests on the lws SMTP client abstract protocol implementation. The first test "sends mail to a server" (actually is prompted by test vectors that look like a server) and the second test confirm it can handle rejection by the "server" cleanly. ## build Requires lws was built with `-DLWS_WITH_SMTP=1` at cmake. ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -r <<EMAIL>>|Send the test email to this email address ``` $ ./lws-api-test-smtp_client [2019/06/28 21:56:41:0711] USER: LWS API selftest: SMTP client unit tests [2019/06/28 21:56:41:1114] NOTICE: test_sequencer_cb: test-seq: created [2019/06/28 21:56:41:1259] NOTICE: unit_test_sequencer_cb: unit-test-seq: created [2019/06/28 21:56:41:1272] NOTICE: lws_atcut_client_conn: smtp: test 'sending': start [2019/06/28 21:56:41:1441] NOTICE: unit_test_sequencer_cb: unit-test-seq: created [2019/06/28 21:56:41:1442] NOTICE: lws_atcut_client_conn: smtp: test 'rejected': start [2019/06/28 21:56:41:1453] NOTICE: lws_smtp_client_abs_rx: bad response from server: 500 (state 4) 500 Service Unavailable [2019/06/28 21:56:41:1467] USER: test_sequencer_cb: sequence completed OK [2019/06/28 21:56:41:1474] USER: main: 2 tests 0 fail [2019/06/28 21:56:41:1476] USER: test 0: PASS [2019/06/28 21:56:41:1478] USER: test 1: PASS [2019/06/28 21:56:41:1480] USER: Completed: PASS ``` <file_sep>## Threadpool ### Overview ![overview](/doc-assets/threadpool.svg) An api that lets you create a pool of worker threads, and a queue of tasks that are bound to a wsi. Tasks in their own thread synchronize communication to the lws service thread of the wsi via `LWS_CALLBACK_SERVER_WRITEABLE` and friends. Tasks can produce some output, then return that they want to "sync" with the service thread. That causes a `LWS_CALLBACK_SERVER_WRITEABLE` in the service thread context, where the output can be consumed, and the task told to continue, or completed tasks be reaped. ALL of the details related to thread synchronization and an associated wsi in the lws service thread context are handled by the threadpool api, without needing any pthreads in user code. ### Example https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/ws-server/minimal-ws-server-threadpool ### Lifecycle considerations #### Tasks vs wsi Although all tasks start out as being associated to a wsi, in fact the lifetime of a task and that of the wsi are not necessarily linked. You may start a long task, eg, that runs atomically in its thread for 30s, and at any time the client may close the connection, eg, close a browser window. There are arrangements that a task can "check in" periodically with lws to see if it has been asked to stop, allowing the task lifetime to be related to the wsi lifetime somewhat, but some tasks are going to be atomic and longlived. For that reason, at wsi close an ongoing task can detach from the wsi and continue until it ends or understands it has been asked to stop. To make that work, the task is created with a `cleanup` callback that performs any freeing independent of still having a wsi around to do it... the task takes over responsibility to free the user pointer on destruction when the task is created. ![Threadpool States](/doc-assets/threadpool-states.svg) #### Reaping completed tasks Once created, although tasks may run asynchronously, the task itself does not get destroyed on completion but added to a "done queue". Only when the lws service thread context queries the task state with `lws_threadpool_task_status()` may the task be reaped and memory freed. This is analogous to unix processes and `wait()`. If a task became detached from its wsi, then joining the done queue is enough to get the task reaped, since there's nobody left any more to synchronize the reaping with. ### User interface The api is declared at https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-threadpool.h #### Threadpool creation / destruction The threadpool should be created at program or vhost init using `lws_threadpool_create()` and destroyed on exit or vhost destruction using first `lws_threadpool_finish()` and then `lws_threadpool_destroy()`. Threadpools should be named, varargs are provided on the create function to facilite eg, naming the threadpool by the vhost it's associated with. Threadpool creation takes an args struct with the following members: Member|function ---|--- threads|The maxiumum number of independent threads in the pool max_queue_depth|The maximum number of tasks allowed to wait for a place in the pool #### Task creation / destruction Tasks are created and queued using `lws_threadpool_enqueue()`, this takes an args struct with the following members Member|function ---|--- wsi|The wsi the task is initially associated with user|An opaque user-private pointer used for communication with the lws service thread and private state / data task|A pointer to the function that will run in the pool thread cleanup|A pointer to a function that will clean up finished or stopped tasks (perhaps freeing user) Tasks also should have a name, the creation function again provides varargs to simplify naming the task with string elements related to who started it and why. #### The task function itself The task function receives the task user pointer and the task state. The possible task states are State|Meaning ---|--- LWS_TP_STATUS_QUEUED|Task is still waiting for a pool thread LWS_TP_STATUS_RUNNING|Task is supposed to do its work LWS_TP_STATUS_SYNCING|Task is blocked waiting for sync from lws service thread LWS_TP_STATUS_STOPPING|Task has been asked to stop but didn't stop yet LWS_TP_STATUS_FINISHED|Task has reported it has completed LWS_TP_STATUS_STOPPED|Task has aborted The task function will only be told `LWS_TP_STATUS_RUNNING` or `LWS_TP_STATUS_STOPPING` in its status argument... RUNNING means continue with the user task and STOPPING means clean up and return `LWS_TP_RETURN_STOPPED`. If possible every 100ms or so the task should return `LWS_TP_RETURN_CHECKING_IN` to allow lws to inform it reasonably quickly that it has been asked to stop (eg, because the related wsi has closed), or if it can continue. If not possible, it's okay but eg exiting the application may experience delays until the running task finishes, and since the wsi may have gone, the work is wasted. The task function may return one of Return|Meaning ---|--- LWS_TP_RETURN_CHECKING_IN|Still wants to run, but confirming nobody asked him to stop. Will be called again immediately with `LWS_TP_STATUS_RUNNING` or `LWS_TP_STATUS_STOPPING` LWS_TP_RETURN_SYNC|Task wants to trigger a WRITABLE callback and block until lws service thread restarts it with `lws_threadpool_task_sync()` LWS_TP_RETURN_FINISHED|Task has finished, successfully as far as it goes LWS_TP_RETURN_STOPPED|Task has finished, aborting in response to a request to stop The SYNC or CHECKING_IN return may also have a flag `LWS_TP_RETURN_FLAG_OUTLIVE` applied to it, which indicates to threadpool that this task wishes to remain unstopped after the wsi closes. This is useful in the case where the task understands it will take a long time to complete, and wants to return a complete status and maybe close the connection, perhaps with a token identifying the task. The task can then be monitored separately by using the token. #### Synchronizing The task can choose to "SYNC" with the lws service thread, in other words cause a WRITABLE callback on the associated wsi in the lws service thread context and block itself until it hears back from there via `lws_threadpool_task_sync()` to resume the task. This is typically used when, eg, the task has filled its buffer, or ringbuffer, and needs to pause operations until what's done has been sent and some buffer space is open again. In the WRITABLE callback, in lws service thread context, the buffer can be sent with `lws_write()` and then `lws_threadpool_task_sync()` to allow the task to fill another buffer and continue that way. If the WRITABLE callback determines that the task should stop, it can just call `lws_threadpool_task_sync()` with the second argument as 1, to force the task to stop immediately after it resumes. #### The cleanup function When a finished task is reaped, or a task that become detached from its initial wsi completes or is stopped, it calls the `.cleanup` function defined in the task creation args struct to free anything related to the user pointer. With threadpool, responsibility for freeing allocations used by the task belongs strictly with the task, via the `.cleanup` function, once the task has been enqueued. That's different from a typical non-threadpool protocol where the wsi lifecycle controls deallocation. This reflects the fact that the task may outlive the wsi. #### Protecting against WRITABLE and / or SYNC duplication Care should be taken than data prepared by the task thread in the user priv memory should only be sent once. For example, after sending data from a user priv buffer of a given length stored in the priv, zero down the length. Task execution and the SYNC writable callbacks are mutually exclusive, so there is no danger of collision between the task thread and the lws service thread if the reason for the callback is a SYNC operation from the task thread. ### Thread overcommit If the tasks running on the threads are ultimately network-bound for all or some of their processing (via the SYNC with the WRITEABLE callback), it's possible to overcommit the number of threads in the pool compared to the number of threads the processor has in hardware to get better occupancy in the CPU. <file_sep>|Example|Demonstrates| ---|--- minimal-ws-broker|Simple ws server with a publish / broker / subscribe architecture minimal-ws-server-echo|Simple ws server that listens and echos back anything clients send minimal-ws-server-pmd-bulk|Simple ws server showing how to pass bulk data with permessage-deflate minimal-ws-server-pmd-corner|Corner-case tests for permessage-deflate minimal-ws-server-pmd|Simple ws server with permessage-deflate support minimal-ws-server-ring|Like minimal-ws-server but holds the chat in a multi-tail ringbuffer minimal-ws-server-threadpool|Demonstrates how to use a worker thread pool with lws minimal-ws-server-threads-smp|SMP ws server where data is produced by different threads with multiple lws service threads too minimal-ws-server-threads|Simple ws server where data is produced by different threads minimal-ws-server|Serves an index.html over http that opens a ws shared chat client in a browser <file_sep>|name|demonstrates| ---|--- client-server|Minimal examples providing client and server connections simultaneously crypto|Minimal examples related to using lws crypto apis dbus-server|Minimal examples showing how to integrate DBUS into lws event loop http-client|Minimal examples providing an http client http-server|Minimal examples providing an http server raw|Minimal examples related to adopting raw file or socket descriptors into the event loop secure-streams|Minimal examples related to the Secure Streams client api ws-client|Minimal examples providing a ws client ws-server|Minimal examples providing a ws server (and an http server) ## FAQ ### Getting started Build and install lws itself first (note that after installing lws on \*nix, you need to run `ldconfig` one time so the OS can learn about the new library. Lws installs in `/usr/local` by default, Debian / Ubuntu ldconfig knows to look there already, but Fedora / CentOS need you to add the line `/usr/local/lib` to `/etc/ld.so.conf` and run ldconfig) Then start with the simplest: `http-server/minimal-http-server` ### Why are most of the sources split into a main C file file and a protocol file? Lws supports three ways to implement the protocol callback code: - you can just add it all in the same source file - you can separate it as these examples do, and #include it into the main sources - you can build it as a standalone plugin that is discovered and loaded at runtime. The way these examples are structured, you can easily also build the protocol callback as a plugin just with a different CMakeLists.txt... see https://github.com/warmcat/libwebsockets/tree/master/plugin-standalone for an example. ### Why would we want the protocol as a plugin? You will notice a lot of the main C code is the same boilerplate repeated for each example. The actual interesting part is in the protocol callback only. Lws provides (-DLWS_WITH_LWSWS=1) a generic lightweight server app called 'lwsws' that can be configured by JSON. Combined with your protocol as a plugin, it means you don't actually have to make a special server "app" part, you can just use lwsws and pass per-vhost configuration from JSON into your protocol. (Of course in some cases you have an existing app you are bolting lws on to, then you don't care about this for that particular case). Because lwsws has no dependency on whatever your plugin does, it can mix and match different protocols randomly without needing any code changes. It reduces the size of the task to just writing the code you care about in your protocol handler, and nothing else to write or maintain. Lwsws supports advanced features like reload, where it starts a new server instance with changed config or different plugins, while keeping the old instance around until the last connection to it closes. ### I get why there is a pss, but why is there a vhd? The pss is instantiated per-connection. But there are almost always other variables that have a lifetime longer than a single connection. You could make these variables "filescope" one-time globals, but that means your protocol cannot instantiate multiple times. Lws supports vhosts (virtual hosts), for example both https://warmcat.com and https://libwebsockets are running on the same lwsws instance on the same server and same IP... each of these is a separate vhost. Your protocol may be enabled on multiple vhosts, each of these vhosts provides a different vhd specific to the protocol instance on that vhost. For example many of the samples keep a linked-list head to a list of live pss in the vhd... that means it's cleanly a list of pss opened **on that vhost**. If another vhost has the protocol enabled, connections to that will point to a different vhd, and the linked-list head on that vhd will only list connections to his vhost. The example "ws-server/minimal-ws-server-threads" demonstrates how to deliver external configuration data to a specific vhost + protocol combination using code. In lwsws, this is simply a matter of setting the desired JSON config. <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/ssl.h> typedef STACK_OF(SSL_CIPHER) Cryptography_STACK_OF_SSL_CIPHER; """ TYPES = """ static const long Cryptography_HAS_SSL_ST; static const long Cryptography_HAS_TLS_ST; static const long Cryptography_HAS_SSL2; static const long Cryptography_HAS_SSL3_METHOD; static const long Cryptography_HAS_TLSv1_1; static const long Cryptography_HAS_TLSv1_2; static const long Cryptography_HAS_SECURE_RENEGOTIATION; static const long Cryptography_HAS_COMPRESSION; static const long Cryptography_HAS_TLSEXT_STATUS_REQ_CB; static const long Cryptography_HAS_STATUS_REQ_OCSP_RESP; static const long Cryptography_HAS_TLSEXT_STATUS_REQ_TYPE; static const long Cryptography_HAS_GET_SERVER_TMP_KEY; static const long Cryptography_HAS_SSL_CTX_SET_CLIENT_CERT_ENGINE; static const long Cryptography_HAS_SSL_CTX_CLEAR_OPTIONS; static const long Cryptography_HAS_DTLS; static const long Cryptography_HAS_GENERIC_DTLS_METHOD; static const long Cryptography_HAS_SIGALGS; static const long Cryptography_HAS_PSK; static const long Cryptography_HAS_CIPHER_DETAILS; /* Internally invented symbol to tell us if SNI is supported */ static const long Cryptography_HAS_TLSEXT_HOSTNAME; /* Internally invented symbol to tell us if SSL_MODE_RELEASE_BUFFERS is * supported */ static const long Cryptography_HAS_RELEASE_BUFFERS; /* Internally invented symbol to tell us if SSL_OP_NO_COMPRESSION is * supported */ static const long Cryptography_HAS_OP_NO_COMPRESSION; static const long Cryptography_HAS_SSL_OP_MSIE_SSLV2_RSA_PADDING; static const long Cryptography_HAS_SSL_SET_SSL_CTX; static const long Cryptography_HAS_SSL_OP_NO_TICKET; static const long Cryptography_HAS_ALPN; static const long Cryptography_HAS_NEXTPROTONEG; static const long Cryptography_HAS_SET_CERT_CB; static const long Cryptography_HAS_CUSTOM_EXT; static const long SSL_FILETYPE_PEM; static const long SSL_FILETYPE_ASN1; static const long SSL_ERROR_NONE; static const long SSL_ERROR_ZERO_RETURN; static const long SSL_ERROR_WANT_READ; static const long SSL_ERROR_WANT_WRITE; static const long SSL_ERROR_WANT_X509_LOOKUP; static const long SSL_ERROR_WANT_CONNECT; static const long SSL_ERROR_SYSCALL; static const long SSL_ERROR_SSL; static const long SSL_SENT_SHUTDOWN; static const long SSL_RECEIVED_SHUTDOWN; static const long SSL_OP_NO_SSLv2; static const long SSL_OP_NO_SSLv3; static const long SSL_OP_NO_TLSv1; static const long SSL_OP_NO_TLSv1_1; static const long SSL_OP_NO_TLSv1_2; static const long SSL_OP_NO_DTLSv1; static const long SSL_OP_NO_DTLSv1_2; static const long SSL_OP_NO_COMPRESSION; static const long SSL_OP_SINGLE_DH_USE; static const long SSL_OP_EPHEMERAL_RSA; static const long SSL_OP_MICROSOFT_SESS_ID_BUG; static const long SSL_OP_NETSCAPE_CHALLENGE_BUG; static const long SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG; static const long SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG; static const long SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER; static const long SSL_OP_MSIE_SSLV2_RSA_PADDING; static const long SSL_OP_SSLEAY_080_CLIENT_DH_BUG; static const long SSL_OP_TLS_D5_BUG; static const long SSL_OP_TLS_BLOCK_PADDING_BUG; static const long SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; static const long SSL_OP_CIPHER_SERVER_PREFERENCE; static const long SSL_OP_TLS_ROLLBACK_BUG; static const long SSL_OP_PKCS1_CHECK_1; static const long SSL_OP_PKCS1_CHECK_2; static const long SSL_OP_NETSCAPE_CA_DN_BUG; static const long SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG; static const long SSL_OP_NO_QUERY_MTU; static const long SSL_OP_COOKIE_EXCHANGE; static const long SSL_OP_NO_TICKET; static const long SSL_OP_ALL; static const long SSL_OP_SINGLE_ECDH_USE; static const long SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION; static const long SSL_OP_LEGACY_SERVER_CONNECT; static const long SSL_VERIFY_PEER; static const long SSL_VERIFY_FAIL_IF_NO_PEER_CERT; static const long SSL_VERIFY_CLIENT_ONCE; static const long SSL_VERIFY_NONE; static const long SSL_SESS_CACHE_OFF; static const long SSL_SESS_CACHE_CLIENT; static const long SSL_SESS_CACHE_SERVER; static const long SSL_SESS_CACHE_BOTH; static const long SSL_SESS_CACHE_NO_AUTO_CLEAR; static const long SSL_SESS_CACHE_NO_INTERNAL_LOOKUP; static const long SSL_SESS_CACHE_NO_INTERNAL_STORE; static const long SSL_SESS_CACHE_NO_INTERNAL; static const long SSL_ST_CONNECT; static const long SSL_ST_ACCEPT; static const long SSL_ST_MASK; static const long SSL_ST_INIT; static const long SSL_ST_BEFORE; static const long SSL_ST_OK; static const long SSL_ST_RENEGOTIATE; static const long SSL_CB_LOOP; static const long SSL_CB_EXIT; static const long SSL_CB_READ; static const long SSL_CB_WRITE; static const long SSL_CB_ALERT; static const long SSL_CB_READ_ALERT; static const long SSL_CB_WRITE_ALERT; static const long SSL_CB_ACCEPT_LOOP; static const long SSL_CB_ACCEPT_EXIT; static const long SSL_CB_CONNECT_LOOP; static const long SSL_CB_CONNECT_EXIT; static const long SSL_CB_HANDSHAKE_START; static const long SSL_CB_HANDSHAKE_DONE; static const long SSL_MODE_RELEASE_BUFFERS; static const long SSL_MODE_ENABLE_PARTIAL_WRITE; static const long SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER; static const long SSL_MODE_AUTO_RETRY; static const long SSL3_RANDOM_SIZE; static const long TLS_ST_BEFORE; static const long TLS_ST_OK; static const long OPENSSL_NPN_NEGOTIATED; typedef ... SSL_METHOD; typedef ... SSL_CTX; typedef ... SSL_SESSION; typedef ... SSL; static const long TLSEXT_NAMETYPE_host_name; static const long TLSEXT_STATUSTYPE_ocsp; typedef ... SSL_CIPHER; typedef ... Cryptography_STACK_OF_SSL_CIPHER; typedef ... COMP_METHOD; """ FUNCTIONS = """ /* SSL */ const char *SSL_state_string_long(const SSL *); SSL_SESSION *SSL_get1_session(SSL *); int SSL_set_session(SSL *, SSL_SESSION *); int SSL_get_verify_mode(const SSL *); void SSL_set_verify(SSL *, int, int (*)(int, X509_STORE_CTX *)); void SSL_set_verify_depth(SSL *, int); int SSL_get_verify_depth(const SSL *); int (*SSL_get_verify_callback(const SSL *))(int, X509_STORE_CTX *); void SSL_set_info_callback(SSL *ssl, void (*)(const SSL *, int, int)); void (*SSL_get_info_callback(const SSL *))(const SSL *, int, int); SSL *SSL_new(SSL_CTX *); void SSL_free(SSL *); int SSL_set_fd(SSL *, int); SSL_CTX *SSL_get_SSL_CTX(const SSL *); SSL_CTX *SSL_set_SSL_CTX(SSL *, SSL_CTX *); BIO *SSL_get_rbio(const SSL *); BIO *SSL_get_wbio(const SSL *); void SSL_set_bio(SSL *, BIO *, BIO *); void SSL_set_connect_state(SSL *); void SSL_set_accept_state(SSL *); void SSL_set_shutdown(SSL *, int); int SSL_get_shutdown(const SSL *); int SSL_pending(const SSL *); int SSL_write(SSL *, const void *, int); int SSL_read(SSL *, void *, int); int SSL_peek(SSL *, void *, int); X509 *SSL_get_certificate(const SSL *); X509 *SSL_get_peer_certificate(const SSL *); int SSL_get_ex_data_X509_STORE_CTX_idx(void); int SSL_use_certificate(SSL *, X509 *); int SSL_use_certificate_ASN1(SSL *, const unsigned char *, int); int SSL_use_certificate_file(SSL *, const char *, int); int SSL_use_PrivateKey(SSL *, EVP_PKEY *); int SSL_use_PrivateKey_ASN1(int, SSL *, const unsigned char *, long); int SSL_use_PrivateKey_file(SSL *, const char *, int); int SSL_check_private_key(const SSL *); int SSL_get_sigalgs(SSL *, int, int *, int *, int *, unsigned char *, unsigned char *); Cryptography_STACK_OF_X509 *SSL_get_peer_cert_chain(const SSL *); Cryptography_STACK_OF_X509_NAME *SSL_get_client_CA_list(const SSL *); int SSL_get_error(const SSL *, int); int SSL_do_handshake(SSL *); int SSL_shutdown(SSL *); int SSL_renegotiate(SSL *); int SSL_renegotiate_pending(SSL *); const char *SSL_get_cipher_list(const SSL *, int); Cryptography_STACK_OF_SSL_CIPHER *SSL_get_ciphers(const SSL *); /* context */ void SSL_CTX_free(SSL_CTX *); long SSL_CTX_set_timeout(SSL_CTX *, long); int SSL_CTX_set_default_verify_paths(SSL_CTX *); void SSL_CTX_set_verify(SSL_CTX *, int, int (*)(int, X509_STORE_CTX *)); void SSL_CTX_set_verify_depth(SSL_CTX *, int); int (*SSL_CTX_get_verify_callback(const SSL_CTX *))(int, X509_STORE_CTX *); int SSL_CTX_get_verify_mode(const SSL_CTX *); int SSL_CTX_get_verify_depth(const SSL_CTX *); int SSL_CTX_set_cipher_list(SSL_CTX *, const char *); int SSL_CTX_load_verify_locations(SSL_CTX *, const char *, const char *); void SSL_CTX_set_default_passwd_cb(SSL_CTX *, pem_password_cb *); void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *, void *); int SSL_CTX_use_certificate(SSL_CTX *, X509 *); int SSL_CTX_use_certificate_ASN1(SSL_CTX *, int, const unsigned char *); int SSL_CTX_use_certificate_file(SSL_CTX *, const char *, int); int SSL_CTX_use_certificate_chain_file(SSL_CTX *, const char *); int SSL_CTX_use_PrivateKey(SSL_CTX *, EVP_PKEY *); int SSL_CTX_use_PrivateKey_ASN1(int, SSL_CTX *, const unsigned char *, long); int SSL_CTX_use_PrivateKey_file(SSL_CTX *, const char *, int); int SSL_CTX_check_private_key(const SSL_CTX *); void SSL_CTX_set_cert_verify_callback(SSL_CTX *, int (*)(X509_STORE_CTX *, void *), void *); void SSL_CTX_set_cookie_generate_cb(SSL_CTX *, int (*)( SSL *, unsigned char *, unsigned int * )); long SSL_CTX_get_read_ahead(SSL_CTX *); long SSL_CTX_set_read_ahead(SSL_CTX *, long); int SSL_CTX_use_psk_identity_hint(SSL_CTX *, const char *); void SSL_CTX_set_psk_server_callback(SSL_CTX *, unsigned int (*)( SSL *, const char *, unsigned char *, unsigned int )); void SSL_CTX_set_psk_client_callback(SSL_CTX *, unsigned int (*)( SSL *, const char *, char *, unsigned int, unsigned char *, unsigned int )); int SSL_CTX_set_session_id_context(SSL_CTX *, const unsigned char *, unsigned int); void SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *); X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *); int SSL_CTX_add_client_CA(SSL_CTX *, X509 *); void SSL_CTX_set_client_CA_list(SSL_CTX *, Cryptography_STACK_OF_X509_NAME *); void SSL_CTX_set_info_callback(SSL_CTX *, void (*)(const SSL *, int, int)); void (*SSL_CTX_get_info_callback(SSL_CTX *))(const SSL *, int, int); long SSL_CTX_set1_sigalgs_list(SSL_CTX *, const char *); /* SSL_SESSION */ void SSL_SESSION_free(SSL_SESSION *); /* Information about actually used cipher */ const char *SSL_CIPHER_get_name(const SSL_CIPHER *); int SSL_CIPHER_get_bits(const SSL_CIPHER *, int *); /* the modern signature of this is uint32_t, but older openssl declared it as unsigned long. To make our compiler flags happy we'll declare it as a 64-bit wide value, which should always be safe */ uint64_t SSL_CIPHER_get_id(const SSL_CIPHER *); int SSL_CIPHER_is_aead(const SSL_CIPHER *); int SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *); int SSL_CIPHER_get_digest_nid(const SSL_CIPHER *); int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *); int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *); size_t SSL_get_finished(const SSL *, void *, size_t); size_t SSL_get_peer_finished(const SSL *, void *, size_t); Cryptography_STACK_OF_X509_NAME *SSL_load_client_CA_file(const char *); const char *SSL_get_servername(const SSL *, const int); /* Function signature changed to const char * in 1.1.0 */ const char *SSL_CIPHER_get_version(const SSL_CIPHER *); /* These became macros in 1.1.0 */ int SSL_library_init(void); void SSL_load_error_strings(void); /* these CRYPTO_EX_DATA functions became macros in 1.1.0 */ int SSL_get_ex_new_index(long, void *, CRYPTO_EX_new *, CRYPTO_EX_dup *, CRYPTO_EX_free *); int SSL_set_ex_data(SSL *, int, void *); int SSL_CTX_get_ex_new_index(long, void *, CRYPTO_EX_new *, CRYPTO_EX_dup *, CRYPTO_EX_free *); int SSL_CTX_set_ex_data(SSL_CTX *, int, void *); SSL_SESSION *SSL_get_session(const SSL *); const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *, unsigned int *); long SSL_SESSION_get_time(const SSL_SESSION *); long SSL_SESSION_get_timeout(const SSL_SESSION *); int SSL_SESSION_has_ticket(const SSL_SESSION *); long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *); /* not a macro, but older OpenSSLs don't pass the args as const */ char *SSL_CIPHER_description(const SSL_CIPHER *, char *, int); int SSL_SESSION_print(BIO *, const SSL_SESSION *); /* not macros, but will be conditionally bound so can't live in functions */ const COMP_METHOD *SSL_get_current_compression(SSL *); const COMP_METHOD *SSL_get_current_expansion(SSL *); const char *SSL_COMP_get_name(const COMP_METHOD *); int SSL_CTX_set_client_cert_engine(SSL_CTX *, ENGINE *); unsigned long SSL_set_mode(SSL *, unsigned long); unsigned long SSL_get_mode(SSL *); unsigned long SSL_set_options(SSL *, unsigned long); unsigned long SSL_get_options(SSL *); void SSL_set_app_data(SSL *, char *); char * SSL_get_app_data(SSL *); void SSL_set_read_ahead(SSL *, int); int SSL_want_read(const SSL *); int SSL_want_write(const SSL *); long SSL_total_renegotiations(SSL *); long SSL_get_secure_renegotiation_support(SSL *); /* Defined as unsigned long because SSL_OP_ALL is greater than signed 32-bit and Windows defines long as 32-bit. */ unsigned long SSL_CTX_set_options(SSL_CTX *, unsigned long); unsigned long SSL_CTX_clear_options(SSL_CTX *, unsigned long); unsigned long SSL_CTX_get_options(SSL_CTX *); unsigned long SSL_CTX_set_mode(SSL_CTX *, unsigned long); unsigned long SSL_CTX_get_mode(SSL_CTX *); unsigned long SSL_CTX_set_session_cache_mode(SSL_CTX *, unsigned long); unsigned long SSL_CTX_get_session_cache_mode(SSL_CTX *); unsigned long SSL_CTX_set_tmp_dh(SSL_CTX *, DH *); unsigned long SSL_CTX_set_tmp_ecdh(SSL_CTX *, EC_KEY *); unsigned long SSL_CTX_add_extra_chain_cert(SSL_CTX *, X509 *); /*- These aren't macros these functions are all const X on openssl > 1.0.x -*/ /* methods */ /* * TLSv1_1 and TLSv1_2 are recent additions. Only sufficiently new versions of * OpenSSL support them. */ const SSL_METHOD *TLSv1_1_method(void); const SSL_METHOD *TLSv1_1_server_method(void); const SSL_METHOD *TLSv1_1_client_method(void); const SSL_METHOD *TLSv1_2_method(void); const SSL_METHOD *TLSv1_2_server_method(void); const SSL_METHOD *TLSv1_2_client_method(void); const SSL_METHOD *SSLv3_method(void); const SSL_METHOD *SSLv3_server_method(void); const SSL_METHOD *SSLv3_client_method(void); const SSL_METHOD *TLSv1_method(void); const SSL_METHOD *TLSv1_server_method(void); const SSL_METHOD *TLSv1_client_method(void); const SSL_METHOD *DTLSv1_method(void); const SSL_METHOD *DTLSv1_server_method(void); const SSL_METHOD *DTLSv1_client_method(void); /* Added in 1.0.2 */ const SSL_METHOD *DTLS_method(void); const SSL_METHOD *DTLS_server_method(void); const SSL_METHOD *DTLS_client_method(void); const SSL_METHOD *SSLv23_method(void); const SSL_METHOD *SSLv23_server_method(void); const SSL_METHOD *SSLv23_client_method(void); /*- These aren't macros these arguments are all const X on openssl > 1.0.x -*/ SSL_CTX *SSL_CTX_new(SSL_METHOD *); long SSL_CTX_get_timeout(const SSL_CTX *); const SSL_CIPHER *SSL_get_current_cipher(const SSL *); const char *SSL_get_version(const SSL *); int SSL_version(const SSL *); void *SSL_CTX_get_ex_data(const SSL_CTX *, int); void *SSL_get_ex_data(const SSL *, int); void SSL_set_tlsext_host_name(SSL *, char *); void SSL_CTX_set_tlsext_servername_callback( SSL_CTX *, int (*)(SSL *, int *, void *)); void SSL_CTX_set_tlsext_servername_arg( SSL_CTX *, void *); long SSL_set_tlsext_status_ocsp_resp(SSL *, unsigned char *, int); long SSL_get_tlsext_status_ocsp_resp(SSL *, const unsigned char **); long SSL_set_tlsext_status_type(SSL *, long); long SSL_CTX_set_tlsext_status_cb(SSL_CTX *, int(*)(SSL *, void *)); long SSL_CTX_set_tlsext_status_arg(SSL_CTX *, void *); int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *, const char *); int SSL_set_tlsext_use_srtp(SSL *, const char *); long SSL_session_reused(SSL *); void SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *, int (*)(SSL *, const unsigned char **, unsigned int *, void *), void *); void SSL_CTX_set_next_proto_select_cb(SSL_CTX *, int (*)(SSL *, unsigned char **, unsigned char *, const unsigned char *, unsigned int, void *), void *); int SSL_select_next_proto(unsigned char **, unsigned char *, const unsigned char *, unsigned int, const unsigned char *, unsigned int); void SSL_get0_next_proto_negotiated(const SSL *, const unsigned char **, unsigned *); int sk_SSL_CIPHER_num(Cryptography_STACK_OF_SSL_CIPHER *); const SSL_CIPHER *sk_SSL_CIPHER_value(Cryptography_STACK_OF_SSL_CIPHER *, int); /* ALPN APIs were introduced in OpenSSL 1.0.2. To continue to support earlier * versions some special handling of these is necessary. */ int SSL_CTX_set_alpn_protos(SSL_CTX *, const unsigned char *, unsigned); int SSL_set_alpn_protos(SSL *, const unsigned char *, unsigned); void SSL_CTX_set_alpn_select_cb(SSL_CTX *, int (*) (SSL *, const unsigned char **, unsigned char *, const unsigned char *, unsigned int, void *), void *); void SSL_get0_alpn_selected(const SSL *, const unsigned char **, unsigned *); long SSL_get_server_tmp_key(SSL *, EVP_PKEY **); /* SSL_CTX_set_cert_cb is introduced in OpenSSL 1.0.2. To continue to support * earlier versions some special handling of these is necessary. */ void SSL_CTX_set_cert_cb(SSL_CTX *, int (*)(SSL *, void *), void *); void SSL_set_cert_cb(SSL *, int (*)(SSL *, void *), void *); /* Added in 1.0.2 */ const SSL_METHOD *SSL_CTX_get_ssl_method(SSL_CTX *); int SSL_SESSION_set1_id_context(SSL_SESSION *, const unsigned char *, unsigned int); /* Added in 1.1.0 for the great opaquing of structs */ size_t SSL_SESSION_get_master_key(const SSL_SESSION *, unsigned char *, size_t); size_t SSL_get_client_random(const SSL *, unsigned char *, size_t); size_t SSL_get_server_random(const SSL *, unsigned char *, size_t); int SSL_export_keying_material(SSL *, unsigned char *, size_t, const char *, size_t, const unsigned char *, size_t, int); long SSL_CTX_sess_number(SSL_CTX *); long SSL_CTX_sess_connect(SSL_CTX *); long SSL_CTX_sess_connect_good(SSL_CTX *); long SSL_CTX_sess_connect_renegotiate(SSL_CTX *); long SSL_CTX_sess_accept(SSL_CTX *); long SSL_CTX_sess_accept_good(SSL_CTX *); long SSL_CTX_sess_accept_renegotiate(SSL_CTX *); long SSL_CTX_sess_hits(SSL_CTX *); long SSL_CTX_sess_cb_hits(SSL_CTX *); long SSL_CTX_sess_misses(SSL_CTX *); long SSL_CTX_sess_timeouts(SSL_CTX *); long SSL_CTX_sess_cache_full(SSL_CTX *); /* DTLS support */ long Cryptography_DTLSv1_get_timeout(SSL *, time_t *, long *); long DTLSv1_handle_timeout(SSL *); long DTLS_set_link_mtu(SSL *, long); long DTLS_get_link_min_mtu(SSL *); /* Custom extensions. */ typedef int (*custom_ext_add_cb)(SSL *, unsigned int, const unsigned char **, size_t *, int *, void *); typedef void (*custom_ext_free_cb)(SSL *, unsigned int, const unsigned char *, void *); typedef int (*custom_ext_parse_cb)(SSL *, unsigned int, const unsigned char *, size_t, int *, void *); int SSL_CTX_add_client_custom_ext(SSL_CTX *, unsigned int, custom_ext_add_cb, custom_ext_free_cb, void *, custom_ext_parse_cb, void *); int SSL_CTX_add_server_custom_ext(SSL_CTX *, unsigned int, custom_ext_add_cb, custom_ext_free_cb, void *, custom_ext_parse_cb, void *); int SSL_extension_supported(unsigned int); """ CUSTOMIZATIONS = """ /* Added in 1.0.2 but we need it in all versions now due to the great opaquing. */ #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 /* from ssl/ssl_lib.c */ const SSL_METHOD *SSL_CTX_get_ssl_method(SSL_CTX *ctx) { return ctx->method; } #endif /* Added in 1.1.0 in the great opaquing, but we need to define it for older OpenSSLs. Such is our burden. */ #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 && !CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER /* from ssl/ssl_lib.c */ size_t SSL_get_client_random(const SSL *ssl, unsigned char *out, size_t outlen) { if (outlen == 0) return sizeof(ssl->s3->client_random); if (outlen > sizeof(ssl->s3->client_random)) outlen = sizeof(ssl->s3->client_random); memcpy(out, ssl->s3->client_random, outlen); return outlen; } /* Added in 1.1.0 as well */ /* from ssl/ssl_lib.c */ size_t SSL_get_server_random(const SSL *ssl, unsigned char *out, size_t outlen) { if (outlen == 0) return sizeof(ssl->s3->server_random); if (outlen > sizeof(ssl->s3->server_random)) outlen = sizeof(ssl->s3->server_random); memcpy(out, ssl->s3->server_random, outlen); return outlen; } /* Added in 1.1.0 as well */ /* from ssl/ssl_lib.c */ size_t SSL_SESSION_get_master_key(const SSL_SESSION *session, unsigned char *out, size_t outlen) { if (session->master_key_length < 0) { /* Should never happen */ return 0; } if (outlen == 0) return session->master_key_length; if (outlen > (size_t)session->master_key_length) outlen = session->master_key_length; memcpy(out, session->master_key, outlen); return outlen; } /* from ssl/ssl_sess.c */ int SSL_SESSION_has_ticket(const SSL_SESSION *s) { return (s->tlsext_ticklen > 0) ? 1 : 0; } /* from ssl/ssl_sess.c */ unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s) { return s->tlsext_tick_lifetime_hint; } #endif static const long Cryptography_HAS_SECURE_RENEGOTIATION = 1; /* Cryptography now compiles out all SSLv2 bindings. This exists to allow * clients that use it to check for SSLv2 support to keep functioning as * expected. */ static const long Cryptography_HAS_SSL2 = 0; #ifdef OPENSSL_NO_SSL3_METHOD static const long Cryptography_HAS_SSL3_METHOD = 0; SSL_METHOD* (*SSLv3_method)(void) = NULL; SSL_METHOD* (*SSLv3_client_method)(void) = NULL; SSL_METHOD* (*SSLv3_server_method)(void) = NULL; #else static const long Cryptography_HAS_SSL3_METHOD = 1; #endif static const long Cryptography_HAS_TLSEXT_HOSTNAME = 1; static const long Cryptography_HAS_TLSEXT_STATUS_REQ_CB = 1; static const long Cryptography_HAS_STATUS_REQ_OCSP_RESP = 1; static const long Cryptography_HAS_TLSEXT_STATUS_REQ_TYPE = 1; static const long Cryptography_HAS_RELEASE_BUFFERS = 1; static const long Cryptography_HAS_OP_NO_COMPRESSION = 1; static const long Cryptography_HAS_TLSv1_1 = 1; static const long Cryptography_HAS_TLSv1_2 = 1; static const long Cryptography_HAS_SSL_OP_MSIE_SSLV2_RSA_PADDING = 1; static const long Cryptography_HAS_SSL_OP_NO_TICKET = 1; static const long Cryptography_HAS_SSL_SET_SSL_CTX = 1; static const long Cryptography_HAS_NEXTPROTONEG = 1; /* ALPN was added in OpenSSL 1.0.2. */ #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_IS_LIBRESSL int (*SSL_CTX_set_alpn_protos)(SSL_CTX *, const unsigned char *, unsigned) = NULL; int (*SSL_set_alpn_protos)(SSL *, const unsigned char *, unsigned) = NULL; void (*SSL_CTX_set_alpn_select_cb)(SSL_CTX *, int (*) (SSL *, const unsigned char **, unsigned char *, const unsigned char *, unsigned int, void *), void *) = NULL; void (*SSL_get0_alpn_selected)(const SSL *, const unsigned char **, unsigned *) = NULL; static const long Cryptography_HAS_ALPN = 0; #else static const long Cryptography_HAS_ALPN = 1; #endif /* SSL_CTX_set_cert_cb was added in OpenSSL 1.0.2. */ #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 void (*SSL_CTX_set_cert_cb)(SSL_CTX *, int (*)(SSL *, void *), void *) = NULL; void (*SSL_set_cert_cb)(SSL *, int (*)(SSL *, void *), void *) = NULL; static const long Cryptography_HAS_SET_CERT_CB = 0; #else static const long Cryptography_HAS_SET_CERT_CB = 1; #endif /* In OpenSSL 1.0.2i+ the handling of COMP_METHOD when OPENSSL_NO_COMP was changed and we no longer need to typedef void */ #if (defined(OPENSSL_NO_COMP) && CRYPTOGRAPHY_OPENSSL_LESS_THAN_102I) || \ CRYPTOGRAPHY_IS_LIBRESSL static const long Cryptography_HAS_COMPRESSION = 0; typedef void COMP_METHOD; #else static const long Cryptography_HAS_COMPRESSION = 1; #endif #if defined(SSL_CTRL_GET_SERVER_TMP_KEY) static const long Cryptography_HAS_GET_SERVER_TMP_KEY = 1; #else static const long Cryptography_HAS_GET_SERVER_TMP_KEY = 0; long (*SSL_get_server_tmp_key)(SSL *, EVP_PKEY **) = NULL; #endif static const long Cryptography_HAS_SSL_CTX_SET_CLIENT_CERT_ENGINE = 1; static const long Cryptography_HAS_SSL_CTX_CLEAR_OPTIONS = 1; /* in OpenSSL 1.1.0 the SSL_ST values were renamed to TLS_ST and several were removed */ #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 static const long Cryptography_HAS_SSL_ST = 1; #else static const long Cryptography_HAS_SSL_ST = 0; static const long SSL_ST_BEFORE = 0; static const long SSL_ST_OK = 0; static const long SSL_ST_INIT = 0; static const long SSL_ST_RENEGOTIATE = 0; #endif #if CRYPTOGRAPHY_OPENSSL_110_OR_GREATER static const long Cryptography_HAS_TLS_ST = 1; #else static const long Cryptography_HAS_TLS_ST = 0; static const long TLS_ST_BEFORE = 0; static const long TLS_ST_OK = 0; #endif #if defined(OPENSSL_NO_DTLS) || CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0; const SSL_METHOD *(*DTLS_method)(void) = NULL; const SSL_METHOD *(*DTLS_server_method)(void) = NULL; const SSL_METHOD *(*DTLS_client_method)(void) = NULL; static const long SSL_OP_NO_DTLSv1 = 0; static const long SSL_OP_NO_DTLSv1_2 = 0; long (*DTLS_set_link_mtu)(SSL *, long) = NULL; long (*DTLS_get_link_min_mtu)(SSL *) = NULL; #else static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1; #endif static const long Cryptography_HAS_DTLS = 1; /* Wrap DTLSv1_get_timeout to avoid cffi to handle a 'struct timeval'. */ long Cryptography_DTLSv1_get_timeout(SSL *ssl, time_t *ptv_sec, long *ptv_usec) { struct timeval tv = { 0 }; long r = DTLSv1_get_timeout(ssl, &tv); if (r == 1) { if (ptv_sec) { *ptv_sec = tv.tv_sec; } if (ptv_usec) { *ptv_usec = tv.tv_usec; } } return r; } #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 static const long Cryptography_HAS_SIGALGS = 0; const int (*SSL_get_sigalgs)(SSL *, int, int *, int *, int *, unsigned char *, unsigned char *) = NULL; const long (*SSL_CTX_set1_sigalgs_list)(SSL_CTX *, const char *) = NULL; #else static const long Cryptography_HAS_SIGALGS = 1; #endif #if CRYPTOGRAPHY_IS_LIBRESSL static const long Cryptography_HAS_PSK = 0; int (*SSL_CTX_use_psk_identity_hint)(SSL_CTX *, const char *) = NULL; void (*SSL_CTX_set_psk_server_callback)(SSL_CTX *, unsigned int (*)( SSL *, const char *, unsigned char *, unsigned int )) = NULL; void (*SSL_CTX_set_psk_client_callback)(SSL_CTX *, unsigned int (*)( SSL *, const char *, char *, unsigned int, unsigned char *, unsigned int )) = NULL; #else static const long Cryptography_HAS_PSK = 1; #endif /* * Custom extensions were added in 1.0.2. 1.1.1 is adding a more general * SSL_CTX_add_custom_ext function, but we're not binding that yet. */ #if CRYPTOGRAPHY_OPENSSL_102_OR_GREATER static const long Cryptography_HAS_CUSTOM_EXT = 1; #else static const long Cryptography_HAS_CUSTOM_EXT = 0; typedef int (*custom_ext_add_cb)(SSL *, unsigned int, const unsigned char **, size_t *, int *, void *); typedef void (*custom_ext_free_cb)(SSL *, unsigned int, const unsigned char *, void *); typedef int (*custom_ext_parse_cb)(SSL *, unsigned int, const unsigned char *, size_t, int *, void *); int (*SSL_CTX_add_client_custom_ext)(SSL_CTX *, unsigned int, custom_ext_add_cb, custom_ext_free_cb, void *, custom_ext_parse_cb, void *) = NULL; int (*SSL_CTX_add_server_custom_ext)(SSL_CTX *, unsigned int, custom_ext_add_cb, custom_ext_free_cb, void *, custom_ext_parse_cb, void *) = NULL; int (*SSL_extension_supported)(unsigned int) = NULL; #endif #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 && !CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER int (*SSL_CIPHER_is_aead)(const SSL_CIPHER *) = NULL; int (*SSL_CIPHER_get_cipher_nid)(const SSL_CIPHER *) = NULL; int (*SSL_CIPHER_get_digest_nid)(const SSL_CIPHER *) = NULL; int (*SSL_CIPHER_get_kx_nid)(const SSL_CIPHER *) = NULL; int (*SSL_CIPHER_get_auth_nid)(const SSL_CIPHER *) = NULL; static const long Cryptography_HAS_CIPHER_DETAILS = 0; #else static const long Cryptography_HAS_CIPHER_DETAILS = 1; #endif """ <file_sep># Abstract protocols and transports ## Overview Until now protocol implementations in lws have been done directly to the network-related apis inside lws. In an effort to separate out completely network implementation details from protocol specification, lws now supports "abstract protocols" and "abstract transports". ![lws_abstract overview](/doc-assets/abstract-overview.svg) The concept is that the implementation is split into two separate chunks of code hidden behind "ops" structs... the "abstract protocol" implementation is responsible for the logical protocol operation and reads and writes only memory buffers. The "abstract transport" implementation is responsible for sending and receiving buffers on some kind of transport, and again is hidden behind a standardized ops struct. In the system, both the abstract protocols and transports are found by their name. An actual "connection" is created by calling a generic api `lws_abs_bind_and_create_instance()` to instantiate the combination of a protocol and a transport. This makes it possible to confidently offer the same protocol on completely different transports, eg, like serial, or to wire up the protocol implementation to a test jig sending canned test vectors and confirming the response at buffer level, without any network. The abstract protocol itself has no relationship to the transport at all and is completely unchanged by changes to the transport. In addition, generic tokens to control settings in both the protocol and the transport are passed in at instantiation-time, eg, controlling the IP address targeted by the transport. lws SMTP client support has been rewritten to use the new scheme, and lws provides a raw socket transport built-in. ## Public API The public api for defining abstract protocols and transports is found at - [abstract.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/abstract/abstract.h) - [protocols.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/abstract/protocols.h) - [transports.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/abstract/transports.h) ### `lws_abs_t` The main structure that defines the abstraction is `lws_abs_t`, this is a name and then pointers to the protocol and transport, optional tokens to control both the protocol and transport, and pointers to private allocations for both the protocol and transport when instantiated. The transport is selected using ``` LWS_VISIBLE LWS_EXTERN const lws_abs_transport_t * lws_abs_transport_get_by_name(const char *name); ``` and similarly the protocol by ``` LWS_VISIBLE LWS_EXTERN const lws_abs_protocol_t * lws_abs_protocol_get_by_name(const char *name); ``` At the moment only "`raw-skt`" is defined as an lws built-in, athough you can also create your own mock transport the same way for creating test jigs. |transport op|meaning| |---|---| |`tx()`|transmit a buffer| |`client_conn()`|start a connection to a peer| |`close()`|request to close the connection to a peer| |`ask_for_writeable()`|request a `writeable()` callback when tx can be used| |`set_timeout()`|set a timeout that will close the connection if reached| |`state()`|check if the connection is established and can carry traffic| These are called by the protocol to get things done and make queries through the abstract transport. |protocol op|meaning| |---|---| |`accept()`|The peer has accepted the transport connection| |`rx()`|The peer has sent us some payload| |`writeable()`|The connection to the peer can take more tx| |`closed()`|The connection to the peer has closed| |`heartbeat()`|Called periodically even when no network events| These are called by the transport to inform the protocol of events and traffic. ### Instantiation The user fills an lws_abs_t and passes a pointer to it to `lws_abs_bind_and_create_instance()` to create an instantiation of the protocol + transport. ### `lws_token_map_t` The abstract protocol has no idea about a network or network addresses or ports or whatever... it may not even be hooked up to one. If the transport it is bound to wants things like that, they are passed in using an array of `lws_token_map_t` at instantiation time. For example this is passed to the raw socket protocol in the smtp client minimal example to control where it would connect to: ``` static const lws_token_map_t smtp_abs_tokens[] = { { .u = { .value = "127.0.0.1" }, .name_index = LTMI_PEER_DNS_ADDRESS, }, { .u = { .lvalue = 25l }, .name_index = LTMI_PEER_PORT, }}; ``` ## Steps for adding new abstract protocols - add the public header in `./include/libwebsockets/abstract/protocols/` - add a directory under `./lib/abstract/protocols/` - add your protocol sources in the new directory - in CMakeLists.txt: - add an `LWS_WITH_xxx` for your protocol - search for "using any abstract protocol" and add your `LWS_WITH_xxx` to the if so it also sets `LWS_WITH_ABSTRACT` if any set - add a clause to append your source to SOURCES if `LWS_WITH_xxx` enabled - add your `lws_abs_protocol` to the list `available_abs_protocols` in `./lib/abstract/abstract.c` ## Steps for adding new abstract transports - add the public header in `./include/libwebsockets/abstract/transports/` - add your transport sources under `./lib/abstract/transports/` - in CMakeLists.txt append your transport sources to SOURCES if `LWS_WITH_ABSTRACT` and any other cmake conditionals - add an extern for your transport `lws_protocols` in `./lib/core-net/private.h` - add your transport `lws_protocols` to `available_abstract_protocols` in `./lib/core-net/vhost.c` - add your `lws_abs_transport` to the list `available_abs_transports` in `./lib/abstract/abstract.c` # Protocol testing ## unit tests lws features an abstract transport designed to facilitate unit testing. This contains an lws_sequencer that performs the steps of tests involving sending the protocol test vector buffers and confirming the response of the protocol matches the test vectors. ## test-sequencer test-sequencer is a helper that sequences running an array of unit tests and collects the statistics and gives a PASS / FAIL result. See the SMTP client api test for an example of how to use. <file_sep># `lws_sul` scheduler api Since v3.2 lws no longer requires periodic checking for timeouts and other events. A new system was refactored in where future events are scheduled on to a single, unified, sorted linked-list in time order, with everything at us resolution. This makes it very cheap to know when the next scheduled event is coming and restrict the poll wait to match, or for event libraries set a timer to wake at the earliest event when returning to the event loop. Everything that was checked periodically was converted to use `lws_sul` and schedule its own later event. The end result is when lws is idle, it will stay asleep in the poll wait until a network event or the next scheduled `lws_sul` event happens, which is optimal for power. # Side effect for older code If your older code uses `lws_service_fd()`, it used to be necessary to call this with a NULL pollfd periodically to indicate you wanted to let the background checks happen. `lws_sul` eliminates the whole concept of periodic checking and NULL is no longer a valid pollfd value for this and related apis. # Using `lws_sul` in user code See `minimal-http-client-multi` for an example of using the `lws_sul` scheduler from your own code; it uses it to spread out connection attempts so they are staggered in time. You must create an `lws_sorted_usec_list_t` object somewhere, eg, in you own existing object. ``` static lws_sorted_usec_list_t sul_stagger; ``` Create your own callback for the event... the argument points to the sul object used when the callback was scheduled. You can use pointer arithmetic to translate that to your own struct when the `lws_sorted_usec_list_t` was a member of the same struct. ``` static void stagger_cb(lws_sorted_usec_list_t *sul) { ... } ``` When you want to schedule the callback, use `lws_sul_schedule()`... this will call it 10ms in the future ``` lws_sul_schedule(context, 0, &sul_stagger, stagger_cb, 10 * LWS_US_PER_MS); ``` In the case you destroy your object and need to cancel the scheduled callback, use ``` lws_sul_schedule(context, 0, &sul_stagger, NULL, LWS_SET_TIMER_USEC_CANCEL); ``` <file_sep># lws minimal example for JWE Demonstrates how to encrypt and decrypt using JWE and JWK, providing a commandline tool for creating encrypted JWE and decoding them. ## build ``` $ cmake . && make ``` ## usage Stdin is either the plaintext (if encrypting) or JWE (if decrypting). Stdout is either the JWE (if encrypting) or plaintext (if decrypting). You must pass a private or public key JWK file in the -k option if encrypting, and must pass a private key JWK file in the -k option if decrypting. To be clear, for asymmetric keys the public part of the key is required to encrypt, and the private part required to decrypt. For convenience, a pair of public and private keys are provided, `key-rsa-4096.private` and `key-rsa-4096.pub`, these were produced with just ``` $ lws-crypto-jwk -t RSA -b 4096 --public key-rsa-4096.pub >key-rsa-4096.private ``` Similar keys for EC modes may be produced with ``` $ lws-crypto-jwk -t EC -v P-256 --public key-ecdh-p-256.pub >key-ecdh-p-256.private ``` and for AES ("octet") symmetric keys ``` $ lws-crypto-jwk -t OCT -b 128 >key-aes-128.private ``` JWEs produced with openssl and mbedtls backends are completely interchangeable. Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -e "<cek cipher alg> <payload enc alg>"|Encrypt (default is decrypt), eg, -e "RSA1_5 A128CBC-HS256". For decrypt, the cipher information comes from the input JWE. -k <jwk file>|JWK file to encrypt or decrypt with -c|Format the JWE as a linebroken C string -f|Output flattened representation (instead of compact by default) ``` $ echo -n "plaintext0123456" | ./lws-crypto-jwe -k key-rsa-4096.private -e "RSA1_5 <KEY>" [2018/12/19 16:20:25:6519] USER: LWS JWE example tool [2018/12/19 16:20:25:6749] NOTICE: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off <KEY> ``` Notice the logging is on stderr, and the output alone on stdout. You can also pipe the output of the encrypt action directly into the decrypt action, eg ``` $ echo -n "plaintext0123456" | \ ./lws-crypto-jwe -k key-rsa-4096.pub -e "RSA1_5 A128CBC-HS256" | \ ./lws-crypto-jwe -k key-rsa-4096.private ``` prints the plaintext on stdout. <file_sep># lws minimal ws server raw proxy This demonstrates how a vhost can be bound to a specific role and protocol, with the example using a lws plugin that performs raw packet proxying. By default the example will proxy 127.0.0.1:22, usually your ssh server listen port, on 127.0.0.1:7681. You should be able to ssh into port 7681 the same as you can port 22. But your ssh server is only listening on port 22... ## build To build this standalone, you must tell cmake where the lws source tree ./plugins directory can be found, since it relies on including the source of the raw-proxy plugin. ``` $ cmake . -DLWS_PLUGINS_DIR=~/libwebsockets/plugins && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -r ipv4:address:port|Configure the remote IP and port that will be proxied, by default ipv4:127.0.0.1:22 ``` $ ./lws-minimal-raw-proxy [2018/11/30 19:22:35:7290] USER: LWS minimal raw proxy | nc localhost 7681 [2018/11/30 19:22:35:7291] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/11/30 19:22:35:7336] NOTICE: callback_raw_proxy: onward ipv4 127.0.0.1:22 ... ``` ``` $ ssh -p7681 me@127.0.0.1 Last login: Fri Nov 30 19:29:23 2018 from 127.0.0.1 [me@learn ~]$ ``` <file_sep>/** @file rwsp_type.h * NOJA Relay WebSockets Protocol type declration * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _RWSP_TYPE_H #define _RWSP_TYPE_H #include "cJSON.h" /** @ingroup group_prot_apis * @brief Relay WebSockets Protocol data buffer pointer */ typedef unsigned char* RwspData; /** @ingroup group_prot_apis * @brief Relay WebSockets Protocol data buffer size */ typedef unsigned short RwspDataSize; /** @ingroup group_prot_apis * @brief Relay WebSockets Protocol connection context */ typedef struct RwspCtx_St RwspCtx; /** @ingroup group_main_apis * @brief Relay WebSockets Protocol errors */ typedef enum RwspErrors_e RwspErrors; /** @ingroup group_main_apis * @brief Relay WebSockets Protocol content types */ typedef enum RwspContentTypes_e RwspContentTypes; /** @ingroup group_prot_apis * @brief Relay WebSockets Protocol message reception callback function * * Callback function the Relay WebSockets Protocol will call when message is received for the subprotocol. * * @param[in] context Defines the attribute of the communication channel where the message was recieved. * @param[in] data Buffer to the data to send. This buffer is returned by the decode callback function it is assumed * the subprotocol will free this buffer if required. * @param[in] size Specify the size of the data pointed by data buffer. * * @return NwsError_Ok if no error occured * @return NwsError_Ng General error occured */ typedef RwspErrors (*RwspRcvdCb)(RwspCtx *context, RwspData data, RwspDataSize size); /** @ingroup group_prot_apis * @brief Convert the subprotocol data into JSON compatible string data * * Relay WebSockets Protocol callback to convert subprotocol specific data into CJSON library JSON object. * * @param[in] buffer Buffer to the byte stream to convert. Callback should not free this buffer. * @param[in] size Specify the size of the data pointed by buffer * @param[out] content Converted data in CJSON library JSON object. See https://github.com/DaveGamble/cJSON for details. * of CJSON library. This resource will be freed by the Relay WebSockets Protocol implementation using the CJSON * cJSON_Delete function. * @param[out] contentType Specify the type of the encoded data. * * @return NwsError_Ok if no error occured * @return NwsError_Ng General error occured */ typedef RwspErrors (*RwspEncCb)(RwspData buffer, RwspDataSize size, cJSON **json); /** @ingroup group_prot_apis * @brief Convert the JSON string data * * Relay WebSockets Protocol callback to CJSON Library JSON object into the subprotocol specific data format. * * @param[in] json Pointer to the cJSON library JSON object. See https://github.com/DaveGamble/cJSON for details. This callback * should not free this object. * @param[in] contentType Specify the content type of the JSON object. * @param[out] buffer Buffer to the byte stream to convert. This buffer will be send to the subprotocol for handling and * assumed the subprotocol will handle any freeing needed for this buffer. * @param[out] size Specify the size of the data pointed by buffer. * * @return NwsError_Ok if no error occured * @return NwsError_Ng General error occured */ typedef RwspErrors (*RwspDecCb)(cJSON *json, RwspData *buffer, RwspDataSize *size); /** @ingroup group_prot_apis * @brief Convert the JSON string data */ typedef RwspErrors (*RwspFreeCb)(RwspData buffer, RwspDataSize size); /** @ingroup group_prot_apis * @brief Relay WebSockets Protocol connection context * * This structure contained the required information identifying the * WebSocket channel who own the request. */ struct RwspCtx_St { unsigned char dummy; }; /** @ingroup group_prot_apis * @brief Relay WebSockets Protocol errors * * The following enum is a list of Relay WebSockets Protocol error codes */ enum RwspErrors_e { /** No error occured */ RwspError_Ok, /** Subprotocol name already exists */ RwspError_Name, /** the specified context is either invalid or the channel is already disconnected */ RwspError_InvalidContext, /** The client didn't confirm the reception of the message and the Relay WebSockets * Protocol giveup waiting for confirmation. */ RwspError_Timeout, /** No active connection is present for this subprotocol. */ RwspError_NoConnection, /** General error occurred */ RwspError_Ng }; /** @ingroup group_main_apis * @brief Relay WebSockets Protocol content types * * Relay Websockets Protocol content-types enumeration */ enum RwspContentTypes_e { /* Content is in JSON object format (i.e application/json) */ RwspContentType_Object, /* Content is in bas64 format (i.e application/octet-stream) */ RwspContentType_OctetStream, /* Content is in text format (i.e plain/text) */ RwspContentType_Text }; #endif <file_sep># lws minimal dbus ws proxy This is an application which presents a DBUS server on one side, and a websocket client proxy on the other. You connect to it over DBUS, send a Connect method on its interface giving a URI and a ws subprotocol name. It replies with a string "Connecting" if all is well. Connection progress (including close) is then provided using type 7 messages sent back to the dbus client. Payload from the ws connection is provided using type 6 messages sent back to the dbus client. ## build Using libdbus requires additional non-default include paths setting, same as is necessary for lws build described in ./lib/roles/dbus/README.md CMake can guess one path and the library name usually, see the README above for details of how to override for custom libdbus and cross build. Fedora example: ``` $ cmake .. -DLWS_DBUS_INCLUDE2="/usr/lib64/dbus-1.0/include" $ make ``` Ubuntu example: ``` $ cmake .. -DLWS_DBUS_INCLUDE2="/usr/lib/x86_64-linux-gnu/dbus-1.0/include" $ make ``` ## Configuration The dbus-ws-proxy server tries to register its actual bus name with the SYSTEM bus in DBUS. If it fails, eg because of insufficient permissions on the user, then it continues without that and starts its own daemon normally. The main dbus daemon must be told how to accept these registrations if that's what you want. A config file is provided that tells dbus to allow the well-known busname for this daemon to be registered, but only by root. ``` $ sudo cp org.libwebsockets.wsclientproxy.conf /etc/dbus-1/system.d $ sudo systemctl restart dbus ``` ## usage Run the dbus-ws-proxy server, then start lws-minimal-dbus-ws-proxy-testclient in another terminal. This test app sends a random line drawing message to the mirror example on https://libwebsockets.org/testserver every couple of seconds, and displays any received messages (such as its own sends mirrored back, or anything drawn in the canvas in a browser). ``` $ sudo ./lws-minimal-dbus-ws-proxy-testclient [2018/10/07 10:05:29:2084] USER: LWS minimal DBUS ws proxy testclient [2018/10/07 10:05:29:2345] NOTICE: Creating Vhost 'default' port 0, 1 protocols, IPv6 off [2018/10/07 10:05:29:2424] USER: create_dbus_client_conn: connecting to 'unix:abstract=org.libwebsockets.wsclientproxy' [2018/10/07 10:05:29:2997] NOTICE: state_transition: 0x5679720: from state 0 -> 1 [2018/10/07 10:05:29:2999] NOTICE: create_dbus_client_conn: created OK [2018/10/07 10:05:29:3232] USER: remote_method_call: requesting proxy connection wss://libwebsockets.org/ lws-mirror-protocol [2018/10/07 10:05:29:3450] NOTICE: state_transition: 0x5679720: from state 1 -> 2 [2018/10/07 10:05:29:5972] USER: pending_call_notify: received 'Connecting' [2018/10/07 10:05:31:3387] NOTICE: state_transition: 0x5679720: from state 2 -> 3 [2018/10/07 10:05:33:6672] USER: filter: Received 'd #B0DC51 115 177 166 283;' [2018/10/07 10:05:35:9723] USER: filter: Received 'd #E87CCD 9 192 106 235;' [2018/10/07 10:05:38:2784] USER: filter: Received 'd #E2A9E3 379 290 427 62;' [2018/10/07 10:05:39:5833] USER: filter: Received 'd #B127F8 52 126 60 226;' [2018/10/07 10:05:41:8908] USER: filter: Received 'd #0E0F76 429 267 8 11;' ... ``` ## ws proxy DBUS details ### Fixed details Item|Value ---|--- Address|unix:abstract=org.libwebsockets.wsclientproxy Interface|org.libwebsockets.wsclientproxy Bus Name|org.libwebsockets.wsclientproxy Object path|/org/libwebsockets/wsclientproxy ### Interface Methods Method|Arguments|Returns ---|---|--- Connect|s: ws URI, s: ws subprotocol name|"Bad Uri", "Connecting" or "Failed" Send|s: payload|Empty message if no problem, or error message When Connecting, the actual connection happens asynchronously if the initial connection attempt doesn't fail immediately. If it's continuing in the background, the reply will have been "Connecting". ### Signals Signal Name|Argument|Meaning ---|---|--- Receive|s: payload|Received data from the ws link Status|s: status|See table below Status String|Meaning ---|--- "ws client connection error"|The ws connection attempt ended with a fatal error "ws client connection established"|The ws connection attempt succeeded "ws client connection closed"|The ws connection has closed <file_sep># LWS Full Text Search ## Introduction ![lwsac flow](/doc-assets/lws-fts.svg) The general approach is to scan one or more UTF-8 input text "files" (they may only exist in memory) and create an in-memory optimized trie for every token in the file. This can then be serialized out to disk in the form of a single index file (no matter how many input files were involved or how large they were). The implementation is designed to be modest on memory and cpu for both index creation and querying, and suitable for weak machines with some kind of random access storage. For searching only memory to hold results is required, the actual searches and autocomplete suggestions are done very rapidly by seeking around structures in the on-disk index file. Function|Related Link ---|--- Public API|[include/libwebsockets/lws-fts.h](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-fts.h) CI test app|[minimal-examples/api-tests/api-test-fts](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-tests/api-test-fts) Demo minimal example|[minimal-examples/http-server/minimal-http-server-fulltext-search](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/http-server/minimal-http-server-fulltext-search) Live Demo|[https://libwebsockets.org/ftsdemo/](https://libwebsockets.org/ftsdemo/) ## Query API overview Searching returns a potentially very large lwsac allocated object, with contents and max size controlled by the members of a struct lws_fts_search_params passed to the search function. Three kinds of result are possible: ### Autocomplete suggestions These are useful to provide lists of extant results in realtime as the user types characters that constrain the search. So if the user has typed 'len', any hits for 'len' itself are reported along with 'length', and whatever else is in the index beginning 'len'.. The results are selected using and are accompanied by an aggregated count of results down that path, and the results so the "most likely" results already measured by potential hits appear first. These results are in a linked-list headed by `result.autocomplete_head` and each is in a `struct lws_fts_result_autocomplete`. They're enabled in the search results by giving the flag `LWSFTS_F_QUERY_AUTOCOMPLETE` in the search parameter flags. ### Filepath results Simply a list of input files containing the search term with some statistics, one file is mentioned in a `struct lws_fts_result_filepath` result struct. This would be useful for creating a selection UI to "drill down" to individual files when there are many with matches. This is enabled by the `LWSFTS_F_QUERY_FILES` search flag. ### Filepath and line results Same as the file path list, but for each filepath, information on the line numbers and input file offset where the line starts are provided. This is enabled by `LWSFTS_F_QUERY_FILE_LINES`... if you additionally give `LWSFTS_F_QUERY_QUOTE_LINE` flag then the contents of each hit line from the input file are also provided. ## Result format inside the lwsac A `struct lws_fts_result` at the start of the lwsac contains heads for linked- lists of autocomplete and filepath results inside the lwsac. For autocomplete suggestions, the string itself is immediately after the `struct lws_fts_result_autocomplete` in memory. For filepath results, after each `struct lws_fts_result_filepath` is - match information depending on the flags given to the search - the filepath string You can always skip the line number table to get the filepath string by adding .matches_length to the address of the byte after the struct. The matches information is either - 0 bytes per match - 2x int32_t per match (8 bytes) if `LWSFTS_F_QUERY_FILE_LINES` given... the first is the native-endian line number of the match, the second is the byte offset in the original file where that line starts - 2 x int32_t as above plus a const char * if `LWSFTS_F_QUERY_QUOTE_LINE` is also given... this points to a NUL terminated string also stored in the results lwsac that contains up to 255 chars of the line from the original file. In some cases, the original file was either virtual (you are indexing a git revision) or is not stored with the index, in that case you can't usefully use `LWSFTS_F_QUERY_QUOTE_LINE`. To facilitate interpreting what is stored per match, the original search flags that created the result are stored in the `struct lws_fts_result`. ## Indexing In-memory and serialized to file When creating the trie, in-memory structs are used with various optimization schemes trading off memory usage for speed. While in-memory, it's possible to add more indexed filepaths to the single index. Once the trie is complete in terms of having indexed everything, it is serialized to disk. These contain many additional housekeeping pointers and trie entries which can be optimized out. Most in-memory values must be held literally in large types, whereas most of the values in the serialized file use smaller VLI which use more or less bytes according to the value. So the peak memory requirements for large tries are much bigger than the size of the serialized trie file that is output. For the linux kernel at 4.14 and default indexing whitelist on a 2.8GHz AMD threadripper (using one thread), the stats are: Name|Value ---|--- Files indexed|52932 Input corpus size|694MiB Indexing cpu time|50.1s (>1000 files / sec; 13.8MBytes/sec) Peak alloc|78MiB Serialization time|202ms Trie File size|347MiB To index libwebsockets master under the same conditions: Name|Value ---|--- Files indexed|489 Input corpus size|3MiB Indexing time|123ms Peak alloc|3MiB Serialization time|1ms Trie File size|1.4MiB Once it's generated, querying the trie file is very inexpensive, even when there are lots of results. - trie entry child lists are kept sorted by the character they map to. This allows discovering there is no match as soon as a character later in the order than the one being matched is seen - for the root trie, in addition to the linked-list child + sibling entries, a 256-entry pointer table is associated with the root trie, allowing one- step lookup. But as the table is 2KiB, it's too expensive to use on all trie entries ## Structure on disk All explicit multibyte numbers are stored in Network (MSB-first) byte order. - file header - filepath line number tables - filepath information - filepath map table - tries, trie instances (hits), trie child tables ### VLI coding VLI (Variable Length Integer) coding works like this [b7 EON] [b6 .. b0 DATA] If EON = 0, then DATA represents the Least-significant 7 bits of the number. if EON = 1, DATA represents More-significant 7-bits that should be shifted left until the byte with EON = 0 is found to terminate the number. The VLI used is predicated around 32-bit unsigned integers Examples: - 0x30 = 48 - 0x81 30 = 176 - 0x81 0x80 0x00 = 16384 Bytes | Range ---|--- 1|<= 127 2|<= 16K - 1 3|<= 2M -1 4|<= 256M - 1 5|<= 4G - 1 The coding is very efficient if there's a high probabilty the number being stored is not large. So it's great for line numbers for example, where most files have less that 16K lines and the VLI for the line number fits in 2 bytes, but if you meet a huge file, the VLI coding can also handle it. All numbers except a few in the headers that are actually written after the following data are stored using VLI for space- efficiency without limiting capability. The numbers that are fixed up after the fact have to have a fixed size and can't use VLI. ### File header The first byte of the file header where the magic is, is "fileoffset" 0. All the stored "fileoffset"s are relative to that. The header has a fixed size of 16 bytes. size|function ---|--- 32-bits|Magic 0xCA7A5F75 32-bits|Fileoffset to root trie entry 32-bits|Size of the trie file when it was created (to detect truncation) 32-bits|Fileoffset to the filepath map 32-bits|Number of filepaths ### Filepath line tables Immediately after the file header are the line length tables. As the input files are parsed, line length tables are written for each file... at that time the rest of the parser data is held in memory so nothing else is in the file yet. These allow you to map logical line numbers in the file to file offsets space- and time- efficiently without having to walk through the file contents. The line information is cut into blocks, allowing quick skipping over the VLI data that doesn't contain the line you want just by following the 8-byte header part. Once you find the block with your line, you have to iteratively add the VLIs until you hit the one you want. For normal text files with average line length below 128, the VLIs will typically be a single byte. So a block of 200 line lengths is typically 208 bytes long. There is a final linetable chunk consisting of all zeros to indicate the end of the filepath line chunk series for a filepath. size|function ---|--- 16-bit|length of this chunk itself in bytes 16-bit|count of lines covered in this chunk 32-bit|count of bytes in the input file this chunk covers VLI...|for each line in the chunk, the number of bytes in the line ### Filepaths The single trie in the file may contain information from multiple files, for example one trie may cover all files in a directory. The "Filepaths" are listed after the line tables, and referred to by index thereafter. For each filepath, one after the other: size|function ---|--- VLI|fileoffset of the start of this filepath's line table VLI|count of lines in the file VLI|length of filepath in bytes ...|the filepath (with no NUL) ### Filepath map To facilitate rapid filepath lookup, there's a filepath map table with a 32-bit fileoffset per filepath. This is the way to convert filepath indexes to information on the filepath like its name, etc size|function ---|--- 32-bit...|fileoffset to filepath table for each filepath ### Trie entries Immediately after that, the trie entries are dumped, for each one a header: #### Trie entry header size|function ---|--- VLI|Fileoffset of first file table in this trie entry instance list VLI|number of child trie entries this trie entry has VLI|number of instances this trie entry has The child list follows immediately after this header #### Trie entry instance file For each file that has instances of this symbol: size|function ---|--- VLI|Fileoffset of next file table in this trie entry instance list VLI|filepath index VLI|count of line number instances following #### Trie entry file line number table Then for the file mentioned above, a list of all line numbers in the file with the symbol in them, in ascending order. As a VLI, the median size per entry will typically be ~15.9 bits due to the probability of line numbers below 16K. size|function ---|--- VLI|line number ... #### Trie entry child table For each child node size|function ---|--- VLI|file offset of child VLI|instance count belonging directly to this child VLI|aggregated number of instances down all descendent paths of child VLI|aggregated number of children down all descendent paths of child VLI|match string length ...|the match string <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #if !defined(OPENSSL_NO_CMAC) #include <openssl/cmac.h> #endif """ TYPES = """ static const int Cryptography_HAS_CMAC; typedef ... CMAC_CTX; """ FUNCTIONS = """ CMAC_CTX *CMAC_CTX_new(void); int CMAC_Init(CMAC_CTX *, const void *, size_t, const EVP_CIPHER *, ENGINE *); int CMAC_Update(CMAC_CTX *, const void *, size_t); int CMAC_Final(CMAC_CTX *, unsigned char *, size_t *); int CMAC_CTX_copy(CMAC_CTX *, const CMAC_CTX *); void CMAC_CTX_free(CMAC_CTX *); """ CUSTOMIZATIONS = """ static const long Cryptography_HAS_CMAC = 1; """ <file_sep> # Specify the include directory for CLIPS header file CFLAGS += -I$(ROOTDIR)/user/libwebserver/webserver # Library linker flag. LDLIBS += -lwebserver # Business rules currently required libdbapi. libdbapi required the # other libraries included here. libdbapi should create its own include # make file LDLIBS += -ldbapi -lnojacore -llog -lutils -lpowersystems -lm -lrt <file_sep># lws minimal ws proxy ## Build ``` $ cmake . && make ``` ## Description This is the same as minimal-ws-server-ring, but with the inclusion of a ws client connection to https://libwebsockets.org using the dumb-increment protocol feeding the ringbuffer. Each client that connect to this server receives the content that had arrived on the client connection feeding the ringbuffer proxied to their browser window over a ws connection. ## Usage ``` $ ./lws-minimal-ws-proxy [2018/03/14 17:50:10:6938] USER: LWS minimal ws proxy | visit http://localhost:7681 [2018/03/14 17:50:10:6955] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off [2018/03/14 17:50:10:6955] NOTICE: Using non-SSL mode [2018/03/14 17:50:10:7035] NOTICE: created client ssl context for default [2018/03/14 17:50:11:7047] NOTICE: binding to lws-minimal-proxy [2018/03/14 17:50:11:7047] NOTICE: lws_client_connect_2: 0x872e60: address libwebsockets.org [2018/03/14 17:50:12:3282] NOTICE: lws_client_connect_2: 0x872e60: address libwebsockets.org [2018/03/14 17:50:13:8195] USER: callback_minimal: established ``` Visit http://localhost:7681 on multiple browser windows Data received on the remote wss connection is copied to all open browser windows. A ringbuffer holds up to 8 lines of text in the server, and the browser shows the last 20 lines of received text. <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import os import pytest from cryptography.hazmat.backends.interfaces import HMACBackend from cryptography.hazmat.primitives import hashes from .utils import generate_hkdf_test from ...utils import load_nist_vectors @pytest.mark.supported( only_if=lambda backend: backend.hmac_supported(hashes.SHA1()), skip_message="Does not support SHA1." ) @pytest.mark.requires_backend_interface(interface=HMACBackend) class TestHKDFSHA1(object): test_HKDFSHA1 = generate_hkdf_test( load_nist_vectors, os.path.join("KDF"), ["rfc-5869-HKDF-SHA1.txt"], hashes.SHA1() ) @pytest.mark.supported( only_if=lambda backend: backend.hmac_supported(hashes.SHA256()), skip_message="Does not support SHA256." ) @pytest.mark.requires_backend_interface(interface=HMACBackend) class TestHKDFSHA256(object): test_HKDFSHA1 = generate_hkdf_test( load_nist_vectors, os.path.join("KDF"), ["rfc-5869-HKDF-SHA256.txt"], hashes.SHA256() ) <file_sep> /* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * Included from lib/private-lib-core.h if no explicit platform */ #include <fcntl.h> #include <strings.h> #include <unistd.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <poll.h> #include <netdb.h> #ifndef __cplusplus #include <errno.h> #endif #include <netdb.h> #include <signal.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/mman.h> #include <sys/un.h> #if defined(LWS_HAVE_EVENTFD) #include <sys/eventfd.h> #endif #if defined(__APPLE__) #include <machine/endian.h> #endif #if defined(__FreeBSD__) #include <sys/endian.h> #endif #if defined(__linux__) #include <endian.h> #include <linux/if_packet.h> #include <net/if.h> #endif #if defined(__QNX__) #include <gulliver.h> #if defined(__LITTLEENDIAN__) #define BYTE_ORDER __LITTLEENDIAN__ #define LITTLE_ENDIAN __LITTLEENDIAN__ #define BIG_ENDIAN 4321 /* to show byte order (taken from gcc); for suppres warning that BIG_ENDIAN is not defined. */ #endif #if defined(__BIGENDIAN__) #define BYTE_ORDER __BIGENDIAN__ #define LITTLE_ENDIAN 1234 /* to show byte order (taken from gcc); for suppres warning that LITTLE_ENDIAN is not defined. */ #define BIG_ENDIAN __BIGENDIAN__ #endif #endif #if defined(__sun) && defined(__GNUC__) #include <arpa/nameser_compat.h> #if !defined (BYTE_ORDER) #define BYTE_ORDER __BYTE_ORDER__ #endif #if !defined(LITTLE_ENDIAN) #define LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__ #endif #if !defined(BIG_ENDIAN) #define BIG_ENDIAN __ORDER_BIG_ENDIAN__ #endif #endif /* sun + GNUC */ #if !defined(BYTE_ORDER) #define BYTE_ORDER __BYTE_ORDER #endif #if !defined(LITTLE_ENDIAN) #define LITTLE_ENDIAN __LITTLE_ENDIAN #endif #if !defined(BIG_ENDIAN) #define BIG_ENDIAN __BIG_ENDIAN #endif #if defined(LWS_BUILTIN_GETIFADDRS) #include "./misc/getifaddrs.h" #else #if defined(__HAIKU__) #define _BSD_SOURCE #endif #include <ifaddrs.h> #endif #if defined (__sun) || defined(__HAIKU__) || defined(__QNX__) || defined(__ANDROID__) #include <syslog.h> #if defined(__ANDROID__) #include <sys/resource.h> #endif #else #include <sys/syslog.h> #endif #ifdef __QNX__ # include "netinet/tcp_var.h" # define TCP_KEEPINTVL TCPCTL_KEEPINTVL # define TCP_KEEPIDLE TCPCTL_KEEPIDLE # define TCP_KEEPCNT TCPCTL_KEEPCNT #endif #define LWS_ERRNO errno #define LWS_EAGAIN EAGAIN #define LWS_EALREADY EALREADY #define LWS_EINPROGRESS EINPROGRESS #define LWS_EINTR EINTR #define LWS_EISCONN EISCONN #define LWS_ENOTCONN ENOTCONN #define LWS_EWOULDBLOCK EWOULDBLOCK #define LWS_EADDRINUSE EADDRINUSE #define lws_set_blocking_send(wsi) #define LWS_SOCK_INVALID (-1) struct lws_context; struct lws * wsi_from_fd(const struct lws_context *context, int fd); int insert_wsi(const struct lws_context *context, struct lws *wsi); int lws_plat_ifconfig_ip(const char *ifname, int fd, uint8_t *ip, uint8_t *mask_ip, uint8_t *gateway_ip); void delete_from_fd(const struct lws_context *context, int fd); #ifndef LWS_NO_FORK #ifdef LWS_HAVE_SYS_PRCTL_H #include <sys/prctl.h> #endif #endif #define compatible_close(x) close(x) #define lws_plat_socket_offset() (0) /* * Mac OSX as well as iOS do not define the MSG_NOSIGNAL flag, * but happily have something equivalent in the SO_NOSIGPIPE flag. */ #ifdef __APPLE__ #define MSG_NOSIGNAL SO_NOSIGPIPE #endif /* * Solaris 11.X only supports POSIX 2001, MSG_NOSIGNAL appears in * POSIX 2008. */ #if defined(__sun) && !defined(MSG_NOSIGNAL) #define MSG_NOSIGNAL 0 #endif int lws_plat_BINDTODEVICE(int fd, const char *ifname); int lws_plat_rawudp_broadcast(uint8_t *p, const uint8_t *canned, int canned_len, int n, int fd, const char *iface); int lws_plat_if_up(const char *ifname, int fd, int up); <file_sep>## Contributing to lws ### How to contribute Sending a patch with a bug report is very welcome. For nontrivial problems, it's probably best to discuss on the mailing list, or on github if you prefer, how to best solve it. However your contribution is coming is fine: - paste a `git diff` - send a patch series by mail or mailing list - paste in a github issue - github PR are all OK. ### Coding Standards Code should look roughly like the existing code, which follows linux kernel coding style. If there are non-functional problems I will clean them out when I apply the patch. If there are functional problems (eg broken error paths etc) if they are small compared to the working part I will also clean them. If there are larger problems, or consequences to the patch will have to discuss how to solve them with a retry. ### Funding specific work If there is a feature you wish was supported in lws, consider paying for the work to be done. The maintainer is a consultant and if we can agree the task, you can quickly get a high quality result that does just what you need, maintained ongoing along with the rest of lws. <file_sep> /* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * This is included from private-lib-core.h if LWS_WITH_TLS */ struct lws_context_per_thread; struct lws_tls_ops { int (*fake_POLLIN_for_buffered)(struct lws_context_per_thread *pt); }; struct lws_context_tls { char alpn_discovered[32]; const char *alpn_default; time_t last_cert_check_s; struct lws_dll2_owner cc_owner; int count_client_contexts; }; struct lws_pt_tls { struct lws_dll2_owner dll_pending_tls_owner; }; struct lws_tls_ss_pieces; struct alpn_ctx { uint8_t data[23]; uint8_t len; }; struct lws_vhost_tls { lws_tls_ctx *ssl_ctx; lws_tls_ctx *ssl_client_ctx; const char *alpn; struct lws_tls_ss_pieces *ss; /* for acme tls certs */ char *alloc_cert_path; char *key_path; #if defined(LWS_WITH_MBEDTLS) lws_tls_x509 *x509_client_CA; #endif char ecdh_curve[16]; struct alpn_ctx alpn_ctx; int use_ssl; int allow_non_ssl_on_ssl_port; int ssl_info_event_mask; unsigned int user_supplied_ssl_ctx:1; unsigned int skipped_certs:1; }; struct lws_lws_tls { lws_tls_conn *ssl; lws_tls_bio *client_bio; struct lws_dll2 dll_pending_tls; unsigned int use_ssl; unsigned int redirect_to_https:1; }; LWS_EXTERN void lws_context_init_alpn(struct lws_vhost *vhost); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ssl_capable_read(struct lws *wsi, unsigned char *buf, int len); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ssl_capable_write(struct lws *wsi, unsigned char *buf, int len); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ssl_pending(struct lws *wsi); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_server_socket_service_ssl(struct lws *new_wsi, lws_sockfd_type accept_fd); LWS_EXTERN int lws_ssl_close(struct lws *wsi); LWS_EXTERN void lws_ssl_SSL_CTX_destroy(struct lws_vhost *vhost); LWS_EXTERN void lws_ssl_context_destroy(struct lws_context *context); void __lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi); LWS_VISIBLE void lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi); LWS_EXTERN int lws_ssl_client_bio_create(struct lws *wsi); LWS_EXTERN int lws_ssl_client_connect1(struct lws *wsi); LWS_EXTERN int lws_ssl_client_connect2(struct lws *wsi, char *errbuf, int len); LWS_EXTERN int lws_tls_fake_POLLIN_for_buffered(struct lws_context_per_thread *pt); LWS_EXTERN int lws_gate_accepts(struct lws_context *context, int on); LWS_EXTERN void lws_ssl_bind_passphrase(lws_tls_ctx *ssl_ctx, int is_client, const struct lws_context_creation_info *info); LWS_EXTERN void lws_ssl_info_callback(const lws_tls_conn *ssl, int where, int ret); LWS_EXTERN int lws_tls_server_certs_load(struct lws_vhost *vhost, struct lws *wsi, const char *cert, const char *private_key, const char *mem_cert, size_t len_mem_cert, const char *mem_privkey, size_t mem_privkey_len); LWS_EXTERN enum lws_tls_extant lws_tls_generic_cert_checks(struct lws_vhost *vhost, const char *cert, const char *private_key); #if defined(LWS_WITH_SERVER) LWS_EXTERN int lws_context_init_server_ssl(const struct lws_context_creation_info *info, struct lws_vhost *vhost); void lws_tls_acme_sni_cert_destroy(struct lws_vhost *vhost); #else #define lws_context_init_server_ssl(_a, _b) (0) #define lws_tls_acme_sni_cert_destroy(_a) #endif LWS_EXTERN void lws_ssl_destroy(struct lws_vhost *vhost); /* * lws_tls_ abstract backend implementations */ LWS_EXTERN int lws_tls_server_client_cert_verify_config(struct lws_vhost *vh); LWS_EXTERN int lws_tls_server_vhost_backend_init(const struct lws_context_creation_info *info, struct lws_vhost *vhost, struct lws *wsi); LWS_EXTERN int lws_tls_server_new_nonblocking(struct lws *wsi, lws_sockfd_type accept_fd); LWS_EXTERN enum lws_ssl_capable_status lws_tls_server_accept(struct lws *wsi); LWS_EXTERN enum lws_ssl_capable_status lws_tls_server_abort_connection(struct lws *wsi); LWS_EXTERN enum lws_ssl_capable_status __lws_tls_shutdown(struct lws *wsi); LWS_EXTERN enum lws_ssl_capable_status lws_tls_client_connect(struct lws *wsi); LWS_EXTERN int lws_tls_client_confirm_peer_cert(struct lws *wsi, char *ebuf, int ebuf_len); LWS_EXTERN int lws_tls_client_create_vhost_context(struct lws_vhost *vh, const struct lws_context_creation_info *info, const char *cipher_list, const char *ca_filepath, const void *ca_mem, unsigned int ca_mem_len, const char *cert_filepath, const void *cert_mem, unsigned int cert_mem_len, const char *private_key_filepath); LWS_EXTERN lws_tls_ctx * lws_tls_ctx_from_wsi(struct lws *wsi); LWS_EXTERN int lws_ssl_get_error(struct lws *wsi, int n); LWS_EXTERN int lws_context_init_client_ssl(const struct lws_context_creation_info *info, struct lws_vhost *vhost); LWS_EXTERN void lws_ssl_info_callback(const lws_tls_conn *ssl, int where, int ret); int lws_tls_fake_POLLIN_for_buffered(struct lws_context_per_thread *pt); <file_sep># LWS System Helpers Lws now has a little collection of helper utilities for common network-based functions necessary for normal device operation, eg, async DNS, ntpclient (necessary for tls validation), and DHCP client. ## Conventions If any system helper is enabled for build, lws creates an additional vhost "system" at Context Creation time. Wsi that are created for the system features are bound to this. In the context object, this is available as `.vhost_system`. # Attaching to an existing context from other threads To simplify the case different pieces of code want to attach to a single lws_context at runtime, from different thread contexts, lws_system has an api via an lws_system operation function pointer where the other threads can use platform-specific locking to request callbacks to their own code from the lws event loop thread context safely. For convenience, the callback can be delayed until the system has entered or passed a specified system state, eg, LWS_SYSTATE_OPERATIONAL so the code will only get called back after the network, ntpclient and auth have been done. Additionally an opaque pointer can be passed to the callback when it is called from the lws event loop context. ## Implementing the system-specific locking `lws_system_ops_t` struct has a member `.attach` ``` int (*attach)(struct lws_context *context, int tsi, lws_attach_cb_t *cb, lws_system_states_t state, void *opaque, struct lws_attach_item **get); ``` This should be defined in user code as setting locking, then passing the arguments through to a non-threadsafe helper ``` int __lws_system_attach(struct lws_context *context, int tsi, lws_attach_cb_t *cb, lws_system_states_t state, void *opaque, struct lws_attach_item **get); ``` that does the actual attach work. When it returns, the locking should be unlocked and the return passed back. ## Attaching the callback request User code should call the lws_system_ops_t `.attach` function like ``` lws_system_get_ops(context)->attach(...); ``` The callback function which will be called from the lws event loop context should look like this ``` void my_callback(struct lws_context *context, int tsi, void *opaque); ``` with the callback function name passed into the (*attach)() call above. When the callback happens, the opaque user pointer set at the (*attach)() call is passed back to it as an argument. <file_sep>/** @file noja_webserver_main.c * REL-20 Webserver daemon implementation * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #include <stdio.h> #if !defined(_MSC_VER) #include <unistd.h> #endif #include <stdlib.h> #include <limits.h> #include <signal.h> #include "noja_webserver_main.h" #include "noja_webserver.h" #include "noja_webserver_cfg.h" #include "datapointEnum.h" #if !defined(QT_CORE_LIB) #include "dbApi.h" #include "libsmp.h" #endif /** Flag signifying the process needs to be terminated soon * 0: Not terminating, otherwise terminating */ volatile sig_atomic_t terminating = 0; #if !defined(QT_CORE_LIB) /** Handler when signal is raised by the OS. * Set the termination flag if SIGINT or SIGTERM is received * * @param[in] signo Signal that occured */ static void nwsDaemonTerminate(int signo) { if( signo == SIGTERM || signo == SIGINT) { terminating = 1; } } #endif static void display(const char *name, const char* msg) { fprintf(stdout, "NOJA REL-20 Webserver v%d.%d\n", NWS_VERSION_MAJOR, NWS_VERSION_MINOR); if(msg) { fprintf(stderr, "Error: %s\n", msg); } fprintf(stdout, "Usage: %s [-p port] [-s service interval] [-i ping-pong interval] -h\n", name); fprintf(stdout, "Options:\n"); fprintf(stdout, " -p\n"); fprintf(stdout, " Specify the communication port to use when establishing HTTP and Websocket connection.\n"); fprintf(stdout, " Normally set to 80, 443(default) or 8080. Valid values are 0-65535 \n"); fprintf(stdout, " -s\n"); fprintf(stdout, " Specify the webserver process service interval. This is the minimum amount of time\n"); fprintf(stdout, " (in millisecond) the Webserver process will be blocked to allow the processes with\n"); fprintf(stdout, " equal or lower priority CPU time.Valid value range is 0-65535 ms\n"); fprintf(stdout, " -i\n"); fprintf(stdout, " Specify the amount of time (in seconds) the Webserver will wait for the pong reply to\n"); fprintf(stdout, " its ping request before terminating the connection. \n"); fprintf(stdout, " -h\n"); fprintf(stdout, " Display this help.\n"); fprintf(stdout, "Examples:\n"); fprintf(stdout, " %s\n", name); fprintf(stdout, " %s -p 443 -s 100 -i 10\n", name); fprintf(stdout, " %s -p 443\n", name); fprintf(stdout, " %s -s 100 -i 10\n", name); fprintf(stdout, " %s -h\n", name); fprintf(stdout, " %s\n", name); } int main(int argc, char **argv) { NwsHttpPort port = NWS_PORT_DEFAULT; NwsTimeIntervalMS serviceInterval = NWS_SERVICE_INTERVAL_DEFAULT; NwsTimeIntervalS pingPongInterval = NWS_PINGPONG_INTERVAL_DEFAULT; #if !defined(QT_CORE_LIB) int opt, parameter, ret; struct sigaction sigAction; #else #if !defined(_MSC_VER) int opt, parameter; #endif char indicators[] = {'\\', '|', '/', '-'}; unsigned long idx = 0; char buffer1[NWS_MAX_PATH_LENGTH]; char buffer2[NWS_MAX_PATH_LENGTH]; #endif NwsContext context = (NwsContext)0; NwsErrors nwsError; #if !defined(_MSC_VER) while ((opt = getopt(argc, argv, "p:s:i:h")) != -1) { switch (opt) { case 'p': parameter = atoi(optarg); if( parameter < 0 || parameter > USHRT_MAX) { display(argv[0], "The specified port is out of range"); return -1; } port = (NwsHttpPort)parameter; break; case 's': parameter = atoi(optarg); if( parameter < 0 || parameter > USHRT_MAX) { display(argv[0], "The specified service interval is out of range"); return -1; } serviceInterval = (NwsTimeIntervalMS)parameter; break; case 'i': parameter = atoi(optarg); if( parameter < 0 || parameter > UCHAR_MAX) { display(argv[0], "The specified ping-pong interval is out of range"); return -1; } pingPongInterval = (NwsTimeIntervalS)parameter; break; case 'h': display(argv[0], NULL); return 0; default: break; } } #endif terminating = 0; #if !defined(QT_CORE_LIB) // config the sigaction structure for our purposes sigemptyset(&sigAction.sa_mask); sigAction.sa_flags = 0; sigAction.sa_handler = nwsDaemonTerminate; // finally, activate the signal handlers! if (sigaction(SIGINT, &sigAction, NULL) < 0) { SYSERR(-ERR_WEBSERVER, "Failed to register SIGINT handle!"); return -ERR_WEBSERVER; } if (sigaction(SIGTERM, &sigAction, NULL) < 0) { SYSERR(-ERR_WEBSERVER, "Failed to register SIGTERM handle!"); return -ERR_WEBSERVER; } #if defined(HOST) if (system("/bin/pidof dbserver > /dev/null") != 0) { if(system("~/Code/rc20-user/user/dbserver/startDbserverHost.sh -p > /dev/null") != 0) { fprintf(stderr, "Error: Failed to start dbserver!\n"); return -1; } } #endif /* Init the client accessor routines */ if ((ret = dbClientInit(DbClientId_Webserver, 0, 0, argv[0])) != DB_SUCCESS) { SYSERR(-ERR_WEBSERVER, "Failed to initialise dbapi client accessor! Error code: %d", ret); return -ERR_WEBSERVER; } /* smp tick is 10x the service interval */ if ((ret = smp_init("Webserver", DbClientId_UserCredential, serviceInterval * 10)) != 0) { #if !defined(NWS_IGNORE_SMP_ERROR) dbClientShutdown(); SYSERR(-ERR_WEBSERVER, "Failed to initialise SMP! Error code: %d", ret); return -ERR_WEBSERVER; #else SYSERR(SYS_INFO, "Failed to initialise SMP! Error code: %d", ret); #endif } if ((ret = smp_ready()) != 0) { #if !defined(NWS_IGNORE_SMP_ERROR) dbClientShutdown(); SYSERR(-ERR_WEBSERVER, "SMP not ready! Error code: %d", ret); return -ERR_WEBSERVER; #else SYSERR(SYS_INFO, "SMP not ready! Error code: %d", ret); #endif } if((nwsError = nwsInitialise(port, serviceInterval, pingPongInterval, NWS_MOUNT_DIR, &context)) != NwsError_Ok) { dbClientShutdown(); #else getcwd(buffer1, sizeof(buffer1)); snprintf(buffer2, sizeof(buffer2), "%s/mount", buffer1); if((nwsError = nwsInitialise(port, serviceInterval, pingPongInterval, buffer2, &context)) != NwsError_Ok) { #endif SYSERR(-ERR_WEBSERVER, "Webserver library init failed! Error code: %d", nwsError); return -ERR_WEBSERVER; } SYSERR(SYS_INFO, "NOJA Webserver v%d.%d. Port: %d; ServiceInterval: %d; PingPongInterval: %d\n", NWS_VERSION_MAJOR, NWS_VERSION_MINOR, port, serviceInterval, pingPongInterval); #if defined(QT_CORE_LIB) fprintf(stdout, "REL-20 Webserver Started!\n URL: http://<your ip>:%d\n", port); fprintf(stdout, "Activities: "); #endif while (terminating == 0) { #if defined(QT_CORE_LIB) fprintf(stdout, "%c\b", indicators[idx % 4]); fflush(stdout); #endif if((nwsError = nwsProcess(context)) != NwsError_Ok) { nwsStop(&context); #if !defined(QT_CORE_LIB) dbClientShutdown(); #endif SYSERR(-ERR_WEBSERVER, "Webserver library failed to service the request! Error code: %d", nwsError); return -ERR_WEBSERVER; } #if !defined(QT_CORE_LIB) if ((ret = smp_tick()) != 0) { #if !defined(NWS_IGNORE_SMP_ERROR) nwsStop(&context); dbClientShutdown(); SYSERR(-ERR_WEBSERVER, "SMP Tick failed! Error code: %d", ret); return -ERR_WEBSERVER; #else SYSERR(SYS_INFO, "SMP Tick failed! Error code: %d", ret); #endif } #else idx++; #if !defined(_MSC_VER) usleep(10000); #endif #endif } if((nwsError = nwsStop(&context)) != NwsError_Ok) { SYSERR(SYS_INFO, "Failed to close the Webserver library!. Error code: %d", nwsError); } #if !defined(QT_CORE_LIB) // release the DB resources dbClientShutdown(); #endif SYSERR(SYS_INFO, "NOJA REL-20 Webserver Terminated!."); return 0; } <file_sep>INCLUDE(CMakeForceCompiler) SET(CMAKE_SYSTEM_NAME Windows) SET(CMAKE_C_STANDARD 99) # search for programs in the build host directories # for libraries and headers in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(BUILD_STATIC_TARGET true) <file_sep>## Need for CI Generally if we're adding something that's supposed to work ongoing, the stuff should be exercised in CI (at least Travis). If there are few users for a particular feature, experience has shown that refactors or other upheaval can easily break it into a state of uselessness without anyone noticing until later. Therefore here's a description of how to add something to the CI tests... this is certainly a nonproductive PITA and I have never been thanked for the work involved. But if the promise of the various features working is going to remain alive, it's necessary to include CI test where possible with new nontrivial code. ## Integration points ### cmake `.travis.yml` maps the various test activities to CMake options needed. ### including dependent packages into travis See `./scripts/travis_install.sh` ### performing prepared test actions See `./scripts/travis_control.sh` <file_sep>lws-acme-client Plugin ====================== ## Introduction lws-acme-client is a protcol plugin for libwebsockets that implements an ACME client able to communicate with let's encrypt and other certificate providers. It implements `tls-sni-01` challenge, and is able to provision tls certificates "from thin air" that are accepted by all the major browsers. It also manages re-requesting the certificate when it only has two weeks left to run. It works with both the OpenSSL and mbedTLS backends. ## Overview for use You need to: - Provide name resolution to the IP with your server, ie, myserver.com needs to resolve to the IP that hosts your server - Enable port forwarding / external firewall access to your port, usually 443 - Enable the "lws-acme-client" plugin on the vhosts you want it to manage certs for - Add per-vhost options describing what should be in the certificate After that the plugin will sort everything else out. ## Example lwsws setup ``` "vhosts": [ { "name": "home.warmcat.com", "port": "443", "host-ssl-cert": "/etc/lwsws/acme/home.warmcat.com.crt.pem", "host-ssl-key": "/etc/lwsws/acme/home.warmcat.com.key.pem", "ignore-missing-cert": "1", "access-log": "/var/log/lwsws/test-access-log", "ws-protocols": [{ "lws-acme-client": { "auth-path": "/etc/lwsws/acme/auth.jwk", "cert-path": "/etc/lwsws/acme/home.warmcat.com.crt.pem", "key-path": "/etc/lwsws/acme/home.warmcat.com.key.pem", "directory-url": "https://acme-staging.api.letsencrypt.org/directory", "country": "TW", "state": "Taipei", "locality": "Xiaobitan", "organization": "Crash Barrier Ltd", "common-name": "home.warmcat.com", "email": "<EMAIL>" }, ... ``` ## Required PVOs Notice that the `"host-ssl-cert"` and `"host-ssl-key"` entries have the same meaning as usual, they point to your certificate and private key. However because the ACME plugin can provision these, you should also mark the vhost with `"ignore-missing-cert" : "1"`, so lwsws will ignore what will initially be missing certificate / keys on that vhost, and will set about creating the necessary certs and keys instead of erroring out. You must make sure the directories mentioned here exist, lws doesn't create them for you. They should be 0700 root:root, even if you drop lws privileges. If you are implementing support in code, this corresponds to making sure the vhost creating `info.options` has the `LWS_SERVER_OPTION_IGNORE_MISSING_CERT` bit set. Similarly, in code, the each of the per-vhost options shown above can be provided in a linked-list of structs at vhost creation time. See `./test-apps/test-server-v2.0.c` for example code for providing pvos. ### auth-path This is where the plugin will store the auth keys it generated. ### cert-path Where the plugin will store the certificate file. Should match `host-ssl-cert` that the vhost wants to use. The path should include at least one 0700 root:root directory. ### key-path Where the plugin will store the certificate keys. Again it should match `host-ssl-key` the vhost is trying to use. The path should include at least one 0700 root:root directory. ### directory-url This defines the URL of the certification server you will get your certificates from. For let's encrypt, they have a "practice" one - `https://acme-staging.api.letsencrypt.org/directory` and they have a "real" one - `https://acme-v01.api.letsencrypt.org/directory` the main difference is the CA certificate for the real one is in most browsers already, but the staging one's CA certificate isn't. The staging server will also let you abuse it more in terms of repeated testing etc. It's recommended you confirm expected operation with the staging directory-url, and then switch to the "real" URL. ### common-name Your server DNS name, like "libwebsockets.org". The remote ACME server will use this to find your server to perform the SNI challenges. ### email The contact email address for the certificate. ## Optional PVOs These are not included in the cert by letsencrypt ### country Two-letter country code for the certificate ### state State "or province" for the certificate ### locality Locality for the certificate ### organization Your company name ## Security / Key storage considerations The `lws-acme-client` plugin is able to provision and update your certificate and keys in an entirely root-only storage environment, even though lws runs as a different uid / gid with no privileges to access the storage dir. It does this by opening and holding two WRONLY fds on "update paths" inside the root directory structure for each cert and key it manages; these are the normal cert and key paths with `.upd` appended. If during the time the server is up the certs become within two weeks of expiry, the `lws-acme-client` plugin will negotiate new certs and write them to the file descriptors. Next time the server starts, if it sees `.upd` cert and keys, it will back up the old ones and copy them into place as the new ones, before dropping privs. To also handle the long-uptime server case, lws will update the vhost with the new certs using in-memory temporary copies of the cert and key after updating the cert. In this way the cert and key live in root-only storage but the vhost is kept up to date dynamically with any cert changes as well. ## Multiple vhosts using same cert In the case you have multiple vhosts using of the same cert, just attach the `lws-acme-client` plugin to one instance. When the cert updates, all the vhosts are informed and vhosts using the same filepath to access the cert will be able to update their cert. ## Implementation point You will need to remove the auth keys when switching from OpenSSL to mbedTLS. They will be regenerated automatically. It's the file at this path: ``` "auth-path": "/etc/lwsws/acme/auth.jwk", ``` <file_sep>#!/bin/bash # # Requires pip install autobahntestsuite # # you should run this from ./build, after building with # cmake .. -DLWS_WITH_MINIMAL_EXAMPLES=1 # # It will use the minimal echo client and server to run # autobahn ws tests as both client and server. set -u PARALLEL=2 N=1 OS=`uname` CLIE=bin/lws-minimal-ws-client-echo SERV=bin/lws-minimal-ws-server-echo RESULT=0 which wstest 2>/dev/null if [ $? -ne 0 ]; then echo "wstest is not installed" exit 8 fi killall wstest 2>/dev/null # # 2.10 / 2.11: There is no requirement to handle multiple PING / PONG # in flight on a single connection in RFC6455. lws doesn't # waste memory on supporting it since it is useless. cat << EOF >fuzzingclient.json { "outdir": "./reports/servers", "servers": [ { "url": "ws://127.0.0.1:9001" } ], "cases": [ "*" ], "exclude-cases": ["2.10", "2.11" ], "exclude-agent-cases": {} } EOF echo echo "----------------------------------------------" echo "------- tests: autobahn as server" echo $SERV -p 9001 -d3 & wstest -m fuzzingclient R=$? echo "Autobahn client exit $R" killall lws-minimal-ws-server-echo sleep 1s # repeat the client results R=`cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior": "INFORMATIONAL"' | wc -l` echo -n "AUTOBAHN SERVER / LWS CLIENT: Total tests: " `cat /tmp/ji | wc -l` " : " if [ "$R" == "0" ] ;then echo "All pass" else RESULT=1 echo -n "$R FAIL : " cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior": "INFORMATIONAL"' | cut -d\" -f2 | tr '\n' ',' echo fi # and then the server results cat reports/servers/index.json | tr '\n' '!' | sed "s|\},\!|\n|g" | tr '!' ' ' | tr -s ' ' > /tmp/jis R=`cat /tmp/jis | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior": "INFORMATIONAL"' | wc -l` echo -n "AUTOBAHN CLIENT / LWS SERVER: Total tests: " `cat /tmp/jis | wc -l` " : " if [ "$R" == "0" ] ;then echo "All pass" else RESULT=$(( $RESULT + 2 )) echo -n "$R FAIL : " cat /tmp/jis | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior": "INFORMATIONAL"' | cut -d\" -f2 | tr '\n' ',' echo fi echo $RESULT exit $RESULT <file_sep># lws minimal ws server + permessage-deflate echo This example serves no-protocl-name ws on localhost:7681 and echoes back anything that comes from the client. You can use it for testing lws against Autobahn (use the -p option to tell it to listen on 9001 for that) ## build ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -p port|Port to connect to -u url|URL path part to connect to -o|Finish after one connection ``` $ ./lws-minimal-ws-server-echo [2018/04/24 10:29:34:6212] USER: LWS minimal ws server echo + permessage-deflate + multifragment bulk message [2018/04/24 10:29:34:6213] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off ... ``` <file_sep># lws minimal http server with tls and certs from memory This is the same as the minimal-http-server-tls example, but shows how to init the vhost with both PEM or DER certs from memory instead of files. The server listens on port 7681 (initialized with PEM in-memory certs) and port 7682 (initialized with DER in-memory certs). ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-http-server-tls-mem [2019/02/14 14:46:40:9783] USER: LWS minimal http server TLS | visit https://localhost:7681 [2019/02/14 14:46:40:9784] NOTICE: Using SSL mode [2019/02/14 14:46:40:9784] NOTICE: lws_tls_server_vhost_backend_init: vh first: mem CA OK parsing as der [2019/02/14 14:46:40:9849] NOTICE: no client cert required [2019/02/14 14:46:40:9849] NOTICE: created client ssl context for first [2019/02/14 14:46:40:9849] NOTICE: Using SSL mode [2019/02/14 14:46:40:9850] NOTICE: lws_tls_server_vhost_backend_init: vh second: mem CA OK parsing as der [2019/02/14 14:46:40:9894] NOTICE: no client cert required [2019/02/14 14:46:40:9894] NOTICE: created client ssl context for second [2019/02/14 14:46:40:9894] NOTICE: vhost first: cert expiry: 36167d [2019/02/14 14:46:40:9894] NOTICE: vhost second: cert expiry: 36167d [2018/03/20 13:23:14:0207] NOTICE: vhost default: cert expiry: 730459d ``` Visit https://127.0.0.1:7681 and https://127.0.0.1:7682 Because it uses a selfsigned certificate, you will have to make an exception for it in your browser. ## Certificate creation The selfsigned certs provided were created with ``` echo -e "GB\nErewhon\nAll around\nlibwebsockets-test\n\nlocalhost\nnone@invalid.org\n" | openssl req -new -newkey rsa:4096 -days 36500 -nodes -x509 -keyout "localhost-100y.key" -out "localhost-100y.cert" ``` they cover "localhost" and last 100 years from 2018-03-20. You can replace them with commercial certificates matching your hostname. The der content was made from PEM like this ``` $ cat ../minimal-http-server-tls/localhost-100y.key | grep -v ^- | base64 -d | hexdump -C | tr -s ' ' | cut -d' ' -f2- | cut -d' ' -f-16 | sed "s/|.*//g" | sed "s/0000.*//g" | sed "s/^/0x/g" | sed "s/\ /\,\ 0x/g" | sed "s/\$/,/g" | sed "s/0x,//g" ``` ## HTTP/2 If you built lws with `-DLWS_WITH_HTTP2=1` at cmake, this simple server is also http/2 capable out of the box. If the index.html was loaded over http/2, it will display an HTTP 2 png. <file_sep># example Android Native Library makefile # contributed by <NAME> <<EMAIL>> LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libwebsockets LOCAL_CFLAGS := -DLWS_BUILTIN_GETIFADDRS LWS_LIB_PATH := ../../../shared/libwebsockets/lib LOCAL_C_INCLUDES:= $(LOCAL_PATH)/$(LWS_LIB_PATH) LOCAL_SRC_FILES := \ $(LWS_LIB_PATH)/base64-decode.c \ $(LWS_LIB_PATH)/client.c \ $(LWS_LIB_PATH)/client-handshake.c \ $(LWS_LIB_PATH)/client-parser.c \ $(LWS_LIB_PATH)/daemonize.c \ $(LWS_LIB_PATH)/extension.c \ $(LWS_LIB_PATH)/extension-deflate-frame.c \ $(LWS_LIB_PATH)/extension-deflate-stream.c \ $(LWS_LIB_PATH)/getifaddrs.c \ $(LWS_LIB_PATH)/handshake.c \ $(LWS_LIB_PATH)/libwebsockets.c \ $(LWS_LIB_PATH)/md5.c \ $(LWS_LIB_PATH)/output.c \ $(LWS_LIB_PATH)/parsers.c \ $(LWS_LIB_PATH)/sha-1.c include $(BUILD_STATIC_LIBRARY) <file_sep>#!/bin/bash # # Build libwebsockets static library for Android # # path to NDK export NDK=/opt/ndk_r17/android-ndk-r17-beta2-linux-x86_64/android-ndk-r17-beta2 export ANDROID_NDK=${NDK} export TOOLCHAIN=${NDK}/toolchain export CORSS_SYSROOT=${NDK}/sysroot export SYSROOT=${NDK}/platforms/android-22/arch-arm set -e # Download packages libz, libuv, mbedtls and libwebsockets #zlib-1.2.8 #libuv-1.x #mbedtls-2.11.0 #libwebsockets-3.0.0 # create a local android toolchain API=${3:-24} $NDK/build/tools/make-standalone-toolchain.sh \ --toolchain=arm-linux-androideabi-4.9 \ --arch=arm \ --install-dir=`pwd`/android-toolchain-arm \ --platform=android-$API \ --stl=libc++ \ --force \ --verbose # setup environment to use the gcc/ld from the android toolchain export INSTALL_PATH=/opt/libwebsockets_android/android-toolchain-arm export TOOLCHAIN_PATH=`pwd`/android-toolchain-arm export TOOL=arm-linux-androideabi export NDK_TOOLCHAIN_BASENAME=${TOOLCHAIN_PATH}/bin/${TOOL} export PATH=`pwd`/android-toolchain-arm/bin:$PATH export CC=$NDK_TOOLCHAIN_BASENAME-gcc export CXX=$NDK_TOOLCHAIN_BASENAME-g++ export LINK=${CXX} export LD=$NDK_TOOLCHAIN_BASENAME-ld export AR=$NDK_TOOLCHAIN_BASENAME-ar export RANLIB=$NDK_TOOLCHAIN_BASENAME-ranlib export STRIP=$NDK_TOOLCHAIN_BASENAME-strip export PLATFORM=android export CFLAGS="D__ANDROID_API__=$API" # configure and build libuv [ ! -f ./android-toolchain-arm/lib/libuv.so ] && { cd libuv echo "=============================================>> build libuv" PATH=$TOOLCHAIN_PATH:$PATH make clean PATH=$TOOLCHAIN_PATH:$PATH make PATH=$TOOLCHAIN_PATH:$PATH make install echo "<<============================================= build libuv" cd .. } # configure and build zlib [ ! -f ./android-toolchain-arm/lib/libz.so ] && { cd zlib-1.2.8 echo "=============================================>> build libz" PATH=$TOOLCHAIN_PATH:$PATH make clean PATH=$TOOLCHAIN_PATH:$PATH make PATH=$TOOLCHAIN_PATH:$PATH make install echo "<<============================================= build libz" cd .. } # configure and build mbedtls [ ! -f ./android-toolchain-arm/lib/libmbedtls.so ] && { echo "=============================================>> build mbedtls" PREFIX=$TOOLCHAIN_PATH cd mbedtls-2.11.0 [ ! -d build ] && mkdir build cd build export CFLAGS="$CFLAGS -fomit-frame-pointer" PATH=$TOOLCHAIN_PATH:$PATH cmake .. -DCMAKE_TOOLCHAIN_FILE=`pwd`/../cross-arm-android-gnueabi.cmake \ -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} \ -DCMAKE_BUILD_TYPE=RELEASE -DUSE_SHARED_MBEDTLS_LIBRARY=On PATH=$TOOLCHAIN_PATH:$PATH make clean PATH=$TOOLCHAIN_PATH:$PATH make SHARED=1 PATH=$TOOLCHAIN_PATH:$PATH make install echo "<<============================================= build mbedtls" cd ../.. } # configure and build libwebsockets [ ! -f ./android-toolchain-arm/lib/libwebsockets.so ] && { cd libwebsockets [ ! -d build ] && mkdir build cd build echo "=============================================>> build libwebsockets" PATH=$TOOLCHAIN_PATH:$PATH cmake .. -DCMAKE_TOOLCHAIN_FILE=`pwd`/../cross-arm-android-gnueabi.cmake \ -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} \ -DLWS_WITH_LWSWS=1 \ -DLWS_WITH_MBEDTLS=1 \ -DLWS_WITHOUT_TESTAPPS=1 \ -DLWS_MBEDTLS_LIBRARIES="${INSTALL_PATH}/lib/libmbedcrypto.a;${INSTALL_PATH}/lib/libmbedtls.a;${INSTALL_PATH}/lib/libmbedx509.a" \ -DLWS_MBEDTLS_INCLUDE_DIRS=${INSTALL_PATH}/include \ -DLWS_LIBUV_LIBRARIES=${INSTALL_PATH}/lib/libuv.so \ -DLWS_LIBUV_INCLUDE_DIRS=${INSTALL_PATH}/include \ -DLWS_ZLIB_LIBRARIES=${INSTALL_PATH}/lib/libz.so \ -DLWS_ZLIB_INCLUDE_DIRS=${INSTALL_PATH}/include PATH=$TOOLCHAIN_PATH:$PATH make PATH=$TOOLCHAIN_PATH:$PATH make install echo "<<============================================= build libwebsockets" cd ../.. } <file_sep>click clint coverage requests tox >= 2.4.1 twine >= 1.8.0 -e .[test,docs,docstest,pep8test] -e vectors <file_sep># lws minimal http client hugeurl ## build ``` $ cmake . && make ``` ## usage The application goes to https://warmcat.com/?fakeparam=<2KB> and receives the page data. ``` $ ./lws-minimal-http-client [2018/03/04 14:43:20:8562] USER: LWS minimal http client hugeurl [2018/03/04 14:43:20:8571] NOTICE: Creating Vhost 'default' port -1, 1 protocols, IPv6 on [2018/03/04 14:43:20:8616] NOTICE: created client ssl context for default [2018/03/04 14:43:20:8617] NOTICE: lws_client_connect_2: 0x1814dc0: address warmcat.com [2018/03/04 14:43:21:1496] NOTICE: lws_client_connect_2: 0x1814dc0: address warmcat.com [2018/03/04 14:43:22:0154] NOTICE: lws_client_interpret_server_handshake: incoming content length 26520 [2018/03/04 14:43:22:0154] NOTICE: lws_client_interpret_server_handshake: client connection up [2018/03/04 14:43:22:0169] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0169] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0169] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0169] USER: RECEIVE_CLIENT_HTTP_READ: read 1015 [2018/03/04 14:43:22:0174] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0174] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0174] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0174] USER: RECEIVE_CLIENT_HTTP_READ: read 1015 [2018/03/04 14:43:22:0179] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0179] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0179] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:0179] USER: RECEIVE_CLIENT_HTTP_READ: read 1015 [2018/03/04 14:43:22:3010] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3010] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3010] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3010] USER: RECEIVE_CLIENT_HTTP_READ: read 1015 [2018/03/04 14:43:22:3015] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3015] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3015] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3015] USER: RECEIVE_CLIENT_HTTP_READ: read 1015 [2018/03/04 14:43:22:3020] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3020] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3020] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3020] USER: RECEIVE_CLIENT_HTTP_READ: read 1015 [2018/03/04 14:43:22:3022] USER: RECEIVE_CLIENT_HTTP_READ: read 1024 [2018/03/04 14:43:22:3022] USER: RECEIVE_CLIENT_HTTP_READ: read 974 [2018/03/04 14:43:22:3022] NOTICE: lws_http_client_read: transaction completed says -1 [2018/03/04 14:43:23:3042] USER: Completed ``` <file_sep># CMake generated Testfile for # Source directory: /Users/naveenpareek/Downloads/rc20-user/lib3p/libcjson # Build directory: /Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug # # This file includes the relevant testing commands required for # testing this directory and lists subdirectories to be tested as well. add_test(cJSON_test "/Users/naveenpareek/Downloads/rc20-user/lib3p/build-libcjson-Qt_5_15_1_for_iOS_Simulator-Debug/cJSON_test") set_tests_properties(cJSON_test PROPERTIES _BACKTRACE_TRIPLES "/Users/naveenpareek/Downloads/rc20-user/lib3p/libcjson/CMakeLists.txt;227;add_test;/Users/naveenpareek/Downloads/rc20-user/lib3p/libcjson/CMakeLists.txt;0;") subdirs("tests") subdirs("fuzzing") <file_sep>/** @file noja_webserver_http.h * HTTP handling callback for webserver * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef NOJA_WEBSERVER_HTTP_H #define NOJA_WEBSERVER_HTTP_H #include "libwebsockets.h" /** @ingroup group_internal * @brief HTTP Webserver handling * * Handle requests comming from the HTTP protocol * * @param[in] wsi WEbsocket instance pointer * @param[in] reason Reason for calling the callback * @param[in] user Session specific user data * @param[in] in pointer to calback parameters * @param[in] len length of in buffer * @return libwebsockets result code */ extern int nwsHttpCb(struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len); #endif <file_sep>#!/bin/bash # # run from the build subdir # echo echo "----------------------------------------------" echo "------- tests: h2spec" echo if [ ! -e h2spec ] ; then wget https://github.com/summerwind/h2spec/releases/download/v2.1.0/h2spec_linux_amd64.tar.gz &&\ tar xf h2spec_linux_amd64.tar.gz if [ ! -e h2spec ] ; then echo "Couldn't get h2spec" exit 1 fi fi cd ../minimal-examples/http-server/minimal-http-server-tls ../../../build/bin/lws-minimal-http-server-tls& sleep 1s P=$! ../../../build/h2spec -h 127.0.0.1 -p 7681 -t -k -S > /tmp/hlog kill $P 2>/dev/null wait $P 2>/dev/null if [ ! -z "`cat /tmp/hlog | grep "Failures:"`" ] ; then cat /tmp/hlog | sed '/Failures:/,$!d' exit 1 fi cat /tmp/hlog | sed '/Finished\ in/,$!d' exit 0 <file_sep>/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #if !defined(__LWS_PRIVATE_LIB_CORE_H__) #define __LWS_PRIVATE_LIB_CORE_H__ #include "lws_config.h" #include "lws_config_private.h" #if defined(LWS_WITH_CGI) && defined(LWS_HAVE_VFORK) && \ !defined(NO_GNU_SOURCE_THIS_TIME) && !defined(_GNU_SOURCE) #define _GNU_SOURCE #endif /* #if !defined(_POSIX_C_SOURCE) #define _POSIX_C_SOURCE 200112L #endif */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <ctype.h> #include <limits.h> #include <stdarg.h> #ifdef LWS_HAVE_INTTYPES_H #include <inttypes.h> #endif #include <assert.h> #ifdef LWS_HAVE_SYS_TYPES_H #include <sys/types.h> #endif #if defined(LWS_HAVE_SYS_STAT_H) && !defined(LWS_PLAT_OPTEE) #include <sys/stat.h> #endif #if LWS_MAX_SMP > 1 #include <pthread.h> #endif #ifndef LWS_DEF_HEADER_LEN #define LWS_DEF_HEADER_LEN 4096 #endif #ifndef LWS_DEF_HEADER_POOL #define LWS_DEF_HEADER_POOL 4 #endif #ifndef LWS_MAX_PROTOCOLS #define LWS_MAX_PROTOCOLS 5 #endif #ifndef LWS_MAX_EXTENSIONS_ACTIVE #define LWS_MAX_EXTENSIONS_ACTIVE 1 #endif #ifndef LWS_MAX_EXT_OFFERS #define LWS_MAX_EXT_OFFERS 8 #endif #ifndef SPEC_LATEST_SUPPORTED #define SPEC_LATEST_SUPPORTED 13 #endif #ifndef AWAITING_TIMEOUT #define AWAITING_TIMEOUT 20 #endif #ifndef CIPHERS_LIST_STRING #define CIPHERS_LIST_STRING "DEFAULT" #endif #ifndef LWS_SOMAXCONN #define LWS_SOMAXCONN SOMAXCONN #endif #define MAX_WEBSOCKET_04_KEY_LEN 128 #ifndef SYSTEM_RANDOM_FILEPATH #define SYSTEM_RANDOM_FILEPATH "/dev/urandom" #endif #define LWS_H2_RX_SCRATCH_SIZE 512 #define lws_socket_is_valid(x) (x != LWS_SOCK_INVALID) #ifndef LWS_HAVE_STRERROR #define strerror(x) "" #endif /* * * ------ private platform defines ------ * */ #if defined(LWS_PLAT_FREERTOS) #include "private-lib-plat-freertos.h" #else #if defined(WIN32) || defined(_WIN32) #include "private-lib-plat-windows.h" #else #if defined(LWS_PLAT_OPTEE) #include "private-lib-plat.h" #else #include "private-lib-plat-unix.h" #endif #endif #endif /* * * ------ public api ------ * */ #include "libwebsockets.h" /* * Generic bidi tx credit management */ struct lws_tx_credit { int32_t tx_cr; /* our credit to write peer */ int32_t peer_tx_cr_est; /* peer's credit to write us */ int32_t manual_initial_tx_credit; uint8_t skint; /* unable to write anything */ uint8_t manual; }; #include "private-lib-tls.h" #if defined(WIN32) || defined(_WIN32) // Visual studio older than 2015 and WIN_CE has only _stricmp #if (defined(_MSC_VER) && _MSC_VER < 1900) || defined(_WIN32_WCE) #define strcasecmp _stricmp #define strncasecmp _strnicmp #elif !defined(__MINGW32__) #define strcasecmp stricmp #define strncasecmp strnicmp #endif #define getdtablesize() 30000 #endif #ifndef LWS_ARRAY_SIZE #define LWS_ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) #endif #ifdef __cplusplus extern "C" { #endif #if defined(__clang__) #define lws_memory_barrier() __sync_synchronize() #elif defined(__GNUC__) #define lws_memory_barrier() __sync_synchronize() #else #define lws_memory_barrier() #endif struct lws_ring { void *buf; void (*destroy_element)(void *element); uint32_t buflen; uint32_t element_len; uint32_t head; uint32_t oldest_tail; }; struct lws_protocols; struct lws; #if defined(LWS_WITH_NETWORK) #include "private-lib-event-libs.h" #if defined(LWS_WITH_SECURE_STREAMS) #include "private-lib-secure-streams.h" #endif struct lws_io_watcher { #ifdef LWS_WITH_LIBEV struct lws_io_watcher_libev ev; #endif #ifdef LWS_WITH_LIBUV struct lws_io_watcher_libuv uv; #endif #ifdef LWS_WITH_LIBEVENT struct lws_io_watcher_libevent event; #endif #ifdef LWS_WITH_GLIB struct lws_io_watcher_glib glib; #endif struct lws_context *context; uint8_t actual_events; }; struct lws_signal_watcher { #ifdef LWS_WITH_LIBEV struct lws_signal_watcher_libev ev; #endif #ifdef LWS_WITH_LIBUV struct lws_signal_watcher_libuv uv; #endif #ifdef LWS_WITH_LIBEVENT struct lws_signal_watcher_libevent event; #endif struct lws_context *context; }; struct lws_foreign_thread_pollfd { struct lws_foreign_thread_pollfd *next; int fd_index; int _and; int _or; }; #endif #if LWS_MAX_SMP > 1 struct lws_mutex_refcount { pthread_mutex_t lock; pthread_t lock_owner; const char *last_lock_reason; char lock_depth; char metadata; }; void lws_mutex_refcount_init(struct lws_mutex_refcount *mr); void lws_mutex_refcount_destroy(struct lws_mutex_refcount *mr); void lws_mutex_refcount_lock(struct lws_mutex_refcount *mr, const char *reason); void lws_mutex_refcount_unlock(struct lws_mutex_refcount *mr); #endif #if defined(LWS_WITH_NETWORK) #include "private-lib-core-net.h" #endif struct lws_deferred_free { struct lws_deferred_free *next; time_t deadline; void *payload; }; struct lws_system_blob { union { struct lws_buflist *bl; struct { const uint8_t *ptr; size_t len; } direct; } u; char is_direct; }; typedef struct lws_attach_item { lws_dll2_t list; lws_attach_cb_t cb; void *opaque; lws_system_states_t state; } lws_attach_item_t; /* * the rest is managed per-context, that includes * * - processwide single fd -> wsi lookup * - contextwide headers pool */ struct lws_context { #if defined(LWS_WITH_SERVER) char canonical_hostname[96]; #endif #if defined(LWS_WITH_FILE_OPS) struct lws_plat_file_ops fops_platform; #endif #if defined(LWS_WITH_ZIP_FOPS) struct lws_plat_file_ops fops_zip; #endif lws_system_blob_t system_blobs[LWS_SYSBLOB_TYPE_COUNT]; #if defined(LWS_WITH_NETWORK) struct lws_context_per_thread pt[LWS_MAX_SMP]; lws_retry_bo_t default_retry; lws_sorted_usec_list_t sul_system_state; #if defined(LWS_PLAT_FREERTOS) struct sockaddr_in frt_pipe_si; #endif #if defined(LWS_WITH_HTTP2) struct http2_settings set; #endif #if defined(LWS_WITH_SERVER_STATUS) struct lws_conn_stats conn_stats; #endif #if LWS_MAX_SMP > 1 struct lws_mutex_refcount mr; #endif #if defined(LWS_WITH_NETWORK) #if defined(LWS_WITH_LIBEV) struct lws_context_eventlibs_libev ev; #endif #if defined(LWS_WITH_LIBUV) struct lws_context_eventlibs_libuv uv; #endif #if defined(LWS_WITH_LIBEVENT) struct lws_context_eventlibs_libevent event; #endif #if defined(LWS_WITH_GLIB) struct lws_context_eventlibs_glib glib; #endif #if defined(LWS_WITH_TLS) struct lws_context_tls tls; #endif #if defined(LWS_WITH_SYS_ASYNC_DNS) lws_async_dns_t async_dns; #endif #if defined(LWS_WITH_SECURE_STREAMS_SYS_AUTH_API_AMAZON_COM) void *pol_args; struct lws_ss_handle *hss_auth; struct lws_ss_handle *hss_fetch_policy; lws_sorted_usec_list_t sul_api_amazon_com; lws_sorted_usec_list_t sul_api_amazon_com_kick; #endif lws_state_manager_t mgr_system; lws_state_notify_link_t protocols_notify; #if defined (LWS_WITH_SYS_DHCP_CLIENT) lws_dll2_owner_t dhcpc_owner; /**< list of ifaces with dhcpc */ #endif /* pointers */ struct lws_vhost *vhost_list; struct lws_vhost *no_listener_vhost_list; struct lws_vhost *vhost_pending_destruction_list; struct lws_vhost *vhost_system; #if defined(LWS_WITH_SERVER) const char *server_string; #endif struct lws_event_loop_ops *event_loop_ops; #endif #if defined(LWS_WITH_TLS) const struct lws_tls_ops *tls_ops; #endif #if defined(LWS_WITH_DETAILED_LATENCY) det_lat_buf_cb_t detailed_latency_cb; #endif #if defined(LWS_WITH_PLUGINS) struct lws_plugin *plugin_list; #endif #ifdef _WIN32 /* different implementation between unix and windows */ struct lws_fd_hashtable fd_hashtable[FD_HASHTABLE_MODULUS]; #else struct lws **lws_lookup; #endif #endif /* NETWORK */ #if defined(LWS_WITH_SECURE_STREAMS_PROXY_API) const char *ss_proxy_bind; const char *ss_proxy_address; #endif #if defined(LWS_WITH_FILE_OPS) const struct lws_plat_file_ops *fops; #endif struct lws_context **pcontext_finalize; const char *username, *groupname; #if defined(LWS_WITH_DETAILED_LATENCY) const char *detailed_latency_filepath; #endif #if defined(LWS_AMAZON_RTOS) mbedtls_entropy_context mec; mbedtls_ctr_drbg_context mcdc; #endif struct lws_deferred_free *deferred_free_list; #if defined(LWS_WITH_THREADPOOL) struct lws_threadpool *tp_list_head; #endif #if defined(LWS_WITH_PEER_LIMITS) struct lws_peer **pl_hash_table; struct lws_peer *peer_wait_list; time_t next_cull; #endif const lws_system_ops_t *system_ops; #if defined(LWS_WITH_SECURE_STREAMS) const char *pss_policies_json; const lws_ss_policy_t *pss_policies; const lws_ss_plugin_t **pss_plugins; struct lwsac *ac_policy; #endif void *external_baggage_free_on_destroy; const struct lws_token_limits *token_limits; void *user_space; #if defined(LWS_WITH_SERVER) const struct lws_protocol_vhost_options *reject_service_keywords; lws_reload_func deprecation_cb; #endif void (*eventlib_signal_cb)(void *event_lib_handle, int signum); #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP) cap_value_t caps[4]; char count_caps; #endif lws_usec_t time_up; /* monotonic */ uint64_t options; time_t last_ws_ping_pong_check_s; #if defined(LWS_PLAT_FREERTOS) unsigned long time_last_state_dump; uint32_t last_free_heap; #endif int max_fds; int count_event_loop_static_asset_handles; #if !defined(LWS_NO_DAEMONIZE) pid_t started_with_parent; #endif int uid, gid; int fd_random; #if defined(LWS_WITH_DETAILED_LATENCY) int latencies_fd; #endif int count_wsi_allocated; int count_cgi_spawned; unsigned int fd_limit_per_thread; unsigned int timeout_secs; unsigned int pt_serv_buf_size; int max_http_header_data; int max_http_header_pool; int simultaneous_ssl_restriction; int simultaneous_ssl; #if defined(LWS_WITH_PEER_LIMITS) uint32_t pl_hash_elements; /* protected by context->lock */ uint32_t count_peers; /* protected by context->lock */ unsigned short ip_limit_ah; unsigned short ip_limit_wsi; #endif unsigned int deprecated:1; unsigned int inside_context_destroy:1; unsigned int being_destroyed:1; unsigned int being_destroyed1:1; unsigned int being_destroyed2:1; unsigned int requested_kill:1; unsigned int protocol_init_done:1; unsigned int doing_protocol_init:1; unsigned int done_protocol_destroy_cb:1; unsigned int finalize_destroy_after_internal_loops_stopped:1; unsigned int max_fds_unrelated_to_ulimit:1; unsigned int policy_updated:1; short count_threads; short plugin_protocol_count; short plugin_extension_count; short server_string_len; unsigned short ws_ping_pong_interval; unsigned short deprecation_pending_listen_close_count; #if defined(LWS_WITH_SECURE_STREAMS_PROXY_API) uint16_t ss_proxy_port; #endif uint8_t max_fi; uint8_t udp_loss_sim_tx_pc; uint8_t udp_loss_sim_rx_pc; #if defined(LWS_WITH_STATS) uint8_t updated; #endif }; int lws_check_deferred_free(struct lws_context *context, int tsi, int force); #define lws_get_context_protocol(ctx, x) ctx->vhost_list->protocols[x] #define lws_get_vh_protocol(vh, x) vh->protocols[x] int lws_jws_base64_enc(const char *in, size_t in_len, char *out, size_t out_max); void lws_vhost_destroy1(struct lws_vhost *vh); #if defined(LWS_PLAT_FREERTOS) LWS_EXTERN int lws_find_string_in_file(const char *filename, const char *str, int stringlen); #endif signed char char_to_hex(const char c); #if defined(LWS_WITH_NETWORK) int lws_system_do_attach(struct lws_context_per_thread *pt); #endif struct lws_buflist { struct lws_buflist *next; size_t len; size_t pos; }; LWS_EXTERN char * lws_strdup(const char *s); LWS_EXTERN int log_level; LWS_EXTERN int lws_b64_selftest(void); #ifndef LWS_NO_DAEMONIZE LWS_EXTERN pid_t get_daemonize_pid(); #else #define get_daemonize_pid() (0) #endif LWS_EXTERN void lwsl_emit_stderr(int level, const char *line); #if !defined(LWS_WITH_TLS) #define LWS_SSL_ENABLED(context) (0) #define lws_context_init_server_ssl(_a, _b) (0) #define lws_ssl_destroy(_a) #define lws_context_init_alpn(_a) #define lws_ssl_capable_read lws_ssl_capable_read_no_ssl #define lws_ssl_capable_write lws_ssl_capable_write_no_ssl #define lws_ssl_pending lws_ssl_pending_no_ssl #define lws_server_socket_service_ssl(_b, _c) (0) #define lws_ssl_close(_a) (0) #define lws_ssl_context_destroy(_a) #define lws_ssl_SSL_CTX_destroy(_a) #define lws_ssl_remove_wsi_from_buffered_list(_a) #define __lws_ssl_remove_wsi_from_buffered_list(_a) #define lws_context_init_ssl_library(_a) #define lws_context_deinit_ssl_library(_a) #define lws_tls_check_all_cert_lifetimes(_a) #define lws_tls_acme_sni_cert_destroy(_a) #endif #if LWS_MAX_SMP > 1 #define lws_context_lock(c, reason) lws_mutex_refcount_lock(&c->mr, reason) #define lws_context_unlock(c) lws_mutex_refcount_unlock(&c->mr) static LWS_INLINE void lws_vhost_lock(struct lws_vhost *vhost) { pthread_mutex_lock(&vhost->lock); } static LWS_INLINE void lws_vhost_unlock(struct lws_vhost *vhost) { pthread_mutex_unlock(&vhost->lock); } #else #define lws_pt_mutex_init(_a) (void)(_a) #define lws_pt_mutex_destroy(_a) (void)(_a) #define lws_pt_lock(_a, b) (void)(_a) #define lws_pt_unlock(_a) (void)(_a) #define lws_context_lock(_a, _b) (void)(_a) #define lws_context_unlock(_a) (void)(_a) #define lws_vhost_lock(_a) (void)(_a) #define lws_vhost_unlock(_a) (void)(_a) #define lws_pt_stats_lock(_a) (void)(_a) #define lws_pt_stats_unlock(_a) (void)(_a) #endif LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ssl_capable_read_no_ssl(struct lws *wsi, unsigned char *buf, int len); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ssl_capable_write_no_ssl(struct lws *wsi, unsigned char *buf, int len); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ssl_pending_no_ssl(struct lws *wsi); int lws_tls_check_cert_lifetime(struct lws_vhost *vhost); int lws_jws_selftest(void); int lws_jwe_selftest(void); int lws_protocol_init(struct lws_context *context); int lws_bind_protocol(struct lws *wsi, const struct lws_protocols *p, const char *reason); const struct lws_protocol_vhost_options * lws_vhost_protocol_options(struct lws_vhost *vh, const char *name); const struct lws_http_mount * lws_find_mount(struct lws *wsi, const char *uri_ptr, int uri_len); /* * custom allocator */ LWS_EXTERN void * lws_realloc(void *ptr, size_t size, const char *reason); LWS_EXTERN void * LWS_WARN_UNUSED_RESULT lws_zalloc(size_t size, const char *reason); #ifdef LWS_PLAT_OPTEE void *lws_malloc(size_t size, const char *reason); void lws_free(void *p); #define lws_free_set_NULL(P) do { lws_free(P); (P) = NULL; } while(0) #else #define lws_malloc(S, R) lws_realloc(NULL, S, R) #define lws_free(P) lws_realloc(P, 0, "lws_free") #define lws_free_set_NULL(P) do { lws_realloc(P, 0, "free"); (P) = NULL; } while(0) #endif int lws_create_event_pipes(struct lws_context *context); int lws_plat_apply_FD_CLOEXEC(int n); const struct lws_plat_file_ops * lws_vfs_select_fops(const struct lws_plat_file_ops *fops, const char *vfs_path, const char **vpath); /* lws_plat_ */ LWS_EXTERN int lws_plat_context_early_init(void); LWS_EXTERN void lws_plat_context_early_destroy(struct lws_context *context); LWS_EXTERN void lws_plat_context_late_destroy(struct lws_context *context); LWS_EXTERN int lws_plat_init(struct lws_context *context, const struct lws_context_creation_info *info); LWS_EXTERN int lws_plat_drop_app_privileges(struct lws_context *context, int actually_drop); #if defined(LWS_WITH_UNIX_SOCK) int lws_plat_user_colon_group_to_ids(const char *u_colon_g, uid_t *puid, gid_t *pgid); #endif int lws_plat_ifname_to_hwaddr(int fd, const char *ifname, uint8_t *hwaddr, int len); LWS_EXTERN int lws_check_byte_utf8(unsigned char state, unsigned char c); LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_check_utf8(unsigned char *state, unsigned char *buf, size_t len); LWS_EXTERN int alloc_file(struct lws_context *context, const char *filename, uint8_t **buf, lws_filepos_t *amount); void lws_context_destroy2(struct lws_context *context); #if !defined(PRIu64) #define PRIu64 "llu" #endif #if defined(LWS_WITH_ABSTRACT) #include "private-lib-abstract.h" #endif #ifdef __cplusplus }; #endif #endif <file_sep>#!/bin/sh # Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved. # # Licensed under the OpenSSL license (the "License"). You may not use # this file except in compliance with the License. You can obtain a copy # in the file LICENSE in the source distribution or at # https://www.openssl.org/source/license.html # Utility to recreate S/MIME certificates OPENSSL=../../apps/openssl OPENSSL_CONF=./ca.cnf export OPENSSL_CONF # Root CA: create certificate directly CN="Test S/MIME RSA Root" $OPENSSL req -config ca.cnf -x509 -nodes \ -keyout smroot.pem -out smroot.pem -newkey rsa:2048 -days 3650 # EE RSA certificates: create request first CN="Test S/MIME EE RSA #1" $OPENSSL req -config ca.cnf -nodes \ -keyout smrsa1.pem -out req.pem -newkey rsa:2048 # Sign request: end entity extensions $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smrsa1.pem CN="Test S/MIME EE RSA #2" $OPENSSL req -config ca.cnf -nodes \ -keyout smrsa2.pem -out req.pem -newkey rsa:2048 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smrsa2.pem CN="Test S/MIME EE RSA #3" $OPENSSL req -config ca.cnf -nodes \ -keyout smrsa3.pem -out req.pem -newkey rsa:2048 $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smrsa3.pem # Create DSA parameters $OPENSSL dsaparam -out dsap.pem 2048 CN="Test S/MIME EE DSA #1" $OPENSSL req -config ca.cnf -nodes \ -keyout smdsa1.pem -out req.pem -newkey dsa:dsap.pem $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdsa1.pem CN="Test S/MIME EE DSA #2" $OPENSSL req -config ca.cnf -nodes \ -keyout smdsa2.pem -out req.pem -newkey dsa:dsap.pem $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdsa2.pem CN="Test S/MIME EE DSA #3" $OPENSSL req -config ca.cnf -nodes \ -keyout smdsa3.pem -out req.pem -newkey dsa:dsap.pem $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdsa3.pem # Create EC parameters $OPENSSL ecparam -out ecp.pem -name P-256 $OPENSSL ecparam -out ecp2.pem -name K-283 CN="Test S/MIME EE EC #1" $OPENSSL req -config ca.cnf -nodes \ -keyout smec1.pem -out req.pem -newkey ec:ecp.pem $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec1.pem CN="Test S/MIME EE EC #2" $OPENSSL req -config ca.cnf -nodes \ -keyout smec2.pem -out req.pem -newkey ec:ecp2.pem $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec2.pem CN="Test S/MIME EE EC #3" $OPENSSL req -config ca.cnf -nodes \ -keyout smec3.pem -out req.pem -newkey ec:ecp.pem $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec3.pem # Create X9.42 DH parameters. $OPENSSL genpkey -genparam -algorithm DH -pkeyopt dh_paramgen_type:2 \ -out dhp.pem # Generate X9.42 DH key. $OPENSSL genpkey -paramfile dhp.pem -out smdh.pem $OPENSSL pkey -pubout -in smdh.pem -out dhpub.pem # Generate dummy request. CN="Test S/MIME EE DH #1" $OPENSSL req -config ca.cnf -nodes \ -keyout smtmp.pem -out req.pem -newkey rsa:2048 # Sign request but force public key to DH $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -force_pubkey dhpub.pem \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdh.pem # Remove temp files. rm -f req.pem ecp.pem ecp2.pem dsap.pem dhp.pem dhpub.pem smtmp.pem smroot.srl <file_sep> /* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * Included from lib/private-lib-core.h if defined(WIN32) || defined(_WIN32) */ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #if defined(WINVER) && (WINVER < 0x0501) #undef WINVER #undef _WIN32_WINNT #define WINVER 0x0501 #define _WIN32_WINNT WINVER #endif #define LWS_NO_DAEMONIZE #define LWS_ERRNO WSAGetLastError() #define LWS_EAGAIN WSAEWOULDBLOCK #define LWS_EALREADY WSAEALREADY #define LWS_EINPROGRESS WSAEINPROGRESS #define LWS_EINTR WSAEINTR #define LWS_EISCONN WSAEISCONN #define LWS_ENOTCONN WSAENOTCONN #define LWS_EWOULDBLOCK WSAEWOULDBLOCK #define LWS_EADDRINUSE WSAEADDRINUSE #define MSG_NOSIGNAL 0 #define SHUT_RDWR SD_BOTH #define SOL_TCP IPPROTO_TCP #define SHUT_WR SD_SEND #define compatible_close(fd) closesocket(fd) #define lws_set_blocking_send(wsi) wsi->sock_send_blocking = 1 #include <winsock2.h> #include <ws2tcpip.h> #include <windows.h> #include <tchar.h> #ifdef LWS_HAVE_IN6ADDR_H #include <in6addr.h> #endif #include <mstcpip.h> #include <io.h> #if !defined(LWS_HAVE_ATOLL) #if defined(LWS_HAVE__ATOI64) #define atoll _atoi64 #else #warning No atoll or _atoi64 available, using atoi #define atoll atoi #endif #endif #ifndef __func__ #define __func__ __FUNCTION__ #endif #ifdef LWS_HAVE__VSNPRINTF #define vsnprintf _vsnprintf #endif /* we don't have an implementation for this on windows... */ int kill(int pid, int sig); int fork(void); #ifndef SIGINT #define SIGINT 2 #endif #include <gettimeofday.h> #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 /* to show byte order (taken from gcc) */ #endif #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif #undef __P #ifndef __P #if __STDC__ #define __P(protos) protos #else #define __P(protos) () #endif #endif #ifdef _WIN32 #ifndef FD_HASHTABLE_MODULUS #define FD_HASHTABLE_MODULUS 32 #endif #endif #define lws_plat_socket_offset() (0) struct lws; struct lws_context; #define LWS_FD_HASH(fd) ((fd ^ (fd >> 8) ^ (fd >> 16)) % FD_HASHTABLE_MODULUS) struct lws_fd_hashtable { struct lws **wsi; int length; }; #ifdef LWS_DLL #ifdef LWS_INTERNAL #define LWS_EXTERN extern __declspec(dllexport) #else #define LWS_EXTERN extern __declspec(dllimport) #endif #else #define LWS_EXTERN extern #endif typedef SOCKET lws_sockfd_type; typedef HANDLE lws_filefd_type; #define LWS_WIN32_HANDLE_TYPES LWS_EXTERN struct lws * wsi_from_fd(const struct lws_context *context, lws_sockfd_type fd); LWS_EXTERN int insert_wsi(struct lws_context *context, struct lws *wsi); LWS_EXTERN int delete_from_fd(struct lws_context *context, lws_sockfd_type fd); <file_sep>/* * If you are including the plugin into your code using static build, you * can simplify it by just including this file, which will include all the * related code in one step without you having to get involved in the detail. */ #define LWS_PLUGIN_STATIC #include "../crypto/chacha.c" #include "../crypto/ed25519.c" #include "../crypto/fe25519.c" #include "../crypto/ge25519.c" #include "../crypto/poly1305.c" #include "../crypto/sc25519.c" #include "../crypto/smult_curve25519_ref.c" #include "../kex-25519.c" #include "../sshd.c" #include "../telnet.c" <file_sep>#!/bin/bash # # Requires pip install autobahntestsuite # # you should run this from ./build, after building with # cmake .. -DLWS_WITH_MINIMAL_EXAMPLES=1 # # It will use the minimal echo client and server to run # autobahn ws tests as both client and server. echo echo "----------------------------------------------" echo "------- tests: autobahn as client" echo set -u PARALLEL=1 N=1 OS=`uname` CLIE=bin/lws-minimal-ws-client-echo SERV=bin/lws-minimal-ws-server-echo RESULT=0 which wstest 2>/dev/null if [ $? -ne 0 ]; then echo "wstest is not installed" exit 8 fi killall wstest 2>/dev/null # # 2.10 / 2.11: There is no requirement to handle multiple PING / PONG # in flight in RFC6455. lws doesn't waste memory on it # since it is useless. # # 12.3.1 / 12.3.2 # 12.4.* / 12.5.*: Autobahn has been broken for these tests since Aug 2017 # https://github.com/crossbario/autobahn-testsuite/issues/71 cat << EOF >fuzzingserver.json { "url": "ws://127.0.0.1:9001", "outdir": "./reports/clients", "cases": ["*"], "exclude-cases": [ "2.10", "2.11", "12.3.1", "12.3.2", "12.4.*", "12.5.*"], "exclude-agent-cases": {} } EOF PYTHONHASHSEED=0 wstest -m fuzzingserver & Q=$! sleep 2s ps -p $Q > /dev/null if [ $? -ne 0 ] ; then echo "Problem with autobahn wstest install" exit 9 fi # 1) lws-as-client tests first ok=1 while [ $ok -eq 1 ] ; do $CLIE -s 127.0.0.1 -p 9001 -u "/runCase?case=$N&agent=libwebsockets" -d3 if [ $? -ne 0 ]; then ok=0 fi N=$(( $N + 1 )) done # generate the report in ./reports # $CLIE -s 127.0.0.1 -p 9001 -u "/updateReports?agent=libwebsockets" -o -d3 sleep 2s killall wstest sleep 1s # this squashes the results into single lines like # # "9.8.4": { "behavior": "OK", "behaviorClose": "OK", "duration": 1312, "remoteCloseCode": 1000, "reportfile": "libwebsockets_case_9_8_4.json" cat reports/clients/index.json | tr '\n' '!' | sed "s|\},\!|\n|g" | tr '!' ' ' | tr -s ' ' > /tmp/ji echo -n "AUTOBAHN SERVER / LWS CLIENT: Total tests: " `cat /tmp/ji | wc -l` " : " R="`cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior": "INFORMATIONAL"' | wc -l`" if [ "$R" == "0" ] ; then echo "All pass" else RESULT=1 echo -n "$R FAIL : " cat /tmp/ji | grep -v '"behavior": "OK"' | grep -v '"behavior": "NON-STRICT"' | grep -v '"behavior": "INFORMATIONAL"' | cut -d\" -f2 | tr '\n' ',' echo fi echo $RESULT exit $RESULT <file_sep>Notes about coding with lws =========================== @section era Old lws and lws v2.0 Originally lws only supported the "manual" method of handling everything in the user callback found in test-server.c / test-server-http.c. Since v2.0, the need for most or all of this manual boilerplate has been eliminated: the protocols[0] http stuff is provided by a generic lib export `lws_callback_http_dummy()`. You can serve parts of your filesystem at part of the URL space using mounts, the dummy http callback will do the right thing. It's much preferred to use the "automated" v2.0 type scheme, because it's less code and it's easier to support. The minimal examples all use the modern, recommended way. If you just need generic serving capability, without the need to integrate lws to some other app, consider not writing any server code at all, and instead use the generic server `lwsws`, and writing your special user code in a standalone "plugin". The server is configured for mounts etc using JSON, see ./READMEs/README.lwsws.md. Although the "plugins" are dynamically loaded if you use lwsws or lws built with libuv, actually they may perfectly well be statically included if that suits your situation better, eg, ESP32 test server, where the platform does not support processes or dynamic loading, just #includes the plugins one after the other and gets the same benefit from the same code. Isolating and collating the protocol code in one place also makes it very easy to maintain and understand. So it if highly recommended you put your protocol-specific code into the form of a "plugin" at the source level, even if you have no immediate plan to use it dynamically-loaded. @section writeable Only send data when socket writeable You should only send data on a websocket connection from the user callback `LWS_CALLBACK_SERVER_WRITEABLE` (or `LWS_CALLBACK_CLIENT_WRITEABLE` for clients). If you want to send something, do NOT just send it but request a callback when the socket is writeable using - `lws_callback_on_writable(wsi)` for a specific `wsi`, or - `lws_callback_on_writable_all_protocol(protocol)` for all connections using that protocol to get a callback when next writeable. Usually you will get called back immediately next time around the service loop, but if your peer is slow or temporarily inactive the callback will be delayed accordingly. Generating what to write and sending it should be done in the ...WRITEABLE callback. See the test server code for an example of how to do this. Otherwise evolved libs like libuv get this wrong, they will allow you to "send" anything you want but it only uses up your local memory (and costs you memcpys) until the socket can actually accept it. It is much better to regulate your send action by the downstream peer readiness to take new data in the first place, avoiding all the wasted buffering. Libwebsockets' concept is that the downstream peer is truly the boss, if he, or our connection to him, cannot handle anything new, we should not generate anything new for him. This is how unix shell piping works, you may have `cat a.txt | grep xyz > remote", but actually that does not cat anything from a.txt while remote cannot accept anything new. @section oneper Only one lws_write per WRITEABLE callback From v2.5, lws strictly enforces only one lws_write() per WRITEABLE callback. You will receive a message about "Illegal back-to-back write of ... detected" if there is a second lws_write() before returning to the event loop. This is because with http/2, the state of the network connection carrying a wsi is unrelated to any state of the wsi. The situation on http/1 where a new request implied a new tcp connection and new SSL buffer, so you could assume some window for writes is no longer true. Any lws_write() can fail and be buffered for completion by lws; it will be auto-completed by the event loop. Note that if you are handling your own http responses, writing the headers needs to be done with a separate lws_write() from writing any payload. That means after writing the headers you must call `lws_callback_on_writable(wsi)` and send any payload from the writable callback. @section otherwr Do not rely on only your own WRITEABLE requests appearing Libwebsockets may generate additional `LWS_CALLBACK_CLIENT_WRITEABLE` events if it met network conditions where it had to buffer your send data internally. So your code for `LWS_CALLBACK_CLIENT_WRITEABLE` needs to own the decision about what to send, it can't assume that just because the writeable callback came something is ready to send. It's quite possible you get an 'extra' writeable callback at any time and just need to `return 0` and wait for the expected callback later. @section dae Daemonization There's a helper api `lws_daemonize` built by default that does everything you need to daemonize well, including creating a lock file. If you're making what's basically a daemon, just call this early in your init to fork to a headless background process and exit the starting process. Notice stdout, stderr, stdin are all redirected to /dev/null to enforce your daemon is headless, so you'll need to sort out alternative logging, by, eg, syslog via `lws_set_log_level(..., lwsl_emit_syslog)`. @section conns Maximum number of connections The maximum number of connections the library can deal with is decided when it starts by querying the OS to find out how many file descriptors it is allowed to open (1024 on Fedora for example). It then allocates arrays that allow up to that many connections, minus whatever other file descriptors are in use by the user code. If you want to restrict that allocation, or increase it, you can use ulimit or similar to change the available number of file descriptors, and when restarted **libwebsockets** will adapt accordingly. @section peer_limits optional LWS_WITH_PEER_LIMITS If you select `LWS_WITH_PEER_LIMITS` at cmake, then lws will track peer IPs and monitor how many connections and ah resources they are trying to use at one time. You can choose to limit these at context creation time, using `info.ip_limit_ah` and `info.ip_limit_wsi`. Note that although the ah limit is 'soft', ie, the connection will just wait until the IP is under the ah limit again before attaching a new ah, the wsi limit is 'hard', lws will drop any additional connections from the IP until it's under the limit again. If you use these limits, you should consider multiple clients may simultaneously try to access the site through NAT, etc. So the limits should err on the side of being generous, while still making it impossible for one IP to exhaust all the server resources. @section evtloop Libwebsockets is singlethreaded Libwebsockets works in a serialized event loop, in a single thread. It supports the default poll() backend, and libuv, libev, and libevent event loop libraries that also take this locking-free, nonblocking event loop approach that is not threadsafe. There are several advantages to this technique, but one disadvantage, it doesn't integrate easily if there are multiple threads that want to use libwebsockets. However integration to multithreaded apps is possible if you follow some guidelines. 1) Aside from two APIs, directly calling lws apis from other threads is not allowed. 2) If you want to keep a list of live wsi, you need to use lifecycle callbacks on the protocol in the service thread to manage the list, with your own locking. Typically you use an ESTABLISHED callback to add ws wsi to your list and a CLOSED callback to remove them. 3) LWS regulates your write activity by being able to let you know when you may write more on a connection. That reflects the reality that you cannot succeed to send data to a peer that has no room for it, so you should not generate or buffer write data until you know the peer connection can take more. Other libraries pretend that the guy doing the writing is the boss who decides what happens, and absorb as much as you want to write to local buffering. That does not scale to a lot of connections, because it will exhaust your memory and waste time copying data around in memory needlessly. The truth is the receiver, along with the network between you, is the boss who decides what will happen. If he stops accepting data, no data will move. LWS is designed to reflect that. If you have something to send, you call `lws_callback_on_writable()` on the connection, and when it is writeable, you will get a `LWS_CALLBACK_SERVER_WRITEABLE` callback, where you should generate the data to send and send it with `lws_write()`. You cannot send data using `lws_write()` outside of the WRITEABLE callback. 4) For multithreaded apps, this corresponds to a need to be able to provoke the `lws_callback_on_writable()` action and to wake the service thread from its event loop wait (sleeping in `poll()` or `epoll()` or whatever). The rules above mean directly sending data on the connection from another thread is out of the question. Therefore the two apis mentioned above that may be used from another thread are - For LWS using the default poll() event loop, `lws_callback_on_writable()` - For LWS using libuv/libev/libevent event loop, `lws_cancel_service()` If you are using the default poll() event loop, one "foreign thread" at a time may call `lws_callback_on_writable()` directly for a wsi. You need to use your own locking around that to serialize multiple thread access to it. If you implement LWS_CALLBACK_GET_THREAD_ID in protocols[0], then LWS will detect when it has been called from a foreign thread and automatically use `lws_cancel_service()` to additionally wake the service loop from its wait. For libuv/libev/libevent event loop, they cannot handle being called from other threads. So there is a slightly different scheme, you may call `lws_cancel_service()` to force the event loop to end immediately. This then broadcasts a callback (in the service thread context) `LWS_CALLBACK_EVENT_WAIT_CANCELLED`, to all protocols on all vhosts, where you can perform your own locking and walk a list of wsi that need `lws_callback_on_writable()` calling on them. `lws_cancel_service()` is very cheap to call. 5) The obverse of this truism about the receiver being the boss is the case where we are receiving. If we get into a situation we actually can't usefully receive any more, perhaps because we are passing the data on and the guy we want to send to can't receive any more, then we should "turn off RX" by using the RX flow control API, `lws_rx_flow_control(wsi, 0)`. When something happens where we can accept more RX, (eg, we learn our onward connection is writeable) we can call it again to re-enable it on the incoming wsi. LWS stops calling back about RX immediately you use flow control to disable RX, it buffers the data internally if necessary. So you will only see RX when you can handle it. When flow control is disabled, LWS stops taking new data in... this makes the situation known to the sender by TCP "backpressure", the tx window fills and the sender finds he cannot write any more to the connection. See the mirror protocol implementations for example code. If you need to service other socket or file descriptors as well as the websocket ones, you can combine them together with the websocket ones in one poll loop, see "External Polling Loop support" below, and still do it all in one thread / process context. If the need is less architectural, you can also create RAW mode client and serving sockets; this is how the lws plugin for the ssh server works. @section anonprot Working without a protocol name Websockets allows connections to negotiate without a protocol name... in that case by default it will bind to the first protocol in your vhost protocols[] array. You can tell the vhost to use a different protocol by attaching a pvo (per-vhost option) to the ``` /* * this sets a per-vhost, per-protocol option name:value pair * the effect is to set this protocol to be the default one for the vhost, * ie, selected if no Protocol: header is sent with the ws upgrade. */ static const struct lws_protocol_vhost_options pvo_opt = { NULL, NULL, "default", "1" }; static const struct lws_protocol_vhost_options pvo = { NULL, &pvo_opt, "my-protocol", "" }; ... context_info.pvo = &pvo; ... ``` Will select "my-protocol" from your protocol list (even if it came in by plugin) as being the target of client connections that don't specify a protocol. @section closing Closing connections from the user side When you want to close a connection, you do it by returning `-1` from a callback for that connection. You can provoke a callback by calling `lws_callback_on_writable` on the wsi, then notice in the callback you want to close it and just return -1. But usually, the decision to close is made in a callback already and returning -1 is simple. If the socket knows the connection is dead, because the peer closed or there was an affirmitive network error like a FIN coming, then **libwebsockets** will take care of closing the connection automatically. If you have a silently dead connection, it's possible to enter a state where the send pipe on the connection is choked but no ack will ever come, so the dead connection will never become writeable. To cover that, you can use TCP keepalives (see later in this document) or pings. @section gzip Serving from inside a zip file Lws now supports serving gzipped files from inside a zip container. Thanks to <NAME> for contributing the code. This has the advtantage that if the client can accept GZIP encoding, lws can simply send the gzip-compressed file from inside the zip file with no further processing, saving time and bandwidth. In the case the client can't understand gzip compression, lws automatically decompressed the file and sends it normally. Clients with limited storage and RAM will find this useful; the memory needed for the inflate case is constrained so that only one input buffer at a time is ever in memory. To use this feature, ensure LWS_WITH_ZIP_FOPS is enabled at CMake. `libwebsockets-test-server-v2.0` includes a mount using this technology already, run that test server and navigate to http://localhost:7681/ziptest/candide.html This will serve the book Candide in html, together with two jpgs, all from inside a .zip file in /usr/[local/]share-libwebsockets-test-server/candide.zip Usage is otherwise automatic, if you arrange a mount that points to the zipfile, eg, "/ziptest" -> "mypath/test.zip", then URLs like `/ziptest/index.html` will be servied from `index.html` inside `mypath/test.zip` @section frags Fragmented messages To support fragmented messages you need to check for the final frame of a message with `lws_is_final_fragment`. This check can be combined with `libwebsockets_remaining_packet_payload` to gather the whole contents of a message, eg: ``` case LWS_CALLBACK_RECEIVE: { Client * const client = (Client *)user; const size_t remaining = lws_remaining_packet_payload(wsi); if (!remaining && lws_is_final_fragment(wsi)) { if (client->HasFragments()) { client->AppendMessageFragment(in, len, 0); in = (void *)client->GetMessage(); len = client->GetMessageLength(); } client->ProcessMessage((char *)in, len, wsi); client->ResetMessage(); } else client->AppendMessageFragment(in, len, remaining); } break; ``` The test app libwebsockets-test-fraggle sources also show how to deal with fragmented messages. @section debuglog Debug Logging Also using `lws_set_log_level` api you may provide a custom callback to actually emit the log string. By default, this points to an internal emit function that sends to stderr. Setting it to `NULL` leaves it as it is instead. A helper function `lwsl_emit_syslog()` is exported from the library to simplify logging to syslog. You still need to use `setlogmask`, `openlog` and `closelog` in your user code. The logging apis are made available for user code. - `lwsl_err(...)` - `lwsl_warn(...)` - `lwsl_notice(...)` - `lwsl_info(...)` - `lwsl_debug(...)` The difference between notice and info is that notice will be logged by default whereas info is ignored by default. If you are not building with _DEBUG defined, ie, without this ``` $ cmake .. -DCMAKE_BUILD_TYPE=DEBUG ``` then log levels below notice do not actually get compiled in. @section asan Building with ASAN Under GCC you can select for the build to be instrumented with the Address Sanitizer, using `cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DLWS_WITH_ASAN=1`. LWS is routinely run during development with valgrind, but ASAN is capable of finding different issues at runtime, like operations which are not strictly defined in the C standard and depend on platform behaviours. Run your application like this ``` $ sudo ASAN_OPTIONS=verbosity=2:halt_on_error=1 /usr/local/bin/lwsws ``` and attach gdb to catch the place it halts. @section extpoll External Polling Loop support **libwebsockets** maintains an internal `poll()` array for all of its sockets, but you can instead integrate the sockets into an external polling array. That's needed if **libwebsockets** will cooperate with an existing poll array maintained by another server. Three callbacks `LWS_CALLBACK_ADD_POLL_FD`, `LWS_CALLBACK_DEL_POLL_FD` and `LWS_CALLBACK_CHANGE_MODE_POLL_FD` appear in the callback for protocol 0 and allow interface code to manage socket descriptors in other poll loops. You can pass all pollfds that need service to `lws_service_fd()`, even if the socket or file does not belong to **libwebsockets** it is safe. If **libwebsocket** handled it, it zeros the pollfd `revents` field before returning. So you can let **libwebsockets** try and if `pollfd->revents` is nonzero on return, you know it needs handling by your code. Also note that when integrating a foreign event loop like libev or libuv where it doesn't natively use poll() semantics, and you must return a fake pollfd reflecting the real event: - be sure you set .events to .revents value as well in the synthesized pollfd - check the built-in support for the event loop if possible (eg, ./lib/libuv.c) to see how it interfaces to lws - use LWS_POLLHUP / LWS_POLLIN / LWS_POLLOUT from libwebsockets.h to avoid losing windows compatibility You also need to take care about "forced service" somehow... these are cases where the network event was consumed, incoming data was all read, for example, but the work arising from it was not completed. There will not be any more network event to trigger the remaining work, Eg, we read compressed data, but we did not use up all the decompressed data before returning to the event loop because we had to write some of it. Lws provides an API to determine if anyone is waiting for forced service, `lws_service_adjust_timeout(context, 1, tsi)`, normally tsi is 0. If it returns 0, then at least one connection has pending work you can get done by calling `lws_service_tsi(context, -1, tsi)`, again normally tsi is 0. For eg, the default poll() event loop, or libuv/ev/event, lws does this checking for you and handles it automatically. But in the external polling loop case, you must do it explicitly. Handling it after every normal service triggered by the external poll fd should be enough, since the situations needing it are initially triggered by actual network events. An example of handling it is shown in the test-server code specific to external polling. @section cpp Using with in c++ apps The library is ready for use by C++ apps. You can get started quickly by copying the test server ``` $ cp test-apps/test-server.c test.cpp ``` and building it in C++ like this ``` $ g++ -DINSTALL_DATADIR=\"/usr/share\" -ocpptest test.cpp -lwebsockets ``` `INSTALL_DATADIR` is only needed because the test server uses it as shipped, if you remove the references to it in your app you don't need to define it on the g++ line either. @section headerinfo Availability of header information HTTP Header information is managed by a pool of "ah" structs. These are a limited resource so there is pressure to free the headers and return the ah to the pool for reuse. For that reason header information on HTTP connections that get upgraded to websockets is lost after the ESTABLISHED callback. Anything important that isn't processed by user code before then should be copied out for later. For HTTP connections that don't upgrade, header info remains available the whole time. @section http2compat Code Requirements for HTTP/2 compatibility Websocket connections only work over http/1, so there is nothing special to do when you want to enable -DLWS_WITH_HTTP2=1. The internal http apis already follow these requirements and are compatible with http/2 already. So if you use stuff like mounts and serve stuff out of the filesystem, there's also nothing special to do. However if you are getting your hands dirty with writing response headers, or writing bulk data over http/2, you need to observe these rules so that it will work over both http/1.x and http/2 the same. 1) LWS_PRE requirement applies on ALL lws_write(). For http/1, you don't have to take care of LWS_PRE for http data, since it is just sent straight out. For http/2, it will write up to LWS_PRE bytes behind the buffer start to create the http/2 frame header. This has implications if you treated the input buffer to lws_write() as const... it isn't any more with http/2, up to 9 bytes behind the buffer will be trashed. 2) Headers are encoded using a sophisticated scheme in http/2. The existing header access apis are already made compatible for incoming headers, for outgoing headers you must: - observe the LWS_PRE buffer requirement mentioned above - Use `lws_add_http_header_status()` to add the transaction status (200 etc) - use lws apis `lws_add_http_header_by_name()` and `lws_add_http_header_by_token()` to put the headers into the buffer (these will translate what is actually written to the buffer depending on if the connection is in http/2 mode or not) - use the `lws api lws_finalize_http_header()` api after adding the last response header - write the header using lws_write(..., `LWS_WRITE_HTTP_HEADERS`); 3) http/2 introduces per-stream transmit credit... how much more you can send on a stream is decided by the peer. You start off with some amount, as the stream sends stuff lws will reduce your credit accordingly, when it reaches zero, you must not send anything further until lws receives "more credit" for that stream the peer. Lws will suppress writable callbacks if you hit 0 until more credit for the stream appears, and lws built-in file serving (via mounts etc) already takes care of observing the tx credit restrictions. However if you write your own code that wants to send http data, you must consult the `lws_get_peer_write_allowance()` api to find out the state of your tx credit. For http/1, it will always return (size_t)-1, ie, no limit. This is orthogonal to the question of how much space your local side's kernel will make to buffer your send data on that connection. So although the result from `lws_get_peer_write_allowance()` is "how much you can send" logically, and may be megabytes if the peer allows it, you should restrict what you send at one time to whatever your machine will generally accept in one go, and further reduce that amount if `lws_get_peer_write_allowance()` returns something smaller. If it returns 0, you should not consume or send anything and return having asked for callback on writable, it will only come back when more tx credit has arrived for your stream. 4) Header names with captital letters are illegal in http/2. Header names in http/1 are case insensitive. So if you generate headers by name, change all your header name strings to lower-case to be compatible both ways. 5) Chunked Transfer-encoding is illegal in http/2, http/2 peers will actively reject it. Lws takes care of removing the header and converting CGIs that emit chunked into unchunked automatically for http/2 connections. If you follow these rules, your code will automatically work with both http/1.x and http/2. @section ka TCP Keepalive It is possible for a connection which is not being used to send to die silently somewhere between the peer and the side not sending. In this case by default TCP will just not report anything and you will never get any more incoming data or sign the link is dead until you try to send. To deal with getting a notification of that situation, you can choose to enable TCP keepalives on all **libwebsockets** sockets, when you create the context. To enable keepalive, set the ka_time member of the context creation parameter struct to a nonzero value (in seconds) at context creation time. You should also fill ka_probes and ka_interval in that case. With keepalive enabled, the TCP layer will send control packets that should stimulate a response from the peer without affecting link traffic. If the response is not coming, the socket will announce an error at `poll()` forcing a close. Note that BSDs don't support keepalive time / probes / interval per-socket like Linux does. On those systems you can enable keepalive by a nonzero value in `ka_time`, but the systemwide kernel settings for the time / probes/ interval are used, regardless of what nonzero value is in `ka_time`. @section sslopt Optimizing SSL connections There's a member `ssl_cipher_list` in the `lws_context_creation_info` struct which allows the user code to restrict the possible cipher selection at context-creation time. You might want to look into that to stop the ssl peers selecting a cipher which is too computationally expensive. To use it, point it to a string like `"RC4-MD5:RC4-SHA:AES128-SHA:AES256-SHA:HIGH:!DSS:!aNULL"` if left `NULL`, then the "DEFAULT" set of ciphers are all possible to select. You can also set it to `"ALL"` to allow everything (including insecure ciphers). @section sslcerts Passing your own cert information direct to SSL_CTX For most users it's enough to pass the SSL certificate and key information by giving filepaths to the info.ssl_cert_filepath and info.ssl_private_key_filepath members when creating the vhost. If you want to control that from your own code instead, you can do so by leaving the related info members NULL, and setting the info.options flag LWS_SERVER_OPTION_CREATE_VHOST_SSL_CTX at vhost creation time. That will create the vhost SSL_CTX without any certificate, and allow you to use the callback LWS_CALLBACK_OPENSSL_LOAD_EXTRA_SERVER_VERIFY_CERTS to add your certificate to the SSL_CTX directly. The vhost SSL_CTX * is in the user parameter in that callback. @section clientasync Async nature of client connections When you call `lws_client_connect_info(..)` and get a `wsi` back, it does not mean your connection is active. It just means it started trying to connect. Your client connection is actually active only when you receive `LWS_CALLBACK_CLIENT_ESTABLISHED` for it. There's a 5 second timeout for the connection, and it may give up or die for other reasons, if any of that happens you'll get a `LWS_CALLBACK_CLIENT_CONNECTION_ERROR` callback on protocol 0 instead for the `wsi`. After attempting the connection and getting back a non-`NULL` `wsi` you should loop calling `lws_service()` until one of the above callbacks occurs. As usual, see [test-client.c](../test-apps/test-client.c) for example code. Notice that the client connection api tries to progress the connection somewhat before returning. That means it's possible to get callbacks like CONNECTION_ERROR on the new connection before your user code had a chance to get the wsi returned to identify it (in fact if the connection did fail early, NULL will be returned instead of the wsi anyway). To avoid that problem, you can fill in `pwsi` in the client connection info struct to point to a struct lws that get filled in early by the client connection api with the related wsi. You can then check for that in the callback to confirm the identity of the failing client connection. @section fileapi Lws platform-independent file access apis lws now exposes his internal platform file abstraction in a way that can be both used by user code to make it platform-agnostic, and be overridden or subclassed by user code. This allows things like handling the URI "directory space" as a virtual filesystem that may or may not be backed by a regular filesystem. One example use is serving files from inside large compressed archive storage without having to unpack anything except the file being requested. The test server shows how to use it, basically the platform-specific part of lws prepares a file operations structure that lives in the lws context. The user code can get a pointer to the file operations struct ``` LWS_VISIBLE LWS_EXTERN struct lws_plat_file_ops * `lws_get_fops`(struct lws_context *context); ``` and then can use helpers to also leverage these platform-independent file handling apis ``` lws_fop_fd_t `lws_plat_file_open`(struct lws_plat_file_ops *fops, const char *filename, lws_fop_flags_t *flags) int `lws_plat_file_close`(lws_fop_fd_t fop_fd) unsigned long `lws_plat_file_seek_cur`(lws_fop_fd_t fop_fd, lws_fileofs_t offset) int `lws_plat_file_read`(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len) int `lws_plat_file_write`(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len ) ``` Generic helpers are provided which provide access to generic fops information or call through to the above fops ``` lws_filepos_t lws_vfs_tell(lws_fop_fd_t fop_fd); lws_filepos_t lws_vfs_get_length(lws_fop_fd_t fop_fd); uint32_t lws_vfs_get_mod_time(lws_fop_fd_t fop_fd); lws_fileofs_t lws_vfs_file_seek_set(lws_fop_fd_t fop_fd, lws_fileofs_t offset); lws_fileofs_t lws_vfs_file_seek_end(lws_fop_fd_t fop_fd, lws_fileofs_t offset); ``` The user code can also override or subclass the file operations, to either wrap or replace them. An example is shown in test server. ### Changes from v2.1 and before fops There are several changes: 1) Pre-2.2 fops directly used platform file descriptors. Current fops returns and accepts a wrapper type lws_fop_fd_t which is a pointer to a malloc'd struct containing information specific to the filesystem implementation. 2) Pre-2.2 fops bound the fops to a wsi. This is completely removed, you just give a pointer to the fops struct that applies to this file when you open it. Afterwards, the operations in the fops just need the lws_fop_fd_t returned from the open. 3) Everything is wrapped in typedefs. See lws-plat-unix.c for examples of how to implement. 4) Position in the file, File Length, and a copy of Flags left after open are now generically held in the fop_fd. VFS implementation must set and manage this generic information now. See the implementations in lws-plat-unix.c for examples. 5) The file length is no longer set at a pointer provided by the open() fop. The api `lws_vfs_get_length()` is provided to get the file length after open. 6) If your file namespace is virtual, ie, is not reachable by platform fops directly, you must set LWS_FOP_FLAG_VIRTUAL on the flags during open. 7) There is an optional `mod_time` uint32_t member in the generic fop_fd. If you are able to set it during open, you should indicate it by setting `LWS_FOP_FLAG_MOD_TIME_VALID` on the flags. @section rawfd RAW file descriptor polling LWS allows you to include generic platform file descriptors in the lws service / poll / event loop. Open your fd normally and then ``` lws_sock_file_fd_type u; u.filefd = your_open_file_fd; if (!lws_adopt_descriptor_vhost(vhost, 0, u, "protocol-name-to-bind-to", optional_wsi_parent_or_NULL)) { // failed } // OK ``` A wsi is created for the file fd that acts like other wsi, you will get these callbacks on the named protocol ``` LWS_CALLBACK_RAW_ADOPT_FILE LWS_CALLBACK_RAW_RX_FILE LWS_CALLBACK_RAW_WRITEABLE_FILE LWS_CALLBACK_RAW_CLOSE_FILE ``` starting with LWS_CALLBACK_RAW_ADOPT_FILE. The minimal example `raw/minimal-raw-file` demonstrates how to use it. `protocol-lws-raw-test` plugin also provides a method for testing this with `libwebsockets-test-server-v2.0`: The plugin creates a FIFO on your system called "/tmp/lws-test-raw" You can feed it data through the FIFO like this ``` $ sudo sh -c "echo hello > /tmp/lws-test-raw" ``` This plugin simply prints the data. But it does it through the lws event loop / service poll. @section rawsrvsocket RAW server socket descriptor polling You can also enable your vhost to accept RAW socket connections, in addition to HTTP[s] and WS[s]. If the first bytes written on the connection are not a valid HTTP method, then the connection switches to RAW mode. This is disabled by default, you enable it by setting the `.options` flag LWS_SERVER_OPTION_FALLBACK_TO_APPLY_LISTEN_ACCEPT_CONFIG, and setting `.listen_accept_role` to `"raw-skt"` when creating the vhost. RAW mode socket connections receive the following callbacks ``` LWS_CALLBACK_RAW_ADOPT LWS_CALLBACK_RAW_RX LWS_CALLBACK_RAW_WRITEABLE LWS_CALLBACK_RAW_CLOSE ``` You can control which protocol on your vhost handles these RAW mode incoming connections by setting the vhost info struct's `.listen_accept_protocol` to the vhost protocol name to use. `protocol-lws-raw-test` plugin provides a method for testing this with `libwebsockets-test-server-v2.0`: Run libwebsockets-test-server-v2.0 and connect to it by telnet, eg ``` $ telnet 127.0.0.1 7681 ``` type something that isn't a valid HTTP method and enter, before the connection times out. The connection will switch to RAW mode using this protocol, and pass the unused rx as a raw RX callback. The test protocol echos back what was typed on telnet to telnet. @section rawclientsocket RAW client socket descriptor polling You can now also open RAW socket connections in client mode. Follow the usual method for creating a client connection, but set the `info.method` to "RAW". When the connection is made, the wsi will be converted to RAW mode and operate using the same callbacks as the server RAW sockets described above. The libwebsockets-test-client supports this using raw:// URLS. To test, open a netcat listener in one window ``` $ nc -l 9999 ``` and in another window, connect to it using the test client ``` $ libwebsockets-test-client raw://127.0.0.1:9999 ``` The connection should succeed, and text typed in the netcat window (including a CRLF) will be received in the client. @section rawudp RAW UDP socket integration Lws provides an api to create, optionally bind, and adopt a RAW UDP socket (RAW here means an uninterpreted normal UDP socket, not a "raw socket"). ``` LWS_VISIBLE LWS_EXTERN struct lws * lws_create_adopt_udp(struct lws_vhost *vhost, int port, int flags, const char *protocol_name, struct lws *parent_wsi); ``` `flags` should be `LWS_CAUDP_BIND` if the socket will receive packets. The callbacks `LWS_CALLBACK_RAW_ADOPT`, `LWS_CALLBACK_RAW_CLOSE`, `LWS_CALLBACK_RAW_RX` and `LWS_CALLBACK_RAW_WRITEABLE` apply to the wsi. But UDP is different than TCP in some fundamental ways. For receiving on a UDP connection, data becomes available at `LWS_CALLBACK_RAW_RX` as usual, but because there is no specific connection with UDP, it is necessary to also get the source address of the data separately, using `struct lws_udp * lws_get_udp(wsi)`. You should take a copy of the `struct lws_udp` itself (not the pointer) and save it for when you want to write back to that peer. Writing is also a bit different for UDP. By default, the system has no idea about the receiver state and so asking for a `callback_on_writable()` always believes that the socket is writeable... the callback will happen next time around the event loop. With UDP, there is no single "connection". You need to write with sendto() and direct the packets to a specific destination. To return packets to a peer who sent something earlier and you copied his `struct lws_udp`, you use the .sa and .salen members as the last two parameters of the sendto(). The kernel may not accept to buffer / write everything you wanted to send. So you are responsible to watch the result of sendto() and resend the unsent part next time (which may involve adding new protocol headers to the remainder depending on what you are doing). @section ecdh ECDH Support ECDH Certs are now supported. Enable the CMake option cmake .. -DLWS_SSL_SERVER_WITH_ECDH_CERT=1 **and** the info->options flag LWS_SERVER_OPTION_SSL_ECDH to build in support and select it at runtime. @section sslinfo SSL info callbacks OpenSSL allows you to receive callbacks for various events defined in a bitmask in openssl/ssl.h. The events include stuff like TLS Alerts. By default, lws doesn't register for these callbacks. However if you set the info.ssl_info_event_mask to nonzero (ie, set some of the bits in it like `SSL_CB_ALERT` at vhost creation time, then connections to that vhost will call back using LWS_CALLBACK_SSL_INFO for the wsi, and the `in` parameter will be pointing to a struct of related args: ``` struct lws_ssl_info { int where; int ret; }; ``` The default callback handler in lws has a handler for LWS_CALLBACK_SSL_INFO which prints the related information, You can test it using the switch -S -s on `libwebsockets-test-server-v2.0`. Returning nonzero from the callback will close the wsi. @section smp SMP / Multithreaded service SMP support is integrated into LWS without any internal threading. It's very simple to use, libwebsockets-test-server-pthread shows how to do it, use -j n argument there to control the number of service threads up to 32. Two new members are added to the info struct unsigned int count_threads; unsigned int fd_limit_per_thread; leave them at the default 0 to get the normal singlethreaded service loop. Set count_threads to n to tell lws you will have n simultaneous service threads operating on the context. There is still a single listen socket on one port, no matter how many service threads. When a connection is made, it is accepted by the service thread with the least connections active to perform load balancing. The user code is responsible for spawning n threads running the service loop associated to a specific tsi (Thread Service Index, 0 .. n - 1). See the libwebsockets-test-server-pthread for how to do. If you leave fd_limit_per_thread at 0, then the process limit of fds is shared between the service threads; if you process was allowed 1024 fds overall then each thread is limited to 1024 / n. You can set fd_limit_per_thread to a nonzero number to control this manually, eg the overall supported fd limit is less than the process allowance. You can control the context basic data allocation for multithreading from Cmake using -DLWS_MAX_SMP=, if not given it's set to 1. The serv_buf allocation for the threads (currently 4096) is made at runtime only for active threads. Because lws will limit the requested number of actual threads supported according to LWS_MAX_SMP, there is an api lws_get_count_threads(context) to discover how many threads were actually allowed when the context was created. See the test-server-pthreads.c sample for how to use. @section smplocking SMP Locking Helpers Lws provide a set of pthread mutex helpers that reduce to no code or variable footprint in the case that LWS_MAX_SMP == 1. Define your user mutex like this ``` lws_pthread_mutex(name); ``` If LWS_MAX_SMP > 1, this produces `pthread_mutex_t name;`. In the case LWS_MAX_SMP == 1, it produces nothing. Likewise these helpers for init, destroy, lock and unlock ``` void lws_pthread_mutex_init(pthread_mutex_t *lock) void lws_pthread_mutex_destroy(pthread_mutex_t *lock) void lws_pthread_mutex_lock(pthread_mutex_t *lock) void lws_pthread_mutex_unlock(pthread_mutex_t *lock) ``` resolve to nothing if LWS_MAX_SMP == 1, otherwise produce the equivalent pthread api. pthreads is required in lws only if LWS_MAX_SMP > 1. @section libevuv libev / libuv / libevent support You can select either or both -DLWS_WITH_LIBEV=1 -DLWS_WITH_LIBUV=1 -DLWS_WITH_LIBEVENT=1 at cmake configure-time. The user application may use one of the context init options flags LWS_SERVER_OPTION_LIBEV LWS_SERVER_OPTION_LIBUV LWS_SERVER_OPTION_LIBEVENT to indicate it will use one of the event libraries at runtime. libev and libevent headers conflict, they both define critical constants like EV_READ to different values. Attempts to discuss clearing that up with both libevent and libev did not get anywhere useful. Therefore CMakeLists.txt will error out if you enable both LWS_WITH_LIBEV and LWS_WITH_LIBEVENT. In addition depending on libev / compiler version, building anything with libev apis using gcc may blow strict alias warnings (which are elevated to errors in lws). I did some googling at found these threads related to it, the issue goes back at least to 2010 on and off https://github.com/redis/hiredis/issues/434 https://bugs.gentoo.org/show_bug.cgi?id=615532 http://lists.schmorp.de/pipermail/libev/2010q1/000916.html http://lists.schmorp.de/pipermail/libev/2010q1/000920.html http://lists.schmorp.de/pipermail/libev/2010q1/000923.html We worked around this problem by disabling -Werror on the parts of lws that use libev. FWIW as of Dec 2019 using Fedora 31 libev 4.27.1 and its gcc 9.2.1 doesn't seem to trigger the problem even without the workaround. For these reasons and the response I got trying to raise these issues with them, if you have a choice about event loop, I would gently encourage you to avoid libev. Where lws uses an event loop itself, eg in lwsws, we use libuv. @section extopts Extension option control from user code User code may set per-connection extension options now, using a new api `lws_set_extension_option()`. This should be called from the ESTABLISHED callback like this ``` lws_set_extension_option(wsi, "permessage-deflate", "rx_buf_size", "12"); /* 1 << 12 */ ``` If the extension is not active (missing or not negotiated for the connection, or extensions are disabled on the library) the call is just returns -1. Otherwise the connection's extension has its named option changed. The extension may decide to alter or disallow the change, in the example above permessage-deflate restricts the size of his rx output buffer also considering the protocol's rx_buf_size member. @section httpsclient Client connections as HTTP[S] rather than WS[S] You may open a generic http client connection using the same struct lws_client_connect_info used to create client ws[s] connections. To stay in http[s], set the optional info member "method" to point to the string "GET" instead of the default NULL. After the server headers are processed, when payload from the server is available the callback LWS_CALLBACK_RECEIVE_CLIENT_HTTP will be made. You can choose whether to process the data immediately, or queue a callback when an outgoing socket is writeable to provide flow control, and process the data in the writable callback. Either way you use the api `lws_http_client_read()` to access the data, eg ``` case LWS_CALLBACK_RECEIVE_CLIENT_HTTP: { char buffer[1024 + LWS_PRE]; char *px = buffer + LWS_PRE; int lenx = sizeof(buffer) - LWS_PRE; lwsl_notice("LWS_CALLBACK_RECEIVE_CLIENT_HTTP\n"); /* * Often you need to flow control this by something * else being writable. In that case call the api * to get a callback when writable here, and do the * pending client read in the writeable callback of * the output. */ if (lws_http_client_read(wsi, &px, &lenx) < 0) return -1; while (lenx--) putchar(*px++); } break; ``` Notice that if you will use SSL client connections on a vhost, you must prepare the client SSL context for the vhost after creating the vhost, since this is not normally done if the vhost was set up to listen / serve. Call the api lws_init_vhost_client_ssl() to also allow client SSL on the vhost. @section clipipe Pipelining Client Requests to same host If you are opening more client requests to the same host and port, you can give the flag LCCSCF_PIPELINE on `info.ssl_connection` to indicate you wish to pipeline them. Without the flag, the client connections will occur concurrently using a socket and tls wrapper if requested for each connection individually. That is fast, but resource-intensive. With the flag, lws will queue subsequent client connections on the first connection to the same host and port. When it has confirmed from the first connection that pipelining / keep-alive is supported by the server, it lets the queued client pipeline connections send their headers ahead of time to create a pipeline of requests on the server side. In this way only one tcp connection and tls wrapper is required to transfer all the transactions sequentially. It takes a little longer but it can make a significant difference to resources on both sides. If lws learns from the first response header that keepalive is not possible, then it marks itself with that information and detaches any queued clients to make their own individual connections as a fallback. Lws can also intelligently combine multiple ongoing client connections to the same host and port into a single http/2 connection with multiple streams if the server supports it. Unlike http/1 pipelining, with http/2 the client connections all occur simultaneously using h2 stream multiplexing inside the one tcp + tls connection. You can turn off the h2 client support either by not building lws with `-DLWS_WITH_HTTP2=1` or giving the `LCCSCF_NOT_H2` flag in the client connection info struct `ssl_connection` member. @section vhosts Using lws vhosts If you set LWS_SERVER_OPTION_EXPLICIT_VHOSTS options flag when you create your context, it won't create a default vhost using the info struct members for compatibility. Instead you can call lws_create_vhost() afterwards to attach one or more vhosts manually. ``` LWS_VISIBLE struct lws_vhost * lws_create_vhost(struct lws_context *context, struct lws_context_creation_info *info); ``` lws_create_vhost() uses the same info struct as lws_create_context(), it ignores members related to context and uses the ones meaningful for vhost (marked with VH in libwebsockets.h). ``` struct lws_context_creation_info { int port; /* VH */ const char *iface; /* VH */ const struct lws_protocols *protocols; /* VH */ const struct lws_extension *extensions; /* VH */ ... ``` When you attach the vhost, if the vhost's port already has a listen socket then both vhosts share it and use SNI (is SSL in use) or the Host: header from the client to select the right one. Or if no other vhost already listening the a new listen socket is created. There are some new members but mainly it's stuff you used to set at context creation time. @section sni How lws matches hostname or SNI to a vhost LWS first strips any trailing :port number. Then it tries to find an exact name match for a vhost listening on the correct port, ie, if SNI or the Host: header provided abc.com:1234, it will match on a vhost named abc.com that is listening on port 1234. If there is no exact match, lws will consider wildcard matches, for example if cats.abc.com:1234 is provided by the client by SNI or Host: header, it will accept a vhost "abc.com" listening on port 1234. If there was a better, exact, match, it will have been chosen in preference to this. Connections with SSL will still have the client go on to check the certificate allows wildcards and error out if not. @section mounts Using lws mounts on a vhost The last argument to lws_create_vhost() lets you associate a linked list of lws_http_mount structures with that vhost's URL 'namespace', in a similar way that unix lets you mount filesystems into areas of your / filesystem how you like and deal with the contents transparently. ``` struct lws_http_mount { struct lws_http_mount *mount_next; const char *mountpoint; /* mountpoint in http pathspace, eg, "/" */ const char *origin; /* path to be mounted, eg, "/var/www/warmcat.com" */ const char *def; /* default target, eg, "index.html" */ struct lws_protocol_vhost_options *cgienv; int cgi_timeout; int cache_max_age; unsigned int cache_reusable:1; unsigned int cache_revalidate:1; unsigned int cache_intermediaries:1; unsigned char origin_protocol; unsigned char mountpoint_len; }; ``` The last mount structure should have a NULL mount_next, otherwise it should point to the 'next' mount structure in your list. Both the mount structures and the strings must persist until the context is destroyed, since they are not copied but used in place. `.origin_protocol` should be one of ``` enum { LWSMPRO_HTTP, LWSMPRO_HTTPS, LWSMPRO_FILE, LWSMPRO_CGI, LWSMPRO_REDIR_HTTP, LWSMPRO_REDIR_HTTPS, LWSMPRO_CALLBACK, }; ``` - LWSMPRO_FILE is used for mapping url namespace to a filesystem directory and serve it automatically. - LWSMPRO_CGI associates the url namespace with the given CGI executable, which runs when the URL is accessed and the output provided to the client. - LWSMPRO_REDIR_HTTP and LWSMPRO_REDIR_HTTPS auto-redirect clients to the given origin URL. - LWSMPRO_CALLBACK causes the http connection to attach to the callback associated with the named protocol (which may be a plugin). @section mountcallback Operation of LWSMPRO_CALLBACK mounts The feature provided by CALLBACK type mounts is binding a part of the URL namespace to a named protocol callback handler. This allows protocol plugins to handle areas of the URL namespace. For example in test-server-v2.0.c, the URL area "/formtest" is associated with the plugin providing "protocol-post-demo" like this ``` static const struct lws_http_mount mount_post = { NULL, /* linked-list pointer to next*/ "/formtest", /* mountpoint in URL namespace on this vhost */ "protocol-post-demo", /* handler */ NULL, /* default filename if none given */ NULL, 0, 0, 0, 0, 0, LWSMPRO_CALLBACK, /* origin points to a callback */ 9, /* strlen("/formtest"), ie length of the mountpoint */ }; ``` Client access to /formtest[anything] will be passed to the callback registered with the named protocol, which in this case is provided by a protocol plugin. Access by all methods, eg, GET and POST are handled by the callback. protocol-post-demo deals with accepting and responding to the html form that is in the test server HTML. When a connection accesses a URL related to a CALLBACK type mount, the connection protocol is changed until the next access on the connection to a URL outside the same CALLBACK mount area. User space on the connection is arranged to be the size of the new protocol user space allocation as given in the protocol struct. This allocation is only deleted / replaced when the connection accesses a URL region with a different protocol (or the default protocols[0] if no CALLBACK area matches it). This "binding connection to a protocol" lifecycle in managed by `LWS_CALLBACK_HTTP_BIND_PROTOCOL` and `LWS_CALLBACK_HTTP_DROP_PROTOCOL`. Because of HTTP/1.1 connection pipelining, one connection may perform many transactions, each of which may map to different URLs and need binding to different protocols. So these messages are used to create the binding of the wsi to your protocol including any allocations, and to destroy the binding, at which point you should destroy any related allocations. @section BINDTODEV SO_BIND_TO_DEVICE The .bind_iface flag in the context / vhost creation struct lets you declare that you want all traffic for listen and transport on that vhost to be strictly bound to the network interface named in .iface. This Linux-only feature requires SO_BIND_TO_DEVICE, which in turn requires CAP_NET_RAW capability... root has this capability. However this feature needs to apply the binding also to accepted sockets during normal operation, which implies the server must run the whole time as root. You can avoid this by using the Linux capabilities feature to have the unprivileged user inherit just the CAP_NET_RAW capability. You can confirm this with the test server ``` $ sudo /usr/local/bin/libwebsockets-test-server -u agreen -i eno1 -k ``` The part that ensures the capability is inherited by the unprivileged user is ``` #if defined(LWS_HAVE_SYS_CAPABILITY_H) && defined(LWS_HAVE_LIBCAP) info.caps[0] = CAP_NET_RAW; info.count_caps = 1; #endif ``` @section dim Dimming webpage when connection lost The lws test plugins' html provides useful feedback on the webpage about if it is still connected to the server, by greying out the page if not. You can also add this to your own html easily - include lws-common.js from your HEAD section \<script src="/lws-common.js">\</script> - dim the page during initialization, in a script section on your page lws_gray_out(true,{'zindex':'499'}); - in your ws onOpen(), remove the dimming lws_gray_out(false); - in your ws onClose(), reapply the dimming lws_gray_out(true,{'zindex':'499'}); @section errstyle Styling http error pages In the code, http errors should be handled by `lws_return_http_status()`. There are basically two ways... the vhost can be told to redirect to an "error page" URL in response to specifically a 404... this is controlled by the context / vhost info struct (`struct lws_context_creation_info`) member `.error_document_404`... if non-null the client is redirected to this string. If it wasn't redirected, then the response code html is synthesized containing the user-selected text message and attempts to pull in `/error.css` for styling. If this file exists, it can be used to style the error page. See https://libwebsockets.org/git/badrepo for an example of what can be done ( and https://libwebsockets.org/error.css for the corresponding css). <file_sep>## LWS Allocated Chunks ![lwsac flow](/doc-assets/lwsac.svg) These apis provide a way to manage a linked-list of allocated chunks... [ HEAD alloc ] -> [ next alloc ] -> [ next alloc ] -> [ curr alloc ] ... and sub-allocate trivially inside the chunks. These sub-allocations are not tracked by lwsac at all, there is a "used" high-water mark for each chunk that's simply advanced by the amount sub-allocated. If the allocation size matches the platform pointer alignment, there is zero overhead to sub-allocate (otherwise the allocation is padded to the next platform pointer alignment automatically). If you have an unknown amount of relatively little things to allocate, including strings or other unstructured data, lwsac is significantly more efficient than individual allocations using malloc or so. [lwsac full public api](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-lwsac.h) ## lwsac_use() api ``` /** * lwsac_use - allocate / use some memory from a lwsac * * \param head: pointer to the lwsac list object * \param ensure: the number of bytes we want to use * \param chunk_size: 0, or the size of the chunk to (over)allocate if * what we want won't fit in the current tail chunk. If * 0, the default value of 4000 is used. If ensure is * larger, it is used instead. * * This also serves to init the lwsac if *head is NULL. Basically it does * whatever is necessary to return you a pointer to ensure bytes of memory * reserved for the caller. * * Returns NULL if OOM. */ LWS_VISIBLE LWS_EXTERN void * lwsac_use(struct lwsac **head, size_t ensure, size_t chunk_size); ``` When you make an sub-allocation using `lwsac_use()`, you can either set the `chunk_size` arg to zero, defaulting to 4000, or a specific chunk size. In the event the requested sub-allocation exceeds the chunk size, the chunk size is increated to match it automatically for this allocation only. Subsequent `lwsac_use()` calls will advance internal pointers to use up the remaining space inside the current chunk if possible; if not enough remaining space it is skipped, a new allocation is chained on and the request pointed to there. Lwsac does not store information about sub-allocations. There is really zero overhead for individual sub-allocations (unless their size is not pointer-aligned, in which case the actual amount sub-allocated is rounded up to the next pointer alignment automatically). For structs, which are pointer- aligned naturally, and a chunk size relatively large for the sub-allocation size, lwsac is extremely efficient even for huge numbers of small allocations. This makes lwsac very effective when the total amount of allocation needed is not known at the start and may be large... it will simply add on chunks to cope with whatever happens. ## lwsac_free() api ``` /** * lwsac_free - deallocate all chunks in the lwsac and set head NULL * * \param head: pointer to the lwsac list object * * This deallocates all chunks in the lwsac, then sets *head to NULL. All * lwsac_use() pointers are invalidated in one hit without individual frees. */ LWS_VISIBLE LWS_EXTERN void lwsac_free(struct lwsac **head); ``` When you are finished with the lwsac, you simply free the chain of allocated chunks using lwsac_free() on the lwsac head. There's no tracking or individual destruction of suballocations - the whole chain of chunks the suballocations live in are freed and invalidated all together. If the structs stored in the lwsac allocated things **outside** the lwsac, then the user must unwind through them and perform the frees. But the idea of lwsac is things stored in the lwsac also suballocate into the lwsac, and point into the lwsac if they need to, avoiding any need to visit them during destroy. It's like clearing up after a kids' party by gathering up a disposable tablecloth: no matter what was left on the table, it's all gone in one step. ## `lws_list_ptr` helpers ``` /* sort may be NULL if you don't care about order */ LWS_VISIBLE LWS_EXTERN void lws_list_ptr_insert(lws_list_ptr *phead, lws_list_ptr *add, lws_list_ptr_sort_func_t sort); ``` A common pattern needed with sub-allocated structs is they are on one or more linked-list. To make that simple to do cleanly, `lws_list...` apis are provided along with a generic insertion function that can take a sort callback. These allow a struct to participate on multiple linked-lists simultaneously. ## common const string and blob folding In some cases the input to be stored in the lwsac may repeat the same tokens multiple times... if the pattern is to store the string or blob in the lwsac and then point to it, you can make use of a helper api ``` uint8_t * lwsac_scan_extant(struct lwsac *head, uint8_t *find, size_t len, int nul); ``` This lets you check in all previous used parts of the lwsac for the same string or blob, plus optionally a terminal NUL afterwards. If not found, it returns `NULL` and you can copy it into the lwsac as usual. If it is found, a pointer is returned, and you can use this directly without copying the string or blob in again. ## optimizations to minimize overhead If the lwsac will persist in the system for some time, it's desirable to reduce the memory needed as overhead. Overhead is created - once per chunk... in addition to the malloc overhead, there's an lwsac chunk header of 2 x pointers and 2 x size_t - at the unused part at the end that was allocated but not used A good strategy is to make the initial allocation reflect the minimum expected size of the overall lwsac in one hit. Then use a chunk size that is a tradeoff between the number of chunks that might be needed and the fact that on average, you can expect to waste half a chunk. For example if the storage is typically between 4K - 6K, you could allocate 4K or 4.5K for the first chunk and then fill in using 256 or 512 byte chunks. You can measure the overhead in an lwsac using `lwsac_total_overhead()`. The lwsac apis look first in the unused part of previous chunks, if any, and will place new allocations there preferentially if they fit. This helps for the case lwsac was forced to allocate a new chunk because you asked for something large, while there was actually significant free space left in the old chunk, just not enough for that particular allocation. Subsequent lwsac use can then "backfill" smaller things there to make best use of allocated space. <file_sep># lws minimal ws server (lws_ring) ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-ws-server [2018/03/04 09:30:02:7986] USER: LWS minimal ws server (lws_ring) | visit http://localhost:7681 [2018/03/04 09:30:02:7986] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 on ``` Visit http://localhost:7681 on multiple browser windows Text you type in any browser window is sent to all of them. A ringbuffer holds up to 8 lines of text. This also demonstrates how the ringbuffer can take action against lagging or disconnected clients that cause the ringbuffer to fill. <file_sep>ssh-base Plugin ================ ## Introduction lws-ssh-base is a protcol plugin for libwebsockets that implements a generic, abstract, ssh server. - very small footprint in code and memory, takes up small part of ESP32 - written with security in mind: valgrind and Coverity -clean - binds to one or more vhosts, that controls listen port(s) - all IO and settings abstracted through a single "ops" struct from user code - each instance on a vhost has its own "ops" struct, defining server keys, auth method and functions to implement IO and other operations - The plugin has no built-in behaviours like check ~/.ssh/authorized_keys, treat auth usernames as system usernames, or spawn the user's shell. Everything potentially dangerous is left to the user ops code to decide how to handle. It's NOT like sshd where running it implies it will accept existing keys for any system user, will spawn a shell, etc, unless you implement those parts in the ops callbacks. - The plugin requires extra code around it in the form of the ops struct handlers. So it's role is something like an abstract base class for an ssh server. All the crypto, protocol sequencing and state machine are inside, but all the IO except the network connection is outside. - Built as part of libwebsockets, like all plugins may be dynamically loaded at runtime or built statically. Test app `libwebsockets-test-sshd` provided - Uses hash and RSA functions from either mbedTLS or OpenSSL automatically, according to which library libwebsockets was built for To maintain its small size, it implements a single "best of breed" crypto for the following functions: |Function|Crypto| |---|---| |KEX|<EMAIL>51<EMAIL>| |Server host key|ssh-rsa (4096b)| |Encryption|<EMAIL>| |Compression|None| ## License lws-ssh-base is Free Software, available under libwebsockets' MIT license. The crypto parts are available elsewhere under a BSD license. But for simplicity the whole plugin is under MIT. ## Generating your own keys ``` $ ssh-keygen -t rsa -b 4096 -f mykeys ``` will ask for a passphrase and generate the private key in `mykeys` and the public key in `mykeys.pub`. If you already have a suitable RSA key you use with ssh, you can just use that directly. lws installs a test keypair in /usr[/local]/share/libwebsockets-test-server that the test apps will accept. ## Example code 1) There's a working example app `libwebsockets-test-sshd` included that spawns a bash shell when an ssh client authenticates. The username used on the remote ssh has no meaning, it spawns the shell under the credentials of "lws-test-sshd" was run under. It accepts the lws ssh test key which is installed into /usr[/local]/share/libwebsockets-test-server. Start the server like this (it wants root only because the server key is stored in /etc) ``` $ sudo libwebsockets-test-sshd ``` Connect to it using the test private key like this ``` $ ssh -p 2200 -i /usr/local/share/libwebsockets-test-server/lws-ssh-test-keys anyuser@127.0.0.1 ``` 2) There's also a working example plugin `lws-sshd-demo` that "subclasses" the abstract `lws-ssh-base` plugin to make a protocol which can be used from, eg, lwsws. For an lwsws vhost that listens on port 2222 and responds with the lws-sshd-demo ssh server, the related config is: ``` { "name": "sshd", "port": "2222", "onlyraw": "1", "ws-protocols": [{ "lws-ssh-base": { "status": "ok", "ops-from": "lws-sshd-demo" }, "lws-sshd-demo": { "status": "ok", "raw": "1" } }] } ``` ## Integration to other apps ### Step 0: Build and install libwebsockets For the `libwebsockets-test-sshd` example, you will need CMake options `LWS_WITH_CGI`, since it uses lws helpers to spawn a shell. lws-ssh-base itself doesn't require CGI support in libwebsockets. ### Step 1: make the code available in your app Include `lws-plugin-ssh-base` in your app, either as a runtime plugin or by using the lws static include scheme. To bring in the whole of the ssh-base plugin into your app in one step, statically, just include `plugins/ssh-base/include/lws-plugin-sshd-static-build-includes.h`, you can see an example of this in `./test-apps/test-sshd.c`. ### Step 2: define your `struct lws_ssh_ops` `plugins/ssh-base/include/lws-plugin-ssh.h` defines `struct lws_ssh_ops` which is used for all customization and integration of the plugin per vhost. Eg, ``` static const struct lws_ssh_ops ssh_ops = { .channel_create = ssh_ops_channel_create, .channel_destroy = ssh_ops_channel_destroy, .tx_waiting = ssh_ops_tx_waiting, .tx = ssh_ops_tx, .rx = ssh_ops_rx, .get_server_key = ssh_ops_get_server_key, .set_server_key = ssh_ops_set_server_key, .set_env = ssh_ops_set_env, .pty_req = ssh_ops_pty_req, .child_process_io = ssh_ops_child_process_io, .child_process_terminated = ssh_ops_child_process_terminated, .exec = ssh_ops_exec, .shell = ssh_ops_shell, .is_pubkey_authorized = ssh_ops_is_pubkey_authorized, .banner = ssh_ops_banner, .disconnect_reason = ssh_ops_disconnect_reason, .server_string = "SSH-2.0-Libwebsockets", .api_version = 1, }; ``` The `ssh_ops_...()` functions are your implementations for the operations needed by the plugin for your purposes. ### Step 3: enable `lws-ssh-base` protocol to a vhost and configure using pvo A pointer to your struct lws_ssh_ops is passed into the vhost instance of the protocol using per-vhost options ``` static const struct lws_protocol_vhost_options pvo_ssh_ops = { NULL, NULL, "ops", (void *)&ssh_ops }; static const struct lws_protocol_vhost_options pvo_ssh = { NULL, &pvo_ssh_ops, "lws-sshd-base", "" /* ignored, just matches the protocol name above */ }; ... info.port = 22; info.options = LWS_SERVER_OPTION_ONLY_RAW; info.vhost_name = "sshd"; info.protocols = protocols_sshd; info.pvo = &pvo_ssh; vh_sshd = lws_create_vhost(context, &info); ``` There are two possible pvos supported, "ops", shown above, directly passes the ops structure in using the value on the "ops" pvo. To support other protocols that want to provide ops to lws-ssh-base themselves for a particular vhost, you can also provide a pvo `"ops-from"` whose value is the name of the protocol also enabled on this vhost, whose protocol ".user" pointer points to the ops struct lws-ssh-base should use. ## Integration to other plugins A worked example of using the abstract `lws-ssh-base` plugin from another plugin that provides the ops struct is in `./plugins/protocol_lws_sshd_demo`. The key points to note - the plugin sets the ops struct for the vhost instantiation of `lws-ssh-base` by passing a pointer to the ops struct in its `lws_protocols` struct `user` member. - the config for the vhost tells `lws-ssh-base` to pick up the ops struct pointer using an "ops-from" pvo that indicates the protocol name. ``` "lws-ssh-base": { "status": "ok", "ops-from": "lws-sshd-demo" }, ``` - the config for the vhost tells lws this vhost only serves RAW (ie, no http) ``` { "name": "sshd", "port": "2222", "onlyraw": "1", ... ``` - the config for the vhost marks the protocol that uses `lws-ssh-base`, not `lws-ssh-base` itself, as the protocol to be served for raw connections ``` "lws-sshd-demo": { "status": "ok", "raw": "1" ... ``` ## Notes You can have the vhost it binds to listen on a nonstandard port. The ssh commandline app cane be told to connect to a non-22 port with `ssh -p portnum user@hostname` <file_sep># lws minimal ws server raw proxy fallback This demonstrates how a vhost doing normal http or http(s) duty can be also be bound to a specific role and protocol as a fallback if the incoming protocol is unexpected for tls or http. The example makes the fallback role + protocol an lws plugin that performs raw packet proxying. By default the fallback in the example will proxy 127.0.0.1:22, which is usually your ssh server listen port, on 127.0.0.1:7681. You should be able to ssh into port 7681 the same as you can port 22. At the same time, you should be able to visit http://127.0.0.1:7681 in a browser (and if you give -s, to https://127.0.0.1:7681 while your ssh client can still connect to the same port. ## build To build this standalone, you must tell cmake where the lws source tree ./plugins directory can be found, since it relies on including the source of the raw-proxy plugin. ``` $ cmake . -DLWS_PLUGINS_DIR=~/libwebsockets/plugins && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -r ipv4:address:port|Configure the remote IP and port that will be proxied, by default ipv4:127.0.0.1:22 -s|Configure the server for tls / https and `LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT` -h|(needs -s) Configure the vhost also for `LWS_SERVER_OPTION_ALLOW_HTTP_ON_HTTPS_LISTENER`, allowing http service on tls port (caution... it's insecure then) -u|(needs -s) Configure the vhost also for `LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS`, so the server issues a redirect to https to clients that attempt to connect to a server configured for tls with http. ``` $ ./lws-minimal-raw-proxy [2018/11/30 19:22:35:7290] USER: LWS minimal raw proxy-fallback [2018/11/30 19:22:35:7291] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/11/30 19:22:35:7336] NOTICE: callback_raw_proxy: onward ipv4 127.0.0.1:22 ... ``` ``` $ ssh -p7681 me@127.0.0.1 Last login: Fri Nov 30 19:29:23 2018 from 127.0.0.1 [me@learn ~]$ ``` At the same time, visiting http(s)://127.0.0.1:7681 in a browser works fine. <file_sep>/** * @file include/dbschema/dbDataPointScaling.h * @brief This generated file contains the macro definition providing details of * all datapoint scaling and resolution. * * This file is automatically generated and should not be edited manually. * Generated using the following input files: * xslt/dbDataPointScaling_h.xsl : 3512 bytes, CRC32 = 3076001398 * relay-datapoints-validated.xml : 18810769 bytes, CRC32 = 4257544476 * * Generated from the following database extract: * Db Version : 28.0 * Db Tags : NEW_ARCH,RC20-Security,RC20_USBOC,GooseSqNum,SdCard,VerizonAPN,Large_DbClientId,DB28_OSM_PART_CODES,DIR_POWER,MultiMaster60870,PIN_PUK,CBF_NOTICE,PMU_Retransmission,WEBSERVER * Db Model : RC20 * * @cond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #ifndef _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATAPOINTSCALING_H_ #define _DBSCHEMA_INCLUDE_DBSCHEMA_DBDATAPOINTSCALING_H_ /**The scaling and resolution definitions * Arguments: name, scale, resolution, units * name Name of the datapoint * scale Scale factor to apply * resolution Resolution to display * units Units for the value */ #define DPOINT_SCALING_DEFNS \ \ DPOINT_SCALING_DEFN( ActCLM, 1, 1, "dUnits" ) \ DPOINT_SCALING_DEFN( CntOps, 1, 1, "Ops" ) \ DPOINT_SCALING_DEFN( CntWearOsm, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( CntOpsOc, 1, 1, "Ops" ) \ DPOINT_SCALING_DEFN( CntOpsEf, 1, 1, "Ops" ) \ DPOINT_SCALING_DEFN( CntOpsSef, 1, 1, "Ops" ) \ DPOINT_SCALING_DEFN( BattI, 1, 1, "mA" ) \ DPOINT_SCALING_DEFN( BattU, 1, 1, "mV" ) \ DPOINT_SCALING_DEFN( BattCap, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( LcdCont, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( CntOpsOsm, 1, 1, "V" ) \ DPOINT_SCALING_DEFN( AuxVoltage, 1, 1, "V" ) \ DPOINT_SCALING_DEFN( ProtGlbUsys, 0.001, 0.1, "KV" ) \ DPOINT_SCALING_DEFN( ProtGlbLsdLevel, 0.001, 0.1, "KV" ) \ DPOINT_SCALING_DEFN( PanelDelayedCloseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( CanSimSetResetTimeUI16, 1, 1, "Hrs" ) \ DPOINT_SCALING_DEFN( SwitchCoefCUa, 0.0000004791, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCUb, 0.0000004791, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCUc, 0.0000004791, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCUr, 0.0000004791, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCUs, 0.0000004791, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCUt, 0.0000004791, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCIa, 0.000012207, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCIb, 0.000012207, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCIc, 0.000012207, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchCoefCIn, 0.000012207, 0.0001, "" ) \ DPOINT_SCALING_DEFN( TimeZone, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ProtTstSeq, 1, 1, "Addr" ) \ DPOINT_SCALING_DEFN( ProtTstLogStep, 1, 1, "Addr of step" ) \ DPOINT_SCALING_DEFN( ProtCfgBase, 1, 1, "Addr" ) \ DPOINT_SCALING_DEFN( G1_OcAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_EfAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_SefAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_ArOCEF_Trec1, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_ArOCEF_Trec2, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_ArOCEF_Trec3, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_ResetTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_TtaTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_SstOcForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_ClpClm, 0.001, 0.1, "" ) \ DPOINT_SCALING_DEFN( G1_ClpTcl, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G1_ClpTrec, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G1_IrrIrm, 0.001, 0.1, "mill" ) \ DPOINT_SCALING_DEFN( G1_IrrTir, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_VrcUMmin, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G1_OC1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OC1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_OC2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OC3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OC1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_OC2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OC3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OC3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OC3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EF1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_G1EF1F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_EF2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_G1EF2F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EF3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EF1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_G1EF1R_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_EF2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EF3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EF3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EF3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_SEFF_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G1_SEFF_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_SEFF_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_SEFR_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G1_SEFR_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_SEFR_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OcLl_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OcLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OcLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EfLl_Ip, 0.001, 0.01, "A" ) \ DPOINT_SCALING_DEFN( G1_EfLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EfLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Uv1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Uv2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv3_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Ov1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Ov1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Ov1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Ov2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Ov2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Ov2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uf_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G1_Uf_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uf_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Of_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G1_Of_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Of_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_OC1F_ImaxAbs, 1, 1, "" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_OC2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_OC1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_OC2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_EF1F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_EF2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_EF1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G1_DEPRECATED_EF2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G1_SstEfForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_SstSefForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_AbrTrest, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_AutoOpenTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G1_SstOcReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_SstEfReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_SstSefReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_ArUVOV_Trec, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( ReportTimeSetting, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( CmsSerialFrameRxTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( SimBatteryVoltageScaled, 0.001, 0.001, "V(x0.001)" ) \ DPOINT_SCALING_DEFN( LocalInputDebouncePeriod, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( ScadaT101FrameTimeout, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( ScadaT101LinkConfirmTimeout, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( ScadaT10BSelectExecuteTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaT104ControlTSTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaT10BClockValidPeriod, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaT10BCyclicPeriod, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaT10BBackgroundPeriod, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaT10BCounterGeneralLocalFrzPeriod, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaT10BCounterGrp1LocalFrzPeriod, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaT10BCounterGrp2LocalFrzPeriod, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaT10BCounterGrp3LocalFrzPeriod, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaT10BCounterGrp4LocalFrzPeriod, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( CmsMainConnectionTimeout, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( CmsAuxConnectionTimeout, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( ScadaDnp3IpTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3IpTcpKeepAlive, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( CanSimTripCAPVoltage, 0.01, 0.01, "V" ) \ DPOINT_SCALING_DEFN( CanSimCloseCAPVoltage, 0.01, 0.01, "V" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTaCalCoef, 0.0000162664, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTbCalCoef, 0.0000162664, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTcCalCoef, 0.0000162664, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTnCalCoef, 0.000143437, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTTempCompCoef, 0.0001, 1, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCVTaCalCoef, 0.0143436994, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCVTbCalCoef, 0.0143436994, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCVTcCalCoef, 0.0143436994, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCVTrCalCoef, 0.0143436994, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCVTsCalCoef, 0.0143436994, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCVTtCalCoef, 0.0143436994, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCVTTempCompCoef, 0.0001, 1, "" ) \ DPOINT_SCALING_DEFN( CanSimBatteryVoltage, 0.01, 0.01, "V(x0.01)" ) \ DPOINT_SCALING_DEFN( CanSimBatteryCurrent, 0.01, 0.01, "A" ) \ DPOINT_SCALING_DEFN( CanSimBatteryChargerCurrent, 0.01, 0.01, "A" ) \ DPOINT_SCALING_DEFN( CanSimBatteryCapacityRemaining, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( CanSimSetTotalBatteryCapacity, 1, 1, "AH" ) \ DPOINT_SCALING_DEFN( CanSimExtSupplyCurrent, 0.01, 0.01, "A" ) \ DPOINT_SCALING_DEFN( CanSimSetShutdownLevel, 1, 1, "Percent" ) \ DPOINT_SCALING_DEFN( CanSimSetShutdownTime, 1, 1, "Mins" ) \ DPOINT_SCALING_DEFN( CanSimReadTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( CanSimSetTimeDate, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( CanSimSIMTemp, 0.01, 0.01, "Degree" ) \ DPOINT_SCALING_DEFN( CanSimModuleTemp, 0.01, 0.01, "Degree" ) \ DPOINT_SCALING_DEFN( CanSimModuleVoltage, 0.01, 0.01, "V" ) \ DPOINT_SCALING_DEFN( G2_OcAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_EfAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_SefAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_ArOCEF_Trec1, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_ArOCEF_Trec2, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_ArOCEF_Trec3, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_ResetTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_TtaTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_SstOcForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_ClpClm, 0.001, 0.1, "" ) \ DPOINT_SCALING_DEFN( G2_ClpTcl, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G2_ClpTrec, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G2_IrrIrm, 0.001, 0.1, "mill" ) \ DPOINT_SCALING_DEFN( G2_IrrTir, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_VrcUMmin, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G2_OC1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OC1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_OC2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OC3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OC1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_OC2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OC3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OC3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OC3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EF1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_G1EF1F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_EF2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_G1EF2F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EF3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EF1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_G1EF1R_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_EF2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EF3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EF3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EF3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_SEFF_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G2_SEFF_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_SEFF_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_SEFR_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G2_SEFR_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_SEFR_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OcLl_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OcLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OcLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EfLl_Ip, 0.001, 0.01, "A" ) \ DPOINT_SCALING_DEFN( G2_EfLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EfLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Uv1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Uv2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv3_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Ov1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Ov1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Ov1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Ov2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Ov2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Ov2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uf_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G2_Uf_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uf_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Of_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G2_Of_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Of_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_OC1F_ImaxAbs, 1, 1, "" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_OC2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_OC1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_OC2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_EF1F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_EF2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_EF1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G2_DEPRECATED_EF2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G2_SstEfForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_SstSefForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_AbrTrest, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_AutoOpenTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G2_SstOcReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_SstEfReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_SstSefReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_ArUVOV_Trec, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime1, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime2, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime3, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime4, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime5, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime6, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime7, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo1OutputPulseTime8, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime1, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime2, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime3, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime4, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime5, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime6, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime7, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( CanIo2OutputPulseTime8, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingILocTrec1, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingILocTrec2, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingILocTrec3, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh1, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh2, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh3, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh4, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh5, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh6, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh7, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1InTrecCh8, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh1, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh2, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh3, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh4, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh5, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh6, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh7, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo2InTrecCh8, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( p2pCommUpdateRates, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_OcAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_EfAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_SefAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_ArOCEF_Trec1, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_ArOCEF_Trec2, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_ArOCEF_Trec3, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_ResetTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_TtaTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_SstOcForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_ClpClm, 0.001, 0.1, "" ) \ DPOINT_SCALING_DEFN( G3_ClpTcl, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G3_ClpTrec, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G3_IrrIrm, 0.001, 0.1, "mill" ) \ DPOINT_SCALING_DEFN( G3_IrrTir, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_VrcUMmin, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G3_OC1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OC1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_OC2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OC3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OC1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_OC2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OC3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OC3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OC3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EF1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_G1EF1F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_EF2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_G1EF2F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EF3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EF1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_G1EF1R_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_EF2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EF3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EF3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EF3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_SEFF_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G3_SEFF_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_SEFF_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_SEFR_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G3_SEFR_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_SEFR_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OcLl_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OcLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OcLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EfLl_Ip, 0.001, 0.01, "A" ) \ DPOINT_SCALING_DEFN( G3_EfLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EfLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Uv1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Uv2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv3_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Ov1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Ov1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Ov1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Ov2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Ov2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Ov2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uf_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G3_Uf_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uf_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Of_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G3_Of_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Of_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_OC1F_ImaxAbs, 1, 1, "" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_OC2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_OC1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_OC2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_EF1F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_EF2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_EF1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G3_DEPRECATED_EF2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G3_SstEfForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_SstSefForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_AbrTrest, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_AutoOpenTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G3_SstOcReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_SstEfReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_SstSefReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_ArUVOV_Trec, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh1RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh2RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh3RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh4RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh5RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh6RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh7RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh8RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh1ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh2ResetTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh3ResetTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh4ResetTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh5ResetTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh6ResetTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh7ResetTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh8ResetTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh1PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh2PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh3PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh4PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh5PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh6PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh7PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh8PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( ScadaT104TimeoutT0, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( ScadaT104TimeoutT1, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( ScadaT104TimeoutT2, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( ScadaT104TimeoutT3, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( ACO_TPup, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G4_OcAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_EfAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_SefAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_ArOCEF_Trec1, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_ArOCEF_Trec2, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_ArOCEF_Trec3, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_ResetTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_TtaTime, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_SstOcForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_ClpClm, 0.001, 0.1, "" ) \ DPOINT_SCALING_DEFN( G4_ClpTcl, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G4_ClpTrec, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G4_IrrIrm, 0.001, 0.1, "mill" ) \ DPOINT_SCALING_DEFN( G4_IrrTir, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_VrcUMmin, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G4_OC1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OC1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_OC2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OC3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OC1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_OC2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OC3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OC3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OC3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EF1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_G1EF1F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_EF2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_G1EF2F_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EF3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EF1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_G1EF1R_Tres, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_EF2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EF3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EF3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EF3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_SEFF_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G4_SEFF_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_SEFF_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_SEFR_Ip, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G4_SEFR_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_SEFR_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OcLl_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OcLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OcLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EfLl_Ip, 0.001, 0.01, "A" ) \ DPOINT_SCALING_DEFN( G4_EfLl_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EfLl_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Uv1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Uv2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv3_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Ov1_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Ov1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Ov1_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Ov2_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Ov2_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Ov2_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uf_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G4_Uf_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uf_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Of_Fp, 0.001, 0.01, "mHz" ) \ DPOINT_SCALING_DEFN( G4_Of_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Of_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_OC1F_ImaxAbs, 1, 1, "" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_OC2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_OC1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_OC2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_EF1F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_EF2F_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_EF1R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G4_DEPRECATED_EF2R_ImaxAbs, 1, 1, "Amps" ) \ DPOINT_SCALING_DEFN( G4_SstEfForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_SstSefForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_AbrTrest, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_AutoOpenTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G4_SstOcReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_SstEfReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_SstSefReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_ArUVOV_Trec, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IaTrip, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( IbTrip, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( IcTrip, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( InTrip, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( ACO_TPupPeer, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3PollWatchDogTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaT10BPollWatchDogTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaDnp3BinaryControlWatchDogTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaT10BBinaryControlWatchDogTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( IaLGVT, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IcLGVT, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IaMDIToday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IbMDIToday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IcMDIToday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IaMDIYesterday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IbMDIYesterday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IcMDIYesterday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IaMDILastWeek, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IbMDILastWeek, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IcMDILastWeek, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( IbLGVT, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( HrmIaTDD, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIbTDD, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIcTDD, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUaTHD, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUbTHD, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUcTHD, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmInTDD, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa1st, 0.125, 1, "A" ) \ DPOINT_SCALING_DEFN( HrmIb1st, 0.125, 1, "A" ) \ DPOINT_SCALING_DEFN( HrmIc1st, 0.125, 1, "A" ) \ DPOINT_SCALING_DEFN( HrmIn1st, 0.125, 1, "A" ) \ DPOINT_SCALING_DEFN( HrmUa1st, 1, 1, "V" ) \ DPOINT_SCALING_DEFN( ProtCfgInUse, 1, 1, "Addr" ) \ DPOINT_SCALING_DEFN( HrmUb1st, 1, 1, "V" ) \ DPOINT_SCALING_DEFN( HrmUc1st, 1, 1, "V" ) \ DPOINT_SCALING_DEFN( HrmIa2nd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb2nd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc2nd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn2nd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa2nd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( CntrOcATrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrOcBTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrOcCTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrEfTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrSefTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrUvTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrOvTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrUfTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrOfTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( TripCnt, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MechanicalWear, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( BreakerWear, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( MeasCurrIa, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( MeasCurrIb, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( MeasCurrIc, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( MeasCurrIn, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( MeasVoltUa, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUb, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUc, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUab, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUbc, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUca, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUr, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUs, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUt, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUrs, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUst, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltUtr, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasFreqabc, 0.01, 0.01, "Hz" ) \ DPOINT_SCALING_DEFN( MeasFreqrst, 0.01, 0.01, "Hz" ) \ DPOINT_SCALING_DEFN( MeasPowerPhase3kVA, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( MeasPowerPhase3kW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhase3kVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseAkVA, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseAkW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseAkVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseBkVA, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseBkW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseBkVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseCkVA, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseCkW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseCkVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( MeasPowerFactor3phase, 0.0000019074, 0.01, "" ) \ DPOINT_SCALING_DEFN( MeasPowerFactorAphase, 0.0000019074, 0.01, "" ) \ DPOINT_SCALING_DEFN( MeasPowerFactorBphase, 0.0000019074, 0.01, "" ) \ DPOINT_SCALING_DEFN( MeasPowerFactorCphase, 0.0000019074, 0.01, "" ) \ DPOINT_SCALING_DEFN( HrmUb2nd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhase3FkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhase3FkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhase3FkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseAFkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseAFkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseAFkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseBFkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseBFkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseBFkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseCFkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseCFkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseCFkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhase3RkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhase3RkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhase3RkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseARkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseARkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseARkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseBRkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseBRkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseBRkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseCRkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseCRkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasEnergyPhaseCRkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( HrmUc2nd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa3rd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb3rd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc3rd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn3rd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa3rd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb3rd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( MeasCurrI1, 0.0625, 1, "" ) \ DPOINT_SCALING_DEFN( MeasCurrI2, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( MeasVoltUar, 0.000125, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasVoltUbs, 0.000125, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasVoltUct, 0.000125, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasVoltU0, 0.000125, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasVoltU1, 0.000125, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasVoltU2, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasA0, 0.0006866455, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasA1, 0.0006866455, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasA2, 0.0006866455, 0.1, "" ) \ DPOINT_SCALING_DEFN( HrmUc3rd, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa4th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb4th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc4th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn4th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa4th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb4th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc4th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa5th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh1, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh2, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh3, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh4, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh5, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh6, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh7, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TrecCh8, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh1, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh2, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh3, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh4, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh5, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh6, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh7, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TrecCh8, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh1, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh2, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh3, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh4, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh5, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh6, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh7, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo1TresCh8, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh1, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh2, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh3, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh4, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh5, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh6, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh7, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( IoSettingIo2TresCh8, 0.01, 0.01, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseF3kVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseF3kW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseF3kVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFAkVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFAkW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFAkVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFBkVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFBkW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFBkVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFCkVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFCkW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseFCkVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseR3kVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseR3kW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseR3kVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRAkVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRAkW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRAkVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRBkVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRBkW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRBkVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRCkVA, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRCkW, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseRCkVAr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( HrmIb5th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrg3FkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrg3FkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrg3FkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgAFkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgAFkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgAFkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgBFkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgBFkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgBFkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgCFkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgCFkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgCFkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrg3RkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrg3RkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrg3RkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgARkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgARkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgARkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgBRkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgBRkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgBRkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgCRkVAh, 1, 1, "kVAh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgCRkVArh, 1, 1, "kVArh" ) \ DPOINT_SCALING_DEFN( MeasLoadProfEnrgCRkWh, 1, 1, "kWh" ) \ DPOINT_SCALING_DEFN( HrmIc5th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn5th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa5th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb5th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc5th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenLinkSlaveAddr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenLinkConfirmationMode, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenLinkConfirmationTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenLinkMaxTransFrameSize, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenAppSBOTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenAppConfirmationTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenAppNeedTimeDelay, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenAppColdRestartDelay, 1, 10, "ms" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenAppWarmRestartDelay, 1, 10, "ms" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenMasterAddr, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenRetryDelay, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenRetries, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenOfflineInterval, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenClass1Events, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenClass1Delays, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenClass2Events, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenClass2Delays, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenClass3Events, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDnp3GenClass3Delays, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( HrmIa6th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb6th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc6th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn6th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa6th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb6th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTaCalCoefHi, 0.0000010071, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTbCalCoefHi, 0.0000010071, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimSIMCTcCalCoefHi, 0.0000010071, 0.0001, "" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCUa, 0.0000004791, 0.0001, "A/MV" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCUb, 0.0000004791, 0.0001, "A/MV" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCUc, 0.0000004791, 0.0001, "A/MV" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCUr, 0.0000004791, 0.0001, "A/MV" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCUs, 0.0000004791, 0.0001, "A/MV" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCUt, 0.0000004791, 0.0001, "A/MV" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCIa, 0.0000122074, 0.0001, "A/KA" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCIb, 0.0000122074, 0.0001, "A/KA" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCIc, 0.0000122074, 0.0001, "A/KA" ) \ DPOINT_SCALING_DEFN( SwitchDefaultCoefCIn, 0.0000122074, 0.0001, "A/KA" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTaCalCoef, 0.0000162664, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTbCalCoef, 0.0000162664, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTcCalCoef, 0.0000162664, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTnCalCoef, 0.000143437, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTTempCompCoef, 0.0001, 1, "" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCVTaCalCoef, 0.0143436994, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCVTbCalCoef, 0.0143436994, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCVTcCalCoef, 0.0143436994, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCVTrCalCoef, 0.0143436994, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCVTsCalCoef, 0.0143436994, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCVTtCalCoef, 0.0143436994, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimSIMDefaultCVTTempCompCoef, 0.0001, 1, "" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTaCalCoefHi, 0.0000010071, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTbCalCoefHi, 0.0000010071, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( CanSimDefaultSIMCTcCalCoefHi, 0.0000010071, 0.0001, "V/A" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCUa, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCUb, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCUc, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCUr, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCUs, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCUt, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCIa, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCIb, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCIc, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCIaHi, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCIbHi, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCIcHi, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( FpgaDefaultCoefCIn, 1, 0.0001, "" ) \ DPOINT_SCALING_DEFN( CanSimBatteryCapacityAmpHrs, 0.01, 1, "Ahrs" ) \ DPOINT_SCALING_DEFN( CanSimPower, 0.01, 0.01, "W" ) \ DPOINT_SCALING_DEFN( OC_SP1, 1, 1, "operations" ) \ DPOINT_SCALING_DEFN( OC_SP2, 1, 1, "operations" ) \ DPOINT_SCALING_DEFN( OC_SP3, 1, 1, "operations" ) \ DPOINT_SCALING_DEFN( KA_SP1, 0.000001, 1, "kA" ) \ DPOINT_SCALING_DEFN( KA_SP2, 0.000001, 1, "kA" ) \ DPOINT_SCALING_DEFN( KA_SP3, 0.000001, 1, "kA" ) \ DPOINT_SCALING_DEFN( TripCnta, 1, 1, "" ) \ DPOINT_SCALING_DEFN( TripCntb, 1, 1, "" ) \ DPOINT_SCALING_DEFN( TripCntc, 1, 1, "" ) \ DPOINT_SCALING_DEFN( BreakerWeara, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( BreakerWearb, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( BreakerWearc, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( RelayCTaCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCTbCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCTcCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCTaCalCoefHi, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCTbCalCoefHi, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCTcCalCoefHi, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCTnCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCVTaCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCVTbCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCVTcCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCVTrCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCVTsCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( RelayCVTtCalCoef, 1, 1, "ppm (part per million)" ) \ DPOINT_SCALING_DEFN( HrmUc6th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa7th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb7th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc7th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn7th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa7th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb7th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc7th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa8th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb8th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc8th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn8th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa8th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb8th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc8th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa9th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb9th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc9th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn9th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa9th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb9th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc9th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa10th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb10th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc10th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn10th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa10th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb10th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc10th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa11th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb11th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc11th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn11th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa11th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb11th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc11th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa12th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb12th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc12th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn12th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa12th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb12th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc12th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa13th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb13th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc13th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn13th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa13th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb13th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc13th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa14th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb14th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc14th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn14th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa14th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb14th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc14th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIa15th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIb15th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIc15th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmIn15th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUa15th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUb15th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( HrmUc15th, 0.00001, 1, "%" ) \ DPOINT_SCALING_DEFN( G1_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G1_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G1_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G1_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G2_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G2_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G2_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G2_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G3_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G3_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G3_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G3_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G4_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G4_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G4_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G4_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( TripMaxCurrIa, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( TripMaxCurrIb, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( TripMaxCurrIc, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( TripMaxCurrIn, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( TripMinVoltP2P, 0.001, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( TripMaxVoltP2P, 0.001, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( TripMinFreq, 0.01, 1, "Hz" ) \ DPOINT_SCALING_DEFN( TripMaxFreq, 0.01, 1, "Hz" ) \ DPOINT_SCALING_DEFN( PanelDelayedCloseRemain, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G5_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G5_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G5_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G5_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G5_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G5_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G5_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G5_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G5_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G5_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G5_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G6_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G6_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G6_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G6_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G6_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G6_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G6_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G6_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G6_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G6_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G6_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G7_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G7_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G7_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G7_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G7_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G7_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G7_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G7_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G7_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G7_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G7_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G8_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G8_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G8_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G8_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G8_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G8_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G8_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G8_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G8_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G8_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G8_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G1_Hrm_VTHD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G1_Hrm_VTHD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Hrm_ITDD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G1_Hrm_ITDD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Hrm_Ind_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Hrm_IndA_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G1_Hrm_IndB_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G1_Hrm_IndC_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G1_Hrm_IndD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G1_Hrm_IndE_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_OCLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_AutoClose_Tr, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G2_Hrm_VTHD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G2_Hrm_VTHD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Hrm_ITDD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G2_Hrm_ITDD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Hrm_Ind_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Hrm_IndA_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G2_Hrm_IndB_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G2_Hrm_IndC_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G2_Hrm_IndD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G2_Hrm_IndE_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_OCLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_AutoClose_Tr, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G3_Hrm_VTHD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G3_Hrm_VTHD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Hrm_ITDD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G3_Hrm_ITDD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Hrm_Ind_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Hrm_IndA_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G3_Hrm_IndB_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G3_Hrm_IndC_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G3_Hrm_IndD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G3_Hrm_IndE_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_OCLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_AutoClose_Tr, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G4_Hrm_VTHD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G4_Hrm_VTHD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Hrm_ITDD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G4_Hrm_ITDD_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Hrm_Ind_TDtMin, 0.001, 0.1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Hrm_IndA_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G4_Hrm_IndB_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G4_Hrm_IndC_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G4_Hrm_IndD_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G4_Hrm_IndE_Level, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_OCLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_AutoClose_Tr, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( CntrHrmTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( TripMaxHrm, 0.00256, 1, "%" ) \ DPOINT_SCALING_DEFN( InMDIToday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( InMDIYesterday, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( InMDILastWeek, 0.0625, 1, "A" ) \ DPOINT_SCALING_DEFN( InterruptDuration, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( SagNormalThreshold, 0.001, 0.01, "pu" ) \ DPOINT_SCALING_DEFN( SagMinThreshold, 0.001, 0.01, "pu" ) \ DPOINT_SCALING_DEFN( SagTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( SwellNormalThreshold, 0.001, 0.01, "pu" ) \ DPOINT_SCALING_DEFN( SwellTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( SagSwellResetTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( HrmLogTHDDeadband, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( HrmLogTDDDeadband, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( HrmLogIndivIDeadband, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( HrmLogIndivVDeadband, 0.00001, 0.1, "%" ) \ DPOINT_SCALING_DEFN( HrmLogTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G11_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G11_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G11_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G11_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G11_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G11_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G11_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G11_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G11_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G11_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G11_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( TripMaxCurrI2, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NpsAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_SstNpsForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_SstNpsReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPS3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPS3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPS3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPS3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_NPSLL3_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_NPSLL3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_NPSLL3_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_EFLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_SEFLL_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_SEFLL_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_SEFLL_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_AutoOpenPowerFlowReduction, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( G1_AutoOpenPowerFlowTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G1_LSRM_Timer, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( G1_Uv4_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv4_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G1_Uv4_Um_min, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Uv4_Um_max, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Uv4_Um_mid, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Uv4_Tlock, 1, 1, "minutes" ) \ DPOINT_SCALING_DEFN( G1_LlbUM, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G1_Ov3_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G1_Ov3_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_Ov4_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G1_Ov4_TDtMin, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G1_OV3MovingAverageWindow, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G1_I2I1_Pickup, 0.001, 1, "%" ) \ DPOINT_SCALING_DEFN( G1_I2I1_MinI2, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G1_I2I1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_I2I1_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_SEFF_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G1_SEFR_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G1_SEFLL_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G1_SSTControl_Tst, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G2_NpsAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_SstNpsForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_SstNpsReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPS3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPS3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPS3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPS3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_NPSLL3_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_NPSLL3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_NPSLL3_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_EFLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_SEFLL_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_SEFLL_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_SEFLL_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_AutoOpenPowerFlowReduction, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( G2_AutoOpenPowerFlowTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G2_LSRM_Timer, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( G2_Uv4_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv4_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G2_Uv4_Um_min, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Uv4_Um_max, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Uv4_Um_mid, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Uv4_Tlock, 1, 1, "minutes" ) \ DPOINT_SCALING_DEFN( G2_LlbUM, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G2_Ov3_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G2_Ov3_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_Ov4_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G2_Ov4_TDtMin, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G2_OV3MovingAverageWindow, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G2_I2I1_Pickup, 0.001, 1, "%" ) \ DPOINT_SCALING_DEFN( G2_I2I1_MinI2, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G2_I2I1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_I2I1_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_SEFF_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G2_SEFR_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G2_SEFLL_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G2_SSTControl_Tst, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G3_NpsAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_SstNpsForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_SstNpsReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPS3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPS3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPS3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPS3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_NPSLL3_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_NPSLL3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_NPSLL3_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_EFLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_SEFLL_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_SEFLL_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_SEFLL_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_AutoOpenPowerFlowReduction, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( G3_AutoOpenPowerFlowTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G3_LSRM_Timer, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( G3_Uv4_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv4_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G3_Uv4_Um_min, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Uv4_Um_max, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Uv4_Um_mid, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Uv4_Tlock, 1, 1, "minutes" ) \ DPOINT_SCALING_DEFN( G3_LlbUM, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G3_Ov3_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G3_Ov3_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_Ov4_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G3_Ov4_TDtMin, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G3_OV3MovingAverageWindow, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G3_I2I1_Pickup, 0.001, 1, "%" ) \ DPOINT_SCALING_DEFN( G3_I2I1_MinI2, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G3_I2I1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_I2I1_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_SEFF_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G3_SEFR_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G3_SEFLL_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G3_SSTControl_Tst, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G4_NpsAt, 0.0006866455, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_SstNpsForward, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_SstNpsReverse, 1, 1, "Trip #" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2F_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS3F_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPS3F_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS3F_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS1R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS2R_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPS3R_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPS3R_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPS3R_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_NPSLL3_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_NPSLL3_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_NPSLL3_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL1_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Ip, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Tcc, 1, 1, "dPId" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Tm, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Imin, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Tmin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Tmax, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Ta, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_EFLL2_Imax, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_SEFLL_Ip, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_SEFLL_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_SEFLL_TDtRes, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_AutoOpenPowerFlowReduction, 1, 1, "%" ) \ DPOINT_SCALING_DEFN( G4_AutoOpenPowerFlowTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G4_LSRM_Timer, 1, 1, "seconds" ) \ DPOINT_SCALING_DEFN( G4_Uv4_TDtMin, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv4_TDtRes, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G4_Uv4_Um_min, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Uv4_Um_max, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Uv4_Um_mid, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Uv4_Tlock, 1, 1, "minutes" ) \ DPOINT_SCALING_DEFN( G4_LlbUM, 0.001, 0.01, "mills" ) \ DPOINT_SCALING_DEFN( G4_Ov3_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G4_Ov3_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_Ov4_Um, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G4_Ov4_TDtMin, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( G4_OV3MovingAverageWindow, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G4_I2I1_Pickup, 0.001, 1, "%" ) \ DPOINT_SCALING_DEFN( G4_I2I1_MinI2, 0.001, 1, "A" ) \ DPOINT_SCALING_DEFN( G4_I2I1_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_I2I1_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_SEFF_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G4_SEFR_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G4_SEFLL_Ip_HighPrec, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G4_SSTControl_Tst, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( PGESBOTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( I2Trip, 0.25, 1, "A" ) \ DPOINT_SCALING_DEFN( TripMinVoltUv4, 0.001, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MechanicalWeara, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( MechanicalWearb, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( MechanicalWearc, 0.0000001, 1, "%" ) \ DPOINT_SCALING_DEFN( BatteryTestInterval, 1, 1, "days" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseS3kW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseS3kVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( MeasPowerFactorS3phase, 0.0000019074, 0.01, "" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseSAkW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseSAkVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseSBkW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseSBkVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseSCkW, 1, 1, "kW" ) \ DPOINT_SCALING_DEFN( MeasPowerPhaseSCkVAr, 1, 1, "kVAr" ) \ DPOINT_SCALING_DEFN( TripMinUvA, 1, 1, "kV" ) \ DPOINT_SCALING_DEFN( TripMinUvB, 1, 1, "kV" ) \ DPOINT_SCALING_DEFN( TripMinUvC, 1, 1, "kV" ) \ DPOINT_SCALING_DEFN( TripMaxOvA, 1, 1, "kV" ) \ DPOINT_SCALING_DEFN( TripMaxOvB, 1, 1, "kV" ) \ DPOINT_SCALING_DEFN( TripMaxOvC, 1, 1, "kV" ) \ DPOINT_SCALING_DEFN( s61850PktsRx, 1, 1, "" ) \ DPOINT_SCALING_DEFN( s61850PktsTx, 1, 1, "" ) \ DPOINT_SCALING_DEFN( s61850RxErrPkts, 1, 1, "" ) \ DPOINT_SCALING_DEFN( GOOSE_TxCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaT10BCyclicStartMaxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( LogicCh9RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh9ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh9PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh10RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh10ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh10PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh11RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh11ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh11PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh12RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh12ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh12PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh13RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh13ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh13PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh14RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh14ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh14PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh15RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh15ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh15PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh16RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh16ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh16PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh17RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh17ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh17PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh18RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh18ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh18PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh19RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh19ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh19PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh20RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh20ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh20PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh21RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh21ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh21PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh22RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh22ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh22PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh23RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh23ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh23PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh24RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh24ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh24PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh25RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh25ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh25PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh26RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh26ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh26PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh27RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh27ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh27PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh28RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh28ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh28PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh29RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh29ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh29PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh30RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh30ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh30PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh31RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh31ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh31PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh32RecTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( LogicCh32ResetTime, 0.01, 1, "s" ) \ DPOINT_SCALING_DEFN( LogicCh32PulseTime, 0.01, 0.01, "s" ) \ DPOINT_SCALING_DEFN( DNP3SA_ExpectSessKeyChangeInterval, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_ExpectSessKeyChangeCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_UnexpectedMsgCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_AuthorizeFailCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_AuthenticateFailCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_ReplyTimeoutCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_RekeyCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_TotalMsgTxCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_TotalMsgRxCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_CriticalMsgTxCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_CriticalMsgRxCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_DiscardedMsgCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_AuthenticateSuccessCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_ErrorMsgTxCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_ErrorMsgRxCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_SessKeyChangeCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_FailedSessKeyChangeCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_MaxErrorCount, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_MaxAuthenticationFails, 1, 1, "" ) \ DPOINT_SCALING_DEFN( DNP3SA_MaxAuthenticationRekeys, 1, 1, "" ) \ DPOINT_SCALING_DEFN( MeasVoltUn, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( TripMaxVoltUn, 0.001, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( TripMaxVoltU2, 0.001, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( CanSimMaxPower, 1, 0.01, "W" ) \ DPOINT_SCALING_DEFN( Gps_Longitude, 0.000001, 0.000001, "degrees" ) \ DPOINT_SCALING_DEFN( Gps_Latitude, 0.000001, 0.000001, "degrees" ) \ DPOINT_SCALING_DEFN( Gps_Altitude, 1, 1, "m" ) \ DPOINT_SCALING_DEFN( G12_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G12_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G12_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G12_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G12_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G12_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G12_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G12_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G12_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G12_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G12_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G13_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G13_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G13_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G13_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G13_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G13_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G13_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G13_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G13_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G13_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G13_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( SyncLiveBusMultiplier, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( SyncLiveLineMultiplier, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( SyncMaxBusMultiplier, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( SyncMaxLineMultiplier, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( SyncVoltageDiffMultiplier, 0.001, 0.01, "" ) \ DPOINT_SCALING_DEFN( SyncMaxSyncSlipFreq, 0.001, 0.01, "Hz" ) \ DPOINT_SCALING_DEFN( SyncMaxPhaseAngleDiff, 1, 1, "degrees" ) \ DPOINT_SCALING_DEFN( SyncManualPreSyncTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( SyncMaxFreqDeviation, 0.001, 0.01, "Hz" ) \ DPOINT_SCALING_DEFN( SyncMaxAutoSlipFreq, 0.001, 0.01, "Hz" ) \ DPOINT_SCALING_DEFN( SyncMaxROCSlipFreq, 0.001, 0.1, "Hz/s" ) \ DPOINT_SCALING_DEFN( SyncAutoWaitingTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( SyncAdvanceAngle, 1, 1, "degrees" ) \ DPOINT_SCALING_DEFN( SyncSlipFreq, 0.01, 0.01, "Hz" ) \ DPOINT_SCALING_DEFN( SyncMaxDeltaV, 0.001, 0.001, "kV" ) \ DPOINT_SCALING_DEFN( SyncMaxDeltaPhase, 1, 1, "degrees" ) \ DPOINT_SCALING_DEFN( SyncFundFreq, 0.001, 1, "Hz" ) \ DPOINT_SCALING_DEFN( FreqabcROC, 0.01, 0.01, "Hz/sec" ) \ DPOINT_SCALING_DEFN( A_WT1, 0.015625, 1, "A" ) \ DPOINT_SCALING_DEFN( A_WT2, 0.015625, 1, "A" ) \ DPOINT_SCALING_DEFN( MeasVoltU0RST, 0.000125, 0.1, "" ) \ DPOINT_SCALING_DEFN( MeasVoltUnRST, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltU1RST, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( MeasVoltU2RST, 0.000125, 0.1, "kV" ) \ DPOINT_SCALING_DEFN( G1_Yn_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_Yn_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G1_Yn_Ioper, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G1_Yn_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_Yn_FwdSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G1_Yn_RevSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G1_Yn_FwdConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G1_Yn_RevConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G1_DE_EF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G1_DE_EF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_DE_EF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_DE_EF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_DE_EF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_DE_SEF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G1_DE_SEF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_DE_SEF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_DE_SEF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_DE_SEF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G1_ROCOF_Pickup, 0.001, 0.1, "Hz/s" ) \ DPOINT_SCALING_DEFN( G1_ROCOF_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_ROCOF_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_VVS_Pickup, 0.001, 1, "Degree" ) \ DPOINT_SCALING_DEFN( G1_VVS_TDtMin, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G1_VVS_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_PDOP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G1_PDOP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G1_PDOP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_PDOP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_PDUP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G1_PDUP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G1_PDUP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_PDUP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G1_PDUP_TDtDis, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_Yn_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_Yn_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G2_Yn_Ioper, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G2_Yn_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_Yn_FwdSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G2_Yn_RevSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G2_Yn_FwdConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G2_Yn_RevConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G2_DE_EF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G2_DE_EF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_DE_EF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_DE_EF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_DE_EF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_DE_SEF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G2_DE_SEF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_DE_SEF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_DE_SEF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_DE_SEF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G2_ROCOF_Pickup, 0.001, 0.1, "Hz/s" ) \ DPOINT_SCALING_DEFN( G2_ROCOF_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_ROCOF_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_VVS_Pickup, 0.001, 1, "Degree" ) \ DPOINT_SCALING_DEFN( G2_VVS_TDtMin, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G2_VVS_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_PDOP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G2_PDOP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G2_PDOP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_PDOP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_PDUP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G2_PDUP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G2_PDUP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_PDUP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G2_PDUP_TDtDis, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_Yn_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_Yn_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G3_Yn_Ioper, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G3_Yn_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_Yn_FwdSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G3_Yn_RevSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G3_Yn_FwdConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G3_Yn_RevConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G3_DE_EF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G3_DE_EF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_DE_EF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_DE_EF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_DE_EF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_DE_SEF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G3_DE_SEF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_DE_SEF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_DE_SEF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_DE_SEF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G3_ROCOF_Pickup, 0.001, 0.1, "Hz/s" ) \ DPOINT_SCALING_DEFN( G3_ROCOF_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_ROCOF_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_VVS_Pickup, 0.001, 1, "Degree" ) \ DPOINT_SCALING_DEFN( G3_VVS_TDtMin, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G3_VVS_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_PDOP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G3_PDOP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G3_PDOP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_PDOP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_PDUP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G3_PDUP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G3_PDUP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_PDUP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G3_PDUP_TDtDis, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_Yn_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_Yn_Um, 0.001, 0.01, "mill" ) \ DPOINT_SCALING_DEFN( G4_Yn_Ioper, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( G4_Yn_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_Yn_FwdSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G4_Yn_RevSusceptance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G4_Yn_FwdConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G4_Yn_RevConductance, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( G4_DE_EF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G4_DE_EF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_DE_EF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_DE_EF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_DE_EF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_DE_SEF_MinNVD, 0.001, 0.01, "Un" ) \ DPOINT_SCALING_DEFN( G4_DE_SEF_MaxFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_DE_SEF_MinFwdAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_DE_SEF_MaxRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_DE_SEF_MinRevAngle, 1, 1, "deg" ) \ DPOINT_SCALING_DEFN( G4_ROCOF_Pickup, 0.001, 0.1, "Hz/s" ) \ DPOINT_SCALING_DEFN( G4_ROCOF_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_ROCOF_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_VVS_Pickup, 0.001, 1, "Degree" ) \ DPOINT_SCALING_DEFN( G4_VVS_TDtMin, 0.001, 0.1, "s" ) \ DPOINT_SCALING_DEFN( G4_VVS_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_PDOP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G4_PDOP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G4_PDOP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_PDOP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_PDUP_Pickup, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( G4_PDUP_Angle, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( G4_PDUP_TDtMin, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_PDUP_TDtRes, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( G4_PDUP_TDtDis, 0.001, 0.01, "s" ) \ DPOINT_SCALING_DEFN( TripMaxGn, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( TripMaxBn, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( TripMinGn, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( TripMinBn, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( MeasGn, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( MeasBn, 0.001, 0.01, "mSi" ) \ DPOINT_SCALING_DEFN( TripMaxI2I1, 0.001, 1, "%" ) \ DPOINT_SCALING_DEFN( MeasI2I1, 0.001, 1, "%" ) \ DPOINT_SCALING_DEFN( MeasCurrIn_mA, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( InTrip_mA, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( TripMaxCurrIn_mA, 0.001, 0.1, "A" ) \ DPOINT_SCALING_DEFN( UPSMobileNetworkTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( UPSWlanTime, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( UPSMobileNetworkResetTime, 1, 1, "Hrs" ) \ DPOINT_SCALING_DEFN( UPSWlanResetTime, 1, 1, "Hrs" ) \ DPOINT_SCALING_DEFN( CanPscHeatsinkTemp, 0.01, 0.01, "C" ) \ DPOINT_SCALING_DEFN( CanPscModuleVoltage, 0.01, 0.01, "V" ) \ DPOINT_SCALING_DEFN( Gps_Latitude_Field1, 1, 1, "degree" ) \ DPOINT_SCALING_DEFN( Gps_Latitude_Field2, 1, 1, "millidegree" ) \ DPOINT_SCALING_DEFN( Gps_Latitude_Field3, 1, 1, "microdegree" ) \ DPOINT_SCALING_DEFN( Gps_Longitude_Field1, 1, 1, "degree" ) \ DPOINT_SCALING_DEFN( Gps_Longitude_Field2, 1, 1, "millidegree" ) \ DPOINT_SCALING_DEFN( Gps_Longitude_Field3, 1, 1, "microdegree" ) \ DPOINT_SCALING_DEFN( FaultLocM, 0.01, 0.01, "km" ) \ DPOINT_SCALING_DEFN( FaultLocZf, 0.01, 0.01, "ohms" ) \ DPOINT_SCALING_DEFN( FaultLocThetaF, 0.01, 0.01, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocZLoop, 0.01, 0.01, "ohms" ) \ DPOINT_SCALING_DEFN( FaultLocThetaLoop, 0.01, 0.01, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocIa, 0.015625, 1, "A" ) \ DPOINT_SCALING_DEFN( FaultLocIb, 0.015625, 1, "A" ) \ DPOINT_SCALING_DEFN( FaultLocIc, 0.015625, 1, "A" ) \ DPOINT_SCALING_DEFN( FaultLocAIa, 0.0219726562, 1, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocAIb, 0.0219726562, 1, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocAIc, 0.0219726562, 1, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocUa, 0.001, 1, "kV" ) \ DPOINT_SCALING_DEFN( FaultLocUb, 0.001, 1, "kV" ) \ DPOINT_SCALING_DEFN( FaultLocUc, 0.001, 1, "kV" ) \ DPOINT_SCALING_DEFN( FaultLocAUa, 0.0219726562, 1, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocAUb, 0.0219726562, 1, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocAUc, 0.0219726562, 1, "deg" ) \ DPOINT_SCALING_DEFN( FaultLocR0, 0.001, 0.001, "ohms/km" ) \ DPOINT_SCALING_DEFN( FaultLocX0, 0.001, 0.001, "ohms/km" ) \ DPOINT_SCALING_DEFN( FaultLocR1, 0.001, 0.001, "ohms/km" ) \ DPOINT_SCALING_DEFN( FaultLocX1, 0.001, 0.001, "ohms/km" ) \ DPOINT_SCALING_DEFN( FaultLocRA, 0.001, 0.001, "ohms/km" ) \ DPOINT_SCALING_DEFN( FaultLocXA, 0.001, 0.001, "ohms/km" ) \ DPOINT_SCALING_DEFN( FaultLocLengthOfLine, 0.001, 0.01, "km" ) \ DPOINT_SCALING_DEFN( FaultLocXLoop, 0.01, 0.01, "ohms" ) \ DPOINT_SCALING_DEFN( LoadedScadaProtocolDNP3, 1, 1, "" ) \ DPOINT_SCALING_DEFN( LoadedScadaProtocol60870, 1, 1, "" ) \ DPOINT_SCALING_DEFN( LoadedScadaProtocol61850MMS, 1, 1, "" ) \ DPOINT_SCALING_DEFN( LoadedScadaProtocol2179, 1, 1, "" ) \ DPOINT_SCALING_DEFN( LoadedScadaProtocol61850GoosePub, 1, 1, "" ) \ DPOINT_SCALING_DEFN( LoadedScadaProtocol61850GooseSub, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMIaCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMIbCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMIcCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMInCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMIaCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMIbCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMIcCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMUaCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMUbCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMUcCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMUrCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMUsCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMUtCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchIaCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchIbCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchIcCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchInCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchUaCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchUbCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchUcCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchUrCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchUsCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchUtCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayIaCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayIbCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayIcCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayInCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayUaCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayUbCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayUcCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayUrCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayUsCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayUtCalCoef, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayIaCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayIbCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20RelayIcCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SIMDefaultGainU, 1, 1, "" ) \ DPOINT_SCALING_DEFN( ScadaDNP3GenAppFragMaxSize, 1, 1, "" ) \ DPOINT_SCALING_DEFN( LineSupplyVoltage, 0.01, 0.01, "V" ) \ DPOINT_SCALING_DEFN( RC20SwitchIaCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchIbCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( RC20SwitchIcCalCoefHi, 1, 1, "" ) \ DPOINT_SCALING_DEFN( PscTransformerCalib110V, 0.000001, 0.000001, "" ) \ DPOINT_SCALING_DEFN( PscTransformerCalib220V, 0.000001, 0.000001, "" ) \ DPOINT_SCALING_DEFN( G14_SerialDTRLowTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G14_SerialTxDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G14_SerialPreTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G14_SerialDCDFallTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G14_SerialPostTxTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G14_SerialInactivityTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G14_SerialMinIdleTime, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G14_SerialMaxRandomDelay, 1, 1, "ms" ) \ DPOINT_SCALING_DEFN( G14_ModemMaxCallDuration, 1, 1, "min" ) \ DPOINT_SCALING_DEFN( G14_ModemResponseTime, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( G14_GPRSConnectionTimeout, 1, 1, "s" ) \ DPOINT_SCALING_DEFN( CntrROCOFTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( CntrVVSTrips, 1, 1, "" ) \ DPOINT_SCALING_DEFN( TripMaxROCOF, 0.001, 0.1, "Hz/s" ) \ DPOINT_SCALING_DEFN( TripMaxVVS, 0.001, 1, "deg" ) \ DPOINT_SCALING_DEFN( PeakPower, 0.01, 0.01, "W" ) \ DPOINT_SCALING_DEFN( ExternalSupplyPower, 0.01, 0.01, "W" ) \ DPOINT_SCALING_DEFN( PMUNominalFrequency, 1, 1, "Hz" ) \ DPOINT_SCALING_DEFN( PMUMessageRate, 1, 1, "/ sec" ) \ DPOINT_SCALING_DEFN( PMU_Ua, 0.00390625, 0.001, "V" ) \ DPOINT_SCALING_DEFN( PMU_Ub, 0.00390625, 0.001, "V" ) \ DPOINT_SCALING_DEFN( PMU_Uc, 0.00390625, 0.001, "V" ) \ DPOINT_SCALING_DEFN( PMU_Ur, 0.00390625, 0.001, "V" ) \ DPOINT_SCALING_DEFN( PMU_Us, 0.00390625, 0.001, "V" ) \ DPOINT_SCALING_DEFN( PMU_Ut, 0.00390625, 0.001, "V" ) \ DPOINT_SCALING_DEFN( PMU_Ia, 0.0004882813, 0.001, "A" ) \ DPOINT_SCALING_DEFN( PMU_Ib, 0.0004882813, 0.001, "A" ) \ DPOINT_SCALING_DEFN( PMU_Ic, 0.0004882813, 0.001, "A" ) \ DPOINT_SCALING_DEFN( PMU_A_Ua, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Ub, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Uc, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Ur, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Us, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Ut, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Ia, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Ib, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_A_Ic, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( PMU_F_ABC, 0.001, 0.001, "Hz" ) \ DPOINT_SCALING_DEFN( PMU_F_RST, 0.001, 0.001, "Hz" ) \ DPOINT_SCALING_DEFN( PMU_ROCOF_ABC, 0.001, 0.001, "Hz/sec" ) \ DPOINT_SCALING_DEFN( PMU_ROCOF_RST, 0.001, 0.001, "Hz/sec" ) \ DPOINT_SCALING_DEFN( HTTPServerPort, 1, 1, "" ) \ DPOINT_SCALING_DEFN( PscDcCalibCoef, 0.000001, 0.000001, "" ) \ DPOINT_SCALING_DEFN( PMU_In, 0.0004882813, 0.001, "A" ) \ DPOINT_SCALING_DEFN( PMU_A_In, 0.0006866455, 0.001, "deg" ) \ DPOINT_SCALING_DEFN( CbfPhaseCurrent, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( CbfEfCurrent, 1, 1, "A" ) \ DPOINT_SCALING_DEFN( CbfBackupTripTime, 0.001, 0.01, "ms" ) \ DPOINT_SCALING_DEFN( TripMaxPDOP, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( TripAnglePDOP, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( TripMinPDUP, 1, 1, "kVA" ) \ DPOINT_SCALING_DEFN( TripAnglePDUP, 0.01, 0.1, "deg" ) \ DPOINT_SCALING_DEFN( MeasAngle3phase, 0.0006866455, 0.1, "deg" ) \ /** @endcond DO_NOT_DOCUMENT Doxygen documentation is not required. */ #endif // #ifndef _DBSCHEMA_INCLUDE/DBSCHEMA/DBDATAPOINTSCALING_H_ <file_sep>#!/bin/bash # # run from the build dir echo echo "----------------------------------------------" echo "------- tests: h2load" echo PW=`pwd` cd ../minimal-examples/http-server/minimal-http-server-tls $PW/bin/lws-minimal-http-server-tls & R=$! sleep 0.5s # check h1 with various loads h2load -n 10000 -c 1 --h1 https://127.0.0.1:7681 if [ $? -ne 0 ] ; then Q=$? kill $R wait $R exit $Q fi h2load -n 10000 -c 10 --h1 https://127.0.0.1:7681 if [ $? -ne 0 ] ; then Q=$? kill $R wait $R exit $Q fi h2load -n 100000 -c 100 --h1 https://127.0.0.1:7681 if [ $? -ne 0 ] ; then Q=$? kill $R wait $R exit $Q fi # check h2 with various loads h2load -n 10000 -c 1 https://127.0.0.1:7681 if [ $? -ne 0 ] ; then Q=$? kill $R wait $R exit $Q fi h2load -n 10000 -c 10 https://127.0.0.1:7681 if [ $? -ne 0 ] ; then Q=$? kill $R wait $R exit $Q fi h2load -n 100000 -c 100 https://127.0.0.1:7681 Q=$? kill $R wait $R exit $Q <file_sep>/** @file noja_webserver_pkg.c * Package handling implementations * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #include <sys/types.h> #include <sys/stat.h> #if !defined(_MSC_VER) #include <unistd.h> #endif #include "noja_webserver_pkg.h" #include "noja_webserver_mem.h" #include "libxml/parser.h" #include "libxml/tree.h" #include "libxml/xpath.h" #include "libxml/xpathInternals.h" /** @ingroup group_internal * @brief define a static mime type for FTL file */ static struct lws_protocol_vhost_options nwsFtlMime = { NULL, NULL, ".ftl", "text/ftl" }; /** @ingroup group_internal * @brief Count the number of element matching the specified xpath * * This function get the number of elements matching an expath string * * @param[in] ctx Webserver context * @param[in] xpathCtx XML file where to do the search * @param[in] xpath String xpath use to search for the elements * @param[out] count Number of matching elements * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to find the specified object. */ static NwsErrors nswFindMatchedCount(NwsContextInternal *ctx, xmlXPathContextPtr xpathCtx, const char* xpath, unsigned int* count) { xmlXPathObjectPtr xpathMatch; NwsErrors result = NwsError_Ok; PARAM_UNUSED(ctx); /* match the xpath to the configuration fi */ if((xpathMatch = xmlXPathEvalExpression((const xmlChar *)xpath, xpathCtx)) == NULL) { SYSERR(SYS_INFO, "Unable to evaluate the xpath expression \"%s\"", xpath); return NwsError_ConfigurationFile; } if(xmlXPathNodeSetIsEmpty(xpathMatch->nodesetval)) { SYSERR(SYS_INFO, "No match for the xpath expression \"%s\"", xpath); result = NwsError_ConfigurationFile; } else { *count = xpathMatch->nodesetval->nodeNr; } xmlXPathFreeObject(xpathMatch); return result; } /** @ingroup group_internal * @brief Find the specified element or attribute and get the text content * * This function search the specified element/attribute using XPATH. The searched will get the first * match and ignoring the other match. Will only get string for XML text node and XML attribute. * * @param[in] ctx Webserver context * @param[in] xpathCtx XML file where to do the search * @param[in] xpath String xpath use to search for the element * @param[out] text pointer to the element's text content * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to find the specified object. */ static NwsErrors nswFindElementGetText(NwsContextInternal *ctx, xmlXPathContextPtr xpathCtx, const char* xpath, char** text) { xmlXPathObjectPtr xpathMatch; xmlNode *current = NULL; NwsErrors result = NwsError_Ok; /* match the xpath to the configuration fi */ if((xpathMatch = xmlXPathEvalExpression((const xmlChar *)xpath, xpathCtx)) == NULL) { SYSERR(SYS_INFO, "Unable to evaluate the xpath expression \"%s\"", xpath); return NwsError_ConfigurationFile; } do { if(xmlXPathNodeSetIsEmpty(xpathMatch->nodesetval)) { SYSERR(SYS_INFO, "No match for the xpath expression \"%s\"", xpath); result = NwsError_ConfigurationFile; break; } /* there should be one default element */ current = xpathMatch->nodesetval->nodeTab[0]; /* if node is attribute, the value is in the node from 'children' field */ if(current->type == XML_ATTRIBUTE_NODE ) { xmlAttr *attr = (xmlAttr*)current; current = attr->children; } if( current->type == XML_TEXT_NODE) { *text = (char*)NWSALLOC(ctx, strbuflen(current->content)); memset(*text, 0, strbuflen(current->content)); strncpy(*text, (const char*)current->content, strlen((const char*)current->content)); } else { SYSERR(SYS_INFO, "Unable to get the string value for xpath expression \"%s\"", xpath); result = NwsError_ConfigurationFile; break; } } while (0); xmlXPathFreeObject(xpathMatch); return result; } /** @ingroup group_internal * @brief Find the specified element/attribute and get the text content as number * * This function search the specified element using XPATH. The searched will get the first * match and ignoring the other match. Will only get string for XML text node and XML attribute. * * @param[in] ctx Webserver context * @param[in] xpathCtx XML file where to do the search * @param[in] xpath String xpath use to search for the element * @param[out] text pointer to the element's text content * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to find the specified object. */ static NwsErrors nswFindElementGetNumber(NwsContextInternal *ctx, xmlXPathContextPtr xpathCtx, const char* xpath, unsigned int* num) { char *text = NULL; char *endptr = NULL; NwsErrors result = NwsError_Ok; if((result = nswFindElementGetText(ctx, xpathCtx, xpath, &text)) != NwsError_Ok) { return result; } /* convert the value into unsinged int */ *num = strtol(text, &endptr, 10); if(text == endptr) { NWSFREE(ctx, text, strbuflen(text)); SYSERR(SYS_INFO, "The value of the expression \"%s\" is not a number", xpath); result = NwsError_ConfigurationFile; } NWSFREE(ctx, text, strbuflen(text)); return result; } /** @ingroup group_internal * @brief Get the languages from the configuration file * * This function parse the language resources from the configuration file * * @param[in] ctx Webserver context * @param[in] xpathCtx Configuration file where to search the languages * @param[in] mount Pointer to the mount structure where to add the language resource * @param[in, out] idx index of mount, this is populated on return with the final index used * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to parse the configuration file. Check the log for details * @return NwsError_Ng General error */ static NwsErrors nwsParseLangs(NwsContextInternal *ctx, xmlXPathContextPtr xpathCtx, struct lws_http_mount *mount, unsigned int *idx) { const char *xpathLangLoc = "/configuration/language-resources/@location"; const char *xpathLangs = "/configuration/language-resources/languages"; const char *xpathLangVer = "/configuration/language-resources/languages[%d]/version/@str"; const char *xpathLang = "/configuration/language-resources/languages[%d]/language"; const char *xpathLangCode = "/configuration/language-resources/languages[%d]/language[%d]/text()"; char buffer[NWS_MAX_PATH_LENGTH]; NwsErrors result = NwsError_Ok; char *langLoc = NULL; char *langVer = NULL; char *langCode = NULL; char *tmp = NULL; unsigned int lanVerCnt = 0; unsigned int lanCnt = 0; unsigned int expectedSize; unsigned int verIdx; unsigned int lanIdx; if(nswFindMatchedCount(ctx, xpathCtx, xpathLangs, &lanVerCnt) != NwsError_Ok) { return result; } if(lanVerCnt == 0) { SYSERR(SYS_INFO, "No other pages is found!"); /* missing resources is ok, this means the website does not need other resources */ return result; } if(lanVerCnt > NWS_MAX_LANG_VER) { SYSERR(SYS_INFO, "Number of language versions is more than the maximum allowed of %d pages", NWS_MAX_LANG_VER); result = NwsError_ConfigurationFile; return result; } /* get the language resource location */ if((result = nswFindElementGetText(ctx, xpathCtx, xpathLangLoc, &langLoc)) != NwsError_Ok) { return result; } for(verIdx = 1; verIdx <= lanVerCnt; verIdx++) { lanCnt = 0; /* determine how many translation this language version has */ snprintf(buffer, NWS_MAX_PATH_LENGTH, xpathLang, verIdx); if( nswFindMatchedCount(ctx, xpathCtx, buffer, &lanCnt) != NwsError_Ok || lanCnt == 0) { continue; } /* get the version number */ snprintf(buffer, NWS_MAX_PATH_LENGTH, xpathLangVer, verIdx); if((result = nswFindElementGetText(ctx, xpathCtx, buffer, &langVer)) != NwsError_Ok) { break; } for(lanIdx = 1; lanIdx <= lanCnt; lanIdx++) { if(*idx >= NWS_MAX_PAGES) { SYSERR(SYS_INFO, "Number of resources and pages is more than allowed of %d pages", NWS_MAX_PAGES); result = NwsError_ConfigurationFile; break; } /* get the language code */ snprintf(buffer, NWS_MAX_PATH_LENGTH, xpathLangCode, verIdx, lanIdx); if((result=nswFindElementGetText(ctx, xpathCtx, buffer, &langCode)) != NwsError_Ok) { break; } expectedSize = snprintf(0, 0, "/language/%s/%s", langVer, langCode) + 1; tmp = NWSALLOC(ctx, expectedSize); snprintf(tmp, expectedSize, "/language/%s/%s", langVer, langCode); mount[*idx].mountpoint = tmp; mount[*idx].mountpoint_len = (unsigned char)strlen(tmp); mount[*idx].origin_protocol = LWSMPRO_FILE; expectedSize = snprintf(0, 0, "%s.ftl", langCode) + 1; tmp = NWSALLOC(ctx, expectedSize); snprintf(tmp, expectedSize, "%s.ftl", langCode); mount[*idx].def = tmp; expectedSize = snprintf(0, 0, "%s/%s/%s", ctx->mounts.html, langLoc, langVer) + 1; tmp = NWSALLOC(ctx, expectedSize); snprintf(tmp, expectedSize, "%s/%s/%s", ctx->mounts.html, langLoc, langVer); mount[*idx].origin = tmp; mount[*idx].extra_mimetypes = &nwsFtlMime; NWSFREE(ctx, langCode, strbuflen(langCode)); *idx = *idx + 1; } NWSFREE(ctx, langVer, strbuflen(langVer)); if(result != NwsError_Ok) { break; } } NWSFREE(ctx, langLoc, strbuflen(langLoc)); return result; } /** @ingroup group_internal * @brief Get the pages from the configuration file * * This function parse the webpage pages from the configuration file * * @param[in] ctx Webserver context * @param[in] xpathCtx Configuration file where to search the webpages * @param[in] mount Pointer to the mount structure where to add the pages * @param[in, out] idx index of mount, this is populated on return with the final index used * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to parse the configuration file. Check the log for details * @return NwsError_Ng General error */ static NwsErrors nwsParsePages(NwsContextInternal *ctx, xmlXPathContextPtr xpathCtx, struct lws_http_mount *mount, unsigned int *idx) { const char *xpathResource = "/configuration/website/resource"; const char *xpathResourceUrl = "/configuration/website/resource[%d]/@url"; const char *xpathResourceSrc = "/configuration/website/resource[%d]/@source"; char buffer[NWS_MAX_PATH_LENGTH]; unsigned int count = 0; unsigned int index; NwsErrors result = NwsError_Ok; char *tmpUrl; char *tmpSrc; char *tmp; char *pos; if(nswFindMatchedCount(ctx, xpathCtx, xpathResource, &count) != NwsError_Ok) { return result; } if(count == 0) { SYSERR(SYS_INFO, "No other pages is found!"); /* missing resources is ok, this means the website does not need other resources */ return result; } if(count > NWS_MAX_PAGES) { SYSERR(SYS_INFO, "Number of webpages more than the maximum allowed of %d pages", NWS_MAX_PAGES); result = NwsError_ConfigurationFile; return result; } /* get the number of resource element in the configuration file */ for(index = 1; index <= count; index++) { tmpUrl = NULL; tmpSrc = NULL; if(*idx >= NWS_MAX_PAGES) { SYSERR(SYS_INFO, "Number of resources and pages is more than allowed of %d pages", NWS_MAX_PAGES); result = NwsError_ConfigurationFile; break; } /* get url */ snprintf(buffer, sizeof(buffer), xpathResourceUrl, index); if((result = nswFindElementGetText(ctx, xpathCtx, buffer, &tmpUrl)) != NwsError_Ok) { break; } /* get location */ snprintf(buffer, sizeof(buffer), xpathResourceSrc, index); if((result = nswFindElementGetText(ctx, xpathCtx, buffer, &tmpSrc)) != NwsError_Ok) { NWSFREE(ctx, tmpUrl, strbuflen(tmpUrl)); break; } memset(&mount[*idx], 0, sizeof(struct lws_http_mount)); mount[*idx].mountpoint = tmpUrl; mount[*idx].mountpoint_len = (unsigned char)strlen(tmpUrl); mount[*idx].origin_protocol = LWSMPRO_FILE; /* get the relative path and filename of the resource */ pos = strrchr(tmpSrc,'/'); if( pos == NULL || pos == tmpSrc) { // not found, meaning there is only the resource name mount[*idx].def = tmpSrc; tmp = (char*)NWSALLOC(ctx, strbuflen(ctx->mounts.html)); memset(tmp, 0, strbuflen(ctx->mounts.html)); strncpy(tmp, ctx->mounts.html, strlen(ctx->mounts.html)); mount[*idx].origin = tmp; } else if((unsigned int)(pos - tmpSrc) == (unsigned int)strlen(tmpSrc) - 1){ // no file name SYSERR(SYS_INFO, "Resource source value \"%s\" is invalid", tmpSrc); NWSFREE(ctx, tmpUrl, strbuflen(tmpUrl)); NWSFREE(ctx, tmpSrc, strbuflen(tmpSrc)); result = NwsError_ConfigurationFile; break; } else { *pos = 0; char *rcPath = tmpSrc; char *rcName = pos + 1; unsigned int size; tmp = (char*)NWSALLOC(ctx, strbuflen(rcName)); memset(tmp, 0, strbuflen(rcName)); strncpy(tmp, rcName, strlen(rcName)); mount[*idx].def = tmp; size = snprintf(0, 0, "%s/%s", ctx->mounts.html, rcPath) + 1; tmp = (char*)NWSALLOC(ctx, size); snprintf(tmp, size, "%s/%s", ctx->mounts.html, rcPath); mount[*idx].origin = tmp; NWSFREE(ctx, tmpSrc, strbuflen(rcPath) + strbuflen(rcName)); } *idx = *idx + 1; } return result; } /** @ingroup group_internal * @brief Get the default page from the configuration file * * This function parse the default webpage from the configuration file * * @param[in] ctx Webserver context * @param[in] mount Pointer to the mount structre where to add the default page * @param[in] xpathCtx Configuration file where to search the default * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to parse the configuration file. Check the log for details * @return NwsError_Ng General error */ static NwsErrors nwsParseDefaultPage(NwsContextInternal *ctx, struct lws_http_mount *mount, xmlXPathContextPtr xpathCtx) { const char *xpath = "/configuration/website/default/text()"; NwsErrors result = NwsError_Ok; char *tmp = NULL; if((result = nswFindElementGetText(ctx, xpathCtx, xpath, &tmp)) != NwsError_Ok) { return result; } memset(mount, 0, sizeof(struct lws_http_mount)); mount->def = tmp; mount->mount_next = NULL; mount->origin_protocol = LWSMPRO_FILE; tmp = (char*)NWSALLOC(ctx, 2); tmp[0] = '/'; tmp[1] = 0; mount->mountpoint = tmp; mount->mountpoint_len = 1; tmp = (char*)NWSALLOC(ctx, strbuflen(ctx->mounts.html)); memset(tmp, 0, strbuflen(ctx->mounts.html)); strncpy(tmp, ctx->mounts.html, strlen(ctx->mounts.html)); mount->origin = tmp; return result; } /** @ingroup group_internal * @brief Get the default page from the configuration file * * This function parse the default webpage from the configuration file * * @param[in] ctx Webserver context * @param[in] xpathCtx Configuration file where to search the webpages * @param[in] cfg Configuration buffer * @param[in] mount Pointer to the mount structure where to add the pages * @param[in, out] idx index of mount, this is populated on return with the final index used * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to parse the configuration file. Check the log for details * @return NwsError_Ng General error */ static NwsErrors nwsParseRedirects(NwsContextInternal *ctx, xmlXPathContextPtr xpathCtx, NwsConfiguration *cfg, struct lws_http_mount *mount, unsigned int *idx) { NwsCfgRedirects *redirects; const char *xpathLocation= "/configuration/redirects/@location"; const char *xpathRedirect= "/configuration/redirects/redirect"; const char *xpathCode= "/configuration/redirects/redirect[%d]/@code"; const char *xpathName= "/configuration/redirects/redirect[%d]/@name"; char buffer[NWS_MAX_PATH_LENGTH]; unsigned int count = 0; NwsErrors result = NwsError_Ok; unsigned int redirectCode = 0; char *redirectLoc = NULL; char *redirectName = NULL; char *tmp; unsigned int length = 0; unsigned int index; if(nswFindMatchedCount(ctx, xpathCtx, xpathRedirect, &count) != NwsError_Ok) { return result; } if(count == 0) { SYSERR(SYS_INFO, "No redirect found!"); /* missing resources is ok, this means the website does not need other resources */ return result; } if(count > NWS_MAX_REDIRECTS) { SYSERR(SYS_INFO, "Number of redirects is more than allowed of %d redirects", NWS_MAX_REDIRECTS); result = NwsError_ConfigurationFile; return result; } /* get the location */ if((result = nswFindElementGetText(ctx, xpathCtx, xpathLocation, &redirectLoc)) != NwsError_Ok) { return result; } redirects = &(cfg->redirects); memset(redirects, 0, sizeof(NwsCfgRedirects)); redirects->cnt = count; /* get the number of resource element in the configuration file */ for(index = 1; index <= count; index++) { if(*idx >= NWS_MAX_PAGES) { SYSERR(SYS_INFO, "Number of resources and pages is more than allowed of %d pages", NWS_MAX_PAGES); result = NwsError_ConfigurationFile; break; } /* get code */ snprintf(buffer, sizeof(buffer), xpathCode, index); if((result = nswFindElementGetNumber(ctx, xpathCtx, buffer, &redirectCode)) != NwsError_Ok) { return result; } snprintf(buffer, sizeof(buffer), xpathName, index); if((result = nswFindElementGetText(ctx, xpathCtx, buffer, &redirectName)) != NwsError_Ok) { return result; } /* set redirect mount information */ memset(&(mount[*idx]), 0, sizeof(struct lws_http_mount)); mount[*idx].def = redirectName; mount[*idx].origin_protocol = LWSMPRO_FILE; length = snprintf(0, 0, "%s/%s", redirectLoc, redirectName) + 1; tmp = NWSALLOC(ctx, length); snprintf(tmp, length, "%s/%s", redirectLoc, redirectName); mount[*idx].mountpoint = tmp; length = snprintf(0, 0, "%s/%s", ctx->mounts.html, redirectLoc) + 1; tmp = NWSALLOC(ctx, length); snprintf(tmp, length, "%s/%s", ctx->mounts.html, redirectLoc); mount[*idx].origin = tmp; /* set redirects information */ NwsCfgRedirect *redirect = &(redirects->redirect[index-1]); redirect->code = redirectCode; snprintf(redirect->page, NWS_MAX_NAME_LENGTH, "%s/%s", redirectLoc, redirectName); *idx= *idx + 1; } NWSFREE(ctx, redirectLoc, strbuflen(redirectLoc)); return result; } /** @ingroup group_internal * @brief call to parse the specified configuration file * * Parse the specified configuration file, the configuration file format is checked before loading the file. * Source of the file (signatuire) is no longer verified because this function assumed such verification is * already performed before calling this function * * @param[in] pkq Path of the package where to find the configuration file * @param[in] ctx Webserver context, will receive the information about the parsed config file * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to load the configuration file. Check the log for details * @return NwsError_NoConfigurationFile Specified configuration file does not exists. * @return NwsError_Ng General error */ NwsErrors nwsParseConfig(const char* pkg, NwsContextInternal *ctx) { unsigned int idx = 1; //index must start in 1 as index zero is reserved for default page char cfgPath[NWS_MAX_PATH_LENGTH]; struct stat fileStat; NwsConfiguration cfg; xmlDoc *doc = NULL; xmlXPathContextPtr xpathCtx; NwsErrors result = NwsError_Ok; unsigned int index; if( pkg == NULL || ctx == NULL) { SYSERR(SYS_INFO, "Invalid parameters"); return NwsError_Ng; } snprintf(cfgPath, sizeof(cfgPath), "%s/configuration.xml", pkg); /* make sure location and config file exists */ if (stat(pkg, &fileStat) == -1) { SYSERR(SYS_INFO, "Mount directory (%s) does not exists", pkg); return NwsError_NoWebsitePackage; } if (stat(cfgPath, &fileStat) == -1) { SYSERR(SYS_INFO, "Configuration file (%s) not found", cfgPath); return NwsError_NoConfigurationFile; } /* clear the configuration buffer, exclude the version as it is set before the call to this function */ memset(&cfg, 0, sizeof(NwsConfiguration)); cfg.ver.maj = ctx->cfg.ver.maj; cfg.ver.min = ctx->cfg.ver.min; if ((doc = xmlReadFile(cfgPath, NULL, 0)) == NULL) { SYSERR(SYS_INFO, "Unable to load %s file. Maybe a non-well formed xml file.", cfgPath); return NwsError_ConfigurationFile; } do { if((xpathCtx = xmlXPathNewContext(doc)) == NULL) { SYSERR(SYS_INFO, "Unable to create XPATH context for the xml configuration file"); result = NwsError_ConfigurationFile; break; } /* TODO: get all the redirects */ /* set the default page */ if((result = nwsParseDefaultPage(ctx, cfg.pages, xpathCtx)) != NwsError_Ok) { break; } /* get all the language resources */ else if((result = nwsParseLangs(ctx, xpathCtx, cfg.pages, &idx)) != NwsError_Ok) { break; } /* get all the pages */ else if((result = nwsParsePages(ctx, xpathCtx, cfg.pages, &idx)) != NwsError_Ok) { break; } /* get all redirects */ else if((result = nwsParseRedirects(ctx, xpathCtx, &cfg, cfg.pages, &idx)) != NwsError_Ok) { break; } //static NwsErrors nwsParseRedirects(NwsContextInternal *ctx, xmlXPathContextPtr xpathCtx, NwsCfgRedirects *redirects) xmlXPathFreeContext(xpathCtx); } while(0); xmlFreeDoc(doc); xmlCleanupParser(); if(result == NwsError_Ok) { memcpy(&(ctx->cfg), &(cfg), sizeof(NwsConfiguration)); /* link all mounts */ for(index = 1; index < idx; index++) { if(ctx->cfg.pages[index].mountpoint == NULL) { break; } ctx->cfg.pages[index-1].mount_next = &(ctx->cfg.pages[index]); } } else { /* free any resources that already allocated */ for(index = 0; index < NWS_MAX_PAGES; index++) { if(cfg.pages[index].def) { NWSFREE(ctx, cfg.pages[index].def, strbuflen(cfg.pages[index].def)); } if(cfg.pages[index].mountpoint) { NWSFREE(ctx, cfg.pages[index].mountpoint, strbuflen(cfg.pages[index].mountpoint)); } if(cfg.pages[index].origin) { NWSFREE(ctx, cfg.pages[index].origin, strbuflen(cfg.pages[index].origin)); } } idx = 0; } return result; } /** @ingroup group_internal * @brief call to verify the content of the package * * Call this function to verify the content of the website package before deploying to the mount point. * This function will validate the configuration file format and verify any reference file exists in the * specified package. * * @param[in] package Location where to find the package to verify * @return NwsError_Ok Package is valid * @return NwsError_NoConfigurationFile Specified configuration file does not exists. * @return NwsError_NoConfigurationFile No configuration file is found. * @return NwsError_ConfigurationFile Configuration file in the package is invalid. * @return NwsError_OneOrMoreFileMissing One or more referenced file in the config is not found in the package */ NwsErrors nwsConfirmPackageFiles(const char* package) { PARAM_UNUSED(package); return NwsError_Ok; } /** @ingroup group_internal * @brief Deploy the package to the webserver mount point * * Call this function to deploy a package to the webserver mount point. Note that, user needs to verify the package * before calling this function. See other functions of this API group. * * @param[in] package Location where to find the package to deploy * @return NwsError_Ok Package is deployed successfully * @return NwsError_Ng An error occured while deploying the package. See logs for details. */ NwsErrors nwsDeployPackage(const char* package) { PARAM_UNUSED(package); return NwsError_Ok; } /** @ingroup group_internal * @brief Call to confirm if the specified package is supported. * * Get version and checked if the specified package is supported. Note that Webserver * library supports all previous versions. * * @param[in] pkg Location where to check the version. * @param[in] ctx Webserver context, will receive the information about the parsed config file * @return NwsError_Ok Package is supported * @return NwsError_WebsitePackageVersion Package is not supported. * @return NwsError_ConfigurationFile Invalid configuration file * @return NwsError_NoConfigurationFile No configuration package is find * @return NwsError_Ng General error */ NwsErrors nwsPackageConfirmVer(const char* pkg, NwsContextInternal *ctx) { char cfg[NWS_MAX_PATH_LENGTH]; const char *majXpath = "/configuration/version/major/text()"; const char *minXpath = "/configuration/version/minor/text()"; struct stat fileStat; xmlDoc *doc = NULL; xmlXPathContextPtr xpathCtx; NwsErrors result = NwsError_Ok; unsigned int maj, min; LIBXML_TEST_VERSION if( pkg == NULL || ctx == NULL) { SYSERR(SYS_INFO, "Invalid parameters"); return NwsError_Ng; } snprintf(cfg, sizeof(cfg), "%s/configuration.xml", pkg); /* make sure directory and location exist */ if (stat(pkg, &fileStat) == -1) { SYSERR(SYS_INFO, "Mount directory (%s) does not exists", pkg); return NwsError_NoWebsitePackage; } if (stat(cfg, &fileStat) == -1) { SYSERR(SYS_INFO, "Configuration file (%s) not found", cfg); return NwsError_NoConfigurationFile; } /* TODO: add XSD file */ if ((doc = xmlReadFile(cfg, NULL, 0)) == NULL) { SYSERR(SYS_INFO, "Unable to load %s file. Maybe a non-well formed xml file.", cfg); return NwsError_ConfigurationFile; } do { if((xpathCtx = xmlXPathNewContext(doc)) == NULL) { SYSERR(SYS_INFO, "Unable to create XPATH context for the xml configuration file"); result = NwsError_ConfigurationFile; break; } do { /* get the configuration major version number */ if((result = nswFindElementGetNumber(ctx, xpathCtx, majXpath, &maj)) != NwsError_Ok) { break; } /* get the configuration major minor number */ if((result = nswFindElementGetNumber(ctx, xpathCtx, minXpath, &min)) != NwsError_Ok) { break; } } while(0); xmlXPathFreeContext(xpathCtx); } while(0); xmlFreeDoc(doc); xmlCleanupParser(); if(result == NwsError_Ok) { memset(&(ctx->cfg.ver), 0, sizeof(NwsCfgVer)); ctx->cfg.ver.maj = maj; ctx->cfg.ver.min = min; /* configuration version must be equal or less than the current webserver version */ if( maj > NWS_VERSION_MAJOR || ( maj == NWS_VERSION_MAJOR && min > NWS_VERSION_MINOR)) { SYSERR(SYS_INFO, "Configuration v%d.%d not supported.", maj, min); result = NwsError_WebsitePackageVersion; } } return result; } <file_sep># lws minimal ws server raw adopt udp This example demonstrates echoing packets on a UDP socket in lws. A "foreign" UDP socket is created, bound (so it can "listen"), and adopted into lws event loop. It acts like a tcp RAW mode connection in lws and uses the same callbacks. Writing is a bit different for UDP. By default, the system has no idea about the receiver state and so asking for a callback_on_writable() always believes that the socket is writeable... the callback will happen next time around the event loop if there are no pending partials. With UDP, there is no "connection". You need to write with sendto() and direct the packets to a specific destination. You can learn the source of the last packet that arrived at the LWS_CALLBACK_RAW_RX callback by getting a `struct lws_udp *` from `lws_get_udp(wsi)`. To be able to send back to that guy, you should take a copy of the `struct lws_udp *` and use the .sa and .salen members in your sendto(). However the kernel may not accept to buffer / write everything you wanted to send. So you are responsible to watch the result of sendto() and resend the unsent part next time. ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-raw-adopt-udp $ ./lws-minimal-raw-adopt-udp [2018/03/24 08:12:37:8869] USER: LWS minimal raw adopt udp | nc -u 127.0.0.1 7681 [2018/03/24 08:12:37:8870] NOTICE: Creating Vhost 'default' (no listener), 1 protocols, IPv6 off [2018/03/24 08:12:37:8878] USER: LWS_CALLBACK_RAW_ADOPT [2018/03/24 08:12:41:5656] USER: LWS_CALLBACK_RAW_RX (6) [2018/03/24 08:12:41:5656] NOTICE: [2018/03/24 08:12:41:5656] NOTICE: 0000: 68 65 6C 6C 6F 0A hello. [2018/03/24 08:12:41:5656] NOTICE: ``` ``` $ nc -u 127.0.0.1 7681 hello hello ``` <file_sep># lws minimal http server with tls and port 80 redirect ## build ``` $ cmake . && make ``` ## usage Because this listens on low ports (80 + 443), it must be run as root. ``` $ sudo ./lws-minimal-http-server-tls-80 [2018/03/20 13:23:13:0131] USER: LWS minimal http server TLS | visit https://localhost:7681 [2018/03/20 13:23:13:0142] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/03/20 13:23:13:0142] NOTICE: Using SSL mode [2018/03/20 13:23:13:0146] NOTICE: SSL ECDH curve 'prime256v1' [2018/03/20 13:23:13:0146] NOTICE: HTTP2 / ALPN enabled [2018/03/20 13:23:13:0195] NOTICE: lws_tls_client_create_vhost_context: doing cert filepath localhost-100y.cert [2018/03/20 13:23:13:0195] NOTICE: Loaded client cert localhost-100y.cert [2018/03/20 13:23:13:0195] NOTICE: lws_tls_client_create_vhost_context: doing private key filepath [2018/03/20 13:23:13:0196] NOTICE: Loaded client cert private key localhost-100y.key [2018/03/20 13:23:13:0196] NOTICE: created client ssl context for default [2018/03/20 13:23:14:0207] NOTICE: vhost default: cert expiry: 730459d ``` Visit http://localhost This will go first to port 80 using http, where it will be redirected to https and port 443 ``` 07:41:48.596918 IP localhost.http > localhost.52662: Flags [P.], seq 1:100, ack 416, win 350, options [nop,nop,TS val 3906619933 ecr 3906619933], length 99: HTTP: HTTP/1.1 301 Redirect 0x0000: 4500 0097 3f8f 4000 4006 fccf 7f00 0001 E...?.@.@....... 0x0010: 7f00 0001 0050 cdb6 6601 dfa7 922a 4c06 .....P..f....*L. 0x0020: 8018 015e fe8b 0000 0101 080a e8da 4a1d ...^..........J. 0x0030: e8da 4a1d 4854 5450 2f31 2e31 2033 3031 ..J.HTTP/1.1.301 0x0040: 2052 6564 6972 6563 740d 0a6c 6f63 6174 .Redirect..locat 0x0050: 696f 6e3a 2068 7474 7073 3a2f 2f6c 6f63 ion:.https://loc 0x0060: 616c 686f 7374 2f0d 0a63 6f6e 7465 6e74 alhost/..content 0x0070: 2d74 7970 653a 2074 6578 742f 6874 6d6c -type:.text/html 0x0080: 0d0a 636f 6e74 656e 742d 6c65 6e67 7468 ..content-length 0x0090: 3a20 300d 0a0d 0a ``` Because :443 uses a selfsigned certificate, you will have to make an exception for it in your browser. ## Certificate creation The selfsigned certs provided were created with ``` echo -e "GB\nErewhon\nAll around\nlibwebsockets-test\n\nlocalhost\nnone@invalid.org\n" | openssl req -new -newkey rsa:4096 -days 36500 -nodes -x509 -keyout "localhost-100y.key" -out "localhost-100y.cert" ``` they cover "localhost" and last 100 years from 2018-03-20. You can replace them with commercial certificates matching your hostname. ## HTTP/2 If you built lws with `-DLWS_WITH_HTTP2=1` at cmake, this simple server is also http/2 capable out of the box. If the index.html was loaded over http/2, it will display an HTTP 2 png. <file_sep>/** @file noja_webserver_cmn.h * Common header file contains incldue to common and internal declarations * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef _NOJA_WEBSERVER_CMN_H #define _NOJA_WEBSERVER_CMN_H #include "libwebsockets.h" #if !defined(QT_CORE_LIB) #include "dbApi.h" #endif #include "datapointEnum.h" #include "noja_webserver_type.h" #include "noja_webserver_cfg.h" #include "noja_webserver_ver.h" #pragma pack(4) /** @ingroup group_internal * @brief get string length + 1 */ #define strbuflen(x) (strlen((const char *)(x)) + 1) /** @ingroup group_internal * @brief Webserver context internal def */ typedef struct NwsContextInternal_st NwsContextInternal; /** @ingroup group_internal * @brief Webserver config structure */ typedef struct NwsConfiguration_st NwsConfiguration; /** @ingroup group_internal * @brief Webserver version structure */ typedef struct NwsCfgVer_st NwsCfgVer; /** @ingroup group_internal * @brief Webserver languages structure */ typedef struct NwsCfgLangs_st NwsCfgLangs; /** @ingroup group_internal * @brief Webserver language translation structure */ typedef struct NwsCfgLangTrans_st NwsCfgLangTrans; /** @ingroup group_internal * @brief Webserver redirects page structure */ typedef struct NwsCfgRedirects_st NwsCfgRedirects; /** @ingroup group_internal * @brief Webserver redirect page structure */ typedef struct NwsCfgRedirect_st NwsCfgRedirect; /** @ingroup group_internal * @brief Webserver website structure */ typedef struct NwsCfgPages_st NwsCfgPages; /** @ingroup group_internal * @brief Webserver page info */ typedef struct NwsCfgPage_st NwsCfgPage; /** @ingroup group_internal * @brief Webserver mount structure */ typedef struct NwsMounts_st NwsMounts; /** @ingroup group_internal * @brief Webserver version structure * * Define the Webserver Configuration version information */ struct NwsCfgVer_st { /** Version major number */ unsigned char maj; /** Version minor number */ unsigned char min; }; /** @ingroup group_internal * @brief Webserver redirect info structure * * Define the Webserver redirect page */ struct NwsCfgRedirect_st { /* httml code to redirect */ unsigned short code; /* list of language versions */ char page[NWS_MAX_NAME_LENGTH]; }; /** @ingroup group_internal * @brief Webserver redirects page structure * * Define the Webserver redirect pages */ struct NwsCfgRedirects_st { /* specify the number of redirect element */ unsigned char cnt; /* list of language versions */ NwsCfgRedirect redirect[NWS_MAX_REDIRECTS]; }; /** @ingroup group_internal * @brief Webserver page info */ struct NwsCfgPage_st { /* specify the URL of the current page with respect to the root URL */ char url[NWS_MAX_PATH_LENGTH]; /* specify the source path of the page with respect to HTML folder */ char source[NWS_MAX_PATH_LENGTH]; }; /** @ingroup group_internal * @brief Webserver config structure * * Define the Webserver Configuration */ struct NwsConfiguration_st { /** contains the version of this configuration */ NwsCfgVer ver; // * contains information about the availabel strings translation for this website // NwsCfgLangs langs; /** contain the info about the pages to use when redirecting the request */ NwsCfgRedirects redirects; /** contain the info about the website structure */ struct lws_http_mount pages[NWS_MAX_PAGES]; }; /** @ingroup group_internal * @brief Webserver mount structure * * Define the Webserver mount folder */ struct NwsMounts_st { /** website root folder */ char html[NWS_MAX_PATH_LENGTH]; /** built-ins resources folder */ char builtins[NWS_MAX_PATH_LENGTH]; /** webserver website staging area */ char staging[NWS_MAX_PATH_LENGTH]; }; /** @ingroup group_internal * @brief Webserver context internal def * * Redefinition of context type, for iternal use ronly */ struct NwsContextInternal_st { /** HTTP port */ NwsHttpPort port; /* Libwebsocket service interval */ NwsTimeIntervalMS srvcInt; /* Libwebsocket ping-pong interval */ NwsTimeIntervalS ppInt; /** mount directory */ NwsMounts mounts; /** webserver configuration */ NwsConfiguration cfg; /** List of supported protocol and subprotocols */ struct lws_protocols prot[NWS_MAX_PROTOCOLS]; /* Libwebsockets context handle */ struct lws_context* cntx; /* total memory allocation for this context */ unsigned int memAllocCnt; /* total size of memory allocation for this context */ unsigned int memAllocSize; /* highest size of memory allocation for this context */ unsigned int memHighSize; }; #pragma pack() #if defined(QT_CORE_LIB) #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #if defined(SYS_INFO) #undef SYS_INFO #endif #if defined(SYSERR) #undef SYSERR #endif #define SYS_INFO 0 #define SYSERR(x, ...) { fprintf(stdout, __VA_ARGS__); fflush(stdout); } #endif #define PARAM_UNUSED(x) ((void)(x)) #endif <file_sep>/** @file rwsp.c * Relay WebSockets Protocol implementation * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #include <stdio.h> #include "rwsp.h" #include "noja_webserver_cmn.h" /** @ingroup group_prot_apis * @brief Call to register the subprotocol to Relay WebSockets Protocol * * Call this API to register a subprotocol to the Relay WebSockets Protocol. Once registered, a WebSockets communication * channel can be created by a remote client to use for sending and receiving the subprotocol messages. * * @param[in] name Specify the string name of the subprotocol. This name will be use to channel the request to the correct subprotocols and * must be unique. Remote client will use this name to connect the Websocket to this protocol. The name must be null terminated and will not be * freed by the webserver after using. * @param[in] rcvdCb This callback is called by the Relay WebSockets Protocol to forward received message to the subprotocol. If NULL, will use the * default handler (see rwspRcvdCbDef function). * @param[in] encCb This callback is called by the Relay WebSockets Protocol to encode the subprotocol message in JSON format before sending to * the remote client(s). If not specified, the default handler will be use (see rwspEncCb function). * @param[in] decCb This callback is called by the Relay WebSockets Protocol to convert the JSON message into the subprotocol message format. * If not specified, the default handler will be use (see rwspDecCbDef function). * * @return RwspError_Ok if no error occured * @return RwspError_Name if the specified subprotocol name already exists * @return RwspError_Ng General error occured */ RwspErrors rwspReg(const char* name, RwspRcvdCb rcvdCb, RwspEncCb encCb, RwspDecCb decCb) { PARAM_UNUSED(name); PARAM_UNUSED(rcvdCb); PARAM_UNUSED(encCb); PARAM_UNUSED(decCb); return RwspError_Ok; } /** @ingroup group_prot_apis * @brief Call to transmit message to the remote client. * * Transmit the message to the communication channel of the specified connection context. This function will convert the message into * JSON format using the RwspEncCb function before sending the data. Calling this function may not transmit the message immediately but * the message will be transmit as soon as possible. * * @param[in] context Defines the attribute of the communication channels the message will be sent. Relay WebSockets Protocol implementation * uses this to determine which connection to use to transmit the message. * @param[in] data Buffer to the data to send. The Relay WebSockets Protocol implementation will not free this buffer but must be available * as long as this function is running. * @param[in] size Specifyt the size of the data pointed by data buffer. * * @return RwspError_Ok if no error occured * @return RwspError_InvalidContext the specified context is either invalid or the channel is already disconnected * @return RwspError_Timeout The client didn't confirm the reception of the message and the Relay WebSockets Protocol giveup * waiting for confirmation. * @return RwspError_Ng General error occured */ RwspErrors rwspSnd(RwspCtx *context, RwspData data, RwspDataSize size) { PARAM_UNUSED(context); PARAM_UNUSED(data); PARAM_UNUSED(size); return RwspError_Ok; } /** @ingroup group_prot_apis * @brief Call to transmit message to all remote clients. * * This function will transmit the message all communication channel under this subprotocol that are currently active. * This function will convert the message into JSON format using the RwspEncCb function before sending the data. The message may not be * transmitted immediately and at the same time. The broadcast message will be transmitted as soon as possible but dependent on each active * channel. * * @param[in] data Buffer to the data to send. The Relay WebSockets Protocol implementation will not free this buffer but must be available * as long as this function is running. * @param[in] size Specifyt the size of the data pointed by data buffer. * * @return RwspError_Ok If no error occured * @return RwspError_NoConnection No active connection is present for this subprotocol. * @return RwspError_Ng General error occured */ RwspErrors rwspBcast(RwspData data, RwspDataSize size) { PARAM_UNUSED(data); PARAM_UNUSED(size); return RwspError_Ok; } /** @ingroup group_prot_apis * @brief Relay WebSockets Protocol message reception callback function * * Default handler for message received. This function will alwats return NwsError_Ok and will * do nothing to the data received * * @param[in] context Defines the attribute of the communication channel where the message was recieved. * @param[in] data Buffer to the data to send. This buffer is returned by the decode callback function it is assumed * the subprotocol will free this buffer if required. * @param[in] size Specify the size of the data pointed by data buffer. * * @return NwsError_Ok if no error occured * @return NwsError_Ng General error occured */ RwspErrors rwspRcvdCbDef(RwspCtx *context, RwspData data, RwspDataSize size) { PARAM_UNUSED(context); PARAM_UNUSED(data); PARAM_UNUSED(size); return RwspError_Ok; } /** @ingroup group_prot_apis * @brief Convert the subprotocol data into JSON compatible string data * * Default handler for converting the subprotocol specific data into JSON string. This handler will convert * the stream into base64 format. * * @param[in] buffer Buffer to the byte stream to convert. * @param[in] size Specify the size of the data pointed by buffer * @param[out] content Converted data in CJSON library JSON object. See https://github.com/DaveGamble/cJSON for details. * of CJSON library. This resource will be freed by the Relay WebSockets Protocol implementation using the CJSON * cJSON_Delete function. * @param[out] contentType Specify the type of the encoded data. * * @return NwsError_Ok if no error occured * @return NwsError_Ng General error occured */ RwspErrors rwspEncCbDef(RwspData buffer, RwspDataSize size, cJSON **content, RwspContentTypes *contentType) { PARAM_UNUSED(buffer); PARAM_UNUSED(size); PARAM_UNUSED(content); PARAM_UNUSED(contentType); return RwspError_Ok; } /** @ingroup group_prot_apis * @brief Convert the JSON string data into the subprotocol format. * * Default handler for converting the JSON object into subprotocol specific data. This handler will convert * octet-stream into byte stream and text into null terminated string. Other content-types are not supported. * * @param[in] json Pointer to the cJSON library JSON object. See https://github.com/DaveGamble/cJSON for details. This function * will not free this object. * @param[in] contentType Specify the content type of the JSON object. * @param[out] buffer Buffer to the byte stream to convert. This buffer will be send to the subprotocol for handling and * assumed the subprotocol will handle any freeing needed for this buffer. * @param[out] size Specify the size of the data pointed by buffer. * * @return RwspError_Ok if no error occured * @return RwspError_Ng General error occured */ RwspErrors rwspDecCbDef(cJSON *json, RwspContentTypes contentType, RwspData *buffer, RwspDataSize *size) { PARAM_UNUSED(json); PARAM_UNUSED(contentType); PARAM_UNUSED(buffer); PARAM_UNUSED(size); return RwspError_Ok; } <file_sep># lws minimal ws server raw adopt tcp This example is only meaningful if you are integrating lws in another app which generates its own connected sockets. In some cases you may want lws to "adopt" the socket. (If you simply want a connected client raw socket using lws alone, you can just use lws_client_connect_via_info() with info.method = "RAW". http-client/minimal-http-client shows how to do that, just set info.method to "RAW".) This example demonstrates how to adopt a foreign, connected socket into lws as a raw wsi, bound to a specific lws protocol. The example connects a socket itself to libwebsockets.org:80, and then has lws adopt it as a raw wsi. The lws protocol writes "GET / HTTP/1.1" to the socket and hexdumps what was sent back. The socket won't close until the server side times it out, since it's a raw socket that doesn't understand it's looking at http. ## build ``` $ cmake . && make ``` ## usage ``` $ ./lws-minimal-raw-adopt-tcp [2018/03/23 09:03:57:1960] USER: LWS minimal raw adopt tcp [2018/03/23 09:03:57:1961] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off [2018/03/23 09:03:57:2079] USER: Starting connect... [2018/03/23 09:03:57:4963] USER: Connected... [2018/03/23 09:03:57:4963] USER: LWS_CALLBACK_RAW_ADOPT [2018/03/23 09:03:57:7842] USER: LWS_CALLBACK_RAW_RX (186) [2018/03/23 09:03:57:7842] NOTICE: [2018/03/23 09:03:57:7842] NOTICE: 0000: 48 54 54 50 2F 31 2E 31 20 33 30 31 20 52 65 64 HTTP/1.1 301 Red [2018/03/23 09:03:57:7842] NOTICE: 0010: 69 72 65 63 74 0D 0A 73 65 72 76 65 72 3A 20 6C irect..server: l [2018/03/23 09:03:57:7842] NOTICE: 0020: 77 73 77 73 0D 0A 53 74 72 69 63 74 2D 54 72 61 wsws..Strict-Tra [2018/03/23 09:03:57:7843] NOTICE: 0030: 6E 73 70 6F 72 74 2D 53 65 63 75 72 69 74 79 3A nsport-Security: [2018/03/23 09:03:57:7843] NOTICE: 0040: 20 6D 61 78 2D 61 67 65 3D 31 35 37 36 38 30 30 max-age=1576800 [2018/03/23 09:03:57:7843] NOTICE: 0050: 30 20 3B 20 69 6E 63 6C 75 64 65 53 75 62 44 6F 0 ; includeSubDo [2018/03/23 09:03:57:7843] NOTICE: 0060: 6D 61 69 6E 73 0D 0A 6C 6F 63 61 74 69 6F 6E 3A mains..location: [2018/03/23 09:03:57:7843] NOTICE: 0070: 20 68 74 74 70 73 3A 2F 2F 6C 69 62 77 65 62 73 https://libwebs [2018/03/23 09:03:57:7843] NOTICE: 0080: 6F 63 6B 65 74 73 2E 6F 72 67 0D 0A 63 6F 6E 74 ockets.org..cont [2018/03/23 09:03:57:7843] NOTICE: 0090: 65 6E 74 2D 74 79 70 65 3A 20 74 65 78 74 2F 68 ent-type: text/h [2018/03/23 09:03:57:7843] NOTICE: 00A0: 74 6D 6C 0D 0A 63 6F 6E 74 65 6E 74 2D 6C 65 6E tml..content-len [2018/03/23 09:03:57:7843] NOTICE: 00B0: 67 74 68 3A 20 30 0D 0A 0D 0A gth: 0.... [2018/03/23 09:03:57:7843] NOTICE: [2018/03/23 09:04:03:3627] USER: LWS_CALLBACK_RAW_CLOSE ``` Note the example does everything itself, after 5s idle the remote server closes the connection after which the example continues until you ^C it. <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/asn1.h> """ TYPES = """ typedef int... time_t; typedef ... ASN1_INTEGER; struct asn1_string_st { int length; int type; unsigned char *data; long flags; }; typedef struct asn1_string_st ASN1_OCTET_STRING; typedef struct asn1_string_st ASN1_IA5STRING; typedef struct asn1_string_st ASN1_BIT_STRING; typedef struct asn1_string_st ASN1_TIME; typedef ... ASN1_OBJECT; typedef struct asn1_string_st ASN1_STRING; typedef struct asn1_string_st ASN1_UTF8STRING; typedef ... ASN1_TYPE; typedef ... ASN1_GENERALIZEDTIME; typedef ... ASN1_ENUMERATED; typedef ... ASN1_NULL; static const int V_ASN1_GENERALIZEDTIME; static const int MBSTRING_UTF8; """ FUNCTIONS = """ void ASN1_OBJECT_free(ASN1_OBJECT *); /* ASN1 STRING */ unsigned char *ASN1_STRING_data(ASN1_STRING *); int ASN1_STRING_set(ASN1_STRING *, const void *, int); /* ASN1 OCTET STRING */ ASN1_OCTET_STRING *ASN1_OCTET_STRING_new(void); void ASN1_OCTET_STRING_free(ASN1_OCTET_STRING *); int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *, const unsigned char *, int); /* ASN1 IA5STRING */ ASN1_IA5STRING *ASN1_IA5STRING_new(void); /* ASN1 INTEGER */ void ASN1_INTEGER_free(ASN1_INTEGER *); int ASN1_INTEGER_set(ASN1_INTEGER *, long); /* ASN1 TIME */ ASN1_TIME *ASN1_TIME_new(void); void ASN1_TIME_free(ASN1_TIME *); ASN1_TIME *ASN1_TIME_set(ASN1_TIME *, time_t); int ASN1_TIME_set_string(ASN1_TIME *, const char *); /* ASN1 GENERALIZEDTIME */ ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *, time_t); void ASN1_GENERALIZEDTIME_free(ASN1_GENERALIZEDTIME *); /* ASN1 ENUMERATED */ ASN1_ENUMERATED *ASN1_ENUMERATED_new(void); void ASN1_ENUMERATED_free(ASN1_ENUMERATED *); int ASN1_ENUMERATED_set(ASN1_ENUMERATED *, long); int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *, int, int); /* These became const ASN1_* in 1.1.0 */ int ASN1_STRING_type(ASN1_STRING *); int ASN1_STRING_to_UTF8(unsigned char **, ASN1_STRING *); long ASN1_ENUMERATED_get(ASN1_ENUMERATED *); int i2a_ASN1_INTEGER(BIO *, ASN1_INTEGER *); /* This became const ASN1_TIME in 1.1.0f */ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *, ASN1_GENERALIZEDTIME **); ASN1_UTF8STRING *ASN1_UTF8STRING_new(void); void ASN1_UTF8STRING_free(ASN1_UTF8STRING *); ASN1_BIT_STRING *ASN1_BIT_STRING_new(void); void ASN1_BIT_STRING_free(ASN1_BIT_STRING *); /* This is not a macro, but is const on some versions of OpenSSL */ int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *, int); int ASN1_STRING_length(ASN1_STRING *); int ASN1_STRING_set_default_mask_asc(char *); BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *, BIGNUM *); ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *, ASN1_INTEGER *); int i2d_ASN1_TYPE(ASN1_TYPE *, unsigned char **); ASN1_TYPE *d2i_ASN1_TYPE(ASN1_TYPE **, const unsigned char **, long); ASN1_NULL *ASN1_NULL_new(void); """ CUSTOMIZATIONS = """ """ <file_sep>/** @file noja_webserver_mem.h * Simple memory managment module header file * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef NOJA_WEBSERVER_MEM_H #define NOJA_WEBSERVER_MEM_H #include "noja_webserver_cmn.h" #if defined(NWS_MEMORY_ALLOC_DBG) #define NWSALLOC(x, y) nwsAlloc((x), (y), __FUNCTION__, __LINE__) #define NWSFREE(x, y, z) nwsFree((x), (void*)(y), (z), __FUNCTION__, __LINE__) #else #define NWSALLOC(x, y) nwsAlloc((x), (y)) #define NWSFREE(x, y, z) nwsFree((x), (void*)(y), (z)) #endif /** @ingroup group_internal * @brief allocate heap memory * * This function allocate a specified heap size * * @param[in] ctx Webserver context that requested the allocated memory * @param[in] size Size of meomory to allocate * @return Pointer to the allocated memory, NULL if failed */ extern void* nwsAlloc(NwsContextInternal *ctx, unsigned int size #if defined(NWS_MEMORY_ALLOC_DBG) , const char *function, unsigned int line #endif ); /** @ingroup group_internal * @brief free allocated heap memory * * This function free an allocated memory * * @param[in] ctx Webserver context that requested the allocated memory * @param[in] buf pointer to the memory to free * @param[in] size Size of meomory to free */ extern void nwsFree(NwsContextInternal *ctx, void* buf, unsigned int size #if defined(NWS_MEMORY_ALLOC_DBG) , const char *function, unsigned int line #endif ); #endif <file_sep>## Information for new event lib implementers ### Introduction By default lws has built-in support for POSIX poll() as the event loop. However either to get access to epoll() or other platform specific better poll waits, or to integrate with existing applications already using a specific event loop, it can be desirable for lws to use another external event library, like libuv, libevent or libev. ### Code placement The code specific to the event library should live in `./lib/event-libs/**lib name**` ### Allowing control over enabling event libs All event libs should add a cmake define `LWS_WITH_**lib name**` and make its build dependent on it in CMakeLists.txt. Export the cmakedefine in `./cmake/lws_config.h.in` as well so user builds can understand if the event lib is available in the lws build it is trying to bind to. If the event lib is disabled in cmake, nothing in its directory is built or referenced. ### Event loop ops struct The event lib support is defined by `struct lws_event_loop_ops` in `lib/event-libs/private-lib-event-libs.h`, each event lib support instantiates one of these and fills in the appropriate ops callbacks to perform its job. By convention that lives in `./lib/event-libs/**lib name**/**lib_name**.c`. ### Private event lib declarations Truly private declarations for the event lib can go in the event-libs directory as you like. However when the declarations must be accessible to other things in lws build, eg, the event lib support adds members to `struct lws` when enabled, they should be in the event lib support directory in a file `private-lib-event-libs-myeventlib.h`. Search for "bring in event libs private declarations" in `./lib/core/private-lib-core.h and add your private event lib support file there following the style used for the other event libs, eg, ``` #if defined(LWS_WITH_LIBUV) #include "event-libs/libuv/private-lib-event-libs-libuv.h" #endif ``` If the event lib support is disabled at cmake, nothing from its private.h should be used anywhere. ### Integrating event lib assets to lws If your event lib needs special storage in lws objects, that's no problem. But to keep things sane, there are some rules. - declare a "container struct" in your private.h for everything, eg, the libuv event lib support need to add its own assets in the perthread struct, it declares in its private.h ``` struct lws_pt_eventlibs_libuv { uv_loop_t *io_loop; uv_signal_t signals[8]; uv_timer_t timeout_watcher; uv_timer_t hrtimer; uv_idle_t idle; }; ``` - add your event lib content in one place in the related lws struct, protected by `#if defined(LWS_WITH_**lib name**)`, eg, again for LWS_WITH_LIBUV ``` struct lws_context_per_thread { ... #if defined(LWS_WITH_LIBUV) struct lws_pt_eventlibs_libuv uv; #endif ... ``` ### Adding to lws available event libs list Edit the NULL-terminated array `available_event_libs` at the top of `./lib/context.c` to include a pointer to your new event lib support's ops struct, following the style already there. ``` const struct lws_event_loop_ops *available_event_libs[] = { #if defined(LWS_WITH_POLL) &event_loop_ops_poll, #endif #if defined(LWS_WITH_LIBUV) &event_loop_ops_uv, #endif ... ``` This is used to provide a list of avilable configured backends. ### Enabling event lib adoption You need to add a `LWS_SERVER_OPTION...` flag as necessary in `./lib/libwebsockets.h` `enum lws_context_options`, and follow the existing code in `lws_create_context()` to convert the flag into binding your ops struct to the context. ### Implementation of the event lib bindings Study eg libuv implementation, using the available ops in the struct lws_event_loop_ops as a guide. ### Destruction Ending the event loop is generally a bit tricky, because if the event loop is internal to the lws context, you cannot destroy it while the event loop is running. Don't add special exports... we tried that, it's a huge mess. The same user code should be able work with any of the event loops including poll. The solution we found was hide the different processing necessary for the different cases in lws_destroy_context(). To help with that there are ops available at two different places in the context destroy processing. <file_sep># This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import os import pytest from cryptography.hazmat.backends.interfaces import HMACBackend from .utils import generate_kbkdf_counter_mode_test from ...utils import load_nist_kbkdf_vectors @pytest.mark.requires_backend_interface(interface=HMACBackend) class TestCounterKDFCounterMode(object): test_HKDFSHA1 = generate_kbkdf_counter_mode_test( load_nist_kbkdf_vectors, os.path.join("KDF"), ["nist-800-108-KBKDF-CTR.txt"] ) <file_sep># lws minimal ws client + permessage-deflate echo This example opens a ws client connection to localhost:7681 and echoes back anything that comes from the server. You can use it for testing lws against Autobahn. ## build ``` $ cmake . && make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -p port|Port to connect to -u url|URL path part to connect to -o|Finish after one connection --ssl|Open client connection with ssl -i <iface>|Bind the client connection to interface iface ``` $ ./lws-minimal-ws-client-echo [2018/04/22 20:03:50:2343] USER: LWS minimal ws client echo + permessage-deflate + multifragment bulk message [2018/04/22 20:03:50:2344] USER: lws-minimal-ws-client-echo [-n (no exts)] [-u url] [-o (once)] [2018/04/22 20:03:50:2344] USER: options 0 [2018/04/22 20:03:50:2345] NOTICE: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off [2018/04/22 20:03:51:2356] USER: connecting to localhost:9001//runCase?case=362&agent=libwebsockets [2018/04/22 20:03:51:2385] NOTICE: checking client ext permessage-deflate [2018/04/22 20:03:51:2386] NOTICE: instantiating client ext permessage-deflate [2018/04/22 20:03:51:2386] USER: LWS_CALLBACK_CLIENT_ESTABLISHED ... ``` <file_sep>/** @file noja_webserver_pkg.h * Contains package handling headers * * @version "$" */ /* * LIMITATIONS * * This document is copyright © NOJA Power Switchgear Pty Ltd 2020. It contains * confidential intellectual property that belongs to NOJA Power Switchgear Pty * Ltd. It does NOT invest any rights to that intellectual property in the * recipient. * * This document is provided solely for limited use by the recipient, who is * NOT permitted in any way to copy, or to disclose to any other party, any * part of the contents of this document directly or indirectly without the * express written permission of NOJA Power Switchgear Pty Ltd. */ #ifndef NOJA_WEBSERVER_PKG_H #define NOJA_WEBSERVER_PKG_H #include "noja_webserver_cmn.h" /** @ingroup group_internal * @brief call to parse the specified configuration file * * Parse the specified configuration file, the configuration file format is checked before loading the file. * Source of the file (signatuire) is no longer verified because this function assumed such verification is * already performed before calling this function * * @param[in] pkq Path of the package where to find the configuration file * @param[in] ctx Webserver context, will receive the information about the parsed config file * @return NwsError_Ok if no error occured * @return NwsError_ConfigurationFile Failed to load the configuration file. Check the log for details * @return NwsError_NoConfigurationFile Specified configuration file does not exists. * @return NwsError_Ng General error */ NwsErrors nwsParseConfig(const char* pkg, NwsContextInternal *ctx); /** @ingroup group_internal * @brief call to verify the content of the package * * Call this function to verify the content of the website package before deploying to the mount point. * This function will validate the configuration file format and verify any reference file exists in the * specified package. * * @param[in] package Location where to find the package to verify * @return NwsError_Ok Package is valid * @return NwsError_NoConfigurationFile Specified configuration file does not exists. * @return NwsError_NoConfigurationFile No configuration file is found. * @return NwsError_ConfigurationFile Configuration file in the package is invalid. * @return NwsError_OneOrMoreFileMissing One or more referenced file in the config is not found in the package */ NwsErrors nwsConfirmPackageFiles(const char* package); /** @ingroup group_internal * @brief Deploy the package to the webserver mount point * * Call this function to deploy a package to the webserver mount point. Note that, user needs to verify the package * before calling this function. See other functions of this API group. * * @param[in] package Location where to find the package to deploy * @return NwsError_Ok Package is deployed successfully * @return NwsError_Ng An error occured while deploying the package. See logs for details. */ NwsErrors nwsDeployPackage(const char* package); /** @ingroup group_internal * @brief Call to confirm if the specified package is supported. * * Get version and checked if the specified package is supported. Note that Webserver * library supports all previous versions. * * @param[in] pkg Location where to check the version. * @param[in] ctx Webserver context, will receive the information about the parsed config file * @return NwsError_Ok Package is supported * @return NwsError_WebsitePackageVersion Package is not supported. * @return NwsError_NoConfigurationFile No configuration package is find * @return NwsError_Ng General error */ NwsErrors nwsPackageConfirmVer(const char* pkg, NwsContextInternal *ctx); // * @ingroup group_internal // * @brief Call to load the specified configuration file into the webserver // * // * This function will load specified the into the webserver. // * // * @param[in] ctx Webserver contenxt // * @param[in] mount Libwebsocket mount configurations buffer // * @return NwsError_Ok Package is supported // * @return NwsError_WebsitePackageVersion Package is not supported. // * @return NwsError_Ng General error occured // NwsErrors nwsPackageLoad(NwsContextInternal *ctx, struct lws_http_mount *mount); #endif <file_sep>INCLUDE(CMakeForceCompiler) # this one is important SET(CMAKE_SYSTEM_NAME Linux) #this one not so much SET(CMAKE_SYSTEM_VERSION 1) # specify the cross compiler SET(CMAKE_C_COMPILER gcc) SET(CMAKE_CXX_COMPILER g++) # specify the OPENSSL link and build information for host mode instead of calling the stupid find_package(OpenSSL, required) function in CMakelist. # Compiler flags # The usual SET(CMAKE_C_FLAGS "flags") and SET(CMAKE_CXX_FLAGS "flags") doesn't # work so we go for the brutal add_definitions() to set both add_definitions("-g -O0 -pipe -fno-common -fno-builtin -DHOST -Dlinux -D__linux__ -Dunix -DDEBUG -Wall -Wno-unused-variable") # Linker flags # Not required for host build: # CMAKE_C_LINK_FLAGS, CMAKE_CXX_LINK_FLAGS, CMAKE_EXE_LINKER_FLAGS # where is the target environment # search for programs in the build host directories # for libraries and headers in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(BUILD_STATIC_TARGET true) # Modify CMakeLists.txt as follows: # SET(FORTE_BootfileLocation ${NOJA_BOOTFILE_LOCATION} CACHE STRING "Path to the bootfile, if same directory as forte executable leave empty, include trailing '/'!") # Remove the -DWEBSOCKETS_LITTLE_ENDIAN from src/arch/posix/CMakeLists.txt add_definitions("-DCJSON_LITTLE_ENDIAN") <file_sep>INCLUDE(CMakeForceCompiler) SET(CMAKE_C_STANDARD 99) SET(CMAKE_SYSTEM_NAME Windows) SET(LWS_WITHOUT_TESTAPPS ON) SET(LWS_WITHOUT_TEST_SERVER ON) SET(LWS_WITHOUT_TEST_SERVER_EXTPOLL ON) SET(LWS_WITHOUT_TEST_PING ON) SET(LWS_WITHOUT_TEST_CLIENT ON) # search for programs in the build host directories # for libraries and headers in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(BUILD_STATIC_TARGET true) <file_sep># lws minimal ws server timer This is designed to confirm long term stability of ws timers on a particular platform. ## build ``` $ cmake . && make ``` ## Commandline Options Option|Meaning ---|--- -d|Set logging verbosity -s|Serve using TLS selfsigned cert (ie, connect to it with https://...) -h|Strict Host: header checking against vhost name (localhost) and port -v|Connection validity use 3s / 10s instead of default 5m / 5m10s ## usage ``` $ ./lws-minimal-ws-server-timer [2018/03/04 09:30:02:7986] USER: LWS minimal ws server | visit http://localhost:7681 [2018/03/04 09:30:02:7986] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 on ``` Visit http://localhost:7681 and the browser will connect back to the test server, you'll see ESTABLISHED logged. That triggers a TIMER event at 20s intervals which sets the wsi timeout to 60s. It should just stay like that forever doing the TIMER events at 20s intervals and not sending any traffic either way. <file_sep>#!/bin/bash build_name=mingw build_os=`/usr/bin/uname` clean=0 platform_x64=0 build_dependencies=0 build_config=release qt_ver=5.6 qt_make_spec=win32-g++ function print_help { cat << EOF Shell script for building Webserver test application. Usage: $0 [options] Options: -x Build for 64-bit platform, otherwise 32-bit\ -l Build all dependencies. Dependencies are install to system -c Clean before build -d Debug build -h Print this usage information Example: # Build using release config $ $0 # Clean and build all dependecies $ $0 -lc # Clean output before building $ $0 -c # Build debug $ $0 -d # Print usage information. $ $0 -h EOF } #------------------------------------------------------- # Configure using CMAKE and then build #------------------------------------------------------- function build-cmake { intermediate_path=$build_path/$1 source_path=$lib3p_path/$1 mkdir -p "$install_path" mkdir -p "$intermediate_path" cd "${intermediate_path}" echo "[`date "+%Y/%m/%d %H:%M:%S"`] Configuring $1, this may take few minutes..." | tee -a $log echo "$cmake" -G "$generator" -DCMAKE_TOOLCHAIN_FILE="$source_path/toolchain-${build_name}.cmake" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" --config $build_config -DCMAKE_INSTALL_PREFIX="$install_path" ${@:2} "$source_path"| tee -a $log "$cmake" -G "$generator" -DCMAKE_TOOLCHAIN_FILE="$source_path/toolchain-${build_name}.cmake" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" --config $build_config -DCMAKE_INSTALL_PREFIX="$install_path" ${@:2} "$source_path"| tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to configure the library $1!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Configuring $1... Done!" | tee -a $log if [ $clean -eq 1 ]; then echo "`date "+%Y/%m/%d %H:%M:%S"`] Cleaning $1..." | tee -a $log $makebin clean | tee -a $log echo "`date "+%Y/%m/%d %H:%M:%S"`] Cleaning $1... Done!" | tee -a $log fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Building $1, this may take few minutes..." | tee -a $log $makebin | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to build the library $1!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Building $1... Done!" | tee -a $log echo "[`date "+%Y/%m/%d %H:%M:%S"`] Installing $1, this may take few minutes..." | tee -a $log $makebin install | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to install the library $1!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Installing $1... Done!" | tee -a $log } #------------------------------------------------------- # Configure using "Configuration" script and then build #------------------------------------------------------- function build-config { source_path=$lib3p_path/$1 intermediate_path=$build_path/$1 if [ $1 == "openssl" ]; then # No need to install the OpenSSL manpages install_method=install_sw build_method=build_libs compiler_str=mingw else install_method=install build_method=all compiler_str= fi mkdir -p "$intermediate_path" cd $source_path echo "[`date "+%Y/%m/%d %H:%M:%S"`] Configuring $1, this may take few minutes..." | tee -a $log echo ./$2 $compiler_str --prefix=$install_path ${@:3} | tee -a $log ./$2 $compiler_str --prefix=$install_path ${@:3} | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to configure the library $1!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Configuring $1... Done!" | tee -a $log if [ $clean -eq 1 ]; then echo "`date "+%Y/%m/%d %H:%M:%S"`] Cleaning $1..." | tee -a $log $makebin clean | tee -a $log echo "`date "+%Y/%m/%d %H:%M:%S"`] Cleaning $1... Done!" | tee -a $log fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Building $1, this may take few minutes..." | tee -a $log $makebin | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to build the library $1!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Building $1... Done!" | tee -a $log echo "[`date "+%Y/%m/%d %H:%M:%S"`] Installing $1, this may take few minutes..." | tee -a $log $makebin $install_method | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to install the library $1!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Installing $1... Done!" | tee -a $log } #-------------------------------- # Build all libwebserver dependencies #-------------------------------- function build-all-dependencies { build-cmake libcjson build-cmake zlib-1.2.11 build-config openssl Configure no-shared no-asm no-hw no-engine no-dso no-dynamic-engine --openssldir="$install_path" -DOPENSSL_USE_IPV6=0 -DOPENSSL_NO_ENGINE build-config libxml2-2.9.10 configure --host=$triplet_host --with-zlib=$install_path --disable-shared --enable-shared=no --enable-static=yes --disable-dependency-tracking --without-python LIBS=-lws2_32 build-cmake libwebsockets -DLWS_WITHOUT_TESTAPPS=ON -DLWS_WITHOUT_TEST_SERVER=ON -DLWS_WITHOUT_TEST_SERVER_EXTPOLL=ON -DLWS_WITHOUT_TEST_PING=ON -DLWS_WITHOUT_TEST_CLIENT=ON } #-------------------------------- # Entry point (a.k.a the main function) #-------------------------------- # parse script parameters while getopts "cxldh" opt do case "${opt}" in c) clean=1 ;; x) platform_x64=1 echo "WARNING: 64-bit build is currently not implemented!" ;; l) build_dependencies=1 ;; d) build_config=debug ;; h) print_help exit 0;; *) echo "ERROR: $0 doesn't expect any argument!" print_help exit -1;; esac done # setup based from platform if [ "${build_os:0:6}" == "CYGWIN" ] || [ "${build_os:0:5}" == "MINGW" ]|| [ "${build_os:0:4}" == "MSYS" ]; then # Windows build requires cygwin or msys echo "Building in "${build_os}" using MINGW compiler tools..." build_name=mingw generator="MSYS Makefiles" if [ "${build_os:0:6}" == "CYGWIN" ]; then webserver_path=`pwd` cd $webserver_path/../.. rc20_path=`pwd` compiler_path=c:/mingw/bin cmake_path="c:/Program Files (x86)/CMake/bin" # unable to mount the program files to fstab webserver_path=c:${webserver_path:11} rc20_path=c:${rc20_path:11} else # NOTE: The following needs to be mounted # Dir Mount # <install path>/msys64/mingw32 /mingw32 ntfs binary 0 0 # <install path>/msys64/mingw64 /mingw64 ntfs binary 0 0 # <install path>/rc20-user /rc20 ntfs binary 0 0 # <install path>/rc20-user/user/libwebserver /nws ntfs binary 0 0 mount --all webserver_path=/nws rc20_path=/rc20 if [ $platform_x64 -ne 0 ]; then mingw_path=/mingw64 else mingw_path=/mingw32 fi compiler_path=$mingw_path/bin cmake_path=/mingw64/bin # deploy all dependecies to this path install_path=$mingw_path # check mounted directories if [ ! -d "$rc20_path" ]; then echo "ERROR: RC20 $rc20_path is not mounted!" exit -1 fi if [ ! -d "$webserver_path" ]; then echo "ERROR: Webserver $webserver_path is not mounted!" exit -1 fi if [ ! -d "$compiler_path" ]; then echo "ERROR: Compiler $compiler_path is not mounted!" exit -1 fi fi # determine the target host if [ $platform_x64 -ne 0 ]; then triplet_host=x86_64-w64-mingw32 else triplet_host=i686-w64-mingw32 fi # Setup compiler tools cc_bin=$compiler_path/gcc.exe cxx_bin=$compiler_path/g++.exe makebin=$compiler_path/mingw32-make.exe cmake=$cmake_path/cmake.exe perl=/usr/bin/perl export PATH=$compiler_path:/usr/bin:$PATH export CC=$cc_bin export CXX=$cxx_bin export MAKE=$makebin export RANLIB=$compiler_path/ranlib # only support QT MINGW 32-bit. If you have 64-bit then revised this script to support qt_bin=/c/Qt/$qt_ver/mingw49_32/bin elif [ "${BUILD_OS}" == "Darwin" ]; then #MAC, IOS is cross-build echo "ERROR: ${build_os} is not implemented!" exit -1 elif [ "${BUILD_OS}" == "Linux" ]; then #Linux, Android is cross-build echo "ERROR: ${build_os} is not implemented!" exit -1 else echo "ERROR: ${build_os} is not supported!" exit -1 fi # Check required tools if [ -z "$cmake" ]; then echo "ERROR: cmake is not specified." exit -1 fi if [ ! -f "$cmake" ]; then echo "ERROR: $cmake doesn't exists! Please install the required CMAKE." exit -1 fi if [ -z "$makebin" ]; then echo "ERROR: makebin is not specified." exit -1 fi if [ ! -f "$makebin" ]; then echo "ERROR: ${makebin} doesn't exists! Please install the appropriate build tools" exit -1 fi if [ ! -f "$perl" ]; then echo "ERROR: $perl doesn't exists! Please install PERL to build OpenSSL" exit -1 fi # set the required directories lib3p_path=$rc20_path/lib3p build_path=$webserver_path/build-$build_name log=$build_path/output.log # clear log if [ ! -f "$log" ]; then rm -f $log fi # clean-up if required if [ $clean -eq 1 ]; then echo "Cleaning output directories..." rm -rf $build_path fi rm -rf "$webserver_path/out" # go back to libwebserver directory cd $webserver_path # make sure the output directory exists /usr/bin/mkdir -p "${build_path}" # start building all required dependencies if required if [ $build_dependencies -ne 0 ]; then build-all-dependencies fi mkdir -p "$build_path/webserver" cd "$build_path/webserver" # Build the QT Webserver project echo "[`date "+%Y/%m/%d %H:%M:%S"`] Configuring QT project webserver.pro, this may take few minutes..." | tee -a $log echo $qt_bin/qmake -makefile -r CONFIG+=$build_config -spec $qt_make_spec "$webserver_path/app/webserver.pro" | tee -a $log $qt_bin/qmake -makefile -r CONFIG+=$build_config -spec $qt_make_spec "$webserver_path/app/webserver.pro" | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to configure webserver.pro!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Configuring QT project webserver.pro... Done!" | tee -a $log if [ $clean -eq 1 ]; then $makebin clean | tee -a $log fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Building QT project webserver.pro, this may take few minutes..." | tee -a $log $makebin all | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to build webserver.pro!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Building QT project webserver.pro... Done!" | tee -a $log echo "[`date "+%Y/%m/%d %H:%M:%S"`] Installing QT project webserver.pro, this may take few minutes..." | tee -a $log $makebin install | tee -a $log if [ ${PIPESTATUS[0]} -ne 0 ]; then echo "ERROR: Failed to install webserver.pro!" | tee -a $log exit -1 fi echo "[`date "+%Y/%m/%d %H:%M:%S"`] Installing QT project webserver.pro... Done!" | tee -a $log # deploy webserver to out folder echo "[`date "+%Y/%m/%d %H:%M:%S"`] Deploying Webserver and dependencies to $webserver_path/out, this may take few minutes..." | tee -a $log mkdir -p "$webserver_path/out" cp -f "$build_path/webserver/console/$build_config/webserver.exe" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/libcrypto-1_1.dll" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/libgcc_s_dw2-1.dll" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/libiconv-2.dll" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/liblzma-5.dll" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/libssl-1_1.dll" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/libwebsockets.dll" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/libwinpthread-1.dll" "$webserver_path/out" | tee -a $log cp -f "$compiler_path/zlib1.dll" "$webserver_path/out" | tee -a $log cp -rf "$webserver_path/mount" "$webserver_path/out" cd "$webserver_path/out" $qt_bin/windeployqt --no-compiler-runtime --$build_config "$webserver_path/out/webserver.exe" echo "[`date "+%Y/%m/%d %H:%M:%S"`] Webserver deployment to $webserver_path/out... Done!" | tee -a $log echo "[`date "+%Y/%m/%d %H:%M:%S"`] All build jobs are done!" | tee -a $log cd "$webserver_path" exit 0<file_sep># h2 long poll in lws lws server and client can support "immortal" streams that are not subject to normal timeouts under a special condition. These are read-only (to the client). Network connections that contain at least one immortal stream are themselves not subject to timeouts until the last immortal stream they are carrying closes. Because of this, it's recommended there is some other way of confirming that the client is still active. ## Setting up lws server for h2 long poll Vhosts that wish to allow clients to serve these immortal streams need to set the info.options flag `LWS_SERVER_OPTION_VH_H2_HALF_CLOSED_LONG_POLL` at vhost creation time. The JSON config equivalent is to set ``` "h2-half-closed-long-poll": "1" ``` on the vhost. That's all that is needed. Streams continue to act normally for timeout with the exception client streams are allowed to signal they are half-closing by sending a zero-length DATA frame with END_STREAM set. These streams are allowed to exist outside of any timeout and data can be sent on them at will in the server -> client direction. ## Setting client streams for long poll An API is provided to allow established h2 client streams to transition to immortal mode and send the END_STREAM to the server to indicate it. ``` int lws_h2_client_stream_long_poll_rxonly(struct lws *wsi); ``` ## Example applications You can confirm the long poll flow simply using example applications. Build and run `http-server/minimal-http-server-h2-long-poll` in one terminal. In another, build the usual `http-client/minimal-http-client` example and run it with the flags `-l --long-poll` The client will connect to the server and transition to the immortal mode. The server sends a timestamp every minute to the client, and that will stay up without timeouts. <file_sep># lws secure streams alexa This demonstrates AVS Alexa usage using secure streams. It connects to AVS, uses your linux computer's microphone to wait for the 'alexa' wakeword, sends the utterance to AVS and plays back the result. ## build There are some special build considerations: 1) Build lws with cmake options `-DLWS_WITH_ALSA=1 -DLWS_WITH_SECURE_STREAMS=1` 2) Install distro build dependency packages: |Dependency|Ubuntu package|Fedora Package| |---|---|---| |libasound|libasound2-dev|alsa-lib-devel| |mpg123|libmpg123-dev|mpg123-devel| 3) Clone Picovoice Porcupine Apache-licensed demo version from here https://github.com/Picovoice/porcupine It provides binary libs for wakeword detection on various platforms. Copy the headers and binary lib to your build context, eg, for native x86_64 ``` $ sudo cp ./include/* /usr/include $ sudo cp ./lib/linux/x86_64/libpv_porcupine.* /usr/lib $ sudo ldconfig ``` Enter the minimal example dir for secure-streams-alexa and make the sample ``` $ cd ./minimal-examples/secure-streams/minimal-secure-streams-alexa $ cmake . $ make ``` ## usage ``` $ ./lws-minimal-secure-streams-alexa [2019/10/16 16:22:01:1097] U: LWS secure streams - Alex voice test [-d<verb>] [2019/10/16 16:22:01:1115] N: lws_create_context: creating Secure Streams policy [2019/10/16 16:22:01:1115] N: lwsac_use: alloc 1532 for 1 [2019/10/16 16:22:01:1119] N: lwsac_use: alloc 288 for 168 [2019/10/16 16:22:01:1119] N: lws_ss_policy_set: policy lwsac size: 1.796KiB, pad 11% [2019/10/16 16:22:02:4114] N: lws_ss_client_connect: connecting 0 api.amazon.com /auth/o2/token [2019/10/16 16:22:02:8686] N: auth_api_amazon_com_parser_cb: expires in 3600 [2019/10/16 16:22:02:8686] N: ss_api_amazon_auth_rx: acquired 656-byte api.amazon.com auth token [2019/10/16 16:22:02:8754] N: lws_ss_client_connect: connecting 1 alexa.na.gateway.devices.a2z.com /v20160207/directives [2019/10/16 16:22:02:3182] N: secstream_h2: h2 client entering LONG_POLL [2019/10/16 16:22:02:3183] U: Connected to Alexa... speak "Alexa, ..." [2019/10/16 16:22:06:9380] W: ************* Wakeword [2019/10/16 16:22:06:9380] N: avs_query_start: [2019/10/16 16:22:06:9381] N: lws_ss_client_connect: connecting 1 alexa.na.gateway.devices.a2z.com /v20160207/events [2019/10/16 16:22:06:9381] N: lws_vhost_active_conns: just join h2 directly [2019/10/16 16:22:06:9384] N: metadata done [2019/10/16 16:22:06:1524] N: est: 42 1 [2019/10/16 16:22:06:3723] N: est: 108 1 [2019/10/16 16:22:07:5914] N: est: 352 1 [2019/10/16 16:22:07:8112] N: est: 4284 1 [2019/10/16 16:22:07:0300] N: est: 3369 1 [2019/10/16 16:22:07:2325] N: est: 577 1 [2019/10/16 16:22:08:4519] N: est: 9 1 [2019/10/16 16:22:08:6716] N: est: 3 1 [2019/10/16 16:22:08:6718] N: est: 11 1 [2019/10/16 16:22:08:8915] N: est: 10 1 [2019/10/16 16:22:08:8915] W: callback_audio: ended capture [2019/10/16 16:22:09:0993] N: identified reply... ^C[2019/10/16 16:22:14:3067] U: Disconnected from Alexa [2019/10/16 16:22:14:3123] U: Completed $ ``` <file_sep>#!/bin/bash # Change directory and setup environment variables for initialisation execute # of cmake # # This script requires the following variable to be set, example: # export forte_bin_dir="bin/host" if [ -z "$websockets_bin_dir" ] then echo "Required variable 'websockets_bin_dir' has not been set" exit 1 fi if [ ! -d "$websockets_bin_dir" ]; then mkdir -p "$websockets_bin_dir" if [ ! -d "$websockets_bin_dir" ]; then echo "unable to create ${websockets_bin_dir}" exit 1 fi else # we should never get here, the parent setup script needs to test if the directory exists echo "directory already exists, so nothing to do" exit 0 fi NAME=libwebsockets echo "----------------------------------------------------------------------------" echo " Automatically set up $NAME development environment" echo "----------------------------------------------------------------------------" echo "" echo "For building $NAME go to $websockets_bin_dir and execute \"make\"" echo "lib$NAME.so can be found at ${websockets_bin_dir}" echo "$NAME test files can be found at ${websockets_bin_dir}/bin" echo "" echo "----------------------------------------------------------------------------" #set to boost-include directory export websockets_boost_test_inc_dirs="" #set to boost-library directory export websockets_boost_test_lib_dirs="" # RC10 include path RC10_PATH="`pwd`/../" cd "./$websockets_bin_dir" NOJA_CMAKE_VARS="-DRC10_PATH=$RC10_PATH" <file_sep># lws minimal dbus ws proxy testclient This is a test client used to test `./minimal-examples/dbus-server/minimal-dbus-ws-proxy` It asks the minimal dbus ws proxy application to connect to libwebsockets.org over the mirror protocol. And it proxies back the ASCII packets used to communicate the mirror sample drawing vectors over dbus to this test client if you draw on the [mirror example app](https://libwebsockets.org/testserver/) in a browser. ## build Using libdbus requires additional non-default include paths setting, same as is necessary for lws build described in ./lib/roles/dbus/README.md CMake can guess one path and the library name usually, see the README above for details of how to override for custom libdbus and cross build. Fedora example: ``` $ cmake .. -DLWS_DBUS_INCLUDE2="/usr/lib64/dbus-1.0/include" $ make ``` Ubuntu example: ``` $ cmake .. -DLWS_DBUS_INCLUDE2="/usr/lib/x86_64-linux-gnu/dbus-1.0/include" $ make ``` ## usage Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 This connects to the minimal-dbus-ws-proxy example running in another terminal. ``` $ ./lws-minimal-dbus-ws-proxy-testclient [2018/10/05 14:17:16:6286] USER: LWS minimal DBUS ws proxy testclient [2018/10/05 14:17:16:6538] NOTICE: Creating Vhost 'default' port 0, 1 protocols, IPv6 off [2018/10/05 14:17:16:6617] USER: create_dbus_client_conn: connecting to 'unix:abstract=org.libwebsockets.wsclientproxy' [2018/10/05 14:17:16:7189] NOTICE: create_dbus_client_conn: created OK [2018/10/05 14:17:16:7429] USER: remote_method_call: requesting proxy connection wss://libwebsockets.org/ lws-mirror-protocol [2018/10/05 14:17:17:0387] USER: pending_call_notify: received 'Connecting' [2018/10/05 14:17:18:7475] NOTICE: client_message_handler: (type 7) 'ws client connection established' [2018/10/05 14:17:21:2028] NOTICE: client_message_handler: (type 6) 'd #000000 323 63 323 67;' [2018/10/05 14:17:21:2197] NOTICE: client_message_handler: (type 6) 'd #000000 323 67 327 73;' ... ``` <file_sep># lws minimal example for JWS Demonstrates how to sign and verify using compact JWS and JWK, providing a commandline tool for signing and verifying stdin. ## build ``` $ cmake . && make ``` ## usage Stdin is either the plaintext (if signing) or compact JWS (if verifying). Stdout is either the JWE (if encrypting) or plaintext (if decrypting). You must pass a private or public key JWK file in the -k option if encrypting, and must pass a private key JWK file in the -k option if decrypting. To be clear, for asymmetric keys the public part of the key is required to encrypt, and the private part required to decrypt. For convenience, a pair of public and private keys are provided, `key-rsa-4096.private` and `key-rsa-4096.pub`, these were produced with just ``` $ lws-crypto-jwk -t RSA -b 4096 --public key-rsa-4096.pub >key-rsa-4096.private ``` Similar keys for EC modes may be produced with ``` $ lws-crypto-jwk -t EC -v P-256 --public key-ecdh-p-256.pub >key-ecdh-p-256.private ``` JWSs produced with openssl and mbedtls backends are completely interchangeable. Commandline option|Meaning ---|--- -d <loglevel>|Debug verbosity in decimal, eg, -d15 -s "<signature alg>"|Sign (default is verify), eg, -e "ES256". For verify, the cipher information comes from the input JWS. -k <jwk file>|JWK file to sign or verify with... sign requires the key has its private part -c|Format the JWE as a linebroken C string -f|Output flattened representation (instead of compact by default) ``` $ echo -n "plaintext0123456" | ./lws-crypto-jws -s "ES256" -k ec-p256.private [2018/12/19 16:20:25:6519] USER: LWS JWE example tool [2018/12/19 16:20:25:6749] NOTICE: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off <KEY> ``` Notice the logging is on stderr, and the output alone on stdout. When signing, the compact representation of the JWS is output on stdout. When verifying, if the signature is valid the plaintext is output on stdout and the tool exits with a 0 exit code. Otherwise nothing is output on stdout and it exits with a nonzero exit code.
7222a822f5470da490b12eb8250cf00a57dcb647
[ "CMake", "reStructuredText", "Markdown", "Makefile", "INI", "Python", "Text", "C", "Shell" ]
181
C
TrellixVulnTeam/rc20User_TFHJ
f0f211b69751776a1932a85f9d41adf0433a8d39
d6b0c5706b0fbbd432444aaa0d732956bc6f4fb1
refs/heads/main
<repo_name>201811050975/group-703<file_sep>/201811050976/第一题/第一题返回值.c #include <stdio.h> int main() { int a, b, c; scanf_s("%d,%d", &a, &b); int a1, a2, b1, b2; a1 = a / 10; a2 = a % 10; b1 = b / 10; b2 = b % 10; c = a2 * 1000 + b2 * 100 + a1 * 10 + b1; printf("%d", c); return 0; }<file_sep>/201811050976/第二题/第二题数组.c #include <stdio.h> #define MaxSize 25 void king(int m, int n) { int p[MaxSize]; int i, j, t; for (i = 0; i < m; i++) p[i] = 1; t = -1; printf("出列顺序:"); for (i = 1; i <= m; i++) { j = 1; while (j <= n) { t = (t + 1) % m; if (p[t] == 1) j++; } p[t] = 0; printf("%d ", t + 1); } printf("\n"); printf("编号为%d的猴子是大王", t + 1); } int main() { int m, n; scanf_s("%d %d", &m, &n); king(m, n); return 0; } <file_sep>/201811050976/第五题/第五题多项式.c #include<stdio.h> #define MAX 100 int level(char p) //规定运算符优先级 { int temp; switch (p) { case '*': case '/':temp = 3; break; case '+': case '-':temp = 2; break; case '(':temp = 1; break; case '@':temp = -1; break; } return temp; } void cal(int number[], int* numberTop, char Symbol[], int* SymbolTop) //从字符栈中取出一个字符,从数值栈中取出两个数值进行运算 { char operation = Symbol[(*SymbolTop)]; //出符号 (*SymbolTop)--; int value1 = number[(*numberTop)]; (*numberTop)--; int value2 = number[(*numberTop)]; (*numberTop)--; int temp; switch (operation) { case '+':temp = value2 + value1; break; case '-':temp = value2 - value1; break; case '*':temp = value2 * value1; break; case '/':temp = value2 / value1; break; } (*numberTop)++; //易错点!!!!!必须加括号!!!!!! number[*numberTop] = temp; } int fun(char str[]) { char Symbol[MAX]; int SymbolTop = -1; //运算符栈 int numberTop = -1; //数值栈 int number[MAX]; int y = 0; //用来计算多位数 int i = 0; Symbol[++SymbolTop] = '@'; //先把 @ 入到符号栈中,就不用判断栈是否空了!!!这是一个比较聪明的想法 while (str[i]) { //先遍历该字符串 y = 0; if (str[i] <= '9' && str[i] >= '0') { //是数字 while (str[i] <= '9' && str[i] >= '0') { y = y * 10 + str[i] - '0'; i++; } number[++numberTop] = y; //入栈数值 } else if ((str[i] > '9' || str[i] < '0') && str[i] != '(' && str[i] != ')') { //不是数字,排除左,右括号的情况 while (level(str[i]) <= level(Symbol[SymbolTop])) //让栈中比它大的和等于它的都出栈!!!中缀表达式转后缀表达式的核心 //从符号栈中出一个符号,从数值栈中出两个数字,计算后压入数值栈 cal(number, &numberTop, Symbol, &SymbolTop); Symbol[++SymbolTop] = str[i]; i++; } else if (str[i] == '(') { //遇见左括号直接入栈 Symbol[++SymbolTop] = '('; i++; } else if (str[i] == ')') { //进行运算直到遇到左括号 while (Symbol[SymbolTop] != '(') { cal(number, &numberTop, Symbol, &SymbolTop); } SymbolTop--; //将左括号覆盖掉 i++; } // 将Symbol 栈检查一下,返回number 的栈顶,结束 } while (Symbol[SymbolTop] != '@') { cal(number, &numberTop, Symbol, &SymbolTop); } return number[numberTop]; } int main(void) { char str[MAX]; int result; printf("请输入表达式\n"); gets(str); result = fun(str); printf("答案 = %d \n", result); return 0; }<file_sep>/201811050976/第一题/第一题指针.c #include <stdio.h> int main() { void Fun(int x, int y, int* p); int a, b, c; scanf_s("%d,%d", &a, &b); Fun(a, b, &c); printf("%d\n", c); return 0; } void Fun(int x, int y, int* p) { int a1, a2, b1, b2; a1 = x / 10; a2 = x % 10; b1 = y / 10; b2 = y % 10; *p = a2 * 1000 + b2 * 100 + a1 * 10 + b1; }<file_sep>/201811050971/实验1/指针参数.cpp #include<iostream.h> void main() { int fun(int a,int b); int a,b; cout<<"ÇëÊäÈëa"<<endl; cin>>a; cout<<"ÇëÊäÈëb"<<endl; cin>>b; fun(a,b); } int fun(int a,int b) { int x,y,z,m,c; x=a%10; y=b/10; z=a/10; m=b%10; c=x*1000+y*100+z*10+m; cout<<c; return 0; }<file_sep>/201811050972/链表.cpp #include <iostream> using namespace std; typedef struct node { int data; struct node *next; } Node; int main() { Node *Head,*p,*pre,*pTail; int n,i,n2,j,k; while(cin>>n>>k) { i=1; n2=n; Head=(Node*)malloc(sizeof(Node)); Head->data=i++; n--;//给Head赋值一次总数-1 pTail=Head;//将2-n个数存入链表 while(n--) { p=(Node *)malloc(sizeof(Node)); p->data=i++; pTail->next=p; pTail=p; } pTail->next=Head; p=Head; while(n2>0) { for(j=1;j!=k;j++)//记录p、pre { pre=p; p=p->next; } (n2==1)?printf("%d\n",p->data):printf("%d ",p->data); n2--; pre->next=p->next;//剔除结点p free(p); p=pre->next; } } return 0; }<file_sep>/README.md # group-703 no <file_sep>/201811050975/1/数的合并1.cpp #include<iostream> using namespace std; void main() { int fun1(int a,int b); int fun2(int &a,int &b); int fun3(int *a,int *b); int a,b; printf("Please enter a and b:\n"); cin>>a>>b; //接收正整数a和b fun1(a,b); fun2(a,b); fun3(&a,&b); } int fun1(int a,int b) { int c1,c2,c3,c4,c; //c1、c2、c3、c4分别对应c的千位、百位、十位、个位 c1=a%10; c2=b/10; c3=a/10; c4=b%10; c=c1*1000+c2*100+c3*10+c4; cout<<c<<endl; return 0; } int fun2(int &a,int &b) { int c1,c2,c3,c4,c; //c1、c2、c3、c4分别对应c的千位、百位、十位、个位 c1=a%10; c2=b/10; c3=a/10; c4=b%10; c=c1*1000+c2*100+c3*10+c4; cout<<c<<endl; return 0; } int fun3(int *a,int *b) { int c1,c2,c3,c4,c; //c1、c2、c3、c4分别对应c的千位、百位、十位、个位 c1=*a%10; c2=*b/10; c3=*a/10; c4=*b%10; c=c1*1000+c2*100+c3*10+c4; cout<<c<<endl; return 0; }<file_sep>/201811050972/函数引用.cpp #include<iostream.h> void main() { int fun(int &a,int &b); int a,b; cout<<"ÇëÊäÈëa£º"<<endl; cin>>a; cout<<"ÇëÊäÈëb"<<endl; cin>>b; fun(a,b); } int fun(int &a,int &b) { int ge,shi,bai,qian,c; shi=a/10; qian=a%10; ge=b/10; bai=b%10; c=ge+shi*10+bai*100+qian*1000; cout<<"c="<<c<<endl; return 0; } <file_sep>/201811050975/6/汽车.cpp #include<iostream> using namespace std; class Vehicle { public: Vehicle(int wl,double wh):wheels(wl),weight(wh){}; void show() { cout<<"wheels:"<<wheels<<",weight:"<<weight<<endl; } protected: int wheels; double weight; }; class Car:private Vehicle { public: Car(int wl,double wh,int pl):Vehicle(wl,wh),passager_load(pl){}; void show() { Vehicle::show(); cout<<"passager_load:"<<passager_load<<endl; } private: int passager_load; }; class Truck:private Vehicle { public: Truck(int wl,double wh,int pl,double psl):Vehicle(wl,wh),passager_load(pl),payload(psl){}; void show() { Vehicle::show(); cout<<"passager_load:"<<passager_load<<endl; cout<<"payload:"<<payload<<endl; } private: int passager_load; double payload; }; int main() { Vehicle v1(4,200); v1.show(); cout<<"===================="<<endl; Car c1(4,290,10); c1.show(); cout<<"===================="<<endl; Truck t1(4,500,50,200); t1.show(); return 0; } <file_sep>/201811050971/实验2/数组.cpp #include <stdio.h> #define MaxSize 100 void king(int m, int n) { int p[MaxSize]; int i, j, t; for (i = 0; i < m; i++) //构建初始序列,记录m只猴子在圈中 p[i] = 1; t = -1; //首次报数将从起始位置为0,即第1只猴子开始,因为在使用p[t]前t要加1 printf("出列顺序:"); for (i = 1; i <= m; i++) //循环要执行m次,有m个猴子要出圈 { j = 1; // j用于报数 while (j <= n) { t = (t + 1) % m; //看下一只猴子,到达最后时要折回去,所以用%m if (p[t] == 1) j++; //仅当q猴子在圈中,这个位置才报数 } p[t] = 0; //猴子出圈 } printf("%d ", t + 1); //输出出圈猴子的编号 printf("\n"); printf("编号为%d的猴子是大王", t+1); } int main() { int m, n; scanf("%d %d", &m, &n); king(m, n); return 0; }<file_sep>/201811050972/排序.cpp #include <iostream> using namespace std; struct { int chinese,mathematics,English,sum; int id; }subject[100]; void main() { int i,j,n; cin>>n; for(i=1;i<=n;i++) { cin>>subject[i].chinese>>subject[i].mathematics>>subject[i].English; subject[i].id=i; subject[i].sum=subject[i].chinese+subject[i].mathematics+subject[i].English; } for(i=n-1;i>=1;i--) for(j=1;j<=n;j++) { if(subject[j].sum<subject[j+1].sum) swap(subject[j],subject[j+1]); if((subject[j].sum==subject[j+1].sum)&&(subject[j].chinese<subject[j+1].chinese)) swap(subject[j],subject[j+1]); if((subject[j].sum==subject[j+1].sum)&&(subject[j].chinese==subject[j+1].chinese)&&(subject[j].id>subject[j+1].id)) swap(subject[j],subject[j+1]); } for(i=1;i<=5;i++) { cout<<subject[i].id<<endl; cout<<subject[i].sum<<endl; } } int swap(int &p1,int &p2) { int p; p=p1; p1=p2; p2=p; return 0; } <file_sep>/201811050976/第一题/第一题引用.c #include <stdio.h> int main() { int fun(int x, int y); int a, b, c; scanf_s("%d,%d", &a, &b); c = fun(a, b); printf("%d", c); return 0; } int fun(int x, int y) { int a1, a2, b1, b2; a1 = x / 10; a2 = x % 10; b1 = y / 10; b2 = y % 10; int t; t = a2 * 1000 + b2 * 100 + a1 * 10 + b1; return t; }<file_sep>/201811050975/4/疫情防控地图.cpp #include <iostream> using namespace std; main() { int M,N,c; cin>>N>>M; char a[100][100]; for(int m=0;m<M;m++)//输入字符数组 { for(int n=0;n<N;n++) cin>>a[m][n]; } cin>>c; for(int h=0;h<c;h++)//此处是病毒经历的周期数 { for(int i=0;i<M;i++)//遍历数组 { for(int j=0;j<N;j++) { if(a[i][j]=='X') { if(i-1>=0&&a[i-1][j]!='P')//判断数组的位置是否在边缘以及该位置是否是保护区 a[i-1][j]='Y'; if(i+1<M&&a[i+1][j]!='P') a[i+1][j]='Y'; if(j-1>=0&&a[i][j-1]!='P') a[i][j-1]='Y'; if(j+1<N&&a[i][j+1]!='P') a[i][j+1]='Y'; } } } for(int q=0;q<M;q++)//遍历数组 { for(int p=0;p<N;p++) { if(a[q][p]=='Y') a[q][p]='X'; } } } for(int k=0;k<M;k++)//输出数组 { for(int l=0;l<N;l++) cout<<a[k][l]; cout<<endl; } }<file_sep>/201811050972/函输返回值.cpp #include<iostream.h> void main() { int fun(int a,int b); int a,b,c; cout<<"ÇëÊäÈëa£º"<<endl; cin>>a; cout<<"ÇëÊäÈëb"<<endl; cin>>b; c=fun(a,b); cout<<"c="<<c<<endl; } int fun(int a,int b) { int ge,shi,bai,qian; shi=a/10; qian=a%10; ge=b/10; bai=b%10; return(ge+shi*10+bai*100+qian*1000); }<file_sep>/201811050972/传染2.cpp #include <iostream> using namespace std; void main() { int N,M; int i,j; char a[100][100]; cin>>N>>M; for(i=0;i<N;i++) { for(j=0;j<M;j++) { cin>>a[i][j]; } } int T; cin>>T; for(int k=1;k<=T;k++) { for(i=0;i<N;i++) { for(j=0;j<M;j++) { if(a[i][j]=='X') { if(a[i][j-1]!='P'&&j>0) { a[i][j-1]='Q'; } if(a[i][j+1]!='P'&&j<M-1) { a[i][j+1]='Q'; } if(a[i-1][j]!='P'&&i>0) { a[i-1][j]='Q'; } if(a[i+1][j]!='P'&&i<N-1) { a[i+1][j]='Q'; } } } } for(int c=0;c<N;c++) { for(int d=0;d<M;d++) { if(a[c][d]=='Q') a[c][d]='X'; } } } for(i=0;i<N;i++) { for(j=0;j<M;j++) { cout<<a[i][j]; } cout<<endl; } }<file_sep>/201811050976/第四题/第四题.cpp #include <iostream> using namespace std; int main() { int H; int Z; int c; cin >> H >> Z;; char a[100][100]; for (int i = 0; i < H; i++) { for (int j = 0; j < Z; j++) cin >> a[i][j]; } cin >> c; for (int s = 0; s < c; s++)//²¡¶¾ÖÜÆÚ { for (int m = 0; m < H; m++) { for (int n = 0; n < Z; n++) { if (a[m][n] == 'X') { if (m - 1 >= 0 && a[m - 1][n] != 'P') a[m - 1][n] = 'Y'; if (m + 1 < H && a[m + 1][n] != 'P') a[m + 1][n] = 'Y'; if (n - 1 >= 0 && a[m][n - 1] != 'P') a[m][n - 1] = 'Y'; if (n + 1 < Z && a[m][n + 1] != 'P') a[m][n + 1] = 'Y'; } } } for (int p = 0; p < H; p++) { for (int q = 0; q < Z; q++) { if (a[p][q] == 'Y') a[p][q] = 'X'; } } } for (int e = 0; e < H; e++) { for (int f = 0; f < Z; f++) cout << a[e][f]; cout << endl; } }<file_sep>/201811050976/第六题/第六题c++.cpp #include <iostream> using namespace std; class vehicle { private: int wheels; int weight; public: vehicle(int m, int n) { wheels = m; weight = n; } void print() { cout << "The wheels is " << wheels << endl; cout << "The weight is " << weight << endl; } }; class car :private vehicle { private: int passenger_load; public: car(int m, int n, int p) :vehicle(m, n) { passenger_load = p; } void print() { cout << "The passenger_load is " << passenger_load << endl; } }; class truck :private vehicle { private: int payload; int passenger_load; public: truck(int m, int n, int p1, int p2) :vehicle(m, n) { payload = p1; passenger_load = p2; } void print() { cout << "The passenger_load is " << passenger_load << endl; cout << "The payload is " << payload << endl; } }; int main() { vehicle a(4, 200); a.print(); //car b(4,100,5); //b.print(); truck c(4, 1000, 10000, 4); c.print(); return 0; }<file_sep>/201811050971/实验4/字符串问题.cpp #include<iostream> using namespace std; main() { int S,T,k; cin>>T>>S; char a[200][100]; for(int s=0;s<S;s++) { for(int t=0;t<T;t++) { cin>>a[s][t]; } } cin>>k; for(int b=0;b<k;b++) { for(int i=0;i<S;i++) { for(int j=0;j<T;j++) { if(a[i][j]=='X') { if(i-1>=0&&a[i-1][j]!='P') a[i-1][j]='Z'; if(i+1>=0&&a[i+1][j]!='P') a[i+1][j]='Z'; if(j-1>=0&&a[i][j-1]!='P') a[i][j-1]='Z'; if(j+1>=0&&a[i][j+1]!='P') a[i][j+1]='Z'; } } } for(int m=0;m<S;m++)//±éÀúÊý×é { for(int n=0;n<T;n++) { if(a[m][n]=='Z') a[m][n]='X'; } } } for(int c=0;c<S;c++) { for(int d=0;d<T;d++) cout<<a[c][d]; cout<<endl; } } <file_sep>/201811050972/猴子选大王.cpp #include <iostream.h> void main() { int i,j,k,m,N,temp; int a[1001]; cout<<"输入猴子的个数m="; cin>>m; cout<<"输入从1开始数,每数到第N="; cin>>N; cout<<"时,猴子离开"<<endl; for(i=1;i<=m;i++) { a[i]=i; //根据猴子的编号给猴子排序 } for(i=m;i>=1;i--) //剩下的猴子个数 { for(k=1;k<=N;k++) { temp=a[1]; //上一次的第一个变成这一次的最后一个 for(j=0;j<i;j++) { a[j]=a[j+1]; } a[i]=temp; } } cout<<"猴子大王的编号是"<<a[1]<<endl; }<file_sep>/201811050971/实验3/排序问题.cpp #include <iostream> #include <string.h> #include <algorithm> using namespace std; struct student { int id; int chinese; int math; int english; int sum; } stu[355]; bool compare (const student &s1, const student &s2) { if (s1.sum == s2.sum) { if (s1.chinese == s2.chinese) { return s1.id < s2.id; } return s1.chinese > s2.chinese; } return s1.sum > s2.sum; } int main() { int n; scanf ("%d", &n); for (int i=0; i<n; i++) { stu[i].id = i+1; cin >> stu[i].chinese >> stu[i].math >> stu[i].english; stu[i].sum = stu[i].chinese + stu[i].english + stu[i].math; } sort (stu, stu+n, compare); for (int j=0; j<5; j++) { cout << stu[j].id << " " << stu[j].sum << endl; } return 0; } <file_sep>/201811050975/3/奖学金.cpp #include <iostream> #include <algorithm> using namespace std; struct Stu { int id; int chinese; int math; int english; int sum; }stu[305]; bool cmp(struct Stu a, struct Stu b) { if(a.sum != b.sum) { return a.sum > b.sum; } else { if(a.chinese != b.chinese) { return a.chinese > b.chinese; } else { return a.id < b.id; } } } int main() { int n, i; cin>>n; for(i = 0; i < n; ++i) { stu[i].id = i+1; cin>>stu[i].chinese>>stu[i].math>>stu[i].english; stu[i].sum = stu[i].chinese + stu[i].math + stu[i].english; } sort(stu, stu+n, cmp); for(i = 0; i < 5; ++i) { cout<<stu[i].id<<" "<<stu[i].sum<<endl; } return 0; }
2d136da107e40673e3c0941ab0cba41e84fac942
[ "Markdown", "C", "C++" ]
22
C
201811050975/group-703
a93f247f64545c658cf83478159ec8ec9af0d162
b260301f04287b5bbbe35177e2752901bfaf13e4
refs/heads/master
<repo_name>dave4506/pigeon<file_sep>/README.md #This is the repository for the pigeon project. <file_sep>/components/PageStack/parent.js import React, { PropTypes } from 'react'; import s from './page.css'; import MenuButton from '../MenuButton/menu' const translate = (x,y,z) => { return `translate3d(${x},${y},${z})`; } class Parent extends React.Component { constructor(props) { super(props); const {initialStatus} = props; this.state = { status: initialStatus || "openPage", currentPageIndex: "", pageMap:[] } this.generateStyles = this.generateStyles.bind(this); this.generateClassNames = this.generateClassNames.bind(this); this.openMenu = this.openMenu.bind(this); this.openPage = this.openPage.bind(this); this.menuClick = this.menuClick.bind(this); } static propTypes = { } reorderPages(key) { } openPage(key) { if(this.state.status == "openMenu") { var newState = {status:"openPage",currentPageIndex:key}; if(this.props.reorder) newState = Object.assign({},newState,{pageMap:reorderPages(key)}); this.setState(newState) } else { return "ALREADY_OPENED" } } openMenu() { if(this.state.status == "openPage") { this.setState({status:"openMenu"}) } else { return "ALREADY_OPENED" } } componentWillMount() { const {children} = this.props; if (children) { const pageMap = children.map((c)=>{ return c.key }) this.setState({pageMap,currentPageIndex:children[0].key}); } } generateClassNames() { const {status,pageMap,currentPageIndex} = this.state; if(status == "openMenu") { const pages = {} pageMap.forEach((p)=>{ pages[p] = p==currentPageIndex ? "" : s["page--inactive"] }) return { pages, stack:s["pages-stack--open"], nav:s["pages-nav--open"], menu:"menu-button--close" } } else if (status == "openPage") { const pages = {} pageMap.forEach((p)=>{ pages[p] = p==currentPageIndex ? "" : s["page--inactive"] }) return { pages, stack:s["pages-stack--open"], nav:s["pages-nav--close"], menu:"menu-button--burger" } } } generateStyles() { const {status,pageMap,currentPageIndex} = this.state; if(status == "openMenu") { var pages = {} pageMap.map((p,i)=>{ pages[p] = { zIndex:(pageMap.length - i)+7, transform:translate(0,"75%",`${parseInt(-1 * 200 - 50*i)}px`), opacity:(1-i*0.2) } }) return { pages } } else if (status == "openPage") { var pages = {} pageMap.map((p,i)=>{ pages[p] = { zIndex:(pageMap.length - i)+7, transform:translate(0,currentPageIndex==p ? 0 : "100%",0), opacity:1 } }) return { pages } } } componentDidMount(){ } componentWillReceiveProps(nextProps) { } menuClick(e) { var newState = {}; newState.status = this.state.status == "openPage" ? "openMenu":"openPage"; this.setState(newState); } render() { const {children,nav} = this.props; const {status} = this.state; const classes = this.generateClassNames(); const styles = this.generateStyles() return ( <div> <MenuButton onClick={this.menuClick} status={status == "openMenu" ? "open":"closed"}/> <div className={`${classes.nav} ${s["pages-nav"]}`}> {nav} </div> <div className={`${s["pages-stack"]} ${classes.stack}`}> {(children || []).map((c)=>{ return ( <div key={c.key} onClick={(e)=>{if(status=="openMenu") this.openPage(c.key)}} style={styles.pages[c.key]} className={`${s.page} ${classes.pages[c.key]}`}> {c} </div> ) })} </div> </div> ); } } export default Parent; <file_sep>/components/MenuButton/menu.js import React, { PropTypes } from 'react'; import s from './menu.css'; class MenuButton extends React.Component { constructor(props) { super(props); const {} = props; this.state = { } } static propTypes = { } render() { const {status,onClick} = this.props; const className = status == "open" ? "menu-button--open" : ""; return ( <button onClick={onClick} className={`${s["menu-button"]} ${s[className]}`}> <span>Menu</span> </button> ); } } export default MenuButton; <file_sep>/components/CategoryList/category.js import React, { PropTypes } from 'react'; import s from './category.css'; class Categories extends React.Component { constructor(props) { super(props); } static propTypes = { } render() { const {links,onClick,active,maintainState,backgroundColor} = this.props; return ( <section className={`${s["section"]}`}> <nav className={`${s.menu}`}> <ul className={`${s["menu__list"]}`}> {links.map((l,i)=>{ return ( <li onClick={(e)=>{onClick(l)}} key={i} className={`${s["menu__item"]} ${l==(active) ? s["menu__item--current"] : ""}`}> <a href="#" className={`${s["menu__link"]}`}>{l}</a> </li> ) })} <li style={{transform:`translate3d(${links.indexOf(active)}00%,0,0)`}} className={`${s["menu__line"]}`}> <div className={`${s.line}`}></div> </li> </ul> </nav> </section> ); } } export default Categories; <file_sep>/pages/home/index.js /** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { PropTypes } from 'react'; import s from './styles.css'; import Parent from '../../components/PageStack/parent'; import Category from '../../components/CategoryList/category'; const nav = (category,newCategory,filter,newFilter) => { return ( <div> <Category onClick={(link)=>{newCategory(link)}} links={["Upvoted","Latest","Popular","Yours"]} active={category || "Upvoted"}/> <Category onClick={(link)=>{newFilter(link)}} links={["No Profanity","Only Profanity","Give it all","Supa Big Words"]} active={filter || "Give it all"}/> </div> ) } class HomePage extends React.Component { constructor(props) { super(props) this.state={ category:"", filter:"" } } static propTypes = { } componentDidMount() { } render() { const {} = this.props const {category,filter} = this.state; return ( <div> <Parent nav={nav(category,(link)=>{this.setState({category:link})},filter,(link)=>{this.setState({filter:link})})}> <div key="quote"> </div> <div key="create"></div> </Parent> </div> ); } } export default HomePage;
795b984b0e0d9575424de8a26bece8a475d89c38
[ "Markdown", "JavaScript" ]
5
Markdown
dave4506/pigeon
a2e2247c35b9e8fe6b56ca74386d8dba6eb234f2
eb0a15a00b57ce1af802e8dbe8424f932bf992a1
refs/heads/master
<repo_name>skinkie/visdata<file_sep>/generate_mvt/create_MVT.sh # -- CREATE MVT # -- Select data that intersects with tile area in PostGIS # -- Scale coordinates to vector tile's coordinates # -- Clip data to tile area # -- Encode Vector Tile File # -- Serve Vector Tile rm -rf /data/tiles_gen/* mkdir -p /data/tiles_gen # BGT tippecanoe --allow-existing --no-tile-stats --no-feature-limit --no-tile-size-limit \ --no-tiny-polygon-reduction --no-line-simplification --no-polygon-splitting --no-tile-compression \ --output-to-directory=/data/tiles_gen \ --maximum-zoom=17 --minimum-zoom=16 \ --named-layer=admin:/data/geojson/admin_10.geojson \ --named-layer=water:/data/geojson/water_bgt.geojson \ --named-layer=water-line:/data/geojson/water-line_bgt.geojson \ --named-layer=terrain:/data/geojson/terrain_bgt.geojson \ --named-layer=urban:/data/geojson/urban_bgt.geojson \ --named-layer=infra:/data/geojson/infra_bgt.geojson \ --named-layer=label:/data/geojson/label_bgt.geojson #top10 tippecanoe --allow-existing --no-tile-stats --no-feature-limit --no-tile-size-limit \ --no-tiny-polygon-reduction --no-line-simplification --no-polygon-splitting --no-tile-compression \ --output-to-directory=/data/tiles_gen \ --maximum-zoom=15 --minimum-zoom=14 \ --named-layer=admin:/data/geojson/admin_10.geojson \ --named-layer=water:/data/geojson/water_10.geojson \ --named-layer=water-line:/data/geojson/water-line_10.geojson \ --named-layer=terrain:/data/geojson/terrain_10.geojson \ --named-layer=urban:/data/geojson/urban_10.geojson \ --named-layer=infra:/data/geojson/infra_10.geojson \ --named-layer=label:/data/geojson/label_10.geojson #top50 tippecanoe --allow-existing --no-tile-stats --no-feature-limit --no-tile-size-limit \ --no-tiny-polygon-reduction --no-line-simplification --no-polygon-splitting --no-tile-compression \ --output-to-directory=/data/tiles_gen \ --maximum-zoom=13 --minimum-zoom=12 \ --named-layer=admin:/data/geojson/admin_50.geojson \ --named-layer=water:/data/geojson/water_50.geojson \ --named-layer=water-line:/data/geojson/water-line_50.geojson \ --named-layer=terrain:/data/geojson/terrain_50.geojson \ --named-layer=urban:/data/geojson/urban_50.geojson \ --named-layer=infra:/data/geojson/infra_50.geojson \ --named-layer=label:/data/geojson/label_50.geojson #top100 tippecanoe --allow-existing --no-tile-stats --no-feature-limit --no-tile-size-limit \ --no-tiny-polygon-reduction --no-line-simplification --no-polygon-splitting --no-tile-compression \ --output-to-directory=/data/tiles_gen \ --maximum-zoom=11 --minimum-zoom=10 \ --named-layer=admin:/data/geojson/admin_100.geojson \ --named-layer=water:/data/geojson/water_100.geojson \ --named-layer=water-line:/data/geojson/water-line_100.geojson \ --named-layer=terrain:/data/geojson/terrain_100.geojson \ --named-layer=urban:/data/geojson/urban_100.geojson \ --named-layer=infra:/data/geojson/infra_100.geojson \ --named-layer=label:/data/geojson/label_100.geojson #top250 tippecanoe --allow-existing --no-tile-stats --no-feature-limit --no-tile-size-limit \ --no-tiny-polygon-reduction --no-line-simplification --no-polygon-splitting --no-tile-compression \ --output-to-directory=/data/tiles_gen \ --maximum-zoom=9 --minimum-zoom=8 \ --named-layer=admin:/data/geojson/admin_250.geojson \ --named-layer=water:/data/geojson/water_250.geojson \ --named-layer=water-line:/data/geojson/water-line_250.geojson \ --named-layer=terrain:/data/geojson/terrain_250.geojson \ --named-layer=urban:/data/geojson/urban_250.geojson \ --named-layer=infra:/data/geojson/infra_250.geojson \ --named-layer=label:/data/geojson/label_250.geojson #top500 tippecanoe --allow-existing --no-tile-stats --no-feature-limit --no-tile-size-limit \ --no-tiny-polygon-reduction --no-line-simplification --no-polygon-splitting --no-tile-compression \ --output-to-directory=/data/tiles_gen \ --maximum-zoom=7 --minimum-zoom=6 \ --named-layer=admin:/data/geojson/admin_500.geojson \ --named-layer=water:/data/geojson/water_500.geojson \ --named-layer=water-line:/data/geojson/water-line_500.geojson \ --named-layer=terrain:/data/geojson/terrain_500.geojson \ --named-layer=urban:/data/geojson/urban_500.geojson \ --named-layer=infra:/data/geojson/infra_500.geojson \ --named-layer=label:/data/geojson/label_500.geojson #top1000 tippecanoe --allow-existing --no-tile-stats --no-feature-limit --no-tile-size-limit \ --no-tiny-polygon-reduction --no-line-simplification --no-polygon-splitting --no-tile-compression \ --output-to-directory=/data/tiles_gen \ --maximum-zoom=5 --minimum-zoom=0 \ --named-layer=admin:/data/geojson/admin_1000.geojson \ --named-layer=water:/data/geojson/water_1000.geojson \ --named-layer=water-line:/data/geojson/water-line_1000.geojson \ --named-layer=terrain:/data/geojson/terrain_1000.geojson \ --named-layer=urban:/data/geojson/urban_1000.geojson \ --named-layer=infra:/data/geojson/infra_1000.geojson \ --named-layer=label:/data/geojson/label_1000.geojson rm -rf /data/tiles/* mv /data/tiles_gen/* /data/tiles rm -rf /data/tiles_gen/* # -z zoom or --maximum-zoom=zoom: Maxzoom: the highest zoom level for which tiles are generated (default 14) # -zg or --maximum-zoom=g: Guess what is probably a reasonable maxzoom based on the spacing of features. # -Z zoom or --minimum-zoom=zoom: Minzoom: the lowest zoom level for which tiles are generated (default 0) <file_sep>/viewer_demo/src/main.js var mapboxgl = require('mapbox-gl'); // var scrollama = require('scrollama'); var d3 = require('d3'); var typeahead = require("typeahead.js"); var Bloodhound = require("bloodhound-js"); var $ = jQuery = require('jquery'); // var ScrollMagic = require('scrollmagic'); var bootstrap = require('bootstrap'); var bounds = [ [2.59326, 50.72915], // Southwest coordinates [8.85636, 54.76957] // Northeast coordinates ]; var myStyles = [ "./styles/achtergrond.json", "./styles/data.json", "./styles/purple.json", "./styles/roads.json" ]; var myDataSets = [ ['BGT', 17], ['TOP10NL', 14 ], ['TOP50NL', 12 ], ['TOP100NL', 10 ], ['TOP250NL', 8 ], ['TOP500NL', 6 ], ['TOP1000NL', 5 ] ]; var colors = [ '#ffffcc', '#a1dab4', '#41b6c4', '#2c7fb8', '#253494', '#fed976', '#feb24c', '#fd8d3c', '#f03b20', '#bd0026', '#474747', '#f9f9f9' ]; var i = 0; // MAP OPTIONS var options = { container: "map", hash: true, style: myStyles[i], zoom: 8, pitch: 0, bearing: 0, center: [5.19,52.33], attributionControl: false } // INITIALIZE MAP var map = new mapboxgl.Map(options); map.addControl(new mapboxgl.AttributionControl(), "bottom-left"); // MOBILE document.addEventListener('touchmove', function(event) { event.preventDefault(); }, false); // NO CONTROLS WHEN PHONE! if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { document.getElementById('search_bar').style.left = '10px'; // MAP TOUCH EVENT map.touchZoomRotate.enable(); map.touchZoomRotate.enable({ around: 'center' }); map.touchZoomRotate.enableRotation(); } else { map.addControl(new mapboxgl.NavigationControl(), 'top-left'); // MAP MOUSE EVENT map.scrollZoom.enable(); map.scrollZoom.enable({ around: 'center' }) map.dragPan.enable(); map.dragRotate.enable(); map.doubleClickZoom.enable(); }; // GETTING DOCUMENT ELEMENTS var opties = document.getElementById('opties'); var swatches = document.getElementById('swatches'); var orignial_id = document.getElementById('orignial_id'); var current_zoom = document.getElementById('current_zoom'); // using d3 for convenience, and storing a selected elements var container = d3.select('#scroll'); var graphic = container.select('.scroll__graphic'); var text = container.select('.scroll__text'); var step = text.selectAll('.step'); var dropdown = document.getElementById('myDropdown'); //STEP 1 - switch bewteen styles var click = 0; document.getElementById('switch').addEventListener('click', switchStyle); function switchStyle(){ if ( click < (myStyles.length-1)){ click += 1; map.setStyle(myStyles[click], {diff:true}); map.once('styledata', function(data){ if (data.dataType === 'style'){ while (dropdown.firstChild) { dropdown.removeChild(dropdown.firstChild); } var allLayers = map.getStyle().layers; allLayers = allLayers.filter(function( obj ) { return obj.id !== 'low_prior_labels' && obj.id !== 'labels_roads_top10' && obj.id !== 'building_labels' && obj.id !== 'water_labels' && obj.id !== 'labels_highway' && obj.id !== 'airports' && obj.id !== 'medium_prior_labels' && obj.id !== 'high_prior_labels'; }); allLayers.forEach(function(layer){ var drop = document.createElement('option'); var text = document.createTextNode(layer.id); drop.appendChild(text); drop.value = layer.type; drop.addEventListener('click', function(){ }); dropdown.appendChild(drop) }) } }) } else { click = 0; map.setStyle(myStyles[click], {diff:true}); map.once('styledata', function(data){ if (data.dataType === 'style'){ while (dropdown.firstChild) { dropdown.removeChild(dropdown.firstChild); } var allLayers = map.getStyle().layers; allLayers = allLayers.filter(function( obj ) { return obj.id !== 'low_prior_labels' && obj.id !== 'labels_roads_top10' && obj.id !== 'building_labels' && obj.id !== 'water_labels' && obj.id !== 'labels_highway' && obj.id !== 'airports' && obj.id !== 'medium_prior_labels' && obj.id !== 'high_prior_labels'; }); allLayers.forEach(function(layer){ var drop = document.createElement('option'); var text = document.createTextNode(layer.id); drop.appendChild(text); drop.value = layer.type; drop.addEventListener('click', function(){ }); dropdown.appendChild(drop) }) } }) }; }; // STEP 2. LABELS TOGGLE ON OFF var click2 = 0; var toggleableLayerIds = ['low_prior_labels', 'medium_prior_labels','labels_roads_top10', 'building_labels', 'water_labels', 'labels_highway', 'high_prior_labels']; document.getElementById('toggle').addEventListener('click', toggleOnOff); function toggleOnOff(){ var visibility = map.getLayoutProperty('low_prior_labels', 'visibility'); console.log(visibility) if (visibility === 'visible'){ for (var i = 0; i < toggleableLayerIds.length; i++){ map.setLayoutProperty(toggleableLayerIds[i], 'visibility', 'none'); } } else { for (var i = 0; i < toggleableLayerIds.length; i++){ map.setLayoutProperty(toggleableLayerIds[i], 'visibility', 'visible'); } } }; // STEP 3. COLORS //Get Layers from map function getLayers(){ map.on('load', function(){ var allLayers = map.getStyle().layers; allLayers = allLayers.filter(function( obj ) { return obj.id !== 'low_prior_labels' && obj.id !== 'labels_roads_top10' && obj.id !== 'building_labels' && obj.id !== 'water_labels' && obj.id !== 'labels_highway' && obj.id !== 'airports' && obj.id !== 'medium_prior_labels' && obj.id !== 'high_prior_labels'; }); // console.log(allLayers); allLayers.forEach(function(layer){ var drop = document.createElement('option'); var text = document.createTextNode(layer.id); drop.appendChild(text); drop.value = layer.type; drop.addEventListener('click', function(){ }); dropdown.appendChild(drop) }) }); }; getLayers(); // Set swatches and paint actions colors.forEach(function(color) { var swatch = document.createElement('button'); swatch.style.backgroundColor = color; swatch.addEventListener('click', function() { var e = document.getElementById("myDropdown"); var layer = e.options[e.selectedIndex]; console.log(layer) map.setPaintProperty(layer.text, layer.value+"-color", color) }); swatches.appendChild(swatch); }); // STEP 4 MAKE DATASET/ZOOM BUTTONS myDataSets.forEach(function(zoomlevel) { var setZoom = document.createElement('button'); var text = document.createTextNode(zoomlevel[0]); setZoom.appendChild(text); setZoom.addEventListener('click', function() { map.jumpTo({ zoom : zoomlevel[1], center: [4.887861,52.358550] }) }); opties.appendChild(setZoom); }); // GET CURRENT ZOOM LEVEL map.on('zoom', function() { var curZoom = map.getZoom(); current_zoom.innerHTML = curZoom.toFixed(1); }); map.on('load', function(){ var curZoom = map.getZoom(); current_zoom.innerHTML = curZoom.toFixed(1); }); // STEP 5 GET OBJECT ID map.on('mousemove', function(e) { var features = map.queryRenderedFeatures(e.point); if (features.length > 0) { var idText = features[0].properties.original_id ; original_id.innerHTML = idText; } }); // // SCROLLAMA // function init( ){ // // Scrolllama // // instantiate the scrollama // var scroller = scrollama(); // // setup the instance, pass callback functions // scroller // .setup({ // container: "#scroll", // graphic: ".scroll__graphic", // text: ".scroll__text", // step: ".step", // required // offset: 0.5, // optional, default = 0.5 // debug: false // optional, default = false // }) // .onStepEnter(handleStepEnter) // .onStepExit(handleStepExit); // window.addEventListener('resize', scroller.resize) // function handleStepEnter(callback){ // callback.element.classList.add('is-active'); // callback.element.classList.remove('is-disabled'); // if (callback.index == 2) { // } // else if (callback.index == 4){getID();} // else if (callback.index == 3){getZoom();} // } // function handleStepExit(callback){ // callback.element.classList.remove('is-active'); // callback.element.classList.add('is-disabled'); // }; // }; // init(); // SEARCH BAR var searchdata = {}; function enableTypeahead() { $('#ttinput .typeahead' ).typeahead({ hint: false, highlight: true, minLength: 2 }, { name: 'PDOK', displayKey: 'value', display: 'value', limit: 5, source: searchdata.bloodhoundengine, templates:{ empty: [ '<div class="noitems">', 'Niets gevonden', '</div>' ].join('\n') } }); }; var searchInputListeners = function(){ $('#ttinput .typeahead').on('typeahead:select',function(ev, suggestion) { getCoordinates(suggestion); }); $('#ttinput .typeahead').on('typeahead:autocomplete', function(ev, suggestion) { getCoordinates(suggestion); }); $('#ttinput .typeahead').on('keyup', function(e) { // Enter if(e.which == 13) { getCoordinates(suggestion); } }); }; function enableBloodhound() { searchdata.bloodhoundengine = new Bloodhound({ datumTokenizer: function(d){return Bloodhound.tokenizers.whitespace(d.value);}, queryTokenizer: Bloodhound.tokenizers.whitespace, remote: { url: 'https://geodata.nationaalgeoregister.nl/locatieserver/suggest?rows=10&fq=type:woonplaats&q=%QUERY', wildcard: '%QUERY', transform: function(response){ return $.map(response.response.docs, function(item){ return { value : item.weergavenaam, id: item.id }; }); } } }); searchdata.bloodhoundengine.initialize(); // $(searchdata).trigger('engine-initialized'); }; function initSearch() { enableBloodhound(); enableTypeahead(); searchInputListeners(); } initSearch(); function getCoordinates(suggestion){ var plaats = suggestion.id; var url = 'https://geodata.nationaalgeoregister.nl/locatieserver/lookup?wt=json&id='+plaats; var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var myArr = JSON.parse(this.responseText); recenterMap(myArr); } }; xmlhttp.open("GET", url, true); xmlhttp.send(); }; function recenterMap(plaats){ var locatieString = plaats.response.docs[0].centroide_ll; var latlong = []; latlong.push(Number(locatieString.substring(6, 16)), Number(locatieString.substring(17, locatieString.length-1))); // console.log(latlong); map.jumpTo({ center: latlong, zoom: 15, speed: 1.2, minZoom: 12 }); }; <file_sep>/generate_geojson/generate_all_layers.sh #!/bin/bash ./export_admin_layer.sh ./export_infra_layer.sh ./export_label_layer.sh ./export_terrain_layer.sh ./export_urban_layer.sh ./export_water_layer.sh ./export_water-line_layer.sh <file_sep>/generate_geojson/export_label_layer.sh ogr2ogr -f GeoJSON /data/geojson/label_bgt.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 PG:"host=postgis port=5432 user=pdok_owner dbname=visdata password=<PASSWORD>" -sql "SELECT lod1, lod2, name, z_index, rotation, original_id, geom FROM visdata.labels_point WHERE original_source='BGT'" -lco COORDINATE_PRECISION=6 ogr2ogr -f GeoJSON /data/geojson/label_10.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 PG:"host=postgis port=5432 user=pdok_owner dbname=visdata password=<PASSWORD>" -sql "SELECT lod1, lod2, name, z_index, rotation, original_id, geom FROM visdata.labels_point WHERE (lod1 = 'residential' AND original_source != 'BGT') OR (lod1 != 'residential'AND original_source = 'TOP10NL')" -lco COORDINATE_PRECISION=6 ogr2ogr -f GeoJSON /data/geojson/label_50.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 PG:"host=postgis port=5432 user=pdok_owner dbname=visdata password=<PASSWORD>" -sql "SELECT lod1, lod2, name, z_index, rotation, original_id, geom FROM visdata.labels_point WHERE ( lod1 = 'residential' AND original_source != 'BGT' AND z_index >= 1) OR ( lod1 = 'water' AND original_source = 'TOP250NL') OR ( lod1 = 'functional' AND original_source = 'TOP50NL') OR ( lod1 = 'natural_areas' AND original_source = 'TOP250NL' )" -lco COORDINATE_PRECISION=6 ogr2ogr -f GeoJSON /data/geojson/label_100.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 PG:"host=postgis port=5432 user=pdok_owner dbname=visdata password=<PASSWORD>" -sql "SELECT lod1, lod2, name, z_index, rotation, original_id, geom FROM visdata.labels_point WHERE ( lod1 = 'residential' AND original_source != 'BGT' AND z_index >= 10) OR ( lod1 = 'water' AND original_source = 'TOP250NL') OR ( lod1 = 'functional' AND original_source = 'TOP100NL') OR ( lod1 = 'natural_areas' AND original_source = 'TOP250NL')" -lco COORDINATE_PRECISION=6 ogr2ogr -f GeoJSON /data/geojson/label_250.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 PG:"host=postgis port=5432 user=pdok_owner dbname=visdata password=<PASSWORD>" -sql "SELECT lod1, lod2, name, z_index, rotation, original_id, geom FROM visdata.labels_point WHERE ( lod1 = 'residential' AND original_source != 'BGT' AND z_index >= 100) OR ( lod1 != 'residential' AND original_source = 'TOP250NL') " -lco COORDINATE_PRECISION=6 ogr2ogr -f GeoJSON /data/geojson/label_500.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 PG:"host=postgis port=5432 user=pdok_owner dbname=visdata password=<PASSWORD>" -sql "SELECT lod1, lod2, name, z_index, rotation, original_id, geom FROM visdata.labels_point WHERE (lod1 = 'residential' AND original_source != 'BGT' AND z_index >= 1000 ) OR (lod1 != 'residential' AND original_source = 'TOP500NL')" -lco COORDINATE_PRECISION=6 ogr2ogr -f GeoJSON /data/geojson/label_1000.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 PG:"host=postgis port=5432 user=pdok_owner dbname=visdata password=<PASSWORD>" -sql "SELECT lod1, lod2, name, z_index, rotation, original_id, geom FROM visdata.labels_point WHERE (lod1 = 'residential' AND original_source != 'BGT' AND z_index >= 100000) OR (lod1 != 'residential' AND original_source = 'TOP1000NL')" -lco COORDINATE_PRECISION=6 # BGT # original_source = 'BGT' # TOP10 # voor lod1 = residential alles wat niet BGT is # voor lod1 != residential alles wat top10nl is # TOP50 # voor lod1 = residential AND original_source != BGT AND z_index > 10 # voor lod1 = water AND original_source = TOP250 # voor lod1 = functional AND original_source = TOP50 # voor lod1 = natural_areas AND original_source = TOP250 # TOP100 # voor lod1 = residential AND original_source != BGT AND z_index > 100 # voor lod1 = water AND original_source = TOP250 # voor lod1 = functional AND original_source = TOP100 # voor lod1 = natural_areas AND original_source = TOP250 # TOP250 # voor lod1 = residential AND original_source != BGT AND z_index > 100 # voor lod1 != residential original_source = TOP250 # TOP500 # voor lod1 = residential AND original_source != BGT AND z_index > 1000 # voor lod1 != residential original_source = TOP500 # TOP1000 # voor lod1 = residential AND original_source != BGT AND z_index > 100000 # voor lod1 != residential original_source = TOP1000
eb41b8b8acf3b4e768d3196d9621a526d7e5dfab
[ "JavaScript", "Shell" ]
4
Shell
skinkie/visdata
1bf7898f9149b058521f635e9b846e530897555b
3fa3fe75dda00a0fd5d5d85930bfa7fa8f91b124
refs/heads/master
<file_sep>package com.example.demo.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @RequestMapping("/hello") public String hello(){ return "hello"; //comment remote master } @RequestMapping("/hello2") public String hello2(){ return "hello2"; } @RequestMapping("/hello3") public String hello3(){ return "hello3"; } @RequestMapping("/hello4") public String hello4(){ return "hello4"; //master comment } @RequestMapping("/hello5") public String hello5(){ return "hello5";//branch feature1 comment add } }
e10a039ae6c7f807102f008c5d7935b0482037f2
[ "Java" ]
1
Java
sungjae77/demo
2b737b6593cce359418905224665cae885411f7d
d9e76c2ca1be59bfc69e30d09bdd8ba8ddd54f6c
refs/heads/master
<repo_name>zi-vi/AID1910<file_sep>/http_server.py """ httpserver 2.0 """ from socket import * from select import select class HTTPServer: def __init__(self,host='0.0.0.0',port=80,dir=None): self.host = host self.port = port self.address = (host,port) self.dir = dir self.rlist = [] self.wlist = [] self.xlist = [] # 直接创建套接字 self.create_socket() # 创建套接字 def create_socket(self): self.sockfd = socket() self.sockfd.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) self.sockfd.bind(self.address) # 启动服务 def serve_forever(self): self.sockfd.listen(3) print("Listen the port %d"%self.port) # IO多路服用方法监控IO self.rlist.append(self.sockfd) while True: rs,ws,xs=select(self.rlist, self.wlist, self.xlist) for r in rs: if r is self.sockfd: # 浏览器链接 c,addr = r.accept() self.rlist.append(c) else: # 处理具体请求 self.handle(r) # 处理客户端请求 def handle(self,connfd): request = connfd.recv(4096).decode() print(request) if __name__ == '__main__': # 通过HTTPServer类快速搭建服务 # 通过该服务让浏览器访问到我的网页 # 1. 使用流程 # 2. 需要用户确定的内容 # 用户决定的参数 HOST = '0.0.0.0' PORT = 8000 DIR = './static' httpd = HTTPServer(HOST,PORT,DIR) # 生成对象 httpd.serve_forever() # 启动服务
5962e477bb87a7654130fa7ccc3153a861c07791
[ "Python" ]
1
Python
zi-vi/AID1910
7c81c8bd105391202b70906f354b54ad46a62cb9
50d6cd2378dd608b06de834ab84324658a120ebe
refs/heads/master
<file_sep># prevayler-migration PoC on how to migrate prevayler-persisted objects. 1. Add version field 2. Override writeObject, readObject 3. Do migration in readObject <file_sep>package com.dgiger.model; import java.io.Serializable; public class Product implements Serializable { private static final long serialVersionUID = 1L; private final long id; private final String name; private final int price; private final int amount; public Product(long id, String name, int price, int amount) { this.id = id; this.name = name; this.price = price; this.amount = amount; } public long getId() { return id; } public String getName() { return name; } @Override public String toString() { return "Product{" + "id=" + id + ", name='" + name + '\'' + ", price=" + price + ", amount=" + amount + '}'; } } <file_sep>package com.dgiger.commands; import com.dgiger.model.Product; import com.dgiger.model.Supermarket; import org.prevayler.SureTransactionWithQuery; import org.prevayler.Transaction; import org.prevayler.TransactionWithQuery; import java.util.Date; public class SellProduct implements SureTransactionWithQuery<Supermarket, Product> { private static final long serialVersionUID = 1L; private long id; public SellProduct(long id) { this.id = id; } @Override public Product executeAndQuery(Supermarket supermarket, Date executionTime) { return supermarket.sellProduct(id); } } <file_sep>package com.dgiger; import com.dgiger.commands.BuyProduct; import com.dgiger.commands.SellProduct; import com.dgiger.model.Product; import com.dgiger.model.Supermarket; import org.prevayler.Prevayler; import org.prevayler.PrevaylerFactory; import java.io.BufferedReader; import java.io.Console; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; import java.util.regex.Pattern; public class Main { public static void main(String[] args) throws Exception { System.out.println("Welcome to Supermarket Manager."); Prevayler<Supermarket> supermarket = PrevaylerFactory.createPrevayler(new Supermarket()); Main main = new Main(supermarket); main.run(); } Prevayler<Supermarket> prevayler; Supermarket supermarket; public Main(Prevayler<Supermarket> prevayler) { this.prevayler = prevayler; this.supermarket = prevayler.prevalentSystem(); } public void run() throws IOException { BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); boolean running = true; while (running) { System.out.print("> "); String command = console.readLine(); running = parseCommand(command); } } private boolean parseCommand(String command) { boolean running = true; String[] params = command.split(Pattern.quote(" ")); if (params.length == 0) return true; switch (params[0]) { case "buy": Product boughtProduct = prevayler.execute(new BuyProduct(params[1], Integer.valueOf(params[2]), Integer.valueOf(params[3]))); System.out.println("Bought: " + boughtProduct); break; case "sell": Product soldProduct = prevayler.execute(new SellProduct(Long.valueOf(params[1]))); System.out.println("Sold: " + soldProduct); break; case "list": supermarket.getProducts() .forEach(p -> System.out.println(p.toString())); break; case "snap": try { prevayler.takeSnapshot(); System.out.println("Snapshot taken"); } catch (Exception e) { e.printStackTrace(); } break; case "quit": running = false; break; default: System.out.println("Unknown command"); break; } return running; } }
0a1cbb678485e397a855783d1a942f836b150211
[ "Markdown", "Java" ]
4
Markdown
gigerdo/prevayler-migration
3411164f9f9baf4c231946506c178bb509eeebcf
13c6a909bcee4f23c26d92dc461cb7e2c4627a60
refs/heads/master
<file_sep>{{extend 'layout.html'}} <h2>Bem-vindo ao sistema de avaliação funcional e institucional !</h2> Prezado, Sr.(a) {{=session.dadosServidor["NOME_SERVIDOR"]}},<br /> Por favor selecione abaixo um períodos de exercício para avaliação instucional e o tipo de avaliação funcional que será realizada. <span class='centered'>{{=form}}</span><file_sep> from gluon.tools import Crud from tables import * @auth.requires(auth.has_membership('PROGEPE') or auth.has_membership('DTIC')) def avaliacoes(): avaliacoes = db(db.AVAL_ANEXO_1).select(orderby=db.AVAL_ANEXO_1.ANO_EXERCICIO|db.AVAL_ANEXO_1.SIAPE_CHEFIA) table = TableAvaliacoesRealizadas(avaliacoes) return dict( avaliacoes=avaliacoes, table=table.printTable() ) @auth.requires(auth.has_membership('PROGEPE') or auth.has_membership('DTIC')) def naoFinalizadas(): from gluon.tools import Crud crud = Crud(db) avaliacaoes = crud.select(db.AVAL_ANEXO_1, db.AVAL_ANEXO_1.CIENTE_SERVIDOR == 'F', fields=[ db.AVAL_ANEXO_1.id, db.AVAL_ANEXO_1.ANO_EXERCICIO, db.AVAL_ANEXO_1.SIAPE_SERVIDOR, db.AVAL_ANEXO_1.SIAPE_CHEFIA ] ) return dict(avaliacoes=avaliacaoes) @auth.requires(auth.has_membership('PROGEPE') or auth.has_membership('DTIC')) def gerenciarLista(): query = db.SUBORDINADOS_EXCLUIR.on(db.SUBORDINADOS_EXCLUIR.TIPO==db.TIPOS_EXCLUSAO.id) busca = SQLFORM.grid( db.SUBORDINADOS_EXCLUIR, left=query, deletable=True, editable=False, create=False, fields=[ db.SUBORDINADOS_EXCLUIR.SIAPE_SERVIDOR, db.SUBORDINADOS_EXCLUIR.SIAPE_CHEFIA_TITULAR, db.SUBORDINADOS_EXCLUIR.OBSERVACAO, db.TIPOS_EXCLUSAO.TIPO ], orderby=db.SUBORDINADOS_EXCLUIR.id, paginate=50 ) return dict(busca=busca)<file_sep># -*- coding: utf-8 -*- from gluon import current db.define_table('PERIODOS_ABERTOS_AVAL', Field('ANO_EXERCICIO', 'integer'), Field('DT_INICIO', 'date'), Field('DT_FIM', 'date'), primarykey=['ANO_EXERCICIO'] ) db.define_table('AVAL_ANEXO_1', Field('NOTA_FINAL', 'float', readable=True, writable=True), Field('DATA_DOCUMENTO', 'date', readable=True, required=True, writable=True, notnull=True), Field('ANO_EXERCICIO', db.PERIODOS_ABERTOS_AVAL), Field('SIAPE_CHEFIA', 'integer', readable=True, notnull=True), Field('CIENTE_CHEFIA', 'string', length=1, writable=True, readable=True, default='F'), Field('SUGESTOES_CHEFIA', 'string', length=4096, writable=True, readable=True), Field('INFO_COMPLEMENTAR_CHEFIA', 'string', length=4096, writable=True, readable=True), Field('NOTA_ASSIDUIDADE_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_COMPROMISSO_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_CONHECIMENTO_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_DESENVOLVIMENTO_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_INICIATIVA_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_ORGANIZACAO_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_PRODUTIVIDADE_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_RESPONSABILIDADE_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_RELACIONAMENTO_CHEFIA', 'integer', required=False, requires=True, writable=True, readable=True), Field('SIAPE_SERVIDOR', 'integer', notnull=True), Field('CIENTE_SERVIDOR', 'string', length=1, writable=True, readable=True, default='F'), Field('SUGESTOES_SERVIDOR', 'string', length=4096, writable=True, readable=True), Field('INFO_COMPLEMENTAR_SERVIDOR', 'string', length=4096, writable=True, readable=True), Field('NOTA_ASSIDUIDADE', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_COMPROMISSO', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_CONHECIMENTO', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_DESENVOLVIMENTO', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_INICIATIVA', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_ORGANIZACAO', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_PRODUTIVIDADE', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_RESPONSABILIDADE', 'integer', required=False, requires=True, writable=True, readable=True), Field('NOTA_RELACIONAMENTO', 'integer', required=False, requires=True, writable=True, readable=True), Field('FATOR_ILUMINACAO', 'string', length=1), Field('FATOR_TEMPERATURA', 'string', length=1), Field('FATOR_RUIDOS', 'string', length=1), Field('FATOR_INSTALACOES', 'string', length=1), Field('FATOR_EQUIPAMENTOS', 'string', length=1), Field('INFO_COMPLEMENTARES', 'string', length=4096) ) db.define_table("TIPOS_EXCLUSAO", Field("TIPO", "string"), Field("DESCRICAO", "text") ) db.define_table("SUBORDINADOS_EXCLUIR", Field('SIAPE_SERVIDOR', 'integer'), Field('SIAPE_CHEFIA_TITULAR', 'integer'), Field('OBSERVACAO', 'text'), Field('UNIDADE_EXERCICIO_SERVIDOR', 'string'), Field('TIPO', db.TIPOS_EXCLUSAO) ) current.db = db from gluon.tools import Auth, Service, PluginManager auth = Auth(db) service = Service() plugins = PluginManager() # # create all tables needed by auth if not custom tables auth.define_tables(username=True) auth.settings.create_user_groups = False # # configure email mail = auth.settings.mailer # mail.settings.server = 'logging' if request.is_local else 'smtp.gmail.com:587' mail.settings.server = 'smtp.gmail.com:587' # 'logging' mail.settings.sender = '<EMAIL>' # your email mail.settings.login = '<EMAIL>:' + emailPass # your credentials or None current.mail = mail # Se a requisição for local, utiliza base auth de teste, caso contrário, utiliza LDAP from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.login_methods = [ldap_auth(mode='uid', server='10.224.16.100', base_dn='ou=people,dc=unirio,dc=br')] from Servidor import Servidor db.auth_user.username.label = 'CPF' auth.settings.actions_disabled = ['register', 'retrieve_username', 'remember_me', 'profile', 'change_password', 'request_reset_password'] auth.settings.remember_me_form = False # login_next Não está funcionando e segundo a documentação, deveria funcionar auth.settings.login_next = URL('default', 'mensagem') # Faço o redirect para URL acima, no método abaixo auth.settings.login_onaccept = Servidor().getDadosToSession() current.auth = auth piwik_host = '192.168.3.11' piwik_idSite = 1<file_sep># coding=utf-8 from Avaliacao import Avaliacao from FormAvaliacao import FormAvaliacao from datetime import date @auth.requires_login() def index(): if not session.avaliacao: session.flash = 'Você precisa selecionar uma avaliação e um ano de exercício para acessar este formulário.' redirect(URL('default', 'index')) if not session.avaliacaoTipo == 'autoavaliacao': session.flash = 'Este formulário não pode ser acessado pela chefia.' redirect(URL('default', 'index')) form = FormAvaliacao(session.servidorAvaliado).formAnexo2 form.add_button('Última Página', URL('anexo1', 'pagina3')) if form.process().accepted: avaliacao = Avaliacao(session.ANO_EXERCICIO, session.servidorAvaliado['SIAPE_SERVIDOR']) avaliacao.salvarModificacoes(form.vars) redirect(URL('anexo1', 'pagina2')) return dict(form=form)<file_sep># coding=utf-8 from gluon.html import * from Subordinados import Subordinados from gluon.validators import IS_NOT_EMPTY def index(): if not session.subordinados: session.flash = "Você não possui subordinados." redirect(URL('default', 'index')) session.avaliacao = None items = [] for subordinado in session.subordinados: items.append(LI( INPUT(_type="checkbox", _name="subordinados", _value=subordinado['SIAPE_SERVIDOR']) + " " + A(subordinado['NOME_SERVIDOR'], _href=URL('anexo1', 'index', vars={'SIAPE_SERVIDOR': subordinado['SIAPE_SERVIDOR']})) )) form = FORM( UL(items), BR(), TEXTAREA(_placeholder="Opcional: Insira uma justificativa que ajude a interpretar a fonte do problema.", _name="OBSERVACAO"), P("Clique no botão abaixo para remover os seridores da lista."), INPUT(_type="submit", _value=db(db.TIPOS_EXCLUSAO.id == 1).select(db.TIPOS_EXCLUSAO.TIPO).first().TIPO, _name="submit1"), INPUT(_type="submit", _value=db(db.TIPOS_EXCLUSAO.id == 2).select(db.TIPOS_EXCLUSAO.TIPO).first().TIPO, _name="submit2") ) if form.process().accepted: subordinados = Subordinados() siapes = form.vars.subordinados if isinstance(form.vars.subordinados, list) else [form.vars.subordinados] # TODO: 1 if bla else 2... GAMBIARRA DO CARALHO ! Remover esta merda e os dois botões acima. subordinados.removerSubordinados( siapes, 1 if form.vars.submit1 else 2, form.vars.OBSERVACAO ) redirect(URL('subordinados', 'index')) session.flash = "Servidores removidos com sucesso." return dict(lista=form) def informarProgepe(): from MailAvaliacao import MailPROGEPE form = FORM( LABEL("SIAPE: ", _for='siape'), INPUT(_name='siape', requires=IS_NOT_EMPTY()), LABEL("Nome: ", _for='nome'), INPUT(_name='nome', requires=IS_NOT_EMPTY()), BR(), INPUT(_type='submit', _value='Enviar comunicado') ) if form.process().accepted: email = MailPROGEPE(session.dadosServidor) email.sendInformativoPROGEP(form.vars.siape, form.vars.nome) session.flash = 'Comunicado enviado com sucesso para PROGEPE.' redirect(URL('subordinados', 'index')) return dict(form=form) <file_sep># coding=utf-8 from SIEServidores import SIEChefiasImediatas, SIESubordinados from gluon import current, redirect, URL class Servidor(object): @property def isChefia(self): return True if current.session.subordinados else False @property def __dadosChefiaImediata(self): APIChefias = SIEChefiasImediatas() return APIChefias.getChefiaForCPF(current.session.auth.user.username) @property def __subordinados(self): APISubordinados = SIESubordinados() # TODO para fins de desenvolvimento. Alterar linha para testes finais e produção subordinados = APISubordinados.getSubordinados(current.session.auth.user.username) # subordinados = APISubordinados.getSubordinados('12467599779') excluidos = current.db(current.db.SUBORDINADOS_EXCLUIR.SIAPE_CHEFIA_TITULAR==current.session.dadosServidor["SIAPE_SERVIDOR"]).select() # excluidos = current.db(current.db.SUBORDINADOS_EXCLUIR.SIAPE_CHEFIA_TITULAR==current.session.dadosServidor["SIAPE_CHEFIA_TITULAR"]).select() for excluido in excluidos: for subordinado in subordinados: if excluido.SIAPE_SERVIDOR == subordinado["SIAPE_SERVIDOR"]: subordinados.remove(subordinado) return subordinados def getDadosToSession(self): """ Método invocado sempre que um usuário se autenticar no sistema. Ao se autenticar, buscam-se os dados do servidor e de suas chefias imediatas, utilizando o CPF. """ if current.session.auth and not current.session.dadosServidor: current.session.dadosServidor = self.__dadosChefiaImediata if not current.session.dadosServidor: current.session.flash = "Os dados da sua chefia não foram encontrados. Entre em contato com a PROGEP." current.auth.logout() subordinados = self.__subordinados if subordinados: # Se o servidor possuir subordinados, armazenamos os mesmos, ordenados ASC por NOME_SUBORDINADO from operator import itemgetter current.session.subordinados = sorted(subordinados, key=itemgetter('NOME_SERVIDOR')) redirect(URL('default', 'mensagem'))<file_sep># -*- coding: utf-8 -*- from Avaliacao import Avaliacao from gluon import current from gluon.validators import IS_INT_IN_RANGE, IS_NOT_EMPTY from gluon.html import * class FormAvaliacao(object): def __init__(self, servidor): self.servidor = servidor # TODO Por causa de um UnicodeEncodeError, foi necessário colocar essa gambi. Resolver ou utilizar DBSM.REMOVEACENTOS na View self.tipo = current.session.avaliacaoTipo @property def formIdentificao(self): return FORM( FIELDSET( LEGEND('1. Identificação do Servidor Avaliado'), LABEL('Nome: ', _for='nome'), INPUT(_name='NOME_SERVIDOR', _type='text', _value=self.servidor['NOME_SERVIDOR'].encode('utf8'), _readonly='true'), BR(), LABEL('Matrícula SIAPE: ', _for='siape'), INPUT(_name='SIAPE_SERVIDOR', _type='text', _value=self.servidor['SIAPE_SERVIDOR'], _readonly='true'), BR(), LABEL('Cargo: ', _for='cargo'), INPUT(_name='CARGO_SERVIDOR', _type='text', _value=self.servidor['CARGO_SERVIDOR'].encode('utf8'), _readonly='true'), BR(), LABEL('Unidade em exercício: ', _for='unidade'), INPUT(_name='UNIDADE_EXERCICIO_SERVIDOR', _type='text', _value=self.servidor['UNIDADE_EXERCICIO_SERVIDOR'].encode('utf8'), _readonly='true'), BR(), LABEL('E-mail: ', _for='EMAIL_SERVIDOR'), INPUT(_name='EMAIL_SERVIDOR', _type='text', _value=self.servidor['EMAIL_SERVIDOR'].encode('utf8') if self.servidor['EMAIL_SERVIDOR'] else "Não possui e-mail cadastrado.", _readonly='true'), BR(), _class='dadosServidor'), FIELDSET( LEGEND('2. Identificação da Chefia Imediata'), LABEL('Nome: ', _for='nome'), INPUT(_name='CHEFIA_TITULAR', _type='text', _value=self.servidor['CHEFIA_TITULAR'].encode('utf8'), _readonly='true'), BR(), LABEL('Matrícula SIAPE: ', _for='siape'), INPUT(_name='SIAPE_CHEFIA', _type='text', _value=self.servidor['SIAPE_CHEFIA_TITULAR'], _readonly='true'), BR(), LABEL('Unidade em exercício: ', _for='unidade'), INPUT(_name='UNIDADE_EXERCICIO_CHEFIA', _type='text', _value=self.servidor['UNIDADE_EXERCICIO_CHEFIA'].encode('utf8'), _readonly='true'), BR(), LABEL('E-mail: ', _for='EMAIL_CHEFIA_TITULAR'), INPUT(_name='EMAIL_CHEFIA_TITULAR', _type='text', _value=self.servidor['EMAIL_CHEFIA_TITULAR'].encode('utf8') if self.servidor['EMAIL_CHEFIA_TITULAR'] else "Não possui e-mail cadastrado.", _readonly='true'), BR(), _class='dadosServidor'), BR(), BR(), INPUT(_value='Próximo', _type='submit') ) @property def resumoTable(self): if not self.tipo == 'subordinados': return TABLE( THEAD( TR( TD('Fatores'), TD('Pontos por Fator**') , _class='tableHeader' ) ), TBODY( TR( TD('1 - Assiduidade/Pontualidade', _class='cellTitle'), TD(Avaliacao.pontosPorFator('ASSIDUIDADE')) ), TR( TD('2 - Compromisso com qualidade', _class='cellTitle'), TD(Avaliacao.pontosPorFator('COMPROMISSO')) ), TR( TD('3 - Conhecimento', _class='cellTitle'), TD(Avaliacao.pontosPorFator('CONHECIMENTO')) ), TR( TD('4 - Cooperação/Desenvolvimento', _class='cellTitle'), TD(Avaliacao.pontosPorFator('DESENVOLVIMENTO')) ), TR( TD('5 - Iniciativa', _class='cellTitle'), TD(Avaliacao.pontosPorFator('INICIATIVA')) ), TR( TD('6 - Organização/Planejamento', _class='cellTitle'), TD(Avaliacao.pontosPorFator('ORGANIZACAO')) ), TR( TD('7 - Produtividade/Eficiência', _class='cellTitle'), TD(Avaliacao.pontosPorFator('PRODUTIVIDADE')) ), TR( TD('8 - Responsabilidade', _class='cellTitle'), TD(Avaliacao.pontosPorFator('RESPONSABILIDADE')) ), TR( TD('9 - Relacionamento Interpessoal', _class='cellTitle'), TD(Avaliacao.pontosPorFator('RELACIONAMENTO')) ), TR( TD('Nota final'), TD(Avaliacao.notaFinal()) , _class='tableFooter') ) , _class='greyTableSmall') def notaForColumn(self, column): """ :rtype : int :param column: Nome de uma :return: inteiro relativo a nota requisitada """ if current.session.avaliacao and column in current.session.avaliacao and current.session.avaliacao[column]: return int(current.session.avaliacao[column]) def contentForColumn(self, column): """ Dada uma determianda coluna, retorna a string com seu valor, ou uma string vazia :param column: :return: """ if current.session.avaliacao and column in current.session.avaliacao and current.session.avaliacao[column]: return current.session.avaliacao[column] def columnShouldBeReadonlyForCurrentSession(self, column): """ Caso o tipo de avaliação seja uma Autoavaliação e a coluna seja do tipo CHEFIA, o campo deve ser readonly para a sessão em questão. O mesmo se aplica, caso o usuário em questão seja um chefe avaliando um subordinado. Caso o campo deva ser preenchido pelo servidor da sessao mas o mesmo já finalizou a sua avaliacao e deu o seu CIENTE, o campo deve ser apresentado como readonly :rtype : bool :param column: uma coluna do banco AVAL_ANEXO_1 :return: """ if Avaliacao.columnNeedChefia(column) and self.tipo == 'autoavaliacao': return True elif not Avaliacao.columnNeedChefia(column) and self.tipo == 'subordinados': return True elif not Avaliacao.columnNeedChefia(column) and self.tipo == 'autoavaliacao': if 'CIENTE_SERVIDOR' in current.session.avaliacao and current.session.avaliacao['CIENTE_SERVIDOR'] == 'T': return True elif Avaliacao.columnNeedChefia(column) and self.tipo == 'subordinados': if 'CIENTE_CHEFIA' in current.session.avaliacao and current.session.avaliacao['CIENTE_SERVIDOR'] == 'T': return True def printNotasSelectBox(self, column): """ Dada uma sessão de usuário e o tipo de avaliação, a função retorna um SELECT para que seja efetuada a seleção de uma nota, caso o usuário possa editar ou um INPUT com atributo readonly. :type column: str :param column: uma coluna do banco AVAL_ANEXO_1 :rtype: gluon.html.INPUT :return: SELECT ou INPUT de uma nota """ extraClass = "chefia" if Avaliacao.columnNeedChefia(column) else "servidor" if self.columnShouldBeReadonlyForCurrentSession(column): return INPUT(_name=column, _value=self.notaForColumn(column), _type='text', _readonly=ON, _class='notaField ' + extraClass) else: # TODO refazer forma como essa lista e opção está sendo criar por solução mais elegante options = [""] options.extend(range(0, 11)) return SELECT(options, _name=column, value=self.notaForColumn(column), _class='notaSelect ' + extraClass, requires=IS_INT_IN_RANGE(0, 11, error_message='A nota deve ser um número entre 0 e 10')) def printTextarea(self, column): """ :type column: str :param column: uma coluna do banco AVAL_ANEXO_1 :rtype : gluon.html.TEXTAREA :return: TEXTAREA com o conteúdo de uma coluna """ if self.columnShouldBeReadonlyForCurrentSession(column): return TEXTAREA(_name=column, value=self.contentForColumn(column), _readonly=ON) else: return TEXTAREA(_name=column, value=self.contentForColumn(column)) def printCienteInput(self): """ :rtype : gluon.html.DIV """ if self.tipo == 'subordinados': column = 'CIENTE_CHEFIA' elif self.tipo == 'autoavaliacao': column = 'CIENTE_SERVIDOR' if not Avaliacao.isCiente(): # Removi _checked=v por não achar necessário. Caso haja algum problema, reavaliar necessidade return INPUT(_name=column, _value='T', _type='checkbox', requires=IS_NOT_EMPTY()) else: return IMG(_src=URL('static/images', 'checked.png'), _alt='Ciente') @property def formPagina2(self): return FORM( TABLE( TR( TD('Fatores', _rowspan=2), TD('Muito Bom', BR(), '9 - 10', _rowspan=2), TD('Bom', BR(), '7 - 8', _rowspan=2), TD('Regular', BR(), '5 - 6', _rowspan=2), TD('Ruim', BR(), '0 - 4', _rowspan=2), TD('Pontos', _colspan=2), TD('Pontos por Fator**', _rowspan=2), _class='tableHeader' ), TR( TD('Servidor'), TD('Chefia'), _class='tableHeader' ), TR( TD( SPAN('1. Assiduidade/Pontualidade', _class='cellTitle'), SPAN( 'Comparecimento com regularidade e exatidão ao lugar onde tem de desempenhar suas tarefas em horário determinado') ), TD('Não registra faltas nem atrasos'), TD( 'Suas faltas, saídas antecipadas e/ou atrasos ocorrem de maneira justificada, dentro dos limites possíveis.'), TD( 'Suas faltas, saídas antecipadas e/ou atrasos as vezes ultrapassam os limites possíveis da Instituição, às vezes injustificados.'), TD( 'Suas faltas, saídas antecipadas e/ou atrasos são injustificados ultrapassando os limites da Instituição.'), TD(self.printNotasSelectBox('NOTA_ASSIDUIDADE')), # db.NOTA_ASSIDUIDADE TD(self.printNotasSelectBox('NOTA_ASSIDUIDADE_CHEFIA')), # db.NOTA_ASSIDUIDADE_CHEFIA TD(SPAN('10', _class='ppf NOTA_ASSIDUIDADE')) ), TR( TD( SPAN('2. Compromisso com qualidade', _class='cellTitle'), SPAN('Trabalho executado com exatidão, clareza e correção dentro de prazos estabelecidos') ), TD( 'Realiza suas atividades sempre visando o compromisso com a qualidade do trabalho, reconhecendo as falhas como desafio do processo que precisam ser superados'), TD( 'Procura realizar suas atividades visando a qualidade do trabalho, mas nem sempre os prazos são respeitados'), TD( 'Realiza esforços para realizar as atividades com qualidade, necessitando de constante supervisão para superar as falhas e cumprir prazos'), TD('Não se esforça em realizar suas atividades com compromisso e qualidade'), TD(self.printNotasSelectBox('NOTA_COMPROMISSO')), # db.NOTA_COMPROMISSO TD(self.printNotasSelectBox('NOTA_COMPROMISSO_CHEFIA')), # db.NOTA_ASSIDUIDADE_CHEFIA TD(SPAN('10', _class='ppf NOTA_COMPROMISSO')) ), TR( TD( SPAN('3. Conhecimento', _class='cellTitle'), SPAN('Domínio de conhecimentos teóricos e práticos para a execução das tarefas') ), TD( 'Apresenta conhecimentos teóricos práticos adequados. Procura sempre manter-se atualizado em relação aos conhecimentos de sua área'), TD( 'Apresenta conhecimentos necessários para o desempenho das atividades. Demonstra interesse em adquirir novos conhecimentos em sua área'), TD( 'Apresenta conhecimentos “essenciais” para o desempenho das suas atividades e só adquire novos conhecimentos quando há exigência superior'), TD( 'Não apresenta conhecimentos para o desempenho de suas atividades e não demonstra interesse em adquirir novos conhecimentos em sua área'), TD(self.printNotasSelectBox('NOTA_CONHECIMENTO')), TD(self.printNotasSelectBox('NOTA_CONHECIMENTO_CHEFIA')), TD(SPAN('10', _class='ppf NOTA_CONHECIMENTO')) ), TR( TD( SPAN('4. Cooperação/Desenvolvimento', _class='cellTitle'), SPAN('Colaboração com o grupo de trabalho e envolvimento nas tarefas a serem executadas') ), TD('Coopera e se envolve nas atividades, ultrapassando as expectativas.'), TD('Coopera e se envolve nas atividades de maneira satisfatória'), TD( 'Nem sempre coopera e se envolve com as atividades . Precisa, por vezes, ser chamado a colaborar'), TD('Não coopera. Precisa ser constantemente solicitado mesmo nas atividades rotineiras'), TD(self.printNotasSelectBox('NOTA_DESENVOLVIMENTO')), TD(self.printNotasSelectBox('NOTA_DESENVOLVIMENTO_CHEFIA')), TD(SPAN('10', _class='ppf NOTA_DESENVOLVIMENTO')) ), TR( TD( SPAN('5. Iniciativa', _class='cellTitle'), SPAN('Capacidade de propor ou empreender uma ação, sem que tenha sido solicitado para isso') ), TD('Antecipa-se na resolução de problemas que influenciam diretamente no seu trabalho'), TD('Frequentemente resolve os problemas pertinentes a sua função'), TD( 'Tem pouca iniciativa. De vez em quando resolve pequenos problemas, mas na maioria das vezes aguarda ordens'), TD( 'Não faz nada sem que tenha sido solicitado ou explicado. Deixa pequenos problemas tomarem vulto aguardando solução de alguém'), TD(self.printNotasSelectBox('NOTA_INICIATIVA')), TD(self.printNotasSelectBox('NOTA_INICIATIVA_CHEFIA')), TD(SPAN('10', _class='ppf NOTA_INICIATIVA')) ), TR( TD( SPAN('6. Organização/Planejamento', _class='cellTitle'), SPAN( 'Capacidade de estabelecer prioridades e planejar ações na melhor forma de execução das tarefas') ), TD('Planeja e organiza as ações de sua área de trabalho visando o desenvolvimento de toda UNIRIO'), TD('Planeja e organiza as ações relacionadas ao desenvolvimento de sua área de trabalho'), TD('Planeja e/ou organiza as ações de sua área de trabalho necessitando constante revisão'), TD('Não planeja e organiza as ações de sua área de trabalho'), TD(self.printNotasSelectBox('NOTA_ORGANIZACAO')), TD(self.printNotasSelectBox('NOTA_ORGANIZACAO_CHEFIA')), TD(SPAN('10', _class='ppf NOTA_ORGANIZACAO')) ), TR( TD( SPAN('7. Produtividade/Eficiência', _class='cellTitle'), SPAN( 'Quantidade de trabalho realizado, dentro dos padrões estabelecidos para a função utilizando os recursos necessários.') ), TD('Realiza as tarefas atribuídas com total aproveitamento dos recursos'), TD('Realiza as tarefas atribuídas com satisfatório aproveitamento dos recursos'), TD( 'Realiza a maior parte das tarefas atribuídas utilizando os recursos de forma pouco satisfatória'), TD('Realiza as tarefas atribuídas com dificuldade e utiliza os recursos insatisfatoriamente'), TD(self.printNotasSelectBox('NOTA_PRODUTIVIDADE')), TD(self.printNotasSelectBox('NOTA_PRODUTIVIDADE_CHEFIA')), TD(SPAN('10', _class='ppf NOTA_PRODUTIVIDADE')) ), TR( TD( SPAN('8. Responsabilidade', _class='cellTitle'), SPAN('Cumprimento dos deveres e obrigações relacionados ao exercício das tarefas') ), TD('Destaca-se pelo cumprimento dos deveres e obrigações no que se refere ao trabalho'), TD('Cumpre satisfatoriamente seus deveres e obrigações no que se refere ao trabalho'), TD('Nem sempre cumpre seus deveres e obrigações no que se refere ao trabalho'), TD('Não se empenha em cumprir seus deveres e obrigações no que se refere ao trabalho'), TD(self.printNotasSelectBox('NOTA_RESPONSABILIDADE')), TD(self.printNotasSelectBox('NOTA_RESPONSABILIDADE_CHEFIA')), TD(SPAN('10', _class='ppf NOTA_RESPONSABILIDADE')) ), TR( TD( SPAN('9. Relacionamento Interpessoal', _class='cellTitle'), SPAN( 'Habilidade no trato com pessoas independente do nível hierárquico, profissional ou social') ), TD( 'Sabe lidar e estabelecer relações com as diferentes pessoas no ambiente de trabalho. È um facilitador'), TD( 'Interage com os colegas e chefia de trabalho com respeito e colaboração, facilitando o trabalho em equipe'), TD('Se relaciona com respeito ao grupo de trabalho, interagindo somente quando solicitado'), TD('Assume comportamentos conflituosos no grupo de trabalho gerando constante insatisfação.'), TD(self.printNotasSelectBox('NOTA_RELACIONAMENTO')), TD(self.printNotasSelectBox('NOTA_RELACIONAMENTO_CHEFIA')), TD(SPAN('10', _class='ppf NOTA_RELACIONAMENTO')) ), _class='greyTable' ), INPUT(_value='Próximo', _type='submit'), ) @property def formPagina3(self): return FORM( FIELDSET( LEGEND('10. Conclusões e informações complementares sobre o desempenho do servidor avaliado'), LABEL('Servidor: ', _for='INFO_COMPLEMENTAR_SERVIDOR'), self.printTextarea('INFO_COMPLEMENTAR_SERVIDOR'), BR(), LABEL('Chefia: ', _for='INFO_COMPLEMENTAR_CHEFIA'), BR(), self.printTextarea('INFO_COMPLEMENTAR_CHEFIA') ), FIELDSET( LEGEND('11. Sugestões para melhoria do desempenho do servidor avaliado'), LABEL('Servidor: ', _for='SUGESTOES_SERVIDOR'), self.printTextarea('SUGESTOES_SERVIDOR'), BR(), LABEL('Chefia: ', _for='SUGESTOES_CHEFIA'), BR(), self.printTextarea('SUGESTOES_CHEFIA') ), FIELDSET( LEGEND('12. Resultado da avaliação de desempenho individual'), DIV('Declaro que li e concordo com todos os itens desta avaliação: ', self.printCienteInput() , _class='centered important' ) ), INPUT(_value='Enviar', _type='submit', _disabled=Avaliacao.isFinalizada()) ) def printAnexo2RadioOptions(self, column): """ :rtype : list :param column: uma coluna do banco AVAL_ANEXO_1 :return: A list of form components """ content = [] checkedValue = self.contentForColumn(column) isReadonly = self.columnShouldBeReadonlyForCurrentSession(column) fatores = {"s": "Adequada", "n": "Inadequada"} if not Avaliacao.isCiente(): content.append( INPUT(_name=column, _type='radio', _value='s', requires=IS_NOT_EMPTY(), _disabled=isReadonly, value=checkedValue)) content.append('Adequada') content.append( INPUT(_name=column, _type='radio', _value='n', requires=IS_NOT_EMPTY(), _disabled=isReadonly, value=checkedValue)) content.append('Inadequada') else: content.append(fatores[checkedValue]) return content @property def formAnexo2(self): return FORM( FIELDSET( LEGEND('2. Condições de trabalho oferecidas pela instituição'), LABEL('Iluminação: ', _for='p1'), TAG[''](self.printAnexo2RadioOptions('FATOR_ILUMINACAO')), BR(), LABEL('Temperatura: ', _for='p2'), TAG[''](self.printAnexo2RadioOptions('FATOR_TEMPERATURA')), BR(), LABEL('Ruídos: ', _for='p3'), TAG[''](self.printAnexo2RadioOptions('FATOR_RUIDOS')), BR(), LABEL('Equipamentos: ', _for='p4'), TAG[''](self.printAnexo2RadioOptions('FATOR_EQUIPAMENTOS')), BR(), LABEL('Instalações de trabalho: ', _for='p5'), TAG[''](self.printAnexo2RadioOptions('FATOR_INSTALACOES')), BR(), ), FIELDSET( LEGEND('3. Informações complementares sobre entraves que atrapalham o desenvolvimento das atividades'), self.printTextarea('INFO_COMPLEMENTARES') ), INPUT(_type='submit', _value='Próximo'), _class='anexo2' ) <file_sep># coding=utf-8 from gluon import current, redirect from gluon.html import URL from MailAvaliacao import MailSubordinados class Subordinados(object): def __init__(self): self.subordinados = current.session.subordinados def removerSubordinados(self, siapes, tipo, observacao=None): """ :type subordinados: list :param subordinados: Lista de subordinados a serem removidos """ # TODO Procurar forma mais eficiente de realizar essa busca for siape in siapes: for subordinado in self.subordinados: if siape == str(subordinado["SIAPE_SERVIDOR"]): params = { "SIAPE_SERVIDOR": subordinado["SIAPE_SERVIDOR"], "SIAPE_CHEFIA_TITULAR": subordinado["SIAPE_CHEFIA_TITULAR"], "UNIDADE_EXERCICIO_SERVIDOR": subordinado["SIAPE_CHEFIA_TITULAR"], "OBSERVACAO": observacao, "TIPO": tipo } current.db.SUBORDINADOS_EXCLUIR.insert(**params) current.db.commit() self.subordinados.remove(subordinado) try: email = MailSubordinados( subordinado, current.db(current.db.TIPOS_EXCLUSAO.id == tipo).select(current.db.TIPOS_EXCLUSAO.TIPO).first().TIPO, observacao) email.sendSubordinadoRemocaoMail() except Exception: current.session.flash = "Um erro ocorreu durante o envio de e-mail de confirmação de remoção de subordinado." redirect(URL('subordinados', 'index')) <file_sep># coding=utf-8 import pygal from pygal.style import CleanStyle from statistics import mean, median, mode def index(): charts = { "Fatores ": A(IMG(_src=URL('estatisticas', 'fatores')), _href=URL('estatisticas', 'fatores')), "Notas ": A(IMG(_src=URL('estatisticas', 'notas')), _href=URL('estatisticas', 'notas')), } return dict(charts=charts) def notas(): fields = ["NOTA_ASSIDUIDADE_CHEFIA", "NOTA_COMPROMISSO_CHEFIA", "NOTA_CONHECIMENTO_CHEFIA", "NOTA_DESENVOLVIMENTO_CHEFIA", "NOTA_INICIATIVA_CHEFIA", "NOTA_ORGANIZACAO_CHEFIA", "NOTA_PRODUTIVIDADE_CHEFIA", "NOTA_RESPONSABILIDADE_CHEFIA", "NOTA_ASSIDUIDADE", "NOTA_COMPROMISSO", "NOTA_CONHECIMENTO", "NOTA_DESENVOLVIMENTO", "NOTA_INICIATIVA", "NOTA_ORGANIZACAO", "NOTA_PRODUTIVIDADE", "NOTA_RESPONSABILIDADE", "NOTA_RELACIONAMENTO"] avals = db(db.AVAL_ANEXO_1.CIENTE_SERVIDOR == 'T').select(*[db.AVAL_ANEXO_1[x] for x in fields], cache=(cache.ram, 3600), cacheable=True) notas = dict.fromkeys(fields, []) for aval in avals: for nota in aval: notas[nota].append(aval[nota]) means = [mean(nota) for k, nota in notas.iteritems()] medians = [median(nota) for k, nota in notas.iteritems()] # modes = [mode(nota) for k, nota in notas.iteritems()] response.headers['Content-Type'] = 'image/svg+xml' bar_chart = pygal.Bar(style=CleanStyle) # Then create a bar graph object bar_chart.x_labels = fields bar_chart.x_label_rotation = 90 bar_chart.add('Media', means) bar_chart.add('Mediana', medians) # bar_chart.add('Moda', modes) return bar_chart.render() # box_plot = pygal.Box( # range=(0,10), # legend_font_size=8 # ) # box_plot.title = 'Desempenho dos servidores' # [box_plot.add(k,v) for k, v in notas.iteritems()] # return box_plot.render() def fatores(): fields = ['FATOR_ILUMINACAO', 'FATOR_TEMPERATURA', 'FATOR_RUIDOS', 'FATOR_INSTALACOES', 'FATOR_EQUIPAMENTOS'] avals = db(db.AVAL_ANEXO_1.CIENTE_SERVIDOR == 'T').select(*[db.AVAL_ANEXO_1[x] for x in fields], cache=(cache.ram, 3600), cacheable=True) # notas = dict.fromkeys(fields, {"s": 0, "n": 0})) # Gera uma dicionário com as chaves corretas, mas apontam todos para a mesma lista notas = dict((k, {"s": 0, "n": 0}) for k in fields) for aval in avals: for fator in aval: notas[fator][aval[fator]] += 1 bar = pygal.Bar(style=CleanStyle) bar.x_labels = fields bar.x_label_rotation = 90 bar.add('Adequado', [notas[v]['s'] for v in notas]) bar.add('Inadequado', [notas[v]['n'] for v in notas]) response.headers['Content-Type'] = 'image/svg+xml' return bar.render()<file_sep># coding=utf-8 from Avaliacao import Avaliacao from FormAvaliacao import FormAvaliacao from datetime import date @auth.requires_login() def index(): if not session.avaliacao: if session.avaliacaoTipo == 'subordinados': siapeServidor = request.vars.SIAPE_SERVIDOR elif session.avaliacaoTipo == 'autoavaliacao': siapeServidor = session.dadosServidor["SIAPE_SERVIDOR"] else: """Caso alguém tente acessar esta página pulando a fase de seleção de tipo de avaliação...""" redirect(URL('default', 'index')) avaliacao = Avaliacao(session.ANO_EXERCICIO, siapeServidor) session.avaliacao = avaliacao.dados form = FormAvaliacao(session.servidorAvaliado).formIdentificao form.add_button('Voltar', URL('default', 'index')) if form.process().accepted: if session.avaliacaoTipo == 'subordinados': redirect(URL('anexo1', 'pagina2')) elif session.avaliacaoTipo == 'autoavaliacao' and Avaliacao.isChefiaCiente(): redirect(URL('anexo2', 'index')) else: session.flash = "Sua chefia imediata ainda não enviou sua avaliação." redirect(URL('default', 'index')) return dict(form=form, year=int(session.ANO_EXERCICIO)) @auth.requires_login() def pagina2(): if not session.avaliacao: session.flash = 'Você precisa selecionar uma avaliação e um ano de exercício para acessar este formulário.' redirect(URL('default', 'index')) form = FormAvaliacao(session.servidorAvaliado).formPagina2 form.add_button('Voltar', URL('anexo2', 'index')) if form.process().accepted: avaliacao = Avaliacao(session.ANO_EXERCICIO, session.servidorAvaliado['SIAPE_SERVIDOR']) avaliacao.salvarModificacoes(form.vars) redirect(URL("anexo1", "pagina3")) return dict(form=form) @auth.requires_login() def pagina3(): from MailAvaliacao import MailAvaliacao if not session.avaliacao: session.flash = 'Você precisa selecionar uma avaliação e um ano de exercício para acessar este formulário.' redirect(URL('default', 'index')) formAvaliacao = FormAvaliacao(session.servidorAvaliado) form = formAvaliacao.formPagina3 form.add_button('Voltar', URL('anexo1', 'pagina2')) form.add_button('Primeira Página', URL('anexo2', 'index')) if form.process().accepted: avaliacao = Avaliacao(session.ANO_EXERCICIO, session.servidorAvaliado['SIAPE_SERVIDOR']) avaliacao.salvarModificacoes(form.vars) try: # Ao final de uma avaliacao email = MailAvaliacao(avaliacao) email.sendConfirmationEmail() except Exception: session.flash += ' Não foi possível enviar o email de confirmação. Verifique se o servidor ' \ 'possui email cadastrado e indicador de correspondência marcado.' if session.avaliacaoTipo == 'subordinados': redirect(URL('subordinados', 'index')) elif session.avaliacaoTipo == 'autoavaliacao': redirect(URL('default', 'index')) return dict( form=form, resumo=formAvaliacao.resumoTable if session.avaliacaoTipo == 'autoavaliacao' else "", data=date.today() )<file_sep># coding=utf-8 from datetime import date from Avaliacao import Avaliacao from gluon.html import OPTION @auth.requires_login() def index(): session.ANO_EXERCICIO = None session.avaliacaoTipo = None session.avaliacao = None avaliacao = Avaliacao(date.today().year, session.dadosServidor["SIAPE_SERVIDOR"]) form = FORM( BR(), LABEL('Exercício: ', _for='ANO_EXERCICIO'), SELECT([OPTION(ano.ANO_EXERCICIO, _value=ano.ANO_EXERCICIO) for ano in avaliacao.anosDeExercicio()], _name='ANO_EXERCICIO'), BR(),BR(), LABEL('Tipo: ', _for='avaliacaoTipo'), SELECT([OPTION(v, _value=k) for k, v in avaliacao.tiposDeAvaliacaoesForCurrentSession().iteritems()], _name='avaliacaoTipo', _class='avaliacaoTipo', _value='autoavaliacao'), BR(), INPUT(_value='Próximo', _type='submit') ) if form.process().accepted: session.ANO_EXERCICIO = form.vars.ANO_EXERCICIO session.avaliacaoTipo = form.vars.avaliacaoTipo if form.vars.avaliacaoTipo == 'autoavaliacao': redirect(URL('anexo1', 'index')) elif form.vars.avaliacaoTipo == 'subordinados': redirect(URL('subordinados', 'index')) return dict(form=form) def mensagem(): return dict() def user(): """ exposes: http://..../[app]/default/user/login http://..../[app]/default/user/logout http://..../[app]/default/user/register http://..../[app]/default/user/profile http://..../[app]/default/user/retrieve_password http://..../[app]/default/user/change_password http://..../[app]/default/user/manage_users (requires membership in use @auth.requires_login() @auth.requires_membership('group name') @auth.requires_permission('read','table name',record_id) to decorate functions that need access control """ return dict( form=auth() ) @cache.action() def download(): """ allows downloading of uploaded files http://..../[app]/default/download/[filename] """ return response.download(request, db) <file_sep>// TODO todo esse arquivo está um lixo e representa todo o meu saco com frontend $(document).ready(function(){ var notasChefia = []; var notasServidor = []; var i = 0; $("input.chefia").each(function(){ notasChefia.push($(this).val()); }); $("input.servidor").each(function(){ notasServidor.push($(this).val()); console.log('Nota Servidor ' + i + " : " + $(this).val() ) }); // ppf = span da célula de Pontos por Fator em anexo1 / pagina2 $("span.ppf").each(function(){ if (notasChefia[i] && notasServidor[i]){ ppf = calcularPontosPorFator( notasChefia[i], notasServidor[i] ); if (ppf >= 7){ $(this).css("background-color", "#AEE8AC"); } else{ $(this).css("background-color", "#E8BBAC"); } } else{ ppf = '--'; } $(this).text(ppf); i++; }); $(".notaSelect").change(function(){ var name = $(this).attr("name"); var nota = $(this).val(); var notaChefia = $("input[name='"+name+"_CHEFIA']").val(); var ppf = calcularPontosPorFator(nota, notaChefia); var span = "span."+name; if (ppf >= 7){ $(span).css("background-color", "#AEE8AC"); } else{ $(span).css("background-color", "#E8BBAC"); } console.log(ppf); $(span).text(ppf); }); }); function calcularPontosPorFator(notaChefia, notaServidor){ return ( parseInt(notaChefia,10) + parseInt(notaServidor,10) ) / 2; }<file_sep># coding=utf-8 from time import strftime from gluon import current from datetime import date import math from unirio.api import UNIRIOAPIRequest class Avaliacao(object): def __init__(self, ano, siapeServidor): self.ano = ano self.tipo = current.session.avaliacaoTipo self.servidorAvaliado = self._validateAccessForCurrentSession(siapeServidor) current.session.servidorAvaliado = self.servidorAvaliado def _validateAccessForCurrentSession(self, siapeServidor): """ Dada a sessão corrente de usuário e tipo de avaliaçao, verifica se o mesmo tem autorização para acessar a manipular uma avaliação. * Em uma autoavaliação, o dicionário devem ser igual ao do servidor da sessão. * Em uma avaliação de subordinado, o dicionário deve estar contido na lista de subordinados :type dadosServidor: dict :rtype: dict :param dadosServidor: O dicionário correspondente a um servidor válido para uma avaliaçao """ if current.session.avaliacaoTipo == "subordinados": if current.session.avaliacaoTipo in self.tiposDeAvaliacaoesForCurrentSession().keys(): for subordinado in current.session.subordinados: if str(subordinado['SIAPE_SERVIDOR']) == str(siapeServidor): return subordinado elif str(siapeServidor) == str(current.session.dadosServidor["SIAPE_SERVIDOR"]): return current.session.dadosServidor raise Exception("Você não tem permissão de acesso para a avaliaçao de " + str(siapeServidor)) @staticmethod def tiposDeAvaliacaoesForCurrentSession(): """ Dada uma determinada sessão de usuário, o método retonará um dicionário com os tipos de avaliação possíveis. :rtype : dict :return: Retorna um dicionário em que k = str de um tipo de avaliação e v = label do tipo """ tipos = {"autoavaliacao": "Autoavaliação"} if current.session.subordinados: tipos.update({"subordinados": "Avaliar equipe"}) return tipos @staticmethod def isCiente(): """ Dada uma determinada sessão de usuário, o método retorna o booleano equivalente a se terminou uma avaliação ou não. :rtype : bool :return: True caso tenha marcado ciente ao final de uma avaliação e False caso contrário """ if current.session.avaliacao: if current.session.avaliacaoTipo == 'autoavaliacao': if 'CIENTE_SERVIDOR' in current.session.avaliacao and current.session.avaliacao[ 'CIENTE_SERVIDOR'] == 'T': return True elif current.session.avaliacaoTipo == 'subordinados': if 'CIENTE_CHEFIA' in current.session.avaliacao and current.session.avaliacao['CIENTE_CHEFIA'] == 'T': return True @staticmethod def isChefiaCiente(): """ Dada uma autoavaliação de um servidor, verifica se a chefia imediata já terminou sua avaliação :rtype : bool """ if current.session.avaliacaoTipo == 'autoavaliacao': if 'CIENTE_CHEFIA' in current.session.avaliacao and current.session.avaliacao['CIENTE_CHEFIA'] == 'T': return True @staticmethod def isFinalizada(): """ TODO documentar esta caceta :return: """ if 'CIENTE_CHEFIA' in current.session.avaliacao and current.session.avaliacao['CIENTE_CHEFIA'] == 'T': if 'CIENTE_SERVIDOR' in current.session.avaliacao and current.session.avaliacao['CIENTE_SERVIDOR'] == 'T': return True @staticmethod def anosDeExercicio(): return current.db().select(current.db.PERIODOS_ABERTOS_AVAL.ANO_EXERCICIO) # TODO documentar pontosPorFator @staticmethod def pontosPorFator(topico): """ :param topico: string correspondente a um Fator :return: int correspondente aos pontos por fator """ if current.session.avaliacao: if 'NOTA_' + topico in current.session.avaliacao: return round(float(current.session.avaliacao['NOTA_' + topico] + current.session.avaliacao['NOTA_' + topico + '_CHEFIA']) / 2, 1) @staticmethod def notaFinal(): somatorioNotas = 0 for k, v in current.session.avaliacao.iteritems(): if Avaliacao.columnIsNota(k) and v: somatorioNotas += v return round(float(somatorioNotas) / 18, 1) @property def dados(self): avaliacao = current.db((current.db.AVAL_ANEXO_1.ANO_EXERCICIO == self.ano) & ( current.db.AVAL_ANEXO_1.SIAPE_SERVIDOR == self.servidorAvaliado['SIAPE_SERVIDOR'])).select().first() if avaliacao: return avaliacao else: return { "ANO_EXERCICIO": self.ano, "SIAPE_SERVIDOR": self.servidorAvaliado['SIAPE_SERVIDOR'], "SIAPE_CHEFIA": self.servidorAvaliado['SIAPE_CHEFIA_TITULAR'] } @staticmethod def columnNeedChefia(column): """ Verifica se a coluna fornecidade deve ser preenchiada pela chefia :param column: uma coluna do banco AVAL_ANEXO_1 :type column: str :rtype : bool """ return column.endswith("_CHEFIA") @staticmethod def columnIsNota(column): """ :param column: uma coluna do banco AVAL_ANEXO_1 :type column: str :rtype : bool """ return column.startswith("NOTA_") def _validFieldsForChefia(self, fields): """ Dada uma lista de campos, o método retorna somente os campos em que a chefia pode manipular :type fields: list :rtype : list :param fields: Uma lista de campos a ser validada :return: Campos que podem ser manipulados em uma sessão de chefia """ return [field for field in fields if self.columnNeedChefia(field)] def _filterFields(self, vars): """ :type vars: dict :param vars: """ if self.tipo == 'subordinados': validFields = self._validFieldsForChefia(vars.keys()) elif self.tipo == 'autoavaliacao': validFields = [field for field in vars.keys() if field not in self._validFieldsForChefia(vars.keys())] filteredDict = {} filteredDict.update(self.dados) filteredDict.update({"ANO_EXERCICIO": self.ano, "DATA_DOCUMENTO": date.today()}) for field in validFields: if field in current.db.AVAL_ANEXO_1.fields: filteredDict.update({field: vars[field]}) return filteredDict def salvarResultadoFinal(self): """ :rtype : None """ api = UNIRIOAPIRequest(current.kAPIKey) path = "OCOR_FUNCIONAIS_RH" params = { "ID_COD_FUNCIONAL": 847, # Resultado de Avaliação de Desempenho "DT_INICIO": date.today(), "ID_DOCUMENTO": None, "LOCAL_ORIGEM_TAB": 233, "LOCAL_DESTINO_TAB": 233, "QT_REFERENCIA": self.notaFinal(), "ANO_REF": self.ano, "DT_ALTERACAO": date.today(), "HR_ALTERACAO": strftime("%H:%M:%S"), "ENDERECO_FISICO": current.request.env.server_host } try: api.performPOSTRequest(path, params) except Exception as e: print e.message def salvarModificacoes(self, vars): if not self.isFinalizada(): filteredDict = self._filterFields(vars) current.db.AVAL_ANEXO_1.update_or_insert((current.db.AVAL_ANEXO_1.ANO_EXERCICIO == self.ano) & ( current.db.AVAL_ANEXO_1.SIAPE_SERVIDOR == self.servidorAvaliado['SIAPE_SERVIDOR']), **filteredDict) # atualiza session current.session.avaliacao.update(filteredDict) current.session.flash = "Modificações salvas com sucesso." <file_sep># coding=utf-8 from gluon import current from SIEServidores import SIEServidorNome from gluon.html import * __all__ = [ "TableAvaliacoes", "TableAvaliacoesRealizadas" ] class TableAvaliacoes(object): def __init__(self, avaliacoes): """ :type avaliacoes: list """ self.avaliacoes = avaliacoes def servidor(self, avaliacao): try: servidor = SIEServidorNome().getServidorBySiape(avaliacao['SIAPE_SERVIDOR']) return servidor except (TypeError, ValueError, AttributeError): return "Servidor não encontrado" def chefia(self, avaliacao): try: chefia = SIEServidorNome().getServidorBySiape(avaliacao['SIAPE_CHEFIA']) return chefia except (TypeError, ValueError, AttributeError): return "Servidor não encontrado" class TableAvaliacoesRealizadas(TableAvaliacoes): def __init__(self, avaliacoes): self.headers = ( "Ano Exercício", "Nome Servidor", "SIAPE Servidor", "Lotação Exercício", "Nome Chefia", "SIAPE Chefia", "Ciente Chefia", "Ciente Servidor", "Info Complementar Servidor", "Sugestões Servidor", "Info Complementar Chefia", "Sugestões Chefia" ) super(TableAvaliacoesRealizadas, self).__init__(avaliacoes) def printTable(self): def row(a): servidor = self.servidor(a) chefia = self.chefia(a) return TR( a['ANO_EXERCICIO'], servidor['NOME_FUNCIONARIO'], a['SIAPE_SERVIDOR'], chefia['DESC_LOT_EXERCICIO'], chefia['NOME_FUNCIONARIO'], a['SIAPE_CHEFIA'] , a['CIENTE_CHEFIA'], a['CIENTE_SERVIDOR'],a['INFO_COMPLEMENTAR_SERVIDOR'], a['SUGESTOES_SERVIDOR'],a['SUGESTOES_CHEFIA'], a['INFO_COMPLEMENTAR_CHEFIA']) return TABLE( THEAD(TR([TH(h) for h in self.headers])), TBODY([row(a) for a in self.avaliacoes if a]) )<file_sep>__all__ = [ "tables" ] <file_sep># coding=utf-8 from gluon import current from unirio.api.apirequest import UNIRIOAPIRequest __all__ = ["SIEChefiasImediatas","SIESubordinados","SIEServidorNome",] class SIEChefiasImediatas(object): chefiaNotFoundErrorMessage = "Chefia não encontrada" def __init__(self): self.apiRequest = UNIRIOAPIRequest(current.kAPIKey) self.path = "V_CHEFIAS_IMEDIATAS" self.lmin = 0 self.lmax = 1 def getChefiaForCPF(self, CPF): """ Dado o CPF de um servidor, a consulta trará os seus dados e de suas chefias mais informações em http://sistemas.unirio.br/api/default/index#table_V_CHEFIAS_IMEDIATAS Solução de CÉLIO PONTES: O método procura primeiramente por uma entrada normal na view de chefias, caso a mesma não seja encontrada, será executada uma nova consulta, que buscará por alguma entrada deste servidor como uma chefia. Isso resultará em dados incompletos e mensagens de erro, mas não impossibilitará o mesmo de utilizar o sistema e avaliar seus subordinados. :param CPF: O CPF do servidor a ser buscado, sem máscara :type CPF: str :rtype : dict """ try: params = { "CPF_SERVIDOR": CPF, "LMIN": self.lmin, "LMAX": self.lmax } servidor = self.apiRequest.performGETRequest(self.path, params) return servidor.content[0] except ValueError: try: params = { "CPF_CHEFIA": CPF, "LMIN": self.lmin, "LMAX": self.lmax } servidor = self.apiRequest.performGETRequest(self.path, params).content[0] dadosServidorGambiarra = { "NOME_SERVIDOR": servidor["NOME_SERVIDOR"], "CPF_SERVIDOR": servidor["CPF_CHEFIA"], "SIAPE_SERVIDOR": servidor["SIAPE_CHEFIA_TITULAR"], "EMAIL_SERVIDOR": servidor["EMAIL_CHEFIA_TITULAR"], "CARGO_SERVIDOR": "Indefinido", "UNIDADE_EXERCICIO_SERVIDOR": servidor["UNIDADE_EXERCICIO_CHEFIA"], "CHEFIA_TITULAR": self.chefiaNotFoundErrorMessage, "SIAPE_CHEFIA": self.chefiaNotFoundErrorMessage, "UNIDADE_EXERCICIO_CHEFIA": self.chefiaNotFoundErrorMessage, "EMAIL_CHEFIA_TITULAR": self.chefiaNotFoundErrorMessage } return dadosServidorGambiarra except ValueError: current.session.flash = "Não foi possível achar os seus dados. Entre em contato com a PROGEPE" class SIESubordinados(SIEChefiasImediatas): def __init__(self): super(SIESubordinados, self).__init__() self.lmin = 0 self.lmax = 1000 def getSubordinados(self, CPF): """ Dado o CPF de um servidor com chefia, a consulta trará todos os servidores subordinados a ele. Mais informações em http://sistemas.unirio.br/api/default/index#table_V_SUBORDINADOS :param CPF: O CPF do servidor com chefia a ser buscado, sem máscara :type CPF: str :return: Uma lista de dicionários de subordinados :rtype : list """ params = { "CPF_CHEFIA": CPF, "LMIN": self.lmin, "LMAX": self.lmax } try: subordinados = self.apiRequest.performGETRequest(self.path, params) return subordinados.content except Exception: pass class SIEServidorNome(object): def __init__(self): super(SIEServidorNome, self).__init__() self.path = "V_SERVIDORES" self.apiRequest = UNIRIOAPIRequest(current.kAPIKey) self.cacheTime = 172800# dois dias def getServidorBySiape(self, siape): params = { "MATR_EXTERNA": siape, "LMIN": 0, "LMAX": 1 } return self.apiRequest.performGETRequest(self.path, params, cached=self.cacheTime).content[0]<file_sep># coding=utf-8 from Avaliacao import Avaliacao from gluon import current class MailAvaliacao(object): def __init__(self, avaliacao): """ A classe ``MailAvaliacao``trata estritamente de envio de emails relacionados aos estágios de uma avaliação. Utilizada a classe nativa de email de gluon.tools. :type avaliacao: Avaliacao :param avaliacao: Uma avaliação referente ao email """ self.avaliacao = avaliacao self.reply_to = "<EMAIL>" self.subject = "[DTIC/PROGEP] Avaliação Funcional e Institucional de " + self.avaliacao.servidorAvaliado["NOME_SERVIDOR"].encode('utf-8') self.footer = "**** E-MAIL AUTOMÁTICO - NÃO RESPONDA ****" #TODO Verificar se não é possivel pegar algum erro caso o email não seja enviado def sendConfirmationEmail(self): if self.avaliacao.tipo == 'autoavaliacao': subordinado = self.parametrosParaFinalServidor chefia = self.parametrosParaFinalChefia elif self.avaliacao.tipo == 'subordinados': subordinado = self.parametrosParaEnvioServidor chefia = self.parametrosParaEnvioChefia current.mail.send(**subordinado) current.mail.send(**chefia) @property def parametrosParaFinalServidor(self): """ Email a ser enviado para o servidor ao término de uma avaliação. :rtype : dict :return: Dicionário de parâmetros de email """ return { "to": [self.avaliacao.servidorAvaliado['EMAIL_SERVIDOR']], "subject": self.subject, "reply_to": self.reply_to, "message": self.avaliacao.servidorAvaliado['NOME_SERVIDOR'].encode('utf-8') + ", sua avaliação foi finalizada com sucesso. Acompanhe o resumo em http://sistemas.unirio.br/avaliacao" } @property def parametrosParaFinalChefia(self): """ Email a ser enviado para a chefia ao término de uma avaliação. :rtype : dict :return: Dicionário de parâmetros de email """ return { "to": [self.avaliacao.servidorAvaliado['EMAIL_CHEFIA_TITULAR']], "subject": self.subject, "reply_to": self.reply_to, "message": self.avaliacao.servidorAvaliado['CHEFIA_TITULAR'].encode('utf-8') + ", o servidor " + self.avaliacao.servidorAvaliado['NOME_SERVIDOR'].encode('utf-8') + " finalizou sua avaliação com sucesso. Acompanhe o resumo em http://sistemas.unirio.br/avaliacao" } @property def parametrosParaEnvioServidor(self): """ Email a ser enviado para um servidor ao final de uma avaliação realizada pela chefia. :rtype : dict :return: Dicionário de parâmetros de email """ return { "to": [self.avaliacao.servidorAvaliado['EMAIL_SERVIDOR']], "subject": self.subject, "reply_to": self.reply_to, "message": self.avaliacao.servidorAvaliado['NOME_SERVIDOR'].encode('utf-8') + ", sua avaliação foi enviada por " + self.avaliacao.servidorAvaliado['CHEFIA_TITULAR'].encode('utf-8') + ". Acesse http://sistemas.unirio.br/avaliacao e finalize sua avaliação." } @property def parametrosParaEnvioChefia(self): """ Email a ser enviado para a chefia ao final de uma avaliação feita pela mesma. :rtype : dict :return: Dicionário de parâmetros de email """ return { "to": [self.avaliacao.servidorAvaliado['EMAIL_CHEFIA_TITULAR']], "subject": self.subject, "reply_to": self.reply_to, "message": self.avaliacao.servidorAvaliado['CHEFIA_TITULAR'].encode('utf-8') + ", sua avaliação de " + self.avaliacao.servidorAvaliado["NOME_SERVIDOR"].encode('utf-8') + " foi enviada com sucesso. Acompanhe o andamento em http://sistemas.unirio.br/avaliacao" } class MailSubordinados(object): def __init__(self, subordinado, tipo, observacao=""): """ :type observacao: str :type subordinado: dict """ self.reply_to = "<EMAIL>" self.subject = "[DTIC/PROGEP] Avaliação Funcional e Institucional - Movimentação" self.subordinado = subordinado self.tipo = tipo self.observacao = observacao self.setorCompetenteMail = "<EMAIL>" self.footer = "\r\n\r\n **** E-MAIL AUTOMÁTICO - NÃO RESPONDA ****" def sendSubordinadoRemocaoMail(self): chefia = self._parametrosParaChefia() setorCompetente = self._parametrosParaSetorCompetente() current.mail.send(**chefia) current.mail.send(**setorCompetente) def _formatedObservacao(self): if self.observacao: return '"' + self.observacao + '"' else: return '"Nenhuma observação fornecida."' def _parametrosParaChefia(self): return { "to": [self.subordinado['EMAIL_CHEFIA_TITULAR']], "subject": self.subject, "reply_to": self.reply_to, "message": self.subordinado['CHEFIA_TITULAR'].encode('utf-8') + ", o servidor " + self.subordinado["NOME_SERVIDOR"].encode('utf-8') + ' foi removido da sua lista de subordinados pelo motivo: ' + self._formatedObservacao() + ' alegando "' + self.tipo + '" e foi encaminhado para devidas providências de movimentação.' + self.footer } def _parametrosParaSetorCompetente(self): return { "to": [self.setorCompetenteMail], "subject": self.subject, "reply_to": self.reply_to, "message": self.subordinado['CHEFIA_TITULAR'].encode('utf-8') + ", que exerce cargo de CHEFIA em " + self.subordinado["UNIDADE_EXERCICIO_CHEFIA"].encode('utf-8') + ', removeu ' + self.subordinado['NOME_SERVIDOR'].encode('utf-8') + ', portador do SIAPE ' + str(self.subordinado['SIAPE_SERVIDOR']) + ' da sua lista de subordinados pelo motivo: "' + self.tipo + '" com a observação: ' + self._formatedObservacao() + self.footer } class MailPROGEPE(object): def __init__(self, servidor): self.reply_to = "<EMAIL>" self.subject = "[DTIC/PROGEP] Avaliação Funcional e Institucional - Inclusão" self.setorCompetenteMail = "<EMAIL>" self.footer = "\r\n\r\n **** E-MAIL AUTOMÁTICO - NÃO RESPONDA ****" self.servidor = servidor def sendInformativoPROGEP(self, siape, nome): """ :type nome: str :type siape: str :param siape: A matrícula SIAPE de um servidor que deveria fazer parte da unidade :param nome: O nome do servidor que deveria fazer parte da unidade """ requerente = self._parametrosParaRequerente(siape, nome) setorCompetente = self._parametrosChefiaParaPROGEPE(siape, nome) current.mail.send(**requerente) current.mail.send(**setorCompetente) def _parametrosChefiaParaPROGEPE(self, siape, nome): return { "to": [self.setorCompetenteMail], "subject": self.subject, "reply_to": self.reply_to, "message": self.servidor['NOME_SERVIDOR'].encode('utf-8') + ", em exercício no(a) " + self.servidor["UNIDADE_EXERCICIO_CHEFIA"].encode('utf-8') + ', cujo e-mail é ' + self.servidor['EMAIL_SERVIDOR'].encode('utf-8') + 'afirma que o servidor ' + nome + ', portador do SIAPE ' + str(siape) + ', deveria constar em sua lista de subordinados.' + self.footer } def _parametrosParaRequerente(self, siape, nome): return { "to": self.servidor['EMAIL_SERVIDOR'].encode('utf-8'), "subject": self.subject, "reply_to": self.reply_to, "message": self.servidor['NOME_SERVIDOR'].encode('utf-8') + ', sua solicitação de inclusão do subordinado ' + nome + ', portador do SIAPE ' + str(siape) + ' foi enviada com sucesso ao setor responsável' + self.footer }
91e7dc1e40c7ca148438dff435fc22f38f3035b0
[ "JavaScript", "Python", "HTML" ]
17
HTML
tazjel/web2py_avaliacao_
51e5c6f0f2212989ad9c784ded47b9c66fffb22c
0dde7ced8882d31e8bebaa1d888ac21e2ce1339e
refs/heads/main
<file_sep>using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace K8s.Workshop.Web.Pages { public class IndexModel : PageModel { private readonly ILogger<IndexModel> _logger; private readonly RestRepository _restRepository; public IndexModel(ILogger<IndexModel> logger, RestRepository restRepository) { _logger = logger; _restRepository = restRepository; } public async Task OnGet() { var weatherForecasts = await _restRepository.GetWeatherForecasts(); ViewData.Add("weatherForecasts", weatherForecasts); } } } <file_sep>using System.Collections.Generic; using System.Threading.Tasks; using K8s.Workshop.Api; using Microsoft.Extensions.Configuration; using RestSharp; namespace K8s.Workshop.Web { public class RestRepository { private readonly IRestClient _restClient; private readonly IConfiguration _configuration; public RestRepository(IRestClient restClient, IConfiguration configuration) { _restClient = restClient; _configuration = configuration; } public async Task<WeatherForecast[]> GetWeatherForecasts() { var baseUrl = _configuration.GetValue <string>("ApiUrl"); var request = new RestRequest($"{baseUrl}/Weatherforecast", Method.GET,DataFormat.Json); var weatherForecasts = await _restClient.GetAsync<List<WeatherForecast>>(request); return weatherForecasts.ToArray(); } } } <file_sep># k8s-workshop See [workshop documentation](https://github.com/gatepoet/k8s-workshop) for more info <file_sep>FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers COPY ./K8s.Workshop.Api/*.csproj ./K8s.Workshop.Api/ COPY ./K8s.Workshop.Web/*.csproj ./K8s.Workshop.Web/ RUN dotnet restore K8s.Workshop.Web # Copy everything else and build COPY . ./ RUN dotnet publish K8s.Workshop.Web -c Release -o out # Build runtime image FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "K8s.Workshop.Web.dll"]<file_sep># k8s-workshop ## Prerequisites - [Docker Desktop](https://www.docker.com/products/docker-desktop) - Enable Kubernetes - [Helm CLI](https://helm.sh/docs/intro/install/#from-chocolatey-windows) ## Create and run a website in Docker Desktop ### Create aspnet core website Clone the repository at <https://github.com/gatepoet/k8s-workshop> ```shell git clone https://github.com/gatepoet/k8s-workshop.git cd k8s-workshop ``` Compile and run both projects ```shell cd src/K8s.Workshop {% include_relative src/K8s.Workshop/run-local.cmd %} start http://localhost:28228/ ``` Verify that the website can get data from the api by visiting the website at <http://localhost:28228/> Stop the running servers with `Ctrl+C` ### Create Docker containers Add a file named `Dockerfile` (no file-extension) to each of the two projects. #### `K8s.Workshop.Api/Dockerfile` ```docker {% include_relative src/K8s.Workshop/K8s.Workshop.Api/Dockerfile %} ``` #### `K8s.Workshop.Web/Dockerfile` ```docker {% include_relative src/K8s.Workshop/K8s.Workshop.Web/Dockerfile %} ``` Build and tag containers ```shell {% include_relative src/K8s.Workshop/build-docker.cmd %} ``` Run containers ```shell {% include_relative src/K8s.Workshop/run-docker.cmd %} start http://localhost:28228/ ``` Run website with TLS ```shell {% include_relative src/K8s.Workshop/run-docker-tls.cmd %} ``` ### Create Helm charts Start a local registry server ```shell docker run -dp 5000:5000 --restart=always --name registry registry ``` Push docker images to local registry ```shell docker push localhost:5000/k8s-workshop-api docker push localhost:5000/k8s-workshop-web ``` Install charts ```shell {% include_relative run-k8s.cmd %} start http://localhost:28228/ ``` Modify generated charts [git commit reference](https://github.com/gatepoet/k8s-workshop/commit/c11b0bc30fc0e04114bcb666123abec2d860be25?branch=c11b0bc30fc0e04114bcb666123abec2d860be25&diff=unified) Move appsettings to config maps [git commit reference](https://github.com/gatepoet/k8s-workshop/commit/13a29ad815b6928d805a75ef7f5f3d7bbe3122d7?branch=13a29ad815b6928d805a75ef7f5f3d7bbe3122d7&diff=unified) Clean up ```shell {% include_relative cleanup-k8s.cmd %} ```
efbd386e35705bb8fae91748f844ec6b40eaadc3
[ "Markdown", "C#", "Dockerfile" ]
5
C#
gatepoet/k8s-workshop
721bca793ce22e583b8cb6ae553afee4b9b44d20
387e53ac1c5ca120f8f8fde296ac10e6d18c6a67
refs/heads/master
<file_sep>logging.level.com.eb=ERROR logging.file=app.log logging.pattern.file=%d %p %c{1.} [%t] %m%n<file_sep># aws-eb-fluentd-kinesis-app Sample spring boot application for AWS elasticbeanstalk with fluentd and kinesis configurations. This application exposes two endpoints: |Path|Description| |---|---| |/helloworld|Returns hello world message| |/err|Throws ArithmeticException and returns error response| To build the war artifact: ``` mvn clean package spring-boot:repackage ``` <file_sep>package com.eb; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; @org.springframework.web.bind.annotation.RestController public class RestController { private static final Logger logger = LoggerFactory.getLogger(RestController.class); @GetMapping(value = "/helloworld", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<String> helloWorld() { return new ResponseEntity<>("{\"message\": \"Hello World\"}", HttpStatus.OK); } @GetMapping(value = "/err", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<String> error() { try { final int divideByZero = 10 / 0; } catch (ArithmeticException e) { logger.error("Runtime error occurred", e); } return new ResponseEntity<>("{\"error\": \"Runtime Error\"}", HttpStatus.INTERNAL_SERVER_ERROR); } }
5a82d2feef8a285093533d4b7861087a60327f74
[ "Markdown", "Java", "INI" ]
3
INI
HarshadRanganathan/aws-eb-fluentd-kinesis-app
5c17bb11b54642c4feafd9375be297bb4c64c8ee
a15b72b84ff744023b4638f833c39bc1366acdb2
refs/heads/master
<file_sep>package Java01.排序算法; import java.util.Arrays; /* 选择排序: 算法思路: 首先在未排序序列中找到最小(大)元素,存放到排序序列的起始位置, 然后,再从剩余未排序元素中继续寻找最小(大)元素, 然后放到已排序序列的末尾。以此类推,直到所有元素均排序完毕。 */ public class SelectSort { public static void main(String[] args) { int[] arr = {4,3,7,9,6,1,5,8,2}; System.out.println("选择排序前:" + Arrays.toString(arr)); int minIndex = 0; int num = 0; for (int i = 0; i < arr.length - 1; i++) { minIndex = i;//假设最开始的元素为最小值 for (int j = i + 1; j < arr.length; j++) { if (arr[j] < arr[minIndex]){ minIndex = j; } } num = arr[i]; arr[i] = arr[minIndex]; arr[minIndex] = num; } System.out.println("选择排序后:" + Arrays.toString(arr)); } } <file_sep>package example.Case_SendRedPacket; import java.util.ArrayList; public class RedPackets { public static void main(String[] args) { Manager manager = new Manager("群主" ,100); Member one = new Member("群员A",0); Member two = new Member("群员B",0); Member three = new Member("群员C",0); manager.show(); one.show(); two.show(); three.show(); System.out.println("============================="); ArrayList<Integer> list = manager.send(20, 3); one.receive(list); two.receive(list); three.receive(list); manager.show(); one.show(); two.show(); three.show(); } } <file_sep>package Java01; import java.util.Scanner; public class Test07 { public static void main(String[] args) { System.out.println("请输入一个数字:"); Scanner input = new Scanner(System.in); int num = input.nextInt(); System.out.println("该数字为:" + ((num / 2 == 0) ? "偶数" : "奇数")); } } <file_sep>package Java01; import java.util.Arrays; import java.util.Scanner; /* 数组删除元素 */ public class Test32ArrayRemoveElement { public static void main(String[] args) { String[] names = {"one","two","three","four","five","six"}; Scanner sc = new Scanner(System.in); System.out.println("请输入需要删除的字符串:"); String name = sc.next(); int index = -1; for (int i = 0; i < names.length; i++) { if (names[i].equalsIgnoreCase(name)){ index = i; break; } } if (index != -1){ for (int j = index; j < names.length - 1; j++){ names[j] = names[j + 1]; } names[names.length - 1] = null; System.out.println("删除后的数组为:" + Arrays.toString(names)); }else { System.out.println("数组中没有该字符串,无法删除"); } } } <file_sep>package Java01; import java.util.Scanner; /* continue: 跳出当前次循环(不执行当前次循环continue之后的语句),执行剩余次循环 */ public class Test21Continue { public static void main(String[] args) { //总计班级成绩大于80分的人数和比例 int score; //成绩 int total; //班级总人数 int num = 0; //大于80分的人数 Scanner scanner = new Scanner(System.in); System.out.print("请输入班级的总人数:"); total = scanner.nextInt(); for (int i = 0; i < total; i++) { System.out.print("请输入第" + (i + 1) + "位学生的成绩:"); score = scanner.nextInt(); if (score < 80){ continue; } num++; } double rate = (double) num / total * 100; System.out.print("班级成绩大于80分的人数为:" + num); System.out.print("80分占班级的比例为:" + rate + "%"); } } <file_sep>package example; import java.util.Scanner; //吃货联盟订餐系统 public class FoodAllianceOradingSystem { public static void main(String[] args) { String[] names = new String[4]; //订餐人姓名 String[] dishMegs = new String[4]; //所选信息,包括菜品名和份数 int[] times = new int[4]; //送餐时间 String[] addresses = new String[4]; //送餐地址 int[] states = new int[4]; //订单状态:0表示已预订,1表示已完成 double[] sumPrices = new double[4]; //订单的总金额 String[] dishNames = {"红烧带鱼","鱼香肉丝","时令鲜蔬"}; //菜品名称 double[] prices = new double[]{38.0,20.0,10.0}; //菜品单价 int[] priaiseNums = new int[3]; //点赞数 names[0] = "张青"; dishMegs[0] = "红烧带鱼 2份"; times[0] = 12; addresses[0] = "天长路222号"; sumPrices[0] = 76.0; states[0] = 1; Scanner scanner = new Scanner(System.in); int num = -1; //用户输入0返回主菜单,否则退出系统 boolean isExit = false; //标志用户是否退出系统,true为退出系统 System.out.println("\n欢迎使用“吃货联盟订餐系统”"); do { //显示菜单 System.out.println("*******************************"); System.out.println("1、我要订餐"); System.out.println("2、查看订餐"); System.out.println("3、签收订单"); System.out.println("4、删除订单"); System.out.println("5、我要点赞"); System.out.println("6、退出系统"); System.out.println("*******************************"); System.out.print("请选择:"); int choose = scanner.nextInt(); //记录用户选择的功能编号 //根据用户输入的功能编号,执行相应的功能 switch (choose){ case 1: //我要订餐 System.out.println("***我要订餐***"); boolean isAdd = false; //记录是否可以订餐 for (int j = 0; j < names.length - 1; j++){ if (names[j] == null){ isAdd = true; //置标志位,可以订餐 System.out.print("请输入订餐人姓名:"); String name = scanner.next(); //显示供选择的菜单 System.out.println("序号" + "\t" + "菜名" + "\t" + "单价" + "\t" + "点赞数"); for (int i = 0; i < dishNames.length; i++) { String price = prices[i] + "元"; String priaiseNum = (priaiseNums[i] > 0) ? priaiseNums[i] + "赞" : "0"; System.out.println((i + 1) + "\t" + dishNames[i] + "\t" + price + "\t" + priaiseNum); } //用户点菜 System.out.print("请选择您要点的菜品编号:"); int chooseDish = scanner.nextInt(); System.out.print("请选择您需要的份数:"); int number = scanner.nextInt(); String dishMeg = dishNames[chooseDish - 1] + " " + number + "份"; double sumPrice = prices[chooseDish - 1] * number; //餐费满50元,免送餐费5元 double deliCharge = (sumPrice > 50) ? 0 : 5; System.out.print("请输入送餐时间(送餐时间是10点至20点间整点送餐):"); int time = scanner.nextInt(); while (time < 10 || time > 20){ System.out.print("您输入有误,请输入10~20间的整数:"); time = scanner.nextInt(); } System.out.print("请输入送餐地址:"); String address = scanner.next(); //无须添加状态,默认是0,即以预定状态 System.out.println("订餐成功!"); System.out.println("您订的是:" + dishMeg); System.out.println("送餐时间:" + time + "点"); System.out.println("餐费:" + sumPrice + "元,送餐费" + deliCharge + "元,总计:" + (sumPrice + deliCharge) + "元。"); //添加数据 names[j] = name; dishMegs[j] = dishMeg; times[j] = time; addresses[j] = address; sumPrices[j] = sumPrice + deliCharge; break; } } if (!isAdd){ System.out.println("对不起,您的餐袋已满!"); } break; case 2: //查看订餐 System.out.println("***查看订餐***"); System.out.println("序号\t订餐人\t餐品信息\t\t送餐时间\t送餐地址\t\t总金额\t订单状态"); for (int i = 0; i < names.length - 1; i++) { if (names[i] != null){ String state = (states[i] == 0) ? "已预订" : "已完成"; String date = times[i] + "点"; String sumPrice = sumPrices[i] + "元"; System.out.println((i + 1) + "\t" + names[i] + "\t\t" + dishMegs[i] + "\t" + date + "\t" + addresses[i] + "\t" + sumPrice + "\t" + state); } } break; case 3: //签收订单 System.out.println("***签收订单***"); boolean isSignFind = false; //找到要签收的订单 System.out.print("请选择要签收的订单序号:"); int signOrderId = scanner.nextInt(); for (int i = 0; i < names.length; i++) { //状态为已预订,序号为用户输入的订单序号减1:可签收 //状态位已完成,序号为用户输入的订单序号减1:不可签收 if (names[i] != null && states[i] == 0 && signOrderId == i + 1){ states[i] = 1; //将状态值置为已完成 System.out.println("订单签收成功!"); isSignFind = true; //标记已找到此订单 }else if (names[i] != null && states[i] == 1 && signOrderId == i + 1){ System.out.println("您选择的订单已完成签收,不能再次签收!"); isSignFind = true; //标记已找到此订单 } } //未找到的订单序号:不可签收 if (!isSignFind){ System.out.println("您选择的订单不存在!"); } break; case 4: //删除订单 System.out.println("***删除订单***"); boolean idDelFind = false; //标记时候找到要删除的订单 System.out.print("请输入要删除的订单序号:"); int delId = scanner.nextInt(); for (int i = 0; i < names.length; i++) { //状态值为已完成,序号值为用户输入的序号减1:可删除 //状态值为已预订,序号值为用户输入的序号减1:不可删除 if (names[i] != null && states[i] == 1 && delId == i + 1){ idDelFind = true; //标记已找到此订单 //执行删除操作:删除位置后的元素一次前移 for (int j = delId - 1; j < names.length - 1; j++) { names[j] = names[j + 1]; dishMegs[j] = dishMegs[j + 1]; times[j] = times[j + 1]; addresses[j] = addresses[j + 1]; states[j] = states[j + 1]; sumPrices[j] = sumPrices[j + 1]; } //最后一位清空 int endIndex = names.length - 1; names[endIndex] = null; dishMegs[endIndex] = null; times[endIndex] = 0; addresses[endIndex] = null; states[endIndex] = 0; sumPrices[endIndex] = 0; System.out.println("删除订单成功"); break; }else if (names[i] != null && states[i] == 0 && delId == i + 1){ System.out.println("您选择的订单未签收,不能删除!"); idDelFind = true; //标记已找到订单 break; } } //未找到该序号的订单:不能删除 if (!idDelFind){ System.out.println("您要删除的订单不存在!"); } break; case 5: //我要点赞 System.out.println("***我要点赞***"); //显示菜品信息 System.out.println("序号" + "\t" + "菜名" + "\t" + "单价"); for (int i = 0; i < dishNames.length; i++) { String price = prices[i] + "元"; String priaiseNum = priaiseNums[i] > 0 ? priaiseNums[i] + "赞" : " "; System.out.println((i + 1) + "\t" + dishNames[i] + "\t" + price + "\t" + priaiseNum); } System.out.println("请选择您要点赞的菜品序号:"); int priaiseNum = scanner.nextInt(); priaiseNums[priaiseNum - 1]++; //点赞数加1 System.out.println("点赞成功!"); break; case 6: //退出系统 System.out.println("***退出系统***"); isExit = true; break; default: //退出系统 isExit = true; break; } if (!isExit){ System.out.print("输入0返回:"); num = scanner.nextInt(); }else { break; } }while (num == 0); } } <file_sep>package Java01; import java.util.Scanner; /* 数列:8,4,2,1,23,344,12 题目: 1、循环输出数列的值 2、求出数列中的数字和 3、猜数字 */ public class Test25GuessNumber { public static void main(String[] args) { int sum = 0; int[] arr = {8, 4, 2, 1, 23, 344, 12}; for (int i = 0; i < arr.length; i++) { sum += arr[i]; System.out.print(arr[i] + " "); } System.out.println("\n数列之和为:" + sum); System.out.println("猜数字:"); Scanner sc = new Scanner(System.in); int guessNum = sc.nextInt(); boolean flag = false; for (int num : arr) { if (guessNum == num) { flag = true; } } if (flag) { System.out.println("猜对了!"); } else { System.out.println("猜错了!"); } } } <file_sep>package Java01; public class HelloWorld { public static void main(String[] args){ System.out.println("HelloWorld"); System.out.print("HelloWorld\t"); System.out.print("dajsdglk\n"); System.out.println("HelloWorld"); } } <file_sep>package Java01; public class Test02 { public static void main(String[] args) { String name = "小明"; int age = 14; int workTime = 3; int projertNum = 5; String skill = "Java"; String hobby = "篮球"; System.out.println("这个同学的姓名是:" + name); System.out.println("年龄是:" + age); System.out.println("工作了" + workTime + "年"); System.out.println("做过了" + projertNum + "个项目"); System.out.println("技术方向是" + skill); System.out.println("兴趣爱好是:" + hobby); } } <file_sep>package example.Math; /* java.util.Math类是数学相关的工具类 public static double abs(double num):获取绝对值 public static double ceil(double num):向上取整 public static double floor(double num):向下取整 public static long round(double nm):四舍五入 Math.PI代表近似的圆周率常量(double) */ public class Math1 { public static void main(String[] args) { //获取绝对值 System.out.println(Math.abs(20.1));//20.1 System.out.println(Math.abs(0)); //0 System.out.println(Math.abs(-20.0));//20.0 System.out.println("================"); //向上取整 System.out.println(Math.ceil(30.1));//31.0 System.out.println(Math.ceil(30.0));//30.0 System.out.println(Math.ceil(30.9));//31.0 System.out.println("================"); //向下取整 System.out.println(Math.floor(10.2));//10.0 System.out.println(Math.floor(10.0));//10.0 System.out.println(Math.floor(10.9));//10.0 System.out.println("================"); //四舍五入 System.out.println(Math.round(4.4));//4 System.out.println(Math.round(4.5));//5 System.out.println("================"); } } <file_sep>package example.Extends.Extends1; public class Assistant extends Employee{ } <file_sep>package example.Extends.Extends5; /* 方法覆盖重写的注意事项: 1.必须保证父子类之间方法的名称相同,参数列表也相同 @Override:写在方法前面,用来检测是不是有效的正确覆盖重写 这个注解就算不写,只要满足要求,也是正确的方法覆盖重写 2.子类方法的返回值必须小于等于父类方法的返回值范围 小提示:java.lang.Object类时所有类的公共最高父类,java.lang.String就是Object的子类 3.子类方法的权限必须【大于等于】父类方法的权限修饰符 小提示:public >protected>(default)>private 备注:(default)不是关键字default,而是什么都不写,留空 */ public class Extends5Override { public static void main(String[] args) { } } <file_sep>package Java01; import java.util.Scanner; public class Test08 { public static void main(String[] args) { int random = (int)(Math.random() * 10); System.out.println("请输入四位会员卡号:"); Scanner input = new Scanner(System.in); int cardID = input.nextInt(); int baiwei = cardID / 100 % 10; if (baiwei == random){ System.out.println("恭喜你中奖了!!!"); }else { System.out.println("没中奖,再接再厉!"); } } } <file_sep>package Java01; import java.util.Scanner; public class Test13 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("请输入你的成绩:"); int score = input.nextInt(); if (score < 10){ System.out.println("请输入你的性别:"); String sex = input.next(); if (sex.equals("男")){ System.out.println("进入男子决赛"); }else if (sex.equals("女")){ System.out.println("进入女子决赛"); }else { System.out.println("输入有误"); } }else { System.out.println("无缘进入决赛"); } } } <file_sep>package example.Extends.Extends3; public class Extends3Field { public static void main(String[] args) { Zi zi = new Zi(); zi.mehtod(); } } <file_sep>package Java01; import java.util.Scanner; /* 二维数组 题目: 统计3个班级各5名学生的成绩,求出总分、平均分 */ public class Test36DoubleArray { public static void main(String[] args) { int[][] scores = new int[3][5]; Scanner sc = new Scanner(System.in); for (int i = 0; i < scores.length; i++) { System.out.println("******第" + (i + 1) + "个班级的成绩******"); for (int j = 0; j < scores[i].length; j++) { System.out.print("请输入第" + (j + 1) + "个学生的成绩:"); scores[i][j] = sc.nextInt(); } } System.out.println("================================="); System.out.println("******考试成绩统计******"); for (int i = 0; i < scores.length; i++) { int sum = 0; for (int j = 0; j < scores[i].length; j++) { sum += scores[i][j]; } System.out.println("第" + (i + 1) + "个班级的总分为:" + sum + ",第" + (i + 1) + "个班级的平均分为:" + sum / scores[i].length); } } } <file_sep>package Java01; import java.util.Arrays; /* 冒泡排序 */ public class Test27BubbleSort { public static void main(String[] args) { int[] list = {4, 3, 8, 6, 0, 3, 1}; System.out.println(Arrays.toString(list)); for (int i = 0; i < list.length - 1; i++) { for (int j = 0; j < list.length - 1 - i; j++) { if (list[j] > list[j + 1]) { int temp = list[j]; list[j] = list[j + 1]; list[j + 1] = temp; } } } System.out.println(Arrays.toString(list)); } } <file_sep>package Java01; import java.util.Arrays; /* 选择排序 思路: 首先在未排序序列中找到最小(大)元素,存放到排序序列的起始位置, 然后,再从剩余未排序元素中继续寻找最小(大)元素, 然后放到已排序序列的末尾。以此类推,直到所有元素均排序完毕。 */ public class Test35SelectSort { public static void main(String[] args) { int[] arr = {2,5,3,4,7,6,1,9,8}; System.out.println(Arrays.toString(arr)); int minIndex = -1; //最小值索引 for (int i = 0; i < arr.length - 1; i++) { minIndex = i; for (int j = i + 1; j < arr.length; j++) { //找出arr[i]之后比arr[i]小的数的索引值 if (arr[j] < arr[minIndex]){ minIndex = j; } } if (minIndex != i){ //存在比arr[i]小的数,与arr[i]交换 int temp = arr[minIndex]; arr[minIndex] = arr[i]; arr[i] = temp; } } System.out.println(Arrays.toString(arr)); } } <file_sep>package Java01; public class Test04 { public static void main(String[] args) { double firstAvg = 83.42; int rise = 20; double secondAvg = firstAvg + rise; System.out.println("第二次的平均分是:" + secondAvg); } } <file_sep>package Java01.TestEveryDay; import java.util.Arrays; import java.util.Scanner; /* 数组增操作 */ public class Test10_15 { public static void main(String[] args) { String[] names = {"Alice",null,"Tom","Jack","Tone","Mike"}; System.out.println(Arrays.toString(names)); System.out.print("请输入需要添加的姓名:"); Scanner sc = new Scanner(System.in); String name = sc.next(); int index = -1; for (int i = 0; i < names.length; i++) { if (names[i] == null){ index = i; break; } } if (index != -1){ names[index] = name; System.out.println(Arrays.toString(names)); }else { System.out.println("数组已满,无法插入"); } } } <file_sep>package example; public class HelloWorld { } <file_sep>package example.String; /* 定义一个方法,把数组{1,2,3}按照指定格式拼接成一个字符串。 格式如下:[word1#word2#word3] */ public class StringPractise1 { public static void main(String[] args) { int[] arr = {1,2,3}; String str = arrayToString(arr); System.out.println(str); } public static String arrayToString(int[] array){ String str = "["; for (int i = 0; i < array.length; i++) { if (i == array.length - 1){ str += "word" + array[i] + "]"; }else { str += "word" + array[i] + "#"; } } return str; } } <file_sep>package Java01; import java.util.Arrays; /* Arrays类相关的方法: equals(array1,array2):比较两个数组是否相等,返回值类型:boolean sort(array):对数组进行升序排列, 返回值类型:void toString(array):将数组转换成字符串,返回值类型:String fill(array,val):将数组元素赋值为val,返回值类型:void copyOf(array,length):把数组复制成一个长度为length的新数组,返回值类型:和原数组数据类型一样 binarySearch(array,val):查询元素值val在数组中的下标,返回值类型:int */ public class Test29ArraysMethod { public static void main(String[] args) { int[] arr1 ={10,30,50}; int[] arr2 ={10,40,50}; int[] arr3 ={10,50,30}; System.out.println("arr1和arr2是否相等:" + Arrays.equals(arr1,arr2)); System.out.println("arr1和arr3是否相等:" + Arrays.equals(arr1,arr3)); System.out.println("======================"); int[] arr4 = {2,4,3,7,5,5,6,9,1}; Arrays.sort(arr4); System.out.println("将数组升序后转换成字符串输出:" + Arrays.toString(arr4)); System.out.println("======================"); int[] arr5 = {4,3,6,7,8,4,5,}; System.out.println("原数组:" + Arrays.toString(arr5)); Arrays.fill(arr5,2); System.out.println("将数组所有数赋值为2:" + Arrays.toString(arr5)); System.out.println("======================"); int[] arr6 = {1,2,3,4,5,6,7}; int[] newArr6 = Arrays.copyOf(arr6, 9); System.out.println("原数组:" + Arrays.toString(arr6)); System.out.println("将原数组copy成一个长度为9的新数组:" + Arrays.toString(newArr6)); System.out.println("======================"); int[] arr7 = {1,2,3,4,5,6,7}; System.out.println("数组:" + Arrays.toString(arr7)); System.out.println("数组中元素4的下标为:" + Arrays.binarySearch(arr7,4)); } } <file_sep>package example.Math; /* 题目: 计算在-10.8到5.9之间,绝对值大于6或者小于2.1的整数有多少个? */ public class MathPractise { public static void main(String[] args) { /* double a = -10.8; int count = 0; while (a <= 5.9){ if (Math.abs(a) > 6 || Math.abs(a) < 2.1){ count++; } a++; } System.out.println(count);*/ double max = 5.9; double min = -10.8; int count = 0; for (int i = (int) min; i < max; i++){ int abs = Math.abs(i); if (abs > 6 || abs < 2.1){ System.out.print(i + " "); count++; } } System.out.println(); System.out.println(count); } } <file_sep>package example; public class Test04 { public static void main(String[] args) { int[] array = {1,2,3,4,5,6,7,8,9}; for (int num: array) { System.out.println(num); } for (int i = 0; i < array.length / 2; i++) { int temp = array[i]; array[i] = array[array.length - i - 1]; array[array.length - i - 1] = temp; } System.out.println("=============="); for (int i = 0; i < array.length; i++) { System.out.println(array[i]); } } } <file_sep>package Java01; import java.util.Scanner; public class Test { public static void main(String[] args) { System.out.println("请输入行数:"); int n = new Scanner(System.in).nextInt(); int[][] arr = new int[n+1][n+1]; for (int i = 1; i < arr.length; i++) { for (int j = 1; j <= i; j++) { if (j == 1 || j == i){ arr[i][j] = 1; }else { arr[i][j] = arr[i -1][j] + arr[i -1 ][j-1]; } System.out.print(arr[i][j] + "\t"); } System.out.println(); } } } <file_sep>package example; public class TestPerson { public static void main(String[] args) { Person one = new Person(); one.setName("zs"); one.setAge(34); one.setMale(true); System.out.println("姓名:" + one.getName()); System.out.println("年龄:" + one.getAge()); System.out.println("是不是爷们:" + one.isMale()); } } <file_sep>package example; public class Test { public static void main(String[] args){ int[] arr = {1,4,7,3,5,2,8}; for(int i=0; i<arr.length - 1; i++){ //循环多少次 //每次循环比较多少个数 for(int j=0; j<arr.length - 1 - i; j++){ if(arr[j] >arr[j + 1]){ //如果前者大于后者,则交换两者 int temp = arr[j]; arr[j] = arr[j + 1]; arr[j + 1] = temp; } } } for(int num : arr){ System.out.println(num); } } }
e6ef6a7e39933896eb22e63df215dc00fb624dd4
[ "Java" ]
28
Java
Neptune326/Java71
400feb36d11c8e78520bd539f7bf24ea1c8e65d8
936428d096aa6fe9a828ab48b0e38d25db4b0c5c
refs/heads/master
<repo_name>HACC2020/GamingTheArchives<file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/DocumentImageController.cs using ArchiveSite.Data; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Net.Http; using System.Net.Mime; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; namespace ArchiveSiteBackend.Api.Controllers { [ApiController] [Route("api/[controller]")] public class DocumentImageController : ControllerBase { private readonly ILogger<DocumentImageController> logger; private readonly ArchiveDbContext archiveDbContext; public DocumentImageController(ILogger<DocumentImageController> logger, ArchiveDbContext archiveDbContext) { this.logger = logger; this.archiveDbContext = archiveDbContext; } /// <summary> /// The image must be returned from the host; Chrome CORS canvas security does not allow rendering /// of images across domains. /// </summary> /// <param name="documentId"></param> /// <returns></returns> [HttpGet("{documentId}")] [AllowAnonymous] public async Task<IActionResult> Get(Int64 documentId) { var document = await archiveDbContext.Documents.FindAsync(documentId); if (null == document || string.IsNullOrEmpty(document.DocumentImageUrl)) { return NotFound(); } var httpClient = new HttpClient(); try { var url = new Uri(document.DocumentImageUrl); var httpResponse = await httpClient.GetAsync(url); var httpStream = await httpResponse.Content.ReadAsStreamAsync(); this.Response.Headers.Add("Access-Control-Allow-Origin", "Anonymous"); return File(httpStream, httpResponse.Content.Headers.ContentType.MediaType); } catch(Exception) { logger.LogError($"failed to parse the documentId {documentId} url of {document.DocumentImageUrl}"); return NotFound(); } } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/line/LineMarker.d.ts import { LineMarkerBase } from "../LineMarkerBase"; export declare class LineMarker extends LineMarkerBase { static createMarker: () => LineMarkerBase; constructor(); protected setup(): void; } <file_sep>/archive-site-frontend/scripts/deploy.sh #! /bin/sh set -e ng build --prod gsutil rsync -r ./dist/archive-site-frontend gs://app-hiscribe-frontend/ gsutil setmeta -h "Cache-control:no-store, max-age=0" gs://app-hiscribe-frontend/index.html <file_sep>/archive-site-frontend/src/app/models/field.ts import { Model } from 'src/app/models/model'; import { $enum } from 'ts-enum-util'; import { Project } from 'src/app/models/project'; const langEn = 'en'; const langHaw = 'haw'; export class Field extends Model { get englishHelp(): string { return this.getHelpText()[langEn] } set englishHelp(helpText: string) { this.HelpTextData = JSON.stringify({ ...this.getHelpText(), 'en': helpText }); } get hawaiianHelp(): string { return this.getHelpText()[langHaw] } set hawaiianHelp(helpText: string) { this.HelpTextData = JSON.stringify({ ...this.getHelpText(), 'haw': helpText }); } constructor( Id: number = 0, public ProjectId: number = 0, public Name: string = undefined, public HelpTextData: string = undefined, public Index: number = 0, public Type: FieldType = FieldType.String, public Required: boolean = false, public ParsingFormat?: string, public TrueValue?: string, public FalseValue?: string, public ValidationData?: string, public Project?: Project) { super(Id); } getHelpText(): { [key: string]: string } { if (this.HelpTextData) { return JSON.parse(this.HelpTextData); } else { return {}; } } getValidationData(): IValidation[] { if (this.ValidationData) { let validations = <IValidation[]> JSON.parse(this.ValidationData); return validations.map(v => updateConfiguration(v)); } } static fromPayload(payload: any): Field { return new Field( payload.Id, payload.ProjectId, payload.Name, payload.HelpTextData, payload.Index, payload.Type ? toFieldType(payload.Type) : FieldType.String, payload.Required, payload.ParsingFormat, payload.TrueValue, payload.FalseValue, payload.ValidationData ) } } function updateConfiguration(v: IValidation): IValidation { if (v.Configuration) { if (typeof v.Type === 'string') { v.Type = toValidationType(v.Type); } switch (v.Type) { case ValidationType.Length: case ValidationType.IntegerRange: if (typeof v.Configuration.Min === 'string') { v.Configuration.Min = Number(v.Configuration.Min); } if (typeof v.Configuration.Max === 'string') { v.Configuration.Max = Number(v.Configuration.Max); } break; case ValidationType.DateRange: if (typeof v.Configuration.Min === 'string') { v.Configuration.Min = Date.parse(v.Configuration.Min); } if (typeof v.Configuration.Max === 'string') { v.Configuration.Min = Date.parse(v.Configuration.Max); } break; } } return v; } export enum FieldType { Boolean = 'Boolean', Integer = 'Integer', String = 'String', Date = 'Date' } export function toFieldType(value: string): FieldType { return FieldType[$enum(FieldType).asKeyOrDefault(value)]; } export interface IValidation { Type: ValidationType; Configuration: IValidationConfiguration; Condition: any; } export enum ValidationType { Length, Regex, IntegerRange, DateRange, RestrictedValue } export function toValidationType(value: string): ValidationType { return ValidationType[$enum(ValidationType).asKeyOrDefault(value)]; } export interface IValidationConfiguration { Min: string | number | Date; Max: string | number | Date; AllowedValues: string[]; Pattern: string[]; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/EntityBase.cs using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Reflection; namespace ArchiveSite.Data { public abstract class EntityBase<T> where T : EntityBase<T> { private static readonly PropertyInfo[] Properties = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(p => p.CanWrite).ToArray(); [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Int64 Id { get; set; } public virtual void CopyTo(T destination) { foreach (var property in Properties.Where(p => p.Name != nameof(Id))) { property.SetValue(destination, property.GetValue(this)); } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Services/ICloudOcrService.cs using ArchiveSiteBackend.Api.Models; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace ArchiveSiteBackend.Api.Services { public interface ICloudOcrService { public Task<List<DocumentText>> ReadImage(Stream stream); } } <file_sep>/archive-site-frontend/src/app/sign-up/sign-up.component.ts import { Component, OnInit } from '@angular/core'; import { environment } from 'src/environments/environment'; import { UrlHelper } from 'src/app/services/url-helper'; @Component({ selector: 'app-sign-up', templateUrl: './sign-up.component.html', styleUrls: ['./sign-up.component.scss'] }) export class SignUpComponent implements OnInit { constructor(public urlHelper: UrlHelper) { } ngOnInit(): void { } withFacebook(): void { let profileUrl = this.urlHelper.getRouteUrl(['/profile']) let returnUrl = environment.apiUrl.startsWith(window.origin) ? profileUrl : `${window.origin}${profileUrl}`; window.location.href = `${environment.apiUrl}/auth/login-with-facebook?returnUrl=${encodeURIComponent(returnUrl)}`; } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/highlight/HighlightMarkerToolbarItem.d.ts import { ToolbarItem } from "../../toolbar/ToolbarItem"; import { HighlightMarker } from "./HighlightMarker"; export declare class HighlightMarkerToolbarItem implements ToolbarItem { name: string; tooltipText: string; icon: string; markerType: typeof HighlightMarker; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/Field.cs using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ArchiveSite.Data { public class Field : EntityBase<Field> { [Required] [ForeignKey(nameof(Project))] public Int64 ProjectId { get; set; } [Required] [StringLength(100)] public String Name { get; set; } /// <summary> /// A JSON map of language codes to description text. /// </summary> public String HelpTextData { get; set; } /// <summary> /// The position of the field in the field list for this project. /// </summary> [Required] public Int32 Index { get; set; } [Required] public FieldType Type { get; set; } [Required] public Boolean Required { get; set; } [StringLength(1024)] public String ParsingFormat { get; set; } [StringLength(100)] public String TrueValue { get; set; } [StringLength(100)] public String FalseValue { get; set; } /// <summary> /// A JSON serialized objects defining how this field is to be validated. /// </summary> public String ValidationData { get; set; } // The predicted coordinates of this field on each page in % terms public Double? Top { get; set; } public Double? Left { get; set; } public Double? Width { get; set; } public Double? Height { get; set; } public virtual Project Project { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/ProjectsController.cs using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Services; using Microsoft.AspNet.OData; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace ArchiveSiteBackend.Api.Controllers { public class ProjectsController : EntityControllerBase<ArchiveDbContext, Project> { private readonly UserContext userContext; public ProjectsController(ArchiveDbContext context, UserContext userContext) : base(context) { this.userContext = userContext ?? throw new ArgumentNullException(nameof(userContext)); } public async Task<IActionResult> NextDocument([FromODataUri] Int64 key, CancellationToken cancellationToken) { if (this.userContext.LoggedInUser == null) { // Should not happen return Unauthorized(); } // Get the next document in the sequence that meets the following requirements: // * The document status is PendingTranscription // * The current user has not already transcribed it // * The current user has not already skipped it // * Another user has not begun transcription within the last 30 minutes var nextDocument = await this.DbContext.Documents .Where(d => d.ProjectId == key && d.Status == DocumentStatus.PendingTranscription) .GroupJoin( this.DbContext.Transcriptions.Where(t => t.UserId == this.userContext.LoggedInUser.Id), d => d.Id, t => t.Id, (d, t) => new { Document = d, Transcription = t.SingleOrDefault() }) .Where(r => r.Transcription == null) .GroupJoin( this.DbContext.DocumentActions.Where(da => da.UserId == this.userContext.LoggedInUser.Id && da.Type == DocumentActionType.SkipTranscription || da.UserId != this.userContext.LoggedInUser.Id && da.Type == DocumentActionType.BeginTranscription && da.ActionTime > DateTimeOffset.UtcNow.Subtract(TimeSpan.FromMinutes(30))), r => r.Document.Id, da => da.DocumentId, (r, da) => new { r.Document, Actions = da }) .SelectMany( r => r.Actions, (r, action) => new { r.Document, Action = action }) .Where(r => r.Action == null) .Select(r => r.Document) .OrderBy(d => d.FileName) .FirstOrDefaultAsync(cancellationToken); if (nextDocument != null) { return Ok(nextDocument); } else { return NotFound(); } } protected override async Task OnCreated( Project createdEntity, CancellationToken cancellationToken) { await base.OnCreated(createdEntity, cancellationToken); if (createdEntity.Active) { await this.RecordProjectCreatedActivity(createdEntity, true, cancellationToken); } } protected override async Task OnUpdating( Int64 key, Project existing, Project update, CancellationToken cancellationToken) { await base.OnUpdating(key, existing, update, cancellationToken); if (!existing.Active && update.Active) { await this.RecordProjectCreatedActivity(update, false, cancellationToken); } } private async Task RecordProjectCreatedActivity(Project project, Boolean saveChanges, CancellationToken cancellationToken) { await this.DbContext.Activities.AddAsync( new Activity { Type = ActivityType.ProjectCreated, Message = $"{{{{DisplayName}}}} has created a new project: {project.Name}!", EntityType = nameof(Project), EntityId = project.Id, UserId = this.userContext.LoggedInUser.Id, CreatedTime = DateTimeOffset.UtcNow }, cancellationToken ); if (saveChanges) { await this.DbContext.SaveChangesAsync(cancellationToken); } } } } <file_sep>/INSTRUCTIONS.md # Instructions A demo of this application is available at [https://www.hiscribe.app/](https://www.hiscribe.app/). There's a few things you'll need to know about using the site. The app should generally be compatible with major browsers, however most testing has been done on Chromium based browser (Google Chrome, Microsoft Edge, Brave, etc). There is at least one known issue in FireFox. So if possible, please use Google Chrome or a Chromium based web browser. If you need help or encounter issues please let us know via the #GamingTheArchives channel on [Slack](https://hacc2020.slack.com/), or email us at [<EMAIL>](mailto:<EMAIL>). ## Logging In While the site should be accessible to anonymous visitors, it is read only until visitors have logged in. So if you want to transcribe documents or create new projects you'll need to sign up and log in. Sign up is done with Facebook. When you click "Continue With Facebook" or "Log In With Facebook" you will be taken to facebook.com where you may need to log in to your Facebook account, and on the first usage you will need to authorize the GamingTheArchives app. After you are logged in to Facebook you should be redirected to the [profile page](https://www.hiscribe.app/#/profile) where you will need to enter a display name and save your profile before you can start using the site. ## Transcribing Transcribing is pretty self explanatory. First choose a project from the list. Next select a document to start with. On the transcription page you can type in data into each field, or you can click and drag one of the target icons next to each input field and drag it to a highlighted spot on the document to automatically fill in text that was found on the document using Azure Cognitive Services. Your changes will be saved to the server as you go. You can click next or previous to see other documents. Once you have entered all the data you want for a given document you can click submit to make it ready for review, at which point it will become read only. The help button is there to submit a question or report a problem to the Hawai'i State Archives staff. However it has not yet been implemented. ## Creating a new Project This app is "fully" functional and not just demo ware! You can actually add new projects and start transcribing them. To do so, go to the home screen, click the circular green plus button in the lower right, and select Add Project. Enter a project name and hit next. Then you can optionally upload a specially formatted XML file that the Hawai'i State Archives uses to define their projects. You can find a number of examples in our [git repository](https://github.com/HACC2020/GamingTheArchives/tree/master/samples). It is important that the XML file be well formed and in the right format. On the next screen you can also manually add and modify fields. The last step of creating a project is to submit a list of image URLs for the documents to be transcribed. It is important that these URLs be **publicly** accessible. URLs that start with `file:///` aren't going to work because they are only accessible on your own machine. Also some file hosting services restrict access to the files they host. To be sure your URL is publicly accessible check that it starts with `http://` or `https://` and that you can view it using an "Incognito" or "Private" browser window. If you need some URLs to test with you can find a list of samples [here](samples/ChineseArrivals_1878/images/image-urls.txt). Once your project is created it will be listed as "Inactive" and only visible to logged in users. To publish your new project, click on its name to go to the project details page, then click the gear icon on the upper right side of the page. This will take you to the settings screen where you can change details of the project, make adjustments to the field list, and activate the project by clicking the checkbox in the lower left. Once you save that change your project is ready to start archiving. ## TODO I don't want to take away from the incredible amount of great functionality that has been implemented in this project. However there is a lot of work still to do on this project: * Badges awarded to transcribers for various achievements as they are working. * Leader boards showing who has transcribed the most documents. * An activity feed showing all recent activity on the site. * Personal statistics & activity feed showing each user all of their activity both as condensed statistics, list of documents, and as an exhaustive log. * Document Upload via integration with consumer file storage (OneDrive, Box.com, DropBox). * Reviewer workflow (review transcriptions, highlight discrepancies, merge and approve final versions). * Transcription field validation * Help/Problem requests and comment/discussion threads. <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/Document.cs using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ArchiveSite.Data { public class Document : EntityBase<Document> { [Required, StringLength(1024)] public String FileName { get; set; } [Required, StringLength(1024)] public String DocumentImageUrl { get; set; } [Required] [ForeignKey(nameof(Project))] public Int64 ProjectId { get; set; } [Required] public DocumentStatus Status { get; set; } = DocumentStatus.PendingTranscription; [Required] public Int32 TranscriptionCount { get; set; } [ForeignKey(nameof(Transcription))] public Int64? ApprovedTranscriptionId { get; set; } public virtual Project Project { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Helpers/TaskExtensions.cs using System.Threading.Tasks; namespace ArchiveSiteBackend.Api.Helpers { public static class TaskExtensions { public static void AwaitSynchronously(this Task task) { task.ConfigureAwait(false).GetAwaiter().GetResult(); } public static T AwaitSynchronously<T>(this Task<T> task) { return task.ConfigureAwait(false).GetAwaiter().GetResult(); } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/LineMarkerBaseState.d.ts import { MarkerBaseState } from "./MarkerBaseState"; export interface LineMarkerBaseState extends MarkerBaseState { x1: number; y1: number; x2: number; y2: number; } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/ResizeGrip.d.ts export declare class ResizeGrip { visual: SVGGraphicsElement; readonly GRIP_SIZE = 10; constructor(); } <file_sep>/archive-site-frontend/src/app/services/data-entity-service-wrapper.ts import { IDataEntityService } from 'src/app/services/data-entity-service'; import { EntityKey, HttpOptions, ODataApiConfig, ODataEntityConfig, ODataEntityResource, ODataEntityService, ODataEntitySetResource, ODataServiceConfig } from 'angular-odata'; import { Observable } from 'rxjs'; export class DataEntityServiceWrapper<T> implements IDataEntityService<T> { get apiConfig(): ODataApiConfig { return this.service.apiConfig; } get entityConfig(): ODataEntityConfig<T> { return this.service.entityConfig; } get serviceConfig(): ODataServiceConfig { return this.service.serviceConfig; } constructor(protected service: ODataEntityService<T>) { } entities(): ODataEntitySetResource<T> { return this.service.entities(); } entity(key?: EntityKey<T>): ODataEntityResource<T> { return this.service.entity(key); } create(entity: Partial<T>, options?: HttpOptions): Observable<T> { return this.service.create(entity, options); } update(entity: Partial<T>, options?: HttpOptions): Observable<T> { return this.service.update(entity, options); } assign(entity: Partial<T>, attrs: Partial<T>, options?: HttpOptions): Observable<T> { return this.service.assign(entity, attrs, options); } destroy(entity: Partial<T>, options?: HttpOptions): Observable<any> { return this.service.destroy(entity, options); } } <file_sep>/archive-site-frontend/src/app/notifications-container.component.ts import { Component, OnInit, TemplateRef } from '@angular/core'; import { NotificationService } from 'src/app/services/notification-service'; @Component({ selector: 'app-notifications', template: ` <ngb-toast *ngFor="let notice of notificationService.notifications" [class]="notice.className" [autohide]="true" [delay]="notice.delay || 5000" (hide)="notificationService.remove(notice)"> <ng-template [ngIf]="isTemplate(notice)" [ngIfElse]="text"> <ng-template [ngTemplateOutlet]="notice.textOrTpl"></ng-template> </ng-template> <ng-template #text>{{ notice.textOrTpl }}</ng-template> </ngb-toast> `, host: { '[class.ngb-toasts]': 'true' } }) export class NotificationsContainerComponent implements OnInit { constructor(public notificationService: NotificationService) { } isTemplate(toast): boolean { return (toast.textOrTpl instanceof TemplateRef); } ngOnInit(): void { } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/cover/CoverMarkerToolbarItem.d.ts import { ToolbarItem } from "../../toolbar/ToolbarItem"; import { CoverMarker } from "./CoverMarker"; export declare class CoverMarkerToolbarItem implements ToolbarItem { name: string; tooltipText: string; icon: string; markerType: typeof CoverMarker; } <file_sep>/archive-site-frontend/src/app/services/document.service.ts import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { ODataEntities } from 'angular-odata'; import { from, Observable, of } from 'rxjs'; import { map, mergeMap, tap } from 'rxjs/operators'; import { environment } from 'src/environments/environment'; import { DOCUMENTS } from '../mock-data/mock-documents'; import AzureTranscription from '../models/azure-transcription'; import BoundingBox from '../models/bounding-box'; import { Document } from '../models/document'; import { Transcription } from '../models/transcription'; import { DataApiService } from './data-api.service'; import { UserContextService } from 'src/app/services/user-context-service'; @Injectable({ providedIn: 'root' }) export class DocumentService { constructor( private _dataApiService: DataApiService, private _userContext: UserContextService, private _httpClient: HttpClient) { } getDocumentsByProjectId(projectId: number): Observable<Document[]> { const documents$ = this._dataApiService.documentService.entities() .filter({ ProjectId: projectId }) .orderBy("id asc") .get(); return documents$.pipe( map((odata: ODataEntities<Document>) => odata.entities) ); } getDocumentByDocumentId(documentId: number): Observable<Document> { return this._dataApiService.documentService.entity(documentId).fetch(); } getNextDocument(projectId: number, documentId: number): Observable<Document> { const nextDocument$ = this._dataApiService.documentService.entities() .filter({ ProjectId: projectId, Id: { gt: documentId } }) .top(1).get(); return DocumentService.mapSingleDocument(nextDocument$); } getPreviousDocument(projectId: number, documentId: number): Observable<Document> { const previousDocument$ = this._dataApiService.documentService.entities() .filter({ ProjectId: projectId, Id: { lt: documentId } }) .orderBy("id desc").top(1).get(); return DocumentService.mapSingleDocument(previousDocument$); } getCurrentUserTranscription(documentId: number): Observable<Transcription> { return this._userContext.user$ .pipe( mergeMap(user => { if (!user) { console.warn('not logged in'); throw new Error('User not logged in.'); } console.log('Checking for existing transcriptions.'); return this._dataApiService.transcriptionService.entities() .filter({ DocumentId: documentId, UserId: user.Id }) .get() }), map(t => t.entities && t.entities[0])); } async saveTranscription(transcription: Transcription): Promise<Transcription> { let saved: Transcription; if (transcription.Id) { saved = await this._dataApiService.transcriptionService .entity(transcription.Id) .put(transcription) .pipe(map(t => t.entity)) .toPromise(); } else { saved = await this._dataApiService.transcriptionService .create(transcription) .toPromise(); } console.log('Saved transcriptions: ' + JSON.stringify(saved)); return saved; } private static mapSingleDocument(document$: Observable<ODataEntities<Document>>): Observable<Document> { return document$.pipe( map((odata: ODataEntities<Document>) => { if (odata.entities.length > 0) { return odata.entities.pop(); } return null; }) ); } getAzureTranscription(documentId: number): Observable<Array<AzureTranscription>> { const apiUrl = `${environment.apiUrl}/CognitiveService`; const cacheKey = `azureTranscription:${documentId}`; const cacheObject = (data => data ? JSON.parse(data) : undefined)(localStorage.getItem(cacheKey)); if (cacheObject) { const azureTranscriptions = new Array<AzureTranscription>(); cacheObject.forEach(element => { const boundingBox = element.BoundingBox; const azureTranscription = new AzureTranscription( new BoundingBox(boundingBox.Top, boundingBox.Left, boundingBox.Bottom, boundingBox.Right), element.Text ); azureTranscriptions.push(azureTranscription); }); return of<Array<AzureTranscription>>(azureTranscriptions); } return this._httpClient.post<Array<AzureTranscription>>(apiUrl, documentId) .pipe(tap(transcription => { localStorage.setItem(cacheKey, JSON.stringify(transcription)); })); } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/RectangularMarkerGrips.d.ts import { ResizeGrip } from "./ResizeGrip"; export declare class RectangularMarkerGrips { topLeft: ResizeGrip; topCenter: ResizeGrip; topRight: ResizeGrip; centerLeft: ResizeGrip; centerRight: ResizeGrip; bottomLeft: ResizeGrip; bottomCenter: ResizeGrip; bottomRight: ResizeGrip; findGripByVisual: (gripVisual: SVGGraphicsElement) => ResizeGrip; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/TranscriptionsController.cs using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Services; using Microsoft.EntityFrameworkCore; namespace ArchiveSiteBackend.Api.Controllers { public class TranscriptionsController : EntityControllerBase<ArchiveDbContext, Transcription> { private readonly UserContext userContext; public TranscriptionsController(ArchiveDbContext dbContext, UserContext userContext) : base(dbContext) { this.userContext = userContext ?? throw new ArgumentNullException(nameof(userContext)); } protected override async Task OnCreated( Transcription createdEntity, CancellationToken cancellationToken) { await base.OnCreated(createdEntity, cancellationToken); if (createdEntity.IsSubmitted) { await this.RecordTranscriptionCreatedActivity(createdEntity, true, cancellationToken); } } protected override async Task OnUpdating( Int64 key, Transcription existing, Transcription update, CancellationToken cancellationToken) { await base.OnUpdating(key, existing, update, cancellationToken); if (!existing.IsSubmitted && update.IsSubmitted) { await RecordTranscriptionCreatedActivity(update, false, cancellationToken); } } private async Task RecordTranscriptionCreatedActivity( Transcription transcription, Boolean saveChanges, CancellationToken cancellationToken) { if (this.userContext.LoggedInUser == null) { throw new InvalidOperationException("Missing authorization context."); } var project = await this.DbContext.Documents .Where(d => d.Id == transcription.DocumentId) .Join(this.DbContext.Projects, d => d.ProjectId, p => p.Id, (_, p) => p) .SingleOrDefaultAsync(cancellationToken: cancellationToken); await this.DbContext.Activities.AddAsync( new Activity { Type = ActivityType.TranscriptionSubmitted, Message = $"{{{{DisplayName}}}} submitted a transcription for the project {project?.Name ?? "Untitled"}", EntityType = nameof(Transcription), EntityId = transcription.Id, UserId = this.userContext.LoggedInUser.Id, CreatedTime = DateTimeOffset.UtcNow }, cancellationToken ); if (saveChanges) { await this.DbContext.SaveChangesAsync(cancellationToken); } } } } <file_sep>/archive-site-frontend/src/app/services/user.service.ts import { Injectable } from '@angular/core'; import { User } from '../models/user'; import { DataApiService } from 'src/app/services/data-api.service'; import { DataEntityServiceWrapper } from 'src/app/services/data-entity-service-wrapper'; import { environment } from 'src/environments/environment'; @Injectable({ providedIn: 'root' }) export class UserService extends DataEntityServiceWrapper<User> { constructor(api: DataApiService) { super(api.userService); } isAuthenticated(): Promise<boolean> { return this.ident().then(ident => ident && !!ident.Email); } async ident(): Promise<{ Email: string }> { let response = await fetch( this.getActionUrl('ident'), { credentials: 'include' } ); if (response.ok) { return response.json(); } else { return; } } async me(): Promise<User> { let response = await fetch(this.getActionUrl('me'), { credentials: 'include' }); if (response.ok) { return User.fromPayload(await response.json()); } else if (response.status == 404) { return undefined; } else { // TODO figure out the right approach here to make this behave like other ODataEntityService methods. console.log(response); throw new Error(`Unable to fetch the current user's profile. ${response.status} ${response.statusText}`); } } async saveProfile(user: User): Promise<User> { let response = await fetch( `${this.apiConfig.serviceRootUrl}Users/saveprofile`, { credentials: environment.apiCredentialMode, method: 'post', body: JSON.stringify(user), headers: { 'Content-Type': 'application/json' } } ); if (response.ok) { return User.fromPayload(await response.json()); } else { // TODO figure out the right approach here to make this behave like other ODataEntityService methods. console.log(response); throw new Error(`Unable to save the current user's profile. ${response.status} ${response.statusText}`); } } private getActionUrl(actionName: string) { return `${this.apiConfig.serviceRootUrl}Users/${actionName}`; } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/UserType.cs namespace ArchiveSite.Data { public enum UserType { Rookie, Indexer, Proofer, Archivist, Administrator } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/CommandLineOptions/InitializeOptions.cs using System; using CommandLine; namespace ArchiveSiteBackend.Api.CommandLineOptions { [Verb("init", HelpText = "Initialize the archive database.")] public class InitializeOptions : CommonOptions { [Option("drop", HelpText = "A flag that indicates the database should be dropped and recreated if it already exists.")] public Boolean DropDatabase { get; set; } [Option("seed", HelpText = "A flag that seeds the database with demo data.")] public Boolean SeedDatabase { get; set; } } } <file_sep>/archive-site-backend/Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers RUN mkdir -p /app/src/ArchiveSiteBackend.Data && mkdir -p /app/src/ArchiveSiteBackend.Api COPY ./src/ArchiveSiteBackend.Data/*.csproj ./src/ArchiveSiteBackend.Data COPY ./src/ArchiveSiteBackend.Api/*.csproj ./src/ArchiveSiteBackend.Api WORKDIR /app/src/ArchiveSiteBackend.Api RUN dotnet restore # Copy everything else and build COPY ./src/ArchiveSiteBackend.Data /app/src/ArchiveSiteBackend.Data COPY ./src/ArchiveSiteBackend.Api ./ RUN dotnet publish -c Release -o ../../out # Build runtime image FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR /app COPY --from=build-env /app/out . EXPOSE 80 ENTRYPOINT ["dotnet", "archive-api.dll"] <file_sep>/archive-site-frontend/src/app/models/activity-type.ts export enum ActivityType { UserSignup = 'UserSignup', TranscriptionSubmitted = 'TranscriptionSubmitted', ProjectCreated = 'ProjectCreated', ProjectCompleted = 'ProjectCompleted', TranscriptionApproved = 'TranscriptionApproved' } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/DocumentNotesController.cs using System; using System.Threading; using System.Threading.Tasks; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Services; namespace ArchiveSiteBackend.Api.Controllers { public class DocumentNotesController : EntityControllerBase<ArchiveDbContext, DocumentNote> { private readonly UserContext userContext; public DocumentNotesController(ArchiveDbContext context, UserContext userContext) : base(context) { this.userContext = userContext ?? throw new ArgumentNullException(nameof(userContext)); } protected override async Task OnCreating( DocumentNote entity, CancellationToken cancellationToken) { await base.OnCreating(entity, cancellationToken); if (this.userContext.LoggedInUser == null) { throw new InvalidOperationException( "Unable to create a document node from an unauthenticated context" ); } if (this.ModelState.IsValid) { entity.CreatedTime = DateTimeOffset.UtcNow;; entity.AuthorId = this.userContext.LoggedInUser.Id; } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/Activity.cs using System; using System.ComponentModel.DataAnnotations; namespace ArchiveSite.Data { public class Activity : EntityBase<Activity> { [Required] public Int64 UserId { get; set; } [Required] public String Message { get; set; } public Int64? EntityId { get; set; } [MaxLength(100)] public String EntityType { get; set; } [Required] public ActivityType Type { get; set; } [Required] public DateTimeOffset CreatedTime { get; set; } public virtual User User { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Helpers/RtpHelper.cs using System; using System.Collections.Generic; using System.Linq; using System.Xml; using System.Xml.Linq; using System.Xml.Schema; using System.Xml.Serialization; using ArchiveSite.Data; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Formatting = Newtonsoft.Json.Formatting; namespace ArchiveSiteBackend.Api.Helpers { public static class RtpHelper { [ThreadStatic] private static XmlSerializer rtpColumnSerializer; public static XmlSerializer RtpColumnSerializer => rtpColumnSerializer ??= new XmlSerializer(typeof(RtpColumn)); public static Field ParseField(String commentText, XElement element) { var column = ParseRtpColumn(element); String name = null; String helpTextData = null; if (commentText != null) { if (commentText.IndexOf(" | ", StringComparison.Ordinal) > 0) { var parts = commentText.Split(new[] { '|' }, 2).Select(s => s.Trim()).ToArray(); name = parts[1]; if (name.Length > 100) { name = name.Substring(0, 100); } helpTextData = JsonConvert.SerializeObject(new { haw = parts[0], en = parts[1] }); } else { name = commentText.Trim(); } } var field = new Field { Index = column.Index, Name = name, HelpTextData = helpTextData, Type = (FieldType)column.Type, Required = column.Required }; switch (column.Type) { case RtpColumnType.Boolean: field.TrueValue = column.Parsing?.TrueValue; field.FalseValue = column.Parsing?.FalseValue; break; case RtpColumnType.Date: field.ParsingFormat = column.Parsing?.Format; break; } if (column.Validations != null) { field.ValidationData = JsonConvert.SerializeObject( column.Validations, Formatting.None, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, Converters = { new StringEnumConverter() } } ); } return field; } public static RtpColumn ParseRtpColumn(XElement element) { using var reader = element.CreateReader(); return (RtpColumn)RtpColumnSerializer.Deserialize(reader); } [XmlType("column")] public class RtpColumn { [XmlElement("index")] public Int32 Index { get; set; } [XmlElement("type")] public RtpColumnType Type { get; set; } [XmlElement("required")] public Boolean Required { get; set; } [XmlElement("parsing")] public RtpParsingConfiguration Parsing { get; set; } [XmlArray("validations")] [XmlArrayItem("validation")] public RtpValidation[] Validations { get; set; } } public enum RtpColumnType { [XmlEnum(Name = "boolean")] Boolean, [XmlEnum(Name = "integer")] Integer, [XmlEnum(Name = "string")] String, [XmlEnum(Name = "date")] Date } public class RtpParsingConfiguration { [XmlElement("format")] public String Format { get; set; } [XmlElement("trueValue")] public String TrueValue { get; set; } [XmlElement("falseValue")] public String FalseValue { get; set; } } public class RtpValidation { [XmlElement("type")] public RtpValidationType Type { get; set; } [XmlElement("configuration")] public RtpValidationConfiguration Configuration { get; set; } [XmlElement("condition")] public RtpValidationCondition Condition { get; set; } } public enum RtpValidationType { // The column value must be between a specified minimum and maximum length. [XmlEnum("length")] Length, // The column value must match a specified regular expression. [XmlEnum("regex")] Regex, // The column value must be an integer between a specified minimum and maximum. [XmlEnum("integer-range")] IntegerRange, // The column value must be a date between a specified minimum and maximum. [XmlEnum("date-range")] DateRange, // The column value must be one of a specified set of allowed values. [XmlEnum("restricted-value")] RestrictedValue } public class RtpValidationConfiguration { [XmlElement("min")] public String Min { get; set; } [XmlElement("max")] public String Max { get; set; } [XmlArray("allowedValues")] [XmlArrayItem("value")] public String[] AllowedValues { get; set; } [XmlElement("pattern")] public String Pattern { get; set; } } [JsonConverter(typeof(RtpValidationConditionJsonConverter))] public class RtpValidationCondition : IXmlSerializable { public RtpValidationConditionOperator RootOperator { get; set; } public XmlSchema GetSchema() { return null; } public void ReadXml(XmlReader reader) { reader.ReadStartElement(); if (reader.MoveToContent() == XmlNodeType.Element) { this.RootOperator = this.ReadOperator(reader); } } public void WriteXml(XmlWriter writer) { throw new NotImplementedException(); } private RtpValidationConditionOperator ReadOperator(XmlReader reader) { if (reader.IsEmptyElement) { throw new XmlException( $"Expected element {reader.LocalName} to contain child elements." ); } switch (reader.LocalName) { case "and": reader.ReadStartElement(); reader.MoveToContent(); var andOp = new RtpLogicalBooleanValidationConditionOperator { Type = RtpValidationConditionOperatorType.And, Operands = this.ReadOperands(reader).ToArray() }; reader.ReadEndElement(); // </and> return andOp; case "or": reader.ReadStartElement(); reader.MoveToContent(); var orOp = new RtpLogicalBooleanValidationConditionOperator { Type = RtpValidationConditionOperatorType.Or, Operands = this.ReadOperands(reader).ToArray() }; reader.ReadEndElement(); // </or> return orOp; case "not": reader.ReadStartElement(); reader.MoveToContent(); var notOp = new RtpLogicalNotValidationConditionOperator { Operand = this.ReadOperator(reader) }; reader.ReadEndElement(); // </not> return notOp; case "equals": case "pattern": var compareOp = new RtpComparisonValidationConditionOperator { Type = reader.LocalName == "equals" ? RtpValidationConditionOperatorType.Equals : RtpValidationConditionOperatorType.Pattern }; reader.ReadStartElement(); reader.MoveToContent(); while (reader.IsStartElement()) { if (reader.IsEmptyElement) { throw new XmlException( $"Expected element {reader.LocalName} to contain child elements." ); } switch (reader.LocalName) { case "column": var columnContent = reader.ReadElementContentAsString(); if (Int32.TryParse(columnContent, out var col)) { compareOp.Column = col; } else { throw new XmlException( $"Invalid value for column specifier in comparison: {columnContent}" ); } break; case "value": compareOp.Value = reader.ReadElementContentAsString(); break; default: throw new XmlException( $"Unexpected element encountered parsing RtpCondition comparison operator: {reader.LocalName}" ); } // No need to ReadEndElement, ReadElementContentAsString consumes the whole element } reader.ReadEndElement(); // </equals> or </pattern> return compareOp; default: throw new XmlException($"Unrecognized RtpCondition operator {reader.LocalName}"); } } private IEnumerable<RtpValidationConditionOperator> ReadOperands(XmlReader reader) { while (reader.IsStartElement()) { yield return ReadOperator(reader); reader.MoveToContent(); // Skip any whitespace and comments } } } public enum RtpValidationConditionOperatorType { Equals, Pattern, And, Or, Not } public abstract class RtpValidationConditionOperator { public RtpValidationConditionOperatorType Type { get; set; } } public class RtpLogicalBooleanValidationConditionOperator : RtpValidationConditionOperator { public RtpValidationConditionOperator[] Operands { get; set; } } public class RtpLogicalNotValidationConditionOperator : RtpValidationConditionOperator { public RtpValidationConditionOperator Operand { get; set; } public RtpLogicalNotValidationConditionOperator() { this.Type = RtpValidationConditionOperatorType.Not; } } public class RtpComparisonValidationConditionOperator : RtpValidationConditionOperator { public Int32 Column { get; set; } public String Value { get; set; } } public class RtpValidationConditionJsonConverter : JsonConverter<RtpValidationCondition> { public override void WriteJson( JsonWriter writer, RtpValidationCondition value, JsonSerializer serializer) { /* * // A condition object * { "and": [ * { "equals": { "column": 1, "value": "foo" } }, * { "not": { "pattern": { "column": 2, "value": "[a-zA-Z]*" } } } ] * } */ WriteOperatorJson(writer, value.RootOperator, serializer); } private static void WriteOperatorJson( JsonWriter writer, RtpValidationConditionOperator @operator, JsonSerializer serializer) { writer.WriteStartObject(); switch (@operator) { case RtpLogicalBooleanValidationConditionOperator logicalOperator: writer.WritePropertyName(@operator.Type.ToString().ToLowerInvariant()); writer.WriteStartArray(); foreach (var operand in logicalOperator.Operands) { WriteOperatorJson(writer, operand, serializer); } writer.WriteEndArray(); break; case RtpLogicalNotValidationConditionOperator notOperator: writer.WritePropertyName("not"); WriteOperatorJson(writer, notOperator.Operand, serializer); break; case RtpComparisonValidationConditionOperator comparisonOperator: writer.WritePropertyName(comparisonOperator.Type.ToString().ToLowerInvariant()); serializer.Serialize( writer, new { column = comparisonOperator.Column, value = comparisonOperator.Value } ); break; } writer.WriteEndObject(); } public override RtpValidationCondition ReadJson( JsonReader reader, Type objectType, RtpValidationCondition existingValue, Boolean hasExistingValue, JsonSerializer serializer) { throw new NotImplementedException(); } } } } <file_sep>/archive-site-frontend/src/app/models/document.ts import { Model } from './model' import { Project } from 'src/app/models/project'; export class Document extends Model { constructor( id: number = 0, public ProjectId: number = undefined, public FileName: string = undefined, public DocumentImageUrl: string = undefined, public Status: string = "PendingTranscription", public Project?: Project) { super(id); } } <file_sep>/archive-site-frontend/src/app/mock-data/mock-users.ts import { User } from '../models/user'; import { UserType } from '../models/user-type'; export const USERS: User[] = [ { EmailAddress: '<EMAIL>', DisplayName: 'madMelvin', Type: UserType.Rookie, LastLogin: new Date(), SignUpDate: new Date(), Id: 11 }, { EmailAddress: '<EMAIL>', DisplayName: '<NAME>', Type: UserType.Rookie, LastLogin: new Date(), SignUpDate: new Date(), Id: 12 }, { EmailAddress: '<EMAIL>', DisplayName: '<NAME>', Type: UserType.Rookie, LastLogin: new Date(), SignUpDate: new Date(), Id: 13 }, { EmailAddress: '<EMAIL>', DisplayName: 'ChiliMac', Type: UserType.Rookie, LastLogin: new Date(), SignUpDate: new Date(), Id: 14 } ]; <file_sep>/archive-site-frontend/local_modules/markerjs/typings/helpers/SvgHelper.d.ts export declare class SvgHelper { static createRect: (width: string | number, height: string | number, attributes?: [string, string][]) => SVGRectElement; static createLine: (x1: string | number, y1: string | number, x2: string | number, y2: string | number, attributes?: [string, string][]) => SVGLineElement; static createPolygon: (points: string, attributes?: [string, string][]) => SVGPolygonElement; static createCircle: (radius: number, attributes?: [string, string][]) => SVGCircleElement; static createEllipse: (rx: number, ry: number, attributes?: [string, string][]) => SVGEllipseElement; static createGroup: (attributes?: [string, string][]) => SVGGElement; static setAttributes: (el: SVGElement, attributes: [string, string][]) => void; static createTransform: () => SVGTransform; static createDefs: () => SVGDefsElement; static createMarker: (id: string, orient: string, markerWidth: string | number, markerHeight: string | number, refX: string | number, refY: string | number, markerElement: SVGGraphicsElement) => SVGMarkerElement; static createText: (attributes?: [string, string][]) => SVGTextElement; static createTSpan: (text: string, attributes?: [string, string][]) => SVGTSpanElement; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Middleware/IRequestMiddleware.cs using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace ArchiveSiteBackend.Api.Middleware { public abstract class RequestMiddlewareBase<TDep> { private readonly RequestDelegate nextRequestDelegate; protected RequestMiddlewareBase(RequestDelegate nextRequestDelegate) { this.nextRequestDelegate = nextRequestDelegate ?? throw new ArgumentNullException(nameof(nextRequestDelegate)); } public async Task InvokeAsync(HttpContext context, TDep scopedDependency) { await this.OnInvoke(context, scopedDependency); await this.nextRequestDelegate(context); } protected abstract Task OnInvoke(HttpContext context, TDep scopedDependency); } public abstract class RequestMiddlewareBase<TDep1, TDep2> { private readonly RequestDelegate nextRequestDelegate; protected RequestMiddlewareBase(RequestDelegate nextRequestDelegate) { this.nextRequestDelegate = nextRequestDelegate ?? throw new ArgumentNullException(nameof(nextRequestDelegate)); } public async Task InvokeAsync( HttpContext context, TDep1 scopedDependency1, TDep2 scopedDependency2) { await this.OnInvoke(context, scopedDependency1, scopedDependency2); await this.nextRequestDelegate(context); } protected abstract Task OnInvoke( HttpContext context, TDep1 scopedDependency1, TDep2 scopedDependency2); } } <file_sep>/archive-site-frontend/src/app/create-project/create-project.component.ts import { Component, OnInit, ViewChild } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { DataApiService } from 'src/app/services/data-api.service'; import { Project } from 'src/app/models/project'; import { Document } from 'src/app/models/document'; import { MessageService } from 'src/app/services/message.service'; import { ProjectDetailsFormComponent } from 'src/app/project-details-form/project-details-form.component'; import { Field } from 'src/app/models/field'; import { environment } from 'src/environments/environment'; import * as _ from 'lodash'; import { A } from '@angular/cdk/keycodes'; import { map } from 'rxjs/operators'; export enum CreateProjectModalStep { ProjectDetails, UploadRtpXml, EditFieldList, UploadProjectDocuments, } @Component({ selector: 'app-create-project-modal', templateUrl: './create-project.component.html', styleUrls: ['./create-project.component.scss'] }) export class CreateProjectModal implements OnInit { // Make our enum type accessible to the template CreateProjectModalStep = CreateProjectModalStep; isSaving = false; name: string; description?: string; fields: Field[]; urls?: string; step: CreateProjectModalStep = CreateProjectModalStep.ProjectDetails; isReady: boolean = false; errorMessage: string; @ViewChild('projectDetailsForm') protected projectDetailsForm: ProjectDetailsFormComponent; private _rtpXmlFile: File; private _project: Project; get nextButtonText(): string { switch (this.step) { case CreateProjectModalStep.ProjectDetails: return "Next"; case CreateProjectModalStep.UploadRtpXml: if (this._rtpXmlFile) { return "Next"; } else { return "Skip"; } case CreateProjectModalStep.EditFieldList: return "Next"; case CreateProjectModalStep.UploadProjectDocuments: return "Save"; } } get backButtonText(): string { switch (this.step) { case CreateProjectModalStep.ProjectDetails: return 'Cancel'; default: return 'Back'; } } constructor( public activeModal: NgbActiveModal, private _dataApi: DataApiService, private messageService: MessageService) { } ngOnInit(): void { } back(): void { this.errorMessage = ''; switch (this.step) { case CreateProjectModalStep.ProjectDetails: this.activeModal.dismiss('Cancel'); break; case CreateProjectModalStep.UploadRtpXml: this.step = CreateProjectModalStep.ProjectDetails; break; case CreateProjectModalStep.EditFieldList: this.step = CreateProjectModalStep.UploadRtpXml; break; case CreateProjectModalStep.UploadProjectDocuments: this.step = CreateProjectModalStep.EditFieldList; break; } } async next(): Promise<void> { this.errorMessage = ''; this.isSaving = true; try { switch (this.step) { case CreateProjectModalStep.ProjectDetails: if (!this._project) { this._project = await this._dataApi.projectService .create(new Project(0, this.name, this.description, undefined, false)) .toPromise(); this.messageService.add(`A new project has been added: ${this.name}`); } else { this._project = await this._dataApi.projectService .entity(this._project.Id) .put(this._project) .pipe(map(p => p.entity)) .toPromise(); } this.step = CreateProjectModalStep.UploadRtpXml; break; case CreateProjectModalStep.UploadRtpXml: if (this._rtpXmlFile) { let formData = new FormData(); formData.append('rtpXml', this._rtpXmlFile); let response = await fetch( `${environment.apiUrl}/odata/Fields/parse-rtp-xml`, { method: 'POST', body: formData, credentials: environment.apiCredentialMode } ); if (response.ok) { let fieldParserResults = await response.json(); for (let w of fieldParserResults.Warnings) { console.warn(w); } this.fields = _.orderBy(fieldParserResults.Fields.map(Field.fromPayload), 'Index') .map((f: Field, ix) => { // Make sure all fields have a contiguous set of indices. f.Index = ix; return f; }); } else { if (response.status === 400 && response.headers.get('Content-Length')) { let problem = await response.json(); this.errorMessage = problem.Title || 'Unable to import field list.'; console.warn(problem); } else { this.errorMessage = 'Unable to import field list.'; } } } else if (!this.fields) { this.fields = []; } this.step = CreateProjectModalStep.EditFieldList; break; case CreateProjectModalStep.EditFieldList: let createFieldPromises: Promise<Field>[] = []; let updateFieldPromises: Promise<Field>[] = []; for (let field of this.fields) { if (field.Id) { updateFieldPromises.push( this._dataApi.fieldService .entity(field.Id) .put(field) .pipe(map(f => f.entity)) .toPromise() ); } else { field.ProjectId = this._project.Id; createFieldPromises.push(this._dataApi.fieldService.create(field).toPromise()); } } let createdFields = await Promise.all(createFieldPromises); let updatedFields = await Promise.all(updateFieldPromises); this.fields = _.orderBy(createdFields.concat(updatedFields), 'Index'); this.step = CreateProjectModalStep.UploadProjectDocuments; break; case CreateProjectModalStep.UploadProjectDocuments: await this.createDocumentsFromUrls(this._project.Id); this.activeModal.close({ project: this._project, fields: this.fields }); break; } } finally { this.isSaving = false; } } createDocumentsFromUrls(projectId: number): Promise<Document[]> { const promises = []; this.urls.split('\n') .forEach(url => { url = url.trim(); // This is to avoid empty strings or a stray character added if (url.length > 5) { promises.push(this.createDocumentFromUrl(projectId, url)); } }); return Promise.all(promises); } createDocumentFromUrl(projectId: number, url: string): Promise<Document> { return ( this._dataApi.documentService .create(new Document(0, projectId, 'na', url)) .toPromise()); } onFileChange(event: Event) { const target = <HTMLInputElement> event.target; if (target.files && target.files.length) { this._rtpXmlFile = target.files[0]; } else { this._rtpXmlFile = undefined; } } onProjectDetailsFormChange() { if (this.step === CreateProjectModalStep.ProjectDetails) { this.isReady = !this.projectDetailsForm.invalid; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/DocumentsController.cs using ArchiveSite.Data; namespace ArchiveSiteBackend.Api.Controllers { public class DocumentsController : EntityControllerBase<ArchiveDbContext, Document> { public DocumentsController(ArchiveDbContext context) : base(context) { } } } <file_sep>/archive-site-frontend/src/app/project-settings/project-settings.component.ts import { Component, OnInit } from '@angular/core'; import { Field } from 'src/app/models/field'; import { Project } from 'src/app/models/project'; import { DataApiService } from 'src/app/services/data-api.service'; import { ActivatedRoute } from '@angular/router'; import * as _ from 'lodash'; import { map } from 'rxjs/operators'; @Component({ selector: 'app-project-settings', templateUrl: './project-settings.component.html', styleUrls: ['./project-settings.component.scss'] }) export class ProjectSettingsComponent implements OnInit { originalProject: Project; originalFields: Field[]; projectId: number; project: Project; fields: Field[]; doneLoading: boolean; isSaving: boolean; constructor( private _route: ActivatedRoute, private _dataApi: DataApiService) { } async ngOnInit(): Promise<void> { this.projectId = Number(this._route.snapshot.params['id']); let [project, fields] = await Promise.all([ this._dataApi.projectService.entity(this.projectId).fetch().toPromise(), this._dataApi.fieldService.entities().filter({ ProjectId: this.projectId }).all().toPromise() ]); this.originalProject = project; this.originalFields = _.orderBy(fields, ['Index']); this.project = Project.fromPayload(project); this.fields = this.originalFields.map(Field.fromPayload); this.doneLoading = true; } undo(): void { this.project = Project.fromPayload(this.originalProject); this.fields = this.originalFields.map(Field.fromPayload); } async save(): Promise<void> { this.originalProject = await this._dataApi.projectService .entity(this.project.Id) .put(this.project) .pipe(map(p => p.entity)) .toPromise(); this.project = Project.fromPayload(this.originalProject); let createFieldPromises: Promise<Field>[] = []; let updateFieldPromises: Promise<Field>[] = []; for (let field of this.fields) { if (field.Id) { updateFieldPromises.push( this._dataApi.fieldService .entity(field.Id) .put(field) .pipe(map(f => f.entity)) .toPromise() ); } else { field.ProjectId = this.project.Id; createFieldPromises.push(this._dataApi.fieldService.create(field).toPromise()); } } let createdFields = await Promise.all(createFieldPromises); let updatedFields = await Promise.all(updateFieldPromises); this.originalFields = _.orderBy(createdFields.concat(updatedFields), 'Index'); this.fields = this.originalFields.map(Field.fromPayload); } onProjectDetailsFormChange() { } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Configuration/OriginPolicyConfiguration.cs using System; namespace ArchiveSiteBackend.Api.Configuration { public class OriginPolicyConfiguration { public String Allow { get; set; } public Boolean HasOrigin() { return !String.IsNullOrWhiteSpace(this.Allow); } } } <file_sep>/archive-site-frontend/src/app/services/message.service.ts /*this service creates a string of messages that will appear in "activity feed" aka messages component. *this service is injected into the messages component, which can be dropped onto any page to show * the array of messages. *this service can also be injected into any component that you want to send a message from * to the "Activity Feed". */ import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class MessageService { messages: string[] = []; add(message: string) { this.messages.push(message); } clear() { this.messages = []; } }<file_sep>/README.md # Gaming The Archives This is a web application to host archive transcription projects and provide an interactive user interface for volunteers to participate in document transcription. This project was created for the 2020 Hawaii Annual Coding Challenge. ## Instructions for Reviewers If you are reviewing the app please see our [Instructions for Reviewers](INSTRUCTIONS.md). ## Prerequisites * [Dotnet Core SDK 3.1](https://dotnet.microsoft.com/download) * [Docker](https://www.docker.com/) * [Docker Compose](https://docs.docker.com/compose/install/) * Windows systems do not need to install Docker Compose since it is already included in the Docker Desktop installation. * [Node.js](https://nodejs.org/en/download/) * Npm - Installed with Node.js * [Angular](https://angular.io/guide/setup-local#install-the-angular-cli) ## Quick Start Run services (Postgresql) using `docker-compose` ```bash # From the archive-site-backend folder run: docker volume create --name=pgsql_data docker-compose up -d archive-postgresql ``` Initialize your local database: ```bash cd src/ArchiveSiteBackend.Api/ dotnet run -- init ``` Seed your local database (please note it WILL drop your existing database): ```bash cd src/ArchiveSiteBackend.Api/ dotnet run -- init --drop --seed ``` (Optional) Run backend unit tests: ```bash # From the archive-site-backend/src/ArchiveSite.Api.Tests folder run: dotnet test ``` (First Time Only) You may need to trust the developer certificates used for https connections to the backend api. To do this follow the instructions [here](https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-3.1&tabs=visual-studio#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos). Or you can try the TLDR; version: ```bash dotnet dev-certs https --trust ``` Run the backend api host: ```bash # From the archive-site-backend/src/ArchiveSite.Api folder run: dotnet run # Alternately you can use "dotnet watch run" to automatically rebuild ``` (First Time Only) Install dependencies for the front end: ```bash # From the archive-site-frontend folder run: npm install ``` Run the front end: ```bash # From the archive-site-frontend folder run: ng serve ``` ## Front End TODO provide more frontend documentation ## Backend API The backend API is an OData REST API that uses JSON payloads. The OData standard provides a flexible query language to efficiently select and filter data via the API. For details see [odata.org](https://www.odata.org/). By default the API is hosted at `http://localhost:5000`. At a very high level, OData provides different endpoints for different resources (i.e. tables in the database), and for each endpoint there is a standard way of creating, reading, updating, and deleting records: * `GET /api/odata/Resource` - Returns a list of all records. * `GET /api/odata/Resource?$filter=Property+eq+'Value'` - Returns a filtered list of records. * `GET /api/odata/Resource?$select=Property1,Property2` - Returns only the specified properties for each record. * `GET /api/odata/Resource(Id)` - Returns the record with the specified id. * `POST /api/odata/Resource` - Given a body containing a JSON representation of the resource, creates a new record and returns the result. * `PUT /api/odata/Resource(Id)` - Updates an existing record with the specified Id. (Note: this completely overwrites the resource and may undo concurrent changes. The standard has a way to deal with this but I haven't implemented it). * `PATCH /api/odata/Resource(Id)` - Given a body containing a partial JSON representation of the resource, updates only the properties specified. * `DELETE /api/odata/Resource(Id)` - Deletes the specified record by id. ### Endpoints * `/api/odata/Users` - Registered user * TODO `/api/odata/Users/Current` - Get the currently logged in user. * `/api/odata/Projects` * TODO `/api/odata/Projects(Id)/Documents` - Get the documents associated with the specified project. * TODO `/api/odata/Projects(Id)/Fields` - Get the fields for the specified project. * `/api/odata/Fields` * `/api/odata/Documents` * TODO `/api/odata/Documents(Id)/Actions` * TODO `/api/odata/Documents(Id)/Notes` * TODO `/api/odata/Documents(Id)/Transcriptions` * `/api/odata/DocumentActions` * `/api/odata/DocumentNotes` * `/api/odata/Transcriptions` ### Authentication Authentication is done via Open Auth login with Facebook (more provides to come) and a cookie generated by the backend API that maintains an authenticated session. In order for login with Facebook to be enabled it is necessary to specify a Facebook App ID and App Secret. You either need to create your own Facebook Application for this, or you need to contact your Facebook admin to get these credentials. The best way to make these configuration variables available to the backend is with the environment variables `Facebook__ApplicationId` and `Facebook__Secret`. #### Insecure Mode Don't want to configure authentication providers? No problem just run the backend API with the flag `--insecure` and the normal login process will be replaced by a simple text input where you can enter any email address and login as that user. ### Configuration The backend API can be configured in several ways: appsettings json files, environment variables, and command line arguments. Configuration values are a hierarchical tree structure based on top level section names, and configuration class structures: * Logging * LogLevel * Default - The default minimum log level * {LoggingSource} - A minimum log level override for each logging source (the fully qualified name of the class that is doing the logging) * ArchiveDb * Host * Port * Database * Username * Password * OriginPolicy * Allow - A Glob syntax host name from which cross origin API requests should be allowed (i.e. `"*"` to allow all cross origin requests). * Azure * ApiUrl - your Azure Cognitive Service URL * ApiKey - your Azure Cognitive Service API key ### Appsettings Files Two appsettings files are loaded with the backend process starts: `appsettings.json` and `appsettings.{Environment}.json` where `{Environment}` is the string specified by the `--environment` command line argument or via the `ASPNETCORE_ENVIRONMENT` environment variable. ### Environment Variables Configuration values can be overridden via environment variables with the following syntax for variable names: `{Section}__{Property}[__{SubProperty}]`. For example to override the default log level you could use the command line: ```bash Logging__LogLevel__Default=Trace dotnet run ``` ### Command Line Lastly configuration values can be overridden via command line arguments. The syntax for command line argument overrides is `--{Section}:{Property}[:{SubProperty}]`. So to perform the same log level override as above you would use the following command line: ```bash dotnet run -- --Logging:LogLevel:Default Trace ``` <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/rect/RectMarker.d.ts import { RectMarkerBase } from "../RectMarkerBase"; export declare class RectMarker extends RectMarkerBase { static createMarker: () => RectMarkerBase; constructor(); protected setup(): void; } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/Activator.d.ts export declare class Activator { static key: string; static get isLicensed(): boolean; } <file_sep>/archive-site-frontend/src/app/users/users.component.ts /* This component creates a portable list of users * that can be dropped into views. * The goal is to be able to sort the viewers, such as by activity or * working on a project, etc. */ import { Component, OnInit } from '@angular/core'; import { User } from "../models/user"; import { UserService } from "../services/user.service"; import { Observable } from 'rxjs'; @Component({ selector: 'app-users', templateUrl: './users.component.html', styleUrls: ['./users.component.scss'] }) export class UsersComponent implements OnInit { userList$: Observable<User[]>; constructor(private _userService: UserService) { } ngOnInit(): void { this.getUsers(); } getUsers(): void { this.userList$ = this._userService.entities().all(); this.userList$.subscribe( result => { console.log('got users'); console.log(result); }, err => { console.log('derp'); console.log(err); }); } } <file_sep>/archive-site-frontend/src/app/field-list-editor/field-list-editor.component.ts import { Component, Input, OnInit } from '@angular/core'; import { Field, FieldType } from 'src/app/models/field'; @Component({ selector: 'app-field-list-editor', templateUrl: './field-list-editor.component.html', styleUrls: ['./field-list-editor.component.scss'] }) export class FieldListEditorComponent implements OnInit { FieldType = FieldType; allFieldTypes: FieldType[] = [ FieldType.String, FieldType.Integer, FieldType.Date, FieldType.Boolean ]; @Input() fields: Field[]; @Input() disabled: boolean; constructor() { } ngOnInit(): void { } moveUp(field: Field) { let ix = this.fields.indexOf(field); if (field.Index > 0 && ix > 0) { field.Index -= 1; let previous = this.fields[ix - 1]; previous.Index = field.Index + 1; this.fields.splice(ix - 1, 2, field, previous); } } moveDown(field: Field) { let ix = this.fields.indexOf(field); if (ix + 1 < this.fields.length) { field.Index += 1; let next = this.fields[ix + 1]; next.Index = field.Index - 1; this.fields.splice(ix, 2, next, field); } } getFieldTypeString(type: FieldType): string { return type.toString(); } addField() { let nextIndex = this.fields.length > 0 ? this.fields[this.fields.length - 1].Index + 1 : 0; this.fields.push(Field.fromPayload({ Index: nextIndex })); } removeField(field: Field) { this.fields = this.fields.filter(f => f !== field) .map((f, ix) => { f.Index = ix; return f; }); } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/RectMarkerBase.d.ts import { RectangularMarkerBase } from "./RectangularMarkerBase"; export declare class RectMarkerBase extends RectangularMarkerBase { static createMarker: () => RectMarkerBase; private markerRect; protected setup(): void; protected resize(x: number, y: number): void; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Commands/InitializeCommand.cs using System; using System.Threading; using System.Threading.Tasks; using ArchiveSite.Data; using ArchiveSiteBackend.Api.CommandLineOptions; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace ArchiveSiteBackend.Api.Commands { public class InitializeCommand { private readonly ArchiveDbConfiguration dbConfiguration; private readonly ArchiveDbContext context; private readonly ILogger<InitializeCommand> logger; public InitializeCommand( IOptions<ArchiveDbConfiguration> dbConfiguration, ArchiveDbContext context, ILogger<InitializeCommand> logger) { this.dbConfiguration = (dbConfiguration ?? throw new ArgumentNullException(nameof(dbConfiguration))).Value; this.context = context ?? throw new ArgumentNullException(nameof(context)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); } public async Task InvokeAsync(InitializeOptions options, CancellationToken cancellationToken) { if (options.DropDatabase) { this.logger.LogInformation( "Dropping Database {DatabaseName} (Environment = {Environment}, Provider = {Provider})", this.dbConfiguration.Database, options.Environment, this.context.Database.ProviderName ); await context.Database.EnsureDeletedAsync(cancellationToken); } var result = await context.Database.EnsureCreatedAsync(cancellationToken); this.logger.LogInformation( result ? "Created Database {DatabaseName} (Environment = {Environment}, Provider = {Provider})" : "The Database {DatabaseName} Already Exists (Environment = {Environment}, Provider = {Provider})", this.dbConfiguration.Database, options.Environment, this.context.Database.ProviderName ); if (options.SeedDatabase) { this.logger.LogInformation( result ? "Attempting To Seed Database {DatabaseName} (Environment = {Environment}, Provider = {Provider})" : "Unable To Seed Existing Database {DatabaseName}. Seed Again Using Drop. (Environment = {Environment}, Provider = {Provider})", this.dbConfiguration.Database, options.Environment, this.context.Database.ProviderName ); if(!result) { return; } context.Projects.Add(new Project() { Active = true, Description = "This demo project uses the sample images uploaded by Paul and hosted by Google", Name = "Demo Project 1"}); context.Projects.Add(new Project() { Active = true, Description = "This demo project uses the sample images uploaded by Paul and hosted by Google", Name = "Demo Project 2"}); context.Projects.Add(new Project() { Active = false, Description = "description 3", Name = "Inactive Sample Project 3"}); context.Documents.Add(new Document() {ProjectId = 1, FileName = "ChineseArrivals_1878_01218.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01218.png"}); context.Documents.Add(new Document() {ProjectId = 1, FileName = "ChineseArrivals_1878_01289.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01289.png"}); context.Documents.Add(new Document() {ProjectId = 1, FileName = "ChineseArrivals_1878_01271.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01271.png"}); context.Documents.Add(new Document() {ProjectId = 2, FileName = "ChineseArrivals_1878_01238.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01238.png"}); context.Documents.Add(new Document() {ProjectId = 2, FileName = "ChineseArrivals_1878_01218.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01218.png"}); context.Documents.Add(new Document() {ProjectId = 2, FileName = "ChineseArrivals_1878_01289.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01289.png"}); context.Documents.Add(new Document() {ProjectId = 3, FileName = "ChineseArrivals_1878_01218.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01218.png"}); context.Documents.Add(new Document() {ProjectId = 3, FileName = "ChineseArrivals_1878_01289.png", Status = DocumentStatus.PendingTranscription, DocumentImageUrl = "https://storage.googleapis.com/app-hiscribe-images/projects/1/ChineseArrivals_1878_01289.png"}); var saveChanges = await context.SaveChangesAsync(); this.logger.LogInformation( saveChanges > 0 ? "Successfully Seeded Database {DatabaseName} (Environment = {Environment}, Provider = {Provider})" : "Failed To Seed The Database {DatabaseName} (Environment = {Environment}, Provider = {Provider})", this.dbConfiguration.Database, options.Environment, this.context.Database.ProviderName ); } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/ArchiveDbContext.cs using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.Extensions.Options; using Npgsql; namespace ArchiveSite.Data { public class ArchiveDbContext : DbContext { private readonly IOptions<ArchiveDbConfiguration> config; public DbSet<User> Users => this.Set<User>(); public DbSet<Project> Projects => this.Set<Project>(); public DbSet<Category> Categories => this.Set<Category>(); public DbSet<Document> Documents => this.Set<Document>(); public DbSet<DocumentAction> DocumentActions => this.Set<DocumentAction>(); public DbSet<DocumentNote> DocumentNotes => this.Set<DocumentNote>(); public DbSet<Field> Fields => this.Set<Field>(); public DbSet<Transcription> Transcriptions => this.Set<Transcription>(); public DbSet<Activity> Activities => this.Set<Activity>(); public ArchiveDbContext(IOptions<ArchiveDbConfiguration> config) { this.config = config ?? throw new ArgumentNullException(nameof(config)); } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { var configValue = this.config.Value; optionsBuilder .UseLazyLoadingProxies() .UseNpgsql( $"Host={configValue.Host};Port={configValue.Port};" + $"Database={configValue.Database};Username={configValue.User};" + $"Password={configValue.Password}") .UseSnakeCaseNamingConvention(); } } /// <summary> /// <para> /// Add unique constraint for User.EmailAddress /// </para> /// <para> /// Add ValueConverters for all DateTime properties to keep times as UTC /// </para> /// </summary> protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.Entity<User>(e => { e.HasIndex(u => u.EmailAddress).IsUnique(); }); var dateTimeConverter = new ValueConverter<DateTime, DateTime>( v => v.ToUniversalTime(), v => DateTime.SpecifyKind(v, DateTimeKind.Utc)); var nullableDateTimeConverter = new ValueConverter<DateTime?, DateTime?>( v => v.HasValue ? v.Value.ToUniversalTime() : v, v => v.HasValue ? DateTime.SpecifyKind(v.Value, DateTimeKind.Utc) : v); var dateTimeOffsetConverter = new ValueConverter<DateTimeOffset, DateTimeOffset>( v => v.ToUniversalTime(), v => v.ToUniversalTime()); var nullableDateTimeOffsetConverter = new ValueConverter<DateTimeOffset?, DateTimeOffset?>( v => v.HasValue ? v.Value.ToUniversalTime() : v, v => v.HasValue ? v.Value.ToUniversalTime() : v); foreach (var entityType in builder.Model.GetEntityTypes()) { foreach (var property in entityType.GetProperties()) { if (property.ClrType == typeof(DateTime)) { property.SetValueConverter(dateTimeConverter); } else if (property.ClrType == typeof(DateTime?)) { property.SetValueConverter(nullableDateTimeConverter); } else if (property.ClrType == typeof(DateTimeOffset)) { property.SetValueConverter(dateTimeOffsetConverter); } else if (property.ClrType == typeof(DateTimeOffset?)) { property.SetValueConverter(nullableDateTimeOffsetConverter); } } } } public static Boolean IsUserError(DbUpdateException exception, out String message) { if (exception.InnerException is PostgresException pgException) { message = pgException.Detail; return true; } else { message = null; return false; } } } } <file_sep>/archive-site-frontend/src/app/services/user-context-service.ts import { Injectable } from '@angular/core'; import { from, Observable, Observer, Subscription, SubscriptionLike, Unsubscribable } from 'rxjs'; import { User } from 'src/app/models/user'; import { UserService } from 'src/app/services/user.service'; @Injectable({ providedIn: 'root' }) export class UserContextService { private _userSubject: ReplayLatestSubject<User> = new ReplayLatestSubject<User>(); private _currentUserRequest: Promise<User>; public get user$(): Observable<User> { let observable = this._userSubject.asObservable(); if (!this._currentUserRequest) { this.invalidateUser(); } return observable; } public get userPromise(): Promise<User> { return new Promise<User>((resolve, error) => { this.user$.subscribe( next => resolve(next), err => error(err) ); }); } constructor(private _userService: UserService) { } public invalidateUser(): void { this._currentUserRequest = this.getCurrentUser(); from(this._currentUserRequest) .subscribe( result => { this._userSubject.next(result); }, error => { console.warn(error); this._userSubject.error(error); } ); } private async getCurrentUser(): Promise<User> { if (await this._userService.isAuthenticated()) { return this._userService.me(); } } } class ReplayLatestSubject<T> extends Observable<T> implements SubscriptionLike { observers: Observer<T>[] = []; hasLatest: boolean; latest: T; closed: boolean; isStopped: boolean; hasError: boolean; thrownError: any = null; constructor() { super((subscriber) => { if (this.closed) { throw Error('Unable to subscribe, this ReplayLatestSubject is closed.'); } else if (this.hasError) { subscriber.error(this.thrownError); return; } else if (this.isStopped) { subscriber.complete(); return; } else { this.observers.push(subscriber); if (this.hasLatest) { subscriber.next(this.latest); } return new ReplayLatestSubjectSubscription(this, subscriber); } }); } next(value?: T) { if (this.closed) { throw Error('Unable to dispatch next, this ReplayLatestSubject is closed.'); } if (!this.isStopped) { this.latest = value; this.hasLatest = true; const { observers } = this; const len = observers.length; const copy = observers.slice(); for (let i = 0; i < len; i++) { copy[i].next(value); } } } error(err: any) { if (this.closed) { throw new Error('Unable to dispatch error, this ReplayLatestSubject is closed.'); } this.hasError = true; this.thrownError = err; this.isStopped = true; const { observers } = this; const len = observers.length; const copy = observers.slice(); for (let i = 0; i < len; i++) { copy[i].error(err); } this.observers.length = 0; } complete() { if (this.closed) { throw new Error('Unable to complete, this ReplayLatestSubject is closed.'); } this.isStopped = true; const { observers } = this; const len = observers.length; const copy = observers.slice(); for (let i = 0; i < len; i++) { copy[i].complete(); } this.observers.length = 0; } unsubscribe() { this.isStopped = true; this.closed = true; this.observers = null; } asObservable(): Observable<T> { const observable = new Observable<T>(); (<any> observable).source = this; return observable; } } class ReplayLatestSubjectSubscription<T> extends Subscription implements Unsubscribable { closed: boolean = false; constructor(public subject: ReplayLatestSubject<T>, public subscriber: Observer<T>) { super(); } unsubscribe() { if (this.closed) { return; } this.closed = true; const subject = this.subject; const observers = subject.observers; this.subject = null; if (!observers || observers.length === 0 || subject.isStopped || subject.closed) { return; } const subscriberIndex = observers.indexOf(this.subscriber); if (subscriberIndex !== -1) { observers.splice(subscriberIndex, 1); } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/ellipse/EllipseMarkerToolbarItem.d.ts import { ToolbarItem } from "../../toolbar/ToolbarItem"; import { EllipseMarker } from "./EllipseMarker"; export declare class EllipseMarkerToolbarItem implements ToolbarItem { name: string; tooltipText: string; icon: string; markerType: typeof EllipseMarker; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/FieldsController.cs using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Helpers; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace ArchiveSiteBackend.Api.Controllers { [ApiController] [Route("api/odata/[controller]")] public class FieldsController : EntityControllerBase<ArchiveDbContext, Field> { public FieldsController(ArchiveDbContext context) : base(context) { } [HttpPost("parse-rtp-xml")] [AllowAnonymous] public async Task<IActionResult> ParseRtpXml( [FromForm] IFormFile rtpXml, CancellationToken cancellationToken) { await using var rtpXmlStream = rtpXml.OpenReadStream(); var rtpDocument = await XDocument.LoadAsync(rtpXmlStream, LoadOptions.SetLineInfo, cancellationToken); var columns = rtpDocument.Element("indexFile")?.Element("columns"); if (columns == null) { return BadRequest(new ProblemDetails { Type = "archive-site:validation-error/invalid-rtp-xml", Title = "The specified file does not contain valid RTP XML.", Detail = rtpDocument.Element("indexFile") == null ? "The required element <indexFile> was not found." : "The required element <columns> was not found." }); } try { var fieldList = new List<Field>(); var warnings = new List<String>(); String commentText = null; foreach (var child in columns.Nodes()) { if (child is XComment comment) { commentText = comment.Value; } else if (child is XElement element && element.Name.LocalName == "column") { fieldList.Add(RtpHelper.ParseField(commentText, element)); } else if (child is XElement unknownElement) { var message = $"Skipped unexpected element: {unknownElement.Name.LocalName}"; if (unknownElement is IXmlLineInfo lineInfo) { message += $" ({lineInfo.LineNumber}:{lineInfo.LinePosition})"; } warnings.Add(message); } else { var message = $"Skipped unexpected node: {child.NodeType}"; if (child is IXmlLineInfo lineInfo) { message += $" ({lineInfo.LineNumber}:{lineInfo.LinePosition})"; } warnings.Add(message); } } return Ok(new { Fields = fieldList, Warnings = warnings }); } catch (XmlException ex) { return BadRequest(new ProblemDetails { Type = "archive-site:validation-error/invalid-rtp-xml", Title = "The specified file does not contain valid RTP XML.", Detail = ex.Message }); } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Services/DbLoginLogger.cs using System; using System.Security.Claims; using System.Threading.Tasks; using ArchiveSite.Data; using Microsoft.EntityFrameworkCore; namespace ArchiveSiteBackend.Api.Services { public class DbLoginLogger : ILoginLogger { private readonly ArchiveDbContext dbContext; public DbLoginLogger(ArchiveDbContext dbContext) { this.dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); } public async Task LogLogin(ClaimsPrincipal principal) { var emailAddress = principal.FindFirst(ClaimTypes.Email)?.Value; if (!String.IsNullOrEmpty(emailAddress)) { var user = await this.dbContext.Users.SingleOrDefaultAsync(u => u.EmailAddress == emailAddress); if (user != null) { user.LastLogin = DateTimeOffset.UtcNow; await this.dbContext.SaveChangesAsync(); } } } } } <file_sep>/archive-site-frontend/src/app/models/user.ts import { Model } from './model'; import { toUserType, UserType } from './user-type'; export class User extends Model { constructor( id: number = 0, public EmailAddress: string = undefined, public DisplayName: string = undefined, public Type: UserType = undefined, public LastLogin: Date = undefined, public SignUpDate: Date = undefined) { super(id); } public static fromPayload(payload: any): User { let result = new User(); result.Id = payload.Id; result.EmailAddress = payload.EmailAddress; result.DisplayName = payload.DisplayName; result.Type = toUserType(payload.Type); result.LastLogin = payload.LastLogin; result.SignUpDate = payload.SignUpDate; return result; } } <file_sep>/archive-site-frontend/src/app/models/user-type.ts import { $enum } from 'ts-enum-util'; export enum UserType { Rookie = 'Rookie', Indexer = 'Indexer', Proofer = 'Proofer', Archivist = 'Archivist', Administrator = 'Administrator' } export function toUserType(value: string): UserType { return UserType[$enum(UserType).asKeyOrDefault(value)]; } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/MarkerBase.d.ts import { MarkerBaseState } from "./MarkerBaseState"; export declare class MarkerBase { static createMarker: () => MarkerBase; markerTypeName: string; visual: SVGGElement; renderVisual: SVGGElement; onSelected: (marker: MarkerBase) => void; defs: SVGElement[]; protected markerId: string; protected width: number; protected height: number; protected isActive: boolean; protected isResizing: boolean; protected previousMouseX: number; protected previousMouseY: number; protected previousState: MarkerBaseState; private isDragging; manipulate: (ev: MouseEvent) => void; endManipulation(): void; select(): void; deselect(): void; getState(): MarkerBaseState; restoreState(state: MarkerBaseState): void; protected setup(): void; protected addToVisual: (el: SVGElement) => void; protected addToRenderVisual: (el: SVGElement) => void; protected resize(x: number, y: number): void; protected onTouch(ev: TouchEvent): void; private mouseDown; private mouseUp; private mouseMove; private move; } <file_sep>/archive-site-frontend/src/app/services/url-helper.ts import { Injectable } from '@angular/core'; import { NavigationExtras, Router } from '@angular/router'; import { Location } from '@angular/common'; @Injectable({ providedIn: 'root' }) export class UrlHelper { constructor( private _router: Router, private _location: Location) { } getRouteUrl(commands: any[], navigationExtras?: NavigationExtras): string { let url = this._location.prepareExternalUrl( this._router.createUrlTree(commands, navigationExtras).toString() ); return url.startsWith('/') ? url : `/${url}`; } } <file_sep>/archive-site-frontend/src/app/activity-feed/activity-feed.component.ts import { Component, OnInit, Input } from '@angular/core'; import { User } from '../models/user'; import { DataApiService } from 'src/app/services/data-api.service'; import { Activity } from 'src/app/models/activity'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { UserContextService } from 'src/app/services/user-context-service'; import { ActivityType } from 'src/app/models/activity-type'; import * as Handlebars from 'handlebars' @Component({ selector: 'app-activity-feed', templateUrl: './activity-feed.component.html', styleUrls: ['./activity-feed.component.scss'] }) export class ActivityFeedComponent implements OnInit { private _currentUser: User; private _user: User; private _initialized: boolean; @Input() set user(value: User) { this._user = value; console.log(`User property set: ${(this._user ? this._user.EmailAddress : 'null')}`) if (this._initialized) { console.log(`Updating activity list for new user`); this.initializeActivityList(); } } get user(): User { return this._user; } activityList$: Observable<Activity[]> constructor( private _userContext: UserContextService, private _dataApi: DataApiService) { } async ngOnInit(): Promise<void> { this._currentUser = await this._userContext.userPromise; this.initializeActivityList(); } renderMessage(activity: Activity) { let DisplayName: string; switch (activity.Type) { case ActivityType.UserSignup: DisplayName = activity.User.DisplayName break; case ActivityType.TranscriptionSubmitted: case ActivityType.ProjectCreated: case ActivityType.ProjectCompleted: case ActivityType.TranscriptionApproved: if (this._currentUser && activity.UserId == this._currentUser.Id) { DisplayName = "You"; } else { DisplayName = activity.User.DisplayName; } break; } let template = Handlebars.compile(activity.Message); return template({ DisplayName }); } private initializeActivityList() { if (this._user) { console.log('Fetching activity list for user: ' + this._user.EmailAddress); let activitiesFunction = this._dataApi.userService.entity(this._user.Id) .function<void, Activity>('Activities'); activitiesFunction.query.orderBy([['CreatedTime', 'desc']]); activitiesFunction.query.top(10); activitiesFunction.query.expand('User') this.activityList$ = activitiesFunction .get({ responseType: 'entities' }) .pipe(map(wrapper => wrapper.entities)); } else { console.log('Fetching activity list for all users.') this.activityList$ = this._dataApi.activityService.entities() .orderBy([['CreatedTime', 'desc']]) .top(10) .expand('User') .get() .pipe(map(wrapper => wrapper.entities)); } } } <file_sep>/archive-site-frontend/src/app/models/transcription.ts import { Model } from './model'; import { Document } from 'src/app/models/document'; import { User } from 'src/app/models/user'; export class Transcription extends Model { constructor( id: number = 0, public DocumentId: number = undefined, public UserId: number = undefined, public Data: string = undefined, public ValidationErrors: string = undefined, public IsSubmitted: boolean = false, public Document?: Document, public User?: User) { super(id); } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/DocumentNote.cs using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ArchiveSite.Data { public class DocumentNote : EntityBase<DocumentNote> { [Required] [ForeignKey(nameof(Document))] public Int64 DocumentId { get; set; } [ForeignKey(nameof(DocumentNote))] public Int64? ParentNote { get; set; } [Required] [ForeignKey(nameof(User))] public Int64 AuthorId { get; set; } [Required] public NoteType Type { get; set; } [Required, MinLength(1)] public String Message { get; set; } public DateTimeOffset CreatedTime { get; set; } public virtual Document Document { get; set; } public virtual User Author { get; set; } } } <file_sep>/archive-site-frontend/src/app/projects/projects.component.ts import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { ODataEntities } from 'angular-odata'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { CreateProjectModal } from 'src/app/create-project/create-project.component'; import { Project } from 'src/app/models/project'; import { DataApiService } from 'src/app/services/data-api.service'; import { UserContextService } from 'src/app/services/user-context-service'; import { User } from 'src/app/models/user'; import { UrlHelper } from 'src/app/services/url-helper'; @Component({ selector: 'app-projects', templateUrl: './projects.component.html', styleUrls: ['./projects.component.scss'] }) export class ProjectsComponent implements OnInit { showIntro: boolean; projects$: Observable<Project[]>; inactiveProjects$: Observable<Project[]>; user$: Observable<User>; constructor( private _urlHelper: UrlHelper, private _router: Router, private _route: ActivatedRoute, private _modalService: NgbModal, private _userContext: UserContextService, private _dataApi: DataApiService) { } ngOnInit(): void { this.showIntro = !!this._route.snapshot.queryParams['intro']; this.user$ = this._userContext.user$; this.refreshProjects(); } hideIntro(): void { this.showIntro = false; history.replaceState( history.state, document.title, this._urlHelper.getRouteUrl(['/projects']) ); } async createProject(): Promise<void> { const modalRef = this._modalService.open( CreateProjectModal, { centered: true, size: 'lg' } ); const result = await modalRef.result.catch(err => undefined); if (result) { this.refreshProjects(); } } private refreshProjects() { this.projects$ = this._dataApi.projectService.entities() .filter({ Active: true }) .get() .pipe(map((oe: ODataEntities<Project>) => oe.entities)); this._userContext.user$ .subscribe(result => { if (result) { this.inactiveProjects$ = this._dataApi.projectService.entities() .filter({ Active: false }) .get() .pipe(map((oe: ODataEntities<Project>) => oe.entities)); } }); } } <file_sep>/archive-site-frontend/src/app/app.module.ts import { NgModule } from '@angular/core'; import { FlexLayoutModule } from '@angular/flex-layout'; import { FormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { ODataModule, ODataSettings } from 'angular-odata'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ProjectsComponent } from './projects/projects.component'; import { NotFoundPageComponent } from './not-found-page/not-found-page.component'; import { odataSettingsFactory } from './services/data-api.service'; import { ProjectDetailComponent } from './project-detail/project-detail.component'; import { CreateProjectModal } from './create-project/create-project.component'; import { ActivityFeedComponent } from './activity-feed/activity-feed.component'; import { MessagesComponent } from './messages/messages.component'; import { DocumentComponent } from './document/document.component'; import { UsersComponent } from './users/users.component'; import { LoginComponent } from './login/login.component'; import { SignUpComponent } from './sign-up/sign-up.component'; import { ProfileComponent } from './profile/profile.component'; import { NotificationsContainerComponent } from 'src/app/notifications-container.component'; import { FieldListEditorComponent } from './field-list-editor/field-list-editor.component'; import { ProjectDetailsFormComponent } from './project-details-form/project-details-form.component'; import { ProjectSettingsComponent } from './project-settings/project-settings.component'; @NgModule({ declarations: [ AppComponent, ProjectsComponent, NotFoundPageComponent, ProjectDetailComponent, CreateProjectModal, ActivityFeedComponent, MessagesComponent, DocumentComponent, UsersComponent, LoginComponent, SignUpComponent, ProfileComponent, NotificationsContainerComponent, FieldListEditorComponent, ProjectDetailsFormComponent, ProjectSettingsComponent ], imports: [ BrowserModule, AppRoutingModule, NgbModule, FlexLayoutModule, FormsModule, ODataModule, ], providers: [ { provide: ODataSettings, useFactory: odataSettingsFactory } ], bootstrap: [AppComponent] }) export class AppModule { } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api.Tests/AppSettingsUnitTest.cs using ArchiveSiteBackend.Api.Configuration; using Microsoft.Extensions.Configuration; using System; using System.Security.Policy; using Xunit; namespace ArchiveSiteBackend.Api.Tests { public class AppSettingsUnitTest : UnitTestBase { /** * A little bit of key background info... in order for the secret Azure key to carry over * from the ArchiveSiteBackend.Api project, the .Tests project must utilize the same * <UserSecretsId></UserSecretsId> as described in the projects *.csproj file **/ [Fact] public void Has_Azure_Config_Setup() { Assert.NotNull(AzureCognitiveConfiguration); Assert.False(string.IsNullOrEmpty(AzureCognitiveConfiguration.ApiUrl)); try { var uri = new Uri(AzureCognitiveConfiguration.ApiUrl); } catch(Exception) { Assert.True(false, $"failed to parse the uri: {AzureCognitiveConfiguration.ApiUrl}"); } Assert.False(string.IsNullOrEmpty(AzureCognitiveConfiguration.ApiKey)); Assert.True(AzureCognitiveConfiguration.ApiKey.Length == 32); } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/UsersController.cs using System; using System.Linq; using System.Security.Claims; using System.Threading; using System.Threading.Tasks; using ArchiveSite.Data; using Microsoft.AspNet.OData; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; namespace ArchiveSiteBackend.Api.Controllers { public class UsersController : EntityControllerBase<ArchiveDbContext, User> { private readonly ILogger<UsersController> logger; public UsersController( ArchiveDbContext context, ILogger<UsersController> logger) : base(context) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); } [AllowAnonymous] [HttpGet("ident")] public IActionResult Ident() { return Ok( this.User?.Identity?.IsAuthenticated == true ? new { Email = this.User.FindFirst(ClaimTypes.Email)?.Value } : new Object() ); } public async Task<IActionResult> Me() { if (this.User?.Identity?.IsAuthenticated != true) { // This shouldn't actually get hit this.logger.LogWarning("An unauthenticated request for UsersController.Me occurred."); return this.Unauthorized(); } var email = this.User.FindFirst(ClaimTypes.Email).Value; var user = await this.DbContext.Users.SingleOrDefaultAsync(u => u.EmailAddress == email); if (user == null) { return this.NotFound(); } else { return this.Ok(user); } } /// <summary> /// Create or update the current user's profile. /// </summary> /// <param name="profile">The current user's profile.</param> /// <param name="cancellationToken">Cancellation token.</param> /// <returns>The created or updated profile.</returns> public async Task<IActionResult> SaveProfile([FromBody] User profile, CancellationToken cancellationToken) { if (this.User?.Identity?.IsAuthenticated != true) { // This shouldn't actually get hit this.logger.LogWarning("An unauthenticated request for UsersController.SaveProfile occurred."); return Unauthorized(); } var email = this.User.FindFirst(ClaimTypes.Email).Value; var user = await this.DbContext.Users.SingleOrDefaultAsync(u => u.EmailAddress == email, cancellationToken: cancellationToken); if (!String.Equals(email, profile.EmailAddress, StringComparison.OrdinalIgnoreCase)) { return BadRequest("Your email address cannot be changed."); } String operation; Func<User, Task<IActionResult>> successResult; if (user == null) { // New SignUp await this.OnCreating(profile, cancellationToken); var userEntity = (await this.DbContext.Users.AddAsync(profile, cancellationToken)); user = userEntity.Entity; operation = "create"; successResult = async createdUser => { await this.OnCreated(createdUser, cancellationToken); return (IActionResult)Created(createdUser); }; } else { if (profile.Id == 0) { profile.Id = user.Id; } await this.OnUpdating(user.Id, user, profile, cancellationToken); // Profile Update profile.CopyTo(user); operation = "update"; successResult = async updatedUser => { await this.OnUpdated(updatedUser, cancellationToken); return Ok(updatedUser); }; } return await this.TrySaveChanges( user, successResult, operation, cancellationToken ); } [EnableQuery] [AllowAnonymous] public virtual IQueryable<Activity> Activities([FromODataUri] Int64 key) { return this.DbContext.Activities.Where(a => a.UserId == key); } protected override async Task OnCreating(User entity, CancellationToken cancellationToken) { await base.OnCreating(entity, cancellationToken); if (this.ModelState.IsValid) { entity.LastLogin = entity.SignUpDate = DateTimeOffset.UtcNow; } } protected override async Task OnCreated(User user, CancellationToken cancellationToken) { await base.OnCreated(user, cancellationToken); await this.DbContext.Activities.AddAsync( new Activity { UserId = user.Id, Message = "Aloha e {{DisplayName}}. Thank you for signing up!", Type = ActivityType.UserSignup, CreatedTime = DateTimeOffset.UtcNow }, cancellationToken ); await this.DbContext.SaveChangesAsync(cancellationToken); } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/ActivityType.cs namespace ArchiveSite.Data { public enum ActivityType { UserSignup, TranscriptionSubmitted, ProjectCreated, ProjectCompleted, TranscriptionApproved } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/MarkerAreaState.d.ts import { MarkerBaseState } from './markers/MarkerBaseState'; import { MarkerBase } from './markers/MarkerBase'; export declare class MarkerAreaState { constructor(markers?: MarkerBase[]); markers?: MarkerBaseState[]; getJSON(): string; } <file_sep>/archive-site-frontend/src/environments/environment.prod.ts type EnvironmentSettings = { production: boolean, apiUrl: string, apiCredentialMode: RequestCredentials } & any; export const environment: EnvironmentSettings = { production: true, apiUrl: 'https://www.hiscribe.app/api', apiCredentialMode: 'same-origin', useHash: true }; <file_sep>/archive-site-frontend/src/app/mock-data/mock-documents.ts //import { User } from '../models/user'; import { Document } from '../models/document'; export const DOCUMENTS: Document[] = [ {Id: 21, ProjectId: 1, DocumentImageUrl: "/images/some0.png", FileName: "a.jpeg", Status: "Done"}, ]; <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Startup.cs using System; using System.Text.RegularExpressions; using System.Threading.Tasks; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Commands; using ArchiveSiteBackend.Api.Configuration; using ArchiveSiteBackend.Api.Middleware; using ArchiveSiteBackend.Api.Services; using Microsoft.AspNet.OData.Builder; using Microsoft.AspNet.OData.Extensions; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Mvc.Authorization; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Microsoft.OData; using Microsoft.OData.Edm; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; namespace ArchiveSiteBackend.Api { public class Startup { public static Boolean Insecure { get; set; } public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { this.ConfigureServices(services, false); } internal void ConfigureServices(IServiceCollection services, Boolean skipHosting) { services.AddLogging(builder => builder.AddConfiguration(this.Configuration.GetSection("Logging")).AddConsole()); // Add Application Dependencies Here services.Configure<ArchiveDbConfiguration>(this.Configuration.GetSection("ArchiveDb")); services.AddDbContext<ArchiveDbContext>(); if (!skipHosting) { // Add Hosting specific Dependencies Here // Wire up Azure Cognitive config var azureConfiguration = new AzureCognitiveConfiguration(); this.Configuration.GetSection("Azure").Bind(azureConfiguration); services.AddSingleton(azureConfiguration); services.AddScoped<ICloudOcrService, CognitiveService>(); services.AddScoped<ILoginLogger, DbLoginLogger>(); var facebookConfig = new FacebookConfiguration(); this.Configuration.GetSection("Facebook").Bind(facebookConfig); services.AddSingleton(Options.Create(facebookConfig)); var authenticationBuilder = services .AddAuthentication(options => { options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; }) .AddCookie( CookieAuthenticationDefaults.AuthenticationScheme, options => { options.Events.OnRedirectToLogin = context => { context.Response.StatusCode = 401; return Task.CompletedTask; }; }); if (!String.IsNullOrEmpty(facebookConfig.ApplicationId)) { Console.Error.WriteLine($"Enabling Facebook Login with ApplicationId: {facebookConfig.ApplicationId}"); authenticationBuilder = authenticationBuilder.AddFacebook(facebookOptions => { facebookOptions.AppId = facebookConfig.ApplicationId; facebookOptions.AppSecret = facebookConfig.Secret; facebookOptions.CallbackPath = "/api/auth/facebook-login"; facebookOptions.AccessDeniedPath = "/api/auth/facebook-access-denied"; facebookOptions.Fields.Add("email"); facebookOptions.Fields.Add("first_name"); facebookOptions.Fields.Add("last_name"); facebookOptions.Events.OnTicketReceived = context => { var loginLogger = context.HttpContext.RequestServices.GetRequiredService<ILoginLogger>(); return loginLogger.LogLogin(context.Principal); }; }); } else { Console.Error.WriteLine("Facebook configuration not found. Facebook login will not be enabled."); } // Initialized by UserContextMiddleware for each requests services.AddScoped<UserContext>(); var originConfiguration = new OriginPolicyConfiguration(); this.Configuration.GetSection("OriginPolicy").Bind(originConfiguration); services.AddSingleton(Options.Create(originConfiguration)); if (originConfiguration.HasOrigin()) { services.AddCors(options => { options.AddDefaultPolicy( builder => { builder .SetIsOriginAllowed(origin => IsGlobMatch(originConfiguration.Allow, origin)) .AllowCredentials() .AllowAnyHeader() .AllowAnyMethod(); }); }); } // Asp.Net MVC Dependencies services .AddControllers(options => { var policy = new AuthorizationPolicyBuilder() .RequireAuthenticatedUser() .Build(); if (!String.IsNullOrEmpty(facebookConfig.ApplicationId)) { options.Filters.Add(new AuthorizeFilter(policy)); } }) .AddNewtonsoftJson(options => { options.SerializerSettings.ContractResolver = new DefaultContractResolver { // Use TitleCase naming everywhere so that we're consistent with OData endpoints NamingStrategy = new DefaultNamingStrategy() }; options.SerializerSettings.Converters.Add(new StringEnumConverter()); }); services.AddMvc(); services.AddOData(); } // End of Hosting Specific Dependencies // Register Commands services.AddScoped<InitializeCommand>(); } private static Boolean IsGlobMatch(String pattern, String origin) { var regex = new Regex(Regex.Escape(pattern).Replace(@"\*", ".*").Replace(@"\?", ".")); return regex.IsMatch(origin); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedHeaders = ForwardedHeaders.XForwardedProto }); var originPolicy = app.ApplicationServices.GetRequiredService<IOptions<OriginPolicyConfiguration>>(); if (originPolicy.Value.HasOrigin()) { app.UseCors(); } app.UseAuthentication(); app.UseRouting(); app.UseAuthorization(); app.UseMiddleware<UserContextMiddleware>(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); endpoints.EnableDependencyInjection(); endpoints.Select().Expand().Filter().OrderBy().Count().MaxTop(Int32.MaxValue); endpoints.SetUrlKeyDelimiter(ODataUrlKeyDelimiter.Parentheses); endpoints.MapODataRoute("odata", "api/odata", GetEdmModel()); }); } private static IEdmModel GetEdmModel() { var odataBuilder = new ODataConventionModelBuilder(); var users = odataBuilder.EntitySet<User>("Users"); var projects = odataBuilder.EntitySet<Project>("Projects"); odataBuilder.EntitySet<Category>("Categories"); odataBuilder.EntitySet<Document>("Documents"); odataBuilder.EntitySet<DocumentAction>("DocumentActions"); odataBuilder.EntitySet<DocumentNote>("DocumentNotes"); odataBuilder.EntitySet<Field>("Fields"); odataBuilder.EntitySet<Transcription>("Transcriptions"); var activities = odataBuilder.EntitySet<Activity>("Activities"); var meFunction = users.EntityType.Collection.Function("Me"); meFunction.ReturnsFromEntitySet<User>("Users"); var userActivities = users.EntityType.Function("Activities"); userActivities.ReturnsFromEntitySet<Activity>("Activities"); var saveProfileAction = users.EntityType.Collection.Action("SaveProfile"); saveProfileAction.EntityParameter<User>("profile"); saveProfileAction.ReturnsFromEntitySet<User>("Users"); var currentUserActivities = activities.EntityType.Collection.Function("CurrentUser"); currentUserActivities.ReturnsFromEntitySet<Activity>("Activities"); var nextDocumentFunction = projects.EntityType.Function("NextDocument"); nextDocumentFunction.ReturnsFromEntitySet<Document>("documents"); return odataBuilder.GetEdmModel(); } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/CommandLineOptions/HostOptions.cs using System; using CommandLine; namespace ArchiveSiteBackend.Api.CommandLineOptions { [Verb("host", isDefault: true, HelpText = "Host the application")] public class HostOptions : CommonOptions { /// <summary> /// A shim option actually handled by the configuration system. /// </summary> [Option("OriginPolicy:Allow", HelpText = "Sets a hostname from which cross origin API requests should be allowed.")] public String OriginPolicyAllow { get; set; } [Option("insecure", HelpText = "Run the server in an insecure mode where anybody just by typing in an email.")] public Boolean Insecure { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/DocumentAction.cs using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ArchiveSite.Data { public class DocumentAction : EntityBase<DocumentAction> { [Required] [ForeignKey(nameof(Document))] public Int64 DocumentId { get; set; } [Required] [ForeignKey(nameof(User))] public Int64 UserId { get; set; } [Required] public DocumentActionType Type { get; set; } public DateTimeOffset ActionTime { get; set; } public virtual Document Document { get; set; } public virtual User User { get; set; } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/MarkerArea.d.ts import { MarkerBase } from "./markers/MarkerBase"; import Config from "./Config"; import { MarkerAreaState } from "./MarkerAreaState"; import { MarkerBaseState } from "./markers/MarkerBaseState"; export declare class MarkerArea { private target; private targetRoot; private renderAtNaturalSize; private markerColors; private strokeWidth; private renderImageType?; private renderImageQuality?; private renderMarkersOnly?; private showUi; private previousState?; private markerImage; private markerImageHolder; private defs; private targetRect; private width; private height; private markers; private activeMarker; private toolbar; private toolbarUI; private logoUI; private completeCallback; private cancelCallback; private toolbars; private scale; constructor(target: HTMLImageElement, config?: Config); show: (completeCallback: (dataUrl: string, state?: MarkerAreaState) => void, cancelCallback?: () => void) => void; open: () => void; render: (completeCallback: (dataUrl: string, state?: MarkerAreaState) => void, cancelCallback?: () => void) => void; close: () => void; addMarker: (markerType: typeof MarkerBase, previousState?: MarkerBaseState) => void; selectMarkerById: (markerId: string) => void; deleteActiveMarker: () => void; resetState: () => void; getState: () => MarkerAreaState; restoreSavedState: (savedState: MarkerAreaState) => void; private restoreState; private setTargetRect; private startRender; private attachEvents; private mouseDown; private mouseMove; private mouseUp; private initMarkerCanvas; private adjustUI; private adjustSize; private positionUI; private positionMarkerImage; private positionToolbar; private showUI; private setStyles; private toolbarClick; private selectMarker; private deleteMarker; private complete; private cancel; private renderFinished; private renderFinishedClose; private positionLogo; /** * NOTE: * * before removing or modifying this method please consider supporting marker.js * by visiting https://markerjs.com/#price for details * * thank you! */ private addLogo; } <file_sep>/archive-site-frontend/src/app/services/data-entity-service.ts import { HttpOptions, ODataEntityResource, ODataEntitySetResource } from 'angular-odata/lib/resources'; import { EntityKey } from 'angular-odata/lib/types'; import { ODataEntityConfig } from 'angular-odata/lib/configs/entity'; import { Observable } from 'rxjs'; import { ODataApiConfig, ODataServiceConfig } from 'angular-odata'; export interface IDataEntityService<T> { apiConfig: ODataApiConfig; serviceConfig: ODataServiceConfig; entityConfig: ODataEntityConfig<T>; entities(): ODataEntitySetResource<T>; entity(key?: EntityKey<T>): ODataEntityResource<T>; create(entity: Partial<T>, options?: HttpOptions): Observable<T>; update(entity: Partial<T>, options?: HttpOptions): Observable<T>; assign(entity: Partial<T>, attrs: Partial<T>, options?: HttpOptions): Observable<T>; destroy(entity: Partial<T>, options?: HttpOptions): Observable<any>; } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/MarkerBaseState.d.ts export interface MarkerBaseState { markerId: string; markerType: string; width: number; height: number; translateX: number; translateY: number; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/ArchiveDbConfiguration.cs using System; namespace ArchiveSite.Data { public class ArchiveDbConfiguration { public String Host { get; set; } = "localhost"; public UInt16 Port { get; set; } = 5432; public String Database { get; set; } = "archives"; public String User { get; set; } = "postgres"; public String Password { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Configuration/AzureCognitiveConfiguration.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ArchiveSiteBackend.Api.Configuration { public class AzureCognitiveConfiguration { /// <summary> /// This describes the URL that your Azure account is registered to use /// </summary> public string ApiUrl { get; set; } /// <summary> /// The API key used to access your Azure Cognitive Service /// </summary> public string ApiKey { get; set; } } } <file_sep>/archive-site-frontend/src/app/models/project.ts import { Model } from './model'; export class Project extends Model { constructor( id: number = 0, public Name: string = undefined, public Description: string = undefined, public SampleDocumentUrl: string = undefined, public Active: boolean = false) { super(id); } static fromPayload(payload: any): Project { return new Project( payload.Id, payload.Name, payload.Description, payload.SampleDocumentUrl, payload.Active ); } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Models/DocumentText.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ArchiveSiteBackend.Api.Models { public class DocumentText { /// <summary> /// Describes where the text was found in relation to the image. For image, the (x, y) /// coordinates are measured in pixels. For PDF, the (x, y) coordinates are measured in inches. /// </summary> public BoundingBox BoundingBox { get; set; } /// <summary> /// Describes the actual text that was found /// </summary> public string Text { get; set; } } public class BoundingBox { public double? Left { get; set; } public double? Top { get; set; } public double? Right { get; set; } public double? Bottom { get; set; } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/text/TextMarker.d.ts import { RectangularMarkerBase } from "../RectangularMarkerBase"; import { TextMarkerState } from './TextMarkerState'; export declare class TextMarker extends RectangularMarkerBase { static createMarker: () => TextMarker; constructor(); protected readonly MIN_SIZE = 50; private readonly DEFAULT_TEXT; private text; private textElement; private inDoubleTap; private editor; private editorTextArea; getState(): TextMarkerState; restoreState(state: TextMarkerState): void; protected setup(): void; protected resize(x: number, y: number): void; private renderText; private sizeText; private onDblClick; private onTap; private showEditor; private onEditorOkClick; private closeEditor; private onEditorKeyDown; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/ActivityController.cs using System; using System.Linq; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Services; using Microsoft.AspNet.OData; using Microsoft.AspNetCore.Authorization; namespace ArchiveSiteBackend.Api.Controllers { public class ActivitiesController : EntityControllerBase<ArchiveDbContext, Activity> { private readonly UserContext userContext; public ActivitiesController(ArchiveDbContext context, UserContext userContext) : base(context) { this.userContext = userContext ?? throw new ArgumentNullException(nameof(userContext)); } [EnableQuery] [AllowAnonymous] public IQueryable<Activity> CurrentUser() { if (this.userContext.LoggedInUser != null) { return this.DbContext.Activities.Where( a => a.UserId == this.userContext.LoggedInUser.Id ); } else { return Enumerable.Empty<Activity>().AsQueryable(); } } } } <file_sep>/archive-site-frontend/src/app/messages/messages.component.ts //this component prints the newest messages on the activity feed. import { Component, OnInit } from '@angular/core'; import { MessageService } from '../services/message.service'; import { USERS } from '../mock-data/mock-users'; @Component({ selector: 'app-messages', templateUrl: './messages.component.html', styleUrls: ['./messages.component.scss'] }) export class MessagesComponent implements OnInit { constructor(public messageService: MessageService) { } ngOnInit(): void { this.getMessage(); } //Create a message for each user in the mock user file, just to fill //the Activity Feed with some content. getMessage(): void{ for (let user of USERS) { this.messageService.add(user.DisplayName + " was added."); } } }<file_sep>/archive-site-frontend/local_modules/markerjs/typings/toolbar/ToolbarButton.d.ts import { ToolbarItem } from "./ToolbarItem"; export declare class ToolbarButton { private toolbarItem; private clickHandler; constructor(toolbarItem: ToolbarItem, clickHandler?: (ev: MouseEvent, toolbarItem: ToolbarItem) => void); getElement: () => HTMLElement; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/CommandLineOptions/CommonOptions.cs using System; using CommandLine; namespace ArchiveSiteBackend.Api.CommandLineOptions { public class CommonOptions { [Option("environment", HelpText = "The environment to use for configuration purposes.")] public String Environment { get; set; } [Option("config-path", HelpText = "A path to the folder containing appsettings configuration files.")] public String ConfigPath { get; set; } [Option("debug", HelpText = "Wait for the debugger to attach before running the command")] public Boolean Debug { get; set; } // These are all shims that are actually processed by the configuration system. [Option("ArchiveDb:Host", HelpText = "Overrides the database host specified in configuration.")] public String Host { get; set; } [Option("ArchiveDb:Port", HelpText = "Overrides the database port specified in configuration.")] public UInt16 Port { get; set; } [Option("ArchiveDb:Database", HelpText = "Overrides the database name specified in configuration.")] public String Database { get; set; } [Option("ArchiveDb:User", HelpText = "Overrides the database user specified in configuration.")] public String User { get; set; } [Option("ArchiveDb:Password", HelpText = "Overrides the database password specified in configuration.")] public String Password { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/Project.cs using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace ArchiveSite.Data { public class Project : EntityBase<Project> { [Required, StringLength(100)] public String Name { get; set; } public String Description { get; set; } public Int64? CategoryId { get; set; } [StringLength(1024)] public String SampleDocumentUrl { get; set; } [DefaultValue(true)] public Boolean Active { get; set; } = true; public virtual Category Category { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/DocumentActionType.cs namespace ArchiveSite.Data { public enum DocumentActionType { BeginTranscription, SkipTranscription, ReportProblem, SubmitTranscription, ApproveTranscription, } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api.Tests/Services/CognitiveServiceTests.cs using ArchiveSiteBackend.Api.Services; using Microsoft.Extensions.Logging; using Moq; using System.IO; using System.Threading.Tasks; using Xunit; namespace ArchiveSiteBackend.Api.Tests.Services { public class CognitiveServiceTests : UnitTestBase { [Fact] public async Task ReadImage_Test() { // Arrange var mockLogger = new Mock<ILogger<CognitiveService>>(); var cognitiveService = new CognitiveService(mockLogger.Object, AzureCognitiveConfiguration); var fileStream = File.OpenRead(Path.Combine("Samples", "GlassNegatives_00003.pdf")); // Act var documentTexts = await cognitiveService.ReadImage(fileStream); // Assert Assert.NotNull(documentTexts); Assert.True(documentTexts.Count > 0); } } } <file_sep>/archive-site-frontend/src/app/models/activity.ts import { Model } from 'src/app/models/model'; import { ActivityType } from 'src/app/models/activity-type'; import { User } from 'src/app/models/user'; export class Activity extends Model { constructor( id: number = 0, public UserId: number = 0, public Message: string = undefined, public EntityType: string = undefined, public EntityId: number = undefined, public Type: ActivityType = undefined, public CreatedTime: Date = undefined, public User?: User) { super(id); } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/Renderer.d.ts export declare class Renderer { rasterize(target: HTMLImageElement, markerImage: SVGSVGElement, done: (dataUrl: string) => void, naturalSize?: boolean, imageType?: string, imageQuality?: number, markersOnly?: boolean): void; } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/ellipse/EllipseMarker.d.ts import { RectangularMarkerBase } from "../RectangularMarkerBase"; export declare class EllipseMarker extends RectangularMarkerBase { static createMarker: () => RectangularMarkerBase; constructor(); private markerEllipse; protected setup(): void; protected resize(x: number, y: number): void; } <file_sep>/archive-site-backend/docker-compose.yml version: '3.1' services: archive-api: build: context: ./ dockerfile: Dockerfile environment: - ArchiveDb__Password=${POSTGRES_PASSWORD:-<PASSWORD>} - ArchiveDb__Host=archive-postgresql - Facebook__ApplicationId=${Facebook__ApplicationId} - Facebook__Secret=${Facebook__Secret} - Azure__ApiUrl=${Azure__ApiUrl} - Azure__ApiKey=${Azure__ApiKey} ports: - "5000:80" - "5001:443" networks: - services archive-postgresql: image: postgres:13 restart: always volumes: - pgsql_data:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-<PASSWORD>} ports: - "5432:5432" networks: - services networks: services: volumes: pgsql_data: <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/AuthController.cs using System; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using ArchiveSiteBackend.Api.Configuration; using ArchiveSiteBackend.Api.Models; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authentication.Facebook; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; namespace ArchiveSiteBackend.Api.Controllers { [Route("api/auth")] [AllowAnonymous] public class AuthController : Controller { private readonly IOptions<FacebookConfiguration> facebookConfiguration; public AuthController(IOptions<FacebookConfiguration> facebookConfiguration) { this.facebookConfiguration = facebookConfiguration ?? throw new ArgumentNullException(nameof(facebookConfiguration)); } [HttpGet("login")] public IActionResult Login([FromQuery] String returnUrl) { if (this?.User?.Identity.IsAuthenticated == true) { return this.Redirect(returnUrl ?? "/"); } return this.View(new LoginModel { ReturnUrl = returnUrl ?? "/", Insecure = Startup.Insecure }); } [HttpPost("insecure-login")] public async Task<IActionResult> InsecureLogin(String email, String returnUrl) { await HttpContext.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(new[] { new ClaimsIdentity( new[] { new Claim(ClaimTypes.Email, email) }, "Insecure" ) }) ); return String.IsNullOrWhiteSpace(returnUrl) ? (IActionResult)RedirectToAction("Test") : Redirect(returnUrl); } [HttpGet("login-with-facebook")] public async Task LoginWithFacebook([FromQuery] String returnUrl) { if (Startup.Insecure) { HttpContext.Response.Redirect(Url.Action("Login", new { returnUrl })); return; } await HttpContext.ChallengeAsync( FacebookDefaults.AuthenticationScheme, new AuthenticationProperties { RedirectUri = returnUrl ?? "/", } ); } [HttpGet("logout")] public async Task<IActionResult> Logout([FromQuery] String returnUrl) { await HttpContext.SignOutAsync( new AuthenticationProperties { RedirectUri = returnUrl ?? "/" } ); return Redirect(returnUrl); } [HttpGet("test")] public IActionResult Test() { return Json(new { this.User.Identity.Name, this.User.Identity.AuthenticationType, this.User.Identity.IsAuthenticated, Claims = this.User.Claims.Select(c => new { c.Issuer, c.OriginalIssuer, c.Type, c.Value, c.ValueType }) }); } } } <file_sep>/archive-site-frontend/src/app/document/document.component.ts import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Observable, ReplaySubject } from 'rxjs'; import { map } from 'rxjs/operators'; import * as _ from 'lodash'; import { HighlightMarker, MarkerArea } from 'markerjs'; import { environment } from 'src/environments/environment'; import { Field, FieldType } from 'src/app/models/field'; import { UserContextService } from 'src/app/services/user-context-service'; import { NgForm } from '@angular/forms'; import { DocumentService } from '../services/document.service'; import { MessageService } from '../services/message.service'; import { MarkerAreaState } from 'markerjs/typings/MarkerAreaState'; import { Document } from '../models/document'; import { Transcription } from '../models/transcription'; import AzureTranscription from '../models/azure-transcription'; import { DataApiService } from 'src/app/services/data-api.service'; @Component({ selector: 'app-document', templateUrl: './document.component.html', styleUrls: ['./document.component.scss'] }) export class DocumentComponent implements OnInit { document$: Observable<Document>; fields$: Observable<Field[]>; data: { [key: string]: string } = {}; documentImageUrl: string; projectId: number; documentId: number; isLoading: boolean = true; @ViewChild('transcribeForm') protected transcribeForm: NgForm; transcription: Transcription; private _saving: Promise<void>; constructor( private dataApi: DataApiService, private documentService: DocumentService, private messageService: MessageService, private userContext: UserContextService, private route: ActivatedRoute, private router: Router ) { } ngOnInit(): void { console.log('DocumentComponent.ngOnInit'); this.route.params.subscribe(params => { console.log('DocumentComponent route params changed'); this.isLoading = true; this.projectId = Number(params.projectId); this.documentId = Number(params.documentId); this.transcription = undefined; this.data = {}; this.azureTranscriptions$ = this.documentService.getAzureTranscription(this.documentId); this.document$ = this.documentService.getDocumentByDocumentId(this.documentId); this.document$.subscribe(document => { this.documentImageUrl = `${environment.apiUrl}/DocumentImage/${document.Id}`; }); this.fields$ = this.dataApi.fieldService.entities() .filter({ ProjectId: this.projectId }) .get() .pipe(map(f => _.orderBy(f.entities, ['Index']))); this.documentService.getCurrentUserTranscription(this.documentId) .subscribe( transcription => { if (transcription) { this.transcription = transcription; let allTranscriptions: any[] = JSON.parse(transcription.Data); console.log('Existing transcription data loaded'); console.log(allTranscriptions); if (allTranscriptions && allTranscriptions.length > 0) { this.data = allTranscriptions[0]; } } this.isLoading = false; }, error => { console.warn('Unable to load existing transcription.'); console.log(error); this.isLoading = false; }); }); } @ViewChild('documentImage') documentImage: ElementRef; @ViewChild('documentMarker') documentMarker: ElementRef; private markerArea: MarkerArea; private renderedImage: string; private markerAreaState: MarkerAreaState; private azureTranscriptions$: Observable<Array<AzureTranscription>>; private azureTranscriptions: Array<AzureTranscription>; private widthRatio: number; private heightRatio: number; onImageLoaded(event: Event): void { /* console.log(`image width ${this.documentImage.nativeElement.width}`); console.log(`image height ${this.documentImage.nativeElement.height}`); console.log(event); */ console.log('onImageLoaded'); let naturalWidth = this.documentImage.nativeElement.naturalWidth; let naturalHeight = this.documentImage.nativeElement.naturalHeight; let imageWidth = this.documentImage.nativeElement.width; let imageHeight = this.documentImage.nativeElement.height; this.widthRatio = imageWidth / naturalWidth; this.heightRatio = imageHeight / naturalHeight; ///* if (this.markerArea != null) { this.markerArea.resetState(); } // must be re-instantiated because the image size MIGHT change this.markerArea = new MarkerArea(this.documentImage.nativeElement, { targetRoot: this.documentMarker.nativeElement, showUi: false }); this.markerArea.show((dataUrl, state) => { this.renderedImage = dataUrl; this.markerAreaState = state; }); //this.markerArea.close(); //*/ this.resetImagePosition(); this.azureTranscriptions$.subscribe((azureTranscripts) => { console.log(azureTranscripts); this.azureTranscriptions = azureTranscripts; if (azureTranscripts) { azureTranscripts.forEach(transcript => { const boundingBox = transcript.BoundingBox; this.markerArea.addMarker(HighlightMarker, { translateX: boundingBox.Left * this.widthRatio, translateY: boundingBox.Top * this.heightRatio, width: (boundingBox.Right - boundingBox.Left) * this.widthRatio, height: (boundingBox.Bottom - boundingBox.Top) * this.heightRatio, markerId: '', markerType: 'HighlightMarker' }); }); } this.renderImage(); }); } showRendered: boolean = false; showHideHighlights(): void { this.showRendered = !this.showRendered; } resetImagePosition(): void { // reset mouse related coordinates this.isImageMoving = false; this.mouseDown = { x: 0, y: 0, left: 0, top: 0 }; // reset documentImage position this.documentImage.nativeElement.style.left = 0; this.documentImage.nativeElement.style.top = 0; this.documentImage.nativeElement.style.transform = 'scale(1)'; } addMarker(): void { console.log("addM"); this.markerArea.open(); this.markerArea.addMarker(HighlightMarker); } @ViewChild('documentRender') documentRender: HTMLImageElement; public image$: ReplaySubject<string> = new ReplaySubject(1); renderImage(): void { this.markerArea.render((dataUrl) => { this.image$.next(dataUrl); this.markerArea.resetState(); this.documentMarker.nativeElement.style.display = 'none'; }); } private isImageMoving = false; private mouseDown = { x: 0, y: 0, left: 0, top: 0 }; onImageMouseDown(event: MouseEvent): void { event.preventDefault(); const left = parseInt(this.documentImage.nativeElement.style.left); this.mouseDown.left = isNaN(left) ? 0 : left; const top = parseInt(this.documentImage.nativeElement.style.top); this.mouseDown.top = isNaN(top) ? 0 : top; this.mouseDown.x = event.clientX; this.mouseDown.y = event.clientY; if (this.isImageMoving) { this.isImageMoving = !this.isImageMoving; return; } this.isImageMoving = !this.isImageMoving; } onImageMouseMove(mouseEvent: MouseEvent): void { if (!this.isImageMoving) { return; } var left = mouseEvent.clientX - this.mouseDown.x; var top = mouseEvent.clientY - this.mouseDown.y; //console.log(`event x: ${mouseEvent.clientX} - event y: ${mouseEvent.clientY}`); //console.log(`down x: ${this.mouseDown.x}, down y: ${this.mouseDown.y}`); this.documentImage.nativeElement.style.left = (this.mouseDown.left + left) + "px"; this.documentImage.nativeElement.style.top = (this.mouseDown.top + top) + "px"; } onImageMouseUp(): void { this.isImageMoving = false; } onImageMouseWheel(event: WheelEvent): void { event.preventDefault(); event.stopPropagation(); let scale = this.getImageTransformScale(); if (event.deltaY > 0) { // then zoom out scale = scale - 0.025; } else if (event.deltaY < 0) { // then zoom in scale = scale + 0.025; } this.documentImage.nativeElement.style.transform = `scale(${scale})`; } onImageDragOver(event: DragEvent): void { event.preventDefault(); event.stopPropagation(); this.showRendered = true; } startAutoTranscribe(event: DragEvent, field: Field): void { event.dataTransfer.setData('application/json', JSON.stringify(field)) } async onImageDrop(event: DragEvent): Promise<void> { console.log(event); let x = event.offsetX; let y = event.offsetY; let trueX = x / this.widthRatio; let trueY = y / this.heightRatio; if (this.azureTranscriptions) { let match: string; for (const transcription of this.azureTranscriptions) { if (trueX >= transcription.BoundingBox.Left && trueX <= transcription.BoundingBox.Right && trueY >= transcription.BoundingBox.Top && trueY <= transcription.BoundingBox.Bottom) { match = transcription.Text; break; } } if (match) { console.log(`Boom! ${match}`); let fieldInfo = Field.fromPayload(JSON.parse(event.dataTransfer.getData('application/json'))); if (fieldInfo.Name) { this.data[fieldInfo.Name] = match; await this.saveTranscription(); } } } this.showRendered = false; } private getImageTransformScale(): number { const transform = this.documentImage.nativeElement.style.transform; if (transform === '') { return 1; } const regExp = /[-+]?[0-9]*\.?[0-9]+/; return parseFloat(regExp.exec(transform)[0]); } async submit(): Promise<void> { await this.saveTranscription(true); this.messageService.add('A new transcription has been added.'); } formChanged(): Promise<void> { console.log('formChanged'); return this.saveTranscription(); } async saveTranscription(submit: boolean = false): Promise<void> { if (this._saving) { // Make sure any previous saving is done. await this._saving; } this._saving = this.saveTranscriptionHelper(submit); return this._saving; } async saveTranscriptionHelper(submit: boolean): Promise<void> { console.log('Saving transcription data: ' + JSON.stringify(this.data)); if (this.transcription) { // Update this.transcription.Data = JSON.stringify([this.data]); if (submit) { this.transcription.IsSubmitted = true; } this.transcription = await this.documentService.saveTranscription(this.transcription); } else { // Save New console.log('fetch user'); let user = await this.userContext.userPromise; console.log('got user'); // TODO: currently we only support single record transcription, so we're just wrapping the // data from the form in a one item array. this.transcription = await this.documentService.saveTranscription( new Transcription( 0, this.documentId, user.Id, JSON.stringify([this.data]), undefined, submit ) ); } } async goToNext(): Promise<void> { const next = await this.documentService.getNextDocument(this.projectId, this.documentId).toPromise(); await this.goToDocument(next); } async goToPrevious(): Promise<void> { const previous = await this.documentService.getPreviousDocument(this.projectId, this.documentId).toPromise(); await this.goToDocument(previous); } async goToDocument(document: Document): Promise<void> { await this.router.navigate(['/transcribe', document.ProjectId, document.Id]); } getHtmlInputType(type: FieldType) { switch (type) { case FieldType.Boolean: return 'checkbox'; case FieldType.Integer: return 'number'; case FieldType.String: return 'text'; case FieldType.Date: return 'date'; } } } <file_sep>/archive-site-frontend/src/app/project-detail/project-detail.component.ts import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { DataApiService } from 'src/app/services/data-api.service'; import { Observable } from 'rxjs'; import { Project } from 'src/app/models/project'; import { ODataEntities } from 'angular-odata'; import { map } from 'rxjs/operators'; import { Document } from 'src/app/models/document' import { UserContextService } from 'src/app/services/user-context-service'; import { User } from 'src/app/models/user'; @Component({ selector: 'app-project-detail', templateUrl: './project-detail.component.html', styleUrls: ['./project-detail.component.scss'] }) export class ProjectDetailComponent implements OnInit { project$: Observable<Project>; documents$: Observable<Document[]>; user$: Observable<User>; constructor( private _route: ActivatedRoute, private _dataApi: DataApiService, private _userContext: UserContextService) { } projectId: number; ngOnInit(): void { this.user$ = this._userContext.user$; this.projectId = Number(this._route.snapshot.params['id']); this.project$ = this._dataApi.projectService.entity(this.projectId).fetch() this.documents$ = this._dataApi.documentService.entities() .filter({ ProjectId: this.projectId }) .get() .pipe(map((oe: ODataEntities<Document>) => oe.entities)) } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/LineMarkerBase.d.ts import { LineMarkerBaseState } from "./LineMarkerBaseState"; import { MarkerBase } from "./MarkerBase"; export declare class LineMarkerBase extends MarkerBase { static createMarker: () => LineMarkerBase; protected markerLine: SVGLineElement; protected previousState: LineMarkerBaseState; private readonly MIN_LENGTH; private markerBgLine; private controlBox; private controlGrip1; private controlGrip2; private activeGrip; private x1; private y1; private x2; private y2; endManipulation(): void; select(): void; deselect(): void; getState(): LineMarkerBaseState; restoreState(state: LineMarkerBaseState): void; protected setup(): void; protected resize(dx: number, dy: number): void; protected adjustLine(): void; private getLineLength; private addControlBox; private adjustControlBox; private addControlGrips; private createGrip; private positionGrips; private positionGrip; private gripMouseDown; private gripMouseUp; private gripMouseMove; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/CategoryController.cs using ArchiveSite.Data; namespace ArchiveSiteBackend.Api.Controllers { public class CategoriesController : EntityControllerBase<ArchiveDbContext, Category> { public CategoriesController(ArchiveDbContext context) : base(context) { } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/toolbar/Toolbar.d.ts import { ToolbarItem } from "./ToolbarItem"; export declare class Toolbar { private toolbarItems; private toolbarUI; private clickHandler; constructor(toolbarItems: ToolbarItem[], clickHandler: (ev: MouseEvent, toolbarItem: ToolbarItem) => void); getUI: () => HTMLElement; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Program.cs using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; using ArchiveSiteBackend.Api.CommandLineOptions; using ArchiveSiteBackend.Api.Commands; using ArchiveSiteBackend.Api.Helpers; using CommandLine; using CommandLine.Text; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting.Internal; using HostOptions = ArchiveSiteBackend.Api.CommandLineOptions.HostOptions; namespace ArchiveSiteBackend.Api { public static class Program { private static readonly Parser CommandLineParser = new Parser(settings => { settings.CaseSensitive = true; settings.IgnoreUnknownArguments = true; }); public static void Main(String[] args) { var commandLine = CommandLineParser.ParseArguments( args, typeof(InitializeOptions), typeof(HostOptions) ); commandLine .WithParsed<InitializeOptions>(opts => InitializeDatabase(args, opts)) .WithParsed<HostOptions>(opts => RunWebHost(args, opts)) .WithNotParsed(errors => { DisplayHelp(commandLine); }); } private static void InitializeDatabase(String[] args, InitializeOptions options) { if (options.Debug) { WaitForDebugger(); } var configuration = BuildConfiguration(args, options, out var environment); options.Environment = environment; var serviceCollection = new ServiceCollection(); var startup = new Startup(configuration); startup.ConfigureServices(serviceCollection, skipHosting: true); using var provider = serviceCollection.BuildServiceProvider(); var command = provider.GetRequiredService<InitializeCommand>(); // TODO: support cancellation when the user hits Ctrl+C or the process gets a kill signal command.InvokeAsync(options, CancellationToken.None).AwaitSynchronously(); } private static void RunWebHost(String[] args, HostOptions options) { if (options.Debug) { WaitForDebugger(); } if (options.Insecure) { Console.Error.WriteLine("!!! Enabling Insecure Login !!!"); Startup.Insecure = true; } Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder .UseConfiguration(BuildConfiguration(args, options, out var environment)) .UseEnvironment(environment) .UseStartup<Startup>(); }) .Build() .Run(); } public static IConfigurationRoot BuildConfiguration(String[] args, CommonOptions options, out String environment) { var configurationBasePath = GetAbsolute(options?.ConfigPath) ?? AppContext.BaseDirectory; environment = options?.Environment ?? Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? Environments.Development; var configuration = new ConfigurationBuilder() .SetBasePath(configurationBasePath) .AddJsonFile("appsettings.json", optional: false) .AddJsonFile($"appsettings.{environment}.json", optional: false) .AddEnvironmentVariables() .AddCommandLine(args); /* * if this is the development environment then manually include the user secrets for the * runtime and the unit tests */ if(environment == Environments.Development) { configuration.AddUserSecrets("<PASSWORD>"); } return configuration.Build(); } private static String GetAbsolute(String path) { return !String.IsNullOrWhiteSpace(path) ? Path.GetFullPath(path) : null; } private static void WaitForDebugger() { while (!Debugger.IsAttached) { Thread.Sleep(100); } } private static void DisplayHelp<T>(ParserResult<T> result) { var helpText = HelpText.AutoBuild( result, h => { var asm = typeof(Program).Assembly; h.AdditionalNewLineAfterOption = false; h.Heading = $"{asm.GetName().Name} {asm.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion}"; return h; }); Console.Error.WriteLine(helpText.ToString()); } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/HealthCheckController.cs using System; using System.Reflection; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace ArchiveSiteBackend.Api.Controllers { [ApiController] [Route("api/health")] public class HealthCheckController : Controller { private readonly ILogger<HealthCheckController> logger; public HealthCheckController(ILogger<HealthCheckController> logger) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); } [HttpGet] public IActionResult Get() { this.logger.LogTrace("Health Check Request Received: {Timestamp}", DateTime.UtcNow); return Ok(new { Version = typeof(HealthCheckController).Assembly .GetCustomAttribute<AssemblyInformationalVersionAttribute>() ?.InformationalVersion, Timestamp = DateTime.UtcNow }); } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/text/TextMarkerToolbarItem.d.ts import { ToolbarItem } from "../../toolbar/ToolbarItem"; import { TextMarker } from "./TextMarker"; export declare class TextMarkerToolbarItem implements ToolbarItem { name: string; tooltipText: string; icon: string; markerType: typeof TextMarker; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Services/UserContext.cs using ArchiveSite.Data; namespace ArchiveSiteBackend.Api.Services { public class UserContext { public User LoggedInUser { get; set; } } } <file_sep>/archive-site-frontend/src/app/services/data-api.service.ts import { Injectable } from '@angular/core'; import { ODataEntityService, ODataServiceFactory, ODataSettings } from 'angular-odata'; import { environment } from 'src/environments/environment'; import { User } from 'src/app/models/user'; import { Project } from 'src/app/models/project'; import { Document } from 'src/app/models/document'; import { Transcription } from '../models/transcription'; import { Field } from 'src/app/models/field'; import { Activity } from 'src/app/models/activity'; export function odataSettingsFactory() { return new ODataSettings({ serviceRootUrl: `${environment.apiUrl}/odata`, withCredentials: true }); } @Injectable({ providedIn: 'root' }) export class DataApiService { constructor(private _factory: ODataServiceFactory) { } get userService(): ODataEntityService<User> { return this._factory.entity<User>('Users', 'ArchiveSite.Data.User'); } get projectService(): ODataEntityService<Project> { return this._factory.entity<Project>('Projects', 'ArchiveSite.Data.Project'); } get fieldService(): ODataEntityService<Field> { return this._factory.entity<Field>('Fields', 'ArchiveSite.Data.Field'); } get documentService(): ODataEntityService<Document> { return this._factory.entity<Document>('Documents', 'ArchiveSite.Data.Document'); } get transcriptionService(): ODataEntityService<Transcription> { return this._factory.entity<Transcription>('Transcriptions', 'ArchiveSite.Data.Transcription'); } get activityService(): ODataEntityService<Activity> { return this._factory.entity<Activity>('Activities', 'ArchiveSite.Data.Activity'); } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Models/LoginModel.cs using System; namespace ArchiveSiteBackend.Api.Models { public class LoginModel { public String ReturnUrl { get; set; } public Boolean Insecure { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/Transcription.cs using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ArchiveSite.Data { public class Transcription : EntityBase<Transcription> { [Required] [ForeignKey(nameof(Document))] public Int64 DocumentId { get; set; } [Required] [ForeignKey(nameof(User))] public Int64 UserId { get; set; } /// <summary> /// A JSON Payload containing the transcribed data. /// </summary> public String Data { get; set; } /// <summary> /// A JSON serialized array of validation issues, or <c>null</c> if there are no issues. /// </summary> public String ValidationErrors { get; set; } /// <summary> /// Whether or not this transcription has been submitted. /// </summary> public Boolean IsSubmitted { get; set; } public virtual Document Document { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Services/ILoginLogger.cs using System.Security.Claims; using System.Threading.Tasks; namespace ArchiveSiteBackend.Api.Services { public interface ILoginLogger { public Task LogLogin(ClaimsPrincipal principal); } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/rect/RectMarkerToolbarItem.d.ts import { ToolbarItem } from "../../toolbar/ToolbarItem"; import { RectMarker } from "./RectMarker"; export declare class RectMarkerToolbarItem implements ToolbarItem { name: string; tooltipText: string; icon: string; markerType: typeof RectMarker; } <file_sep>/archive-site-frontend/src/app/models/azure-transcription.ts import BoundingBox from './bounding-box'; export default class AzureTranscription { /** * */ constructor( public BoundingBox: BoundingBox, public Text: string ) {} }<file_sep>/archive-site-frontend/src/app/login/login.component.ts import { Component, OnInit } from '@angular/core'; import { environment } from 'src/environments/environment'; import { ActivatedRoute } from '@angular/router'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.scss'] }) export class LoginComponent implements OnInit { private _returnUrl: string; constructor( private _route: ActivatedRoute) { } ngOnInit(): void { this._returnUrl = this._route.snapshot.queryParams['returnUrl'] || '/'; } withFacebook(): void { let returnUrl = environment.apiUrl.startsWith(window.origin) ? this._returnUrl : `${window.origin}${this._returnUrl}`; window.location.href = `${environment.apiUrl}/auth/login-with-facebook?returnUrl=${encodeURIComponent(returnUrl)}`; } } <file_sep>/archive-site-frontend/src/app/services/notification-service.ts import { Injectable, TemplateRef } from '@angular/core'; type NotificationOptions = { delay?: number, className?: string }; @Injectable({ providedIn: 'root' }) export class NotificationService { notifications: Array<{ textOrTpl: string | TemplateRef<any> } & NotificationOptions> = []; show(textOrTpl: string | TemplateRef<any>, options: NotificationOptions = {}): any { let notification = { textOrTpl, ...options }; this.notifications.push(notification); return notification; } info(textOrTpl: string | TemplateRef<any>, options: NotificationOptions = {}): any { if (!options.className) { options.className = 'notification-info'; } else { options.className += ' notification-info'; } return this.show(textOrTpl, options); } success(textOrTpl: string | TemplateRef<any>, options: NotificationOptions = {}): any { if (!options.className) { options.className = 'notification-success'; } else { options.className += ' notification-success'; } return this.show(textOrTpl, options); } warning(textOrTpl: string | TemplateRef<any>, options: NotificationOptions = {}): any { if (!options.className) { options.className = 'notification-warning'; } else { options.className += ' notification-warning'; } return this.show(textOrTpl, options); } error(textOrTpl: string | TemplateRef<any>, options: NotificationOptions = {}): any { if (!options.className) { options.className = 'notification-error'; } else { options.className += ' notification-error'; } return this.show(textOrTpl, options); } remove(notification) { this.notifications = this.notifications.filter(t => t !== notification); } } <file_sep>/archive-site-frontend/src/app/project-details-form/project-details-form.component.ts import { Component, Input, OnInit, Output, ViewChild } from '@angular/core'; import { EventEmitter } from '@angular/core'; import { NgForm } from '@angular/forms'; @Component({ selector: 'app-project-details-form', templateUrl: './project-details-form.component.html', styleUrls: ['./project-details-form.component.scss'] }) export class ProjectDetailsFormComponent implements OnInit { @Input() name: string; @Output() nameChange = new EventEmitter<string>(); @Input() description?: string; @Output() descriptionChange = new EventEmitter<string>(); @Input() disabled: boolean = false; @ViewChild('projectForm', { static: true }) protected projectForm: NgForm; @Output() change = new EventEmitter(); get invalid(): boolean { return this.projectForm.form.invalid; } constructor() { } ngOnInit(): void { } onFormChange(value: any) { this.change.emit(value); } } <file_sep>/archive-site-frontend/src/app/profile/profile.component.ts import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { UserService } from 'src/app/services/user.service'; import { User } from 'src/app/models/user'; import { UserType } from 'src/app/models/user-type'; import { $enum } from 'ts-enum-util'; import { NotificationService } from 'src/app/services/notification-service'; import { UserContextService } from 'src/app/services/user-context-service'; @Component({ selector: 'app-profile', templateUrl: './profile.component.html', styleUrls: ['./profile.component.scss'] }) export class ProfileComponent implements OnInit { allUserTypes: UserType[] = Array.from($enum(UserType).values()); isLoading: boolean = true; isSaving: boolean; isNewSignUp: boolean; adminMode: boolean; existingUser: User; email: string; displayName: string; userType: UserType; get hasChanges(): boolean { return !this.existingUser || this.displayName !== this.existingUser.DisplayName || this.userType !== this.existingUser.Type; } constructor( private _router: Router, private _route: ActivatedRoute, private _userService: UserService, private _userContext: UserContextService, private _notifications: NotificationService) { } async ngOnInit(): Promise<void> { let code = this._route.snapshot.queryParams['code']; // This is for demo purpose and will be removed in the production version. this.adminMode = code && code.toUpperCase() === 'IDDQD'; let [ident, existing] = await Promise.all([ this._userService.ident(), this._userService.me() ]); if (!ident || ! ident.Email) { // You need to at least authenticate first await this._router.navigate(['signup']); return; } this.existingUser = existing; this.email = ident.Email; if (existing) { this.displayName = existing.DisplayName; console.log(`loading existing type ${existing.Type}`); console.log(existing); this.userType = existing.Type; } this.isNewSignUp = !this.existingUser; this.isLoading = false; } async save(): Promise<void> { this.isSaving = true; if (this.existingUser) { this.existingUser.DisplayName = this.displayName; if (this.adminMode) { this.existingUser.Type = this.userType; } this.existingUser = await this._userService.saveProfile(this.existingUser); this.isSaving = false; this._notifications.success('User Profile Saved'); } else { await this._userService.saveProfile(new User( undefined, this.email, this.displayName, this.adminMode ? this.userType : UserType.Rookie )); this._userContext.invalidateUser(); this._notifications.success('Welcome to Gaming the Archives'); await this._router.navigate(['projects']); } } async cancel(): Promise<void> { if (this.existingUser != null) { this.displayName = this.existingUser.DisplayName; } else { await this._router.navigate(['projects']); } } getUserTypeString(type: UserType): string { return UserType[type]; } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Configuration/FacebookConfiguration.cs using System; namespace ArchiveSiteBackend.Api.Configuration { public class FacebookConfiguration { public String ApplicationId { get; set; } public String Secret { get; set; } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/index.d.ts export { Activator } from "./Activator"; export { MarkerArea } from "./MarkerArea"; export { ArrowMarker } from "./markers/arrow/ArrowMarker"; export { CoverMarker } from "./markers/cover/CoverMarker"; export { HighlightMarker } from "./markers/highlight/HighlightMarker"; export { LineMarker } from "./markers/line/LineMarker"; export { RectMarker } from "./markers/rect/RectMarker"; export { TextMarker } from "./markers/text/TextMarker"; export { EllipseMarker } from "./markers/ellipse/EllipseMarker"; <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Services/CognitiveService.cs using ArchiveSiteBackend.Api.Configuration; using ArchiveSiteBackend.Api.Models; using Microsoft.Azure.CognitiveServices.Vision.ComputerVision; using Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; namespace ArchiveSiteBackend.Api.Services { /** * This class implements the Azure Cognitive Vision services that * we will use to read archive images. **/ public class CognitiveService : ICloudOcrService { private ComputerVisionClient ComputerVisionClient; private ILogger<CognitiveService> Logger; public CognitiveService(ILogger<CognitiveService> logger, AzureCognitiveConfiguration azureCognitiveConfiguration) { Logger = logger; ComputerVisionClient = new ComputerVisionClient( new ApiKeyServiceClientCredentials(azureCognitiveConfiguration.ApiKey)) { Endpoint = azureCognitiveConfiguration.ApiUrl }; } /// <summary> /// Sends an image to the Azure Cognitive Vision and returns the rendered text. /// More information available at https://westcentralus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-1-ga/operations/5d986960601faab4bf452005 /// </summary> /// <param name="filename"></param> /// <returns></returns> public async Task<List<DocumentText>> ReadImage(Stream stream) { try { var streamHeaders = await ComputerVisionClient.ReadInStreamAsync(stream, "en"); var operationLocation = streamHeaders.OperationLocation; const int numberOfCharsInOperationId = 36; string operationId = operationLocation.Substring(operationLocation.Length - numberOfCharsInOperationId); await Task.Delay(1000); ReadOperationResult readOperationResult; do { readOperationResult = await ComputerVisionClient.GetReadResultAsync(Guid.Parse(operationId)); } while (readOperationResult.Status == OperationStatusCodes.Running || readOperationResult.Status == OperationStatusCodes.NotStarted); var listOfDocumentText = new List<DocumentText>(); var arrayOfReadResults = readOperationResult.AnalyzeResult.ReadResults; foreach (var page in arrayOfReadResults) { foreach (var line in page.Lines) { var boundBox = new BoundingBox() { Left = line.BoundingBox[0], Top = line.BoundingBox[1], Right = line.BoundingBox[4], Bottom = line.BoundingBox[5] }; var documentText = new DocumentText() { BoundingBox = boundBox, Text = line.Text }; listOfDocumentText.Add(documentText); } } return listOfDocumentText; } catch (Exception e) { Logger.LogError(e, $"failed to analyze file"); return null; } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/DocumentStatus.cs namespace ArchiveSite.Data { public enum DocumentStatus { PendingTranscription, PendingProblem, PendingReview, Complete } } <file_sep>/archive-site-frontend/src/app/models/bounding-box.ts export default class BoundingBox { /** * */ constructor( public Top: number, public Left: number, public Bottom: number, public Right: number ) {} }<file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/RectangularMarkerBase.d.ts import { MarkerBase } from "./MarkerBase"; export declare class RectangularMarkerBase extends MarkerBase { static createMarker: () => RectangularMarkerBase; protected MIN_SIZE: number; private controlBox; private readonly CB_DISTANCE; private controlRect; private controlGrips; private activeGrip; endManipulation(): void; select(): void; deselect(): void; protected setup(): void; protected resize(dx: number, dy: number): void; protected onTouch(ev: TouchEvent): void; private addControlBox; private adjustControlBox; private addControlGrips; private createGrip; private positionGrips; private positionGrip; private gripMouseDown; private gripMouseUp; private gripMouseMove; } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/FieldType.cs namespace ArchiveSite.Data { public enum FieldType { Boolean = 0, Integer, String, Date } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api.Tests/UnitTestBase.cs using ArchiveSiteBackend.Api.Configuration; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.IO; using System.Text; using ArchiveSiteBackend.Api.CommandLineOptions; namespace ArchiveSiteBackend.Api.Tests { public abstract class UnitTestBase { public IConfigurationRoot Configuration; public AzureCognitiveConfiguration AzureCognitiveConfiguration; protected UnitTestBase() { Configuration = Program.BuildConfiguration( new String[] { }, new CommonOptions { ConfigPath = Path.Combine("..", "..", "..", "..", "ArchiveSiteBackend.Api")}, out _ ); AzureCognitiveConfiguration = new AzureCognitiveConfiguration(); Configuration.GetSection("Azure").Bind(AzureCognitiveConfiguration); } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/EntityControllerBase.cs using System; using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; using System.Threading; using System.Threading.Tasks; using ArchiveSite.Data; using Microsoft.AspNet.OData; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; namespace ArchiveSiteBackend.Api.Controllers { [ApiController] [Route("api/odata/[controller]")] public abstract class EntityControllerBase<TContext, TEntity> : ODataController where TContext : DbContext where TEntity : EntityBase<TEntity> { protected TContext DbContext { get; } private readonly JsonSerializerOptions serializerOptions; private IDbContextTransaction transaction; protected virtual JsonSerializerOptions SerializerOptions => this.serializerOptions; protected EntityControllerBase(TContext context) { this.DbContext = context ?? throw new ArgumentNullException(nameof(context)); this.serializerOptions = new JsonSerializerOptions(); this.serializerOptions.Converters.Insert(0, new JsonStringEnumConverter()); } [EnableQuery] [AllowAnonymous] public virtual IQueryable<TEntity> Get() { return this.DbContext.Set<TEntity>(); } [EnableQuery] [AllowAnonymous] public virtual async Task<IActionResult> Get( [FromODataUri] Int64 key, CancellationToken cancellationToken) { var dbSet = this.DbContext.Set<TEntity>(); var entity = await dbSet.SingleOrDefaultAsync(e => e.Id == key, cancellationToken); return entity != null ? (IActionResult)Ok(entity) : NotFound(); } public virtual async Task<IActionResult> Post( [FromBody] TEntity entity, CancellationToken cancellationToken) { this.transaction = await this.DbContext.Database.BeginTransactionAsync(cancellationToken); await this.OnCreating(entity, cancellationToken); if (!this.ModelState.IsValid) { return BadRequest(ModelState); } var dbSet = this.DbContext.Set<TEntity>(); entity = (await dbSet.AddAsync(entity, cancellationToken)).Entity; return await this.TrySaveChanges( entity, async savedEntity => { await this.OnCreated(savedEntity, cancellationToken); return this.Created(savedEntity); }, "create", cancellationToken ); } public virtual async Task<IActionResult> Put( [FromODataUri] Int64 key, [FromBody] TEntity entity, CancellationToken cancellationToken) { this.transaction = await this.DbContext.Database.BeginTransactionAsync(cancellationToken); var dbSet = this.DbContext.Set<TEntity>(); var existing = await dbSet.SingleOrDefaultAsync(e => e.Id == key, cancellationToken); if (existing == null) { return NotFound(); } await this.OnUpdating(key, existing, entity, cancellationToken); entity.CopyTo(existing); return await TrySaveChanges( existing, async updatedEntity => { await this.OnUpdated(updatedEntity, cancellationToken); return Ok(updatedEntity); }, "update", cancellationToken ); } public virtual async Task<IActionResult> Patch( [FromODataUri] Int64 key, Delta<TEntity> delta, CancellationToken cancellationToken) { this.transaction = await this.DbContext.Database.BeginTransactionAsync(cancellationToken); var dbSet = this.DbContext.Set<TEntity>(); var existing = await dbSet.SingleOrDefaultAsync(e => e.Id == key, cancellationToken); if (existing == null) { return NotFound(); } delta.Patch(existing); return await TrySaveChanges( existing, async updatedEntity => { await this.OnUpdated(updatedEntity, cancellationToken); return Ok(updatedEntity); }, "update", cancellationToken ); } public virtual async Task<IActionResult> Delete( [FromODataUri] Int64 key, CancellationToken cancellationToken) { var dbSet = this.DbContext.Set<TEntity>(); var entity = await dbSet.SingleOrDefaultAsync(e => e.Id == key, cancellationToken); if (entity != null) { dbSet.Remove(entity); } await this.DbContext.SaveChangesAsync(cancellationToken); return NoContent(); } protected virtual Task OnCreating(TEntity entity, CancellationToken cancellationToken) { if (entity.Id != 0) { this.ModelState.AddModelError( nameof(entity), "New entities should not have non-zero Ids specified. Ids are automatically generated." ); } return Task.CompletedTask; } /// <summary> /// Invoked after an entity has been created in the database. /// </summary> /// <param name="createdEntity"> /// The entity that has been created. /// </param> /// <param name="cancellationToken"> /// Cancellation token. /// </param> protected virtual Task OnCreated( TEntity createdEntity, CancellationToken cancellationToken) { return Task.CompletedTask; } protected virtual Task OnUpdating( Int64 key, TEntity existing, TEntity update, CancellationToken cancellationToken) { if (update.Id != key) { this.ModelState.AddModelError( nameof(update), $"The specified entity Id ({update.Id}) does not match the Id being updated ({key}). The Id of an entity is read only." ); } return Task.CompletedTask; } protected virtual Task OnUpdated( TEntity updatedEntity, CancellationToken cancellationToken) { return Task.CompletedTask; } protected async Task<IActionResult> TrySaveChanges( TEntity entity, Func<TEntity, Task<IActionResult>> onSuccess, String operation, CancellationToken cancellationToken) { try { await this.DbContext.SaveChangesAsync(cancellationToken); var result = await onSuccess(entity); if (this.transaction != null) { await this.transaction.CommitAsync(cancellationToken); } return result; } catch (DbUpdateException ex) { if (ArchiveDbContext.IsUserError(ex, out var message)) { return BadRequest(new ProblemDetails { Type = $"archive-site:database-error/invalid-{operation}", Title = $"The requested {operation} was not valid.", Detail = message }); } else { throw; } } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/DocumentActionsController.cs using System; using System.Threading; using System.Threading.Tasks; using ArchiveSite.Data; namespace ArchiveSiteBackend.Api.Controllers { public class DocumentActionsController : EntityControllerBase<ArchiveDbContext, DocumentAction> { public DocumentActionsController(ArchiveDbContext context) : base(context) { } protected override async Task OnCreating(DocumentAction entity, CancellationToken cancellationToken) { await base.OnCreating(entity, cancellationToken); if (this.ModelState.IsValid) { entity.ActionTime = DateTimeOffset.UtcNow; } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/NoteType.cs namespace ArchiveSite.Data { public enum NoteType { Comment = 0, Question, Problem } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Data/User.cs using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ArchiveSite.Data { public class User : EntityBase<User> { [Required, StringLength(1024), Index("ix_User_EmailAddress", IsUnique = true)] public String EmailAddress { get; set; } [Required, StringLength(100), MinLength(2)] public String DisplayName { get; set; } [Required] public UserType Type { get; set; } public DateTimeOffset LastLogin { get; set; } public DateTimeOffset SignUpDate { get; set; } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Controllers/CognitiveServiceController.cs using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Services; using Microsoft.Extensions.Logging; using System.Net.Http; using Microsoft.AspNetCore.Authorization; namespace ArchiveSiteBackend.Api.Controllers { [ApiController] [Route("api/[controller]")] public class CognitiveServiceController : ControllerBase { private ILogger<CognitiveServiceController> Logger; private ArchiveDbContext ArchiveDbContext; private ICloudOcrService CognitiveService; public CognitiveServiceController( ILogger<CognitiveServiceController> logger, ArchiveDbContext archiveDbContext, ICloudOcrService cognitiveService) { Logger = logger; ArchiveDbContext = archiveDbContext; CognitiveService = cognitiveService; } /// <summary> /// This method accepts a documentId and submits the document image to the Azure Cognitive /// Service for OCR /// </summary> /// <param name="documentId">refers to the document id in the table documents column id</param> /// <returns></returns> [Obsolete("This method will change...")] [AllowAnonymous] public async Task<IActionResult> Post([FromBody] Int64 documentId) { var document = ArchiveDbContext.Documents.Find(documentId); if (document == null) { return NotFound(); } var httpClient = new HttpClient(); try { var url = new Uri(document.DocumentImageUrl); var httpStream = await httpClient.GetStreamAsync(url); var documentTexts = await CognitiveService.ReadImage(httpStream); return Ok(documentTexts); } catch (Exception e) { Logger.LogError(e, $"failed to read image for documentId: {documentId}"); return NotFound(); } } } } <file_sep>/archive-site-backend/src/ArchiveSiteBackend.Api/Middleware/UserContextMiddleware.cs using System.Security.Claims; using System.Threading.Tasks; using ArchiveSite.Data; using ArchiveSiteBackend.Api.Services; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; namespace ArchiveSiteBackend.Api.Middleware { public class UserContextMiddleware : RequestMiddlewareBase<ArchiveDbContext, UserContext> { public UserContextMiddleware(RequestDelegate nextRequestDelegate) : base(nextRequestDelegate) { } protected override async Task OnInvoke( HttpContext context, ArchiveDbContext dbContext, UserContext userContext) { var emailClaim = context.User?.FindFirst(ClaimTypes.Email); if (emailClaim != null) { userContext.LoggedInUser = await dbContext.Users .SingleOrDefaultAsync(u => u.EmailAddress.ToUpper() == emailClaim.Value.ToUpper() ); } else { userContext.LoggedInUser = null; } } } } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/arrow/ArrowMarkerToolbarItem.d.ts import { ToolbarItem } from "../../toolbar/ToolbarItem"; import { ArrowMarker } from "./ArrowMarker"; export declare class ArrowMarkerToolbarItem implements ToolbarItem { name: string; tooltipText: string; icon: string; markerType: typeof ArrowMarker; } <file_sep>/archive-site-frontend/local_modules/markerjs/typings/markers/line/LineMarkerToolbarItem.d.ts import { ToolbarItem } from "../../toolbar/ToolbarItem"; import { LineMarker } from "./LineMarker"; export declare class LineMarkerToolbarItem implements ToolbarItem { name: string; tooltipText: string; icon: string; markerType: typeof LineMarker; } <file_sep>/archive-site-frontend/src/app/app.component.ts import { Component, OnInit } from '@angular/core'; import { Location } from '@angular/common'; import { Router } from '@angular/router'; import { Observable } from 'rxjs'; import { User } from './models/user'; import { environment } from 'src/environments/environment'; import { UserContextService } from 'src/app/services/user-context-service'; import { map } from 'rxjs/operators'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { public user$: Observable<User>; public userFetched: boolean; constructor( private _userContext: UserContextService, private _location: Location, public router: Router) { } ngOnInit() { this.user$ = this._userContext.user$ .pipe(map(u => { this.userFetched = true; return u; })); } async gotoSignup(): Promise<void> { await this.router.navigate(['signup']); } async gotoLogin(): Promise<void> { let returnUrl = this._location.prepareExternalUrl(this.router.url); if (!returnUrl.startsWith('/')) { returnUrl = `/${returnUrl}`; } await this.router.navigate(['login'], { queryParams: { returnUrl: returnUrl } }); } logout() { let routeUrl = this._location.prepareExternalUrl(this.router.url); if (!routeUrl.startsWith('/')) { routeUrl = `/${routeUrl}`; } let returnUrl = environment.apiUrl.startsWith(window.origin) ? routeUrl : `${window.origin}${routeUrl}`; window.location.href = `${environment.apiUrl}/auth/logout?returnUrl=${encodeURIComponent(returnUrl)}`; } }
fb06e41c7e8d6188a5107dc88a5f2bd1f597478f
[ "YAML", "Markdown", "C#", "TypeScript", "Dockerfile", "Shell" ]
124
C#
HACC2020/GamingTheArchives
798bac3c1ae78e32ccccb70f23b020b37af12f6a
307c3fb910e274cb9bb4209e66c741b69d60711e