ArmSys Support
ArmsysApi  0.12.18
BNetwork.cpp File Reference
#include <BNetwork.h>
#include <BSys.h>
#include <string.h>
#include <lwip/opt.h>
#include <lwip/init.h>
#include <lwip/netif.h>
#include <lwip/tcpip.h>
#include <lwip/stats.h>
#include <lwip/dhcp.h>
#include <lwip/snmp.h>
#include <lwip/igmp.h>
#include <lwip/prot/icmp.h>
#include <lwip/inet_chksum.h>
#include <lwip/apps/mdns.h>
#include <lwip/sockets.h>
#include <netif/etharp.h>
#include <BDebug.h>

Macros

#define LDEBUG   0
 
#define TX_ZERO_COPY   0
 
#define dlprintf(fmt, a...)
 

Functions

void ETH_IRQHandler (void)
 
void HAL_ETH_RxCpltCallback (ETH_HandleTypeDef *eth)
 
err_t ether_init (struct netif *netif)
 
static err_t ether_send (struct netif *netif, struct pbuf *p)
 
static err_t ether_add_multicast_address (struct netif *netif, const ip4_addr_t *group, enum netif_mac_filter_action action)
 
void ether_link_changed (struct netif *netif)
 

Variables

const int PhyDP83848_LEDCR = 0x18
 
const int PhyDP83848_CR = 0x19
 
const int DhcpTries = 0
 
const int ProcessTaskPriority = 3
 
const int EventEthernet = 1
 
const int EventLinkChanged = 2
 
EthPhySettings ethPhySettings
 
static BNetworkbnetwork
 
static ETH_DMADescTypeDef dmaRxDscrTab [ETH_RXBUFNB]
 
static ETH_DMADescTypeDef dmaTxDscrTab [ETH_TXBUFNB]
 
static uint8_t rxBuffer [ETH_RXBUFNB][ETH_RX_BUF_SIZE]
 
static uint8_t txBuffer [ETH_TXBUFNB][ETH_TX_BUF_SIZE]
 

Macro Definition Documentation

◆ dlprintf

#define dlprintf (   fmt,
  a... 
)

◆ LDEBUG

#define LDEBUG   0

◆ TX_ZERO_COPY

#define TX_ZERO_COPY   0

Function Documentation

◆ ETH_IRQHandler()

void ETH_IRQHandler ( void  )

◆ ether_add_multicast_address()

static err_t ether_add_multicast_address ( struct netif *  netif,
const ip4_addr_t *  group,
enum netif_mac_filter_action  action 
)
static

◆ ether_init()

err_t ether_init ( struct netif *  netif)

◆ ether_link_changed()

void ether_link_changed ( struct netif *  netif)

◆ ether_send()

static err_t ether_send ( struct netif *  netif,
struct pbuf *  p 
)
static

◆ HAL_ETH_RxCpltCallback()

void HAL_ETH_RxCpltCallback ( ETH_HandleTypeDef *  eth)

Variable Documentation

◆ bnetwork

BNetwork* bnetwork
static

◆ DhcpTries

const int DhcpTries = 0

◆ dmaRxDscrTab

ETH_DMADescTypeDef dmaRxDscrTab[ETH_RXBUFNB]
static

◆ dmaTxDscrTab

ETH_DMADescTypeDef dmaTxDscrTab[ETH_TXBUFNB]
static

◆ ethPhySettings

EthPhySettings ethPhySettings

◆ EventEthernet

const int EventEthernet = 1

◆ EventLinkChanged

const int EventLinkChanged = 2

◆ PhyDP83848_CR

const int PhyDP83848_CR = 0x19

◆ PhyDP83848_LEDCR

const int PhyDP83848_LEDCR = 0x18

◆ ProcessTaskPriority

const int ProcessTaskPriority = 3

◆ rxBuffer

uint8_t rxBuffer[ETH_RXBUFNB][ETH_RX_BUF_SIZE]
static

◆ txBuffer

uint8_t txBuffer[ETH_TXBUFNB][ETH_TX_BUF_SIZE]
static