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

📄 drvotgmain.h

📁 MSTAR03的数码相框的代码
💻 H
字号:
#ifndef __DRVOTGMAIN_H_
#define __DRVOTGMAIN_H_
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <R8051XC.h>

#include "msCompiler.h"
#include "msConfig.h"
#include "msCpu.h"
#include "msDrc.h"
#include "msDMA.h"
#include "msOTG.h"
#include "msUSB.h"

//use for PictureBridge
#include "msFunction.h"
#include "msPTP.h"
#include "msDPS.h"
#include "msXML.h"
#include "msPB.h"

//use for OTG Host Mode
#include "msHost.h"
#include "msMSD.h"
#include "msScsi.h"

//use for Mass Storage of Device mode
#include "ms_msd_fn_xfer.h"
#include "ms_msd_fn_scsi.h"
#include "drvUTMI.h"
#include "datatype.h"
//#include "define.h"

//#include "msAPI_PBCtrl.h"

#if 0
void MDrv_OTG_Init(void);
BYTE MDrv_OTG_Routine(PBSTATUS *PBC);
void MDrv_OTG_Connect(PBSTATUS *PBC);
void MDrv_OTG_Disconnect(void);
BYTE MDrv_PBStartPrint(PICTUREINFO PictureInfo);
void MDrv_PBAbortJob(void);
void MDrv_PBContinueJob(void);
#endif
//BYTE PictureBridgeStarPrint(__u16 ImageWidth,__u16 ImageHeight,__u32 ImageSize,__u32 ImageAddr,__u32 ThumbSize);
//BYTE PBRoutine(void);
//void PBStartPrint(PICINFO PictureInfo);

void MDrv_OTG_Init(void);
void MDrv_OTG_Routine(void);

#if 0
void MDrv_OTG_Init2(void);
void MDrv_OTG_Routine2(void);
#endif

//#define Enable_OTG_Host
#define Enable_Device_MassStorage
#define No_use_usbMass_Data_Buffer

#ifdef Enable_OTG_Host
#define E_OTG_Host 1
#else
#define E_OTG_Host 0
#endif

#ifdef Enable_Device_MassStorage
#define E_OTG_Mass 1
#else
#define E_OTG_Mass 0
#endif

#if (E_OTG_Host || E_OTG_Mass)
#define Enable_OTG_Host_MassStorage_Share
#endif

#define OTG_READ_WRITE_TEST
#define Enable_OTG_TestPacket_Test


#endif //_DRVOTGMAIN_H_

⌨️ 快捷键说明

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