le_ecall_common.h File Reference

#include "legato.h"
#include "le_mdmDefs_common.h"
#include "le_mcc_common.h"

Go to the source code of this file.

Macros

#define LE_ECALL_MSD_MAX_LEN   140
 
#define LE_ECALL_VIN_MAX_LEN   17
 
#define LE_ECALL_VIN_MAX_BYTES   18
 
#define LE_ECALL_PROPULSION_TYPE_GASOLINE   0x1
 
#define LE_ECALL_PROPULSION_TYPE_DIESEL   0x2
 
#define LE_ECALL_PROPULSION_TYPE_NATURALGAS   0x4
 
#define LE_ECALL_PROPULSION_TYPE_PROPANE   0x8
 
#define LE_ECALL_PROPULSION_TYPE_ELECTRIC   0x10
 
#define LE_ECALL_PROPULSION_TYPE_HYDROGEN   0x20
 
#define LE_ECALL_PROPULSION_TYPE_OTHER   0x40
 
#define LE_ECALL_DIAG_RESULT_PRESENT_MIC_CONNECTION_FAILURE   0x1
 
#define LE_ECALL_DIAG_RESULT_MIC_CONNECTION_FAILURE   0x2
 
#define LE_ECALL_DIAG_RESULT_PRESENT_MIC_FAILURE   0x4
 
#define LE_ECALL_DIAG_RESULT_MIC_FAILURE   0x8
 
#define LE_ECALL_DIAG_RESULT_PRESENT_RIGHT_SPEAKER_FAILURE   0x10
 
#define LE_ECALL_DIAG_RESULT_RIGHT_SPEAKER_FAILURE   0x20
 
#define LE_ECALL_DIAG_RESULT_PRESENT_LEFT_SPEAKER_FAILURE   0x40
 
#define LE_ECALL_DIAG_RESULT_LEFT_SPEAKER_FAILURE   0x80
 
#define LE_ECALL_DIAG_RESULT_PRESENT_SPEAKERS_FAILURE   0x100
 
#define LE_ECALL_DIAG_RESULT_SPEAKERS_FAILURE   0x200
 
#define LE_ECALL_DIAG_RESULT_PRESENT_IGNITION_LINE_FAILURE   0x400
 
#define LE_ECALL_DIAG_RESULT_IGNITION_LINE_FAILURE   0x800
 
#define LE_ECALL_DIAG_RESULT_PRESENT_UIM_FAILURE   0x1000
 
#define LE_ECALL_DIAG_RESULT_UIM_FAILURE   0x2000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_STATUS_INDICATOR_FAILURE   0x4000
 
#define LE_ECALL_DIAG_RESULT_STATUS_INDICATOR_FAILURE   0x8000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_BATTERY_FAILURE   0x10000
 
#define LE_ECALL_DIAG_RESULT_BATTERY_FAILURE   0x20000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_BATTERY_VOLTAGE_LOW   0x40000
 
#define LE_ECALL_DIAG_RESULT_BATTERY_VOLTAGE_LOW   0x80000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_CRASH_SENSOR_FAILURE   0x100000
 
#define LE_ECALL_DIAG_RESULT_CRASH_SENSOR_FAILURE   0x200000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_FIRMWARE_IMAGE_CORRUPTION   0x400000
 
#define LE_ECALL_DIAG_RESULT_FIRMWARE_IMAGE_CORRUPTION   0x800000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_COMM_MODULE_INTERFACE_FAILURE   0x1000000
 
#define LE_ECALL_DIAG_RESULT_COMM_MODULE_INTERFACE_FAILURE   0x2000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_GNSS_RECEIVER_FAILURE   0x4000000
 
#define LE_ECALL_DIAG_RESULT_GNSS_RECEIVER_FAILURE   0x8000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_RAIM_PROBLEM   0x10000000
 
#define LE_ECALL_DIAG_RESULT_RAIM_PROBLEM   0x20000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_GNSS_ANTENNA_FAILURE   0x40000000
 
#define LE_ECALL_DIAG_RESULT_GNSS_ANTENNA_FAILURE   0x80000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_COMM_MODULE_FAILURE   0x100000000
 
#define LE_ECALL_DIAG_RESULT_COMM_MODULE_FAILURE   0x200000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_EVENTS_MEMORY_OVERFLOW   0x400000000
 
#define LE_ECALL_DIAG_RESULT_EVENTS_MEMORY_OVERFLOW   0x800000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_CRASH_PROFILE_MEMORY_OVERFLOW   0x1000000000
 
#define LE_ECALL_DIAG_RESULT_CRASH_PROFILE_MEMORY_OVERFLOW   0x2000000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_OTHER_CRITICAL_FAILURES   0x4000000000
 
#define LE_ECALL_DIAG_RESULT_OTHER_CRITICAL_FAILURES   0x8000000000
 
#define LE_ECALL_DIAG_RESULT_PRESENT_OTHER_NOT_CRITICAL_FAILURES   0x10000000000
 
#define LE_ECALL_DIAG_RESULT_OTHER_NOT_CRITICAL_FAILURES   0x20000000000
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_FRONT   0x1
 
#define LE_ECALL_CRASH_INFO_CRASH_FRONT   0x2
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_LEFT   0x4
 
#define LE_ECALL_CRASH_INFO_CRASH_LEFT   0x8
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_RIGHT   0x10
 
#define LE_ECALL_CRASH_INFO_CRASH_RIGHT   0x20
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_REAR   0x40
 
#define LE_ECALL_CRASH_INFO_CRASH_REAR   0x80
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_ROLLOVER   0x100
 
#define LE_ECALL_CRASH_INFO_CRASH_ROLLOVER   0x200
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_SIDE   0x400
 
#define LE_ECALL_CRASH_INFO_CRASH_SIDE   0x800
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_FRONT_OR_SIDE   0x1000
 
#define LE_ECALL_CRASH_INFO_CRASH_FRONT_OR_SIDE   0x2000
 
#define LE_ECALL_CRASH_INFO_PRESENT_CRASH_ANOTHER_TYPE   0x4000
 
#define LE_ECALL_CRASH_INFO_CRASH_ANOTHER_TYPE   0x8000
 

Typedefs

typedef struct le_ecall_Call * le_ecall_CallRef_t
 
typedef uint32_t le_ecall_PropulsionTypeBitMask_t
 
typedef uint64_t le_ecall_DiagnosticResultBitMask_t
 
typedef uint32_t le_ecall_CrashInfoBitMask_t
 
typedef struct le_ecall_StateChangeHandler * le_ecall_StateChangeHandlerRef_t
 
typedef void(* le_ecall_StateChangeHandlerFunc_t) (le_ecall_CallRef_t ecallRef, le_ecall_State_t state, void *contextPtr)
 

Enumerations

enum  le_ecall_OpMode_t { LE_ECALL_NORMAL_MODE = 0, LE_ECALL_ONLY_MODE = 1, LE_ECALL_FORCED_PERSISTENT_ONLY_MODE = 2 }
 
enum  le_ecall_SystemStandard_t { LE_ECALL_PAN_EUROPEAN = 0, LE_ECALL_ERA_GLONASS = 1 }
 
enum  le_ecall_State_t {
  LE_ECALL_STATE_UNKNOWN = 0, LE_ECALL_STATE_STARTED = 1, LE_ECALL_STATE_CONNECTED = 2, LE_ECALL_STATE_DISCONNECTED = 3,
  LE_ECALL_STATE_WAITING_PSAP_START_IND = 4, LE_ECALL_STATE_PSAP_START_IND_RECEIVED = 5, LE_ECALL_STATE_MSD_TX_STARTED = 6, LE_ECALL_STATE_LLNACK_RECEIVED = 7,
  LE_ECALL_STATE_LLACK_RECEIVED = 8, LE_ECALL_STATE_MSD_TX_COMPLETED = 9, LE_ECALL_STATE_MSD_TX_FAILED = 10, LE_ECALL_STATE_ALACK_RECEIVED_POSITIVE = 11,
  LE_ECALL_STATE_ALACK_RECEIVED_CLEAR_DOWN = 12, LE_ECALL_STATE_STOPPED = 13, LE_ECALL_STATE_RESET = 14, LE_ECALL_STATE_COMPLETED = 15,
  LE_ECALL_STATE_FAILED = 16, LE_ECALL_STATE_END_OF_REDIAL_PERIOD = 17, LE_ECALL_STATE_TIMEOUT_T2 = 18, LE_ECALL_STATE_TIMEOUT_T3 = 19,
  LE_ECALL_STATE_TIMEOUT_T5 = 20, LE_ECALL_STATE_TIMEOUT_T6 = 21, LE_ECALL_STATE_TIMEOUT_T7 = 22, LE_ECALL_STATE_TIMEOUT_T9 = 23,
  LE_ECALL_STATE_TIMEOUT_T10 = 24
}
 
enum  le_ecall_MsdTxMode_t { LE_ECALL_TX_MODE_PULL = 0, LE_ECALL_TX_MODE_PUSH = 1 }
 
enum  le_ecall_MsdVehicleType_t {
  LE_ECALL_MSD_VEHICLE_PASSENGER_M1 = 0, LE_ECALL_MSD_VEHICLE_BUS_M2 = 1, LE_ECALL_MSD_VEHICLE_BUS_M3 = 2, LE_ECALL_MSD_VEHICLE_COMMERCIAL_N1 = 3,
  LE_ECALL_MSD_VEHICLE_HEAVY_N2 = 4, LE_ECALL_MSD_VEHICLE_HEAVY_N3 = 5, LE_ECALL_MSD_VEHICLE_MOTORCYCLE_L1E = 6, LE_ECALL_MSD_VEHICLE_MOTORCYCLE_L2E = 7,
  LE_ECALL_MSD_VEHICLE_MOTORCYCLE_L3E = 8, LE_ECALL_MSD_VEHICLE_MOTORCYCLE_L4E = 9, LE_ECALL_MSD_VEHICLE_MOTORCYCLE_L5E = 10, LE_ECALL_MSD_VEHICLE_MOTORCYCLE_L6E = 11,
  LE_ECALL_MSD_VEHICLE_MOTORCYCLE_L7E = 12
}
 
enum  le_ecall_MsdCoordinateType_t { LE_ECALL_MSD_COORDINATE_SYSTEM_TYPE_ABSENT = 0, LE_ECALL_MSD_COORDINATE_SYSTEM_TYPE_WGS84 = 1, LE_ECALL_MSD_COORDINATE_SYSTEM_TYPE_PZ90 = 2 }
 

Detailed Description

Type definitions for le_ecall.