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

📄 sv_const.h

📁 MTK1389L的源代码
💻 H
📖 第 1 页 / 共 4 页
字号:
#define SV_SINK_576P27   (0x1 << 1)
#define SV_SINK_576P54   (0x1 << 2)
#define SV_SINK_720P50   (0x1 << 3)
#define SV_SINK_1080I50  (0x1 << 4)
#define SV_CCIR601       (0x1 << 0)
#define SV_CCIR656        0
#define SV_BOTH_ANALOG_DIGITAL (0x1 << 1)

// *********************************************************************
// Peripheral Commands: TVE
// *********************************************************************
#define TVE_CMD_INIT                0x31
#define TVE_CMD_PWR                 0x32
#define TVE_CMD_SVIDEO_ON           0x33
#define TVE_CMD_SET_FORMAT          0x34
#define TVE_CMD_COLOR_BURST_OFF     0x35
#define TVE_CMD_DELAY_1T            0x36
#define TVE_CMD_AMP_ADJUST          0x37
#define TVE_CMD_DAC_ENABLE          0x38
#define TVE_CMD_DAC_MODE            0x39
#define TVE_CMD_SET_SHARP           0x3A
#define TVE_CMD_SET_BLACK_LV        0x3B
#define TVE_CMD_MACRO_VISION        0x3C
#define TVE_CMD_NTSC_VBID           0x3D
#define TVE_CMD_PAL_VBID            0x3E

#define TVE_CMD_CLOSE_CAPTION       0x51

#define TVE_CMD_MAX                 0x60

// *********************************************************************
// Peripheral Commands: Misc.
// *********************************************************************
#define MISC_CMD_SET_POWER          0x70
#define MISC_CMD_SAVE_LOGO          0x71
#define MISC_CMD_EEPROM_SVC         0x72

// *********************************************************************
// "FS LIST" CONTROL
// *********************************************************************
/*  commands */
#define FLCMD_CREATE                0x1
#define FLCMD_SET                   0x2
#define FLCMD_GET_ITEMS             0x3
#define FLCMD_CLICK_ITEM            0x4
#define FLCMD_ADD_TO_PL             0x5
#define FLCMD_RM_FROM_PL            0x6
#define FLCMD_CLEAN                 0x7
#define FLCMD_QUERY_ITEM            0x8
#define FLCMD_ADD_ITEM              0x9
#define FLCMD_DEL_ITEM              0xa
#define FLCMD_ABORT                 0xb
#define FLCMD_REG_TO_PBMOD          0xc
/*  return */
#define FLRET_S_OK                  0x0
#define FLRET_E_INVALID_PARM        0x1
#define FLRET_E_INVALID_OP          0x2
#define FLRET_E_CMD_UNRDY           0x3

/*   parameters */
/*      exe list type */
#define FLPARM_LIST_INVALID         0xff
#define FLPARM_LIST_FOLDER          0x0
#define FLPARM_LIST_DISC            0x1
#define FLPARM_LIST_PLAYLIST        0x2
#define FLPARM_LIST_FJPIC           0x3

/*      including file type config */
#define FLPARM_INC_PARENT           0x01
#define FLPARM_INC_FILLED_FOLDER    0x02

/*      fuji-pic list specific */
#define FLPARM_INC_HI_RES_PICS      0x01
#define FLPARM_INC_LO_RES_PICS      0x02

/*      file filter config */
#define FLPARM_FF_DIR               0x0001  /* dir */
#define FLPARM_FF_MP3               0x0002  /* mp3 */
#define FLPARM_FF_MPEGA             0x0004  /* mpeg audio file group */
#define FLPARM_FF_JPEG              0x0008  /* jpeg */
#define FLPARM_FF_MPG               0x0010  /* mpeg video file group */
#define FLPARM_FF_WMA               0x0020  /* wma */
#define FLPARM_FF_CDDA              0x0040  /* audio track */
#define FLPARM_FF_AAC               0x0080  /* aac file */
#define FLPARM_FF_MLP               0x0100  /* mlp */
#define FLPARM_FF_WAV               0x0200  /* wav */
#ifdef OGG_AUDIO_AS_MP3
#define FLPARM_FF_OGG               0x0400  /* ogg vorbis */
#endif

/*      sorting order config */
#define FLPARM_SO_NAME              0x1     /* sorting by name */
#define FLPARM_SO_GDIR              0x2     /* group dir first */

/*      access option */
#define FLPARM_OPT_IMG_MODE         0x1     /* turn on image mode */

/*      type of reqisted list */
#define FLPARM_FLREG_DISP           0x1     /* registed as display list */
#define FLPARM_FLREG_PLAYBACK       0x2     /* registed as playback list */

/*      item type for item descriptor used in add_item and del_item */
#define FLPARM_ITYPE_LIST_ITEM      0x0     /* item on a list */
#define FLPARM_ITYPE_CLIPBOARD_ITEM 0x1     /* item on the clipboard */
#define FLPARM_ITYPE_DIR_FILE       0x2     /* file in a dir */
#define FLPARM_ITYPE_EXTRA_BUF_DATA 0x3     /* item of the data in a extra buffer */

/*      extra buffer type used in item descriptor for add_item and del_item */
#define FLPARM_EB_JPG_ENC_BUF       0x0

/*      file type */
#define FTYPE_UNKNOWN               0xFF
#define FTYPE_AC3                   0x00
#define FTYPE_MP3                   0x01
#define FTYPE_MP2                   0x02
#define FTYPE_MP1                   0x03
#define FTYPE_JPG                   0x05
#define FTYPE_MLP                   0x06
#define FTYPE_WMA                   0x07
#define FTYPE_ASF                   0x08
#define FTYPE_MPG                   0x09
#define FTYPE_DAT                   0x0A
#define FTYPE_VOB                   0x0B
#define FTYPE_AAC                   0x0C
#define FTYPE_DSD                   0x0D
#define FTYPE_CDA                   0x0F
#define FTYPE_DIR                   0x10    /* directory */
#define FTYPE_AVI                   0x12
#define FTYPE_TS1                   0x13    /* for test */
#define FTYPE_MP4                   0x14
#define FTYPE_3GP                   0x15
#define FTYPE_TS2                   0x16    /* for test */
#define FTYPE_DST                   0x17
#define FTYPE_OGG                   0x18
#ifdef OGG_AUDIO_AS_MP3
#define FTYPE_OGM               0x19
#define FTYPE_TS4                   0x1a
#define FTYPE_M4A                   0x1b
#else
#define FTYPE_TS4                   0x19
#define FTYPE_M4A                   0x1A
#endif

/*  FOR MP3 MODULE STATE UPDATE USED IN "SI_MP3_STT" (PLAYBACK STATE) */
#define MP3STT_PB_ENB               0x1 // - playback enabled
#define MP3STT_PB_STRT              0x2 // - playback starts
#define MP3STT_PB_FSH               0x3 // - playback finishes
#define MP3STT_PB_ABT               0x4 // - playback aborted
#define MP3STT_PB_ERR               0x5 // - playback error

/*  FOR JPEG DECODING STATE UPDATE USED IN "SI_JPEG_STT" */
#define JPEGSTT_DEC_STRT            0x1 // - decoding starts
#define JPEGSTT_DEC_FSH             0x2 // - decoding finished
#define JPEGSTT_DEC_ABT             0x3 // - decoding aborted
#define JPEGSTT_DEC_ERR             0x4 // - decoding error


/*  FOR JPEG MODE UPDATE USED IN "SI_JPEG_MODE" */
#define JPEGMOD_NORMAL              0x1 // - normal mode
#define JPEGMOD_DIGEST              0x2 // - digest mode
#define JPEGMOD_SLIDESHOW           0x3 // - slide show mode

/*  FOR MOTION PICTURE UPDATE USED IN "SI_MPIC_STT" */
#define MPICSTT_PB_STRT             0x1 // - playback started
#define MPICSTT_PB_FSH              0x2 // - playback finished
#define MPICSTT_PB_ABT              0x3 // - playback aborted
#define MPICSTT_PB_ERR              0x4 // - playback error

/*  FOR file system type */
#define FSTYPE_ISO9660              0x0
#define FSTYPE_UDF                  0x1
#define FSTYPE_CDFS                 0x2
#define FSTYPE_SACDFS               0x3
#define FSTYPE_FAT                  0x4
#define FSTYPE_UNKNOWN              0xFF

#define CPPM_KEY_RESERVE            256

/*  ERROR CODE DEFINED FOR MP3 MODULE */
#define MP3ERR_UNSUPPORTED_ITEM     0x1
#define MP3ERR_DECODER_UNREADY      0x2
#define MP3ERR_UNREADABLE           0x3
#define MP3ERR_WRONG_AB_RANGE       0x4

#define SACD_INFO_STYLE_ISO         0x00
#define SACD_INFO_STYLE_CDDA        0x01

#define SV_FI_DIRTY                 0x00
#define SV_FI_GET_START             0x01
#define SV_FI_GET_FINISH            0x02

/*
 *  Constant section for EMD (extend memory device support
 */

/*  device ID for device manager (must be kept as unique and starts from 1) */
/*  for USB card slot */
#define SV_DEVID_USB_SLOT_ALL       0x0f    /* sum of USB_SLOT_1 to USB_SLOT_6 */
#define SV_DEVID_USB_SLOT_1         0x00
#define SV_DEVID_USB_SLOT_2         0x01
#define SV_DEVID_USB_SLOT_3         0x02
#define SV_DEVID_USB_SLOT_4         0x03
#define SV_DEVID_USB_SLOT_5         0x04
#define SV_DEVID_USB_SLOT_6         0x05
/*  for MS Card */
#define SV_DEVID_MS_CARD            0x06
/*  for SD Card */
#define SV_DEVID_SD_CARD            0x07
/*  for SM Card */
#define SV_DEVID_SM_CARD            0x08
/*  for CF Card */
#define SV_DEVID_CF_CARD            0x09
/*  for TVD */
#define SV_DEVID_TVD                0x0A  //hy 070329--
/*  for DVBT */
#define SV_DEVID_DVBT               0x0B
/*  for Audio */
#define SV_DEVID_AUDIOIN            0x0C    //--hy 070329
/*  for CD-DVD ROM */
#define SV_DEVID_CDVDROM            0x0D

/*  for INVALID device */
#define SV_DEVID_INVALID            0xff

#define SV_MCR_TOTAL_NS            0x04


/*  parameters for UOP_CHG_DEV */
#define SV_NEXT_DEV                 0x00    /* change to next device */
#define SV_ASSIGN_DEV               0x01    /* change to specific device */
#define SV_RE_DETECT                0x02    /* change to specific device */
#define SV_NEXT_DRV                 0x03    /* change to next drive */
#define SV_ASSIGN_DRV               0x04    /* change to specific drive */
#define SV_MODE_MENU                0X05

#define SV_ALL_DEV                  0x00
#define SV_USB_DEV                  0x01
#define SV_MCR_DEV                  0x02

#define SV_USB_MP4_SUPPORT          0x01
#define SV_USB_MP4_NO_SUPPORT       0x00

/* drive id for multiple partition case */
/*  for MS Card */
#define SV_DRVID_MS_CARD              0x00
/*  for SD Card */
#define SV_DRVID_SD_CARD              0x01
/*  for SM Card */
#define SV_DRVID_SM_CARD              0x02
/*  for CF Card */
#define SV_DRVID_CF_CARD              0x03
/*  for USB multiple partitions */
#define SV_DRVID_USB_PART_1         0x04
#define SV_DRVID_USB_PART_2         0x05
#define SV_DRVID_USB_PART_3         0x06
#define SV_DRVID_USB_PART_4         0x07
#define SV_DRVID_USB_PART_5         0x08
#define SV_DRVID_USB_PART_6         0x09

//Alan Cheng: added for mode switch
#define SV_MODE_PLAYER_INIT      0x00
#define SV_MODE_PLAYER_IDLE     0x01

/*  USB/MS/SD version control */
/*  For FAT Error Code */
#define SV_FAT_E_VERSION            0x01
#define SV_FAT_E_NOT_SUPPORT        0x02

/*  For USB Error Code */
#define SV_USB_E_VERSION            0x01

/*  For USB External Clock Setting */
#define SV_USB_EXT_CLK_L_BOARD      0x01
#define SV_USB_EXT_CLK              0x02

/*  For USB GPS Support */
#define SV_GPS_WAIT_DISC_ID         0x02

/*  For device manager switch mode config */
#define SV_DEVMNG_SWITCH_DEFAULT    0x00    /* switch in default seq */
#define SV_DEVMNG_SWITCH_PROG       0x01    /* switch in programed seq */
#define SV_DEVMNG_SWITCH_DISABLE    0x02    /* switch disabled */

/*  For file copying (add item) error code */
#define SV_FMV_ERR_NONE             0x00
#define SV_FMV_ERR_EXEITEMINVALID   0x01
#define SV_FMV_ERR_ADDEXEITEMFAILS  0x02
#define SV_FMV_ERR_DELEXEITEMFAILS  0x03
#define SV_FMV_ERR_DIRFILEINVALID   0x04
#define SV_FMV_ERR_DEVICEFULL       0x05
#define SV_FMV_ERR_CREATEFILEFAILS  0x06
#define SV_FMV_ERR_INVALIDDEVICE    0x07
#define SV_FMV_ERR_TXSTMERROR       0x08
#define SV_FMV_ERR_DELFILEFAILS     0x09
#define SV_FMV_ERR_CBINVALID        0x0a
#define SV_FMV_ERR_CVCUTFAILS       0x0b
#define SV_FMV_ERR_EBINVALID        0x0c
#define SV_FMV_ERR_EBSTUFFFAILS     0x0d
#define SV_FMV_ERR_DEVWRITEFAILS    0x0e

// MCR
#define MCR_MS_SLOT_EN              0x01
#define MCR_SD_SLOT_EN              0x02
#define MCR_SM_SLOT_EN              0x04
#define MCR_CF_SLOT_EN              0x08
#define MCR_ALL_IN_1                (MCR_MS_SLOT_EN | MCR_SD_SLOT_EN | MCR_SM_SLOT_EN | MCR_CF_SLOT_EN)
#define MCR_4_IN_1                  (MCR_MS_SLOT_EN | MCR_SD_SLOT_EN | MCR_SM_SLOT_EN)

//MCR Config
#define MCR_CFG_SUSPEND             0x01

//MS Config
#define MCR_MS_CFG_4BIT             0x01

//SD Config
#define MCR_SD_CFG_4BIT             0x01

//SM Config

//CF Config

// parameters for MS/SD pin assignment config
#define SV_MS_PIN_CFG_1             (0x01 << 0)
#define SV_MS_PIN_CFG_2             (0x02 << 0)
#define SV_MS_PIN_CFG_3             (0x03 << 0)
#define SV_MS_PIN_CFG_4             (0x04 << 0)
#define SV_MS_PIN_CFG_5             (0x05 << 0)
#define SV_MS_PIN_CFG_6             (0x06 << 0)
#define SV_MS_PIN_MASK              (0x0F)

#define SV_SD_PIN_CFG_1             (0x01 << 4)
#define SV_SD_PIN_CFG_2             (0x02 << 4)
#define SV_SD_PIN_CFG_3             (0x03 << 4)
#define SV_SD_PIN_CFG_4             (0x04 << 4)
#define SV_SD_PIN_CFG_5             (0x05 << 4)
#define SV_SD_PIN_CFG_6             (0x06 << 4)
#define SV_SD_PIN_MASK              (0xF0)

// I/O Pin
#define MCR_IOPIN_SPMCLK            0x00
#define MCR_IOPIN_SPDATA            0x01
#define MCR_IOPIN_SPBCK             0x02
#define MCR_IOPIN_SPLRCK            0x03

#define MCR_IOPIN_SPLRCK_H          0x00
#define MCR_IOPIN_SPLRCK_L          0x01
#define MCR_IOPIN_SPBCK_H           0x02
#define MCR_IOPIN_SPBCK_L           0x03
#define MCR_IOPIN_SPDATA_H          0x04
#define MCR_IOPIN_SPDATA_L          0x05
#define MCR_IOPIN_SPMCLK_H          0x06
#define MCR_IOPIN_SPMCLK_L          0x07

#define MCR_IOPIN_NONE              0xFF

// Card Detect
#define MCR_CD_SW_POOLING           0x00
#define MCR_CD_HW_GPIO              0x01
#define MCR_CD_HW_MUX               0x02
#define MCR_CD_EXTERNAL             0x05

// Card Type
#define MCR_CT_MS                   0x01
#define MCR_CT_MS_PRO               0x02
#define MCR_CT_SD                   0x04
#define MCR_CT_MMC                  0x08
#define MCR_CT_SM                   0x10
#define MCR_CT_XD                   0x20
#define MCR_CT_CF                   0x40

#ifdef HVSYNC_ON_GPIO_PIN_L
//Hsync and Vsync pin config
#define SV_HSYNC_ON_GPIO10  0x7
#define SV_HSYNC_ON_GPIO11  0x6
#define SV_HSYNC_ON_GPIO19  0x3
#define SV_HSYNC_ON_GPIO21  0x2

#define SV_VSYNC_ON_GPIO10  0x7<<3
#define SV_VSYNC_ON_GPIO11  0x6<<3
#define SV_VSYNC_ON_GPIO19  0x3<<3
#define SV_VSYNC_ON_GPIO21  0x2<<3
#endif


#endif /* _SV_CONST_H_ */

⌨️ 快捷键说明

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