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

Method annotate

libsigrokdecode4DSL/decoders/xfp/pd.py:138–146  ·  view source on GitHub ↗
(self, key, value, start_cnt=None, end_cnt=None)

Source from the content-addressed store, hash-verified

136
137 # Annotation helper
138 def annotate(self, key, value, start_cnt=None, end_cnt=None):
139 if start_cnt is None:
140 start_cnt = self.cnt - len(self.buf) + 1
141 if end_cnt is None:
142 end_cnt = self.cnt
143 self.put(self.sn[start_cnt][0], self.sn[end_cnt][1],
144 self.out_ann, [0, [key + ": " + value]])
145 self.put(self.sn[start_cnt][0], self.sn[end_cnt][1],
146 self.out_ann, [1, [value]])
147
148 # Placeholder handler, needed to advance the buffer past unused or
149 # reserved space in the structures.

Callers 15

maybe_asciiMethod · 0.95
module_idMethod · 0.95
signal_ccMethod · 0.95
alarm_warningsMethod · 0.95
vpsMethod · 0.95
berMethod · 0.95
wavelength_crMethod · 0.95
fec_crMethod · 0.95
int_ctrlMethod · 0.95
ad_readoutMethod · 0.95
gcsMethod · 0.95
ext_module_idMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected