0
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* Name : PN_MODEM_MCE [ 0xC2 ] Resource Modem Control Entity
|
|
16 |
* Version : 001.001
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef _SYMBIAN_ISI_MCEISI_H_
|
|
22 |
#define _SYMBIAN_ISI_MCEISI_H_
|
|
23 |
|
|
24 |
#define MODEM_CONTROL_ENTITY_ISI_VERSION_Z 1
|
|
25 |
#define MODEM_CONTROL_ENTITY_ISI_VERSION_Y 1
|
|
26 |
|
|
27 |
|
|
28 |
//TABLES
|
|
29 |
|
|
30 |
//ConstantTable for MCE_STATUS_INFO
|
|
31 |
#define MCE_OK 0x00
|
|
32 |
#define MCE_FAIL 0x01
|
|
33 |
#define MCE_ALREADY_ACTIVE 0x06
|
|
34 |
#define MCE_TRANSITION_ONGOING 0x16
|
|
35 |
#define MCE_RESTART_REQUIRED 0x17
|
|
36 |
|
|
37 |
//ConstantTable for MCE_MODEM_STATE
|
|
38 |
#define MCE_NORMAL 0x00
|
|
39 |
#define MCE_LOCAL 0x01
|
|
40 |
#define MCE_SW_RESET 0x80
|
|
41 |
#define MCE_POWER_OFF 0x81
|
|
42 |
|
|
43 |
//ConstantTable for MCE_ACTION
|
|
44 |
#define MCE_START 0x03
|
|
45 |
#define MCE_READY 0x04
|
|
46 |
|
|
47 |
//ConstantTable for MCE_ACTION_SELECT
|
|
48 |
#define MCE_DISABLE 0x00
|
|
49 |
#define MCE_ENABLE 0x01
|
|
50 |
|
|
51 |
//ConstantTable for MCE_RF_STATE
|
|
52 |
#define MCE_RF_OFF 0x00
|
|
53 |
#define MCE_RF_ON 0x01
|
|
54 |
|
|
55 |
|
|
56 |
//MESSAGES
|
|
57 |
|
|
58 |
|
|
59 |
//Definition for MCE_MODEM_STATE_IND
|
|
60 |
#define MCE_MODEM_STATE_IND 0x00
|
|
61 |
#define MCE_MODEM_STATE_IND_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
62 |
#define MCE_MODEM_STATE_IND_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
63 |
#define MCE_MODEM_STATE_IND_OFFSET_STATE 2 //size 1 byte(s)
|
|
64 |
#define MCE_MODEM_STATE_IND_OFFSET_ACTION 3 //size 1 byte(s)
|
|
65 |
#define SIZE_MCE_MODEM_STATE_IND 4
|
|
66 |
|
|
67 |
|
|
68 |
//Definition for MCE_MODEM_STATE_QUERY_REQ
|
|
69 |
#define MCE_MODEM_STATE_QUERY_REQ 0x01
|
|
70 |
#define MCE_MODEM_STATE_QUERY_REQ_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
71 |
#define MCE_MODEM_STATE_QUERY_REQ_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
72 |
#define MCE_MODEM_STATE_QUERY_REQ_OFFSET_FILLERBYTE1 2 //size 1 byte(s)
|
|
73 |
#define MCE_MODEM_STATE_QUERY_REQ_OFFSET_FILLERBYTE2 3 //size 1 byte(s)
|
|
74 |
#define SIZE_MCE_MODEM_STATE_QUERY_REQ 4
|
|
75 |
|
|
76 |
|
|
77 |
//Definition for MCE_MODEM_STATE_QUERY_RESP
|
|
78 |
#define MCE_MODEM_STATE_QUERY_RESP 0x02
|
|
79 |
#define MCE_MODEM_STATE_QUERY_RESP_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
80 |
#define MCE_MODEM_STATE_QUERY_RESP_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
81 |
#define MCE_MODEM_STATE_QUERY_RESP_OFFSET_CURRENT 2 //size 1 byte(s)
|
|
82 |
#define MCE_MODEM_STATE_QUERY_RESP_OFFSET_TARGET 3 //size 1 byte(s)
|
|
83 |
#define SIZE_MCE_MODEM_STATE_QUERY_RESP 4
|
|
84 |
|
|
85 |
|
|
86 |
//Definition for MCE_RF_STATE_IND
|
|
87 |
#define MCE_RF_STATE_IND 0x05
|
|
88 |
#define MCE_RF_STATE_IND_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
89 |
#define MCE_RF_STATE_IND_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
90 |
#define MCE_RF_STATE_IND_OFFSET_TARGET 2 //size 1 byte(s)
|
|
91 |
#define MCE_RF_STATE_IND_OFFSET_ACTION 3 //size 1 byte(s)
|
|
92 |
#define SIZE_MCE_RF_STATE_IND 4
|
|
93 |
|
|
94 |
|
|
95 |
//Definition for MCE_RF_STATE_REQ
|
|
96 |
#define MCE_RF_STATE_REQ 0x03
|
|
97 |
#define MCE_RF_STATE_REQ_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
98 |
#define MCE_RF_STATE_REQ_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
99 |
#define MCE_RF_STATE_REQ_OFFSET_ACTION 2 //size 1 byte(s)
|
|
100 |
#define MCE_RF_STATE_REQ_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
101 |
#define SIZE_MCE_RF_STATE_REQ 4
|
|
102 |
|
|
103 |
|
|
104 |
//Definition for MCE_RF_STATE_RESP
|
|
105 |
#define MCE_RF_STATE_RESP 0x04
|
|
106 |
#define MCE_RF_STATE_RESP_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
107 |
#define MCE_RF_STATE_RESP_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
108 |
#define MCE_RF_STATE_RESP_OFFSET_STATUS 2 //size 1 byte(s)
|
|
109 |
#define MCE_RF_STATE_RESP_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
110 |
#define SIZE_MCE_RF_STATE_RESP 4
|
|
111 |
|
|
112 |
|
|
113 |
//Definition for MCE_RF_STATE_QUERY_REQ
|
|
114 |
#define MCE_RF_STATE_QUERY_REQ 0x06
|
|
115 |
#define MCE_RF_STATE_QUERY_REQ_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
116 |
#define MCE_RF_STATE_QUERY_REQ_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
117 |
#define MCE_RF_STATE_QUERY_REQ_OFFSET_FILLERBYTE1 2 //size 2 byte(s)
|
|
118 |
#define SIZE_MCE_RF_STATE_QUERY_REQ 4
|
|
119 |
|
|
120 |
|
|
121 |
//Definition for MCE_RF_STATE_QUERY_RESP
|
|
122 |
#define MCE_RF_STATE_QUERY_RESP 0x07
|
|
123 |
#define MCE_RF_STATE_QUERY_RESP_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
124 |
#define MCE_RF_STATE_QUERY_RESP_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
125 |
#define MCE_RF_STATE_QUERY_RESP_OFFSET_CURRENT 2 //size 1 byte(s)
|
|
126 |
#define MCE_RF_STATE_QUERY_RESP_OFFSET_TARGET 3 //size 1 byte(s)
|
|
127 |
#define SIZE_MCE_RF_STATE_QUERY_RESP 4
|
|
128 |
|
|
129 |
|
|
130 |
//Definition for MCE_POWER_OFF_REQ
|
|
131 |
#define MCE_POWER_OFF_REQ 0x08
|
|
132 |
#define MCE_POWER_OFF_REQ_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
133 |
#define MCE_POWER_OFF_REQ_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
134 |
#define MCE_POWER_OFF_REQ_OFFSET_FILLERBYTE1 2 //size 2 byte(s)
|
|
135 |
#define SIZE_MCE_POWER_OFF_REQ 4
|
|
136 |
|
|
137 |
|
|
138 |
//Definition for MCE_POWER_OFF_RESP
|
|
139 |
#define MCE_POWER_OFF_RESP 0x09
|
|
140 |
#define MCE_POWER_OFF_RESP_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
141 |
#define MCE_POWER_OFF_RESP_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
142 |
#define MCE_POWER_OFF_RESP_OFFSET_STATUS 2 //size 1 byte(s)
|
|
143 |
#define MCE_POWER_OFF_RESP_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
144 |
#define SIZE_MCE_POWER_OFF_RESP 4
|
|
145 |
|
|
146 |
|
|
147 |
//Definition for MCE_RESET_REQ
|
|
148 |
#define MCE_RESET_REQ 0x0A
|
|
149 |
#define MCE_RESET_REQ_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
150 |
#define MCE_RESET_REQ_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
151 |
#define MCE_RESET_REQ_OFFSET_FILLERBYTE1 2 //size 2 byte(s)
|
|
152 |
#define SIZE_MCE_RESET_REQ 4
|
|
153 |
|
|
154 |
|
|
155 |
//Definition for MCE_RESET_RESP
|
|
156 |
#define MCE_RESET_RESP 0x0B
|
|
157 |
#define MCE_RESET_RESP_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
158 |
#define MCE_RESET_RESP_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
159 |
#define MCE_RESET_RESP_OFFSET_STATUS 2 //size 1 byte(s)
|
|
160 |
#define MCE_RESET_RESP_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
161 |
#define SIZE_MCE_RESET_RESP 4
|
|
162 |
|
|
163 |
|
|
164 |
//Definition for MCE_WATCHDOG_CONTROL_REQ
|
|
165 |
#define MCE_WATCHDOG_CONTROL_REQ 0x0C
|
|
166 |
#define MCE_WATCHDOG_CONTROL_REQ_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
167 |
#define MCE_WATCHDOG_CONTROL_REQ_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
168 |
#define MCE_WATCHDOG_CONTROL_REQ_OFFSET_ACTION 2 //size 1 byte(s)
|
|
169 |
#define MCE_WATCHDOG_CONTROL_REQ_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
170 |
#define SIZE_MCE_WATCHDOG_CONTROL_REQ 4
|
|
171 |
|
|
172 |
|
|
173 |
//Definition for MCE_WATCHDOG_CONTROL_RESP
|
|
174 |
#define MCE_WATCHDOG_CONTROL_RESP 0x0D
|
|
175 |
#define MCE_WATCHDOG_CONTROL_RESP_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
176 |
#define MCE_WATCHDOG_CONTROL_RESP_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
177 |
#define MCE_WATCHDOG_CONTROL_RESP_OFFSET_STATUS 2 //size 1 byte(s)
|
|
178 |
#define MCE_WATCHDOG_CONTROL_RESP_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
179 |
#define SIZE_MCE_WATCHDOG_CONTROL_RESP 4
|
|
180 |
|
|
181 |
|
|
182 |
//Definition for MCE_SLEEP_CONTROL_REQ
|
|
183 |
#define MCE_SLEEP_CONTROL_REQ 0x0E
|
|
184 |
#define MCE_SLEEP_CONTROL_REQ_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
185 |
#define MCE_SLEEP_CONTROL_REQ_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
186 |
#define MCE_SLEEP_CONTROL_REQ_OFFSET_TYPE 2 //size 1 byte(s)
|
|
187 |
#define MCE_SLEEP_CONTROL_REQ_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
188 |
#define SIZE_MCE_SLEEP_CONTROL_REQ 4
|
|
189 |
|
|
190 |
|
|
191 |
//Definition for MCE_SLEEP_CONTROL_RESP
|
|
192 |
#define MCE_SLEEP_CONTROL_RESP 0x0F
|
|
193 |
#define MCE_SLEEP_CONTROL_RESP_OFFSET_TRANSID 0 //size 1 byte(s)
|
|
194 |
#define MCE_SLEEP_CONTROL_RESP_OFFSET_MESSAGEID 1 //size 1 byte(s)
|
|
195 |
#define MCE_SLEEP_CONTROL_RESP_OFFSET_STATUS 2 //size 1 byte(s)
|
|
196 |
#define MCE_SLEEP_CONTROL_RESP_OFFSET_FILLERBYTE1 3 //size 1 byte(s)
|
|
197 |
#define SIZE_MCE_SLEEP_CONTROL_RESP 4
|
|
198 |
|
|
199 |
#endif |