mikroSDK Reference Manual
wilc1000_driver.h
Go to the documentation of this file.
1
31#ifndef _WILC1000_DRIVER_H
32#define _WILC1000_DRIVER_H
33
34//Dependencies
35#include "core/nic.h"
36
37//TX buffer size
38#ifndef WILC1000_TX_BUFFER_SIZE
39 #define WILC1000_TX_BUFFER_SIZE 1600
40#elif (WILC1000_TX_BUFFER_SIZE != 1600)
41 #error WILC1000_TX_BUFFER_SIZE parameter is not valid
42#endif
43
44//RX buffer size
45#ifndef WILC1000_RX_BUFFER_SIZE
46 #define WILC1000_RX_BUFFER_SIZE 1600
47#elif (WILC1000_RX_BUFFER_SIZE != 1600)
48 #error WILC1000_RX_BUFFER_SIZE parameter is not valid
49#endif
50
51//C++ guard
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56//WILC1000 driver (STA mode)
57extern const NicDriver wilc1000StaDriver;
58//WILC1000 driver (AP mode)
59extern const NicDriver wilc1000ApDriver;
60
61//WILC1000 related functions
62error_t wilc1000Init(NetInterface *interface);
63
64void wilc1000Tick(NetInterface *interface);
65
66void wilc1000EnableIrq(NetInterface *interface);
67void wilc1000DisableIrq(NetInterface *interface);
68bool_t wilc1000IrqHandler(void);
69void wilc1000EventHandler(NetInterface *interface);
70
71error_t wilc1000SendPacket(NetInterface *interface,
72 const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary);
73
74error_t wilc1000UpdateMacAddrFilter(NetInterface *interface);
75bool_t wilc1000GetAddrRefCount(NetInterface *interface, const MacAddr *macAddr);
76
77void wilc1000AppWifiEvent(uint8_t msgType, void *msg);
78void wilc1000AppEthEvent(uint8_t msgType, void *msg, void *ctrlBuf);
79
80//C++ guard
81#ifdef __cplusplus
82}
83#endif
84
85#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