All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pa_ecall.h
Go to the documentation of this file.
1 
43 #ifndef LEGATO_PAECALL_INCLUDE_GUARD
44 #define LEGATO_PAECALL_INCLUDE_GUARD
45 
46 
47 #include "legato.h"
48 #include "interfaces.h"
49 
50 
51 //--------------------------------------------------------------------------------------------------
52 // Symbol and Enum definitions.
53 //--------------------------------------------------------------------------------------------------
54 
55 //--------------------------------------------------------------------------------------------------
59 //--------------------------------------------------------------------------------------------------
60 typedef enum
61 {
64 }
66 
67 //--------------------------------------------------------------------------------------------------
72 //--------------------------------------------------------------------------------------------------
73 typedef void (*pa_ecall_EventHandlerFunc_t)
74 (
75  le_ecall_State_t* statePtr
76 );
77 
78 //--------------------------------------------------------------------------------------------------
79 // APIs.
80 //--------------------------------------------------------------------------------------------------
81 
82 //--------------------------------------------------------------------------------------------------
90 //--------------------------------------------------------------------------------------------------
92 (
93  pa_ecall_EventHandlerFunc_t handlerFuncPtr
94 );
95 
96 //--------------------------------------------------------------------------------------------------
102 //--------------------------------------------------------------------------------------------------
104 (
105  le_event_HandlerRef_t handlerRef
106 );
107 
108 //--------------------------------------------------------------------------------------------------
116 //--------------------------------------------------------------------------------------------------
118 (
119  char psap[LE_MDMDEFS_PHONE_NUM_MAX_LEN]
120 );
121 
122 //--------------------------------------------------------------------------------------------------
129 //--------------------------------------------------------------------------------------------------
131 (
132  uint32_t redialAttemptsCount
133 );
134 
135 //--------------------------------------------------------------------------------------------------
142 //--------------------------------------------------------------------------------------------------
144 (
146 );
147 
148 //--------------------------------------------------------------------------------------------------
155 //--------------------------------------------------------------------------------------------------
157 (
158  uint8_t *msdPtr,
159  size_t msdSize
160 );
161 
162 //--------------------------------------------------------------------------------------------------
169 //--------------------------------------------------------------------------------------------------
171 (
172  void
173 );
174 
175 //--------------------------------------------------------------------------------------------------
182 //--------------------------------------------------------------------------------------------------
184 (
185  void
186 );
187 
188 //--------------------------------------------------------------------------------------------------
195 //--------------------------------------------------------------------------------------------------
197 (
198  void
199 );
200 
201 //--------------------------------------------------------------------------------------------------
208 //--------------------------------------------------------------------------------------------------
210 (
211  void
212 );
213 
214 #endif // LEGATO_PAECALL_INCLUDE_GUARD
le_result_t pa_ecall_SetMsdTxMode(pa_ecall_MsdTxMode_t mode)
le_result_t
Definition: le_basics.h:34
le_result_t pa_ecall_End(void)
le_result_t pa_ecall_LoadMsd(uint8_t *msdPtr, size_t msdSize)
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
Definition: pa_ecall.h:62
le_result_t pa_ecall_StartTest(void)
pa_ecall_MsdTxMode_t
Definition: pa_ecall.h:60
le_result_t pa_ecall_SetPsapNumber(char psap[LE_MDMDEFS_PHONE_NUM_MAX_LEN])
le_result_t pa_ecall_StartManual(void)
#define LE_MDMDEFS_PHONE_NUM_MAX_LEN
Definition: le_mdmDefs_interface.h:31
le_event_HandlerRef_t pa_ecall_AddEventHandler(pa_ecall_EventHandlerFunc_t handlerFuncPtr)
struct le_event_Handler * le_event_HandlerRef_t
Definition: le_eventLoop.h:752
Push mode (modem/host sends MSD to PSAP right after eCall is connected).
Definition: pa_ecall.h:63
le_ecall_State_t
Definition: le_ecall_interface.h:239
le_result_t pa_ecall_SetMaxRedialAttempts(uint32_t redialAttemptsCount)
void(* pa_ecall_EventHandlerFunc_t)(le_ecall_State_t *statePtr)
Definition: pa_ecall.h:74
void pa_ecall_RemoveEventHandler(le_event_HandlerRef_t handlerRef)
le_result_t pa_ecall_StartAutomatic(void)