|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectztex.IhxFile
ztex.ZtexIhxFile1
public class ZtexIhxFile1
Represents a firmware image with ZTEX descriptor 1 loaded from an ihx (Intel Hex format) file.
The ZTEX descriptor is usually located at the position 0x6x of the firmware image.
A description of the ZTEX descriptor 1 can be found in ZtexDevice1.
ZtexDevice1,
Ztex1| Field Summary |
|---|
| Fields inherited from class ztex.IhxFile |
|---|
ihxData |
| Constructor Summary | |
|---|---|
ZtexIhxFile1(java.lang.String fileName)
Constructs an instance from a given file name. |
|
ZtexIhxFile1(java.lang.String fileName,
int pZtexDescriptorOffs)
Constructs an instance from a given file name and descriptor position. |
|
| Method Summary | |
|---|---|
int |
fwVersion()
Returns the firmware version. |
byte[] |
interfaceCapabilities()
Returns the interface capabilities (all 6 bytes). |
int |
interfaceCapabilities(int i)
Returns byte i of the interface capabilities. |
int |
interfaceVersion()
Returns the interface version. |
byte[] |
moduleReserved()
Returns the application specific information (all 12 bytes). |
int |
moduleReserved(int i)
Returns byte i of the application specific information. |
byte[] |
productId()
Returns the product ID (all 4 bytes). |
int |
productId(int i)
Returns byte i of the product ID. |
void |
setSnString(java.lang.String s)
Modifies the serial number string. |
java.lang.String |
snString()
Returns the serial number string. |
java.lang.String |
toString()
Returns a string representation if the instance. |
| Methods inherited from class ztex.IhxFile |
|---|
dataInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZtexIhxFile1(java.lang.String fileName,
int pZtexDescriptorOffs)
throws java.io.IOException,
IhxFileDamagedException,
IncompatibleFirmwareException
fileName - The file name.pZtexDescriptorOffs - The position of the descriptor in bytes. The default position is 0x6c.
java.io.IOException - If an read error occurred.
IhxFileDamagedException - If the ihx file is damaged.
IncompatibleFirmwareException - If the firmware image contains no valid ZTEX descriptor 1 at the specified position.
public ZtexIhxFile1(java.lang.String fileName)
throws java.io.IOException,
IhxFileDamagedException,
IncompatibleFirmwareException
fileName - The file name.
java.io.IOException - If an read error occurred.
IhxFileDamagedException - If the ihx file is damaged.
IncompatibleFirmwareException - If the firmware image contains no valid ZTEX descriptor 1 at the specified position.| Method Detail |
|---|
public final byte[] productId()
ZtexDevice1.public int productId(int i)
i - index
ZtexDevice1.public final int fwVersion()
ZtexDevice1.public final int interfaceVersion()
ZtexDevice1.public final byte[] interfaceCapabilities()
ZtexDevice1.public final int interfaceCapabilities(int i)
i - index
ZtexDevice1.public final byte[] moduleReserved()
ZtexDevice1.public final int moduleReserved(int i)
i - index
ZtexDevice1.public final java.lang.String snString()
ZtexDevice1.
public final void setSnString(java.lang.String s)
throws IncompatibleFirmwareException
s - The new serial number string which must not be longer then 10 characters.
IncompatibleFirmwareExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||