![]() |
dfeprach
Vitis Drivers API Documentation
|
This file contains the examples main function.
Note: MGT si570 oscillator is set to 152.25MHz by default. The DFE IP wrapper requires MGT clock to be set to 122.88MHz (some IP use 61.44MHz). Prerequisite is to set the MGT si570 oscillator to the required IP before running the example code. This is for the ZCU670 production platform.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 dc 03/08/21 Initial version dc 04/06/21 Register with full node name dc 04/07/21 Fix bare metal initialisation dc 04/10/21 Set sequence length only once 1.1 dc 07/13/21 Update to common latency requirements dc 07/21/21 Add and reorganise examples 1.3 dc 02/07/22 Configure 2 CC and 3 RC examples dc 03/21/22 Add prefix to global variables 1.4 dc 04/26/22 Add dynamic config example 1.7 cog 19/02/24 SDT Support cog 04/20/24 Configure si570 in Linux examples
Functions | |
| int | XDfeSi570_SetMgtOscillator (double CurrentFrequency, double NewFrequency) |
| This function: initialize I2C bus, reads current state of si570, calculates parameters for si570 MGT oscillator new frequency, writes them to si570 and resets PL to use the new frequency. More... | |
| int | XDfePrach_SelfTestExample () |
| This example runs the DFE Prach device using the driver APIs. More... | |
| int | XDfePrach_2CC3RCTestExample () |
| This example runs the DFE Prach device using the driver APIs. More... | |
| int | XDfePrach_2CC3RCReconfigureTestExample () |
| This example runs the DFE Prach device using the driver APIs. More... | |
| int | XDfePrach_2CC3RCDynamicTestExample () |
| This example runs the DFE Prach device using the driver APIs. More... | |
| int | main (void) |
| Main function that invokes the polled example in this file. More... | |
| int main | ( | void | ) |
Main function that invokes the polled example in this file.
| None. |
References XDfePrach_2CC3RCDynamicTestExample(), XDfePrach_2CC3RCReconfigureTestExample(), XDfePrach_2CC3RCTestExample(), XDfePrach_SelfTestExample(), XDfeSi570_SetMgtOscillator(), XST_FAILURE, and XST_SUCCESS.
| int XDfeSi570_SetMgtOscillator | ( | double | CurrentFrequency, |
| double | NewFrequency | ||
| ) |
This function: initialize I2C bus, reads current state of si570, calculates parameters for si570 MGT oscillator new frequency, writes them to si570 and resets PL to use the new frequency.
| CurrentFrequency | MGT oscillator current frequency. |
| NewFrequency | MGT oscillator new frequency. |
References XST_FAILURE, and XST_SUCCESS.
Referenced by main().