BM_IsotpConfigTypeDef
结构体与成员名称和 BMAPI SDK 保持一致,便于直接对应头文件与示例代码。
BM_IsotpConfigTypeDef data structure.
Members
Section titled “Members”| Member | Declaration | Description |
|---|---|---|
version |
uint8_t version |
Currently must be set to 0x01 |
mode |
uint8_t mode |
See BM_IsotpModeTypeDef for details, Default mode is normal (non-extended-addressing) UDS client(tester) |
a |
uint16_t a |
A timeout in milliseconds: =N_As if writing as tester or reading as ECU, otherwise =N_Ar |
b |
uint16_t b |
B timeout in milliseconds: =N_Bs if writing as tester or reading as ECU, otherwise =N_Br |
c |
uint16_t c |
C timeout in milliseconds: =N_Cs if writing as tester or reading as ECU, otherwise =N_Cr |
stmin |
uint8_t stmin |
STmin raw value (0x00-0x7F or 0xF1-0xF9) if Busmust device is acting as UDS server. Set as 0 if can card is acting as UDS client(normal case). |
blockSize |
uint8_t blockSize |
Blocksize if can card is acting as UDS server, 0 means no further FC is needed. Set as 0 if can card is acting as UDS client(normal case). |
fcFrameLength |
uint8_t fcFrameLength |
Flow control frame length in bytes |
hardwareIsotpDisabled |
uint8_t hardwareIsotpDisabled |
Disable BM_WriteIsotp to use 3rd generation’s Hardware ISOTP support. CAUTION!!! 0=ENABLED (by default), 1=DISABLED |
extendedAddress |
uint8_t extendedAddress |
UDS Address in Extended Addressing mode |
paddingEnabled |
uint8_t paddingEnabled |
Enable padding for unused payload bytes/ |
paddingValue |
uint8_t paddingValue |
Padding byte value (i.e. 0xCC) for unused payload bytes |
longPduEnabled |
uint8_t longPduEnabled |
Enable long PDU (only if CAN message DLC>8 and (CAN_DL>8 or FF_DL>4095)), otherwise BM_WriteIsotp returns an error on long write request |
functionalAddressingEnabled |
uint8_t functionalAddressingEnabled |
Enable BM_ReadIsotp() to handle functional addressing UDS requests, currently only 0x7DF is supported |
callbackFunc |
BM_IsotpCallbackHandle callbackFunc |
Callback function when any progress is made, used typically by GUI to show progress bar |
callbackUserarg |
uintptr_t callbackUserarg |
Callback userarg when any progress is made, used typically by GUI to show progress bar |
testerDataTemplate |
BM_DataTypeDef testerDataTemplate |
All tester messages will be formatted/checked using this template, configure CAN message ID and IDE/FDF flags here |
ecuDataTemplate |
BM_DataTypeDef ecuDataTemplate |
All ECU messages will be formatted/checked using this template, configure CAN message ID and IDE/FDF flags here |
This data-structure reference follows the current BUSMUST BMAPI SDK.