A B C D E F G H I J L M N O P R S T U V W X Z

A

AlreadyConfiguredException - Exception in ztex
Thrown if the FPGA is already configured.
AlreadyConfiguredException(String) - Constructor for exception ztex.AlreadyConfiguredException
Constructs an instance from the given input string.
AlreadyConfiguredException() - Constructor for exception ztex.AlreadyConfiguredException
Constructs an instance using a standard message.

B

BitstreamReadException - Exception in ztex
Signals that an error occurred while attempting to read a bitstream.
BitstreamReadException(String) - Constructor for exception ztex.BitstreamReadException
Constructs an instance from the given error message.
BitstreamReadException() - Constructor for exception ztex.BitstreamReadException
Constructs an instance using a standard message.
BitstreamUploadException - Exception in ztex
Signals that an error occurred while attempting to upload the bitstream.
BitstreamUploadException(String) - Constructor for exception ztex.BitstreamUploadException
Constructs an instance from the given error message.
BitstreamUploadException() - Constructor for exception ztex.BitstreamUploadException
Constructs an instance using a standard message.
boardNames - Static variable in class ztex.ConfigData
Kinds of FPGA Boards.
byteArrayString(byte[]) - Static method in class ztex.ZtexDevice1
Produces a nice string representation of an array of bytes.

C

CAPABILITY_DEBUG - Static variable in class ztex.Ztex1v1
Capability index for DEBUG helper support.
CAPABILITY_EEPROM - Static variable in class ztex.Ztex1v1
Capability index for EEPROM support.
CAPABILITY_FLASH - Static variable in class ztex.Ztex1v1
Capability index for FLASH memory support.
CAPABILITY_FLASH2 - Static variable in class ztex.Ztex1v1
Capability index for 2nd FLASH memory support.
CAPABILITY_FPGA - Static variable in class ztex.Ztex1v1
Capability index for FPGA configuration support.
CAPABILITY_HS_FPGA - Static variable in class ztex.Ztex1v1
Capability index for AVR XMEGA support.
CAPABILITY_MAC_EEPROM - Static variable in class ztex.Ztex1v1
Capability index for AVR XMEGA support.
CAPABILITY_MULTI_FPGA - Static variable in class ztex.Ztex1v1
Capability index for multi FPGA support
CAPABILITY_TEMP_SENSOR - Static variable in class ztex.Ztex1v1
Capability index for Temperature sensor support
CAPABILITY_XMEGA - Static variable in class ztex.Ztex1v1
Capability index for AVR XMEGA support.
CapabilityException - Exception in ztex
Thrown is a required capability is not available.
CapabilityException(Ztex1, String) - Constructor for exception ztex.CapabilityException
Constructs an instance from a givig device and capability string.
capabilityInfo(String) - Method in class ztex.Ztex1v1
Creates a String with capability information.
capabilityStrings - Static variable in class ztex.Ztex1v1
The names of the capabilities
certainWorkarounds - Variable in class ztex.Ztex1
Setting to true enables certain workarounds, e.g. to deal with bad driver/OS implementations.
ch.ntb.usb - package ch.ntb.usb
A Java wrapper for the libusb 0.1 and libusb-win32 USB library.
checkCapability(int, int) - Method in class ztex.Ztex1v1
Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
checkCapability(int) - Method in class ztex.Ztex1v1
Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
checkCompatible(int, int, int, int) - Method in class ztex.Ztex1v1
Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
checkValid() - Method in class ztex.Ztex1
Checks whether ZTEX descriptor 1 is available.
checkValid() - Method in class ztex.Ztex1v1
Checks whether ZTEX descriptor 1 is available and interface 1 is supported.
claimInterface(int) - Method in class ztex.Ztex1
Claims an interface.
close() - Method in class ch.ntb.usb.Device
Release the claimed interface and close the opened device.
compatible(int, int, int, int) - Method in class ztex.Ztex1v1
Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
compatible(int, int, int, int) - Method in class ztex.ZtexDevice1
Checks whether the given product ID is compatible to the device.
config - Variable in class ztex.Ztex1v1
The configuration data structure is initialized if this kind of data is present in MAC EEPROM.
ConfigData - Class in ztex
This class represents the configuration data space of ZTEX FPGA Boards that support it.
ConfigData() - Constructor for class ztex.ConfigData
Constructs an empty instance.
ConfigData(Ztex1v1) - Constructor for class ztex.ConfigData
Constructs an instance and connects it with z.
configureFpga(InputStream, boolean, int) - Method in class ztex.Ztex1v1
Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
configureFpga(String, boolean, int) - Method in class ztex.Ztex1v1
Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
configureFpga(String, boolean) - Method in class ztex.Ztex1v1
Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
configureFpgaHS(InputStream, boolean, int) - Method in class ztex.Ztex1v1
Upload a Bitstream to the FPGA using high speed mode.
configureFpgaHS(String, boolean, int) - Method in class ztex.Ztex1v1
Upload a Bitstream to the FPGA using high speed mode.
configureFpgaLS(InputStream, boolean, int) - Method in class ztex.Ztex1v1
Upload a Bitstream to the FPGA using low speed mode.
configureFpgaLS(String, boolean, int) - Method in class ztex.Ztex1v1
Upload a Bitstream to the FPGA using low speed mode.
connect(Ztex1v1) - Method in class ztex.ConfigData
Reads the configuration data (if existent) from a device and connects it to this instance.
controlMsg(int, int, int, int, byte[], int, int, boolean) - Method in class ch.ntb.usb.Device
Performs a control request to the default control pipe on a device.
controlMsgTimeout - Variable in class ztex.Ztex1
The timeout for control messages in ms.
cypressProductId - Static variable in class ztex.ZtexDevice1
EZ-USB USB product ID: 0x8613
cypressVendorId - Static variable in class ztex.ZtexDevice1
Cypress vendor ID: 0x4b4

D

data() - Method in class ztex.ConfigData
Returns a copy of the configuration data array.
dataInfo(PrintStream) - Method in class ztex.IhxFile
Print out some information about the memory usage.
debugLastMsg() - Method in class ztex.Ztex1v1
Returns the number of the last message read out by Ztex1v1.debugReadMessages(boolean,byte[])
debugMsgSize() - Method in class ztex.Ztex1v1
Returns the size of messages in bytes.
debugNewMessages - Variable in class ztex.Ztex1v1
Is set by Ztex1v1.debugReadMessages(boolean,byte[]) and contains the number of new messages.
debugReadMessages(boolean, byte[]) - Method in class ztex.Ztex1v1
Reads debug messages from message stack.
debugStackSize() - Method in class ztex.Ztex1v1
Returns the size of message stack in messages.
dev() - Method in class ztex.Ztex1
Returns the corresponding ZtexDevice1.
dev() - Method in class ztex.ZtexDevice1
Returns the USB device.
Device - Class in ch.ntb.usb
This class represents an USB device.
Device(short, short) - Constructor for class ch.ntb.usb.Device
 
Device(short, short, String) - Constructor for class ch.ntb.usb.Device
 
device(int) - Method in class ztex.ZtexScanBus1
Returns a device from the list of devices.
DeviceLostException - Exception in ztex
Thrown if a device went lost after renumeration.
DeviceLostException(String) - Constructor for exception ztex.DeviceLostException
Constructs an instance from the given input string.
DeviceLostException() - Constructor for exception ztex.DeviceLostException
Constructs an instance using a standard message.
DeviceNotSupportedException - Exception in ztex
Thrown if a device is not supported, i.e. has the wrong USB ID's.
DeviceNotSupportedException(Usb_Device) - Constructor for exception ztex.DeviceNotSupportedException
Constructs an instance from the given device.
disconnect() - Method in class ztex.ConfigData
Disconnects the currently connected device.

E

eepromBytes - Variable in class ztex.Ztex1v1
Number of bytes written to EEPROM.
eepromChecksum - Variable in class ztex.Ztex1v1
Checksum of the last EEPROM transfer.
eepromDisable() - Method in class ztex.Ztex1v1
Disables the firmware stored in the EEPROM.
eepromRead(int, byte[], int) - Method in class ztex.Ztex1v1
Reads data from the EEPROM.
eepromState() - Method in class ztex.Ztex1v1
Reads the current EEPROM status.
eepromUpload(ZtexIhxFile1, boolean) - Method in class ztex.Ztex1v1
Upload the firmware to the EEPROM.
eepromUpload(String, boolean) - Method in class ztex.Ztex1v1
Upload the firmware to the EEPROM.
eepromWrite(int, byte[], int) - Method in class ztex.Ztex1v1
Writes data to the EEPROM.
enableExtraFpgaConfigurationChecks - Variable in class ztex.Ztex1v1
Enables extra FPGA configuration checks.
ERROR_BAD_FILE_DESCRIPTOR - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
ERROR_BUSY - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
ERROR_INVALID_PARAMETER - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
ERROR_IO_ERROR - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
ERROR_NO_SUCH_DEVICE_OR_ADDRESS - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
ERROR_NOT_ENOUGH_MEMORY - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
ERROR_SUCCESS - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
ERROR_TIMEDOUT - Static variable in class ch.ntb.usb.LibusbJava
System error codes.
EzUsb - Class in ztex
Provides methods for uploading firmware to Cypress EZ-USB devices.
EzUsb() - Constructor for class ztex.EzUsb
 

F

finalize() - Method in class ztex.Ztex1
The destructor closes the USB file handle.
FirmwareUploadException - Exception in ztex
Signals that an error occured while attempting to upload the firmware.
FirmwareUploadException(String) - Constructor for exception ztex.FirmwareUploadException
Constructs an instance from the given error message.
FirmwareUploadException() - Constructor for exception ztex.FirmwareUploadException
Constructs an instance using a standard message.
flash2EC - Variable in class ztex.Ztex1v1
Last 2nd Flash error code obtained by Ztex1v1.flashState().
flash2Enabled() - Method in class ztex.Ztex1v1
Returns true if 2nd Flash memory is installed.
flash2Info() - Method in class ztex.Ztex1v1
Returns information about 2nd Flash memory.
flash2ReadSector(int, int, byte[]) - Method in class ztex.Ztex1v1
Reads a integer number of sectors from the 2nd Flash memory.
flash2ReadSector(int, byte[]) - Method in class ztex.Ztex1v1
Reads one sector from the 2nd Flash memory.
flash2Sectors() - Method in class ztex.Ztex1v1
Returns the number of sectors of the 2nd Flash memory or 0, if no 2nd Flash is installed.
flash2SectorSize() - Method in class ztex.Ztex1v1
Returns the sector size of the 2nd Flash memory or 0, if no 2nd Flash is installed.
flash2Size() - Method in class ztex.Ztex1v1
Returns the size of 2nd Flash memory or 0, if no 2nd Flash memory is installed.
flash2State() - Method in class ztex.Ztex1v1
Reads the the 2nd Flash memory status and information.
flash2StrError() - Method in class ztex.Ztex1v1
Gets the last 2nd Flash error from the device.
flash2WriteSector(int, int, byte[]) - Method in class ztex.Ztex1v1
Writes a integer number of sectors to the 2nd Flash.
flash2WriteSector(int, byte[]) - Method in class ztex.Ztex1v1
Writes one sector to the 2nd Flash memory.
FLASH_EC_BUSY - Static variable in class ztex.Ztex1v1
Signals that Flash memory it busy.
FLASH_EC_CMD_ERROR - Static variable in class ztex.Ztex1v1
Signals an error while attempting to execute a command.
FLASH_EC_NO_ERROR - Static variable in class ztex.Ztex1v1
Means no error.
FLASH_EC_NOTSUPPORTED - Static variable in class ztex.Ztex1v1
Signals the the installed Flash memory is not supported.
FLASH_EC_PENDING - Static variable in class ztex.Ztex1v1
Signals that another Flash operation is pending.
FLASH_EC_READ_ERROR - Static variable in class ztex.Ztex1v1
Signals an error while attempting to read from Flash.
FLASH_EC_TIMEOUT - Static variable in class ztex.Ztex1v1
Signals that a timeout occurred.
FLASH_EC_WRITE_ERROR - Static variable in class ztex.Ztex1v1
Signals an error while attempting to write to Flash.
flashEC - Variable in class ztex.Ztex1v1
Last Flash error code obtained by Ztex1v1.flashState().
flashEnabled() - Method in class ztex.Ztex1v1
Returns true if Flash memory is installed.
flashFirstFreeSector() - Method in class ztex.Ztex1v1
Returns the first free sector of the Flash memory.
flashInfo() - Method in class ztex.Ztex1v1
Returns information about Flash memory.
flashReadSector(int, int, byte[]) - Method in class ztex.Ztex1v1
Reads a integer number of sectors from the Flash.
flashReadSector(int, byte[]) - Method in class ztex.Ztex1v1
Reads one sector from the Flash.
flashResetBitstream() - Method in class ztex.Ztex1v1
Clears a Bitstream from the Flash.
flashSectors() - Method in class ztex.Ztex1v1
Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.
flashSectorSize() - Method in class ztex.Ztex1v1
Returns the sector size of the Flash memory or 0, if no Flash is installed.
flashSize() - Method in class ztex.Ztex1v1
Returns the size of Flash memory or 0, if no Flash memory is installed.
flashState() - Method in class ztex.Ztex1v1
Reads the the Flash memory status and information.
flashStrError(int) - Static method in class ztex.Ztex1v1
Converts a given error code into a String.
flashStrError() - Method in class ztex.Ztex1v1
Gets the last Flash error from the device.
flashUploadBitstream(InputStream, int) - Method in class ztex.Ztex1v1
Uploads a Bitstream to the Flash.
flashUploadBitstream(String, int) - Method in class ztex.Ztex1v1
Uploads a Bitstream to the Flash.
flashUploadBitstream(String) - Method in class ztex.Ztex1v1
Uploads a Bitstream to the Flash.
flashWriteSector(int, int, byte[]) - Method in class ztex.Ztex1v1
Writes a integer number of sectors to the Flash.
flashWriteSector(int, byte[]) - Method in class ztex.Ztex1v1
Writes one sector to the Flash.
fpgas - Static variable in class ztex.ConfigData
FPGA's used on ZTEX FPGA Boards.
FULLSPEED_MAX_BULK_PACKET_SIZE - Static variable in class ch.ntb.usb.USB
The maximum packet size of a bulk transfer when operating in fullspeed (12 MB/s) mode.
fwVersion() - Method in class ztex.ZtexDevice1
Returns the firmware version.
fwVersion() - Method in class ztex.ZtexIhxFile1
Returns the firmware version.

G

getAltinterface() - Method in class ch.ntb.usb.Device
Returns the alternative interface.
getAltsetting() - Method in class ch.ntb.usb.Usb_Interface
Retuns an array of interface descriptors.
getBAlternateSetting() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the value used to select the alternate setting (LibusbJava.usb_set_altinterface(long, int)).
getBcdDevice() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the device release number.
getBcdUSB() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the USB specification number to which the device complies to.
getBConfigurationValue() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the value to use as an argument to select this configuration (LibusbJava.usb_set_configuration(long, int)).
getBDescriptorType() - Method in class ch.ntb.usb.Usb_Descriptor
Get the type of this descriptor.
getBDeviceClass() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the class code (Assigned by www.usb.org)
If equal to zero, each interface specifies it's own class code.
getBDeviceProtocol() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the protocol code (Assigned by www.usb.org)
getBDeviceSubClass() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the subclass code (Assigned by www.usb.org)
getBEndpointAddress() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
Returns the endpoint address.
getBInterfaceClass() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the class code (Assigned by www.usb.org).
getBInterfaceNumber() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the number (identifier) of this interface.
getBInterfaceProtocol() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the protocol code (Assigned by www.usb.org).
getBInterfaceSubClass() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the subclass code (Assigned by www.usb.org).
getBInterval() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
Returns the intervall for polling endpoint data transfers.
getBitstreamSize() - Method in class ztex.ConfigData
Returns actual size of bitstream in bytes sectors. 0 means that no bitstream is stored.
getBLength() - Method in class ch.ntb.usb.Usb_Descriptor
Get the size of this descriptor in bytes.
getBmAttributes() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the power parameters for this configuration.
getBmAttributes() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
Returns the attributes of this endpoint.
getBMaxPacketSize0() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the maximum packet size for endpoint zero.
getBNumConfigurations() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the number of possible configurations supported at its current speed.
getBNumEndpoints() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the number of endpoints used for this interface.
getBNumInterfaces() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the number of interfaces.
getBRefresh() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
 
getBSynchAddress() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
 
getBus() - Static method in class ch.ntb.usb.USB
Returns the root Usb_Bus element.
getBus() - Method in class ch.ntb.usb.Usb_Device
Returns the reference to the bus to which this device is connected.
getChildren() - Method in class ch.ntb.usb.Usb_Device
Returns a reference to the first child.
getConfig() - Method in class ch.ntb.usb.Usb_Device
Returns the USB config descriptors.
getConfigDescriptors() - Method in class ch.ntb.usb.Device
Returns the configuration descriptors associated with this device.
getConfiguration() - Method in class ch.ntb.usb.Device
Returns the current configuration used.
getDescriptor() - Method in class ch.ntb.usb.Usb_Device
Returns the USB device descriptor.
getDevice() - Method in class ch.ntb.usb.Device
Returns the Usb_Device instance associated with this device.
getDevice(short, short, String) - Static method in class ch.ntb.usb.USB
Create a new device an register it in a device queue.
getDevice(short, short) - Static method in class ch.ntb.usb.USB
See USB.getDevice(short, short, String).
getDeviceDescriptor() - Method in class ch.ntb.usb.Device
Returns the device descriptor associated with this device.
getDevices() - Method in class ch.ntb.usb.Usb_Bus
Get the first device ojects of the devices linked list.
getDevnum() - Method in class ch.ntb.usb.Usb_Device
Returns the number assigned to this device.
getDirname() - Method in class ch.ntb.usb.Usb_Bus
Returns the systems String representation of the bus.
getEndpoint() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns an array of endpoint descriptors.
getExtra() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the data of extra descriptor(s) if available.
getExtra() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
Returns the data of extra descriptor(s) if available.
getExtra() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the data of extra descriptor(s) if available.
getExtralen() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the number of bytes of the extra descriptor.
getExtralen() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
Returns the number of bytes of the extra descriptor.
getExtralen() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the number of bytes of the extra descriptor.
getFilename() - Method in class ch.ntb.usb.Device
Returns the optional filename which is set when there are multiple devices with the same vendor and product id.
getFilename() - Method in class ch.ntb.usb.Usb_Device
Returns the systems String representation.
getFlash2EC() - Method in class ztex.Ztex1v1
Gets the last 2nd Flash memory error from the device.
getFlashEC() - Method in class ztex.Ztex1v1
Gets the last Flash error from the device.
getFpga() - Method in class ztex.ConfigData
Returns FPGA information.
getFpgaConfiguration() - Method in class ztex.Ztex1v1
Returns true if the FPGA is configured.
getFpgaConfigurationStr() - Method in class ztex.Ztex1v1
Returns a string that indicates the FPGA configuration status.
getIConfiguration() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the index of the String descriptor describing this configuration.
getIdProduct() - Method in class ch.ntb.usb.Device
Returns the product ID of the device.
getIdProduct() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the product ID (Assigned by www.usb.org)
getIdVendor() - Method in class ch.ntb.usb.Device
Returns the vendor ID of the device.
getIdVendor() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the Vendor ID (Assigned by www.usb.org)
getIInterface() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
Returns the index of the String descriptor describing this interface.
getIManufacturer() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the index of the manufacturer string descriptor.
getInputStream(String) - Static method in class ztex.JInputStream
Constructs an instance from a giving file name.
getInterface() - Method in class ch.ntb.usb.Device
Returns the current interface.
getInterface() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the USB interface descriptors.
getInterfaceClaimed(int) - Method in class ztex.Ztex1
Returns true if interface is claimed.
getIProduct() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the index of the product string descriptor.
getISerialNumber() - Method in class ch.ntb.usb.Usb_Device_Descriptor
Returns the index of serial number string descriptor.
getLocation() - Method in class ch.ntb.usb.Usb_Bus
Returns the location in the USB bus linked list.
getMaxBitstreamSize() - Method in class ztex.ConfigData
Returns maximum size of bitstream in bytes.
getMaxPacketSize() - Method in class ch.ntb.usb.Device
Returns the maximum packet size in bytes which is allowed to be transmitted at once.
getMaxPower() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the maximum power consumption in 2mA units.
getName() - Method in class ztex.ConfigData
Returns the name of the FPGA Board.
getNext() - Method in class ch.ntb.usb.Usb_Bus
Returns the next bus object.
getNext() - Method in class ch.ntb.usb.Usb_Device
Returns the pointer to the next device.
getNumAltsetting() - Method in class ch.ntb.usb.Usb_Interface
Returns the number of alternate settings.
getNumChildren() - Method in class ch.ntb.usb.Usb_Device
Returns the number of children of this device.
getPrev() - Method in class ch.ntb.usb.Usb_Bus
Returns the previous bus object.
getPrev() - Method in class ch.ntb.usb.Usb_Device
Returns the pointer to the previous device.
getRamSize() - Method in class ztex.ConfigData
Returns RAM size in bytes.
getRamType() - Method in class ztex.ConfigData
Returns RAM type and speed.
getRootDev() - Method in class ch.ntb.usb.Usb_Bus
Get the root device of this bus.
getSN() - Method in class ztex.ConfigData
Returns the serial number.
getUserData(int) - Method in class ztex.ConfigData
Returns user data at index i.
getWMaxPacketSize() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
Returns the maximum packet size of this endpoint is capable of sending or receiving.
getWTotalLength() - Method in class ch.ntb.usb.Usb_Config_Descriptor
Returns the total length in bytes of all descriptors.

H

handle() - Method in class ztex.Ztex1
Returns the USB file handle.
HIGHSPEED_MAX_BULK_PACKET_SIZE - Static variable in class ch.ntb.usb.USB
The maximum packet size of a bulk transfer when operating in highspeed (480 MB/s) mode.

I

ihxData - Variable in class ztex.IhxFile
This array stores the firmware image.
IhxFile - Class in ztex
A class representing a firmware image loaded from an ihx (Intel Hex format) file.
IhxFile(InputStream, String) - Constructor for class ztex.IhxFile
Constructs an instance from a given file name.
IhxFile(String) - Constructor for class ztex.IhxFile
Constructs an instance from a given file name.
IhxFileDamagedException - Exception in ztex
Signals that an ihx file is corrupt.
IhxFileDamagedException(String, int, String) - Constructor for exception ztex.IhxFileDamagedException
Constructs an instance from a given file name, line number and error message.
IhxParseException - Exception in ztex
Signals that an error occurred while attempting to decode the ihx file.
IhxParseException(String) - Constructor for exception ztex.IhxParseException
Constructs an instance from the given error message.
IncompatibleFirmwareException - Exception in ztex
Thrown while attempting to overwrite an existing firmware with an incompatible one.
IncompatibleFirmwareException(String) - Constructor for exception ztex.IncompatibleFirmwareException
Constructs an instance from the given error message.
IncompatibleFirmwareException() - Constructor for exception ztex.IncompatibleFirmwareException
Constructs an instance using a standard message.
init() - Static method in class ch.ntb.usb.USB
Explicitly calls LibusbJava.usb_init().
init() - Method in class ztex.Ztex1
Initializates the class.
init() - Method in class ztex.Ztex1v1
Initializates the class.
InterfaceCapabilities(int) - Method in class ztex.Ztex1v1
Returns interface capability bit.
interfaceCapabilities() - Method in class ztex.ZtexDevice1
Returns the interface capabilities (all 6 bytes).
interfaceCapabilities(int) - Method in class ztex.ZtexDevice1
Returns byte i of the interface capabilities.
interfaceCapabilities(int, int) - Method in class ztex.ZtexDevice1
Returns byte i, bit j of the interface capabilities.
interfaceCapabilities() - Method in class ztex.ZtexIhxFile1
Returns the interface capabilities (all 6 bytes).
interfaceCapabilities(int) - Method in class ztex.ZtexIhxFile1
Returns byte i of the interface capabilities.
interfaceVersion() - Method in class ztex.ZtexDevice1
Returns the interface version.
interfaceVersion() - Method in class ztex.ZtexIhxFile1
Returns the interface version.
InvalidFirmwareException - Exception in ztex
Thrown if a device runs with no or the wrong firmware, i.e. if the ZTEX descriptor is not found or damaged.
InvalidFirmwareException(String) - Constructor for exception ztex.InvalidFirmwareException
Constructs an instance from the error message.
InvalidFirmwareException(Ztex1, String) - Constructor for exception ztex.InvalidFirmwareException
Constructs an instance from the given device and error message.
InvalidFirmwareException(ZtexDevice1, String) - Constructor for exception ztex.InvalidFirmwareException
Constructs an instance from the given device and error message.
InvalidFirmwareException(Usb_Device, String) - Constructor for exception ztex.InvalidFirmwareException
Constructs an instance from the given device and error message.
InvalidFirmwareException(Ztex1) - Constructor for exception ztex.InvalidFirmwareException
Constructs an instance from the given device and error message.
InvalidFirmwareException(ZtexDevice1) - Constructor for exception ztex.InvalidFirmwareException
Constructs an instance from the given device and error message.
InvalidFirmwareException(Usb_Device) - Constructor for exception ztex.InvalidFirmwareException
Constructs an instance from the given device and error message.
isOpen() - Method in class ch.ntb.usb.Device
Check if the device is open.

J

JInputStream - Class in ztex
Creates an input stream from a regular file or a system resource file (i.e. a file from the current jar file).
JInputStream() - Constructor for class ztex.JInputStream
 

L

LibLoader - Class in ch.ntb.usb
This class allows to load libraries in the normal way or as a system resource (e.g. form the current .jar file).
LibLoader() - Constructor for class ch.ntb.usb.LibLoader
 
LibusbJava - Class in ch.ntb.usb
This class represents the Java Native Interface to the shared library which is (with some exceptions) a one-to-one representation of the libusb API.
LibusbJava() - Constructor for class ch.ntb.usb.LibusbJava
 
load(String) - Static method in class ch.ntb.usb.LibLoader
Loads a library.
logBus(Usb_Bus) - Static method in class ch.ntb.usb.Utils
 
logBus(Usb_Bus, PrintStream) - Static method in class ch.ntb.usb.Utils
 

M

macEepromRead(int, byte[], int) - Method in class ztex.Ztex1v1
Reads data from the MAC EEPROM.
macEepromState() - Method in class ztex.Ztex1v1
Reads the current MAC EEPROM status.
macEepromWrite(int, byte[], int) - Method in class ztex.Ztex1v1
Writes data to the MAC EEPROM.
macRead(byte[]) - Method in class ztex.Ztex1v1
Reads MAC address from MAC EEPROM.
manufacturerString() - Method in class ztex.ZtexDevice1
Returns the manufacturer string of the device.
moduleReserved() - Method in class ztex.ZtexDevice1
Returns the application specific information (all 12 bytes).
moduleReserved(int) - Method in class ztex.ZtexDevice1
Returns byte i of the application specific information.
moduleReserved() - Method in class ztex.ZtexIhxFile1
Returns the application specific information (all 12 bytes).
moduleReserved(int) - Method in class ztex.ZtexIhxFile1
Returns byte i of the application specific information.

N

numberOfDevices() - Method in class ztex.ZtexScanBus1
Returns the number of devices found.
numberOfFpgas() - Method in class ztex.Ztex1v1
Returns the number of FPGA's

O

open(int, int, int) - Method in class ch.ntb.usb.Device
Opens the device and claims the specified configuration, interface and altinterface.

P

packages - Static variable in class ztex.ConfigData
FPGA packages used on ZTEX FPGA boards.
printBus(PrintStream) - Method in class ztex.ZtexScanBus1
Prints out a list of devices found.
printFpgaState() - Method in class ztex.Ztex1v1
Prints out the FPGA state.
printMmc2State() - Method in class ztex.Ztex1v1
Prints out some debug information about *SD/MMC Flash cards in SPI mode.
printMmcState() - Method in class ztex.Ztex1v1
Prints out some debug information about *SD/MMC Flash cards in SPI mode.
printSpiState() - Method in class ztex.Ztex1v1
Prints out some debug information about SPI Flash.
productId() - Method in class ztex.ZtexDevice1
Returns the product ID (all 4 bytes).
productId(int) - Method in class ztex.ZtexDevice1
Returns byte i of the product ID.
productId() - Method in class ztex.ZtexIhxFile1
Returns the product ID (all 4 bytes).
productId(int) - Method in class ztex.ZtexIhxFile1
Returns byte i of the product ID.
productString() - Method in class ztex.ZtexDevice1
Returns the product string of the device.

R

ramTypes - Static variable in class ztex.ConfigData
RAM types and speed used on ZTEX FPGA boards.
readBulk(int, byte[], int, int, boolean) - Method in class ch.ntb.usb.Device
Read data from the device using a bulk transfer.
readInterrupt(int, byte[], int, int, boolean) - Method in class ch.ntb.usb.Device
Read data from the device using a interrupt transfer.
releaseInterface(int) - Method in class ztex.Ztex1
Releases an interface.
REQ_CLEAR_FEATURE - Static variable in class ch.ntb.usb.USB
This request is used to clear or disable a specific feature (USB spec 9.4.1).
REQ_GET_CONFIGURATION - Static variable in class ch.ntb.usb.USB
This request returns the current device configuration value (USB spec 9.4.2).
REQ_GET_DESCRIPTOR - Static variable in class ch.ntb.usb.USB
This request returns the specified descriptor if the descriptor exists (USB spec 9.4.3).
REQ_GET_INTERFACE - Static variable in class ch.ntb.usb.USB
This request returns the selected alternate setting for the specified interface (USB spec 9.4.4).
REQ_GET_STATUS - Static variable in class ch.ntb.usb.USB
This request returns status for the specified recipient (USB spec 9.4.5).
REQ_SET_ADDRESS - Static variable in class ch.ntb.usb.USB
This request sets the device address for all future device accesses (USB spec 9.4.6).
REQ_SET_CONFIGURATION - Static variable in class ch.ntb.usb.USB
This request sets the device configuration (USB spec 9.4.7).
REQ_SET_DESCRIPTOR - Static variable in class ch.ntb.usb.USB
This request is optional and may be used to update existing descriptors or new descriptors may be added (USB spec 9.4.8).
REQ_SET_FEATURE - Static variable in class ch.ntb.usb.USB
This request is used to set or enable a specific feature (USB spec 9.4.9).
REQ_SET_INTERFACE - Static variable in class ch.ntb.usb.USB
This request allows the host to select an alternate setting for the specified interface (USB spec 9.4.10).
REQ_SYNCH_FRAME - Static variable in class ch.ntb.usb.USB
This request is used to set and then report an endpoint’s synchronization frame (USB spec 9.4.11).
REQ_TYPE_DIR_DEVICE_TO_HOST - Static variable in class ch.ntb.usb.USB
Identifies the direction of data transfer in the second phase of the control transfer.
REQ_TYPE_DIR_HOST_TO_DEVICE - Static variable in class ch.ntb.usb.USB
Identifies the direction of data transfer in the second phase of the control transfer.
REQ_TYPE_RECIP_DEVICE - Static variable in class ch.ntb.usb.USB
Specifies the intended recipient of the request.
REQ_TYPE_RECIP_ENDPOINT - Static variable in class ch.ntb.usb.USB
Specifies the intended recipient of the request.
REQ_TYPE_RECIP_INTERFACE - Static variable in class ch.ntb.usb.USB
Specifies the intended recipient of the request.
REQ_TYPE_RECIP_OTHER - Static variable in class ch.ntb.usb.USB
Specifies the intended recipient of the request.
REQ_TYPE_TYPE_CLASS - Static variable in class ch.ntb.usb.USB
Specifies the type of the request.
REQ_TYPE_TYPE_RESERVED - Static variable in class ch.ntb.usb.USB
Specifies the type of the request.
REQ_TYPE_TYPE_STANDARD - Static variable in class ch.ntb.usb.USB
Specifies the type of the request.
REQ_TYPE_TYPE_VENDOR - Static variable in class ch.ntb.usb.USB
Specifies the type of the request.
reset() - Method in class ch.ntb.usb.Device
Sends an USB reset to the device.
reset(long, boolean) - Static method in class ztex.EzUsb
Controls the reset state of a Cypress EZ-USB device.
resetEzUsb() - Method in class ztex.Ztex1
Resets the EZ-USB and manages the renumeration process.
resetFpga() - Method in class ztex.Ztex1v1
Resets the FPGA.

S

selectFpga(int) - Method in class ztex.Ztex1v1
Select a FPGA
sendtUserData() - Method in class ztex.ConfigData
Sends the user data to the FPGA Board.
setBitstreamSize(int) - Method in class ztex.ConfigData
Sets the actual size of bitstream in bytes.
setConfiguration(int) - Method in class ztex.Ztex1
Sets the configuration.
setFpga(String, String, String) - Method in class ztex.ConfigData
Sets FPGA information.
setMaxBitstreamSize(int) - Method in class ztex.ConfigData
Sets the maximum size of bitstream in 4 KByte sectors.
setName(String, int, int, String) - Method in class ztex.ConfigData
Sets the name of the FPGA Board.
setRam(int, String) - Method in class ztex.ConfigData
Sets RAM information.
setResetOnFirstOpen(boolean, int) - Method in class ch.ntb.usb.Device
If enabled, the device is reset when first opened.
setSN(String) - Method in class ztex.ConfigData
Sets the serial number.
setSnString(String) - Method in class ztex.ZtexIhxFile1
Modifies the serial number string.
setUserData(int, byte) - Method in class ztex.ConfigData
Sets user data at index i to value v.
snString() - Method in class ztex.ZtexDevice1
Returns the serial number string of the device.
snString() - Method in class ztex.ZtexIhxFile1
Returns the serial number string.

T

tempSensorRead(int) - Method in class ztex.Ztex1v1
Read temperature sensor data.
tempSensorUpdateInterval - Variable in class ztex.Ztex1v1
smallest temperature sensor update interval in ms
toString() - Method in class ch.ntb.usb.Usb_Bus
 
toString() - Method in class ch.ntb.usb.Usb_Config_Descriptor
 
toString() - Method in class ch.ntb.usb.Usb_Device
 
toString() - Method in class ch.ntb.usb.Usb_Device_Descriptor
 
toString() - Method in class ch.ntb.usb.Usb_Endpoint_Descriptor
 
toString() - Method in class ch.ntb.usb.Usb_Interface
 
toString() - Method in class ch.ntb.usb.Usb_Interface_Descriptor
 
toString() - Method in class ztex.Ztex1
Returns a lot of useful information about the corresponding device.
toString() - Method in class ztex.Ztex1v1
Returns a lot of useful information about the corresponding device.
toString() - Method in class ztex.ZtexDevice1
Returns a string representation if the device with a lot of useful information.
toString() - Method in class ztex.ZtexIhxFile1
Returns a string representation if the instance.
trySetConfiguration(int) - Method in class ztex.Ztex1
Tries to set the configuration.

U

updateDescriptors() - Method in class ch.ntb.usb.Device
Updates the device and descriptor information from the bus.
uploadFirmware(long, IhxFile) - Static method in class ztex.EzUsb
Uploads the Firmware to a Cypress EZ-USB device.
uploadFirmware(ZtexIhxFile1, boolean) - Method in class ztex.Ztex1
Uploads the firmware to the EZ-USB and manages the renumeration process.
uploadFirmware(String, boolean) - Method in class ztex.Ztex1
Uploads the firmware to the EZ-USB and manages the renumeration process.
uploadFirmware(InputStream, String, boolean) - Method in class ztex.Ztex1
Uploads the firmware to the EZ-USB and manages the renumeration process.
USB - Class in ch.ntb.usb
This class manages all USB devices and defines some USB specific constants.
USB() - Constructor for class ch.ntb.usb.USB
 
usb_bulk_read(long, int, byte[], int, int) - Static method in class ch.ntb.usb.LibusbJava
Performs a bulk read request to the endpoint specified by ep.
usb_bulk_write(long, int, byte[], int, int) - Static method in class ch.ntb.usb.LibusbJava
Performs a bulk write request to the endpoint specified by ep.
Usb_Bus - Class in ch.ntb.usb
Represents an USB bus.
Usb_Bus() - Constructor for class ch.ntb.usb.Usb_Bus
 
usb_claim_interface(long, int) - Static method in class ch.ntb.usb.LibusbJava
Claim an interface of a device.
USB_CLASS_AUDIO - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_COMM - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_DATA - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_HID - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_HUB - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_MASS_STORAGE - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_PER_INTERFACE - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_PRINTER - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
USB_CLASS_VENDOR_SPEC - Static variable in class ch.ntb.usb.Usb_Device_Descriptor
Device and/or interface class codes.
usb_clear_halt(long, int) - Static method in class ch.ntb.usb.LibusbJava
Clears any halt status on an endpoint.
usb_close(long) - Static method in class ch.ntb.usb.LibusbJava
usb_close closes a device opened with usb_open.
Usb_Config_Descriptor - Class in ch.ntb.usb
Represents the descriptor of a USB configuration.
Usb_Config_Descriptor() - Constructor for class ch.ntb.usb.Usb_Config_Descriptor
 
usb_control_msg(long, int, int, int, int, byte[], int, int) - Static method in class ch.ntb.usb.LibusbJava
Performs a control request to the default control pipe on a device.
Usb_Descriptor - Class in ch.ntb.usb
Common USB descriptor values.
Usb_Descriptor() - Constructor for class ch.ntb.usb.Usb_Descriptor
 
Usb_Device - Class in ch.ntb.usb
Represents an USB device.
Usb_Device() - Constructor for class ch.ntb.usb.Usb_Device
 
Usb_Device_Descriptor - Class in ch.ntb.usb
Represents the descriptor of a USB device.
Usb_Device_Descriptor() - Constructor for class ch.ntb.usb.Usb_Device_Descriptor
 
USB_DT_CONFIG - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_CONFIG_SIZE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor sizes per descriptor type.
USB_DT_DEVICE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_DEVICE_SIZE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor sizes per descriptor type.
USB_DT_ENDPOINT - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_ENDPOINT_AUDIO_SIZE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor sizes per descriptor type.
USB_DT_ENDPOINT_SIZE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor sizes per descriptor type.
USB_DT_HID - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_HUB - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_HUB_NONVAR_SIZE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor sizes per descriptor type.
USB_DT_INTERFACE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_INTERFACE_SIZE - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor sizes per descriptor type.
USB_DT_PHYSICAL - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_REPORT - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_DT_STRING - Static variable in class ch.ntb.usb.Usb_Descriptor
Descriptor types.
USB_ENDPOINT_ADDRESS_MASK - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Endpoint address mask (in bEndpointAddress).
Usb_Endpoint_Descriptor - Class in ch.ntb.usb
Represents the descriptor of an USB endpoint.
Usb_Endpoint_Descriptor() - Constructor for class ch.ntb.usb.Usb_Endpoint_Descriptor
 
USB_ENDPOINT_DIR_MASK - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Endpoint address mask (in bEndpointAddress).
USB_ENDPOINT_TYPE_BULK - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Possible endpoint types (in bmAttributes).
USB_ENDPOINT_TYPE_CONTROL - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Possible endpoint types (in bmAttributes).
USB_ENDPOINT_TYPE_INTERRUPT - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Possible endpoint types (in bmAttributes).
USB_ENDPOINT_TYPE_ISOCHRONOUS - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Possible endpoint types (in bmAttributes).
USB_ENDPOINT_TYPE_MASK - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Endpoint type mask (in bmAttributes).
usb_find_busses() - Static method in class ch.ntb.usb.LibusbJava
usb_find_busses will find all of the busses on the system.
usb_find_devices() - Static method in class ch.ntb.usb.LibusbJava
usb_find_devices will find all of the devices on each bus.
usb_get_busses() - Static method in class ch.ntb.usb.LibusbJava
usb_get_busses returns a tree of descriptor objects.
usb_get_descriptor(long, byte, byte, int) - Static method in class ch.ntb.usb.LibusbJava
Retrieves a descriptor from the device identified by the type and index of the descriptor from the default control pipe.
usb_get_descriptor_by_endpoint(long, int, byte, byte, int) - Static method in class ch.ntb.usb.LibusbJava
Retrieves a descriptor from the device identified by the type and index of the descriptor from the control pipe identified by ep.
usb_get_string(long, int, int) - Static method in class ch.ntb.usb.LibusbJava
Retrieves the string descriptor specified by index and langid from a device.
usb_get_string_simple(long, int) - Static method in class ch.ntb.usb.LibusbJava
usb_get_string_simple is a wrapper around usb_get_string that retrieves the string description specified by index in the first language for the descriptor.
usb_init() - Static method in class ch.ntb.usb.LibusbJava
Just like the name implies, usb_init sets up some internal structures.
Usb_Interface - Class in ch.ntb.usb
Represents an USB interface.
Usb_Interface() - Constructor for class ch.ntb.usb.Usb_Interface
 
Usb_Interface_Descriptor - Class in ch.ntb.usb
Represents the descriptor of a USB interface.
Usb_Interface_Descriptor() - Constructor for class ch.ntb.usb.Usb_Interface_Descriptor
 
usb_interrupt_read(long, int, byte[], int, int) - Static method in class ch.ntb.usb.LibusbJava
Performs a interrupt read request to the endpoint specified by ep.
usb_interrupt_write(long, int, byte[], int, int) - Static method in class ch.ntb.usb.LibusbJava
Performs an interrupt write request to the endpoint specified by ep.
USB_MAXALTSETTING - Static variable in class ch.ntb.usb.Usb_Interface
Maximal number of alternate settings
USB_MAXCONFIG - Static variable in class ch.ntb.usb.Usb_Config_Descriptor
Maximum number of configurations per device
USB_MAXENDPOINTS - Static variable in class ch.ntb.usb.Usb_Endpoint_Descriptor
Maximum number of endpoints
USB_MAXINTERFACES - Static variable in class ch.ntb.usb.Usb_Interface_Descriptor
Maximum number of interfaces
usb_open(Usb_Device) - Static method in class ch.ntb.usb.LibusbJava
usb_open is to be used to open up a device for use.
usb_release_interface(long, int) - Static method in class ch.ntb.usb.LibusbJava
Releases a previously claimed interface
usb_reset(long) - Static method in class ch.ntb.usb.LibusbJava
Resets a device by sending a RESET down the port it is connected to.
usb_set_altinterface(long, int) - Static method in class ch.ntb.usb.LibusbJava
Sets the active alternate setting of the current interface
usb_set_configuration(long, int) - Static method in class ch.ntb.usb.LibusbJava
Sets the active configuration of a device
usb_set_debug(int) - Static method in class ch.ntb.usb.LibusbJava
Sets the debugging level of libusb.
usb_strerror() - Static method in class ch.ntb.usb.LibusbJava
Returns the error string after an error occured.
USBException - Exception in ch.ntb.usb
 
USBException(String) - Constructor for exception ch.ntb.usb.USBException
 
UsbException - Exception in ztex
Signals an USB error.
UsbException(String) - Constructor for exception ztex.UsbException
Constructs an instance from the given error message.
UsbException(Usb_Device, String) - Constructor for exception ztex.UsbException
Constructs an instance from the given device and error message.
usbProductId() - Method in class ztex.ZtexDevice1
Returns the USB product ID of the device.
USBTimeoutException - Exception in ch.ntb.usb
 
USBTimeoutException(String) - Constructor for exception ch.ntb.usb.USBTimeoutException
 
usbVendorId() - Method in class ztex.ZtexDevice1
Returns the USB vendor ID of the device.
Utils - Class in ch.ntb.usb
 
Utils() - Constructor for class ch.ntb.usb.Utils
 

V

valid() - Method in class ztex.Ztex1
Returns true if ZTEX descriptor 1 is available.
valid() - Method in class ztex.Ztex1v1
Returns true if ZTEX interface 1 is available.
valid(int, int) - Method in class ztex.Ztex1v1
Returns true if ZTEX interface 1 and capability i.j are available.
valid() - Method in class ztex.ZtexDevice1
Returns true if ZTEX descriptor 1 is available.
vendorCommand(int, String, int, int, byte[], int) - Method in class ztex.Ztex1
Sends a vendor command to Endpoint 0 of the EZ-USB device.
vendorCommand(int, String, int, int) - Method in class ztex.Ztex1
Sends a vendor command with no payload data to Endpoint 0 of the EZ-USB device.
vendorCommand(int, String) - Method in class ztex.Ztex1
Sends a vendor command with no payload data and no setup data to Endpoint 0 of the EZ-USB device.
vendorCommand2(int, String, int, int, byte[], int) - Method in class ztex.Ztex1
Sends a vendor command to Endpoint 0 of the EZ-USB device and throws an UsbException if not all of the payload has been sent.
vendorRequest(int, String, int, int, byte[], int) - Method in class ztex.Ztex1
Sends a vendor request to Endpoint 0 of the EZ-USB device.
vendorRequest(int, String, byte[], int) - Method in class ztex.Ztex1
Sends a vendor request to Endpoint 0 of the EZ-USB device.
vendorRequest2(int, String, int, int, byte[], int) - Method in class ztex.Ztex1
Sends a vendor request to Endpoint 0 of the EZ-USB device and throws an UsbException if not all of the payload has been received.
vendorRequest2(int, String, byte[], int) - Method in class ztex.Ztex1
Sends a vendor request to Endpoint 0 of the EZ-USB device and throws an UsbException if not all of the payload has been received.

W

writeBulk(int, byte[], int, int, boolean) - Method in class ch.ntb.usb.Device
Write data to the device using a bulk transfer.
writeInterrupt(int, byte[], int, int, boolean) - Method in class ch.ntb.usb.Device
Write data to the device using a interrupt transfer.

X

XMEGA_EC_ADDRESS_ERROR - Static variable in class ztex.Ztex1v1
Signals an address error (invalid address or wrong page size).
XMEGA_EC_INVALID_DEVICE - Static variable in class ztex.Ztex1v1
Signals that the ATxmega controller is not supported.
XMEGA_EC_NO_ERROR - Static variable in class ztex.Ztex1v1
Means no error.
XMEGA_EC_NVM_BUSY - Static variable in class ztex.Ztex1v1
Signals that the NVM is busy.
XMEGA_EC_NVM_TIMEOUT - Static variable in class ztex.Ztex1v1
Signals that an NVM timeout occurred.
XMEGA_EC_PDI_READ_ERROR - Static variable in class ztex.Ztex1v1
Signals a PDI read error.
xmegaEC - Variable in class ztex.Ztex1v1
Last ATxmega error code obtained by Ztex1v1.xmegaState().
xmegaEepromPages() - Method in class ztex.Ztex1v1
Returns the number of the ATxmega EEPROM pages.
xmegaEepromPageSize() - Method in class ztex.Ztex1v1
Returns the size of the ATXmega EEPROM pages.
xmegaEepromPageWrite(int, byte[]) - Method in class ztex.Ztex1v1
Writes data to EEPROM memory of ATxmega.
xmegaEepromRead(int, byte[], int) - Method in class ztex.Ztex1v1
Reads data from EEPROM memory of ATxmega.
xmegaEnabled() - Method in class ztex.Ztex1v1
Returns true if ATxmega controller is available.
xmegaFlashPages() - Method in class ztex.Ztex1v1
Returns the number of the ATxmega Flash pages.
xmegaFlashPageSize() - Method in class ztex.Ztex1v1
Returns the size of the ATxmega Flash pages.
xmegaFlashPageWrite(int, byte[]) - Method in class ztex.Ztex1v1
Writes data to Flash memory of ATxmega.
xmegaFlashRead(int, byte[], int) - Method in class ztex.Ztex1v1
Reads data from Flash memory of ATxmega.
xmegaFuseRead(int, byte[], int) - Method in class ztex.Ztex1v1
Reads data from Fuse memory of ATxmega.
xmegaFuseRead(int) - Method in class ztex.Ztex1v1
Reads data one Fuse of ATxmega.
xmegaFuseWrite(int, int) - Method in class ztex.Ztex1v1
Writes one Fuse of the ATxmega.
xmegaNvmRead(int, byte[], int) - Method in class ztex.Ztex1v1
Reads data from the NVM of ATxmega.
xmegaReset() - Method in class ztex.Ztex1v1
Resets the ATxmega.
xmegaState() - Method in class ztex.Ztex1v1
Read ATxmega error and status information from the device.
xmegaStrError(int) - Method in class ztex.Ztex1v1
Converts a given error code into a String.
xmegaStrError() - Method in class ztex.Ztex1v1
Gets the last ATxmega error from the device.
xmegaWriteEeprom(IhxFile) - Method in class ztex.Ztex1v1
Uploads data to the EEPROM memory
xmegaWriteFirmware(IhxFile) - Method in class ztex.Ztex1v1
Uploads firmware to the flash memory

Z

ztex - package ztex
The Java API of the ZTEX EZ-USB SDK.
Ztex1 - Class in ztex
This class implements the interface-independent part of the communication protocol for the interaction with the ZTEX firmware.
Ztex1(ZtexDevice1) - Constructor for class ztex.Ztex1
Constructs an instance from a given device.
Ztex1v1 - Class in ztex
This class implements the communication protocol of the interface version 1 for the interaction with the ZTEX firmware.
Ztex1v1(ZtexDevice1) - Constructor for class ztex.Ztex1v1
Constructs an instance from a given device.
ZtexDevice1 - Class in ztex
A class representing an EZ-USB device that supports the ZTEX descriptor 1 or an unconfigured EZ-USB device.
ZtexDevice1(Usb_Device, int, int, boolean) - Constructor for class ztex.ZtexDevice1
Constructs an instance from a given USB device.
ZtexIhxFile1 - Class in ztex
Represents a firmware image with ZTEX descriptor 1 loaded from an ihx (Intel Hex format) file.
ZtexIhxFile1(InputStream, String, int) - Constructor for class ztex.ZtexIhxFile1
Constructs an instance from a given file name and descriptor position.
ZtexIhxFile1(InputStream, String) - Constructor for class ztex.ZtexIhxFile1
Constructs an instance from a given file name and descriptor position.
ZtexIhxFile1(String, int) - Constructor for class ztex.ZtexIhxFile1
Constructs an instance from a given file name and descriptor position.
ZtexIhxFile1(String) - Constructor for class ztex.ZtexIhxFile1
Constructs an instance from a given file name.
ztexProductId - Static variable in class ztex.ZtexDevice1
USB product ID for ZTEX devices that support ZTEX descriptor 1: 0x100.
ztexProductIdMax - Static variable in class ztex.ZtexDevice1
Largest USB product ID for ZTEX devices that support ZTEX descriptor 1: 0x1ff.
ZtexScanBus1 - Class in ztex
A class used for finding the EZ-USB devices on the USB.
ZtexScanBus1(int, int, boolean, boolean, int, String, int, int, int, int) - Constructor for class ztex.ZtexScanBus1
Scans the USB for suitable devices and constructs a list of them.
ZtexScanBus1(int, int, boolean, boolean, int, String) - Constructor for class ztex.ZtexScanBus1
Scans the USB for suitable devices and constructs a list of them.
ZtexScanBus1(int, int, boolean, boolean, int) - Constructor for class ztex.ZtexScanBus1
Scans the USB for suitable devices and constructs a list of them.
ZtexScanBus1(int, int, boolean, boolean) - Constructor for class ztex.ZtexScanBus1
Scans the USB for suitable devices and constructs a list of them.
ztexVendorId - Static variable in class ztex.ZtexDevice1
ZTEX vendor ID: 0x221a

A B C D E F G H I J L M N O P R S T U V W X Z