TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
TM_ETHERNET_Macros

Library defines. More...

Macros

#define ETHERNET_PHY   0
 Ethernet PHY chip you will use for low level communication. More...
 
#define LINK_TIMER_INTERVAL   1000
 Number of milliseconds when to check for link status from PHY.
 
#define ETHERNET_SERVER_PORT   80
 Default server PORT used for server.
 
#define MAC_ADDR0   0x06
 Default MAC address for your device. More...
 
#define MAC_ADDR1   0x05
 
#define MAC_ADDR2   0x04
 
#define MAC_ADDR3   0x03
 
#define MAC_ADDR4   0x02
 
#define MAC_ADDR5   0x01
 
#define IP_ADDR0   192
 Default IP address. More...
 
#define IP_ADDR1   168
 
#define IP_ADDR2   0
 
#define IP_ADDR3   120
 
#define NETMASK_ADDR0   255
 Netmask address. More...
 
#define NETMASK_ADDR1   255
 
#define NETMASK_ADDR2   255
 
#define NETMASK_ADDR3   0
 
#define GW_ADDR0   192
 Gateway address. More...
 
#define GW_ADDR1   168
 
#define GW_ADDR2   0
 
#define GW_ADDR3   1
 
#define ETHERNET_HOSTNAME_DHCP   "TM-ETH-Device"
 Default device name to be shown to your router when requesting IP address with DHCP.
 
#define ETHERNET_RMII_MODE
 
#define ETHERNET_MAX_HEADER_SIZE   1024
 Buffer size for ethernet headers when requesting as client. More...
 
#define ETHERNET_MAX_CONNECTION_NAME   100
 Max connection string name when connection as client. More...
 
#define ETHERNET_MAX_OPEN_FILES   10
 Maximal number of opened files at a time as server.
 
#define ETHERNET_SSI_MAX_TAG_LEN   32
 Maximal length for SSI tag used in HTML.
 
#define ETHERNET_SSI_MAX_TAG_INSERT_LEN   512
 Maximal buffer length for SSI tag insert text. More...
 

Detailed Description

Library defines.

Macro Definition Documentation

#define ETHERNET_MAX_CONNECTION_NAME   100

Max connection string name when connection as client.

Note
This is also max domain name when using DNS request
#define ETHERNET_MAX_HEADER_SIZE   1024

Buffer size for ethernet headers when requesting as client.

Note
Used for headers after you are connected to server, HTTP headers Ex: GET / HTTP/1.1
...etc
#define ETHERNET_PHY   0

Ethernet PHY chip you will use for low level communication.

Note
Default is DP83848 PHY
#define ETHERNET_SSI_MAX_TAG_INSERT_LEN   512

Maximal buffer length for SSI tag insert text.

Note
Content of buffer will be replaced with SSI tag
#define GW_ADDR0   192

Gateway address.

Note
In case you want to use custom gateway, use parameter in TM_ETHERNET_Init() function
#define IP_ADDR0   192

Default IP address.

Note
Used in case DHCP is not used or response failed
In case you want to use custom IP, use parameter in TM_ETHERNET_Init() function
#define MAC_ADDR0   0x06

Default MAC address for your device.

Note
This MAC is used in case you set mac_addr param in TM_ETHERNET_Init() function to "NULL"
#define NETMASK_ADDR0   255

Netmask address.

Note
In case you want to use custom netmask, use parameter in TM_ETHERNET_Init() function