]> git.zerfleddert.de Git - usb-driver/blob - xpcu.h
cde14214a2ce63e08a43dbe550fdddda0b4d740d
[usb-driver] / xpcu.h
1 #define XPCU_CLAIM 1
2 #define XPCU_RELEASE 0
3
4 #define ENABLE_INTERRUPT 1
5 #define DISABLE_INTERRUPT 0
6
7 struct xpcu_s {
8 struct usb_device *dev;
9 usb_dev_handle *handle;
10 int interface;
11 int alternate;
12 unsigned long card_type;
13 pthread_mutex_t interrupt;
14 };
15
16 int __attribute__ ((visibility ("hidden"))) xpcu_deviceinfo(struct xpcu_s *xpcu, struct usb_get_device_data *ugdd);
17 int __attribute__ ((visibility ("hidden"))) xpcu_transfer(struct xpcu_s *xpcu, struct usb_transfer *ut);
18 void __attribute__ ((visibility ("hidden"))) xpcu_set_interface(struct xpcu_s *xpcu, struct usb_set_interface *usi);
19 struct xpcu_s __attribute__ ((visibility ("hidden"))) *xpcu_find(struct event *e);
20 void __attribute__ ((visibility ("hidden"))) xpcu_found(struct xpcu_s *xpcu, struct event *e);
21 void __attribute__ ((visibility ("hidden"))) xpcu_close(struct xpcu_s *xpcu, struct event *e);
22 void __attribute__ ((visibility ("hidden"))) xpcu_int_state(struct xpcu_s *xpcu, struct interrupt *it, int enable);
23 void __attribute__ ((visibility ("hidden"))) xpcu_int_wait(struct xpcu_s *xpcu, struct interrupt *it);
Impressum, Datenschutz