<< Previous | Next >>

VdHitWd

int VdHitWd( int ndog );

Description

Resets virtual watchdog counter to N counts where N is the argument to the call to VdGetFreeWd() that obtained the virtual watchdog ndog.

The virtual driver counts down watchdogs every 62.5 ms. If a virtual watchdog reaches 0, this is a fatal error. Once a virtual watchdog is active it should reset periodically with a call to VdHitWd() to prevent this.

If N = 2, VdHitWd() will need to be called again for virtual watchdog ndog within 62.5 ms.

If N = 255, VdHitWd() will need to be called again for virtual watchdog ndog within 15.9375 seconds.

Parameters

ndog
Id of virtual watchdog returned by VdGetFreeWd()

Library

VDRIVER.LIB


Dynamic C Functions << Previous | Next >> rabbit.com