HOOK Module
2-140
❏
Delete function
. The name of a function to call when any task is
deleted at run-time with TSK_delete.
Tconf Name: deleteFxn
Type: Extern
Example:
myHook.deleteFxn =
prog.extern("myDelete");
❏
Exit function
. The name of a function to call when any task exits.
The TSK_exit topic describes the Exit function.
Tconf Name: exitFxn
Type: Extern
Example:
myHook.exitFxn = prog.extern("myExit");
❏
Call switch function
. Set this property to true if you want a function
to be called when any task switch occurs.
Tconf Name: callSwitchFxn
Type: Bool
Example:
myHook.callSwitchFxn = false;
❏
Switch function
. The name of a function to call when any task switch
occurs. This function can give the application access to both the
current and next task handles. The TSK Module topic describes the
Switch function.
Tconf Name: switchFxn
Type: Extern
Example:
myHook.switchFxn =
prog.extern("mySwitch");
❏
Call ready function
. Set this property to true if you want a function
to be called when any task becomes ready to run.
Tconf Name: callReadyFxn
Type: Bool
Example:
myHook.callReadyFxn = false;
❏
Ready function
. The name of a function to call when any task
becomes ready to run. The TSK Module topic describes the Ready
function.
Tconf Name: readyFxn
Type: Extern
Example:
myHook.readyFxn =
prog.extern("myReady");
❏
order
. Set this property for all HOOK function objects match the
order in which HOOK functions should be executed.
Tconf Name: order
Type: Int16
Example:
myHook.order = 2;