一不小心又进化系列(enum的随性用法)

enum
{
	LCD_RSP_INDEX_CUSTOM_POWER 		= 0;	LCD_RSP_ADDR_CUSTOM_POWER 		= 0x2100;/*page power setting*/
	LCD_RSP_INDEX_PERCENT_MIN  		= 1;	LCD_RSP_ADDR_PERCENT_TAGE_MIN	= 0x2101;
	LCD_RSP_INDEX_PERCENT_MAX  		= 2; 	LCD_RSP_ADDR_PERCENT_TAGE_MAX	= 0x2102; 
	LCD_RSP_INDEX_SUNSET_SETUP_CHA 	= 3;	LCD_RSP_ADDR_SUNSET_SETUP_CHA	= 0x3100;/*page Sunrise/Sunset*/
	LCD_RSP_INDEX_SUNSET_SETUP_CHB 	= 4;	LCD_RSP_ADDR_SUNSET_SETUP_CHB	= 0x3101; 
	LCD_RSP_INDEX_SUNSET_ACTIVE_CHA = 5;	LCD_RSP_ADDR_SUNSET_ACTIVE_CHA	= 0x3102;
	LCD_RSP_INDEX_SUNSET_ACTIVE_CHB = 6;	LCD_RSP_ADDR_SUNSET_ACTIVE_CHB	= 0x3103;
	LCD_RSP_INDEX_SCREENOFF 		= 7;	LCD_RSP_ADDR_SCREEN_ON_OFF		= 0x4100;/*page screen off*/
	LCD_RSP_INDEX_SETTING_FC 		= 8;	LCD_RSP_ADDR_SETTING_F_C		= 0x5100;/*page setting*/
	LCD_RSP_INDEX_COUNT				= 9;
};

看到没, enum的好处就是,统一化的数据声明。

你可能感兴趣的:(服务器,linux,网络)