summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/include/cell.h
blob: f3eb89d9a0470c372ecea5eda76437d840942d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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  4
#define EOS_CELL_MTYPE_AUDIO_STOP   5

#define EOS_CELL_UART_MODE_NONE     0
#define EOS_CELL_UART_MODE_PPP      1
#define EOS_CELL_UART_MODE_RELAY    2

void eos_pcm_init(void);

ssize_t eos_pcm_read(unsigned char *data, size_t size);
int eos_pcm_push(unsigned char *data, size_t size);
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_cell_init(void);