⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usb_common.h

📁 freescale atk source code
💻 H
字号:
/*======================================================================================================================================================================================================    Module Name:  usb_common.h    General Description: This file contains the variables common to all usb     layers.====================================================================================================    Copyright (C) 2006, Freescale Semiconductor, Inc. All Rights Reserved    THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT    BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF    Freescale Semiconductor, Inc.Revision History:                            Modification     TrackingAuthor                      Date (mm/dd/yy)   Number     Description of Changes-------------------------   ------------    ----------   -------------------------------------------Bharat Bhushan               05/10/2006     TLSbo68884   Initial Version ( USB Layer Architecture).====================================================================================================                                        INCLUDE FILES==================================================================================================*/#ifndef USB_COMMON_H#define USB_COMMON_H#ifdef __cplusplusextern "C" {#endif#include <suapi.h>/* USB Device State which are handled by DCD */typedef enum{    USB_DEV_DUMMY_STATE,    USB_DEV_DEFAULT_STATE,    USB_DEV_ADDRESSED_STATE,    USB_DEV_CONFIGURED_STATE}usb_state_t;/* Buffer descriptor used for data transfer on USB */typedef struct {    void * buffer ;	/* Address of the buffer to/from data is to be transmitted */    U32 size ;          /*  size of the buffer to  be transmitted/recieved */    U32 bytes_transfered; /* actual number of bytes transfered */}usb_buffer_descriptor_t;/* Status of all transaction on USB */typedef enum{    USB_SUCCESS,    USB_FAILURE,    USB_INVALID = -1 /* Always Keep this entry in last */}usb_status_t;#ifdef __cplusplus} /* extern C++ */#endif#endif  /* USB_COMMON_H */

⌨️ 快捷键说明

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