FreeCalypso > hg > fc-magnetite
comparison src/ui3/mfw/mfw_cphsi.h @ 420:e8ddbb0837ed
src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:09:00 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
419:59143cd42ec7 | 420:e8ddbb0837ed |
---|---|
1 /* | |
2 +--------------------------------------------------------------------+ | |
3 | PROJECT: GSM-MFW (8417) $Workfile:: mfw_cphsi.h $| | |
4 | $Author:: Vo $Revision:: 1 $| | |
5 | CREATED: 14.07.00 $Modtime:: $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 PURPOSE : Internal definitions for CPHS management of MMI framework | |
10 | |
11 $History:: mfw_cphs.c $ | |
12 | |
13 Jan 12, 2006 OMAPS00062632 x0018858 | |
14 Description: The differnace in the type of the data passed to the function cphs_read_information() | |
15 is causing an incorrect value being received as the output. | |
16 Solution: The errcode being passed to the function has been modified to USHORT | |
17 | |
18 | |
19 */ | |
20 | |
21 #ifndef DEF_MFW_CPHSI_HEADER | |
22 #define DEF_MFW_CPHSI_HEADER | |
23 | |
24 #define CPHS_SERVICE_TABLE 2 /* size of CPHS service table */ | |
25 | |
26 | |
27 | |
28 //Code 16: | |
29 #define MFW_CPHS_INFO_SIZE 3 /* size of CPHS information field (6F16) */ | |
30 #define MFW_CPHS_ONS_SIZE 20 /* size of operator name string (6F14) - read first 20 bytes only */ | |
31 #define MFW_CPHS_ONSF_SIZE 10 /* size of operator name short form (6F18) */ | |
32 #define MFW_CPHS_MIN_MBN_SIZE 14 | |
33 #define MFW_CPHS_MBS_SIZE 2 /* size of voice message waiting flag (6F11) */ | |
34 #define MFW_CPHS_CFF_SIZE 2 /* size of call forwarding flags (6F13) */ | |
35 #define MFW_CPHS_ALS_SIZE 1 /* size of alternate line service (6F9F) */ | |
36 #define MFW_CPHS_ALSS_SIZE 1 /* size of alternate line service status (6F92) */ | |
37 #define MFW_CPHS_CSP_SIZE 20 /* size of customer service profile (6F15) */ | |
38 #define MFW_CPHS_MIN_INS_SIZE 5 | |
39 //Code 16 END | |
40 | |
41 | |
42 /* SMS Control Block */ | |
43 typedef struct | |
44 { | |
45 T_MFW_EVENT emask; /* events of interest */ | |
46 T_MFW_EVENT event; /* current event */ | |
47 T_MFW_CB handler; | |
48 T_MFW_CPHS_PARA para; | |
49 } T_MFW_CPHS; | |
50 | |
51 void cphs_support_check (void); | |
52 | |
53 //x0018858 OMAPS00062632 The errcode type has been modified from SHORT to USHORT. | |
54 void cphs_read_information (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
55 void cphs_read_ons(USHORT errCode, UBYTE *data, UBYTE dataLen); | |
56 void cphs_read_onsf (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
57 void cphs_read_mbs (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
58 void cphs_read_cff (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
59 void cphs_read_als (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
60 void cphs_read_alss (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
61 void cphs_read_csp (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
62 void cphs_update_info_cnf (USHORT errCode, UBYTE *data, UBYTE dataLen); | |
63 void cphs_read_mbn (SHORT table_id); | |
64 void cphs_read_info_num (SHORT table_id); | |
65 void cphs_req_info_num_read (UBYTE rcd_num, UBYTE dataLen); | |
66 void cphs_read_eeprom_mailbox (void); | |
67 void cphs_write_eeprom_mailbox (T_MFW_CPHS_ENTRY *entry); | |
68 void cphs_read_eeprom_als (T_MFW_CPHS_ALS_STATUS *info); | |
69 void cphs_write_eeprom_als (UBYTE *res); | |
70 void cphs_write_eeprom_alss (UBYTE *res); | |
71 BOOL cphs_read_sim_dat (USHORT data_id, UBYTE len, UBYTE max_length); | |
72 void cphs_read_sim_dat_cb (SHORT table_id); | |
73 void cphs_read_sim_default_cb(SHORT table_id); | |
74 void cphs_write_sim_default_cb(SHORT table_id); | |
75 BOOL cphs_read_sim_rcd (USHORT data_id, UBYTE rcd_num, UBYTE len); | |
76 void cphs_read_sim_rcd_cb (SHORT table_id); | |
77 BOOL cphs_write_sim_dat (USHORT data_id, UBYTE *data, UBYTE length); | |
78 void cphs_write_sim_dat_cb (SHORT table_id); | |
79 BOOL cphs_write_sim_rcd (USHORT data_id, UBYTE rcd_num, | |
80 UBYTE *data, UBYTE dataLen); | |
81 void cphs_write_sim_rcd_cb (SHORT table_id); | |
82 BOOL cphs_build_mbn_data (UBYTE *data, UBYTE len); | |
83 UBYTE cphs_ssc (UBYTE nr, UBYTE * serv_table); | |
84 void cphs_sat_file_update (USHORT dataId); | |
85 #endif |