Uwe Hermann
db8ae7b941
sr/srd: Remove/fix non-applicable autotools stuff.
2011-12-30 11:14:24 +01:00
Kristoffer Sjöberg
464d12c72a
Move the probe naming to the creator of the device, and let each driver name its own probes.
2011-12-29 17:04:31 +01:00
Uwe Hermann
b7f09cf86d
libsigrok: Fix #includes.
...
In the lib, we should only #include "sigrok.h" or "sigrok-internal.h",
but not the (possibly installed and thus different/older versions) via
<sigrok.h> or <sigrok-internal.h>.
Frontends should of course use <sigrok.h> and <sigrok-internal.h>.
2011-12-28 23:07:08 +01:00
Uwe Hermann
cb93f8a927
Other method to avoid "unused var" compiler warnings.
...
The '(void)varname' method is nicer than 'varname = varname' and also
prevents warnings when compiling sigrok with clang instead of gcc.
2011-11-24 22:57:48 +01:00
Bert Vermeulen
9c939c5132
use new datafeed packet format
2011-06-19 14:28:50 +02:00
Uwe Hermann
5a9660dd4e
demo: Use memset(), might be faster.
2011-05-09 00:59:05 +02:00
Uwe Hermann
c03ed39733
demo: Add all-low/all-high pattern support.
...
Also, improve error handling a bit.
2011-05-09 00:59:04 +02:00
Uwe Hermann
c8f4624d9b
demo: s/genmode/pattern/.
2011-05-05 13:06:15 +02:00
Uwe Hermann
0d31276b05
demo: Rename GENMODE_DEFAULT to GENMODE_SIGROK.
...
Also, add (Doxygen) comments for the currently supported patterns that
the demo device/driver can generate.
2011-05-05 13:06:15 +02:00
Uwe Hermann
68c12597ef
demo: Eliminate unneeded tmp_u64.
2011-05-05 13:06:15 +02:00
Uwe Hermann
697785d1ae
libsigrok: closedev() now has a return code.
...
This is useful to allow frontends to react upon close failures in a
way they see fit (e.g. a popup in the GUI, or error message in the CLI).
They can also still ignore the error if they want, of course.
2011-05-05 13:06:14 +02:00
Uwe Hermann
86f5e3d826
libsigrok: Rename open/close to opendev/closedev.
2011-05-05 13:06:11 +02:00
Uwe Hermann
6f42226475
demo: Add some more debug output.
2011-05-02 01:40:16 +02:00
Uwe Hermann
4af22da595
Fix two small warnings.
2011-04-19 00:27:29 +02:00
Uwe Hermann
e519ba8645
Hardware drivers: Use names for struct entries.
2011-04-19 00:18:06 +02:00
Uwe Hermann
27a3a6fe4b
demo: Always use glib's memory allocation functions.
2011-04-16 18:08:18 +02:00
Uwe Hermann
c91404191e
Add SR_HZ macro for consistency.
2011-03-03 20:24:24 +01:00
Uwe Hermann
59df0c77e2
Add SR_ prefix to the KHZ/MHZ/GHZ macros.
2011-03-03 20:24:24 +01:00
Uwe Hermann
54ac5277c5
Constify some more 'char *' parameters.
2011-02-20 21:16:26 +01:00
Uwe Hermann
6f1be0a2d4
Add sr_ prefix to session_{add,remove}.
2011-02-20 21:16:22 +01:00
Uwe Hermann
29cbfeaf5c
Mark some private stuff 'static'.
2011-02-20 21:16:20 +01:00
Bert Vermeulen
4bfbf9fce7
demo: forgot second part of samplerate support
2011-02-12 06:14:37 +01:00
Uwe Hermann
8a2efef2d5
Add sr_ prefix to session related API functions.
2011-02-08 22:28:00 +01:00
Bert Vermeulen
d81d29333e
demo: support setting sample rate
2011-02-04 06:29:41 +01:00
Bert Vermeulen
cddd1c5f47
demo: stored-pattern generator now keeps state
2011-02-01 06:51:34 +01:00
Uwe Hermann
5a2326a71b
SR_ prefix for all public enums.
2011-01-30 18:32:59 +01:00
Uwe Hermann
5c2d46d1db
Prefix device structs with sr_.
2011-01-30 18:32:58 +01:00
Uwe Hermann
9f8274a544
Add a field for the full name of a device.
...
Also, show this long/full name in 'sigrok-cli -V'.
2011-01-30 18:32:58 +01:00
Uwe Hermann
b9c735a275
Prefix datafeed structs with sr_.
2011-01-30 18:32:57 +01:00
Uwe Hermann
d32d961d17
get_sr_device_instance() -> sr_get_device_instance().
2011-01-30 18:32:56 +01:00
Uwe Hermann
a00ba01228
Change all sigrok_ prefixes to sr_.
2011-01-30 18:32:55 +01:00
Uwe Hermann
e46b8fb154
Change SIGROK_ prefix to SR_.
2011-01-30 18:32:53 +01:00
Bert Vermeulen
108a5bfbba
fix compile warning on 32-bit platforms
2011-01-23 05:32:37 +01:00
Bert Vermeulen
070befcd1c
restore demo driver to working state
2011-01-23 05:32:13 +01:00
Bert Vermeulen
6ea7e23526
Revert "re-enable filter and datastore for DF_LOGIC"
...
This reverts commit 23da86dfc0a89c7ab951fea31a318a493830eb69.
2011-01-22 14:18:31 +01:00
Daniel Ribeiro
62eeeb171b
re-enable filter and datastore for DF_LOGIC
...
This definitely isn't the proper fix, but it should allow DF_LOGIC
and DF_ANALOG to coexist.
2011-01-21 18:04:09 -02:00
Daniel Ribeiro
8038e90aef
add a sine wave to demo.c
2011-01-21 12:52:12 -02:00
Daniel Ribeiro
764f887f7b
change demo.c to output analog packets
...
You need to #define DEMO_ANALOG to generate DF_ANALOG packets.
2011-01-21 02:12:48 -02:00
Uwe Hermann
26ce0bbfd8
demo: Small indentation fix.
2011-01-19 23:47:21 +01:00
Håvard Espeland
1924f59f4b
Demo: Obery samplerate and fix race condition.
2011-01-19 23:14:17 +01:00
Uwe Hermann
01bd1ed396
Fix compiler warning.
2011-01-19 00:46:54 +01:00
Bert Vermeulen
b9cc36296b
demo driver: support time limit
2011-01-17 02:20:52 +01:00
Uwe Hermann
10c471ab13
Fix warnings.
2011-01-16 14:18:26 +01:00
Uwe Hermann
d35aaf0256
demo: Use GIOChannels, makes it work on MinGW.
2011-01-16 14:12:52 +01:00
Bert Vermeulen
917e0e71d5
added example code for generating a stored pattern
2011-01-15 14:28:39 +01:00
Uwe Hermann
02440dd88c
demo: Cosmetics, constify.
2011-01-15 13:06:04 +01:00
Bert Vermeulen
e15f48c268
cleaned up demo driver
...
removed unused samplerate
added patternmode (random and incremental)
2011-01-15 05:12:41 +01:00
Uwe Hermann
63570167d6
Cosmetics for the -D output.
2011-01-15 03:44:19 +01:00
Uwe Hermann
17e1afcb81
Whitespace and consistency fixes.
...
Also, drop a <poll.h> #include. It's unused anyway, and breaks the build
on MinGW/Windows as there is no poll.h there.
2011-01-13 23:52:25 +01:00
Olivier Fauchon
ba3d481bb7
add ontinuous mode for demo driver
2011-01-12 00:25:15 +01:00