Bert Vermeulen
034accb512
hantek-dso: move buffer sizes to device context
...
There are only two sizes for every device: 10k and the complete
per-channel buffer size. This can be doubled if one channel is disabled.
2013-04-11 18:32:08 +02:00
Uwe Hermann
cbc6f3b253
hantek-dso: Use message logging helpers.
2013-01-29 12:56:02 +01:00
Bert Vermeulen
69e19dd769
Always interleave analog data with all enabled probes.
...
The new "probes" field in sr_datafeed_analog contains a copy
of all enabled struct sr_probe.
2013-01-23 03:40:44 +01:00
Peter Stuge
1740429d70
hardware: A few further USB error message fixups
2012-12-05 01:34:15 +01:00
Peter Stuge
d4928d7102
hardware: Call libusb_error_name() in all USB-related error messages
2012-12-05 01:14:44 +01:00
Peter Stuge
d4abb463a7
hardware: Make USB drivers use the libusb_context in struct sr_context
2012-12-03 12:07:40 +01:00
Uwe Hermann
e98b7f1be0
hantek-dso: Use message logging helpers.
2012-11-10 19:42:37 +01:00
Uwe Hermann
545f978639
config.h usage cleanups.
...
- Drop config.h #include from files that don't actually use any of
its contents (at the moment).
- Add comment for those that do need it.
2012-10-24 00:41:21 +02:00
Bert Vermeulen
19b0cce312
hantek-dso: use default libusb context
2012-09-11 21:16:16 +02:00
Bert Vermeulen
269971ddce
hantek-dso: use driver-private storage for instances and libusb_context
2012-08-03 11:29:00 +02:00
Bert Vermeulen
25a0f108f4
sr/drivers: change driver dev_open/dev_close calls to use sdi
2012-08-03 11:27:31 +02:00
Bert Vermeulen
f8c617cf4c
hantek-dso: instance list fix
2012-08-03 10:27:38 +02:00
Bert Vermeulen
45c59c8bdd
sr: moved sigrok.h so libsigrok/libsigrok.h
...
All frontends will have to include <libsigrok/libsigrok.h> from now on.
This header includes proto.h and version.h, both installed from the
distribution into $INCLUDE/libsigrok/ as well.
The only dynamically changed header is now version.h, which has both
libsigrok and libtool compile-time versions in it.
2012-07-05 01:17:28 +02:00
Bert Vermeulen
e749a8cb50
hantek-dso: start sending the frame only from the trigger point
...
Samples received before the trigger point are stored. From the
trigger point on, every chunk received from the device is sent
up the session bus. After the device has finished sending, the
stored samples are transmitted.
2012-06-26 23:26:55 +02:00
Bert Vermeulen
e05a174be2
hantek-dso: fix triggerpoint conversion
2012-06-24 18:57:37 +02:00
Bert Vermeulen
6e6eeff47a
hantek-dso: capturestate packet also contains the trigger point
...
Not yet used, but it's the key to knowing where in the frame to
start displaying; the frame is used as a circular buffer, and what
is sent is effectively a snapshot.
2012-06-18 23:09:37 +02:00
Bert Vermeulen
a217bcdf10
hantek-dso: relays now set properly
...
They appear to be arranged to switch on/off a hierarchical series of
devices that attenuate the channel by an order of magnitude.
2012-06-18 23:05:02 +02:00
Uwe Hermann
384c28d9e7
sr: hantek-dso: Use portable g_ntohs() function.
...
The ntohs() from <arpa/inet.h> is not available on MinGW/Windows. There
are ways to work around this, but as we use glib already, using g_ntohs()
is the best option anyway.
2012-06-14 01:21:00 +02:00
Bert Vermeulen
1d97091e71
hantek-dso: fix CH2 vdiv setting
2012-06-05 18:18:23 +02:00
Bert Vermeulen
2715c0b86b
hantek-dso: hopefully handle endianness in voltage setting
2012-05-30 23:56:13 +02:00
Bert Vermeulen
b58fbd99c8
hantek-dso: support for SR_HWCAP_COUPLING
2012-05-30 23:56:13 +02:00
Bert Vermeulen
313deed219
hantek-dso: support SR_HWCAP_VDIV
2012-05-30 23:56:12 +02:00
Bert Vermeulen
ebb781a69f
hantek-dso: support for SR_HWCAP_FILTER
2012-05-30 23:56:12 +02:00
Bert Vermeulen
a370ef1916
hantek-dso: support for setting all CMD_SET_TRIGGER_SAMPLERATE params
2012-05-30 23:56:12 +02:00
Bert Vermeulen
bc79e906a0
hantek-dso: proper protocol implementation of trigger/samplerate setting
2012-05-30 23:56:12 +02:00
Bert Vermeulen
6e71ef3b6f
hantek-dso: fix channel selection
2012-05-30 23:56:12 +02:00
Bert Vermeulen
3b533202c8
sr: initial support for Hantek 2xxx/5200 USB oscilloscopes
2012-05-30 23:56:12 +02:00