#include <linux/types.h>
#include <assert.h>
#include <string.h>
#include <otto/otto.h>
#include <otto/packet.h>
#include <otto/device.h>
#include <otto/control.h>
Functions | |
| const char _ID_[] | __attribute__ ((unused))="$Id: device.c,v 1.1 2004/07/07 22:07:12 alpha Exp $" |
| void | otto_register (struct otto_driver *drv) |
| Register a device driver. | |
| otto_device * | otto_open (const char *name, const char *fname) |
| Open and initialize OBD2 device. | |
| int | otto_close (struct otto_device *dev) |
| Close ODB2 device. | |
| int | otto_write (struct otto_device *dev, int bus, union otto_packet *packet, size_t size) |
| Transmit a packet on an OBD2 device. | |
| int | otto_read (struct otto_device *dev, int bus, union otto_packet *packet, size_t size) |
| Receive a packet on an OBD2 device. | |
| int | otto_control (struct otto_device *dev, int bus, void *data, int cmd) |
| Control for device. | |
| int | otto_getselectfd (struct otto_device *dev) |
| Return a file descriptor for select() or poll(). | |
Variables | |
| otto_driver * | g_drv_first = NULL |
| List of drivers. | |
|
|
|
|
|
Close ODB2 device.
|
|
||||||||||||||||||||
|
Control for device.
|
|
|
Return a file descriptor for select() or poll().
|
|
||||||||||||
|
Open and initialize OBD2 device.
|
|
||||||||||||||||||||
|
Receive a packet on an OBD2 device.
|
|
|
Register a device driver.
|
|
||||||||||||||||||||
|
Transmit a packet on an OBD2 device.
|
|
|
List of drivers.
|
1.3.7