Class Config.ADC_InputDescriptor

java.lang.Object
com.inertia.promove.Config.ADC_InputDescriptor
Enclosing class:
Config

public static class Config.ADC_InputDescriptor
extends java.lang.Object
  • Field Details

  • Constructor Details

  • Method Details

    • set

      public void set​(int _samplingChannel, int _channelPosition, int _inputADCIndex, int _offset, int _scale, Config.ADC_InputMode _mode, boolean _adoptOffset, boolean _adoptScale)
      set the ADC input descriptor
      Parameters:
      _samplingChannel - the sampling channel
      _channelPosition - the position within the channel
      _inputADCIndex - the index of the ADC input
      _offset - the offset for the values
      _scale - the scale for the values
      _mode - the ADC mode
      _adoptOffset - apply the offset?
      _adoptScale - apply the scale?
    • parse

      public int parse​(byte[] in) throws InertiaException
      parse the ADC descriptor
      Parameters:
      in - the input IDP bytes
      Returns:
      the size of the read descriptor
      Throws:
      InertiaException - when error occurs
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object