luat_soc_sdk_2024 V1.0
luat_sms.h 文件参考
#include "luat_base.h"

浏览该文件的源代码.

结构体

struct  LUAT_SMS_MAIN_CFG_T
 
struct  LUAT_SMS_RECV_MSG_TIME_T
 
struct  LUAT_SMS_RECV_MSG_DCS_T
 
struct  LUAT_SMS_RECV_MSG_T
 

宏定义

#define LUAT_MSG_MAX_ADDR_LEN   80
 
#define LUAT_SMS_MAX_TXT_SIZE   640
 
#define LUAT_SMS_MAX_PDU_SIZE   180
 
#define LUAT_SMS_MAX_LENGTH_OF_ADDRESS_VALUE   40
 
#define LUAT_SMS_MAX_ADDR_STR_MAX_LEN   ((LUAT_SMS_MAX_LENGTH_OF_ADDRESS_VALUE + 1) * 4)
 

类型定义

typedef void(* LUAT_SMS_HANDLE_CB) (uint8_t event, void *param)
 
typedef void(* LUAT_SMS_HANDLE_SEND_CB) (int ret)
 

枚举

enum  LUAT_SMS_SEND_RET_CODE_E {
  SMS_SEND_OK = 0 , SMS_ME_FAILURE = 300 , SMS_SERVICE_OF_ME_RESV , SMS_OPERATION_NOT_ALLOWED ,
  SMS_OPERATION_NOT_SUPPORTED , SMS_INVALID_PDU_MODE_PARAMETER , SMS_INVALID_TEXT_MODE_PARAMETER , SMS_USIM_NOT_INSERTED = 310 ,
  SMS_USIM_PIN_REQUIRED , SMS_PHSIM_PIN_REQUIRED , SMS_USIM_FAILURE , SMS_USIM_BUSY ,
  SMS_USIM_WRONG , SMS_USIM_PUK_REQUIRED , SMS_USIM_PIN2_REQUIRED , SMS_USIM_PUK2_REQUIRED ,
  SMS_MEMORY_FAILURE = 320 , SMS_INVALID_MEM_INDEX , SMS_MEM_FULL , SMS_SMSC_ADDR_UNKNOWN = 330 ,
  SMS_NO_NETWORK_SERVICE , SMS_NETWORK_TIMEOUT , SMS_NO_CNMA_ACK_EXPECTED = 340 , SMS_UNKNOWN_ERROR = 500 ,
  SMS_INVALID_DATA = 550 , SMS_UNSUPPORT_TEXT_WITH_CHINESE = 555 , SMS_MAX_ERROR = 0xFFFF
}
 

函数

void luat_sms_init (void)
 初始化短信
 
int luat_sms_send_msg (uint8_t *p_input, char *p_des, bool is_pdu, int input_pdu_len)
 发送短信
 
void luat_sms_recv_msg_register_handler (LUAT_SMS_HANDLE_CB callback_fun)
 接受短信回调
 
void luat_sms_send_msg_register_handler (LUAT_SMS_HANDLE_SEND_CB callback_fun)
 发送短信回调