summaryrefslogtreecommitdiff
path: root/decoders/adns5020/__init__.py
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2015-05-16 17:14:50 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2015-06-19 17:14:50 +0200
commitef0734978955d34e42187f79f6c2ed910b4b873d (patch)
tree3e52901052bc190ea4885daf91d95920795d5ac5 /decoders/adns5020/__init__.py
parente2ba53bbd8d176aedc8f5f9a3bb4086bc5f526f3 (diff)
downloadlibsigrokdecode-ef0734978955d34e42187f79f6c2ed910b4b873d.tar.gz
libsigrokdecode-ef0734978955d34e42187f79f6c2ed910b4b873d.zip
Add Avago ADNS-5020 optical mouse sensor decoder.
Decodes reads/writes of registers. Understands resetting on chip select if provided. Does not understand burst mode. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Diffstat (limited to 'decoders/adns5020/__init__.py')
-rw-r--r--decoders/adns5020/__init__.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/decoders/adns5020/__init__.py b/decoders/adns5020/__init__.py
new file mode 100644
index 0000000..a0cc63c
--- /dev/null
+++ b/decoders/adns5020/__init__.py
@@ -0,0 +1,26 @@
+##
+## This file is part of the libsigrokdecode project.
+##
+## Copyright (C) 2015 Karl Palsson <karlp@tweak.net.au>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+##
+
+'''
+This decoder stacks on top of the 'spi' PD and decodes ADNS-5020 optical mouse
+sensor commands and data. Use MOSI for the SDIO shared line.
+'''
+
+from .pd import Decoder