diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-25 11:59:45 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-25 11:59:45 +0200 |
commit | ef6cfcc2710312165fdee936930bf971bf3f2b7b (patch) | |
tree | 9d49b36e3e8fc0543bc7bb326e835f1429300be2 /code/esp32/components/eos/include | |
parent | 702f3716075528d6ad390615b5df9b79264b40bb (diff) |
rename fe310 -> net
Diffstat (limited to 'code/esp32/components/eos/include')
-rw-r--r-- | code/esp32/components/eos/include/net.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/code/esp32/components/eos/include/net.h b/code/esp32/components/eos/include/net.h new file mode 100644 index 0000000..21b12dc --- /dev/null +++ b/code/esp32/components/eos/include/net.h @@ -0,0 +1,19 @@ +#include <stdint.h> + +#define EOS_FE310_CMD_FLAG_ONEW 0x10 + +#define EOS_FE310_CMD_WIFI_CONNECT 1 +#define EOS_FE310_CMD_WIFI_DISCONNECT 2 +#define EOS_FE310_CMD_WIFI_SCAN 3 +#define EOS_FE310_CMD_WIFI_PKT 4 +#define EOS_FE310_CMD_MODEM_DATA 5 +#define EOS_FE310_CMD_MODEM_CALL 6 + +#define EOS_FE310_MAX_CMD 8 +#define EOS_FE310_SIZE_Q 64 +#define EOS_FE310_SIZE_BUF 2048 + +typedef void (*eos_fe310_fptr_t) (unsigned char, unsigned char *, uint16_t); + +void eos_fe310_init(void); +int eos_fe310_send(unsigned char cmd, unsigned char *buffer, uint16_t len); |