le_sms_common.h File Reference

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

Go to the source code of this file.

Macros

#define LE_SMS_TIMESTAMP_MAX_LEN   20
 
#define LE_SMS_TIMESTAMP_MAX_BYTES   21
 
#define LE_SMS_TEXT_MAX_LEN   160
 
#define LE_SMS_TEXT_MAX_BYTES   161
 
#define LE_SMS_BINARY_MAX_BYTES   140
 
#define LE_SMS_UCS2_MAX_BYTES   140
 
#define LE_SMS_UCS2_MAX_CHARS   70
 
#define LE_SMS_PDU_MAX_PAYLOAD   140
 
#define LE_SMS_GSM_PDU_MAX_BYTES   176
 
#define LE_SMS_PDU_MAX_BYTES   255
 

Typedefs

typedef struct le_sms_Msg * le_sms_MsgRef_t
 
typedef struct le_sms_MsgList * le_sms_MsgListRef_t
 
typedef struct le_sms_RxMessageHandler * le_sms_RxMessageHandlerRef_t
 
typedef struct le_sms_FullStorageEventHandler * le_sms_FullStorageEventHandlerRef_t
 
typedef void(* le_sms_CallbackResultFunc_t) (le_sms_MsgRef_t msgRef, le_sms_Status_t status, void *contextPtr)
 
typedef void(* le_sms_RxMessageHandlerFunc_t) (le_sms_MsgRef_t msgRef, void *contextPtr)
 
typedef void(* le_sms_FullStorageHandlerFunc_t) (le_sms_Storage_t storage, void *contextPtr)
 

Enumerations

enum  le_sms_Format_t {
  LE_SMS_FORMAT_PDU = 0, LE_SMS_FORMAT_TEXT = 1, LE_SMS_FORMAT_BINARY = 2, LE_SMS_FORMAT_UCS2 = 3,
  LE_SMS_FORMAT_UNKNOWN = 4
}
 
enum  le_sms_Type_t { LE_SMS_TYPE_RX = 0, LE_SMS_TYPE_TX = 1, LE_SMS_TYPE_BROADCAST_RX = 2, LE_SMS_TYPE_STATUS_REPORT = 3 }
 
enum  le_sms_Status_t {
  LE_SMS_RX_READ = 0, LE_SMS_RX_UNREAD = 1, LE_SMS_STORED_SENT = 2, LE_SMS_STORED_UNSENT = 3,
  LE_SMS_SENT = 4, LE_SMS_SENDING = 5, LE_SMS_UNSENT = 6, LE_SMS_SENDING_FAILED = 7,
  LE_SMS_SENDING_TIMEOUT = 8, LE_SMS_STATUS_UNKNOWN = 9
}
 
enum  le_sms_Languages_t {
  LE_SMS_LANGUAGE_UNKNOWN = 0, LE_SMS_LANGUAGE_ENGLISH = 1, LE_SMS_LANGUAGE_FRENCH = 2, LE_SMS_LANGUAGE_SPANISH = 3,
  LE_SMS_LANGUAGE_JAPANESE = 4, LE_SMS_LANGUAGE_KOREAN = 5, LE_SMS_LANGUAGE_CHINESE = 6, LE_SMS_LANGUAGE_HEBREW = 7,
  LE_SMS_LANGUAGE_MAX = 8
}
 
enum  le_sms_CdmaServiceCat_t {
  LE_SMS_CDMA_SVC_CAT_UNKNOWN = 0, LE_SMS_CDMA_SVC_CAT_EMERGENCY_BROADCAST = 1, LE_SMS_CDMA_SVC_CAT_ADMINISTRATIVE = 2, LE_SMS_CDMA_SVC_CAT_MAINTENANCE = 3,
  LE_SMS_CDMA_SVC_CAT_GENERAL_NEWS_LOCAL = 4, LE_SMS_CDMA_SVC_CAT_GENERAL_NEWS_REGIONAL = 5, LE_SMS_CDMA_SVC_CAT_GENERAL_NEWS_NATIONAL = 6, LE_SMS_CDMA_SVC_CAT_GENERAL_NEWS_INTERNATIONAL = 7,
  LE_SMS_CDMA_SVC_CAT_BUSINESS_NEWS_LOCAL = 8, LE_SMS_CDMA_SVC_CAT_BUSINESS_NEWS_REGIONAL = 9, LE_SMS_CDMA_SVC_CAT_BUSINESS_NEWS_NATIONAL = 10, LE_SMS_CDMA_SVC_CAT_BUSINESS_NEWS_INTERNATIONAL = 11,
  LE_SMS_CDMA_SVC_CAT_SPORTS_NEWS_LOCAL = 12, LE_SMS_CDMA_SVC_CAT_SPORTS_NEWS_REGIONAL = 13, LE_SMS_CDMA_SVC_CAT_SPORTS_NEWS_NATIONAL = 14, LE_SMS_CDMA_SVC_CAT_SPORTS_NEWS_INTERNATIONAL = 15,
  LE_SMS_CDMA_SVC_CAT_ENTERTAINMENT_NEWS_LOCAL = 16, LE_SMS_CDMA_SVC_CAT_ENTERTAINMENT_NEWS_REGIONAL = 17, LE_SMS_CDMA_SVC_CAT_ENTERTAINMENT_NEWS_NATIONAL = 18, LE_SMS_CDMA_SVC_CAT_ENTERTAINMENT_NEWS_INTERNATIONAL = 19,
  LE_SMS_CDMA_SVC_CAT_LOCAL_WEATHER = 20, LE_SMS_CDMA_SVC_CAT_TRAFFIC_REPORTS = 21, LE_SMS_CDMA_SVC_CAT_LOCAL_FLIGHT_SCHEDULES = 22, LE_SMS_CDMA_SVC_CAT_RESTAURANTS = 23,
  LE_SMS_CDMA_SVC_CAT_LODGINGS = 24, LE_SMS_CDMA_SVC_CAT_RETAIL_DIRECTORY = 25, LE_SMS_CDMA_SVC_CAT_ADVERTISEMENTS = 26, LE_SMS_CDMA_SVC_CAT_STOCK_QUOTES = 27,
  LE_SMS_CDMA_SVC_CAT_EMPLOYMENT_OPPORTUNITIES = 28, LE_SMS_CDMA_SVC_CAT_MEDICAL = 29, LE_SMS_CDMA_SVC_CAT_TECHNOLOGY_NEWS = 30, LE_SMS_CDMA_SVC_CAT_MULTI_CAT = 31,
  LE_SMS_CDMA_SVC_CAT_CATPT = 32, LE_SMS_CDMA_SVC_CAT_MAX = 33
}
 
enum  le_sms_Storage_t { LE_SMS_STORAGE_NV = 0, LE_SMS_STORAGE_SIM = 1, LE_SMS_STORAGE_MAX = 2 }
 
enum  le_sms_ErrorCode3GPP2_t {
  LE_SMS_ERROR_ADDR_VACANT = 0, LE_SMS_ERROR_ADDR_TRANSLATION_FAILURE = 1, LE_SMS_ERROR_NETWORK_RESOURCE_SHORTAGE = 2, LE_SMS_ERROR_NETWORK_FAILURE = 3,
  LE_SMS_ERROR_INVALID_TELESERVICE_ID = 4, LE_SMS_ERROR_NETWORK_OTHER = 5, LE_SMS_ERROR_NO_PAGE_RESPONSE = 6, LE_SMS_ERROR_DEST_BUSY = 7,
  LE_SMS_ERROR_NO_ACK = 8, LE_SMS_ERROR_DEST_RESOURCE_SHORTAGE = 9, LE_SMS_ERROR_SMS_DELIVERY_POSTPONED = 10, LE_SMS_ERROR_DEST_OUT_OF_SERV = 11,
  LE_SMS_ERROR_DEST_NOT_AT_ADDR = 12, LE_SMS_ERROR_DEST_OTHER = 13, LE_SMS_ERROR_RADIO_IF_RESOURCE_SHORTAGE = 14, LE_SMS_ERROR_RADIO_IF_INCOMPATABILITY = 15,
  LE_SMS_ERROR_RADIO_IF_OTHER = 16, LE_SMS_ERROR_ENCODING = 17, LE_SMS_ERROR_SMS_ORIG_DENIED = 18, LE_SMS_ERROR_SMS_TERM_DENIED = 19,
  LE_SMS_ERROR_SUPP_SERV_NOT_SUPP = 20, LE_SMS_ERROR_SMS_NOT_SUPP = 21, LE_SMS_ERROR_MISSING_EXPECTED_PARAM = 22, LE_SMS_ERROR_MISSING_MAND_PARAM = 23,
  LE_SMS_ERROR_UNRECOGNIZED_PARAM_VAL = 24, LE_SMS_ERROR_UNEXPECTED_PARAM_VAL = 25, LE_SMS_ERROR_USER_DATA_SIZE_ERR = 26, LE_SMS_ERROR_GENERAL_OTHER = 27,
  LE_SMS_ERROR_3GPP2_PLATFORM_SPECIFIC = 28, LE_SMS_ERROR_3GPP2_MAX = 29
}
 
enum  le_sms_ErrorCode_t {
  LE_SMS_RP_ERROR_UNASSIGNED_NUMBER = 0, LE_SMS_RP_ERROR_OPERATOR_DETERMINED_BARRING = 1, LE_SMS_RP_ERROR_CALL_BARRED = 2, LE_SMS_RP_ERROR_RESERVED = 3,
  LE_SMS_RP_ERROR_SMS_TRANSFER_REJECTED = 4, LE_SMS_RP_ERROR_MEMORY_CAP_EXCEEDED = 5, LE_SMS_RP_ERROR_DESTINATION_OUT_OF_ORDER = 6, LE_SMS_RP_ERROR_UNIDENTIFIED_SUBSCRIBER = 7,
  LE_SMS_RP_ERROR_FACILITY_REJECTED = 8, LE_SMS_RP_ERROR_UNKNOWN_SUBSCRIBER = 9, LE_SMS_RP_ERROR_NETWORK_OUT_OF_ORDER = 10, LE_SMS_RP_ERROR_TEMPORARY_FAILURE = 11,
  LE_SMS_RP_ERROR_CONGESTION = 12, LE_SMS_RP_ERROR_RESOURCES_UNAVAILABLE = 13, LE_SMS_RP_ERROR_REQUESTED_FACILITY_NOT_SUBSCRIBED = 14, LE_SMS_RP_ERROR_REQUESTED_FACILITY_NOT_IMPLEMENTED = 15,
  LE_SMS_RP_ERROR_INVALID_SMS_TRANSFER_REFERENCE_VALUE = 16, LE_SMS_RP_ERROR_SEMANTICALLY_INCORRECT_MESSAGE = 17, LE_SMS_RP_ERROR_INVALID_MANDATORY_INFO = 18, LE_SMS_RP_ERROR_MESSAGE_TYPE_NOT_IMPLEMENTED = 19,
  LE_SMS_RP_ERROR_MESSAGE_NOT_COMPATABLE_WITH_SMS = 20, LE_SMS_RP_ERROR_INFO_ELEMENT_NOT_IMPLEMENTED = 21, LE_SMS_RP_ERROR_PROTOCOL_ERROR = 22, LE_SMS_RP_ERROR_INTERWORKING = 23,
  LE_SMS_TP_ERROR_TELE_INTERWORKING_NOT_SUPPORTED = 24, LE_SMS_TP_ERROR_SHORT_MESSAGE_TYPE_0_NOT_SUPPORTED = 25, LE_SMS_TP_ERROR_SHORT_MESSAGE_CANNOT_BE_REPLACED = 26, LE_SMS_TP_ERROR_UNSPECIFIED_PID_ERROR = 27,
  LE_SMS_TP_ERROR_DCS_NOT_SUPPORTED = 28, LE_SMS_TP_ERROR_MESSAGE_CLASS_NOT_SUPPORTED = 29, LE_SMS_TP_ERROR_UNSPECIFIED_DCS_ERROR = 30, LE_SMS_TP_ERROR_COMMAND_CANNOT_BE_ACTIONED = 31,
  LE_SMS_TP_ERROR_COMMAND_UNSUPPORTED = 32, LE_SMS_TP_ERROR_UNSPECIFIED_COMMAND_ERROR = 33, LE_SMS_TP_ERROR_TPDU_NOT_SUPPORTED = 34, LE_SMS_TP_ERROR_SC_BUSY = 35,
  LE_SMS_TP_ERROR_NO_SC_SUBSCRIPTION = 36, LE_SMS_TP_ERROR_SC_SYS_FAILURE = 37, LE_SMS_TP_ERROR_INVALID_SME_ADDRESS = 38, LE_SMS_TP_ERROR_DESTINATION_SME_BARRED = 39,
  LE_SMS_TP_ERROR_SM_REJECTED_OR_DUPLICATE = 40, LE_SMS_TP_ERROR_TP_VPF_NOT_SUPPORTED = 41, LE_SMS_TP_ERROR_TP_VP_NOT_SUPPORTED = 42, LE_SMS_TP_ERROR_SIM_SMS_STORAGE_FULL = 43,
  LE_SMS_TP_ERROR_NO_SMS_STORAGE_CAP_IN_SIM = 44, LE_SMS_TP_ERROR_MS_ERROR = 45, LE_SMS_TP_ERROR_MEMORY_CAP_EXCEEDED = 46, LE_SMS_TP_ERROR_SIM_APP_TOOLKIT_BUSY = 47,
  LE_SMS_TP_ERROR_SIM_DATA_DOWNLOAD_ERROR = 48, LE_SMS_TP_ERROR_UNSPECIFIED_ERROR = 49, LE_SMS_ERROR_3GPP_PLATFORM_SPECIFIC = 50, LE_SMS_ERROR_3GPP_MAX = 51
}
 

Detailed Description

Type definitions for le_sms.