Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
esp_socket.c File Reference
#include "esp.h"
#include <logging/log.h>

Data Structures

struct  esp_workq_flush_data
 

Macros

#define RX_NET_PKT_ALLOC_TIMEOUT    K_MSEC(CONFIG_WIFI_ESP_AT_RX_NET_PKT_ALLOC_TIMEOUT)
 

Functions

 LOG_MODULE_DECLARE (wifi_esp_at, CONFIG_WIFI_LOG_LEVEL)
 
struct esp_socketesp_socket_get (struct esp_data *data, struct net_context *context)
 
int esp_socket_put (struct esp_socket *sock)
 
struct esp_socketesp_socket_ref (struct esp_socket *sock)
 
void esp_socket_unref (struct esp_socket *sock)
 
void esp_socket_init (struct esp_data *data)
 
static struct net_pktesp_socket_prepare_pkt (struct esp_socket *sock, struct net_buf *src, size_t offset, size_t len)
 
void esp_socket_rx (struct esp_socket *sock, struct net_buf *buf, size_t offset, size_t len)
 
void esp_socket_close (struct esp_socket *sock)
 
static void esp_workq_flush_work (struct k_work *work)
 
void esp_socket_workq_stop_and_flush (struct esp_socket *sock)
 

Macro Definition Documentation

◆ RX_NET_PKT_ALLOC_TIMEOUT

#define RX_NET_PKT_ALLOC_TIMEOUT    K_MSEC(CONFIG_WIFI_ESP_AT_RX_NET_PKT_ALLOC_TIMEOUT)

Function Documentation

◆ esp_socket_close()

void esp_socket_close ( struct esp_socket sock)

◆ esp_socket_get()

struct esp_socket * esp_socket_get ( struct esp_data data,
struct net_context context 
)

◆ esp_socket_init()

void esp_socket_init ( struct esp_data data)

◆ esp_socket_prepare_pkt()

static struct net_pkt * esp_socket_prepare_pkt ( struct esp_socket sock,
struct net_buf src,
size_t  offset,
size_t  len 
)
static

◆ esp_socket_put()

int esp_socket_put ( struct esp_socket sock)

◆ esp_socket_ref()

struct esp_socket * esp_socket_ref ( struct esp_socket sock)

◆ esp_socket_rx()

void esp_socket_rx ( struct esp_socket sock,
struct net_buf buf,
size_t  offset,
size_t  len 
)

◆ esp_socket_unref()

void esp_socket_unref ( struct esp_socket sock)

◆ esp_socket_workq_stop_and_flush()

void esp_socket_workq_stop_and_flush ( struct esp_socket sock)

◆ esp_workq_flush_work()

static void esp_workq_flush_work ( struct k_work work)
static

◆ LOG_MODULE_DECLARE()

LOG_MODULE_DECLARE ( wifi_esp_at  ,
CONFIG_WIFI_LOG_LEVEL   
)