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 
375 #ifndef LE_ECALL_H_INCLUDE_GUARD
376 #define LE_ECALL_H_INCLUDE_GUARD
377 
378 
379 #include "legato.h"
380 
381 // Interface specific includes
382 #include "le_mdmDefs_interface.h"
383 
384 
385 //--------------------------------------------------------------------------------------------------
389 //--------------------------------------------------------------------------------------------------
391 (
392  void
393 );
394 
395 //--------------------------------------------------------------------------------------------------
399 //--------------------------------------------------------------------------------------------------
401 (
402  void
403 );
404 
405 
406 //--------------------------------------------------------------------------------------------------
410 //--------------------------------------------------------------------------------------------------
411 typedef struct le_ecall_Call* le_ecall_CallRef_t;
412 
413 
414 //--------------------------------------------------------------------------------------------------
418 //--------------------------------------------------------------------------------------------------
419 #define LE_ECALL_MSD_MAX_LEN 282
420 
421 
422 //--------------------------------------------------------------------------------------------------
426 //--------------------------------------------------------------------------------------------------
427 typedef enum
428 {
431 
434 
437 }
439 
440 
441 //--------------------------------------------------------------------------------------------------
445 //--------------------------------------------------------------------------------------------------
446 typedef enum
447 {
450 
453 
456 
459 
462 
465 
468 
471 
474 
477 
480 
483 
486 
489 
494 
497 }
499 
500 
501 //--------------------------------------------------------------------------------------------------
505 //--------------------------------------------------------------------------------------------------
506 typedef enum
507 {
510 
513 }
515 
516 
517 //--------------------------------------------------------------------------------------------------
522 //--------------------------------------------------------------------------------------------------
523 typedef enum
524 {
527 
530 
533 
536 
539 
542 
545 
548 
551 
554 
557 
560 
563 
566 
569 
572 
575 
578 
581 
584 
587 
590 
593 
596 
599 
602 
605 
608 
611 
614 
617 
620 
623 
626 
629 
632 
635 
638 
641 
644 
647 
650 }
652 
653 
654 //--------------------------------------------------------------------------------------------------
659 //--------------------------------------------------------------------------------------------------
660 typedef enum
661 {
664 
667 
670 
673 
676 
679 
682 
685 
688 
691 
694 
697 
700 
703 
706 
709 }
711 
712 
713 //--------------------------------------------------------------------------------------------------
717 //--------------------------------------------------------------------------------------------------
718 typedef struct le_ecall_StateChangeHandler* le_ecall_StateChangeHandlerRef_t;
719 
720 
721 //--------------------------------------------------------------------------------------------------
730 //--------------------------------------------------------------------------------------------------
731 typedef void (*le_ecall_StateChangeHandlerFunc_t)
732 (
733  le_ecall_State_t state,
734  void* contextPtr
735 );
736 
737 //--------------------------------------------------------------------------------------------------
749 //--------------------------------------------------------------------------------------------------
751 (
752  void
753 );
754 
755 //--------------------------------------------------------------------------------------------------
763 //--------------------------------------------------------------------------------------------------
765 (
766  void
767 );
768 
769 //--------------------------------------------------------------------------------------------------
780 //--------------------------------------------------------------------------------------------------
782 (
783  void
784 );
785 
786 //--------------------------------------------------------------------------------------------------
794 //--------------------------------------------------------------------------------------------------
796 (
797  le_ecall_OpMode_t* opModePtr
800 );
801 
802 //--------------------------------------------------------------------------------------------------
808 //--------------------------------------------------------------------------------------------------
810 (
813 
814  void* contextPtr
816 );
817 
818 //--------------------------------------------------------------------------------------------------
822 //--------------------------------------------------------------------------------------------------
824 (
827 );
828 
829 //--------------------------------------------------------------------------------------------------
842 //--------------------------------------------------------------------------------------------------
844 (
845  void
846 );
847 
848 //--------------------------------------------------------------------------------------------------
855 //--------------------------------------------------------------------------------------------------
856 void le_ecall_Delete
857 (
858  le_ecall_CallRef_t ecallRef
861 );
862 
863 //--------------------------------------------------------------------------------------------------
871 //--------------------------------------------------------------------------------------------------
873 (
877 );
878 
879 //--------------------------------------------------------------------------------------------------
887 //--------------------------------------------------------------------------------------------------
889 (
890  le_ecall_MsdTxMode_t* modePtr
893 );
894 
895 //--------------------------------------------------------------------------------------------------
909 //--------------------------------------------------------------------------------------------------
911 (
912  le_ecall_CallRef_t ecallRef,
915 
916  bool isTrusted,
919 
920  int32_t latitude,
923 
924  int32_t longitude,
927 
928  int32_t direction
931 );
932 
933 //--------------------------------------------------------------------------------------------------
946 //--------------------------------------------------------------------------------------------------
948 (
949  le_ecall_CallRef_t ecallRef,
952 
953  uint32_t paxCount
956 );
957 
958 //--------------------------------------------------------------------------------------------------
973 //--------------------------------------------------------------------------------------------------
975 (
976  le_ecall_CallRef_t ecallRef,
979 
980  const uint8_t* msdPtr,
983 
984  size_t msdNumElements
986 );
987 
988 //--------------------------------------------------------------------------------------------------
1002 //--------------------------------------------------------------------------------------------------
1004 (
1005  le_ecall_CallRef_t ecallRef,
1008 
1009  uint8_t* msdPtr,
1012 
1013  size_t* msdNumElementsPtr
1015 );
1016 
1017 //--------------------------------------------------------------------------------------------------
1029 //--------------------------------------------------------------------------------------------------
1031 (
1032  le_ecall_CallRef_t ecallRef
1035 );
1036 
1037 //--------------------------------------------------------------------------------------------------
1049 //--------------------------------------------------------------------------------------------------
1051 (
1052  le_ecall_CallRef_t ecallRef
1055 );
1056 
1057 //--------------------------------------------------------------------------------------------------
1069 //--------------------------------------------------------------------------------------------------
1071 (
1072  le_ecall_CallRef_t ecallRef
1075 );
1076 
1077 //--------------------------------------------------------------------------------------------------
1087 //--------------------------------------------------------------------------------------------------
1089 (
1090  le_ecall_CallRef_t ecallRef
1093 );
1094 
1095 //--------------------------------------------------------------------------------------------------
1104 //--------------------------------------------------------------------------------------------------
1106 (
1107  le_ecall_CallRef_t ecallRef
1110 );
1111 
1112 //--------------------------------------------------------------------------------------------------
1122 //--------------------------------------------------------------------------------------------------
1124 (
1125  const char* psap
1128 );
1129 
1130 //--------------------------------------------------------------------------------------------------
1141 //--------------------------------------------------------------------------------------------------
1143 (
1144  char* psap,
1147 
1148  size_t psapNumElements
1150 );
1151 
1152 //--------------------------------------------------------------------------------------------------
1161 //--------------------------------------------------------------------------------------------------
1163 (
1164  void
1165 );
1166 
1167 //--------------------------------------------------------------------------------------------------
1177 //--------------------------------------------------------------------------------------------------
1179 (
1180  uint16_t deregTime
1183 );
1184 
1185 //--------------------------------------------------------------------------------------------------
1193 //--------------------------------------------------------------------------------------------------
1195 (
1196  uint16_t* deregTimePtr
1199 );
1200 
1201 //--------------------------------------------------------------------------------------------------
1209 //--------------------------------------------------------------------------------------------------
1211 (
1212  uint16_t pause
1215 );
1216 
1217 //--------------------------------------------------------------------------------------------------
1225 //--------------------------------------------------------------------------------------------------
1227 (
1228  uint16_t* pausePtr
1231 );
1232 
1233 //--------------------------------------------------------------------------------------------------
1245 //--------------------------------------------------------------------------------------------------
1247 (
1248  uint16_t attempts
1251 );
1252 
1253 //--------------------------------------------------------------------------------------------------
1265 //--------------------------------------------------------------------------------------------------
1267 (
1268  uint16_t attempts
1271 );
1272 
1273 //--------------------------------------------------------------------------------------------------
1284 //--------------------------------------------------------------------------------------------------
1286 (
1287  uint16_t duration
1290 );
1291 
1292 //--------------------------------------------------------------------------------------------------
1300 //--------------------------------------------------------------------------------------------------
1302 (
1303  uint16_t* attemptsPtr
1306 );
1307 
1308 //--------------------------------------------------------------------------------------------------
1316 //--------------------------------------------------------------------------------------------------
1318 (
1319  uint16_t* attemptsPtr
1322 );
1323 
1324 //--------------------------------------------------------------------------------------------------
1332 //--------------------------------------------------------------------------------------------------
1334 (
1335  uint16_t* durationPtr
1338 );
1339 
1340 //--------------------------------------------------------------------------------------------------
1349 //--------------------------------------------------------------------------------------------------
1351 (
1352  le_ecall_CallRef_t ecallRef,
1355 
1356  uint32_t crashSeverity
1359 );
1360 
1361 //--------------------------------------------------------------------------------------------------
1371 //--------------------------------------------------------------------------------------------------
1373 (
1374  le_ecall_CallRef_t ecallRef
1377 );
1378 
1379 //--------------------------------------------------------------------------------------------------
1388 //--------------------------------------------------------------------------------------------------
1390 (
1391  le_ecall_CallRef_t ecallRef,
1394 
1395  le_ecall_DiagnosticResultBitMask_t diagnosticResultMask
1398 );
1399 
1400 //--------------------------------------------------------------------------------------------------
1410 //--------------------------------------------------------------------------------------------------
1412 (
1413  le_ecall_CallRef_t ecallRef
1416 );
1417 
1418 //--------------------------------------------------------------------------------------------------
1427 //--------------------------------------------------------------------------------------------------
1429 (
1430  le_ecall_CallRef_t ecallRef,
1433 
1434  le_ecall_CrashInfoBitMask_t crashInfoMask
1437 );
1438 
1439 //--------------------------------------------------------------------------------------------------
1449 //--------------------------------------------------------------------------------------------------
1451 (
1452  le_ecall_CallRef_t ecallRef
1455 );
1456 
1457 
1458 #endif // LE_ECALL_H_INCLUDE_GUARD
1459 
le_ecall_OpMode_t
Definition: le_ecall_interface.h:427
void(* le_ecall_StateChangeHandlerFunc_t)(le_ecall_State_t state, void *contextPtr)
Definition: le_ecall_interface.h:732
AL-ACK clear-down received.
Definition: le_ecall_interface.h:481
Present Left collision indicator.
Definition: le_ecall_interface.h:668
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:435
Present Battery failure.
Definition: le_ecall_interface.h:573
Definition: le_ecall_interface.h:490
le_result_t le_ecall_ForceOnlyMode(void)
Present Right speaker failure.
Definition: le_ecall_interface.h:537
Front collision indicator.
Definition: le_ecall_interface.h:665
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:597
Present Other critical failures.
Definition: le_ecall_interface.h:639
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:475
Unknown state.
Definition: le_ecall_interface.h:448
Present Battery voltage low failure.
Definition: le_ecall_interface.h:579
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:701
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:594
Present Side collision indicator.
Definition: le_ecall_interface.h:692
Present Mic connection failure.
Definition: le_ecall_interface.h:525
Right speaker failure status.
Definition: le_ecall_interface.h:540
Present Right collision indicator.
Definition: le_ecall_interface.h:674
Other critical failures status.
Definition: le_ecall_interface.h:642
Crash profile memory overflow status.
Definition: le_ecall_interface.h:636
le_result_t le_ecall_GetMsdTxMode(le_ecall_MsdTxMode_t *modePtr)
LL-NACK received.
Definition: le_ecall_interface.h:466
Present Crash profile memory overflow.
Definition: le_ecall_interface.h:633
Present Front or side collision indicator.
Definition: le_ecall_interface.h:698
le_result_t le_ecall_ResetMsdEraGlonassCrashInfo(le_ecall_CallRef_t ecallRef)
Left speaker failure status.
Definition: le_ecall_interface.h:546
Rollover indicator.
Definition: le_ecall_interface.h:689
Present Other not critical failures.
Definition: le_ecall_interface.h:645
Ignition line failure status.
Definition: le_ecall_interface.h:558
eCall only mode.
Definition: le_ecall_interface.h:432
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
Definition: le_ecall_interface.h:508
Side collision indicator.
Definition: le_ecall_interface.h:695
struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
Definition: le_ecall_interface.h:718
le_ecall_CrashInfoBitMask_t
Definition: le_ecall_interface.h:660
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:618
le_result_t le_ecall_SetNadDeregistrationTime(uint16_t deregTime)
Present GNSS receiver failure.
Definition: le_ecall_interface.h:603
Normal mode.
Definition: le_ecall_interface.h:429
RAIM problem status.
Definition: le_ecall_interface.h:612
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:511
le_result_t le_ecall_SetEraGlonassAutoDialAttempts(uint16_t attempts)
Other types of damage indicator.
Definition: le_ecall_interface.h:707
UIM failure status.
Definition: le_ecall_interface.h:564
Battery failure status.
Definition: le_ecall_interface.h:576
le_result_t le_ecall_SetEraGlonassManualDialAttempts(uint16_t attempts)
Speaker failure status.
Definition: le_ecall_interface.h:552
le_ecall_DiagnosticResultBitMask_t
Definition: le_ecall_interface.h:523
Present RAIM problem.
Definition: le_ecall_interface.h:609
Present Front collision indicator.
Definition: le_ecall_interface.h:662
Other not critical failures status.
Definition: le_ecall_interface.h:648
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:704
le_ecall_State_t le_ecall_GetState(le_ecall_CallRef_t ecallRef)
LL-ACK received.
Definition: le_ecall_interface.h:469
Waiting for PSAP start indication.
Definition: le_ecall_interface.h:460
le_result_t le_ecall_End(le_ecall_CallRef_t ecallRef)
struct le_ecall_Call * le_ecall_CallRef_t
Definition: le_ecall_interface.h:411
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:472
Comm module failure status.
Definition: le_ecall_interface.h:624
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:630
Present GNSS antenna failure.
Definition: le_ecall_interface.h:615
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:686
le_ecall_CallRef_t le_ecall_Create(void)
Status indicator failure status.
Definition: le_ecall_interface.h:570
Present UIM failure.
Definition: le_ecall_interface.h:561
Present indicator.
Definition: le_ecall_interface.h:680
MSD transmission is started.
Definition: le_ecall_interface.h:463
eCall session started.
Definition: le_ecall_interface.h:451
Present Left speaker failure.
Definition: le_ecall_interface.h:543
Rear impact indicator.
Definition: le_ecall_interface.h:683
Present Mic failure.
Definition: le_ecall_interface.h:531
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:567
Mic failure status.
Definition: le_ecall_interface.h:534
le_result_t le_ecall_GetNadDeregistrationTime(uint16_t *deregTimePtr)
Right collision indicator.
Definition: le_ecall_interface.h:677
le_result_t le_ecall_GetEraGlonassAutoDialAttempts(uint16_t *attemptsPtr)
Emergency call is established.
Definition: le_ecall_interface.h:454
Unsuccessful eCall session.
Definition: le_ecall_interface.h:495
le_result_t le_ecall_ExitOnlyMode(void)
Present Crash sensor failure.
Definition: le_ecall_interface.h:585
le_result_t le_ecall_GetEraGlonassDialDuration(uint16_t *durationPtr)
Present Speaker failure.
Definition: le_ecall_interface.h:549
AL-ACK received.
Definition: le_ecall_interface.h:478
Battery voltage low failure status.
Definition: le_ecall_interface.h:582
le_ecall_State_t
Definition: le_ecall_interface.h:446
le_ecall_MsdTxMode_t
Definition: le_ecall_interface.h:506
le_result_t le_ecall_SetIntervalBetweenDialAttempts(uint16_t pause)
Emergency call is disconnected.
Definition: le_ecall_interface.h:457
eCall session has been stopped by the PSAP.
Definition: le_ecall_interface.h:484
Present Events memory overflow.
Definition: le_ecall_interface.h:627
le_result_t le_ecall_StartAutomatic(le_ecall_CallRef_t ecallRef)
Comm module interface failure status.
Definition: le_ecall_interface.h:600
GNSS receiver failure status.
Definition: le_ecall_interface.h:606
eCall session has lost synchronization and starts over.
Definition: le_ecall_interface.h:487
Present Comm module failure.
Definition: le_ecall_interface.h:621
Mic connection failure status.
Definition: le_ecall_interface.h:528
le_ecall_StateChangeHandlerRef_t le_ecall_AddStateChangeHandler(le_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
Left collision indicator.
Definition: le_ecall_interface.h:671
Present Firmware image corruption failure.
Definition: le_ecall_interface.h:591
void le_ecall_Delete(le_ecall_CallRef_t ecallRef)
Present Ignition line failure.
Definition: le_ecall_interface.h:555
le_result_t le_ecall_GetIntervalBetweenDialAttempts(uint16_t *pausePtr)
Crash sensor failure status.
Definition: le_ecall_interface.h:588