Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

PreHook

Run just before the interrupt service routine

Syntax

int __cdecl  your_company_name_boardPreHook(xpcPCIDevice *pciInfo);

Argument

pciInfo

Pointer to the PciDevice structure.

Description

your_company_name_boardPreHook executes just before the model-level interrupt service routine (either a function-call subsystem or entire model) is called.

Return

This function must check the status register on the board to determine if the board caused the interrupt. It returns one of the following:

  • XPC_RUN_ISR — If the function determines that the board caused the interrupt, the function must perform the required operation to stop the board from generating the interrupt. The function then returns this value.

  • XPC_DROP_ISR — If the function determines that the board did not cause the interrupt, this function returns this value.

See Also

xpcPCIDevice

Was this topic helpful?