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 
424 #ifndef LE_ECALL_INTERFACE_H_INCLUDE_GUARD
425 #define LE_ECALL_INTERFACE_H_INCLUDE_GUARD
426 
427 
428 #include "legato.h"
429 
430 // Interface specific includes
431 #include "le_mdmDefs_interface.h"
432 #include "le_mcc_interface.h"
433 
434 
435 //--------------------------------------------------------------------------------------------------
439 //--------------------------------------------------------------------------------------------------
441 (
442  void
443 );
444 
445 //--------------------------------------------------------------------------------------------------
449 //--------------------------------------------------------------------------------------------------
451 (
452  void
453 );
454 
455 
456 //--------------------------------------------------------------------------------------------------
460 //--------------------------------------------------------------------------------------------------
461 typedef struct le_ecall_Call* le_ecall_CallRef_t;
462 
463 
464 //--------------------------------------------------------------------------------------------------
468 //--------------------------------------------------------------------------------------------------
469 #define LE_ECALL_MSD_MAX_LEN 140
470 
471 
472 //--------------------------------------------------------------------------------------------------
476 //--------------------------------------------------------------------------------------------------
477 typedef enum
478 {
481 
484 
487 }
489 
490 
491 //--------------------------------------------------------------------------------------------------
495 //--------------------------------------------------------------------------------------------------
496 typedef enum
497 {
500 
503 
506 
509 
512 
515 
518 
521 
524 
527 
530 
533 
536 
539 
542 
547 
550 
553 }
555 
556 
557 //--------------------------------------------------------------------------------------------------
561 //--------------------------------------------------------------------------------------------------
562 typedef enum
563 {
566 
569 }
571 
572 
573 //--------------------------------------------------------------------------------------------------
578 //--------------------------------------------------------------------------------------------------
579 typedef enum
580 {
583 
586 
589 
592 
595 
598 
601 
604 
607 
610 
613 
616 
619 
622 
625 
628 
631 
634 
637 
640 
643 
646 
649 
652 
655 
658 
661 
664 
667 
670 
673 
676 
679 
682 
685 
688 
691 
694 
697 
700 
703 
706 }
708 
709 
710 //--------------------------------------------------------------------------------------------------
715 //--------------------------------------------------------------------------------------------------
716 typedef enum
717 {
720 
723 
726 
729 
732 
735 
738 
741 
744 
747 
750 
753 
756 
759 
762 
765 }
767 
768 
769 //--------------------------------------------------------------------------------------------------
773 //--------------------------------------------------------------------------------------------------
774 typedef struct le_ecall_StateChangeHandler* le_ecall_StateChangeHandlerRef_t;
775 
776 
777 //--------------------------------------------------------------------------------------------------
788 //--------------------------------------------------------------------------------------------------
789 typedef void (*le_ecall_StateChangeHandlerFunc_t)
790 (
791  le_ecall_CallRef_t ecallRef,
792  le_ecall_State_t state,
793  void* contextPtr
794 );
795 
796 //--------------------------------------------------------------------------------------------------
808 //--------------------------------------------------------------------------------------------------
810 (
811  void
812 );
813 
814 //--------------------------------------------------------------------------------------------------
822 //--------------------------------------------------------------------------------------------------
824 (
825  void
826 );
827 
828 //--------------------------------------------------------------------------------------------------
839 //--------------------------------------------------------------------------------------------------
841 (
842  void
843 );
844 
845 //--------------------------------------------------------------------------------------------------
853 //--------------------------------------------------------------------------------------------------
855 (
856  le_ecall_OpMode_t* opModePtr
859 );
860 
861 //--------------------------------------------------------------------------------------------------
867 //--------------------------------------------------------------------------------------------------
869 (
872 
873  void* contextPtr
875 );
876 
877 //--------------------------------------------------------------------------------------------------
881 //--------------------------------------------------------------------------------------------------
883 (
886 );
887 
888 //--------------------------------------------------------------------------------------------------
901 //--------------------------------------------------------------------------------------------------
903 (
904  void
905 );
906 
907 //--------------------------------------------------------------------------------------------------
914 //--------------------------------------------------------------------------------------------------
915 void le_ecall_Delete
916 (
917  le_ecall_CallRef_t ecallRef
920 );
921 
922 //--------------------------------------------------------------------------------------------------
930 //--------------------------------------------------------------------------------------------------
932 (
936 );
937 
938 //--------------------------------------------------------------------------------------------------
946 //--------------------------------------------------------------------------------------------------
948 (
949  le_ecall_MsdTxMode_t* modePtr
952 );
953 
954 //--------------------------------------------------------------------------------------------------
965 //--------------------------------------------------------------------------------------------------
967 (
968  le_ecall_CallRef_t ecallRef,
971 
972  bool isTrusted,
975 
976  int32_t latitude,
979 
980  int32_t longitude,
983 
984  int32_t direction
987 );
988 
989 //--------------------------------------------------------------------------------------------------
1000 //--------------------------------------------------------------------------------------------------
1002 (
1003  le_ecall_CallRef_t ecallRef,
1006 
1007  uint32_t paxCount
1010 );
1011 
1012 //--------------------------------------------------------------------------------------------------
1027 //--------------------------------------------------------------------------------------------------
1029 (
1030  le_ecall_CallRef_t ecallRef,
1033 
1034  const uint8_t* msdPtr,
1037 
1038  size_t msdNumElements
1040 );
1041 
1042 //--------------------------------------------------------------------------------------------------
1056 //--------------------------------------------------------------------------------------------------
1058 (
1059  le_ecall_CallRef_t ecallRef,
1062 
1063  uint8_t* msdPtr,
1066 
1067  size_t* msdNumElementsPtr
1069 );
1070 
1071 //--------------------------------------------------------------------------------------------------
1083 //--------------------------------------------------------------------------------------------------
1085 (
1086  le_ecall_CallRef_t ecallRef
1089 );
1090 
1091 //--------------------------------------------------------------------------------------------------
1103 //--------------------------------------------------------------------------------------------------
1105 (
1106  le_ecall_CallRef_t ecallRef
1109 );
1110 
1111 //--------------------------------------------------------------------------------------------------
1123 //--------------------------------------------------------------------------------------------------
1125 (
1126  le_ecall_CallRef_t ecallRef
1129 );
1130 
1131 //--------------------------------------------------------------------------------------------------
1143 //--------------------------------------------------------------------------------------------------
1145 (
1146  le_ecall_CallRef_t ecallRef
1149 );
1150 
1151 //--------------------------------------------------------------------------------------------------
1160 //--------------------------------------------------------------------------------------------------
1162 (
1163  le_ecall_CallRef_t ecallRef
1166 );
1167 
1168 //--------------------------------------------------------------------------------------------------
1177 //--------------------------------------------------------------------------------------------------
1179 (
1180  le_ecall_CallRef_t ecallRef
1183 );
1184 
1185 //--------------------------------------------------------------------------------------------------
1195 //--------------------------------------------------------------------------------------------------
1197 (
1198  const char* psap
1201 );
1202 
1203 //--------------------------------------------------------------------------------------------------
1214 //--------------------------------------------------------------------------------------------------
1216 (
1217  char* psap,
1220 
1221  size_t psapNumElements
1223 );
1224 
1225 //--------------------------------------------------------------------------------------------------
1234 //--------------------------------------------------------------------------------------------------
1236 (
1237  void
1238 );
1239 
1240 //--------------------------------------------------------------------------------------------------
1250 //--------------------------------------------------------------------------------------------------
1252 (
1253  uint16_t deregTime
1256 );
1257 
1258 //--------------------------------------------------------------------------------------------------
1266 //--------------------------------------------------------------------------------------------------
1268 (
1269  uint16_t* deregTimePtr
1272 );
1273 
1274 //--------------------------------------------------------------------------------------------------
1282 //--------------------------------------------------------------------------------------------------
1284 (
1285  uint16_t pause
1288 );
1289 
1290 //--------------------------------------------------------------------------------------------------
1298 //--------------------------------------------------------------------------------------------------
1300 (
1301  uint16_t* pausePtr
1304 );
1305 
1306 //--------------------------------------------------------------------------------------------------
1318 //--------------------------------------------------------------------------------------------------
1320 (
1321  uint16_t attempts
1324 );
1325 
1326 //--------------------------------------------------------------------------------------------------
1338 //--------------------------------------------------------------------------------------------------
1340 (
1341  uint16_t attempts
1344 );
1345 
1346 //--------------------------------------------------------------------------------------------------
1357 //--------------------------------------------------------------------------------------------------
1359 (
1360  uint16_t duration
1363 );
1364 
1365 //--------------------------------------------------------------------------------------------------
1373 //--------------------------------------------------------------------------------------------------
1375 (
1376  uint16_t* attemptsPtr
1379 );
1380 
1381 //--------------------------------------------------------------------------------------------------
1389 //--------------------------------------------------------------------------------------------------
1391 (
1392  uint16_t* attemptsPtr
1395 );
1396 
1397 //--------------------------------------------------------------------------------------------------
1405 //--------------------------------------------------------------------------------------------------
1407 (
1408  uint16_t* durationPtr
1411 );
1412 
1413 //--------------------------------------------------------------------------------------------------
1422 //--------------------------------------------------------------------------------------------------
1424 (
1425  le_ecall_CallRef_t ecallRef,
1428 
1429  uint32_t crashSeverity
1432 );
1433 
1434 //--------------------------------------------------------------------------------------------------
1444 //--------------------------------------------------------------------------------------------------
1446 (
1447  le_ecall_CallRef_t ecallRef
1450 );
1451 
1452 //--------------------------------------------------------------------------------------------------
1461 //--------------------------------------------------------------------------------------------------
1463 (
1464  le_ecall_CallRef_t ecallRef,
1467 
1468  le_ecall_DiagnosticResultBitMask_t diagnosticResultMask
1471 );
1472 
1473 //--------------------------------------------------------------------------------------------------
1483 //--------------------------------------------------------------------------------------------------
1485 (
1486  le_ecall_CallRef_t ecallRef
1489 );
1490 
1491 //--------------------------------------------------------------------------------------------------
1500 //--------------------------------------------------------------------------------------------------
1502 (
1503  le_ecall_CallRef_t ecallRef,
1506 
1507  le_ecall_CrashInfoBitMask_t crashInfoMask
1510 );
1511 
1512 //--------------------------------------------------------------------------------------------------
1522 //--------------------------------------------------------------------------------------------------
1524 (
1525  le_ecall_CallRef_t ecallRef
1528 );
1529 
1530 //--------------------------------------------------------------------------------------------------
1539 //--------------------------------------------------------------------------------------------------
1541 (
1542  le_ecall_CallRef_t ecallRef
1545 );
1546 
1547 //--------------------------------------------------------------------------------------------------
1556 //--------------------------------------------------------------------------------------------------
1558 (
1559  le_ecall_CallRef_t ecallRef
1562 );
1563 
1564 
1565 #endif // LE_ECALL_INTERFACE_H_INCLUDE_GUARD
1566 
End of the redial period.
Definition: le_ecall_interface.h:551
le_ecall_OpMode_t
Definition: le_ecall_interface.h:477
AL-ACK clear-down received.
Definition: le_ecall_interface.h:534
Present Left collision indicator.
Definition: le_ecall_interface.h:724
void le_ecall_RemoveStateChangeHandler(le_ecall_StateChangeHandlerRef_t addHandlerRef)
int32_t le_ecall_GetPlatformSpecificTerminationCode(le_ecall_CallRef_t ecallRef)
le_result_t le_ecall_StartTest(le_ecall_CallRef_t ecallRef)
Persistent eCall only mode.
Definition: le_ecall_interface.h:485
Present Battery failure.
Definition: le_ecall_interface.h:629
Definition: le_ecall_interface.h:543
le_result_t le_ecall_ForceOnlyMode(void)
Present Right speaker failure.
Definition: le_ecall_interface.h:593
Front collision indicator.
Definition: le_ecall_interface.h:721
le_result_t le_ecall_SendMsd(le_ecall_CallRef_t ecallRef)
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:653
Present Other critical failures.
Definition: le_ecall_interface.h:695
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:528
Unknown state.
Definition: le_ecall_interface.h:498
Present Battery voltage low failure.
Definition: le_ecall_interface.h:635
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:757
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:650
le_mcc_TerminationReason_t
Definition: le_mcc_interface.h:320
Present Side collision indicator.
Definition: le_ecall_interface.h:748
Present Mic connection failure.
Definition: le_ecall_interface.h:581
Right speaker failure status.
Definition: le_ecall_interface.h:596
Present Right collision indicator.
Definition: le_ecall_interface.h:730
Other critical failures status.
Definition: le_ecall_interface.h:698
Crash profile memory overflow status.
Definition: le_ecall_interface.h:692
le_result_t le_ecall_GetMsdTxMode(le_ecall_MsdTxMode_t *modePtr)
LL-NACK received.
Definition: le_ecall_interface.h:519
Present Crash profile memory overflow.
Definition: le_ecall_interface.h:689
Present Front or side collision indicator.
Definition: le_ecall_interface.h:754
le_result_t le_ecall_ResetMsdEraGlonassCrashInfo(le_ecall_CallRef_t ecallRef)
Left speaker failure status.
Definition: le_ecall_interface.h:602
Rollover indicator.
Definition: le_ecall_interface.h:745
Present Other not critical failures.
Definition: le_ecall_interface.h:701
Ignition line failure status.
Definition: le_ecall_interface.h:614
void(* le_ecall_StateChangeHandlerFunc_t)(le_ecall_CallRef_t ecallRef, le_ecall_State_t state, void *contextPtr)
Definition: le_ecall_interface.h:790
eCall only mode.
Definition: le_ecall_interface.h:482
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
Definition: le_ecall_interface.h:564
Side collision indicator.
Definition: le_ecall_interface.h:751
struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
Definition: le_ecall_interface.h:774
le_ecall_CrashInfoBitMask_t
Definition: le_ecall_interface.h:716
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:674
le_result_t le_ecall_SetNadDeregistrationTime(uint16_t deregTime)
Present GNSS receiver failure.
Definition: le_ecall_interface.h:659
Normal mode.
Definition: le_ecall_interface.h:479
RAIM problem status.
Definition: le_ecall_interface.h:668
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:567
le_result_t le_ecall_SetEraGlonassAutoDialAttempts(uint16_t attempts)
Other types of damage indicator.
Definition: le_ecall_interface.h:763
UIM failure status.
Definition: le_ecall_interface.h:620
Battery failure status.
Definition: le_ecall_interface.h:632
le_result_t le_ecall_SetEraGlonassManualDialAttempts(uint16_t attempts)
Speaker failure status.
Definition: le_ecall_interface.h:608
PSAP start indication received.
Definition: le_ecall_interface.h:513
le_mcc_TerminationReason_t le_ecall_GetTerminationReason(le_ecall_CallRef_t ecallRef)
le_ecall_DiagnosticResultBitMask_t
Definition: le_ecall_interface.h:579
Present RAIM problem.
Definition: le_ecall_interface.h:665
Present Front collision indicator.
Definition: le_ecall_interface.h:718
Other not critical failures status.
Definition: le_ecall_interface.h:704
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:760
le_ecall_State_t le_ecall_GetState(le_ecall_CallRef_t ecallRef)
LL-ACK received.
Definition: le_ecall_interface.h:522
Waiting for PSAP start indication.
Definition: le_ecall_interface.h:510
le_result_t le_ecall_End(le_ecall_CallRef_t ecallRef)
struct le_ecall_Call * le_ecall_CallRef_t
Definition: le_ecall_interface.h:461
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:525
Comm module failure status.
Definition: le_ecall_interface.h:680
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:686
Present GNSS antenna failure.
Definition: le_ecall_interface.h:671
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:742
le_ecall_CallRef_t le_ecall_Create(void)
Status indicator failure status.
Definition: le_ecall_interface.h:626
Present UIM failure.
Definition: le_ecall_interface.h:617
Present indicator.
Definition: le_ecall_interface.h:736
MSD transmission is started.
Definition: le_ecall_interface.h:516
eCall session started.
Definition: le_ecall_interface.h:501
Present Left speaker failure.
Definition: le_ecall_interface.h:599
Rear impact indicator.
Definition: le_ecall_interface.h:739
Present Mic failure.
Definition: le_ecall_interface.h:587
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:623
Mic failure status.
Definition: le_ecall_interface.h:590
le_result_t le_ecall_GetNadDeregistrationTime(uint16_t *deregTimePtr)
Right collision indicator.
Definition: le_ecall_interface.h:733
le_result_t le_ecall_GetEraGlonassAutoDialAttempts(uint16_t *attemptsPtr)
Emergency call is established.
Definition: le_ecall_interface.h:504
Unsuccessful eCall session.
Definition: le_ecall_interface.h:548
le_result_t le_ecall_ExitOnlyMode(void)
Present Crash sensor failure.
Definition: le_ecall_interface.h:641
le_result_t le_ecall_GetEraGlonassDialDuration(uint16_t *durationPtr)
Present Speaker failure.
Definition: le_ecall_interface.h:605
AL-ACK received.
Definition: le_ecall_interface.h:531
Battery voltage low failure status.
Definition: le_ecall_interface.h:638
le_ecall_State_t
Definition: le_ecall_interface.h:496
le_ecall_MsdTxMode_t
Definition: le_ecall_interface.h:562
le_result_t le_ecall_SetIntervalBetweenDialAttempts(uint16_t pause)
Emergency call is disconnected.
Definition: le_ecall_interface.h:507
eCall session has been stopped by the PSAP.
Definition: le_ecall_interface.h:537
Present Events memory overflow.
Definition: le_ecall_interface.h:683
le_result_t le_ecall_StartAutomatic(le_ecall_CallRef_t ecallRef)
Comm module interface failure status.
Definition: le_ecall_interface.h:656
GNSS receiver failure status.
Definition: le_ecall_interface.h:662
eCall session has lost synchronization and starts over.
Definition: le_ecall_interface.h:540
Present Comm module failure.
Definition: le_ecall_interface.h:677
Mic connection failure status.
Definition: le_ecall_interface.h:584
le_ecall_StateChangeHandlerRef_t le_ecall_AddStateChangeHandler(le_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
Left collision indicator.
Definition: le_ecall_interface.h:727
Present Firmware image corruption failure.
Definition: le_ecall_interface.h:647
void le_ecall_Delete(le_ecall_CallRef_t ecallRef)
Present Ignition line failure.
Definition: le_ecall_interface.h:611
le_result_t le_ecall_GetIntervalBetweenDialAttempts(uint16_t *pausePtr)
Crash sensor failure status.
Definition: le_ecall_interface.h:644