Function Prototype
u32 XRFdc_IntrEnable(XRFdc *InstancePtr, u32 Type, u32 Tile_Id, u32 Block_Id, u32 IntrMask);
Arguments
- XRFdc *InstancePtr
- Pointer to the driver instance.
- u32 Type
- RF-ADC or RF-DAC; 0 for RF-ADC and 1 for RF-DAC.
- u32 Tile_Id
- RF-ADC or RF-DAC tile number. Valid values are 0-3.
- u32 Block_Id
- RF-ADC or RF-DAC number inside the tile. Valid values are 0-3.
- u32 IntrMask
- Interrupts to be enabled. The valid masks are:
- XRFDC_IXR_FIFOUSRDAT_MASK 0x0000000FU
- XRFDC_IXR_FIFOUSRDAT_OF_MASK 0x00000001U
- XRFDC_IXR_FIFOUSRDAT_UF_MASK 0x00000002U
- XRFDC_IXR_FIFOMRGNIND_OF_MASK 0x00000004U
- XRFDC_IXR_FIFOMRGNIND_UF_MASK 0x00000008U
- XRFDC_ADC_IXR_DATAPATH_MASK 0x00000FF0U
- XRFDC_ADC_IXR_DMON_STG_MASK 0x000003F0U
- XRFDC_DAC_IXR_DATAPATH_MASK 0x000FFFF0U (Gen 3/DFE)
- XRFDC_DAC_IXR_INTP_STG_MASK 0x000003F0U
- XRFDC_DAC_IXR_INTP_I_STG0_MASK 0x00000010U
- XRFDC_DAC_IXR_INTP_I_STG1_MASK 0x00000020U
- XRFDC_DAC_IXR_INTP_I_STG2_MASK 0x00000040U
- XRFDC_DAC_IXR_INTP_I_STG3_MASK 0x00010000U (Gen 3/DFE)
- XRFDC_DAC_IXR_INTP_Q_STG0_MASK 0x00000080U
- XRFDC_DAC_IXR_INTP_Q_STG1_MASK 0x00000100U
- XRFDC_DAC_IXR_INTP_Q_STG2_MASK 0x00000200U
- XRFDC_DAC_IXR_INTP_Q_STG3_MASK 0x00020000U (Gen 3/DFE)
- XRFDC_ADC_IXR_DMON_I_STG0_MASK 0x00000010U
- XRFDC_ADC_IXR_DMON_I_STG1_MASK 0x00000020U
- XRFDC_ADC_IXR_DMON_I_STG2_MASK 0x00000040U
- XRFDC_ADC_IXR_DMON_Q_STG0_MASK 0x00000080U
- XRFDC_ADC_IXR_DMON_Q_STG1_MASK 0x00000100U
- XRFDC_ADC_IXR_DMON_Q_STG2_MASK 0x00000200U
- XRFDC_IXR_QMC_GAIN_PHASE_MASK 0x00000400U
- XRFDC_IXR_QMC_OFFST_MASK 0x00000800U
- XRFDC_DAC_IXR_INVSNC_OF_MASK 0x00001000U
- XRFDC_SUBADC_IXR_DCDR_MASK 0x00FF0000U
- XRFDC_SUBADC0_IXR_DCDR_OF_MASK 0x00010000U
- XRFDC_SUBADC0_IXR_DCDR_UF_MASK 0x00020000U
- XRFDC_SUBADC1_IXR_DCDR_OF_MASK 0x00040000U
- XRFDC_SUBADC1_IXR_DCDR_UF_MASK 0x00080000U
- XRFDC_SUBADC2_IXR_DCDR_OF_MASK 0x00100000U
- XRFDC_SUBADC2_IXR_DCDR_UF_MASK 0x00200000U
- XRFDC_SUBADC3_IXR_DCDR_OF_MASK 0x00400000U
- XRFDC_SUBADC3_IXR_DCDR_UF_MASK 0x00800000U
- XRFDC_ADC_OVR_VOLTAGE_MASK 0x04000000U
- XRFDC_ADC_OVR_RANGE_MASK 0x08000000U
- XRFDC_ADC_DAT_OVR_MASK 0x40000000U
- XRFDC_ADC_FIFO_OVR_MASK 0x80000000U
- XRFDC_COMMON_MASK 0x01000000U
- XRFDC_DAC_IXR_FIFOUSRDAT_SUPP_MASK 0x30000000U (Gen 3/DFE)
- XRFDC_DAC_IXR_FIFOUSRDAT_MASK 0x3000000FU (Gen 3/DFE)
- XRFDC_DAC_IXR_FIFOACTIND_OF_MASK 0x20000000U (Gen 3/DFE)
- XRFDC_DAC_IXR_FIFOACTIND_UF_MASK 0x10000000U (Gen 3/DFE)
- XRFDC_DAC_IXR_MXR_HLF_I_MASK 0x00002000U (Gen 3/DFE)
- XRFDC_DAC_IXR_MXR_HLF_Q_MASK 0x00004000U (Gen 3/DFE)
- XRFDC_DAC_IXR_IMR_OV_MASK 0x00040000U (Gen 3/DFE)
- XRFDC_DAC_IXR_INV_SINC_EVEN_NYQ_MASK 0x00080000U (Gen 3/DFE)
- XRFDC_ADC_CMODE_OVR_MASK 0x10000000U (Gen 3/DFE)
- XRFDC_ADC_CMODE_UNDR_MASK 0x20000000U (Gen 3/DFE)
- XRFDC_IXR_FIFOUSRDAT_OBS_MASK 0x0000F000U (Gen 3/DFE)
Description
This API function enables the interrupt for the corresponding converter by taking
the IntrMask
as an input and writing to the
corresponding register bit.
Return Value
XRFDC_SUCCESS
XRFDC_FAILURE