Commit Graph

1659 Commits

Author SHA1 Message Date
Bert Vermeulen 17f63de642 Fix output API receive() function
This changes the new output API's recv() to receive(), and has it
return an integer status code. The output of the function, if any,
is stored in a new parameter as a pointer to a newly allocated GString.

All output modules using this API have been adjusted.
2013-04-27 17:29:46 +02:00
Martin Ling 9c48c2e91e Remove SR_MAX_NUM_PROBES, which is now no longer used. 2013-04-27 15:49:50 +02:00
Martin Ling a1be7b6c3f vcd output: Replace fixed length array of indices with GArray. 2013-04-27 15:49:50 +02:00
Martin Ling d601c0e9b3 vcd output: Eliminate unnecessary array of probe names. 2013-04-27 15:49:50 +02:00
Martin Ling 90f680ff00 gnuplot: Eliminate fixed-size header buffer based on max probes. 2013-04-27 15:49:50 +02:00
Martin Ling deb0908338 gnuplot: Remove unnecessary array of probe names. 2013-04-27 15:49:50 +02:00
Martin Ling 1c5b099a13 csv: Remove unnecessary array of probe names. 2013-04-27 15:49:50 +02:00
Martin Ling 91a44f50f0 chronovu-l8: remove unused array of probe names. 2013-04-27 15:49:50 +02:00
Martin Ling d53e4e8d92 text: Use a GSList of enabled probe names, not an array. 2013-04-27 15:49:50 +02:00
Martin Ling db9679afc9 vcd input: Use a GSList rather than fixed size array of probes. 2013-04-27 15:49:49 +02:00
Martin Ling b050fc481b vcd output: fix for big-endian architectures. 2013-04-27 15:49:49 +02:00
Martin Ling 9c178ffa50 gnuplot: fix for big-endian architectures. 2013-04-27 15:49:49 +02:00
Bert Vermeulen 3292535c87 output/ols: Use new API
This now properly supports samplerate changes coming in from
SR_DF_META packets, and also fixes bug 99.
2013-04-27 15:49:49 +02:00
Uwe Hermann 409a811b8c error.c: Add SR_ERR_DEV_CLOSED. 2013-04-27 10:49:52 +02:00
Martin Ling 3a581560f1 ascii: fix for big-endian architectures. 2013-04-26 22:56:16 +02:00
Martin Ling ddb292571d bits: Remove unused code. 2013-04-26 22:56:16 +02:00
Martin Ling 9275d23208 hex: fix for big-endian architectures. 2013-04-26 22:56:16 +02:00
Martin Ling 542dbd185b bits: fix for big-endian architectures. 2013-04-26 22:56:16 +02:00
Bert Vermeulen b9470914d0 Remove sr_rational 2013-04-26 22:51:12 +02:00
Uwe Hermann bc653a5678 uni-t-dmm: Do proper detection of packets in the stream.
Also, various fixups in the driver.
2013-04-26 20:54:21 +02:00
Uwe Hermann c885268777 uni-t-dmm: Make driver more similar to serial-dmm. 2013-04-26 20:05:44 +02:00
Uwe Hermann 7381251e33 common/dmm: Drop obsolete *is_packet_start() functions. 2013-04-26 20:05:44 +02:00
Uwe Hermann 913abe8321 fs9922: Use common DMM API.
Use the same functions and structs as the other DMM protocol parsers
in hardware/common/dmm. Among other things, this allows the functions
to be used from drivers in a generic way, e.g. in serial-dmm, uni-t-dmm,
and possibly other drivers.
2013-04-26 20:05:44 +02:00
Uwe Hermann 6d0369591b README: Add "Copyright and license" section. 2013-04-26 13:35:19 +02:00
Uwe Hermann 695f32d89d Bring back link-mso19/nexus-osciprime for now.
This patch will be re-introduced later.
2013-04-26 10:47:34 +02:00
Uwe Hermann 9d1164f9a1 Drop link-mso19/nexus-osciprime in preparation for release.
These two drivers are currently unfinished and don't work, so disable
and "unhook" them for now in preparation of the next libsigrok release.

They're still in the git repository, but not hooked up to the build
system, so that they won't get detected or built, and also don't end up
in the release tarball.

Since link-mso19 is the only driver that currently requires libudev,
drop any reference to that, too.

It should be relatively easy to apply this patch in reverse after the
release to bring back both drivers.
2013-04-25 19:16:13 +02:00
Uwe Hermann 8d3764aaca README.devices: Fix typo. 2013-04-25 17:42:20 +02:00
Uwe Hermann 0e77b7cab3 python: Add Session.open_device(). 2013-04-25 00:15:49 +02:00
Uwe Hermann 57dd5e63ec python: sr_config's value field is called 'data'. 2013-04-24 23:43:56 +02:00
Martin Ling 3124e80bfe python: Support keyword arguments to scan() 2013-04-24 23:20:47 +02:00
Martin Ling f245b7669e python: Add a ConfigKey class. 2013-04-24 23:20:47 +02:00
Martin Ling 05cfe1147a python: Add conversion functions to/from GSList * 2013-04-24 23:20:47 +02:00
Bert Vermeulen bd7bfe8c51 Open virtual device before loading file 2013-04-24 23:06:50 +02:00
Bert Vermeulen e73ffd4238 Enforce open device before config_set()/dev_acquisition_start() 2013-04-24 22:03:50 +02:00
Bert Vermeulen efdecf4c05 Add sr_dev_open()/sr_dev_close()
Frontends will be required to open a device before using
sr_config_set() or starting acquisition.
2013-04-24 22:02:34 +02:00
Bert Vermeulen 46a743c1fa Whitespace fixes
Damn editor.
2013-04-24 19:07:46 +02:00
Bert Vermeulen a31a4d371f fx2lafw: Minor cleanup 2013-04-24 03:23:23 +02:00
Bert Vermeulen 294dbac724 hantek-dso: Support conn scan parameter 2013-04-24 03:23:23 +02:00
Bert Vermeulen cc9fd2d29c rigol-ds1xx2: Code cleanup 2013-04-24 03:23:11 +02:00
Martin Ling 9bd4c95606 rigol-ds1xx2: Use common serial code. 2013-04-24 02:10:25 +02:00
Martin Ling ca55277ca8 rigol-ds1xx2: Accept SR_CONF_CONN. 2013-04-24 02:10:25 +02:00
Uwe Hermann 886bd5e056 mic-985xx: Use sr_dev_inst to store connection handle. 2013-04-23 23:06:02 +02:00
Uwe Hermann 31e5377250 Fix minor warning with some compilers. 2013-04-23 22:54:02 +02:00
Uwe Hermann 50985c2019 GPL headers: Use correct project name. 2013-04-23 22:24:30 +02:00
Uwe Hermann 1e1bfcd0fe serial-dmm: Use sr_dev_inst to store connection handle. 2013-04-23 20:55:04 +02:00
Bert Vermeulen 625cc7834a More python build stuff to ignore 2013-04-23 12:44:16 +02:00
Bert Vermeulen f99e32affc sr_dev_inst_*() -> sr_dev_*() 2013-04-22 15:55:06 +02:00
Bert Vermeulen 609bfd753c zeroplus-logic-cube: Use sr_dev_inst to store connection handle 2013-04-22 15:00:04 +02:00
Bert Vermeulen 459a0f2623 ols: Use sr_dev_inst to store connection handle 2013-04-22 13:40:40 +02:00
Bert Vermeulen 2e5b73c00c ols: Fix stack clobbering at start of acquisition
This off-by-one was clobbering the stack since introduced in a803c0db4d.
However it only set one bit, and that generally appears to have been set
already, so this rarely affected anything. But when it did, it affected
a pointer, causing a segfault.
2013-04-22 13:33:31 +02:00