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

📄 l1.h

📁 台湾凌阳方案300万数码相机源代码
💻 H
字号:
/*++

Copyright (c) 2001 Sunplus Technology Co., Ltd.

Module Name:

        L1.h

Abstract:

        Header file related to L1 functions

Environment:

        Keil C51 Compiler

Revision History:

        11/12/2001      bu210    created                 

--*/

#include "device.h"

//-----------------------------------------------------------------------------
// Data type
//-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
//Constant
//------------------------------------------------------------------------------
#define L1K_SUCCESS                     0x00
#define L1K_ERROR_GENERAL               0x01
#define L1K_ERROR_PARAMETER             0x02

#define L1K_VEXTEND                     0x06

#define PRINT_L1        printf

#define AUDIO

//------------------------------------------------------------------------------
//External Link
//------------------------------------------------------------------------------
//extern  xdata   UCHAR   L2G_XXX;

//------------------------------------------------------------------------------
//Function Prototype
//------------------------------------------------------------------------------

// System
UCHAR L1_InitSPCA533(UCHAR);
void  L1_InitPowerOn(void);
void  L1_InitPreview(UCHAR);
void  L1_InitPlayback(void);
void  L1_InitPCCam(void);
void  L1_InitVideoClip(void);
void  L1_InitDSC(void);
void  L1_ISP(ULONG,ULONG,ULONG,USHORT);
void  L1_ISPUpdateRomCode(void);
void  L1_UICtrl(void);

//richie@ae0226
UCHAR  L1_3A(UCHAR Mode3A);
UCHAR  L1_AE(UCHAR);
void  L1_AWB(void);
//void  L1_AF(void);

UCHAR L1_UpLoadGOSD(ULONG, ULONG, USHORT, USHORT);
UCHAR L1_UpLoadFOSD(ULONG, ULONG);
UCHAR L1_UpLoadBadPxlCoor(USHORT RomAddr);
void  L1_TestOSD(USHORT L1_ID);

// Preview
//pathc@4.3@richie@zo
//patch5.0@richie@sdram mapping begin
//patch4.5@richie@smooth zoom begin
USHORT L1_DisplayZoomIn(UCHAR factor);
//patch4.5@richie@smooth zoom end
//patch5.0@richie@sdram mapping end
UCHAR L1_PVZoom(UCHAR);
UCHAR L1_SnapOne(PULONG,PULONG);        //ada@0111
UCHAR L1_ContiShot(UCHAR);
UCHAR L1_VideoClip(void);
UCHAR L1_DoAllBadPixel(ULONG,USHORT,USHORT);
UCHAR L1_PutDateStamp(ULONG, USHORT, USHORT, USHORT, USHORT, UCHAR, UCHAR, UCHAR, UCHAR, UCHAR);
//patch4.2@yichang@0513 for continue snapping
void postSnapping(PULONG pSize, PULONG ptmbsize);

/* // WWWW
UCHAR L1_AE(UCHAR);
UCHAR L1_AWB(UCHAR);
UCHAR L1_AF(UCHAR);
*/
UCHAR L1_PBVideo(void);

// Playback
UCHAR L1_PBOne(UCHAR);
UCHAR L1_PBFour(UCHAR);
UCHAR L1_PBNine(void);
UCHAR L1_PBZoom(UCHAR);		// WWWW
UCHAR L1_PBPan(USHORT, USHORT);
UCHAR L1_PBInfo(UCHAR);

// Audio
UCHAR L1_RecordAudio(ULONG, ULONG, ULONG, UCHAR);
UCHAR L1_PlaybackAudio(ULONG, ULONG, ULONG, UCHAR, UCHAR);


// PC
UCHAR L1_DownloadISP(ULONG, ULONG, ULONG, USHORT);
UCHAR L1_DownloadToDRAM(ULONG, ULONG);
UCHAR L1_UploadFromDRAM(ULONG, ULONG);
UCHAR L1_UploadFAT(UCHAR);
UCHAR L1_UploadFile(UCHAR);
UCHAR L1_UploadAll(UCHAR);
UCHAR L1_DownloadToFlash(ULONG, ULONG);
UCHAR L1_UploadFromFlash(ULONG, ULONG);


// OSD
UCHAR L1_SimUpLoadFOSD(UCHAR);
UCHAR L1_SimDownLoadFOSD(UCHAR);
UCHAR L1_GOSDEnter(void);
UCHAR L1_GOSDExit(void);
UCHAR L1_GOSDShiftR(void);
UCHAR L1_GOSDShiftL(void);


// FileSystem
UCHAR L1_DeleteImage(void);
UCHAR L1_LockImage(UCHAR);
UCHAR L1_ReadImage(UCHAR);
UCHAR L1_WriteImage(UCHAR);


//Storage
UCHAR L1_NANDtoDRAM(ULONG, ULONG, ULONG);
UCHAR L1_DRAMtoNAND(ULONG, ULONG, ULONG);

#ifdef CFAIDE
UCHAR L1_DMAWrCFIDE(UCHAR, UCHAR, UCHAR, UCHAR, UCHAR, ULONG, USHORT);
UCHAR L1_DMARdCFIDE(UCHAR, UCHAR, UCHAR, UCHAR, UCHAR, ULONG, USHORT);
#endif
#ifdef CFAMEM
UCHAR L1_DMAWrCFMEM(UCHAR, UCHAR, UCHAR, UCHAR, UCHAR, ULONG, USHORT);
UCHAR L1_DMARdCFMEM(UCHAR, UCHAR, UCHAR, UCHAR, UCHAR, ULONG, USHORT);
#endif

#ifdef SD
UCHAR L1_SDIdentification(USHORT);
UCHAR L1_DMAWrSD(UCHAR, ULONG , ULONG, USHORT );
UCHAR L1_DMARdSD(UCHAR, ULONG , ULONG, USHORT );
//richie@vc0422
UCHAR L1_DMARdSDBulk2(UCHAR Dst, ULONG SAdr, ULONG BlockCnt, USHORT BlockSize);

UCHAR L1_SDCheckState(void);
UCHAR L1_SDSetBusMode(UCHAR );
UCHAR L1_SDEraseData(ULONG , ULONG );
#endif

//version4.0@ada@0513 for MMC
#ifdef MMC
UCHAR L1_MMCIdentification(USHORT);
UCHAR L1_DMAWrMMC(UCHAR, ULONG , ULONG, USHORT );
UCHAR L1_DMARdMMC(UCHAR, ULONG , ULONG, USHORT );
//richie@vc0422
UCHAR L1_DMARdMMCBulk2(UCHAR Dst, ULONG SAdr, ULONG BlockCnt, USHORT BlockSize);

UCHAR L1_MMCCheckState(void);
UCHAR L1_MMCEraseData(ULONG , ULONG );
#endif

//patch4.5@ada@Add timeout count begin
UCHAR  L1_ReadNandID(UCHAR*, UCHAR*);
//void  L1_ReadNandID(UCHAR*, UCHAR*);

UCHAR  L1_EraseNandBlock(UCHAR, ULONG, UCHAR*);
//void  L1_EraseNandBlock(UCHAR, ULONG, UCHAR*);
//patch4.5@ada@Add timeout count end

UCHAR L1_DMAWrNAND(UCHAR, UCHAR, ULONG, ULONG, USHORT);
UCHAR L1_DMARdNAND(UCHAR, UCHAR, ULONG, ULONG, USHORT);


// Dummy code
extern code unsigned char Dummy[];
extern code unsigned char Dummy0[];
extern code unsigned char Dummy1[];

// WWWW0409 start
void SetStdColor2( void );
void SetStdColor( void );
void CamStatus( void );
void GetAvgLum(PUSHORT Avg);

// WWWW0409 end

// 3A
void L1_AppSnapOne();
void L1_AppSnapRaw();

//patch4.4@yichang@badpixel begin
void L1_AppSnapRawSub();
UCHAR L1_BadPixelDRAMToNAND(void);
//patch4.4@yichang@badpixel end

// Test
void  L1_Demo(void);
void  L1_PCcamPower(void);
//patch5.0@richie@sdram mapping begin
//void  L1_CapturePower(void);
//void  L1_CDSPPower(void);
//void  L1_CompressPower(void);
//void  L1_DeCompressPower(void);
void  L1_PreviewPower(void);
void  L1_UpLoadPower(void);
void  L1_DnLoadPower(void);
//void  L1_DoCDSP2(void);
//patch5.0@richie@sdram mapping end
void Set_Edge(void );


// Test
#ifdef TestModeEn



#endif






⌨️ 快捷键说明

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