Skip to content

BM_EnumerateByCap

Enumerate all connected Busmust device.

BMAPI BM_StatusTypeDef BM_EnumerateByCap (BM_ChannelInfoTypeDef channelinfos[], int *nchannels, uint16_t cap)
Direction Name Description
[out] channelinfos An array of BM_ChannelInfoTypeDef structure which holds info of all the enumerated Busmust devices.
[in,out] nchannels Number of device channels available, which is also the number of valid entries in channelinfos, this param must be initialized with the maximum length of the channelinfos array when calling this function.
[in] cap A bitmask of channel capability (see BM_CapabilityTypeDef for details). e.g. Call BM_EnumerateByCap(channelinfos, nchannels, BM_CAN_FD_CAP) to find all available CANFD channels.

Operation status, see BM_StatusTypeDef for details.


This reference follows the current BUSMUST BMAPI SDK. For an installed package, its bundled header and help files define the exact version-specific contract.