summaryrefslogtreecommitdiff
path: root/fw/esp32/components/eos/include/cell.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/esp32/components/eos/include/cell.h')
-rw-r--r--fw/esp32/components/eos/include/cell.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/fw/esp32/components/eos/include/cell.h b/fw/esp32/components/eos/include/cell.h
index c1e7545..30347c1 100644
--- a/fw/esp32/components/eos/include/cell.h
+++ b/fw/esp32/components/eos/include/cell.h
@@ -1,6 +1,10 @@
#include <sys/types.h>
#include <stdint.h>
+#include "net.h"
+
+#define EOS_CELL_MTU EOS_NET_MTU
+
#define EOS_CELL_MTYPE_DEV 0x10
#define EOS_CELL_MTYPE_VOICE 0x20
#define EOS_CELL_MTYPE_SMS 0x30
@@ -95,6 +99,8 @@ void eos_modem_give(void);
void eos_modem_sleep_req(void);
void eos_modem_wake(void);
+void eos_modem_deep_sleep(void);
+void eos_modem_deep_wake(void);
void eos_ppp_get_apn(char *apn);
void eos_ppp_set_apn(char *apn);
@@ -110,10 +116,10 @@ void eos_cell_pcm_push(unsigned char *data, size_t size);
void eos_cell_pcm_start(void);
void eos_cell_pcm_stop(void);
-void eos_cell_voice_handler(unsigned char mtype, unsigned char *buffer, uint16_t buf_len);
-void eos_cell_sms_handler(unsigned char mtype, unsigned char *buffer, uint16_t buf_len);
-void eos_cell_ussd_handler(unsigned char mtype, unsigned char *buffer, uint16_t buf_len);
-void eos_cell_pdp_handler(unsigned char mtype, unsigned char *buffer, uint16_t buf_len);
+void eos_cell_voice_handler(unsigned char mtype, EOSMessage *msg, uint16_t len);
+void eos_cell_sms_handler(unsigned char mtype, EOSMessage *msg, uint16_t len);
+void eos_cell_ussd_handler(unsigned char mtype, EOSMessage *msg, uint16_t len);
+void eos_cell_pdp_handler(unsigned char mtype, EOSMessage *msg, uint16_t len);
void eos_cell_voice_init(void);
void eos_cell_sms_init(void);