diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-07-21 20:37:41 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-07-21 21:47:54 +0200 |
commit | 19dd61efcc1fe07c6a66f48f74b7926607f3a541 (patch) | |
tree | 4669d8fe41fde631107882af32cf615557c23dc7 /decoders | |
parent | 5d7c5bcca4f770280cd4b58a8ea383fe97cf4a32 (diff) | |
download | libsigrokdecode-19dd61efcc1fe07c6a66f48f74b7926607f3a541.tar.gz libsigrokdecode-19dd61efcc1fe07c6a66f48f74b7926607f3a541.zip |
srd: Rename onewire_transport to maxim_ds28ea00.
It doesn't make sense to have one "generic" onewire_transport PD, as
this layer is very much device-specific and such a generic PD would
have to contain an accumulation of all possible features and commands
and handling code of all existing (now and in the future) 1-Wire
devices, which is neither possible nor useful nor elegant.
There are (for example) 1-Wire thermometers, RTCs, EEPROMs,
special-purpose security chips with passwords/keys, battery monitoring
chips, and many many others. They all have a different set of features,
commands and command codes, RAM areas/sizes/partitioning/contents,
protocols, and so on.
Thus, the layering for 1-Wire PD stacks should look like this:
onewire_link -> onewire_network -> <specificdevice>
Examples:
onewire_link -> onewire_network -> maxim_ds28ea00 (special thermometer)
onewire_link -> onewire_network -> maxim_ds2431 (1kbit EEPROM)
onewire_link -> onewire_network -> maxim_ds2417 (RTC)
onewire_link -> onewire_network -> maxim_ds2762 (battery monitor)
onewire_link -> onewire_network -> maxim_ds1961s (SHA-1 eCash iButton)
and so on...
So, renaming onewire_transport to maxim_ds28ea00. The non-DS28EA00
specific code will be dropped and/or moved to other PDs on top of
onewire_network later.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/Makefile.am | 2 | ||||
-rw-r--r-- | decoders/maxim_ds28ea00/Makefile.am (renamed from decoders/onewire_transport/Makefile.am) | 4 | ||||
-rw-r--r-- | decoders/maxim_ds28ea00/__init__.py (renamed from decoders/onewire_transport/__init__.py) | 2 | ||||
-rw-r--r-- | decoders/maxim_ds28ea00/maxim_ds28ea00.py (renamed from decoders/onewire_transport/onewire_transport.py) | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/decoders/Makefile.am b/decoders/Makefile.am index 87e9040..1646a1b 100644 --- a/decoders/Makefile.am +++ b/decoders/Makefile.am @@ -44,5 +44,5 @@ SUBDIRS = \ usb_protocol \ onewire_link \ onewire_network \ - onewire_transport + maxim_ds28ea00 diff --git a/decoders/onewire_transport/Makefile.am b/decoders/maxim_ds28ea00/Makefile.am index 982525d..ee53993 100644 --- a/decoders/onewire_transport/Makefile.am +++ b/decoders/maxim_ds28ea00/Makefile.am @@ -18,9 +18,9 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -pkgdatadir = $(DECODERS_DIR)/onewire_transport +pkgdatadir = $(DECODERS_DIR)/maxim_ds28ea00 -dist_pkgdata_DATA = __init__.py onewire_transport.py +dist_pkgdata_DATA = __init__.py maxim_ds28ea00.py CLEANFILES = *.pyc diff --git a/decoders/onewire_transport/__init__.py b/decoders/maxim_ds28ea00/__init__.py index df4db00..c6f063d 100644 --- a/decoders/onewire_transport/__init__.py +++ b/decoders/maxim_ds28ea00/__init__.py @@ -53,4 +53,4 @@ TODO: - add CRC checks for transport layer ''' -from .onewire_transport import * +from .maxim_ds28ea00 import * diff --git a/decoders/onewire_transport/onewire_transport.py b/decoders/maxim_ds28ea00/maxim_ds28ea00.py index e787091..96a5aab 100644 --- a/decoders/onewire_transport/onewire_transport.py +++ b/decoders/maxim_ds28ea00/maxim_ds28ea00.py @@ -46,7 +46,7 @@ command = { class Decoder(srd.Decoder): api_version = 1 - id = 'onewire_transport' + id = 'maxim_ds28ea00' name = '1-Wire transport layer' longname = '1-Wire serial communication bus' desc = 'Bidirectional, half-duplex, asynchronous serial bus.' |