BOROSOFTWAREAll work →
scantool/diag_l7_d2.h 52 lines
1#ifndef _DIAG_L7_D2_H_
2#define _DIAG_L7_D2_H_
3/*
4 * freediag - Vehicle Diagnostic Utility
5 *
6 *
7 * Copyright (C) 2017, 2023 Adam Goldman
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 * Volvo protocol application layer
28 *
29 */
30
31#if defined(__cplusplus)
32extern "C" {
33#endif
34
35#include <stdint.h>
36
37#include "diag_l7.h"
38
39struct diag_l2_conn;
40
41int diag_l7_d2_ping(struct diag_l2_conn *d_l2_conn);
42int diag_l7_d2_read(struct diag_l2_conn *d_l2_conn, enum l7_namespace ns, uint16_t addr, int buflen, uint8_t *out);
43int diag_l7_d2_dtclist(struct diag_l2_conn *d_l2_conn, int buflen, uint8_t *out);
44int diag_l7_d2_cleardtc(struct diag_l2_conn *d_l2_conn);
45int diag_l7_d2_io_control(struct diag_l2_conn *d_l2_conn, uint8_t id, uint8_t reps);
46int diag_l7_d2_run_routine(struct diag_l2_conn *d_l2_conn, uint8_t id);
47
48#if defined(__cplusplus)
49}
50#endif
51#endif /* _DIAG_L7_D2_H_ */
52