demo: Implement basic analog sample generator
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Mon, 3 Dec 2012 19:20:59 +0000 (13:20 -0600)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Mon, 3 Dec 2012 20:30:16 +0000 (14:30 -0600)
commit2910f0c045e48f305a267e12ed7fb7e31bb6aa28
tree43c67078c0f4021995bfa4a50efb60bf7b1da5b3
parentde9e5a31151fe49f7e8a31b3d917ca109ff296a1
demo: Implement basic analog sample generator

Implement a 2V peak-to-peak, 100Hz sine wave.
At the moment, this only works correctly with one probe.

To test, use:
sigrok-cli --driver=demo -d pattern=sine100 --samples 2001 -p 1 -O analog -l 5

The last sample should be exactly 0.000000 V.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
hardware/demo/demo.c