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

📄 mu_mtp.h

📁 本程序为ST公司开发的源代码
💻 H
字号:
/******************************************************************
*                                                                *
*        Copyright Mentor Graphics Corporation 2006              *
*                                                                *
*                All Rights Reserved.                            *
*                                                                *
*    THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION *
*  WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS   *
*  LICENSORS AND IS SUBJECT TO LICENSE TERMS.                    *
*                                                                *
******************************************************************/

/*
 * MUSB-MicroSW Media Transfer protcol (MTP) definitions.
 * $Revision: 1.1 $
 */

#ifndef __MUSB_MTP_H__
#define __MUSB_MTP_H__


/***************************************************************/
/************** For MTP bulk transfer **************************/
/************** (MTP interface class) **************************/
/***************************************************************/
/**
 * MGC_MtpBpc.  (MTP Bulk pipe container)
 * MTP Command Block Wrapper.
 * @field dwBpcContainerLength Container length
 * @field dBpcContainerType : 0,undefined 1,Command 2,Data 3,Response 4,Event
 * @field dBpcCode This is OperationCode, ResponseCode or EventCode
 * @field dwBpcTransactionID ID created by host, echoed in Respose block
 * @field pBpcPayload Parameter N are embedded.This field depend on the operation.
 */
typedef struct _MGC_MtpBpc
{
    uint32_t  dwBpcContainerLength;
    uint16_t  dBpcContainerType;
    uint16_t  dBpcCode;
    uint32_t  dwBpcTransactionID;
    uint32_t  pBpcPayload[5]; // max parameter number is 5. one parameter is 32 bytes.
} MGC_MtpBpc;

/**
 * MGC_MtpRbp.    (MTP Response Block Payload)
 * MTP Command Status Wrapper.
 * @field dwRbpContainerLength Container length
 * @field dRbpContainerType : 0,undefined 1,Command 2,Data 3,Response 4,Event
 * @field dRbpCode : always 0x2001 ???
 * @field dwRbpTransactionID ID created by host, echoed in Respose block
 */
typedef struct
{
    uint32_t dwRbpContainerLength;
    uint16_t dRbpContainerType;
    uint16_t dRbpCode;
    uint32_t dwRbpTransactionID;
    uint32_t dwRbpPayload[5];
} MGC_MtpRbp;


#endif	/* multiple inclusion protection */

⌨️ 快捷键说明

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