![]() |
axis_switch
Vitis Drivers API Documentation
|
This file demonstrates the use AXI4-Stream Switch Control Router driver.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 sha 01/28/15 Initial release. 1.6 sd 07/14/23 Added SDT support.
Macros | |
#define | XAXIS_SWITCH_DEVICE_ID XPAR_AXIS_SWITCH_0_DEVICE_ID |
The following constants map to the XPAR parameters created in the xparameters.h file. More... | |
Functions | |
int | AxisSwitch_Example (u16 DeviceId) |
This function demonstrates the use of AXI-Stream Switch driver functions. More... | |
int | main () |
This is the main function for AXI4-Stream Switch example. More... | |
Variables | |
XAxis_Switch | AxisSwitch |
Instance of the AXI4-Stream Switch core. More... | |
#define XAXIS_SWITCH_DEVICE_ID XPAR_AXIS_SWITCH_0_DEVICE_ID |
The following constants map to the XPAR parameters created in the xparameters.h file.
They are defined here such that a user can easily change all the needed parameters in one place.
Referenced by main().
int AxisSwitch_Example | ( | u16 | DeviceId | ) |
This function demonstrates the use of AXI-Stream Switch driver functions.
DeviceId | is the unique device id of the AXI4-Stream Switch core. |
References XAxis_Switch_Config::BaseAddress, XAxisScr_CfgInitialize(), XAxisScr_IsMiPortEnabled(), XAxisScr_LookupConfig(), XAxisScr_MiPortDisable(), XAxisScr_MiPortDisableAll(), XAxisScr_MiPortEnable(), XAxisScr_RegUpdateDisable, and XAxisScr_RegUpdateEnable.
Referenced by main().
int main | ( | ) |
This is the main function for AXI4-Stream Switch example.
None. |
References AxisSwitch_Example(), and XAXIS_SWITCH_DEVICE_ID.
XAxis_Switch AxisSwitch |
Instance of the AXI4-Stream Switch core.