summaryrefslogtreecommitdiff
path: root/code/esp32/components
diff options
context:
space:
mode:
Diffstat (limited to 'code/esp32/components')
-rw-r--r--code/esp32/components/eos/cell_modem.c (renamed from code/esp32/components/eos/modem.c)0
-rw-r--r--code/esp32/components/eos/cell_pcm.c (renamed from code/esp32/components/eos/pcm.c)0
-rw-r--r--code/esp32/components/eos/include/cell.h18
-rw-r--r--code/esp32/components/eos/include/modem.h4
-rw-r--r--code/esp32/components/eos/include/pcm.h6
5 files changed, 18 insertions, 10 deletions
diff --git a/code/esp32/components/eos/modem.c b/code/esp32/components/eos/cell_modem.c
index 7e3131f..7e3131f 100644
--- a/code/esp32/components/eos/modem.c
+++ b/code/esp32/components/eos/cell_modem.c
diff --git a/code/esp32/components/eos/pcm.c b/code/esp32/components/eos/cell_pcm.c
index edfcf88..edfcf88 100644
--- a/code/esp32/components/eos/pcm.c
+++ b/code/esp32/components/eos/cell_pcm.c
diff --git a/code/esp32/components/eos/include/cell.h b/code/esp32/components/eos/include/cell.h
new file mode 100644
index 0000000..61da67a
--- /dev/null
+++ b/code/esp32/components/eos/include/cell.h
@@ -0,0 +1,18 @@
+#include <sys/types.h>
+
+#define EOS_CELL_MTYPE_DATA 0
+#define EOS_CELL_MTYPE_AUDIO 1
+
+#define EOS_CELL_MTYPE_DATA_START 2
+#define EOS_CELL_MTYPE_DATA_STOP 3
+
+#define EOS_CELL_MTYPE_AUDIO_START 2
+#define EOS_CELL_MTYPE_AUDIO_STOP 3
+
+void eos_pcm_init(void);
+ssize_t eos_pcm_write(void *data, size_t size);
+void eos_pcm_call(void);
+
+void eos_modem_init(void);
+ssize_t eos_modem_write(void *data, size_t size);
+void eos_modem_set_mode(char mode);
diff --git a/code/esp32/components/eos/include/modem.h b/code/esp32/components/eos/include/modem.h
deleted file mode 100644
index 6a80918..0000000
--- a/code/esp32/components/eos/include/modem.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <sys/types.h>
-
-void eos_modem_init(void);
-ssize_t eos_modem_write(void *data, size_t size); \ No newline at end of file
diff --git a/code/esp32/components/eos/include/pcm.h b/code/esp32/components/eos/include/pcm.h
deleted file mode 100644
index dcccea7..0000000
--- a/code/esp32/components/eos/include/pcm.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <sys/types.h>
-#include <stdint.h>
-
-void eos_pcm_init(void);
-ssize_t eos_pcm_write(void *data, size_t size);
-void eos_pcm_call(void);