]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/onewire_network/onewire_network.py
onewire: added new transport layer commands
[libsigrokdecode.git] / decoders / onewire_network / onewire_network.py
index 18e95256225cbd0d98ffbfa5e566764a96cc8a7a..9e641fd31ced7ac52cfea1fe8b94b7bb7e5684ae 100644 (file)
 import sigrokdecode as srd
 
 # a dictionary of ROM commands and their names, next state
-command = {0x33: ["READ ROM"              , "GET ROM"   ], 
-           0x0f: ["CONDITIONAL READ ROM"  , "GET ROM"   ],
-           0xcc: ["SKIP ROM"              , "TRANSPORT" ],
-           0x55: ["MATCH ROM"             , "GET ROM"   ],
-           0xf0: ["SEARCH ROM"            , "SEARCH ROM"],
-           0xec: ["CONDITIONAL SEARCH ROM", "SEARCH ROM"],
-           0x3c: ["OVERDRIVE SKIP ROM"    , "TRANSPORT" ],
-           0x6d: ["OVERDRIVE MATCH ROM"   , "GET ROM"   ]}
+command = {
+    0x33: ["READ ROM"              , "GET ROM"   ], 
+    0x0f: ["CONDITIONAL READ ROM"  , "GET ROM"   ],
+    0xcc: ["SKIP ROM"              , "TRANSPORT" ],
+    0x55: ["MATCH ROM"             , "GET ROM"   ],
+    0xf0: ["SEARCH ROM"            , "SEARCH ROM"],
+    0xec: ["CONDITIONAL SEARCH ROM", "SEARCH ROM"],
+    0x3c: ["OVERDRIVE SKIP ROM"    , "TRANSPORT" ],
+    0x6d: ["OVERDRIVE MATCH ROM"   , "GET ROM"   ]
+}
 
 class Decoder(srd.Decoder):
     api_version = 1