From 585d0f9e6aeb5d63f1c6bac0296fe5db5a589aff Mon Sep 17 00:00:00 2001 From: George Hotz Date: Fri, 9 Mar 2018 17:40:03 -0800 Subject: [PATCH] add way to call isotp --- python/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/__init__.py b/python/__init__.py index 09c18e2d6173d0..215fe733e99015 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -426,6 +426,14 @@ def can_clear(self, bus): """ self._handle.controlWrite(Panda.REQUEST_OUT, 0xf1, bus, 0, b'') + # ******************* isotp ******************* + + def isotp_send(addr, dat, bus, recvaddr=None, subaddr=None): + return isotp_send(self, dat, addr, bus, recvaddr, subaddr) + + def isotp_recv(addr, bus=0, sendaddr=None, subaddr=None): + return isotp_recv(self, addr, bus, recvaddr, subaddr) + # ******************* serial ******************* def serial_read(self, port_number):