2018-10-08 12:20:49 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Gunar Schorcht
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu_esp32_esp_wifi
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2019-01-14 12:13:49 +01:00
|
|
|
* @brief Network device driver for the ESP32 WiFi interface
|
2018-10-08 12:20:49 +02:00
|
|
|
*
|
|
|
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ESP_WIFI_NETDEV_H
|
|
|
|
#define ESP_WIFI_NETDEV_H
|
|
|
|
|
2019-12-16 17:10:15 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "mutex.h"
|
|
|
|
#include "net/ethernet.h"
|
2018-10-08 12:20:49 +02:00
|
|
|
#include "net/netdev.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Reference to the netdev device driver struct
|
|
|
|
*/
|
|
|
|
extern const netdev_driver_t esp_wifi_driver;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Device descriptor for ESP WiFi devices
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
netdev_t netdev; /**< netdev parent struct */
|
|
|
|
|
|
|
|
uint32_t event; /**< received event */
|
|
|
|
bool connected; /**< indicates whether connected to AP */
|
|
|
|
|
|
|
|
} esp_wifi_netdev_t;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ESP_WIFI_NETDEV_H */
|
|
|
|
/** @} */
|