|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectMPatcher.Firmware
| Field Summary | |
|---|---|
int |
codeOffset
Code offset for R373 it is 0x10080000 |
boolean |
debug
Changed by FwPatch.debugMode debugMode in Patches whet patch is executed. |
byte[] |
FlashData
Extracted CG1 bytes; |
int |
ramOffset
RAM offset for R373 it is 0x12000000 |
| Constructor Summary | |
|---|---|
Firmware(java.lang.String FileName)
Firmware constructor is used when you choose file in open dialog. |
|
| Method Summary | |
|---|---|
void |
copy(byte[] src,
int start)
Copies your bytes to FlashData. |
int |
FindBin(byte[] patt,
byte[] mask)
Searching patt in firmware. |
int |
FindBin(byte[] patt,
byte[] mask,
int StartAddress)
Searching patt in firmware, starting search from StartAddress. |
java.lang.String |
FirmwareVersion()
|
void |
SaveToBinFile(java.lang.String FileName)
Save CG1 to file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int codeOffset
public boolean debug
FwPatch.debugMode debugMode in Patches whet patch is executed.
public byte[] FlashData
public int ramOffset
| Constructor Detail |
|---|
public Firmware(java.lang.String FileName)
MPatcher.firmware if file is not open reference should be null.
FileName - Full patch+filename to CG1 *.smg or *.bin binary file. SHX files is not supported yet.| Method Detail |
|---|
public void copy(byte[] src,
int start)
src - Source bytes what you want to copy.start - Offset where your bytes will copied.
public int FindBin(byte[] patt,
byte[] mask)
patt - Pattern what you are searching.mask - Mask for pattern (tells what bits are important what not);
public int FindBin(byte[] patt,
byte[] mask,
int StartAddress)
patt - Pattern what you are searching.mask - Mask for pattern (tells what bits are important what not);StartAddress - Searching start position.
public java.lang.String FirmwareVersion()
public void SaveToBinFile(java.lang.String FileName)
FileName -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||