From 758d2ea98ad32adca6d1b76b982ec101ad363ac7 Mon Sep 17 00:00:00 2001 From: Iztok Jeras Date: Tue, 17 Jul 2012 21:42:53 +0200 Subject: onewire: added new transport layer commands --- decoders/onewire_network/onewire_network.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'decoders/onewire_network/onewire_network.py') diff --git a/decoders/onewire_network/onewire_network.py b/decoders/onewire_network/onewire_network.py index 18e9525..9e641fd 100644 --- a/decoders/onewire_network/onewire_network.py +++ b/decoders/onewire_network/onewire_network.py @@ -23,14 +23,16 @@ 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 -- cgit v1.2.3-70-g09d2