libkyusb3
获取usb信息
Usage
#include <libkyusb.h> extern pDriverInfoList kdk_usb_get_list(); extern void kdk_usb_free(pDriverInfoList list); Link with -lkyusb.
Detailed Description
This library contains usb information.
Data structures
Structure pDriverInfoList contains information related to a usb information:
typedef struct driver_list {
struct driver_info *data;
struct driver_list *next;
} DriverInfoList, *pDriverInfoList;
There are other members not documented here, which are only meant for libkyusb internal use.
Structure driver_info contains information related to a usb information:
typedef struct driver_info {
char name[32]; //名称
char type[2 + 1]; //类型
char pid[4 + 1];
char vid[4 + 1];
char serialNo[32]; //序列号
char devNode[32]; //路径
} DriverInfo, *pDriverInfo;
There are other members not documented here, which are only meant for libkyusb internal use.
Return value
The return value is generally specific to the individual function called.