summaryrefslogtreecommitdiff
path: root/src/atcmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/atcmd.h')
-rw-r--r--src/atcmd.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/atcmd.h b/src/atcmd.h
index de6eeee..16b991f 100644
--- a/src/atcmd.h
+++ b/src/atcmd.h
@@ -62,10 +62,15 @@ int atcmd_v_write(int fd, int mode);
int atcmd_q_write(int fd, int mode);
int atcmd_plus_cmgf_write(int fd, int mode);
int atcmd_plus_cmgw_write(int fd, const char *msg, size_t msg_len);
+int atcmd_plus_cmgw_write_text(int fd, const char *addr, int addr_type,
+ const char *status, const char *msg, size_t msg_len);
int atcmd_plus_cmgs_write(int fd, const char *msg, size_t msg_len);
+int atcmd_plus_cmgs_write_text(int fd, const char *addr, const char *msg, size_t msg_len);
int atcmd_plus_cmss_write(int fd, int index, const char *addr, int addr_type);
int atcmd_plus_cmgd_write(int fd, int index);
+int isCdmaTypeModel();
+
#define STORE_NAME_LEN 2
#define STORE_NAME_SIZE (STORE_NAME_LEN + 1)
#define STORE_LOCATIONS_MAX 8
@@ -87,11 +92,11 @@ struct msg_store {
};
int atcmd_plus_cpms_read(int fd, struct data_store *read_store,
- struct data_store *send_store, struct data_store *new_store);
+ struct data_store *send_store, struct data_store *new_store, const char *model);
int atcmd_plus_cpms_test(int fd, struct store_locations *read_loc,
struct store_locations *send_loc, struct store_locations *new_loc);
int atcmd_plus_cpms_write(int fd, const char *read_name,
- const char *send_name, const char *new_name);
+ const char *send_name, const char *new_name, const char *model);
struct phonebook_store {
struct data_store selected;
@@ -105,9 +110,10 @@ struct phonebook_store {
int atcmd_plus_cpbs_read(int fd, struct data_store *store);
int atcmd_plus_cpbs_test(int fd, struct store_locations *loc);
int atcmd_plus_cpbs_write(int fd, const char *name);
-
int atcmd_plus_cpbr_test(int fd, struct phonebook_store *store);
+int atcmd_plus_gmm_read(int fd);
+
int atcmd_init(int fd, int read_timeout);
int sms_device_close(int fd);
int sms_device_open(void);