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

📄 srvudeif.h

📁 ct952 source code use for Digital Frame Photo
💻 H
📖 第 1 页 / 共 2 页
字号:
//===========================================================================//         CheerTek CT909 Combo DVD-Player Servo Firmware////         Filename    : srvudeif.h//         Description : Definitions UDE interface//===========================================================================//---------------------------------------------------------------------------#ifndef __SRVUDEIF_H__//---------------------------------------------------------------------------#define __SRVUDEIF_H__//**********************************************//		IC test define  //***********************************************///#define		BM_FPGA_Only#ifdef 		BM_FPGA_Only//Add by Jessie Lin#define		Wr_TEST	0x01#define     Rd_TEST  0x02/////////////////////////////////////////////////#define		DISCTYPE	0x00#define		DVD			0x00#define		CD			0x01//////////////////////////////////////////////////Second level Define///////////////////////////////////////////////#define			READ_REG_ONLY//#define		   	DVDmode#define		   	Trigger_ECC_Test#define        	COUNT_ERROR_TEST#define			FOR_BM_FPGA#define			BM_SYSTEM//***********************************************//		IC Test Define//***********************************************//Add by Jessie Lin for define IC test Function//#define		REGISTER_TEST//#define		DRAMTest//#define		POWER_ON_TEST//#define		Q_CODE_UPDATE_TACE_FUNCTION//#define		CDDA_C3_TACE_FUNCTION#define		BIU_EQUEL_DUMPIN_STOP_TEST#define		DECODEICTEST//#define		ENABLE_PI_ON_THE_FLY//#define     ENABLE_CDDA_DUMPIN_RIGHTAWAY//#define        ID_SOURCE_SELECT#endif//==========================================================================// Firmware version setting//==========================================================================#define SRV_FIRMWARE_VERSION_MAIN    (277)#define SRV_FIRMWARE_VERSION_MINOR   (1L)   // 0: none; 1: a; 2: b; 3: c; ...#define SRV_FIRMWARE_VERSION_REV     (0L)   // 0: none; 1: a; 2: b; 3: c; ...//#define SERVO_FIRMWARE_VERSION       ((SRV_FIRMWARE_VERSION_MAIN<<16)+(SRV_FIRMWARE_VERSION_MINOR<<8))#define SERVO_FIRMWARE_VERSION       ((SRV_FIRMWARE_VERSION_MAIN<<16)+(SRV_FIRMWARE_VERSION_MINOR<<8) + SRV_FIRMWARE_VERSION_REV)#define FIRMWARE_VERSION             (SERVO_FIRMWARE_VERSION)//===========================================================================//      FBCR/FTGR tuning relative setting//===========================================================================//===========================================================================//      Media Format Type (Logical Viewpoint): gbDiscFormat//===========================================================================#define DISC_FORMAT_UNKNOW            0xFF#define DISC_FORMAT_ERROR             0xF0#define DISC_FORMAT_DVD_ROM           0x00#define DISC_FORMAT_DVD_RAM           0x01#define DISC_FORMAT_DVD_MINUS_R       0x02#define DISC_FORMAT_DVD_MINUS_RW      0x03#define DISC_FORMAT_DVD_PLUS_R        0x0A#define DISC_FORMAT_DVD_PLUS_RW       0x09//#define DISC_FORMAT_CDDA              0x80   // CD-DA//#define DISC_FORMAT_MODE1             0x81   // CD Mode 1 (ex. CD-ROM)//#define DISC_FORMAT_M2F1              0x82   // CD Mode 2 Form 1 (ex. VCD control data)//#define DISC_FORMAT_M2F2              0x83   // CD Mode 2 Form 2 (ex. VCD AV data)// Same value as MPEG's definition#define DISC_FORMAT_VCD               0x94   // CD-VCD#define DISC_FORMAT_CDI               0x8A   // CD-CDI#define DISC_FORMAT_CDDA              0x84   // CD-CDDA#define DISC_FORMAT_MODE1             0x81   // CD Mode 1 (ex. CD-ROM)#define DISC_FORMAT_M2F1              0x82   // CD Mode 2 Form 1 (ex. VCD control data)#define DISC_FORMAT_M2F2              0x83   // CD Mode 2 Form 2 (ex. VCD AV data)//#define DISC_FORMAT_SACD              0xA0//Cyyang1210#define DISC_FORMAT                   0x01#define START_BUFFER                  0x02#define FLASH_END_BUFFER              0x04#define INITIAL_BUFFER                0x08#define EDC_BUFINITIAL 0x01#define SECTORFORMAT   0x02#define EDCRESULT_OK   0x03#define EDCRESULT_FAIL 0x04#define ABORT_DUMPIN   0x05#define RIGHTAWAY_CDDA 0x06//===========================================================================//      Communication Command Definition//===========================================================================#define CMD_OPEN_TRAY                 0x01#define CMD_CLOSE_TRAY                0x02#define CMD_START_UNIT                0x03#define CMD_CONFIGURE_EDC_ARRAY       0x04#define CMD_CONFIGURE_BUFFER          0x05#define CMD_READ_CD                   0x06#define CMD_READ_DVD                  0x07//#define CMD_READ_DVD_CONTROL_DATA     0x08//#define CMD_READ_DVD_BCA              0x09#define CMD_SEEK                      0x0A#define CMD_GET_STATUS                0x0B#define CMD_POWER_MANAGEMENT          0x0C#define CMD_SERVO_DEBUG               0x0D#ifdef AutoTuning_SERVO #define CMD_TEST_SHORT_SEEK         0x0E    //kenny 070417#endif//===========================================================================//      Communication Command Check//===========================================================================#define CMD_CHECK_TRAY_OPEN           0x00000001#define CMD_CHECK_TRAY_CLOSE          0x00000002#define CMD_CHECK_DISC_EXIST          0x00000004#define CMD_CHECK_SERVO_ON            0x00000008#define CMD_CHECK_LEADIN_OK           0x00000010#define CMD_CHECK_DISC_CD             0x00000020#define CMD_CHECK_DISC_DVD            0x00000040#define CMD_CHECK_PARA                0x00000080#define CMD_CHECK_ID                  0x00000100//********************************************************//      GET_STATUS command//********************************************************#define TRAY_STATUS             0x07#define TRAY_OPEN               0x00#define TRAY_OPENING            0x01#define TRAY_CLOSE              0x02#define TRAY_CLOSING            0x03#define USER_TRAY_IN            0x04#define TRAY_OPEN_FAIL          0x05#define TRAY_CLOSE_FAIL         0x06#define TRAY_UNKNOWN            0x07   // power-on or close-tray initial value#define SPINDLE_STATUS          0x08#define SPINDLE_STOP            0x00#define SPINDLE_ROTATE          0x08   // power-on or close-tray initial value#define MEDIA_STATUS            0x30#define MEDIA_ANALYZING         0x00   // power-on or close-tray initial value#define MEDIA_PRESENT           0x10#define MEDIA_NOT_PRESENT       0x20#define MEDIA_UNKNOWN           0x30//********************************************************//      Result Codes//********************************************************#define NO_ERROR                        0x00#define CMD_ABORT                       0x10#define CMD_ERROR                       0x20#define CMD_ERROR_UNDEFINED_PARAMETER   0x20#define CMD_ERROR_SRV_NOT_READY         0x21#define CMD_ERROR_NO_DISC               0x22#define CMD_ERROR_UNKNOWN_DISC          0x23#define CMD_ERROR_WRONG_DISC_TYPE       0x24#define CMD_ERROR_WRONG_TRAY_STATUS     0x25#define CMD_ERROR_WRONG_START_ADDR      0x26#define CMD_ERROR_WRONG_STOP_ADDR       0x27#define CMD_ERROR_WRONG_BUFFER_NUMBER   0x28//===========================================================================//      Servo machine definitions//===========================================================================#define WAIT_NEWCMD              0xFF    // set this value after result code returned#define NEW_CMD_PACKET_LENGTH      12#define RET_PACKET_LENGTH          12#define MAX_TOC_ENTRY              50#define READY                       0  // active low#define BUSY                        1//===========================================================================//      Servo Command Definition//===========================================================================#define SRV_OPEN_TRAY           0x00#define SRV_CLOSE_TRAY          0x01#define SRV_START_UNIT          0x02#define SRV_STOP_UNIT           0x03#define SRV_SEEK                0x04#define SRV_JUMP_TRACK          0x05#define SRV_WAKEUP              0x06#define SRV_DYNAMIC_TUNING      0x07#ifdef SUPPORT_DYNAMIC_TUNING#define SRV_KK                  0x08#endif

⌨️ 快捷键说明

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