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

📄 sv_const.h

📁 MTK 1389e版 MINI组合音响代码
💻 H
📖 第 1 页 / 共 4 页
字号:

#define FS384_16K                   0x00
#define FS384_22K                   0x01
#define FS384_24K                   0x02
#define FS384_32K                   0x03
#define FS384_44K                   0x04
#define FS384_48K                   0x05
#define FS384_64K                   0x06
#define FS384_88K                   0x07
#define FS384_96K                   0x08
#define FS384_176K                  0x09
#define FS384_192K                  0x0A
#define FS768_44K                   0x0B

// for ADAC_CMD_AIN_SEL
#define AIN_SEL_OFF                 0x00
#define AIN_SEL_D0                  0x10
#define AIN_SEL_D1                  0x11
#define AIN_SEL_D2                  0x12
#define AIN_SEL_D3                  0x13
#define AIN_SEL_L0                  0x20
#define AIN_SEL_L1                  0x21
#define AIN_SEL_L2                  0x22
#define AIN_SEL_L3                  0x23

// for Audion Sampling rate
#define AFS512_48K   0
#define AFS256_96K   1
#define AFS128_192K  2

// *********************************************************************
// Peripheral Commands: HDMI
// *********************************************************************
#define HDMI_CMD_RESOLUTION         0x21
#define HDMI_CMD_VIDEO_FORMAT       0x22
#define HDMI_CMD_AUDIO_FORMAT       0x23
#define HDMI_CMD_BYPASS             0x24
#define HDMI_CMD_SCLCOEF            0x25
#define HDMI_CMD_SCL_RESET          0x26
#define HDMI_CMD_HUE_CONTROL        0x27
#define HDMI_CMD_GAMMA_CONTROL      0x28
#define HDMI_CMD_MAX                0x30
#define VFMT_480P 0
#define VFMT_576P 1
#define VFMT_720P 2
#define VFMT_1080I 3
#define VFMT_480I 4
#define VFMT_576I 5
#define VFMT_480P27 6
#define VFMT_720P50 7
#define VFMT_1080I50 8
#define VFMT_576P27 9
#define VFMT_MODE 10
#define VFMT_OFF  15

#define SV_480P54     VFMT_480P 
#define SV_576P54     VFMT_576P
#define SV_720P60     VFMT_720P
#define SV_1080I60    VFMT_1080I
#define SV_480I       VFMT_480I
#define SV_576I       VFMT_576I
#define SV_480P27     VFMT_480P27
#define SV_720P50     VFMT_720P50
#define SV_1080I50    VFMT_1080I50
#define SV_576P27     VFMT_576P27

#define SV_RGB444        0
#define SV_YUV444        1
#define SV_SPDIF         0
#define SV_I2S           1
#define SV_HDMI_ON       1
#define SV_DVI_ON        0

#define SV_SINK_480I     (0x1 << 0)
#define SV_SINK_480P27   (0x1 << 1)
#define SV_SINK_480P54   (0x1 << 2)
#define SV_SINK_720P60   (0x1 << 3)
#define SV_SINK_1080I60  (0x1 << 4)

#define SV_SINK_576I     (0x1 << 0)
#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_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_REG_TO_PBMOD          0xb

/*  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

/*      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 */

/*      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_WMA                   0x07
#define FTYPE_ASF                   0x08
#define FTYPE_MPG                   0x09
#define FTYPE_DAT                   0x0A
#define FTYPE_VOB                   0x0B
#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_TS2                   0x14    
#define FTYPE_DST                   0x15

#ifdef DVD_RECEIVER
//#define FTYPE_TS3                   0x16
#ifdef SUPPORT_OGG       //RISC_SP157
#define FTYPE_OGG                   0x16 //0x16
#endif
#else
#define FTYPE_OGG                   0x16
#endif
#define FTYPE_TS4                   0x17

#if 0  //RISC_SP157
#define FTYPE_MP4                   0x14
#define FTYPE_3GP                   0x15
#define FTYPE_TS2                   0x16    /* for test */
#define FTYPE_DST                   0x17
#define FTYPE_OGG                   0x16
#define FTYPE_TS4                   0x19
#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

/*
 *  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_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 CD-DVD ROM */
#define SV_DEVID_CDVDROM            0x10
/*  for INVALID device */
#define SV_DEVID_INVALID            0xff

/*  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_USB_MP4_SUPPORT          0x01
#define SV_USB_MP4_NO_SUPPORT       0x00

/*  parameters for MS/SD pin assignment config */
#define SV_MS_PIN_CFG_1             (0x01 << 0)
#define SV_MS_PIN_CFG_2             (0x01 << 1)
#define SV_MS_PIN_MASK              (0x03)
#define SV_SD_PIN_CFG_1             (0x01 << 2)
#define SV_SD_PIN_CFG_2             (0x01 << 3)
#define SV_SD_PIN_MASK              (0x0C)

#if 0   /*  not used now */
#define SV_MS_INSERTED              (0x1 << 0)
#define SV_SD_INSERTED              (0x1 << 1)
#endif

/*  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

#endif /* _SV_CONST_H_ */

⌨️ 快捷键说明

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