Blame | Last modification | View Log | RSS feed
/*
* (C) Copyright 2011 by Andreas Theofilu <andreas@theosys.at>
* All rights reserved!
*/
#ifndef __USB_COMM__
#define __USB_COMM__
#include <usb.h>
typedef struct
{
int fd;
int switch_fd;
usb_dev_handle *handle;
int bulk_out;
int bulk_in;
int intr_in;
int read_bulk;
int method;
unsigned int USB_VID;
unsigned int USB_PID;
}SERDEV;
extern SERDEV serialDev;
void serial_set_device(const char *device);
void serial_set_method(int mth, unsigned int VID, unsigned int PID);
int serial_close(void);
int serial_open(void);
#endif