Definition in file system.h.
Go to the source code of this file.
Data Structures | |
struct | netif |
Network Interface declaration. More... | |
Defines | |
#define | OPENTCP_VERSION "1.0.4" |
OpenTCP major version number. | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | NETWORK_TX_BUFFER_SIZE 1024 |
Transmit buffer size. | |
#define | MASTER_MS_CLOCK base_timer |
#define | TXBUF net_buf |
#define | RESET_SYSTEM() while(1) |
Macro used to reset the MCU. | |
#define | OS_EnterCritical __DI |
Macro used to enter critical sections. | |
#define | OS_ExitCritical __EI |
Macro used to exit critical sections. | |
#define | RECEIVE_NETWORK_B() inNE2000again() |
Use this macro to read data from Ethernet controller. | |
#define | RECEIVE_NETWORK_BUF(c, d) inNE2000againbuf(c,d) |
Use this macro to read data from Ethernet controller to a buffer. | |
#define | SEND_NETWORK_B(c) outNE2000again(c) |
Use this macro to write data to Ethernet controller. | |
#define | SEND_NETWORK_BUF(c, d) outNE2000againbuf(c,d) |
Use this macro to write data from buffer to Ethernet controller. | |
#define | NETWORK_CHECK_IF_RECEIVED() NE2000ReceiveFrame() |
Use this macro to check if there is recieved data in Ethernet controller. | |
#define | NETWORK_RECEIVE_INITIALIZE(c) NE2000DMAInit_position(c) |
Initialize reading from a given address. | |
#define | NETWORK_RECEIVE_END() NE2000DumpRxFrame() |
Dump received packet in the Ethernet controller. | |
#define | NETWORK_COMPLETE_SEND(c) NE2000SendFrame(c) |
Send the Ethernet packet that was formed in the Ethernet controller. | |
#define | NETWORK_SEND_INITIALIZE(c) InitTransmission(c) |
Initialize sending of Ethernet packet from a given address. | |
#define | NETWORK_ADD_DATALINK(c) NE2000WriteEthernetHeader(c) |
Add lower-level datalink information. |
|
This define represents OpenTCP version information. Version is in the format MAJOR.MINOR.PATCH. |
|
Boolean TRUE value as used in the OpenTCP Definition at line 78 of file system.h. Referenced by free_timer(), get_timer(), init_timer(), process_ip_in(), and timer_pool_init(). |
|
Boolean FALSE value as used in the OpenTCP Definition at line 79 of file system.h. Referenced by arp_add(), decrement_timers(), get_timer(), and NE2000ReceiveFrame(). |
|
Interrupt driven msec free-running clock |
|
TXBUF points to transmit network buffer Definition at line 151 of file system.h. Referenced by process_icmp_in(). |
|
By default this macro is only an infinite loop and the system is reset by the (presumably) running watchdog timer. Change this if another form of reset is desired/needed.
Definition at line 163 of file system.h. Referenced by get_host_by_name(), get_timer(), https_init(), pop3c_init(), process_tcp_in(), and smtpc_init(). |
|
Usually disabling globally interrupts works just fine :-) Definition at line 176 of file system.h. Referenced by init_timer(). |
|
For now this only globally enables interrupts Definition at line 189 of file system.h. Referenced by init_timer(). |
|
This macro should be used to read data from the Ethernet controller. Procedure for doing this would be as follows:
Definition at line 210 of file system.h. Referenced by arp_get_response(), arp_send_response(), bootpc_eventlistener(), dhcpc_eventlistener(), dhcpc_read_n_bytes(), dns_eventlistener(), process_arp(), process_icmp_in(), process_ip_in(), process_tcp_in(), process_udp_in(), and tcp_check_cs(). |
|
This macro should be used to read data from the Ethernet controller to a buffer in memory. Procedure for using this macro is the same as for using RECEIVE_NETWORK_B() macro. Definition at line 220 of file system.h. Referenced by process_icmp_in(), and tcp_check_cs(). |
|
This macro should be used to write data to Ethernet controller. Procedure for doing this would be as follows:
Definition at line 240 of file system.h. Referenced by arp_send_req(), arp_send_response(), and process_ip_out(). |
|
This macro should be used to write data from a buffer to Ethernet controller. Usage is the same as for the SEND_NETWORK_B() macro. Definition at line 248 of file system.h. Referenced by process_ip_out(). |
|
This macro initializes reading of the received Ethernet frame from a given address in the Ethernet controller. Definition at line 270 of file system.h. Referenced by bootpc_eventlistener(), process_arp(), process_icmp_in(), process_ip_in(), process_tcp_in(), and process_udp_in(). |
|
After the data has been written to the Ethernet controller, use this function to instruct the Ethernet controller that data is in it's internal buffer and should be sent. Definition at line 288 of file system.h. Referenced by arp_send_req(), arp_send_response(), and process_ip_out(). |
|
Use this function to initialize sending (or creating) of an Ethernet packet from a given address in the Ethernet controller. Definition at line 296 of file system.h. Referenced by arp_send_req(), arp_send_response(), and process_ip_out(). |
|
This implementation adds Ethernet data-link information by invoking NE2000WriteEthernetHeader() function that writes Ethernet header based on information provided (destination and source ethernet address and protocol field). Definition at line 306 of file system.h. Referenced by arp_send_req(), arp_send_response(), and process_ip_out(). |