rfdc
Xilinx SDK Drivers API Documentation
xrfdc_intr_example.c File Reference

Overview

For the RFSoC Data Converter, the interrupts are mostly used for error reporting.

The interrupts do not do any data processing. Since they dont do any data processing, interrupts are invoked in rare conditions. The example here attempts to demonstrate users how an error interrupt can be generated. Also once generated how does the processing happen. Upon an interrupt, the control reaches to ScuGIC interrupt handler. From there the control is transferred to the libmetal isr handling which then calls the driver interrupt handler. Users are expected to register their callbacks with the driver interrupt framework. The actual interrupt handling is expected to happen in the user provided callback.

This example generates ADC fabric interrupts by writing some incorrect fabric data rate based on the read/write clocks.

MODIFICATION HISTORY:
Ver   Who    Date     Changes

1.0 sk 05/25/17 First release 1.1 sk 08/09/17 Modified the example to support both Linux and Baremetal.
 

Functions

void RFdcHandler (void *CallBackRef, u32 Type, int Tile_Id, u32 Block_Id, u32 StatusEvent)
 Callback handler. More...
 
int main (void)
 Main function that invokes the polled example in this file. More...
 

Function Documentation

◆ main()

int main ( void  )

Main function that invokes the polled example in this file.

Parameters
None.
Returns
  • XRFDC_SUCCESS if the example has completed successfully.
  • XRFDC_FAILURE if the example has failed.
Note
None.

◆ RFdcHandler()

void RFdcHandler ( void *  CallBackRef,
u32  Type,
int  Tile_Id,
u32  Block_Id,
u32  StatusEvent 
)

Callback handler.

Returns
None
Note
None.