@@ -1,142 +1,142 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: PAULs_LPPMON_PLUGINS |
|
2 | # Makefile for building: PAULs_LPPMON_PLUGINS | |
3 |
# Generated by qmake (2.01a) (Qt 4.8.3) on: |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.3) on: Mon Dec 10 08:08:24 2012 | |
4 | # Project: PAULs_LPPMON_PLUGINS.pro |
|
4 | # Project: PAULs_LPPMON_PLUGINS.pro | |
5 | # Template: subdirs |
|
5 | # Template: subdirs | |
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro | |
7 | ############################################################################# |
|
7 | ############################################################################# | |
8 |
|
8 | |||
9 | first: make_default |
|
9 | first: make_default | |
10 | MAKEFILE = Makefile |
|
10 | MAKEFILE = Makefile | |
11 | QMAKE = /usr/bin/qmake-qt4 |
|
11 | QMAKE = /usr/bin/qmake-qt4 | |
12 | DEL_FILE = rm -f |
|
12 | DEL_FILE = rm -f | |
13 | CHK_DIR_EXISTS= test -d |
|
13 | CHK_DIR_EXISTS= test -d | |
14 | MKDIR = mkdir -p |
|
14 | MKDIR = mkdir -p | |
15 | COPY = cp -f |
|
15 | COPY = cp -f | |
16 | COPY_FILE = $(COPY) |
|
16 | COPY_FILE = $(COPY) | |
17 | COPY_DIR = $(COPY) -r |
|
17 | COPY_DIR = $(COPY) -r | |
18 | INSTALL_FILE = install -m 644 -p |
|
18 | INSTALL_FILE = install -m 644 -p | |
19 | INSTALL_PROGRAM = install -m 755 -p |
|
19 | INSTALL_PROGRAM = install -m 755 -p | |
20 | INSTALL_DIR = $(COPY_DIR) |
|
20 | INSTALL_DIR = $(COPY_DIR) | |
21 | DEL_FILE = rm -f |
|
21 | DEL_FILE = rm -f | |
22 | SYMLINK = ln -f -s |
|
22 | SYMLINK = ln -f -s | |
23 | DEL_DIR = rmdir |
|
23 | DEL_DIR = rmdir | |
24 | MOVE = mv -f |
|
24 | MOVE = mv -f | |
25 | CHK_DIR_EXISTS= test -d |
|
25 | CHK_DIR_EXISTS= test -d | |
26 | MKDIR = mkdir -p |
|
26 | MKDIR = mkdir -p | |
27 | SUBTARGETS = \ |
|
27 | SUBTARGETS = \ | |
28 | sub-rmapplugin |
|
28 | sub-rmapplugin | |
29 |
|
29 | |||
30 | rmapplugin/$(MAKEFILE): |
|
30 | rmapplugin/$(MAKEFILE): | |
31 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ |
|
31 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ | |
32 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) |
|
32 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) | |
33 | sub-rmapplugin-qmake_all: FORCE |
|
33 | sub-rmapplugin-qmake_all: FORCE | |
34 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ |
|
34 | @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/ | |
35 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) |
|
35 | cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE) | |
36 | sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE |
|
36 | sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE | |
37 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) |
|
37 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) | |
38 | sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
38 | sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE | |
39 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) |
|
39 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) | |
40 | sub-rmapplugin-make_default: rmapplugin/$(MAKEFILE) FORCE |
|
40 | sub-rmapplugin-make_default: rmapplugin/$(MAKEFILE) FORCE | |
41 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) |
|
41 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) | |
42 | sub-rmapplugin-make_first-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
42 | sub-rmapplugin-make_first-ordered: rmapplugin/$(MAKEFILE) FORCE | |
43 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first |
|
43 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first | |
44 | sub-rmapplugin-make_first: rmapplugin/$(MAKEFILE) FORCE |
|
44 | sub-rmapplugin-make_first: rmapplugin/$(MAKEFILE) FORCE | |
45 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first |
|
45 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) first | |
46 | sub-rmapplugin-all-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
46 | sub-rmapplugin-all-ordered: rmapplugin/$(MAKEFILE) FORCE | |
47 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all |
|
47 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all | |
48 | sub-rmapplugin-all: rmapplugin/$(MAKEFILE) FORCE |
|
48 | sub-rmapplugin-all: rmapplugin/$(MAKEFILE) FORCE | |
49 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all |
|
49 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) all | |
50 | sub-rmapplugin-clean-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
50 | sub-rmapplugin-clean-ordered: rmapplugin/$(MAKEFILE) FORCE | |
51 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean |
|
51 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean | |
52 | sub-rmapplugin-clean: rmapplugin/$(MAKEFILE) FORCE |
|
52 | sub-rmapplugin-clean: rmapplugin/$(MAKEFILE) FORCE | |
53 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean |
|
53 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) clean | |
54 | sub-rmapplugin-distclean-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
54 | sub-rmapplugin-distclean-ordered: rmapplugin/$(MAKEFILE) FORCE | |
55 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean |
|
55 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean | |
56 | sub-rmapplugin-distclean: rmapplugin/$(MAKEFILE) FORCE |
|
56 | sub-rmapplugin-distclean: rmapplugin/$(MAKEFILE) FORCE | |
57 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean |
|
57 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) distclean | |
58 | sub-rmapplugin-install_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
58 | sub-rmapplugin-install_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE | |
59 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install |
|
59 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install | |
60 | sub-rmapplugin-install_subtargets: rmapplugin/$(MAKEFILE) FORCE |
|
60 | sub-rmapplugin-install_subtargets: rmapplugin/$(MAKEFILE) FORCE | |
61 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install |
|
61 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) install | |
62 | sub-rmapplugin-uninstall_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE |
|
62 | sub-rmapplugin-uninstall_subtargets-ordered: rmapplugin/$(MAKEFILE) FORCE | |
63 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall |
|
63 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall | |
64 | sub-rmapplugin-uninstall_subtargets: rmapplugin/$(MAKEFILE) FORCE |
|
64 | sub-rmapplugin-uninstall_subtargets: rmapplugin/$(MAKEFILE) FORCE | |
65 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall |
|
65 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) uninstall | |
66 |
|
66 | |||
67 | Makefile: PAULs_LPPMON_PLUGINS.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
67 | Makefile: PAULs_LPPMON_PLUGINS.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
68 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
68 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
69 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
69 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
70 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
70 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
71 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
71 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
72 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
72 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
73 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
73 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
74 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ |
|
74 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ | |
75 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
75 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
76 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
76 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
77 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
77 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
78 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
78 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
79 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
79 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
80 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
80 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
81 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
81 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
82 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
82 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
83 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
83 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
84 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
84 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
85 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
85 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
86 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
86 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
87 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
87 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
88 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
88 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
89 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
89 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
90 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf |
|
90 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf | |
91 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro |
|
91 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro | |
92 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
92 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
93 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
93 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
94 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
94 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
95 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
95 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
96 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
96 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
97 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
97 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
98 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
98 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
99 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri: |
|
99 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri: | |
100 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
100 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
101 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
101 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
102 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
102 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
103 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
103 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
104 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
104 | /usr/lib64/qt4/mkspecs/features/release.prf: | |
105 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
105 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
106 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
106 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
107 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
107 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
108 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
108 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
109 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
109 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |
110 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
110 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |
111 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
111 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
112 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
112 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
113 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
113 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
114 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
114 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
115 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
115 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
116 | qmake: qmake_all FORCE |
|
116 | qmake: qmake_all FORCE | |
117 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro |
|
117 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro | |
118 |
|
118 | |||
119 | qmake_all: sub-rmapplugin-qmake_all FORCE |
|
119 | qmake_all: sub-rmapplugin-qmake_all FORCE | |
120 |
|
120 | |||
121 | make_default: sub-rmapplugin-make_default-ordered FORCE |
|
121 | make_default: sub-rmapplugin-make_default-ordered FORCE | |
122 | make_first: sub-rmapplugin-make_first-ordered FORCE |
|
122 | make_first: sub-rmapplugin-make_first-ordered FORCE | |
123 | all: sub-rmapplugin-all-ordered FORCE |
|
123 | all: sub-rmapplugin-all-ordered FORCE | |
124 | clean: sub-rmapplugin-clean-ordered FORCE |
|
124 | clean: sub-rmapplugin-clean-ordered FORCE | |
125 | distclean: sub-rmapplugin-distclean-ordered FORCE |
|
125 | distclean: sub-rmapplugin-distclean-ordered FORCE | |
126 | -$(DEL_FILE) Makefile |
|
126 | -$(DEL_FILE) Makefile | |
127 | install_subtargets: sub-rmapplugin-install_subtargets-ordered FORCE |
|
127 | install_subtargets: sub-rmapplugin-install_subtargets-ordered FORCE | |
128 | uninstall_subtargets: sub-rmapplugin-uninstall_subtargets-ordered FORCE |
|
128 | uninstall_subtargets: sub-rmapplugin-uninstall_subtargets-ordered FORCE | |
129 |
|
129 | |||
130 | sub-rmapplugin-check_ordered: rmapplugin/$(MAKEFILE) |
|
130 | sub-rmapplugin-check_ordered: rmapplugin/$(MAKEFILE) | |
131 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) check |
|
131 | cd rmapplugin/ && $(MAKE) -f $(MAKEFILE) check | |
132 | check: sub-rmapplugin-check_ordered |
|
132 | check: sub-rmapplugin-check_ordered | |
133 |
|
133 | |||
134 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
134 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |
135 |
|
135 | |||
136 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
136 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |
137 | install: install_subtargets FORCE |
|
137 | install: install_subtargets FORCE | |
138 |
|
138 | |||
139 | uninstall: uninstall_subtargets FORCE |
|
139 | uninstall: uninstall_subtargets FORCE | |
140 |
|
140 | |||
141 | FORCE: |
|
141 | FORCE: | |
142 |
|
142 |
@@ -1,264 +1,264 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by Qt Creator 2.4.1, 2012-12- |
|
3 | <!-- Written by Qt Creator 2.4.1, 2012-12-10T08:45:27. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
11 | <valuemap type="QVariantMap"> |
|
11 | <valuemap type="QVariantMap"> | |
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
15 | <value type="QString" key="language">Cpp</value> |
|
15 | <value type="QString" key="language">Cpp</value> | |
16 | <valuemap type="QVariantMap" key="value"> |
|
16 | <valuemap type="QVariantMap" key="value"> | |
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |
18 | </valuemap> |
|
18 | </valuemap> | |
19 | </valuemap> |
|
19 | </valuemap> | |
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
21 | <value type="QString" key="language">QmlJS</value> |
|
21 | <value type="QString" key="language">QmlJS</value> | |
22 | <valuemap type="QVariantMap" key="value"> |
|
22 | <valuemap type="QVariantMap" key="value"> | |
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |
24 | </valuemap> |
|
24 | </valuemap> | |
25 | </valuemap> |
|
25 | </valuemap> | |
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
43 | </valuemap> |
|
43 | </valuemap> | |
44 | </data> |
|
44 | </data> | |
45 | <data> |
|
45 | <data> | |
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
47 | <valuemap type="QVariantMap"/> |
|
47 | <valuemap type="QVariantMap"/> | |
48 | </data> |
|
48 | </data> | |
49 | <data> |
|
49 | <data> | |
50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
50 | <variable>ProjectExplorer.Project.Target.0</variable> | |
51 | <valuemap type="QVariantMap"> |
|
51 | <valuemap type="QVariantMap"> | |
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> | |
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
69 | </valuemap> |
|
69 | </valuemap> | |
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
77 | </valuemap> |
|
77 | </valuemap> | |
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
82 | </valuemap> |
|
82 | </valuemap> | |
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
91 | </valuemap> |
|
91 | </valuemap> | |
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
96 | </valuemap> |
|
96 | </valuemap> | |
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> |
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> | |
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
107 | </valuemap> |
|
107 | </valuemap> | |
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
119 | </valuemap> |
|
119 | </valuemap> | |
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
127 | </valuemap> |
|
127 | </valuemap> | |
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
132 | </valuemap> |
|
132 | </valuemap> | |
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
141 | </valuemap> |
|
141 | </valuemap> | |
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
146 | </valuemap> |
|
146 | </valuemap> | |
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> | |
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> | |
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
157 | </valuemap> |
|
157 | </valuemap> | |
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
165 | </valuemap> |
|
165 | </valuemap> | |
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
170 | </valuemap> |
|
170 | </valuemap> | |
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
202 | <value type="int">0</value> |
|
202 | <value type="int">0</value> | |
203 | <value type="int">1</value> |
|
203 | <value type="int">1</value> | |
204 | <value type="int">2</value> |
|
204 | <value type="int">2</value> | |
205 | <value type="int">3</value> |
|
205 | <value type="int">3</value> | |
206 | <value type="int">4</value> |
|
206 | <value type="int">4</value> | |
207 | <value type="int">5</value> |
|
207 | <value type="int">5</value> | |
208 | <value type="int">6</value> |
|
208 | <value type="int">6</value> | |
209 | <value type="int">7</value> |
|
209 | <value type="int">7</value> | |
210 | <value type="int">8</value> |
|
210 | <value type="int">8</value> | |
211 | <value type="int">9</value> |
|
211 | <value type="int">9</value> | |
212 | <value type="int">10</value> |
|
212 | <value type="int">10</value> | |
213 | <value type="int">11</value> |
|
213 | <value type="int">11</value> | |
214 | <value type="int">12</value> |
|
214 | <value type="int">12</value> | |
215 | <value type="int">13</value> |
|
215 | <value type="int">13</value> | |
216 | <value type="int">14</value> |
|
216 | <value type="int">14</value> | |
217 | </valuelist> |
|
217 | </valuelist> | |
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
219 | <value type="int">0</value> |
|
219 | <value type="int">0</value> | |
220 | <value type="int">1</value> |
|
220 | <value type="int">1</value> | |
221 | <value type="int">2</value> |
|
221 | <value type="int">2</value> | |
222 | <value type="int">3</value> |
|
222 | <value type="int">3</value> | |
223 | <value type="int">4</value> |
|
223 | <value type="int">4</value> | |
224 | <value type="int">5</value> |
|
224 | <value type="int">5</value> | |
225 | <value type="int">6</value> |
|
225 | <value type="int">6</value> | |
226 | <value type="int">7</value> |
|
226 | <value type="int">7</value> | |
227 | <value type="int">8</value> |
|
227 | <value type="int">8</value> | |
228 | <value type="int">9</value> |
|
228 | <value type="int">9</value> | |
229 | <value type="int">10</value> |
|
229 | <value type="int">10</value> | |
230 | <value type="int">11</value> |
|
230 | <value type="int">11</value> | |
231 | <value type="int">12</value> |
|
231 | <value type="int">12</value> | |
232 | <value type="int">13</value> |
|
232 | <value type="int">13</value> | |
233 | <value type="int">14</value> |
|
233 | <value type="int">14</value> | |
234 | </valuelist> |
|
234 | </valuelist> | |
235 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> |
|
235 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> | |
236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> |
|
236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> | |
237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> |
|
237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> | |
238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> |
|
238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> | |
239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> |
|
239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> | |
240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> | |
241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> |
|
241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> | |
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> |
|
243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
247 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
247 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
248 | </valuemap> |
|
248 | </valuemap> | |
249 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
249 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
250 | </valuemap> |
|
250 | </valuemap> | |
251 | </data> |
|
251 | </data> | |
252 | <data> |
|
252 | <data> | |
253 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
253 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
254 | <value type="int">1</value> |
|
254 | <value type="int">1</value> | |
255 | </data> |
|
255 | </data> | |
256 | <data> |
|
256 | <data> | |
257 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
257 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
258 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
258 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
259 | </data> |
|
259 | </data> | |
260 | <data> |
|
260 | <data> | |
261 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
261 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
262 | <value type="int">10</value> |
|
262 | <value type="int">10</value> | |
263 | </data> |
|
263 | </data> | |
264 | </qtcreator> |
|
264 | </qtcreator> |
@@ -1,428 +1,447 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: librmapplugin.so.1.0.0 |
|
2 | # Makefile for building: librmapplugin.so.1.0.0 | |
3 |
# Generated by qmake (2.01a) (Qt 4.8.3) on: Mon Dec |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.3) on: Mon Dec 10 08:08:25 2012 | |
4 | # Project: rmapplugin.pro |
|
4 | # Project: rmapplugin.pro | |
5 | # Template: lib |
|
5 | # Template: lib | |
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
7 | ############################################################################# |
|
7 | ############################################################################# | |
8 |
|
8 | |||
9 | ####### Compiler, tools and options |
|
9 | ####### Compiler, tools and options | |
10 |
|
10 | |||
11 | CC = gcc |
|
11 | CC = gcc | |
12 | CXX = g++ |
|
12 | CXX = g++ | |
13 | DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DUNIXTRANSLATIONPATH -DLPPMON_PLUGINS_INSTALL_PATH="QDir::homePath()+\"/.lppmon/plugins\"" -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED |
|
13 | DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DUNIXTRANSLATIONPATH -DLPPMON_PLUGINS_INSTALL_PATH="QDir::homePath()+\"/.lppmon/plugins\"" -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED | |
14 | CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES) |
|
14 | CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES) | |
15 | CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES) |
|
15 | CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES) | |
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include -I. -I../common_PLE -I../spw_usb_driver_v2.61/inc -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc |
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include -I. -I../common_PLE -I../spw_usb_driver_v2.61/inc -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc | |
17 | LINK = g++ |
|
17 | LINK = g++ | |
18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1 |
|
18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1 | |
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.61/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.61/lib/x86_64/libConfigLibraryUSB.so -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtGui -lQtNetwork -lQtCore -lpthread |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.61/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.61/lib/x86_64/libConfigLibraryUSB.so -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtGui -lQtNetwork -lQtCore -lpthread | |
20 | AR = ar cqs |
|
20 | AR = ar cqs | |
21 | RANLIB = |
|
21 | RANLIB = | |
22 | QMAKE = /usr/bin/qmake-qt4 |
|
22 | QMAKE = /usr/bin/qmake-qt4 | |
23 | TAR = tar -cf |
|
23 | TAR = tar -cf | |
24 | COMPRESS = gzip -9f |
|
24 | COMPRESS = gzip -9f | |
25 | COPY = cp -f |
|
25 | COPY = cp -f | |
26 | SED = sed |
|
26 | SED = sed | |
27 | COPY_FILE = $(COPY) |
|
27 | COPY_FILE = $(COPY) | |
28 | COPY_DIR = $(COPY) -r |
|
28 | COPY_DIR = $(COPY) -r | |
29 | STRIP = |
|
29 | STRIP = | |
30 | INSTALL_FILE = install -m 644 -p |
|
30 | INSTALL_FILE = install -m 644 -p | |
31 | INSTALL_DIR = $(COPY_DIR) |
|
31 | INSTALL_DIR = $(COPY_DIR) | |
32 | INSTALL_PROGRAM = install -m 755 -p |
|
32 | INSTALL_PROGRAM = install -m 755 -p | |
33 | DEL_FILE = rm -f |
|
33 | DEL_FILE = rm -f | |
34 | SYMLINK = ln -f -s |
|
34 | SYMLINK = ln -f -s | |
35 | DEL_DIR = rmdir |
|
35 | DEL_DIR = rmdir | |
36 | MOVE = mv -f |
|
36 | MOVE = mv -f | |
37 | CHK_DIR_EXISTS= test -d |
|
37 | CHK_DIR_EXISTS= test -d | |
38 | MKDIR = mkdir -p |
|
38 | MKDIR = mkdir -p | |
39 |
|
39 | |||
40 | ####### Output directory |
|
40 | ####### Output directory | |
41 |
|
41 | |||
42 | OBJECTS_DIR = obj/ |
|
42 | OBJECTS_DIR = obj/ | |
43 |
|
43 | |||
44 | ####### Files |
|
44 | ####### Files | |
45 |
|
45 | |||
46 | SOURCES = rmapplugin.cpp \ |
|
46 | SOURCES = rmapplugin.cpp \ | |
47 | rmappluginui.cpp \ |
|
47 | rmappluginui.cpp \ | |
48 | rmapoperations.cpp \ |
|
48 | rmapoperations.cpp \ | |
49 | ccsds.cpp \ |
|
49 | ccsds.cpp \ | |
50 | spwpacketreceiver.cpp \ |
|
50 | spwpacketreceiver.cpp \ | |
51 | ../common_PLE/qipdialogbox.cpp \ |
|
51 | ../common_PLE/qipdialogbox.cpp \ | |
52 | ../common_PLE/gresbstatusenquiry.cpp \ |
|
52 | ../common_PLE/gresbstatusenquiry.cpp \ | |
53 | spectralmatricesdmasimulator.cpp \ |
|
53 | spectralmatricesdmasimulator.cpp \ | |
54 | rmappluginpythonwrapper.cpp \ |
|
54 | rmappluginpythonwrapper.cpp \ | |
55 | stardundee.cpp \ |
|
55 | stardundee.cpp \ | |
56 | gresb.cpp \ |
|
56 | gresb.cpp \ | |
|
57 | bridge.cpp \ | |||
57 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \ |
|
58 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \ | |
58 | moc/moc_rmapplugin.cpp \ |
|
59 | moc/moc_rmapplugin.cpp \ | |
59 | moc/moc_spwpacketreceiver.cpp \ |
|
60 | moc/moc_spwpacketreceiver.cpp \ | |
60 | moc/moc_qipdialogbox.cpp \ |
|
61 | moc/moc_qipdialogbox.cpp \ | |
61 | moc/moc_gresbstatusenquiry.cpp \ |
|
62 | moc/moc_gresbstatusenquiry.cpp \ | |
62 | moc/moc_spectralmatricesdmasimulator.cpp \ |
|
63 | moc/moc_spectralmatricesdmasimulator.cpp \ | |
63 | moc/moc_rmappluginpythonwrapper.cpp \ |
|
64 | moc/moc_rmappluginpythonwrapper.cpp \ | |
64 | moc/moc_stardundee.cpp \ |
|
65 | moc/moc_stardundee.cpp \ | |
65 | moc/moc_gresb.cpp \ |
|
66 | moc/moc_gresb.cpp \ | |
|
67 | moc/moc_bridge.cpp \ | |||
66 | moc/moc_genericPySysdriver.cpp \ |
|
68 | moc/moc_genericPySysdriver.cpp \ | |
67 | moc/moc_lppmonplugin.cpp |
|
69 | moc/moc_lppmonplugin.cpp | |
68 | OBJECTS = obj/rmapplugin.o \ |
|
70 | OBJECTS = obj/rmapplugin.o \ | |
69 | obj/rmappluginui.o \ |
|
71 | obj/rmappluginui.o \ | |
70 | obj/rmapoperations.o \ |
|
72 | obj/rmapoperations.o \ | |
71 | obj/ccsds.o \ |
|
73 | obj/ccsds.o \ | |
72 | obj/spwpacketreceiver.o \ |
|
74 | obj/spwpacketreceiver.o \ | |
73 | obj/qipdialogbox.o \ |
|
75 | obj/qipdialogbox.o \ | |
74 | obj/gresbstatusenquiry.o \ |
|
76 | obj/gresbstatusenquiry.o \ | |
75 | obj/spectralmatricesdmasimulator.o \ |
|
77 | obj/spectralmatricesdmasimulator.o \ | |
76 | obj/rmappluginpythonwrapper.o \ |
|
78 | obj/rmappluginpythonwrapper.o \ | |
77 | obj/stardundee.o \ |
|
79 | obj/stardundee.o \ | |
78 | obj/gresb.o \ |
|
80 | obj/gresb.o \ | |
|
81 | obj/bridge.o \ | |||
79 | obj/lppmonplugininterface.o \ |
|
82 | obj/lppmonplugininterface.o \ | |
80 | obj/moc_rmappluginui.o \ |
|
83 | obj/moc_rmappluginui.o \ | |
81 | obj/moc_rmapplugin.o \ |
|
84 | obj/moc_rmapplugin.o \ | |
82 | obj/moc_spwpacketreceiver.o \ |
|
85 | obj/moc_spwpacketreceiver.o \ | |
83 | obj/moc_qipdialogbox.o \ |
|
86 | obj/moc_qipdialogbox.o \ | |
84 | obj/moc_gresbstatusenquiry.o \ |
|
87 | obj/moc_gresbstatusenquiry.o \ | |
85 | obj/moc_spectralmatricesdmasimulator.o \ |
|
88 | obj/moc_spectralmatricesdmasimulator.o \ | |
86 | obj/moc_rmappluginpythonwrapper.o \ |
|
89 | obj/moc_rmappluginpythonwrapper.o \ | |
87 | obj/moc_stardundee.o \ |
|
90 | obj/moc_stardundee.o \ | |
88 | obj/moc_gresb.o \ |
|
91 | obj/moc_gresb.o \ | |
|
92 | obj/moc_bridge.o \ | |||
89 | obj/moc_genericPySysdriver.o \ |
|
93 | obj/moc_genericPySysdriver.o \ | |
90 | obj/moc_lppmonplugin.o |
|
94 | obj/moc_lppmonplugin.o | |
91 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
95 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
92 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
96 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
93 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
97 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
94 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
98 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
95 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
99 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
96 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
100 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
97 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
101 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
98 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ |
|
102 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ | |
99 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
103 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
100 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
104 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
101 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
105 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
102 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
106 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
103 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
107 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
104 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
108 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
105 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ |
|
109 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ | |
106 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ |
|
110 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ | |
107 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
111 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
108 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
112 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
109 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
113 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
110 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
114 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
111 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
115 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
112 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
116 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
113 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
117 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
114 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
118 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
115 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
119 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
116 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
120 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
117 | rmapplugin.pro |
|
121 | rmapplugin.pro | |
118 | QMAKE_TARGET = rmapplugin |
|
122 | QMAKE_TARGET = rmapplugin | |
119 | DESTDIR = bin/ |
|
123 | DESTDIR = bin/ | |
120 | TARGET = librmapplugin.so.1.0.0 |
|
124 | TARGET = librmapplugin.so.1.0.0 | |
121 | TARGETA = bin/librmapplugin.a |
|
125 | TARGETA = bin/librmapplugin.a | |
122 | TARGETD = librmapplugin.so.1.0.0 |
|
126 | TARGETD = librmapplugin.so.1.0.0 | |
123 | TARGET0 = librmapplugin.so |
|
127 | TARGET0 = librmapplugin.so | |
124 | TARGET1 = librmapplugin.so.1 |
|
128 | TARGET1 = librmapplugin.so.1 | |
125 | TARGET2 = librmapplugin.so.1.0 |
|
129 | TARGET2 = librmapplugin.so.1.0 | |
126 |
|
130 | |||
127 | first: all |
|
131 | first: all | |
128 | ####### Implicit rules |
|
132 | ####### Implicit rules | |
129 |
|
133 | |||
130 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
134 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |
131 |
|
135 | |||
132 | .cpp.o: |
|
136 | .cpp.o: | |
133 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
137 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
134 |
|
138 | |||
135 | .cc.o: |
|
139 | .cc.o: | |
136 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
140 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
137 |
|
141 | |||
138 | .cxx.o: |
|
142 | .cxx.o: | |
139 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
143 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
140 |
|
144 | |||
141 | .C.o: |
|
145 | .C.o: | |
142 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
146 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
143 |
|
147 | |||
144 | .c.o: |
|
148 | .c.o: | |
145 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
149 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |
146 |
|
150 | |||
147 | ####### Build rules |
|
151 | ####### Build rules | |
148 |
|
152 | |||
149 | all: Makefile bin/$(TARGET) |
|
153 | all: Makefile bin/$(TARGET) | |
150 |
|
154 | |||
151 | bin/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) |
|
155 | bin/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) | |
152 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ |
|
156 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ | |
153 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) |
|
157 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) | |
154 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) |
|
158 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) | |
155 | -ln -s $(TARGET) $(TARGET0) |
|
159 | -ln -s $(TARGET) $(TARGET0) | |
156 | -ln -s $(TARGET) $(TARGET1) |
|
160 | -ln -s $(TARGET) $(TARGET1) | |
157 | -ln -s $(TARGET) $(TARGET2) |
|
161 | -ln -s $(TARGET) $(TARGET2) | |
158 | -$(DEL_FILE) bin/$(TARGET) |
|
162 | -$(DEL_FILE) bin/$(TARGET) | |
159 | -$(DEL_FILE) bin/$(TARGET0) |
|
163 | -$(DEL_FILE) bin/$(TARGET0) | |
160 | -$(DEL_FILE) bin/$(TARGET1) |
|
164 | -$(DEL_FILE) bin/$(TARGET1) | |
161 | -$(DEL_FILE) bin/$(TARGET2) |
|
165 | -$(DEL_FILE) bin/$(TARGET2) | |
162 | -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) bin/ |
|
166 | -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) bin/ | |
163 |
|
167 | |||
164 |
|
168 | |||
165 |
|
169 | |||
166 | staticlib: $(TARGETA) |
|
170 | staticlib: $(TARGETA) | |
167 |
|
171 | |||
168 | $(TARGETA): $(OBJECTS) $(OBJCOMP) |
|
172 | $(TARGETA): $(OBJECTS) $(OBJCOMP) | |
169 | -$(DEL_FILE) $(TARGETA) |
|
173 | -$(DEL_FILE) $(TARGETA) | |
170 | $(AR) $(TARGETA) $(OBJECTS) |
|
174 | $(AR) $(TARGETA) $(OBJECTS) | |
171 |
|
175 | |||
172 | Makefile: rmapplugin.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
176 | Makefile: rmapplugin.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
173 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
177 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
174 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
178 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
175 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
179 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
176 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
180 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
177 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
181 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
178 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
182 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
179 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ |
|
183 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ | |
180 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
184 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
181 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
185 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
182 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
186 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
183 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
187 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
184 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
188 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
185 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
189 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
186 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ |
|
190 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ | |
187 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ |
|
191 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ | |
188 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
192 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
189 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
193 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
190 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
194 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
191 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
195 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
192 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
196 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
193 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
197 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
194 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
198 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
195 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
199 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
196 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
200 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
197 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
201 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
198 | /usr/lib64/libQtGui.prl \ |
|
202 | /usr/lib64/libQtGui.prl \ | |
199 | /usr/lib64/libQtCore.prl \ |
|
203 | /usr/lib64/libQtCore.prl \ | |
200 | /usr/lib64/libQtNetwork.prl |
|
204 | /usr/lib64/libQtNetwork.prl | |
201 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro |
|
205 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
202 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
206 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
203 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
207 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
204 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
208 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
205 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
209 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
206 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
210 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
207 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
211 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
208 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
212 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
209 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri: |
|
213 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri: | |
210 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
214 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
211 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
215 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
212 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
216 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
213 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
217 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
214 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
218 | /usr/lib64/qt4/mkspecs/features/release.prf: | |
215 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
219 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
216 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf: |
|
220 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf: | |
217 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf: |
|
221 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf: | |
218 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
222 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
219 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
223 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
220 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
224 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
221 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
225 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |
222 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
226 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |
223 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
227 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
224 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
228 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
225 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
229 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
226 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
230 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
227 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
231 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
228 | /usr/lib64/libQtGui.prl: |
|
232 | /usr/lib64/libQtGui.prl: | |
229 | /usr/lib64/libQtCore.prl: |
|
233 | /usr/lib64/libQtCore.prl: | |
230 | /usr/lib64/libQtNetwork.prl: |
|
234 | /usr/lib64/libQtNetwork.prl: | |
231 | qmake: FORCE |
|
235 | qmake: FORCE | |
232 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro |
|
236 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro | |
233 |
|
237 | |||
234 | dist: |
|
238 | dist: | |
235 | @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0 |
|
239 | @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0 | |
236 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h spwpacketreceiver.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h spectralmatricesdmasimulator.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h /usr/include/genericPySysdriver.h /usr/include/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp spwpacketreceiver.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp spectralmatricesdmasimulator.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0 |
|
240 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h spwpacketreceiver.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h spectralmatricesdmasimulator.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h bridge.h /usr/include/genericPySysdriver.h /usr/include/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp spwpacketreceiver.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp spectralmatricesdmasimulator.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp bridge.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0 | |
237 |
|
241 | |||
238 |
|
242 | |||
239 | clean:compiler_clean |
|
243 | clean:compiler_clean | |
240 | -$(DEL_FILE) $(OBJECTS) |
|
244 | -$(DEL_FILE) $(OBJECTS) | |
241 | -$(DEL_FILE) *~ core *.core |
|
245 | -$(DEL_FILE) *~ core *.core | |
242 |
|
246 | |||
243 |
|
247 | |||
244 | ####### Sub-libraries |
|
248 | ####### Sub-libraries | |
245 |
|
249 | |||
246 | distclean: clean |
|
250 | distclean: clean | |
247 | -$(DEL_FILE) bin/$(TARGET) |
|
251 | -$(DEL_FILE) bin/$(TARGET) | |
248 | -$(DEL_FILE) bin/$(TARGET0) bin/$(TARGET1) bin/$(TARGET2) $(TARGETA) |
|
252 | -$(DEL_FILE) bin/$(TARGET0) bin/$(TARGET1) bin/$(TARGET2) $(TARGETA) | |
249 | -$(DEL_FILE) Makefile |
|
253 | -$(DEL_FILE) Makefile | |
250 |
|
254 | |||
251 |
|
255 | |||
252 | check: first |
|
256 | check: first | |
253 |
|
257 | |||
254 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
258 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |
255 |
|
259 | |||
256 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
260 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |
257 |
|
261 | |||
258 | compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_spwpacketreceiver.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_spectralmatricesdmasimulator.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp |
|
262 | compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_spwpacketreceiver.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_spectralmatricesdmasimulator.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_bridge.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp | |
259 | compiler_moc_header_clean: |
|
263 | compiler_moc_header_clean: | |
260 | -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_spwpacketreceiver.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_spectralmatricesdmasimulator.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp |
|
264 | -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_spwpacketreceiver.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_spectralmatricesdmasimulator.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_bridge.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp | |
261 | moc/moc_rmappluginui.cpp: rmapoperations.h \ |
|
265 | moc/moc_rmappluginui.cpp: rmapoperations.h \ | |
262 | spectralmatricesdmasimulator.h \ |
|
266 | spectralmatricesdmasimulator.h \ | |
263 | stardundee.h \ |
|
267 | stardundee.h \ | |
|
268 | gresb.h \ | |||
264 | rmappluginui.h |
|
269 | rmappluginui.h | |
265 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp |
|
270 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp | |
266 |
|
271 | |||
267 | moc/moc_rmapplugin.cpp: rmappluginui.h \ |
|
272 | moc/moc_rmapplugin.cpp: rmappluginui.h \ | |
268 | rmapoperations.h \ |
|
273 | rmapoperations.h \ | |
269 | spectralmatricesdmasimulator.h \ |
|
274 | spectralmatricesdmasimulator.h \ | |
270 | stardundee.h \ |
|
275 | stardundee.h \ | |
|
276 | gresb.h \ | |||
271 | ccsds.h \ |
|
277 | ccsds.h \ | |
272 | spwpacketreceiver.h \ |
|
278 | spwpacketreceiver.h \ | |
273 | rmapplugin.h |
|
279 | rmapplugin.h | |
274 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp |
|
280 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp | |
275 |
|
281 | |||
276 | moc/moc_spwpacketreceiver.cpp: spwpacketreceiver.h |
|
282 | moc/moc_spwpacketreceiver.cpp: spwpacketreceiver.h | |
277 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) spwpacketreceiver.h -o moc/moc_spwpacketreceiver.cpp |
|
283 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) spwpacketreceiver.h -o moc/moc_spwpacketreceiver.cpp | |
278 |
|
284 | |||
279 | moc/moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h |
|
285 | moc/moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h | |
280 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc/moc_qipdialogbox.cpp |
|
286 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc/moc_qipdialogbox.cpp | |
281 |
|
287 | |||
282 | moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h |
|
288 | moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h | |
283 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp |
|
289 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp | |
284 |
|
290 | |||
285 | moc/moc_spectralmatricesdmasimulator.cpp: spectralmatricesdmasimulator.h |
|
291 | moc/moc_spectralmatricesdmasimulator.cpp: spectralmatricesdmasimulator.h | |
286 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) spectralmatricesdmasimulator.h -o moc/moc_spectralmatricesdmasimulator.cpp |
|
292 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) spectralmatricesdmasimulator.h -o moc/moc_spectralmatricesdmasimulator.cpp | |
287 |
|
293 | |||
288 | moc/moc_rmappluginpythonwrapper.cpp: rmappluginpythonwrapper.h |
|
294 | moc/moc_rmappluginpythonwrapper.cpp: rmappluginpythonwrapper.h | |
289 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginpythonwrapper.h -o moc/moc_rmappluginpythonwrapper.cpp |
|
295 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginpythonwrapper.h -o moc/moc_rmappluginpythonwrapper.cpp | |
290 |
|
296 | |||
291 |
moc/moc_stardundee.cpp: |
|
297 | moc/moc_stardundee.cpp: rmapoperations.h \ | |
|
298 | stardundee.h | |||
292 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) stardundee.h -o moc/moc_stardundee.cpp |
|
299 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) stardundee.h -o moc/moc_stardundee.cpp | |
293 |
|
300 | |||
294 | moc/moc_gresb.cpp: gresb.h |
|
301 | moc/moc_gresb.cpp: gresb.h | |
295 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) gresb.h -o moc/moc_gresb.cpp |
|
302 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) gresb.h -o moc/moc_gresb.cpp | |
296 |
|
303 | |||
|
304 | moc/moc_bridge.cpp: bridge.h | |||
|
305 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) bridge.h -o moc/moc_bridge.cpp | |||
|
306 | ||||
297 | moc/moc_genericPySysdriver.cpp: /usr/include/genericPySysdriver.h |
|
307 | moc/moc_genericPySysdriver.cpp: /usr/include/genericPySysdriver.h | |
298 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp |
|
308 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp | |
299 |
|
309 | |||
300 | moc/moc_lppmonplugin.cpp: /usr/include/lppmonplugin.h |
|
310 | moc/moc_lppmonplugin.cpp: /usr/include/lppmonplugin.h | |
301 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmonplugin.h -o moc/moc_lppmonplugin.cpp |
|
311 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmonplugin.h -o moc/moc_lppmonplugin.cpp | |
302 |
|
312 | |||
303 | compiler_rcc_make_all: |
|
313 | compiler_rcc_make_all: | |
304 | compiler_rcc_clean: |
|
314 | compiler_rcc_clean: | |
305 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
315 | compiler_image_collection_make_all: qmake_image_collection.cpp | |
306 | compiler_image_collection_clean: |
|
316 | compiler_image_collection_clean: | |
307 | -$(DEL_FILE) qmake_image_collection.cpp |
|
317 | -$(DEL_FILE) qmake_image_collection.cpp | |
308 | compiler_moc_source_make_all: |
|
318 | compiler_moc_source_make_all: | |
309 | compiler_moc_source_clean: |
|
319 | compiler_moc_source_clean: | |
310 | compiler_uic_make_all: |
|
320 | compiler_uic_make_all: | |
311 | compiler_uic_clean: |
|
321 | compiler_uic_clean: | |
312 | compiler_yacc_decl_make_all: |
|
322 | compiler_yacc_decl_make_all: | |
313 | compiler_yacc_decl_clean: |
|
323 | compiler_yacc_decl_clean: | |
314 | compiler_yacc_impl_make_all: |
|
324 | compiler_yacc_impl_make_all: | |
315 | compiler_yacc_impl_clean: |
|
325 | compiler_yacc_impl_clean: | |
316 | compiler_lex_make_all: |
|
326 | compiler_lex_make_all: | |
317 | compiler_lex_clean: |
|
327 | compiler_lex_clean: | |
318 | compiler_clean: compiler_moc_header_clean |
|
328 | compiler_clean: compiler_moc_header_clean | |
319 |
|
329 | |||
320 | ####### Compile |
|
330 | ####### Compile | |
321 |
|
331 | |||
322 | obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \ |
|
332 | obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \ | |
323 | rmappluginui.h \ |
|
333 | rmappluginui.h \ | |
324 | rmapoperations.h \ |
|
334 | rmapoperations.h \ | |
325 | spectralmatricesdmasimulator.h \ |
|
335 | spectralmatricesdmasimulator.h \ | |
326 | stardundee.h \ |
|
336 | stardundee.h \ | |
|
337 | gresb.h \ | |||
327 | ccsds.h \ |
|
338 | ccsds.h \ | |
328 | spwpacketreceiver.h \ |
|
339 | spwpacketreceiver.h \ | |
329 | rmappluginpythonwrapper.h |
|
340 | rmappluginpythonwrapper.h | |
330 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp |
|
341 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp | |
331 |
|
342 | |||
332 | obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \ |
|
343 | obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \ | |
333 | rmappluginui.h \ |
|
344 | rmappluginui.h \ | |
334 | rmapoperations.h \ |
|
345 | rmapoperations.h \ | |
335 | spectralmatricesdmasimulator.h \ |
|
346 | spectralmatricesdmasimulator.h \ | |
336 | stardundee.h \ |
|
347 | stardundee.h \ | |
|
348 | gresb.h \ | |||
337 | ccsds.h \ |
|
349 | ccsds.h \ | |
338 | spwpacketreceiver.h |
|
350 | spwpacketreceiver.h | |
339 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp |
|
351 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp | |
340 |
|
352 | |||
341 | obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h |
|
353 | obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h | |
342 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp |
|
354 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp | |
343 |
|
355 | |||
344 | obj/ccsds.o: ccsds.cpp ccsds.h |
|
356 | obj/ccsds.o: ccsds.cpp ccsds.h | |
345 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp |
|
357 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp | |
346 |
|
358 | |||
347 | obj/spwpacketreceiver.o: spwpacketreceiver.cpp spwpacketreceiver.h |
|
359 | obj/spwpacketreceiver.o: spwpacketreceiver.cpp spwpacketreceiver.h \ | |
|
360 | rmapoperations.h | |||
348 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spwpacketreceiver.o spwpacketreceiver.cpp |
|
361 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spwpacketreceiver.o spwpacketreceiver.cpp | |
349 |
|
362 | |||
350 | obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h |
|
363 | obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h | |
351 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp |
|
364 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp | |
352 |
|
365 | |||
353 | obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h |
|
366 | obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h | |
354 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp |
|
367 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp | |
355 |
|
368 | |||
356 | obj/spectralmatricesdmasimulator.o: spectralmatricesdmasimulator.cpp spectralmatricesdmasimulator.h |
|
369 | obj/spectralmatricesdmasimulator.o: spectralmatricesdmasimulator.cpp spectralmatricesdmasimulator.h | |
357 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spectralmatricesdmasimulator.o spectralmatricesdmasimulator.cpp |
|
370 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spectralmatricesdmasimulator.o spectralmatricesdmasimulator.cpp | |
358 |
|
371 | |||
359 | obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h |
|
372 | obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h | |
360 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp |
|
373 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp | |
361 |
|
374 | |||
362 | obj/stardundee.o: stardundee.cpp stardundee.h \ |
|
375 | obj/stardundee.o: stardundee.cpp stardundee.h \ | |
363 | rmapoperations.h |
|
376 | rmapoperations.h | |
364 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp |
|
377 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp | |
365 |
|
378 | |||
366 | obj/gresb.o: gresb.cpp gresb.h |
|
379 | obj/gresb.o: gresb.cpp gresb.h | |
367 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp |
|
380 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp | |
368 |
|
381 | |||
|
382 | obj/bridge.o: bridge.cpp bridge.h | |||
|
383 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/bridge.o bridge.cpp | |||
|
384 | ||||
369 | obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \ |
|
385 | obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \ | |
370 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h |
|
386 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h | |
371 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp |
|
387 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp | |
372 |
|
388 | |||
373 | obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp |
|
389 | obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp | |
374 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp |
|
390 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp | |
375 |
|
391 | |||
376 | obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp |
|
392 | obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp | |
377 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp |
|
393 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp | |
378 |
|
394 | |||
379 | obj/moc_spwpacketreceiver.o: moc/moc_spwpacketreceiver.cpp |
|
395 | obj/moc_spwpacketreceiver.o: moc/moc_spwpacketreceiver.cpp | |
380 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spwpacketreceiver.o moc/moc_spwpacketreceiver.cpp |
|
396 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spwpacketreceiver.o moc/moc_spwpacketreceiver.cpp | |
381 |
|
397 | |||
382 | obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp |
|
398 | obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp | |
383 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp |
|
399 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp | |
384 |
|
400 | |||
385 | obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp |
|
401 | obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp | |
386 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp |
|
402 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp | |
387 |
|
403 | |||
388 | obj/moc_spectralmatricesdmasimulator.o: moc/moc_spectralmatricesdmasimulator.cpp |
|
404 | obj/moc_spectralmatricesdmasimulator.o: moc/moc_spectralmatricesdmasimulator.cpp | |
389 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spectralmatricesdmasimulator.o moc/moc_spectralmatricesdmasimulator.cpp |
|
405 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spectralmatricesdmasimulator.o moc/moc_spectralmatricesdmasimulator.cpp | |
390 |
|
406 | |||
391 | obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp |
|
407 | obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp | |
392 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp |
|
408 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp | |
393 |
|
409 | |||
394 | obj/moc_stardundee.o: moc/moc_stardundee.cpp |
|
410 | obj/moc_stardundee.o: moc/moc_stardundee.cpp | |
395 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp |
|
411 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp | |
396 |
|
412 | |||
397 | obj/moc_gresb.o: moc/moc_gresb.cpp |
|
413 | obj/moc_gresb.o: moc/moc_gresb.cpp | |
398 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp |
|
414 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp | |
399 |
|
415 | |||
|
416 | obj/moc_bridge.o: moc/moc_bridge.cpp | |||
|
417 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_bridge.o moc/moc_bridge.cpp | |||
|
418 | ||||
400 | obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp |
|
419 | obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp | |
401 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp |
|
420 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp | |
402 |
|
421 | |||
403 | obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp |
|
422 | obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp | |
404 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp |
|
423 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp | |
405 |
|
424 | |||
406 | ####### Install |
|
425 | ####### Install | |
407 |
|
426 | |||
408 | install_target: first FORCE |
|
427 | install_target: first FORCE | |
409 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ |
|
428 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
410 | -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" |
|
429 | -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
411 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" |
|
430 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
412 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" |
|
431 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
413 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" |
|
432 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
414 |
|
433 | |||
415 | uninstall_target: FORCE |
|
434 | uninstall_target: FORCE | |
416 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" |
|
435 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
417 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" |
|
436 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
418 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" |
|
437 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
419 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" |
|
438 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
420 | -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ |
|
439 | -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
421 |
|
440 | |||
422 |
|
441 | |||
423 | install: install_target FORCE |
|
442 | install: install_target FORCE | |
424 |
|
443 | |||
425 | uninstall: uninstall_target FORCE |
|
444 | uninstall: uninstall_target FORCE | |
426 |
|
445 | |||
427 | FORCE: |
|
446 | FORCE: | |
428 |
|
447 |
@@ -1,48 +1,215 | |||||
1 | #include "gresb.h" |
|
1 | #include "gresb.h" | |
|
2 | #include <QTime> | |||
|
3 | #include <QHostAddress> | |||
2 |
|
4 | |||
3 | gresb::gresb(QWidget *parent) : |
|
5 | gresb::gresb(QWidget *parent) : | |
4 | QWidget(parent) |
|
6 | QWidget(parent) | |
5 | { |
|
7 | { | |
|
8 | RMAPSend_SOCKET = new QTcpSocket; | |||
|
9 | RMAPReceive_SOCKET = new QTcpSocket; | |||
|
10 | GRESBStatusQuery_SOCKET = new QTcpSocket; | |||
|
11 | spwPacketReceiverOBJECT = new spwpacketreceiver; | |||
|
12 | spwPacketReceiverOBJECT->gresbReceptionSocket = RMAPReceive_SOCKET; | |||
|
13 | ||||
6 | //*** QLABEL ***// |
|
14 | //*** QLABEL ***// | |
7 | gresbBridgeIPLabel = new QLabel(tr("GRESB Bridge IP: ")); |
|
15 | gresbBridgeIPLabel = new QLabel(tr("GRESB Bridge IP: ")); | |
8 | gresbVirtualLinkLabel = new QLabel(tr("GRESB Virtual Link: ")); |
|
16 | gresbVirtualLinkLabel = new QLabel(tr("GRESB Virtual Link: ")); | |
9 | spwLinkLabel = new QLabel(tr("GRESB SPW Link: ")); |
|
17 | spwLinkLabel = new QLabel(tr("GRESB SPW Link: ")); | |
10 | rmapSourceLogicalAddressLabel = new QLabel(tr("RMAP Source Logical Address: ")); |
|
18 | rmapSourceLogicalAddressLabel = new QLabel(tr("RMAP Source Logical Address: ")); | |
11 | rmapSendStateLabel = new QLabel(tr("RMAP Send Socket State: waiting for connection")); |
|
19 | rmapSendStateLabel = new QLabel(tr("RMAP Send Socket State: waiting for connection")); | |
12 | rmapReceiveStateLabel = new QLabel(tr("RMAP Receive Socket State: waiting for connection")); |
|
20 | rmapReceiveStateLabel = new QLabel(tr("RMAP Receive Socket State: waiting for connection")); | |
13 | gresbStatusQueryLabel = new QLabel(tr("GRESB status query socket (port 3010): waiting for connection")); |
|
21 | gresbStatusQueryLabel = new QLabel(tr("GRESB status query socket (port 3010): waiting for connection")); | |
|
22 | gresbStatusQueryDialogLabel = new QLabel(tr("sockets opened but SpaceWire link not running")); | |||
14 |
|
23 | |||
15 | //*** SPINBOX ***// |
|
24 | //*** SPINBOX ***// | |
16 | gresbVirtualLinkSpinBox = new QSpinBox; |
|
25 | gresbVirtualLinkSpinBox = new QSpinBox; | |
17 | rmapSourceLogicalAddressSpinBox = new QSpinBox; |
|
26 | rmapSourceLogicalAddressSpinBox = new QSpinBox; | |
18 | spwLinkSpinBox = new QSpinBox;; |
|
27 | spwLinkSpinBox = new QSpinBox;; | |
19 | gresbVirtualLinkSpinBox->setRange(0, 4); |
|
28 | gresbVirtualLinkSpinBox->setRange(0, 4); | |
20 | gresbVirtualLinkSpinBox->setValue(1); |
|
29 | gresbVirtualLinkSpinBox->setValue(1); | |
21 | rmapSourceLogicalAddressSpinBox->setRange(0, 255); |
|
30 | rmapSourceLogicalAddressSpinBox->setRange(0, 255); | |
22 | rmapSourceLogicalAddressSpinBox->setValue(33); |
|
31 | rmapSourceLogicalAddressSpinBox->setValue(33); | |
23 | spwLinkSpinBox->setRange(0, 2); |
|
32 | spwLinkSpinBox->setRange(0, 2); | |
24 | spwLinkSpinBox->setValue(0); |
|
33 | spwLinkSpinBox->setValue(0); | |
25 |
|
34 | |||
|
35 | //*** QPUSHBUTTON ***// | |||
|
36 | gresbStatusQueryRetryButton = new QPushButton(tr("Retry")); | |||
|
37 | gresbStatusQueryAbortButton = new QPushButton(tr("Abort")); | |||
|
38 | ||||
26 | //*** LAYOUT ***// |
|
39 | //*** LAYOUT ***// | |
27 | connectionLayout = new QGridLayout; |
|
40 | connectionLayout = new QGridLayout; | |
28 |
|
41 | |||
29 | //*** MISC ***// |
|
42 | //*** MISC ***// | |
|
43 | gresbStatusQueryDialog = new QDialog; | |||
30 | gresbBridgeIPDialogBox = new QIPDialogBox; |
|
44 | gresbBridgeIPDialogBox = new QIPDialogBox; | |
|
45 | spwLinkStatusEnquiry = new gresbStatusEnquiry; | |||
31 |
|
46 | |||
32 | connectionLayout->addWidget(gresbBridgeIPLabel, 0, 0, 0); |
|
47 | connectionLayout->addWidget(gresbBridgeIPLabel, 0, 0, 0); | |
33 | connectionLayout->addWidget(gresbBridgeIPDialogBox, 0, 1, 0); |
|
48 | connectionLayout->addWidget(gresbBridgeIPDialogBox, 0, 1, 0); | |
34 | connectionLayout->addWidget(gresbVirtualLinkLabel, 1, 0, 0); |
|
49 | connectionLayout->addWidget(gresbVirtualLinkLabel, 1, 0, 0); | |
35 | connectionLayout->addWidget(gresbVirtualLinkSpinBox, 1, 1, 0); |
|
50 | connectionLayout->addWidget(gresbVirtualLinkSpinBox, 1, 1, 0); | |
36 | connectionLayout->addWidget(spwLinkLabel, 2, 0, 0); |
|
51 | connectionLayout->addWidget(spwLinkLabel, 2, 0, 0); | |
37 | connectionLayout->addWidget(spwLinkSpinBox, 2, 1, 0); |
|
52 | connectionLayout->addWidget(spwLinkSpinBox, 2, 1, 0); | |
38 | connectionLayout->addWidget(rmapSourceLogicalAddressLabel, 3, 0, 0); |
|
53 | connectionLayout->addWidget(rmapSourceLogicalAddressLabel, 3, 0, 0); | |
39 | connectionLayout->addWidget(rmapSourceLogicalAddressSpinBox, 3, 1, 0); |
|
54 | connectionLayout->addWidget(rmapSourceLogicalAddressSpinBox, 3, 1, 0); | |
40 | connectionLayout->addWidget(rmapSendStateLabel, 4, 0, 1, 2); |
|
55 | connectionLayout->addWidget(rmapSendStateLabel, 4, 0, 1, 2); | |
41 | connectionLayout->addWidget(rmapReceiveStateLabel, 5, 0, 1, 2); |
|
56 | connectionLayout->addWidget(rmapReceiveStateLabel, 5, 0, 1, 2); | |
42 | connectionLayout->addWidget(gresbStatusQueryLabel, 6, 0, 1, 2); |
|
57 | connectionLayout->addWidget(gresbStatusQueryLabel, 6, 0, 1, 2); | |
43 |
|
58 | |||
44 | connectionLayout->setRowStretch(7, 1); |
|
59 | connectionLayout->setRowStretch(7, 1); | |
45 | connectionLayout->setColumnStretch(2, 1); |
|
60 | connectionLayout->setColumnStretch(2, 1); | |
46 |
|
61 | |||
|
62 | // GRESB STATUS QUERY DIALOG | |||
|
63 | gresbStatusQueryDialogLayout = new QGridLayout; | |||
|
64 | gresbStatusQueryDialogLayout->addWidget(gresbStatusQueryDialogLabel, 0, 0, 1, 2); | |||
|
65 | gresbStatusQueryDialogLayout->addWidget(gresbStatusQueryRetryButton, 1, 0, 0); | |||
|
66 | gresbStatusQueryDialogLayout->addWidget(gresbStatusQueryAbortButton, 1, 1, 0); | |||
|
67 | gresbStatusQueryDialog->setLayout(gresbStatusQueryDialogLayout); | |||
|
68 | ||||
47 | this->setLayout(connectionLayout); |
|
69 | this->setLayout(connectionLayout); | |
|
70 | ||||
|
71 | connect(gresbStatusQueryAbortButton, SIGNAL(clicked()), gresbStatusQueryDialog, SLOT(reject())); | |||
48 | } |
|
72 | } | |
|
73 | ||||
|
74 | void gresb::Open() // SLOT | |||
|
75 | { | |||
|
76 | bool spwRunning = true; | |||
|
77 | RMAPSend_SOCKET->connectToHost( QHostAddress(gresbBridgeIPDialogBox->getGRESBIP()), | |||
|
78 | 3000 + gresbVirtualLinkSpinBox->value()*2, | |||
|
79 | QIODevice::WriteOnly); | |||
|
80 | RMAPReceive_SOCKET->connectToHost( QHostAddress(gresbBridgeIPDialogBox->getGRESBIP()), | |||
|
81 | 3000 + gresbVirtualLinkSpinBox->value()*2+1, | |||
|
82 | QIODevice::ReadOnly); | |||
|
83 | GRESBStatusQuery_SOCKET->connectToHost( QHostAddress(gresbBridgeIPDialogBox->getGRESBIP()), | |||
|
84 | 3010, | |||
|
85 | QIODevice::ReadWrite); | |||
|
86 | GRESBStatusQuery_SOCKET->waitForConnected(10000); | |||
|
87 | RMAPReceive_SOCKET->readAll(); // read all remaining data from the reception socket | |||
|
88 | // initialize SPW packet semaphores | |||
|
89 | while (spwPacketReceiverOBJECT->rmapPacketSEMAPHORE->available()!=0) spwPacketReceiverOBJECT->rmapPacketSEMAPHORE->acquire(); | |||
|
90 | while (spwPacketReceiverOBJECT->ccsdsPacketSEMAPHORE->available()!=0) spwPacketReceiverOBJECT->ccsdsPacketSEMAPHORE->acquire(); | |||
|
91 | if (GRESBStatusQueryRequest(LinkStatus, spwLinkSpinBox->value()) != 0) | |||
|
92 | { | |||
|
93 | spwRunning = gresbStatusQueryDialog->exec(); | |||
|
94 | } | |||
|
95 | if (spwRunning == false) this->Close(); | |||
|
96 | else | |||
|
97 | { | |||
|
98 | emit appendToLog(QString("SpaceWire running on virtual link ")+ QString::number(spwLinkSpinBox->value())); | |||
|
99 | emit isOpen(true); | |||
|
100 | } | |||
|
101 | } | |||
|
102 | ||||
|
103 | void gresb::Close() // SLOT | |||
|
104 | { | |||
|
105 | RMAPSend_SOCKET->disconnectFromHost(); | |||
|
106 | RMAPReceive_SOCKET->disconnectFromHost(); | |||
|
107 | GRESBStatusQuery_SOCKET->disconnectFromHost(); | |||
|
108 | emit isOpen(false); | |||
|
109 | } | |||
|
110 | ||||
|
111 | int gresb::GRESBStatusQuery() // SLOT | |||
|
112 | { | |||
|
113 | GRESBStatusQueryRequest(LinkStatus, 0); | |||
|
114 | GRESBStatusQueryRequest(LinkStatus, 1); | |||
|
115 | GRESBStatusQueryRequest(LinkStatus, 2); | |||
|
116 | GRESBStatusQueryRequest(LinkStatistics, 0); | |||
|
117 | GRESBStatusQueryRequest(LinkStatistics, 1); | |||
|
118 | GRESBStatusQueryRequest(LinkStatistics, 2); | |||
|
119 | return 0; | |||
|
120 | } | |||
|
121 | ||||
|
122 | int gresb::GRESBStatusQueryRequest(GresbStatusQueryOption option, char link) | |||
|
123 | { | |||
|
124 | gresb_status_query_t statusQueryCommand; | |||
|
125 | gresb_link_status_reply_t linkStatusReply; | |||
|
126 | gresb_link_statistics_reply_t linkStatisticsReply; | |||
|
127 | QTime statusQueryTimeout; | |||
|
128 | QString console_message; | |||
|
129 | ||||
|
130 | statusQueryCommand.protocolIdentifier = (char) 0x02; | |||
|
131 | statusQueryCommand.reserved1 = (char) 0x00; | |||
|
132 | statusQueryCommand.reserved0 = (char) 0x00; | |||
|
133 | statusQueryCommand.option = (char) option; | |||
|
134 | statusQueryCommand.value3 = (char) 0x00; | |||
|
135 | statusQueryCommand.value2 = (char) 0x00; | |||
|
136 | statusQueryCommand.value1 = (char) 0x00; | |||
|
137 | statusQueryCommand.value0 = (char) link; | |||
|
138 | ||||
|
139 | GRESBStatusQuery_SOCKET->write((char*) ((void*) &statusQueryCommand), sizeof(statusQueryCommand)); | |||
|
140 | GRESBStatusQuery_SOCKET->flush(); | |||
|
141 | GRESBStatusQuery_SOCKET->waitForBytesWritten(1000); | |||
|
142 | ||||
|
143 | statusQueryTimeout.start(); | |||
|
144 | while(GRESBStatusQuery_SOCKET->bytesToWrite() > 0) | |||
|
145 | { | |||
|
146 | GRESBStatusQuery_SOCKET->waitForBytesWritten(100); | |||
|
147 | if(statusQueryTimeout.elapsed()>1000) | |||
|
148 | { | |||
|
149 | emit appendToLog("WARNING === in function GRESBStatusQueryRequest of rmapplugin *** sending StatusQueryCommand timeout"); | |||
|
150 | return 1; | |||
|
151 | } | |||
|
152 | } | |||
|
153 | ||||
|
154 | switch (option) | |||
|
155 | { | |||
|
156 | case LinkStatus: | |||
|
157 | { | |||
|
158 | statusQueryTimeout.start(); | |||
|
159 | while(GRESBStatusQuery_SOCKET->bytesAvailable() < (int) sizeof(linkStatusReply)) | |||
|
160 | { | |||
|
161 | GRESBStatusQuery_SOCKET->waitForReadyRead(100); | |||
|
162 | if(statusQueryTimeout.elapsed()>1000) | |||
|
163 | { | |||
|
164 | console_message.sprintf("GRESBStatusQueryRequest / LinkStatus => error timeout bytesAvailable()\n"); | |||
|
165 | emit appendToLog(console_message); | |||
|
166 | return 1; | |||
|
167 | } | |||
|
168 | } | |||
|
169 | GRESBStatusQuery_SOCKET->read((char*) ((void*) &linkStatusReply), (int) sizeof(linkStatusReply)); | |||
|
170 | console_message.sprintf("%x", linkStatusReply.byte0); | |||
|
171 | spwLinkStatusEnquiry->statusQueryTable->item(0, link)->setText(console_message); | |||
|
172 | console_message.sprintf("%d", linkStatusReply.byte1); | |||
|
173 | spwLinkStatusEnquiry->statusQueryTable->item(1, link)->setText(console_message); | |||
|
174 | if (linkStatusReply.byte0 == 0) return 1; | |||
|
175 | break; | |||
|
176 | } | |||
|
177 | case LinkStatistics: | |||
|
178 | { | |||
|
179 | statusQueryTimeout.start(); | |||
|
180 | while(GRESBStatusQuery_SOCKET->bytesAvailable() < (int) sizeof(linkStatisticsReply)) | |||
|
181 | { | |||
|
182 | GRESBStatusQuery_SOCKET->waitForReadyRead(100); | |||
|
183 | if(statusQueryTimeout.elapsed()>1000) | |||
|
184 | { | |||
|
185 | console_message.sprintf("GRESBStatusQueryRequest / LinkStatistics => error timeout bytesAvailable()\n"); | |||
|
186 | emit appendToLog(console_message); | |||
|
187 | return 1; | |||
|
188 | } | |||
|
189 | } | |||
|
190 | GRESBStatusQuery_SOCKET->read((char*) ((void*) &linkStatisticsReply), sizeof(linkStatisticsReply)); | |||
|
191 | /*console_message.sprintf("%d", charTab_TO_int(linkStatisticsReply.sizeOfDataTransmitted)); | |||
|
192 | UI->spwLinkStatusEnquiry->statusQueryTable->item(9, link)->setText(console_message); | |||
|
193 | console_message.sprintf("%d", charTab_TO_int(linkStatisticsReply.numberOfPacketsTransmitted)); | |||
|
194 | UI->spwLinkStatusEnquiry->statusQueryTable->item(8, link)->setText(console_message); | |||
|
195 | console_message.sprintf("%d", charTab_TO_int(linkStatisticsReply.numberOfTruncatedPacketsReceived)); | |||
|
196 | UI->spwLinkStatusEnquiry->statusQueryTable->item(6, link)->setText(console_message); | |||
|
197 | console_message.sprintf("%d", charTab_TO_int(linkStatisticsReply.numberOfPacketsWithEEPReceived)); | |||
|
198 | UI->spwLinkStatusEnquiry->statusQueryTable->item(5, link)->setText(console_message); | |||
|
199 | console_message.sprintf("%d", charTab_TO_int(linkStatisticsReply.sizeOfDataReceived)); | |||
|
200 | UI->spwLinkStatusEnquiry->statusQueryTable->item(4, link)->setText(console_message); | |||
|
201 | console_message.sprintf("%d", charTab_TO_int(linkStatisticsReply.numberOfPacketsReceived)); | |||
|
202 | UI->spwLinkStatusEnquiry->statusQueryTable->item(3, link)->setText(console_message);*/ | |||
|
203 | break; | |||
|
204 | } | |||
|
205 | case NodeAddressStatistics: | |||
|
206 | { | |||
|
207 | break; | |||
|
208 | } | |||
|
209 | case GetRoute: | |||
|
210 | { | |||
|
211 | break; | |||
|
212 | } | |||
|
213 | } | |||
|
214 | return 0; | |||
|
215 | } |
@@ -1,40 +1,86 | |||||
1 | #ifndef GRESB_H |
|
1 | #ifndef GRESB_H | |
2 | #define GRESB_H |
|
2 | #define GRESB_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include <QLabel> |
|
5 | #include <QLabel> | |
6 | #include <QPushButton> |
|
6 | #include <QPushButton> | |
7 | #include <QSpinBox> |
|
7 | #include <QSpinBox> | |
8 | #include <QGridLayout> |
|
8 | #include <QGridLayout> | |
|
9 | #include <QTcpSocket> | |||
|
10 | #include <QDialog> | |||
|
11 | ||||
|
12 | #include "gresbstatusenquiry.h" | |||
|
13 | #include "spwpacketreceiver.h" | |||
|
14 | #include "rmapoperations.h" | |||
9 | #include "qipdialogbox.h" |
|
15 | #include "qipdialogbox.h" | |
10 |
|
16 | |||
11 | class gresb : public QWidget |
|
17 | class gresb : public QWidget | |
12 | { |
|
18 | { | |
13 | Q_OBJECT |
|
19 | Q_OBJECT | |
14 | public: |
|
20 | public: | |
15 | explicit gresb(QWidget *parent = 0); |
|
21 | explicit gresb(QWidget *parent = 0); | |
|
22 | ~gresb(); | |||
|
23 | unsigned int Write(unsigned int *Value,unsigned int count,unsigned int address=0); | |||
|
24 | unsigned int Read(unsigned int *Value,unsigned int count,unsigned int address=0); | |||
|
25 | unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); | |||
|
26 | unsigned int getLinkStatus(unsigned char link); | |||
16 |
|
27 | |||
17 | signals: |
|
28 | signals: | |
18 |
|
29 | void sendMessage(QString message); | ||
|
30 | void isOpen(bool); | |||
|
31 | void RMAP_write_reply_setText(QString); | |||
|
32 | void appendToLog(QString); | |||
|
33 | void ccsdsPacketAvailable(unsigned char*, unsigned int); | |||
|
34 | ||||
19 | public slots: |
|
35 | public slots: | |
|
36 | void Open(); | |||
|
37 | void Close(); | |||
|
38 | int receiveSPWPacket(unsigned char requestID); | |||
|
39 | void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;} | |||
|
40 | void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;} | |||
|
41 | void sourceHasChanged(int target) {rmapSourceLogicalAddress = (unsigned char) target;} | |||
|
42 | ||||
|
43 | private slots: | |||
|
44 | int GRESBStatusQuery(); | |||
20 |
|
45 | |||
21 | private: |
|
46 | private: | |
|
47 | int GRESBStatusQueryRequest(GresbStatusQueryOption option, char link); | |||
|
48 | ||||
|
49 | unsigned char rmapTargetLogicalAddress ; | |||
|
50 | unsigned char rmapSourceLogicalAddress ; | |||
|
51 | ||||
|
52 | RMAP_command_codes commandCode; | |||
|
53 | ||||
|
54 | QPushButton *gresbStatusQueryRetryButton; | |||
|
55 | QPushButton *gresbStatusQueryAbortButton; | |||
|
56 | ||||
22 | QLabel *gresbBridgeIPLabel; |
|
57 | QLabel *gresbBridgeIPLabel; | |
23 | QLabel *gresbVirtualLinkLabel; |
|
58 | QLabel *gresbVirtualLinkLabel; | |
24 | QLabel *spwLinkLabel; |
|
59 | QLabel *spwLinkLabel; | |
25 | QLabel *rmapSourceLogicalAddressLabel; |
|
60 | QLabel *rmapSourceLogicalAddressLabel; | |
26 | QLabel *rmapSendStateLabel; |
|
61 | QLabel *rmapSendStateLabel; | |
27 | QLabel *rmapReceiveStateLabel; |
|
62 | QLabel *rmapReceiveStateLabel; | |
28 | QLabel *gresbStatusQueryLabel; |
|
63 | QLabel *gresbStatusQueryLabel; | |
|
64 | QLabel *gresbStatusQueryDialogLabel; | |||
|
65 | ||||
|
66 | QDialog *gresbStatusQueryDialog; | |||
29 |
|
67 | |||
30 | QIPDialogBox* gresbBridgeIPDialogBox; |
|
68 | QIPDialogBox* gresbBridgeIPDialogBox; | |
31 |
|
69 | |||
32 | QSpinBox *gresbVirtualLinkSpinBox; |
|
70 | QSpinBox *gresbVirtualLinkSpinBox; | |
33 | QSpinBox *spwLinkSpinBox; |
|
71 | QSpinBox *spwLinkSpinBox; | |
34 | QSpinBox *rmapSourceLogicalAddressSpinBox; |
|
72 | QSpinBox *rmapSourceLogicalAddressSpinBox; | |
35 |
|
73 | |||
36 | QGridLayout *connectionLayout; |
|
74 | QGridLayout *connectionLayout; | |
37 |
|
75 | QGridLayout *gresbStatusQueryDialogLayout; | ||
|
76 | ||||
|
77 | QTcpSocket *RMAPSend_SOCKET; | |||
|
78 | QTcpSocket *RMAPReceive_SOCKET; | |||
|
79 | QTcpSocket *GRESBStatusQuery_SOCKET; | |||
|
80 | ||||
|
81 | spwpacketreceiver *spwPacketReceiverOBJECT; | |||
|
82 | ||||
|
83 | gresbStatusEnquiry* spwLinkStatusEnquiry; | |||
38 | }; |
|
84 | }; | |
39 |
|
85 | |||
40 | #endif // GRESB_H |
|
86 | #endif // GRESB_H |
@@ -1,713 +1,709 | |||||
1 | #include "stardundee.h" |
|
1 | #include "stardundee.h" | |
2 | #include <QTime> |
|
2 | #include <QTime> | |
3 | #include <math.h> |
|
3 | #include <math.h> | |
4 |
|
4 | |||
5 | StarDundee::StarDundee(QWidget *parent) : |
|
5 | StarDundee::StarDundee(QWidget *parent) : | |
6 | QWidget(parent) |
|
6 | QWidget(parent) | |
7 | { |
|
7 | { | |
8 | // Packet receiver |
|
8 | // Packet receiver | |
9 | rmapPacketSEMAPHORE = new QSemaphore; |
|
9 | rmapPacketSEMAPHORE = new QSemaphore; | |
10 | ccsdsPacketSEMAPHORE = new QSemaphore; |
|
10 | ccsdsPacketSEMAPHORE = new QSemaphore; | |
11 | rmapPacket = (char*) malloc(RMAP_MAX_PACKET_LENGTH); |
|
11 | rmapPacket = (char*) malloc(RMAP_MAX_PACKET_LENGTH); | |
12 | ccsdsPacket = (unsigned char*) malloc(CCSDS_MAX_PACKET_LENGTH); |
|
12 | ccsdsPacket = (unsigned char*) malloc(CCSDS_MAX_PACKET_LENGTH); | |
13 | spwPacket = (char*) malloc( qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH) ); |
|
13 | spwPacket = (char*) malloc( qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH) ); | |
14 |
|
14 | |||
15 | commandCode = invalid0; // initialization of the cmmand code for the RMAP transfers |
|
15 | commandCode = invalid0; // initialization of the cmmand code for the RMAP transfers | |
16 |
|
16 | |||
17 | rmapSourceLogicalAddress = 0x20; |
|
17 | rmapSourceLogicalAddress = 0x20; | |
18 | connection_LAYOUT = new QGridLayout; |
|
18 | connection_LAYOUT = new QGridLayout; | |
19 |
|
19 | |||
20 | usbDeviceNumber_LABEL = new QLabel(tr("USB device number: ")); |
|
20 | usbDeviceNumber_LABEL = new QLabel(tr("USB device number: ")); | |
21 | linkNumber_LABEL = new QLabel(tr("SpaceWire link number: ")); |
|
21 | linkNumber_LABEL = new QLabel(tr("SpaceWire link number: ")); | |
22 | sourceLogicalAddress_LABEL = new QLabel(tr("Source logical address: ")); |
|
22 | sourceLogicalAddress_LABEL = new QLabel(tr("Source logical address: ")); | |
23 |
|
23 | |||
24 | usbDeviceNumber_SPINBOX = new QSpinBox; |
|
24 | usbDeviceNumber_SPINBOX = new QSpinBox; | |
25 | usbDeviceNumber_SPINBOX->setRange(0,32); |
|
25 | usbDeviceNumber_SPINBOX->setRange(0,32); | |
26 | usbDeviceNumber_SPINBOX->setValue(0); |
|
26 | usbDeviceNumber_SPINBOX->setValue(0); | |
27 | linkNumber_SPINBOX = new QSpinBox; |
|
27 | linkNumber_SPINBOX = new QSpinBox; | |
28 | linkNumber_SPINBOX->setRange(1,2); |
|
28 | linkNumber_SPINBOX->setRange(1,2); | |
29 | linkNumber_SPINBOX->setValue(1); |
|
29 | linkNumber_SPINBOX->setValue(1); | |
30 | sourceLogicalAddress_SPINBOX = new QSpinBox; |
|
30 | sourceLogicalAddress_SPINBOX = new QSpinBox; | |
31 | sourceLogicalAddress_SPINBOX->setRange(0,254); |
|
31 | sourceLogicalAddress_SPINBOX->setRange(0,254); | |
32 | sourceLogicalAddress_SPINBOX->setValue(32); |
|
32 | sourceLogicalAddress_SPINBOX->setValue(32); | |
33 |
|
33 | |||
34 | connection_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1); |
|
34 | connection_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1); | |
35 | connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1); |
|
35 | connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1); | |
36 | connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1); |
|
36 | connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1); | |
37 | connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1); |
|
37 | connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1); | |
38 | connection_LAYOUT->addWidget(sourceLogicalAddress_LABEL, 2, 0, 1, 1); |
|
38 | connection_LAYOUT->addWidget(sourceLogicalAddress_LABEL, 2, 0, 1, 1); | |
39 | connection_LAYOUT->addWidget(sourceLogicalAddress_SPINBOX, 2, 1, 1, 1); |
|
39 | connection_LAYOUT->addWidget(sourceLogicalAddress_SPINBOX, 2, 1, 1, 1); | |
40 |
|
40 | |||
41 | connection_LAYOUT->setRowStretch(3, 1); |
|
41 | connection_LAYOUT->setRowStretch(3, 1); | |
42 | connection_LAYOUT->setColumnStretch(2, 1); |
|
42 | connection_LAYOUT->setColumnStretch(2, 1); | |
43 |
|
43 | |||
44 | this->setLayout(connection_LAYOUT); |
|
44 | this->setLayout(connection_LAYOUT); | |
45 |
|
45 | |||
46 | connect(this->sourceLogicalAddress_SPINBOX, SIGNAL(valueChanged(int)), this, SLOT(sourceHasChanged(int))); |
|
46 | connect(this->sourceLogicalAddress_SPINBOX, SIGNAL(valueChanged(int)), this, SLOT(sourceHasChanged(int))); | |
47 | } |
|
47 | } | |
48 |
|
48 | |||
49 | StarDundee::~StarDundee() |
|
49 | StarDundee::~StarDundee() | |
50 | { |
|
50 | { | |
51 | free(rmapPacket); |
|
51 | free(rmapPacket); | |
52 | free(ccsdsPacket); |
|
52 | free(ccsdsPacket); | |
53 | free(spwPacket); |
|
53 | free(spwPacket); | |
54 | USBSpaceWire_Close(hDevice); // Close the device |
|
54 | USBSpaceWire_Close(hDevice); // Close the device | |
55 | } |
|
55 | } | |
56 |
|
56 | |||
57 |
|
|
57 | void StarDundee::Open() | |
58 | { |
|
58 | { | |
59 | int status; |
|
59 | int status; | |
60 | U32 statusControl; |
|
60 | U32 statusControl; | |
61 | U32 routingTableEntry; |
|
61 | U32 routingTableEntry; | |
62 | int tableEntry; |
|
62 | int tableEntry; | |
63 |
|
63 | |||
64 | if (!USBSpaceWire_Open(&hDevice, usbDeviceNumber_SPINBOX->value())) // Open the USB device |
|
64 | if (!USBSpaceWire_Open(&hDevice, usbDeviceNumber_SPINBOX->value())) // Open the USB device | |
65 | { |
|
65 | { | |
66 | emit sendMessage("stardundee *** Open *** ERROR: USBSpaceWire_Open(&hDevice, 0))"); |
|
66 | emit sendMessage("stardundee *** Open *** ERROR: USBSpaceWire_Open(&hDevice, 0))"); | |
67 |
return |
|
67 | return; | |
68 | } |
|
68 | } | |
69 | emit sendMessage("stardundee *** Open *** USBSpaceWire_Open successful, device number: " |
|
69 | emit sendMessage("stardundee *** Open *** USBSpaceWire_Open successful, device number: " | |
70 | + QString::number(usbDeviceNumber_SPINBOX->value())); |
|
70 | + QString::number(usbDeviceNumber_SPINBOX->value())); | |
71 |
|
71 | |||
72 | USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode |
|
72 | USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode | |
73 | CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP |
|
73 | CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP | |
74 | CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices |
|
74 | CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices | |
75 |
|
75 | |||
76 | // Set the path and return path to the device |
|
76 | // Set the path and return path to the device | |
77 | CFGSpaceWire_StackClear(); |
|
77 | CFGSpaceWire_StackClear(); | |
78 | CFGSpaceWire_AddrStackPush(0); |
|
78 | CFGSpaceWire_AddrStackPush(0); | |
79 | CFGSpaceWire_AddrStackPush(254); |
|
79 | CFGSpaceWire_AddrStackPush(254); | |
80 | CFGSpaceWire_RetAddrStackPush(254); |
|
80 | CFGSpaceWire_RetAddrStackPush(254); | |
81 |
|
81 | |||
82 | // set the base transmit rate to 100 MHz |
|
82 | // set the base transmit rate to 100 MHz | |
83 | status = CFGSpaceWire_SetBrickBaseTransmitRate( hDevice, CFG_BRK_CLK_100_MHZ, CFG_BRK_DVDR_1, 0xff); |
|
83 | status = CFGSpaceWire_SetBrickBaseTransmitRate( hDevice, CFG_BRK_CLK_100_MHZ, CFG_BRK_DVDR_1, 0xff); | |
84 | if (status != CFG_TRANSFER_SUCCESS) |
|
84 | if (status != CFG_TRANSFER_SUCCESS) | |
85 | { |
|
85 | { | |
86 | emit sendMessage("ERROR CFGSpaceWire_SetBrickBaseTransmitRate"); |
|
86 | emit sendMessage("ERROR CFGSpaceWire_SetBrickBaseTransmitRate"); | |
87 | } |
|
87 | } | |
88 | else emit sendMessage("OK CFGSpaceWire_SetBrickBaseTransmitRate, base rate = 100 MHz"); |
|
88 | else emit sendMessage("OK CFGSpaceWire_SetBrickBaseTransmitRate, base rate = 100 MHz"); | |
89 | // read the link status |
|
89 | // read the link status | |
90 | if (CFGSpaceWire_GetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), &statusControl) != CFG_TRANSFER_SUCCESS) |
|
90 | if (CFGSpaceWire_GetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), &statusControl) != CFG_TRANSFER_SUCCESS) | |
91 | { |
|
91 | { | |
92 | emit sendMessage("Could not read link status control for link " + QString::number(linkNumber_SPINBOX->value())); |
|
92 | emit sendMessage("Could not read link status control for link " + QString::number(linkNumber_SPINBOX->value())); | |
93 | } |
|
93 | } | |
94 | else |
|
94 | else | |
95 | { |
|
95 | { | |
96 | emit sendMessage("OK CFGSpaceWire_GetLinkStatusControl of link " + QString::number(linkNumber_SPINBOX->value())); |
|
96 | emit sendMessage("OK CFGSpaceWire_GetLinkStatusControl of link " + QString::number(linkNumber_SPINBOX->value())); | |
97 |
|
97 | |||
98 | // Set the link status control register properties |
|
98 | // Set the link status control register properties | |
99 | CFGSpaceWire_LSEnableAutoStart(&statusControl, 1); |
|
99 | CFGSpaceWire_LSEnableAutoStart(&statusControl, 1); | |
100 | CFGSpaceWire_LSEnableStart(&statusControl, 1); |
|
100 | CFGSpaceWire_LSEnableStart(&statusControl, 1); | |
101 | CFGSpaceWire_LSEnableDisabled(&statusControl, 0); |
|
101 | CFGSpaceWire_LSEnableDisabled(&statusControl, 0); | |
102 | CFGSpaceWire_LSEnableTristate(&statusControl, 0); |
|
102 | CFGSpaceWire_LSEnableTristate(&statusControl, 0); | |
103 | CFGSpaceWire_LSSetOperatingSpeed(&statusControl, 9); // sets the link speed to ( 100 MHz / (9+1) ) = 10 MHz |
|
103 | CFGSpaceWire_LSSetOperatingSpeed(&statusControl, 9); // sets the link speed to ( 100 MHz / (9+1) ) = 10 MHz | |
104 |
|
104 | |||
105 | // Set the link status control register |
|
105 | // Set the link status control register | |
106 | if (CFGSpaceWire_SetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), statusControl) != CFG_TRANSFER_SUCCESS) |
|
106 | if (CFGSpaceWire_SetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), statusControl) != CFG_TRANSFER_SUCCESS) | |
107 | { |
|
107 | { | |
108 | emit sendMessage("Could not set the link status control for link " + QString::number(linkNumber_SPINBOX->value())); |
|
108 | emit sendMessage("Could not set the link status control for link " + QString::number(linkNumber_SPINBOX->value())); | |
109 | } |
|
109 | } | |
110 | else emit sendMessage("Set the link status control for link " + QString::number(linkNumber_SPINBOX->value())); |
|
110 | else emit sendMessage("Set the link status control for link " + QString::number(linkNumber_SPINBOX->value())); | |
111 | } |
|
111 | } | |
112 |
|
112 | |||
113 | // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 254 <=> 0xfe |
|
113 | // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 254 <=> 0xfe | |
114 | tableEntry = rmapTargetLogicalAddress; |
|
114 | tableEntry = rmapTargetLogicalAddress; | |
115 | if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS) |
|
115 | if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS) | |
116 | { |
|
116 | { | |
117 | emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry)); |
|
117 | emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry)); | |
118 | } |
|
118 | } | |
119 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] cleared"); |
|
119 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] cleared"); | |
120 | // Build the routing table entry to route out of port 1 with header deletion disabled and priority normal |
|
120 | // Build the routing table entry to route out of port 1 with header deletion disabled and priority normal | |
121 | CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry, |
|
121 | CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry, | |
122 | (1<<linkNumber_SPINBOX->value()), // 0x02 = 0000 0010 |
|
122 | (1<<linkNumber_SPINBOX->value()), // 0x02 = 0000 0010 | |
123 | 0, |
|
123 | 0, | |
124 | 0); |
|
124 | 0); | |
125 | // Set the routing table entry for logical address tableEntry |
|
125 | // Set the routing table entry for logical address tableEntry | |
126 | if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS) |
|
126 | if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS) | |
127 | { |
|
127 | { | |
128 | emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]"); |
|
128 | emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]"); | |
129 | } |
|
129 | } | |
130 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" ); |
|
130 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" ); | |
131 |
|
131 | |||
132 | // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 32 <=> 0x20 |
|
132 | // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 32 <=> 0x20 | |
133 | tableEntry = sourceLogicalAddress_SPINBOX->value(); |
|
133 | tableEntry = sourceLogicalAddress_SPINBOX->value(); | |
134 | if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS) |
|
134 | if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS) | |
135 | { |
|
135 | { | |
136 | emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry)); |
|
136 | emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry)); | |
137 | } |
|
137 | } | |
138 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] cleared"); |
|
138 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] cleared"); | |
139 |
|
139 | |||
140 | // Build the routing table entry to route out of port 3 with header deletion disabled and priority normal |
|
140 | // Build the routing table entry to route out of port 3 with header deletion disabled and priority normal | |
141 | CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry, |
|
141 | CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry, | |
142 | (1<<3), // 0x02 = 0000 0010 |
|
142 | (1<<3), // 0x02 = 0000 0010 | |
143 | 0, |
|
143 | 0, | |
144 | 0); |
|
144 | 0); | |
145 | // Set the routing table entry for logical address tableEntry |
|
145 | // Set the routing table entry for logical address tableEntry | |
146 | if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS) |
|
146 | if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS) | |
147 | { |
|
147 | { | |
148 | emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]"); |
|
148 | emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]"); | |
149 | } |
|
149 | } | |
150 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" ); |
|
150 | else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" ); | |
151 |
|
151 | |||
152 | emit sendMessage("The driver's current send buffer size is " + QString::number(USBSpaceWire_GetDriverSendBufferSize(hDevice)) + " bytes"); |
|
152 | emit sendMessage("The driver's current send buffer size is " + QString::number(USBSpaceWire_GetDriverSendBufferSize(hDevice)) + " bytes"); | |
153 |
|
153 | |||
154 | USBSpaceWire_RegisterReceiveOnAllPorts(hDevice); // Register to receive on all ports |
|
154 | USBSpaceWire_RegisterReceiveOnAllPorts(hDevice); // Register to receive on all ports | |
155 | USBSpaceWire_ClearEndpoints(hDevice); // clear the USB endpoints |
|
155 | USBSpaceWire_ClearEndpoints(hDevice); // clear the USB endpoints | |
156 |
|
156 | |||
157 | // initialize SPW packet semaphores |
|
157 | // initialize SPW packet semaphores | |
158 | while (rmapPacketSEMAPHORE->available()!=0) rmapPacketSEMAPHORE->acquire(); |
|
158 | while (rmapPacketSEMAPHORE->available()!=0) rmapPacketSEMAPHORE->acquire(); | |
159 | while (ccsdsPacketSEMAPHORE->available()!=0) ccsdsPacketSEMAPHORE->acquire(); |
|
159 | while (ccsdsPacketSEMAPHORE->available()!=0) ccsdsPacketSEMAPHORE->acquire(); | |
160 |
|
160 | |||
161 | emit isOpen(true); |
|
161 | emit isOpen(true); | |
162 |
|
||||
163 | return 1; |
|
|||
164 | } |
|
162 | } | |
165 |
|
163 | |||
166 |
|
|
164 | void StarDundee::Close() | |
167 | { |
|
165 | { | |
168 | USBSpaceWire_Close(hDevice); // Close the device |
|
166 | USBSpaceWire_Close(hDevice); // Close the device | |
169 | emit sendMessage("stardundee *** Close *** USBSpaceWire_Close, device: " + QString::number(usbDeviceNumber_SPINBOX->value())); |
|
167 | emit sendMessage("stardundee *** Close *** USBSpaceWire_Close, device: " + QString::number(usbDeviceNumber_SPINBOX->value())); | |
170 |
|
168 | |||
171 | USBSpaceWire_UnregisterReceiveOnAllPorts(hDevice); // Stop receiving on all ports |
|
169 | USBSpaceWire_UnregisterReceiveOnAllPorts(hDevice); // Stop receiving on all ports | |
172 |
|
170 | |||
173 | emit isOpen(false); |
|
171 | emit isOpen(false); | |
174 |
|
||||
175 | return 1; |
|
|||
176 | } |
|
172 | } | |
177 |
|
173 | |||
178 | unsigned int StarDundee::GetRoutingTableEntry() |
|
174 | unsigned int StarDundee::GetRoutingTableEntry() | |
179 | { |
|
175 | { | |
180 | U32 routingTableEntry, outputPorts; |
|
176 | U32 routingTableEntry, outputPorts; | |
181 | char enabled, delHead, priority; |
|
177 | char enabled, delHead, priority; | |
182 | int portNum; |
|
178 | int portNum; | |
183 | int tableEntry; |
|
179 | int tableEntry; | |
184 |
|
180 | |||
185 | tableEntry = rmapTargetLogicalAddress; |
|
181 | tableEntry = rmapTargetLogicalAddress; | |
186 |
|
182 | |||
187 | // Set the path and return path to the device |
|
183 | // Set the path and return path to the device | |
188 | CFGSpaceWire_StackClear(); |
|
184 | CFGSpaceWire_StackClear(); | |
189 | CFGSpaceWire_AddrStackPush(0); |
|
185 | CFGSpaceWire_AddrStackPush(0); | |
190 | CFGSpaceWire_AddrStackPush(254); |
|
186 | CFGSpaceWire_AddrStackPush(254); | |
191 | CFGSpaceWire_RetAddrStackPush(254); |
|
187 | CFGSpaceWire_RetAddrStackPush(254); | |
192 |
|
188 | |||
193 | // Read the routing table entry |
|
189 | // Read the routing table entry | |
194 | if (CFGSpaceWire_GetRoutingTableEntry(hDevice, tableEntry, &routingTableEntry) != CFG_TRANSFER_SUCCESS) |
|
190 | if (CFGSpaceWire_GetRoutingTableEntry(hDevice, tableEntry, &routingTableEntry) != CFG_TRANSFER_SUCCESS) | |
195 | { |
|
191 | { | |
196 | emit sendMessage("Could not read routing table entry [" + QString::number(tableEntry) + "]"); |
|
192 | emit sendMessage("Could not read routing table entry [" + QString::number(tableEntry) + "]"); | |
197 | } |
|
193 | } | |
198 | else |
|
194 | else | |
199 | { |
|
195 | { | |
200 | // Display the routing table entry properties |
|
196 | // Display the routing table entry properties | |
201 | CFGSpaceWire_RTIsEnabled(routingTableEntry, &enabled); |
|
197 | CFGSpaceWire_RTIsEnabled(routingTableEntry, &enabled); | |
202 | CFGSpaceWire_RTIsDelHead(routingTableEntry, &delHead); |
|
198 | CFGSpaceWire_RTIsDelHead(routingTableEntry, &delHead); | |
203 | CFGSpaceWire_RTIsPriority(routingTableEntry, &priority); |
|
199 | CFGSpaceWire_RTIsPriority(routingTableEntry, &priority); | |
204 | CFGSpaceWire_RTGetOutputPorts(routingTableEntry, &outputPorts); |
|
200 | CFGSpaceWire_RTGetOutputPorts(routingTableEntry, &outputPorts); | |
205 | emit sendMessage("CFGSpaceWire_RTIsEnabled : " + QString::number(enabled)); |
|
201 | emit sendMessage("CFGSpaceWire_RTIsEnabled : " + QString::number(enabled)); | |
206 | emit sendMessage("CFGSpaceWire_RTIsDelHead : " + QString::number(delHead)); |
|
202 | emit sendMessage("CFGSpaceWire_RTIsDelHead : " + QString::number(delHead)); | |
207 | emit sendMessage("CFGSpaceWire_RTIsPriority : " + QString::number(priority)); |
|
203 | emit sendMessage("CFGSpaceWire_RTIsPriority : " + QString::number(priority)); | |
208 | emit sendMessage("CFGSpaceWire_RTGetOutputPorts : "); |
|
204 | emit sendMessage("CFGSpaceWire_RTGetOutputPorts : "); | |
209 | for (portNum = 0; portNum < 32; portNum++) |
|
205 | for (portNum = 0; portNum < 32; portNum++) | |
210 | { |
|
206 | { | |
211 | if (outputPorts & (1 << portNum)) |
|
207 | if (outputPorts & (1 << portNum)) | |
212 | { |
|
208 | { | |
213 | emit sendMessage(QString::number(portNum)); |
|
209 | emit sendMessage(QString::number(portNum)); | |
214 | } |
|
210 | } | |
215 | } |
|
211 | } | |
216 | } |
|
212 | } | |
217 |
|
213 | |||
218 | return 1; |
|
214 | return 1; | |
219 | } |
|
215 | } | |
220 |
|
216 | |||
221 | unsigned int StarDundee::Write(unsigned int *Value, unsigned int count, unsigned int address) |
|
217 | unsigned int StarDundee::Write(unsigned int *Value, unsigned int count, unsigned int address) | |
222 | { |
|
218 | { | |
223 | unsigned int remainingCount = count; |
|
219 | unsigned int remainingCount = count; | |
224 | unsigned int iOffset = 0; |
|
220 | unsigned int iOffset = 0; | |
225 | QString console_message; |
|
221 | QString console_message; | |
226 | char* data; |
|
222 | char* data; | |
227 |
|
223 | |||
228 | if(rmapPacketSEMAPHORE->available()!=0) |
|
224 | if(rmapPacketSEMAPHORE->available()!=0) | |
229 | { |
|
225 | { | |
230 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP request already running, WRITE access stopped"); |
|
226 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP request already running, WRITE access stopped"); | |
231 | return 1; |
|
227 | return 1; | |
232 | } |
|
228 | } | |
233 |
|
229 | |||
234 | emit this->RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable"); |
|
230 | emit this->RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable"); | |
235 |
|
231 | |||
236 | data = (char*) malloc(READ_WRITE_MAX_COUNTS*4); |
|
232 | data = (char*) malloc(READ_WRITE_MAX_COUNTS*4); | |
237 |
|
233 | |||
238 | emit appendToLog(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16)); |
|
234 | emit appendToLog(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16)); | |
239 |
|
235 | |||
240 | while (remainingCount > READ_WRITE_MAX_COUNTS) |
|
236 | while (remainingCount > READ_WRITE_MAX_COUNTS) | |
241 | { |
|
237 | { | |
242 | for (int i = 0; i<READ_WRITE_MAX_COUNTS; i++) |
|
238 | for (int i = 0; i<READ_WRITE_MAX_COUNTS; i++) | |
243 | { |
|
239 | { | |
244 | data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]); |
|
240 | data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]); | |
245 | data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8); |
|
241 | data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8); | |
246 | data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16); |
|
242 | data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16); | |
247 | data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24); |
|
243 | data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24); | |
248 | } |
|
244 | } | |
249 |
|
245 | |||
250 | console_message.sprintf("remainingCount: %d => ", remainingCount); |
|
246 | console_message.sprintf("remainingCount: %d => ", remainingCount); | |
251 | emit appendToLog(console_message + QString("Write ")+ QString::number(READ_WRITE_MAX_COUNTS*4) + QString(" byte(s) @0x")+ QString::number(address,16)); |
|
247 | emit appendToLog(console_message + QString("Write ")+ QString::number(READ_WRITE_MAX_COUNTS*4) + QString(" byte(s) @0x")+ QString::number(address,16)); | |
252 |
|
248 | |||
253 | if(WriteBLOCK(data, READ_WRITE_MAX_COUNTS*4, address)==0) |
|
249 | if(WriteBLOCK(data, READ_WRITE_MAX_COUNTS*4, address)==0) | |
254 | { |
|
250 | { | |
255 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed"); |
|
251 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed"); | |
256 | return 1; |
|
252 | return 1; | |
257 | } |
|
253 | } | |
258 |
|
254 | |||
259 | remainingCount = remainingCount - READ_WRITE_MAX_COUNTS; |
|
255 | remainingCount = remainingCount - READ_WRITE_MAX_COUNTS; | |
260 | address = address + READ_WRITE_MAX_COUNTS * 4; |
|
256 | address = address + READ_WRITE_MAX_COUNTS * 4; | |
261 | iOffset = iOffset + READ_WRITE_MAX_COUNTS; |
|
257 | iOffset = iOffset + READ_WRITE_MAX_COUNTS; | |
262 | } |
|
258 | } | |
263 |
|
259 | |||
264 | if (remainingCount > 0) |
|
260 | if (remainingCount > 0) | |
265 | { |
|
261 | { | |
266 | for (unsigned int i = 0; i<remainingCount; i++) |
|
262 | for (unsigned int i = 0; i<remainingCount; i++) | |
267 | { |
|
263 | { | |
268 | data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]); |
|
264 | data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]); | |
269 | data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8); |
|
265 | data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8); | |
270 | data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16); |
|
266 | data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16); | |
271 | data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24); |
|
267 | data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24); | |
272 | } |
|
268 | } | |
273 |
|
269 | |||
274 | console_message.sprintf("remainingCount: %d => ", remainingCount); |
|
270 | console_message.sprintf("remainingCount: %d => ", remainingCount); | |
275 | emit appendToLog(console_message + QString("Write ")+ QString::number(remainingCount*4) + QString(" byte(s) @0x")+ QString::number(address,16)); |
|
271 | emit appendToLog(console_message + QString("Write ")+ QString::number(remainingCount*4) + QString(" byte(s) @0x")+ QString::number(address,16)); | |
276 |
|
272 | |||
277 | if (WriteBLOCK(data, remainingCount*4, address)==0) |
|
273 | if (WriteBLOCK(data, remainingCount*4, address)==0) | |
278 | { |
|
274 | { | |
279 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed"); |
|
275 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed"); | |
280 | return 1; |
|
276 | return 1; | |
281 | } |
|
277 | } | |
282 | } |
|
278 | } | |
283 |
|
279 | |||
284 | emit appendToLog(QString("*** STOP *** WRITE")); |
|
280 | emit appendToLog(QString("*** STOP *** WRITE")); | |
285 | free(data); |
|
281 | free(data); | |
286 | return count; |
|
282 | return count; | |
287 | } |
|
283 | } | |
288 |
|
284 | |||
289 | unsigned int StarDundee::Read(unsigned int *Value, unsigned int count, unsigned int address) |
|
285 | unsigned int StarDundee::Read(unsigned int *Value, unsigned int count, unsigned int address) | |
290 | { |
|
286 | { | |
291 | unsigned int remainingCount = count; |
|
287 | unsigned int remainingCount = count; | |
292 | unsigned int iOffset = 0; |
|
288 | unsigned int iOffset = 0; | |
293 | QString console_message; |
|
289 | QString console_message; | |
294 |
|
290 | |||
295 | if(rmapPacketSEMAPHORE->available()!=0) |
|
291 | if(rmapPacketSEMAPHORE->available()!=0) | |
296 | { |
|
292 | { | |
297 | emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP request already running, READ access stopped"); |
|
293 | emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP request already running, READ access stopped"); | |
298 | return 1; |
|
294 | return 1; | |
299 | } |
|
295 | } | |
300 | emit appendToLog(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16)); |
|
296 | emit appendToLog(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16)); | |
301 |
|
297 | |||
302 | while (remainingCount > READ_WRITE_MAX_COUNTS) |
|
298 | while (remainingCount > READ_WRITE_MAX_COUNTS) | |
303 | { |
|
299 | { | |
304 | console_message.sprintf("remainingCount: %d => ", remainingCount); |
|
300 | console_message.sprintf("remainingCount: %d => ", remainingCount); | |
305 | emit appendToLog(console_message + QString("Read ")+ QString::number(4*READ_WRITE_MAX_COUNTS) + QString(" byte(s) @0x")+ QString::number(address,16)); |
|
301 | emit appendToLog(console_message + QString("Read ")+ QString::number(4*READ_WRITE_MAX_COUNTS) + QString(" byte(s) @0x")+ QString::number(address,16)); | |
306 |
|
302 | |||
307 | if (this->ReadBLOCK(READ_WRITE_MAX_COUNTS*4, address)==0) |
|
303 | if (this->ReadBLOCK(READ_WRITE_MAX_COUNTS*4, address)==0) | |
308 | { |
|
304 | { | |
309 | emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received"); |
|
305 | emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received"); | |
310 | return 1; |
|
306 | return 1; | |
311 | } |
|
307 | } | |
312 |
|
308 | |||
313 | for(int i=0;i<READ_WRITE_MAX_COUNTS;i++) |
|
309 | for(int i=0;i<READ_WRITE_MAX_COUNTS;i++) | |
314 | { |
|
310 | { | |
315 | Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH]; |
|
311 | Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH]; | |
316 | for(int j=1;j<4;j++) |
|
312 | for(int j=1;j<4;j++) | |
317 | { |
|
313 | { | |
318 | Value[i+iOffset]= ((unsigned char) (rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) |
|
314 | Value[i+iOffset]= ((unsigned char) (rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) | |
319 | + Value[i+iOffset]*256; |
|
315 | + Value[i+iOffset]*256; | |
320 | } |
|
316 | } | |
321 | } |
|
317 | } | |
322 |
|
318 | |||
323 | remainingCount = remainingCount - READ_WRITE_MAX_COUNTS; |
|
319 | remainingCount = remainingCount - READ_WRITE_MAX_COUNTS; | |
324 | address = address + READ_WRITE_MAX_COUNTS * 4; |
|
320 | address = address + READ_WRITE_MAX_COUNTS * 4; | |
325 | iOffset = iOffset + READ_WRITE_MAX_COUNTS; |
|
321 | iOffset = iOffset + READ_WRITE_MAX_COUNTS; | |
326 | this->acquireRMAPSemaphore(); |
|
322 | this->acquireRMAPSemaphore(); | |
327 | } |
|
323 | } | |
328 |
|
324 | |||
329 | if (remainingCount > 0) |
|
325 | if (remainingCount > 0) | |
330 | { |
|
326 | { | |
331 | console_message.sprintf("remainingCount: %d => ", remainingCount); |
|
327 | console_message.sprintf("remainingCount: %d => ", remainingCount); | |
332 | emit appendToLog(console_message + QString("Read ")+ QString::number(4*remainingCount) + QString(" byte(s) @0x")+ QString::number(address,16)); |
|
328 | emit appendToLog(console_message + QString("Read ")+ QString::number(4*remainingCount) + QString(" byte(s) @0x")+ QString::number(address,16)); | |
333 |
|
329 | |||
334 | if (this->ReadBLOCK(4*remainingCount, address)==0) |
|
330 | if (this->ReadBLOCK(4*remainingCount, address)==0) | |
335 | { |
|
331 | { | |
336 | emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received"); |
|
332 | emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received"); | |
337 | return 1; |
|
333 | return 1; | |
338 | } |
|
334 | } | |
339 |
|
335 | |||
340 | for(unsigned int i=0;i<remainingCount;i++) |
|
336 | for(unsigned int i=0;i<remainingCount;i++) | |
341 | { |
|
337 | { | |
342 | Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH]; |
|
338 | Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH]; | |
343 | for(int j=1;j<4;j++) |
|
339 | for(int j=1;j<4;j++) | |
344 | { |
|
340 | { | |
345 | Value[i+iOffset]= ((unsigned char)(rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) + Value[i+iOffset]*256; |
|
341 | Value[i+iOffset]= ((unsigned char)(rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) + Value[i+iOffset]*256; | |
346 | } |
|
342 | } | |
347 | } |
|
343 | } | |
348 | this->acquireRMAPSemaphore(); |
|
344 | this->acquireRMAPSemaphore(); | |
349 | } |
|
345 | } | |
350 |
|
346 | |||
351 | emit appendToLog(QString("*** STOP *** READ ")); |
|
347 | emit appendToLog(QString("*** STOP *** READ ")); | |
352 | return count; |
|
348 | return count; | |
353 | } |
|
349 | } | |
354 |
|
350 | |||
355 | unsigned int StarDundee::WriteBLOCK(char *data, unsigned int nbBytes, unsigned int address) |
|
351 | unsigned int StarDundee::WriteBLOCK(char *data, unsigned int nbBytes, unsigned int address) | |
356 | { |
|
352 | { | |
357 | RMAP *RMAPCommand; |
|
353 | RMAP *RMAPCommand; | |
358 | char * packet; |
|
354 | char * packet; | |
359 | unsigned char offset, headerSize, CRCSize; |
|
355 | unsigned char offset, headerSize, CRCSize; | |
360 | char* aux; |
|
356 | char* aux; | |
361 | unsigned int totalSize; |
|
357 | unsigned int totalSize; | |
362 | int errorCode; |
|
358 | int errorCode; | |
363 | QString console_message; |
|
359 | QString console_message; | |
364 |
|
360 | |||
365 | if (getLinkStatus(this->linkNumber_SPINBOX->value()) == 0) |
|
361 | if (getLinkStatus(this->linkNumber_SPINBOX->value()) == 0) | |
366 | { |
|
362 | { | |
367 | this->Close(); |
|
363 | this->Close(); | |
368 | return 1; |
|
364 | return 1; | |
369 | } |
|
365 | } | |
370 |
|
366 | |||
371 | RMAPCommand = new RMAP(this->commandCode, |
|
367 | RMAPCommand = new RMAP(this->commandCode, | |
372 | rmapTargetLogicalAddress, |
|
368 | rmapTargetLogicalAddress, | |
373 | rmapSourceLogicalAddress, |
|
369 | rmapSourceLogicalAddress, | |
374 | address, |
|
370 | address, | |
375 | nbBytes, |
|
371 | nbBytes, | |
376 | data); |
|
372 | data); | |
377 | headerSize = sizeof(RMAPCommand->RMAPHeader); |
|
373 | headerSize = sizeof(RMAPCommand->RMAPHeader); | |
378 | CRCSize = 1; |
|
374 | CRCSize = 1; | |
379 |
|
375 | |||
380 | //************************* |
|
376 | //************************* | |
381 | // BUILD THE PACKET TO SEND |
|
377 | // BUILD THE PACKET TO SEND | |
382 | totalSize = headerSize + nbBytes + CRCSize; |
|
378 | totalSize = headerSize + nbBytes + CRCSize; | |
383 | packet = (char*) malloc( totalSize ); |
|
379 | packet = (char*) malloc( totalSize ); | |
384 | aux = (char*) ((void*) &RMAPCommand->RMAPHeader); |
|
380 | aux = (char*) ((void*) &RMAPCommand->RMAPHeader); | |
385 | for(unsigned int i = 0; i<headerSize; i++) packet[i] = aux[i]; |
|
381 | for(unsigned int i = 0; i<headerSize; i++) packet[i] = aux[i]; | |
386 | offset = headerSize; |
|
382 | offset = headerSize; | |
387 | for(unsigned int i = 0; i<nbBytes; i++) |
|
383 | for(unsigned int i = 0; i<nbBytes; i++) | |
388 | { |
|
384 | { | |
389 | packet[i+offset] = data[i]; |
|
385 | packet[i+offset] = data[i]; | |
390 | } |
|
386 | } | |
391 | packet[nbBytes+offset] = RMAPCommand->dataCRC; |
|
387 | packet[nbBytes+offset] = RMAPCommand->dataCRC; | |
392 |
|
388 | |||
393 | //**************** |
|
389 | //**************** | |
394 | // SEND THE PACKET |
|
390 | // SEND THE PACKET | |
395 | result = USBSpaceWire_SendPacket(hDevice, |
|
391 | result = USBSpaceWire_SendPacket(hDevice, | |
396 | packet, |
|
392 | packet, | |
397 | totalSize, |
|
393 | totalSize, | |
398 | BWAIT_1, &pIdentifier); |
|
394 | BWAIT_1, &pIdentifier); | |
399 | if (result != TRANSFER_SUCCESS) |
|
395 | if (result != TRANSFER_SUCCESS) | |
400 | { |
|
396 | { | |
401 | emit sendMessage("ERROR *** WriteStarDundee when sending packet of size " |
|
397 | emit sendMessage("ERROR *** WriteStarDundee when sending packet of size " | |
402 | + QString::number(totalSize) +", with code: " + QString::number(result)); |
|
398 | + QString::number(totalSize) +", with code: " + QString::number(result)); | |
403 | USBSpaceWire_FreeSend(hDevice, pIdentifier); |
|
399 | USBSpaceWire_FreeSend(hDevice, pIdentifier); | |
404 | free(data); |
|
400 | free(data); | |
405 | return 1; |
|
401 | return 1; | |
406 | } |
|
402 | } | |
407 | else emit sendMessage("OK *** WriteStarDundee when sending packet of size " + QString::number(totalSize)); |
|
403 | else emit sendMessage("OK *** WriteStarDundee when sending packet of size " + QString::number(totalSize)); | |
408 |
|
404 | |||
409 | //************** |
|
405 | //************** | |
410 | // Free the send |
|
406 | // Free the send | |
411 | USBSpaceWire_FreeSend(hDevice, pIdentifier); |
|
407 | USBSpaceWire_FreeSend(hDevice, pIdentifier); | |
412 | free(packet); |
|
408 | free(packet); | |
413 |
|
409 | |||
414 | if ( (commandCode == writeSingle_noVer_Rep) | (commandCode == writeInc_noVer_Rep) | |
|
410 | if ( (commandCode == writeSingle_noVer_Rep) | (commandCode == writeInc_noVer_Rep) | | |
415 | (commandCode == writeSingle_ver_rep) | (commandCode == writeInc_ver_rep) ) |
|
411 | (commandCode == writeSingle_ver_rep) | (commandCode == writeInc_ver_rep) ) | |
416 | { |
|
412 | { | |
417 | // WAIT FOR THE RMAP REPLY PACKET |
|
413 | // WAIT FOR THE RMAP REPLY PACKET | |
418 | errorCode = this->receiveSPWPacket(1); |
|
414 | errorCode = this->receiveSPWPacket(1); | |
419 | if (errorCode<=0) |
|
415 | if (errorCode<=0) | |
420 | { |
|
416 | { | |
421 | emit appendToLog("WARNING === in function WriteBLOCK of rmapplugin *** RMAP packet reception failed with code " + QString::number(errorCode)); |
|
417 | emit appendToLog("WARNING === in function WriteBLOCK of rmapplugin *** RMAP packet reception failed with code " + QString::number(errorCode)); | |
422 | return 0; |
|
418 | return 0; | |
423 | } |
|
419 | } | |
424 | if(rmapPacketSize != 8) |
|
420 | if(rmapPacketSize != 8) | |
425 | { |
|
421 | { | |
426 | console_message.sprintf("WARNING === in function WRITE (with reply) of rmapplugin *** write reply format not compliant\n"); |
|
422 | console_message.sprintf("WARNING === in function WRITE (with reply) of rmapplugin *** write reply format not compliant\n"); | |
427 | emit appendToLog(console_message); |
|
423 | emit appendToLog(console_message); | |
428 | return 0; |
|
424 | return 0; | |
429 | } |
|
425 | } | |
430 | switch (this->rmapPacket[3]) // byte 4 is the status byte in the reply |
|
426 | switch (this->rmapPacket[3]) // byte 4 is the status byte in the reply | |
431 | { |
|
427 | { | |
432 | case 0: |
|
428 | case 0: | |
433 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 0 Successfull"); |
|
429 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 0 Successfull"); | |
434 | break; |
|
430 | break; | |
435 | case 1: |
|
431 | case 1: | |
436 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** General error code"); |
|
432 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** General error code"); | |
437 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 1 General error code"); |
|
433 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 1 General error code"); | |
438 | break; |
|
434 | break; | |
439 | case 2: |
|
435 | case 2: | |
440 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Unused RMAP packet type or command code"); |
|
436 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Unused RMAP packet type or command code"); | |
441 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 2 Unused RMAP packet type or command code"); |
|
437 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 2 Unused RMAP packet type or command code"); | |
442 | break; |
|
438 | break; | |
443 | case 3: |
|
439 | case 3: | |
444 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid key"); |
|
440 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid key"); | |
445 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 3 Invalid key"); |
|
441 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 3 Invalid key"); | |
446 | break; |
|
442 | break; | |
447 | case 4: |
|
443 | case 4: | |
448 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid data CRC"); |
|
444 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid data CRC"); | |
449 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 4 Invalid data CRC"); |
|
445 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 4 Invalid data CRC"); | |
450 | break; |
|
446 | break; | |
451 | case 5: |
|
447 | case 5: | |
452 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Early EOP"); |
|
448 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Early EOP"); | |
453 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 5 Early EOP"); |
|
449 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 5 Early EOP"); | |
454 | break; |
|
450 | break; | |
455 | case 6: |
|
451 | case 6: | |
456 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Too much data"); |
|
452 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Too much data"); | |
457 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 6 Too much data"); |
|
453 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 6 Too much data"); | |
458 | break; |
|
454 | break; | |
459 | case 7: |
|
455 | case 7: | |
460 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** EEP"); |
|
456 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** EEP"); | |
461 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 7 EEP"); |
|
457 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 7 EEP"); | |
462 | break; |
|
458 | break; | |
463 | case 8: |
|
459 | case 8: | |
464 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Reserved"); |
|
460 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Reserved"); | |
465 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 8 Reserved"); |
|
461 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 8 Reserved"); | |
466 | break; |
|
462 | break; | |
467 | case 9: |
|
463 | case 9: | |
468 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Verify buffer overrun"); |
|
464 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Verify buffer overrun"); | |
469 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 9 Verify buffer overrun"); |
|
465 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 9 Verify buffer overrun"); | |
470 | break; |
|
466 | break; | |
471 | case 10: |
|
467 | case 10: | |
472 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMAP command not implemented or not authorised"); |
|
468 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMAP command not implemented or not authorised"); | |
473 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 10 RMAP command not implemented or not authorised"); |
|
469 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 10 RMAP command not implemented or not authorised"); | |
474 | break; |
|
470 | break; | |
475 | case 11: |
|
471 | case 11: | |
476 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMW data length error"); |
|
472 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMW data length error"); | |
477 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 11 RMAP RMW data length error"); |
|
473 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 11 RMAP RMW data length error"); | |
478 | break; |
|
474 | break; | |
479 | case 12: |
|
475 | case 12: | |
480 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid target logical address"); |
|
476 | emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid target logical address"); | |
481 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 12 Invalid target logical address"); |
|
477 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 12 Invalid target logical address"); | |
482 | break; |
|
478 | break; | |
483 | } |
|
479 | } | |
484 | this->acquireRMAPSemaphore(); |
|
480 | this->acquireRMAPSemaphore(); | |
485 | } |
|
481 | } | |
486 | else |
|
482 | else | |
487 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable"); |
|
483 | emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable"); | |
488 |
|
484 | |||
489 | return nbBytes; |
|
485 | return nbBytes; | |
490 | } |
|
486 | } | |
491 |
|
487 | |||
492 | unsigned int StarDundee::ReadBLOCK(unsigned int nbBytes, unsigned int address) |
|
488 | unsigned int StarDundee::ReadBLOCK(unsigned int nbBytes, unsigned int address) | |
493 | { |
|
489 | { | |
494 | int errorCode; |
|
490 | int errorCode; | |
495 | RMAP *RMAPCommand; |
|
491 | RMAP *RMAPCommand; | |
496 | unsigned int dataLength; |
|
492 | unsigned int dataLength; | |
497 |
|
493 | |||
498 | //********************** |
|
494 | //********************** | |
499 | // Check the link status |
|
495 | // Check the link status | |
500 | if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 ) |
|
496 | if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 ) | |
501 | { |
|
497 | { | |
502 | this->Close(); |
|
498 | this->Close(); | |
503 | emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n"); |
|
499 | emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n"); | |
504 | return 0; |
|
500 | return 0; | |
505 | } |
|
501 | } | |
506 |
|
502 | |||
507 | //********************** |
|
503 | //********************** | |
508 | // SEND THE READ COMMAND |
|
504 | // SEND THE READ COMMAND | |
509 | if (nbBytes > 4) |
|
505 | if (nbBytes > 4) | |
510 | { |
|
506 | { | |
511 | RMAPCommand = new RMAP(read_Inc, |
|
507 | RMAPCommand = new RMAP(read_Inc, | |
512 | rmapTargetLogicalAddress, |
|
508 | rmapTargetLogicalAddress, | |
513 | rmapSourceLogicalAddress, |
|
509 | rmapSourceLogicalAddress, | |
514 | address, |
|
510 | address, | |
515 | nbBytes, |
|
511 | nbBytes, | |
516 | NULL); |
|
512 | NULL); | |
517 | } |
|
513 | } | |
518 | else |
|
514 | else | |
519 | { |
|
515 | { | |
520 | RMAPCommand = new RMAP(read_Single, |
|
516 | RMAPCommand = new RMAP(read_Single, | |
521 | rmapTargetLogicalAddress, |
|
517 | rmapTargetLogicalAddress, | |
522 | rmapSourceLogicalAddress, |
|
518 | rmapSourceLogicalAddress, | |
523 | address, |
|
519 | address, | |
524 | nbBytes, |
|
520 | nbBytes, | |
525 | NULL); |
|
521 | NULL); | |
526 | } |
|
522 | } | |
527 | result = USBSpaceWire_SendPacket(hDevice, |
|
523 | result = USBSpaceWire_SendPacket(hDevice, | |
528 | (unsigned char*) ((void*) &RMAPCommand->RMAPHeader), |
|
524 | (unsigned char*) ((void*) &RMAPCommand->RMAPHeader), | |
529 | sizeof(RMAPCommand->RMAPHeader), |
|
525 | sizeof(RMAPCommand->RMAPHeader), | |
530 | BWAIT_1, &pIdentifier); |
|
526 | BWAIT_1, &pIdentifier); | |
531 | if (result != TRANSFER_SUCCESS) emit sendMessage("ERR *** ReadStarDundee *** ReadBLOCK *** sending the READ command "); |
|
527 | if (result != TRANSFER_SUCCESS) emit sendMessage("ERR *** ReadStarDundee *** ReadBLOCK *** sending the READ command "); | |
532 | else emit sendMessage("OK *** ReadStarDundee *** ReadBLOCK *** sending the READ command"); |
|
528 | else emit sendMessage("OK *** ReadStarDundee *** ReadBLOCK *** sending the READ command"); | |
533 |
|
529 | |||
534 | //********************************* |
|
530 | //********************************* | |
535 | // RECEIVE THE INCOMING RMAP PACKET |
|
531 | // RECEIVE THE INCOMING RMAP PACKET | |
536 | errorCode = this->receiveSPWPacket(1); // request ID 1 is for RMAP packet |
|
532 | errorCode = this->receiveSPWPacket(1); // request ID 1 is for RMAP packet | |
537 | if (errorCode<=0) |
|
533 | if (errorCode<=0) | |
538 | { |
|
534 | { | |
539 | emit appendToLog("WARNING === in function ReadBLOCK of StarDundee *** RMAP packet reception failed with code " + QString::number(errorCode)); |
|
535 | emit appendToLog("WARNING === in function ReadBLOCK of StarDundee *** RMAP packet reception failed with code " + QString::number(errorCode)); | |
540 | return 0; |
|
536 | return 0; | |
541 | } |
|
537 | } | |
542 | dataLength = rmapPacketSize - RMAP_READ_REPLY_HEADER_LENGTH - RMAP_DATA_CRC_LENGTH; |
|
538 | dataLength = rmapPacketSize - RMAP_READ_REPLY_HEADER_LENGTH - RMAP_DATA_CRC_LENGTH; | |
543 | if(dataLength != nbBytes) |
|
539 | if(dataLength != nbBytes) | |
544 | { |
|
540 | { | |
545 | emit appendToLog("WARNING === in function READ of StarDundee *** number of data received (" |
|
541 | emit appendToLog("WARNING === in function READ of StarDundee *** number of data received (" | |
546 | +QString::number(dataLength) |
|
542 | +QString::number(dataLength) | |
547 | +") not equal to number of data requested (" |
|
543 | +") not equal to number of data requested (" | |
548 | +QString::number(nbBytes) |
|
544 | +QString::number(nbBytes) | |
549 | +")"); |
|
545 | +")"); | |
550 | return 0; |
|
546 | return 0; | |
551 | } |
|
547 | } | |
552 | return dataLength; |
|
548 | return dataLength; | |
553 | } |
|
549 | } | |
554 |
|
550 | |||
555 | unsigned int StarDundee::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) |
|
551 | unsigned int StarDundee::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) | |
556 | { |
|
552 | { | |
557 | char protocoleIdentifier = 0x02; |
|
553 | char protocoleIdentifier = 0x02; | |
558 | char reserved = 0x00; |
|
554 | char reserved = 0x00; | |
559 | char *SPWData; |
|
555 | char *SPWData; | |
560 | unsigned int totalSize; |
|
556 | unsigned int totalSize; | |
561 |
|
557 | |||
562 | if (count>248) |
|
558 | if (count>248) | |
563 | { |
|
559 | { | |
564 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** CCSDS packet size > 248 bytes\n"); |
|
560 | emit appendToLog("WARNING === in function WRITE of rmapplugin *** CCSDS packet size > 248 bytes\n"); | |
565 | return 1; |
|
561 | return 1; | |
566 | } |
|
562 | } | |
567 |
|
563 | |||
568 | emit appendToLog("*** START *** Send CCSDS packet of "+ QString::number(count) + " byte(s)"); |
|
564 | emit appendToLog("*** START *** Send CCSDS packet of "+ QString::number(count) + " byte(s)"); | |
569 |
|
565 | |||
570 | if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 ) |
|
566 | if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 ) | |
571 | { |
|
567 | { | |
572 | this->Close(); |
|
568 | this->Close(); | |
573 | emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n"); |
|
569 | emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n"); | |
574 | return 1; |
|
570 | return 1; | |
575 | } |
|
571 | } | |
576 |
|
572 | |||
577 | totalSize = count + 4; |
|
573 | totalSize = count + 4; | |
578 | SPWData = (char*) malloc(totalSize); |
|
574 | SPWData = (char*) malloc(totalSize); | |
579 | // SPW HEADER |
|
575 | // SPW HEADER | |
580 | SPWData[0] = targetLogicalAddress; |
|
576 | SPWData[0] = targetLogicalAddress; | |
581 | SPWData[1] = protocoleIdentifier; |
|
577 | SPWData[1] = protocoleIdentifier; | |
582 | SPWData[2] = reserved; |
|
578 | SPWData[2] = reserved; | |
583 | SPWData[3] = userApplication; |
|
579 | SPWData[3] = userApplication; | |
584 | // CCSDS PACKET |
|
580 | // CCSDS PACKET | |
585 | for (unsigned int i = 0; i<count; i++) |
|
581 | for (unsigned int i = 0; i<count; i++) | |
586 | { |
|
582 | { | |
587 | SPWData[i+4] = Value[i]; |
|
583 | SPWData[i+4] = Value[i]; | |
588 | } |
|
584 | } | |
589 |
|
585 | |||
590 | //************ |
|
586 | //************ | |
591 | // SEND THE PACKET |
|
587 | // SEND THE PACKET | |
592 | result = USBSpaceWire_SendPacket(hDevice, |
|
588 | result = USBSpaceWire_SendPacket(hDevice, | |
593 | SPWData, |
|
589 | SPWData, | |
594 | totalSize, |
|
590 | totalSize, | |
595 | BWAIT_1, &pIdentifier); |
|
591 | BWAIT_1, &pIdentifier); | |
596 | if (result != TRANSFER_SUCCESS) |
|
592 | if (result != TRANSFER_SUCCESS) | |
597 | { |
|
593 | { | |
598 | emit sendMessage("ERROR *** WriteSPW when sending packet of size " |
|
594 | emit sendMessage("ERROR *** WriteSPW when sending packet of size " | |
599 | + QString::number(totalSize) +", with code: " + QString::number(result)); |
|
595 | + QString::number(totalSize) +", with code: " + QString::number(result)); | |
600 | USBSpaceWire_FreeSend(hDevice, pIdentifier); |
|
596 | USBSpaceWire_FreeSend(hDevice, pIdentifier); | |
601 | free(SPWData); |
|
597 | free(SPWData); | |
602 | return 0; |
|
598 | return 0; | |
603 | } |
|
599 | } | |
604 | else emit sendMessage("OK *** WriteSPW when sending packet of size " + QString::number(totalSize)); |
|
600 | else emit sendMessage("OK *** WriteSPW when sending packet of size " + QString::number(totalSize)); | |
605 |
|
601 | |||
606 | //************** |
|
602 | //************** | |
607 | // Free the send |
|
603 | // Free the send | |
608 | USBSpaceWire_FreeSend(hDevice, pIdentifier); |
|
604 | USBSpaceWire_FreeSend(hDevice, pIdentifier); | |
609 | free(SPWData); |
|
605 | free(SPWData); | |
610 |
|
606 | |||
611 | emit appendToLog(QString("*** CCSDS packet sent")); |
|
607 | emit appendToLog(QString("*** CCSDS packet sent")); | |
612 |
|
608 | |||
613 | return 1; |
|
609 | return 1; | |
614 | } |
|
610 | } | |
615 |
|
611 | |||
616 | unsigned int StarDundee::getLinkStatus(unsigned char link) |
|
612 | unsigned int StarDundee::getLinkStatus(unsigned char link) | |
617 | { |
|
613 | { | |
618 | U32 statusControl, errorStatus, portType; |
|
614 | U32 statusControl, errorStatus, portType; | |
619 | U32 linkStatus, operatingSpeed, outputPortConnection; |
|
615 | U32 linkStatus, operatingSpeed, outputPortConnection; | |
620 | char isLinkRunning, isAutoStart, isStart, isDisabled, isTristate; |
|
616 | char isLinkRunning, isAutoStart, isStart, isDisabled, isTristate; | |
621 |
|
617 | |||
622 | // Read the link status control register |
|
618 | // Read the link status control register | |
623 | if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS) |
|
619 | if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS) | |
624 | { |
|
620 | { | |
625 | emit appendToLog("Could not read link status control for link" + QString::number(link)); |
|
621 | emit appendToLog("Could not read link status control for link" + QString::number(link)); | |
626 | } |
|
622 | } | |
627 | else |
|
623 | else | |
628 | { |
|
624 | { | |
629 | // Display the link status control register properties |
|
625 | // Display the link status control register properties | |
630 | CFGSpaceWire_LSPortType(statusControl, &portType); |
|
626 | CFGSpaceWire_LSPortType(statusControl, &portType); | |
631 | if (portType == CFG_CONFIGURATION_PORT) |
|
627 | if (portType == CFG_CONFIGURATION_PORT) | |
632 | { |
|
628 | { | |
633 | CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus); |
|
629 | CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus); | |
634 | //emit appendToLog("Configuration port error status = " + QString::number(errorStatus)); |
|
630 | //emit appendToLog("Configuration port error status = " + QString::number(errorStatus)); | |
635 | } |
|
631 | } | |
636 | else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT) |
|
632 | else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT) | |
637 | { |
|
633 | { | |
638 | CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus); |
|
634 | CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus); | |
639 | //emit appendToLog("External port error status = " + QString::number(errorStatus)); |
|
635 | //emit appendToLog("External port error status = " + QString::number(errorStatus)); | |
640 | } |
|
636 | } | |
641 | else |
|
637 | else | |
642 | { |
|
638 | { | |
643 | CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus); |
|
639 | CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus); | |
644 | //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus)); |
|
640 | //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus)); | |
645 | } |
|
641 | } | |
646 | CFGSpaceWire_LSLinkState(statusControl, &linkStatus); |
|
642 | CFGSpaceWire_LSLinkState(statusControl, &linkStatus); | |
647 | CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning); |
|
643 | CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning); | |
648 | CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart); |
|
644 | CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart); | |
649 | CFGSpaceWire_LSIsStart(statusControl, &isStart); |
|
645 | CFGSpaceWire_LSIsStart(statusControl, &isStart); | |
650 | CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled); |
|
646 | CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled); | |
651 | CFGSpaceWire_LSIsTristate(statusControl, &isTristate); |
|
647 | CFGSpaceWire_LSIsTristate(statusControl, &isTristate); | |
652 | CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed); |
|
648 | CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed); | |
653 | CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection); |
|
649 | CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection); | |
654 | //emit appendToLog("The link state is = " + QString::number(linkStatus)); |
|
650 | //emit appendToLog("The link state is = " + QString::number(linkStatus)); | |
655 | //emit appendToLog("The link is running = " + QString::number(isLinkRunning)); |
|
651 | //emit appendToLog("The link is running = " + QString::number(isLinkRunning)); | |
656 | //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart)); |
|
652 | //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart)); | |
657 | //emit appendToLog("The start bit is enabled = " + QString::number(isStart)); |
|
653 | //emit appendToLog("The start bit is enabled = " + QString::number(isStart)); | |
658 | //emit appendToLog("The link is disabled = " + QString::number(isDisabled)); |
|
654 | //emit appendToLog("The link is disabled = " + QString::number(isDisabled)); | |
659 | //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart)); |
|
655 | //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart)); | |
660 | //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed)); |
|
656 | //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed)); | |
661 | //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection)); |
|
657 | //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection)); | |
662 | } |
|
658 | } | |
663 | if (linkStatus == 5) return 1; |
|
659 | if (linkStatus == 5) return 1; | |
664 | else return 0; |
|
660 | else return 0; | |
665 | } |
|
661 | } | |
666 |
|
662 | |||
667 | int StarDundee::receiveSPWPacket(unsigned char requestID) // SLOT |
|
663 | int StarDundee::receiveSPWPacket(unsigned char requestID) // SLOT | |
668 | { |
|
664 | { | |
669 | unsigned int packetLength; |
|
665 | unsigned int packetLength; | |
670 | unsigned int nbBytes; |
|
666 | unsigned int nbBytes; | |
671 | unsigned nPacketNum; |
|
667 | unsigned nPacketNum; | |
672 | USB_SPACEWIRE_PACKET_PROPERTIES properties; // The properties of the read |
|
668 | USB_SPACEWIRE_PACKET_PROPERTIES properties; // The properties of the read | |
673 |
|
669 | |||
674 | if (requestID==1) |
|
670 | if (requestID==1) | |
675 | { |
|
671 | { | |
676 | if (rmapPacketSEMAPHORE->available()) return rmapPacketSize; |
|
672 | if (rmapPacketSEMAPHORE->available()) return rmapPacketSize; | |
677 | } |
|
673 | } | |
678 |
|
674 | |||
679 | //******************** |
|
675 | //******************** | |
680 | // TRY TO RECEIVE DATA |
|
676 | // TRY TO RECEIVE DATA | |
681 | nbBytes = qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH); // maximum size of the packet to receive |
|
677 | nbBytes = qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH); // maximum size of the packet to receive | |
682 | nPacketNum = 1; |
|
678 | nPacketNum = 1; | |
683 | result = USBSpaceWire_ReadPackets(hDevice, spwPacket, nbBytes, nPacketNum, BWAIT_1, &properties, &pIdentifier); |
|
679 | result = USBSpaceWire_ReadPackets(hDevice, spwPacket, nbBytes, nPacketNum, BWAIT_1, &properties, &pIdentifier); | |
684 | if (result != TRANSFER_SUCCESS) emit sendMessage("Error: Could not receive the packet"); |
|
680 | if (result != TRANSFER_SUCCESS) emit sendMessage("Error: Could not receive the packet"); | |
685 | else |
|
681 | else | |
686 | { |
|
682 | { | |
687 | emit sendMessage("A packet of length " + QString::number(properties.len) + " has been successfully received"); |
|
683 | emit sendMessage("A packet of length " + QString::number(properties.len) + " has been successfully received"); | |
688 | USBSpaceWire_FreeRead(hDevice, pIdentifier); // Free the receive |
|
684 | USBSpaceWire_FreeRead(hDevice, pIdentifier); // Free the receive | |
689 | } |
|
685 | } | |
690 | packetLength = properties.len; |
|
686 | packetLength = properties.len; | |
691 |
|
687 | |||
692 | switch(spwPacket[1]) // byte 1 is the protocole identifier in the SPW packet |
|
688 | switch(spwPacket[1]) // byte 1 is the protocole identifier in the SPW packet | |
693 | { |
|
689 | { | |
694 | case 1: // 0x01 is the protocole identifier for RMAP packets |
|
690 | case 1: // 0x01 is the protocole identifier for RMAP packets | |
695 | if (rmapPacketSEMAPHORE->available()!=0) return -3; // ERROR === previous RMAP packet not processed yet |
|
691 | if (rmapPacketSEMAPHORE->available()!=0) return -3; // ERROR === previous RMAP packet not processed yet | |
696 | for(unsigned int i=0; i<packetLength; i++) rmapPacket[i] = spwPacket[i]; |
|
692 | for(unsigned int i=0; i<packetLength; i++) rmapPacket[i] = spwPacket[i]; | |
697 | rmapPacketSize = packetLength; |
|
693 | rmapPacketSize = packetLength; | |
698 | rmapPacketSEMAPHORE->release(); |
|
694 | rmapPacketSEMAPHORE->release(); | |
699 | emit sendMessage("RMAP packet of size " + QString::number(packetLength) + " received"); |
|
695 | emit sendMessage("RMAP packet of size " + QString::number(packetLength) + " received"); | |
700 | return packetLength; |
|
696 | return packetLength; | |
701 |
|
697 | |||
702 | case 2: // 0x02 is the protocole identifier for CCSDS packets |
|
698 | case 2: // 0x02 is the protocole identifier for CCSDS packets | |
703 | if (ccsdsPacketSEMAPHORE->available()!=0) return -4; // ERROR === previous CCSDS packet not processed yet |
|
699 | if (ccsdsPacketSEMAPHORE->available()!=0) return -4; // ERROR === previous CCSDS packet not processed yet | |
704 | for(unsigned int i=0; i<packetLength; i++) ccsdsPacket[i] = spwPacket[i]; |
|
700 | for(unsigned int i=0; i<packetLength; i++) ccsdsPacket[i] = spwPacket[i]; | |
705 | ccsdsPacketSize = packetLength; |
|
701 | ccsdsPacketSize = packetLength; | |
706 | ccsdsPacketSEMAPHORE->release(); |
|
702 | ccsdsPacketSEMAPHORE->release(); | |
707 | emit(ccsdsPacketAvailable(ccsdsPacket, packetLength)); |
|
703 | emit(ccsdsPacketAvailable(ccsdsPacket, packetLength)); | |
708 | return packetLength; |
|
704 | return packetLength; | |
709 | } |
|
705 | } | |
710 | return 0; |
|
706 | return 0; | |
711 | } |
|
707 | } | |
712 |
|
708 | |||
713 |
|
709 |
@@ -1,82 +1,81 | |||||
1 | #ifndef STARDUNDEE_H |
|
1 | #ifndef STARDUNDEE_H | |
2 | #define STARDUNDEE_H |
|
2 | #define STARDUNDEE_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include "spw_usb_api.h" |
|
5 | #include "spw_usb_api.h" | |
6 | #include "spw_config_library.h" |
|
6 | #include "spw_config_library.h" | |
7 | #include <QPushButton> |
|
7 | #include <QPushButton> | |
8 | #include <QGridLayout> |
|
8 | #include <QGridLayout> | |
9 | #include <QSpinBox> |
|
9 | #include <QSpinBox> | |
10 | #include <QLabel> |
|
10 | #include <QLabel> | |
11 | #include <QSemaphore> |
|
11 | #include <QSemaphore> | |
12 | #include "rmapoperations.h" |
|
12 | #include "rmapoperations.h" | |
13 |
|
13 | |||
14 | #define BWAIT_0 0 |
|
14 | #define BWAIT_0 0 | |
15 | #define BWAIT_1 1 |
|
15 | #define BWAIT_1 1 | |
16 |
|
16 | |||
17 | class StarDundee : public QWidget |
|
17 | class StarDundee : public QWidget | |
18 | { |
|
18 | { | |
19 | Q_OBJECT |
|
19 | Q_OBJECT | |
20 | public: |
|
20 | public: | |
21 | explicit StarDundee(QWidget *parent = 0); |
|
21 | explicit StarDundee(QWidget *parent = 0); | |
22 | ~StarDundee(); |
|
22 | ~StarDundee(); | |
23 | unsigned int Write(unsigned int *Value,unsigned int count,unsigned int address=0); |
|
23 | unsigned int Write(unsigned int *Value,unsigned int count,unsigned int address=0); | |
24 | unsigned int Read(unsigned int *Value,unsigned int count,unsigned int address=0); |
|
24 | unsigned int Read(unsigned int *Value,unsigned int count,unsigned int address=0); | |
25 | unsigned int WriteStarDundee(unsigned int *Value, unsigned int count, unsigned int address); |
|
|||
26 | unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); |
|
25 | unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication); | |
27 | unsigned int getLinkStatus(unsigned char link); |
|
|||
28 |
|
26 | |||
29 | signals: |
|
27 | signals: | |
30 | void sendMessage(QString message); |
|
28 | void sendMessage(QString message); | |
31 | void isOpen(bool); |
|
29 | void isOpen(bool); | |
32 | void RMAP_write_reply_setText(QString); |
|
30 | void RMAP_write_reply_setText(QString); | |
33 | void appendToLog(QString); |
|
31 | void appendToLog(QString); | |
34 | void ccsdsPacketAvailable(unsigned char*, unsigned int); |
|
32 | void ccsdsPacketAvailable(unsigned char*, unsigned int); | |
35 |
|
33 | |||
36 | public slots: |
|
34 | public slots: | |
37 |
|
|
35 | void Open(); | |
38 |
|
|
36 | void Close(); | |
39 | int receiveSPWPacket(unsigned char requestID); |
|
37 | int receiveSPWPacket(unsigned char requestID); | |
40 | void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;} |
|
38 | void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;} | |
41 | void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;} |
|
39 | void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;} | |
42 | void sourceHasChanged(int target) {rmapSourceLogicalAddress = (unsigned char) target;} |
|
40 | void sourceHasChanged(int target) {rmapSourceLogicalAddress = (unsigned char) target;} | |
43 |
|
41 | |||
44 | private: |
|
42 | private: | |
|
43 | unsigned int getLinkStatus(unsigned char link); | |||
45 | unsigned int GetRoutingTableEntry(); |
|
44 | unsigned int GetRoutingTableEntry(); | |
46 | unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0); |
|
45 | unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0); | |
47 | unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0); |
|
46 | unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0); | |
48 | void acquireRMAPSemaphore() {rmapPacketSEMAPHORE->acquire();} |
|
47 | void acquireRMAPSemaphore() {rmapPacketSEMAPHORE->acquire();} | |
49 | void acquireCCSDSSemaphore() {ccsdsPacketSEMAPHORE->acquire();} |
|
48 | void acquireCCSDSSemaphore() {ccsdsPacketSEMAPHORE->acquire();} | |
50 |
|
49 | |||
51 | unsigned char rmapTargetLogicalAddress ; |
|
50 | unsigned char rmapTargetLogicalAddress ; | |
52 | unsigned char rmapSourceLogicalAddress ; |
|
51 | unsigned char rmapSourceLogicalAddress ; | |
53 |
|
52 | |||
54 | RMAP_command_codes commandCode; |
|
53 | RMAP_command_codes commandCode; | |
55 |
|
54 | |||
56 | QLabel *usbDeviceNumber_LABEL; |
|
55 | QLabel *usbDeviceNumber_LABEL; | |
57 | QLabel *linkNumber_LABEL; |
|
56 | QLabel *linkNumber_LABEL; | |
58 | QLabel *sourceLogicalAddress_LABEL; |
|
57 | QLabel *sourceLogicalAddress_LABEL; | |
59 |
|
58 | |||
60 | QSpinBox *usbDeviceNumber_SPINBOX; |
|
59 | QSpinBox *usbDeviceNumber_SPINBOX; | |
61 | QSpinBox *linkNumber_SPINBOX; |
|
60 | QSpinBox *linkNumber_SPINBOX; | |
62 | QSpinBox *sourceLogicalAddress_SPINBOX; |
|
61 | QSpinBox *sourceLogicalAddress_SPINBOX; | |
63 |
|
62 | |||
64 | QGridLayout *connection_LAYOUT; |
|
63 | QGridLayout *connection_LAYOUT; | |
65 |
|
64 | |||
66 | unsigned char pBuffer[10]; // Pointer to the start of the user buffer from which to transmit data |
|
65 | unsigned char pBuffer[10]; // Pointer to the start of the user buffer from which to transmit data | |
67 | USB_SPACEWIRE_ID pIdentifier; // A pointer to a variable which will be set to contain a unique identifier for the send |
|
66 | USB_SPACEWIRE_ID pIdentifier; // A pointer to a variable which will be set to contain a unique identifier for the send | |
68 |
|
67 | |||
69 | star_device_handle hDevice; // Handle to the SpaceWire device |
|
68 | star_device_handle hDevice; // Handle to the SpaceWire device | |
70 | USB_SPACEWIRE_STATUS result; // The result of the send operation |
|
69 | USB_SPACEWIRE_STATUS result; // The result of the send operation | |
71 |
|
70 | |||
72 | // Packet receiver |
|
71 | // Packet receiver | |
73 | QSemaphore *rmapPacketSEMAPHORE; |
|
72 | QSemaphore *rmapPacketSEMAPHORE; | |
74 | QSemaphore *ccsdsPacketSEMAPHORE; |
|
73 | QSemaphore *ccsdsPacketSEMAPHORE; | |
75 | char* rmapPacket; // The buffer to receive RMAP READ packets |
|
74 | char* rmapPacket; // The buffer to receive RMAP READ packets | |
76 | unsigned char *ccsdsPacket; |
|
75 | unsigned char *ccsdsPacket; | |
77 | char *spwPacket; |
|
76 | char *spwPacket; | |
78 | unsigned int rmapPacketSize; |
|
77 | unsigned int rmapPacketSize; | |
79 | unsigned int ccsdsPacketSize; |
|
78 | unsigned int ccsdsPacketSize; | |
80 | }; |
|
79 | }; | |
81 |
|
80 | |||
82 | #endif // STARDUNDEE_H |
|
81 | #endif // STARDUNDEE_H |
General Comments 0
You need to be logged in to leave comments.
Login now