Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions can/interfaces/vector/canlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ def _detect_available_configs():
channel_configs = get_channel_configs()
LOG.info('Found %d channels', len(channel_configs))
for channel_config in channel_configs:
if not channel_config.channelBusCapabilities & vxlapi.XL_BUS_ACTIVE_CAP_CAN:
continue
LOG.info('Channel index %d: %s',
channel_config.channelIndex,
channel_config.name.decode('ascii'))
Expand Down
1 change: 1 addition & 0 deletions can/interfaces/vector/vxlapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
XL_INTERFACE_VERSION = 3
XL_INTERFACE_VERSION_V4 = 4

XL_BUS_ACTIVE_CAP_CAN = XL_BUS_TYPE_CAN << 16
XL_CHANNEL_FLAG_CANFD_ISO_SUPPORT = 0x80000000

# structure for XL_RECEIVE_MSG, XL_TRANSMIT_MSG
Expand Down