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

📄 cdconst.h

📁 一个两碟控制的VCD的代码,两碟之间的转动及连续播放,已大量生产的CODE.
💻 H
字号:
/* SCCSID @(#)cdconst.h	1.2 1/22/98 *//* * This is from Customer 007 *//* constant for compiling control */#define MAX_TRK  100#define SCOR_CHK_HIGH   12#define SCOR_CHK_HIGH2  1500        /*  12ms   Roland 97/8/22 */#define AUTO_SAMPTIME   32          /* 32x8u = 250us *//* constant for cd mode */#define MODE_OPEN   0#define MODE_UNLD   1#define MODE_LOAD   2#define MODE_STOP   3#define MODE_SLED   4#define MODE_FCS    5#define MODE_TOC    6#define MODE_ACES   7#define MODE_CUE    8#define MODE_PLAY   9#define T_OPEN  0#define T_UNLD  1#define T_LOAD  2#define T_STOP  3#define T_SLED  4#define T_FCS   5#define T_TOC   6#define T_ACES  7#define T_CUE   8#define T_PLAY  9#define T_RUN   10#define T_NOP   11#define T_EMR   12#define T_ROTATE   0x0E#define CHANGE_MODU 99#define OPEN_NS     0x0b#define NODISC_NS   0x09#define INIT_NS     0x08#define STOP_NS     0x05#define ACES_NS     0x04#define PLAY_NS     0x03#define PAUSE_NS    0x01#define VCD_WS      0x01#define CDDA_WS     0x02#define FTRK_WS     0x03#define RTRK_WS     0x04#define BIT7    0x80#define BIT6    0x40#define BIT5    0x20#define BIT4    0x10#define BIT3    0x08#define BIT2    0x04#define BIT1    0x02#define BIT0    0x01/* cd_tray */#define B0_OPNREQ   BIT0/* cd_sense */#define B7_NODISC   BIT7#define B6_QDRP     BIT6#define B5_FCSDRP   BIT5#define B4_QOK      BIT4#define B3_QINT     BIT3#define B2_GFSDRP   BIT2#define B1_FOK      BIT1#define B0_FCSON    BIT0/* cd_tocdat */#define B4_TOCOK    BIT4#define B3_ALLTRK   BIT3#define B2_ETIME    BIT2#define B1_ETRK     BIT1#define B0_BTRK     BIT0/* cd_type */#define B7_CURRMD   BIT7#define B1_PBC      BIT1#define B0_VCD      BIT0/* cd_access */#define B7_DIR      BIT7#define B6_DIFF     BIT6#define B5_RD_LESSQ     BIT5#define B3_RUNERR   BIT3#define B2_TGANRM_REQ BIT2#define B1_PAUSE    BIT1#define B0_ACSREQ   BIT0/* cd_status */#define B7_WRN      BIT7#define B6_TCMD     BIT6#define B5_SPIN     BIT5#define B2_SPINEMR  BIT2   /* 97/12/27 ROLAND */#define B1_DBSP     BIT1#define B0_FIRSTMD  BIT0/* cd_vfd_ctrl */#define B7_SREM     BIT7#define B6_AREM     BIT6#define B5_FCSDRP   BIT5#define B4_QOK      BIT4#define B3_QINT     BIT3#define B2_FOK      BIT2#define B1_PAUSE_ON BIT1#define B0_INTRO_ON BIT0/* cd_power */#define B0_MPWRON   BIT0/* cd_config */#define B0_3DISC    BIT0/* cd_vfd20_flag */#define B3_CAL      BIT3#define B2_MINSEC   BIT2#define B1_TRK      BIT1#define B0_PLAY     BIT0/* cd_mute */#define B0_AMUTE    BIT0/* cd_mpeg */#define B0_SEND_PTIME   BIT0/* cd_autoflg */#define B7_FCSBIAS  BIT7#define B6_TRKBAL   BIT6#define B5_TRKGAIN  BIT5#define B4_FCSGAIN  BIT4#define B3_FBIAS_MINUS BIT3#define B1_TRKFAIL  BIT1#define B0_FCSFAIL  BIT0/* dsa_servo */#define B7_OPENED   BIT7#define B6_CLOSED   BIT6#define B5_STOPPED  BIT5#define B4_TOCOK    BIT4#define B3_FCSOK    BIT3#define B2_ACESOK   BIT2#define B1_EXCHGOK  BIT1/* dsa_error */#define B7_OPENED   BIT7#define B6_CLOSED   BIT6#define B5_STOPPED  BIT5#define B4_TOCOK    BIT4#define B3_FCSOK    BIT3#define B2_ACESOK   BIT2#define B1_EXCHGOK  BIT1#define B0_ROTATE   BIT0/* cd_rotate */#define B1_SLOW_TOG BIT1#define B0_STOPPED  BIT0/* cd_exchg */#define B7_EXCHGIN_REQ  BIT7#define B6_EXCHGOUT_REQ BIT6#define B1_EXCHGOUT_OK  BIT1#define B0_EXCHGIN_OK   BIT0/* 0X - focus servo (1byte) */#define CMD_FCS_OFF     0x00#define CMD_FCS_DOWN    0x02/* 1X - circuit (1byte) */#ifdef DSP2545#define CMD_BRKOFF_TGANRM   0x11#define CMD_BRKON_TGAUP     0x17#else#define CMD_BRKOFF_TGANRM   0x10#define CMD_BRKON_TGAUP     0x1D#endif/* 2X - trking and sled servo (1byte) */#define CMD_TOFF_SOFF       0x20#define CMD_TOFF_SREV       0x23#define CMD_TOFF_SFWD       0x22#define CMD_TON_SON         0x25/* 3X - extented trking and sled servo (1-3bytes) */#define CMD_LMTCHK      0x30#define CMD_TRV_00      0x30#define CMD_TRV_01      0x31#define CMD_TRV_02      0x32#define CMD_TRV_03      0x33/* $34 command */#define CMD_34_H        0x340000#define CMD_DATAWR_H    0x340000#define CMD_DATAWR_KRAM_M   0x000000#define CMD_DATAWR_TRVSC_M  0x00F000#define CMD_DATAWR_FBIAS_M  0x00F400#define CMD_DATAWR_L    0x000000/* $38 command */#define CMD_38_H        0x380000#define CMD_38_M        0x000000#define CMD_38_VCLM_M   0x008000#define CMD_38_FLM_M    0x002000#define CMD_38_RFLM_M   0x000800#define CMD_38_AVRGON_M 0x001400#define CMD_38_AGFON_M  0x000200#define CMD_38_AGTON_M  0x000100#define CMD_38_TCLM_L   0x000010#define CMD_38_AVRGON_L 0x00000A#define CMD_38_TBLM_L   0x000020#define CMD_38_TLC2_L   0x000004#define CMD_38_L        0x000000/* $39 command */#define CMD_DATARD_H    0x390000#define CMD_DATARD_M    0x000000#define CMD_DATARD_KRAM_M    0x004000#define CMD_DATARD_TRVSC_M   0x001C00#define CMD_DATARD_FBIAS_M   0x001D00#define CMD_DATARD_L    0x000000/* $3A command */#define CMD_FBIAS_H     0x3A0000#define CMD_FBIAS_M     0x000000#define CMD_FBIASON_M   0x004000#define CMD_FBIAS_L     0x000000/* 4X - auto sequencer and trk jmp (2bytes) */#define CMD_AUTO_OFF    0x4000#define CMD_FCS_AUTO    0x4700#define CMD_1TRK_FWD    0x4800#define CMD_1TRK_REV    0x4900#define CMD_10TRK_FWD   0x4A00#define CMD_10TRK_REV   0x4B00#define CMD_2NTRK_FWD   0x4C00#define CMD_2NTRK_REV   0x4D00#define CMD_MTRK_FWD    0x4E00#define CMD_MTRK_REV    0x4F00/* 5X - blind, brake time (2bytes) */#define CMD_0202_BTIME  0x5b00#define CMD_0180_BTIME  0x5800#define CMD_0135_BTIME  0x5600/* 6X - kick time afer trkjmp (2bytes) */#define CMD_435_KTIME   0x6300/* 7X - KICK CNT (3bytes) */#define CMD_TCNT_200    0x700640#define CMD_TCNT_30     0x7000f0/* 8X - mode setting (2byte) */#define CMD_MD_CDDA     0x8000#define CMD_MD_CDROM    0x8800#define CMD_MODE_AUDIO_H    0x8000#define CMD_MODE_CDROM_H    0x8800#define CMD_MODE_SOCTON_L   0x0020#define CMD_MODE_L          0x0000/* 9X - function setting (2bytes) */#define CMD_FUNCT_SGSP   0x9B00#define CMD_FUNCT_DBSP   0x9F00/* AX - audio control (2bytes) */#define CMD_DMUTE_OFF   0xA000#define CMD_DMUTE_ON    0xA200/* CX - clv gain control (2bytes) */#define CMD_CLVGN_0DB   0xC600#define CMD_CLVGN_6DB   0xCB00/* DX - clv control (2bytes) */#define CMD_CLV_MDP     0xD600#define CMD_CLV_MDP_CLVS6DB     0xD700/* EX - spindle control (2bytes) */#define CMD_CLV_STOP    0xE000#define CMD_CLV_AUTO    0xE600#define CMD_CLV_KICK    0xE800#define CMD_CLV_BRAKE   0xEA00#define CMD_CLV_ROUGH   0xEE00/* note: equation => cnt = time/16ms */#define T10MS   1#define T25MS   2#define T50MS   3#define T80MS   5#define T100MS  6#define T200MS  12#define T300MS  18#define T400MS  25#define T500MS  31#define T600MS  37#define T800MS  50#define THIRTY_SECOND  1875/* for autoadjustment */#define FBIAS_JITT_SAMPLE   65#define FBIAS_ADD_STEP      20#define FBIAS_ABORT_VAL     5

⌨️ 快捷键说明

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