forked from lishen2/isotp-c
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathisotp_config.h
31 lines (25 loc) · 972 Bytes
/
isotp_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __ISOTP_CONFIG__
#define __ISOTP_CONFIG__
/* Max number of messages the receiver can receive at one time, this value
* is affectied by can driver queue length
*
* The ESP32 has a 64-byte RX FIFO and each message can have a length of up
* to 13 bytes (including extended ID). So this value has to be set to 4.
*/
#define ISO_TP_DEFAULT_BLOCK_SIZE 4
/* The STmin parameter value specifies the minimum time gap allowed between
* the transmission of consecutive frame network protocol data units
*/
#define ISO_TP_DEFAULT_ST_MIN 0
/* This parameter indicate how many FC N_PDU WTs can be transmitted by the
* receiver in a row.
*/
#define ISO_TP_MAX_WFT_NUMBER 1
/* Private: The default timeout to use when waiting for a response during a
* multi-frame send or receive.
*/
#define ISO_TP_DEFAULT_RESPONSE_TIMEOUT 100
/* Private: Determines if by default, padding is added to ISO-TP message frames.
*/
#define ISO_TP_FRAME_PADDING
#endif