blob: 01e08471ef68a063e130b5ee015b2bd2d911cbf8 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*******************************************************************************
2 * Copyright (C) 2007, ZTE Corporation.
3 *
4 * File Name:
5 * File Mark:
6 * Description:
7 * Others:
8 * Version: 1.0
9 * Author: weizhgiang
10 * Date: 2010-5-18
11 * History 1:
12 * Date:
13 * Version:
14 * Author:
15 * Modification:
16 * History 2:
17 ********************************************************************************/
18
19#ifndef _DRVS_USBPOLL_H
20#define _DRVS_USBPOLL_H
21
22
23/****************************************************************************
24* Include files
25****************************************************************************/
26
27
28/****************************************************************************
29* Macros
30****************************************************************************/
31
32
33/****************************************************************************
34* Types
35****************************************************************************/
36
37/****************************************************************************
38* Constants
39****************************************************************************/
40
41/****************************************************************************
42* Global Variables
43****************************************************************************/
44
45/****************************************************************************
46* Function Prototypes
47****************************************************************************/
48
49/*******************************************************************************
50 * Function: zDrvUsbPoll_Init
51 * Description:
52 1¡¢¶Ï¿ªÓëPC²àµÄµ±Ç°Á¬½Ó
53 2¡¢³õʼ»¯USBÄÚ²¿µÄÊý¾Ý½á¹¹
54 3¡¢ÖØÐÂÆô¶¯Á¬½Ó£¨Æô¶¯Á¬½Óºó£¬ÒªÇózDrvUsbPoll_IsrÁ¢¼´»ñµÃ²éѯ£©
55 * Parameters:
56 * Input:
57 *
58 * Output:
59 *
60 * Returns:
61 *
62 *
63 * Others:
64 ********************************************************************************/
65SINT32 zDrvUsbPoll_Init(VOID);
66
67
68
69/*******************************************************************************
70 * Function: zDrvUsbPoll_isConnect
71 * Description:
72 1¡¢ÅжÏö¾ÙÊÇ·ñÍê³É
73 * Parameters:
74 * Input:
75 *
76 * Output:
77 *
78 * Returns:
79 *
80 *
81 * Others:
82 ********************************************************************************/
83BOOL zDrvUsbPoll_isConnect(VOID);
84
85
86
87/*******************************************************************************
88 * Function: zDrvUsbPoll_Isr
89 * Description:
90 1¡¢USBÖжϴ¦Àíº¯Êý£¬ÐèÒª²»¶Ï²éѯ
91 * Parameters:
92 * Input:
93 *
94 * Output:
95 *
96 * Returns:
97 *
98 *
99 * Others:
100 ********************************************************************************/
101SINT32 zDrvUsbPoll_Isr(VOID);
102
103
104/*******************************************************************************
105 * Function: zDrvUsbPoll_Read
106 * Description:
107 USB¶Áº¯Êý£¬Òì²½·½Ê½¡£¼´Èç¹ûûÓжÁµ½Êý¾Ý£¬Á¢¿Ì·µ»Ø0
108 * Parameters:
109 * Input:
110 *
111 * Output:
112 *
113 * Returns:
114 *
115 *
116 * Others:
117 ********************************************************************************/
118SINT32 zDrvUsbPoll_Read(UINT8* pBuf,UINT32 length);
119
120
121/*******************************************************************************
122 * Function: zDrvUsbPoll_Write
123 * Description:
124 USBдº¯Êý£¬Òì²½·½Ê½¡£¼´Èç¹ûûÓжÁµ½Êý¾Ý£¬Á¢¿Ì·µ»Ø0
125 * Parameters:
126 * Input:
127 *
128 * Output:
129 *
130 * Returns:
131 *
132 *
133 * Others:
134 ********************************************************************************/
135SINT32 zDrvUsbPoll_Write(UINT8* pBuf,UINT32 length);
136
137/*******************************************************************************
138 * Function: usbPoll_Delay_us
139 * Description:
140 delay function
141 * Parameters:
142 * Input:
143 *
144 * Output:
145 *
146 * Returns:
147 *
148 *
149 * Others:
150 ********************************************************************************/
151VOID usbPoll_Delay_us(UINT32 us);
152
153/*******************************************************************************
154 * Function: usbPoll_Delay_us
155 * Description:
156 delay function
157 * Parameters:
158 * Input:
159 *
160 * Output:
161 *
162 * Returns:
163 *
164 *
165 * Others:
166 ********************************************************************************/
167VOID usbPoll_Delay_ms(UINT32 ms);
168
169#endif/*_DRVS_USBPOLL_H*/
170