REVISION
Definition in file message.h.
#include "../feature.h"
Include dependency graph for message.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
|
|
LCD message definition.
Definition at line 121 of file message.h. 00122 {
00123 LUPDATE
00124 } LCD_MSG;
|
|
|
System message definition.
Definition at line 56 of file message.h. 00057 {
00058 SSHUT_DOWN,
00059 SUSB_PLUG,
00060 SUSB_UNPLUG,
00061 SUSB_START,
00062 SUSB_STOP,
00063 SSTATE_START,
00064 SSTATE_END,
00065 SMENUBROWSE,
00066 SDBBROWSE,
00067 SBROWSE,
00068 SENDOFMENU,
00069 SMSGBOX_CREATE,
00070 SMSGBOX_EXIT,
00071 SCSF_NULL,
00072 SSF_NULL,
00073 SPSF_NULL,
00074 SCREATETASK,
00075 SXIM_CREATE,
00076 SXIM_EXIT,
00077 SSTATE_END_ACK,
00078 SSTART2PLAY,
00079 SSTOPPLAY,
00080 SRESUMEPLAY,
00081 SAUDIOCTL,
00082 SAUDIOTIME_UPDT,
00083 SENDOFMUSIC,
00084 SCURRENTAUDIOFILE,
00085 SNEXTAUDIOFILE,
00086 SVOLWIN_CREATE,
00087 SSTARTRADIO,
00088 SSTART2RECORD,
00089 SSTART2HISI,
00090 SMEMBAR_UPDT,
00091 SPOWERUP,
00092 SDISKDBREADY,
00093 SPOWER_LOW,
00094 SPOWER_PLUG,
00095 SPOWER_UNPLUG,
00096 SSHUFFLECHANGED,
00097 SREPEATCHANGED,
00098 SMIFIMODECHANGED,
00099 SMIFIQUALITYCHANGED,
00100 SMEDIAFULL,
00101 SPRESET,
00102 SGO2PRESET,
00103 SRTC_UPDT,
00104 SMYMIXCHANGED,
00105 SMYFICHANNELWIN_CREATE,
00106 SMYFICHANNELCHANGED,
00107 SBATLEVEL_UPDT,
00108 SBATLOW_SHUTDOWN,
00109 SPOWERUP_SEQUENCEDONE,
00110 SHIDDENFEATURE,
00111 SPLAYQCHANGED,
00112 SFORCEOFF,
00113 SINITSTATUSBAR,
00114
00115 SDIAGNOSIS,
00116 xxxxxxxxxxx
00117 } SYS_MSG;
|
|
|
Function creates a message queue and return a queue handle.
Definition at line 84 of file MSG_main.c. Referenced by SYS_main(), UI_main(), and UI_parent(). 00085 {
00086 int ii = MSGQ_MAX_HDL;
00087
00088 while(ii--)
00089 {
00090 if( NULL == msgQ[ii] ) break;
00091 }
00092
00093 if( -1 == ii ) return MSGQ_INVALID_HDL;
00094
00095 msgQ[ii++] = MBX_create(sizeof(st_MSG), length, NULL);
00096
00097 return( (MSGQ_HDL)ii | ((~ii+1)<< 8) );
00098 }
|
|
||||||||||||||||
|
Function gets message out of the process queue. If the queue is empty, process will get suspended by the operating system.
Definition at line 189 of file MSG_main.c. References st_MSG::id. 00190 {
00191 unsigned char t = q&0x0ff;
00192 if( ((~t+1)<<8) == (q&0x0ff00) )
00193 {
00194 t--;
00195 MBX_pend(msgQ[t], msg, timeout);
00196 }
00197 else msg->id = INVALID_MSG_ID;
00198 }
|
|
||||||||||||||||
|
Function sends message to the specified queue. If the queue is full, caller will get suspended by the operating system.
Definition at line 132 of file MSG_main.c. Referenced by MSG_send2(), SYS_main(), SYS_SF_idle(), SYS_SF_waitIdle(), TMR_main(), UI_CSF_msgbox(), UI_CSF_myfiChannel(), UI_CSF_null(), UI_CSF_volume(), UI_CSF_xim(), UI_SF_autoscan(), UI_SF_dbmenu(), UI_SF_menu(), and UI_SF_null(). 00133 {
00134 unsigned char t;
00135
00136 if( (SYS_isWatchDogSlept(15))&&(0 == timeout)&&(lcdMsgQ != q) )
00137 {
00138 return FALSE;
00139 }
00140
00141 t = q&0x0ff;
00142 if( ((~t+1)<<8) == (q&0x0ff00) )
00143 {
00144 t--;
00145 return MBX_post(msgQ[t], msg, timeout);
00146 }
00147 return FALSE;
00148 }
|
|
||||||||||||||||||||||||
|
Function sends message to the specified queue. If the queue is full, caller will get suspended by the operating system.
Definition at line 168 of file MSG_main.c. References st_MSG::d1, st_MSG::d2, st_MSG::id, and MSG_send(). 00169 {
00170 st_MSG msgOUT;
00171 msgOUT.id = mID;
00172 msgOUT.d1 = d1;
00173 msgOUT.d2 = d2;
00174 return MSG_send(q, &msgOUT, t);
00175 }
|
Here is the call graph for this function:

1.3.9.1