All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_ecall_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
187 #ifndef LE_ECALL_H_INCLUDE_GUARD
188 #define LE_ECALL_H_INCLUDE_GUARD
189 
190 
191 #include "legato.h"
192 
193 //--------------------------------------------------------------------------------------------------
197 //--------------------------------------------------------------------------------------------------
199 (
200  void
201 );
202 
203 //--------------------------------------------------------------------------------------------------
207 //--------------------------------------------------------------------------------------------------
209 (
210  void
211 );
212 
213 
214 //--------------------------------------------------------------------------------------------------
218 //--------------------------------------------------------------------------------------------------
219 typedef struct le_ecall_Obj* le_ecall_ObjRef_t;
220 
221 
222 //--------------------------------------------------------------------------------------------------
226 //--------------------------------------------------------------------------------------------------
227 #define LE_ECALL_MSD_MAX_LEN 282
228 
229 
230 //--------------------------------------------------------------------------------------------------
234 //--------------------------------------------------------------------------------------------------
235 typedef enum
236 {
239 
242 
245 
248 
251 
254 
257 
260 }
262 
263 
264 //--------------------------------------------------------------------------------------------------
268 //--------------------------------------------------------------------------------------------------
269 typedef struct le_ecall_StateChangeHandler* le_ecall_StateChangeHandlerRef_t;
270 
271 
272 //--------------------------------------------------------------------------------------------------
281 //--------------------------------------------------------------------------------------------------
282 typedef void (*le_ecall_StateChangeHandlerFunc_t)
283 (
284  le_ecall_State_t state,
285  void* contextPtr
286 );
287 
288 //--------------------------------------------------------------------------------------------------
292 //--------------------------------------------------------------------------------------------------
294 (
297 
298  void* contextPtr
300 );
301 
302 //--------------------------------------------------------------------------------------------------
306 //--------------------------------------------------------------------------------------------------
308 (
311 );
312 
313 //--------------------------------------------------------------------------------------------------
325 //--------------------------------------------------------------------------------------------------
327 (
328  void
329 );
330 
331 //--------------------------------------------------------------------------------------------------
338 //--------------------------------------------------------------------------------------------------
339 void le_ecall_Delete
340 (
341  le_ecall_ObjRef_t ecallRef
344 );
345 
346 //--------------------------------------------------------------------------------------------------
360 //--------------------------------------------------------------------------------------------------
362 (
363  le_ecall_ObjRef_t ecallRef,
366 
367  bool isTrusted,
370 
371  int32_t latitude,
374 
375  int32_t longitude,
378 
379  int32_t direction
382 );
383 
384 //--------------------------------------------------------------------------------------------------
396 //--------------------------------------------------------------------------------------------------
398 (
399  le_ecall_ObjRef_t ecallRef,
402 
403  uint32_t paxCount
406 );
407 
408 //--------------------------------------------------------------------------------------------------
421 //--------------------------------------------------------------------------------------------------
423 (
424  le_ecall_ObjRef_t ecallRef,
427 
428  const uint8_t* msdPtr,
431 
432  size_t msdNumElements
434 );
435 
436 //--------------------------------------------------------------------------------------------------
446 //--------------------------------------------------------------------------------------------------
448 (
449  le_ecall_ObjRef_t ecallRef
452 );
453 
454 //--------------------------------------------------------------------------------------------------
464 //--------------------------------------------------------------------------------------------------
466 (
467  le_ecall_ObjRef_t ecallRef
470 );
471 
472 //--------------------------------------------------------------------------------------------------
482 //--------------------------------------------------------------------------------------------------
484 (
485  le_ecall_ObjRef_t ecallRef
488 );
489 
490 //--------------------------------------------------------------------------------------------------
498 //--------------------------------------------------------------------------------------------------
500 (
501  le_ecall_ObjRef_t ecallRef
504 );
505 
506 //--------------------------------------------------------------------------------------------------
514 //--------------------------------------------------------------------------------------------------
516 (
517  le_ecall_ObjRef_t ecallRef
520 );
521 
522 
523 #endif // LE_ECALL_H_INCLUDE_GUARD
524 
le_ecall_State_t le_ecall_GetState(le_ecall_ObjRef_t ecallRef)
void(* le_ecall_StateChangeHandlerFunc_t)(le_ecall_State_t state, void *contextPtr)
Definition: le_ecall_interface.h:283
le_ecall_ObjRef_t le_ecall_Create(void)
void le_ecall_RemoveStateChangeHandler(le_ecall_StateChangeHandlerRef_t addHandlerRef)
le_result_t le_ecall_ImportMsd(le_ecall_ObjRef_t ecallRef, const uint8_t *msdPtr, size_t msdNumElements)
Successful eCall session.
Definition: le_ecall_interface.h:255
MSD transmission has failed.
Definition: le_ecall_interface.h:246
le_result_t le_ecall_StartManual(le_ecall_ObjRef_t ecallRef)
Unknown state.
Definition: le_ecall_interface.h:237
le_result_t
Definition: le_basics.h:34
le_result_t le_ecall_SetMsdPosition(le_ecall_ObjRef_t ecallRef, bool isTrusted, int32_t latitude, int32_t longitude, int32_t direction)
void le_ecall_ConnectService(void)
struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
Definition: le_ecall_interface.h:269
void le_ecall_DisconnectService(void)
MSD transmission is complete.
Definition: le_ecall_interface.h:243
le_result_t le_ecall_StartTest(le_ecall_ObjRef_t ecallRef)
le_result_t le_ecall_SetMsdPassengersCount(le_ecall_ObjRef_t ecallRef, uint32_t paxCount)
le_result_t le_ecall_End(le_ecall_ObjRef_t ecallRef)
Emergency call is established.
Definition: le_ecall_interface.h:240
Unsuccessful eCall session.
Definition: le_ecall_interface.h:258
le_ecall_State_t
Definition: le_ecall_interface.h:235
eCall session has been stopped by the PSAP.
Definition: le_ecall_interface.h:249
eCall session has lost synchronization and starts over.
Definition: le_ecall_interface.h:252
void le_ecall_Delete(le_ecall_ObjRef_t ecallRef)
le_ecall_StateChangeHandlerRef_t le_ecall_AddStateChangeHandler(le_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
struct le_ecall_Obj * le_ecall_ObjRef_t
Definition: le_ecall_interface.h:219
le_result_t le_ecall_StartAutomatic(le_ecall_ObjRef_t ecallRef)