2 Watchdog Timer Programming Procedure
(1) Example Code
private void button2_Click(object
{
IntPtr
pFunc = GetProcAddress(hMod, "SetPortVal");
if
(pFunc != IntPtr.Zero)
{
SetPortValType
typeof(SetPortValType));
SetPortVal(0x266, 0x0A, 1);
SetPortVal(0x265, 0x32, 1);
// SetPortVal(0x265, 0x3A, 1);
}
}
sender,
SetPortVal = (SetPortValType)Marshal.GetDelegateForFunctionPointer(pFunc,
// Set watchdog timer value is 10
// Set watchdog timer unit is sec and enable watchdog
EventArgs
e)
// Set watchdog timer unit is minuates and enable watchdog
51
Need help?
Do you have a question about the VBOX-3200 and is the answer not in the manual?