Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
eswifi.h File Reference
#include <zephyr.h>
#include <kernel.h>
#include <stdio.h>
#include <kernel_structs.h>
#include <net/wifi_mgmt.h>
#include "eswifi_offload.h"

Go to the source code of this file.

Data Structures

struct  eswifi_gpio
 
struct  eswifi_sta
 
struct  eswifi_dev
 
struct  eswifi_bus_ops
 

Macros

#define MAX_DATA_SIZE   1600
 
#define AT_OK_STR   "\r\nOK\r\n> "
 
#define AT_OK_STR_LEN   8
 
#define AT_RSP_DELIMITER   "\r\n"
 
#define AT_RSP_DELIMITER_LEN   2
 
#define eswifi_shell_register(dev)
 

Enumerations

enum  eswifi_security_type {
  ESWIFI_SEC_OPEN , ESWIFI_SEC_WEP , ESWIFI_SEC_WPA , ESWIFI_SEC_WPA2_AES ,
  ESWIFI_SEC_WPA2_MIXED , ESWIFI_SEC_MAX
}
 
enum  eswifi_request { ESWIFI_REQ_SCAN , ESWIFI_REQ_CONNECT , ESWIFI_REQ_DISCONNECT , ESWIFI_REQ_NONE }
 
enum  eswifi_role { ESWIFI_ROLE_CLIENT , ESWIFI_ROLE_AP }
 

Functions

static int eswifi_request (struct eswifi_dev *eswifi, char *cmd, size_t clen, char *rsp, size_t rlen)
 
static void eswifi_lock (struct eswifi_dev *eswifi)
 
static void eswifi_unlock (struct eswifi_dev *eswifi)
 
int eswifi_at_cmd (struct eswifi_dev *eswifi, char *cmd)
 
static struct eswifi_deveswifi_socket_to_dev (struct eswifi_off_socket *socket)
 
struct eswifi_bus_opseswifi_get_bus (void)
 
int eswifi_offload_init (struct eswifi_dev *eswifi)
 
struct eswifi_deveswifi_by_iface_idx (uint8_t iface)
 
int eswifi_at_cmd_rsp (struct eswifi_dev *eswifi, char *cmd, char **rsp)
 
void eswifi_async_msg (struct eswifi_dev *eswifi, char *msg, size_t len)
 
void eswifi_offload_async_msg (struct eswifi_dev *eswifi, char *msg, size_t len)
 

Macro Definition Documentation

◆ AT_OK_STR

#define AT_OK_STR   "\r\nOK\r\n> "

◆ AT_OK_STR_LEN

#define AT_OK_STR_LEN   8

◆ AT_RSP_DELIMITER

#define AT_RSP_DELIMITER   "\r\n"

◆ AT_RSP_DELIMITER_LEN

#define AT_RSP_DELIMITER_LEN   2

◆ eswifi_shell_register

#define eswifi_shell_register (   dev)

◆ MAX_DATA_SIZE

#define MAX_DATA_SIZE   1600

Copyright (c) 2018 Linaro

SPDX-License-Identifier: Apache-2.0

Enumeration Type Documentation

◆ eswifi_request

Enumerator
ESWIFI_REQ_SCAN 
ESWIFI_REQ_CONNECT 
ESWIFI_REQ_DISCONNECT 
ESWIFI_REQ_NONE 

◆ eswifi_role

Enumerator
ESWIFI_ROLE_CLIENT 
ESWIFI_ROLE_AP 

◆ eswifi_security_type

Enumerator
ESWIFI_SEC_OPEN 
ESWIFI_SEC_WEP 
ESWIFI_SEC_WPA 
ESWIFI_SEC_WPA2_AES 
ESWIFI_SEC_WPA2_MIXED 
ESWIFI_SEC_MAX 

Function Documentation

◆ eswifi_async_msg()

void eswifi_async_msg ( struct eswifi_dev eswifi,
char *  msg,
size_t  len 
)

◆ eswifi_at_cmd()

int eswifi_at_cmd ( struct eswifi_dev eswifi,
char *  cmd 
)

◆ eswifi_at_cmd_rsp()

int eswifi_at_cmd_rsp ( struct eswifi_dev eswifi,
char *  cmd,
char **  rsp 
)

◆ eswifi_by_iface_idx()

struct eswifi_dev * eswifi_by_iface_idx ( uint8_t  iface)

◆ eswifi_get_bus()

struct eswifi_bus_ops * eswifi_get_bus ( void  )

◆ eswifi_lock()

static void eswifi_lock ( struct eswifi_dev eswifi)
inlinestatic

◆ eswifi_offload_async_msg()

void eswifi_offload_async_msg ( struct eswifi_dev eswifi,
char *  msg,
size_t  len 
)

◆ eswifi_offload_init()

int eswifi_offload_init ( struct eswifi_dev eswifi)

◆ eswifi_request()

static int eswifi_request ( struct eswifi_dev eswifi,
char *  cmd,
size_t  clen,
char *  rsp,
size_t  rlen 
)
inlinestatic

◆ eswifi_socket_to_dev()

static struct eswifi_dev * eswifi_socket_to_dev ( struct eswifi_off_socket socket)
inlinestatic

◆ eswifi_unlock()

static void eswifi_unlock ( struct eswifi_dev eswifi)
inlinestatic