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

Method handle_bit

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

Source from the content-addressed store, hash-verified

319 return bitlen[12]
320
321 def handle_bit(self, mdio):
322 self.bitcount += 1
323 self.mdiobits.insert(0, [mdio, self.samplenum, -1])
324
325 if self.bitcount > 0:
326 self.mdiobits[1][2] = self.samplenum # Note end of last cycle.
327 # Output the last bit we processed.
328 self.putbit(self.mdiobits[1][0], self.mdiobits[1][1], self.mdiobits[1][2])
329
330 self.process_state(self.state, mdio)
331
332 def decode(self):
333 find_flags = [{0: 'r'}, {0: 'f'}]

Callers 1

decodeMethod · 0.95

Calls 2

putbitMethod · 0.95
process_stateMethod · 0.95

Tested by

no test coverage detected