X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fi2c%2Fpd.py;fp=decoders%2Fi2c%2Fpd.py;h=2d6e5c2986bdf26d1ca54b0e9cc23641dfc58a2b;hp=a8a222687d9ac8792315acadcbeaf3726a2e4465;hb=bf69977d12886794ac597083403859ac99ab38ac;hpb=ce71bf0e29e9c3890eb74725ceb963ff35a29639 diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index a8a2226..2d6e5c2 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -28,10 +28,10 @@ import sigrokdecode as srd ''' OUTPUT_PYTHON format: -I²C packet: -[, ] +Packet: +[, ] - is one of: +: - 'START' (START condition) - 'START REPEAT' (Repeated START condition) - 'ADDRESS READ' (Slave address, read) @@ -41,12 +41,12 @@ I²C packet: - 'STOP' (STOP condition) - 'ACK' (ACK bit) - 'NACK' (NACK bit) - - 'BITS' (: list of data/address bits and their ss/es numbers) + - 'BITS' (: list of data/address bits and their ss/es numbers) - is the data or address byte associated with the 'ADDRESS*' and 'DATA*' + is the data or address byte associated with the 'ADDRESS*' and 'DATA*' command. Slave addresses do not include bit 0 (the READ/WRITE indication bit). For example, a slave address field could be 0x51 (instead of 0xa2). -For 'START', 'START REPEAT', 'STOP', 'ACK', and 'NACK' is None. +For 'START', 'START REPEAT', 'STOP', 'ACK', and 'NACK' is None. ''' # CMD: [annotation-type-index, long annotation, short annotation]