blob: 17847ce9584a1703b7e45b43f9ad3e40a41dfc43 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#include <sys/types.h>
#define EOS_CELL_MTYPE_READY 0
#define EOS_CELL_MTYPE_DATA 1
#define EOS_CELL_MTYPE_AUDIO 2
#define EOS_CELL_MTYPE_DATA_START 4
#define EOS_CELL_MTYPE_DATA_STOP 5
#define EOS_CELL_MTYPE_AUDIO_START 6
#define EOS_CELL_MTYPE_AUDIO_STOP 7
#define EOS_CELL_UART_MODE_NONE 0
#define EOS_CELL_UART_MODE_ATCMD 1
#define EOS_CELL_UART_MODE_PPP 2
#define EOS_CELL_UART_MODE_RELAY 3
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);
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(uint32_t timeout);
void eos_modem_give(void);
void eos_modem_sleep(void);
void eos_modem_wake(uint8_t source);
void eos_ppp_set_apn(char *apn);
void eos_ppp_set_auth(char *user, char *pass);
int eos_ppp_connect(void);
int eos_ppp_disconnect(void);
void eos_cell_init(void);
|