![]() |
rfdc
Xilinx SDK Drivers API Documentation
|
Functions | |
int | XRFdc_CfgInitialize (XRFdc *InstancePtr, XRFdc_Config *Config) |
Initializes a specific XRFdc instance such that the driver is ready to use. More... | |
int | XRFdc_StartUp (XRFdc *InstancePtr, u32 Type, int Tile_Id) |
The API Restarts the requested tile. More... | |
int | XRFdc_Shutdown (XRFdc *InstancePtr, u32 Type, int Tile_Id) |
The API stops the tile as requested. More... | |
int | XRFdc_Reset (XRFdc *InstancePtr, u32 Type, int Tile_Id) |
The API resets the requested tile. More... | |
int | XRFdc_GetIPStatus (XRFdc *InstancePtr, XRFdc_IPStatus *IPStatus) |
The API returns the IP status. More... | |
int | XRFdc_GetBlockStatus (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, XRFdc_BlockStatus *BlockStatus) |
The API returns the requested block status. More... | |
int | XRFdc_SetMixerSettings (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, XRFdc_Mixer_Settings *Mixer_Settings) |
The API is used to update various mixer settings, fine, coarse, NCO etc. More... | |
int | XRFdc_GetMixerSettings (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, XRFdc_Mixer_Settings *Mixer_Settings) |
The API returns back Mixer/NCO settings to the caller. More... | |
int | XRFdc_SetQMCSettings (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, XRFdc_QMC_Settings *QMC_Settings) |
This API is used to update various QMC settings, eg gain, phase, offset etc. More... | |
int | XRFdc_GetQMCSettings (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, XRFdc_QMC_Settings *QMC_Settings) |
QMC settings are returned back to the caller through this API. More... | |
int | XRFdc_SetCoarseDelaySettings (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, XRFdc_CoarseDelay_Settings *CoarseDelay_Settings) |
Coarse delay settings passed are used to update the corresponding block level registers. More... | |
int | XRFdc_GetCoarseDelaySettings (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, XRFdc_CoarseDelay_Settings *CoarseDelay_Settings) |
Coarse delay settings are returned back to the caller. More... | |
int | XRFdc_UpdateEvent (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, u32 Event) |
This function will trigger the update event for an event. More... | |
int | XRFdc_GetInterpolationFactor (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 *InterpolationFactor) |
Interpolation factor are returned back to the caller. More... | |
int | XRFdc_GetDecimationFactor (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 *DecimationFactor) |
Decimation factor are returned back to the caller. More... | |
int | XRFdc_SetFabWrVldWords (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 FabricWrVldWords) |
Fabric data rate for the requested DAC block is set by writing to the corresponding register. More... | |
int | XRFdc_SetFabRdVldWords (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 FabricRdVldWords) |
Fabric data rate for the requested ADC block is set by writing to the corresponding register. More... | |
int | XRFdc_GetFabWrVldWords (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, u32 *FabricWrVldWords) |
This API returns the the number of fabric write valid words requested for the block. More... | |
int | XRFdc_GetFabRdVldWords (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, u32 *FabricRdVldWords) |
This API returns the the number of fabric read valid words requested for the block. More... | |
int | XRFdc_ThresholdStickyClear (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 ThresholdToUpdate) |
This API is to clear the Sticky bit in threshold config registers. More... | |
int | XRFdc_SetThresholdClrMode (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 ThresholdToUpdate, u32 ClrMode) |
This API sets the threshold clear mode. More... | |
int | XRFdc_SetThresholdSettings (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, XRFdc_Threshold_Settings *Threshold_Settings) |
Threshold settings are updated into the relevant registers. More... | |
int | XRFdc_GetThresholdSettings (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, XRFdc_Threshold_Settings *Threshold_Settings) |
Threshold settings are read from the corresponding registers and are passed back to the caller. More... | |
int | XRFdc_SetDecoderMode (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 DecoderMode) |
Decoder mode is updated into the relevant registers. More... | |
int | XRFdc_GetDecoderMode (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, u32 *DecoderMode) |
Decoder mode is read and returned back. More... | |
int | XRFdc_ResetNCOPhase (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id) |
Resets the NCO phase of the current block phase accumulator. More... | |
void | XRFdc_SetSignalFlow (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 AnalogDataPath, u32 ConnectIData, u32 ConnectQData) |
Sets up multiband configuration. More... | |
void | XRFdc_GetSignalFlow (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 AnalogDataPath, u32 *ConnectedIData, u32 *ConnectedQData) |
Reads back the multiband configuration. More... | |
int | XRFdc_SetupFIFO (XRFdc *InstancePtr, u32 Type, int Tile_Id, u8 Enable) |
Enable and Disable the ADC/DAC FIFO. More... | |
int | XRFdc_GetOutputCurr (XRFdc *InstancePtr, int Tile_Id, u32 Block_Id, int *OutputCurr) |
Get Output Current for DAC block. More... | |
int | XRFdc_SetNyquistZone (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, u32 NyquistZone) |
Set the Nyquist zone. More... | |
int | XRFdc_GetNyquistZone (XRFdc *InstancePtr, u32 Type, int Tile_Id, u32 Block_Id, u32 *NyquistZone) |
Get the Nyquist zone. More... | |
void | XRFdc_DumpRegs (XRFdc *InstancePtr, u32 Type, int Tile_Id) |
This Prints the offset of the register along with the content. More... | |
int XRFdc_CfgInitialize | ( | XRFdc * | InstancePtr, |
XRFdc_Config * | Config | ||
) |
#include <xrfdc.c>
Initializes a specific XRFdc instance such that the driver is ready to use.
InstancePtr | is a pointer to the XRfdc instance. |
Config | is a reference to a structure containing information about xrfdc. This function initializes an InstancePtr object for a specific device specified by the contents of Config. |
void XRFdc_DumpRegs | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id | ||
) |
#include <xrfdc.c>
This Prints the offset of the register along with the content.
This API is meant to be used for debug purposes. It prints to the console the contents of registers for the passed Tile_Id. If -1 is passed, it prints the contents of the registers for all the tiles for the respective ADC or DAC
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3, and -1. |
int XRFdc_GetBlockStatus | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_BlockStatus * | BlockStatus | ||
) |
#include <xrfdc.c>
The API returns the requested block status.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3, and -1. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. XRFdc_BlockStatus. |
BlockStatus | is Pointer to the XRFdc_BlockStatus structure through which the ADC/DAC block status is returned. |
int XRFdc_GetCoarseDelaySettings | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_CoarseDelay_Settings * | CoarseDelay_Settings | ||
) |
#include <xrfdc.c>
Coarse delay settings are returned back to the caller.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
CoarseDelay_Settings | Pointer to the XRFdc_CoarseDelay_Settings structure in which the Coarse Delay settings are passed. |
int XRFdc_GetDecimationFactor | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 * | DecimationFactor | ||
) |
#include <xrfdc.c>
Decimation factor are returned back to the caller.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
DecimationFactor | Pointer to return the Decimation factor for DAC blocks. |
int XRFdc_GetDecoderMode | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 * | DecoderMode | ||
) |
#include <xrfdc.c>
Decoder mode is read and returned back.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is DAC block number inside the tile. Valid values are 0-3. |
DecoderMode | Valid values are 1 (Maximum SNR, for non-randomized decoder), 2 (Maximum Linearity, for randomized decoder) |
int XRFdc_GetFabRdVldWords | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 * | FabricRdVldWords | ||
) |
#include <xrfdc.c>
This API returns the the number of fabric read valid words requested for the block.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
FabricRdVldWords | Pointer to return the fabric data rate for ADC/DAC block |
int XRFdc_GetFabWrVldWords | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 * | FabricWrVldWords | ||
) |
#include <xrfdc.c>
This API returns the the number of fabric write valid words requested for the block.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
FabricWrVldWords | Pointer to return the fabric data rate for DAC block |
int XRFdc_GetInterpolationFactor | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 * | InterpolationFactor | ||
) |
#include <xrfdc.c>
Interpolation factor are returned back to the caller.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
InterpolationFactor | Pointer to return the interpolation factor for DAC blocks. |
int XRFdc_GetIPStatus | ( | XRFdc * | InstancePtr, |
XRFdc_IPStatus * | IPStatus | ||
) |
#include <xrfdc.c>
The API returns the IP status.
InstancePtr | is a pointer to the XRfdc instance. |
IPStatus | Pointer to the XRFdc_IPStatus structure through which the status is returned. |
int XRFdc_GetMixerSettings | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_Mixer_Settings * | Mixer_Settings | ||
) |
#include <xrfdc.c>
The API returns back Mixer/NCO settings to the caller.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
Mixer_Settings | Pointer to the XRFdc_Mixer_Settings structure in which the Mixer/NCO settings are passed. |
int XRFdc_GetNyquistZone | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 * | NyquistZone | ||
) |
#include <xrfdc.c>
Get the Nyquist zone.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
NyquistZone | Pointer to return the Nyquist zone. |
int XRFdc_GetOutputCurr | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
int * | OutputCurr | ||
) |
#include <xrfdc.c>
Get Output Current for DAC block.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
OutputCurr | pointer to return the output current. |
int XRFdc_GetQMCSettings | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_QMC_Settings * | QMC_Settings | ||
) |
#include <xrfdc.c>
QMC settings are returned back to the caller through this API.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
QMC_Settings | Pointer to the XRFdc_QMC_Settings structure in which the QMC settings are passed. |
void XRFdc_GetSignalFlow | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | AnalogDataPath, | ||
u32 * | ConnectedIData, | ||
u32 * | ConnectedQData | ||
) |
#include <xrfdc.c>
Reads back the multiband configuration.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
AnalogDataPath | for which the multi band configuration is targeted |
ConnectedIData | is Connected I data path to be readback |
ConnectedQData | is Connected Q data path to be readback |
int XRFdc_GetThresholdSettings | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_Threshold_Settings * | Threshold_Settings | ||
) |
#include <xrfdc.c>
Threshold settings are read from the corresponding registers and are passed back to the caller.
There can be two threshold settings: threshold0 and threshold1. Both of them are independent of each other. The function returns the requested threshold (which can be threshold0, threshold1, or both.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
Threshold_Settings | Pointer through which the register settings for thresholds are passed back.. |
int XRFdc_Reset | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id | ||
) |
#include <xrfdc.c>
The API resets the requested tile.
It can reset all the tiles as well. In the process, all existing register settings are cleared and are replaced with the settings initially configured (through the GUI).
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3, and -1. |
int XRFdc_ResetNCOPhase | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id | ||
) |
#include <xrfdc.c>
Resets the NCO phase of the current block phase accumulator.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
int XRFdc_SetCoarseDelaySettings | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_CoarseDelay_Settings * | CoarseDelay_Settings | ||
) |
#include <xrfdc.c>
Coarse delay settings passed are used to update the corresponding block level registers.
Driver structure is updated with the new values.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
CoarseDelay_Settings | is Pointer to the XRFdc_CoarseDelay_Settings structure in which the CoarseDelay settings are passed. |
int XRFdc_SetDecoderMode | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 | DecoderMode | ||
) |
#include <xrfdc.c>
Decoder mode is updated into the relevant registers.
Driver structure is updated with the new values.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is DAC block number inside the tile. Valid values are 0-3. |
DecoderMode | Valid values are 1 (Maximum SNR, for non- randomized decoder), 2 (Maximum Linearity, for randomized decoder) |
int XRFdc_SetFabRdVldWords | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 | FabricRdVldWords | ||
) |
#include <xrfdc.c>
Fabric data rate for the requested ADC block is set by writing to the corresponding register.
The function writes the number of valid read words for the requested ADC block.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC block number inside the tile. Valid values are 0-3. |
FabricRdVldWords | is Read fabric rate to be set for ADC block. |
int XRFdc_SetFabWrVldWords | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 | FabricWrVldWords | ||
) |
#include <xrfdc.c>
Fabric data rate for the requested DAC block is set by writing to the corresponding register.
The function writes the number of valid write words for the requested DAC block.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
FabricWrVldWords | is write fabric rate to be set for DAC block. |
int XRFdc_SetMixerSettings | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_Mixer_Settings * | Mixer_Settings | ||
) |
#include <xrfdc.c>
The API is used to update various mixer settings, fine, coarse, NCO etc.
Mixer/NCO settings passed are used to update the corresponding block level registers. Driver structure is updated with the new values.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
Mixer_Settings | Pointer to the XRFdc_Mixer_Settings structure in which the Mixer/NCO settings are passed. |
int XRFdc_SetNyquistZone | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 | NyquistZone | ||
) |
#include <xrfdc.c>
Set the Nyquist zone.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
NyquistZone | valid values are 1 (Odd),2 (Even). |
int XRFdc_SetQMCSettings | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_QMC_Settings * | QMC_Settings | ||
) |
#include <xrfdc.c>
This API is used to update various QMC settings, eg gain, phase, offset etc.
QMC settings passed are used to update the corresponding block level registers. Driver structure is updated with the new values.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
QMC_Settings | is Pointer to the XRFdc_QMC_Settings structure in which the QMC settings are passed. |
void XRFdc_SetSignalFlow | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | AnalogDataPath, | ||
u32 | ConnectIData, | ||
u32 | ConnectQData | ||
) |
#include <xrfdc.c>
Sets up multiband configuration.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
AnalogDataPath | to be connected to the requested I or Q data |
ConnectIData | is I data path to be connected to a requested analog data path |
ConnectQData | is Q data path to be connected to a requested analog data path |
int XRFdc_SetThresholdClrMode | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 | ThresholdToUpdate, | ||
u32 | ClrMode | ||
) |
#include <xrfdc.c>
This API sets the threshold clear mode.
The clear mode can be through explicit DRP access (manual) or auto clear (QMC gain update event).
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADCC block number inside the tile. Valid values are 0-3. |
ThresholdToUpdate | Select which Threshold (Threshold0 or Threshold1 or both) to update. |
ClrMode | can be DRP access (manual) or auto clear (QMC gain update event). |
int XRFdc_SetThresholdSettings | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
XRFdc_Threshold_Settings * | Threshold_Settings | ||
) |
#include <xrfdc.c>
Threshold settings are updated into the relevant registers.
Driver structure is updated with the new values. There can be two threshold settings: threshold0 and threshold1. Both of them are independent of each other. The function returns the requested threshold (which can be threshold0, threshold1, or both.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
Threshold_Settings | Pointer through which the register settings for thresholds are passed to the API. |
int XRFdc_SetupFIFO | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u8 | Enable | ||
) |
#include <xrfdc.c>
Enable and Disable the ADC/DAC FIFO.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Enable | valid values are 1 (FIFO enable) and 0 (FIFO Disable) |
int XRFdc_Shutdown | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id | ||
) |
#include <xrfdc.c>
The API stops the tile as requested.
It can also stop all the tiles if asked for. It does not clear any of the existing register settings. It just stops the requested tile(s).
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3, and -1. |
int XRFdc_StartUp | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id | ||
) |
#include <xrfdc.c>
The API Restarts the requested tile.
It can restart a single tile and alternatively can restart all the tiles. Existing register settings are not lost or altered in the process. It just starts the requested tile(s).
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3, and -1. |
int XRFdc_ThresholdStickyClear | ( | XRFdc * | InstancePtr, |
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 | ThresholdToUpdate | ||
) |
#include <xrfdc.c>
This API is to clear the Sticky bit in threshold config registers.
InstancePtr | is a pointer to the XRfdc instance. |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
ThresholdToUpdate | Select which Threshold (Threshold0 or Threshold1 or both) to update. |
int XRFdc_UpdateEvent | ( | XRFdc * | InstancePtr, |
u32 | Type, | ||
int | Tile_Id, | ||
u32 | Block_Id, | ||
u32 | Event | ||
) |
#include <xrfdc.c>
This function will trigger the update event for an event.
InstancePtr | is a pointer to the XRfdc instance. |
Type | is ADC or DAC. 0 for ADC and 1 for DAC |
Tile_Id | Valid values are 0-3. |
Block_Id | is ADC/DAC block number inside the tile. Valid values are 0-3. |
Event | is for which dynamic update event will trigger. XRFDC_EVENT_* defines the different events. |