Class CbusPicHexFile
java.lang.Object
jmri.jmrix.can.cbus.swing.bootloader.HexFile
jmri.jmrix.can.cbus.swing.bootloader.CbusPicHexFile
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCbusPicHexFile(String fileName) Create a new HexFile object and initialize data to unprogrammed state. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCheck one hex record from the file Overridden to capture CBUS PIC parameter block.Get the file parameters Create an invalid parameter set of necessaryMethods 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 Details
-
PARAM_OLD_START
- See Also:
-
PARAM_OLD_END
- See Also:
-
PARAM_OLD_LEN
- See Also:
-
PARAM_NEW_START
- See Also:
-
PARAM_NEW_END
- See Also:
-
PARAM_NEW_LEN
- See Also:
-
-
Constructor Details
-
CbusPicHexFile
Create a new HexFile object and initialize data to unprogrammed state.- Parameters:
fileName- file name to use for the hex file
-
-
Method Details
-
checkRecord
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:
checkRecordin classHexFile- Parameters:
r- hex record
-
getParams
Get the file parameters Create an invalid parameter set of necessary
-