📄 diag_l2_raw.h
字号:
/*
* freediag - Vehicle Diagnostic Utility
*
* CVSID $Id: diag_l2_raw.h,v 1.2 2002/04/03 04:56:40 bjorn_helgaas Exp $
*
* 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.
*
*************************************************************************
*
* Diag
*
* L2 driver for "raw" interface (just sends and receives data without
* modifying it
*
*/
/*
*/
int
diag_l2_proto_raw_startcomms( diag_l2_conn_t *d_l2_conn, u_int16_t flags,
int bitrate, u_int8_t target, u_int8_t source);
/*
*/
int
diag_l2_proto_raw_stopcomms(diag_l2_conn_t* pX);
/*
* Just send the data, with no processing etc
*/
int
diag_l2_proto_raw_send(diag_l2_conn_t *d_l2_conn, diag_msg_t *msg);
/*
*/
int
diag_l2_proto_raw_recv(diag_l2_conn_t *d_l2_conn, int timeout,
void (*callback)(void *handle, diag_msg_t *msg), void *handle);
/*
*/
diag_msg_t *
diag_l2_proto_raw_request(diag_l2_conn_t *d_l2_conn, diag_msg_t *msg, int *errval);
/*
* No need to do anything with ATP in raw mode
*/
int
diag_l2_proto_raw_atp(diag_l2_conn_t* d_l2_conn, int p2min, int p2max, int p3min, int p3max, int p4min);
/*
* No need to do anything with Timer in raw mode
*/
void
diag_l2_proto_raw_timer(int iX);
/*
* No need to do anything with Timeouts in raw mode
*/
void
diag_l2_proto_raw_timeout(diag_l2_conn_t * dlctX);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -