forked from netdata-be/libnodave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usbGlue.h
36 lines (27 loc) · 1.4 KB
/
usbGlue.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
Part of Libnodave, a free communication libray for Siemens S7 200/300/400 via
the MPI adapter 6ES7 972-0CA22-0XAC
or MPI adapter 6ES7 972-0CA23-0XAC
or TS adapter 6ES7 972-0CA33-0XAC
or MPI adapter 6ES7 972-0CA11-0XAC,
IBH/MHJ-NetLink or CPs 243, 343 and 443
or VIPA Speed7 with builtin ethernet support.
This file allows read and write access to an USB device which is not supported by any
kernel driver from a user program. While I provide a kernel driver for Linux 2.6.13
this file could be a solution independent of kernel versions.
(C) Thomas Hergenhahn ([email protected]) 2002..2005
Large parts of this code were copied from usb_robot_slave,
(C) 2000 John Fremlin <[email protected]>
Libnodave is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
Libnodave 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 Library General Public License
along with Libnodave; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/
int initUSB();