@@ -0,0 +1,22 | |||||
|
1 | #include "tcpackettosend.h" | |||
|
2 | ||||
|
3 | TCPacketToSend::TCPacketToSend(char *Value, unsigned int count, | |||
|
4 | char targetLogicalAddress, char userApplication, unsigned int delay, | |||
|
5 | QObject *parent) : | |||
|
6 | QObject(parent) | |||
|
7 | { | |||
|
8 | this->Value = (char*) malloc(count); | |||
|
9 | for(unsigned int i=0; i<count;i++) | |||
|
10 | { | |||
|
11 | this->Value[i] = Value[i]; // local copy of the data pointed by Value | |||
|
12 | } | |||
|
13 | this->count = count; | |||
|
14 | this->targetLogicalAddress = targetLogicalAddress; | |||
|
15 | this->userApplication = userApplication; | |||
|
16 | this->delay = delay; | |||
|
17 | } | |||
|
18 | ||||
|
19 | TCPacketToSend::~TCPacketToSend() | |||
|
20 | { | |||
|
21 | free(this->Value); | |||
|
22 | } |
@@ -0,0 +1,26 | |||||
|
1 | #ifndef TCPACKETTOSEND_H | |||
|
2 | #define TCPACKETTOSEND_H | |||
|
3 | ||||
|
4 | #include <QObject> | |||
|
5 | ||||
|
6 | class TCPacketToSend : public QObject | |||
|
7 | { | |||
|
8 | Q_OBJECT | |||
|
9 | public: | |||
|
10 | TCPacketToSend( char *Value, unsigned int count, char targetLogicalAddress, | |||
|
11 | char userApplication, unsigned int delay, QObject *parent = 0); | |||
|
12 | ~TCPacketToSend(); | |||
|
13 | ||||
|
14 | char *Value; | |||
|
15 | unsigned int count; | |||
|
16 | char targetLogicalAddress; | |||
|
17 | char userApplication; | |||
|
18 | unsigned int delay; | |||
|
19 | ||||
|
20 | signals: | |||
|
21 | ||||
|
22 | public slots: | |||
|
23 | ||||
|
24 | }; | |||
|
25 | ||||
|
26 | #endif // TCPACKETTOSEND_H |
@@ -0,0 +1,18 | |||||
|
1 | #include "tmpackettoread.h" | |||
|
2 | ||||
|
3 | TMPacketToRead::TMPacketToRead(unsigned char *Value, unsigned int size, | |||
|
4 | QObject *parent) : | |||
|
5 | QObject(parent) | |||
|
6 | { | |||
|
7 | this->Value = (unsigned char*) malloc(size); | |||
|
8 | for(unsigned int i=0; i<size;i++) | |||
|
9 | { | |||
|
10 | this->Value[i] = Value[i]; // local copy of the data pointed by Value | |||
|
11 | } | |||
|
12 | this->size = size; | |||
|
13 | } | |||
|
14 | ||||
|
15 | TMPacketToRead::~TMPacketToRead() | |||
|
16 | { | |||
|
17 | free(this->Value); | |||
|
18 | } |
@@ -0,0 +1,23 | |||||
|
1 | #ifndef TMPACKETTOREAD_H | |||
|
2 | #define TMPACKETTOREAD_H | |||
|
3 | ||||
|
4 | #include <QObject> | |||
|
5 | ||||
|
6 | class TMPacketToRead : public QObject | |||
|
7 | { | |||
|
8 | Q_OBJECT | |||
|
9 | public: | |||
|
10 | explicit TMPacketToRead(unsigned char *Value, unsigned int size, | |||
|
11 | QObject *parent = 0); | |||
|
12 | ~TMPacketToRead(); | |||
|
13 | ||||
|
14 | unsigned char *Value; | |||
|
15 | unsigned int size; | |||
|
16 | ||||
|
17 | signals: | |||
|
18 | ||||
|
19 | public slots: | |||
|
20 | ||||
|
21 | }; | |||
|
22 | ||||
|
23 | #endif // TMPACKETTOREAD_H |
@@ -0,0 +1,243 | |||||
|
1 | ############################################################################# | |||
|
2 | # Makefile for building: spwtimegenerator | |||
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Mar 29 09:01:03 2013 | |||
|
4 | # Project: spwtimegenerator.pro | |||
|
5 | # Template: app | |||
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro | |||
|
7 | ############################################################################# | |||
|
8 | ||||
|
9 | ####### Compiler, tools and options | |||
|
10 | ||||
|
11 | CC = gcc | |||
|
12 | CXX = g++ | |||
|
13 | DEFINES = -DQT_NO_DEBUG -DQT_GUI_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 $(DEFINES) | |||
|
15 | CXXFLAGS = -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 $(DEFINES) | |||
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I../spw_usb_driver_v2.61/inc -I. | |||
|
17 | LINK = g++ | |||
|
18 | LFLAGS = -Wl,-O1 -Wl,-z,relro | |||
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.62/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.62/lib/x86_64/libConfigLibraryUSB.so -lQtGui -lQtCore -lpthread | |||
|
20 | AR = ar cqs | |||
|
21 | RANLIB = | |||
|
22 | QMAKE = /usr/bin/qmake-qt4 | |||
|
23 | TAR = tar -cf | |||
|
24 | COMPRESS = gzip -9f | |||
|
25 | COPY = cp -f | |||
|
26 | SED = sed | |||
|
27 | COPY_FILE = $(COPY) | |||
|
28 | COPY_DIR = $(COPY) -r | |||
|
29 | STRIP = | |||
|
30 | INSTALL_FILE = install -m 644 -p | |||
|
31 | INSTALL_DIR = $(COPY_DIR) | |||
|
32 | INSTALL_PROGRAM = install -m 755 -p | |||
|
33 | DEL_FILE = rm -f | |||
|
34 | SYMLINK = ln -f -s | |||
|
35 | DEL_DIR = rmdir | |||
|
36 | MOVE = mv -f | |||
|
37 | CHK_DIR_EXISTS= test -d | |||
|
38 | MKDIR = mkdir -p | |||
|
39 | ||||
|
40 | ####### Output directory | |||
|
41 | ||||
|
42 | OBJECTS_DIR = ./ | |||
|
43 | ||||
|
44 | ####### Files | |||
|
45 | ||||
|
46 | SOURCES = main.cpp \ | |||
|
47 | mainwindow.cpp \ | |||
|
48 | mainwindowui.cpp moc_mainwindow.cpp \ | |||
|
49 | moc_mainwindowui.cpp | |||
|
50 | OBJECTS = main.o \ | |||
|
51 | mainwindow.o \ | |||
|
52 | mainwindowui.o \ | |||
|
53 | moc_mainwindow.o \ | |||
|
54 | moc_mainwindowui.o | |||
|
55 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |||
|
56 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |||
|
57 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |||
|
58 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |||
|
59 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |||
|
60 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |||
|
61 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |||
|
62 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ | |||
|
63 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |||
|
64 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |||
|
65 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |||
|
66 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |||
|
67 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |||
|
68 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |||
|
69 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |||
|
70 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |||
|
71 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |||
|
72 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |||
|
73 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |||
|
74 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |||
|
75 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |||
|
76 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |||
|
77 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |||
|
78 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |||
|
79 | spwtimegenerator.pro | |||
|
80 | QMAKE_TARGET = spwtimegenerator | |||
|
81 | DESTDIR = | |||
|
82 | TARGET = spwtimegenerator | |||
|
83 | ||||
|
84 | first: all | |||
|
85 | ####### Implicit rules | |||
|
86 | ||||
|
87 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |||
|
88 | ||||
|
89 | .cpp.o: | |||
|
90 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
91 | ||||
|
92 | .cc.o: | |||
|
93 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
94 | ||||
|
95 | .cxx.o: | |||
|
96 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
97 | ||||
|
98 | .C.o: | |||
|
99 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
100 | ||||
|
101 | .c.o: | |||
|
102 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
103 | ||||
|
104 | ####### Build rules | |||
|
105 | ||||
|
106 | all: Makefile $(TARGET) | |||
|
107 | ||||
|
108 | $(TARGET): $(OBJECTS) | |||
|
109 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) | |||
|
110 | ||||
|
111 | Makefile: spwtimegenerator.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |||
|
112 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |||
|
113 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |||
|
114 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |||
|
115 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |||
|
116 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |||
|
117 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |||
|
118 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ | |||
|
119 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |||
|
120 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |||
|
121 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |||
|
122 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |||
|
123 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |||
|
124 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |||
|
125 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |||
|
126 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |||
|
127 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |||
|
128 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |||
|
129 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |||
|
130 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |||
|
131 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |||
|
132 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |||
|
133 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |||
|
134 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |||
|
135 | /usr/lib64/libQtGui.prl \ | |||
|
136 | /usr/lib64/libQtCore.prl | |||
|
137 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro | |||
|
138 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |||
|
139 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |||
|
140 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |||
|
141 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |||
|
142 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |||
|
143 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |||
|
144 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |||
|
145 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri: | |||
|
146 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |||
|
147 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |||
|
148 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |||
|
149 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |||
|
150 | /usr/lib64/qt4/mkspecs/features/release.prf: | |||
|
151 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |||
|
152 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |||
|
153 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |||
|
154 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |||
|
155 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |||
|
156 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |||
|
157 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |||
|
158 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |||
|
159 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |||
|
160 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |||
|
161 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |||
|
162 | /usr/lib64/libQtGui.prl: | |||
|
163 | /usr/lib64/libQtCore.prl: | |||
|
164 | qmake: FORCE | |||
|
165 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile spwtimegenerator.pro | |||
|
166 | ||||
|
167 | dist: | |||
|
168 | @$(CHK_DIR_EXISTS) .tmp/spwtimegenerator1.0.0 || $(MKDIR) .tmp/spwtimegenerator1.0.0 | |||
|
169 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/spwtimegenerator1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h .tmp/spwtimegenerator1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp .tmp/spwtimegenerator1.0.0/ && (cd `dirname .tmp/spwtimegenerator1.0.0` && $(TAR) spwtimegenerator1.0.0.tar spwtimegenerator1.0.0 && $(COMPRESS) spwtimegenerator1.0.0.tar) && $(MOVE) `dirname .tmp/spwtimegenerator1.0.0`/spwtimegenerator1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/spwtimegenerator1.0.0 | |||
|
170 | ||||
|
171 | ||||
|
172 | clean:compiler_clean | |||
|
173 | -$(DEL_FILE) $(OBJECTS) | |||
|
174 | -$(DEL_FILE) *~ core *.core | |||
|
175 | ||||
|
176 | ||||
|
177 | ####### Sub-libraries | |||
|
178 | ||||
|
179 | distclean: clean | |||
|
180 | -$(DEL_FILE) $(TARGET) | |||
|
181 | -$(DEL_FILE) Makefile | |||
|
182 | ||||
|
183 | ||||
|
184 | check: first | |||
|
185 | ||||
|
186 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |||
|
187 | ||||
|
188 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |||
|
189 | ||||
|
190 | compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp | |||
|
191 | compiler_moc_header_clean: | |||
|
192 | -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp | |||
|
193 | moc_mainwindow.cpp: mainwindowui.h \ | |||
|
194 | mainwindow.h | |||
|
195 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp | |||
|
196 | ||||
|
197 | moc_mainwindowui.cpp: mainwindowui.h | |||
|
198 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp | |||
|
199 | ||||
|
200 | compiler_rcc_make_all: | |||
|
201 | compiler_rcc_clean: | |||
|
202 | compiler_image_collection_make_all: qmake_image_collection.cpp | |||
|
203 | compiler_image_collection_clean: | |||
|
204 | -$(DEL_FILE) qmake_image_collection.cpp | |||
|
205 | compiler_moc_source_make_all: | |||
|
206 | compiler_moc_source_clean: | |||
|
207 | compiler_uic_make_all: | |||
|
208 | compiler_uic_clean: | |||
|
209 | compiler_yacc_decl_make_all: | |||
|
210 | compiler_yacc_decl_clean: | |||
|
211 | compiler_yacc_impl_make_all: | |||
|
212 | compiler_yacc_impl_clean: | |||
|
213 | compiler_lex_make_all: | |||
|
214 | compiler_lex_clean: | |||
|
215 | compiler_clean: compiler_moc_header_clean | |||
|
216 | ||||
|
217 | ####### Compile | |||
|
218 | ||||
|
219 | main.o: main.cpp mainwindow.h \ | |||
|
220 | mainwindowui.h | |||
|
221 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp | |||
|
222 | ||||
|
223 | mainwindow.o: mainwindow.cpp mainwindow.h \ | |||
|
224 | mainwindowui.h | |||
|
225 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp | |||
|
226 | ||||
|
227 | mainwindowui.o: mainwindowui.cpp mainwindowui.h | |||
|
228 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp | |||
|
229 | ||||
|
230 | moc_mainwindow.o: moc_mainwindow.cpp | |||
|
231 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp | |||
|
232 | ||||
|
233 | moc_mainwindowui.o: moc_mainwindowui.cpp | |||
|
234 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp | |||
|
235 | ||||
|
236 | ####### Install | |||
|
237 | ||||
|
238 | install: FORCE | |||
|
239 | ||||
|
240 | uninstall: FORCE | |||
|
241 | ||||
|
242 | FORCE: | |||
|
243 |
@@ -0,0 +1,11 | |||||
|
1 | #include <QtGui/QApplication> | |||
|
2 | #include "mainwindow.h" | |||
|
3 | ||||
|
4 | int main(int argc, char *argv[]) | |||
|
5 | { | |||
|
6 | QApplication a(argc, argv); | |||
|
7 | MainWindow w; | |||
|
8 | w.show(); | |||
|
9 | ||||
|
10 | return a.exec(); | |||
|
11 | } |
@@ -0,0 +1,181 | |||||
|
1 | #include "mainwindow.h" | |||
|
2 | ||||
|
3 | MainWindow::MainWindow(QWidget *parent) : | |||
|
4 | QWidget(parent) | |||
|
5 | { | |||
|
6 | hDevice = NULL; | |||
|
7 | UI = new mainwindowui(); | |||
|
8 | time = new QTimer(); | |||
|
9 | ||||
|
10 | connect(UI->starDundeeStatusQueryRetryButton, SIGNAL(clicked()), this, SLOT(reTestSPWLink())); | |||
|
11 | connect(UI->startTimeButton, SIGNAL(clicked()), this, SLOT(startSpacewireTime())); | |||
|
12 | connect(UI->sendTimecodeButton, SIGNAL(clicked()), this, SLOT(sendOneTimecode())); | |||
|
13 | connect(UI->sendPacketAndTimecodeButton, SIGNAL(clicked()), this, SLOT(sendOnePacketAndOneTimecode())); | |||
|
14 | connect(this, SIGNAL(sendMessage(QString)), this->UI, SLOT(displayMessage(QString))); | |||
|
15 | ||||
|
16 | this->setLayout(UI->layout()); | |||
|
17 | ||||
|
18 | } | |||
|
19 | ||||
|
20 | MainWindow::~MainWindow() | |||
|
21 | { | |||
|
22 | ||||
|
23 | } | |||
|
24 | ||||
|
25 | void MainWindow::startSpacewireTime() | |||
|
26 | { | |||
|
27 | unsigned int result; | |||
|
28 | if (hDevice==NULL) | |||
|
29 | { | |||
|
30 | result = Open(); | |||
|
31 | } | |||
|
32 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())) | |||
|
33 | { | |||
|
34 | emit sendMessage("OK *** in Start *** start sending packet periodically"); | |||
|
35 | return; | |||
|
36 | } | |||
|
37 | else | |||
|
38 | { | |||
|
39 | emit sendMessage("ERR *** in Start *** "); | |||
|
40 | return; | |||
|
41 | } | |||
|
42 | } | |||
|
43 | ||||
|
44 | void MainWindow::sendOneTimecode() | |||
|
45 | { | |||
|
46 | unsigned int result; | |||
|
47 | U32 timecodeReg, val; | |||
|
48 | ||||
|
49 | if (hDevice==NULL) | |||
|
50 | { | |||
|
51 | result = Open(); | |||
|
52 | } | |||
|
53 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())) | |||
|
54 | { | |||
|
55 | emit sendMessage("OK *** in sendOneTimecode *** stardundee brick running"); | |||
|
56 | } | |||
|
57 | else | |||
|
58 | { | |||
|
59 | emit sendMessage("ERR *** in sendOneTimecode *** stardundee brick not running"); | |||
|
60 | } | |||
|
61 | if(!USBSpaceWire_TC_EnableExternalTimecodeSelection(hDevice,0)) | |||
|
62 | { | |||
|
63 | emit sendMessage("ERR *** disable external timecode selection"); | |||
|
64 | return; | |||
|
65 | } | |||
|
66 | emit sendMessage("OK *** in sendOneTimecode *** next valid tick will be performed"); | |||
|
67 | if(!USBSpaceWire_TC_PerformTickIn(hDevice, 0)) | |||
|
68 | { | |||
|
69 | emit sendMessage("ERR *** in sendOneTimecode *** perform TickIn"); | |||
|
70 | return; | |||
|
71 | } | |||
|
72 | emit sendMessage("OK *** in sendOneTimecode *** tick performed"); | |||
|
73 | // Read the timecode register | |||
|
74 | if (CFGSpaceWire_GetTimecodeRegister(hDevice, &timecodeReg) != CFG_TRANSFER_SUCCESS) | |||
|
75 | { | |||
|
76 | emit sendMessage("Could not read the timecode register"); | |||
|
77 | } | |||
|
78 | else | |||
|
79 | { | |||
|
80 | CFGSpaceWire_TCGetValue(timecodeReg, &val); | |||
|
81 | emit sendMessage("The timecode value is currently: " + QString::number(val)); | |||
|
82 | CFGSpaceWire_TCGetFlags(timecodeReg, &val); | |||
|
83 | emit sendMessage("The timecode flag value is currently: " + QString::number(val)); | |||
|
84 | } | |||
|
85 | ||||
|
86 | } | |||
|
87 | ||||
|
88 | void MainWindow::sendOnePacketAndOneTimecode() | |||
|
89 | { | |||
|
90 | ||||
|
91 | } | |||
|
92 | ||||
|
93 | unsigned int MainWindow::Open() | |||
|
94 | { | |||
|
95 | if (!USBSpaceWire_Open(&hDevice, UI->usbDeviceNumber_SPINBOX->value())) // Open the USB device | |||
|
96 | { | |||
|
97 | emit sendMessage("ERR *** in Open *** USBSpaceWire_Open(&hDevice, 0))"); | |||
|
98 | return 0; | |||
|
99 | } | |||
|
100 | emit sendMessage("OK *** in Open *** USBSpaceWire_Open successful, device number: " | |||
|
101 | + QString::number(UI->usbDeviceNumber_SPINBOX->value())); | |||
|
102 | ||||
|
103 | USBSpaceWire_EnableNetworkMode(hDevice, 0); // deactivate the network mode | |||
|
104 | CFGSpaceWire_EnableRMAP(1); // Enable the use of RMAP for the StarDundee brick configuration | |||
|
105 | CFGSpaceWire_SetRMAPDestinationKey(0x20); // Set the destination key expected by STAR-Dundee devices | |||
|
106 | ||||
|
107 | // Set the path and return path to the device | |||
|
108 | CFGSpaceWire_StackClear(); | |||
|
109 | CFGSpaceWire_AddrStackPush(0); | |||
|
110 | CFGSpaceWire_AddrStackPush(254); | |||
|
111 | CFGSpaceWire_RetAddrStackPush(254); | |||
|
112 | ||||
|
113 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())==0) | |||
|
114 | { | |||
|
115 | return UI->starDundeeStatusQueryDialog->exec(); | |||
|
116 | } | |||
|
117 | if (!USBSpaceWire_TC_Reset(hDevice)) | |||
|
118 | { | |||
|
119 | emit sendMessage("ERR *** in Open *** Could not reset timecodes\n"); | |||
|
120 | } | |||
|
121 | emit sendMessage("OK *** in Open *** reset timecodes"); | |||
|
122 | } | |||
|
123 | ||||
|
124 | unsigned int MainWindow::getLinkStatus(unsigned char link) | |||
|
125 | { | |||
|
126 | U32 statusControl = 0, errorStatus = 0, portType = 0; | |||
|
127 | U32 linkStatus = 0, operatingSpeed = 0, outputPortConnection = 0; | |||
|
128 | char isLinkRunning = 0, isAutoStart = 0, isStart = 0, isDisabled = 0, isTristate = 0; | |||
|
129 | ||||
|
130 | // Read the link status control register | |||
|
131 | if (CFGSpaceWire_GetLinkStatusControl(hDevice, 1, &statusControl) != CFG_TRANSFER_SUCCESS) | |||
|
132 | { | |||
|
133 | emit sendMessage("Could not read link status control for link" + QString::number(link)); | |||
|
134 | } | |||
|
135 | else | |||
|
136 | { | |||
|
137 | // Display the link status control register properties | |||
|
138 | CFGSpaceWire_LSPortType(statusControl, &portType); | |||
|
139 | if (portType == CFG_CONFIGURATION_PORT) | |||
|
140 | { | |||
|
141 | CFGSpaceWire_LSConfigErrorStatus(statusControl, &errorStatus); | |||
|
142 | //emit appendToLog("Configuration port error status = " + QString::number(errorStatus)); | |||
|
143 | } | |||
|
144 | else if (portType == CFG_SPACEWIRE_EXTERNAL_PORT) | |||
|
145 | { | |||
|
146 | CFGSpaceWire_LSExternalErrorStatus(statusControl, &errorStatus); | |||
|
147 | //emit appendToLog("External port error status = " + QString::number(errorStatus)); | |||
|
148 | } | |||
|
149 | else | |||
|
150 | { | |||
|
151 | CFGSpaceWire_LSErrorStatus(statusControl, &errorStatus); | |||
|
152 | //emit appendToLog("SpaceWire link error status = " + QString::number(errorStatus)); | |||
|
153 | } | |||
|
154 | CFGSpaceWire_LSLinkState(statusControl, &linkStatus); | |||
|
155 | CFGSpaceWire_LSIsLinkRunning(statusControl, &isLinkRunning); | |||
|
156 | CFGSpaceWire_LSIsAutoStart(statusControl, &isAutoStart); | |||
|
157 | CFGSpaceWire_LSIsStart(statusControl, &isStart); | |||
|
158 | CFGSpaceWire_LSIsDisabled(statusControl, &isDisabled); | |||
|
159 | CFGSpaceWire_LSIsTristate(statusControl, &isTristate); | |||
|
160 | CFGSpaceWire_LSOperatingSpeed(statusControl, &operatingSpeed); | |||
|
161 | CFGSpaceWire_LSOutputPortConnection(statusControl, &outputPortConnection); | |||
|
162 | //emit appendToLog("The link state is = " + QString::number(linkStatus)); | |||
|
163 | //emit appendToLog("The link is running = " + QString::number(isLinkRunning)); | |||
|
164 | //emit appendToLog("The autostart bit is enabled = " + QString::number(isAutoStart)); | |||
|
165 | //emit appendToLog("The start bit is enabled = " + QString::number(isStart)); | |||
|
166 | //emit appendToLog("The link is disabled = " + QString::number(isDisabled)); | |||
|
167 | //emit appendToLog("The tri-state bit is enabled = " + QString::number(isAutoStart)); | |||
|
168 | //emit appendToLog("The operating speed is = " + QString::number(operatingSpeed)); | |||
|
169 | //emit appendToLog("This port is currently connected to output port = " + QString::number(outputPortConnection)); | |||
|
170 | } | |||
|
171 | if (linkStatus == 5) return 1; | |||
|
172 | else return 0; | |||
|
173 | } | |||
|
174 | ||||
|
175 | void MainWindow::reTestSPWLink() // SLOT | |||
|
176 | { | |||
|
177 | if (getLinkStatus(UI->linkNumber_SPINBOX->value())) | |||
|
178 | { | |||
|
179 | UI->starDundeeStatusQueryDialog->accept(); | |||
|
180 | } | |||
|
181 | } |
@@ -0,0 +1,40 | |||||
|
1 | #ifndef MAINWINDOW_H | |||
|
2 | #define MAINWINDOW_H | |||
|
3 | ||||
|
4 | #include <QtGui/QMainWindow> | |||
|
5 | #include "spw_usb_api.h" | |||
|
6 | #include "spw_config_library.h" | |||
|
7 | #include <mainwindowui.h> | |||
|
8 | #include <QDialog> | |||
|
9 | #include <QObject> | |||
|
10 | #include <QTimer> | |||
|
11 | ||||
|
12 | class MainWindow : public QWidget | |||
|
13 | { | |||
|
14 | Q_OBJECT | |||
|
15 | ||||
|
16 | public: | |||
|
17 | MainWindow(QWidget *parent = 0); | |||
|
18 | ~MainWindow(); | |||
|
19 | ||||
|
20 | private: | |||
|
21 | unsigned int getLinkStatus(unsigned char link); | |||
|
22 | ||||
|
23 | star_device_handle hDevice; // Handle to the SpaceWire device | |||
|
24 | bool isRunning; | |||
|
25 | ||||
|
26 | mainwindowui *UI; | |||
|
27 | QTimer *time; | |||
|
28 | ||||
|
29 | signals: | |||
|
30 | void sendMessage(QString); | |||
|
31 | ||||
|
32 | public slots: | |||
|
33 | unsigned int Open(); | |||
|
34 | void startSpacewireTime(); | |||
|
35 | void sendOneTimecode(); | |||
|
36 | void sendOnePacketAndOneTimecode(); | |||
|
37 | void reTestSPWLink(); | |||
|
38 | }; | |||
|
39 | ||||
|
40 | #endif // MAINWINDOW_H |
@@ -0,0 +1,57 | |||||
|
1 | #include "mainwindowui.h" | |||
|
2 | ||||
|
3 | mainwindowui::mainwindowui(QWidget *parent) : | |||
|
4 | QWidget(parent) | |||
|
5 | { | |||
|
6 | starDundeeStatusQueryDialog = new QDialog; | |||
|
7 | ||||
|
8 | connection_LAYOUT = new QGridLayout; | |||
|
9 | ||||
|
10 | usbDeviceNumber_LABEL = new QLabel(tr("USB device number: ")); | |||
|
11 | linkNumber_LABEL = new QLabel(tr("SpaceWire link number: ")); | |||
|
12 | starDundeeStatusQueryDialogLabel = new QLabel(tr("SpaceWire link not running")); | |||
|
13 | ||||
|
14 | //*** QPUSHBUTTON ***// | |||
|
15 | starDundeeStatusQueryRetryButton = new QPushButton(tr("Retry")); | |||
|
16 | starDundeeStatusQueryAbortButton = new QPushButton(tr("Abort")); | |||
|
17 | startTimeButton = new QPushButton(tr("start sending time packets and timecodes periodically")); | |||
|
18 | sendTimecodeButton = new QPushButton(tr("send one timecode")); | |||
|
19 | sendPacketAndTimecodeButton = new QPushButton(tr("send time packet and timecode")); | |||
|
20 | ||||
|
21 | usbDeviceNumber_SPINBOX = new QSpinBox; | |||
|
22 | usbDeviceNumber_SPINBOX->setRange(0,32); | |||
|
23 | usbDeviceNumber_SPINBOX->setValue(0); | |||
|
24 | linkNumber_SPINBOX = new QSpinBox; | |||
|
25 | linkNumber_SPINBOX->setRange(1,2); | |||
|
26 | linkNumber_SPINBOX->setValue(1); | |||
|
27 | ||||
|
28 | console = new QTextEdit; | |||
|
29 | ||||
|
30 | // STAR DUNDEE STATUS QUERY DIALOG | |||
|
31 | starDundeeStatusQueryDialogLayout = new QGridLayout; | |||
|
32 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryDialogLabel, 0, 0, 1, 2); | |||
|
33 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryRetryButton, 1, 0, 0); | |||
|
34 | starDundeeStatusQueryDialogLayout->addWidget(starDundeeStatusQueryAbortButton, 1, 1, 0); | |||
|
35 | starDundeeStatusQueryDialog->setLayout(starDundeeStatusQueryDialogLayout); | |||
|
36 | ||||
|
37 | connection_LAYOUT->addWidget(usbDeviceNumber_LABEL, 0, 0, 1, 1); | |||
|
38 | connection_LAYOUT->addWidget(usbDeviceNumber_SPINBOX, 0, 1, 1, 1); | |||
|
39 | connection_LAYOUT->addWidget(linkNumber_LABEL, 1, 0, 1, 1); | |||
|
40 | connection_LAYOUT->addWidget(linkNumber_SPINBOX, 1, 1, 1, 1); | |||
|
41 | connection_LAYOUT->addWidget(sendTimecodeButton, 2, 0, 1, 2); | |||
|
42 | connection_LAYOUT->addWidget(sendPacketAndTimecodeButton, 3, 0, 1, 2); | |||
|
43 | connection_LAYOUT->addWidget(startTimeButton, 4, 0, 1, 2); | |||
|
44 | connection_LAYOUT->addWidget(console, 5, 0, 3, 3); | |||
|
45 | ||||
|
46 | //connection_LAYOUT->setRowStretch(6, 1); | |||
|
47 | connection_LAYOUT->setColumnStretch(2, 1); | |||
|
48 | ||||
|
49 | this->setLayout(connection_LAYOUT); | |||
|
50 | ||||
|
51 | connect(starDundeeStatusQueryAbortButton, SIGNAL(clicked()), starDundeeStatusQueryDialog, SLOT(reject())); | |||
|
52 | } | |||
|
53 | ||||
|
54 | void mainwindowui::displayMessage(QString message) | |||
|
55 | { | |||
|
56 | this->console->append(message); | |||
|
57 | } |
@@ -0,0 +1,45 | |||||
|
1 | #ifndef MAINWINDOWUI_H | |||
|
2 | #define MAINWINDOWUI_H | |||
|
3 | ||||
|
4 | #include <QWidget> | |||
|
5 | #include <QLabel> | |||
|
6 | #include <QSpinBox> | |||
|
7 | #include <QGridLayout> | |||
|
8 | #include <QPushButton> | |||
|
9 | #include <QTextEdit> | |||
|
10 | #include <QDialog> | |||
|
11 | ||||
|
12 | class mainwindowui : public QWidget | |||
|
13 | { | |||
|
14 | Q_OBJECT | |||
|
15 | public: | |||
|
16 | explicit mainwindowui(QWidget *parent = 0); | |||
|
17 | ||||
|
18 | signals: | |||
|
19 | ||||
|
20 | public slots: | |||
|
21 | void displayMessage(QString message); | |||
|
22 | ||||
|
23 | public: | |||
|
24 | QLabel *usbDeviceNumber_LABEL; | |||
|
25 | QLabel *linkNumber_LABEL; | |||
|
26 | QLabel *starDundeeStatusQueryDialogLabel; | |||
|
27 | ||||
|
28 | QSpinBox *usbDeviceNumber_SPINBOX; | |||
|
29 | QSpinBox *linkNumber_SPINBOX; | |||
|
30 | ||||
|
31 | QGridLayout *connection_LAYOUT; | |||
|
32 | QGridLayout *starDundeeStatusQueryDialogLayout; | |||
|
33 | ||||
|
34 | QDialog *starDundeeStatusQueryDialog; | |||
|
35 | ||||
|
36 | QPushButton *startTimeButton; | |||
|
37 | QPushButton *sendTimecodeButton; | |||
|
38 | QPushButton *sendPacketAndTimecodeButton; | |||
|
39 | QPushButton *starDundeeStatusQueryRetryButton; | |||
|
40 | QPushButton *starDundeeStatusQueryAbortButton; | |||
|
41 | ||||
|
42 | QTextEdit* console; | |||
|
43 | }; | |||
|
44 | ||||
|
45 | #endif // MAINWINDOWUI_H |
1 | NO CONTENT: new file 100755, binary diff hidden |
|
NO CONTENT: new file 100755, binary diff hidden |
@@ -0,0 +1,26 | |||||
|
1 | #------------------------------------------------- | |||
|
2 | # | |||
|
3 | # Project created by QtCreator 2013-03-29T07:55:31 | |||
|
4 | # | |||
|
5 | #------------------------------------------------- | |||
|
6 | ||||
|
7 | QT += core gui | |||
|
8 | ||||
|
9 | TARGET = spwtimegenerator | |||
|
10 | TEMPLATE = app | |||
|
11 | ||||
|
12 | SOURCES += main.cpp\ | |||
|
13 | mainwindow.cpp \ | |||
|
14 | mainwindowui.cpp | |||
|
15 | ||||
|
16 | HEADERS += mainwindow.h \ | |||
|
17 | mainwindowui.h \ | |||
|
18 | ../spw_usb_driver_v2.61/inc/spw_usb_api.h \ | |||
|
19 | ../spw_usb_driver_v2.61/inc/spw_config_library.h | |||
|
20 | ||||
|
21 | LIBS += ../spw_usb_driver_v2.62/lib/x86_64/libSpaceWireUSBAPI.so \ | |||
|
22 | ../spw_usb_driver_v2.62/lib/x86_64/libConfigLibraryUSB.so | |||
|
23 | ||||
|
24 | INCLUDEPATH += \ | |||
|
25 | $${PWD} \ | |||
|
26 | ../spw_usb_driver_v2.61/inc |
@@ -0,0 +1,265 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |||
|
2 | <!DOCTYPE QtCreatorProject> | |||
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-04-02T16:07:04. --> | |||
|
4 | <qtcreator> | |||
|
5 | <data> | |||
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |||
|
7 | <value type="int">0</value> | |||
|
8 | </data> | |||
|
9 | <data> | |||
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |||
|
11 | <valuemap type="QVariantMap"> | |||
|
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |||
|
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |||
|
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |||
|
15 | <value type="QString" key="language">Cpp</value> | |||
|
16 | <valuemap type="QVariantMap" key="value"> | |||
|
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |||
|
18 | </valuemap> | |||
|
19 | </valuemap> | |||
|
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |||
|
21 | <value type="QString" key="language">QmlJS</value> | |||
|
22 | <valuemap type="QVariantMap" key="value"> | |||
|
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |||
|
24 | </valuemap> | |||
|
25 | </valuemap> | |||
|
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |||
|
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |||
|
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |||
|
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |||
|
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |||
|
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |||
|
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |||
|
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |||
|
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |||
|
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |||
|
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |||
|
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |||
|
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |||
|
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |||
|
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |||
|
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |||
|
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |||
|
43 | </valuemap> | |||
|
44 | </data> | |||
|
45 | <data> | |||
|
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |||
|
47 | <valuemap type="QVariantMap"/> | |||
|
48 | </data> | |||
|
49 | <data> | |||
|
50 | <variable>ProjectExplorer.Project.Target.0</variable> | |||
|
51 | <valuemap type="QVariantMap"> | |||
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |||
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |||
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> | |||
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |||
|
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |||
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |||
|
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> | |||
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |||
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |||
|
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |||
|
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |||
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |||
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |||
|
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |||
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |||
|
69 | </valuemap> | |||
|
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |||
|
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |||
|
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |||
|
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |||
|
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |||
|
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |||
|
77 | </valuemap> | |||
|
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |||
|
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |||
|
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |||
|
82 | </valuemap> | |||
|
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |||
|
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |||
|
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |||
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |||
|
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |||
|
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |||
|
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |||
|
91 | </valuemap> | |||
|
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |||
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |||
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |||
|
96 | </valuemap> | |||
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |||
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |||
|
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> | |||
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |||
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |||
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/spwtimegenerator</value> | |||
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |||
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |||
|
107 | </valuemap> | |||
|
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> | |||
|
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |||
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |||
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |||
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |||
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |||
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |||
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |||
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |||
|
119 | </valuemap> | |||
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |||
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |||
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |||
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |||
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |||
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |||
|
127 | </valuemap> | |||
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |||
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |||
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |||
|
132 | </valuemap> | |||
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |||
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |||
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |||
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |||
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |||
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |||
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |||
|
141 | </valuemap> | |||
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |||
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |||
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |||
|
146 | </valuemap> | |||
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |||
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |||
|
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> | |||
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |||
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |||
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/spwtimegenerator</value> | |||
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |||
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |||
|
157 | </valuemap> | |||
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |||
|
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |||
|
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |||
|
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |||
|
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |||
|
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |||
|
165 | </valuemap> | |||
|
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |||
|
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |||
|
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |||
|
170 | </valuemap> | |||
|
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |||
|
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |||
|
173 | <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"/> | |||
|
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |||
|
177 | <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> | |||
|
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |||
|
181 | <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> | |||
|
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |||
|
185 | <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> | |||
|
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |||
|
189 | <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> | |||
|
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |||
|
193 | <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"/> | |||
|
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |||
|
197 | <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> | |||
|
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |||
|
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |||
|
202 | <value type="int">0</value> | |||
|
203 | <value type="int">1</value> | |||
|
204 | <value type="int">2</value> | |||
|
205 | <value type="int">3</value> | |||
|
206 | <value type="int">4</value> | |||
|
207 | <value type="int">5</value> | |||
|
208 | <value type="int">6</value> | |||
|
209 | <value type="int">7</value> | |||
|
210 | <value type="int">8</value> | |||
|
211 | <value type="int">9</value> | |||
|
212 | <value type="int">10</value> | |||
|
213 | <value type="int">11</value> | |||
|
214 | <value type="int">12</value> | |||
|
215 | <value type="int">13</value> | |||
|
216 | <value type="int">14</value> | |||
|
217 | </valuelist> | |||
|
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |||
|
219 | <value type="int">0</value> | |||
|
220 | <value type="int">1</value> | |||
|
221 | <value type="int">2</value> | |||
|
222 | <value type="int">3</value> | |||
|
223 | <value type="int">4</value> | |||
|
224 | <value type="int">5</value> | |||
|
225 | <value type="int">6</value> | |||
|
226 | <value type="int">7</value> | |||
|
227 | <value type="int">8</value> | |||
|
228 | <value type="int">9</value> | |||
|
229 | <value type="int">10</value> | |||
|
230 | <value type="int">11</value> | |||
|
231 | <value type="int">12</value> | |||
|
232 | <value type="int">13</value> | |||
|
233 | <value type="int">14</value> | |||
|
234 | </valuelist> | |||
|
235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">spwtimegenerator</value> | |||
|
236 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
237 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> | |||
|
238 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> | |||
|
239 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |||
|
240 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">spwtimegenerator.pro</value> | |||
|
241 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |||
|
242 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> | |||
|
243 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> | |||
|
244 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |||
|
245 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |||
|
246 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |||
|
247 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |||
|
248 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |||
|
249 | </valuemap> | |||
|
250 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |||
|
251 | </valuemap> | |||
|
252 | </data> | |||
|
253 | <data> | |||
|
254 | <variable>ProjectExplorer.Project.TargetCount</variable> | |||
|
255 | <value type="int">1</value> | |||
|
256 | </data> | |||
|
257 | <data> | |||
|
258 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |||
|
259 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |||
|
260 | </data> | |||
|
261 | <data> | |||
|
262 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |||
|
263 | <value type="int">10</value> | |||
|
264 | </data> | |||
|
265 | </qtcreator> |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now