mikroSDK Reference Manual
winc1500_driver.h
Go to the documentation of this file.
1
31#ifndef _WINC1500_DRIVER_H
32#define _WINC1500_DRIVER_H
33
34//Dependencies
35#include "core/nic.h"
36
37//TX buffer size
38#ifndef WINC1500_TX_BUFFER_SIZE
39 #define WINC1500_TX_BUFFER_SIZE 1600
40#elif (WINC1500_TX_BUFFER_SIZE != 1600)
41 #error WINC1500_TX_BUFFER_SIZE parameter is not valid
42#endif
43
44//RX buffer size
45#ifndef WINC1500_RX_BUFFER_SIZE
46 #define WINC1500_RX_BUFFER_SIZE 1600
47#elif (WINC1500_RX_BUFFER_SIZE != 1600)
48 #error WINC1500_RX_BUFFER_SIZE parameter is not valid
49#endif
50
51//C++ guard
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56//WINC1500 driver
57extern const NicDriver winc1500Driver;
58
59//WINC1500 related functions
60error_t winc1500Init(NetInterface *interface);
61
62void winc1500Tick(NetInterface *interface);
63
64void winc1500EnableIrq(NetInterface *interface);
65void winc1500DisableIrq(NetInterface *interface);
66bool_t winc1500IrqHandler(void);
67void winc1500EventHandler(NetInterface *interface);
68
69error_t winc1500SendPacket(NetInterface *interface,
70 const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary);
71
72error_t winc1500UpdateMacAddrFilter(NetInterface *interface);
73
74void winc1500AppWifiEvent(uint8_t msgType, void *msg);
75void winc1500AppEthEvent(uint8_t msgType, void *msg, void *ctrlBuf);
76
77//C++ guard
78#ifdef __cplusplus
79}
80#endif
81
82#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