summaryrefslogtreecommitdiff
path: root/decoder/test/am230x/test.conf
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-11-27 01:05:11 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-11-27 01:05:11 +0100
commit4b3d30ebf045f0a22198adeaf555fd46334b8200 (patch)
treee15d8336d78905b9ccfbef8f88bf72c7b2226e85 /decoder/test/am230x/test.conf
parent021922274c9a92b2f3a830956084185f0a7a4ed2 (diff)
downloadsigrok-test-4b3d30ebf045f0a22198adeaf555fd46334b8200.tar.gz
sigrok-test-4b3d30ebf045f0a22198adeaf555fd46334b8200.zip
am230x: Add a few AM230x/DHT11 tests.
Diffstat (limited to 'decoder/test/am230x/test.conf')
-rw-r--r--decoder/test/am230x/test.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/decoder/test/am230x/test.conf b/decoder/test/am230x/test.conf
new file mode 100644
index 0000000..8c3d7ff
--- /dev/null
+++ b/decoder/test/am230x/test.conf
@@ -0,0 +1,24 @@
+test exception_samplerate
+ protocol-decoder am230x
+ input misc/no-samplerate.sr
+ output am230x exception match SamplerateError
+
+test am2301
+ protocol-decoder am230x channel sda=5
+ input am230x/am2301/am2301_1mhz.sr
+ output am230x annotation match am2301_1mhz.output
+
+test am2302
+ protocol-decoder am230x channel sda=0
+ input am230x/am2302/am2302_1mhz.sr
+ output am230x annotation match am2302_1mhz.output
+
+test am2303
+ protocol-decoder am230x channel sda=0
+ input am230x/am2303/am2303_1mhz.sr
+ output am230x annotation match am2303_1mhz.output
+
+test dht11
+ protocol-decoder am230x channel sda=5 option device=dht11
+ input am230x/dht11/dht11_1mhz.sr
+ output am230x annotation match dht11_1mhz.output