Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Examples

base.h

00001 #ifndef __NJB__BASE__H
00002 #define __NJB__BASE__H
00003 
00004 #include "libnjb.h"
00005 
00009 #define NJB_PROTOCOL_OASIS 0
00010 #define NJB_PROTOCOL_PDE 1
00011 typedef u_int8_t njb_protocol_type_t;
00012 
00013 int njb_discover (njb_t *njbs, int limit, int *errorflag);
00014 void njb_device_dump (njb_t *njb, FILE *fp);
00015 int njb_open (njb_t *njb);
00016 void njb_close (njb_t *njb);
00017 void njb_set_debug (int flags);
00018 int njb_debug (int flag);
00019 char *njb_get_usb_device_name(njb_t *njb);
00020 int njb_device_is_usb20(njb_t *njb);
00021 njb_protocol_type_t njb_get_device_protocol(njb_t *njb);
00022 #define PDE_PROTOCOL_DEVICE(t) \
00023    (njb_get_device_protocol(t) == NJB_PROTOCOL_PDE)
00024 
00025 #endif /* __NJB__BASE__H */

Generated on Thu Oct 20 20:35:58 2005 for libnjb by  doxygen 1.4.4