private static void setFilter(DigitalSource input, int channelIndex) { if (input != null) { // Counter might have just one input DigitalGlitchFilterJNI.setFilterSelect(input.m_port, channelIndex); int selected = DigitalGlitchFilterJNI.getFilterSelect(input.m_port); if (selected != channelIndex) { throw new IllegalStateException("DigitalGlitchFilterJNI.setFilterSelect(" + channelIndex + ") failed -> " + selected); } } }
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection) { super(aSource, bSource, reverseDirection); }
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource) { super(aSource, bSource); }
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection, EncodingType encodingType) { super(aSource, bSource, reverseDirection, encodingType); }
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource, boolean reverseDirection) { super(aSource, bSource, indexSource, reverseDirection); }
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource) { super(aSource, bSource, indexSource); }
public NewEncoder(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource) { super(aSource, bSource, indexSource); }
public NewEncoder(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource, boolean reverseDirection) { super(aSource, bSource, indexSource, reverseDirection); }
public NewEncoder(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection, EncodingType encodingType) { super(aSource, bSource, reverseDirection, encodingType); }
public NewEncoder(DigitalSource aSource, DigitalSource bSource) { super(aSource, bSource); }
public NewEncoder(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection) { super(aSource, bSource, reverseDirection); }
/** * Assigns the DigitalSource to this glitch filter. * * @param input The DigitalSource to add. */ public void add(DigitalSource input) { setFilter(input, m_channelIndex + 1); }
/** * Removes this filter from the given digital input. * * @param input The DigitalSource to stop filtering. */ public void remove(DigitalSource input) { setFilter(input, 0); }