MCPcopy Create free account
hub / github.com/commaai/panda / can_clear

Method can_clear

python/__init__.py:733–742  ·  view source on GitHub ↗

Clears all messages from the specified internal CAN ringbuffer as though it were drained. Args: bus (int): can bus number to clear a tx queue, or 0xFFFF to clear the global can rx queue.

(self, bus)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

can_printerFunction · 0.95
test_loopbackFunction · 0.45
can_loopbackFunction · 0.45
can_printerFunction · 0.45
test_all_comm_typesMethod · 0.45
clear_can_buffersFunction · 0.45

Calls 1

controlWriteMethod · 0.45

Tested by 3

test_loopbackFunction · 0.36
can_loopbackFunction · 0.36
test_all_comm_typesMethod · 0.36