BM_OpenCan
函数名、签名、参数与返回值和 BMAPI SDK 保持一致,可直接用于开发、检索与代码审查。
Open the specified CAN device port.
BMAPI BM_ChannelHandle BM_OpenCan (uint16_t port)Parameters
Section titled “Parameters”| Direction | Name | Description |
|---|---|---|
| [in] | port |
Index of the port, starting from zero, note this is the index of all enumerated ports. |
Returns
Section titled “Returns”Handle to the opened CAN device channel, return NULL if failed to open the specified port.
This reference follows the current BUSMUST BMAPI SDK. For an installed package, its bundled header and help files define the exact version-specific contract.