| /******************************************************************************* | |
| * Copyright (C) 2007, ZTE Corporation. | |
| * | |
| * File Name: | |
| * File Mark: | |
| * Description: | |
| * Others: | |
| * Version: 1.0 | |
| * Author: weizhgiang | |
| * Date: 2010-5-18 | |
| * History 1: | |
| * Date: | |
| * Version: | |
| * Author: | |
| * Modification: | |
| * History 2: | |
| ********************************************************************************/ | |
| #ifndef _DRVS_USBPOLL_H | |
| #define _DRVS_USBPOLL_H | |
| /**************************************************************************** | |
| * Include files | |
| ****************************************************************************/ | |
| /**************************************************************************** | |
| * Macros | |
| ****************************************************************************/ | |
| /**************************************************************************** | |
| * Types | |
| ****************************************************************************/ | |
| /**************************************************************************** | |
| * Constants | |
| ****************************************************************************/ | |
| /**************************************************************************** | |
| * Global Variables | |
| ****************************************************************************/ | |
| /**************************************************************************** | |
| * Function Prototypes | |
| ****************************************************************************/ | |
| /******************************************************************************* | |
| * Function: zDrvUsbPoll_Init | |
| * Description: | |
| 1¡¢¶Ï¿ªÓëPC²àµÄµ±Ç°Á¬½Ó | |
| 2¡¢³õʼ»¯USBÄÚ²¿µÄÊý¾Ý½á¹¹ | |
| 3¡¢ÖØÐÂÆô¶¯Á¬½Ó£¨Æô¶¯Á¬½Óºó£¬ÒªÇózDrvUsbPoll_IsrÁ¢¼´»ñµÃ²éѯ£© | |
| * Parameters: | |
| * Input: | |
| * | |
| * Output: | |
| * | |
| * Returns: | |
| * | |
| * | |
| * Others: | |
| ********************************************************************************/ | |
| SINT32 zDrvUsbPoll_Init(VOID); | |
| /******************************************************************************* | |
| * Function: zDrvUsbPoll_isConnect | |
| * Description: | |
| 1¡¢ÅжÏö¾ÙÊÇ·ñÍê³É | |
| * Parameters: | |
| * Input: | |
| * | |
| * Output: | |
| * | |
| * Returns: | |
| * | |
| * | |
| * Others: | |
| ********************************************************************************/ | |
| BOOL zDrvUsbPoll_isConnect(VOID); | |
| /******************************************************************************* | |
| * Function: zDrvUsbPoll_Isr | |
| * Description: | |
| 1¡¢USBÖжϴ¦Àíº¯Êý£¬ÐèÒª²»¶Ï²éѯ | |
| * Parameters: | |
| * Input: | |
| * | |
| * Output: | |
| * | |
| * Returns: | |
| * | |
| * | |
| * Others: | |
| ********************************************************************************/ | |
| SINT32 zDrvUsbPoll_Isr(VOID); | |
| /******************************************************************************* | |
| * Function: zDrvUsbPoll_Read | |
| * Description: | |
| USB¶Áº¯Êý£¬Òì²½·½Ê½¡£¼´Èç¹ûûÓжÁµ½Êý¾Ý£¬Á¢¿Ì·µ»Ø0 | |
| * Parameters: | |
| * Input: | |
| * | |
| * Output: | |
| * | |
| * Returns: | |
| * | |
| * | |
| * Others: | |
| ********************************************************************************/ | |
| SINT32 zDrvUsbPoll_Read(UINT8* pBuf,UINT32 length); | |
| /******************************************************************************* | |
| * Function: zDrvUsbPoll_Write | |
| * Description: | |
| USBдº¯Êý£¬Òì²½·½Ê½¡£¼´Èç¹ûûÓжÁµ½Êý¾Ý£¬Á¢¿Ì·µ»Ø0 | |
| * Parameters: | |
| * Input: | |
| * | |
| * Output: | |
| * | |
| * Returns: | |
| * | |
| * | |
| * Others: | |
| ********************************************************************************/ | |
| SINT32 zDrvUsbPoll_Write(UINT8* pBuf,UINT32 length); | |
| /******************************************************************************* | |
| * Function: usbPoll_Delay_us | |
| * Description: | |
| delay function | |
| * Parameters: | |
| * Input: | |
| * | |
| * Output: | |
| * | |
| * Returns: | |
| * | |
| * | |
| * Others: | |
| ********************************************************************************/ | |
| VOID usbPoll_Delay_us(UINT32 us); | |
| /******************************************************************************* | |
| * Function: usbPoll_Delay_us | |
| * Description: | |
| delay function | |
| * Parameters: | |
| * Input: | |
| * | |
| * Output: | |
| * | |
| * Returns: | |
| * | |
| * | |
| * Others: | |
| ********************************************************************************/ | |
| VOID usbPoll_Delay_ms(UINT32 ms); | |
| #endif/*_DRVS_USBPOLL_H*/ | |