Skip to main content

Watchdog Software Library API

danger

this is a legacy library and thus not supported by Toradex anymore. We recommend that you use the new libraries for all Toradex modules. Please see the Toradex CE Libraries and Code Samples for up-to-date information.


 This article describes the Watchdog software library API and provides a functional overview

Defines

#define WATCHDOG_VER_MAJ   1
 Major Library Version.
#define WATCHDOG_VER_MIN   0
 Library Subversion.
#define WATCHDOG_VER_BUILD   0
 Library Build.

Functions

void WatchdogGetLibVersion (DWORD *pVerMaj, DWORD *pVerMin, DWORD *pBuild)
BOOL WatchdogInit ()
BOOL WatchdogDeinit ()
BOOL WatchdogRetrigger (DWORD Timeout_ms)

Detailed Description

WatchDog Support Library.
Author:
kia, $Author$
Version:
$Rev$
Date:
$Date$
Target Platforms:
Colibri PXA320, Windows CE 6.0
Caveats:
The watchdog does not work on PXA270 due to bug in the PXA270 CPU.

Define Documentation

#define WATCHDOG_VER_BUILD   0
Library Build.
#define WATCHDOG_VER_MAJ   1
Major Library Version.
#define WATCHDOG_VER_MIN   0
Library Subversion.

Function Documentation

BOOL WatchdogDeinit( ) 
Deactivates watchdog This is not possible, therefore the function always returns FALSE
Return values:
TRUEsuccess
FALSEerror
void WatchdogGetLibVersion(DWORD * pVerMaj,
  DWORD * pVerMin,
  DWORD * pBuild 
 )  
returns the version of this library
Parameters:
[out]pVerMajMain Version of this library
[out]pVerMinSubversion of this library
[out]pBuildBuild Number of this library
BOOL WatchdogInit( ) 
Activates the watchdog, and sets the Watchdog timer to the maximum timeout: 2^32 ticks / 3.125MHz = 1'374sec = 23min.
Return values:
TRUEsuccess
FALSEerror
BOOL WatchdogRetrigger(DWORD Timeout_ms) 
Retriggers Watchdog
Parameters:
[in]Timeout_msA hardware reset will be done if the Watchdog is not retriggered within this time [ms]
valid range: 1...1'374'389
Return values:
TRUEsuccess
FALSEerror


Send Feedback!