From: Uwe Hermann Date: Fri, 10 Apr 2020 16:16:40 +0000 (+0200) Subject: adxl345: Add some test-cases. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4aa5888ef4f3d4bc3d72093c6df2eb30e292004b;p=sigrok-test.git adxl345: Add some test-cases. --- diff --git a/decoder/test/adxl345/adxl345_axis.output b/decoder/test/adxl345/adxl345_axis.output new file mode 100644 index 0000000..c8856aa --- /dev/null +++ b/decoder/test/adxl345/adxl345_axis.output @@ -0,0 +1,165 @@ +92666-92670 adxl345: read: "READ REG" "READ" "R" +92670-92674 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +92674-92698 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +92698-92730 adxl345: reg-address: "DATAX0" "DX0" "X0" +92698-92730 adxl345: reg-data: "207" +92730-92762 adxl345: reg-address: "DATAX1" "DX1" "X1" +92698-92762 adxl345: reg-data: "X: 0xFFCF" "65280" +92762-92794 adxl345: reg-address: "DATAY0" "DY0" "Y0" +92762-92794 adxl345: reg-data: "233" +92794-92826 adxl345: reg-address: "DATAY1" "DY1" "Y1" +92762-92826 adxl345: reg-data: "Y: 0x00E9" "0" +92826-92858 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +92826-92858 adxl345: reg-data: "145" +92858-92890 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +92826-92890 adxl345: reg-data: "Z: 0xFF91" "65280" +108670-108674 adxl345: read: "READ REG" "READ" "R" +108674-108678 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +108678-108702 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +108702-108734 adxl345: reg-address: "DATAX0" "DX0" "X0" +108702-108734 adxl345: reg-data: "207" +108734-108766 adxl345: reg-address: "DATAX1" "DX1" "X1" +108702-108766 adxl345: reg-data: "X: 0xFFCF" "65280" +108766-108798 adxl345: reg-address: "DATAY0" "DY0" "Y0" +108766-108798 adxl345: reg-data: "233" +108798-108830 adxl345: reg-address: "DATAY1" "DY1" "Y1" +108766-108830 adxl345: reg-data: "Y: 0x00E9" "0" +108830-108862 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +108830-108862 adxl345: reg-data: "145" +108862-108894 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +108830-108894 adxl345: reg-data: "Z: 0xFF91" "65280" +117601-117605 adxl345: read: "READ REG" "READ" "R" +117605-117609 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +117609-117633 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +117633-117665 adxl345: reg-address: "DATAX0" "DX0" "X0" +117633-117665 adxl345: reg-data: "207" +117665-117697 adxl345: reg-address: "DATAX1" "DX1" "X1" +117633-117697 adxl345: reg-data: "X: 0xFFCF" "65280" +117697-117729 adxl345: reg-address: "DATAY0" "DY0" "Y0" +117697-117729 adxl345: reg-data: "234" +117729-117761 adxl345: reg-address: "DATAY1" "DY1" "Y1" +117697-117761 adxl345: reg-data: "Y: 0x00EA" "0" +117761-117793 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +117761-117793 adxl345: reg-data: "144" +117793-117825 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +117761-117825 adxl345: reg-data: "Z: 0xFF90" "65280" +126618-126622 adxl345: read: "READ REG" "READ" "R" +126622-126626 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +126626-126650 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +126650-126682 adxl345: reg-address: "DATAX0" "DX0" "X0" +126650-126682 adxl345: reg-data: "206" +126682-126714 adxl345: reg-address: "DATAX1" "DX1" "X1" +126650-126714 adxl345: reg-data: "X: 0xFFCE" "65280" +126714-126746 adxl345: reg-address: "DATAY0" "DY0" "Y0" +126714-126746 adxl345: reg-data: "232" +126746-126778 adxl345: reg-address: "DATAY1" "DY1" "Y1" +126714-126778 adxl345: reg-data: "Y: 0x00E8" "0" +126778-126810 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +126778-126810 adxl345: reg-data: "144" +126810-126842 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +126778-126842 adxl345: reg-data: "Z: 0xFF90" "65280" +136889-136893 adxl345: read: "READ REG" "READ" "R" +136893-136897 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +136897-136921 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +136921-136953 adxl345: reg-address: "DATAX0" "DX0" "X0" +136921-136953 adxl345: reg-data: "208" +136953-136985 adxl345: reg-address: "DATAX1" "DX1" "X1" +136921-136985 adxl345: reg-data: "X: 0xFFD0" "65280" +136985-137017 adxl345: reg-address: "DATAY0" "DY0" "Y0" +136985-137017 adxl345: reg-data: "234" +137017-137049 adxl345: reg-address: "DATAY1" "DY1" "Y1" +136985-137049 adxl345: reg-data: "Y: 0x00EA" "0" +137049-137081 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +137049-137081 adxl345: reg-data: "147" +137081-137113 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +137049-137113 adxl345: reg-data: "Z: 0xFF93" "65280" +145963-145967 adxl345: read: "READ REG" "READ" "R" +145967-145971 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +145971-145995 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +145995-146027 adxl345: reg-address: "DATAX0" "DX0" "X0" +145995-146027 adxl345: reg-data: "209" +146027-146059 adxl345: reg-address: "DATAX1" "DX1" "X1" +145995-146059 adxl345: reg-data: "X: 0xFFD1" "65280" +146059-146091 adxl345: reg-address: "DATAY0" "DY0" "Y0" +146059-146091 adxl345: reg-data: "236" +146091-146123 adxl345: reg-address: "DATAY1" "DY1" "Y1" +146059-146123 adxl345: reg-data: "Y: 0x00EC" "0" +146123-146155 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +146123-146155 adxl345: reg-data: "145" +146155-146187 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +146123-146187 adxl345: reg-data: "Z: 0xFF91" "65280" +156299-156303 adxl345: read: "READ REG" "READ" "R" +156303-156307 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +156307-156331 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +156331-156363 adxl345: reg-address: "DATAX0" "DX0" "X0" +156331-156363 adxl345: reg-data: "208" +156363-156395 adxl345: reg-address: "DATAX1" "DX1" "X1" +156331-156395 adxl345: reg-data: "X: 0xFFD0" "65280" +156395-156427 adxl345: reg-address: "DATAY0" "DY0" "Y0" +156395-156427 adxl345: reg-data: "236" +156427-156459 adxl345: reg-address: "DATAY1" "DY1" "Y1" +156395-156459 adxl345: reg-data: "Y: 0x00EC" "0" +156459-156491 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +156459-156491 adxl345: reg-data: "146" +156491-156523 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +156459-156523 adxl345: reg-data: "Z: 0xFF92" "65280" +165504-165508 adxl345: read: "READ REG" "READ" "R" +165508-165512 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +165512-165536 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +165536-165568 adxl345: reg-address: "DATAX0" "DX0" "X0" +165536-165568 adxl345: reg-data: "208" +165568-165600 adxl345: reg-address: "DATAX1" "DX1" "X1" +165536-165600 adxl345: reg-data: "X: 0xFFD0" "65280" +165600-165632 adxl345: reg-address: "DATAY0" "DY0" "Y0" +165600-165632 adxl345: reg-data: "236" +165632-165664 adxl345: reg-address: "DATAY1" "DY1" "Y1" +165600-165664 adxl345: reg-data: "Y: 0x00EC" "0" +165664-165696 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +165664-165696 adxl345: reg-data: "146" +165696-165728 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +165664-165728 adxl345: reg-data: "Z: 0xFF92" "65280" +175924-175928 adxl345: read: "READ REG" "READ" "R" +175928-175932 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +175932-175956 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +175956-175988 adxl345: reg-address: "DATAX0" "DX0" "X0" +175956-175988 adxl345: reg-data: "207" +175988-176020 adxl345: reg-address: "DATAX1" "DX1" "X1" +175956-176020 adxl345: reg-data: "X: 0xFFCF" "65280" +176020-176052 adxl345: reg-address: "DATAY0" "DY0" "Y0" +176020-176052 adxl345: reg-data: "232" +176052-176084 adxl345: reg-address: "DATAY1" "DY1" "Y1" +176020-176084 adxl345: reg-data: "Y: 0x00E8" "0" +176084-176116 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +176084-176116 adxl345: reg-data: "144" +176116-176148 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +176084-176148 adxl345: reg-data: "Z: 0xFF90" "65280" +185749-185753 adxl345: read: "READ REG" "READ" "R" +185753-185757 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +185757-185781 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +185781-185813 adxl345: reg-address: "DATAX0" "DX0" "X0" +185781-185813 adxl345: reg-data: "207" +185813-185845 adxl345: reg-address: "DATAX1" "DX1" "X1" +185781-185845 adxl345: reg-data: "X: 0xFFCF" "65280" +185845-185877 adxl345: reg-address: "DATAY0" "DY0" "Y0" +185845-185877 adxl345: reg-data: "234" +185877-185909 adxl345: reg-address: "DATAY1" "DY1" "Y1" +185845-185909 adxl345: reg-data: "Y: 0x00EA" "0" +185909-185941 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +185909-185941 adxl345: reg-data: "146" +185941-185973 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +185909-185973 adxl345: reg-data: "Z: 0xFF92" "65280" +195593-195597 adxl345: read: "READ REG" "READ" "R" +195597-195601 adxl345: mb: "MULTIPLE BYTES" "MULTI BYTES" "n*BYTES" "n*B" +195601-195625 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +195625-195657 adxl345: reg-address: "DATAX0" "DX0" "X0" +195625-195657 adxl345: reg-data: "208" +195657-195689 adxl345: reg-address: "DATAX1" "DX1" "X1" +195625-195689 adxl345: reg-data: "X: 0xFFD0" "65280" +195689-195721 adxl345: reg-address: "DATAY0" "DY0" "Y0" +195689-195721 adxl345: reg-data: "239" +195721-195753 adxl345: reg-address: "DATAY1" "DY1" "Y1" +195689-195753 adxl345: reg-data: "Y: 0x00EF" "0" +195753-195785 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +195753-195785 adxl345: reg-data: "143" +195785-195817 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +195753-195817 adxl345: reg-data: "Z: 0xFF8F" "65280" diff --git a/decoder/test/adxl345/adxl345_registers.output b/decoder/test/adxl345/adxl345_registers.output new file mode 100644 index 0000000..bfd0725 --- /dev/null +++ b/decoder/test/adxl345/adxl345_registers.output @@ -0,0 +1,347 @@ +45666-45670 adxl345: read: "READ REG" "READ" "R" +45670-45674 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +45674-45698 adxl345: reg-address: "ADDRESS: 0x01" "ADDR: 0x01" "0x01" +45698-45730 adxl345: reg-address: "1" +45698-45730 adxl345: reg-data: "0" +56246-56250 adxl345: read: "READ REG" "READ" "R" +56250-56254 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +56254-56278 adxl345: reg-address: "ADDRESS: 0x02" "ADDR: 0x02" "0x02" +56278-56310 adxl345: reg-address: "2" +56278-56310 adxl345: reg-data: "0" +66514-66518 adxl345: read: "READ REG" "READ" "R" +66518-66522 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +66522-66546 adxl345: reg-address: "ADDRESS: 0x03" "ADDR: 0x03" "0x03" +66546-66578 adxl345: reg-address: "3" +66546-66578 adxl345: reg-data: "0" +76433-76437 adxl345: read: "READ REG" "READ" "R" +76437-76441 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +76441-76465 adxl345: reg-address: "ADDRESS: 0x04" "ADDR: 0x04" "0x04" +76465-76497 adxl345: reg-address: "4" +76465-76497 adxl345: reg-data: "0" +86490-86494 adxl345: read: "READ REG" "READ" "R" +86494-86498 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +86498-86522 adxl345: reg-address: "ADDRESS: 0x05" "ADDR: 0x05" "0x05" +86522-86554 adxl345: reg-address: "5" +86522-86554 adxl345: reg-data: "0" +96224-96228 adxl345: read: "READ REG" "READ" "R" +96228-96232 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +96232-96256 adxl345: reg-address: "ADDRESS: 0x06" "ADDR: 0x06" "0x06" +96256-96288 adxl345: reg-address: "6" +96256-96288 adxl345: reg-data: "0" +106484-106488 adxl345: read: "READ REG" "READ" "R" +106488-106492 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +106492-106516 adxl345: reg-address: "ADDRESS: 0x07" "ADDR: 0x07" "0x07" +106516-106548 adxl345: reg-address: "7" +106516-106548 adxl345: reg-data: "0" +115964-115968 adxl345: read: "READ REG" "READ" "R" +115968-115972 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +115972-115996 adxl345: reg-address: "ADDRESS: 0x08" "ADDR: 0x08" "0x08" +115996-116028 adxl345: reg-address: "8" +115996-116028 adxl345: reg-data: "0" +126171-126175 adxl345: read: "READ REG" "READ" "R" +126175-126179 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +126179-126203 adxl345: reg-address: "ADDRESS: 0x09" "ADDR: 0x09" "0x09" +126203-126235 adxl345: reg-address: "9" +126203-126235 adxl345: reg-data: "0" +135890-135894 adxl345: read: "READ REG" "READ" "R" +135894-135898 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +135898-135922 adxl345: reg-address: "ADDRESS: 0x0A" "ADDR: 0x0A" "0x0A" +135922-135954 adxl345: reg-address: "10" +135922-135954 adxl345: reg-data: "0" +145620-145624 adxl345: read: "READ REG" "READ" "R" +145624-145628 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +145628-145652 adxl345: reg-address: "ADDRESS: 0x0B" "ADDR: 0x0B" "0x0B" +145652-145684 adxl345: reg-address: "11" +145652-145684 adxl345: reg-data: "0" +155567-155571 adxl345: read: "READ REG" "READ" "R" +155571-155575 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +155575-155599 adxl345: reg-address: "ADDRESS: 0x0C" "ADDR: 0x0C" "0x0C" +155599-155631 adxl345: reg-address: "12" +155599-155631 adxl345: reg-data: "0" +165608-165612 adxl345: read: "READ REG" "READ" "R" +165612-165616 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +165616-165640 adxl345: reg-address: "ADDRESS: 0x0D" "ADDR: 0x0D" "0x0D" +165640-165672 adxl345: reg-address: "13" +165640-165672 adxl345: reg-data: "0" +176709-176713 adxl345: read: "READ REG" "READ" "R" +176713-176717 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +176717-176741 adxl345: reg-address: "ADDRESS: 0x0E" "ADDR: 0x0E" "0x0E" +176741-176773 adxl345: reg-address: "14" +176741-176773 adxl345: reg-data: "0" +186636-186640 adxl345: read: "READ REG" "READ" "R" +186640-186644 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +186644-186668 adxl345: reg-address: "ADDRESS: 0x0F" "ADDR: 0x0F" "0x0F" +186668-186700 adxl345: reg-address: "15" +186668-186700 adxl345: reg-data: "74" +196540-196544 adxl345: read: "READ REG" "READ" "R" +196544-196548 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +196548-196572 adxl345: reg-address: "ADDRESS: 0x10" "ADDR: 0x10" "0x10" +196572-196604 adxl345: reg-address: "16" +196572-196604 adxl345: reg-data: "130" +207093-207097 adxl345: read: "READ REG" "READ" "R" +207097-207101 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +207101-207125 adxl345: reg-address: "ADDRESS: 0x11" "ADDR: 0x11" "0x11" +207125-207157 adxl345: reg-address: "17" +207125-207157 adxl345: reg-data: "0" +216132-216136 adxl345: read: "READ REG" "READ" "R" +216136-216140 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +216140-216164 adxl345: reg-address: "ADDRESS: 0x12" "ADDR: 0x12" "0x12" +216164-216196 adxl345: reg-address: "18" +216164-216196 adxl345: reg-data: "48" +225675-225679 adxl345: read: "READ REG" "READ" "R" +225679-225683 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +225683-225707 adxl345: reg-address: "ADDRESS: 0x13" "ADDR: 0x13" "0x13" +225707-225739 adxl345: reg-address: "19" +225707-225739 adxl345: reg-data: "0" +235521-235525 adxl345: read: "READ REG" "READ" "R" +235525-235529 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +235529-235553 adxl345: reg-address: "ADDRESS: 0x14" "ADDR: 0x14" "0x14" +235553-235585 adxl345: reg-address: "20" +235553-235585 adxl345: reg-data: "0" +245891-245895 adxl345: read: "READ REG" "READ" "R" +245895-245899 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +245899-245923 adxl345: reg-address: "ADDRESS: 0x15" "ADDR: 0x15" "0x15" +245923-245955 adxl345: reg-address: "21" +245923-245955 adxl345: reg-data: "244" +255510-255514 adxl345: read: "READ REG" "READ" "R" +255514-255518 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +255518-255542 adxl345: reg-address: "ADDRESS: 0x16" "ADDR: 0x16" "0x16" +255542-255574 adxl345: reg-address: "22" +255542-255574 adxl345: reg-data: "62" +265532-265536 adxl345: read: "READ REG" "READ" "R" +265536-265540 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +265540-265564 adxl345: reg-address: "ADDRESS: 0x17" "ADDR: 0x17" "0x17" +265564-265596 adxl345: reg-address: "23" +265564-265596 adxl345: reg-data: "227" +275694-275698 adxl345: read: "READ REG" "READ" "R" +275698-275702 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +275702-275726 adxl345: reg-address: "ADDRESS: 0x18" "ADDR: 0x18" "0x18" +275726-275758 adxl345: reg-address: "24" +275726-275758 adxl345: reg-data: "0" +285368-285372 adxl345: read: "READ REG" "READ" "R" +285372-285376 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +285376-285400 adxl345: reg-address: "ADDRESS: 0x19" "ADDR: 0x19" "0x19" +285400-285432 adxl345: reg-address: "25" +285400-285432 adxl345: reg-data: "0" +295267-295271 adxl345: read: "READ REG" "READ" "R" +295271-295275 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +295275-295299 adxl345: reg-address: "ADDRESS: 0x1A" "ADDR: 0x1A" "0x1A" +295299-295331 adxl345: reg-address: "26" +295299-295331 adxl345: reg-data: "0" +305481-305485 adxl345: read: "READ REG" "READ" "R" +305485-305489 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +305489-305513 adxl345: reg-address: "ADDRESS: 0x1B" "ADDR: 0x1B" "0x1B" +305513-305545 adxl345: reg-address: "27" +305513-305545 adxl345: reg-data: "93" +315414-315418 adxl345: read: "READ REG" "READ" "R" +315418-315422 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +315422-315446 adxl345: reg-address: "ADDRESS: 0x1C" "ADDR: 0x1C" "0x1C" +315446-315478 adxl345: reg-address: "28" +315446-315478 adxl345: reg-data: "0" +325458-325462 adxl345: read: "READ REG" "READ" "R" +325462-325466 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +325466-325490 adxl345: reg-address: "ADDRESS: 0x1D" "ADDR: 0x1D" "0x1D" +325490-325522 adxl345: reg-address: "THRESH_TAP" "TH_TAP" "TH_T" +325490-325522 adxl345: warning: "Undesirable behavior" +335736-335740 adxl345: read: "READ REG" "READ" "R" +335740-335744 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +335744-335768 adxl345: reg-address: "ADDRESS: 0x1E" "ADDR: 0x1E" "0x1E" +335768-335800 adxl345: reg-address: "OFSX" "OFX" +335768-335800 adxl345: reg-data: "OFSX: 0.000000 g" "0.000000 g" +345684-345688 adxl345: read: "READ REG" "READ" "R" +345688-345692 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +345692-345716 adxl345: reg-address: "ADDRESS: 0x1F" "ADDR: 0x1F" "0x1F" +345716-345748 adxl345: reg-address: "OFSY" "OFY" +345716-345748 adxl345: reg-data: "OFSY: 0.000000 g" "0.000000 g" +357101-357105 adxl345: read: "READ REG" "READ" "R" +357105-357109 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +357109-357133 adxl345: reg-address: "ADDRESS: 0x20" "ADDR: 0x20" "0x20" +357133-357165 adxl345: reg-address: "OFSZ" "OFZ" +357133-357165 adxl345: reg-data: "OFSZ: 0.000000 g" "0.000000 g" +366398-366402 adxl345: read: "READ REG" "READ" "R" +366402-366406 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +366406-366430 adxl345: reg-address: "ADDRESS: 0x21" "ADDR: 0x21" "0x21" +366430-366462 adxl345: reg-address: "DUR" +366430-366462 adxl345: warning: "Disable single/double tap" +376937-376941 adxl345: read: "READ REG" "READ" "R" +376941-376945 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +376945-376969 adxl345: reg-address: "ADDRESS: 0x22" "ADDR: 0x22" "0x22" +376969-377001 adxl345: reg-address: "Latent" "Lat" +376969-377001 adxl345: warning: "Disable double tap" +385853-385857 adxl345: read: "READ REG" "READ" "R" +385857-385861 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +385861-385885 adxl345: reg-address: "ADDRESS: 0x23" "ADDR: 0x23" "0x23" +385885-385917 adxl345: reg-address: "Window" "Win" +385885-385917 adxl345: warning: "Disable double tap" +395760-395764 adxl345: read: "READ REG" "READ" "R" +395764-395768 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +395768-395792 adxl345: reg-address: "ADDRESS: 0x24" "ADDR: 0x24" "0x24" +395792-395824 adxl345: reg-address: "THRESH_ACT" "TH_ACT" "TH_A" +395792-395824 adxl345: warning: "Undesirable behavior" +405679-405683 adxl345: read: "READ REG" "READ" "R" +405683-405687 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +405687-405711 adxl345: reg-address: "ADDRESS: 0x25" "ADDR: 0x25" "0x25" +405711-405743 adxl345: reg-address: "THRESH_INACT" "TH_INACT" "TH_I" +405711-405743 adxl345: warning: "Undesirable behavior" +415758-415762 adxl345: read: "READ REG" "READ" "R" +415762-415766 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +415766-415790 adxl345: reg-address: "ADDRESS: 0x26" "ADDR: 0x26" "0x26" +415790-415822 adxl345: reg-address: "TIME_INACT" "TI_INACT" "TI_I" +415790-415822 adxl345: warning: "Interrupt" +426751-426755 adxl345: read: "READ REG" "READ" "R" +426755-426759 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +426759-426783 adxl345: reg-address: "ADDRESS: 0x27" "ADDR: 0x27" "0x27" +426783-426815 adxl345: reg-address: "ACT_INACT_CTL" "ACT_I_CTL" "A_I_C" +426783-426787 adxl345: reg-data: "ACT dc" "dc" +426787-426791 adxl345: reg-data: "Disable ACT_X" "Dis ACT_X" "!ACT_X " +426791-426795 adxl345: reg-data: "Disable ACT_Y" "Dis ACT_Y" "!ACT_Y " +426795-426799 adxl345: reg-data: "Disable ACT_Z" "Dis ACT_Z" "!ACT_Z " +426799-426803 adxl345: reg-data: "INACT dc" "dc" +426803-426807 adxl345: reg-data: "Disable INACT_X" "Dis INACT_X" "!INACT_X " +426807-426811 adxl345: reg-data: "Disable INACT_Y" "Dis INACT_Y" "!INACT_Y " +426811-426815 adxl345: reg-data: "Disable INACT_Z" "Dis INACT_Z" "!INACT_Z " +435845-435849 adxl345: read: "READ REG" "READ" "R" +435849-435853 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +435853-435877 adxl345: reg-address: "ADDRESS: 0x28" "ADDR: 0x28" "0x28" +435877-435909 adxl345: reg-address: "THRESH_FF" "TH_FF" +435877-435909 adxl345: warning: "Undesirable behavior" +446364-446368 adxl345: read: "READ REG" "READ" "R" +446368-446372 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +446372-446396 adxl345: reg-address: "ADDRESS: 0x29" "ADDR: 0x29" "0x29" +446396-446428 adxl345: reg-address: "TIME_FF" "TI_FF" +446396-446428 adxl345: warning: "Undesirable behavior" +455356-455360 adxl345: read: "READ REG" "READ" "R" +455360-455364 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +455364-455388 adxl345: reg-address: "ADDRESS: 0x2A" "ADDR: 0x2A" "0x2A" +455388-455420 adxl345: reg-address: "TAP_AXES" "TAP_AX" "TP_AX" +455388-455392 adxl345: reg-data: "N/A" +455392-455396 adxl345: reg-data: "N/A" +455396-455400 adxl345: reg-data: "N/A" +455400-455404 adxl345: reg-data: "N/A" +455404-455408 adxl345: reg-data: "Unsuppressed" "Unsuppr" "Uns" +455408-455412 adxl345: reg-data: "Disable TAP_X" "Dis TAP_X" "!TAP_X " +455412-455416 adxl345: reg-data: "Disable TAP_Y" "Dis TAP_Y" "!TAP_Y " +455416-455420 adxl345: reg-data: "Disable TAP_Z" "Dis TAP_Z" "!TAP_Z " +465812-465816 adxl345: read: "READ REG" "READ" "R" +465816-465820 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +465820-465844 adxl345: reg-address: "ADDRESS: 0x2B" "ADDR: 0x2B" "0x2B" +465844-465876 adxl345: reg-address: "ACT_TAP_STATUS" "ACT_TAP_STAT" "ACT_TP_ST" "A_T_S" +465844-465848 adxl345: reg-data: "N/A" +465848-465852 adxl345: reg-data: "Not involve ACT_X" "Not inv ACT_X" "!ACT_X" +465852-465856 adxl345: reg-data: "Not involve ACT_Y" "Not inv ACT_Y" "!ACT_Y" +465856-465860 adxl345: reg-data: "Not involve ACT_Z" "Not inv ACT_Z" "!ACT_Z" +465860-465864 adxl345: reg-data: "Not asleep" "Not asl" "!Asl" +465864-465868 adxl345: reg-data: "Not involve TAP_X" "Not inv TAP_X" "!TAP_X" +465868-465872 adxl345: reg-data: "Not involve TAP_Y" "Not inv TAP_Y" "!TAP_Y" +465872-465876 adxl345: reg-data: "Not involve TAP_Z" "Not inv TAP_Z" "!TAP_Z" +475912-475916 adxl345: read: "READ REG" "READ" "R" +475916-475920 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +475920-475944 adxl345: reg-address: "ADDRESS: 0x2C" "ADDR: 0x2C" "0x2C" +475944-475976 adxl345: reg-address: "BW_RATE" "BW_R" +475944-475948 adxl345: reg-data: "N/A" +475948-475952 adxl345: reg-data: "N/A" +475952-475956 adxl345: reg-data: "N/A" +475956-475960 adxl345: reg-data: "Normal operation" "Normal op" "Norm op" +475960-475976 adxl345: reg-data: "100.000000" +485588-485592 adxl345: read: "READ REG" "READ" "R" +485592-485596 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +485596-485620 adxl345: reg-address: "ADDRESS: 0x2D" "ADDR: 0x2D" "0x2D" +485620-485652 adxl345: reg-address: "POWER_CTL" "PW_CTL" "PW_C" +485620-485624 adxl345: reg-data: "N/A" +485624-485628 adxl345: reg-data: "N/A" +485628-485632 adxl345: reg-data: "Unlink" +485632-485636 adxl345: reg-data: "Disable AUTO_SLEEP" "Dis AUTO_SLEEP" "!AUTO_SLEEP " +485636-485640 adxl345: reg-data: "Measurement mode" "Measurement" "Meas" +485640-485644 adxl345: reg-data: "Normal mode" "Normal" "Nrm" +485644-485652 adxl345: reg-data: "8 Hz" +496121-496125 adxl345: read: "READ REG" "READ" "R" +496125-496129 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +496129-496153 adxl345: reg-address: "ADDRESS: 0x2E" "ADDR: 0x2E" "0x2E" +496153-496185 adxl345: reg-address: "INT_ENABLE" "INT_EN" "I_EN" +496153-496157 adxl345: reg-data: "Disable DATA_READY" "Dis DATA_READY" "!DATA_READY " +496157-496161 adxl345: reg-data: "Disable SINGLE_TAP" "Dis SINGLE_TAP" "!SINGLE_TAP " +496161-496165 adxl345: reg-data: "Disable DOUBLE_TAP" "Dis DOUBLE_TAP" "!DOUBLE_TAP " +496165-496169 adxl345: reg-data: "Disable Activity" "Dis Activity" "!Activity " +496169-496173 adxl345: reg-data: "Disable Inactivity" "Dis Inactivity" "!Inactivity " +496173-496177 adxl345: reg-data: "Disable FREE_FALL" "Dis FREE_FALL" "!FREE_FALL " +496177-496181 adxl345: reg-data: "Disable Watermark" "Dis Watermark" "!Watermark " +496181-496185 adxl345: reg-data: "Disable Overrun" "Dis Overrun" "!Overrun " +505884-505888 adxl345: read: "READ REG" "READ" "R" +505888-505892 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +505892-505916 adxl345: reg-address: "ADDRESS: 0x2F" "ADDR: 0x2F" "0x2F" +505916-505948 adxl345: reg-address: "INT_MAP" "I_M" +505916-505920 adxl345: reg-data: "INT1 DATA_READY" "I1:DATA_READY " +505920-505924 adxl345: reg-data: "INT1 SINGLE_TAP" "I1:SINGLE_TAP " +505924-505928 adxl345: reg-data: "INT1 DOUBLE_TAP" "I1:DOUBLE_TAP " +505928-505932 adxl345: reg-data: "INT1 Activity" "I1:Activity " +505932-505936 adxl345: reg-data: "INT1 Inactivity" "I1:Inactivity " +505936-505940 adxl345: reg-data: "INT1 FREE_FALL" "I1:FREE_FALL " +505940-505944 adxl345: reg-data: "INT1 Watermark" "I1:Watermark " +505944-505948 adxl345: reg-data: "INT1 Overrun" "I1:Overrun " +515903-515907 adxl345: read: "READ REG" "READ" "R" +515907-515911 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +515911-515935 adxl345: reg-address: "ADDRESS: 0x30" "ADDR: 0x30" "0x30" +515935-515967 adxl345: reg-address: "INT_SOURCE" "INT_SRC" "I_SRC" "I_S" +515935-515939 adxl345: reg-data: "Involve DATA_READY" "Inv DATA_READY" "DATA_READY" +515939-515943 adxl345: reg-data: "Not involve SINGLE_TAP" "Not inv SINGLE_TAP" "!SINGLE_TAP" +515943-515947 adxl345: reg-data: "Not involve DOUBLE_TAP" "Not inv DOUBLE_TAP" "!DOUBLE_TAP" +515947-515951 adxl345: reg-data: "Not involve Activity" "Not inv Activity" "!Activity" +515951-515955 adxl345: reg-data: "Not involve Inactivity" "Not inv Inactivity" "!Inactivity" +515955-515959 adxl345: reg-data: "Not involve FREE_FALL" "Not inv FREE_FALL" "!FREE_FALL" +515959-515963 adxl345: reg-data: "Involve Watermark" "Inv Watermark" "Watermark" +515963-515967 adxl345: reg-data: "Involve Overrun" "Inv Overrun" "Overrun" +525390-525394 adxl345: read: "READ REG" "READ" "R" +525394-525398 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +525398-525422 adxl345: reg-address: "ADDRESS: 0x31" "ADDR: 0x31" "0x31" +525422-525454 adxl345: reg-address: "DATA_FORMAT" "DATA_FRM" "D_FRM" "D_F" +525422-525426 adxl345: reg-data: "Disable SELF_TEST" "Dis SELF_TEST" "!SELF_TEST " +525426-525430 adxl345: reg-data: "4-wire SPI" "4-SPI" +525430-525434 adxl345: reg-data: "INT ACT HIGH" "INT HIGH" +525434-525438 adxl345: reg-data: "N/A" +525438-525442 adxl345: reg-data: "Full resolution" "Full res" +525442-525446 adxl345: reg-data: "LSB mode" "LSB" +525446-525454 adxl345: reg-data: "+/-2 g" +535679-535683 adxl345: read: "READ REG" "READ" "R" +535683-535687 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +535687-535711 adxl345: reg-address: "ADDRESS: 0x32" "ADDR: 0x32" "0x32" +535711-535743 adxl345: reg-address: "DATAX0" "DX0" "X0" +535711-535743 adxl345: reg-data: "209" +545618-545622 adxl345: read: "READ REG" "READ" "R" +545622-545626 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +545626-545650 adxl345: reg-address: "ADDRESS: 0x33" "ADDR: 0x33" "0x33" +545650-545682 adxl345: reg-address: "DATAX1" "DX1" "X1" +535711-545682 adxl345: reg-data: "X: 0xFFD1" "65280" +555538-555542 adxl345: read: "READ REG" "READ" "R" +555542-555546 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +555546-555570 adxl345: reg-address: "ADDRESS: 0x34" "ADDR: 0x34" "0x34" +555570-555602 adxl345: reg-address: "DATAY0" "DY0" "Y0" +555570-555602 adxl345: reg-data: "235" +565432-565436 adxl345: read: "READ REG" "READ" "R" +565436-565440 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +565440-565464 adxl345: reg-address: "ADDRESS: 0x35" "ADDR: 0x35" "0x35" +565464-565496 adxl345: reg-address: "DATAY1" "DY1" "Y1" +555570-565496 adxl345: reg-data: "Y: 0x00EB" "0" +575342-575346 adxl345: read: "READ REG" "READ" "R" +575346-575350 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +575350-575374 adxl345: reg-address: "ADDRESS: 0x36" "ADDR: 0x36" "0x36" +575374-575406 adxl345: reg-address: "DATAZ0" "DZ0" "Z0" +575374-575406 adxl345: reg-data: "147" +585251-585255 adxl345: read: "READ REG" "READ" "R" +585255-585259 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +585259-585283 adxl345: reg-address: "ADDRESS: 0x37" "ADDR: 0x37" "0x37" +585283-585315 adxl345: reg-address: "DATAZ1" "DZ1" "Z1" +575374-585315 adxl345: reg-data: "Z: 0xFF93" "65280" +595962-595966 adxl345: read: "READ REG" "READ" "R" +595966-595970 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +595970-595994 adxl345: reg-address: "ADDRESS: 0x38" "ADDR: 0x38" "0x38" +595994-596026 adxl345: reg-address: "FIFO_CTL" "FIF_CT" "F_C" +596002-596006 adxl345: reg-data: "Trig-INT1" "INT1" +595994-596002 adxl345: reg-data: "Bypass" +596006-596026 adxl345: reg-data: "Samples: 0" "0" +606110-606114 adxl345: read: "READ REG" "READ" "R" +606114-606118 adxl345: mb: "SINGLE BYTE" "SING BYTE" "1 BYTE" "1B" +606118-606142 adxl345: reg-address: "ADDRESS: 0x39" "ADDR: 0x39" "0x39" +606142-606174 adxl345: reg-address: "FIFO_STATUS" "FIFO_STAT" "FIF_ST" "F_S" +606142-606146 adxl345: reg-data: "Not triggered" "Not trigg" +606146-606150 adxl345: reg-data: "N/A" +606150-606174 adxl345: reg-data: "Entries: 0" "0" diff --git a/decoder/test/adxl345/test.conf b/decoder/test/adxl345/test.conf new file mode 100644 index 0000000..393f897 --- /dev/null +++ b/decoder/test/adxl345/test.conf @@ -0,0 +1,13 @@ +test adxl345_axis + protocol-decoder spi channel clk=0 channel mosi=1 channel miso=2 channel cs=3 + protocol-decoder adxl345 + stack spi adxl345 + input spi/adxl345/adxl345_axis.sr + output adxl345 annotation match adxl345_axis.output + +test adxl345_registers + protocol-decoder spi channel clk=0 channel mosi=1 channel miso=2 channel cs=3 + protocol-decoder adxl345 + stack spi adxl345 + input spi/adxl345/adxl345_registers.sr + output adxl345 annotation match adxl345_registers.output