diff options
Diffstat (limited to 'fw/fe310/eos/net/cell.h')
-rw-r--r-- | fw/fe310/eos/net/cell.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fw/fe310/eos/net/cell.h b/fw/fe310/eos/net/cell.h index 1e6d1b2..2717eb5 100644 --- a/fw/fe310/eos/net/cell.h +++ b/fw/fe310/eos/net/cell.h @@ -29,10 +29,9 @@ #define EOS_CELL_MTYPE_VOICE_BUSY 9 #define EOS_CELL_MTYPE_VOICE_ERR 10 -#define EOS_CELL_MTYPE_SMS_LIST 1 -#define EOS_CELL_MTYPE_SMS_SEND 2 -#define EOS_CELL_MTYPE_SMS_MSG_NEW 3 -#define EOS_CELL_MTYPE_SMS_MSG_ITEM 4 +#define EOS_CELL_MTYPE_SMS_MSG 1 +#define EOS_CELL_MTYPE_SMS_LIST 2 +#define EOS_CELL_MTYPE_SMS_LIST_ITEM 3 #define EOS_CELL_MTYPE_USSD_REQUEST 1 #define EOS_CELL_MTYPE_USSD_REPLY 2 @@ -62,7 +61,8 @@ #define EOS_CELL_PDP_SIZE_ARG 64 #define EOS_CELL_MAX_USSD_STR 128 -#define EOS_CELL_MAX_DIAL_STR 128 +#define EOS_CELL_MAX_DIAL_STR 16 +#define EOS_CELL_MAX_SMS_TEXT 160 void eos_cell_init(void); void eos_cell_set_handler(unsigned char mtype, eos_evt_handler_t handler); @@ -80,3 +80,6 @@ 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); |