FreeCalypso > hg > fc-tourmaline
comparison src/ui/mfw/mfw_cphs.h @ 188:92abb46dc1ba
src/ui/mfw/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 19 Jan 2021 06:10:27 +0000 |
parents | 67bfe9f274f6 |
children |
comparison
equal
deleted
inserted
replaced
187:a33dd8a5dcc9 | 188:92abb46dc1ba |
---|---|
11 May 30, 2006 DR: OMAPS00070657 x0pleela | 11 May 30, 2006 DR: OMAPS00070657 x0pleela |
12 Description: CPHS feature on Locosto-Lite | 12 Description: CPHS feature on Locosto-Lite |
13 Solution: For ALS feature, | 13 Solution: For ALS feature, |
14 a)Added function prototype "mfw_cphs_get_als_info()" which returns | 14 a)Added function prototype "mfw_cphs_get_als_info()" which returns |
15 the current active line | 15 the current active line |
16 | 16 |
17 Oct 04, 2004 REF: CRR 25519 Deepa M.D | 17 Oct 04, 2004 REF: CRR 25519 Deepa M.D |
18 Bug:Re-align structure members in MFW | 18 Bug:Re-align structure members in MFW |
19 Fix:Structure elements have been realigned to avoid the structure padding | 19 Fix:Structure elements have been realigned to avoid the structure padding |
20 */ | 20 */ |
21 | 21 |
22 #ifndef DEF_MFW_CPHS | 22 #ifndef DEF_MFW_CPHS |
23 #define DEF_MFW_CPHS | 23 #define DEF_MFW_CPHS |
24 #include <string.h> | 24 #include <string.h> |
25 | 25 |
71 | 71 |
72 | 72 |
73 #include "mfw_sys.h" | 73 #include "mfw_sys.h" |
74 | 74 |
75 #ifdef NEPTUNE_BOARD | 75 #ifdef NEPTUNE_BOARD |
76 #include "Ffs.h" | 76 #include "Ffs.h" |
77 #endif | 77 #endif |
78 | 78 |
79 | 79 |
80 /* Constants define */ | 80 /* Constants define */ |
81 #define MFW_INVALID_SIM_DATA 0xFF | 81 #define MFW_INVALID_SIM_DATA 0xFF |
82 #define MAX_CPHS_ENTRY 4 | 82 #define MAX_CPHS_ENTRY 4 |
179 { | 179 { |
180 UBYTE phase; | 180 UBYTE phase; |
181 UBYTE opNS; /* operator name shortform */ | 181 UBYTE opNS; /* operator name shortform */ |
182 UBYTE mbNum; /* mailbox numbers */ | 182 UBYTE mbNum; /* mailbox numbers */ |
183 UBYTE sst; /* service string table */ | 183 UBYTE sst; /* service string table */ |
184 UBYTE csp; /* customer service profile */ | 184 UBYTE csp; /* customer service profile */ |
185 UBYTE iNum; /* information numbers */ | 185 UBYTE iNum; /* information numbers */ |
186 } T_MFW_CPHS_INFO; | 186 } T_MFW_CPHS_INFO; |
187 | 187 |
188 typedef struct /* Operator name */ | 188 typedef struct /* Operator name */ |
189 { | 189 { |
194 #define MFW_CPHS_VM_NUMBER_MAXLEN ( PHB_MAX_LEN + 20 ) | 194 #define MFW_CPHS_VM_NUMBER_MAXLEN ( PHB_MAX_LEN + 20 ) |
195 | 195 |
196 typedef struct /* Mailbox number */ | 196 typedef struct /* Mailbox number */ |
197 { | 197 { |
198 UBYTE index; /* index in phonebook table */ | 198 UBYTE index; /* index in phonebook table */ |
199 T_MFW_PHB_TEXT alpha; /* alpha identifier */ | 199 T_MFW_PHB_TEXT alpha; /* alpha identifier */ |
200 UBYTE number[MFW_CPHS_VM_NUMBER_MAXLEN]; /* telephone number */ | 200 UBYTE number[MFW_CPHS_VM_NUMBER_MAXLEN]; /* telephone number */ |
201 UBYTE ton; /* type of number */ | 201 UBYTE ton; /* type of number */ |
202 UBYTE npi; /* numbering plan identifier */ | 202 UBYTE npi; /* numbering plan identifier */ |
203 UBYTE service; /* indicates the line or fax/data */ | 203 UBYTE service; /* indicates the line or fax/data */ |
204 UBYTE ext_rec_number; /* Number of EXT Records */ | 204 UBYTE ext_rec_number; /* Number of EXT Records */ |
205 UBYTE ext_rec_idx[4]; | 205 UBYTE ext_rec_idx[4]; |
206 UBYTE datalen; | 206 UBYTE datalen; |
207 UBYTE list_index; /* Index / Position in the List */ | 207 UBYTE list_index; /* Index / Position in the List */ |
208 } T_MFW_CPHS_ENTRY; | 208 } T_MFW_CPHS_ENTRY; |
209 | 209 |
210 typedef struct /* List of mailbox numbers */ | 210 typedef struct /* List of mailbox numbers */ |
211 { | 211 { |
233 } T_MFW_MBDN; | 233 } T_MFW_MBDN; |
234 | 234 |
235 typedef struct | 235 typedef struct |
236 { | 236 { |
237 T_MFW_MBDN mailbox_numbers[4];/*mailbox numbers of voice,fax,electronic and other*/ | 237 T_MFW_MBDN mailbox_numbers[4];/*mailbox numbers of voice,fax,electronic and other*/ |
238 UBYTE valid; /* 1st bit-voicemail, 2nd bit-fax,3rd bit-electronic,4th bit-other. bit set if valid, bit unset if invalid*/ | 238 UBYTE valid; /* 1st bit-voicemail, 2nd bit-fax,3rd bit-electronic,4th bit-other. bit set if valid, bit unset if invalid*/ |
239 } T_MFW_CPHS_REL4_MBDN; | 239 } T_MFW_CPHS_REL4_MBDN; |
240 | 240 |
241 typedef enum | 241 typedef enum |
242 { | 242 { |
243 T_MFW_CPHS_REL4_MAILBOX_VOICE=0, | 243 T_MFW_CPHS_REL4_MAILBOX_VOICE=0, |
244 T_MFW_CPHS_REL4_MAILBOX_FAX, | 244 T_MFW_CPHS_REL4_MAILBOX_FAX, |
245 T_MFW_CPHS_REL4_MAILBOX_ELECTRONIC, | 245 T_MFW_CPHS_REL4_MAILBOX_ELECTRONIC, |
246 T_MFW_CPHS_REL4_MAILBOX_OTHER | 246 T_MFW_CPHS_REL4_MAILBOX_OTHER |
247 } T_MFW_CPHS_REL4_MAILBOX_TYPE; | 247 } T_MFW_CPHS_REL4_MAILBOX_TYPE; |
248 | 248 |
249 #endif | 249 #endif |
250 | 250 |
251 typedef struct /* Voice message waiting information */ | 251 typedef struct /* Voice message waiting information */ |
263 { | 263 { |
264 UBYTE mwisStat; | 264 UBYTE mwisStat; |
265 UBYTE voicemail; | 265 UBYTE voicemail; |
266 UBYTE fax; | 266 UBYTE fax; |
267 UBYTE electronic; | 267 UBYTE electronic; |
268 UBYTE other; | 268 UBYTE other; |
269 } T_MFW_CPHS_REL4_MWIS; | 269 } T_MFW_CPHS_REL4_MWIS; |
270 #endif | 270 #endif |
271 | 271 |
272 typedef struct /* Status of diverted call indicators */ | 272 typedef struct /* Status of diverted call indicators */ |
273 { | 273 { |
283 typedef struct /* Status of diverted call indicators */ | 283 typedef struct /* Status of diverted call indicators */ |
284 { | 284 { |
285 T_MFW_CFLAG_STATUS voice; /* call forwarding unconditional status of voice */ | 285 T_MFW_CFLAG_STATUS voice; /* call forwarding unconditional status of voice */ |
286 T_MFW_CFLAG_STATUS fax; /* call forwarding unconditional status of fax */ | 286 T_MFW_CFLAG_STATUS fax; /* call forwarding unconditional status of fax */ |
287 T_MFW_CFLAG_STATUS data; /* call forwarding unconditional status of data */ | 287 T_MFW_CFLAG_STATUS data; /* call forwarding unconditional status of data */ |
288 char voice_dialling_number[PHB_MAX_LEN]; /*number to which voice has been forwarded*/ | 288 char voice_dialling_number[PHB_MAX_LEN]; /*number to which voice has been forwarded*/ |
289 } T_MFW_CPHS_REL4_DV_STAT; | 289 } T_MFW_CPHS_REL4_DV_STAT; |
290 #endif | 290 #endif |
291 | 291 |
292 typedef struct /* Information about alternate line service */ | 292 typedef struct /* Information about alternate line service */ |
293 { | 293 { |
294 T_MFW_LINE_INDEX selectedLine; | 294 T_MFW_LINE_INDEX selectedLine; |
295 T_MFW_LINE_STATUS status; /* ALS is locked or unlocked */ | 295 T_MFW_LINE_STATUS status; /* ALS is locked or unlocked */ |
296 } T_MFW_CPHS_ALS_STATUS; | 296 } T_MFW_CPHS_ALS_STATUS; |
297 | 297 |
298 | 298 |
299 //Code 15: | 299 //Code 15: |
340 /***************************Go-lite Optimization changes Start***********************/ | 340 /***************************Go-lite Optimization changes Start***********************/ |
341 //Oct 04, 2004 REF: CRR 25519 Deepa M.D | 341 //Oct 04, 2004 REF: CRR 25519 Deepa M.D |
342 //Structure elements (T_MFW_CPHS_READ_SIM_ENTRY)are realigned to avoid the structure padding | 342 //Structure elements (T_MFW_CPHS_READ_SIM_ENTRY)are realigned to avoid the structure padding |
343 typedef struct /* SIM read data */ | 343 typedef struct /* SIM read data */ |
344 { | 344 { |
345 | 345 |
346 UBYTE* exchange_data; | 346 UBYTE* exchange_data; |
347 USHORT sim_result; /* read error/no error (only used for read information number) */ | 347 USHORT sim_result; /* read error/no error (only used for read information number) */ |
348 USHORT requested_field; | 348 USHORT requested_field; |
349 UBYTE data_len; | 349 UBYTE data_len; |
350 UBYTE record; /* sh */ | 350 UBYTE record; /* sh */ |
351 } T_MFW_CPHS_READ_SIM_ENTRY; | 351 } T_MFW_CPHS_READ_SIM_ENTRY; |
352 /***************************Go-lite Optimization changes end***********************/ | 352 /***************************Go-lite Optimization changes end***********************/ |
353 | 353 |
354 /* CPHS Parameter */ | 354 /* CPHS Parameter */ |
355 typedef union | 355 typedef union |
356 { | 356 { |
357 T_MFW_CPHS_STATUS stat; | 357 T_MFW_CPHS_STATUS stat; |
358 T_MFW_CPHS_OP_NAME oper_name; | 358 T_MFW_CPHS_OP_NAME oper_name; |
359 T_MFW_CPHS_VC_NUM vc_entry; | 359 T_MFW_CPHS_VC_NUM vc_entry; |
360 UBYTE result; | 360 UBYTE result; |
361 T_MFW_CPHS_VC_STAT vc_status; | 361 T_MFW_CPHS_VC_STAT vc_status; |
362 T_MFW_CPHS_DV_STAT dv_status; | 362 T_MFW_CPHS_DV_STAT dv_status; |
363 T_MFW_CPHS_ALS_STATUS als_status; | 363 T_MFW_CPHS_ALS_STATUS als_status; |
364 T_MFW_CPHS_CSP csp; | 364 T_MFW_CPHS_CSP csp; |
365 T_MFW_CPHS_INFONUM_LIST num_list; | 365 T_MFW_CPHS_INFONUM_LIST num_list; |
375 T_MFW cphs_config (T_MFW_CPHS_INFO *cphs_info); | 375 T_MFW cphs_config (T_MFW_CPHS_INFO *cphs_info); |
376 T_MFW cphs_operator_name (void); | 376 T_MFW cphs_operator_name (void); |
377 void cphs_get_mailbox (void); | 377 void cphs_get_mailbox (void); |
378 T_MFW cphs_set_mailbox (T_MFW_CPHS_ENTRY *entry); | 378 T_MFW cphs_set_mailbox (T_MFW_CPHS_ENTRY *entry); |
379 T_MFW cphs_get_mailbox_status (void); | 379 T_MFW cphs_get_mailbox_status (void); |
380 T_MFW cphs_set_mailbox_status (T_MFW_CFLAG_STATUS line1, | 380 T_MFW cphs_set_mailbox_status (T_MFW_CFLAG_STATUS line1, |
381 T_MFW_CFLAG_STATUS line2, | 381 T_MFW_CFLAG_STATUS line2, |
382 T_MFW_CFLAG_STATUS fax, | 382 T_MFW_CFLAG_STATUS fax, |
383 T_MFW_CFLAG_STATUS data); | 383 T_MFW_CFLAG_STATUS data); |
384 T_MFW cphs_get_divert_status (void); | 384 T_MFW cphs_get_divert_status (void); |
385 T_MFW cphs_set_divert_status (T_MFW_CFLAG_STATUS line1, | 385 T_MFW cphs_set_divert_status (T_MFW_CFLAG_STATUS line1, |
386 T_MFW_CFLAG_STATUS line2, | 386 T_MFW_CFLAG_STATUS line2, |
387 T_MFW_CFLAG_STATUS fax, | 387 T_MFW_CFLAG_STATUS fax, |
388 T_MFW_CFLAG_STATUS data); | 388 T_MFW_CFLAG_STATUS data); |
389 /*a0393213 cphs rel4*/ | 389 /*a0393213 cphs rel4*/ |
390 #ifdef FF_CPHS_REL4 | 390 #ifdef FF_CPHS_REL4 |
391 T_MFW cphs_rel4_set_divert_status(T_MFW_CFLAG_STATUS voice, T_MFW_CFLAG_STATUS fax, | 391 T_MFW cphs_rel4_set_divert_status(T_MFW_CFLAG_STATUS voice, T_MFW_CFLAG_STATUS fax, |
392 T_MFW_CFLAG_STATUS data, char number[PHB_MAX_LEN]); | 392 T_MFW_CFLAG_STATUS data, char number[PHB_MAX_LEN]); |
393 void sendCPHSSignal(UBYTE evt, void* para); | 393 void sendCPHSSignal(UBYTE evt, void* para); |
394 T_MFW_CPHS_MSP_INFO* mfw_cphs_get_msp(void); | 394 T_MFW_CPHS_MSP_INFO* mfw_cphs_get_msp(void); |
395 T_MFW_CPHS_REL4_MWIS* get_mwis_stat(int); | 395 T_MFW_CPHS_REL4_MWIS* get_mwis_stat(int); |
396 #endif | 396 #endif |
412 | 412 |
413 /* Added to remove warning Aug - 11 */ | 413 /* Added to remove warning Aug - 11 */ |
414 EXTERN UBYTE dspl_Enable (UBYTE in_Enable); | 414 EXTERN UBYTE dspl_Enable (UBYTE in_Enable); |
415 #ifdef PCM_2_FFS | 415 #ifdef PCM_2_FFS |
416 EXTERN T_FFS_SIZE ffs_ReadRecord(const char *name, void * addr, int size, int index, int recsize); | 416 EXTERN T_FFS_SIZE ffs_ReadRecord(const char *name, void * addr, int size, int index, int recsize); |
417 #endif /* PCM_2_FFS */ | 417 #endif /* PCM_2_FFS */ |
418 /* End - remove warning Aug - 11 */ | 418 /* End - remove warning Aug - 11 */ |
419 | 419 |
420 /*a0393213 cphs rel4*/ | 420 /*a0393213 cphs rel4*/ |
421 #ifdef FF_CPHS_REL4 | 421 #ifdef FF_CPHS_REL4 |
422 UBYTE mfw_cphs_get_reg_profile(void); | 422 UBYTE mfw_cphs_get_reg_profile(void); |