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 19:27:44 +0000 (13:27 -0600)
commite60286c1da863b6aa96538e55d3d85175c8acf07
treece26024654b060dca80018d7004355f8c3800c9b
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