PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

SetInterrupt (csCode = 7)

The optional SetInterrupt routine controls the generation of VBL interrupts.

OSErr = Control(theDeviceRefNum, cscSetInterrupt, &theVDFlag Record );
--> csMode
Enable or disable interrupts
-- filler
Unused

To enable interrupts, pass a csMode value of 0; to disable interrupts, pass a csMode value of 1. The VDFlagRecord data structure is defined in Replacing Graphics Drivers.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)