|
T-Box Basic dev
|
T-Box 短消息接口 More...
#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | tbox_sms_text_request_t |
| 文本短信发送请求。 More... | |
| struct | tbox_sms_pdu_request_t |
| PDU 短信发送请求。 More... | |
| 收到的短消息。 More... | |
Typedefs | |
| typedef void(* | tbox_sms_callback_t) (const tbox_sms_message_t *message, void *context) |
| 短消息接收回调。 | |
Enumerations | |
| enum | tbox_sms_format_t { TBOX_SMS_FORMAT_TEXT = 0 , TBOX_SMS_FORMAT_PDU = 1 } |
| 短消息格式。 More... | |
| enum | tbox_sms_encoding_t { TBOX_SMS_ENCODING_7BIT = 0 , TBOX_SMS_ENCODING_8BIT = 1 , TBOX_SMS_ENCODING_UCS2 = 2 } |
| 文本编码。 More... | |
| enum | tbox_sms_slot_t { TBOX_SMS_SLOT_1 = 0 , TBOX_SMS_SLOT_2 = 1 } |
| SIM 卡槽。 More... | |
| enum | tbox_sms_storage_t { TBOX_SMS_STORAGE_SIM = 0 , TBOX_SMS_STORAGE_NV = 1 , TBOX_SMS_STORAGE_DB = 2 , TBOX_SMS_STORAGE_NONE = 3 } |
| 短消息存储位置。 More... | |
| enum | tbox_sms_mode_t { TBOX_SMS_MODE_CDMA = 0 , TBOX_SMS_MODE_GW = 1 } |
| 短消息网络模式。 More... | |
Functions | |
| int | tbox_sms_register_callback (tbox_sms_callback_t callback, void *context) |
| 注册短消息接收回调。 | |
| int | tbox_sms_unregister_callback (void) |
| 注销短消息接收回调。 | |
| int | tbox_sms_send_text (const tbox_sms_text_request_t *request) |
| 发送文本短信。 | |
| int | tbox_sms_send_pdu (const tbox_sms_pdu_request_t *request) |
| 发送 PDU 短信。 | |
| int | tbox_sms_delete (tbox_sms_storage_t storage, tbox_sms_mode_t mode, uint32_t storage_index) |
| 删除已存储的短信。 | |
| int | tbox_sms_get_service_center (char *value, size_t *length) |
| 查询短信中心号码。 | |
| int | tbox_sms_set_service_center (const char *value) |
| 设置短信中心号码。 | |
T-Box 短消息接口