代码拉取完成,页面将自动刷新
#include "Hardware_setting.h"
Current_Select_Mode current_mode ;
//设置音量
void setting_volume(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Volume_Level = VOLUME_LEVEL0 ;
break ;
case 1:
current_mode.Current_Volume_Level = VOLUME_LEVEL1 ;
break ;
case 2:
current_mode.Current_Volume_Level = VOLUME_LEVEL2 ;
break ;
case 3:
current_mode.Current_Volume_Level = VOLUME_LEVEL3 ;
break ;
case 4:
current_mode.Current_Volume_Level = VOLUME_LEVEL4 ;
break ;
default:
break ;
}
}
//设置背光
void setting_backlight(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL0 ;
break ;
case 1:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL1 ;
break ;
case 2:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL2 ;
break ;
case 3:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL3 ;
break ;
case 4:
current_mode.Current_Backlight_Level = BACKLIGHT_LEVEL4 ;
break ;
default:
break ;
}
}
//设置无线网络的状态
void setting_wlan_status(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Select_Wlan = WLAN_OFF ;
break ;
case 1:
current_mode.Current_Select_Wlan = WLAN_OFF ;
break ;
default:
break ;
}
}
//设置语言
void setting_language(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Select_Language = CHINESE ;
break ;
case 1:
current_mode.Current_Select_Language = ENGLISH ;
break ;
default:
break ;
}
}
//设置灵敏度
void setting_sensivity(menu_u32 index)
{
switch(index)
{
case 0:
current_mode.Current_Sensivity = SENSIVITY_HIGH ;
break ;
case 1:
current_mode.Current_Sensivity = SENSIVITY_MIDDLE ;
break ;
case 2:
current_mode.Current_Sensivity = SENSIVITY_LOW ;
break ;
default:
break ;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。