Skip to content

Remove unused SocketCAN constants #575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions can/interfaces/socketcan/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
Defines shared CAN constants.
"""

canMSG_EXT = 0x0004

CAN_ERR_FLAG = 0x20000000
CAN_RTR_FLAG = 0x40000000
CAN_EFF_FLAG = 0x80000000
Expand All @@ -14,10 +12,6 @@
CAN_BCM_TX_SETUP = 1
CAN_BCM_TX_DELETE = 2

CAN_BCM_TX_EXPIRED = 9

CAN_BCM_RX_TIMEOUT = 11

# BCM flags
SETTIMER = 0x0001
STARTTIMER = 0x0002
Expand Down Expand Up @@ -57,32 +51,11 @@
SIOCGSTAMP = 0x8906
EXTFLG = 0x0004

SKT_ERRFLG = 0x0001
SKT_RTRFLG = 0x0002

CANFD_BRS = 0x01
CANFD_ESI = 0x02

CANFD_MTU = 72

PYCAN_ERRFLG = 0x0020
PYCAN_STDFLG = 0x0002
PYCAN_RTRFLG = 0x0001

ID_TYPE_EXTENDED = True
ID_TYPE_STANDARD = False

ID_TYPE_29_BIT = ID_TYPE_EXTENDED
ID_TYPE_11_BIT = ID_TYPE_STANDARD

REMOTE_FRAME = True
DATA_FRAME = False
WAKEUP_MSG = True
ERROR_FRAME = True

DRIVER_MODE_SILENT = False
DRIVER_MODE_NORMAL = (not DRIVER_MODE_SILENT)

STD_ACCEPTANCE_MASK_ALL_BITS = (2**11 - 1)
MAX_11_BIT_ID = STD_ACCEPTANCE_MASK_ALL_BITS

Expand Down