BOROSOFTWAREAll work →
scantool/diag_l3_iso14230.h 41 lines
1#ifndef _DIAG_L3_ISO14230_H_
2#define _DIAG_L3_ISO14230_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 */
26#if defined(__cplusplus)
27extern "C" {
28#endif
29
30// XXX L2 uses a nifty "2/3 * P3max" formula in to calculate keepalive interval.
31// I'm not sure why we need this as well.
32#define ISO14230_KEEPALIVE 3500 //ms timeout before keepalive signal on OBD bus.
33//That keepalive corresponds to the P3 timing value; certain ECUs allow
34// changes (SID 83, AccessTimingParameter) to modify P3. But by default they
35// should be configured to accept 55 ms < P3 < 5000 ms
36
37#if defined(__cplusplus)
38}
39#endif
40#endif /* _DIAG_L3_ISO14230_H_ */
41