libnjb: /root/tmp/build-libnjb/libnjb-2.2.7/src/base.h Source File

libnjb 2.2.7

base.h
1 #ifndef __NJB__BASE__H
2 #define __NJB__BASE__H
3
4 #include "libnjb.h"
5
9 #define NJB_PROTOCOL_OASIS 0
10 #define NJB_PROTOCOL_PDE 1
11 typedef u_int8_t njb_protocol_type_t;
12
13 int njb_discover (njb_t *njbs, int limit, int *errorflag);
14 void njb_device_dump (njb_t *njb, FILE *fp);
15 int njb_open (njb_t *njb);
16 void njb_close (njb_t *njb);
17 void njb_set_debug (int flags);
18 int njb_debug (int flag);
19 char *njb_get_usb_device_name(njb_t *njb);
20 int njb_device_is_usb20(njb_t *njb);
21 njb_protocol_type_t njb_get_device_protocol(njb_t *njb);
22 #define PDE_PROTOCOL_DEVICE(t) \
23 (njb_get_device_protocol(t) == NJB_PROTOCOL_PDE)
24
25 #endif /* __NJB__BASE__H */
njb_debug_flags
int njb_debug_flags
Definition: base.c:60
libnjb.h
NJB_DEVICE_ZENSLEEK
#define NJB_DEVICE_ZENSLEEK
Definition: libnjb.h:84
NJB_DEVICE_DELLDJ
#define NJB_DEVICE_DELLDJ
Definition: libnjb.h:79
njb_struct
Definition: libnjb.h:182
njb_close
void njb_close(njb_t *njb)
Definition: base.c:147
njb_get_usb_device_name
char * njb_get_usb_device_name(njb_t *njb)
Definition: base.c:369
njb_open
int njb_open(njb_t *njb)
Definition: base.c:290
NJB_DEVICE_NJB3
#define NJB_DEVICE_NJB3
Definition: libnjb.h:74
njb_struct::usb_interface
u_int8_t usb_interface
Definition: libnjb.h:186
protocol3.h
NJB_DEVICE_NJB1
#define NJB_DEVICE_NJB1
Definition: libnjb.h:72
NJB_DEVICE_CREATIVEZEN
#define NJB_DEVICE_CREATIVEZEN
Definition: libnjb.h:85
NJB_DEVICE_NJBZEN
#define NJB_DEVICE_NJBZEN
Definition: libnjb.h:75
njb_struct::device
struct usb_device * device
Definition: libnjb.h:183
njb_struct::dev
usb_dev_handle * dev
Definition: libnjb.h:184
njb_struct::usb_bulk_out_ep
u_int8_t usb_bulk_out_ep
Definition: libnjb.h:188
NJB_DEVICE_POCKETDJ
#define NJB_DEVICE_POCKETDJ
Definition: libnjb.h:83
NJB_DEVICE_NJBZENMICRO
#define NJB_DEVICE_NJBZENMICRO
Definition: libnjb.h:81
njb_discover
int njb_discover(njb_t *njbs, int limit, int *count)
Definition: base.c:89
njb_set_debug
void njb_set_debug(int flags)
Definition: base.c:350
njb_struct::device_type
int device_type
Definition: libnjb.h:189
njb_device_is_usb20
int njb_device_is_usb20(njb_t *njb)
Definition: base.c:387
NJB_DEVICE_NJBZENXTRA
#define NJB_DEVICE_NJBZENXTRA
Definition: libnjb.h:78
njb_debug
int njb_debug(int flags)
Definition: base.c:361
__sub_depth
int __sub_depth
Definition: base.c:62
njb_get_device_protocol
njb_protocol_type_t njb_get_device_protocol(njb_t *njb)
Definition: base.c:396
njb_struct::usb_bulk_in_ep
u_int8_t usb_bulk_in_ep
Definition: libnjb.h:187
NJB_DEVICE_NJB2
#define NJB_DEVICE_NJB2
Definition: libnjb.h:73
NJB_DEVICE_NJBZEN2
#define NJB_DEVICE_NJBZEN2
Definition: libnjb.h:76
njb_struct::usb_config
u_int8_t usb_config
Definition: libnjb.h:185
NJB_DEVICE_NJBZENNX
#define NJB_DEVICE_NJBZENNX
Definition: libnjb.h:77
NJB_DEVICE_NJBZENTOUCH
#define NJB_DEVICE_NJBZENTOUCH
Definition: libnjb.h:80
njb_device_entry
Definition: base.c:18
NJB_DEVICE_DELLDJ2
#define NJB_DEVICE_DELLDJ2
Definition: libnjb.h:82