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
int njb_debug(int flags)
Definition: base.c:361
njb_set_debug
void njb_set_debug(int flags)
Definition: base.c:350
njb_struct
Definition: libnjb.h:182
njb_get_device_protocol
njb_protocol_type_t njb_get_device_protocol(njb_t *njb)
Definition: base.c:396
njb_device_is_usb20
int njb_device_is_usb20(njb_t *njb)
Definition: base.c:387
njb_get_usb_device_name
char * njb_get_usb_device_name(njb_t *njb)
Definition: base.c:369
njb_discover
int njb_discover(njb_t *njbs, int limit, int *count)
Definition: base.c:89
njb_open
int njb_open(njb_t *njb)
Definition: base.c:290
njb_close
void njb_close(njb_t *njb)
Definition: base.c:147
libnjb.h