WebRadioApp  0.1
ethernetif.h
Go to the documentation of this file.
1 
22 #ifndef __ETHERNETIF_H__
23 #define __ETHERNETIF_H__
24 
25 #include "lwip/err.h"
26 #include "lwip/netif.h"
27 
28 /* Within 'USER CODE' section, code will be kept by default at each generation
29  */
30 /* USER CODE BEGIN 0 */
31 
32 /* USER CODE END 0 */
33 
34 /* Exported functions ------------------------------------------------------- */
35 err_t ethernetif_init(struct netif *netif);
36 
37 void ethernetif_input(struct netif *netif);
38 void ethernet_link_check_state(struct netif *netif);
39 
40 u32_t sys_jiffies(void);
41 u32_t sys_now(void);
42 
43 /* USER CODE BEGIN 1 */
44 
45 /* USER CODE END 1 */
46 #endif
47 
56 /*****END OF FILE****/
ETH_PHY_IO_DeInit
int32_t ETH_PHY_IO_DeInit(void)
De-Initializes the MDIO interface .
Definition: ethernetif.c:609
err
volatile int err
Definition: mp3player.cpp:51
ethernetif_init
err_t ethernetif_init(struct netif *netif)
Definition: ethernetif.c:506
ethernetif_input
void ethernetif_input(struct netif *netif)
Definition: ethernetif.c:451
LWIP_MEMPOOL_DECLARE
LWIP_MEMPOOL_DECLARE(RX_POOL, 10, sizeof(struct pbuf_custom), "Zero-copy RX PBUF pool")
ETH_PHY_IO_GetTick
int32_t ETH_PHY_IO_GetTick(void)
Get the time in millisecons used for internal PHY driver process.
Definition: ethernetif.c:651
heth
ETH_HandleTypeDef heth
Definition: ethernetif.c:115
LAN8742_IOCtx
lan8742_IOCtx_t LAN8742_IOCtx
Definition: ethernetif.c:132
sys_now
u32_t sys_now(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:577
ETH_PHY_IO_ReadReg
int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal)
Read a PHY register through the MDIO interface.
Definition: ethernetif.c:621
sys_jiffies
u32_t sys_jiffies(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:566
TxConfig
ETH_TxPacketConfig TxConfig
Definition: ethernetif.c:116
low_level_output
static err_t low_level_output(struct netif *netif, struct pbuf *p)
Definition: ethernetif.c:362
__attribute__
__attribute__((weak))
Definition: syscalls.c:66
LAN8742
lan8742_Object_t LAN8742
Definition: ethernetif.c:131
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.cpp:693
ETH_PHY_IO_Init
int32_t ETH_PHY_IO_Init(void)
Initializes the MDIO interface GPIO and clocks.
Definition: ethernetif.c:592
ETH_PHY_IO_WriteReg
int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal)
Write a value to a PHY register through the MDIO interface.
Definition: ethernetif.c:638
IFNAME1
#define IFNAME1
Definition: ethernetif.c:45
p
struct pbuf * p
Definition: ntpudp.c:48
low_level_input
static struct pbuf * low_level_input(struct netif *netif)
Definition: ethernetif.c:405
ETH_RX_BUFFER_SIZE
#define ETH_RX_BUFFER_SIZE
Definition: lwipopts.h:54
ipaddr
ip4_addr_t ipaddr
Definition: lwip.c:45
ethernet_link_check_state
void ethernet_link_check_state(struct netif *netif)
Check the ETH link state then update ETH driver and netif link accordingly.
Definition: ethernetif.c:662
ethernetif.h
Initialization code for LWIP middleWare. (partially based on examples that are provided within the ST...
HAL_ETH_MspInit
void HAL_ETH_MspInit(ETH_HandleTypeDef *ethHandle)
Definition: ethernetif.c:144
HAL_ETH_MspDeInit
void HAL_ETH_MspDeInit(ETH_HandleTypeDef *ethHandle)
Definition: ethernetif.c:200
pbuf_free_custom
void pbuf_free_custom(struct pbuf *p)
Custom Rx pbuf free callback.
Definition: ethernetif.c:551
low_level_init
static void low_level_init(struct netif *netif)
In this function, the hardware should be initialized. Called from ethernetif_init().
Definition: ethernetif.c:252
low_level_output_arp_off
static err_t low_level_output_arp_off(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
Definition: ethernetif.c:480
IFNAME0
#define IFNAME0
Definition: ethernetif.c:44
ETH_DMA_TRANSMIT_TIMEOUT
#define ETH_DMA_TRANSMIT_TIMEOUT
Definition: ethernetif.c:48