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 
420 #ifndef LE_ECALL_INTERFACE_H_INCLUDE_GUARD
421 #define LE_ECALL_INTERFACE_H_INCLUDE_GUARD
422 
423 
424 #include "legato.h"
425 
426 // Interface specific includes
427 #include "le_mdmDefs_interface.h"
428 #include "le_mcc_interface.h"
429 
430 
431 //--------------------------------------------------------------------------------------------------
442 //--------------------------------------------------------------------------------------------------
444 (
445  void
446 );
447 
448 //--------------------------------------------------------------------------------------------------
459 //--------------------------------------------------------------------------------------------------
461 (
462  void
463 );
464 
465 
466 //--------------------------------------------------------------------------------------------------
470 //--------------------------------------------------------------------------------------------------
471 typedef struct le_ecall_Call* le_ecall_CallRef_t;
472 
473 
474 //--------------------------------------------------------------------------------------------------
478 //--------------------------------------------------------------------------------------------------
479 #define LE_ECALL_MSD_MAX_LEN 140
480 
481 
482 //--------------------------------------------------------------------------------------------------
486 //--------------------------------------------------------------------------------------------------
487 typedef enum
488 {
491 
495 
498 }
500 
501 
502 //--------------------------------------------------------------------------------------------------
506 //--------------------------------------------------------------------------------------------------
507 typedef enum
508 {
511 
514 
517 
520 
523 
526 
529 
532 
535 
538 
541 
544 
547 
551 
554 
559 
562 
565 
568 
571 
574 
577 
580 
583 
586 }
588 
589 
590 //--------------------------------------------------------------------------------------------------
594 //--------------------------------------------------------------------------------------------------
595 typedef enum
596 {
599 
602 }
604 
605 
606 //--------------------------------------------------------------------------------------------------
611 //--------------------------------------------------------------------------------------------------
612 typedef enum
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 
709 
712 
715 
718 
721 
724 
727 
730 
733 
736 
739 }
741 
742 
743 //--------------------------------------------------------------------------------------------------
748 //--------------------------------------------------------------------------------------------------
749 typedef enum
750 {
753 
756 
759 
762 
765 
768 
771 
774 
777 
780 
783 
786 
789 
792 
795 
798 }
800 
801 
802 //--------------------------------------------------------------------------------------------------
806 //--------------------------------------------------------------------------------------------------
807 typedef struct le_ecall_StateChangeHandler* le_ecall_StateChangeHandlerRef_t;
808 
809 
810 //--------------------------------------------------------------------------------------------------
821 //--------------------------------------------------------------------------------------------------
822 typedef void (*le_ecall_StateChangeHandlerFunc_t)
823 (
824  le_ecall_CallRef_t ecallRef,
825  le_ecall_State_t state,
826  void* contextPtr
827 );
828 
829 //--------------------------------------------------------------------------------------------------
841 //--------------------------------------------------------------------------------------------------
843 (
844  void
845 );
846 
847 //--------------------------------------------------------------------------------------------------
855 //--------------------------------------------------------------------------------------------------
857 (
858  void
859 );
860 
861 //--------------------------------------------------------------------------------------------------
872 //--------------------------------------------------------------------------------------------------
874 (
875  void
876 );
877 
878 //--------------------------------------------------------------------------------------------------
886 //--------------------------------------------------------------------------------------------------
888 (
889  le_ecall_OpMode_t* opModePtr
892 );
893 
894 //--------------------------------------------------------------------------------------------------
900 //--------------------------------------------------------------------------------------------------
902 (
905 
906  void* contextPtr
908 );
909 
910 //--------------------------------------------------------------------------------------------------
914 //--------------------------------------------------------------------------------------------------
916 (
919 );
920 
921 //--------------------------------------------------------------------------------------------------
934 //--------------------------------------------------------------------------------------------------
936 (
937  void
938 );
939 
940 //--------------------------------------------------------------------------------------------------
947 //--------------------------------------------------------------------------------------------------
948 void le_ecall_Delete
949 (
950  le_ecall_CallRef_t ecallRef
953 );
954 
955 //--------------------------------------------------------------------------------------------------
963 //--------------------------------------------------------------------------------------------------
965 (
969 );
970 
971 //--------------------------------------------------------------------------------------------------
979 //--------------------------------------------------------------------------------------------------
981 (
982  le_ecall_MsdTxMode_t* modePtr
985 );
986 
987 //--------------------------------------------------------------------------------------------------
999 //--------------------------------------------------------------------------------------------------
1001 (
1002  le_ecall_CallRef_t ecallRef,
1005 
1006  bool isTrusted,
1009 
1010  int32_t latitude,
1015 
1016  int32_t longitude,
1021 
1022  int32_t direction
1027 );
1028 
1029 //--------------------------------------------------------------------------------------------------
1040 //--------------------------------------------------------------------------------------------------
1042 (
1043  le_ecall_CallRef_t ecallRef,
1046 
1047  uint32_t paxCount
1050 );
1051 
1052 //--------------------------------------------------------------------------------------------------
1067 //--------------------------------------------------------------------------------------------------
1069 (
1070  le_ecall_CallRef_t ecallRef,
1073 
1074  const uint8_t* msdPtr,
1077 
1078  size_t msdNumElements
1080 );
1081 
1082 //--------------------------------------------------------------------------------------------------
1096 //--------------------------------------------------------------------------------------------------
1098 (
1099  le_ecall_CallRef_t ecallRef,
1102 
1103  uint8_t* msdPtr,
1106 
1107  size_t* msdNumElementsPtr
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 //--------------------------------------------------------------------------------------------------
1163 //--------------------------------------------------------------------------------------------------
1165 (
1166  le_ecall_CallRef_t ecallRef
1169 );
1170 
1171 //--------------------------------------------------------------------------------------------------
1183 //--------------------------------------------------------------------------------------------------
1185 (
1186  le_ecall_CallRef_t ecallRef
1189 );
1190 
1191 //--------------------------------------------------------------------------------------------------
1200 //--------------------------------------------------------------------------------------------------
1202 (
1203  le_ecall_CallRef_t ecallRef
1206 );
1207 
1208 //--------------------------------------------------------------------------------------------------
1217 //--------------------------------------------------------------------------------------------------
1219 (
1220  le_ecall_CallRef_t ecallRef
1223 );
1224 
1225 //--------------------------------------------------------------------------------------------------
1241 //--------------------------------------------------------------------------------------------------
1243 (
1244  const char* psap
1247 );
1248 
1249 //--------------------------------------------------------------------------------------------------
1263 //--------------------------------------------------------------------------------------------------
1265 (
1266  char* psap,
1269 
1270  size_t psapNumElements
1272 );
1273 
1274 //--------------------------------------------------------------------------------------------------
1283 //--------------------------------------------------------------------------------------------------
1285 (
1286  void
1287 );
1288 
1289 //--------------------------------------------------------------------------------------------------
1299 //--------------------------------------------------------------------------------------------------
1301 (
1302  uint16_t deregTime
1305 );
1306 
1307 //--------------------------------------------------------------------------------------------------
1315 //--------------------------------------------------------------------------------------------------
1317 (
1318  uint16_t* deregTimePtr
1321 );
1322 
1323 //--------------------------------------------------------------------------------------------------
1331 //--------------------------------------------------------------------------------------------------
1333 (
1334  uint16_t pause
1337 );
1338 
1339 //--------------------------------------------------------------------------------------------------
1347 //--------------------------------------------------------------------------------------------------
1349 (
1350  uint16_t* pausePtr
1353 );
1354 
1355 //--------------------------------------------------------------------------------------------------
1367 //--------------------------------------------------------------------------------------------------
1369 (
1370  uint16_t attempts
1373 );
1374 
1375 //--------------------------------------------------------------------------------------------------
1387 //--------------------------------------------------------------------------------------------------
1389 (
1390  uint16_t attempts
1393 );
1394 
1395 //--------------------------------------------------------------------------------------------------
1406 //--------------------------------------------------------------------------------------------------
1408 (
1409  uint16_t duration
1412 );
1413 
1414 //--------------------------------------------------------------------------------------------------
1422 //--------------------------------------------------------------------------------------------------
1424 (
1425  uint16_t* attemptsPtr
1428 );
1429 
1430 //--------------------------------------------------------------------------------------------------
1438 //--------------------------------------------------------------------------------------------------
1440 (
1441  uint16_t* attemptsPtr
1444 );
1445 
1446 //--------------------------------------------------------------------------------------------------
1454 //--------------------------------------------------------------------------------------------------
1456 (
1457  uint16_t* durationPtr
1460 );
1461 
1462 //--------------------------------------------------------------------------------------------------
1471 //--------------------------------------------------------------------------------------------------
1473 (
1474  le_ecall_CallRef_t ecallRef,
1477 
1478  uint32_t crashSeverity
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_DiagnosticResultBitMask_t diagnosticResultMask
1520 );
1521 
1522 //--------------------------------------------------------------------------------------------------
1532 //--------------------------------------------------------------------------------------------------
1534 (
1535  le_ecall_CallRef_t ecallRef
1538 );
1539 
1540 //--------------------------------------------------------------------------------------------------
1549 //--------------------------------------------------------------------------------------------------
1551 (
1552  le_ecall_CallRef_t ecallRef,
1555 
1556  le_ecall_CrashInfoBitMask_t crashInfoMask
1559 );
1560 
1561 //--------------------------------------------------------------------------------------------------
1571 //--------------------------------------------------------------------------------------------------
1573 (
1574  le_ecall_CallRef_t ecallRef
1577 );
1578 
1579 //--------------------------------------------------------------------------------------------------
1588 //--------------------------------------------------------------------------------------------------
1590 (
1591  le_ecall_CallRef_t ecallRef
1594 );
1595 
1596 //--------------------------------------------------------------------------------------------------
1605 //--------------------------------------------------------------------------------------------------
1607 (
1608  le_ecall_CallRef_t ecallRef
1611 );
1612 
1613 
1614 #endif // LE_ECALL_INTERFACE_H_INCLUDE_GUARD
1615 
End of the redial period.
Definition: le_ecall_interface.h:563
le_ecall_OpMode_t
Definition: le_ecall_interface.h:487
AL-ACK clear-down received.
Definition: le_ecall_interface.h:545
Present Left collision indicator.
Definition: le_ecall_interface.h:757
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:496
Timeout for Timer T5 (see CEN-EN 16062, annex A)
Definition: le_ecall_interface.h:572
Present Battery failure.
Definition: le_ecall_interface.h:662
Definition: le_ecall_interface.h:555
le_result_t le_ecall_ForceOnlyMode(void)
Present Right speaker failure.
Definition: le_ecall_interface.h:626
Front collision indicator.
Definition: le_ecall_interface.h:754
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:686
Present Other critical failures.
Definition: le_ecall_interface.h:728
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:539
Definition: le_ecall_interface.h:492
Unknown state.
Definition: le_ecall_interface.h:509
Present Battery voltage low failure.
Definition: le_ecall_interface.h:668
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:790
le_result_t le_ecall_SetMsdTxMode(le_ecall_MsdTxMode_t mode)
void le_ecall_ConnectService(void)
Timeout for Timer T10 (see CEN-EN 16062, annex A)
Definition: le_ecall_interface.h:584
Firmware image corruption failure status.
Definition: le_ecall_interface.h:683
le_mcc_TerminationReason_t
Definition: le_mcc_interface.h:205
Present Side collision indicator.
Definition: le_ecall_interface.h:781
Present Mic connection failure.
Definition: le_ecall_interface.h:614
Right speaker failure status.
Definition: le_ecall_interface.h:629
Present Right collision indicator.
Definition: le_ecall_interface.h:763
Other critical failures status.
Definition: le_ecall_interface.h:731
Crash profile memory overflow status.
Definition: le_ecall_interface.h:725
le_result_t le_ecall_GetMsdTxMode(le_ecall_MsdTxMode_t *modePtr)
LL-NACK received.
Definition: le_ecall_interface.h:530
Present Crash profile memory overflow.
Definition: le_ecall_interface.h:722
Present Front or side collision indicator.
Definition: le_ecall_interface.h:787
le_result_t le_ecall_ResetMsdEraGlonassCrashInfo(le_ecall_CallRef_t ecallRef)
Left speaker failure status.
Definition: le_ecall_interface.h:635
Rollover indicator.
Definition: le_ecall_interface.h:778
Present Other not critical failures.
Definition: le_ecall_interface.h:734
Ignition line failure status.
Definition: le_ecall_interface.h:647
void(* le_ecall_StateChangeHandlerFunc_t)(le_ecall_CallRef_t ecallRef, le_ecall_State_t state, void *contextPtr)
Definition: le_ecall_interface.h:823
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
Definition: le_ecall_interface.h:597
Side collision indicator.
Definition: le_ecall_interface.h:784
struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
Definition: le_ecall_interface.h:807
le_ecall_CrashInfoBitMask_t
Definition: le_ecall_interface.h:749
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:707
le_result_t le_ecall_SetNadDeregistrationTime(uint16_t deregTime)
Present GNSS receiver failure.
Definition: le_ecall_interface.h:692
Normal mode.
Definition: le_ecall_interface.h:489
RAIM problem status.
Definition: le_ecall_interface.h:701
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:600
le_result_t le_ecall_SetEraGlonassAutoDialAttempts(uint16_t attempts)
Other types of damage indicator.
Definition: le_ecall_interface.h:796
UIM failure status.
Definition: le_ecall_interface.h:653
Battery failure status.
Definition: le_ecall_interface.h:665
le_result_t le_ecall_SetEraGlonassManualDialAttempts(uint16_t attempts)
Timeout for Timer T6 (see CEN-EN 16062, annex A)
Definition: le_ecall_interface.h:575
Speaker failure status.
Definition: le_ecall_interface.h:641
PSAP start indication received.
Definition: le_ecall_interface.h:524
le_mcc_TerminationReason_t le_ecall_GetTerminationReason(le_ecall_CallRef_t ecallRef)
le_ecall_DiagnosticResultBitMask_t
Definition: le_ecall_interface.h:612
Present RAIM problem.
Definition: le_ecall_interface.h:698
Present Front collision indicator.
Definition: le_ecall_interface.h:751
Other not critical failures status.
Definition: le_ecall_interface.h:737
le_result_t le_ecall_SetMsdPassengersCount(le_ecall_CallRef_t ecallRef, uint32_t paxCount)
Timeout for Timer T3 (see CEN-EN 16062, annex A)
Definition: le_ecall_interface.h:569
Present Other types of damage indicator.
Definition: le_ecall_interface.h:793
le_ecall_State_t le_ecall_GetState(le_ecall_CallRef_t ecallRef)
LL-ACK received.
Definition: le_ecall_interface.h:533
Waiting for PSAP start indication.
Definition: le_ecall_interface.h:521
le_result_t le_ecall_End(le_ecall_CallRef_t ecallRef)
struct le_ecall_Call * le_ecall_CallRef_t
Definition: le_ecall_interface.h:471
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:536
Timeout for Timer T7 (see CEN-EN 16062, annex A)
Definition: le_ecall_interface.h:578
Comm module failure status.
Definition: le_ecall_interface.h:713
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:719
Timeout for Timer T2 (see CEN-EN 16062, annex A)
Definition: le_ecall_interface.h:566
Present GNSS antenna failure.
Definition: le_ecall_interface.h:704
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:775
le_ecall_CallRef_t le_ecall_Create(void)
Status indicator failure status.
Definition: le_ecall_interface.h:659
Present UIM failure.
Definition: le_ecall_interface.h:650
Present indicator.
Definition: le_ecall_interface.h:769
MSD transmission is started.
Definition: le_ecall_interface.h:527
eCall session started.
Definition: le_ecall_interface.h:512
Present Left speaker failure.
Definition: le_ecall_interface.h:632
Rear impact indicator.
Definition: le_ecall_interface.h:772
Present Mic failure.
Definition: le_ecall_interface.h:620
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:656
Mic failure status.
Definition: le_ecall_interface.h:623
le_result_t le_ecall_GetNadDeregistrationTime(uint16_t *deregTimePtr)
Right collision indicator.
Definition: le_ecall_interface.h:766
le_result_t le_ecall_GetEraGlonassAutoDialAttempts(uint16_t *attemptsPtr)
Emergency call is established.
Definition: le_ecall_interface.h:515
Unsuccessful eCall session.
Definition: le_ecall_interface.h:560
le_result_t le_ecall_ExitOnlyMode(void)
Present Crash sensor failure.
Definition: le_ecall_interface.h:674
le_result_t le_ecall_GetEraGlonassDialDuration(uint16_t *durationPtr)
Present Speaker failure.
Definition: le_ecall_interface.h:638
AL-ACK received.
Definition: le_ecall_interface.h:542
Battery voltage low failure status.
Definition: le_ecall_interface.h:671
le_ecall_State_t
Definition: le_ecall_interface.h:507
le_ecall_MsdTxMode_t
Definition: le_ecall_interface.h:595
le_result_t le_ecall_SetIntervalBetweenDialAttempts(uint16_t pause)
Emergency call is disconnected.
Definition: le_ecall_interface.h:518
Definition: le_ecall_interface.h:548
Present Events memory overflow.
Definition: le_ecall_interface.h:716
le_result_t le_ecall_StartAutomatic(le_ecall_CallRef_t ecallRef)
Comm module interface failure status.
Definition: le_ecall_interface.h:689
GNSS receiver failure status.
Definition: le_ecall_interface.h:695
eCall session has lost synchronization and starts over.
Definition: le_ecall_interface.h:552
Present Comm module failure.
Definition: le_ecall_interface.h:710
Timeout for Timer T9 (see CEN-EN 16062, annex A)
Definition: le_ecall_interface.h:581
Mic connection failure status.
Definition: le_ecall_interface.h:617
le_ecall_StateChangeHandlerRef_t le_ecall_AddStateChangeHandler(le_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
Left collision indicator.
Definition: le_ecall_interface.h:760
Present Firmware image corruption failure.
Definition: le_ecall_interface.h:680
void le_ecall_Delete(le_ecall_CallRef_t ecallRef)
Present Ignition line failure.
Definition: le_ecall_interface.h:644
le_result_t le_ecall_GetIntervalBetweenDialAttempts(uint16_t *pausePtr)
Crash sensor failure status.
Definition: le_ecall_interface.h:677