iomodule
Vitis Drivers API Documentation
xiomodule_intr_setup_example.c File Reference

Overview

This file contains a design example using the IO Module driver (XIOModule) and hardware device using interrupt mode.This example tests the internal interrupts in the IO Module.

This file can be used as a standalone example or by the TestAppGen utility to include a test of IOModule interrupts.

Note

None

MODIFICATION HISTORY:
Ver   Who  Date     Changes


2.19 ml 05/21/25 First release

Functions

XStatus IOModuleInterruptSetup (XIOModule *IOModuleInstancePtr, u32 DeviceId)
 This function is used by the TestAppGen generated application to setup the IO Module interrupts. More...
 
int main (void)
 This is the main function for the IO Module example. More...
 

Function Documentation

XStatus IOModuleInterruptSetup ( XIOModule IOModuleInstancePtr,
u32  DeviceId 
)

This function is used by the TestAppGen generated application to setup the IO Module interrupts.

Parameters
IOModuleInstancePtris the reference to the IO Module instance.
DeviceIdis device ID of the IO Module Device , typically XPAR_<IOMODULE_instance>_DEVICE_ID value from xparameters.h
Returns
XST_SUCCESS to indicate success, otherwise XST_FAILURE
Note
None.

References IOModuleSetupIntrSystem(), XIOModule_Initialize(), XIOModule_SelfTest(), and XIOModule_Start().

Referenced by main().

int main ( void  )

This is the main function for the IO Module example.

This function is not included if the example is generated from the TestAppGen test tool.

Parameters
None.
Returns
XST_SUCCESS to indicate success, otherwise XST_FAILURE.
Note
None.

References IOModuleInterruptSetup().