1 /******************************************************************************
2 ** File Name: virtual_com.h *
3 ** Author: Daniel.Ding *
5 ** Copyright: 2005 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 3/25/2005 Daniel.Ding Create. *
13 ******************************************************************************/
14 #ifndef _VIRTUAL_COM_H_
15 #define _VIRTUAL_COM_H_
16 /*----------------------------------------------------------------------------*
18 **-------------------------------------------------------------------------- */
21 //#include "bsl_main.h"
23 /**---------------------------------------------------------------------------*
25 **---------------------------------------------------------------------------*/
30 /**----------------------------------------------------------------------------*
32 **----------------------------------------------------------------------------*/
34 /**----------------------------------------------------------------------------*
36 **----------------------------------------------------------------------------*/
37 typedef struct usb_handle_tag
47 } usb_handle, *usb_handle_ptr;
51 /**----------------------------------------------------------------------------*
52 ** Local Function Prototype **
53 **----------------------------------------------------------------------------*/
55 /**----------------------------------------------------------------------------*
56 ** Function Prototype **
57 **----------------------------------------------------------------------------*/
58 /*****************************************************************************/
60 // Global resource dependence:
61 // Author: Daniel.Ding
63 /*****************************************************************************/
64 char VCOM_GetChar (void);
65 /*****************************************************************************/
67 // Global resource dependence:
68 // Author: Daniel.Ding
70 /*****************************************************************************/
71 void VCOM_GetDevDescriptor (char bDirection,short wValue,short wIndex ,short wLen);
72 /*****************************************************************************/
74 // Global resource dependence:
75 // Author: Daniel.Ding
77 /*****************************************************************************/
78 void VCOM_VendorCommand (char bDirection,short wValue,short wIndex ,short wLen);
79 /*****************************************************************************/
81 // Global resource dependence:
82 // Author: Daniel.Ding
84 /*****************************************************************************/
85 void VCOM_SetAddress (char bDirection,short wValue,short wIndex ,short wLen);
86 /*****************************************************************************/
88 // Global resource dependence:
89 // Author: Daniel.Ding
91 /*****************************************************************************/
92 void VCOM_ClassCommand (char bDirection,short wValue,short wIndex ,short wLen);
93 /**----------------------------------------------------------------------------*
95 **----------------------------------------------------------------------------*/
99 /**---------------------------------------------------------------------------*/