summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/net/cell.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/net/cell.h')
-rw-r--r--fw/fe310/eos/net/cell.h35
1 files changed, 25 insertions, 10 deletions
diff --git a/fw/fe310/eos/net/cell.h b/fw/fe310/eos/net/cell.h
index 2717eb5..ac334e9 100644
--- a/fw/fe310/eos/net/cell.h
+++ b/fw/fe310/eos/net/cell.h
@@ -55,14 +55,18 @@
#define EOS_CELL_SMS_ADDRTYPE_ALPHA 2
#define EOS_CELL_SMS_ADDRTYPE_OTHER 3
-#define EOS_CELL_PDP_SIZE_APN 64
-#define EOS_CELL_PDP_SIZE_USR 64
-#define EOS_CELL_PDP_SIZE_PWD 64
-#define EOS_CELL_PDP_SIZE_ARG 64
+#define EOS_CELL_SIZE_PHNUM 16
-#define EOS_CELL_MAX_USSD_STR 128
-#define EOS_CELL_MAX_DIAL_STR 16
-#define EOS_CELL_MAX_SMS_TEXT 160
+#define EOS_CELL_SMS_SIZE_ADDR 20
+#define EOS_CELL_SMS_SIZE_TS 25
+#define EOS_CELL_SMS_SIZE_TXT 160
+
+#define EOS_CELL_USSD_SIZE_REQ 128
+
+#define EOS_CELL_PDP_SIZE_APN 63
+#define EOS_CELL_PDP_SIZE_USR 63
+#define EOS_CELL_PDP_SIZE_PWD 63
+#define EOS_CELL_PDP_SIZE_ARG 63
void eos_cell_init(void);
void eos_cell_set_handler(unsigned char mtype, eos_evt_handler_t handler);
@@ -80,6 +84,17 @@ int eos_cell_voice_dial(char *num, unsigned char *buffer, int sync);
int eos_cell_voice_answer(unsigned char *buffer, int sync);
int eos_cell_voice_hangup(unsigned char *buffer, int sync);
unsigned char *eos_cell_voice_pcm_buffer(uint16_t *offset);
-int eos_cell_sms_send(char *num, char *text, unsigned char *buffer, int sync);
-int eos_cell_sms_recv(unsigned char *buffer, uint16_t len, char *num, uint16_t num_size, char *text, uint16_t text_size);
-int eos_cell_sms_parse(unsigned char *buffer, uint16_t len, char **num, uint16_t *num_len, char **text, uint16_t *text_len);
+int eos_cell_sms_send(char *addr, char *txt, unsigned char *buffer, int sync);
+int _eos_cell_sms_parse(unsigned char *buffer, uint16_t len, char **addr, uint16_t *addr_len, char **txt, uint16_t *txt_len);
+int eos_cell_sms_parse(unsigned char *buffer, uint16_t len, char *addr, uint16_t addr_size, char *txt, uint16_t txt_size);
+
+int eos_cell_pdp_get(unsigned char atype, char *arg, uint16_t arg_size, unsigned char *buffer);
+int eos_cell_pdp_set(unsigned char atype, char *arg, unsigned char *buffer, int sync);
+int eos_cell_pdp_get_apn(char *apn, uint16_t apn_size, unsigned char *buffer);
+int eos_cell_pdp_set_apn(char *apn, unsigned char *buffer, int sync);
+int eos_cell_pdp_get_usr(char *usr, uint16_t usr_size, unsigned char *buffer);
+int eos_cell_pdp_set_usr(char *usr, unsigned char *buffer, int sync);
+int eos_cell_pdp_get_pwd(char *pwd, uint16_t pwd_size, unsigned char *buffer);
+int eos_cell_pdp_set_pwd(char *pwd, unsigned char *buffer, int sync);
+int eos_cell_pdp_connect(unsigned char *buffer, int sync);
+int eos_cell_pdp_disconnect(unsigned char *buffer, int sync);