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 
394 #ifndef LE_ECALL_INTERFACE_H_INCLUDE_GUARD
395 #define LE_ECALL_INTERFACE_H_INCLUDE_GUARD
396 
397 
398 #include "legato.h"
399 
400 // Interface specific includes
401 #include "le_mdmDefs_interface.h"
402 
403 
404 //--------------------------------------------------------------------------------------------------
408 //--------------------------------------------------------------------------------------------------
410 (
411  void
412 );
413 
414 //--------------------------------------------------------------------------------------------------
418 //--------------------------------------------------------------------------------------------------
420 (
421  void
422 );
423 
424 
425 //--------------------------------------------------------------------------------------------------
429 //--------------------------------------------------------------------------------------------------
430 typedef struct le_ecall_Call* le_ecall_CallRef_t;
431 
432 
433 //--------------------------------------------------------------------------------------------------
437 //--------------------------------------------------------------------------------------------------
438 #define LE_ECALL_MSD_MAX_LEN 140
439 
440 
441 //--------------------------------------------------------------------------------------------------
445 //--------------------------------------------------------------------------------------------------
446 typedef enum
447 {
450 
453 
456 }
458 
459 
460 //--------------------------------------------------------------------------------------------------
464 //--------------------------------------------------------------------------------------------------
465 typedef enum
466 {
469 
472 
475 
478 
481 
484 
487 
490 
493 
496 
499 
502 
505 
508 
511 
516 
519 }
521 
522 
523 //--------------------------------------------------------------------------------------------------
527 //--------------------------------------------------------------------------------------------------
528 typedef enum
529 {
532 
535 }
537 
538 
539 //--------------------------------------------------------------------------------------------------
544 //--------------------------------------------------------------------------------------------------
545 typedef enum
546 {
549 
552 
555 
558 
561 
564 
567 
570 
573 
576 
579 
582 
585 
588 
591 
594 
597 
600 
603 
606 
609 
612 
615 
618 
621 
624 
627 
630 
633 
636 
639 
642 
645 
648 
651 
654 
657 
660 
663 
666 
669 
672 }
674 
675 
676 //--------------------------------------------------------------------------------------------------
681 //--------------------------------------------------------------------------------------------------
682 typedef enum
683 {
686 
689 
692 
695 
698 
701 
704 
707 
710 
713 
716 
719 
722 
725 
728 
731 }
733 
734 
735 //--------------------------------------------------------------------------------------------------
739 //--------------------------------------------------------------------------------------------------
740 typedef struct le_ecall_StateChangeHandler* le_ecall_StateChangeHandlerRef_t;
741 
742 
743 //--------------------------------------------------------------------------------------------------
752 //--------------------------------------------------------------------------------------------------
753 typedef void (*le_ecall_StateChangeHandlerFunc_t)
754 (
755  le_ecall_State_t state,
756  void* contextPtr
757 );
758 
759 //--------------------------------------------------------------------------------------------------
771 //--------------------------------------------------------------------------------------------------
773 (
774  void
775 );
776 
777 //--------------------------------------------------------------------------------------------------
785 //--------------------------------------------------------------------------------------------------
787 (
788  void
789 );
790 
791 //--------------------------------------------------------------------------------------------------
802 //--------------------------------------------------------------------------------------------------
804 (
805  void
806 );
807 
808 //--------------------------------------------------------------------------------------------------
816 //--------------------------------------------------------------------------------------------------
818 (
819  le_ecall_OpMode_t* opModePtr
822 );
823 
824 //--------------------------------------------------------------------------------------------------
830 //--------------------------------------------------------------------------------------------------
832 (
835 
836  void* contextPtr
838 );
839 
840 //--------------------------------------------------------------------------------------------------
844 //--------------------------------------------------------------------------------------------------
846 (
849 );
850 
851 //--------------------------------------------------------------------------------------------------
864 //--------------------------------------------------------------------------------------------------
866 (
867  void
868 );
869 
870 //--------------------------------------------------------------------------------------------------
877 //--------------------------------------------------------------------------------------------------
878 void le_ecall_Delete
879 (
880  le_ecall_CallRef_t ecallRef
883 );
884 
885 //--------------------------------------------------------------------------------------------------
893 //--------------------------------------------------------------------------------------------------
895 (
899 );
900 
901 //--------------------------------------------------------------------------------------------------
909 //--------------------------------------------------------------------------------------------------
911 (
912  le_ecall_MsdTxMode_t* modePtr
915 );
916 
917 //--------------------------------------------------------------------------------------------------
931 //--------------------------------------------------------------------------------------------------
933 (
934  le_ecall_CallRef_t ecallRef,
937 
938  bool isTrusted,
941 
942  int32_t latitude,
945 
946  int32_t longitude,
949 
950  int32_t direction
953 );
954 
955 //--------------------------------------------------------------------------------------------------
968 //--------------------------------------------------------------------------------------------------
970 (
971  le_ecall_CallRef_t ecallRef,
974 
975  uint32_t paxCount
978 );
979 
980 //--------------------------------------------------------------------------------------------------
996 //--------------------------------------------------------------------------------------------------
998 (
999  le_ecall_CallRef_t ecallRef,
1002 
1003  const uint8_t* msdPtr,
1006 
1007  size_t msdNumElements
1009 );
1010 
1011 //--------------------------------------------------------------------------------------------------
1025 //--------------------------------------------------------------------------------------------------
1027 (
1028  le_ecall_CallRef_t ecallRef,
1031 
1032  uint8_t* msdPtr,
1035 
1036  size_t* msdNumElementsPtr
1038 );
1039 
1040 //--------------------------------------------------------------------------------------------------
1052 //--------------------------------------------------------------------------------------------------
1054 (
1055  le_ecall_CallRef_t ecallRef
1058 );
1059 
1060 //--------------------------------------------------------------------------------------------------
1072 //--------------------------------------------------------------------------------------------------
1074 (
1075  le_ecall_CallRef_t ecallRef
1078 );
1079 
1080 //--------------------------------------------------------------------------------------------------
1092 //--------------------------------------------------------------------------------------------------
1094 (
1095  le_ecall_CallRef_t ecallRef
1098 );
1099 
1100 //--------------------------------------------------------------------------------------------------
1109 //--------------------------------------------------------------------------------------------------
1111 (
1112  le_ecall_CallRef_t ecallRef
1115 );
1116 
1117 //--------------------------------------------------------------------------------------------------
1126 //--------------------------------------------------------------------------------------------------
1128 (
1129  le_ecall_CallRef_t ecallRef
1132 );
1133 
1134 //--------------------------------------------------------------------------------------------------
1144 //--------------------------------------------------------------------------------------------------
1146 (
1147  const char* psap
1150 );
1151 
1152 //--------------------------------------------------------------------------------------------------
1163 //--------------------------------------------------------------------------------------------------
1165 (
1166  char* psap,
1169 
1170  size_t psapNumElements
1172 );
1173 
1174 //--------------------------------------------------------------------------------------------------
1183 //--------------------------------------------------------------------------------------------------
1185 (
1186  void
1187 );
1188 
1189 //--------------------------------------------------------------------------------------------------
1199 //--------------------------------------------------------------------------------------------------
1201 (
1202  uint16_t deregTime
1205 );
1206 
1207 //--------------------------------------------------------------------------------------------------
1215 //--------------------------------------------------------------------------------------------------
1217 (
1218  uint16_t* deregTimePtr
1221 );
1222 
1223 //--------------------------------------------------------------------------------------------------
1231 //--------------------------------------------------------------------------------------------------
1233 (
1234  uint16_t pause
1237 );
1238 
1239 //--------------------------------------------------------------------------------------------------
1247 //--------------------------------------------------------------------------------------------------
1249 (
1250  uint16_t* pausePtr
1253 );
1254 
1255 //--------------------------------------------------------------------------------------------------
1267 //--------------------------------------------------------------------------------------------------
1269 (
1270  uint16_t attempts
1273 );
1274 
1275 //--------------------------------------------------------------------------------------------------
1287 //--------------------------------------------------------------------------------------------------
1289 (
1290  uint16_t attempts
1293 );
1294 
1295 //--------------------------------------------------------------------------------------------------
1306 //--------------------------------------------------------------------------------------------------
1308 (
1309  uint16_t duration
1312 );
1313 
1314 //--------------------------------------------------------------------------------------------------
1322 //--------------------------------------------------------------------------------------------------
1324 (
1325  uint16_t* attemptsPtr
1328 );
1329 
1330 //--------------------------------------------------------------------------------------------------
1338 //--------------------------------------------------------------------------------------------------
1340 (
1341  uint16_t* attemptsPtr
1344 );
1345 
1346 //--------------------------------------------------------------------------------------------------
1354 //--------------------------------------------------------------------------------------------------
1356 (
1357  uint16_t* durationPtr
1360 );
1361 
1362 //--------------------------------------------------------------------------------------------------
1371 //--------------------------------------------------------------------------------------------------
1373 (
1374  le_ecall_CallRef_t ecallRef,
1377 
1378  uint32_t crashSeverity
1381 );
1382 
1383 //--------------------------------------------------------------------------------------------------
1393 //--------------------------------------------------------------------------------------------------
1395 (
1396  le_ecall_CallRef_t ecallRef
1399 );
1400 
1401 //--------------------------------------------------------------------------------------------------
1410 //--------------------------------------------------------------------------------------------------
1412 (
1413  le_ecall_CallRef_t ecallRef,
1416 
1417  le_ecall_DiagnosticResultBitMask_t diagnosticResultMask
1420 );
1421 
1422 //--------------------------------------------------------------------------------------------------
1432 //--------------------------------------------------------------------------------------------------
1434 (
1435  le_ecall_CallRef_t ecallRef
1438 );
1439 
1440 //--------------------------------------------------------------------------------------------------
1449 //--------------------------------------------------------------------------------------------------
1451 (
1452  le_ecall_CallRef_t ecallRef,
1455 
1456  le_ecall_CrashInfoBitMask_t crashInfoMask
1459 );
1460 
1461 //--------------------------------------------------------------------------------------------------
1471 //--------------------------------------------------------------------------------------------------
1473 (
1474  le_ecall_CallRef_t ecallRef
1477 );
1478 
1479 
1480 #endif // LE_ECALL_INTERFACE_H_INCLUDE_GUARD
1481 
le_ecall_OpMode_t
Definition: le_ecall_interface.h:446
void(* le_ecall_StateChangeHandlerFunc_t)(le_ecall_State_t state, void *contextPtr)
Definition: le_ecall_interface.h:754
AL-ACK clear-down received.
Definition: le_ecall_interface.h:503
Present Left collision indicator.
Definition: le_ecall_interface.h:690
void le_ecall_RemoveStateChangeHandler(le_ecall_StateChangeHandlerRef_t addHandlerRef)
le_result_t le_ecall_StartTest(le_ecall_CallRef_t ecallRef)
Persistent eCall only mode.
Definition: le_ecall_interface.h:454
Present Battery failure.
Definition: le_ecall_interface.h:595
Definition: le_ecall_interface.h:512
le_result_t le_ecall_ForceOnlyMode(void)
Present Right speaker failure.
Definition: le_ecall_interface.h:559
Front collision indicator.
Definition: le_ecall_interface.h:687
le_result_t le_ecall_ResetMsdEraGlonassCrashSeverity(le_ecall_CallRef_t ecallRef)
le_result_t le_ecall_SetEraGlonassDialDuration(uint16_t duration)
Present Comm module interface failure.
Definition: le_ecall_interface.h:619
Present Other critical failures.
Definition: le_ecall_interface.h:661
le_result_t le_ecall_SetMsdEraGlonassDiagnosticResult(le_ecall_CallRef_t ecallRef, le_ecall_DiagnosticResultBitMask_t diagnosticResultMask)
MSD transmission has failed.
Definition: le_ecall_interface.h:497
Unknown state.
Definition: le_ecall_interface.h:467
Present Battery voltage low failure.
Definition: le_ecall_interface.h:601
le_result_t
Definition: le_basics.h:35
le_result_t le_ecall_SetMsdEraGlonassCrashSeverity(le_ecall_CallRef_t ecallRef, uint32_t crashSeverity)
le_result_t le_ecall_ForcePersistentOnlyMode(void)
le_result_t le_ecall_ImportMsd(le_ecall_CallRef_t ecallRef, const uint8_t *msdPtr, size_t msdNumElements)
Front or side collision indicator.
Definition: le_ecall_interface.h:723
le_result_t le_ecall_SetMsdTxMode(le_ecall_MsdTxMode_t mode)
void le_ecall_ConnectService(void)
Firmware image corruption failure status.
Definition: le_ecall_interface.h:616
Present Side collision indicator.
Definition: le_ecall_interface.h:714
Present Mic connection failure.
Definition: le_ecall_interface.h:547
Right speaker failure status.
Definition: le_ecall_interface.h:562
Present Right collision indicator.
Definition: le_ecall_interface.h:696
Other critical failures status.
Definition: le_ecall_interface.h:664
Crash profile memory overflow status.
Definition: le_ecall_interface.h:658
le_result_t le_ecall_GetMsdTxMode(le_ecall_MsdTxMode_t *modePtr)
LL-NACK received.
Definition: le_ecall_interface.h:488
Present Crash profile memory overflow.
Definition: le_ecall_interface.h:655
Present Front or side collision indicator.
Definition: le_ecall_interface.h:720
le_result_t le_ecall_ResetMsdEraGlonassCrashInfo(le_ecall_CallRef_t ecallRef)
Left speaker failure status.
Definition: le_ecall_interface.h:568
Rollover indicator.
Definition: le_ecall_interface.h:711
Present Other not critical failures.
Definition: le_ecall_interface.h:667
Ignition line failure status.
Definition: le_ecall_interface.h:580
eCall only mode.
Definition: le_ecall_interface.h:451
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
Definition: le_ecall_interface.h:530
Side collision indicator.
Definition: le_ecall_interface.h:717
struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
Definition: le_ecall_interface.h:740
le_ecall_CrashInfoBitMask_t
Definition: le_ecall_interface.h:682
le_result_t le_ecall_GetConfiguredOperationMode(le_ecall_OpMode_t *opModePtr)
le_result_t le_ecall_ExportMsd(le_ecall_CallRef_t ecallRef, uint8_t *msdPtr, size_t *msdNumElementsPtr)
GNSS antenna failure status.
Definition: le_ecall_interface.h:640
le_result_t le_ecall_SetNadDeregistrationTime(uint16_t deregTime)
Present GNSS receiver failure.
Definition: le_ecall_interface.h:625
Normal mode.
Definition: le_ecall_interface.h:448
RAIM problem status.
Definition: le_ecall_interface.h:634
le_result_t le_ecall_GetPsapNumber(char *psap, size_t psapNumElements)
void le_ecall_DisconnectService(void)
Push mode (modem/host sends MSD to PSAP right after eCall is connected).
Definition: le_ecall_interface.h:533
le_result_t le_ecall_SetEraGlonassAutoDialAttempts(uint16_t attempts)
Other types of damage indicator.
Definition: le_ecall_interface.h:729
UIM failure status.
Definition: le_ecall_interface.h:586
Battery failure status.
Definition: le_ecall_interface.h:598
le_result_t le_ecall_SetEraGlonassManualDialAttempts(uint16_t attempts)
Speaker failure status.
Definition: le_ecall_interface.h:574
PSAP start indication received.
Definition: le_ecall_interface.h:482
le_ecall_DiagnosticResultBitMask_t
Definition: le_ecall_interface.h:545
Present RAIM problem.
Definition: le_ecall_interface.h:631
Present Front collision indicator.
Definition: le_ecall_interface.h:684
Other not critical failures status.
Definition: le_ecall_interface.h:670
le_result_t le_ecall_SetMsdPassengersCount(le_ecall_CallRef_t ecallRef, uint32_t paxCount)
Present Other types of damage indicator.
Definition: le_ecall_interface.h:726
le_ecall_State_t le_ecall_GetState(le_ecall_CallRef_t ecallRef)
LL-ACK received.
Definition: le_ecall_interface.h:491
Waiting for PSAP start indication.
Definition: le_ecall_interface.h:479
le_result_t le_ecall_End(le_ecall_CallRef_t ecallRef)
struct le_ecall_Call * le_ecall_CallRef_t
Definition: le_ecall_interface.h:430
le_result_t le_ecall_StartManual(le_ecall_CallRef_t ecallRef)
le_result_t le_ecall_ResetMsdEraGlonassDiagnosticResult(le_ecall_CallRef_t ecallRef)
MSD transmission is complete.
Definition: le_ecall_interface.h:494
Comm module failure status.
Definition: le_ecall_interface.h:646
le_result_t le_ecall_SetMsdEraGlonassCrashInfo(le_ecall_CallRef_t ecallRef, le_ecall_CrashInfoBitMask_t crashInfoMask)
Events memory overflow status.
Definition: le_ecall_interface.h:652
Present GNSS antenna failure.
Definition: le_ecall_interface.h:637
le_result_t le_ecall_SetMsdPosition(le_ecall_CallRef_t ecallRef, bool isTrusted, int32_t latitude, int32_t longitude, int32_t direction)
Present Rollover indicator.
Definition: le_ecall_interface.h:708
le_ecall_CallRef_t le_ecall_Create(void)
Status indicator failure status.
Definition: le_ecall_interface.h:592
Present UIM failure.
Definition: le_ecall_interface.h:583
Present indicator.
Definition: le_ecall_interface.h:702
MSD transmission is started.
Definition: le_ecall_interface.h:485
eCall session started.
Definition: le_ecall_interface.h:470
Present Left speaker failure.
Definition: le_ecall_interface.h:565
Rear impact indicator.
Definition: le_ecall_interface.h:705
Present Mic failure.
Definition: le_ecall_interface.h:553
le_result_t le_ecall_UseUSimNumbers(void)
le_result_t le_ecall_SetPsapNumber(const char *psap)
le_result_t le_ecall_GetEraGlonassManualDialAttempts(uint16_t *attemptsPtr)
Present Status indicator failure.
Definition: le_ecall_interface.h:589
Mic failure status.
Definition: le_ecall_interface.h:556
le_result_t le_ecall_GetNadDeregistrationTime(uint16_t *deregTimePtr)
Right collision indicator.
Definition: le_ecall_interface.h:699
le_result_t le_ecall_GetEraGlonassAutoDialAttempts(uint16_t *attemptsPtr)
Emergency call is established.
Definition: le_ecall_interface.h:473
Unsuccessful eCall session.
Definition: le_ecall_interface.h:517
le_result_t le_ecall_ExitOnlyMode(void)
Present Crash sensor failure.
Definition: le_ecall_interface.h:607
le_result_t le_ecall_GetEraGlonassDialDuration(uint16_t *durationPtr)
Present Speaker failure.
Definition: le_ecall_interface.h:571
AL-ACK received.
Definition: le_ecall_interface.h:500
Battery voltage low failure status.
Definition: le_ecall_interface.h:604
le_ecall_State_t
Definition: le_ecall_interface.h:465
le_ecall_MsdTxMode_t
Definition: le_ecall_interface.h:528
le_result_t le_ecall_SetIntervalBetweenDialAttempts(uint16_t pause)
Emergency call is disconnected.
Definition: le_ecall_interface.h:476
eCall session has been stopped by the PSAP.
Definition: le_ecall_interface.h:506
Present Events memory overflow.
Definition: le_ecall_interface.h:649
le_result_t le_ecall_StartAutomatic(le_ecall_CallRef_t ecallRef)
Comm module interface failure status.
Definition: le_ecall_interface.h:622
GNSS receiver failure status.
Definition: le_ecall_interface.h:628
eCall session has lost synchronization and starts over.
Definition: le_ecall_interface.h:509
Present Comm module failure.
Definition: le_ecall_interface.h:643
Mic connection failure status.
Definition: le_ecall_interface.h:550
le_ecall_StateChangeHandlerRef_t le_ecall_AddStateChangeHandler(le_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
Left collision indicator.
Definition: le_ecall_interface.h:693
Present Firmware image corruption failure.
Definition: le_ecall_interface.h:613
void le_ecall_Delete(le_ecall_CallRef_t ecallRef)
Present Ignition line failure.
Definition: le_ecall_interface.h:577
le_result_t le_ecall_GetIntervalBetweenDialAttempts(uint16_t *pausePtr)
Crash sensor failure status.
Definition: le_ecall_interface.h:610