##// END OF EJS Templates
Minor changes
leroy -
r5:ead10fa095b7 default
parent child
Show More
@@ -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: Thu Nov 29 14:02:20 2012
3 # Generated by qmake (2.01a) (Qt 4.8.3) on: Mon Dec 10 07:51:52 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,11 +1,10
1 TEMPLATE = subdirs
1 TEMPLATE = subdirs
2 CONFIG += ordered
2 CONFIG += ordered
3
3
4 win32:LPPMONCFG = /opt/lppmon
4 win32:LPPMONCFG = /opt/lppmon
5 unix:LPPMONCFG = /etc/lppmon
5 unix:LPPMONCFG = /etc/lppmon
6
6
7 SUBDIRS = \
7 SUBDIRS = \
8 rmapplugin
8 rmapplugin
9
9
10
11 #include( $${LPPMONCFG}/lppmonplugin.prf)
10 #include( $${LPPMONCFG}/lppmonplugin.prf)
@@ -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-07T14:08:53. -->
3 <!-- Written by Qt Creator 2.4.1, 2012-12-10T08:03:59. -->
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,449
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 13:45:43 2012
3 # Generated by qmake (2.01a) (Qt 4.8.3) on: Mon Dec 10 07:51:52 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: stardundee.h
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: rmapoperations.h \
305 bridge.h
306 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) bridge.h -o moc/moc_bridge.cpp
307
297 moc/moc_genericPySysdriver.cpp: /usr/include/genericPySysdriver.h
308 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
309 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp
299
310
300 moc/moc_lppmonplugin.cpp: /usr/include/lppmonplugin.h
311 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
312 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmonplugin.h -o moc/moc_lppmonplugin.cpp
302
313
303 compiler_rcc_make_all:
314 compiler_rcc_make_all:
304 compiler_rcc_clean:
315 compiler_rcc_clean:
305 compiler_image_collection_make_all: qmake_image_collection.cpp
316 compiler_image_collection_make_all: qmake_image_collection.cpp
306 compiler_image_collection_clean:
317 compiler_image_collection_clean:
307 -$(DEL_FILE) qmake_image_collection.cpp
318 -$(DEL_FILE) qmake_image_collection.cpp
308 compiler_moc_source_make_all:
319 compiler_moc_source_make_all:
309 compiler_moc_source_clean:
320 compiler_moc_source_clean:
310 compiler_uic_make_all:
321 compiler_uic_make_all:
311 compiler_uic_clean:
322 compiler_uic_clean:
312 compiler_yacc_decl_make_all:
323 compiler_yacc_decl_make_all:
313 compiler_yacc_decl_clean:
324 compiler_yacc_decl_clean:
314 compiler_yacc_impl_make_all:
325 compiler_yacc_impl_make_all:
315 compiler_yacc_impl_clean:
326 compiler_yacc_impl_clean:
316 compiler_lex_make_all:
327 compiler_lex_make_all:
317 compiler_lex_clean:
328 compiler_lex_clean:
318 compiler_clean: compiler_moc_header_clean
329 compiler_clean: compiler_moc_header_clean
319
330
320 ####### Compile
331 ####### Compile
321
332
322 obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \
333 obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \
323 rmappluginui.h \
334 rmappluginui.h \
324 rmapoperations.h \
335 rmapoperations.h \
325 spectralmatricesdmasimulator.h \
336 spectralmatricesdmasimulator.h \
326 stardundee.h \
337 stardundee.h \
338 gresb.h \
327 ccsds.h \
339 ccsds.h \
328 spwpacketreceiver.h \
340 spwpacketreceiver.h \
329 rmappluginpythonwrapper.h
341 rmappluginpythonwrapper.h
330 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp
342 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp
331
343
332 obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \
344 obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \
333 rmappluginui.h \
345 rmappluginui.h \
334 rmapoperations.h \
346 rmapoperations.h \
335 spectralmatricesdmasimulator.h \
347 spectralmatricesdmasimulator.h \
336 stardundee.h \
348 stardundee.h \
349 gresb.h \
337 ccsds.h \
350 ccsds.h \
338 spwpacketreceiver.h
351 spwpacketreceiver.h
339 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp
352 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp
340
353
341 obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h
354 obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h
342 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp
355 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp
343
356
344 obj/ccsds.o: ccsds.cpp ccsds.h
357 obj/ccsds.o: ccsds.cpp ccsds.h
345 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp
358 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp
346
359
347 obj/spwpacketreceiver.o: spwpacketreceiver.cpp spwpacketreceiver.h
360 obj/spwpacketreceiver.o: spwpacketreceiver.cpp spwpacketreceiver.h \
361 rmapoperations.h
348 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spwpacketreceiver.o spwpacketreceiver.cpp
362 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spwpacketreceiver.o spwpacketreceiver.cpp
349
363
350 obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
364 obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
351 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp
365 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp
352
366
353 obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h
367 obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h
354 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp
368 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp
355
369
356 obj/spectralmatricesdmasimulator.o: spectralmatricesdmasimulator.cpp spectralmatricesdmasimulator.h
370 obj/spectralmatricesdmasimulator.o: spectralmatricesdmasimulator.cpp spectralmatricesdmasimulator.h
357 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spectralmatricesdmasimulator.o spectralmatricesdmasimulator.cpp
371 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/spectralmatricesdmasimulator.o spectralmatricesdmasimulator.cpp
358
372
359 obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h
373 obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h
360 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp
374 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp
361
375
362 obj/stardundee.o: stardundee.cpp stardundee.h \
376 obj/stardundee.o: stardundee.cpp stardundee.h \
363 rmapoperations.h
377 rmapoperations.h
364 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp
378 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp
365
379
366 obj/gresb.o: gresb.cpp gresb.h
380 obj/gresb.o: gresb.cpp gresb.h
367 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp
381 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp
368
382
383 obj/bridge.o: bridge.cpp bridge.h \
384 rmapoperations.h
385 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/bridge.o bridge.cpp
386
369 obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \
387 obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \
370 /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h
388 /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h
371 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp
389 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp
372
390
373 obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp
391 obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp
374 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp
392 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp
375
393
376 obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp
394 obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp
377 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp
395 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp
378
396
379 obj/moc_spwpacketreceiver.o: moc/moc_spwpacketreceiver.cpp
397 obj/moc_spwpacketreceiver.o: moc/moc_spwpacketreceiver.cpp
380 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spwpacketreceiver.o moc/moc_spwpacketreceiver.cpp
398 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spwpacketreceiver.o moc/moc_spwpacketreceiver.cpp
381
399
382 obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp
400 obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp
383 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp
401 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp
384
402
385 obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp
403 obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp
386 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp
404 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp
387
405
388 obj/moc_spectralmatricesdmasimulator.o: moc/moc_spectralmatricesdmasimulator.cpp
406 obj/moc_spectralmatricesdmasimulator.o: moc/moc_spectralmatricesdmasimulator.cpp
389 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spectralmatricesdmasimulator.o moc/moc_spectralmatricesdmasimulator.cpp
407 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_spectralmatricesdmasimulator.o moc/moc_spectralmatricesdmasimulator.cpp
390
408
391 obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp
409 obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp
392 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp
410 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp
393
411
394 obj/moc_stardundee.o: moc/moc_stardundee.cpp
412 obj/moc_stardundee.o: moc/moc_stardundee.cpp
395 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp
413 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp
396
414
397 obj/moc_gresb.o: moc/moc_gresb.cpp
415 obj/moc_gresb.o: moc/moc_gresb.cpp
398 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp
416 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp
399
417
418 obj/moc_bridge.o: moc/moc_bridge.cpp
419 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_bridge.o moc/moc_bridge.cpp
420
400 obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp
421 obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp
401 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp
422 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp
402
423
403 obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp
424 obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp
404 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp
425 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp
405
426
406 ####### Install
427 ####### Install
407
428
408 install_target: first FORCE
429 install_target: first FORCE
409 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
430 @$(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)"
431 -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
411 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
432 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
412 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
433 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
413 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
434 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
414
435
415 uninstall_target: FORCE
436 uninstall_target: FORCE
416 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
437 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
417 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
438 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
418 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
439 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
419 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
440 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
420 -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
441 -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
421
442
422
443
423 install: install_target FORCE
444 install: install_target FORCE
424
445
425 uninstall: uninstall_target FORCE
446 uninstall: uninstall_target FORCE
426
447
427 FORCE:
448 FORCE:
428
449
@@ -1,6 +1,156
1 #include "bridge.h"
1 #include "bridge.h"
2
2
3 bridge::bridge(QWidget *parent) :
3 bridge::bridge(QWidget *parent) :
4 QWidget(parent)
4 QWidget(parent)
5 {
5 {
6 // Packet receiver
7 rmapPacketSEMAPHORE = new QSemaphore;
8 ccsdsPacketSEMAPHORE = new QSemaphore;
9 rmapPacket = (char*) malloc(RMAP_MAX_PACKET_LENGTH);
10 ccsdsPacket = (unsigned char*) malloc(CCSDS_MAX_PACKET_LENGTH);
11 spwPacket = (char*) malloc( qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH) );
12
13 bridge_LAYOUT = new QGridLayout;
6 }
14 }
15
16 bridge::~bridge()
17 {
18 free(rmapPacket);
19 free(ccsdsPacket);
20 free(spwPacket);
21 }
22
23 unsigned int bridge::Write(unsigned int *Value, unsigned int count, unsigned int address)
24 {
25 unsigned int remainingCount = count;
26 unsigned int iOffset = 0;
27 QString console_message;
28 char* data;
29
30 if(rmapPacketSEMAPHORE->available()!=0)
31 {
32 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP request already running, WRITE access stopped");
33 return 1;
34 }
35
36 emit this->RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
37
38 data = (char*) malloc(READ_WRITE_MAX_COUNTS*4);
39
40 emit appendToLog(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
41
42 while (remainingCount > READ_WRITE_MAX_COUNTS)
43 {
44 for (int i = 0; i<READ_WRITE_MAX_COUNTS; i++)
45 {
46 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
47 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
48 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
49 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
50 }
51
52 console_message.sprintf("remainingCount: %d => ", remainingCount);
53 emit appendToLog(console_message + QString("Write ")+ QString::number(READ_WRITE_MAX_COUNTS*4) + QString(" byte(s) @0x")+ QString::number(address,16));
54
55 if(WriteBLOCK(data, READ_WRITE_MAX_COUNTS*4, address)==0)
56 {
57 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
58 return 1;
59 }
60
61 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
62 address = address + READ_WRITE_MAX_COUNTS * 4;
63 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
64 }
65
66 if (remainingCount > 0)
67 {
68 for (unsigned int i = 0; i<remainingCount; i++)
69 {
70 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
71 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
72 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
73 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
74 }
75
76 console_message.sprintf("remainingCount: %d => ", remainingCount);
77 emit appendToLog(console_message + QString("Write ")+ QString::number(remainingCount*4) + QString(" byte(s) @0x")+ QString::number(address,16));
78
79 if (WriteBLOCK(data, remainingCount*4, address)==0)
80 {
81 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
82 return 1;
83 }
84 }
85
86 emit appendToLog(QString("*** STOP *** WRITE"));
87 free(data);
88 return count;
89 }
90
91 unsigned int bridge::Read(unsigned int *Value, unsigned int count, unsigned int address)
92 {
93 unsigned int remainingCount = count;
94 unsigned int iOffset = 0;
95 QString console_message;
96
97 if(rmapPacketSEMAPHORE->available()!=0)
98 {
99 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP request already running, READ access stopped");
100 return 1;
101 }
102 emit appendToLog(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
103
104 while (remainingCount > READ_WRITE_MAX_COUNTS)
105 {
106 console_message.sprintf("remainingCount: %d => ", remainingCount);
107 emit appendToLog(console_message + QString("Read ")+ QString::number(4*READ_WRITE_MAX_COUNTS) + QString(" byte(s) @0x")+ QString::number(address,16));
108
109 if (this->ReadBLOCK(READ_WRITE_MAX_COUNTS*4, address)==0)
110 {
111 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
112 return 1;
113 }
114
115 for(int i=0;i<READ_WRITE_MAX_COUNTS;i++)
116 {
117 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
118 for(int j=1;j<4;j++)
119 {
120 Value[i+iOffset]= ((unsigned char) (rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH]))
121 + Value[i+iOffset]*256;
122 }
123 }
124
125 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
126 address = address + READ_WRITE_MAX_COUNTS * 4;
127 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
128 rmapPacketSEMAPHORE->acquire();
129 }
130
131 if (remainingCount > 0)
132 {
133 console_message.sprintf("remainingCount: %d => ", remainingCount);
134 emit appendToLog(console_message + QString("Read ")+ QString::number(4*remainingCount) + QString(" byte(s) @0x")+ QString::number(address,16));
135
136 if (this->ReadBLOCK(4*remainingCount, address)==0)
137 {
138 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
139 return 1;
140 }
141
142 for(unsigned int i=0;i<remainingCount;i++)
143 {
144 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
145 for(int j=1;j<4;j++)
146 {
147 Value[i+iOffset]= ((unsigned char)(rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) + Value[i+iOffset]*256;
148 }
149 }
150 rmapPacketSEMAPHORE->acquire();
151 }
152
153 emit appendToLog(QString("*** STOP *** READ "));
154 return count;
155 }
156
@@ -1,18 +1,54
1 #ifndef BRIDGE_H
1 #ifndef BRIDGE_H
2 #define BRIDGE_H
2 #define BRIDGE_H
3
3
4 #include <QWidget>
4 #include <QWidget>
5 #include <QSemaphore>
6 #include <QGridLayout>
7 #include "rmapoperations.h"
5
8
6 class bridge : public QWidget
9 class bridge : public QWidget
7 {
10 {
8 Q_OBJECT
11 Q_OBJECT
9 public:
12 public:
10 explicit bridge(QWidget *parent = 0);
13 explicit bridge(QWidget *parent = 0);
11
14 ~bridge();
15 unsigned int Write(unsigned int *Value,unsigned int count,unsigned int address=0);
16 unsigned int Read(unsigned int *Value,unsigned int count,unsigned int address=0);
17 virtual unsigned int WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication);
18 virtual unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0) = 0;
19 virtual unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0) = 0;
20 virtual unsigned int getLinkStatus(unsigned char link) = 0;
21
22 unsigned char rmapTargetLogicalAddress ;
23 unsigned char rmapSourceLogicalAddress ;
24
25 RMAP_command_codes commandCode;
26
27 QGridLayout *bridge_LAYOUT;
28
29 QSemaphore *rmapPacketSEMAPHORE;
30 QSemaphore *ccsdsPacketSEMAPHORE;
31
32 char *spwPacket;
33 char* rmapPacket;
34 unsigned char *ccsdsPacket;
35
12 signals:
36 signals:
37 void sendMessage(QString message);
38 void isOpen(bool);
39 void RMAP_write_reply_setText(QString);
40 void appendToLog(QString);
41 void ccsdsPacketAvailable(unsigned char*, unsigned int);
13
42
14 public slots:
43 public slots:
15
44 unsigned int Open();
45 unsigned int Close();
46 virtual int receiveSPWPacket(unsigned char requestID) = 0;
47 void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;}
48 void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;}
49 void sourceHasChanged(int target) {rmapSourceLogicalAddress = (unsigned char) target;}
50
51 private:
16 };
52 };
17
53
18 #endif // BRIDGE_H
54 #endif // BRIDGE_H
@@ -1,40 +1,45
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 "qipdialogbox.h"
9 #include "qipdialogbox.h"
10
10
11 class gresb : public QWidget
11 class gresb : public QWidget
12 {
12 {
13 Q_OBJECT
13 Q_OBJECT
14 public:
14 public:
15 explicit gresb(QWidget *parent = 0);
15 explicit gresb(QWidget *parent = 0);
16
16
17 signals:
17 signals:
18
18
19 public slots:
19 public slots:
20
20
21 private:
21 private:
22 //*******************
23 // specific functions
24
25 //*****************
26 // specific members
22 QLabel *gresbBridgeIPLabel;
27 QLabel *gresbBridgeIPLabel;
23 QLabel *gresbVirtualLinkLabel;
28 QLabel *gresbVirtualLinkLabel;
24 QLabel *spwLinkLabel;
29 QLabel *spwLinkLabel;
25 QLabel *rmapSourceLogicalAddressLabel;
30 QLabel *rmapSourceLogicalAddressLabel;
26 QLabel *rmapSendStateLabel;
31 QLabel *rmapSendStateLabel;
27 QLabel *rmapReceiveStateLabel;
32 QLabel *rmapReceiveStateLabel;
28 QLabel *gresbStatusQueryLabel;
33 QLabel *gresbStatusQueryLabel;
29
34
30 QIPDialogBox* gresbBridgeIPDialogBox;
35 QIPDialogBox* gresbBridgeIPDialogBox;
31
36
32 QSpinBox *gresbVirtualLinkSpinBox;
37 QSpinBox *gresbVirtualLinkSpinBox;
33 QSpinBox *spwLinkSpinBox;
38 QSpinBox *spwLinkSpinBox;
34 QSpinBox *rmapSourceLogicalAddressSpinBox;
39 QSpinBox *rmapSourceLogicalAddressSpinBox;
35
40
36 QGridLayout *connectionLayout;
41 QGridLayout *connectionLayout;
37
42
38 };
43 };
39
44
40 #endif // GRESB_H
45 #endif // GRESB_H
@@ -1,75 +1,72
1 #
1 #
2 # Project created by QtCreator 2011-09-20T08:15:30
2 # Project created by QtCreator 2011-09-20T08:15:30
3 #
3 #
4 #-------------------------------------------------
4 #-------------------------------------------------
5
5
6 #include(/etc/lppmon/lppmonplugin.prf)
6 #include(/etc/lppmon/lppmonplugin.prf)
7 CONFIG += lppmonplugin
7 CONFIG += lppmonplugin
8 TARGET = rmapplugin
8 TARGET = rmapplugin
9
9
10 DEFINES += PLUGIN=rmapplugin
10 DEFINES += PLUGIN=rmapplugin
11 DEFINES += PLUGINHEADER="\"\\\"rmapplugin.h"\\\"\"
11 DEFINES += PLUGINHEADER="\"\\\"rmapplugin.h"\\\"\"
12 DEFINES += driver_Name="\"\\\"RMAPPlugin"\\\"\"
12 DEFINES += driver_Name="\"\\\"RMAPPlugin"\\\"\"
13 DEFINES += driver_Author="\"\\\"Paul Leroy paul.leroy@lpp.polytechnique.fr"\\\"\"
13 DEFINES += driver_Author="\"\\\"Paul Leroy paul.leroy@lpp.polytechnique.fr"\\\"\"
14 DEFINES += driver_Version="\"\\\"1.1.2"\\\"\"
14 DEFINES += driver_Version="\"\\\"1.1.2"\\\"\"
15 DEFINES += driver_Description="\"\\\"AHB bus controler, works with Gaisler's AHB plugn' play bus."\\\"\"
15 DEFINES += driver_Description="\"\\\"AHB bus controler, works with Gaisler's AHB plugn' play bus."\\\"\"
16 DEFINES += driver_can_be_root=1
16 DEFINES += driver_can_be_root=1
17 DEFINES += driver_can_be_child=0
17 DEFINES += driver_can_be_child=0
18 DEFINES += driver_VID=0
18 DEFINES += driver_VID=0
19 DEFINES += driver_PID=0
19 DEFINES += driver_PID=0
20
20
21
22 QT += network
21 QT += network
23
22
24
25 LIBS += ../spw_usb_driver_v2.61/lib/x86_64/libSpaceWireUSBAPI.so \
23 LIBS += ../spw_usb_driver_v2.61/lib/x86_64/libSpaceWireUSBAPI.so \
26 ../spw_usb_driver_v2.61/lib/x86_64/libConfigLibraryUSB.so
24 ../spw_usb_driver_v2.61/lib/x86_64/libConfigLibraryUSB.so
27
25
28
26
29 INCLUDEPATH += \
27 INCLUDEPATH += \
30 $${PWD} \
28 $${PWD} \
31 ../common_PLE \
29 ../common_PLE \
32 ../spw_usb_driver_v2.61/inc
30 ../spw_usb_driver_v2.61/inc
33
31
34
32
35 HEADERS += \
33 HEADERS += \
36 rmappluginui.h \
34 rmappluginui.h \
37 rmapplugin.h \
35 rmapplugin.h \
38 rmapoperations.h \
36 rmapoperations.h \
39 ccsds.h \
37 ccsds.h \
40 spwpacketreceiver.h \
38 spwpacketreceiver.h \
41 ../common_PLE/qipdialogbox.h \
39 ../common_PLE/qipdialogbox.h \
42 ../common_PLE/gresbstatusenquiry.h \
40 ../common_PLE/gresbstatusenquiry.h \
43 spectralmatricesdmasimulator.h \
41 spectralmatricesdmasimulator.h \
44 rmappluginpythonwrapper.h \
42 rmappluginpythonwrapper.h \
45 stardundee.h \
43 stardundee.h \
46 ../spw_usb_driver_v2.61/inc/spw_usb_api.h \
44 ../spw_usb_driver_v2.61/inc/spw_usb_api.h \
47 ../spw_usb_driver_v2.61/inc/spw_config_library.h \
45 ../spw_usb_driver_v2.61/inc/spw_config_library.h \
48 gresb.h \
46 gresb.h \
49 bridge.h
47 bridge.h
50
48
51
49
52 SOURCES += \
50 SOURCES += \
53 rmapplugin.cpp \
51 rmapplugin.cpp \
54 rmappluginui.cpp \
52 rmappluginui.cpp \
55 rmapoperations.cpp \
53 rmapoperations.cpp \
56 ccsds.cpp \
54 ccsds.cpp \
57 spwpacketreceiver.cpp \
55 spwpacketreceiver.cpp \
58 ../common_PLE/qipdialogbox.cpp \
56 ../common_PLE/qipdialogbox.cpp \
59 ../common_PLE/gresbstatusenquiry.cpp \
57 ../common_PLE/gresbstatusenquiry.cpp \
60 spectralmatricesdmasimulator.cpp \
58 spectralmatricesdmasimulator.cpp \
61 rmappluginpythonwrapper.cpp \
59 rmappluginpythonwrapper.cpp \
62 stardundee.cpp \
60 stardundee.cpp \
63 gresb.cpp \
61 gresb.cpp \
64 bridge.cpp
62 bridge.cpp
65
63
66
64
67
65
68
66
69
67
70
68
71
69
72
70
73
71
74
72
75
@@ -1,713 +1,712
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 bridge_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 bridge_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1);
35 connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1);
35 bridge_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1);
36 connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1);
36 bridge_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1);
37 connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1);
37 bridge_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1);
38 connection_LAYOUT->addWidget(sourceLogicalAddress_LABEL, 2, 0, 1, 1);
38 bridge_LAYOUT->addWidget(sourceLogicalAddress_LABEL, 2, 0, 1, 1);
39 connection_LAYOUT->addWidget(sourceLogicalAddress_SPINBOX, 2, 1, 1, 1);
39 bridge_LAYOUT->addWidget(sourceLogicalAddress_SPINBOX, 2, 1, 1, 1);
40 bridge_LAYOUT->setRowStretch(3, 1);
41 bridge_LAYOUT->setColumnStretch(2, 1);
40
42
41 connection_LAYOUT->setRowStretch(3, 1);
43 this->setLayout(bridge_LAYOUT);
42 connection_LAYOUT->setColumnStretch(2, 1);
43
44 this->setLayout(connection_LAYOUT);
45
44
46 connect(this->sourceLogicalAddress_SPINBOX, SIGNAL(valueChanged(int)), this, SLOT(sourceHasChanged(int)));
45 connect(this->sourceLogicalAddress_SPINBOX, SIGNAL(valueChanged(int)), this, SLOT(sourceHasChanged(int)));
47 }
46 }
48
47
49 StarDundee::~StarDundee()
48 StarDundee::~StarDundee()
50 {
49 {
51 free(rmapPacket);
50 free(rmapPacket);
52 free(ccsdsPacket);
51 free(ccsdsPacket);
53 free(spwPacket);
52 free(spwPacket);
54 USBSpaceWire_Close(hDevice); // Close the device
53 USBSpaceWire_Close(hDevice); // Close the device
55 }
54 }
56
55
57 unsigned int StarDundee::Open()
56 unsigned int StarDundee::Open()
58 {
57 {
59 int status;
58 int status;
60 U32 statusControl;
59 U32 statusControl;
61 U32 routingTableEntry;
60 U32 routingTableEntry;
62 int tableEntry;
61 int tableEntry;
63
62
64 if (!USBSpaceWire_Open(&hDevice, usbDeviceNumber_SPINBOX->value())) // Open the USB device
63 if (!USBSpaceWire_Open(&hDevice, usbDeviceNumber_SPINBOX->value())) // Open the USB device
65 {
64 {
66 emit sendMessage("stardundee *** Open *** ERROR: USBSpaceWire_Open(&hDevice, 0))");
65 emit sendMessage("stardundee *** Open *** ERROR: USBSpaceWire_Open(&hDevice, 0))");
67 return -1;
66 return -1;
68 }
67 }
69 emit sendMessage("stardundee *** Open *** USBSpaceWire_Open successful, device number: "
68 emit sendMessage("stardundee *** Open *** USBSpaceWire_Open successful, device number: "
70 + QString::number(usbDeviceNumber_SPINBOX->value()));
69 + QString::number(usbDeviceNumber_SPINBOX->value()));
71
70
72 USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode
71 USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode
73 CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP
72 CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP
74 CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices
73 CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices
75
74
76 // Set the path and return path to the device
75 // Set the path and return path to the device
77 CFGSpaceWire_StackClear();
76 CFGSpaceWire_StackClear();
78 CFGSpaceWire_AddrStackPush(0);
77 CFGSpaceWire_AddrStackPush(0);
79 CFGSpaceWire_AddrStackPush(254);
78 CFGSpaceWire_AddrStackPush(254);
80 CFGSpaceWire_RetAddrStackPush(254);
79 CFGSpaceWire_RetAddrStackPush(254);
81
80
82 // set the base transmit rate to 100 MHz
81 // set the base transmit rate to 100 MHz
83 status = CFGSpaceWire_SetBrickBaseTransmitRate( hDevice, CFG_BRK_CLK_100_MHZ, CFG_BRK_DVDR_1, 0xff);
82 status = CFGSpaceWire_SetBrickBaseTransmitRate( hDevice, CFG_BRK_CLK_100_MHZ, CFG_BRK_DVDR_1, 0xff);
84 if (status != CFG_TRANSFER_SUCCESS)
83 if (status != CFG_TRANSFER_SUCCESS)
85 {
84 {
86 emit sendMessage("ERROR CFGSpaceWire_SetBrickBaseTransmitRate");
85 emit sendMessage("ERROR CFGSpaceWire_SetBrickBaseTransmitRate");
87 }
86 }
88 else emit sendMessage("OK CFGSpaceWire_SetBrickBaseTransmitRate, base rate = 100 MHz");
87 else emit sendMessage("OK CFGSpaceWire_SetBrickBaseTransmitRate, base rate = 100 MHz");
89 // read the link status
88 // read the link status
90 if (CFGSpaceWire_GetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), &statusControl) != CFG_TRANSFER_SUCCESS)
89 if (CFGSpaceWire_GetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), &statusControl) != CFG_TRANSFER_SUCCESS)
91 {
90 {
92 emit sendMessage("Could not read link status control for link " + QString::number(linkNumber_SPINBOX->value()));
91 emit sendMessage("Could not read link status control for link " + QString::number(linkNumber_SPINBOX->value()));
93 }
92 }
94 else
93 else
95 {
94 {
96 emit sendMessage("OK CFGSpaceWire_GetLinkStatusControl of link " + QString::number(linkNumber_SPINBOX->value()));
95 emit sendMessage("OK CFGSpaceWire_GetLinkStatusControl of link " + QString::number(linkNumber_SPINBOX->value()));
97
96
98 // Set the link status control register properties
97 // Set the link status control register properties
99 CFGSpaceWire_LSEnableAutoStart(&statusControl, 1);
98 CFGSpaceWire_LSEnableAutoStart(&statusControl, 1);
100 CFGSpaceWire_LSEnableStart(&statusControl, 1);
99 CFGSpaceWire_LSEnableStart(&statusControl, 1);
101 CFGSpaceWire_LSEnableDisabled(&statusControl, 0);
100 CFGSpaceWire_LSEnableDisabled(&statusControl, 0);
102 CFGSpaceWire_LSEnableTristate(&statusControl, 0);
101 CFGSpaceWire_LSEnableTristate(&statusControl, 0);
103 CFGSpaceWire_LSSetOperatingSpeed(&statusControl, 9); // sets the link speed to ( 100 MHz / (9+1) ) = 10 MHz
102 CFGSpaceWire_LSSetOperatingSpeed(&statusControl, 9); // sets the link speed to ( 100 MHz / (9+1) ) = 10 MHz
104
103
105 // Set the link status control register
104 // Set the link status control register
106 if (CFGSpaceWire_SetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), statusControl) != CFG_TRANSFER_SUCCESS)
105 if (CFGSpaceWire_SetLinkStatusControl(hDevice, linkNumber_SPINBOX->value(), statusControl) != CFG_TRANSFER_SUCCESS)
107 {
106 {
108 emit sendMessage("Could not set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
107 emit sendMessage("Could not set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
109 }
108 }
110 else emit sendMessage("Set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
109 else emit sendMessage("Set the link status control for link " + QString::number(linkNumber_SPINBOX->value()));
111 }
110 }
112
111
113 // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 254 <=> 0xfe
112 // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 254 <=> 0xfe
114 tableEntry = rmapTargetLogicalAddress;
113 tableEntry = rmapTargetLogicalAddress;
115 if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS)
114 if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS)
116 {
115 {
117 emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry));
116 emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry));
118 }
117 }
119 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] cleared");
118 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
119 // Build the routing table entry to route out of port 1 with header deletion disabled and priority normal
121 CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry,
120 CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry,
122 (1<<linkNumber_SPINBOX->value()), // 0x02 = 0000 0010
121 (1<<linkNumber_SPINBOX->value()), // 0x02 = 0000 0010
123 0,
122 0,
124 0);
123 0);
125 // Set the routing table entry for logical address tableEntry
124 // Set the routing table entry for logical address tableEntry
126 if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS)
125 if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS)
127 {
126 {
128 emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]");
127 emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]");
129 }
128 }
130 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" );
129 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" );
131
130
132 // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 32 <=> 0x20
131 // SET THE ROUTING TABLE ENTRY FOR LOGICAL ADDRESSING, TARGET 32 <=> 0x20
133 tableEntry = sourceLogicalAddress_SPINBOX->value();
132 tableEntry = sourceLogicalAddress_SPINBOX->value();
134 if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS)
133 if (CFGSpaceWire_ClearRoutingTableEntry(hDevice, tableEntry) != CFG_TRANSFER_SUCCESS)
135 {
134 {
136 emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry));
135 emit sendMessage("Could not clear routing table entry " + QString::number(tableEntry));
137 }
136 }
138 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] cleared");
137 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] cleared");
139
138
140 // Build the routing table entry to route out of port 3 with header deletion disabled and priority normal
139 // Build the routing table entry to route out of port 3 with header deletion disabled and priority normal
141 CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry,
140 CFGSpaceWire_RTBuildRoutingTableEntry(&routingTableEntry,
142 (1<<3), // 0x02 = 0000 0010
141 (1<<3), // 0x02 = 0000 0010
143 0,
142 0,
144 0);
143 0);
145 // Set the routing table entry for logical address tableEntry
144 // Set the routing table entry for logical address tableEntry
146 if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS)
145 if (CFGSpaceWire_SetRoutingTableEntry(hDevice, tableEntry, routingTableEntry) != CFG_TRANSFER_SUCCESS)
147 {
146 {
148 emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]");
147 emit sendMessage("Could not set routing table entry [" + QString::number(tableEntry) + "]");
149 }
148 }
150 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" );
149 else emit sendMessage("Routing table entry [" + QString::number(tableEntry) + "] set" );
151
150
152 emit sendMessage("The driver's current send buffer size is " + QString::number(USBSpaceWire_GetDriverSendBufferSize(hDevice)) + " bytes");
151 emit sendMessage("The driver's current send buffer size is " + QString::number(USBSpaceWire_GetDriverSendBufferSize(hDevice)) + " bytes");
153
152
154 USBSpaceWire_RegisterReceiveOnAllPorts(hDevice); // Register to receive on all ports
153 USBSpaceWire_RegisterReceiveOnAllPorts(hDevice); // Register to receive on all ports
155 USBSpaceWire_ClearEndpoints(hDevice); // clear the USB endpoints
154 USBSpaceWire_ClearEndpoints(hDevice); // clear the USB endpoints
156
155
157 // initialize SPW packet semaphores
156 // initialize SPW packet semaphores
158 while (rmapPacketSEMAPHORE->available()!=0) rmapPacketSEMAPHORE->acquire();
157 while (rmapPacketSEMAPHORE->available()!=0) rmapPacketSEMAPHORE->acquire();
159 while (ccsdsPacketSEMAPHORE->available()!=0) ccsdsPacketSEMAPHORE->acquire();
158 while (ccsdsPacketSEMAPHORE->available()!=0) ccsdsPacketSEMAPHORE->acquire();
160
159
161 emit isOpen(true);
160 emit isOpen(true);
162
161
163 return 1;
162 return 1;
164 }
163 }
165
164
166 unsigned int StarDundee::Close()
165 unsigned int StarDundee::Close()
167 {
166 {
168 USBSpaceWire_Close(hDevice); // Close the device
167 USBSpaceWire_Close(hDevice); // Close the device
169 emit sendMessage("stardundee *** Close *** USBSpaceWire_Close, device: " + QString::number(usbDeviceNumber_SPINBOX->value()));
168 emit sendMessage("stardundee *** Close *** USBSpaceWire_Close, device: " + QString::number(usbDeviceNumber_SPINBOX->value()));
170
169
171 USBSpaceWire_UnregisterReceiveOnAllPorts(hDevice); // Stop receiving on all ports
170 USBSpaceWire_UnregisterReceiveOnAllPorts(hDevice); // Stop receiving on all ports
172
171
173 emit isOpen(false);
172 emit isOpen(false);
174
173
175 return 1;
174 return 1;
176 }
175 }
177
176
178 unsigned int StarDundee::GetRoutingTableEntry()
177 unsigned int StarDundee::GetRoutingTableEntry()
179 {
178 {
180 U32 routingTableEntry, outputPorts;
179 U32 routingTableEntry, outputPorts;
181 char enabled, delHead, priority;
180 char enabled, delHead, priority;
182 int portNum;
181 int portNum;
183 int tableEntry;
182 int tableEntry;
184
183
185 tableEntry = rmapTargetLogicalAddress;
184 tableEntry = rmapTargetLogicalAddress;
186
185
187 // Set the path and return path to the device
186 // Set the path and return path to the device
188 CFGSpaceWire_StackClear();
187 CFGSpaceWire_StackClear();
189 CFGSpaceWire_AddrStackPush(0);
188 CFGSpaceWire_AddrStackPush(0);
190 CFGSpaceWire_AddrStackPush(254);
189 CFGSpaceWire_AddrStackPush(254);
191 CFGSpaceWire_RetAddrStackPush(254);
190 CFGSpaceWire_RetAddrStackPush(254);
192
191
193 // Read the routing table entry
192 // Read the routing table entry
194 if (CFGSpaceWire_GetRoutingTableEntry(hDevice, tableEntry, &routingTableEntry) != CFG_TRANSFER_SUCCESS)
193 if (CFGSpaceWire_GetRoutingTableEntry(hDevice, tableEntry, &routingTableEntry) != CFG_TRANSFER_SUCCESS)
195 {
194 {
196 emit sendMessage("Could not read routing table entry [" + QString::number(tableEntry) + "]");
195 emit sendMessage("Could not read routing table entry [" + QString::number(tableEntry) + "]");
197 }
196 }
198 else
197 else
199 {
198 {
200 // Display the routing table entry properties
199 // Display the routing table entry properties
201 CFGSpaceWire_RTIsEnabled(routingTableEntry, &enabled);
200 CFGSpaceWire_RTIsEnabled(routingTableEntry, &enabled);
202 CFGSpaceWire_RTIsDelHead(routingTableEntry, &delHead);
201 CFGSpaceWire_RTIsDelHead(routingTableEntry, &delHead);
203 CFGSpaceWire_RTIsPriority(routingTableEntry, &priority);
202 CFGSpaceWire_RTIsPriority(routingTableEntry, &priority);
204 CFGSpaceWire_RTGetOutputPorts(routingTableEntry, &outputPorts);
203 CFGSpaceWire_RTGetOutputPorts(routingTableEntry, &outputPorts);
205 emit sendMessage("CFGSpaceWire_RTIsEnabled : " + QString::number(enabled));
204 emit sendMessage("CFGSpaceWire_RTIsEnabled : " + QString::number(enabled));
206 emit sendMessage("CFGSpaceWire_RTIsDelHead : " + QString::number(delHead));
205 emit sendMessage("CFGSpaceWire_RTIsDelHead : " + QString::number(delHead));
207 emit sendMessage("CFGSpaceWire_RTIsPriority : " + QString::number(priority));
206 emit sendMessage("CFGSpaceWire_RTIsPriority : " + QString::number(priority));
208 emit sendMessage("CFGSpaceWire_RTGetOutputPorts : ");
207 emit sendMessage("CFGSpaceWire_RTGetOutputPorts : ");
209 for (portNum = 0; portNum < 32; portNum++)
208 for (portNum = 0; portNum < 32; portNum++)
210 {
209 {
211 if (outputPorts & (1 << portNum))
210 if (outputPorts & (1 << portNum))
212 {
211 {
213 emit sendMessage(QString::number(portNum));
212 emit sendMessage(QString::number(portNum));
214 }
213 }
215 }
214 }
216 }
215 }
217
216
218 return 1;
217 return 1;
219 }
218 }
220
219
221 unsigned int StarDundee::Write(unsigned int *Value, unsigned int count, unsigned int address)
220 unsigned int StarDundee::Write(unsigned int *Value, unsigned int count, unsigned int address)
222 {
221 {
223 unsigned int remainingCount = count;
222 unsigned int remainingCount = count;
224 unsigned int iOffset = 0;
223 unsigned int iOffset = 0;
225 QString console_message;
224 QString console_message;
226 char* data;
225 char* data;
227
226
228 if(rmapPacketSEMAPHORE->available()!=0)
227 if(rmapPacketSEMAPHORE->available()!=0)
229 {
228 {
230 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP request already running, WRITE access stopped");
229 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP request already running, WRITE access stopped");
231 return 1;
230 return 1;
232 }
231 }
233
232
234 emit this->RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
233 emit this->RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
235
234
236 data = (char*) malloc(READ_WRITE_MAX_COUNTS*4);
235 data = (char*) malloc(READ_WRITE_MAX_COUNTS*4);
237
236
238 emit appendToLog(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
237 emit appendToLog(QString("*** START *** WRITE ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
239
238
240 while (remainingCount > READ_WRITE_MAX_COUNTS)
239 while (remainingCount > READ_WRITE_MAX_COUNTS)
241 {
240 {
242 for (int i = 0; i<READ_WRITE_MAX_COUNTS; i++)
241 for (int i = 0; i<READ_WRITE_MAX_COUNTS; i++)
243 {
242 {
244 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
243 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
245 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
244 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
246 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
245 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
247 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
246 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
248 }
247 }
249
248
250 console_message.sprintf("remainingCount: %d => ", remainingCount);
249 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));
250 emit appendToLog(console_message + QString("Write ")+ QString::number(READ_WRITE_MAX_COUNTS*4) + QString(" byte(s) @0x")+ QString::number(address,16));
252
251
253 if(WriteBLOCK(data, READ_WRITE_MAX_COUNTS*4, address)==0)
252 if(WriteBLOCK(data, READ_WRITE_MAX_COUNTS*4, address)==0)
254 {
253 {
255 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
254 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
256 return 1;
255 return 1;
257 }
256 }
258
257
259 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
258 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
260 address = address + READ_WRITE_MAX_COUNTS * 4;
259 address = address + READ_WRITE_MAX_COUNTS * 4;
261 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
260 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
262 }
261 }
263
262
264 if (remainingCount > 0)
263 if (remainingCount > 0)
265 {
264 {
266 for (unsigned int i = 0; i<remainingCount; i++)
265 for (unsigned int i = 0; i<remainingCount; i++)
267 {
266 {
268 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
267 data[i*4+3] = (char) ((unsigned int) Value[i+iOffset]);
269 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
268 data[i*4+2] = (char) ((unsigned int) Value[i+iOffset]>>8);
270 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
269 data[i*4+1] = (char) ((unsigned int) Value[i+iOffset]>>16);
271 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
270 data[i*4+0] = (char) ((unsigned int) Value[i+iOffset]>>24);
272 }
271 }
273
272
274 console_message.sprintf("remainingCount: %d => ", remainingCount);
273 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));
274 emit appendToLog(console_message + QString("Write ")+ QString::number(remainingCount*4) + QString(" byte(s) @0x")+ QString::number(address,16));
276
275
277 if (WriteBLOCK(data, remainingCount*4, address)==0)
276 if (WriteBLOCK(data, remainingCount*4, address)==0)
278 {
277 {
279 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
278 emit appendToLog("WARNING === in function WRITE of rmapplugin *** RMAP write command failed");
280 return 1;
279 return 1;
281 }
280 }
282 }
281 }
283
282
284 emit appendToLog(QString("*** STOP *** WRITE"));
283 emit appendToLog(QString("*** STOP *** WRITE"));
285 free(data);
284 free(data);
286 return count;
285 return count;
287 }
286 }
288
287
289 unsigned int StarDundee::Read(unsigned int *Value, unsigned int count, unsigned int address)
288 unsigned int StarDundee::Read(unsigned int *Value, unsigned int count, unsigned int address)
290 {
289 {
291 unsigned int remainingCount = count;
290 unsigned int remainingCount = count;
292 unsigned int iOffset = 0;
291 unsigned int iOffset = 0;
293 QString console_message;
292 QString console_message;
294
293
295 if(rmapPacketSEMAPHORE->available()!=0)
294 if(rmapPacketSEMAPHORE->available()!=0)
296 {
295 {
297 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP request already running, READ access stopped");
296 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP request already running, READ access stopped");
298 return 1;
297 return 1;
299 }
298 }
300 emit appendToLog(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
299 emit appendToLog(QString("*** START *** READ ")+ QString::number(count) + QString(" word(s) @0x")+ QString::number(address,16));
301
300
302 while (remainingCount > READ_WRITE_MAX_COUNTS)
301 while (remainingCount > READ_WRITE_MAX_COUNTS)
303 {
302 {
304 console_message.sprintf("remainingCount: %d => ", remainingCount);
303 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));
304 emit appendToLog(console_message + QString("Read ")+ QString::number(4*READ_WRITE_MAX_COUNTS) + QString(" byte(s) @0x")+ QString::number(address,16));
306
305
307 if (this->ReadBLOCK(READ_WRITE_MAX_COUNTS*4, address)==0)
306 if (this->ReadBLOCK(READ_WRITE_MAX_COUNTS*4, address)==0)
308 {
307 {
309 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
308 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
310 return 1;
309 return 1;
311 }
310 }
312
311
313 for(int i=0;i<READ_WRITE_MAX_COUNTS;i++)
312 for(int i=0;i<READ_WRITE_MAX_COUNTS;i++)
314 {
313 {
315 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
314 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
316 for(int j=1;j<4;j++)
315 for(int j=1;j<4;j++)
317 {
316 {
318 Value[i+iOffset]= ((unsigned char) (rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH]))
317 Value[i+iOffset]= ((unsigned char) (rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH]))
319 + Value[i+iOffset]*256;
318 + Value[i+iOffset]*256;
320 }
319 }
321 }
320 }
322
321
323 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
322 remainingCount = remainingCount - READ_WRITE_MAX_COUNTS;
324 address = address + READ_WRITE_MAX_COUNTS * 4;
323 address = address + READ_WRITE_MAX_COUNTS * 4;
325 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
324 iOffset = iOffset + READ_WRITE_MAX_COUNTS;
326 this->acquireRMAPSemaphore();
325 this->acquireRMAPSemaphore();
327 }
326 }
328
327
329 if (remainingCount > 0)
328 if (remainingCount > 0)
330 {
329 {
331 console_message.sprintf("remainingCount: %d => ", remainingCount);
330 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));
331 emit appendToLog(console_message + QString("Read ")+ QString::number(4*remainingCount) + QString(" byte(s) @0x")+ QString::number(address,16));
333
332
334 if (this->ReadBLOCK(4*remainingCount, address)==0)
333 if (this->ReadBLOCK(4*remainingCount, address)==0)
335 {
334 {
336 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
335 emit appendToLog("WARNING === in function READ of rmapplugin *** RMAP packet not received");
337 return 1;
336 return 1;
338 }
337 }
339
338
340 for(unsigned int i=0;i<remainingCount;i++)
339 for(unsigned int i=0;i<remainingCount;i++)
341 {
340 {
342 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
341 Value[i+iOffset] = (unsigned char) rmapPacket[i*4+RMAP_READ_REPLY_HEADER_LENGTH];
343 for(int j=1;j<4;j++)
342 for(int j=1;j<4;j++)
344 {
343 {
345 Value[i+iOffset]= ((unsigned char)(rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) + Value[i+iOffset]*256;
344 Value[i+iOffset]= ((unsigned char)(rmapPacket[i*4+j+RMAP_READ_REPLY_HEADER_LENGTH])) + Value[i+iOffset]*256;
346 }
345 }
347 }
346 }
348 this->acquireRMAPSemaphore();
347 this->acquireRMAPSemaphore();
349 }
348 }
350
349
351 emit appendToLog(QString("*** STOP *** READ "));
350 emit appendToLog(QString("*** STOP *** READ "));
352 return count;
351 return count;
353 }
352 }
354
353
355 unsigned int StarDundee::WriteBLOCK(char *data, unsigned int nbBytes, unsigned int address)
354 unsigned int StarDundee::WriteBLOCK(char *data, unsigned int nbBytes, unsigned int address)
356 {
355 {
357 RMAP *RMAPCommand;
356 RMAP *RMAPCommand;
358 char * packet;
357 char * packet;
359 unsigned char offset, headerSize, CRCSize;
358 unsigned char offset, headerSize, CRCSize;
360 char* aux;
359 char* aux;
361 unsigned int totalSize;
360 unsigned int totalSize;
362 int errorCode;
361 int errorCode;
363 QString console_message;
362 QString console_message;
364
363
365 if (getLinkStatus(this->linkNumber_SPINBOX->value()) == 0)
364 if (getLinkStatus(this->linkNumber_SPINBOX->value()) == 0)
366 {
365 {
367 this->Close();
366 this->Close();
368 return 1;
367 return 1;
369 }
368 }
370
369
371 RMAPCommand = new RMAP(this->commandCode,
370 RMAPCommand = new RMAP(this->commandCode,
372 rmapTargetLogicalAddress,
371 rmapTargetLogicalAddress,
373 rmapSourceLogicalAddress,
372 rmapSourceLogicalAddress,
374 address,
373 address,
375 nbBytes,
374 nbBytes,
376 data);
375 data);
377 headerSize = sizeof(RMAPCommand->RMAPHeader);
376 headerSize = sizeof(RMAPCommand->RMAPHeader);
378 CRCSize = 1;
377 CRCSize = 1;
379
378
380 //*************************
379 //*************************
381 // BUILD THE PACKET TO SEND
380 // BUILD THE PACKET TO SEND
382 totalSize = headerSize + nbBytes + CRCSize;
381 totalSize = headerSize + nbBytes + CRCSize;
383 packet = (char*) malloc( totalSize );
382 packet = (char*) malloc( totalSize );
384 aux = (char*) ((void*) &RMAPCommand->RMAPHeader);
383 aux = (char*) ((void*) &RMAPCommand->RMAPHeader);
385 for(unsigned int i = 0; i<headerSize; i++) packet[i] = aux[i];
384 for(unsigned int i = 0; i<headerSize; i++) packet[i] = aux[i];
386 offset = headerSize;
385 offset = headerSize;
387 for(unsigned int i = 0; i<nbBytes; i++)
386 for(unsigned int i = 0; i<nbBytes; i++)
388 {
387 {
389 packet[i+offset] = data[i];
388 packet[i+offset] = data[i];
390 }
389 }
391 packet[nbBytes+offset] = RMAPCommand->dataCRC;
390 packet[nbBytes+offset] = RMAPCommand->dataCRC;
392
391
393 //****************
392 //****************
394 // SEND THE PACKET
393 // SEND THE PACKET
395 result = USBSpaceWire_SendPacket(hDevice,
394 result = USBSpaceWire_SendPacket(hDevice,
396 packet,
395 packet,
397 totalSize,
396 totalSize,
398 BWAIT_1, &pIdentifier);
397 BWAIT_1, &pIdentifier);
399 if (result != TRANSFER_SUCCESS)
398 if (result != TRANSFER_SUCCESS)
400 {
399 {
401 emit sendMessage("ERROR *** WriteStarDundee when sending packet of size "
400 emit sendMessage("ERROR *** WriteStarDundee when sending packet of size "
402 + QString::number(totalSize) +", with code: " + QString::number(result));
401 + QString::number(totalSize) +", with code: " + QString::number(result));
403 USBSpaceWire_FreeSend(hDevice, pIdentifier);
402 USBSpaceWire_FreeSend(hDevice, pIdentifier);
404 free(data);
403 free(data);
405 return 1;
404 return 1;
406 }
405 }
407 else emit sendMessage("OK *** WriteStarDundee when sending packet of size " + QString::number(totalSize));
406 else emit sendMessage("OK *** WriteStarDundee when sending packet of size " + QString::number(totalSize));
408
407
409 //**************
408 //**************
410 // Free the send
409 // Free the send
411 USBSpaceWire_FreeSend(hDevice, pIdentifier);
410 USBSpaceWire_FreeSend(hDevice, pIdentifier);
412 free(packet);
411 free(packet);
413
412
414 if ( (commandCode == writeSingle_noVer_Rep) | (commandCode == writeInc_noVer_Rep) |
413 if ( (commandCode == writeSingle_noVer_Rep) | (commandCode == writeInc_noVer_Rep) |
415 (commandCode == writeSingle_ver_rep) | (commandCode == writeInc_ver_rep) )
414 (commandCode == writeSingle_ver_rep) | (commandCode == writeInc_ver_rep) )
416 {
415 {
417 // WAIT FOR THE RMAP REPLY PACKET
416 // WAIT FOR THE RMAP REPLY PACKET
418 errorCode = this->receiveSPWPacket(1);
417 errorCode = this->receiveSPWPacket(1);
419 if (errorCode<=0)
418 if (errorCode<=0)
420 {
419 {
421 emit appendToLog("WARNING === in function WriteBLOCK of rmapplugin *** RMAP packet reception failed with code " + QString::number(errorCode));
420 emit appendToLog("WARNING === in function WriteBLOCK of rmapplugin *** RMAP packet reception failed with code " + QString::number(errorCode));
422 return 0;
421 return 0;
423 }
422 }
424 if(rmapPacketSize != 8)
423 if(rmapPacketSize != 8)
425 {
424 {
426 console_message.sprintf("WARNING === in function WRITE (with reply) of rmapplugin *** write reply format not compliant\n");
425 console_message.sprintf("WARNING === in function WRITE (with reply) of rmapplugin *** write reply format not compliant\n");
427 emit appendToLog(console_message);
426 emit appendToLog(console_message);
428 return 0;
427 return 0;
429 }
428 }
430 switch (this->rmapPacket[3]) // byte 4 is the status byte in the reply
429 switch (this->rmapPacket[3]) // byte 4 is the status byte in the reply
431 {
430 {
432 case 0:
431 case 0:
433 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 0 Successfull");
432 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 0 Successfull");
434 break;
433 break;
435 case 1:
434 case 1:
436 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** General error code");
435 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");
436 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 1 General error code");
438 break;
437 break;
439 case 2:
438 case 2:
440 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Unused RMAP packet type or command code");
439 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");
440 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 2 Unused RMAP packet type or command code");
442 break;
441 break;
443 case 3:
442 case 3:
444 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid key");
443 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");
444 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 3 Invalid key");
446 break;
445 break;
447 case 4:
446 case 4:
448 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid data CRC");
447 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");
448 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 4 Invalid data CRC");
450 break;
449 break;
451 case 5:
450 case 5:
452 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Early EOP");
451 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");
452 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 5 Early EOP");
454 break;
453 break;
455 case 6:
454 case 6:
456 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Too much data");
455 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");
456 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 6 Too much data");
458 break;
457 break;
459 case 7:
458 case 7:
460 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** EEP");
459 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");
460 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 7 EEP");
462 break;
461 break;
463 case 8:
462 case 8:
464 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Reserved");
463 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");
464 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 8 Reserved");
466 break;
465 break;
467 case 9:
466 case 9:
468 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Verify buffer overrun");
467 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");
468 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 9 Verify buffer overrun");
470 break;
469 break;
471 case 10:
470 case 10:
472 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMAP command not implemented or not authorised");
471 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");
472 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 10 RMAP command not implemented or not authorised");
474 break;
473 break;
475 case 11:
474 case 11:
476 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** RMW data length error");
475 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");
476 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 11 RMAP RMW data length error");
478 break;
477 break;
479 case 12:
478 case 12:
480 emit appendToLog("WARNING === in function WRITE (with reply) of rmapplugin *** Invalid target logical address");
479 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");
480 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: 12 Invalid target logical address");
482 break;
481 break;
483 }
482 }
484 this->acquireRMAPSemaphore();
483 this->acquireRMAPSemaphore();
485 }
484 }
486 else
485 else
487 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
486 emit RMAP_write_reply_setText("reply to the write command required\nlast reply status: unavailable");
488
487
489 return nbBytes;
488 return nbBytes;
490 }
489 }
491
490
492 unsigned int StarDundee::ReadBLOCK(unsigned int nbBytes, unsigned int address)
491 unsigned int StarDundee::ReadBLOCK(unsigned int nbBytes, unsigned int address)
493 {
492 {
494 int errorCode;
493 int errorCode;
495 RMAP *RMAPCommand;
494 RMAP *RMAPCommand;
496 unsigned int dataLength;
495 unsigned int dataLength;
497
496
498 //**********************
497 //**********************
499 // Check the link status
498 // Check the link status
500 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
499 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
501 {
500 {
502 this->Close();
501 this->Close();
503 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
502 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
504 return 0;
503 return 0;
505 }
504 }
506
505
507 //**********************
506 //**********************
508 // SEND THE READ COMMAND
507 // SEND THE READ COMMAND
509 if (nbBytes > 4)
508 if (nbBytes > 4)
510 {
509 {
511 RMAPCommand = new RMAP(read_Inc,
510 RMAPCommand = new RMAP(read_Inc,
512 rmapTargetLogicalAddress,
511 rmapTargetLogicalAddress,
513 rmapSourceLogicalAddress,
512 rmapSourceLogicalAddress,
514 address,
513 address,
515 nbBytes,
514 nbBytes,
516 NULL);
515 NULL);
517 }
516 }
518 else
517 else
519 {
518 {
520 RMAPCommand = new RMAP(read_Single,
519 RMAPCommand = new RMAP(read_Single,
521 rmapTargetLogicalAddress,
520 rmapTargetLogicalAddress,
522 rmapSourceLogicalAddress,
521 rmapSourceLogicalAddress,
523 address,
522 address,
524 nbBytes,
523 nbBytes,
525 NULL);
524 NULL);
526 }
525 }
527 result = USBSpaceWire_SendPacket(hDevice,
526 result = USBSpaceWire_SendPacket(hDevice,
528 (unsigned char*) ((void*) &RMAPCommand->RMAPHeader),
527 (unsigned char*) ((void*) &RMAPCommand->RMAPHeader),
529 sizeof(RMAPCommand->RMAPHeader),
528 sizeof(RMAPCommand->RMAPHeader),
530 BWAIT_1, &pIdentifier);
529 BWAIT_1, &pIdentifier);
531 if (result != TRANSFER_SUCCESS) emit sendMessage("ERR *** ReadStarDundee *** ReadBLOCK *** sending the READ command ");
530 if (result != TRANSFER_SUCCESS) emit sendMessage("ERR *** ReadStarDundee *** ReadBLOCK *** sending the READ command ");
532 else emit sendMessage("OK *** ReadStarDundee *** ReadBLOCK *** sending the READ command");
531 else emit sendMessage("OK *** ReadStarDundee *** ReadBLOCK *** sending the READ command");
533
532
534 //*********************************
533 //*********************************
535 // RECEIVE THE INCOMING RMAP PACKET
534 // RECEIVE THE INCOMING RMAP PACKET
536 errorCode = this->receiveSPWPacket(1); // request ID 1 is for RMAP packet
535 errorCode = this->receiveSPWPacket(1); // request ID 1 is for RMAP packet
537 if (errorCode<=0)
536 if (errorCode<=0)
538 {
537 {
539 emit appendToLog("WARNING === in function ReadBLOCK of StarDundee *** RMAP packet reception failed with code " + QString::number(errorCode));
538 emit appendToLog("WARNING === in function ReadBLOCK of StarDundee *** RMAP packet reception failed with code " + QString::number(errorCode));
540 return 0;
539 return 0;
541 }
540 }
542 dataLength = rmapPacketSize - RMAP_READ_REPLY_HEADER_LENGTH - RMAP_DATA_CRC_LENGTH;
541 dataLength = rmapPacketSize - RMAP_READ_REPLY_HEADER_LENGTH - RMAP_DATA_CRC_LENGTH;
543 if(dataLength != nbBytes)
542 if(dataLength != nbBytes)
544 {
543 {
545 emit appendToLog("WARNING === in function READ of StarDundee *** number of data received ("
544 emit appendToLog("WARNING === in function READ of StarDundee *** number of data received ("
546 +QString::number(dataLength)
545 +QString::number(dataLength)
547 +") not equal to number of data requested ("
546 +") not equal to number of data requested ("
548 +QString::number(nbBytes)
547 +QString::number(nbBytes)
549 +")");
548 +")");
550 return 0;
549 return 0;
551 }
550 }
552 return dataLength;
551 return dataLength;
553 }
552 }
554
553
555 unsigned int StarDundee::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication)
554 unsigned int StarDundee::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication)
556 {
555 {
557 char protocoleIdentifier = 0x02;
556 char protocoleIdentifier = 0x02;
558 char reserved = 0x00;
557 char reserved = 0x00;
559 char *SPWData;
558 char *SPWData;
560 unsigned int totalSize;
559 unsigned int totalSize;
561
560
562 if (count>248)
561 if (count>248)
563 {
562 {
564 emit appendToLog("WARNING === in function WRITE of rmapplugin *** CCSDS packet size > 248 bytes\n");
563 emit appendToLog("WARNING === in function WRITE of rmapplugin *** CCSDS packet size > 248 bytes\n");
565 return 1;
564 return 1;
566 }
565 }
567
566
568 emit appendToLog("*** START *** Send CCSDS packet of "+ QString::number(count) + " byte(s)");
567 emit appendToLog("*** START *** Send CCSDS packet of "+ QString::number(count) + " byte(s)");
569
568
570 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
569 if ( getLinkStatus( this->linkNumber_SPINBOX->value() ) == 0 )
571 {
570 {
572 this->Close();
571 this->Close();
573 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
572 emit appendToLog("WARNING === in function WriteSPW of StarDundee *** SPW link not running\n");
574 return 1;
573 return 1;
575 }
574 }
576
575
577 totalSize = count + 4;
576 totalSize = count + 4;
578 SPWData = (char*) malloc(totalSize);
577 SPWData = (char*) malloc(totalSize);
579 // SPW HEADER
578 // SPW HEADER
580 SPWData[0] = targetLogicalAddress;
579 SPWData[0] = targetLogicalAddress;
581 SPWData[1] = protocoleIdentifier;
580 SPWData[1] = protocoleIdentifier;
582 SPWData[2] = reserved;
581 SPWData[2] = reserved;
583 SPWData[3] = userApplication;
582 SPWData[3] = userApplication;
584 // CCSDS PACKET
583 // CCSDS PACKET
585 for (unsigned int i = 0; i<count; i++)
584 for (unsigned int i = 0; i<count; i++)
586 {
585 {
587 SPWData[i+4] = Value[i];
586 SPWData[i+4] = Value[i];
588 }
587 }
589
588
590 //************
589 //************
591 // SEND THE PACKET
590 // SEND THE PACKET
592 result = USBSpaceWire_SendPacket(hDevice,
591 result = USBSpaceWire_SendPacket(hDevice,
593 SPWData,
592 SPWData,
594 totalSize,
593 totalSize,
595 BWAIT_1, &pIdentifier);
594 BWAIT_1, &pIdentifier);
596 if (result != TRANSFER_SUCCESS)
595 if (result != TRANSFER_SUCCESS)
597 {
596 {
598 emit sendMessage("ERROR *** WriteSPW when sending packet of size "
597 emit sendMessage("ERROR *** WriteSPW when sending packet of size "
599 + QString::number(totalSize) +", with code: " + QString::number(result));
598 + QString::number(totalSize) +", with code: " + QString::number(result));
600 USBSpaceWire_FreeSend(hDevice, pIdentifier);
599 USBSpaceWire_FreeSend(hDevice, pIdentifier);
601 free(SPWData);
600 free(SPWData);
602 return 0;
601 return 0;
603 }
602 }
604 else emit sendMessage("OK *** WriteSPW when sending packet of size " + QString::number(totalSize));
603 else emit sendMessage("OK *** WriteSPW when sending packet of size " + QString::number(totalSize));
605
604
606 //**************
605 //**************
607 // Free the send
606 // Free the send
608 USBSpaceWire_FreeSend(hDevice, pIdentifier);
607 USBSpaceWire_FreeSend(hDevice, pIdentifier);
609 free(SPWData);
608 free(SPWData);
610
609
611 emit appendToLog(QString("*** CCSDS packet sent"));
610 emit appendToLog(QString("*** CCSDS packet sent"));
612
611
613 return 1;
612 return 1;
614 }
613 }
615
614
616 unsigned int StarDundee::getLinkStatus(unsigned char link)
615 unsigned int StarDundee::getLinkStatus(unsigned char link)
617 {
616 {
618 U32 statusControl, errorStatus, portType;
617 U32 statusControl, errorStatus, portType;
619 U32 linkStatus, operatingSpeed, outputPortConnection;
618 U32 linkStatus, operatingSpeed, outputPortConnection;
620 char isLinkRunning, isAutoStart, isStart, isDisabled, isTristate;
619 char isLinkRunning, isAutoStart, isStart, isDisabled, isTristate;
621
620
622 // Read the link status control register
621 // Read the link status control register
623 if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS)
622 if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS)
624 {
623 {
625 emit appendToLog("Could not read link status control for link" + QString::number(link));
624 emit appendToLog("Could not read link status control for link" + QString::number(link));
626 }
625 }
627 else
626 else
628 {
627 {
629 // Display the link status control register properties
628 // Display the link status control register properties
630 CFGSpaceWire_LSPortType(statusControl, &portType);
629 CFGSpaceWire_LSPortType(statusControl, &portType);
631 if (portType == CFG_CONFIGURATION_PORT)
630 if (portType == CFG_CONFIGURATION_PORT)
632 {
631 {
633 CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus);
632 CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus);
634 //emit appendToLog("Configuration port error status = " + QString::number(errorStatus));
633 //emit appendToLog("Configuration port error status = " + QString::number(errorStatus));
635 }
634 }
636 else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT)
635 else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT)
637 {
636 {
638 CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus);
637 CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus);
639 //emit appendToLog("External port error status = " + QString::number(errorStatus));
638 //emit appendToLog("External port error status = " + QString::number(errorStatus));
640 }
639 }
641 else
640 else
642 {
641 {
643 CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus);
642 CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus);
644 //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus));
643 //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus));
645 }
644 }
646 CFGSpaceWire_LSLinkState(statusControl, &linkStatus);
645 CFGSpaceWire_LSLinkState(statusControl, &linkStatus);
647 CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning);
646 CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning);
648 CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart);
647 CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart);
649 CFGSpaceWire_LSIsStart(statusControl, &isStart);
648 CFGSpaceWire_LSIsStart(statusControl, &isStart);
650 CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled);
649 CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled);
651 CFGSpaceWire_LSIsTristate(statusControl, &isTristate);
650 CFGSpaceWire_LSIsTristate(statusControl, &isTristate);
652 CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed);
651 CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed);
653 CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection);
652 CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection);
654 //emit appendToLog("The link state is = " + QString::number(linkStatus));
653 //emit appendToLog("The link state is = " + QString::number(linkStatus));
655 //emit appendToLog("The link is running = " + QString::number(isLinkRunning));
654 //emit appendToLog("The link is running = " + QString::number(isLinkRunning));
656 //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart));
655 //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart));
657 //emit appendToLog("The start bit is enabled = " + QString::number(isStart));
656 //emit appendToLog("The start bit is enabled = " + QString::number(isStart));
658 //emit appendToLog("The link is disabled = " + QString::number(isDisabled));
657 //emit appendToLog("The link is disabled = " + QString::number(isDisabled));
659 //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart));
658 //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart));
660 //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed));
659 //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed));
661 //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection));
660 //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection));
662 }
661 }
663 if (linkStatus == 5) return 1;
662 if (linkStatus == 5) return 1;
664 else return 0;
663 else return 0;
665 }
664 }
666
665
667 int StarDundee::receiveSPWPacket(unsigned char requestID) // SLOT
666 int StarDundee::receiveSPWPacket(unsigned char requestID) // SLOT
668 {
667 {
669 unsigned int packetLength;
668 unsigned int packetLength;
670 unsigned int nbBytes;
669 unsigned int nbBytes;
671 unsigned nPacketNum;
670 unsigned nPacketNum;
672 USB_SPACEWIRE_PACKET_PROPERTIES properties; // The properties of the read
671 USB_SPACEWIRE_PACKET_PROPERTIES properties; // The properties of the read
673
672
674 if (requestID==1)
673 if (requestID==1)
675 {
674 {
676 if (rmapPacketSEMAPHORE->available()) return rmapPacketSize;
675 if (rmapPacketSEMAPHORE->available()) return rmapPacketSize;
677 }
676 }
678
677
679 //********************
678 //********************
680 // TRY TO RECEIVE DATA
679 // TRY TO RECEIVE DATA
681 nbBytes = qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH); // maximum size of the packet to receive
680 nbBytes = qMax(RMAP_MAX_PACKET_LENGTH, CCSDS_MAX_PACKET_LENGTH); // maximum size of the packet to receive
682 nPacketNum = 1;
681 nPacketNum = 1;
683 result = USBSpaceWire_ReadPackets(hDevice, spwPacket, nbBytes, nPacketNum, BWAIT_1, &properties, &pIdentifier);
682 result = USBSpaceWire_ReadPackets(hDevice, spwPacket, nbBytes, nPacketNum, BWAIT_1, &properties, &pIdentifier);
684 if (result != TRANSFER_SUCCESS) emit sendMessage("Error: Could not receive the packet");
683 if (result != TRANSFER_SUCCESS) emit sendMessage("Error: Could not receive the packet");
685 else
684 else
686 {
685 {
687 emit sendMessage("A packet of length " + QString::number(properties.len) + " has been successfully received");
686 emit sendMessage("A packet of length " + QString::number(properties.len) + " has been successfully received");
688 USBSpaceWire_FreeRead(hDevice, pIdentifier); // Free the receive
687 USBSpaceWire_FreeRead(hDevice, pIdentifier); // Free the receive
689 }
688 }
690 packetLength = properties.len;
689 packetLength = properties.len;
691
690
692 switch(spwPacket[1]) // byte 1 is the protocole identifier in the SPW packet
691 switch(spwPacket[1]) // byte 1 is the protocole identifier in the SPW packet
693 {
692 {
694 case 1: // 0x01 is the protocole identifier for RMAP packets
693 case 1: // 0x01 is the protocole identifier for RMAP packets
695 if (rmapPacketSEMAPHORE->available()!=0) return -3; // ERROR === previous RMAP packet not processed yet
694 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];
695 for(unsigned int i=0; i<packetLength; i++) rmapPacket[i] = spwPacket[i];
697 rmapPacketSize = packetLength;
696 rmapPacketSize = packetLength;
698 rmapPacketSEMAPHORE->release();
697 rmapPacketSEMAPHORE->release();
699 emit sendMessage("RMAP packet of size " + QString::number(packetLength) + " received");
698 emit sendMessage("RMAP packet of size " + QString::number(packetLength) + " received");
700 return packetLength;
699 return packetLength;
701
700
702 case 2: // 0x02 is the protocole identifier for CCSDS packets
701 case 2: // 0x02 is the protocole identifier for CCSDS packets
703 if (ccsdsPacketSEMAPHORE->available()!=0) return -4; // ERROR === previous CCSDS packet not processed yet
702 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];
703 for(unsigned int i=0; i<packetLength; i++) ccsdsPacket[i] = spwPacket[i];
705 ccsdsPacketSize = packetLength;
704 ccsdsPacketSize = packetLength;
706 ccsdsPacketSEMAPHORE->release();
705 ccsdsPacketSEMAPHORE->release();
707 emit(ccsdsPacketAvailable(ccsdsPacket, packetLength));
706 emit(ccsdsPacketAvailable(ccsdsPacket, packetLength));
708 return packetLength;
707 return packetLength;
709 }
708 }
710 return 0;
709 return 0;
711 }
710 }
712
711
713
712
@@ -1,82 +1,84
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);
26 unsigned int getLinkStatus(unsigned char link);
28
27
29 signals:
28 signals:
30 void sendMessage(QString message);
29 void sendMessage(QString message);
31 void isOpen(bool);
30 void isOpen(bool);
32 void RMAP_write_reply_setText(QString);
31 void RMAP_write_reply_setText(QString);
33 void appendToLog(QString);
32 void appendToLog(QString);
34 void ccsdsPacketAvailable(unsigned char*, unsigned int);
33 void ccsdsPacketAvailable(unsigned char*, unsigned int);
35
34
36 public slots:
35 public slots:
37 unsigned int Open();
36 unsigned int Open();
38 unsigned int Close();
37 unsigned int Close();
39 int receiveSPWPacket(unsigned char requestID);
38 int receiveSPWPacket(unsigned char requestID);
40 void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;}
39 void commandCodeHasChanged(RMAP_command_codes code) {this->commandCode = code;}
41 void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;}
40 void targetHasChanged(int target) {rmapTargetLogicalAddress = (unsigned char) target;}
42 void sourceHasChanged(int target) {rmapSourceLogicalAddress = (unsigned char) target;}
41 void sourceHasChanged(int target) {rmapSourceLogicalAddress = (unsigned char) target;}
43
42
44 private:
43 private:
45 unsigned int GetRoutingTableEntry();
44 //******************
45 // general functions
46 unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0);
46 unsigned int WriteBLOCK(char *data,unsigned int nbBytes,unsigned int address=0);
47 unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0);
47 unsigned int ReadBLOCK(unsigned int nbBytes,unsigned int address=0);
48 void acquireRMAPSemaphore() {rmapPacketSEMAPHORE->acquire();}
48 void acquireRMAPSemaphore() {rmapPacketSEMAPHORE->acquire();}
49 void acquireCCSDSSemaphore() {ccsdsPacketSEMAPHORE->acquire();}
49 void acquireCCSDSSemaphore() {ccsdsPacketSEMAPHORE->acquire();}
50
50
51 //****************
52 // general members
51 unsigned char rmapTargetLogicalAddress ;
53 unsigned char rmapTargetLogicalAddress ;
52 unsigned char rmapSourceLogicalAddress ;
54 unsigned char rmapSourceLogicalAddress ;
55 RMAP_command_codes commandCode;
56 QGridLayout *bridge_LAYOUT;
57 QSemaphore *rmapPacketSEMAPHORE;
58 QSemaphore *ccsdsPacketSEMAPHORE;
59 char* rmapPacket;
60 unsigned char *ccsdsPacket;
61 char *spwPacket;
62 unsigned int rmapPacketSize;
63 unsigned int ccsdsPacketSize;
53
64
54 RMAP_command_codes commandCode;
65 //**************************
66 // specific member functions
67 unsigned int GetRoutingTableEntry();
55
68
69 //**************************
70 // specific member variables
56 QLabel *usbDeviceNumber_LABEL;
71 QLabel *usbDeviceNumber_LABEL;
57 QLabel *linkNumber_LABEL;
72 QLabel *linkNumber_LABEL;
58 QLabel *sourceLogicalAddress_LABEL;
73 QLabel *sourceLogicalAddress_LABEL;
59
74
60 QSpinBox *usbDeviceNumber_SPINBOX;
75 QSpinBox *usbDeviceNumber_SPINBOX;
61 QSpinBox *linkNumber_SPINBOX;
76 QSpinBox *linkNumber_SPINBOX;
62 QSpinBox *sourceLogicalAddress_SPINBOX;
77 QSpinBox *sourceLogicalAddress_SPINBOX;
63
78
64 QGridLayout *connection_LAYOUT;
79 USB_SPACEWIRE_ID pIdentifier; // unique identifier for the send/receive operations
65
66 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
68
69 star_device_handle hDevice; // Handle to the SpaceWire device
80 star_device_handle hDevice; // Handle to the SpaceWire device
70 USB_SPACEWIRE_STATUS result; // The result of the send operation
81 USB_SPACEWIRE_STATUS result; // The result of the send operation
71
72 // Packet receiver
73 QSemaphore *rmapPacketSEMAPHORE;
74 QSemaphore *ccsdsPacketSEMAPHORE;
75 char* rmapPacket; // The buffer to receive RMAP READ packets
76 unsigned char *ccsdsPacket;
77 char *spwPacket;
78 unsigned int rmapPacketSize;
79 unsigned int ccsdsPacketSize;
80 };
82 };
81
83
82 #endif // STARDUNDEE_H
84 #endif // STARDUNDEE_H
General Comments 0
You need to be logged in to leave comments. Login now