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
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