API Reference: Libraries

W83627wdtK

NAME

W83627wdtK - Driver for the watchdog

ROUTINES

W83627WDTInit( ) - initialization routine of device
W83627WDTCount( ) - Reload counter with new value
W83627WDTCountGet( ) - Get current WDT value
W83627WDTMode( ) - Set time unit for WDT
W83627WDTDisable( ) - Disable WDT module
W83627WDTEnable( ) - Enable WDT module

DESCRIPTION

        This driver provides support for the Winbond W83627 watchdog.
        There are functions available to run/reload/stop and set time base unit.


API Reference: Routines

W83627WDTInit( )

NAME

W83627WDTInit( ) - initialization routine of device

DESCRIPTION

This is the function called to perform initialization of the device. It's launched from sysHwInit2() /SysLib.c/

NOTE

RETURNS

OK, ERROR

ERRNO

Not Available

SEE ALSO

W83627wdtK


API Reference: Routines

W83627WDTCount( )

NAME

W83627WDTCount (UINT8 uDelay) - Reload counter with new value

DESCRIPTION

  Reload WDT counter with new value, in case of zero value force the WDT trigger

RETURNS

OK, or ERROR

ERRNO

Not Available

SEE ALSO

W83627wdtK


API Reference: Routines

W83627WDTCountGet( )

NAME

W83627WDTCountGet (UINT8* pDelay) - Get current WDT value

DESCRIPTION

  Obtain current value of WDT counter

RETURNS

OK, or ERROR

ERRNO

Not Available

SEE ALSO

W83627wdtK


API Reference: Routines

W83627WDTMode( )

NAME

W83627WDTMode (BOOL fMode) - Set time unit for WDT

DESCRIPTION

  Set Watchdog time unit, depends on function parameter "fMode":
    TRUE = seconds
    FALSE = minutes

RETURNS

OK, or ERROR

ERRNO

Not Available

SEE ALSO

W83627wdtK


API Reference: Routines

W83627WDTDisable( )

NAME

W83627WDTDisable (void) - Disable WDT module

DESCRIPTION

  Disable watchdog to control target, but it may be utilized as a countdown counter

RETURNS

OK, or ERROR

ERRNO

Not Available

SEE ALSO

W83627wdtK


API Reference: Routines

W83627WDTEnable( )

NAME

W83627WDTEnable (void) - Enable WDT module

DESCRIPTION

  Enable watchdog to control target, but it should be enabled in BIOS too.
  (only BIOS afford to route WDT output to CPU reset)
  To prevent undesirable reset this routine updates WDT counter with maximum value (0xFF)

RETURNS

OK, or ERROR

ERRNO

Not Available

SEE ALSO

W83627wdtK