BM_Autoset
函数名、签名、参数与返回值和 BMAPI SDK 保持一致,可直接用于开发、检索与代码审查。
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)Parameters
Section titled “Parameters”| 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.