summaryrefslogtreecommitdiff
path: root/fw/esp32/components/eos/include/net_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/esp32/components/eos/include/net_priv.h')
-rw-r--r--fw/esp32/components/eos/include/net_priv.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/fw/esp32/components/eos/include/net_priv.h b/fw/esp32/components/eos/include/net_priv.h
index fa1de61..5627e12 100644
--- a/fw/esp32/components/eos/include/net_priv.h
+++ b/fw/esp32/components/eos/include/net_priv.h
@@ -5,29 +5,26 @@ typedef struct NETConfig {
int sleep;
int sleep_req;
int present;
- int gpio_mosi;
- int gpio_miso;
- int gpio_sclk;
- int gpio_cs;
int gpio_rts;
int gpio_cts;
uint32_t dev;
spi_host_device_t spi_host;
spi_bus_config_t *spi_bus_cfg;
spi_slave_interface_config_t *spi_iface_cfg;
- spi_slave_transaction_t *spi_tr_cfg;
TaskHandle_t xchg_task_handle;
SemaphoreHandle_t mutex;
SemaphoreHandle_t bufq_mutex;
SemaphoreHandle_t bufq_semaph;
EOSBufQ *buf_q;
EOSMsgQ *send_q;
- eos_net_handler_t msg_handler;
+ eos_net_handler_t handler;
} NETConfig;
void _eos_net_init_gpio(NETConfig *config);
-unsigned char *_eos_net_alloc(NETConfig *config);
-void _eos_net_free(NETConfig *config, unsigned char *buf);
-int _eos_net_send(NETConfig *config, unsigned char mtype, unsigned char *buffer, uint16_t buf_len);
+void _eos_net_alloc(NETConfig *config, EOSMessage *msg);
+void _eos_net_free(NETConfig *config, EOSMessage *msg);
+int _eos_net_send(NETConfig *config, unsigned char mtype, EOSMessage *msg, uint16_t len);
void _eos_net_sleep_req(NETConfig *config);
void _eos_net_wake(NETConfig *config);
+void _eos_net_deep_sleep(NETConfig *config);
+void _eos_net_deep_wake(NETConfig *config);