SQ50 patches for libsigrok
Go to file
Uwe Hermann 85b5af0687 Make the demo driver work.
When initialized, the driver starts a thread that generates signal data.
This data is written to a pipe (write file descriptor).
The other end of the pipe (read file descriptor), is connected to the
main polling code, like any other driver.

Note: This patch adds a new dependency on libgthread.

At the moment, you can list the driver's device:

$ ./cli/sigrok-cli -D
The following devices were found:
ID  Device
0   Sigrok project Demo Driver v1.0 with 8 probes

And use it for random signal generation:

$ /opt/sigrok/bin/sigrok-cli -d 0 --samples 50 -f bits -p 1-8
sigrok 0.1pre2
Acquisition with 8/8 probes at 0 Hz
1:10111100 11010110 00001011 00011110 00111010 11110100 10
2:11010110 00111111 01001010 11111101 11010011 00010010 11
3:11000101 01000001 10100011 10100100 10110000 11110011 00
4:00100111 11110100 10011101 01100111 00100101 01001110 10
5:00011100 00101100 10111000 11001101 01011101 01011011 01
6:10110101 10111110 10010110 10111000 11011010 10000100 11
7:11111111 01001111 11110110 11010010 10000101 01001111 00
8:01000101 01111110 01010111 00000111 00010010 00000101 11

The next step is to make demo driver customisable (per-probe signal clock,
reference sample signals : serial, I2C, CAN...).

Thanks Olivier Fauchon <olivier@aixmarseille.com> for the patch.
2011-01-08 18:29:10 +01:00
hardware Make the demo driver work. 2011-01-08 18:29:10 +01:00
input Fix out-of-tree build. 2011-01-08 03:32:25 +01:00
output fix buffer size, various error checks 2011-01-08 15:50:14 +01:00
Makefile.am Fix out-of-tree build. 2011-01-08 03:32:25 +01:00
backend.c libsigrok: Coding style fixes. 2010-04-15 20:07:16 +02:00
datastore.c datastore_new(): Use int as return value. 2010-05-09 22:06:27 +02:00
debug.c libsigrok: Coding style fixes. 2010-04-15 20:07:16 +02:00
device.c Fix two more compiler warnings noticed on amd64. 2011-01-08 03:51:31 +01:00
filter.c filter.c: Error handling, code simplification. 2010-05-09 22:06:30 +02:00
hwplugin.c Initial, unfinished demo/simulation hardware driver. 2011-01-06 19:16:47 +01:00
libsigrok.pc.in pkg-config: Add (semi-generated) libsigrok.pc. 2010-05-11 22:28:09 +02:00
session.c libsigrok: More coding style fixes. 2010-04-15 20:16:53 +02:00
sigrok.h add sigrok_period_string(), MAX_NUM_PROBES 2011-01-08 15:50:13 +01:00