DCT Lightfoot v3 API specification

com.dctl.hardware.timer
Class TickTimer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.dctl.hardware.timer.Timer
              |
              +--com.dctl.hardware.timer.TickTimer
All Implemented Interfaces:
Runnable

public class TickTimer
extends Timer

Tick timer


Field Summary
 
Fields inherited from class com.dctl.hardware.timer.Timer
callback, EVENT_COUNTER, hHandle, instance, MEASUREMENT, mode, pQueue, PWM, TICK_TIMER
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TickTimer(int instance)
          Create a new tick timer on the specified instance
 
Method Summary
 void enableNotifications(TimerCallback callback, int interval, boolean repeat)
          Enable the timer, causing it to notify the callback when the interval expires, optionally repeating
 
Methods inherited from class com.dctl.hardware.timer.Timer
run, setCallback, setContinuous, setEnabled, setInterval, waitForNotification
 
Methods inherited from class java.lang.Thread
activeCount, currentThread, getName, getPriority, isAlive, join, setPriority, sleep, start, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TickTimer

public TickTimer(int instance)
          throws IllegalArgumentException,
                 SystemException
Create a new tick timer on the specified instance

Parameters:
instance - The instance
Throws:
IllegalArgumentException - IllegalArgumentException if the timer instance does not exist
SystemException - if there is an error in the operation
Method Detail

enableNotifications

public void enableNotifications(TimerCallback callback,
                                int interval,
                                boolean repeat)
                         throws SystemException
Enable the timer, causing it to notify the callback when the interval expires, optionally repeating

Parameters:
callback - The callback to notify
interval - The interval in microseconds
repeat - Set to true to repeat continuously
Throws:
SystemException - if there is an error in the operation

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification