DCT Lightfoot v3 API specification

com.dctl.hardware.watchdog
Class MultipleWatchdog

java.lang.Object
  |
  +--com.dctl.hardware.watchdog.MultipleWatchdog

public class MultipleWatchdog
extends Object

Multiple client watchdog that allows multiple threads to each strobe the watchdog


Method Summary
static int getTimeout()
          Get the timeout value
 boolean isEnabled()
          Get the enabled state
static MultipleWatchdog newClient()
          Create a new multiple watchdog client
 void setEnabled(boolean flag)
          Enable/disable the watchdog
static void setTimeout(int ms)
          Set the timeout in milliseconds
 void strobe()
          Strobe the client.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newClient

public static MultipleWatchdog newClient()
Create a new multiple watchdog client

Returns:
a client

setTimeout

public static void setTimeout(int ms)
                       throws SystemException
Set the timeout in milliseconds

Parameters:
ms - The timeout
Throws:
SystemException - if there is a problem

getTimeout

public static int getTimeout()
                      throws SystemException
Get the timeout value

Returns:
the timeout
Throws:
SystemException - if there is a problem

strobe

public void strobe()
            throws SystemException
Strobe the client. If all enabled clients have been strobed then strobe the main client

Throws:
SystemException - if there is an error

setEnabled

public void setEnabled(boolean flag)
                throws SystemException
Enable/disable the watchdog

Parameters:
flag - The value to set it to
Throws:
SystemException - if there is an error

isEnabled

public boolean isEnabled()
Get the enabled state

Returns:
true if it is enabled, false otherwise

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification