Download Electronic Instrumentation

Transcript
CAEN
Electronic Instrumentation
VMEIRQCheck
Description
This function allows to read the status of interrupt requests on the VME bus (IRQ1-7) and, for this reason, the handle to
be passed is the VME master one, not the digitizer one. This function can only be used for digitizer that communicate
via the VME bus. The purpose of this function is almost exclusively for debugging.
Synopsis
CAEN_DGTZ_ErrorCode CAENDGTZ_API
CAEN_DGTZ_VMEIRQCheck(int VMEHandle,
uint8_t *Mask
);
Arguments
Name
VMEHandle
*Mask
Description
Device handler of the VME bridge that handles the interrupts
Mask of the IRQ lines read from the VME bus (1=IRQ active, 0=IRQ not active)
Return Values
0: Success; Negative numbers are error codes (see Return Codes).
IACKCycle
Description
This function performs an interrupt acknowledge cycle on the digitizer identified by the handle. This function can only
be used for direct communications via optical links; in case of communication via the VME, it should be used
VMEIACKCycle described farther. Although in the case of direct connection to the optical link there is not need to
identify the digitizer that generated the interrupt request, the IACK cycle is still executed in the case of mode ROAK
(release on acknowledge) to release the request
Synopsis
CAEN_DGTZ_ErrorCode CAENDGTZ_API
CAEN_DGTZ_IACKCycle(int handle,
int32_t *board_id
);
Arguments
Name
handle
*board_id
Description
Device handler of the digitizer
Data (status_id) returned by the digitizer that asserted the interrupt request.
Return Values
0: Success; Negative numbers are error codes (see Return Codes).
17
UM1935 – CAENDigitizer User & Reference Manual