Move isotp.py, ccp.py and xcp.py to opendbc (#2166)

* Move ccp.py and xcp.py to opendbc

* move isotp

* more cleanup
This commit is contained in:
Willem Melching
2025-02-26 19:41:16 +01:00
committed by GitHub
parent 0924df1e8e
commit a744fa7780
7 changed files with 2 additions and 837 deletions

View File

@@ -14,7 +14,6 @@ from opendbc.car.structs import CarParams
from .base import BaseHandle
from .constants import FW_PATH, McuType
from .dfu import PandaDFU
from .isotp import isotp_send, isotp_recv
from .spi import PandaSpiHandle, PandaSpiException, PandaProtocolMismatch
from .usb import PandaUsbHandle
from .utils import logger
@@ -795,14 +794,6 @@ class Panda:
"""
self._handle.controlWrite(Panda.REQUEST_OUT, 0xf1, bus, 0, b'')
# ******************* isotp *******************
def isotp_send(self, addr, dat, bus, recvaddr=None, subaddr=None):
return isotp_send(self, dat, addr, bus, recvaddr, subaddr)
def isotp_recv(self, addr, bus=0, sendaddr=None, subaddr=None):
return isotp_recv(self, addr, bus, sendaddr, subaddr)
# ******************* serial *******************
def serial_read(self, port_number):