Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raptor Engineering Public Development
dsview
Commits
153d1f9e
Commit
153d1f9e
authored
Apr 17, 2015
by
DreamSourceLab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename project for upgrade
parent
eea8d95e
Changes
174
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
174 changed files
with
5980 additions
and
1524 deletions
+5980
-1524
DSView/CMakeLists.txt
DSView/CMakeLists.txt
+40
-32
DSView/DSView.qrc
DSView/DSView.qrc
+1
-0
DSView/INSTALL
DSView/INSTALL
+3
-3
DSView/README
DSView/README
+3
-3
DSView/cmake_clear
DSView/cmake_clear
+6
-0
DSView/config.h.in
DSView/config.h.in
+3
-3
DSView/extdef.h
DSView/extdef.h
+5
-5
DSView/icons/load.gif
DSView/icons/load.gif
+0
-0
DSView/icons/wait.gif
DSView/icons/wait.gif
+0
-0
DSView/main.cpp
DSView/main.cpp
+4
-4
DSView/pv/data/analog.cpp
DSView/pv/data/analog.cpp
+4
-10
DSView/pv/data/analog.h
DSView/pv/data/analog.h
+6
-9
DSView/pv/data/analogsnapshot.cpp
DSView/pv/data/analogsnapshot.cpp
+2
-2
DSView/pv/data/analogsnapshot.h
DSView/pv/data/analogsnapshot.h
+5
-5
DSView/pv/data/decode/annotation.h
DSView/pv/data/decode/annotation.h
+3
-3
DSView/pv/data/decode/decoder.cpp
DSView/pv/data/decode/decoder.cpp
+2
-13
DSView/pv/data/decode/decoder.h
DSView/pv/data/decode/decoder.h
+4
-7
DSView/pv/data/decode/row.h
DSView/pv/data/decode/row.h
+3
-3
DSView/pv/data/decode/rowdata.h
DSView/pv/data/decode/rowdata.h
+3
-3
DSView/pv/data/decoderstack.h
DSView/pv/data/decoderstack.h
+3
-3
DSView/pv/data/dso.cpp
DSView/pv/data/dso.cpp
+4
-4
DSView/pv/data/dso.h
DSView/pv/data/dso.h
+6
-6
DSView/pv/data/dsosnapshot.cpp
DSView/pv/data/dsosnapshot.cpp
+30
-12
DSView/pv/data/dsosnapshot.h
DSView/pv/data/dsosnapshot.h
+11
-6
DSView/pv/data/group.cpp
DSView/pv/data/group.cpp
+2
-2
DSView/pv/data/group.h
DSView/pv/data/group.h
+5
-5
DSView/pv/data/groupsnapshot.cpp
DSView/pv/data/groupsnapshot.cpp
+2
-2
DSView/pv/data/groupsnapshot.h
DSView/pv/data/groupsnapshot.h
+5
-5
DSView/pv/data/logic.cpp
DSView/pv/data/logic.cpp
+4
-4
DSView/pv/data/logic.h
DSView/pv/data/logic.h
+6
-8
DSView/pv/data/logicsnapshot.cpp
DSView/pv/data/logicsnapshot.cpp
+2
-2
DSView/pv/data/logicsnapshot.h
DSView/pv/data/logicsnapshot.h
+5
-5
DSView/pv/data/signaldata.cpp
DSView/pv/data/signaldata.cpp
+4
-17
DSView/pv/data/signaldata.h
DSView/pv/data/signaldata.h
+6
-11
DSView/pv/data/snapshot.cpp
DSView/pv/data/snapshot.cpp
+19
-5
DSView/pv/data/snapshot.h
DSView/pv/data/snapshot.h
+7
-6
DSView/pv/device/device.cpp
DSView/pv/device/device.cpp
+3
-3
DSView/pv/device/device.h
DSView/pv/device/device.h
+5
-5
DSView/pv/device/devinst.cpp
DSView/pv/device/devinst.cpp
+3
-3
DSView/pv/device/devinst.h
DSView/pv/device/devinst.h
+5
-5
DSView/pv/device/file.cpp
DSView/pv/device/file.cpp
+3
-3
DSView/pv/device/file.h
DSView/pv/device/file.h
+5
-5
DSView/pv/device/inputfile.cpp
DSView/pv/device/inputfile.cpp
+3
-3
DSView/pv/device/inputfile.h
DSView/pv/device/inputfile.h
+5
-5
DSView/pv/device/sessionfile.cpp
DSView/pv/device/sessionfile.cpp
+3
-3
DSView/pv/device/sessionfile.h
DSView/pv/device/sessionfile.h
+5
-5
DSView/pv/devicemanager.cpp
DSView/pv/devicemanager.cpp
+5
-5
DSView/pv/devicemanager.h
DSView/pv/devicemanager.h
+5
-5
DSView/pv/dialogs/about.cpp
DSView/pv/dialogs/about.cpp
+11
-3
DSView/pv/dialogs/about.h
DSView/pv/dialogs/about.h
+8
-5
DSView/pv/dialogs/about.ui
DSView/pv/dialogs/about.ui
+9
-2
DSView/pv/dialogs/deviceoptions.cpp
DSView/pv/dialogs/deviceoptions.cpp
+48
-21
DSView/pv/dialogs/deviceoptions.h
DSView/pv/dialogs/deviceoptions.h
+14
-9
DSView/pv/dialogs/search.cpp
DSView/pv/dialogs/search.cpp
+2
-2
DSView/pv/dialogs/search.h
DSView/pv/dialogs/search.h
+6
-6
DSView/pv/dialogs/storeprogress.h
DSView/pv/dialogs/storeprogress.h
+2
-2
DSView/pv/dialogs/streamoptions.cpp
DSView/pv/dialogs/streamoptions.cpp
+107
-0
DSView/pv/dialogs/streamoptions.h
DSView/pv/dialogs/streamoptions.h
+76
-0
DSView/pv/dialogs/waitingdialog.cpp
DSView/pv/dialogs/waitingdialog.cpp
+132
-0
DSView/pv/dialogs/waitingdialog.h
DSView/pv/dialogs/waitingdialog.h
+77
-0
DSView/pv/dock/dsotriggerdock.cpp
DSView/pv/dock/dsotriggerdock.cpp
+31
-3
DSView/pv/dock/dsotriggerdock.h
DSView/pv/dock/dsotriggerdock.h
+8
-6
DSView/pv/dock/measuredock.cpp
DSView/pv/dock/measuredock.cpp
+4
-4
DSView/pv/dock/measuredock.h
DSView/pv/dock/measuredock.h
+6
-6
DSView/pv/dock/protocoldock.cpp
DSView/pv/dock/protocoldock.cpp
+2
-2
DSView/pv/dock/protocoldock.h
DSView/pv/dock/protocoldock.h
+6
-6
DSView/pv/dock/searchdock.cpp
DSView/pv/dock/searchdock.cpp
+2
-2
DSView/pv/dock/searchdock.h
DSView/pv/dock/searchdock.h
+6
-6
DSView/pv/dock/triggerdock.cpp
DSView/pv/dock/triggerdock.cpp
+43
-10
DSView/pv/dock/triggerdock.h
DSView/pv/dock/triggerdock.h
+8
-6
DSView/pv/mainwindow.cpp
DSView/pv/mainwindow.cpp
+111
-40
DSView/pv/mainwindow.h
DSView/pv/mainwindow.h
+11
-5
DSView/pv/prop/binding/binding.cpp
DSView/pv/prop/binding/binding.cpp
+2
-2
DSView/pv/prop/binding/binding.h
DSView/pv/prop/binding/binding.h
+5
-5
DSView/pv/prop/binding/binding_deviceoptions.cpp
DSView/pv/prop/binding/binding_deviceoptions.cpp
+20
-2
DSView/pv/prop/binding/decoderoptions.h
DSView/pv/prop/binding/decoderoptions.h
+3
-3
DSView/pv/prop/binding/deviceoptions.h
DSView/pv/prop/binding/deviceoptions.h
+10
-6
DSView/pv/prop/bool.cpp
DSView/pv/prop/bool.cpp
+2
-2
DSView/pv/prop/bool.h
DSView/pv/prop/bool.h
+5
-5
DSView/pv/prop/double.cpp
DSView/pv/prop/double.cpp
+2
-2
DSView/pv/prop/double.h
DSView/pv/prop/double.h
+5
-5
DSView/pv/prop/enum.cpp
DSView/pv/prop/enum.cpp
+2
-2
DSView/pv/prop/enum.h
DSView/pv/prop/enum.h
+5
-5
DSView/pv/prop/int.cpp
DSView/pv/prop/int.cpp
+2
-2
DSView/pv/prop/int.h
DSView/pv/prop/int.h
+5
-5
DSView/pv/prop/property.cpp
DSView/pv/prop/property.cpp
+2
-2
DSView/pv/prop/property.h
DSView/pv/prop/property.h
+5
-5
DSView/pv/prop/string.h
DSView/pv/prop/string.h
+3
-3
DSView/pv/sigsession.cpp
DSView/pv/sigsession.cpp
+133
-55
DSView/pv/sigsession.h
DSView/pv/sigsession.h
+23
-13
DSView/pv/storesession.cpp
DSView/pv/storesession.cpp
+2
-2
DSView/pv/storesession.h
DSView/pv/storesession.h
+3
-3
DSView/pv/toolbars/filebar.cpp
DSView/pv/toolbars/filebar.cpp
+5
-5
DSView/pv/toolbars/filebar.h
DSView/pv/toolbars/filebar.h
+5
-5
DSView/pv/toolbars/logobar.cpp
DSView/pv/toolbars/logobar.cpp
+3
-3
DSView/pv/toolbars/logobar.h
DSView/pv/toolbars/logobar.h
+6
-6
DSView/pv/toolbars/samplingbar.cpp
DSView/pv/toolbars/samplingbar.cpp
+264
-55
DSView/pv/toolbars/samplingbar.h
DSView/pv/toolbars/samplingbar.h
+15
-8
DSView/pv/toolbars/trigbar.cpp
DSView/pv/toolbars/trigbar.cpp
+9
-2
DSView/pv/toolbars/trigbar.h
DSView/pv/toolbars/trigbar.h
+6
-6
DSView/pv/view/analogsignal.cpp
DSView/pv/view/analogsignal.cpp
+2
-2
DSView/pv/view/analogsignal.h
DSView/pv/view/analogsignal.h
+5
-5
DSView/pv/view/cursor.cpp
DSView/pv/view/cursor.cpp
+2
-2
DSView/pv/view/cursor.h
DSView/pv/view/cursor.h
+5
-5
DSView/pv/view/decodetrace.cpp
DSView/pv/view/decodetrace.cpp
+0
-1
DSView/pv/view/decodetrace.h
DSView/pv/view/decodetrace.h
+3
-3
DSView/pv/view/devmode.cpp
DSView/pv/view/devmode.cpp
+2
-35
DSView/pv/view/devmode.h
DSView/pv/view/devmode.h
+6
-6
DSView/pv/view/dsldial.h
DSView/pv/view/dsldial.h
+3
-3
DSView/pv/view/dsosignal.cpp
DSView/pv/view/dsosignal.cpp
+339
-74
DSView/pv/view/dsosignal.h
DSView/pv/view/dsosignal.h
+30
-13
DSView/pv/view/groupsignal.cpp
DSView/pv/view/groupsignal.cpp
+4
-4
DSView/pv/view/groupsignal.h
DSView/pv/view/groupsignal.h
+5
-5
DSView/pv/view/header.cpp
DSView/pv/view/header.cpp
+48
-7
DSView/pv/view/header.h
DSView/pv/view/header.h
+6
-5
DSView/pv/view/logicsignal.cpp
DSView/pv/view/logicsignal.cpp
+2
-2
DSView/pv/view/logicsignal.h
DSView/pv/view/logicsignal.h
+5
-5
DSView/pv/view/ruler.cpp
DSView/pv/view/ruler.cpp
+10
-10
DSView/pv/view/ruler.h
DSView/pv/view/ruler.h
+5
-5
DSView/pv/view/selectableitem.cpp
DSView/pv/view/selectableitem.cpp
+2
-2
DSView/pv/view/selectableitem.h
DSView/pv/view/selectableitem.h
+5
-5
DSView/pv/view/signal.cpp
DSView/pv/view/signal.cpp
+2
-2
DSView/pv/view/signal.h
DSView/pv/view/signal.h
+6
-6
DSView/pv/view/timemarker.cpp
DSView/pv/view/timemarker.cpp
+2
-2
DSView/pv/view/timemarker.h
DSView/pv/view/timemarker.h
+5
-5
DSView/pv/view/trace.cpp
DSView/pv/view/trace.cpp
+3
-3
DSView/pv/view/trace.h
DSView/pv/view/trace.h
+5
-5
DSView/pv/view/view.cpp
DSView/pv/view/view.cpp
+60
-27
DSView/pv/view/view.h
DSView/pv/view/view.h
+19
-7
DSView/pv/view/viewport.cpp
DSView/pv/view/viewport.cpp
+27
-22
DSView/pv/view/viewport.h
DSView/pv/view/viewport.h
+5
-5
DSView/pv/widgets/decodergroupbox.h
DSView/pv/widgets/decodergroupbox.h
+3
-3
DSView/pv/widgets/decodermenu.cpp
DSView/pv/widgets/decodermenu.cpp
+2
-2
DSView/pv/widgets/decodermenu.h
DSView/pv/widgets/decodermenu.h
+5
-5
DSView/pv/widgets/fakelineedit.cpp
DSView/pv/widgets/fakelineedit.cpp
+2
-2
DSView/pv/widgets/fakelineedit.h
DSView/pv/widgets/fakelineedit.h
+5
-5
DSView/res/DSCope.bin
DSView/res/DSCope.bin
+0
-0
DSView/res/DSCope.fw
DSView/res/DSCope.fw
+0
-0
DSView/res/DSLogic.fw
DSView/res/DSLogic.fw
+0
-0
DSView/res/DSLogic33.bin
DSView/res/DSLogic33.bin
+0
-0
DSView/res/DSLogic50.bin
DSView/res/DSLogic50.bin
+0
-0
DSView/res/DSLogicPro.bin
DSView/res/DSLogicPro.bin
+0
-0
DSView/res/DSLogicPro.fw
DSView/res/DSLogicPro.fw
+0
-0
DSView/test/CMakeLists.txt
DSView/test/CMakeLists.txt
+161
-87
INSTALL
INSTALL
+7
-7
NEWS
NEWS
+10
-0
README
README
+5
-5
libsigrok4DSL/Makefile.am
libsigrok4DSL/Makefile.am
+11
-11
libsigrok4DSL/README
libsigrok4DSL/README
+6
-6
libsigrok4DSL/configure.ac
libsigrok4DSL/configure.ac
+13
-13
libsigrok4DSL/dsdevice.c
libsigrok4DSL/dsdevice.c
+1
-0
libsigrok4DSL/hardware/DSL/Makefile.am
libsigrok4DSL/hardware/DSL/Makefile.am
+5
-4
libsigrok4DSL/hardware/DSL/command.c
libsigrok4DSL/hardware/DSL/command.c
+104
-9
libsigrok4DSL/hardware/DSL/command.h
libsigrok4DSL/hardware/DSL/command.h
+52
-4
libsigrok4DSL/hardware/DSL/dscope.c
libsigrok4DSL/hardware/DSL/dscope.c
+2391
-0
libsigrok4DSL/hardware/DSL/dsl.h
libsigrok4DSL/hardware/DSL/dsl.h
+58
-16
libsigrok4DSL/hardware/DSL/dslogic.c
libsigrok4DSL/hardware/DSL/dslogic.c
+729
-374
libsigrok4DSL/hardware/Makefile.am
libsigrok4DSL/hardware/Makefile.am
+7
-7
libsigrok4DSL/hardware/common/Makefile.am
libsigrok4DSL/hardware/common/Makefile.am
+3
-3
libsigrok4DSL/hardware/common/ezusb.c
libsigrok4DSL/hardware/common/ezusb.c
+3
-3
libsigrok4DSL/hardware/common/usb.c
libsigrok4DSL/hardware/common/usb.c
+1
-1
libsigrok4DSL/hardware/demo/Makefile.am
libsigrok4DSL/hardware/demo/Makefile.am
+3
-3
libsigrok4DSL/hardware/demo/demo.c
libsigrok4DSL/hardware/demo/demo.c
+94
-15
libsigrok4DSL/hwdriver.c
libsigrok4DSL/hwdriver.c
+9
-4
libsigrok4DSL/input/Makefile.am
libsigrok4DSL/input/Makefile.am
+3
-3
libsigrok4DSL/libsigrok-internal.h
libsigrok4DSL/libsigrok-internal.h
+1
-1
libsigrok4DSL/libsigrok.h
libsigrok4DSL/libsigrok.h
+85
-9
libsigrok4DSL/libsigrok4DSL.pc.in
libsigrok4DSL/libsigrok4DSL.pc.in
+3
-3
libsigrok4DSL/output/Makefile.am
libsigrok4DSL/output/Makefile.am
+5
-5
libsigrok4DSL/output/text/Makefile.am
libsigrok4DSL/output/text/Makefile.am
+3
-3
libsigrok4DSL/proto.h
libsigrok4DSL/proto.h
+2
-1
libsigrok4DSL/session.c
libsigrok4DSL/session.c
+4
-3
libsigrok4DSL/tests/Makefile.am
libsigrok4DSL/tests/Makefile.am
+1
-1
libsigrok4DSL/trigger.c
libsigrok4DSL/trigger.c
+10
-0
No files found.
DSView/CMakeLists.txt
View file @
153d1f9e
##
## This file is part of the
Pulse
View project.
## This file is part of the
DS
View project.
##
## Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
## Copyright (C) 2012-2013 Alexandru Gagniuc <mr.nuke.me@gmail.com>
...
...
@@ -26,7 +26,7 @@ include(GNUInstallDirs)
set
(
CMAKE_MODULE_PATH
"
${
CMAKE_SOURCE_DIR
}
/CMake"
)
project
(
DS
Logic
)
project
(
DS
View
)
#===============================================================================
#= User Options
...
...
@@ -60,7 +60,7 @@ endif()
#-------------------------------------------------------------------------------
list
(
APPEND PKGDEPS
"libsigrok4DSL
ogic
>= 0.2.0"
"libsigrok4DSL >= 0.2.0"
"libusb-1.0 >= 1.0.16"
)
if
(
ENABLE_DECODE
)
...
...
@@ -98,12 +98,12 @@ find_package(libusb-1.0 REQUIRED)
#= Config Header
#-------------------------------------------------------------------------------
set
(
DS_TITLE DS
Logic
)
set
(
DS_DESCRIPTION
"A GUI for
DSLogic
"
)
set
(
DS_TITLE DS
View
)
set
(
DS_DESCRIPTION
"A GUI for
instruments of DreamSourceLab
"
)
set
(
DS_VERSION_MAJOR 0
)
set
(
DS_VERSION_MINOR
4
)
set
(
DS_VERSION_MICRO
0
)
set
(
DS_VERSION_MINOR
9
)
set
(
DS_VERSION_MICRO
2
)
set
(
DS_VERSION_STRING
${
DS_VERSION_MAJOR
}
.
${
DS_VERSION_MINOR
}
.
${
DS_VERSION_MICRO
}
)
...
...
@@ -117,7 +117,7 @@ configure_file (
#= Sources
#-------------------------------------------------------------------------------
set
(
DS
Logic
_SOURCES
set
(
DS
View
_SOURCES
main.cpp
pv/devicemanager.cpp
pv/mainwindow.cpp
...
...
@@ -142,6 +142,8 @@ set(DSLogic_SOURCES
pv/dialogs/deviceoptions.cpp
pv/dialogs/search.cpp
pv/dialogs/storeprogress.cpp
pv/dialogs/streamoptions.cpp
pv/dialogs/waitingdialog.cpp
pv/dock/dsotriggerdock.cpp
pv/dock/measuredock.cpp
pv/dock/searchdock.cpp
...
...
@@ -153,7 +155,7 @@ set(DSLogic_SOURCES
pv/prop/property.cpp
pv/prop/string.cpp
pv/prop/binding/binding.cpp
pv/prop/binding/deviceoptions.cpp
pv/prop/binding/
binding_
deviceoptions.cpp
pv/toolbars/filebar.cpp
pv/toolbars/logobar.cpp
pv/toolbars/samplingbar.cpp
...
...
@@ -176,7 +178,7 @@ set(DSLogic_SOURCES
pv/widgets/fakelineedit.cpp
)
set
(
DS
Logic
_HEADERS
set
(
DS
View
_HEADERS
pv/mainwindow.h
pv/sigsession.h
pv/storesession.h
...
...
@@ -185,6 +187,8 @@ set(DSLogic_HEADERS
pv/dialogs/deviceoptions.h
pv/dialogs/search.h
pv/dialogs/storeprogress.h
pv/dialogs/streamoptions.h
pv/dialogs/waitingdialog.h
pv/dock/dsotriggerdock.h
pv/dock/measuredock.h
pv/dock/searchdock.h
...
...
@@ -211,17 +215,17 @@ set(DSLogic_HEADERS
pv/widgets/fakelineedit.h
)
set
(
DS
Logic
_FORMS
set
(
DS
View
_FORMS
pv/dialogs/about.ui
)
set
(
DS
Logic
_RESOURCES
DS
Logic
.qrc
set
(
DS
View
_RESOURCES
DS
View
.qrc
)
if
(
ENABLE_DECODE
)
list
(
APPEND DS
Logic
_SOURCES
list
(
APPEND DS
View
_SOURCES
pv/dock/protocoldock.cpp
pv/data/decoderstack.cpp
pv/data/decode/annotation.cpp
...
...
@@ -234,7 +238,7 @@ if(ENABLE_DECODE)
pv/widgets/decodermenu.cpp
)
list
(
APPEND DS
Logic
_HEADERS
list
(
APPEND DS
View
_HEADERS
pv/dock/protocoldock.h
pv/data/decoderstack.h
pv/view/decodetrace.h
...
...
@@ -244,20 +248,20 @@ if(ENABLE_DECODE)
endif
()
if
(
WIN32
)
# Use the DS
Logic icon for the DSLogic
.exe executable.
# Use the DS
View icon for the DSView
.exe executable.
set
(
CMAKE_RC_COMPILE_OBJECT
"
${
CMAKE_RC_COMPILER
}
-O coff -I
${
CMAKE_CURRENT_SOURCE_DIR
}
<SOURCE> <OBJECT>"
)
enable_language
(
RC
)
list
(
APPEND DS
Logic_SOURCES DSLogic
.rc
)
list
(
APPEND DS
View_SOURCES DSView
.rc
)
endif
()
if
(
Qt5Core_FOUND
)
qt5_wrap_cpp
(
DS
Logic_HEADERS_MOC
${
DSLogic
_HEADERS
}
)
qt5_wrap_ui
(
DS
Logic_FORMS_HEADERS
${
DSLogic
_FORMS
}
)
qt5_add_resources
(
DS
Logic_RESOURCES_RCC
${
DSLogic
_RESOURCES
}
)
qt5_wrap_cpp
(
DS
View_HEADERS_MOC
${
DSView
_HEADERS
}
)
qt5_wrap_ui
(
DS
View_FORMS_HEADERS
${
DSView
_FORMS
}
)
qt5_add_resources
(
DS
View_RESOURCES_RCC
${
DSView
_RESOURCES
}
)
else
()
qt4_wrap_cpp
(
DS
Logic_HEADERS_MOC
${
DSLogic
_HEADERS
}
)
qt4_wrap_ui
(
DS
Logic_FORMS_HEADERS
${
DSLogic
_FORMS
}
)
qt4_add_resources
(
DS
Logic_RESOURCES_RCC
${
DSLogic
_RESOURCES
}
)
qt4_wrap_cpp
(
DS
View_HEADERS_MOC
${
DSView
_HEADERS
}
)
qt4_wrap_ui
(
DS
View_FORMS_HEADERS
${
DSView
_FORMS
}
)
qt4_add_resources
(
DS
View_RESOURCES_RCC
${
DSView
_RESOURCES
}
)
include
(
${
QT_USE_FILE
}
)
endif
()
...
...
@@ -299,7 +303,7 @@ endif()
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
set
(
DS
LOGIC
_LINK_LIBS
set
(
DS
VIEW
_LINK_LIBS
${
Boost_LIBRARIES
}
${
CMAKE_THREAD_LIBS_INIT
}
${
QT_LIBRARIES
}
...
...
@@ -308,25 +312,25 @@ set(DSLOGIC_LINK_LIBS
if
(
STATIC_PKGDEPS_LIBS
)
link_directories
(
${
PKGDEPS_STATIC_LIBRARY_DIRS
}
)
list
(
APPEND DS
LOGIC
_LINK_LIBS
${
PKGDEPS_STATIC_LIBRARIES
}
)
list
(
APPEND DS
VIEW
_LINK_LIBS
${
PKGDEPS_STATIC_LIBRARIES
}
)
if
(
WIN32
)
# Workaround for a MinGW linking issue.
list
(
APPEND PULSEVIEW_LINK_LIBS
"-llzma -llcms2"
)
endif
()
else
()
link_directories
(
${
PKGDEPS_LIBRARY_DIRS
}
)
list
(
APPEND DS
LOGIC
_LINK_LIBS
${
PKGDEPS_LIBRARIES
}
)
list
(
APPEND DS
VIEW
_LINK_LIBS
${
PKGDEPS_LIBRARIES
}
)
endif
()
add_executable
(
${
PROJECT_NAME
}
${
DS
Logic
_SOURCES
}
${
DS
Logic
_HEADERS_MOC
}
${
DS
Logic
_FORMS_HEADERS
}
${
DS
Logic
_RESOURCES_RCC
}
${
DS
View
_SOURCES
}
${
DS
View
_HEADERS_MOC
}
${
DS
View
_FORMS_HEADERS
}
${
DS
View
_RESOURCES_RCC
}
)
target_link_libraries
(
${
PROJECT_NAME
}
${
DS
LOGIC
_LINK_LIBS
}
)
target_link_libraries
(
${
PROJECT_NAME
}
${
DS
VIEW
_LINK_LIBS
}
)
if
(
WIN32
)
# Pass -mwindows so that no "DOS box" will open when PulseView is started.
...
...
@@ -349,6 +353,10 @@ install(TARGETS ${PROJECT_NAME} DESTINATION bin/)
install
(
FILES res/DSLogic.fw DESTINATION bin/res/
)
install
(
FILES res/DSLogic33.bin DESTINATION bin/res/
)
install
(
FILES res/DSLogic50.bin DESTINATION bin/res/
)
install
(
FILES res/DSLogicPro.fw DESTINATION bin/res/
)
install
(
FILES res/DSLogicPro.bin DESTINATION bin/res/
)
install
(
FILES res/DSCope.fw DESTINATION bin/res/
)
install
(
FILES res/DSCope.bin DESTINATION bin/res/
)
#===============================================================================
#= Packaging (handled by CPack)
...
...
@@ -373,5 +381,5 @@ include(CPack)
if
(
ENABLE_TESTS
)
add_subdirectory
(
test
)
enable_testing
()
add_test
(
test
${
CMAKE_CURRENT_BINARY_DIR
}
/test/DS
Logic
-test
)
add_test
(
test
${
CMAKE_CURRENT_BINARY_DIR
}
/test/DS
View
-test
)
endif
(
ENABLE_TESTS
)
DSView/DSView.qrc
View file @
153d1f9e
...
...
@@ -35,5 +35,6 @@
<file>icons/params_dis.png</file>
<file>icons/gear.png</file>
<file>icons/wiki.png</file>
<file>icons/wait.gif</file>
</qresource>
</RCC>
DSView/INSTALL
View file @
153d1f9e
...
...
@@ -16,15 +16,15 @@ Requirements
- libboost >= 1.42 (including the following libs):
- libboost-system
- libboost-thread
- libsigrok4DSL
ogic
>= 0.2.0
- libsigrok4DSL >= 0.2.0
Building and installing
-----------------------
Get the DS
Logic-gui
source code from: www.dreamsourcelab.com/download.html
Get the DS
View
source code from: www.dreamsourcelab.com/download.html
In order to build it, run:
$ cd DS
Logic-gui
$ cd DS
View
$ cmake .
$ make
...
...
DSView/README
View file @
153d1f9e
-------------------------------------------------------------------------------
README
-------------------------------------------------------------------------------
DS
Logic-gui is GUI for DSLogic software
, it's based on PulseView
DS
View is a GUI for instruments of DreamSourceLab
, it's based on PulseView
from the sigrok project.
The sigrok project aims at creating a portable, cross-platform,
...
...
@@ -14,7 +14,7 @@ PulseView is a Qt-based LA/scope/MSO GUI for sigrok.
Status
------
DS
Logic-gui
is in a usable state and has had official tarball releases.
DS
View
is in a usable state and has had official tarball releases.
However, it is still work in progress. Some basic functionality
is available and working, but other things are still on the TODO list.
...
...
@@ -23,7 +23,7 @@ is available and working, but other things are still on the TODO list.
Copyright and license
---------------------
DS
Logic-gui
is licensed under the terms of the GNU General Public License
DS
View
is licensed under the terms of the GNU General Public License
(GPL), version 3 or later.
While some individual source code files are licensed under the GPLv2+, and
...
...
DSView/cmake_clear
0 → 100755
View file @
153d1f9e
echo "rm cmake cache begin..."
rm ./cmake_install.cmake
rm -r ./CMakeFiles
rm ./Makefile
rm ./CMakeCache.txt
echo "rm cmake cache end..."
DSView/config.h.in
View file @
153d1f9e
...
...
@@ -17,15 +17,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DS
LOGIC
_CONFIG_H
#define _DS
LOGIC
_CONFIG_H
#ifndef _DS
VIEW
_CONFIG_H
#define _DS
VIEW
_CONFIG_H
/* Application details */
#define DS_TITLE "@DS_TITLE@"
#define DS_DESCRIPTION "@DS_DESCRIPTION@"
#define DS_BIN_NAME "@PROJECT_NAME@"
/* DS
Logic
version information */
/* DS
View
version information */
#define DS_VERSION_MAJOR @DS_VERSION_MAJOR@
#define DS_VERSION_MINOR @DS_VERSION_MINOR@
#define DS_VERSION_MICRO @DS_VERSION_MICRO@
...
...
DSView/extdef.h
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
...
...
@@ -21,12 +21,12 @@
*/
#ifndef DS
LOGIC
_EXTDEF_H
#define DS
LOGIC
_EXTDEF_H
#ifndef DS
VIEW
_EXTDEF_H
#define DS
VIEW
_EXTDEF_H
#define countof(x) (sizeof(x)/sizeof(x[0]))
#define begin_element(x) (&x[0])
#define end_element(x) (&x[countof(x)])
#endif // DS
LOGIC
_EXTDEF_H
#endif // DS
VIEW
_EXTDEF_H
DSView/icons/load.gif
0 → 100644
View file @
153d1f9e
6.34 KB
DSView/icons/wait.gif
0 → 100644
View file @
153d1f9e
10.5 KB
DSView/main.cpp
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
...
...
@@ -26,7 +26,7 @@
#endif
#include <stdint.h>
#include <libsigrok4DSL
ogic
/libsigrok.h>
#include <libsigrok4DSL/libsigrok.h>
#include <getopt.h>
...
...
@@ -65,7 +65,7 @@ int main(int argc, char *argv[])
// Set some application metadata
QApplication
::
setApplicationVersion
(
DS_VERSION_STRING
);
QApplication
::
setApplicationName
(
"DSLogic
(Beta)"
);
QApplication
::
setApplicationName
(
"DSView
(Beta)"
);
QApplication
::
setOrganizationDomain
(
"http://www.DreamSourceLab.com"
);
// Parse arguments
...
...
DSView/pv/data/analog.cpp
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
...
...
@@ -30,17 +30,11 @@ using namespace std;
namespace
pv
{
namespace
data
{
Analog
::
Analog
(
unsigned
int
num_probes
)
:
SignalData
(),
_num_probes
(
num_probes
)
Analog
::
Analog
()
:
SignalData
()
{
}
int
Analog
::
get_num_probes
()
const
{
return
_num_probes
;
}
void
Analog
::
push_snapshot
(
boost
::
shared_ptr
<
AnalogSnapshot
>
&
snapshot
)
{
_snapshots
.
push_front
(
snapshot
);
...
...
DSView/pv/data/analog.h
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
...
...
@@ -21,8 +21,8 @@
*/
#ifndef DS
LOGIC
_PV_DATA_ANALOG_H
#define DS
LOGIC
_PV_DATA_ANALOG_H
#ifndef DS
VIEW
_PV_DATA_ANALOG_H
#define DS
VIEW
_PV_DATA_ANALOG_H
#include "signaldata.h"
...
...
@@ -37,9 +37,7 @@ class AnalogSnapshot;
class
Analog
:
public
SignalData
{
public:
Analog
(
unsigned
int
num_probes
);
int
get_num_probes
()
const
;
Analog
();
void
push_snapshot
(
boost
::
shared_ptr
<
AnalogSnapshot
>
&
snapshot
);
...
...
@@ -50,11 +48,10 @@ public:
void
clear
();
private:
const
unsigned
int
_num_probes
;
std
::
deque
<
boost
::
shared_ptr
<
AnalogSnapshot
>
>
_snapshots
;
};
}
// namespace data
}
// namespace pv
#endif // DS
LOGIC
_PV_DATA_ANALOG_H
#endif // DS
VIEW
_PV_DATA_ANALOG_H
DSView/pv/data/analogsnapshot.cpp
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
...
...
DSView/pv/data/analogsnapshot.h
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
...
...
@@ -21,8 +21,8 @@
*/
#ifndef DS
LOGIC
_PV_DATA_ANALOGSNAPSHOT_H
#define DS
LOGIC
_PV_DATA_ANALOGSNAPSHOT_H
#ifndef DS
VIEW
_PV_DATA_ANALOGSNAPSHOT_H
#define DS
VIEW
_PV_DATA_ANALOGSNAPSHOT_H
#include "snapshot.h"
...
...
@@ -95,4 +95,4 @@ private:
}
// namespace data
}
// namespace pv
#endif // DS
LOGIC
_PV_DATA_ANALOGSNAPSHOT_H
#endif // DS
VIEW
_PV_DATA_ANALOGSNAPSHOT_H
DSView/pv/data/decode/annotation.h
View file @
153d1f9e
...
...
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef DS
LOGIC
_PV_VIEW_DECODE_ANNOTATION_H
#define DS
LOGIC
_PV_VIEW_DECODE_ANNOTATION_H
#ifndef DS
VIEW
_PV_VIEW_DECODE_ANNOTATION_H
#define DS
VIEW
_PV_VIEW_DECODE_ANNOTATION_H
#include <stdint.h>
...
...
@@ -52,4 +52,4 @@ private:
}
// namespace data
}
// namespace pv
#endif // DS
LOGIC
_PV_VIEW_DECODE_ANNOTATION_H
#endif // DS
VIEW
_PV_VIEW_DECODE_ANNOTATION_H
DSView/pv/data/decode/decoder.cpp
View file @
153d1f9e
...
...
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <libsigrok4DSL
ogic
/libsigrok.h>
#include <libsigrok4DSL/libsigrok.h>
#include <libsigrokdecode/libsigrokdecode.h>
#include "decoder.h"
...
...
@@ -37,8 +37,6 @@ namespace decode {
Decoder
::
Decoder
(
const
srd_decoder
*
const
dec
)
:
_decoder
(
dec
),
_shown
(
true
),
_shown_back
(
true
),
_shown_setted
(
false
),
_setted
(
true
)
{
}
...
...
@@ -62,16 +60,7 @@ bool Decoder::shown() const
void
Decoder
::
show
(
bool
show
)
{
_shown_back
=
show
;
_shown_setted
=
true
;
}
void
Decoder
::
commit_show
()
{
if
(
_shown_setted
)
{
_shown
=
_shown_back
;
_shown_setted
=
false
;
}
_shown
=
show
;
}
const
map
<
const
srd_channel
*
,
shared_ptr
<
view
::
LogicSignal
>
>&
...
...
DSView/pv/data/decode/decoder.h
View file @
153d1f9e
...
...
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef DS
LOGIC
_PV_DATA_DECODE_DECODER_H
#define DS
LOGIC
_PV_DATA_DECODE_DECODER_H
#ifndef DS
VIEW
_PV_DATA_DECODE_DECODER_H
#define DS
VIEW
_PV_DATA_DECODE_DECODER_H
#include <map>
#include <set>
...
...
@@ -56,7 +56,6 @@ public:
bool
shown
()
const
;
void
show
(
bool
show
=
true
);
void
commit_show
();
const
std
::
map
<
const
srd_channel
*
,
boost
::
shared_ptr
<
view
::
LogicSignal
>
>&
channels
()
const
;
...
...
@@ -80,10 +79,8 @@ private:
const
srd_decoder
*
const
_decoder
;
bool
_shown
;
bool
_shown_back
;
bool
_shown_setted
;
std
::
map
<
const
srd_channel
*
,
boost
::
shared_ptr
<
pv
::
view
::
LogicSignal
>
>
std
::
map
<
const
srd_channel
*
,
boost
::
shared_ptr
<
pv
::
view
::
LogicSignal
>
>
_probes
;
std
::
map
<
std
::
string
,
GVariant
*>
_options
;
...
...
@@ -98,4 +95,4 @@ private:
}
// namespace data
}
// namespace pv
#endif // DS
LOGIC
_PV_DATA_DECODE_DECODER_H
#endif // DS
VIEW
_PV_DATA_DECODE_DECODER_H
DSView/pv/data/decode/row.h
View file @
153d1f9e
...
...
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef DS
LOGIC
_PV_DATA_DECODE_ROW_H
#define DS
LOGIC
_PV_DATA_DECODE_ROW_H
#ifndef DS
VIEW
_PV_DATA_DECODE_ROW_H
#define DS
VIEW
_PV_DATA_DECODE_ROW_H
#include <vector>
...
...
@@ -56,4 +56,4 @@ private:
}
// data
}
// pv
#endif // DS
LOGIC
_PV_DATA_DECODE_ROW_H
#endif // DS
VIEW
_PV_DATA_DECODE_ROW_H
DSView/pv/data/decode/rowdata.h
View file @
153d1f9e
...
...
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef DS
LOGIC
_PV_DATA_DECODE_ROWDATA_H
#define DS
LOGIC
_PV_DATA_DECODE_ROWDATA_H
#ifndef DS
VIEW
_PV_DATA_DECODE_ROWDATA_H
#define DS
VIEW
_PV_DATA_DECODE_ROWDATA_H
#include <vector>
...
...
@@ -56,4 +56,4 @@ private:
}
// data
}
// pv
#endif // DS
LOGIC
_PV_DATA_DECODE_ROWDATA_H
#endif // DS
VIEW
_PV_DATA_DECODE_ROWDATA_H
DSView/pv/data/decoderstack.h
View file @
153d1f9e
...
...
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef DS
LOGIC
_PV_DATA_DECODERSTACK_H
#define DS
LOGIC
_PV_DATA_DECODERSTACK_H
#ifndef DS
VIEW
_PV_DATA_DECODERSTACK_H
#define DS
VIEW
_PV_DATA_DECODERSTACK_H
#include "signaldata.h"
...
...
@@ -182,4 +182,4 @@ private:
}
// namespace data
}
// namespace pv
#endif // DS
LOGIC
_PV_DATA_DECODERSTACK_H
#endif // DS
VIEW
_PV_DATA_DECODERSTACK_H
DSView/pv/data/dso.cpp
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
*
...
...
@@ -29,8 +29,8 @@ using namespace std;
namespace
pv
{
namespace
data
{
Dso
::
Dso
(
int
num_probes
)
:
SignalData
(
num_probes
)
Dso
::
Dso
()
:
SignalData
()
{
}
...
...
DSView/pv/data/dso.h
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
*
...
...
@@ -20,8 +20,8 @@
*/
#ifndef DS
LOGIC
_PV_DATA_DSO_H
#define DS
LOGIC
_PV_DATA_DSO_H
#ifndef DS
VIEW
_PV_DATA_DSO_H
#define DS
VIEW
_PV_DATA_DSO_H
#include "signaldata.h"
...
...
@@ -36,7 +36,7 @@ class DsoSnapshot;
class
Dso
:
public
SignalData
{
public:
Dso
(
int
num_probes
);
Dso
();
void
push_snapshot
(
boost
::
shared_ptr
<
DsoSnapshot
>
&
snapshot
);
...
...
@@ -53,4 +53,4 @@ private:
}
// namespace data
}
// namespace pv
#endif // DS
LOGIC
_PV_DATA_DSO_H
#endif // DS
VIEW
_PV_DATA_DSO_H
DSView/pv/data/dsosnapshot.cpp
View file @
153d1f9e
/*
* This file is part of the DS
Logic-gui
project.
* DS
Logic-gui
is based on PulseView.
* This file is part of the DS
View
project.
* DS
View
is based on PulseView.
*
* Copyright (C) 2013 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
*
...
...
@@ -39,18 +39,21 @@ using namespace std;
namespace
pv
{
namespace
data
{
const
int
DsoSnapshot
::
EnvelopeScalePower
=
4
;
const
int
DsoSnapshot
::
EnvelopeScalePower
=
8
;
const
int
DsoSnapshot
::
EnvelopeScaleFactor
=
1
<<
EnvelopeScalePower
;
const
float
DsoSnapshot
::
LogEnvelopeScaleFactor
=
logf
(
EnvelopeScaleFactor
);
const
uint64_t
DsoSnapshot
::
EnvelopeDataUnit
=
6
4
*
1024
;
// bytes
const
uint64_t
DsoSnapshot
::
EnvelopeDataUnit
=
4
*
1024
;
// bytes
DsoSnapshot
::
DsoSnapshot
(
const
sr_datafeed_dso
&
dso
,
uint64_t
_total_sample_len
,
unsigned
int
channel_num
)
:
Snapshot
(
sizeof
(
uint16_t
),
_total_sample_len
,
channel_num
)
DsoSnapshot
::
DsoSnapshot
(
const
sr_datafeed_dso
&
dso
,
uint64_t
_total_sample_len
,
unsigned
int
channel_num
,
bool
instant
)
:
Snapshot
(
sizeof
(
uint16_t
),
_total_sample_len
,
channel_num
),
_envelope_en
(
false
),
_envelope_done
(
false
),
_instant
(
instant
)
{
boost
::
lock_guard
<
boost
::
recursive_mutex
>
lock
(
_mutex
);
memset
(
_envelope_levels
,
0
,
sizeof
(
_envelope_levels
));
init
(
_total_sample_len
*
channel_num
);
init
(
_total_sample_len
);
append_payload
(
dso
);
}
...
...
@@ -64,10 +67,21 @@ DsoSnapshot::~DsoSnapshot()
void
DsoSnapshot
::
append_payload
(
const
sr_datafeed_dso
&
dso
)
{
boost
::
lock_guard
<
boost
::
recursive_mutex
>
lock
(
_mutex
);
append_data
(
dso
.
data
,
dso
.
num_samples
);
// Generate the first mip-map from the data
append_payload_to_envelope_levels
();
if
(
_channel_num
>
0
)
{
refill_data
(
dso
.
data
,
dso
.
num_samples
,
_instant
);
// Generate the first mip-map from the data
if
(
_envelope_en
)