Gammu internals
1.38.0
usb.h
Go to the documentation of this file.
1
10
#ifndef __device__usb__usb_h__
11
#define __device__usb__usb_h__
12
13
#include <
gammu-types.h
>
14
#include <
gammu-statemachine.h
>
15
16
/* Hack to avoid need for including libusb.h in this header, these are just pointers anyway */
17
#if !defined(__LIBUSB_H__) && !defined(LIBUSB_H)
18
#define libusb_context void
19
#define libusb_device_handle void
20
#define struct_libusb_device_descriptor void
21
#define libusb_device void
22
#else
23
#define struct_libusb_device_descriptor struct libusb_device_descriptor
24
#endif
25
26
typedef
struct
{
27
libusb_context
*
context
;
28
libusb_device_handle
*
handle
;
29
int
configuration
;
30
int
control_iface
;
31
int
control_altsetting
;
32
int
data_iface
;
33
int
data_altsetting
;
34
int
data_idlesetting
;
35
unsigned
char
ep_read
;
36
unsigned
char
ep_write
;
37
}
GSM_Device_USBData
;
38
39
typedef
gboolean
(*
GSM_USB_Match_Function
)(
GSM_StateMachine
*s,
libusb_device
*dev,
struct_libusb_device_descriptor
*desc);
40
#endif
GSM_Device_USBData::configuration
int configuration
Definition:
usb.h:29
GSM_Device_USBData::data_iface
int data_iface
Definition:
usb.h:32
libusb_context
#define libusb_context
Definition:
usb.h:18
_GSM_StateMachine
Definition:
gsmstate.h:1401
libusb_device_handle
#define libusb_device_handle
Definition:
usb.h:19
GSM_Device_USBData
Definition:
usb.h:26
GSM_USB_Match_Function
gboolean(* GSM_USB_Match_Function)(GSM_StateMachine *s, libusb_device *dev, struct_libusb_device_descriptor *desc)
Definition:
usb.h:39
GSM_Device_USBData::data_idlesetting
int data_idlesetting
Definition:
usb.h:34
GSM_Device_USBData::data_altsetting
int data_altsetting
Definition:
usb.h:33
gammu-statemachine.h
GSM_Device_USBData::ep_write
unsigned char ep_write
Definition:
usb.h:36
GSM_Device_USBData::control_altsetting
int control_altsetting
Definition:
usb.h:31
gboolean
int gboolean
Definition:
gammu-types.h:23
GSM_Device_USBData::handle
libusb_device_handle * handle
Definition:
usb.h:28
gammu-types.h
GSM_Device_USBData::control_iface
int control_iface
Definition:
usb.h:30
GSM_Device_USBData::ep_read
unsigned char ep_read
Definition:
usb.h:35
GSM_Device_USBData::context
libusb_context * context
Definition:
usb.h:27
struct_libusb_device_descriptor
#define struct_libusb_device_descriptor
Definition:
usb.h:20
libusb_device
#define libusb_device
Definition:
usb.h:21
libgammu
device
usb
usb.h
Generated on Wed Nov 16 2016 13:39:20 for Gammu internals by
1.8.12