summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/include/cell.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-05-06 11:38:29 +0200
committerUros Majstorovic <majstor@majstor.org>2020-05-06 11:38:29 +0200
commit2b73dd935359e57ca32f87e3afd2435d5991685e (patch)
treee18a35cb41f018f1ad37ba2a20b4be2dc7e9b45a /code/esp32/components/eos/include/cell.h
parent03925afaa3117243a7b29fa4327ea378c3e6eee6 (diff)
at cmd processing; pppos driver
Diffstat (limited to 'code/esp32/components/eos/include/cell.h')
-rw-r--r--code/esp32/components/eos/include/cell.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/code/esp32/components/eos/include/cell.h b/code/esp32/components/eos/include/cell.h
index f3eb89d..4a2cfbc 100644
--- a/code/esp32/components/eos/include/cell.h
+++ b/code/esp32/components/eos/include/cell.h
@@ -11,7 +11,8 @@
#define EOS_CELL_UART_MODE_NONE 0
#define EOS_CELL_UART_MODE_PPP 1
-#define EOS_CELL_UART_MODE_RELAY 2
+#define EOS_CELL_UART_MODE_ATCMD 2
+#define EOS_CELL_UART_MODE_RELAY 3
void eos_pcm_init(void);
@@ -21,7 +22,16 @@ void eos_pcm_start(void);
void eos_pcm_stop(void);
void eos_modem_init(void);
-ssize_t eos_modem_write(void *data, size_t size);
-void eos_modem_set_mode(char mode);
+
+void eos_modem_flush(void);
+size_t eos_modem_write(void *data, size_t size);
+size_t eos_modem_read(void *data, size_t size, uint32_t timeout);
+int eos_modem_readln(char *buf, size_t buf_size, uint32_t timeout);
+int eos_modem_resp(char *ok_str, char *err_str, uint32_t timeout);
+
+uint8_t eos_modem_get_mode(void);
+int eos_modem_set_mode(uint8_t mode);
+int eos_modem_take(void);
+void eos_modem_give(void);
void eos_cell_init(void); \ No newline at end of file