Split up functions in send/receive files for clarity.
[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(IsoTpReceiveHandle* handle, IsoTpMessage* message);
13
14 bool isotp_handle_single_frame(IsoTpReceiveHandle* handle, IsoTpMessage* message);
15
16 IsoTpReceiveHandle isotp_receive(IsoTpShims* shims,
17         const uint16_t arbitration_id, IsoTpMessageReceivedHandler callback);
18
19 IsoTpMessage isotp_continue_receive(IsoTpShims* shims,
20         IsoTpReceiveHandle* handle, const uint16_t arbitration_id,
21         const uint8_t data[], const uint8_t size);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif // __ISOTP_RECEIVE_H__