BOROSOFTWAREAll work →
scantool/diag_l2_raw.h 68 lines
1#ifndef _DIAG_L2_RAW_H_
2#define _DIAG_L2_RAW_H_
3/*
4 * freediag - Vehicle Diagnostic Utility
5 *
6 *
7 * Copyright (C) 2001 Richard Almeida & Ibex Ltd ([email protected])
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 *
23 *************************************************************************
24 *
25 * Diag
26 *
27 * L2 driver for "raw" interface (just sends and receives data without
28 * modifying it
29 *
30 */
31
32/*
33 */
34
35#if defined(__cplusplus)
36extern "C" {
37#endif
38
39#include "diag.h"
40struct diag_l2_conn;
41
42int dl2p_raw_startcomms( struct diag_l2_conn *d_l2_conn, flag_type flags,
43 unsigned int bitrate, target_type target, source_type source);
44
45/*
46 */
47int dl2p_raw_stopcomms(struct diag_l2_conn *pX);
48
49/*
50 * Just send the data, with no processing etc
51 */
52int dl2p_raw_send(struct diag_l2_conn *d_l2_conn, struct diag_msg *msg);
53
54/*
55 */
56int dl2p_raw_recv(struct diag_l2_conn *d_l2_conn, unsigned int timeout,
57 void (*callback)(void *handle, struct diag_msg *msg), void *handle);
58
59/*
60 */
61struct diag_msg *dl2p_raw_request(struct diag_l2_conn *d_l2_conn, struct diag_msg *msg, int *errval);
62
63
64#if defined(__cplusplus)
65}
66#endif
67#endif /* _DIAG_L2_RAW_H_ */
68