FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/aci/conc_sms.c @ 802:b63b6e9da6cd
aci: conc_sms.c, cphs.c and cphs_aci.c done
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 05 Apr 2015 04:30:48 +0000 |
parents | eedbf248bac0 |
children |
comparison
equal
deleted
inserted
replaced
801:c64bfc13292c | 802:b63b6e9da6cd |
---|---|
22 #define CONC_SMS_C | 22 #define CONC_SMS_C |
23 #endif | 23 #endif |
24 | 24 |
25 /*==== INCLUDES ===================================================*/ | 25 /*==== INCLUDES ===================================================*/ |
26 | 26 |
27 #include "config.h" | |
28 #include "fixedconf.h" | |
29 #include "condat-features.h" | |
30 #include "aci_conf.h" | |
31 | |
27 #include "aci_all.h" | 32 #include "aci_all.h" |
28 | 33 |
29 #include "aci_cmh.h" | 34 #include "aci_cmh.h" |
30 #include "ati_cmd.h" | 35 #include "ati_cmd.h" |
31 #include "aci_cmd.h" | 36 #include "aci_cmd.h" |
88 else | 93 else |
89 return FALSE; | 94 return FALSE; |
90 } | 95 } |
91 | 96 |
92 | 97 |
93 | |
94 /* | 98 /* |
95 +--------------------------------------------------------------------+ | 99 +--------------------------------------------------------------------+ |
96 | PROJECT : MODULE : CONC_SMS | | 100 | PROJECT : MODULE : CONC_SMS | |
97 | STATE : code ROUTINE : concSMS_findSeqNumElemCB | | 101 | STATE : code ROUTINE : concSMS_findSeqNumElemCB | |
98 +--------------------------------------------------------------------+ | 102 +--------------------------------------------------------------------+ |
107 if ( compared->seq_num == critrerium ) | 111 if ( compared->seq_num == critrerium ) |
108 return TRUE; | 112 return TRUE; |
109 else | 113 else |
110 return FALSE; | 114 return FALSE; |
111 } | 115 } |
112 | |
113 | 116 |
114 | 117 |
115 /* | 118 /* |
116 +--------------------------------------------------------------------+ | 119 +--------------------------------------------------------------------+ |
117 | PROJECT : MODULE : CONC_SMS | | 120 | PROJECT : MODULE : CONC_SMS | |
641 | 644 |
642 return TRUE; | 645 return TRUE; |
643 } | 646 } |
644 | 647 |
645 | 648 |
646 | |
647 /* | 649 /* |
648 +---------------------------------------------------------------------+ | 650 +---------------------------------------------------------------------+ |
649 | PROJECT : MODULE : CONC_SMS | | 651 | PROJECT : MODULE : CONC_SMS | |
650 | STATE : code ROUTINE : concSMS_removeFromConcatList| | 652 | STATE : code ROUTINE : concSMS_removeFromConcatList| |
651 +---------------------------------------------------------------------+ | 653 +---------------------------------------------------------------------+ |
877 /* Information Element Data */ | 879 /* Information Element Data */ |
878 udh->data[2] = (UBYTE)(ref_num & 0x00FF); /* since we use only 8-Bit ref number */ | 880 udh->data[2] = (UBYTE)(ref_num & 0x00FF); /* since we use only 8-Bit ref number */ |
879 udh->data[3] = max_num; | 881 udh->data[3] = max_num; |
880 udh->data[4] = seq_num; | 882 udh->data[4] = seq_num; |
881 } | 883 } |
882 | |
883 | 884 |
884 | 885 |
885 #ifdef TI_PS_FF_CONC_SMS | 886 #ifdef TI_PS_FF_CONC_SMS |
886 /********************** Init Functions *********************************/ | 887 /********************** Init Functions *********************************/ |
887 | 888 |
1439 } | 1440 } |
1440 return CONC_NEEDED; | 1441 return CONC_NEEDED; |
1441 } | 1442 } |
1442 | 1443 |
1443 | 1444 |
1444 | |
1445 | |
1446 /********************** RAT Callback Fucntions ****************************/ | 1445 /********************** RAT Callback Fucntions ****************************/ |
1447 | 1446 |
1448 | 1447 |
1449 GLOBAL void rConcSMS_PlusCMSS (UBYTE mr, UBYTE numSeg) | 1448 GLOBAL void rConcSMS_PlusCMSS (UBYTE mr, UBYTE numSeg) |
1450 { | 1449 { |
1594 UNSET_CONC; | 1593 UNSET_CONC; |
1595 } | 1594 } |
1596 } | 1595 } |
1597 | 1596 |
1598 | 1597 |
1599 | |
1600 GLOBAL void rConcSMS_PlusCMGR ( T_ACI_CMGL_SM* sm, | 1598 GLOBAL void rConcSMS_PlusCMGR ( T_ACI_CMGL_SM* sm, |
1601 T_ACI_CMGR_CBM* cbm ) | 1599 T_ACI_CMGR_CBM* cbm ) |
1602 { | 1600 { |
1603 T_CONC_CMGR *prm = &concShrdPrm.specPrm.concCMGR; | 1601 T_CONC_CMGR *prm = &concShrdPrm.specPrm.concCMGR; |
1604 | 1602 |
1742 rAT_PlusCMGW (first_rec, concShrdPrm.udh.seq_num, mem); | 1740 rAT_PlusCMGW (first_rec, concShrdPrm.udh.seq_num, mem); |
1743 R_AT ( RAT_OK, (T_ACI_CMD_SRC)concShrdPrm.srcId ) ( AT_CMD_CMGW ); | 1741 R_AT ( RAT_OK, (T_ACI_CMD_SRC)concShrdPrm.srcId ) ( AT_CMD_CMGW ); |
1744 UNSET_CONC; | 1742 UNSET_CONC; |
1745 } | 1743 } |
1746 } | 1744 } |
1747 | |
1748 | |
1749 | |
1750 | |
1751 | 1745 |
1752 | 1746 |
1753 GLOBAL void rConcSMS_PlusCMGD ( ) | 1747 GLOBAL void rConcSMS_PlusCMGD ( ) |
1754 { | 1748 { |
1755 T_CONC_CMGD *prm = &concShrdPrm.specPrm.concCMGD; | 1749 T_CONC_CMGD *prm = &concShrdPrm.specPrm.concCMGD; |
1985 } | 1979 } |
1986 } | 1980 } |
1987 #endif /* TI_PS_FF_CONC_SMS */ | 1981 #endif /* TI_PS_FF_CONC_SMS */ |
1988 | 1982 |
1989 | 1983 |
1990 | |
1991 | |
1992 /*************** Functions which must be called by MFW ***************/ | 1984 /*************** Functions which must be called by MFW ***************/ |
1993 | |
1994 | |
1995 | |
1996 | |
1997 | 1985 |
1998 | 1986 |
1999 /* | 1987 /* |
2000 +--------------------------------------------------------------------+ | 1988 +--------------------------------------------------------------------+ |
2001 | PROJECT : MODULE : CONC_SMS | | 1989 | PROJECT : MODULE : CONC_SMS | |
2171 { | 2159 { |
2172 TRACE_EVENT("ERROR: first sequence not found"); | 2160 TRACE_EVENT("ERROR: first sequence not found"); |
2173 return(0); | 2161 return(0); |
2174 } | 2162 } |
2175 else | 2163 else |
2176 return(concBufElem->rec_num); | 2164 return(concBufElem->rec_num); |
2177 | |
2178 } | 2165 } |
2179 | 2166 |
2180 | 2167 |
2181 /* | 2168 /* |
2182 +--------------------------------------------------------------------+ | 2169 +--------------------------------------------------------------------+ |
2746 } | 2733 } |
2747 } | 2734 } |
2748 } | 2735 } |
2749 | 2736 |
2750 | 2737 |
2751 | |
2752 GLOBAL void concSMS_AddtoconcBuff(void) | 2738 GLOBAL void concSMS_AddtoconcBuff(void) |
2753 { | 2739 { |
2754 UBYTE i; | 2740 UBYTE i; |
2755 | 2741 |
2756 | 2742 |
2870 return FALSE; /* all conc buffer in use, no free available */ | 2856 return FALSE; /* all conc buffer in use, no free available */ |
2871 } | 2857 } |
2872 | 2858 |
2873 return TRUE; | 2859 return TRUE; |
2874 } | 2860 } |
2875 | |
2876 |