Class FlinkWatchdog

  • All Implemented Interfaces:
    FlinkDefinitions

    public class FlinkWatchdog
    extends Object
    implements FlinkDefinitions
    The flink watchdog subdevice realizes a watchdog function within a flink device. It offers several channels. Each channel drives a single pin.
    Author:
    Urs Graf
    • Field Detail

      • dev

        public FlinkSubDevice dev
        Handle to the subdevice within our flink device
    • Constructor Detail

      • FlinkWatchdog

        public FlinkWatchdog​(FlinkSubDevice dev)
        Creates a watchdog subdevice.
        Parameters:
        dev - handle to the subdevice
    • Method Detail

      • getBaseClock

        public int getBaseClock()
        Returns the base clock of the underlying hardware counter.
        Returns:
        the base clock in Hz
      • getCounterValue

        public int getCounterValue()
        Returns the actual counter value.
        Returns:
        counter value
      • setCounterValue

        public void setCounterValue​(int value)
        Sets the actual counter value.
        Parameters:
        value - counter value
      • rearm

        public void rearm()
        Arms the watchdog. If it has timed out, you have to arm again before it can run again.
      • getStatus

        public boolean getStatus()
        Reads the status register and returns the state of the status bit within.
        Returns:
        true, if watchdog still running, false, if watchdog has timed out