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

📄 menu.c

📁 一款车载DVD的车机源程序(正在生成中的哦)
💻 C
📖 第 1 页 / 共 5 页
字号:
/***************************************************************************
Project  :  Car two ting dvd System
Compiler :  ST7 HiCross C (HiWARE)
Module   :  autos.c 
Version  :  V 1.0
Created  :  24 11, 2005
Author   :  tomi / SA
Description
         -  OSD MENU.  
Modified
		 - tomi
***************************************************************************/
#include "Menu.h"
#include "Inter.h"
#include "Libr.h"
#include "St72321.h"
#include "IOport.h"
#include "Sys_config.h"
#include "i2c_drv.h"
#include "System_operation.h"
#include "Clock.h"
#include "OSD.h"
#include "TW101reg.h"
#include "OSD_string.h"
#include "Radio_tuner.h"
#include "SPI.h"
#include "AV_menu_string.h"
#include "CDC_menu_string.h"
#include "Csp_menu_string.h"
#include "DVD_menu_string.h"
#include "Main_menu_string.h"
#include "Radio_menu_string.h"
#include "Setting_menu_string.h"
#include "Time_menu_string.h"
#include "TV_menu_string.h"
#include "Video_menu_string.h"
#include "TV_tuner.h"
#include "Csp.h"
#include "AV_menu.h"
#include "CDC_menu.h"
#include "Csp_menu.h"
#include "DVD_menu.h"
#include "Main_menu.h"
#include "Radio_menu.h"
#include "Setting_menu.h"
#include "Time_menu.h"
#include "TV_menu.h"
#include "Video_menu.h"
#include "Touch.h"
#include "Passward_menu_string.h"
#include "Passward_menu.h"
#include "CDC.h"
#include "Video_switch.h"
//----------------------------------------------------------------------------------------------------------------------------------------------------
#pragma INTO_ROM
const static unsigned char Jump_back_picture_line_0[] = {JUMP_BACK_picture_list_0,JUMP_BACK_picture_list_1,JUMP_BACK_picture_list_2,JUMP_BACK_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Jump_back_picture_line_1[] = {JUMP_BACK_picture_list_4,JUMP_BACK_picture_list_5,JUMP_BACK_picture_list_6,JUMP_BACK_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Jump_front_picture_line_0[] = {JUMP_FRONT_picture_list_0,JUMP_FRONT_picture_list_1,JUMP_FRONT_picture_list_2,JUMP_FRONT_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Jump_front_picture_line_1[] = {JUMP_FRONT_picture_list_4,JUMP_FRONT_picture_list_5,JUMP_FRONT_picture_list_6,JUMP_FRONT_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Slow_back_picture_line_0[] = {SLOW_BACK_picture_list_0,SLOW_BACK_picture_list_1,SLOW_BACK_picture_list_2,SLOW_BACK_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Slow_back_picture_line_1[] = {SLOW_BACK_picture_list_4,SLOW_BACK_picture_list_5,SLOW_BACK_picture_list_6,SLOW_BACK_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Fast_front_picture_line_0[] = {FAST_FRONT_picture_list_0,FAST_FRONT_picture_list_1,FAST_FRONT_picture_list_2,FAST_FRONT_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Fast_front_picture_line_1[] = {FAST_FRONT_picture_list_4,FAST_FRONT_picture_list_5,FAST_FRONT_picture_list_6,FAST_FRONT_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Scan_picture_line_0[] = {SCAN_picture_list_0,SCAN_picture_list_1,SCAN_picture_list_2,SCAN_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Scan_picture_line_1[] = {SCAN_picture_list_4,SCAN_picture_list_5,SCAN_picture_list_6,SCAN_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Mute_picture_line_0[] = {Mute_picture_list_0,Mute_picture_list_1,Mute_picture_list_2,Mute_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Mute_picture_line_1[] = {Mute_picture_list_4,Mute_picture_list_5,Mute_picture_list_6,Mute_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char DEC_picture_line_0[] = {DEC_picture_list_0,DEC_picture_list_1,EOL};
#pragma INTO_ROM
const static unsigned char DEC_picture_line_1[] = {DEC_picture_list_2,DEC_picture_list_3,EOL};

#pragma INTO_ROM
const static unsigned char Adding_picture_line_0[] = {ADDING_picture_list_0,ADDING_picture_list_1,EOL};
#pragma INTO_ROM
const static unsigned char Adding_picture_line_1[] = {ADDING_picture_list_2,ADDING_picture_list_3,EOL};

#pragma INTO_ROM
const static unsigned char Main_menu_8pcs_picture_line_0[] = {Main_menu_8pcs_picture_list_0,Main_menu_8pcs_picture_list_1,Main_menu_8pcs_picture_list_2,Main_menu_8pcs_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Main_menu_8pcs_picture_line_1[] = {Main_menu_8pcs_picture_list_4,Main_menu_8pcs_picture_list_5,Main_menu_8pcs_picture_list_6,Main_menu_8pcs_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Exitting_8pcs_picture_line_0[] = {Exitting_8pcs_picture_list_0,Exitting_8pcs_picture_list_1,Exitting_8pcs_picture_list_2,Exitting_8pcs_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Exitting_8pcs_picture_line_1[] = {Exitting_8pcs_picture_list_4,Exitting_8pcs_picture_list_5,Exitting_8pcs_picture_list_6,Exitting_8pcs_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Main_menu_4pcs_picture_line[] = {Main_menu_4pcs_picture_list_0,Main_menu_4pcs_picture_list_1,Main_menu_4pcs_picture_list_2,Main_menu_4pcs_picture_list_3,EOL};

#pragma INTO_ROM
const static unsigned char Exitting_4pcs_picture_line[] = {Exitting_4pcs_picture_list_0,Exitting_4pcs_picture_list_1,Exitting_4pcs_picture_list_2,Exitting_4pcs_picture_list_3,EOL};

#pragma INTO_ROM
const static unsigned char Stop_picture_line_0[] = {Stop_picture_list_0,Stop_picture_list_1,Stop_picture_list_2,Stop_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Stop_picture_line_1[] = {Stop_picture_list_4,Stop_picture_list_5,Stop_picture_list_6,Stop_picture_list_7,EOL};

#pragma INTO_ROM
const static unsigned char Play_Pause_picture_line_0[] = {Play_Pause_picture_list_0,Play_Pause_picture_list_1,Play_Pause_picture_list_2,Play_Pause_picture_list_3,EOL};
#pragma INTO_ROM
const static unsigned char Play_Pause_picture_line_1[] = {Play_Pause_picture_list_4,Play_Pause_picture_list_5,Play_Pause_picture_list_6,Play_Pause_picture_list_7,EOL};

unsigned char Head_colume;
unsigned char Head_row;
unsigned char cColor;
void (*UICCFuncPtr) ();
void Null_Func(void);
static void Force_to_DVD_mode(void);
static void Force_to_TV_mode(void);
static void Force_to_RADIO_mode(void);
static void Force_to_AV_mode(void);
static void Force_to_CDC_mode(void);
static void Force_to_SETTING_mode(void);
static void Force_to_GPS_mode(void);
static void Force_to_video_setting_mode(void);
static void Force_to_csp_setting_mode(void);
static void Force_to_time_setting_mode(void);
static void Loudness_enable_disable_process(void);
static void Force_to_CONTRAST_mode(void);
static void Force_to_BRIGHTNESS_mode(void);
static void Force_to_CHROMA_mode(void);
static void Video_setting_default_process(void);
static void Force_to_front_speaker_balance_mode(void);
static void Force_to_back_speaker_balance_mode(void);
static void Force_to_main_volume_mode(void);
static void Force_to_trelbe_volume_mode(void);
static void Force_to_bass_volume_mode(void);
static void Front_speaker_balance_adding_process(void);
static void Front_speaker_balance_dec_process(void);
static void Back_speaker_balance_adding_process(void);
static void Back_speaker_balance_dec_process(void);
static void Main_volume_treble_bass_adding_process(void);
static void Main_volume_treble_bass_dec_process(void);
static void Force_time_type_12HOUR(void);
static void Force_time_type_24HOUR(void);
static void Force_clock_adjust_in_hour(void);
static void Force_clock_adjust_in_minute(void);
static void Force_time_on(void);
static void Force_time_off(void);
static void Switch_bell_on_off(void);
static void Force_to_back_black_mode(void);
static void Force_to_old_system_mode(void);
static void Send_up_disc_command_to_CDC(void);
static void Send_down_disc_command_to_CDC(void);

//*************************************************************************************************************************************
#pragma INTO_ROM
MENU_LIST AV_menu_list[14]=
{

		{ITEM_AV_DEC, {4,3,Default_color}, Display_4pcs_DEC_picture,
			{0xb23,0x32d,0x8e4,0x3fa},
			ITEM_AV_RETURN, ITEM_AV_ADDING,AV_volume_down_key_process},
			
		{ITEM_AV_TOTAL_VOLUME, {9,3,High_light_color}, Display_Total_Volume_picture,
			{0xc5f,0x5cd,0xa3a,0xa66},
			ITEM_AV_DEC, ITEM_AV_TOTAL_VOLUME_DATA ,Null_Func},

		{ITEM_AV_TOTAL_VOLUME_DATA, {0X15,3,Default_color}, Display_Total_Volume_data,
			{0xbff,0x9e9,0x9af,0xbb4},
			ITEM_AV_TOTAL_VOLUME, ITEM_AV_ADDING ,Null_Func},
			
		{ITEM_AV_ADDING, {0X18, 3,Default_color}, Display_4pcs_Adding_picture,
			{0xb5f,0xb5e,0x931,0xca1},
			ITEM_AV_DEC, ITEM_AV_LOUDNESS ,AV_volume_up_key_process},
			
		{ITEM_AV_LOUDNESS, {4,8,Default_color}, Display_AV_loudness_picture,
			{0x5cd,0x336,0x3da,0x4b4},
			ITEM_AV_ADDING, ITEM_AV_MUTE ,Loudness_enable_disable_process},
			
		{ITEM_AV_MUTE, {0X0A, 8,Default_color}, Display_8pcs_Mute_picture,
			{0x5bb,0x5ab,0x3c1,0x727},
			ITEM_AV_LOUDNESS, ITEM_AV_MAIN_MENU ,Mute_key_process},
			
		{ITEM_AV_MAIN_MENU, {0X10, 8,Default_color}, Display_8pcs_main_menu_picture,
			{0x5f9,0x841,0x3b5,0x9e7},
			ITEM_AV_MUTE, ITEM_AV_RETURN ,Force_to_main_menu_mode},
			
		{ITEM_AV_RETURN, {0x16, 8,Default_color}, Display_8pcs_exitting_picture,
			{0x5bc,0xa7e,0x3d6,0xc79},
			ITEM_AV_MAIN_MENU, ITEM_AV_DEC ,Remote_osd_key_process},

		{ITEM_AV_LEFT_CLOSE_PANEL, {0x16, 0x0b,Default_color}, Null_Func,
			{0xe24,0x108,0xc2b,0x2bb},
			ITEM_AV_MAIN_MENU, ITEM_AV_DEC ,Close_panel_sometime_process},

		{ITEM_AV_RIGHT_CLOSE_PANEL, {0x16, 0x0b,Default_color}, Null_Func,
			{0xe0f,0xd73,0xc5f,0xf37},
			ITEM_AV_MAIN_MENU, ITEM_AV_DEC ,Close_panel_sometime_process},

		{ITEM_AV_LEFT_OPEN_PANEL, {0x16, 0x0b,Default_color}, Null_Func,
			{0x289,0x126,0x157,0x277},
			ITEM_AV_MAIN_MENU, ITEM_AV_DEC ,Open_panel_sometime_process},

		{ITEM_AV_RIGHT_OPEN_PANEL, {0x16, 0x0b,Default_color}, Null_Func,
			{0x270,0xdff,0x114,0xeec},
			ITEM_AV_MAIN_MENU, ITEM_AV_DEC ,Open_panel_sometime_process},

		{ITEM_AV_TIME, {0, 0,Default_color}, Display_time_picture,
			{0xd72,0x17c,0xca4,0x378},
			ITEM_AV_MAIN_MENU, ITEM_AV_DEC ,Null_Func},

		{0}
};
//---------------------------------------------------------------------------------------------
#pragma INTO_ROM
MENU_LIST CDC_menu_list[19]=
{

		{ITEM_CDC_UPDISC, {2,3,Default_color}, Display_Up_disc_picture,
			{0xb27,0x248,0x94d,0x3ec},
			ITEM_CDC_RETURN, ITEM_CDC_DOWNDISC ,Send_up_disc_command_to_CDC},
			
		{ITEM_CDC_DOWNDISC, {2,6,Default_color}, Display_Down_disc_picture,
			{0x784,0x243,0x5b2,0x3f9},
			ITEM_CDC_UPDISC, ITEM_CDC_MUTE ,Send_down_disc_command_to_CDC},
			
		{ITEM_CDC_DISC_TRACK_TIME, {8, 3,Default_color}, Display_disc_track_time,
			{0xa6f,0x554,0x9c7,0xb23},
			ITEM_CDC_DOWNDISC, ITEM_CDC_MUTE ,Null_Func},

		{ITEM_CDC_MUTE, {0x18, 3,Default_color}, Display_8pcs_Mute_picture,
			{0xb7f,0xbdb,0x90d,0xdb4},
			ITEM_CDC_DOWNDISC, ITEM_CDC_DEC ,Mute_key_process},

		{ITEM_CDC_DEC, {8, 6,Default_color}, Display_4pcs_DEC_picture,
			{0x83f,0x4eb,0x5b2,0x5eb},
			ITEM_CDC_MUTE, ITEM_CDC_ADDING ,CDC_volume_down_key_process},

		{ITEM_CDC_TOTAL_VOLUME, {0x0b, 6,High_light_color}, Display_Total_Volume_picture,
			{0x731,0x5db,0x6fb,0xaff},
			ITEM_CDC_DEC, ITEM_CDC_TOTAL_VOLUME_DATA ,Null_Func},

		{ITEM_CDC_TOTAL_VOLUME_DATA, {0x17, 6,Default_color}, Display_Total_Volume_data,
			{0x745,0xaef,0x5f9,0xd07},
			ITEM_CDC_TOTAL_VOLUME, ITEM_CDC_ADDING ,Null_Func},

		{ITEM_CDC_ADDING, {0x1a, 6,Default_color}, Display_4pcs_Adding_picture,
			{0x7ed,0xc62,0x5da,0xd7e},
			ITEM_CDC_DEC, ITEM_CDC_JUMP_BACK ,CDC_volume_up_key_process},

		{ITEM_CDC_JUMP_BACK, {2,9,Default_color}, Display_Jump_back_picture,
			{0x4a0,0x24f,0x29c,0x3dc},
			ITEM_CDC_ADDING, ITEM_CDC_JUMP_FRONT ,Send_jump_back_command_to_CDC},

		{ITEM_CDC_JUMP_FRONT, {8,9,Default_color}, Display_Jump_front_picture,
			{0x4ac,0x4da,0x29b,0x647},
			ITEM_CDC_JUMP_BACK, ITEM_CDC_PLAY_PAUSE ,Send_jump_front_command_to_CDC},
			
		{ITEM_CDC_PLAY_PAUSE, {0X0d, 9,Default_color}, Display_play_pause_picture,
			{0x474,0x6ae,0x2bc,0x8e6},
			ITEM_CDC_JUMP_FRONT, ITEM_CDC_MAIN_MENU ,Send_play_pause_command_to_CDC},
			
		{ITEM_CDC_MAIN_MENU, {0X12, 9,Default_color}, Display_8pcs_main_menu_picture,
			{0x4c8,0x90a,0x2bb,0xb10},
			ITEM_CDC_PLAY_PAUSE, ITEM_CDC_RETURN ,Force_to_main_menu_mode},

		{ITEM_CDC_RETURN, {0X18, 9,Default_color}, Display_8pcs_exitting_picture,
			{0x491,0xbba,0x2b4,0xd40},
			ITEM_CDC_MAIN_MENU, ITEM_CDC_UPDISC ,Remote_osd_key_process},

		{ITEM_CDC_TIME, {0, 0,Default_color}, Display_time_picture,
			{0xdf7,0x156,0xbd0,0x397},
			ITEM_CDC_MAIN_MENU, ITEM_CDC_UPDISC ,Null_Func},

		{ITEM_CDC_LEFT_CLOSE_PANEL, {0, 0,Default_color}, Null_Func,
			{0xe24,0x108,0xc2b,0x2bb},
			ITEM_CDC_MAIN_MENU, ITEM_CDC_UPDISC ,Close_panel_sometime_process},

		{ITEM_CDC_RIGHT_CLOSE_PANEL, {0, 0,Default_color}, Null_Func,
			{0xe0f,0xd73,0xc5f,0xf37},
			ITEM_CDC_MAIN_MENU, ITEM_CDC_UPDISC ,Close_panel_sometime_process},

		{ITEM_CDC_LEFT_OPEN_PANEL, {0, 0,Default_color}, Null_Func,
			{0x289,0x126,0x157,0x277},
			ITEM_CDC_MAIN_MENU, ITEM_CDC_UPDISC ,Open_panel_sometime_process},

		{ITEM_CDC_RIGHT_OPEN_PANEL, {0, 0,Default_color}, Null_Func,
			{0x270,0xdff,0x114,0xeec},
			ITEM_CDC_MAIN_MENU, ITEM_CDC_UPDISC ,Open_panel_sometime_process},
			
		{0}
};
//---------------------------------------------------------------------------------------------------------------------
#pragma INTO_ROM
MENU_LIST Csp_menu_list[21]=
{

		{ITEM_CSP_LF, {1,1,Default_color}, Display_LF_speaker_picture,
			{0xd5d,0x1f9,0xae3,0x379},
			ITEM_CSP_RR, ITEM_CSP_FRONT_SP_BALANCE_DEC ,Force_to_front_speaker_balance_mode},
			
		{ITEM_CSP_FRONT_SP_BALANCE_DEC, {6,1,Default_color}, Display_4pcs_DEC_picture,
			{0xd8e,0x3fc,0xadb,0x4f0},
			ITEM_CSP_LF, ITEM_CSP_FRONT_SP_BALANCE_ADDING ,Front_speaker_balance_dec_process},
			
		{ITEM_CSP_FRONT_SP_BALANCE, {9, 1,Default_color}, Display_front_speaker_balance_picture,
			{0xd84,0x5b7,0xc6f,0xa2f},
			ITEM_CSP_FRONT_SP_BALANCE_DEC, ITEM_CSP_FRONT_SP_BALANCE_ADDING ,Null_Func},
			
		{ITEM_CSP_FRONT_SP_BALANCE_ADDING, {0x15,1,Default_color}, Display_4pcs_Adding_picture,

⌨️ 快捷键说明

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