Download VISA for the Component Object Model
Transcript
Page 8-26
Section 8: The Complete VISA COM I/O IDL
HRESULT VxiVmeInterruptStatus([out, retval] short *pVal);
[propget, helpcontext(HlpCtxIVxiBackplane + 6), helpstring("Get the
SYSFAIL line state")]
HRESULT VxiVmeSysfailStatus([out, retval] LineState *pVal);
[helpcontext(HlpCtxIVxiBackplane + 7), helpstring("Assert the specified
interrupt or signal")]
HRESULT AssertInterruptSignal(
[in] AssertInterruptConst mode,
[in] long statusID);
[helpcontext(HlpCtxIVxiBackplane + 8), helpstring("Assert a trigger")]
HRESULT AssertTrigger(
[in, defaultvalue(TRIG_PROT_DEFAULT)] TriggerProtocol protocol);
[helpcontext(HlpCtxIVxiBackplane + 9), helpstring("Assert or deassert the
specified utility signal")]
HRESULT AssertUtilSignal(
[in] AssertUtilityConst line);
[helpcontext(HlpCtxIVxiBackplane + 10), helpstring("Map between the
specified trigger lines")]
HRESULT MapTrigger(
[in] TriggerLine trigSrc,
[in] TriggerLine trigDest,
[in, defaultvalue(0)] short mode);
[helpcontext(HlpCtxIVxiBackplane + 11), helpstring("Undo a previous
trigger line mapping")]
HRESULT UnmapTrigger(
[in] TriggerLine trigSrc,
[in, defaultvalue(TRIG_ALL)] TriggerLine trigDest);
};
//==============================================================================
// Event Management and Events
//==============================================================================
//-------------------------------------------------------------------------// IEvent
//-------------------------------------------------------------------------[
object,
oleautomation,
helpstring("VISA Event Interface"),
uuid(db8cbf12-d6d3-11d4-aa51-00a024ee30bd),
helpcontext(HlpCtxIEvent + 49),
pointer_default(unique)
]
interface IEvent : IUnknown
{
[propget, helpcontext(HlpCtxIEvent + 1), helpstring("Get the event type")]
HRESULT Type([out, retval] EventType *pVal);
[propget, helpcontext(HlpCtxIEvent + 2), helpstring("Get the custom event
type number")]
HRESULT CustomEventTypeNumber([out, retval] long *pVal);
[hidden, helpcontext(HlpCtxIEvent + 3), helpstring("Get an attribute of
the event")]
HRESULT GetAttribute(
[in] long attribute,
[out, retval] VARIANTARG *pAttrState);
[hidden, helpcontext(HlpCtxIEvent + 4), helpstring("Set an attribute of
the event")]
HRESULT SetAttribute(
[in] long attribute,
[in] VARIANTARG attrState);
[helpcontext(HlpCtxIEvent + 5), helpstring("Close the event")]
HRESULT Close();
};
//--------------------------------------------------------------------------
VPP-4.3.4: VISA Implementation Specification for COM
VXIplug&play Systems Alliance