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

Method state_TA

libsigrokdecode4DSL/decoders/mdio/pd.py:266–284  ·  view source on GitHub ↗
(self, mdio)

Source from the content-addressed store, hash-verified

264 self.state = 'TA'
265
266 def state_TA(self, mdio):
267 if self.ta_invalid == -1:
268 self.ta_invalid = ''
269 if self.clause45:
270 regad = ['DEVAD: %02d' % self.devad, 'DEV', 'D']
271 else:
272 regad = ['REGAD: %02d' % self.devad, 'REG', 'R']
273 self.putff([2, regad])
274 self.ss_frame_field = self.samplenum
275 if mdio != 1 and ((self.clause45 and self.opcode < 2)
276 or (not self.clause45 and self.opcode == 0)):
277 self.ta_invalid = ' invalid (bit1)'
278 else:
279 if mdio != 0:
280 if self.ta_invalid:
281 self.ta_invalid = ' invalid (bit1 and bit2)'
282 else:
283 self.ta_invalid = ' invalid (bit2)'
284 self.state = 'DATA'
285
286 def state_DATA(self, mdio):
287 if self.data == -1:

Callers

nothing calls this directly

Calls 1

putffMethod · 0.95

Tested by

no test coverage detected