Class FlinkCounter

  • All Implemented Interfaces:
    FlinkDefinitions

    public class FlinkCounter
    extends Object
    implements FlinkDefinitions
    The flink counter subdevice realizes counter function within a flink device. Notably, it can be used for quadrature decoding. It offers several channels.
    Author:
    Urs Graf
    • Field Detail

      • dev

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

      • FlinkCounter

        public FlinkCounter​(FlinkSubDevice dev)
        Create a flink counter subdevice.
        Parameters:
        dev - subdevice in a flink device which implements the counter functionality
    • Method Detail

      • getCount

        public short getCount​(int channel)
        Returns the counter value.
        Parameters:
        channel - channel to read
        Returns:
        counter value
      • reset

        public void reset()
        Resets the counter subdevice with all channels. After resetting the counter it resumes its operation.