usbh.h

来自「USB Host在嵌入式系统中的实现.包括所有源代码.」· C头文件 代码 · 共 41 行

H
41
字号
/*
 *  Start of Zoran Standard Header
 *  Copyright (c) 2003 Zoran Corporation
 *  
 *  
 *  All rights reserved.  Proprietary and confidential.
 *  
 *  DESCRIPTION for usbh.h
 *  	Include for USB host / PTP interface
 *  
 *  NEW HISTORY COMMENT (description must be followed by a blank line)
 *  <Enter change description here>

 *  ===== HISTORY of changes in //depot/misc/projects/tps/incl/usbh.h
 *  
 *  12/Jan/04 #35 JCogan, porting to the 4100 Reference platform.
 *                          Previous comments removed.
 *  
 *  
 *  
 *  End of Zoran Standard Header
 */
#ifndef USBH_INCLUDED
#define USBH_INCLUDED

typedef enum {
    PTP_USB_OK,
    PTP_USB_NAK,
    PTP_USB_D_CANCEL,
    PTP_USB_H_CANCEL,
    PTP_USB_ERROR,
    PTP_USB_GONE
} PTPIO_RETN;


PTPIO_RETN PTP_USB_Read(Uint32 UniqueDeviceID,Uint8* Buf,Uint32 Size,Uint32 *retCount);
PTPIO_RETN PTP_USB_Write(Uint32 UniqueDeviceID,Uint8 *Buf,Uint32 Size);
PTPIO_RETN PTP_USB_ReadInterrupt(Uint32 UniqueDeviceID,Uint8 *Buf,Uint32 Size,Uint32 *retCount);

#endif /* USBH_INCLUDED*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?