File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,8 @@ def _detect_available_configs():
474474 channel_configs = get_channel_configs ()
475475 LOG .info ("Found %d channels" , len (channel_configs ))
476476 for channel_config in channel_configs :
477+ if not channel_config .channelBusCapabilities & vxlapi .XL_BUS_ACTIVE_CAP_CAN :
478+ continue
477479 LOG .info (
478480 "Channel index %d: %s" ,
479481 channel_config .channelIndex ,
@@ -484,6 +486,10 @@ def _detect_available_configs():
484486 "interface" : "vector" ,
485487 "app_name" : None ,
486488 "channel" : channel_config .channelIndex ,
489+ "supports_fd" : bool (
490+ channel_config .channelBusCapabilities
491+ & vxlapi .XL_CHANNEL_FLAG_CANFD_ISO_SUPPORT
492+ ),
487493 }
488494 )
489495 return configs
Original file line number Diff line number Diff line change 117117XL_INTERFACE_VERSION = 3
118118XL_INTERFACE_VERSION_V4 = 4
119119
120+ XL_BUS_ACTIVE_CAP_CAN = XL_BUS_TYPE_CAN << 16
120121XL_CHANNEL_FLAG_CANFD_ISO_SUPPORT = 0x80000000
121122
122123# structure for XL_RECEIVE_MSG, XL_TRANSMIT_MSG
You can’t perform that action at this time.
0 commit comments