File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from can .interfaces .socketcan .socketcan_ctypes import SocketcanCtypes_Bus
2+ from can .interfaces .socketcan .socketcan_native import SocketcanNative_Bus
3+ from can .interfaces .socketcan import socketcan_constants as constants
File renamed without changes.
Original file line number Diff line number Diff line change 11from __future__ import print_function
2- import sys
2+
33import ctypes
44import logging
55import select
6-
6+ import sys
77from ctypes .util import find_library
88
99import can
10- from can .interfaces . socketcan_constants import * # CAN_RAW
10+ from can .broadcastmanager import CyclicSendTaskABC
1111from can .bus import BusABC
1212from can .message import Message
13- from can .broadcastmanager import CyclicSendTaskABC , MultiRateCyclicSendTaskABC
13+ from can .interfaces . socketcan . socketcan_constants import * # CAN_RAW
1414
1515# Set up logging
1616log = logging .getLogger ('can.socketcan.ctypes' )
Original file line number Diff line number Diff line change 55can socket and can bcm socket support: >3.4
66"""
77
8+ import logging
9+ import select
810import socket
911import struct
10- import logging
1112from collections import namedtuple
12- import select
13-
1413
1514log = logging .getLogger ('can.socketcan.native' )
1615log .info ("Loading socketcan native backend" )
2726
2827import can
2928
30- from can .message import Message
31- from can .interfaces .socketcan_constants import * # CAN_RAW, CAN_*_FLAG
32- from ..bus import BusABC
29+ from can .interfaces .socketcan .socketcan_constants import * # CAN_RAW, CAN_*_FLAG
30+ from can import Message , BusABC
3331
34- from . .broadcastmanager import CyclicSendTaskABC
32+ from can .broadcastmanager import CyclicSendTaskABC
3533
3634# struct module defines a binary packing format:
3735# https://docs.python.org/3/library/struct.html#struct-format-strings
Original file line number Diff line number Diff line change 11from __future__ import print_function
2-
32import can
43
4+
55def send_one ():
66 bus = can .interface .Bus ()
77 msg = can .Message (arbitration_id = 0xc0ffee ,
You can’t perform that action at this time.
0 commit comments