diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-08-09 20:32:25 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-08-09 20:32:25 +0200 |
commit | e1dd295cbdb2d83b52ef74ebaf4e503d3589614f (patch) | |
tree | ea763304c2bec5091c35bdf3e50b066daa2b0ff8 /fw/esp32/components/eos/include | |
parent | 96140f9429e2c5dfece9f72ee06076cf9f1268af (diff) |
added new sms flags
Diffstat (limited to 'fw/esp32/components/eos/include')
-rw-r--r-- | fw/esp32/components/eos/include/gsm.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fw/esp32/components/eos/include/gsm.h b/fw/esp32/components/eos/include/gsm.h index 8f7b75f..7864b09 100644 --- a/fw/esp32/components/eos/include/gsm.h +++ b/fw/esp32/components/eos/include/gsm.h @@ -1,6 +1,7 @@ #define GSM_OK 0 #define GSM_ERR -1 #define GSM_ERR_SIZE -10 +#define GSM_ERR_NOT_SUPPORTED -11 #define GSM_TS_SIZE 25 #define GSM_UD_SIZE 160 @@ -102,6 +103,9 @@ #define GSM_FLAG_COMPRESS 0x0001 #define GSM_FLAG_DELETE 0x0002 #define GSM_FLAG_DISCARD 0x0004 +#define GSM_FLAG_TYPE0 0x0008 +#define GSM_FLAG_STATUS_REPORT 0x0010 +#define GSM_FLAG_REPLY_PATH 0x0020 /* message class */ #define GSM_FLAG_CLASS 0x0400 @@ -131,5 +135,5 @@ int gsm_7bit_enc(char *text, int text_len, char *pdu, int padb); int gsm_7bit_dec(char *pdu, char *text, int text_len, int padb); int gsm_addr_enc(char *addr, int addr_len, uint8_t addr_type, char *pdu, int pdu_size); int gsm_addr_dec(char *pdu, int pdu_len, char *addr, int *addr_len, uint8_t *addr_type); -int gsm_sms_enc(uint8_t pid, char *addr, int addr_len, uint8_t addr_type, uint8_t *udh, int udh_len, uint8_t *msg, int msg_len, uint8_t enc, uint16_t flags, char *pdu, int pdu_size); -int gsm_sms_dec(char *pdu, int pdu_len, uint8_t *pid, char *addr, int *addr_len, uint8_t *addr_type, uint8_t *udh, int *udh_len, uint8_t *msg, int *msg_len, char *ts, uint8_t *enc, uint16_t *flags); +int gsm_sms_enc(char *addr, int addr_len, uint8_t addr_type, uint8_t *udh, int udh_len, uint8_t *msg, int msg_len, uint8_t enc, uint16_t flags, char *pdu, int pdu_size); +int gsm_sms_dec(char *pdu, int pdu_len, char *addr, int *addr_len, uint8_t *addr_type, uint8_t *udh, int *udh_len, uint8_t *msg, int *msg_len, char *ts, uint8_t *enc, uint16_t *flags); |