emaclite
Vitis Drivers API Documentation
xemaclite_ping_reply_example.c File Reference

Overview

This file contains an EmacLite ping reply example in polled mode.

This example will generate a ping reply when it receives a ping request packet from the external world.

Note

The local IP address is set to 172.16.63.121. User needs to update LocalIpAddr variable with a free IP address based on the network on which this example is to be run.

The local MAC address is set to 0x000A35030201. User can update LocalMacAddr variable with a valid MAC address. The first three bytes contains the manufacture ID. 0x000A35 is XILINX manufacture ID.

This program will respond continuously to a number of ping requests as defined by MAX_PING_REPLIES in this file.

MODIFICATION HISTORY:
Ver   Who  Date     Changes


1.00a ktn 20/08/08 First release 3.00a ktn 10/22/09 Updated example to use the macros that have been changed in the driver to remove _m from the name of the macro. 3.01a ktn 08/06/10 Updated the example to support little endian MicroBlaze. 4.3 ms 01/23/17 Added xil_printf statement in main function to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028.

 

Functions

int main ()
 This function is the main function of the Ping reply example in polled mode. More...
 

Function Documentation

int main ( void  )

This function is the main function of the Ping reply example in polled mode.

Parameters
None.
Returns
XST_FAILURE to indicate failure, otherwise XST_SUCCESS is returned.
Note
None.