⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scantool_vag.c

📁 Freediag contains various drivers (ISO9141, ISO14230, SAEJ1850-VPW, SAEJ1850-PWM) for different adap
💻 C
字号:
/*
 * !!! INCOMPLETE !!!!
 *
 *	freediag - Vehicle Diagnostic Utility
 *
 *
 * Copyright (C) 2001 Richard Almeida & Ibex Ltd (rpa@ibex.co.uk)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *************************************************************************
 *
 *
 * Mostly ODBII Compliant Scan Tool (as defined in SAE J1978)
 *
 * CLI routines - vag subcommand
 */

#include "diag_os.h" /* operating specific includes */

#include "scantool.h"
#include "diag_vag.h"

static char *cvsid = "$Id: scantool_vag.c,v 1.2 2002/01/15 20:37:36 rpalmeida Exp $";

int cmd_vag_help(int argc, char **argv);
int cmd_vag_quit(int argc, char **argv);

struct cmd_tbl_entry vag_cmd_table[] =
{
	{ "help", "help [command]", "Gives help for a command",
		cmd_vag_help, 0, NULL},

	{ "quit", "quit", "Return to previous menu level",
		cmd_vag_quit, 0, NULL},
	{ "exit", "exit", "Return to previous menu level",
		cmd_vag_quit, FLAG_HIDDEN, NULL},

	{ NULL, NULL, NULL, NULL, 0, NULL}
};


/*
 * Table of english descriptions of the VW ECU addresses
 */
struct vw_id_info
{
	int id;
	char *command;
} ;

struct vw_id_info vw_ids[] =
{
	{DIAG_VAG_ECU_ENGINE, "Engine" },
	{DIAG_VAG_ECU_GEARBOX, "Gearbox" },
	{DIAG_VAG_ECU_ABS, "ABS" },
	{DIAG_VAG_ECU_AIRBAGS, "Airbag" },
	{DIAG_VAG_ECU_LOCKS, "Locking" },
	{0, NULL},
};



int
cmd_vag_quit(int argc, char **argv)
{
	return (CMD_UP);
}

int
cmd_vag_help(int argc, char **argv)
{
	help_common(argc, argv, vag_cmd_table);
	return (0);
}

/*
 * Connect to specified component
 */
int
cmd_vag_connect(int argc, char **argv)
{

	return (0);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -