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

📄 msgdef.h

📁 本人编写的无线电话程序,给予PIC18C801设计,包括了uCOS的移植以及菜单,自己设计的拼音注入法,完整地一级汉字库,希望对大家有所帮助
💻 H
字号:
/*                                     defination of message ID                                */
//Message between different software function module
//Direct message ID definations, range: 0x800000 ~ 0x8fffff
#define MSG_WIC_INITOK		0x800100	//WIC init passed
#define MSG_WIC_NOUIM		0x800101

#define MSG_COM0_TXFINISH	0x800220

#define MSG_VOICE_OFFHOOK	0x800400
#define MSG_VOICE_ONHOOK	0x800401
#define MSG_VOICE_CONNECT	0x800403
#define MSG_VOICE_BUSY		0x800404
#define MSG_VOICE_ANSWER	0x800405	//answer incomming call and stop ring
#define MSG_VOICE_REJECT	0x800406	//just reject incoming call when dialing
#define MSG_VOICE_SWITCH	0x800407
//#define MSG_DTMF_SEND		0x800500

#define MSG_TIME_QUERY		0x800601	//Query module's RTC for time
#define MSG_SECOND_TICK		0x800602
#define MSG_HOOK_OFF		0x800620
#define MSG_HOOK_ON			0x800621
#define MSG_TONE_BUSY		0x800650
#define MSG_TONE_STOP		0x800654
#define MSG_PLAY_MUS		0x800657

#define MSG_CHARGE_BEGIN	0x800670
#define MSG_CHARGE_STOP		0x800671

#define MSG_TONE450_OFF		0x800700
#define MSG_TONE450_ON		0x800701

#define MSG_MCNM_LOCKPHONE	0x800711
#define MSG_MCNM_TXSUCCESS	0x800712
#define MSG_MCNM_TXFAIL		0xf00713
#define MSG_MCNM_TXBUSY		0xf00714
#define MSG_MCNM_TXNOPORT	0xf00715
#define MSG_MCNM_SETPORT	0xf00716
#define MSG_MCNM_CLEARSYSFILE	0xf00717

#define MSG_CARTOON_DIALOUT		0x800850
#define MSG_CARTOON_DIALOUTSTOP	0x800851
#define MSG_CARTOON_RING		0x800852
#define MSG_CARTOON_RINGSTOP	0x800853
#define MSG_CARTOON_LOGO		0x800854
#define MSG_CARTOON_NOUIM		0x800855

#define MSG_RING_BEGIN		0x800900
#define MSG_RING_STOP		0x800901
#define MSG_MENU_CANCEL		0x800930	//tskDVS order tskMenu to exit
#define MSG_MENU_EXIT		0x800931	//tskMenu send it to tskDVS when user exit menu
#define MSG_SM_ACCEPT		0x800a00	//to send acknowledge for a SM
#define MSG_SM_NEW			0x800a01	//new message arrived
#define MSG_SM_SENDFAIL		0x800a03
#define MSG_SM_SENDSUCC		0x800a04
//Undirect message ID definations, range: 0xf00000 ~ 0xffffff
#define MSG_LDATA_RECEIVE 	0xf00118
#define MSG_DEBUG_RECEIVE	0xf00700
#define MSG_COM0_TRANSMIT	0xf00211
#define MSG_VOICE_CONREQ	0xf00402
#define MSG_VOICE_DIRECTCALL	0xf00403
#define MSG_VOICE_3PARTY	0xf00408
#define MSG_MODULE_RECEIVE	0xf0050e
#define MSG_TIME_CORRECTION 0xf00600	//Time value from module's RTC
#define MSG_KEY_PRESS		0xf00630
#define MSG_MCNM_RECEIVE	0xf00710
#define MSG_MCNM_TRANSMIT	0xf00711
#define MSG_TONE_PLAY		0xf00656

#define MSG_MENU_KEY		0xf00932	//DVS send key valu to Menu

#define MSG_SM_SEND			0xf00a02

#define	MSG_TIMER_START		0xf01000
#define MSG_TIMER_STOP		0xf01001
#define MSG_TIMER_EXPIRE	0xf01002

#define MSG_PROT_RECEIVE	0xf01100
#define MSG_PROT_TRANSMIT	0xf01101
//Message between submodules within same function module, range: 0x900000 ~ 0x9fffff
#define MSG_WICRESP_ERROR	0x900100
#define MSG_WICRESP_OK		0x900101
#define MSG_WICRESP_BUSY	0x900102
#define MSG_WICRESP_SMPROMPT	0x900103
#define MSG_WICRESP_RING	0x900104
#define MSG_WICRESP_NOCARRIER	0x900105
#define MSG_WICRESP_UIMPUK	0x900107
#define MSG_WICRESP_UIMPIN	0x900108
#define MSG_WICRESP_UIMRDY	0x900109
#define MSG_WICRESP_UIMNON	0x90010a


//#define MSG_WICRESP_CHAALLOC	0x900106	//Channel has been allocated

#define MSG_WICRESP_CLIP	0xe00106
#define MSG_WICRESP_WIND	0xe0010a
#define MSG_WICRESP_WEND	0xe0010b

#define MSG_FILE_NEWFILECREATE 	0x900200


//this part shall be copied to msgdef.h
#define MSG_LOW_UP			0x810001
#define MSG_LOW_DOWN		0x810002
#define MSG_DATA_CONREQ		0xc10003
#define MSG_DATA_ONHOOK		0x810004
#define MSG_PPP_CLEAR		0x810005
#define MSG_NDATA_RECEIVE	0xc10006
#define MSG_UPPER_CLOSE		0x810007
#define MSG_UPPER_OPEN		0x810008
#define MSG_NDATA_PACKET	0xc10009
#define MSG_DATA_CONSUCC	0x81000a

#define MSG_IP_TRANSMIT		0xc11001
#define MSG_ICMP_TRANSMIT	0xc11002
#define MSG_PPP_SETNUMBER	0xc11003

#define MSG_UDP_DATA		0xc11004

⌨️ 快捷键说明

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