21.07.2015 Views

Programming Info D2XXPG31.pdf

Programming Info D2XXPG31.pdf

Programming Info D2XXPG31.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

61 D2XX Programmer's Guide3.7 FT_EE_ProgramExProgram the EEPROM and pass strings separately.FT_STATUS FT_EE_ProgramEx (FT_HANDLE ftHandle, PFT_PROGRAM_DATA pData, char*Manufacturer, char *ManufacturerId, char *Description, char*SerialNumber)ParametersftHandlepData*Manufacturer*ManufacturerID*Description*SerialNumberHandle of the device.Pointer to a structure of type FT_PROGRAM_DATA.Pointer to a null-terminated string containing the manufacturername.Pointer to a null-terminated string containing the manufacturerID.Pointer to a null-terminated string containing the devicedescription.Pointer to a null-terminated string containing the device serialnumber.Return ValueFT_OK if successful, otherwise the return value is an FT error code.RemarksThis variation of the FT_EE_Program 59 function was included to provide support for languagessuch as LabVIEW where problems can occur when string pointers are contained in a structure.This function interprets the parameter pvArgs as a pointer to a struct of typeFT_PROGRAM_DATA that contains the data to write to the EEPROM. The data is written toEEPROM, then read back and verified.The string pointer parameters in the FT_PROGRAM_DATA structure should be allocated asDWORDs to avoid overlapping of parameters. The string parameters are then passed inseparately.If the SerialNumber field is NULL, or SerialNumber points to a NULL string, a serial number basedon the ManufacturerId and the current date and time will be generated.If pvArgs is NULL, the device will be programmed with the default data{0x0403, 0x6001, "FTDI", "FT", "USB HS Serial Converter", "", 44, 1, 0, 1, FALSE, FALSE, FALSE,FALSE, FALSE, FALSE, 0}© Future Technology Devices International Ltd. 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!