diag_general.h

来自「Freediag contains various drivers (ISO91」· C头文件 代码 · 共 47 行

H
47
字号
/*
 *	freediag - Vehicle Diagnostic Utility
 *
 * CVSID $Id: diag_general.h,v 1.1.1.1 2002/01/15 20:28:16 rpalmeida 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.
 *
 *************************************************************************
 */


/*
 * Header file for general and os functions (defined in diag_general.c
 * and diag_os.c)
 */

extern int diag_errno;	/* ERRNO for routines that return NULL on error */


int diag_init(void);

/*
 * millisecond sleep, does busy wait sleeps so highly accurate but
 * not good for multi-tasking
 */
int diag_os_millisleep(int ms);

/*
 * POSIX style read() with a timeout in ms
 */
/* returns an int */
ssize_t diag_os_read(int fd, void *buf, size_t count, int timeout);

⌨️ 快捷键说明

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