public class EDAApplication extends CommonStream<EDACallback>
Constructor and Description |
---|
EDAApplication(PacketManager packetManager) |
Modifier and Type | Method and Description |
---|---|
ResistorTIACalibratePacket |
calibrateResistorTIA(ScaleResistor minScale,
ScaleResistor maxScale,
ScaleResistor lpResistorTIA)
Calibrate Resistor Trans Impedance Amplifier.
|
EDADCBCommandPacket |
deleteDeviceConfigurationBlock(DCBConfigBlockIndex dcbBlockIndex)
Deletes EDA Device configuration block.
|
CommandPacket |
deleteRTIACalibrationTable()
Delete RTIA calibration table.
|
void |
disableCSVLogging()
Stops logging stream data into CSV.
|
DynamicScalingPacket |
disableDynamicScaling()
Disables Dynamic scaling.
|
void |
enableCSVLogging(java.io.File file)
Start logging stream data into CSV.
|
DynamicScalingPacket |
enableDynamicScaling(ScaleResistor minScale,
ScaleResistor maxScale,
ScaleResistor lpResistorTIA)
Enables Dynamic scaling.
|
EDAGetBaselineImpedancePacket |
getBaselineImpedance()
Get Baseline Impedance.
|
DecimationFactorPacket |
getDecimationFactor()
Gets decimation factor for EDA stream.
|
EDADCFGPacket |
getDeviceConfiguration(long[] addresses)
Get device configuration.
|
ResistorTIACalibratePacket |
getFdsRTIACalibrationTable()
Get FDS RTIA calibration table.
|
ResistorTIACalibratePacket |
getRamRTIACalibrationTable()
Get RAM RTIA calibration table.
|
EDADFTWindow[] |
getSupportedDFTWindows()
List all supported DFT window for EDA.
|
ScaleResistor[] |
getSupportedScales()
List all supported EDA Scales.
|
VersionPacket |
getVersion()
Returns EDA version info.
|
CommandPacket |
loadDeviceConfiguration()
Load device configuration.
|
EDADCBPacket |
readDeviceConfigurationBlock(DCBConfigBlockIndex dcbBlockIndex)
Returns entire device configuration block.
|
EDALibraryConfigPacket |
readLibraryConfiguration(long[] fields)
Reads library configuration from specified field values.
|
EDARegisterReadPacket |
readRegister(long[] addresses)
Reads the register values of specified addresses.
|
EDABaselineImpedancePacket |
resetBaselineImpedance()
Reset Baseline Impedance.
|
EDABaselineImpedancePacket |
setBaselineImpedance(float realDft16,
float imaginaryDft16,
float realDft8,
float imaginaryDft8,
long resistorBaseline)
Sets Baseline Impedance.
|
DecimationFactorPacket |
setDecimationFactor(short decimationFactor)
Sets decimation factor for EDA stream.
|
EDADCFGPacket |
setDeviceConfiguration(long[][] addressesValues)
Set device configuration.
|
EDADFTPacket |
setDiscreteFourierTransformation(EDADFTWindow dftWindow)
Set Discrete Fourier Transformation for EDA.
|
EDASleepWakeupPacket |
setPowerMode(EDAPowerMode powerMode)
Sets Power state to Hibernate or Wakeup State
EPHY_LDO turn on needs to be done prior to this.
|
CommandPacket |
writeDCBToLCFG()
Writes Device configuration block data to library configuration.
|
EDADCBCommandPacket |
writeDeviceConfigurationBlock(long[][] addressesValues,
DCBConfigBlockIndex dcbBlockIndex)
Writes the device configuration block values of specified addresses.
|
EDADCBCommandPacket |
writeDeviceConfigurationBlockFromFile(java.io.File file,
DCBConfigBlockIndex dcbBlockIndex)
Writes the device configuration block values of specified addresses from file.
|
EDALibraryConfigPacket |
writeLibraryConfiguration(long[][] fieldsValues)
Writes library configuration from List of fields and values.
|
EDARegisterWritePacket |
writeRegister(long[][] addressesValues)
Writes the register values of specified addresses.
|
getPacketLostCount, getSensorStatus, setCallback, startAndSubscribeStream, startSensor, stopAndUnsubscribeStream, stopSensor, subscribeStream, subscribeStreamData, unsubscribeStream, unsubscribeStreamData, updateTimestamp
setTimeout
public EDADFTWindow DFT_WINDOW_4
public EDADFTWindow DFT_WINDOW_8
public EDADFTWindow DFT_WINDOW_16
public EDADFTWindow DFT_WINDOW_32
public DCBConfigBlockIndex EDA_LCFG_BLOCK
public DCBConfigBlockIndex EDA_DCFG_BLOCK
public ScaleResistor DISABLED
public ScaleResistor SCALE_RESISTOR_110
public ScaleResistor SCALE_RESISTOR_1K
public ScaleResistor SCALE_RESISTOR_2K
public ScaleResistor SCALE_RESISTOR_3K
public ScaleResistor SCALE_RESISTOR_4K
public ScaleResistor SCALE_RESISTOR_6K
public ScaleResistor SCALE_RESISTOR_8K
public ScaleResistor SCALE_RESISTOR_10K
public ScaleResistor SCALE_RESISTOR_12K
public ScaleResistor SCALE_RESISTOR_16K
public ScaleResistor SCALE_RESISTOR_20K
public ScaleResistor SCALE_RESISTOR_24K
public ScaleResistor SCALE_RESISTOR_30K
public ScaleResistor SCALE_RESISTOR_32K
public ScaleResistor SCALE_RESISTOR_40K
public ScaleResistor SCALE_RESISTOR_48K
public ScaleResistor SCALE_RESISTOR_64K
public ScaleResistor SCALE_RESISTOR_85K
public ScaleResistor SCALE_RESISTOR_96K
public ScaleResistor SCALE_RESISTOR_100K
public ScaleResistor SCALE_RESISTOR_120K
public ScaleResistor SCALE_RESISTOR_128K
public ScaleResistor SCALE_RESISTOR_160K
public ScaleResistor SCALE_RESISTOR_196K
public ScaleResistor SCALE_RESISTOR_256K
public ScaleResistor SCALE_RESISTOR_512K
public EDAApplication(PacketManager packetManager)
public ScaleResistor[] getSupportedScales()
public EDADFTWindow[] getSupportedDFTWindows()
public ResistorTIACalibratePacket calibrateResistorTIA(ScaleResistor minScale, ScaleResistor maxScale, ScaleResistor lpResistorTIA)
minScale
- min scale for Resistor Trans Impedance Amplifier, use getSupportedScales()
to list all supported scales.maxScale
- max scale for Resistor Trans Impedance Amplifier, use getSupportedScales()
to list all supported scales.lpResistorTIA
- lp_resistor_tia, use getSupportedScales() to list all supported scales.public DecimationFactorPacket getDecimationFactor()
public DecimationFactorPacket setDecimationFactor(short decimationFactor)
decimationFactor
- decimation factor for stream.+-------------------------+-------------------------+ | Decimation Lower Limit | Decimation Upper Limit | +-------------------------+-------------------------+ | 0x01 | 0x05 | +-------------------------+-------------------------+
public EDADCBCommandPacket deleteDeviceConfigurationBlock(DCBConfigBlockIndex dcbBlockIndex)
public DynamicScalingPacket disableDynamicScaling()
public DynamicScalingPacket enableDynamicScaling(ScaleResistor minScale, ScaleResistor maxScale, ScaleResistor lpResistorTIA)
minScale
- min scale for Resistor Trans Impedance Amplifier, use getSupportedScales()
to list all supported scales.maxScale
- max scale for Resistor Trans Impedance Amplifier, use getSupportedScales()
to list all supported scales.lpResistorTIA
- lp_resistor_tia, use getSupportedScales() to list all supported scales.public VersionPacket getVersion()
public EDADCBPacket readDeviceConfigurationBlock(DCBConfigBlockIndex dcbBlockIndex)
public EDALibraryConfigPacket readLibraryConfiguration(long[] fields)
fields
- array of field values to read.+----------------------+----------------------+ | Fields Lower Limit | Fields Upper Limit | +----------------------+----------------------+ | 0x00 | 0x02 | +----------------------+----------------------+
public EDADFTPacket setDiscreteFourierTransformation(EDADFTWindow dftWindow)
dftWindow
- DFT window for Discrete Fourier Transformation, use getSupportedDFTWindows()
to list all supported DFT window.public EDADCBCommandPacket writeDeviceConfigurationBlock(long[][] addressesValues, DCBConfigBlockIndex dcbBlockIndex)
addressesValues
- array of addresses and values to write.+----------------------+----------------------+ | Address Lower Limit | Address Upper Limit | +----------------------+----------------------+ | 0x00 | 0x02 | +----------------------+----------------------+
public EDADCBCommandPacket writeDeviceConfigurationBlockFromFile(java.io.File file, DCBConfigBlockIndex dcbBlockIndex) throws java.io.IOException
file
- dcb file.+----------------------+----------------------+ | Address Lower Limit | Address Upper Limit | +----------------------+----------------------+ | 0x00 | 0x02 | +----------------------+----------------------+
java.io.IOException
public CommandPacket writeDCBToLCFG()
public EDALibraryConfigPacket writeLibraryConfiguration(long[][] fieldsValues)
fieldsValues
- array of fields and values to write.+----------------------+----------------------+ | Fields Lower Limit | Fields Upper Limit | +----------------------+----------------------+ | 0x00 | 0x02 | +----------------------+----------------------+
public EDABaselineImpedancePacket setBaselineImpedance(float realDft16, float imaginaryDft16, float realDft8, float imaginaryDft8, long resistorBaseline)
realDft16
- Real DFT16.imaginaryDft16
- Imaginary DFT16.realDft8
- Real DFT8.imaginaryDft8
- Imaginary DFT8.resistorBaseline
- Resistor Baselinepublic EDAGetBaselineImpedancePacket getBaselineImpedance()
public EDABaselineImpedancePacket resetBaselineImpedance()
public EDARegisterReadPacket readRegister(long[] addresses)
addresses
- array of register addresses to read.public EDARegisterWritePacket writeRegister(long[][] addressesValues)
addressesValues
- array of register addresses and values to write.public void enableCSVLogging(java.io.File file)
file
- csv file.public void disableCSVLogging()
public ResistorTIACalibratePacket getRamRTIACalibrationTable()
public ResistorTIACalibratePacket getFdsRTIACalibrationTable()
public CommandPacket deleteRTIACalibrationTable()
public EDADCFGPacket getDeviceConfiguration(long[] addresses)
addresses
- List of field values to read.public EDADCFGPacket setDeviceConfiguration(long[][] addressesValues)
addressesValues
- List of addresses and values to set.public CommandPacket loadDeviceConfiguration()
public EDASleepWakeupPacket setPowerMode(EDAPowerMode powerMode)