📄 plr_conf.h
字号:
/************************************************** * * plr_conf.h * * CVS ID: $Id: plr_conf.h,v 1.28 2007/11/15 08:30:23 dellorto Exp $ * Author: Fabio Dell'Orto [FD] - STM * Date: $Date: 2007/11/15 08:30:23 $ * Revision: $Revision: 1.28 $ * * Description: * *************************************************** * * COPYRIGHT (C) ST Microelectronics 2005 * All Rights Reserved * *************************************************** * * STM CVS Log: * * $Log: plr_conf.h,v $ * Revision 1.28 2007/11/15 08:30:23 dellorto * fixed eject distance to time calculation (8 cm disc) * * Revision 1.27 2007/10/12 13:20:03 marcucci * Added the possibility to set I2S in Philips or Sony LSImode * * Revision 1.26 2007/08/14 15:29:36 dellorto * multiple mechanisms * * Revision 1.25 2007/02/22 16:52:36 marcucci * Added some modification to allow I2S Word Clock and Bit Clock Level Programmable * Through CIS command * * Revision 1.24 2006/12/19 17:01:46 dellorto * modified configuration register for Loader * * Revision 1.23 2006/12/04 14:48:48 dellorto * added emergency eject command * added loader conservative behavior * optimized 8cm eject distance for latest mechanism * * Revision 1.22 2006/11/28 14:54:26 sedmik * new defines for MP1,MP2, AAC by default * * Revision 1.21 2006/11/21 15:36:39 sedmik * added new config param ( CF23 search play time) * * Revision 1.20 2006/11/20 14:00:30 marcucci * Audio Config Command * * Revision 1.19 2006/11/20 13:34:25 sedmik * new defines (seek speed, playlist support) * * Revision 1.18 2006/11/17 16:40:32 dellorto * added auto text messages * added configurable text item length * * Revision 1.17 2006/11/07 19:00:32 sedmik * new defines for playlist support * * Revision 1.16 2006/10/26 10:35:11 dellorto * re-enabling of eject repositioning configuration * * Revision 1.15 2006/10/26 10:25:36 dellorto * optimized 8cm eject timing for new mechanism * * Revision 1.14 2006/09/18 09:55:24 belardi * Corrected CVS keyword usage * * Revision 1.13 2006/09/18 09:25:15 belardi * Added Log CVS keyword into file header * * ***************************************************/#include "mconfig.h"#define CMD_TRACK_PARAM(x) ((t_track)(((uint16)((x)[2]) > 99) ? 99 : (x)[2])) /* t_track value of pointer to cmd_params */#define PLAY_SEEK_DATA_MODE SEEK_DATA_MSF_REACHED#define SEARCH_SEEK_DATA_MODE SEEK_DATA_GROOVE_REACHED#define CNF_HYBRID_DISC_AUDIO_FIRST (0 == module_config.data.hybrid_disc_cfg.field.play_compressed_first)#define CNF_HYBRID_DISC_ACCEPT_DATA_TRACKS (module_config.data.hybrid_disc_cfg.field.accept_compressed)#define CNF_HYBRID_DISC_ACCEPT_AUDIO_TRACKS (module_config.data.hybrid_disc_cfg.field.accept_cdda)#define CNF_AUTO_MODE_SHUFFLE (module_config.data.auto_mode.field.shuffle_mode)#define CNF_AUTO_MODE_REPEAT_ONE (module_config.data.auto_mode.field.repeat_mode)#define CNF_WRAP (module_config.data.wrap_cfg.field.wrap_option)#define CNF_PLAYBACK_SCOPE_DEVICE (0 == module_config.data.playback_scope.field.current_directory)#define CNF_PLAYBACK_SCOPE_DIRECTORY (module_config.data.playback_scope.field.current_directory)#define CNF_REPORT_LAST_IN_DIR (module_config.data.last_file_reporting_cfg.field.last_in_dir)#define CNF_REPORT_LAST_ON_DISC (module_config.data.last_file_reporting_cfg.field.last_in_dir)#define CNF_PLAY_MODE_PAUSE_EOS (module_config.data.play_mode.field.pause_end_of_track)#define CNF_PLAY_MODE_SCAN_BACKWARD (module_config.data.play_mode.field.scan_backward)#define CNF_PLAY_MODE_SCAN_TIME (module_config.data.play_mode.field.scan_time)#define CNF_MEDIA_INFOR_SETTING (module_config.data.media_info_setting.all)#define CNF_AUDIO_FORMAT_SETTING (module_config.data.audio_format.all)#define CNF_AUDIO_FORMAT_SETTING_MP3 (module_config.data.audio_format.field.mp3_enable)#define CNF_AUDIO_FORMAT_SETTING_WMA (module_config.data.audio_format.field.wma_enable)#define CNF_AUDIO_FORMAT_SETTING_MP2 (module_config.data.audio_format.field.mp2_enable)#define CNF_AUDIO_FORMAT_SETTING_AAC (module_config.data.audio_format.field.aac_mpeg4_enable)#define CNF_AUDIO_FORMAT_SETTING_MP1 (module_config.data.audio_format.field.mp1_enable)#define CNF_PLAYLIST_ENABLED (module_config.data.playlist_cfg.field.playlist_enabled)#define CNF_PLAYLIST_REPORT_PLAYLISTS (module_config.data.playlist_cfg.field.report_available_playlists)#define CNF_PLAYLIST_REPORT_PLAYLIST_CONTENT (module_config.data.playlist_cfg.field.report_available_playlist_content)#define CNF_SEARCH_SPEED (module_config.data.search_speed)#define CNF_FOLDER_NUMBERING_SORT (module_config.data.folder_numbering_sort.field.numbering_sort)#define CNF_SEARCH_PLAY_TIME (module_config.data.search_play_time)#define CNF_AUTO_TEXT_ITEM_BITMAP module_config.data.text_info_setting_item#define HAVE_AUTO_TEXT (0 != CNF_AUTO_TEXT_ITEM_BITMAP)#define CNF_TEXT_LENGTH module_config.data.text_info_setting_length#define CNF_EJECT_TIME_8CM_SHINWA_CLC01 (module_config.data.loader_cfg_1.field.additional_eject_distance * 5) /* 1 mm in about 5 ms */#define CNF_EJECT_TIME_8CM_SHINWA_CDC02 (module_config.data.loader_cfg_1.field.additional_eject_distance * 6) /* 1 mm in about 6 ms */#define CONSERVATIVE_BEHAVIOR_SHINWA_CDC02 module_config.data.loader_cfg_1.field.conservative_behavior_Shinwa_CDC02#define CONSERVATIVE_BEHAVIOR_TANASHIN module_config.data.loader_cfg_1.field.conservative_behavior_Tanashin#define CNF_LOADER_RETRIES module_config.data.loader_cfg_2.field.loader_retries#define ALLOW_REVERSE_DIRECTION module_config.data.loader_cfg_2.field.reverse_direction#define HAVE_EJECT_REPOSITIONING module_config.data.loader_cfg_2.field.eject_repositioning#define START_EJECT_ACTION_IN_NO_CD_POSITION module_config.data.loader_cfg_2.field.eject_without_disc#define START_INSERT_ACTION_IN_NO_CD_POSITION module_config.data.loader_cfg_2.field.insert_without_disc#define REJECT_8CM_DISC module_config.data.loader_cfg_2.field.reject_8cm_disc#define AUTOLOAD_TIMEOUT (module_config.data.load_action * T100ms)#define AUTOLOAD_TIMER_RESET() start_timer(AUTOLOAD_TIMER, AUTOLOAD_TIMEOUT) /* reset auto load timer */#define AUTOLOAD_TIMER_EXPIRED() (module_config.data.load_action ? !timer_in_progress(AUTOLOAD_TIMER) : 0) /* zero if auto load timer is not expired */#define PS_ACTION_ENDMEDIA PS_PAUSE_ENDMEDIA#define PS_ACTION_BEGINMEDIA PS_PAUSE_BEGINMEDIA#define CNF_ESP module_config.data.function_cfg.field.esp_enable#define CNF_ADPCM module_config.data.function_cfg.field.esp_compress_ratio#define CNF_AUDIO_OUTPUT module_config.data.audio_output_cfg.field.audio_output#define CNF_I2S_OUTPUT_FORMAT module_config.data.audio_output_cfg.field.i2s_lsb#define CNF_I2S_FS module_config.data.audio_output_cfg.field.i2s_mode#define CNF_I2S_SCLK_LEVEL module_config.data.audio_output_cfg.field.sclk_level#define CNF_I2S_WCLK_LEVEL module_config.data.audio_output_cfg.field.wclk_level#define CNF_I2S_FORMAT module_config.data.audio_output_cfg.field.format#define CNF_AUDIO_OUTPUT_DFLT factory_module_config.data.audio_output_cfg.field.audio_output#define CNF_I2S_OUTPUT_FORMAT_DFLT factory_module_config.data.audio_output_cfg.field.i2s_lsb#define CNF_I2S_FS_DFLT factory_module_config.data.audio_output_cfg.field.i2s_mode;#define CNF_AUDIO_OUTPUT_PREV prev_audio_output_cfg.field.audio_output#define CNF_I2S_OUTPUT_FORMAT_PREV prev_audio_output_cfg.field.i2s_lsb#define CNF_I2S_FS_PREV prev_audio_output_cfg.field.i2s_mode#define CNF_I2S_SCLK_LEVEL_PREV prev_audio_output_cfg.field.sclk_level#define CNF_I2S_WCLK_LEVEL_PREV prev_audio_output_cfg.field.wclk_level#define CNF_I2S_FORMAT_PREV prev_audio_output_cfg.field.format#define FS_32 0#define FS_48 1#define FS_64 2#define CNF_AUDIO_ANALOG 0#define CNF_AUDIO_I2S 1#define CNF_AUDIO_SPDIF 3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -