WriteFT232REEPROM() public method

Writes the specified values to the EEPROM of an FT232R or FT245R device. Calls FT_EE_Program in FTD2XX DLL
If the strings are too long, they will be truncated to their maximum permitted lengths
Thrown when the current device does not match the type required by this method.
public WriteFT232REEPROM ( FT232R_EEPROM_STRUCTURE ee232r ) : FT_STATUS
ee232r FT232R_EEPROM_STRUCTURE The EEPROM settings to be written to the device
return FT_STATUS
 /// <summary>
 /// Take the previously read EEPROM_STRUCTURE 
 /// and write it back to the FT EEPROM
 /// after elsewhere checking and modifying the 
 /// product description if necessary
 /// </summary>
 /// <param name="dev"></param>
 /// <returns></returns>
 public FTDI.FT_STATUS writeFtdiEEProm(FTDI dev)
 {
     FTDI.FT_STATUS ftStatus = FTDI.FT_STATUS.FT_OK;
     try
     {
         ftStatus = dev.WriteFT232REEPROM(ftEeprom);
     }
     catch (FTDI.FT_EXCEPTION ex)
     {
         throw ex;
     }
     return ftStatus;
 }