Skip to content

Commit 8c63278

Browse files
karldinghardbyte
authored andcommitted
Remove unused SocketCAN constants (#575)
These constants are no longer used in the code and can be cleaned up Fixes #574
1 parent beb4d36 commit 8c63278

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

can/interfaces/socketcan/constants.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Defines shared CAN constants.
55
"""
66

7-
canMSG_EXT = 0x0004
8-
97
CAN_ERR_FLAG = 0x20000000
108
CAN_RTR_FLAG = 0x40000000
119
CAN_EFF_FLAG = 0x80000000
@@ -14,10 +12,6 @@
1412
CAN_BCM_TX_SETUP = 1
1513
CAN_BCM_TX_DELETE = 2
1614

17-
CAN_BCM_TX_EXPIRED = 9
18-
19-
CAN_BCM_RX_TIMEOUT = 11
20-
2115
# BCM flags
2216
SETTIMER = 0x0001
2317
STARTTIMER = 0x0002
@@ -57,32 +51,11 @@
5751
SIOCGSTAMP = 0x8906
5852
EXTFLG = 0x0004
5953

60-
SKT_ERRFLG = 0x0001
61-
SKT_RTRFLG = 0x0002
62-
6354
CANFD_BRS = 0x01
6455
CANFD_ESI = 0x02
6556

6657
CANFD_MTU = 72
6758

68-
PYCAN_ERRFLG = 0x0020
69-
PYCAN_STDFLG = 0x0002
70-
PYCAN_RTRFLG = 0x0001
71-
72-
ID_TYPE_EXTENDED = True
73-
ID_TYPE_STANDARD = False
74-
75-
ID_TYPE_29_BIT = ID_TYPE_EXTENDED
76-
ID_TYPE_11_BIT = ID_TYPE_STANDARD
77-
78-
REMOTE_FRAME = True
79-
DATA_FRAME = False
80-
WAKEUP_MSG = True
81-
ERROR_FRAME = True
82-
83-
DRIVER_MODE_SILENT = False
84-
DRIVER_MODE_NORMAL = (not DRIVER_MODE_SILENT)
85-
8659
STD_ACCEPTANCE_MASK_ALL_BITS = (2**11 - 1)
8760
MAX_11_BIT_ID = STD_ACCEPTANCE_MASK_ALL_BITS
8861

0 commit comments

Comments
 (0)