10 #ifndef TAF_ECALL_COMMON_H_INCLUDE_GUARD 11 #define TAF_ECALL_COMMON_H_INCLUDE_GUARD 20 #define IFGEN_TAF_ECALL_PROTOCOL_ID "9b3ee8e69d936839af1e7d6e953859f4" 21 #define IFGEN_TAF_ECALL_MSG_SIZE 297 30 #define TAF_ECALL_TX_MODE_PULL 0 36 #define TAF_ECALL_TX_MODE_PUSH 1 42 #define TAF_ECALL_MAX_VIN_LENGTH 17 48 #define TAF_ECALL_MAX_VIN_BYTES 18 54 #define TAF_ECALL_MAX_OID_LENGTH 8 60 #define TAF_ECALL_MAX_DATA_LENGTH 94 66 #define TAF_ECALL_MAX_MSD_LENGTH 255 72 #define TAF_ECALL_CONTENT_TYPE_MAX_LENGTH 128 78 #define TAF_ECALL_ACCEPT_INFO_MAX_LENGTH 128 184 #define TAF_ECALL_PROP_TYPE_GASOLINE_TANK 0x1 185 #define TAF_ECALL_PROP_TYPE_DIESEL_TANK 0x2 186 #define TAF_ECALL_PROP_TYPE_COMPRESSED_NATURALGAS 0x4 187 #define TAF_ECALL_PROP_TYPE_PROPANE_GAS 0x8 188 #define TAF_ECALL_PROP_TYPE_ELECTRIC 0x10 189 #define TAF_ECALL_PROP_TYPE_HYDROGEN 0x20 190 #define TAF_ECALL_PROP_TYPE_OTHER 0x40 939 int32_t latitudeDeltaN1,
944 int32_t longitudeDeltaN1
969 int32_t latitudeDeltaN2,
974 int32_t longitudeDeltaN2
999 uint32_t passengersCount
1023 const uint8_t* dataPtr,
1089 bool rolloverDetected
1157 const uint8_t* msdPtr,
1499 uint16_t* deregTimePtr
1552 uint16_t* ccftTimePtr
1572 uint16_t minNwRegTime
1588 uint16_t* minNwRegTimePtr
1609 uint16_t* elapsedTimePtr
1613 #endif // TAF_ECALL_COMMON_H_INCLUDE_GUARD LE_SHARED bool ifgen_taf_ecall_HasLocalBinding(void)
void(* taf_ecall_StateChangeHandlerFunc_t)(taf_ecall_CallRef_t ecallRef, taf_ecall_State_t state, void *contextPtr)
Definition: taf_ecall_common.h:537
T9 timer.
Definition: taf_ecall_common.h:515
T7 Timer started.
Definition: taf_ecall_common.h:297
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdPosition(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, bool isTrusted, int32_t latitude, int32_t longitude, int32_t direction)
Heavy duty vehicles (Class N2)
Definition: taf_ecall_common.h:137
Special purpose hearse (Class SD)
Definition: taf_ecall_common.h:171
Motorcycles (Class L4e)
Definition: taf_ecall_common.h:147
Definition: taf_ecall_common.h:418
Definition: taf_ecall_common.h:354
Not supported.
Definition: taf_ecall_common.h:265
taf_ecall_HlapTimerType_t
Definition: taf_ecall_common.h:509
Definition: taf_ecall_common.h:408
LE_SHARED le_result_t ifgen_taf_ecall_StartManual(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Send MSD (start) is received and sync is locked during in-band MSD transmission.
Definition: taf_ecall_common.h:237
Call stopped.
Definition: taf_ecall_common.h:253
Definition: taf_ecall_common.h:342
Definition: taf_ecall_common.h:479
LE_SHARED le_result_t ifgen_taf_ecall_ResetMsdAdditionalData(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Definition: taf_ecall_common.h:332
LE_SHARED int32_t ifgen_taf_ecall_GetPlatformSpecificTerminationCode(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdPassengersCount(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, uint32_t passengersCount)
T10 Timer expired.
Definition: taf_ecall_common.h:275
Light commercial vehicles (Class N1)
Definition: taf_ecall_common.h:135
Not supported.
Definition: taf_ecall_common.h:233
LE_SHARED le_result_t ifgen_taf_ecall_GetHlapTimerState(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_HlapTimerType_t timer, taf_ecall_HlapTimerStatus_t *timerStatusPtr, uint16_t *elapsedTimePtr)
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdAdditionalData(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, const char *LE_NONNULL oid, const uint8_t *dataPtr, size_t dataSize)
Incoming eCall.
Definition: taf_ecall_common.h:315
LE_SHARED le_result_t ifgen_taf_ecall_SetPropulsionType(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_PropulsionStorageType_t propulsionType)
taf_ecall_MsdVehicleType_t
Definition: taf_ecall_common.h:127
Out-band MSD transmission started in NG eCall.
Definition: taf_ecall_common.h:283
Definition: taf_ecall_common.h:210
Other vehicle class.
Definition: taf_ecall_common.h:173
Definition: taf_ecall_common.h:368
Motorcycles (Class L7e)
Definition: taf_ecall_common.h:153
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdVersion(le_msg_SessionRef_t _ifgen_sessionRef, uint32_t msdVersion)
Definition: taf_ecall_common.h:350
Invalid mode.
Definition: taf_ecall_common.h:100
Definition: taf_ecall_common.h:356
Definition: taf_ecall_common.h:204
Definition: taf_ecall_common.h:212
Definition: taf_ecall_common.h:426
LE_SHARED le_result_t ifgen_taf_ecall_GetPsapNumber(le_msg_SessionRef_t _ifgen_sessionRef, char *psap, size_t psapSize)
Motorcycles (Class L2e)
Definition: taf_ecall_common.h:143
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdPositionN2(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, int32_t latitudeDeltaN2, int32_t longitudeDeltaN2)
Definition: taf_ecall_common.h:481
Definition: taf_ecall_common.h:348
Definition: taf_ecall_common.h:398
LE_SHARED taf_ecall_TerminationReason_t ifgen_taf_ecall_GetTerminationReason(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Agricultural vehicles (Class S)
Definition: taf_ecall_common.h:159
Passenger vehicle (Class M1)
Definition: taf_ecall_common.h:129
Definition: taf_ecall_common.h:392
Definition: taf_ecall_common.h:378
Unknown.
Definition: taf_ecall_common.h:494
Definition: taf_ecall_common.h:384
LE_SHARED le_result_t ifgen_taf_ecall_SendMsd(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Definition: taf_ecall_common.h:372
eCall normal mode.
Definition: taf_ecall_common.h:94
Definition: taf_ecall_common.h:432
Persistent eCall only mode.
Definition: taf_ecall_common.h:98
LE_SHARED le_result_t ifgen_taf_ecall_GetVehicleType(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_MsdVehicleType_t *vehTypePtr)
Definition: taf_ecall_common.h:406
T6 Timer started.
Definition: taf_ecall_common.h:295
taf_ecall_HlapTimerStatus_t
Definition: taf_ecall_common.h:492
Definition: taf_ecall_common.h:424
LE_SHARED le_result_t ifgen_taf_ecall_GetVIN(le_msg_SessionRef_t _ifgen_sessionRef, char *vin, size_t vinSize)
Definition: taf_ecall_common.h:458
Definition: taf_ecall_common.h:422
Out of order NACK message detected during in-band MSD transmission.
Definition: taf_ecall_common.h:279
T5 Timer stopped.
Definition: taf_ecall_common.h:305
Active eCall.
Definition: taf_ecall_common.h:231
T9 Timer stopped.
Definition: taf_ecall_common.h:311
T10 Timer started.
Definition: taf_ecall_common.h:301
T5 Timer expired.
Definition: taf_ecall_common.h:267
Definition: taf_ecall_common.h:436
LE_SHARED le_result_t ifgen_taf_ecall_ForceOnlyMode(le_msg_SessionRef_t _ifgen_sessionRef, uint8_t phoneId)
Motorcycles (Class L3e)
Definition: taf_ecall_common.h:145
Definition: taf_ecall_common.h:404
Definition: taf_ecall_common.h:412
taf_ecall_Type_t
Definition: taf_ecall_common.h:471
Special purpose motor caravan (Class SA)
Definition: taf_ecall_common.h:165
Outgoing call.
Definition: taf_ecall_common.h:277
Definition: taf_ecall_common.h:452
T7 Timer expired.
Definition: taf_ecall_common.h:271
Definition: taf_ecall_common.h:420
Notify request from PSAP for MSD update.
Definition: taf_ecall_common.h:289
Definition: taf_ecall_common.h:376
Definition: taf_ecall_common.h:428
In-band MSD transmission succeeded.
Definition: taf_ecall_common.h:245
LE_SHARED le_result_t ifgen_taf_ecall_TerminateRegistration(le_msg_SessionRef_t _ifgen_sessionRef)
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdEuroNCAPLocationOfImpact(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, taf_ecall_IILocations_t iiLocations)
Definition: taf_ecall_common.h:446
Definition: taf_ecall_common.h:328
LE_SHARED le_result_t ifgen_taf_ecall_GetConfiguredOperationMode(le_msg_SessionRef_t _ifgen_sessionRef, uint8_t phoneId, taf_ecall_OpMode_t *opModePtr)
Buses and coaches (Class M3)
Definition: taf_ecall_common.h:133
Definition: taf_ecall_common.h:336
Push mode; modem/host sends MSD to PSAP after the eCall is connected.
Definition: taf_ecall_common.h:115
Definition: taf_ecall_common.h:352
LE_SHARED le_result_t ifgen_taf_ecall_SetNadDeregistrationTime(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t deregTime)
LE_SHARED le_result_t ifgen_taf_ecall_StartPrivate(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, const char *LE_NONNULL psap, const char *LE_NONNULL contentType, const char *LE_NONNULL acceptInfo)
Not supported.
Definition: taf_ecall_common.h:251
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdPositionN1(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, int32_t latitudeDeltaN1, int32_t longitudeDeltaN1)
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdTxMode(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_MsdTransmissionMode_t mode)
LE_SHARED void ifgen_taf_ecall_InitCommonData(void)
Definition: taf_ecall_common.h:380
eCall only mode according to U/SIM operation mode.
Definition: taf_ecall_common.h:96
Definition: taf_ecall_common.h:477
Definition: taf_ecall_common.h:338
taf_ecall_State_t
Definition: taf_ecall_common.h:225
Special purpose armoured vehicle (Class SB)
Definition: taf_ecall_common.h:167
taf_ecall_IILocations_t
Definition: taf_ecall_common.h:200
Definition: taf_ecall_common.h:400
LE_SHARED le_result_t ifgen_taf_ecall_SetPsapNumber(le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL psap)
Definition: taf_ecall_common.h:473
Definition: taf_ecall_common.h:440
Definition: taf_ecall_common.h:214
Motorcycles (Class L5e)
Definition: taf_ecall_common.h:149
LE_SHARED le_result_t ifgen_taf_ecall_SetNadMinNetworkRegistrationTime(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t minNwRegTime)
LE_SHARED le_result_t ifgen_taf_ecall_StartTest(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Special purpose ambulance (Class SC)
Definition: taf_ecall_common.h:169
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdEuroNCAPIIDeltaV(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, uint8_t rangeLimit, int16_t deltaVX, int16_t deltaVY)
Alerting call; MO call only.
Definition: taf_ecall_common.h:229
LE_SHARED le_result_t ifgen_taf_ecall_End(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
LE_SHARED le_result_t ifgen_taf_ecall_SetMsdEuroNCAPRolloverDetected(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, bool rolloverDetected)
T10 timer.
Definition: taf_ecall_common.h:517
Not supported.
Definition: taf_ecall_common.h:259
Not supported.
Definition: taf_ecall_common.h:249
T9 Timer expired.
Definition: taf_ecall_common.h:273
LE_SHARED le_result_t ifgen_taf_ecall_ResetMsdEuroNCAPRolloverDetected(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
taf_ecall_MsdTransmissionMode_t
Definition: taf_ecall_common.h:111
LE_SHARED taf_ecall_Type_t ifgen_taf_ecall_GetType(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
LE_SHARED le_result_t ifgen_taf_ecall_Answer(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Definition: taf_ecall_common.h:358
eCall HLAP timer has not started or it has stopped/expired.
Definition: taf_ecall_common.h:496
Not supported.
Definition: taf_ecall_common.h:257
Definition: taf_ecall_common.h:442
struct taf_ecall_StateChangeHandler * taf_ecall_StateChangeHandlerRef_t
Definition: taf_ecall_common.h:528
Definition: taf_ecall_common.h:346
Definition: taf_ecall_common.h:438
LE_SHARED void ifgen_taf_ecall_CleanupCommonData(le_msg_SessionRef_t _ifgen_sessionRef)
Pull mode; modem/host waits for MSD request from PSAP to send MSD.
Definition: taf_ecall_common.h:113
Definition: taf_ecall_common.h:334
Off-road vehicles (Class G)
Definition: taf_ecall_common.h:163
LE_SHARED le_result_t ifgen_taf_ecall_SetVIN(le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL vin)
Agricultural vehicles (Class R)
Definition: taf_ecall_common.h:157
Definition: taf_ecall_common.h:366
Motorcycles (Class L1e)
Definition: taf_ecall_common.h:141
T2 timer.
Definition: taf_ecall_common.h:513
Definition: taf_ecall_common.h:450
LE_SHARED le_result_t ifgen_taf_ecall_ExportMsd(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, uint8_t *msdPtr, size_t *msdSizePtr)
Definition: taf_ecall_common.h:364
T2 Timer started.
Definition: taf_ecall_common.h:291
LE_SHARED le_result_t ifgen_taf_ecall_OpenSession(le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking)
taf_ecall_TerminationReason_t
Definition: taf_ecall_common.h:326
LE_SHARED taf_ecall_State_t ifgen_taf_ecall_GetState(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Agricultural vehicles (Class T)
Definition: taf_ecall_common.h:161
Definition: taf_ecall_common.h:456
T2 Timer stopped.
Definition: taf_ecall_common.h:303
Motorcycles (Class L6e)
Definition: taf_ecall_common.h:151
LE_SHARED le_result_t ifgen_taf_ecall_GetNadClearDownFallbackTime(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t *ccftTimePtr)
Definition: taf_ecall_common.h:360
Definition: taf_ecall_common.h:396
LE_SHARED le_result_t ifgen_taf_ecall_GetMsdTxMode(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_MsdTransmissionMode_t *modePtr)
Definition: taf_ecall_common.h:475
T10 Timer stopped.
Definition: taf_ecall_common.h:313
taf_ecall_OpMode_t
Definition: taf_ecall_common.h:92
T6 Timer expired.
Definition: taf_ecall_common.h:269
T7 Timer stopped.
Definition: taf_ecall_common.h:309
LE_SHARED taf_ecall_StateChangeHandlerRef_t ifgen_taf_ecall_AddStateChangeHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_StateChangeHandlerFunc_t handlerPtr, void *contextPtr)
Definition: taf_ecall_common.h:390
Definition: taf_ecall_common.h:402
Definition: taf_ecall_common.h:416
eCall HLAP timer has started but not yet stopped/expired.
Definition: taf_ecall_common.h:498
Definition: taf_ecall_common.h:430
LE_SHARED le_result_t ifgen_taf_ecall_StartAutomatic(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
LE_SHARED le_result_t ifgen_taf_ecall_GetMsdVersion(le_msg_SessionRef_t _ifgen_sessionRef, uint32_t *msdVerPtr)
Definition: taf_ecall_common.h:410
Not supported.
Definition: taf_ecall_common.h:241
Definition: taf_ecall_common.h:414
Trailers (Class O)
Definition: taf_ecall_common.h:155
Definition: taf_ecall_common.h:382
Definition: taf_ecall_common.h:206
LE_SHARED le_result_t ifgen_taf_ecall_ForcePersistentOnlyMode(le_msg_SessionRef_t _ifgen_sessionRef, uint8_t phoneId)
Buses and coaches (Class M2)
Definition: taf_ecall_common.h:131
In-band MSD transmission started.
Definition: taf_ecall_common.h:239
Definition: taf_ecall_common.h:394
struct taf_ecall_Call * taf_ecall_CallRef_t
Definition: taf_ecall_common.h:84
#define LE_NONNULL
Definition: le_basics.h:368
Definition: taf_ecall_common.h:374
Definition: taf_ecall_common.h:202
LE_SHARED le_result_t ifgen_taf_ecall_UseUSimNumbers(le_msg_SessionRef_t _ifgen_sessionRef)
Not supported.
Definition: taf_ecall_common.h:255
LE_SHARED le_result_t ifgen_taf_ecall_GetNadDeregistrationTime(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t *deregTimePtr)
Unknown eCall state.
Definition: taf_ecall_common.h:227
LE_SHARED le_result_t ifgen_taf_ecall_SetVehicleType(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_MsdVehicleType_t vehType)
le_result_t
Definition: le_basics.h:45
Definition: taf_ecall_common.h:460
In-band MSD transmission failed.
Definition: taf_ecall_common.h:247
Definition: taf_ecall_common.h:208
Out of order ACK message detected during in-band MSD transmission.
Definition: taf_ecall_common.h:281
T5 Timer started.
Definition: taf_ecall_common.h:293
Definition: taf_ecall_common.h:454
LE_SHARED void ifgen_taf_ecall_Delete(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef)
Out-band MSD transmission succeeded in NG eCall or private eCall.
Definition: taf_ecall_common.h:285
struct le_msg_Session * le_msg_SessionRef_t
Definition: le_messaging.h:860
Definition: taf_ecall_common.h:330
Definition: taf_ecall_common.h:386
Definition: taf_ecall_common.h:344
Definition: taf_ecall_common.h:362
LE_SHARED le_result_t ifgen_taf_ecall_ImportMsd(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_CallRef_t ecallRef, const uint8_t *msdPtr, size_t msdSize)
LE_SHARED le_result_t ifgen_taf_ecall_GetNadMinNetworkRegistrationTime(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t *minNwRegTimePtr)
Link-Layer Acknowledgement (LL-ACK) is received during in-band MSD transmission.
Definition: taf_ecall_common.h:243
T9 Timer started.
Definition: taf_ecall_common.h:299
Not supported.
Definition: taf_ecall_common.h:261
Not supported.
Definition: taf_ecall_common.h:235
LE_SHARED le_result_t ifgen_taf_ecall_ExitOnlyMode(le_msg_SessionRef_t _ifgen_sessionRef, uint8_t phoneId)
Definition: taf_ecall_common.h:340
LE_SHARED taf_ecall_CallRef_t ifgen_taf_ecall_Create(le_msg_SessionRef_t _ifgen_sessionRef)
Definition: taf_ecall_common.h:444
T2 timer expired.
Definition: taf_ecall_common.h:263
#define LE_SHARED
Definition: le_basics.h:297
Definition: taf_ecall_common.h:448
LE_SHARED le_result_t ifgen_taf_ecall_SetNadClearDownFallbackTime(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t ccftTime)
T6 Timer stopped.
Definition: taf_ecall_common.h:307
Definition: taf_ecall_common.h:434
Out-band MSD transmission failed in NG eCall or private eCall.
Definition: taf_ecall_common.h:287
uint32_t taf_ecall_PropulsionStorageType_t
Definition: taf_ecall_common.h:191
Unknown timer.
Definition: taf_ecall_common.h:511
LE_SHARED le_result_t ifgen_taf_ecall_GetPropulsionType(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_PropulsionStorageType_t *propulsionTypePtr)
Definition: taf_ecall_common.h:370
LE_SHARED void ifgen_taf_ecall_RemoveStateChangeHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_ecall_StateChangeHandlerRef_t handlerRef)
Heavy duty vehicles (Class N3)
Definition: taf_ecall_common.h:139
Definition: taf_ecall_common.h:388