libnjb
2.2.6
Main Page
Modules
Data Structures
Files
Examples
File List
Globals
src
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 */
Generated on Mon Aug 6 2012 13:01:48 for libnjb by
1.8.1.1