BM_WriteLinMessage
函数名、签名、参数与返回值和 BMAPI SDK 保持一致,可直接用于开发、检索与代码审查。
Write LIN message to the given channel.
BMAPI BM_StatusTypeDef BM_WriteLinMessage (BM_ChannelHandle handle, BM_LinMessageTypeDef *msg, uint32_t _channel, int timeout, uint32_t *timestamp)Parameters
Section titled “Parameters”| Direction | Name | Description |
|---|---|---|
| [in] | handle |
Handle to the channel to write to. |
| [in] | msg |
A caller-allocated buffer to hold the LIN message output, see BM_LinMessageTypeDef for details. |
| [in] | _channel |
The target channel ID to which the message is transmitted, starting from zero. This parameter is reserved for future, always 0 now. |
| [in] | timeout |
Timeout (in milliseconds) before the message is transmitted successfully to the bus. Set any negative number (i.e. -1) to wait infinitely. Set 0 if you would like to transmit asynchronously: put to BMAPI internal buffer and return immediately, then receive TXCMPLT event over BM_Read() later. |
| [in] | timestamp |
The device local high precision timestamp in microseconds, when the message is physically transmitted on the LIN bus, could be NULL if not required. |
This reference follows the current BUSMUST BMAPI SDK. For an installed package, its bundled header and help files define the exact version-specific contract.