summaryrefslogtreecommitdiff
path: root/decoders/ebr30a_i2c_demux
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-02-01 22:23:03 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-02-01 23:18:25 +0100
commit156509ca42f0df2380c9f205f9aad337e1a07802 (patch)
tree84e010c7330c12f197228937324c03979ab7f598 /decoders/ebr30a_i2c_demux
parent94bbdb9a4146ec5eaa56411706dc92de3a92f2d8 (diff)
downloadlibsigrokdecode-156509ca42f0df2380c9f205f9aad337e1a07802.tar.gz
libsigrokdecode-156509ca42f0df2380c9f205f9aad337e1a07802.zip
srd: Move all protocol docs to __init__.py files.
Diffstat (limited to 'decoders/ebr30a_i2c_demux')
-rw-r--r--decoders/ebr30a_i2c_demux/__init__.py14
-rw-r--r--decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py12
2 files changed, 14 insertions, 12 deletions
diff --git a/decoders/ebr30a_i2c_demux/__init__.py b/decoders/ebr30a_i2c_demux/__init__.py
index dddc8b7..a5df143 100644
--- a/decoders/ebr30a_i2c_demux/__init__.py
+++ b/decoders/ebr30a_i2c_demux/__init__.py
@@ -18,5 +18,19 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
+'''
+TrekStor EBR30-a I2C demux protocol decoder.
+
+Takes an I2C stream as input and outputs 3 different I2C streams, for the
+3 different I2C devices on the TrekStor EBR30-a eBook reader (which are all
+physically connected to the same SCL/SDA lines).
+
+I2C slave addresses:
+
+ - AXP199 battery management chip: 0x69/0x68 (8bit R/W), 0x34 (7bit)
+ - H8563S RTC chip: 0xa3/0xa2 (8bit R/W), 0x51 (7bit)
+ - Unknown accelerometer chip: 0x2b/0x2a (8bit R/W), 0x15 (7bit)
+'''
+
from .ebr30a_i2c_demux import *
diff --git a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py
index 6abed09..1a52fb8 100644
--- a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py
+++ b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py
@@ -18,19 +18,7 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-#
# TrekStor EBR30-a I2C demux protocol decoder
-#
-# Takes an I2C stream as input and outputs 3 different I2C streams, for the
-# 3 different I2C devices on the TrekStor EBR30-a eBook reader (which are all
-# physically connected to the same SCL/SDA lines).
-#
-# I2C slave addresses:
-#
-# - AXP199 battery management chip: 0x69/0x68 (8bit R/W), 0x34 (7bit)
-# - H8563S RTC chip: 0xa3/0xa2 (8bit R/W), 0x51 (7bit)
-# - Unknown accelerometer chip: 0x2b/0x2a (8bit R/W), 0x15 (7bit)
-#
import sigrokdecode as srd