MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / puta

Method puta

libsigrokdecode4DSL/decoders/modbus/pd.py:872–877  ·  view source on GitHub ↗

Put an annotation from start to end, with ann as a string. This means you don't have to know the ann's number to write annotations to it.

(self, start, end, ann_str, message)

Source from the content-addressed store, hash-verified

870 self.out_ann = self.register(srd.OUTPUT_ANN)
871
872 def puta(self, start, end, ann_str, message):
873 '''Put an annotation from start to end, with ann as a
874 string. This means you don't have to know the ann's
875 number to write annotations to it.'''
876 ann = [s[0] for s in self.annotations].index(ann_str)
877 self.put(start, end, self.out_ann, [ann, [message]])
878
879 def decode_adu(self, ss, es, data, direction):
880 '''Decode the next byte or bit (depending on type) in the ADU.

Callers 2

putiMethod · 0.45
closeMethod · 0.45

Calls 1

indexMethod · 0.80

Tested by

no test coverage detected