|
25 | 25 | // #define XCP_PROTOCOL_LAYER_VERSION 0x0104 // PACKED_MODE, CC_START_STOP_SYNCH prepare
|
26 | 26 |
|
27 | 27 |
|
28 |
| - |
29 |
| - |
30 |
| - |
31 | 28 | /*----------------------------------------------------------------------------*/
|
32 |
| -/* Driver features */ |
| 29 | +/* Adress, address extension coding */ |
33 | 30 |
|
34 |
| -#define XCP_TRANSPORT_LAYER_TYPE XCP_TRANSPORT_LAYER_ETH // Enable ethernet specific commands |
| 31 | +// Use addr_ext XCP_ADDR_EXT_ABS to indicate absulute addr format (ApplXcpGetBaseAddr()+(uint32_t)addr) |
| 32 | +#define XCP_ENABLE_ABS_ADDRESSING |
| 33 | +#define XCP_ADDR_EXT_ABS 0x01 // Absolute address format |
35 | 34 |
|
| 35 | +// Use addr_ext XCP_ADDR_EXT_DYN to indicate relative addr format (event<<16)|offset |
36 | 36 | #if OPTION_ENABLE_XCP_CLASS
|
37 |
| - #define XCP_ENABLE_DYN_ADDRESSING // Enable addr_ext=1 indicating relative addr format (event<<16)|offset |
| 37 | + #define XCP_ENABLE_DYN_ADDRESSING |
| 38 | + #define XCP_ADDR_EXT_DYN 0x02 // Relative address format |
38 | 39 | #endif
|
39 | 40 |
|
| 41 | +// Use addr_ext XCP_ADDR_EXT_APP to indicate application specific addr format and use ApplXcpReadMemory and ApplXcpWriteMemory |
| 42 | +// #define XCP_ENABLE_APP_ADDRESSING |
| 43 | +// #define XCP_ADDR_EXT_APP 0x00 // Address format handled by application |
| 44 | + |
| 45 | +// Internally used address extensions |
| 46 | +// Use addr_ext XCP_ADDR_EXT_A2L to indicate A2L upload memory space |
| 47 | +#define XCP_ADDR_EXT_A2L 0xFD |
| 48 | +// Use addr_ext XCP_ADDR_EXT_PTR to indicate gXcp.MtaPtr is valid |
| 49 | +#define XCP_ADDR_EXT_PTR 0xFE |
| 50 | + |
| 51 | +// Undefined address extension |
| 52 | +#define XCP_ADDR_EXT_UNDEFINED 0xFF // Undefined address extension |
| 53 | + |
40 | 54 | /*----------------------------------------------------------------------------*/
|
41 | 55 | /* Protocol features */
|
42 | 56 |
|
|
0 commit comments