Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

Chapter 5 - Input 87 0 Cerror dissociate(trigger, devclass, devnum) Cint trigger; /* trigger number*/ Cdevoff devclass; /* device type*/ Cint devnum; /* device number*/ dissociate removes the association between a trigger and a specified device. If dissociate is called while there are events pending in the event queue for the dissociated device, the pending events are discanled. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EINDNOEX [80] Input device does not exist EINDINIT [81] Input device not initialized. EINNTASD [85] association does not exist EINTRNEX [86] Trigger does not exist.

Set Initial Value Cerror set_initial_value(devclass, devnum, value) Cdevoff devclass; /* device type*/ Cint devnum; /* device number*/ Cinrep *value; /* device value*/ set initial value setsthecurrentmeasureofaspecifieddevice. This - - function resets the position of the track, if the track is appropriate and activated. set_initial_ value also resets the request register. 0 A pointer element of the Cinrep structure must be set to the address of an application program allocated area before the values can be set. For example, in Figure 5-2 the following statements were necessary before an initial value could be assigned to the LOCATOR device.

Cinrep ivalue; point.x = 16384; point.y = 16384; ivalue.xypt = &point; Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EINDNOEX [80] Input device does not exist. EINDINIT [81] Input device not initialized. EBADDATA [95] Contents of input data record are invalid. ESTRSIZE (96] Length of initial string is greater than the implementation defined maximum. Set VALUATOR Range Cerror set_valuator_range(devnum, vmin, vmax) Cint devnum; /* device number*/ Cfloat vmin, vmax; /* limits of VALUATOR*/ 0 set_valuator_range specifies the limits of the IC_VALUATOR. Device coordinates are mapped into the JC_YALUATOR range. JC_VALUATOR events Vcnion C of 17 March 1986