Xil_ExceptionRegisterHandler - 2022.2 English - UG643

Xilinx Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2022-10-19
Version
2022.2 English

Makes the connection between the Id of the exception source and the associated handler that is to run when the exception is recognized.

The argument provided in this call as the DataPtr is used as the argument for the handler when it is called.

Prototype

void Xil_ExceptionRegisterHandler(u32 Id, Xil_ExceptionHandler Handler, void *Data);

Parameters

The following table lists the Xil_ExceptionRegisterHandler function arguments.

Table 1. Xil_ExceptionRegisterHandler Arguments
Name Description
Id contains the 32 bit ID of the exception source and should be XIL_EXCEPTION_INT or be in the range of 0 to XIL_EXCEPTION_LAST. See xil_mach_exception.h for further information.
Handler handler function to be registered for exception
Data a reference to data that will be passed to the handler when it gets called.