#include "nip_types.h"
Go to the source code of this file.
Defines | |
#define | QMAKESTR(s) #s |
#define | MAKESTR(s) QMAKESTR(s) |
Architecture | |
#define | NIP_ARCH avr |
define what architecture the NIP network stack will be compiled for. | |
#define | NIP_ARCH_PATH arch/NIP_ARCH |
path for architecture-dependent files. | |
#define | NIP_ARCH_FILE(file) MAKESTR(NIP_ARCH_PATH/file) |
Build filename for includes depending on the architecture. | |
nIP Modules | |
#define | NIP_MEM_ENABLE 1 |
enable memory management | |
#define | NIP_NET_ENABLE 1 |
enable network interfaces | |
#define | NIP_DISP_ENABLE 1 |
enable dispatcher | |
#define | NIP_ETH_ENABLE 1 |
enable support of ethernet interfaces | |
#define | NIP_RTL_ENABLE 1 |
enable realtek network driver | |
#define | NIP_IP_ENABLE 1 |
enable IP | |
#define | NIP_ARP_ENABLE 1 |
enable ARP | |
#define | NIP_ICMP_ENABLE 1 |
enable ICMP | |
#define | NIP_UDP_ENABLE 1 |
enable UDP | |
#define | NIP_TCP_ENABLE 1 |
enable TCP | |
#define | NIP_DHCP_ENABLE 1 |
#define | NIP_AUTOIP_ENABLE 1 |
#define | NIP_MULTICAST_ENABLE 1 |
#define | NIP_IGMP_ENABLE 0 |
#define | NIP_MDNS_ENABLE 1 |
#define | NIP_DNSSD_ENABLE 1 |
Network Interface Configuration | |
#define | NIP_NET_IF_COUNT 1 |
Define Number of network interfaces. | |
#define | NIP_NET_RX_TRANS_COUNT 2 |
Define maximum number of queued transmissions per interface. | |
#define | NIP_NET_TX_TRANS_COUNT 2 |
Define maximum number transmissions in global send queue. | |
#define | NIP_MAX_HW_ADDR_SIZE 6 |
Define maximum hardware address size. | |
#define | NIP_MAX_NET_ADDR_SIZE 4 |
Define maximum network address size. | |
#define | NIP_NET_LOOPBACK_ENABLE 1 |
Enable local loopback of network packages. | |
#define | NIP_ARP_CACHE_SIZE 4 |
number of entries in ARP cache | |
Network Interface Statistics | |
#define | NIP_NET_IF_CNT_OVERRUN |
count network interface receive buffer overruns | |
#define | NIP_NET_IF_CNT_RXE |
count receive errors | |
#define | NIP_NET_IF_CNT_TXE |
count transmit errors | |
#define | NIP_NET_IF_CNT_DISCARDED |
count discarded packets | |
#define | NIP_NET_IF_CNT_RECEIVED |
count received packets | |
Transport Layer Configuration | |
#define | NIP_UDP_USE_FIXED_SOCKETS 1 |
Use fixed socket array (static allocation of memory for fixed numer of sockets) or use dynamic array of sockets with at most NIP_UDP_MAX_SOCKETS sockets. | |
#define | NIP_UDP_FIXED_SOCKETS 4 |
Fixed number of UDP sockets to be used for fixed socket configuration. | |
#define | NIP_UDP_PACKET_QUEUE_SIZE 2 |
Fixed size of UDP queue for incoming packets. | |
Memory management | |
#define | NIP_MEM_MAX_BLOCKS 255 |
Define maximum number of memory blocks. | |
#define | NIP_MEM_DYNAMIC_SIZE 1000 |
Number of bytes reserved for dynamic buffer management. | |
#define | NIP_MEM_DEBUG 1 |
enable additional sanity check which may be useful points to halt the debugger at. | |
Functions | |
void | nip_init (void) |
Initialize NIP Internetstack. |
#define MAKESTR | ( | s | ) | QMAKESTR(s) |
Definition at line 37 of file nip_init.h.
#define NIP_ARCH avr |
define what architecture the NIP network stack will be compiled for.
The architecture has to match a directory name in the `'arch'' directory.
Definition at line 44 of file nip_init.h.
#define NIP_ARCH_FILE | ( | file | ) | MAKESTR(NIP_ARCH_PATH/file) |
Build filename for includes depending on the architecture.
Definition at line 50 of file nip_init.h.
#define NIP_ARCH_PATH arch/NIP_ARCH |
#define NIP_ARP_CACHE_SIZE 4 |
#define NIP_ARP_ENABLE 1 |
#define NIP_AUTOIP_ENABLE 1 |
Definition at line 91 of file nip_init.h.
#define NIP_DHCP_ENABLE 1 |
Definition at line 88 of file nip_init.h.
#define NIP_DISP_ENABLE 1 |
#define NIP_DNSSD_ENABLE 1 |
Definition at line 103 of file nip_init.h.
#define NIP_ETH_ENABLE 1 |
#define NIP_ICMP_ENABLE 1 |
#define NIP_IGMP_ENABLE 0 |
Definition at line 97 of file nip_init.h.
#define NIP_IP_ENABLE 1 |
#define NIP_MAX_HW_ADDR_SIZE 6 |
Define maximum hardware address size.
Defaults to 6 for ethernet addresses.
Definition at line 121 of file nip_init.h.
#define NIP_MAX_NET_ADDR_SIZE 4 |
Define maximum network address size.
Defaults to 4 for ip addressing.
Definition at line 124 of file nip_init.h.
#define NIP_MDNS_ENABLE 1 |
Definition at line 100 of file nip_init.h.
#define NIP_MEM_DEBUG 1 |
enable additional sanity check which may be useful points to halt the debugger at.
Check for DEBUG comments in nip_mem.c.
Definition at line 195 of file nip_init.h.
#define NIP_MEM_DYNAMIC_SIZE 1000 |
Number of bytes reserved for dynamic buffer management.
Definition at line 189 of file nip_init.h.
#define NIP_MEM_ENABLE 1 |
#define NIP_MEM_MAX_BLOCKS 255 |
Define maximum number of memory blocks.
Definition at line 183 of file nip_init.h.
#define NIP_MULTICAST_ENABLE 1 |
Definition at line 94 of file nip_init.h.
#define NIP_NET_ENABLE 1 |
#define NIP_NET_IF_CNT_DISCARDED |
#define NIP_NET_IF_CNT_OVERRUN |
#define NIP_NET_IF_CNT_RECEIVED |
#define NIP_NET_IF_CNT_RXE |
#define NIP_NET_IF_CNT_TXE |
#define NIP_NET_IF_COUNT 1 |
#define NIP_NET_LOOPBACK_ENABLE 1 |
#define NIP_NET_RX_TRANS_COUNT 2 |
Define maximum number of queued transmissions per interface.
Defaults to 2.
Definition at line 115 of file nip_init.h.
#define NIP_NET_TX_TRANS_COUNT 2 |
Define maximum number transmissions in global send queue.
Defaults to 2.
Definition at line 118 of file nip_init.h.
#define NIP_RTL_ENABLE 1 |
#define NIP_TCP_ENABLE 1 |
#define NIP_UDP_ENABLE 1 |
#define NIP_UDP_FIXED_SOCKETS 4 |
Fixed number of UDP sockets to be used for fixed socket configuration.
Definition at line 167 of file nip_init.h.
#define NIP_UDP_PACKET_QUEUE_SIZE 2 |
#define NIP_UDP_USE_FIXED_SOCKETS 1 |
Use fixed socket array (static allocation of memory for fixed numer of sockets) or use dynamic array of sockets with at most NIP_UDP_MAX_SOCKETS sockets.
Definition at line 164 of file nip_init.h.
#define QMAKESTR | ( | s | ) | #s |
Definition at line 36 of file nip_init.h.
void nip_init | ( | void | ) |
Initialize NIP Internetstack.
Definition at line 44 of file nip_init.c.
References nip_net_if::id, nip_mdns_init(), nip_mem_init(), NIP_NET_IF_COUNT, and NIP_NET_NO_IF.
Referenced by init_networking(), and main().