31#ifndef _LM3S_ETH_DRIVER_H
32#define _LM3S_ETH_DRIVER_H
38#ifndef LM3S_ETH_IRQ_PRIORITY_GROUPING
39 #define LM3S_ETH_IRQ_PRIORITY_GROUPING 3
40#elif (LM3S_ETH_IRQ_PRIORITY_GROUPING < 0)
41 #error LM3S_ETH_IRQ_PRIORITY_GROUPING parameter is not valid
45#ifndef LM3S_ETH_IRQ_PRIORITY
46 #define LM3S_ETH_IRQ_PRIORITY 192
47#elif (LM3S_ETH_IRQ_PRIORITY < 0)
48 #error LM3S_ETH_IRQ_PRIORITY parameter is not valid
60error_t lm3sEthInit(NetInterface *interface);
61void lm3sEthInitGpio(NetInterface *interface);
63void lm3sEthTick(NetInterface *interface);
65void lm3sEthEnableIrq(NetInterface *interface);
66void lm3sEthDisableIrq(NetInterface *interface);
67void lm3sEthEventHandler(NetInterface *interface);
69error_t lm3sEthSendPacket(NetInterface *interface,
70 const NetBuffer *buffer,
size_t offset, NetTxAncillary *ancillary);
72error_t lm3sEthReceivePacket(NetInterface *interface);
74error_t lm3sEthUpdateMacAddrFilter(NetInterface *interface);
76void lm3sEthWritePhyReg(uint8_t address, uint16_t data);
77uint16_t lm3sEthReadPhyReg(uint8_t address);
79void lm3sEthDumpPhyReg(
void);
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