Class CbusPicHexFile
- java.lang.Object
-
- jmri.jmrix.can.cbus.swing.bootloader.HexFile
-
- jmri.jmrix.can.cbus.swing.bootloader.CbusPicHexFile
-
public class CbusPicHexFile extends HexFile
Extend hex file class for a CBUS PIC with parameter block Assumes hex record addresses are "nicely" aligned, i.e., on 8, 16, 32, ... -byte boundaries and that addresses increase monotonically. With Microchip tools you should select the options to format the hex file for download and program with default config words.
-
-
Field Summary
Fields Modifier and Type Field Description static int
PARAM_NEW_END
static int
PARAM_NEW_LEN
static int
PARAM_NEW_START
static int
PARAM_OLD_END
static int
PARAM_OLD_LEN
static int
PARAM_OLD_START
-
Constructor Summary
Constructors Constructor Description CbusPicHexFile(java.lang.String fileName)
Create a new HexFile object and initialize data to unprogrammed state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkRecord(HexRecord r)
Check one hex record from the file Overridden to capture CBUS PIC parameter block.CbusParameters
getParams()
Get the file parameters Create an invalid parameter set of necessary-
Methods inherited from class jmri.jmrix.can.cbus.swing.bootloader.HexFile
close, dispose, getAddress, getLineNo, getName, getNextRecord, getProgEnd, getProgStart, getRecordForAddress, openRd, rdHexByte, read, readChar, readOneRecord
-
-
-
-
Field Detail
-
PARAM_OLD_START
public static final int PARAM_OLD_START
- See Also:
- Constant Field Values
-
PARAM_OLD_END
public static final int PARAM_OLD_END
- See Also:
- Constant Field Values
-
PARAM_OLD_LEN
public static final int PARAM_OLD_LEN
- See Also:
- Constant Field Values
-
PARAM_NEW_START
public static final int PARAM_NEW_START
- See Also:
- Constant Field Values
-
PARAM_NEW_END
public static final int PARAM_NEW_END
- See Also:
- Constant Field Values
-
PARAM_NEW_LEN
public static final int PARAM_NEW_LEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CbusPicHexFile
public CbusPicHexFile(java.lang.String fileName)
Create a new HexFile object and initialize data to unprogrammed state.- Parameters:
fileName
- file name to use for the hex file
-
-
Method Detail
-
checkRecord
protected void checkRecord(HexRecord r)
Check one hex record from the file Overridden to capture CBUS PIC parameter block. Assumes hex record addresses are "nicely" aligned, i.e., on 8, 16, 32, ... -byte boundaries and that addresses increase monotonically. With Microchip tools you should select the options to format the hex file for download and program with default config words.- Overrides:
checkRecord
in classHexFile
- Parameters:
r
- hex record
-
getParams
public CbusParameters getParams()
Get the file parameters Create an invalid parameter set of necessary
-
-