?? gbl_macrodef.h
字號:
/**
* @file Gbl_MacroDef.h
* @brief This header file is for definition
* Copyright (C) 2006 Anyka (GuangZhou) Software Technology Co., Ltd.
* @version 1.0
*/
#ifndef __GBL_MACRODEF_H__
/**
* @def __GBL_MACRODEF_H__
*
*/
#define __GBL_MACRODEF_H__
#ifndef ANYKA_MMI
#define ANYKA_MMI
#endif
/** @defgroup GDataTypes Global Data Types
*
* @{
*/
/** @{@name preliminary type definition for global area
*/
typedef unsigned char T_U8; /**< unsigned 8 bit integer */
typedef unsigned short T_U16; /**< unsigned 16 bit integer */
typedef unsigned long T_U32; /**< unsigned 32 bit integer */
typedef signed char T_S8; /**< signed 8 bit integer */
typedef signed short T_S16; /**< signed 16 bit integer */
typedef signed long T_S32; /**< signed 32 bit integer */
typedef void T_VOID; /**< void */
/** @} */
/** @{@name basal type definition for global area
*/
typedef T_U8 T_BOOL; /**< BOOL type */
typedef T_VOID * T_pVOID; /**< pointer of void data */
typedef const T_VOID * T_pCVOID; /**< const pointer of void data */
typedef T_S8 T_CHR; /**< character type */
typedef T_CHR * T_pSTR; /**< pointer of string */
typedef const T_CHR * T_pCSTR; /**< const pointer of string */
/** @} */
/** @{@name unicode string definition
*/
typedef T_U16 T_WCHR; /**< unicode type */
typedef T_WCHR * T_pWSTR; /**< pointer of string */
typedef const T_WCHR * T_pCWSTR; /**< const pointer of string */
/** @} */
#ifndef UNICODE
#define T_TCHR T_CHR /**< character type that is portable for ANSI */
#define T_pTSTR T_pSTR /**< string pointer type that is portable for ANSI */
#define T_pCTSTR T_pCSTR /**< constant string pointer type that is portable for ANSI */
#else
#define T_TCHR T_WCHR /**< character type that is portable for Unicode */
#define T_pTSTR T_pWSTR /**< string pointer type that is portable for Unicode */
#define T_pCTSTR T_pCWSTR /**< constant string pointer type that is portable for Unicode */
#endif
typedef T_U8 * T_pDATA; /**< pointer of data */
typedef const T_U8 * T_pCDATA; /**< const pointer of data */
typedef T_S16 T_LEN; /**< length type: unsigned short */
typedef T_S16 T_POS; /**< position type: short */
typedef T_U32 T_COLOR; /**< color type: unsigned int */
typedef T_S32 T_TIMER; /**< timer type: int */
typedef T_U32 T_HANDLE; /**< a handle */
typedef T_pVOID T_LPTHREAD_START; /**< handle for thread */
#define AK_FALSE 0 /**< true value*/
#define AK_TRUE 1 /**< false value*/
#define AK_NULL ((T_VOID*)0) /**< the null-pointer value used with many pointer operations and functions*/
#define MAX_INFO_LEN 50 /**< define maximum string buffer length (bytes) */
#define MAX_TELE_LEN 30 /**< maximum telephone number length*/
#define MIN_TELE_LEN 1 /**< GSM protocol defined that telenumber with length of 1 can be dialed in some cases */
#define MAX_NAME_LEN 16 /**< maximum name length*/
#define MAX_ADDR_LEN 40 /**< maximum email address length*/
#define MAX_TIME_LEN 40 /**< maximum time length*/
#define MIN_NETID_LEN 5 /**< minimum network ID length*/
#define MAX_NETID_LEN 6 /**< maximum network ID length*/
#define MAX_NETNAME_LEN 20 /**< maximum network name length*/
#define MAX_PSWD_LEN 8 /**< maximum password length*/
#define MIN_PSWD_LEN 4 /**< minimum password length*/
#define MAX_MUSIC_LEN 200 /**< maximum music string len*/
#define MAX_FILEPATH_LEN 255 /**< max filepath string len (include path, and not include '\0')*/
#define MAX_SAVE_FILENAME_LEN 64 /**< max save filename string len (not include path, and not include '\0') only used when saving file(MMS/WAP/Camera)*/
/** Maximum PDU length:
* (13<Center> + 1 + 12<Address> + 1<TP-PID> + 1<TP+DCS> +
* 7<TP_SCTS> + 1<TP_UDL> + 140<TP_UD>) * 2 = 352
*/
#define MAX_PDU_LEN 380 /**< maximum length of SMS PDU*/
#define MAX_MMS_PROXY_LENGTH 100 /**< maximum length of MMS proxy*/
#define MAX_MMS_SIZE 100 /**< maximum MMS size*/
#define MAX_IPNO_LEN 10 /**< maximum length of IP number*/
#define MAX_EMAIL_ACCOUNT_RECORD 5 /**< max account record for email*/
#define MAX_SMSPKT_NUM 15 /**< maximum number of sms packets*/
#define MAX_STR_LINE 100 /**< maximum line of string*/
#define FONT_SIZE_NUM 5 /**< number of font size*/
#define LCD0_SCBAR_SIDE 10 /**< Side height of LCD1 scroll bar(pixel) */
#define MAX_CLASS_TYPE_NUM 10 /**< maximum number of class type*/
#define STK_MENU_ID 0x7FFF /**< ID of STK menu*/
#define RETURN_TO_HOME 100 /**< return 100 levels*/
#define MAX_SIM_CAP 1000 /**< maximum capacity of SIM card*/
#define INITIALIZED_FLAG 0x51fa /**< a random value for identify initialized or not */
#define ONT_TCH_TEL_QTY 9 /**< quantity of one touch telenumber*/
#define GSMALPHASTART 127 /**< start of GSM alphabet*/
#define GSMALPHAEND 155 /**< end of GSM alphabet*/
#define GSMALPHANUMBER 29 /**< number of GSM alphabet*/
#define MAX_CALSS0_NUMBER 10 /**< the max number of class0 to be displayed*/
#define CLKMAXTYPE 9 /**< alarm date type*/
#define CUR_LANG_NUM 2 /**< Current language number */
#define MAX_MMS_TITLE 40 /**< maximum length of MMS title */
#define MAX_USER_PROMPT_LENGTH 40 /**< maximum length of user prompt */
#define MAX_EMAIL_LENGTH 40 /**< maximum email address length*/
#define MAX_DS_SETTING 5 /**< maximum quantity of data service setting*/
#define MAX_WAP_PROFILE 5 /**< maximum wap profile*/
#define MAX_MMS_TEXT_LENGTH 1000 /**< maximum length of MMS Text*/
#define MAX_MMS_EMAIL_NUMBER 20 /**< maximum number of MMS email supported*/
#define MAX_MMS_SENDER_NUMBER 20 /**< maximum number of MMS sender supported*/
#define MAX_SENDTO_LENGTH 800 /**< maximum length of send-to*/
#define MAX_MMS_PROXY_LENGTH 100 /**< maximum length of MMS proxy*/
#define MAX_NUMBER_STORE_IMAGE 25 /**< maximum number of stored image*/
#define MAX_NUMBER_STORE_AUDIO 40 /**< maximum number of stored audio*/
#define MAX_MANAGE_MMS_MEDIA_NUMBER 100 /**< maximum number of MMS media managed*/
/** @{@name for main menu
*/
#define MAX_MAINMENU_NUMBER 13 /**< maximum number of main menu*/
#define ANIMATE_FRAME 4 /**< frame of animate*/
#define PROCESS_FRAME 5 /**< frame of process*/
/** @} */
/** @{@name extreme value for preliminary types
*/
#define T_U8_MAX (0xff) /**< maximum T_U8 value*/
#define T_U16_MAX (0xffff) /**< maximum T_U16 value*/
#define T_U32_MAX (0xffffffff) /**< maximum T_U32 value*/
#define T_S8_MIN (-128) /**< minimum T_S8 value*/
#define T_S8_MAX (127) /**< maximum T_S8 value*/
#define T_S16_MIN (-32768L) /**< minimum T_S16 value*/
#define T_S16_MAX (32767L) /**< maximum T_S16 value*/
#define T_S32_MIN (-2147483648L) /**< minimum T_S32 value*/
#define T_S32_MAX (2147483647L) /**< maximum T_S32 value*/
/** @} */
#define SPACEMARK "\n ,.?!:;" /**< macro definition for space mark*/
#define INITIALYEAR 2000 /**< initial year to calculate current time*/
/** Anyka MMI supported language */
typedef enum {
lgSMPCHN = 0, /**< Simple Chinese */
lgCPXCHN, /**< Traditional Chinese */
lgENGLISH, /**< English */
lgGERMAN, /**< German */
lgITALIAN, /**< Italian */
lgFRENCH, /**< French */
lgSPANISH, /**< Spanish */
lgDUTCH, /**< Dutch */
lgSWEDISH, /**< Swedish */
lgDANISH, /**< Danish */
lgPORTUGUESE, /**< Portuguese */
lgFINNISH, /**< Finnish */
lgNORWEGIAN, /**< Norwegian */
lgGREEK, /**< Greek */
lgTURKISH, /**< Turkish */
lgHUNGARIAN, /**< Hungarian */
lgPOLISH, /**< Polish */
MAX_LANG_NUM /**< maximum number of language type */
} T_eLANGUAGE;
typedef T_S8 T_STR_INFO[MAX_INFO_LEN+1]; /**< type definition for information string */
typedef T_S8 T_STR_TELE[MAX_TELE_LEN+1]; /**< type definition for telenumber string */
typedef T_S8 T_STR_NAME[MAX_NAME_LEN+1]; /**< type definition for telenumber string */
typedef T_S8 T_STR_ADDR[MAX_ADDR_LEN+1]; /**< type definition for name string */
typedef T_S8 T_STR_TIME[MAX_TIME_LEN+1]; /**< type definition for time string */
typedef T_S8 T_STR_NETID[MAX_NETID_LEN+1]; /**< type definition for net ID string */
typedef T_S8 T_STR_NETNAME[MAX_NETNAME_LEN+1]; /**< type definition for net name string */
typedef T_S8 T_STR_PSWD[MAX_PSWD_LEN+1]; /**< type definition for password string */
typedef T_S8 T_STR_MUSIC[MAX_MUSIC_LEN+1]; /**< type definition for music string */
typedef T_S8 T_STR_PDU[MAX_PDU_LEN+1]; /**< type definition for SMS PDU string*/
typedef T_S8 T_STR_MMS_PROXY[MAX_MMS_PROXY_LENGTH + 1]; /**< type definition for MMS proxy string*/
typedef T_S8 T_STR_IPLEN[MAX_IPNO_LEN+1]; /**< type definition for IP number string*/
typedef T_S8 T_STR_FILEPATH[ MAX_FILEPATH_LEN + 1 ]; /**< type definition for file path string*/
typedef T_S8 T_STR_20[21]; /**< type definition for string of 20 characters*/
typedef T_S8 T_STR_50[51]; /**< type definition for string of 50 characters*/
typedef T_S8 T_STR_100[101]; /**< type definition for string of 100 characters*/
typedef T_S8 T_STR_200[201]; /**< type definition for string of 200 characters*/
typedef T_S8 T_STR_300[301]; /**< type definition for string of 300 characters*/
typedef T_S8 T_STR_400[401]; /**< type definition for string of 400 characters*/
typedef T_S8 T_STR_500[501]; /**< type definition for string of 500 characters*/
typedef T_S8 T_STR_600[601]; /**< type definition for string of 600 characters*/
typedef T_S8 T_STR_800[801]; /**< type definition for string of 800 characters*/
typedef T_S8 T_STR_1024[1025]; /**< type definition for string of 1024 characters*/
typedef T_S8 T_STR_8000[8001]; /**< type definition for string of 8000 characters*/
typedef T_S8 T_STR_10240[10241]; /**< type definition for string of 10240 characters*/
typedef T_S8 T_STR_MMSTITLE[MAX_MMS_TITLE+1]; /**< type definition for MMS title string*/
typedef T_S8 T_STR_PROMPT[MAX_USER_PROMPT_LENGTH+1]; /**< type definition for user prompt string*/
typedef T_S8 T_STR_EMAIL[MAX_EMAIL_LENGTH+1]; /**< type definition for email address string*/
typedef T_S8 T_STR_SENDTO[MAX_SENDTO_LENGTH+20]; /**< type definition for MMS sendto string*/
typedef T_S8 T_STR_CCTO[MAX_SENDTO_LENGTH+20]; /**< type definition for MMS ccto string*/
typedef T_S8 T_STR_BCCTO[MAX_SENDTO_LENGTH+20]; /**< type definition for MMS bccto string*/
T_S32 Fwl_Printf(const T_S8 *s, ...);
/** @}*/
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -