Package com.inertia.promove
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 Summary
Fields Modifier and Type Field Description boolean
adoptOffset
boolean
adoptScale
int
channelPosition
int
inputADCIndex
Config.ADC_InputMode
mode
int
offset
int
samplingChannel
double
scale
Config.ADC_DescriptorType
type
-
Constructor Summary
Constructors Constructor Description ADC_InputDescriptor()
-
Method Summary
Modifier and Type Method Description int
parse(byte[] in)
parse the ADC descriptorvoid
set(int _samplingChannel, int _channelPosition, int _inputADCIndex, int _offset, int _scale, Config.ADC_InputMode _mode, boolean _adoptOffset, boolean _adoptScale)
set the ADC input descriptorjava.lang.String
toString()
-
Field Details
-
type
-
samplingChannel
public int samplingChannel -
channelPosition
public int channelPosition -
inputADCIndex
public int inputADCIndex -
offset
public int offset -
scale
public double scale -
mode
-
adoptOffset
public boolean adoptOffset -
adoptScale
public boolean adoptScale
-
-
Constructor Details
-
ADC_InputDescriptor
public ADC_InputDescriptor()
-
-
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
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 classjava.lang.Object
-