![]() |
xxvethernet
Vitis Drivers API Documentation
|
Implements examples that utilize the Xxv Ethernet's interrupt driven MCDMA packet transfer mode to send and receive frames.
This example demonstrates how to perform a simple send and receive.
Functional guide to example:
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 hk 06/16/17 First release 1.4 rsp 05/12/20 Fix Wint-conversion gcc warning in XxvEthernetSgDmaIntrExample().
Functions | |
int | XxvEthernetSgDmaIntrExample (INTC *IntcInstancePtr, XXxvEthernet *XxvEthernetInstancePtr, XMcdma *DmaInstancePtr, u16 XxvEthernetDeviceId, u16 AxiMcDmaDeviceId) |
This function demonstrates the usage usage of the Xxv Ethernet by sending and receiving frames in interrupt driven MCDMA mode. More... | |
int | XxvEthernetSgDmaIntrSingleFrameExample (XXxvEthernet *XxvEthernetInstancePtr, XMcdma *DmaInstancePtr, u8 ChanId) |
This function demonstrates the usage of the Xxv Ethernet by sending and receiving a single frame in interrupt mode using MCDMA. More... | |
int | main (void) |
This is the main function for the Xxv Ethernet example. More... | |
int main | ( | void | ) |
This is the main function for the Xxv Ethernet example.
This function is not included if the example is generated from the TestAppGen test tool.
None. |
References XxvEthernetSgDmaIntrExample(), and XxvEthernetUtilErrorTrap().
int XxvEthernetSgDmaIntrExample | ( | INTC * | IntcInstancePtr, |
XXxvEthernet * | XxvEthernetInstancePtr, | ||
XMcdma * | DmaInstancePtr, | ||
u16 | XxvEthernetDeviceId, | ||
u16 | AxiMcDmaDeviceId | ||
) |
This function demonstrates the usage usage of the Xxv Ethernet by sending and receiving frames in interrupt driven MCDMA mode.
IntcInstancePtr | is a pointer to the instance of the Intc component. |
XxvEthernetInstancePtr | is a pointer to the instance of the XxvEthernet component. |
DmaInstancePtr | is a pointer to the instance of the AXI MCDMA component. |
XxvEthernetDeviceId | is Device ID of the Xxv Ethernet Device , typically XPAR_<XXVETHERNET_instance>_DEVICE_ID value from xparameters.h. |
AxiMcDmaDeviceId | is Device ID of the Axi MCDMA Device , typically XPAR_<AXIMCDMA_instance>_DEVICE_ID value from xparameters.h. |
References XXxvEthernet_Config::BaseAddress, XXxvEthernet_Config::XxvDevBaseAddress, XxvEthernetSgDmaIntrSingleFrameExample(), XxvEthernetUtilEnterLocalLoopback(), XxvEthernetUtilErrorTrap(), XXxvEthernet_CfgInitialize(), XXxvEthernet_LookupConfig(), and XXxvEthernet_Stop().
Referenced by main().
int XxvEthernetSgDmaIntrSingleFrameExample | ( | XXxvEthernet * | XxvEthernetInstancePtr, |
XMcdma * | DmaInstancePtr, | ||
u8 | ChanId | ||
) |
This function demonstrates the usage of the Xxv Ethernet by sending and receiving a single frame in interrupt mode using MCDMA.
The source packet will be described by two descriptors. It will be received into a buffer described by a single descriptor.
XxvEthernetInstancePtr | is a pointer to the instance of the Xxv Ethernet component. |
DmaInstancePtr | is a pointer to the instance of the Dma component. |
References XxvEthernetUtilErrorTrap(), XxvEthernetUtilFrameHdrFormatMAC(), XxvEthernetUtilFrameHdrFormatType(), XxvEthernetUtilFrameMemClear(), XxvEthernetUtilFrameSetPayloadData(), XxvEthernetUtilFrameVerify(), XXxvEthernet_Start(), and XXxvEthernet_Stop().
Referenced by XxvEthernetSgDmaIntrExample().