📄 usb_common.h
字号:
/*====================================================================================================================================================================================================== Module Name: usb_common.h General Description: This file contains the variables common to all usb layers.====================================================================================================Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.This file contains copyrighted material. Use of this file isrestricted by the provisions of a Freescale Software LicenseAgreement, which has either been electronically accepted byyou or has been expressly executed between the parties.Revision History:==================================================================================================== INCLUDE FILES==================================================================================================*/#ifndef USB_COMMON_H#define USB_COMMON_H#ifdef __cplusplusextern "C" {#endif#include "su_basictypes.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 + -