Bert Vermeulen
040ae8be94
sr: sigrok.h is no longer generated
2012-02-12 20:43:20 +01:00
Uwe Hermann
52f28f821f
sigrok.h: Add SIGROK_{MAJOR,MINOR,MICRO,}_VERSION #defines.
2011-10-31 14:49:12 +01:00
Gareth McMullin
3a4d09c0de
Run-Length Encoding support for the OLS.
2011-10-30 01:56:54 +02:00
Bert Vermeulen
9c939c5132
use new datafeed packet format
2011-06-19 14:28:50 +02:00
Bert Vermeulen
38ab3ee79d
new datafeed packet format
...
struct sr_datafeed_packet now has timeoffset and duration fields,
expressed in picoseconds (1/10^12 seconds)
length and unitsize are now in a separate struct sr_datafeed_logic
2011-06-19 02:35:23 +02:00
Bert Vermeulen
8e49cebd10
whitespace
2011-06-12 18:07:15 +02:00
Uwe Hermann
06dd80d424
Add sr_spew/SR_LOG_SPEW for even more debug output.
...
This is meant for really extensive debug output which can slow down
operation significantly and should thus only be enabled if really needed.
2011-05-09 01:03:21 +02:00
Uwe Hermann
e88dadd77c
Improve (Doxygen) comments for HWCAP entries.
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
1352eeddd4
libsigrok/cli: Implement loglevel support.
...
libsigrok can now be told at which loglevel to work, i.e., how many
debug/error/warning output to generate. You can also query the current
loglevel.
In sigrok-cli it is now possible to set the loglevel via -l. For example:
- Disable all output: sigrok-cli -l 0
- Only show errors: sigrok-cli -l 1
- Show errors, warnings, info, and debug messages: sigrok-cli -l 4
2011-05-05 13:06:13 +02:00
Uwe Hermann
86f5e3d826
libsigrok: Rename open/close to opendev/closedev.
2011-05-05 13:06:11 +02:00
Uwe Hermann
92b3101cfc
alsa: Always use glib's memory allocation functions.
2011-04-16 18:08:17 +02:00
Uwe Hermann
cdb3573ceb
input/output formats: s/extension/id/.
...
The struct entry 'extension' is not really a (filename) extension, but
rather a unique ID used for input or output formats, e.g. in the sigrok
CLI or GUI interface. Thus, rename it accordingly.
2011-04-10 23:03:34 +02:00
Uwe Hermann
f7d2982d42
Add SR_ERR_ARG #define.
...
Changing the number of SR_ERR_SAMPLERATE is not a problem ATM, as we
never had a public release of libsigrok, i.e. nobody relies on the API yet.
2011-04-10 23:03:33 +02:00
Uwe Hermann
8bb416becf
Kill unused functions (avoid namespace pollution).
2011-03-03 20:24:25 +01:00
Uwe Hermann
f5a443f27a
Make DATASTORE_CHUNKSIZE private.
2011-03-03 20:24:24 +01: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
9688b443f6
Add SR_ prefix for MAX_NUM_PROBES/MAX_PROBENAME_LEN.
2011-02-20 21:16:26 +01:00
Uwe Hermann
4cea9eb20d
Make ARRAY_SIZE/ARRAY_AND_SIZE private.
...
This is not libsigrok-specific and should not be part of our API.
2011-02-20 21:16:26 +01:00
Uwe Hermann
54ac5277c5
Constify some more 'char *' parameters.
2011-02-20 21:16:26 +01:00
Uwe Hermann
809c5f2011
Add sr_ prefix for analog stuff some structs.
2011-02-20 21:16:24 +01:00
Uwe Hermann
a887e3da97
Add sr_ prefix to receive_data_callback typedef.
...
Also, drop obsolete add_source() prototype from sigrok-cli.h.
2011-02-20 21:16:24 +01:00
Uwe Hermann
a65de0309b
Add sr_ prefix for hwcap structs/functions.
2011-02-20 21:16:19 +01:00
Uwe Hermann
c49111295f
Add sr_ prefix for datastore API functions.
2011-02-08 22:28:02 +01:00
Uwe Hermann
60679b18e6
Add sr_ prefix to 'struct samplerates'.
2011-02-08 22:28:01 +01:00
Uwe Hermann
2872d21ebc
Add sr_ prefix for 'struct session'.
2011-02-08 22:27:58 +01:00
Uwe Hermann
1afe89897c
Add sr_ prefix for 'struct probe'.
2011-02-08 22:27:58 +01:00
Uwe Hermann
22b0238344
Fix build when no libusb-LA is compiled.
...
Until now the build would break if the user doesn't enable at least one
of the libusb1.0-based LAs. I.e., you could not compile only OLS, or
only the demo driver.
2011-02-02 10:25:52 +01:00
Bert Vermeulen
7d65887435
implement session loading based on a virtual device driver
2011-01-31 22:34:14 +01:00
Bert Vermeulen
a59606dfff
remove dead code
2011-01-31 16:30:58 +01:00
Uwe Hermann
5a2326a71b
SR_ prefix for all public enums.
2011-01-30 18:32:59 +01:00
Uwe Hermann
6c29007211
Prefixes for *_device_instance.
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
a00ba01228
Change all sigrok_ prefixes to sr_.
2011-01-30 18:32:55 +01:00
Uwe Hermann
f50f3f40d9
Add sr_ prefix to input/output structs.
2011-01-30 18:32:54 +01:00
Uwe Hermann
e46b8fb154
Change SIGROK_ prefix to SR_.
2011-01-30 18:32:53 +01:00
Bert Vermeulen
544a458212
move session main loop stuff into libsigrok (session_run)
2011-01-30 17:12:54 +01:00
Bert Vermeulen
47697369b5
cli: revamp option syntax
...
for device (-d) and format (-f), the syntax is:
<thing>:key=value:key2=value2
2011-01-23 04:58:32 +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
c3579621d5
reduce analog_sample sizes.
...
To save resources, reduce the max ADC resolution and max probes
per device. Just increase when needed.
Soft limit: 256 probes, 16bit adc
Hard limit: 2^64 probes, 64 bit adc
2011-01-21 11:25:50 -02:00
Daniel Ribeiro
48d783e4b5
introduce analog_sample datafeed packet
...
These structs define the packet format used to exchange data using
the DF_ANALOG packet type.
2011-01-21 02:12:48 -02:00
Uwe Hermann
a00b530c64
lib headers: Add 'extern "C"' for C++ usage.
2011-01-20 23:00:59 +01:00
Uwe Hermann
484760d1a8
Cosmetics.
2011-01-15 15:57:54 +01:00
Uwe Hermann
c2bd92ec08
Slightly more consistent #include-guard naming.
2011-01-15 14:48:21 +01:00
Bert Vermeulen
925dbf9f97
add new HWCAP patternmode
2011-01-15 05:11:40 +01:00
Bert Vermeulen
13a1291350
fully implement input_binary module
2011-01-11 23:59:33 +01:00