BM_ReadCanMessage
Read CAN message out of the given channel.
BMAPI BM_StatusTypeDef BM_ReadCanMessage (BM_ChannelHandle handle, BM_CanMessageTypeDef *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 CAN message output, see BM_CanMessageTypeDef 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 CAN 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.