; I2C EEPROM Protocol Definition File ; This file defines the transfers to/from a I2C EEPROM ; with 8 bit address ; [Protocol] name = I2CEEPROM bytewise [DEBUG] ;DebugOn ; Uncomment this to turn on Debug Packets [Packet] [Start] type = event event = 1 ; Start Bit [End] type = event event = 0Ah ; Stop Bit Or NACK [Decode] [Fields] ; Device Not Present Fields $Device Not Present, ; Printout this label if match SlaveAddress.7m.h,RW.1.i, ; Control Byte Address.8m.h, ; 1 byte address [8] ; followed by a NACK condition ; Set Address Fields $SetAddressCmd, ; Printout this label if match SlaveAddress.7m.h,RW.1=0.i, ; Control Byte Address.8m.h, ; 1 byte address [2] ; followed by a STOP condition ; Write Command Fields $WriteCommand, ; Printout this label if match SlaveAddress.7m.h,RW.1=0.i, ; Control Byte Address.8m.h, ; 1 byte address [!1], ; NO START condition WriteData.Nm.h ; Written Data (Variable number N) ; Current Address Read Fields $CurrentRead, ; Printout this label if match SlaveAddress.7m.h,RW.1=1.i, ; Control Byte ReadData.Nm.h ; Read Data (Variable number N) ; Random Read Fields $RandomRead, ; Printout this label if match SlaveAddress.7m.h,RW.1=0.i, ; Control Byte Address.8m.h, ; 1 byte address [1], ; START Condition SlaveAddress.7m.i,RW.1=1.i, ; Control Byte ReadData.Nm.h, ; Read Data (Variable number N)