Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/build/
/dist/
/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
/nbproject/
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<target name="-post-jar">
<jar jarfile="${dist.dir}/JavaFTD2XX-${project.version}.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="lib/jna.jar" excludes="META-INF/*" />
<zipfileset src="lib/jna-3.2.7-arm-hf.jar" excludes="META-INF/*" />
<fileset dir="native/" />
</jar>
</target>
Expand Down
Binary file added lib/jna-3.2.7-arm-hf.jar
Binary file not shown.
Binary file removed lib/jna.jar
Binary file not shown.
6 changes: 4 additions & 2 deletions lib/nblibraries.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.CopyLibs.displayName=CopyLibs Task
libs.CopyLibs.prop-version=2.0
Binary file added native/natives/arm926/libftd2xx.a
Binary file not shown.
Binary file added native/natives/arm926/libftd2xx.so
Binary file not shown.
Binary file added native/natives/arm926hf/libftd2xx.a
Binary file not shown.
Binary file added native/natives/arm926hf/libftd2xx.so
Binary file not shown.
Binary file modified native/natives/i386/ftd2xx.dll
Binary file not shown.
Binary file modified native/natives/i386/ftd2xx.lib
Binary file not shown.
Binary file modified native/natives/x86_64/ftd2xx.dll
Binary file not shown.
Binary file modified native/natives/x86_64/ftd2xx.lib
Binary file not shown.
2,505 changes: 1,438 additions & 1,067 deletions nbproject/build-impl.xml

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
build.xml.data.CRC32=06edd407
build.xml.script.CRC32=c738cfbe
build.xml.stylesheet.CRC32=28e38971@1.43.1.45
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=6aaf98a2
nbproject/build-impl.xml.script.CRC32=7815eb66
nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45
build.xml.data.CRC32=06edd407
build.xml.script.CRC32=c738cfbe
build.xml.stylesheet.CRC32=28e38971@1.43.1.45
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=6aaf98a2
nbproject/build-impl.xml.script.CRC32=de5d123f
nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.1.48
12 changes: 6 additions & 6 deletions nbproject/private/private.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
compile.on.save=true
do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
user.properties.file=/home/kocsis/.netbeans/7.0/build.properties
compile.on.save=true
do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
user.properties.file=C:\\Users\\Ed\\SkyDrive\\PortableApps\\PortableApps\\NetBeans_JavaSE_8.0_Portable\\Data\\NetBeans\\Config\\8.0\\build.properties
18 changes: 14 additions & 4 deletions nbproject/private/private.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
</project-private>
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/Ed/moba/workspace/JavaFTD2XX/nbproject/project.properties</file>
<file>file:/C:/Users/Ed/moba/workspace/JavaFTD2XX/src/com/ftdi/FTD2XX.java</file>
<file>file:/C:/Users/Ed/moba/workspace/JavaFTD2XX/build.xml</file>
<file>file:/C:/Users/Ed/moba/workspace/JavaFTD2XX/src/com/ftdi/FTDevice.java</file>
<file>file:/C:/Users/Ed/moba/workspace/JavaFTD2XX/src/com/ftdi/EEPROMData.java</file>
</group>
</open-files>
</project-private>
171 changes: 86 additions & 85 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -1,85 +1,86 @@
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=JavaFTD2XX
application.vendor=Peter Kocsis
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/JavaFTD2XX.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.jna.jar=lib/jna.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
${file.reference.jna.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.processorpath=\
${javac.classpath}
javac.source=1.6
javac.target=1.6
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.codebase.type=no.codebase
jnlp.descriptor=application
jnlp.enabled=false
jnlp.mixed.code=default
jnlp.offline-allowed=false
jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=true
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
project.license=mit
project.version=0.2.5
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=JavaFTD2XX
application.vendor=Peter Kocsis
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/JavaFTD2XX.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.jna-3.2.7-arm-hf.jar=lib\\jna-3.2.7-arm-hf.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
${file.reference.jna-3.2.7-arm-hf.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.processorpath=\
${javac.classpath}
javac.source=1.6
javac.target=1.6
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.codebase.type=no.codebase
jnlp.descriptor=application
jnlp.enabled=false
jnlp.mixed.code=default
jnlp.offline-allowed=false
jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=true
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
project.license=mit
project.version=0.2.10
27 changes: 18 additions & 9 deletions src/com/ftdi/DeviceStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,42 @@ public enum DeviceStatus {
/**
* Clear To Send
*/
CTS(0x10),
CTS(0x10, "Clear To Send"),
/**
* Data Set Ready
*/
DSR(0x20),
DSR(0x20, "Data Set Ready"),
/**
* Ring Indicator
*/
RI(0x40),
RI(0x40, "Ring Indicator"),
/**
* Data Carrier Detect
*/
DCD(0x80),
DCD(0x80, "Data Carrier Detect"),
/**
* Overrun Error
*/
OE(0x02),
OE(0x02, "Overrun Error"),
/**
* Parity Error
*/
PE(0x04),
PE(0x04, "Parity Error"),
/**
* Framing Error
*/
FE(0x08),
FE(0x08, "Framing Error"),
/**
* Break Interrupt
*/
BI(0x10);
BI(0x10, "Break Interrupt");

private final int constant;
private final String description;

private DeviceStatus(int constant) {
private DeviceStatus(int constant, String description) {
this.constant = constant;
this.description = description;
}

int constant() {
Expand All @@ -83,4 +86,10 @@ static EnumSet<DeviceStatus> parseToEnumset(int val){
}
return EnumSet.copyOf(enu);
}

@Override
public String toString() {
return super.toString() + " (" + description + ")";
}

}
Loading