diff options
| author | Uros Majstorovic <majstor@majstor.org> | 2026-01-08 01:01:17 +0100 |
|---|---|---|
| committer | Uros Majstorovic <majstor@majstor.org> | 2026-01-08 01:01:17 +0100 |
| commit | f4c5fb24507080506741b8ac2c6b027b401d02c8 (patch) | |
| tree | ca9ce3d7f5db62df2e7b3f2ffd7b65f8e35b98aa /yocto/esp32mod/esp32.h | |
| parent | b9a36b4bcc6ba144c8376172083e00bbdfa9ec78 (diff) | |
Diffstat (limited to 'yocto/esp32mod/esp32.h')
| -rwxr-xr-x | yocto/esp32mod/esp32.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/yocto/esp32mod/esp32.h b/yocto/esp32mod/esp32.h new file mode 100755 index 0000000..b00cc4f --- /dev/null +++ b/yocto/esp32mod/esp32.h @@ -0,0 +1,16 @@ +#define ESP32_MTU 1500 + +#define ESP32_MAX_MTYPE 16 + +#define ESP32_MTYPE_SLEEP 0x20 /* does not have net handler */ + +#define ESP32_MTYPE_FLAG_ONEW 0x80 +#define ESP32_MTYPE_FLAG_REPL 0x40 +#define ESP32_MTYPE_FLAG_BRIDGE 0x08 + +#define ESP32_MTYPE_MASK 0x0F + +int esp32_send(unsigned char *buffer, int block); +int esp32_receive(unsigned char msg_type, int block, unsigned char **buffer); +unsigned char *esp32_alloc(void); +void esp32_free(unsigned char *buffer);
\ No newline at end of file |
