mrf24j40: Add a few test-cases.
authorUwe Hermann <uwe@hermann-uwe.de>
Mon, 17 Aug 2015 22:07:50 +0000 (00:07 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Mon, 17 Aug 2015 22:07:50 +0000 (00:07 +0200)
decoder/test/mrf24j40/mrf24j40-reset-wakeup.output [new file with mode: 0644]
decoder/test/mrf24j40/mrf24j40-wake-tx-ack.output [new file with mode: 0644]
decoder/test/mrf24j40/test.conf [new file with mode: 0644]

diff --git a/decoder/test/mrf24j40/mrf24j40-reset-wakeup.output b/decoder/test/mrf24j40/mrf24j40-reset-wakeup.output
new file mode 100644 (file)
index 0000000..b9b807c
--- /dev/null
@@ -0,0 +1,30 @@
+3669-3743 mrf24j40: swrite: "SOFTRST: 0x7"
+3813-3888 mrf24j40: sread: "SOFTRST: 0x0"
+3968-4044 mrf24j40: swrite: "PACON2: 0x98"
+4114-4189 mrf24j40: swrite: "TXSTBL: 0x95"
+4260-4390 mrf24j40: lwrite: "RFCON0: 0x3"
+4461-4590 mrf24j40: lwrite: "RFCON1: 0x1"
+4661-4789 mrf24j40: lwrite: "RFCON2: 0x80"
+4861-4991 mrf24j40: lwrite: "RFCON6: 0x90"
+5062-5191 mrf24j40: lwrite: "RFCON7: 0x80"
+5262-5390 mrf24j40: lwrite: "RFCON8: 0x10"
+5463-5592 mrf24j40: lwrite: "SLPCON1: 0x21"
+5662-5736 mrf24j40: swrite: "BBREG2: 0x80"
+5808-5883 mrf24j40: swrite: "CCAEDTH: 0x60"
+5953-6029 mrf24j40: swrite: "BBREG6: 0x40"
+6100-6174 mrf24j40: swrite: "INTCON: 0xf6"
+6248-6376 mrf24j40: lwrite: "RFCON0: 0x13"
+6448-6523 mrf24j40: swrite: "RFCTL: 0x4"
+6593-6667 mrf24j40: swrite: "RFCTL: 0x0"
+7763-7839 mrf24j40: sread: "WAKECON: 0x0"
+7911-7986 mrf24j40: swrite: "WAKECON: 0x80"
+8055-8130 mrf24j40: sread: "SOFTRST: 0x0"
+8203-8278 mrf24j40: swrite: "SOFTRST: 0x4"
+8346-8422 mrf24j40: sread: "SLPACK: 0x0"
+8496-8571 mrf24j40: swrite: "SLPACK: 0x80"
+8646-8720 mrf24j40: swrite: "PANIDH: 0xca"
+8794-8869 mrf24j40: swrite: "PANIDL: 0xfe"
+8941-9016 mrf24j40: sread: "PANIDH: 0xca"
+9086-9162 mrf24j40: sread: "PANIDL: 0xfe"
+47051-47126 mrf24j40: swrite: "SADRH: 0x11"
+47198-47272 mrf24j40: swrite: "SADRL: 0x11"
diff --git a/decoder/test/mrf24j40/mrf24j40-wake-tx-ack.output b/decoder/test/mrf24j40/mrf24j40-wake-tx-ack.output
new file mode 100644 (file)
index 0000000..e6fb9a7
--- /dev/null
@@ -0,0 +1,50 @@
+129948-130023 mrf24j40: sread: "WAKECON: 0x80"
+130096-130171 mrf24j40: swrite: "WAKECON: 0x80"
+130244-130320 mrf24j40: swrite: "WAKECON: 0xc0"
+146018-146092 mrf24j40: swrite: "WAKECON: 0x80"
+178240-178368 mrf24j40: lwrite: "TX:0x0: 0x9"
+178441-178569 mrf24j40: lwrite: "TX:0x1: 0x1f"
+178642-178771 mrf24j40: lwrite: "TX:0x2: 0x61"
+178842-178970 mrf24j40: lwrite: "TX:0x3: 0x88"
+179046-179175 mrf24j40: lwrite: "TX:0x4: 0xc5"
+179247-179321 mrf24j40: sread: "PANIDH: 0xca"
+179393-179468 mrf24j40: sread: "PANIDL: 0xfe"
+179547-179675 mrf24j40: lwrite: "TX:0x5: 0xfe"
+179748-179877 mrf24j40: lwrite: "TX:0x6: 0xca"
+179948-180077 mrf24j40: lwrite: "TX:0x7: 0x1"
+180148-180276 mrf24j40: lwrite: "TX:0x8: 0x0"
+180349-180423 mrf24j40: sread: "SADRH: 0x11"
+180495-180570 mrf24j40: sread: "SADRL: 0x11"
+180649-180777 mrf24j40: lwrite: "TX:0x9: 0x11"
+180850-180978 mrf24j40: lwrite: "TX:0xa: 0x11"
+181054-181183 mrf24j40: lwrite: "TX:0xb: 0x78"
+181259-181388 mrf24j40: lwrite: "TX:0xc: 0x23"
+181464-181593 mrf24j40: lwrite: "TX:0xd: 0x26"
+181669-181798 mrf24j40: lwrite: "TX:0xe: 0x4"
+181874-182003 mrf24j40: lwrite: "TX:0xf: 0x5b"
+182079-182208 mrf24j40: lwrite: "TX:0x10: 0x0"
+182284-182413 mrf24j40: lwrite: "TX:0x11: 0x0"
+182489-182618 mrf24j40: lwrite: "TX:0x12: 0x27"
+182694-182823 mrf24j40: lwrite: "TX:0x13: 0x64"
+182899-183028 mrf24j40: lwrite: "TX:0x14: 0x96"
+183104-183233 mrf24j40: lwrite: "TX:0x15: 0x0"
+183309-183437 mrf24j40: lwrite: "TX:0x16: 0x0"
+183514-183642 mrf24j40: lwrite: "TX:0x17: 0x28"
+183719-183848 mrf24j40: lwrite: "TX:0x18: 0x1e"
+183924-184052 mrf24j40: lwrite: "TX:0x19: 0x0"
+184129-184257 mrf24j40: lwrite: "TX:0x1a: 0x0"
+184334-184462 mrf24j40: lwrite: "TX:0x1b: 0x0"
+184539-184667 mrf24j40: lwrite: "TX:0x1c: 0x0"
+184744-184872 mrf24j40: lwrite: "TX:0x1d: 0x0"
+184949-185077 mrf24j40: lwrite: "TX:0x1e: 0x0"
+185154-185282 mrf24j40: lwrite: "TX:0x1f: 0x0"
+185359-185487 mrf24j40: lwrite: "TX:0x20: 0x0"
+185568-185643 mrf24j40: swrite: "TXNCON: 0x5"
+223979-224054 mrf24j40: sread: "INTSTAT: 0x41"
+224134-224209 mrf24j40: sread: "TXSTAT: 0x0"
+261184-261259 mrf24j40: sread: "WAKECON: 0x80"
+261331-261405 mrf24j40: swrite: "WAKECON: 0x80"
+261475-261550 mrf24j40: sread: "SOFTRST: 0x0"
+261623-261698 mrf24j40: swrite: "SOFTRST: 0x4"
+261766-261842 mrf24j40: sread: "SLPACK: 0x0"
+261916-261990 mrf24j40: swrite: "SLPACK: 0x80"
diff --git a/decoder/test/mrf24j40/test.conf b/decoder/test/mrf24j40/test.conf
new file mode 100644 (file)
index 0000000..92b52d4
--- /dev/null
@@ -0,0 +1,13 @@
+test mrf24j40-reset-wakeup
+       protocol-decoder spi channel cs=5 channel clk=3 channel mosi=2 channel miso=4
+       protocol-decoder mrf24j40
+       stack spi mrf24j40
+       input spi/mrf24j40/mrf24j40-reset-wakeup.sr
+       output mrf24j40 annotation match mrf24j40-reset-wakeup.output
+
+test mrf24j40-wake-tx-ack
+       protocol-decoder spi channel cs=5 channel clk=3 channel mosi=2 channel miso=4
+       protocol-decoder mrf24j40
+       stack spi mrf24j40
+       input spi/mrf24j40/mrf24j40-wake-tx-ack.sr
+       output mrf24j40 annotation match mrf24j40-wake-tx-ack.output