summaryrefslogtreecommitdiffstats
path: root/src/isotp/receive.h
blob: feca993caa747da8b5f145cdd83aa629341e4c63 (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_handle_single_frame(IsoTpHandler* handler, IsoTpMessage* message);

void isotp_complete_receive(IsoTpHandler* handler, IsoTpMessage* message);

void isotp_receive_can_frame(IsoTpHandler* handler,
        const uint16_t arbitration_id, const uint8_t data[],
        const uint8_t size);

#ifdef __cplusplus
}
#endif

#endif // __ISOTP_RECEIVE_H__