Draft reworking of API.
[apps/agl-service-can-low-level.git] / src / isotp / receive.h
1 #ifndef __ISOTP_RECEIVE_H__
2 #define __ISOTP_RECEIVE_H__
3
4 #include <isotp/isotp.h>
5 #include <stdint.h>
6 #include <stdbool.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 void isotp_complete_receive(IsoTpHandle* handle, IsoTpMessage* message);
13
14 void isotp_handle_single_frame(IsoTpHandle* handle,
15         IsoTpMessage* message);
16
17 IsoTpHandle isotp_receive(IsoTpShims* shims, const uint16_t arbitration_id,
18         IsoTpMessageReceivedHandler callback);
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #endif // __ISOTP_RECEIVE_H__