]> sigrok.org Git - libsigrokdecode.git/commitdiff
onewire: added new transport layer commands
authorIztok Jeras <redacted>
Tue, 17 Jul 2012 19:42:53 +0000 (21:42 +0200)
committerIztok Jeras <redacted>
Tue, 17 Jul 2012 19:42:53 +0000 (21:42 +0200)
decoders/onewire_link/__init__.py
decoders/onewire_network/__init__.py
decoders/onewire_network/onewire_network.py
decoders/onewire_transport/__init__.py
decoders/onewire_transport/onewire_transport.py

index c2e38d34d0d99fa5eafca90725fa43847f2e895e..5c7251dded374582848d47cd9d4ec3a20943ac28 100644 (file)
@@ -26,7 +26,7 @@ ground) between a single master and one or multiple slaves. The protocol is
 layered.
 - Link layer (reset, presence detection, reading/writing bits)
 - Network layer (skip/search/match device ROM addresses)
 layered.
 - Link layer (reset, presence detection, reading/writing bits)
 - Network layer (skip/search/match device ROM addresses)
-- Transport layer (transfer data between 1-Wire master and device)
+- Transport layer (transport data between 1-Wire master and device)
 
 Link layer
 
 
 Link layer
 
index 56a5eb5e7299802a3e4bf3a9cc9a04db7261979e..9b6e510752b50e75b3f1c42995fd4d948d03d8f0 100644 (file)
@@ -26,7 +26,7 @@ ground) between a single master and one or multiple slaves. The protocol is
 layered.
 - Link layer (reset, presence detection, reading/writing bits)
 - Network layer (skip/search/match device ROM addresses)
 layered.
 - Link layer (reset, presence detection, reading/writing bits)
 - Network layer (skip/search/match device ROM addresses)
-- Transport layer (transfer data between 1-Wire master and device)
+- Transport layer (transport data between 1-Wire master and device)
 
 Network layer
 
 
 Network layer
 
index 18e95256225cbd0d98ffbfa5e566764a96cc8a7a..9e641fd31ced7ac52cfea1fe8b94b7bb7e5684ae 100644 (file)
 import sigrokdecode as srd
 
 # a dictionary of ROM commands and their names, next state
 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
 
 class Decoder(srd.Decoder):
     api_version = 1
index 3b9577e47eea31d3b40561b04b1a7ccc0b5b1cc8..df4db0059bbef31f9aafb1ecea146a0ea7c822ef 100644 (file)
@@ -26,7 +26,7 @@ ground) between a single master and one or multiple slaves. The protocol is
 layered.
 - Link layer (reset, presence detection, reading/writing bits)
 - Network layer (skip/search/match device ROM addresses)
 layered.
 - Link layer (reset, presence detection, reading/writing bits)
 - Network layer (skip/search/match device ROM addresses)
-- Transport layer (transfer data between 1-Wire master and device)
+- Transport layer (transport data between 1-Wire master and device)
 
 Transport layer
 
 
 Transport layer
 
index 67f5193deda48e76f79c4b336dc30204c598b325..5481bd73d2289b1e161b4fe8454168da993b1f8a 100644 (file)
 import sigrokdecode as srd
 
 # a dictionary of FUNCTION commands and their names
 import sigrokdecode as srd
 
 # a dictionary of FUNCTION commands and their names
-command = {0x44: "TEMPERATURE CONVERSION",
-           0xbe: "READ SCRATCHPAD"}
+command = {
+    # scratchpad
+    0x4e: "WRITE SCRATCHPAD",
+    0xbe: "READ SCRATCHPAD",
+    0x48: "COPY SCRATCHPAD",
+    # thermometer
+    0x44: "CONVERT TEMPERATURE",
+    0xb4: "READ POWER MODE",
+    0xb8: "RECALL EEPROM",
+    0xf5: "PIO ACCESS READ",
+    0xA5: "PIO ACCESS WRITE",
+    0x99: "CHAIN",
+    # memory
+    0xf0: "READ MEMORY",
+    0xa5: "EXTENDED READ MEMORY",
+    0x0f: "WRITE MEMORY",
+    0x55: "WRITE STATUS",
+    0xaa: "READ STATUS",
+    0xf5: "CHANNEL ACCESS"
+}
 
 class Decoder(srd.Decoder):
     api_version = 1
 
 class Decoder(srd.Decoder):
     api_version = 1