Package com.inertia.promove
Class Config.IEPE_voltage
java.lang.Object
com.inertia.promove.Config.IEPE_voltage
- Enclosing class:
- Config
public static class Config.IEPE_voltage
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description boolean
enable
boolean
potEnable
Config.VmonBoardType
type
int
voltage
-
Constructor Summary
Constructors Constructor Description IEPE_voltage()
-
Method Summary
Modifier and Type Method Description int
getBytes(byte[] out)
get the IDP byte representation of the IEPE voltage configurationint
parse(byte[] in)
parse IEPE voltage configuration from IDP bytesvoid
set(boolean _enable, boolean _potEnable, int _voltage)
set the parametersjava.lang.String
toString()
-
Field Details
-
Constructor Details
-
IEPE_voltage
public IEPE_voltage()
-
-
Method Details
-
set
public void set(boolean _enable, boolean _potEnable, int _voltage)set the parameters- Parameters:
_enable
- enable IEPE voltage_potEnable
- enable pot_voltage
- voltage
-
parse
parse IEPE voltage configuration from IDP bytes- Parameters:
in
- input IDP bytes- Returns:
- number of IDP bytes read
- Throws:
InertiaException
- when error occurs
-
getBytes
public int getBytes(byte[] out)get the IDP byte representation of the IEPE voltage configuration- Parameters:
out
- the output IDP bytes- Returns:
- the number of IDP bytes
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-