Skip to content

BM_Autoset

Start AUTOSET sequence, for a BM-USB-CAN(FD) device, the AUTOSET sequence will detect the correct bitrate and terminal resistor.

BMAPI BM_StatusTypeDef BM_Autoset (BM_ChannelInfoTypeDef *channelinfo, BM_BitrateTypeDef *bitrate, BM_TerminalResistorTypeDef *tres, BM_AutosetCallbackHandle callback, uintptr_t userarg)
Direction Name Description
[in] channelinfo Info of the device channel to run AUTOSET on, usually the info is filled by BM_Enumerate().
[out] bitrate The detected bitrate.
[out] tres The detected terminal resistor.
[in] callback A callback function which will be called on each step of AUTOSET.
[in] userarg Arbitrary user argument of the callback function, this argument will be passed to the callback as is.

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