DCT Lightfoot v3 API specification

com.dctl.hardware.watchdog
Class SimpleWatchdog

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

public class SimpleWatchdog
extends Object

Simple watchdog client that allows the watchdog to be used


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

Constructor Detail

SimpleWatchdog

public SimpleWatchdog()
               throws SystemException
Create a new watchdog

Throws:
SystemException - if there is a problem
Method Detail

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 a problem

isEnabled

public boolean isEnabled()
Get the enabled state

Returns:
true if it is enabled, false otherwise

strobe

public void strobe()
            throws SystemException
Strobe the watchdog

Throws:
SystemException - if there is a problem

setTimeout

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

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

getTimeout

public int getTimeout()
Get the timeout value

Returns:
the timeout

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification