isotp-c
Platform-independent ISO 15765-2 transport for embedded C
Loading...
Searching...
No Matches
isotp_config.h
Go to the documentation of this file.
1
2// ___ ___ ___ _____ ___ ___ //
3// |_ _/ __|/ _ \_ _| _ \___ / __| //
4// | |\__ \ (_) || | | _/___| (__ //
5// |___|___/\___/ |_| |_| \___| //
6// //
7// ___ ___ _ _ ___ ___ ___ //
8// / __/ _ \| \| | __|_ _/ __| //
9// | (_| (_) | .` | _| | | (_ | //
10// \___\___/|_|\_|_| |___\___| //
11// //
13
14#ifndef ISOTPC_CONFIG_H
15#define ISOTPC_CONFIG_H
16
25
29
38#ifndef ISO_TP_MAX_CAN_FRAME_SIZE
39 #define ISO_TP_MAX_CAN_FRAME_SIZE 8
40#endif
41
46#ifndef ISO_TP_DEFAULT_TX_DL
47 #define ISO_TP_DEFAULT_TX_DL ISO_TP_MAX_CAN_FRAME_SIZE
48#endif
49
53#ifndef ISO_TP_DEFAULT_BLOCK_SIZE
54 #define ISO_TP_DEFAULT_BLOCK_SIZE 8
55#endif
56
59#ifndef ISO_TP_DEFAULT_ST_MIN_US
60 #define ISO_TP_DEFAULT_ST_MIN_US 0
61#endif
62
65#ifndef ISO_TP_MAX_WFT_NUMBER
66 #define ISO_TP_MAX_WFT_NUMBER 1
67#endif
68
73#ifndef ISO_TP_DEFAULT_RESPONSE_TIMEOUT_US
74 #define ISO_TP_DEFAULT_RESPONSE_TIMEOUT_US 100000
75#endif
76
81#ifdef DOXYGEN
82 #define ISO_TP_FRAME_PADDING
83#endif
84
95#ifdef DOXYGEN
96 #define ISO_TP_NO_FORMATTED_ERRORS
97#endif
98
99
101#ifndef ISO_TP_FRAME_PADDING_VALUE
102 #define ISO_TP_FRAME_PADDING_VALUE 0xAA
103#endif
104
109#ifdef DOXYGEN
110 #define ISO_TP_USER_SEND_CAN_ARG
111#endif
112
119#ifdef DOXYGEN
120 #define ISO_TP_USER_SEND_CAN_FLAGS
121#endif
122
127#ifdef DOXYGEN
128 #define ISO_TP_CAN_FD_USE_BRS
129#endif
130
134#ifdef DOXYGEN
135 #define ISO_TP_TRANSMIT_COMPLETE_CALLBACK
136#endif
137
141#ifdef DOXYGEN
142 #define ISO_TP_RECEIVE_COMPLETE_CALLBACK
143#endif
144
149#ifdef DOXYGEN
150 #define ISO_TP_ENABLE_STREAMING
151#endif
152
154
155#endif // ISOTPC_CONFIG_H