Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8bf44fc
adalm2000: Initial driver skeleton.
Mar 19, 2020
163fc58
configure.ac: Add libm2k dependency.
Apr 26, 2020
2929af4
adalm2000: Add C wrapper files for libm2k.
Apr 26, 2020
57cce43
adalm2000: List device options.
Apr 26, 2020
8ac1da2
adalm2000: Detect devices.
Apr 26, 2020
e4d3f7e
adalm2000: Open a device.
Apr 26, 2020
e4d063e
adalm2000: Close a device.
Apr 26, 2020
43bda99
adalm2000: Get the number of enabled channels.
Apr 26, 2020
02f3ab4
adalm2000: Add samplerate configuration.
Apr 26, 2020
1c993b6
adalm2000: Add samples averaging configuration.
Apr 26, 2020
d061620
adalm2000: Add high resolution configuration.
Apr 26, 2020
8e508ac
adalm2000: Add acquisition boundaries.
Apr 26, 2020
03958ac
adalm2000: Add digital trigger.
Apr 26, 2020
727a300
adalm2000: Add trigger source configuration.
Apr 26, 2020
4a29dbf
adalm2000: Add trigger slope configuration.
Apr 26, 2020
edb771e
adalm2000: Add trigger level configuration.
Apr 26, 2020
b444e1f
adalm2000: Add capture ratio configuration.
Apr 26, 2020
10a10c2
adalm2000: Wrap to C code the analogical acquisition functionality of…
Apr 26, 2020
e2fee6f
adalm2000: Wrap to C code the digital acquisition functionality of li…
Apr 26, 2020
ab79f99
adalm2000: Wrap to C code the mixed signal acquisition functionality …
Nov 2, 2020
51f9226
adalm2000: Add utility functions.
Apr 26, 2020
b4f1739
adalm2000: Add functionality for stopping the acquisition.
Apr 26, 2020
a012857
adalm2000: Add functionality for starting the acquisition.
Apr 26, 2020
e6b987c
wip
adisuciu Jul 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ src_libdrivers_tail_la_SOURCES = src/driver_list_stop.c

src_libdrivers_la_SOURCES = src/drivers.c

if HW_ADALM2000
src_libdrivers_la_SOURCES += \
src/hardware/adalm2000/libm2k.h \
src/hardware/adalm2000/libm2k.cpp \
src/hardware/adalm2000/protocol.h \
src/hardware/adalm2000/protocol.c \
src/hardware/adalm2000/api.c
endif
if HW_AGILENT_DMM
src_libdrivers_la_SOURCES += \
src/hardware/agilent-dmm/protocol.h \
Expand Down
15 changes: 15 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ SR_EXTRA_CXX_LIBS=
SR_ARG_OPT_PKG([libserialport], [LIBSERIALPORT], ,
[libserialport >= 0.1.1])

SR_ARG_OPT_PKG([libm2k], [LIBM2K], ,
[libm2k])

SR_ARG_OPT_PKG([libftdi], [LIBFTDI], , [libftdi1 >= 1.0])

# pkg-config file names: MinGW/MacOSX: hidapi; Linux: hidapi-hidraw/-libusb
Expand Down Expand Up @@ -140,6 +143,14 @@ AS_IF([test "x$sr_have_libieee1284" = xyes],

SR_ARG_OPT_PKG([libgio], [LIBGIO], , [gio-2.0 >= 2.24.0])

AC_LANG_PUSH([C++])
PKG_CHECK_MODULES(LIBM2K, [libm2k] )
AC_DEFINE([HAVE_LIBM2K], [1], [Have libm2k dep.])
#SR_APPEND([SR_PKGLIBS], ['libm2k'])
SR_APPEND([sr_deps_avail], [libm2k])
AM_CONDITIONAL([NEED_LIBM2K], [test "x$sr_have_libm2k" = xyes])
AC_LANG_POP([C++])

# See if any of the (potentially platform specific) libs are available
# which provide some means of Bluetooth communication.
AS_IF([test "x$sr_have_libbluez" = xyes],
Expand Down Expand Up @@ -257,6 +268,7 @@ m4_define([_SR_DRIVER], [
m4_define([SR_DRIVER],
[_SR_DRIVER([$1], [$2], m4_expand([AS_TR_CPP([HW_$2])]), [$3])])

SR_DRIVER([ADALM2000], [adalm2000], [libm2k])
SR_DRIVER([Agilent DMM], [agilent-dmm], [serial_comm])
SR_DRIVER([Appa 55II], [appa-55ii], [serial_comm])
SR_DRIVER([Arachnid Labs Re:load Pro], [arachnid-labs-re-load-pro], [serial_comm])
Expand Down Expand Up @@ -569,6 +581,8 @@ AC_SUBST([SR_PKGLIBS])

# Retrieve the compile and link flags for all modules combined.
# Also, bail out at this point if any module dependency is not met.

PKG_CHECK_MODULES([LIBSIGROK], [libm2k $SR_PKGLIBS])
PKG_CHECK_MODULES([LIBSIGROK], [glib-2.0 >= 2.32.0 $SR_PKGLIBS])
PKG_CHECK_MODULES([TESTS], [$SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS])

Expand Down Expand Up @@ -649,6 +663,7 @@ $sr_driver_summary
Enabled serial communication transports:
- serial comm ................... $sr_have_serial_comm
- libserialport ................. $sr_have_libserialport
- libm2k ........................ $sr_have_libm2k
- hidapi ........................ $sr_have_libhidapi
- bluetooth ..................... $sr_have_bluetooth
- bluez ......................... $sr_have_libbluez
Expand Down
Loading