/* * Copyright (C) 2012 Timo Kokkonen * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef _CONTOUR_USB_H #define _CONTOUR_USB_H #define CONTOUR_USB_VENDOR_ID 0x1a79 #define CONTOUR_USB_PRODUCT_ID 0x6002 struct msg { int direction; unsigned char data[64+1]; }; enum direction { IN = 666, OUT, }; int contour_initialize(int fd, int uc); int contour_read_entry(int fd, int uc, struct msg *in); int wait_for_device(int vendor, int product, int *usage_code); #endif