SIO Module
Application Program Interface
2-387
❏
use callback function
. Check this box if you want to use this SIO
object with a callback function. In most cases, the callback function
is SWI_andnHook or a similar function that posts a SWI. Checking
this box allows the SIO object to be used with SWI threads.
Tconf Name: useCallBackFxn
Type: Bool
Example:
mySio.useCallBackFxn = false;
❏
callback function
. A function for the SIO object to call. In most
cases, the callback function is SWI_andnHook or a similar function
that posts a SWI. This function gets called by the class driver (see the
DIO Adapter) in the class driver's callback function. This callback
function in the class driver usually gets called in the mini-driver code
as a result of the HWI.
Tconf Name: callBackFxn
Type: Extern
Example:
mySio.callBackFxn =
prog.extern("SWI_andnHook");
❏
argument 0
. The first argument to pass to the callback function. If the
callback function is SWI_andnHook, this argument should be a SWI
object handle.
Tconf Name: arg0
Type: Arg
Example:
mySio.arg0 = prog.get("mySwi");
❏
argument 1
. The second argument to pass to the callback function.
If the callback function is SWI_andnHook, this argument should be a
value mask.
Tconf Name: arg1
Type: Arg
Example:
mySio.arg1 = 2;