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

📄 strdefs.h

📁 atmel芯片的Linux驱动程序。很多802.11协议的无限网卡都使用该芯片
💻 H
字号:
#ifndef __STRDEFS_H__#define __STRDEFS_H__#ifdef LOW_RES#define WIDTH 70#define HEIGHT 3#define WINHEIGHT 18#else#define WIDTH 78#define HEIGHT 3#define WINHEIGHT 18#endif // LOW_RES/* Macros for Grouping Basic functionalities */#define WATTR(WIN, ATTR, INSIDE) \    wattron(WIN, ATTR);\    INSIDE\    wattroff(WIN, ATTR);#define CENTER(WIN, Y, STR) \    mvwhline(WIN, Y, 1, ' ', WIDTH-2); \    mvwprintw(WIN, Y, (WIDTH-strlen(STR))/2, STR);#define HEADER(WIN, STR) \    WATTR( WIN, A_BOLD | COLOR_PAIR(2), \    CENTER( WIN, 1, STR) ) \    mvwhline(WIN, 2, 1, ACS_HLINE, WIDTH-2); /* Default String Definitions */#ifdef ATMELstatic const char CompanyName[] = "ATMEL";#elif defined(SMARTBRIDGES)static const char CompanyName[] = "SmartBridges";#endif#ifdef CALLER_COFVNETstatic const char *conf_choices[] = {	"Select SSID name (max 32 characters)",	"Select Channel",	"Select Radio State",	"Select International Roaming State",	"Select Transmit Rate",	"Select Operating Mode",	"Select Preamble Type",	"Select Power Mgmt Mode",	"Select Fragmentation Threshold",	"Select Rts Threshold",	"Exit   Menu",};static const char *choices[] = {//	"View Configuration",	"View Config",	"Advanced",  "Security",	"Configure Card",  "Site Survey",	"Exit",};static const char *offon[] = { "Off", "On" };static const char *dis_enable[] = { "Disable", "Enable" };static const char *powermode[] = { "Active", "Power Save", "Smart P. Save" };static const char *txrate[] = { "1Mbps", "2Mbps", "5.5Mbps", "11Mbps", "Auto" };#endif // caller == cofvnet#ifdef CALLER_SETSstatic const char *wep_choices[] = {             "Set    Wep Level",	     "Set    Transmission Key",             "Set    Wep Key Value",//             "Set    Wep Mode",             "Set    Authentication type",             "Exit   Menu",	};static const long frequency_list[] = { 2412, 2417, 2422, 2427, 2432, 2437, 2442,				2447, 2452, 2457, 2462, 2467, 2472, 2484 };#else		// caller != sets.cstatic const char *opermode[] = { "Ad-hoc", "Infrastructure" };#endif		  // caller == sets.c#ifdef CALLER_SURVEYstatic const char *nychoice[] = { "No", "Yes" };#else	// caller != survey.c#endif		// caller == survey.c#endif //__STRDEFS_H__

⌨️ 快捷键说明

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