We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 551cc94 + 453a4b7 commit ff9e77eCopy full SHA for ff9e77e
can/interfaces/vector/canlib.py
@@ -387,6 +387,8 @@ def _detect_available_configs():
387
channel_configs = get_channel_configs()
388
LOG.info('Found %d channels', len(channel_configs))
389
for channel_config in channel_configs:
390
+ if not channel_config.channelBusCapabilities & vxlapi.XL_BUS_ACTIVE_CAP_CAN:
391
+ continue
392
LOG.info('Channel index %d: %s',
393
channel_config.channelIndex,
394
channel_config.name.decode('ascii'))
can/interfaces/vector/vxlapi.py
@@ -63,6 +63,7 @@
63
XL_INTERFACE_VERSION = 3
64
XL_INTERFACE_VERSION_V4 = 4
65
66
+XL_BUS_ACTIVE_CAP_CAN = XL_BUS_TYPE_CAN << 16
67
XL_CHANNEL_FLAG_CANFD_ISO_SUPPORT = 0x80000000
68
69
# structure for XL_RECEIVE_MSG, XL_TRANSMIT_MSG
0 commit comments