]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/onewire/__init__.py
onewire: preparations for protocol separation between link and network layers
[libsigrokdecode.git] / decoders / onewire / __init__.py
index b58dde707e9020c2aed610fadda39aeb63758a7f..0a712ef2bbce3b3ebd946d826394de6b763a46cf 100644 (file)
@@ -29,6 +29,13 @@ layered, the provided parser decodes the next layers:
 The higher layers (transport, presentation) are not decoded, since they are
 mostly device specific and it would take a lot of code to interpret them.
 
+Sample rate:
+A high enough sample rate is required to properly detect all the elements of
+the protocol. A lower sample rate can be used if the master does not use
+overdrive communication speed. The next minimal values should be used:
+- overdrive     available:   2MHz minimum, 5MHz suggested
+- overdrive not available: 400kHz minimum, 1MHz suggested
+
 Probes:
 1-Wire requires a single signal, but some master implementations might have a
 separate signal use to deliver power to the bus during temperature conversion
@@ -60,11 +67,12 @@ If link layer annotations are shown, possible issues with sample rate and sample
 timing are also shown.
 
 TODO:
-- fix annotations to have event duration instead of begin end time
 - add CRC checks for network layer
 - add transport layer code
 - review link layer code, to check for protocol correctness
+- define output protocol
 '''
 
-from .onewire import *
+from .onewire_link    import *
+from .onewire_network import *