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_transport/onewire_transport.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'decoders/onewire_transport/onewire_transport.py') diff --git a/decoders/onewire_transport/onewire_transport.py b/decoders/onewire_transport/onewire_transport.py index 67f5193..5481bd7 100644 --- a/decoders/onewire_transport/onewire_transport.py +++ b/decoders/onewire_transport/onewire_transport.py @@ -23,8 +23,26 @@ 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 -- cgit v1.2.3-70-g09d2