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 
429 #ifndef LE_ECALL_INTERFACE_H_INCLUDE_GUARD
430 #define LE_ECALL_INTERFACE_H_INCLUDE_GUARD
431 
432 
433 #include "legato.h"
434 
435 // Interface specific includes
436 #include "le_mdmDefs_interface.h"
437 #include "le_mcc_interface.h"
438 
439 
440 //--------------------------------------------------------------------------------------------------
444 //--------------------------------------------------------------------------------------------------
446 (
447  void
448 );
449 
450 //--------------------------------------------------------------------------------------------------
454 //--------------------------------------------------------------------------------------------------
456 (
457  void
458 );
459 
460 
461 //--------------------------------------------------------------------------------------------------
465 //--------------------------------------------------------------------------------------------------
466 typedef struct le_ecall_Call* le_ecall_CallRef_t;
467 
468 
469 //--------------------------------------------------------------------------------------------------
473 //--------------------------------------------------------------------------------------------------
474 #define LE_ECALL_MSD_MAX_LEN 140
475 
476 
477 //--------------------------------------------------------------------------------------------------
481 //--------------------------------------------------------------------------------------------------
482 typedef enum
483 {
486 
490 
493 }
495 
496 
497 //--------------------------------------------------------------------------------------------------
501 //--------------------------------------------------------------------------------------------------
502 typedef enum
503 {
506 
509 
512 
515 
518 
521 
524 
527 
530 
533 
536 
539 
542 
546 
549 
554 
557 
560 }
562 
563 
564 //--------------------------------------------------------------------------------------------------
568 //--------------------------------------------------------------------------------------------------
569 typedef enum
570 {
573 
576 }
578 
579 
580 //--------------------------------------------------------------------------------------------------
585 //--------------------------------------------------------------------------------------------------
586 typedef enum
587 {
590 
593 
596 
599 
602 
605 
608 
611 
614 
617 
620 
623 
626 
629 
632 
635 
638 
641 
644 
647 
650 
653 
656 
659 
662 
665 
668 
671 
674 
677 
680 
683 
686 
689 
692 
695 
698 
701 
704 
707 
710 
713 }
715 
716 
717 //--------------------------------------------------------------------------------------------------
722 //--------------------------------------------------------------------------------------------------
723 typedef enum
724 {
727 
730 
733 
736 
739 
742 
745 
748 
751 
754 
757 
760 
763 
766 
769 
772 }
774 
775 
776 //--------------------------------------------------------------------------------------------------
780 //--------------------------------------------------------------------------------------------------
781 typedef struct le_ecall_StateChangeHandler* le_ecall_StateChangeHandlerRef_t;
782 
783 
784 //--------------------------------------------------------------------------------------------------
795 //--------------------------------------------------------------------------------------------------
796 typedef void (*le_ecall_StateChangeHandlerFunc_t)
797 (
798  le_ecall_CallRef_t ecallRef,
799  le_ecall_State_t state,
800  void* contextPtr
801 );
802 
803 //--------------------------------------------------------------------------------------------------
815 //--------------------------------------------------------------------------------------------------
817 (
818  void
819 );
820 
821 //--------------------------------------------------------------------------------------------------
829 //--------------------------------------------------------------------------------------------------
831 (
832  void
833 );
834 
835 //--------------------------------------------------------------------------------------------------
846 //--------------------------------------------------------------------------------------------------
848 (
849  void
850 );
851 
852 //--------------------------------------------------------------------------------------------------
860 //--------------------------------------------------------------------------------------------------
862 (
863  le_ecall_OpMode_t* opModePtr
866 );
867 
868 //--------------------------------------------------------------------------------------------------
874 //--------------------------------------------------------------------------------------------------
876 (
879 
880  void* contextPtr
882 );
883 
884 //--------------------------------------------------------------------------------------------------
888 //--------------------------------------------------------------------------------------------------
890 (
893 );
894 
895 //--------------------------------------------------------------------------------------------------
908 //--------------------------------------------------------------------------------------------------
910 (
911  void
912 );
913 
914 //--------------------------------------------------------------------------------------------------
921 //--------------------------------------------------------------------------------------------------
922 void le_ecall_Delete
923 (
924  le_ecall_CallRef_t ecallRef
927 );
928 
929 //--------------------------------------------------------------------------------------------------
937 //--------------------------------------------------------------------------------------------------
939 (
943 );
944 
945 //--------------------------------------------------------------------------------------------------
953 //--------------------------------------------------------------------------------------------------
955 (
956  le_ecall_MsdTxMode_t* modePtr
959 );
960 
961 //--------------------------------------------------------------------------------------------------
972 //--------------------------------------------------------------------------------------------------
974 (
975  le_ecall_CallRef_t ecallRef,
978 
979  bool isTrusted,
982 
983  int32_t latitude,
986 
987  int32_t longitude,
990 
991  int32_t direction
994 );
995 
996 //--------------------------------------------------------------------------------------------------
1007 //--------------------------------------------------------------------------------------------------
1009 (
1010  le_ecall_CallRef_t ecallRef,
1013 
1014  uint32_t paxCount
1017 );
1018 
1019 //--------------------------------------------------------------------------------------------------
1034 //--------------------------------------------------------------------------------------------------
1036 (
1037  le_ecall_CallRef_t ecallRef,
1040 
1041  const uint8_t* msdPtr,
1044 
1045  size_t msdNumElements
1047 );
1048 
1049 //--------------------------------------------------------------------------------------------------
1063 //--------------------------------------------------------------------------------------------------
1065 (
1066  le_ecall_CallRef_t ecallRef,
1069 
1070  uint8_t* msdPtr,
1073 
1074  size_t* msdNumElementsPtr
1076 );
1077 
1078 //--------------------------------------------------------------------------------------------------
1090 //--------------------------------------------------------------------------------------------------
1092 (
1093  le_ecall_CallRef_t ecallRef
1096 );
1097 
1098 //--------------------------------------------------------------------------------------------------
1110 //--------------------------------------------------------------------------------------------------
1112 (
1113  le_ecall_CallRef_t ecallRef
1116 );
1117 
1118 //--------------------------------------------------------------------------------------------------
1130 //--------------------------------------------------------------------------------------------------
1132 (
1133  le_ecall_CallRef_t ecallRef
1136 );
1137 
1138 //--------------------------------------------------------------------------------------------------
1150 //--------------------------------------------------------------------------------------------------
1152 (
1153  le_ecall_CallRef_t ecallRef
1156 );
1157 
1158 //--------------------------------------------------------------------------------------------------
1167 //--------------------------------------------------------------------------------------------------
1169 (
1170  le_ecall_CallRef_t ecallRef
1173 );
1174 
1175 //--------------------------------------------------------------------------------------------------
1184 //--------------------------------------------------------------------------------------------------
1186 (
1187  le_ecall_CallRef_t ecallRef
1190 );
1191 
1192 //--------------------------------------------------------------------------------------------------
1205 //--------------------------------------------------------------------------------------------------
1207 (
1208  const char* psap
1211 );
1212 
1213 //--------------------------------------------------------------------------------------------------
1224 //--------------------------------------------------------------------------------------------------
1226 (
1227  char* psap,
1230 
1231  size_t psapNumElements
1233 );
1234 
1235 //--------------------------------------------------------------------------------------------------
1244 //--------------------------------------------------------------------------------------------------
1246 (
1247  void
1248 );
1249 
1250 //--------------------------------------------------------------------------------------------------
1260 //--------------------------------------------------------------------------------------------------
1262 (
1263  uint16_t deregTime
1266 );
1267 
1268 //--------------------------------------------------------------------------------------------------
1276 //--------------------------------------------------------------------------------------------------
1278 (
1279  uint16_t* deregTimePtr
1282 );
1283 
1284 //--------------------------------------------------------------------------------------------------
1292 //--------------------------------------------------------------------------------------------------
1294 (
1295  uint16_t pause
1298 );
1299 
1300 //--------------------------------------------------------------------------------------------------
1308 //--------------------------------------------------------------------------------------------------
1310 (
1311  uint16_t* pausePtr
1314 );
1315 
1316 //--------------------------------------------------------------------------------------------------
1328 //--------------------------------------------------------------------------------------------------
1330 (
1331  uint16_t attempts
1334 );
1335 
1336 //--------------------------------------------------------------------------------------------------
1348 //--------------------------------------------------------------------------------------------------
1350 (
1351  uint16_t attempts
1354 );
1355 
1356 //--------------------------------------------------------------------------------------------------
1367 //--------------------------------------------------------------------------------------------------
1369 (
1370  uint16_t duration
1373 );
1374 
1375 //--------------------------------------------------------------------------------------------------
1383 //--------------------------------------------------------------------------------------------------
1385 (
1386  uint16_t* attemptsPtr
1389 );
1390 
1391 //--------------------------------------------------------------------------------------------------
1399 //--------------------------------------------------------------------------------------------------
1401 (
1402  uint16_t* attemptsPtr
1405 );
1406 
1407 //--------------------------------------------------------------------------------------------------
1415 //--------------------------------------------------------------------------------------------------
1417 (
1418  uint16_t* durationPtr
1421 );
1422 
1423 //--------------------------------------------------------------------------------------------------
1432 //--------------------------------------------------------------------------------------------------
1434 (
1435  le_ecall_CallRef_t ecallRef,
1438 
1439  uint32_t crashSeverity
1442 );
1443 
1444 //--------------------------------------------------------------------------------------------------
1454 //--------------------------------------------------------------------------------------------------
1456 (
1457  le_ecall_CallRef_t ecallRef
1460 );
1461 
1462 //--------------------------------------------------------------------------------------------------
1471 //--------------------------------------------------------------------------------------------------
1473 (
1474  le_ecall_CallRef_t ecallRef,
1477 
1478  le_ecall_DiagnosticResultBitMask_t diagnosticResultMask
1481 );
1482 
1483 //--------------------------------------------------------------------------------------------------
1493 //--------------------------------------------------------------------------------------------------
1495 (
1496  le_ecall_CallRef_t ecallRef
1499 );
1500 
1501 //--------------------------------------------------------------------------------------------------
1510 //--------------------------------------------------------------------------------------------------
1512 (
1513  le_ecall_CallRef_t ecallRef,
1516 
1517  le_ecall_CrashInfoBitMask_t crashInfoMask
1520 );
1521 
1522 //--------------------------------------------------------------------------------------------------
1532 //--------------------------------------------------------------------------------------------------
1534 (
1535  le_ecall_CallRef_t ecallRef
1538 );
1539 
1540 //--------------------------------------------------------------------------------------------------
1549 //--------------------------------------------------------------------------------------------------
1551 (
1552  le_ecall_CallRef_t ecallRef
1555 );
1556 
1557 //--------------------------------------------------------------------------------------------------
1566 //--------------------------------------------------------------------------------------------------
1568 (
1569  le_ecall_CallRef_t ecallRef
1572 );
1573 
1574 
1575 #endif // LE_ECALL_INTERFACE_H_INCLUDE_GUARD
1576 
End of the redial period.
Definition: le_ecall_interface.h:558
le_ecall_OpMode_t
Definition: le_ecall_interface.h:482
AL-ACK clear-down received.
Definition: le_ecall_interface.h:540
Present Left collision indicator.
Definition: le_ecall_interface.h:731
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:491
Present Battery failure.
Definition: le_ecall_interface.h:636
Definition: le_ecall_interface.h:550
le_result_t le_ecall_ForceOnlyMode(void)
Present Right speaker failure.
Definition: le_ecall_interface.h:600
Front collision indicator.
Definition: le_ecall_interface.h:728
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:660
Present Other critical failures.
Definition: le_ecall_interface.h:702
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:534
Definition: le_ecall_interface.h:487
Unknown state.
Definition: le_ecall_interface.h:504
Present Battery voltage low failure.
Definition: le_ecall_interface.h:642
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:764
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:657
le_mcc_TerminationReason_t
Definition: le_mcc_interface.h:329
Present Side collision indicator.
Definition: le_ecall_interface.h:755
Present Mic connection failure.
Definition: le_ecall_interface.h:588
Right speaker failure status.
Definition: le_ecall_interface.h:603
Present Right collision indicator.
Definition: le_ecall_interface.h:737
Other critical failures status.
Definition: le_ecall_interface.h:705
Crash profile memory overflow status.
Definition: le_ecall_interface.h:699
le_result_t le_ecall_GetMsdTxMode(le_ecall_MsdTxMode_t *modePtr)
LL-NACK received.
Definition: le_ecall_interface.h:525
Present Crash profile memory overflow.
Definition: le_ecall_interface.h:696
Present Front or side collision indicator.
Definition: le_ecall_interface.h:761
le_result_t le_ecall_ResetMsdEraGlonassCrashInfo(le_ecall_CallRef_t ecallRef)
Left speaker failure status.
Definition: le_ecall_interface.h:609
Rollover indicator.
Definition: le_ecall_interface.h:752
Present Other not critical failures.
Definition: le_ecall_interface.h:708
Ignition line failure status.
Definition: le_ecall_interface.h:621
void(* le_ecall_StateChangeHandlerFunc_t)(le_ecall_CallRef_t ecallRef, le_ecall_State_t state, void *contextPtr)
Definition: le_ecall_interface.h:797
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
Definition: le_ecall_interface.h:571
Side collision indicator.
Definition: le_ecall_interface.h:758
struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
Definition: le_ecall_interface.h:781
le_ecall_CrashInfoBitMask_t
Definition: le_ecall_interface.h:723
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:681
le_result_t le_ecall_SetNadDeregistrationTime(uint16_t deregTime)
Present GNSS receiver failure.
Definition: le_ecall_interface.h:666
Normal mode.
Definition: le_ecall_interface.h:484
RAIM problem status.
Definition: le_ecall_interface.h:675
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:574
le_result_t le_ecall_SetEraGlonassAutoDialAttempts(uint16_t attempts)
Other types of damage indicator.
Definition: le_ecall_interface.h:770
UIM failure status.
Definition: le_ecall_interface.h:627
Battery failure status.
Definition: le_ecall_interface.h:639
le_result_t le_ecall_SetEraGlonassManualDialAttempts(uint16_t attempts)
Speaker failure status.
Definition: le_ecall_interface.h:615
PSAP start indication received.
Definition: le_ecall_interface.h:519
le_mcc_TerminationReason_t le_ecall_GetTerminationReason(le_ecall_CallRef_t ecallRef)
le_ecall_DiagnosticResultBitMask_t
Definition: le_ecall_interface.h:586
Present RAIM problem.
Definition: le_ecall_interface.h:672
Present Front collision indicator.
Definition: le_ecall_interface.h:725
Other not critical failures status.
Definition: le_ecall_interface.h:711
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:767
le_ecall_State_t le_ecall_GetState(le_ecall_CallRef_t ecallRef)
LL-ACK received.
Definition: le_ecall_interface.h:528
Waiting for PSAP start indication.
Definition: le_ecall_interface.h:516
le_result_t le_ecall_End(le_ecall_CallRef_t ecallRef)
struct le_ecall_Call * le_ecall_CallRef_t
Definition: le_ecall_interface.h:466
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:531
Comm module failure status.
Definition: le_ecall_interface.h:687
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:693
Present GNSS antenna failure.
Definition: le_ecall_interface.h:678
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:749
le_ecall_CallRef_t le_ecall_Create(void)
Status indicator failure status.
Definition: le_ecall_interface.h:633
Present UIM failure.
Definition: le_ecall_interface.h:624
Present indicator.
Definition: le_ecall_interface.h:743
MSD transmission is started.
Definition: le_ecall_interface.h:522
eCall session started.
Definition: le_ecall_interface.h:507
Present Left speaker failure.
Definition: le_ecall_interface.h:606
Rear impact indicator.
Definition: le_ecall_interface.h:746
Present Mic failure.
Definition: le_ecall_interface.h:594
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:630
Mic failure status.
Definition: le_ecall_interface.h:597
le_result_t le_ecall_GetNadDeregistrationTime(uint16_t *deregTimePtr)
Right collision indicator.
Definition: le_ecall_interface.h:740
le_result_t le_ecall_GetEraGlonassAutoDialAttempts(uint16_t *attemptsPtr)
Emergency call is established.
Definition: le_ecall_interface.h:510
Unsuccessful eCall session.
Definition: le_ecall_interface.h:555
le_result_t le_ecall_ExitOnlyMode(void)
Present Crash sensor failure.
Definition: le_ecall_interface.h:648
le_result_t le_ecall_GetEraGlonassDialDuration(uint16_t *durationPtr)
Present Speaker failure.
Definition: le_ecall_interface.h:612
AL-ACK received.
Definition: le_ecall_interface.h:537
Battery voltage low failure status.
Definition: le_ecall_interface.h:645
le_ecall_State_t
Definition: le_ecall_interface.h:502
le_ecall_MsdTxMode_t
Definition: le_ecall_interface.h:569
le_result_t le_ecall_SetIntervalBetweenDialAttempts(uint16_t pause)
Emergency call is disconnected.
Definition: le_ecall_interface.h:513
Definition: le_ecall_interface.h:543
Present Events memory overflow.
Definition: le_ecall_interface.h:690
le_result_t le_ecall_StartAutomatic(le_ecall_CallRef_t ecallRef)
Comm module interface failure status.
Definition: le_ecall_interface.h:663
GNSS receiver failure status.
Definition: le_ecall_interface.h:669
eCall session has lost synchronization and starts over.
Definition: le_ecall_interface.h:547
Present Comm module failure.
Definition: le_ecall_interface.h:684
Mic connection failure status.
Definition: le_ecall_interface.h:591
le_ecall_StateChangeHandlerRef_t le_ecall_AddStateChangeHandler(le_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
Left collision indicator.
Definition: le_ecall_interface.h:734
Present Firmware image corruption failure.
Definition: le_ecall_interface.h:654
void le_ecall_Delete(le_ecall_CallRef_t ecallRef)
Present Ignition line failure.
Definition: le_ecall_interface.h:618
le_result_t le_ecall_GetIntervalBetweenDialAttempts(uint16_t *pausePtr)
Crash sensor failure status.
Definition: le_ecall_interface.h:651