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 
369 #ifndef LE_ECALL_H_INCLUDE_GUARD
370 #define LE_ECALL_H_INCLUDE_GUARD
371 
372 
373 #include "legato.h"
374 
375 // Interface specific includes
376 #include "le_mdmDefs_interface.h"
377 
378 
379 //--------------------------------------------------------------------------------------------------
383 //--------------------------------------------------------------------------------------------------
385 (
386  void
387 );
388 
389 //--------------------------------------------------------------------------------------------------
393 //--------------------------------------------------------------------------------------------------
395 (
396  void
397 );
398 
399 
400 //--------------------------------------------------------------------------------------------------
404 //--------------------------------------------------------------------------------------------------
405 typedef struct le_ecall_Call* le_ecall_CallRef_t;
406 
407 
408 //--------------------------------------------------------------------------------------------------
412 //--------------------------------------------------------------------------------------------------
413 #define LE_ECALL_MSD_MAX_LEN 282
414 
415 
416 //--------------------------------------------------------------------------------------------------
420 //--------------------------------------------------------------------------------------------------
421 typedef enum
422 {
425 
428 
431 }
433 
434 
435 //--------------------------------------------------------------------------------------------------
439 //--------------------------------------------------------------------------------------------------
440 typedef enum
441 {
444 
447 
450 
453 
456 
459 
462 
465 
468 
471 
474 
477 
480 
483 
488 
491 }
493 
494 
495 //--------------------------------------------------------------------------------------------------
499 //--------------------------------------------------------------------------------------------------
500 typedef enum
501 {
504 
507 }
509 
510 
511 //--------------------------------------------------------------------------------------------------
516 //--------------------------------------------------------------------------------------------------
517 typedef enum
518 {
521 
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 }
646 
647 
648 //--------------------------------------------------------------------------------------------------
653 //--------------------------------------------------------------------------------------------------
654 typedef enum
655 {
658 
661 
664 
667 
670 
673 
676 
679 
682 
685 
688 
691 
694 
697 
700 
703 }
705 
706 
707 //--------------------------------------------------------------------------------------------------
711 //--------------------------------------------------------------------------------------------------
712 typedef struct le_ecall_StateChangeHandler* le_ecall_StateChangeHandlerRef_t;
713 
714 
715 //--------------------------------------------------------------------------------------------------
724 //--------------------------------------------------------------------------------------------------
725 typedef void (*le_ecall_StateChangeHandlerFunc_t)
726 (
727  le_ecall_State_t state,
728  void* contextPtr
729 );
730 
731 //--------------------------------------------------------------------------------------------------
743 //--------------------------------------------------------------------------------------------------
745 (
746  void
747 );
748 
749 //--------------------------------------------------------------------------------------------------
757 //--------------------------------------------------------------------------------------------------
759 (
760  void
761 );
762 
763 //--------------------------------------------------------------------------------------------------
774 //--------------------------------------------------------------------------------------------------
776 (
777  void
778 );
779 
780 //--------------------------------------------------------------------------------------------------
788 //--------------------------------------------------------------------------------------------------
790 (
791  le_ecall_OpMode_t* opModePtr
794 );
795 
796 //--------------------------------------------------------------------------------------------------
802 //--------------------------------------------------------------------------------------------------
804 (
807 
808  void* contextPtr
810 );
811 
812 //--------------------------------------------------------------------------------------------------
816 //--------------------------------------------------------------------------------------------------
818 (
821 );
822 
823 //--------------------------------------------------------------------------------------------------
836 //--------------------------------------------------------------------------------------------------
838 (
839  void
840 );
841 
842 //--------------------------------------------------------------------------------------------------
849 //--------------------------------------------------------------------------------------------------
850 void le_ecall_Delete
851 (
852  le_ecall_CallRef_t ecallRef
855 );
856 
857 //--------------------------------------------------------------------------------------------------
865 //--------------------------------------------------------------------------------------------------
867 (
871 );
872 
873 //--------------------------------------------------------------------------------------------------
881 //--------------------------------------------------------------------------------------------------
883 (
884  le_ecall_MsdTxMode_t* modePtr
887 );
888 
889 //--------------------------------------------------------------------------------------------------
903 //--------------------------------------------------------------------------------------------------
905 (
906  le_ecall_CallRef_t ecallRef,
909 
910  bool isTrusted,
913 
914  int32_t latitude,
917 
918  int32_t longitude,
921 
922  int32_t direction
925 );
926 
927 //--------------------------------------------------------------------------------------------------
940 //--------------------------------------------------------------------------------------------------
942 (
943  le_ecall_CallRef_t ecallRef,
946 
947  uint32_t paxCount
950 );
951 
952 //--------------------------------------------------------------------------------------------------
967 //--------------------------------------------------------------------------------------------------
969 (
970  le_ecall_CallRef_t ecallRef,
973 
974  const uint8_t* msdPtr,
977 
978  size_t msdNumElements
980 );
981 
982 //--------------------------------------------------------------------------------------------------
996 //--------------------------------------------------------------------------------------------------
998 (
999  le_ecall_CallRef_t ecallRef,
1002 
1003  uint8_t* msdPtr,
1006 
1007  size_t* msdNumElementsPtr
1009 );
1010 
1011 //--------------------------------------------------------------------------------------------------
1023 //--------------------------------------------------------------------------------------------------
1025 (
1026  le_ecall_CallRef_t ecallRef
1029 );
1030 
1031 //--------------------------------------------------------------------------------------------------
1043 //--------------------------------------------------------------------------------------------------
1045 (
1046  le_ecall_CallRef_t ecallRef
1049 );
1050 
1051 //--------------------------------------------------------------------------------------------------
1063 //--------------------------------------------------------------------------------------------------
1065 (
1066  le_ecall_CallRef_t ecallRef
1069 );
1070 
1071 //--------------------------------------------------------------------------------------------------
1081 //--------------------------------------------------------------------------------------------------
1083 (
1084  le_ecall_CallRef_t ecallRef
1087 );
1088 
1089 //--------------------------------------------------------------------------------------------------
1098 //--------------------------------------------------------------------------------------------------
1100 (
1101  le_ecall_CallRef_t ecallRef
1104 );
1105 
1106 //--------------------------------------------------------------------------------------------------
1116 //--------------------------------------------------------------------------------------------------
1118 (
1119  const char* psap
1122 );
1123 
1124 //--------------------------------------------------------------------------------------------------
1135 //--------------------------------------------------------------------------------------------------
1137 (
1138  char* psap,
1141 
1142  size_t psapNumElements
1144 );
1145 
1146 //--------------------------------------------------------------------------------------------------
1155 //--------------------------------------------------------------------------------------------------
1157 (
1158  void
1159 );
1160 
1161 //--------------------------------------------------------------------------------------------------
1171 //--------------------------------------------------------------------------------------------------
1173 (
1174  uint16_t deregTime
1177 );
1178 
1179 //--------------------------------------------------------------------------------------------------
1187 //--------------------------------------------------------------------------------------------------
1189 (
1190  uint16_t* deregTimePtr
1193 );
1194 
1195 //--------------------------------------------------------------------------------------------------
1203 //--------------------------------------------------------------------------------------------------
1205 (
1206  uint16_t pause
1209 );
1210 
1211 //--------------------------------------------------------------------------------------------------
1219 //--------------------------------------------------------------------------------------------------
1221 (
1222  uint16_t* pausePtr
1225 );
1226 
1227 //--------------------------------------------------------------------------------------------------
1239 //--------------------------------------------------------------------------------------------------
1241 (
1242  uint16_t attempts
1245 );
1246 
1247 //--------------------------------------------------------------------------------------------------
1259 //--------------------------------------------------------------------------------------------------
1261 (
1262  uint16_t attempts
1265 );
1266 
1267 //--------------------------------------------------------------------------------------------------
1278 //--------------------------------------------------------------------------------------------------
1280 (
1281  uint16_t duration
1284 );
1285 
1286 //--------------------------------------------------------------------------------------------------
1294 //--------------------------------------------------------------------------------------------------
1296 (
1297  uint16_t* attemptsPtr
1300 );
1301 
1302 //--------------------------------------------------------------------------------------------------
1310 //--------------------------------------------------------------------------------------------------
1312 (
1313  uint16_t* attemptsPtr
1316 );
1317 
1318 //--------------------------------------------------------------------------------------------------
1326 //--------------------------------------------------------------------------------------------------
1328 (
1329  uint16_t* durationPtr
1332 );
1333 
1334 //--------------------------------------------------------------------------------------------------
1343 //--------------------------------------------------------------------------------------------------
1345 (
1346  le_ecall_CallRef_t ecallRef,
1349 
1350  uint32_t crashSeverity
1353 );
1354 
1355 //--------------------------------------------------------------------------------------------------
1365 //--------------------------------------------------------------------------------------------------
1367 (
1368  le_ecall_CallRef_t ecallRef
1371 );
1372 
1373 //--------------------------------------------------------------------------------------------------
1382 //--------------------------------------------------------------------------------------------------
1384 (
1385  le_ecall_CallRef_t ecallRef,
1388 
1389  le_ecall_DiagnosticResultBitMask_t diagnosticResultMask
1392 );
1393 
1394 //--------------------------------------------------------------------------------------------------
1404 //--------------------------------------------------------------------------------------------------
1406 (
1407  le_ecall_CallRef_t ecallRef
1410 );
1411 
1412 //--------------------------------------------------------------------------------------------------
1421 //--------------------------------------------------------------------------------------------------
1423 (
1424  le_ecall_CallRef_t ecallRef,
1427 
1428  le_ecall_CrashInfoBitMask_t crashInfoMask
1431 );
1432 
1433 //--------------------------------------------------------------------------------------------------
1443 //--------------------------------------------------------------------------------------------------
1445 (
1446  le_ecall_CallRef_t ecallRef
1449 );
1450 
1451 
1452 #endif // LE_ECALL_H_INCLUDE_GUARD
1453 
le_ecall_OpMode_t
Definition: le_ecall_interface.h:421
void(* le_ecall_StateChangeHandlerFunc_t)(le_ecall_State_t state, void *contextPtr)
Definition: le_ecall_interface.h:726
AL-ACK clear-down received.
Definition: le_ecall_interface.h:475
Present Left collision indicator.
Definition: le_ecall_interface.h:662
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:429
Present Battery failure.
Definition: le_ecall_interface.h:567
Definition: le_ecall_interface.h:484
le_result_t le_ecall_ForceOnlyMode(void)
Present Right speaker failure.
Definition: le_ecall_interface.h:531
Front collision indicator.
Definition: le_ecall_interface.h:659
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:591
Present Other critical failures.
Definition: le_ecall_interface.h:633
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:469
Unknown state.
Definition: le_ecall_interface.h:442
Present Battery voltage low failure.
Definition: le_ecall_interface.h:573
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:695
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:588
Present Side collision indicator.
Definition: le_ecall_interface.h:686
Present Mic connection failure.
Definition: le_ecall_interface.h:519
Right speaker failure status.
Definition: le_ecall_interface.h:534
Present Right collision indicator.
Definition: le_ecall_interface.h:668
Other critical failures status.
Definition: le_ecall_interface.h:636
Crash profile memory overflow status.
Definition: le_ecall_interface.h:630
le_result_t le_ecall_GetMsdTxMode(le_ecall_MsdTxMode_t *modePtr)
LL-NACK received.
Definition: le_ecall_interface.h:460
Present Crash profile memory overflow.
Definition: le_ecall_interface.h:627
Present Front or side collision indicator.
Definition: le_ecall_interface.h:692
le_result_t le_ecall_ResetMsdEraGlonassCrashInfo(le_ecall_CallRef_t ecallRef)
Left speaker failure status.
Definition: le_ecall_interface.h:540
Rollover indicator.
Definition: le_ecall_interface.h:683
Present Other not critical failures.
Definition: le_ecall_interface.h:639
Ignition line failure status.
Definition: le_ecall_interface.h:552
eCall only mode.
Definition: le_ecall_interface.h:426
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
Definition: le_ecall_interface.h:502
Side collision indicator.
Definition: le_ecall_interface.h:689
struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
Definition: le_ecall_interface.h:712
le_ecall_CrashInfoBitMask_t
Definition: le_ecall_interface.h:654
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:612
le_result_t le_ecall_SetNadDeregistrationTime(uint16_t deregTime)
Present GNSS receiver failure.
Definition: le_ecall_interface.h:597
Normal mode.
Definition: le_ecall_interface.h:423
RAIM problem status.
Definition: le_ecall_interface.h:606
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:505
le_result_t le_ecall_SetEraGlonassAutoDialAttempts(uint16_t attempts)
Other types of damage indicator.
Definition: le_ecall_interface.h:701
UIM failure status.
Definition: le_ecall_interface.h:558
Battery failure status.
Definition: le_ecall_interface.h:570
le_result_t le_ecall_SetEraGlonassManualDialAttempts(uint16_t attempts)
Speaker failure status.
Definition: le_ecall_interface.h:546
le_ecall_DiagnosticResultBitMask_t
Definition: le_ecall_interface.h:517
Present RAIM problem.
Definition: le_ecall_interface.h:603
Present Front collision indicator.
Definition: le_ecall_interface.h:656
Other not critical failures status.
Definition: le_ecall_interface.h:642
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:698
le_ecall_State_t le_ecall_GetState(le_ecall_CallRef_t ecallRef)
LL-ACK received.
Definition: le_ecall_interface.h:463
Waiting for PSAP start indication.
Definition: le_ecall_interface.h:454
le_result_t le_ecall_End(le_ecall_CallRef_t ecallRef)
struct le_ecall_Call * le_ecall_CallRef_t
Definition: le_ecall_interface.h:405
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:466
Comm module failure status.
Definition: le_ecall_interface.h:618
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:624
Present GNSS antenna failure.
Definition: le_ecall_interface.h:609
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:680
le_ecall_CallRef_t le_ecall_Create(void)
Status indicator failure status.
Definition: le_ecall_interface.h:564
Present UIM failure.
Definition: le_ecall_interface.h:555
Present indicator.
Definition: le_ecall_interface.h:674
MSD transmission is started.
Definition: le_ecall_interface.h:457
eCall session started.
Definition: le_ecall_interface.h:445
Present Left speaker failure.
Definition: le_ecall_interface.h:537
Rear impact indicator.
Definition: le_ecall_interface.h:677
Present Mic failure.
Definition: le_ecall_interface.h:525
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:561
Mic failure status.
Definition: le_ecall_interface.h:528
le_result_t le_ecall_GetNadDeregistrationTime(uint16_t *deregTimePtr)
Right collision indicator.
Definition: le_ecall_interface.h:671
le_result_t le_ecall_GetEraGlonassAutoDialAttempts(uint16_t *attemptsPtr)
Emergency call is established.
Definition: le_ecall_interface.h:448
Unsuccessful eCall session.
Definition: le_ecall_interface.h:489
le_result_t le_ecall_ExitOnlyMode(void)
Present Crash sensor failure.
Definition: le_ecall_interface.h:579
le_result_t le_ecall_GetEraGlonassDialDuration(uint16_t *durationPtr)
Present Speaker failure.
Definition: le_ecall_interface.h:543
AL-ACK received.
Definition: le_ecall_interface.h:472
Battery voltage low failure status.
Definition: le_ecall_interface.h:576
le_ecall_State_t
Definition: le_ecall_interface.h:440
le_ecall_MsdTxMode_t
Definition: le_ecall_interface.h:500
le_result_t le_ecall_SetIntervalBetweenDialAttempts(uint16_t pause)
Emergency call is disconnected.
Definition: le_ecall_interface.h:451
eCall session has been stopped by the PSAP.
Definition: le_ecall_interface.h:478
Present Events memory overflow.
Definition: le_ecall_interface.h:621
le_result_t le_ecall_StartAutomatic(le_ecall_CallRef_t ecallRef)
Comm module interface failure status.
Definition: le_ecall_interface.h:594
GNSS receiver failure status.
Definition: le_ecall_interface.h:600
eCall session has lost synchronization and starts over.
Definition: le_ecall_interface.h:481
Present Comm module failure.
Definition: le_ecall_interface.h:615
Mic connection failure status.
Definition: le_ecall_interface.h:522
le_ecall_StateChangeHandlerRef_t le_ecall_AddStateChangeHandler(le_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
Left collision indicator.
Definition: le_ecall_interface.h:665
Present Firmware image corruption failure.
Definition: le_ecall_interface.h:585
void le_ecall_Delete(le_ecall_CallRef_t ecallRef)
Present Ignition line failure.
Definition: le_ecall_interface.h:549
le_result_t le_ecall_GetIntervalBetweenDialAttempts(uint16_t *pausePtr)
Crash sensor failure status.
Definition: le_ecall_interface.h:582