Changeset 15455
- Timestamp:
- 04/28/13 11:30:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/doc/dimctrl.js
r14696 r15455 91 91 */ 92 92 dimctrl.getState = function() { /* [native code] */ } 93 94 /** 95 * Set an interrupt handler, a function which is called if an 96 * interrupt is received, e.g. via dim (dimctrl --interrupt). 97 * Note that the interrupt handler is executed in its own JavaScript 98 * thread. Thus it interrupts the execution of the script, but does 99 * not stop its execution. Please also note that this is a callback 100 * from the main loop. As long as the handler is executed, no other 101 * event (dim or command interface) will be processed. 102 * 103 * @param {Function} [func] 104 * Function to be called when an interrupt is received. Null, undefined 105 * or no argument to remove the handler. 106 * 107 * @throws 108 * if number of type of arguments is wrong 109 * 110 * @example 111 * function handleIrq(payload, time, user) 112 * { 113 * console.out("Data received: "+payload); 114 * console.out("Interrupt time: "+time); 115 * console.out("Issuing user: "+user); 116 * } 117 * dimctrl.setInterruptHandler(handleIrq); 118 */ 119 dimctrl.setInterruptHandler = function() { /* [native code] */ }
Note:
See TracChangeset
for help on using the changeset viewer.