mikroSDK Reference Manual
esp8266_driver.h
Go to the documentation of this file.
1
31#ifndef _ESP8266_WIFI_DRIVER_H
32#define _ESP8266_WIFI_DRIVER_H
33
34//Dependencies
35#include "core/nic.h"
36
37//C++ guard
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42//ESP8266 Wi-Fi driver (STA mode)
43extern const NicDriver esp8266WifiStaDriver;
44//ESP8266 Wi-Fi driver (AP mode)
45extern const NicDriver esp8266WifiApDriver;
46
47//ESP8266 Wi-Fi related functions
48error_t esp8266WifiInit(NetInterface *interface);
49
50void esp8266WifiTick(NetInterface *interface);
51
52void esp8266WifiEnableIrq(NetInterface *interface);
53void esp8266WifiDisableIrq(NetInterface *interface);
54void esp8266WifiEventHandler(NetInterface *interface);
55
56error_t esp8266WifiSendPacket(NetInterface *interface,
57 const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary);
58
59error_t esp8266WifiUpdateMacAddrFilter(NetInterface *interface);
60
61//C++ guard
62#ifdef __cplusplus
63}
64#endif
65
66#endif
error_t
Error codes.
Definition error.h:43
Network interface controller abstraction layer.
Structure describing a buffer that spans multiple chunks.
Definition net_mem.h:89
NIC driver.
Definition nic.h:283