![]() |
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().
#include "xxxvethernet_example.h"#include "xmcdma.h"#include "xil_cache.h"#include "xil_exception.h"#include "stdio.h"#include "stdlib.h"#include "xinterrupt_wrap.h"Functions | |
| int | XxvEthernetSgDmaIntrExample (XXxvEthernet *XxvEthernetInstancePtr, XMcdma *DmaInstancePtr, UINTPTR XxvBaseAddress) |
| 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 | ( | XXxvEthernet * | XxvEthernetInstancePtr, |
| XMcdma * | DmaInstancePtr, | ||
| UINTPTR | XxvBaseAddress | ||
| ) |
This function demonstrates the usage usage of the Xxv Ethernet by sending and receiving frames in interrupt driven MCDMA mode.
| XxvEthernetInstancePtr | is a pointer to the instance of the XxvEthernet component. |
| DmaInstancePtr | is a pointer to the instance of the AXI MCDMA component. |
| XxvBaseAddress | contains the base address of the XxvEthernet device |
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().