7#ifndef ZEPHYR_DRIVERS_WIFI_ESWIFI_ESWIFI_OFFLOAD_H_
8#define ZEPHYR_DRIVERS_WIFI_ESWIFI_ESWIFI_OFFLOAD_H_
13#define ESWIFI_OFFLOAD_MAX_SOCKETS 4
eswifi_transport_type
Definition: eswifi_offload.h:15
@ ESWIFI_TRANSPORT_UDP_LITE
Definition: eswifi_offload.h:18
@ ESWIFI_TRANSPORT_UDP
Definition: eswifi_offload.h:17
@ ESWIFI_TRANSPORT_TCP_SSL
Definition: eswifi_offload.h:19
@ ESWIFI_TRANSPORT_TCP
Definition: eswifi_offload.h:16
eswifi_socket_state
Definition: eswifi_offload.h:22
@ ESWIFI_SOCKET_STATE_NONE
Definition: eswifi_offload.h:23
@ ESWIFI_SOCKET_STATE_CONNECTED
Definition: eswifi_offload.h:25
@ ESWIFI_SOCKET_STATE_CONNECTING
Definition: eswifi_offload.h:24
@ ESWIFI_SOCKET_STATE_ACCEPTING
Definition: eswifi_offload.h:26
void(* net_context_recv_cb_t)(struct net_context *context, struct net_pkt *pkt, union net_ip_header *ip_hdr, union net_proto_header *proto_hdr, int status, void *user_data)
Network data receive callback.
Definition: net_context.h:93
void(* net_tcp_accept_cb_t)(struct net_context *new_context, struct sockaddr *addr, socklen_t addrlen, int status, void *user_data)
Accept callback.
Definition: net_context.h:134
void(* net_context_send_cb_t)(struct net_context *context, int status, void *user_data)
Network data send callback.
Definition: net_context.h:114
void(* net_context_connect_cb_t)(struct net_context *context, int status, void *user_data)
Connection callback.
Definition: net_context.h:161
Public API for offloading IP stack.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: eswifi_offload.h:29
struct k_fifo fifo
Definition: eswifi_offload.h:52
void * send_data
Definition: eswifi_offload.h:40
struct net_pkt * prev_pkt_rem
Definition: eswifi_offload.h:53
uint8_t index
Definition: eswifi_offload.h:30
net_context_recv_cb_t recv_cb
Definition: eswifi_offload.h:34
void * accept_data
Definition: eswifi_offload.h:41
struct k_work connect_work
Definition: eswifi_offload.h:43
struct k_sem read_sem
Definition: eswifi_offload.h:47
net_context_send_cb_t send_cb
Definition: eswifi_offload.h:36
net_tcp_accept_cb_t accept_cb
Definition: eswifi_offload.h:37
void * recv_data
Definition: eswifi_offload.h:38
net_context_connect_cb_t conn_cb
Definition: eswifi_offload.h:35
struct net_pkt * tx_pkt
Definition: eswifi_offload.h:42
void * conn_data
Definition: eswifi_offload.h:39
struct k_sem accept_sem
Definition: eswifi_offload.h:48
struct net_context * context
Definition: eswifi_offload.h:33
int usage
Definition: eswifi_offload.h:51
bool is_server
Definition: eswifi_offload.h:50
struct k_work_delayable read_work
Definition: eswifi_offload.h:45
enum eswifi_transport_type type
Definition: eswifi_offload.h:31
enum eswifi_socket_state state
Definition: eswifi_offload.h:32
struct sockaddr peer_addr
Definition: eswifi_offload.h:46
uint16_t port
Definition: eswifi_offload.h:49
struct k_work send_work
Definition: eswifi_offload.h:44
Definition: kernel.h:2153
A structure used to submit work after a delay.
Definition: kernel.h:3651
A structure used to submit work.
Definition: kernel.h:3623
Definition: net_context.h:201
Network packet.
Definition: net_pkt.h:62