add rt_usb_adk_set_string declaration

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2238 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc@gmail.com 2012-07-28 03:21:49 +00:00
parent 17ed1ba6b9
commit 03de4f8a48
1 changed files with 20 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#ifndef __RT_USB_HOST_H__ #ifndef __RT_USB_HOST_H__
#define __RT_USB_HOST_H__ #define __RT_USB_HOST_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <rtthread.h> #include <rtthread.h>
#define RT_DEBUG_USB 0x01 #define RT_DEBUG_USB 0x01
@ -312,6 +316,13 @@ struct uclass_driver
rt_err_t (*run)(void* arg); rt_err_t (*run)(void* arg);
rt_err_t (*stop)(void* arg); rt_err_t (*stop)(void* arg);
const char* manufacturer;
const char* model;
const char* description;
const char* version;
const char* uri;
const char* serial;
void* user_data; void* user_data;
}; };
typedef struct uclass_driver* ucd_t; typedef struct uclass_driver* ucd_t;
@ -453,6 +464,11 @@ ucd_t rt_usb_class_driver_adk(void);
uprotocal_t rt_usb_hid_protocal_kbd(void); uprotocal_t rt_usb_hid_protocal_kbd(void);
uprotocal_t rt_usb_hid_protocal_mouse(void); uprotocal_t rt_usb_hid_protocal_mouse(void);
/* usb adk class driver interface */
rt_err_t rt_usb_adk_set_string(const char* manufacturer, const char* model,
const char* description, const char* version, const char* uri,
const char* serial);
/* usb hub interface */ /* usb hub interface */
rt_err_t rt_usb_hub_get_descriptor(uinst_t uinst, rt_uint8_t *buffer, rt_err_t rt_usb_hub_get_descriptor(uinst_t uinst, rt_uint8_t *buffer,
rt_size_t size); rt_size_t size);
@ -548,5 +564,9 @@ rt_inline rt_err_t rt_usb_hcd_hub_control(uhcd_t hcd, rt_uint16_t port,
return hcd->ops->hub_ctrl(port, cmd, args); return hcd->ops->hub_ctrl(port, cmd, args);
} }
#ifdef __cplusplus
}
#endif
#endif #endif