BM_WriteIsotp
Write data block using ISOTP protocol. This API enables rapid transmission using ISOTP without app intervention, a simple example would be writing VIN using UDS: uint8_t request[] = { 0x2E, 0xF1, 0x80, … … }; BM_WriteIsotp(channel, request, sizeof(request), config);.
BMAPI BM_StatusTypeDef BM_WriteIsotp (BM_ChannelHandle handle, const void *data, uint32_t nbytes, int timeout, BM_IsotpConfigTypeDef *config)Parameters
Section titled “Parameters”| Direction | Name | Description |
|---|---|---|
| [in] | handle |
Handle to the channel to write to. |
| [in] | data |
A caller-allocated buffer to hold the data block input. |
| [in] | nbytes |
Length of the data block, in bytes. |
| [in] | timeout |
Timeout (in milliseconds) before any message segment is transmitted successfully to the bus. Note this is only for bus level timeout waiting for CAN ACK, for setting ISOTP protocol timeouts, see BM_IsotpConfigTypeDef for details. |
| [in] | config |
ISOTP configuration used by current transfer. |
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.