1b52ad35be59028fd046e66f309b9d1357e93ebd
[apps/agl-service-can-low-level.git] / src / isotp / isotp.h
1 #ifndef __ISOTP_H__
2 #define __ISOTP_H__
3
4 #include <isotp/isotp_types.h>
5 #include <isotp/send.h>
6 #include <isotp/receive.h>
7 #include <stdint.h>
8 #include <stdbool.h>
9 #include <stdio.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 IsoTpShims isotp_init_shims(LogShim log,
16         SendCanMessageShim send_can_message,
17         SetTimerShim set_timer);
18
19 void isotp_message_to_string(const IsoTpMessage* message, char* destination,
20         size_t destination_length);
21
22 /* Public: Change the timeout for waiting on an ISO-TP response frame.
23  *
24  * If this function is not used, the conventional 100ms is used by default.
25  *
26  * handler - the ISO-TP handler to modify.
27  * timeout - the new timeout in milliseconds.
28  */
29 // void isotp_set_timeout(IsoTpHandler* handler, uint16_t timeout_ms);
30
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif // __ISOTP_H__