BM_OpenEx
Open the specified device port using given configuration.
BMAPI BM_StatusTypeDef BM_OpenEx (BM_ChannelHandle *handle, BM_ChannelInfoTypeDef *channelinfo, uint32_t mode, BM_TerminalResistorTypeDef tres, const BM_BitrateTypeDef *bitrate, const BM_RxFilterTypeDef *rxfilter, int nrxfilters)Parameters
Section titled “Parameters”| Direction | Name | Description |
|---|---|---|
| [out] | handle |
Handle to the opened device channel. |
| [in] | channelinfo |
Info of the device channel to open, usually the info is filled by BM_Enumerate(). |
| [in] | mode |
Operation mode option of the opened channel, see BM_CanModeTypeDef, BM_LinModeTypeDef for details. |
| [in] | tres |
Terminal resistor option of the opened channel, see BM_TerminalResistorTypeDef for details. |
| [in] | bitrate |
Bitrate option of the opened channel, see BM_BitrateTypeDef for details. |
| [in] | rxfilter |
CAN acceptance filters option of the opened channel, see BM_RxFilterTypeDef for details. |
| [in] | nrxfilters |
Number of acceptance filters, usually there could be up to 2 filters. |
Returns
Section titled “Returns”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.