MIL_ID EventId, | //in |
MIL_INT64 InfoType, | //in |
void *UserVarPtr | //out |
This function allows you to get information about the event that caused the hook-handler function to be called. The MfpgaGetHookInfo() function should only be called within the scope of a PU hook-handler function (see MfpgaHookFunction()).
Specifies the PU event identifier received by the hook-handler function (see MfpgaHookFunction()).
Specifies the type of information to get.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information.
See the Parameter associations section for possible values that can be returned.
The table below lists possible values for the InfoType parameter and possible values returned to the UserVarPtr parameter.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For inquiring information
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_FPGA_DEVICE_NUMBER |
Retrieves the device number of the Processing FPGA that contains the PU that triggered the event. (more details...) |
† | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||||
M_FUNCTION_ID |
Retrieves the function identifier of the PU that triggered the event. (more details...) |
† | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||||
M_INSTANCE_ID |
Retrieves the rank of the instance of the PU that triggered the event, when two or more instances, with the same function and subfunction identifier, are present in the loaded FPGA configuration. (more details...) |
† | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||||
M_SUB_FUNCTION_ID |
Retrieves the subfunction identifier of the PU that triggered the event. (more details...) |
† | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||||
M_TIME_STAMP |
Retrieves the time stamp of the event. (more details...) |
† | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
† | j | k | l | m | p | q | r |
Header | Include mil.h; milfpga.h. |
Library | Use mil.lib; milfpga.lib. |
DLL | Requires mil.dll; milfpga.dll. |