//-----------------------------------------------------------------------
//
// Copyright © 2012 Nils Hammar and Future Technology Devices International Limited. All rights reserved.
//
//-----------------------------------------------------------------------
namespace FtdiApi.Constants
{
///
/// Constants for FT_STATUS
///
public enum FT_STATUS
{
///
/// Status OK
///
FT_OK = 0,
///
/// The device handle is invalid
///
FT_INVALID_HANDLE,
///
/// Device not found
///
FT_DEVICE_NOT_FOUND,
///
/// Device is not open
///
FT_DEVICE_NOT_OPENED,
///
/// IO error
///
FT_IO_ERROR,
///
/// Insufficient resources
///
FT_INSUFFICIENT_RESOURCES,
///
/// A parameter was invalid
///
FT_INVALID_PARAMETER,
///
/// The requested baud rate is invalid
///
FT_INVALID_BAUD_RATE,
///
/// Device not opened for erase
///
FT_DEVICE_NOT_OPENED_FOR_ERASE,
///
/// Device not opened for write
///
FT_DEVICE_NOT_OPENED_FOR_WRITE,
///
/// Failed to write to device
///
FT_FAILED_TO_WRITE_DEVICE,
///
/// Failed to read the device EEPROM
///
FT_EEPROM_READ_FAILED,
///
/// Failed to write the device EEPROM
///
FT_EEPROM_WRITE_FAILED,
///
/// Failed to erase the device EEPROM
///
FT_EEPROM_ERASE_FAILED,
///
/// An EEPROM is not fitted to the device
///
FT_EEPROM_NOT_PRESENT,
///
/// Device EEPROM is blank
///
FT_EEPROM_NOT_PROGRAMMED,
///
/// Invalid arguments
///
FT_INVALID_ARGS,
///
/// An other error has occurred
///
FT_OTHER_ERROR,
}
}