Personal488 User's Manual For Windows 95 and Windows NT
API Command Reference 49
Arm
Syntax
INT WINAPI Arm(DevHandleT devHandle, ArmCondT condition);
devHandle
refers to either an IEEE 488 hardware interface or an external device. If
devHandle
refers to an external device, the
Arm
command acts on the hardware
interface to which the external device is attached.
condition
is one of the following:
acError
,
acSRQ
,
acPeripheral
,
acController
,
acTrigger
,
acClear
,
acTalk
,
acListen
,
acIdle
,
acByteIn
,
acByteOut
, or
acChange
.
Returns
-1
if
DevHandleT
is an illegal device or interface
otherwise, the current state of the event trigger flag
Mode
Any
Bus States
None
Example
errorflag = Arm(ieee, acSRQ|acTrigger|acChange);
See Also
Disarm, OnEvent
The
Arm
command allows Driver488 to signal to the user-specified function when one or more of the
specified conditions occurs.
Arm
sets a flag for each implementation of the conditions which are user-
indicated.
Arm
conditions may be combined using the bitwise
OR
operator.
The following
Arm
conditions are supported:
Condition
Description
acSRQ
The Service Request bus line is asserted.
acPeripheral
An addressed status change has occurred and the interface is a Peripheral.
acController
An addressed status change has occurred and the interface is an Active Controller.
acTrigger
The interface has received a device
Trigger
command.
acClear
The interface has received a device
Clear
command.
acTalk
An addressed status change has occurred and the interface is a Talker.
acListen
An addressed status change has occurred and the interface is a Listener.
acIdle
An addressed status change has occurred and the interface is neither Talker nor Listener.
acByteIn
The interface has received a data byte.
acByteOut
The interface has been configured to output a data byte.
acError
A Driver488 error has occurred.
acChange
The interface has changed its addressed status. Its Controller/Peripheral or
Talker/Listener/Idle states of the interface have changed.
Summary of Contents for OMB-PER-488/W95
Page 1: ......
Page 4: ...ii Personal488 User s Manual For Windows 95 and Windows NT Notes...
Page 38: ...32 Personal488 with GP488B Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 52: ...46 Driver488 W95 Driver488 WNT Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 136: ...130 Appendix Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 139: ...Personal488 User s Manual For Windows 95 and Windows NT Index 133 Notes...
Page 142: ...136 Abbreviations Personal488 User s Manual For Windows95 and Windows NT Notes...