bulkin.c
来自「dz3000_51.0.0.4.rar」· C语言 代码 · 共 130 行
C
130 行
/*++
Copyright (c) 2001 Sunplus Technology Co., Ltd.
Module Name:
bulkin.c
Abstract:
Module related to bulk in pipe
Environment:
Keil C51 Compiler
Revision History:
08/28/2001 Chi-Yeh Tsai created
--*/
//=============================================================================
//Header file
//=============================================================================
#include "general.h"
#include "bulkin.h"
#include "bulkout.h"
#include "intr.h"
#include "main.h"
#include "usbmsdc2.h"
#include "usbsidc.h"
//richie@si0425
#include "uiflow.h"
//=============================================================================
//Symbol
//=============================================================================
//-----------------------------------------------------------------------------
//Constant
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//Variable
//-----------------------------------------------------------------------------
//=============================================================================
//Program
//=============================================================================
//-----------------------------------------------------------------------------
//BULKIN_Packet
//-----------------------------------------------------------------------------
void BULKIN_Packet(void) USING_1
/*++
Routine Description:
process packet of bulk in pipe of storage interface
Arguments:
none
Return Value:
none
--*/
{
//richie mark
//#if 0
#if (USBMSDC_OPTION == 1)
if (G_ucPktStorIntrf == K_StorageInterface1)
{
if (G_ucStorIntrf1Class == K_MassStorageClassCbi)
USBMSDC_CbiBulkInData();
}
else //if (G_ucPktStorIntrf == K_StorageInterface2)
{
if (G_ucStorIntrf2Class == K_MassStorageClassCbi)
USBMSDC_CbiBulkInData();
}
#endif
#if (USBMSDC_OPTION == 2)
if (G_ucPktStorIntrf == K_StorageInterface1)
{
//richie@si0417
// if (G_ucStorIntrf1Class == K_MassStorageClassBo)
// if (G_ui_status == K_UI_mass_storage)
if ( ((G_UIStatus & 0xff00) == K_UISTATUS_USBMODE_MASS) //yichang@replace
&& (G_CameraOptions.Storage == K_UIOPTION_STORAGE_MSDC) )
USBMSDC_BoBulkInData();
}
else //if (G_ucPktStorIntrf == K_StorageInterface2)
{
//richie@si0417
// if (G_ucStorIntrf2Class == K_MassStorageClassBo)
// if (G_ui_status == K_UI_mass_storage)
if ( ((G_UIStatus & 0xff00) == K_UISTATUS_USBMODE_MASS) //yichang@replace
&& (G_CameraOptions.Storage == K_UIOPTION_STORAGE_MSDC) )
USBMSDC_BoBulkInData();
}
#endif
#if (USBSIDC_OPTION == 1)
if (G_ucPktStorIntrf == K_StorageInterface1)
{
//richie@si0417
// if (G_ucStorIntrf1Class == K_StillImageClass)
// if (G_ui_status == K_UI_still_image_class)
if ( ((G_UIStatus & 0xff00) == K_UISTATUS_USBMODE_MASS) //yichang@replace
&& (G_CameraOptions.Storage == K_UIOPTION_STORAGE_SIDC) )
USBSIDC_BulkInData();
}
else //if (G_ucPktStorIntrf == K_StorageInterface2)
{
//richie@si0417
// if (G_ucStorIntrf2Class == K_StillImageClass)
// if (G_ui_status == K_UI_still_image_class)
if ( ((G_UIStatus & 0xff00) == K_UISTATUS_USBMODE_MASS) //yichang@replace
&& (G_CameraOptions.Storage == K_UIOPTION_STORAGE_SIDC) )
USBSIDC_BulkInData();
}
#endif
//richie mark
//#endif
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?