URL
https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk
[/] [usb_fpga_1_2/] [trunk/] [java/] [ztex/] [ZtexIhxFile1.java] - Diff between revs 4 and 8
Show entire file |
Details |
Blame |
View Log
Rev 4 |
Rev 8 |
Line 1... |
Line 1... |
/*!
|
/*!
|
Java Driver API for the ZTEX Firmware Kit
|
Java host software API of ZTEX EZ-USB FX2 SDK
|
Copyright (C) 2009-2010 ZTEX e.K.
|
Copyright (C) 2009-2011 ZTEX GmbH.
|
http://www.ztex.de
|
http://www.ztex.de
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
it under the terms of the GNU General Public License version 3 as
|
it under the terms of the GNU General Public License version 3 as
|
published by the Free Software Foundation.
|
published by the Free Software Foundation.
|
Line 205... |
Line 205... |
if ( s.length()>10 )
|
if ( s.length()>10 )
|
throw new IncompatibleFirmwareException( "Serial number too long (max. 10 characters)" );
|
throw new IncompatibleFirmwareException( "Serial number too long (max. 10 characters)" );
|
|
|
int i=0;
|
int i=0;
|
for (; i<s.length(); i++ ) {
|
for (; i<s.length(); i++ ) {
|
ihxData[ztexDescriptorOffs+26+i] = (byte) snString[i];
|
ihxData[ztexDescriptorOffs+30+i] = (byte) s.charAt(i);
|
}
|
}
|
for (; i<10; i++ ) {
|
for (; i<10; i++ ) {
|
ihxData[ztexDescriptorOffs+26+i] = 0;
|
ihxData[ztexDescriptorOffs+30+i] = 0;
|
}
|
}
|
}
|
}
|
|
|
// ******* toString ************************************************************
|
// ******* toString ************************************************************
|
/**
|
/**
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.