components/modemServices/platformAdaptor/interfaces/inc/pa_mcc.h
Go to the documentation of this file.
00001 
00040 #ifndef LEGATO_PAMCC_INCLUDE_GUARD
00041 #define LEGATO_PAMCC_INCLUDE_GUARD
00042 
00043 
00044 #include "legato.h"
00045 #include "le_mdm_defs.h"
00046 
00047 
00048 //--------------------------------------------------------------------------------------------------
00049 // Symbol and Enum definitions.
00050 //--------------------------------------------------------------------------------------------------
00051 
00052 
00053 //--------------------------------------------------------------------------------------------------
00060 //--------------------------------------------------------------------------------------------------
00061 typedef enum
00062 {
00063     PA_MCC_ACTIVATE_CLIR   = 0, 
00064     PA_MCC_DEACTIVATE_CLIR = 1, 
00065 }
00066 pa_mcc_clir_t;
00067 
00068 //--------------------------------------------------------------------------------------------------
00074 //--------------------------------------------------------------------------------------------------
00075 typedef enum
00076 {
00077     PA_MCC_ACTIVATE_CUG   = 0, 
00078     PA_MCC_DEACTIVATE_CUG = 1, 
00079 }
00080 pa_mcc_cug_t;
00081 
00082 //--------------------------------------------------------------------------------------------------
00086 //--------------------------------------------------------------------------------------------------
00087 typedef struct {
00088     uint8_t                         callId;                               
00089     le_mcc_call_Event_t             event;                                
00090     char                            phoneNumber[LE_SMS_TEL_NMBR_MAX_LEN]; 
00091     le_mcc_call_TerminationReason_t TerminationEvent;                     
00092 }
00093 pa_mcc_CallEventData_t;
00094 
00095 //--------------------------------------------------------------------------------------------------
00101 //--------------------------------------------------------------------------------------------------
00102 typedef void (*pa_mcc_CallEventHandlerFunc_t)
00103 (
00104     pa_mcc_CallEventData_t*  dataPtr  
00105 );
00106 
00107 //--------------------------------------------------------------------------------------------------
00108 // APIs.
00109 //--------------------------------------------------------------------------------------------------
00110 
00111 //--------------------------------------------------------------------------------------------------
00118 //--------------------------------------------------------------------------------------------------
00119 le_result_t pa_mcc_SetCallEventHandler
00120 (
00121     pa_mcc_CallEventHandlerFunc_t   handlerFuncPtr 
00122 );
00123 
00124 //--------------------------------------------------------------------------------------------------
00130 //--------------------------------------------------------------------------------------------------
00131 void pa_mcc_ClearCallEventHandler
00132 (
00133     void
00134 );
00135 
00136 //--------------------------------------------------------------------------------------------------
00143 //--------------------------------------------------------------------------------------------------
00144 le_result_t pa_mcc_VoiceDial
00145 (
00146     const char*    pn,        
00147     pa_mcc_clir_t  clir,      
00148     pa_mcc_cug_t   cug,       
00149     uint8_t*       callIdPtr  
00150 );
00151 
00152 //--------------------------------------------------------------------------------------------------
00160 //--------------------------------------------------------------------------------------------------
00161 le_result_t pa_mcc_Answer
00162 (
00163     void
00164 );
00165 
00166 //--------------------------------------------------------------------------------------------------
00174 //--------------------------------------------------------------------------------------------------
00175 le_result_t pa_mcc_Hangup
00176 (
00177     void
00178 );
00179 
00180 
00181 #endif // LEGATO_PAMCC_INCLUDE_GUARD
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines