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

📄 mconfig.h

📁 本程序为ST公司开发的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/************************************************** * * mconfig.h * * CVS ID:   $Id: mconfig.h,v 1.53 2007/11/15 14:23:12 trubac Exp $ * Author:   Fabio Dell'orto  [FD] - STM * Date:     $Date: 2007/11/15 14:23:12 $ * Revision: $Revision: 1.53 $ *  * Description: *  *    * *************************************************** *  * COPYRIGHT (C) ST Microelectronics  2005 *            All Rights Reserved * *************************************************** * * STM CVS Log: * * $Log: mconfig.h,v $ * Revision 1.53  2007/11/15 14:23:12  trubac * added error limits for CD sector acquisition * * Revision 1.52  2007/11/08 17:31:35  sedmik * if IPOD_AP=1  - added IPOD_CFG to module config * * Revision 1.51  2007/10/12 13:19:50  marcucci * Added the possibility to set I2S  in Philips or Sony LSImode * * Revision 1.50  2007/10/09 15:58:48  belardi * Add check on configuration write length to avoid overwriting outside of the configuration object * Added missing CADDR_FILESYSTEM_LIMIT * * Revision 1.49  2007/09/27 12:26:32  belardi * Configure GestGuess from configuration option * * Revision 1.48  2007/09/27 11:06:14  trubac * New configuration option for filesystem items limit * * Revision 1.47  2007/09/19 07:41:08  belardi * New config option to disable multisession for copy-protected CD * * Revision 1.46  2007/08/24 08:17:18  belardi * Only comments * * Revision 1.45  2007/08/21 09:39:38  belardi * Changed ranges for TextInfoSetting * * Revision 1.44  2007/08/14 15:29:35  dellorto * multiple mechanisms * * Revision 1.43  2007/08/07 08:01:10  belardi * - hard coded Update image legth to 20 byte * - changed mconfig array size to (last address + 1) * - changed default value for HostUpdate * * Revision 1.42  2007/08/06 08:53:09  belardi * Added GPIO control for VBUS * * Revision 1.41  2007/08/06 07:49:42  belardi * Longer HOST UPDATE string definition * * Revision 1.40  2007/08/01 18:10:17  trubac * host_update_method added to module_config * * Revision 1.39  2007/08/01 10:23:08  belardi * Modifications to support run-time configurable ESP size * - added new configuration item * * Revision 1.38  2007/07/24 09:24:43  belardi * Changed 2-byte config item from Flash- to SDRAM -size * Changed EEPROM-size to Flash-size * * Revision 1.37  2007/07/19 11:09:56  trubac * Host update file name configurable * * Revision 1.36  2007/07/18 13:08:45  sedmik * fix for max length of config table (MODULE_CONFIG_SIZE) * * Revision 1.35  2007/07/12 12:23:26  trubac * Host update file is configurable through module config * * Revision 1.34  2007/07/05 07:59:38  belardi * Modifications to support ID3 selection * * Revision 1.33  2007/03/28 17:53:22  belardi * Bug fix for UsbOptions configuration object * * Revision 1.32  2007/03/28 14:20:47  belardi * Added configuration option to enable/disable USB HUB support from the Radio * * Revision 1.31  2007/02/26 19:07:17  belardi * Added configuration item to select whether filename extension should be sent with MsgEntryName * * Revision 1.30  2007/02/23 11:40:24  sedmik * added param in AUTO_MODE_STRUCT for shuffle navigation setting * * Revision 1.29  2007/02/22 16:52:27  marcucci * Added some modification to allow I2S Word Clock and Bit Clock Level Programmable * Through CIS command * * Revision 1.28  2007/02/15 15:52:02  belardi * Added configuration items for HAVE_FSHRINK * * Revision 1.27  2006/12/19 17:01:36  dellorto * modified configuration register for Loader * * Revision 1.26  2006/12/05 17:50:16  belardi * Changed default loader config to not spin rollers after eject * * Revision 1.25  2006/12/04 14:46:41  dellorto * added loader conservative behavior * * Revision 1.24  2006/11/27 15:46:29  sedmik * fix for default values in cofiguration table * * Revision 1.23  2006/11/24 16:28:35  sedmik * added mp1 bit in audible formats config (AUDIO_FORMAT_CFG_STRUCT) * * Revision 1.22  2006/11/24 02:14:37  zhong * no message * * Revision 1.21  2006/11/21 15:36:27  sedmik * added new config param ( CF23 search play time) * * Revision 1.20  2006/11/20 14:00:21  marcucci * Audio Config Command * * Revision 1.19  2006/11/20 13:28:57  sedmik * added seek speed defines * * Revision 1.18  2006/11/17 16:40:05  dellorto * updated configuration table * added configurable text item length * * Revision 1.17  2006/11/08 08:52:38  marcucci * Default Digital Output is I2S no more SPDIF * * Revision 1.16  2006/11/07 18:59:29  sedmik * added structures for added config bytes * * Revision 1.15  2006/10/26 10:25:27  dellorto * optimized 8cm eject timing for new mechanism * * Revision 1.14  2006/10/06 13:37:20  belardi * Enabled mixed-mode disk by default * * Revision 1.13  2006/09/18 09:55:24  belardi * Corrected CVS keyword usage * * Revision 1.12  2006/09/18 09:25:15  belardi * Added Log CVS keyword into file header * * ***************************************************/ #ifndef __MCONFIG_H#define __MCONFIG_H/*!\brief audio output cfg */typedef  __packed struct{  UInt audio_output           : 2;  UInt i2s_lsb                : 1;  UInt i2s_mode               : 2;  UInt sclk_level             : 1;  UInt wclk_level             : 1;  UInt format                 : 1;} AUDIO_OUTPUT_CFG_STRUCT;typedef  __packed union{  uint8   all;  AUDIO_OUTPUT_CFG_STRUCT field;} AUDIO_OUTPUT_CFG_UNION;#define ANALOG_OUTPUT_1      0#define I2S_OUTPUT           1#define ANALOG_OUTPUT_2      2#define SPDIF_OUTPUT         3#define I2S_32_FS            0#define I2S_48_FS            1#define I2S_64_FS            2/*!\brief wrap cfg */typedef  __packed struct{  UInt block_decoded          : 1;  UInt speed_2x               : 1;  UInt reserved_2             : 1;  UInt reserved_3             : 1;  UInt reserved_4             : 1;  UInt reserved_5             : 1;  UInt reserved_6             : 1;  UInt reserved_7             : 1;} ROM_DATA_CFG_STRUCT;typedef  __packed union{  uint8   all;  ROM_DATA_CFG_STRUCT field;} ROM_DATA_CFG_UNION;/*!\brief load action */#define MIN_LOAD_ACTION   0x0A/*!\brief set language cfg */#define LNG_ENGLISH     0x00#define LNG_SPANISH     0x01#define LNG_FRENCH      0x02#define LNG_PORTUGUESE  0x03#define LNG_ITALIAN     0x04#define LNG_GERMAN      0x05#define LNG_CHINESE     0x06#define LNG_JAPANESE    0x07#define LNG_KOREAN      0x08#define LNG_DUTCH       0x09#define LNG_DANISH      0x0A#define LNG_NORWEGIAN   0x0B#define LNG_SWEDISH     0x0C#define LNG_RUSSIAN     0x0D#define LNG_GREEK       0x0E#define LNG_TURKISH     0x0F#define LNG_OFF         0xFF/*!\brief text info setting cfg */#define MAX_TEXT_LENGTH   HOSTIF_MAX_TEXT_PACKET_LENGTH#define MIN_TEXT_LENGTH   HOSTIF_MIN_TEXT_PACKET_LENGTH/*!\brief media info setting cfg */typedef  __packed struct{  UInt msg_disc_type          : 1;  UInt msg_disc_id            : 1;  UInt msg_disc_label         : 1;  UInt msg_track_info         : 1;  UInt msg_time_info          : 1;  UInt reserved_5             : 1;  UInt reserved_6             : 1;  UInt reserved_7             : 1;} MEDIA_INFO_SETTING_STRUCT;typedef  __packed union{  uint8   all;  MEDIA_INFO_SETTING_STRUCT field;} MEDIA_INFO_SETTING_UNION;/*!\brief last file reporting cfg */typedef  __packed struct{//  UInt last_file_mode         : 2;  UInt last_in_dir            : 1;  UInt last_in_disc           : 1;    UInt reserved_2             : 1;  UInt reserved_3             : 1;  UInt reserved_4             : 1;  UInt reserved_5             : 1;  UInt reserved_6             : 1;  UInt reserved_7             : 1;} LAST_FILE_REPORTING_CFG_STRUCT;typedef  __packed union{  uint8   all;  LAST_FILE_REPORTING_CFG_STRUCT field;} LAST_FILE_REPORTING_CFG_UNION;#define LAST_FILE_OFF        0#define LAST_FILE_DIR        1#define LAST_FILE_DISC       2#define LAST_FILE_DIR_DISC   3/*!\brief audio format cfg */typedef  __packed struct{  UInt mp3_enable             : 1;  UInt wma_enable             : 1;  UInt mp2_enable             : 1;  UInt aac_mpeg4_enable       : 1;  UInt ogg_vorbis_enable      : 1;  UInt mp1_enable             : 1;  UInt reserved_6             : 1;  UInt reserved_7             : 1;} AUDIO_FORMAT_CFG_STRUCT;typedef  __packed union{  uint8   all;  AUDIO_FORMAT_CFG_STRUCT field;} AUDIO_FORMAT_CFG_UNION;/*!\brief function cfg */typedef  __packed struct{  UInt esp_enable             : 1;  UInt esp_compress_ratio     : 2;  UInt playlist_support       : 1; // not used in the sw, not defined in the CIS  UInt browse_by_filename     : 1;  UInt dynamic_range          : 1;  UInt playback_sdc           : 1; // defined but not supported  UInt playback_usb           : 1; // defined but not supported} FUNCTION_CFG_STRUCT;typedef  __packed union{  uint8   all;  FUNCTION_CFG_STRUCT field;} FUNCTION_CFG_UNION;#define ESP_COMPRESS_RATIO_1_1  0#define ESP_COMPRESS_RATIO_1_2  1#define ESP_COMPRESS_RATIO_1_3  2#define ESP_COMPRESS_RATIO_1_4  3/*!\brief hybrid disc cfg */typedef  __packed struct{  UInt accept_compressed      : 1;  UInt accept_cdda            : 1;  UInt play_compressed_first  : 1;  UInt disable_multisession   : 1;  UInt disable_cp_check       : 1;  UInt reserved_5             : 1;  UInt reserved_6             : 1;  UInt reserved_7             : 1;} HYBRID_DISC_CFG_STRUCT;typedef  __packed union{  uint8   all;  HYBRID_DISC_CFG_STRUCT field;} HYBRID_DISC_CFG_UNION;/*!\brief wrap cfg */typedef  __packed struct{  UInt wrap_option            : 1;  UInt reserved_1             : 1;  UInt reserved_2             : 1;  UInt reserved_3             : 1;  UInt reserved_4             : 1;  UInt reserved_5             : 1;  UInt reserved_6             : 1;  UInt reserved_7             : 1;} WRAP_CFG_STRUCT;typedef  __packed union{  uint8   all;  WRAP_CFG_STRUCT field;} WRAP_CFG_UNION;/*!\brief play mode */typedef  __packed struct{  UInt scan_time              : 6;  UInt scan_backward          : 1;  UInt pause_end_of_track     : 1;} PLAY_MODE_STRUCT;typedef  __packed union{  uint8   all;  PLAY_MODE_STRUCT field;} PLAY_MODE_UNION;/*!\brief auto mode */typedef  __packed struct{  UInt shuffle_mode           : 1;  UInt repeat_mode            : 1;  UInt shuffle_random         : 1;  UInt reserved_3             : 1;  UInt reserved_4             : 1;  UInt reserved_5             : 1;

⌨️ 快捷键说明

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