BM_ReadLinMessage
函数名、签名、参数与返回值和 BMAPI SDK 保持一致,可直接用于开发、检索与代码审查。
Read LIN message out of the given channel.
BMAPI BM_StatusTypeDef BM_ReadLinMessage (BM_ChannelHandle handle, BM_LinMessageTypeDef *msg, uint32_t *channel, uint32_t *timestamp)Parameters
Section titled “Parameters”| Direction | Name | Description |
|---|---|---|
| [in] | handle |
Handle to the channel to read from. |
| [out] | msg |
A caller-allocated buffer to hold the LIN message output, see BM_LinMessageTypeDef for details. |
| [out] | channel |
The source channel ID from which the message is received, starting from zero, could be NULL if not required. |
| [out] | timestamp |
The device local high precision timestamp in microseconds, when the message is physically received on the LIN bus, could be NULL if not required. |
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.