summaryrefslogtreecommitdiffstats
path: root/src/isotp/receive.h
blob: 3eee89e23920b4ac51e000b25a94e7f9c72f8e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __ISOTP_RECEIVE_H__
#define __ISOTP_RECEIVE_H__

#include <isotp/isotp.h>
#include <stdint.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

void isotp_complete_receive(IsoTpHandle* handle, IsoTpMessage* message);

void isotp_handle_single_frame(IsoTpHandle* handle,
        IsoTpMessage* message);

IsoTpHandle isotp_receive(IsoTpShims* shims, const uint16_t arbitration_id,
        IsoTpMessageReceivedHandler callback);

#ifdef __cplusplus
}
#endif

#endif // __ISOTP_RECEIVE_H__