public class LTApplication extends CommonApplication
Modifier and Type | Field and Description |
---|---|
DCBConfigBlockIndex |
GENERAL_BLOCK |
DCBConfigBlockIndex |
LT_APP_LCFG_BLOCK |
Constructor and Description |
---|
LTApplication(PacketManager packetManager) |
Modifier and Type | Method and Description |
---|---|
LTDCBCommandPacket |
deleteDeviceConfigurationBlock(DCBConfigBlockIndex dcbConfigBlockIndex)
Deletes LT Device configuration block.
|
ReadCH2CapPacket |
readCH2Cap()
Read the AD7156 CH2 Capacitance in uF.
|
LTDCBPacket[] |
readDeviceConfigurationBlock(DCBConfigBlockIndex dcbConfigBlockIndex)
Returns entire device configuration block.
|
LTLibraryConfigPacket |
readLibraryConfiguration(int[] fields)
Reads library configuration from specified field values.
|
LTDCBCommandPacket[] |
writeDeviceConfigurationBlockFromFile(java.io.File file,
DCBConfigBlockIndex dcbConfigBlockIndex)
Writes the device configuration block values of specified binary commands from file.
|
LTLibraryConfigPacket |
writeLibraryConfiguration(int[][] fieldsValues)
Writes library configuration from List of fields and values.
|
setTimeout
public DCBConfigBlockIndex LT_APP_LCFG_BLOCK
public DCBConfigBlockIndex GENERAL_BLOCK
public LTApplication(PacketManager packetManager)
public ReadCH2CapPacket readCH2Cap()
public LTLibraryConfigPacket writeLibraryConfiguration(int[][] fieldsValues)
fieldsValues
- array of fields and values to write.+----------------------+----------------------+ | Fields Lower Limit | Fields Upper Limit | +----------------------+----------------------+ | 0x00 | 0x04 | +----------------------+----------------------+
public LTLibraryConfigPacket readLibraryConfiguration(int[] fields)
fields
- array of field values to read.+----------------------+----------------------+ | Fields Lower Limit | Fields Upper Limit | +----------------------+----------------------+ | 0x00 | 0x04 | +----------------------+----------------------+
public LTDCBPacket[] readDeviceConfigurationBlock(DCBConfigBlockIndex dcbConfigBlockIndex)
public LTDCBCommandPacket[] writeDeviceConfigurationBlockFromFile(java.io.File file, DCBConfigBlockIndex dcbConfigBlockIndex) throws java.lang.Exception
file
- Binary dcb file.java.lang.Exception
public LTDCBCommandPacket deleteDeviceConfigurationBlock(DCBConfigBlockIndex dcbConfigBlockIndex)