/Designs/HAM Constructions/ContestInterface/SW/FT_List/BIN/FT_List.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/Designs/HAM Constructions/ContestInterface/SW/FT_List/FT_List.cpp
9,7 → 9,6
// History:
//
// 1.00 2014_01 Start
// 1.01 2014_03 Wait at the end of the program
//
//
// Purpose:
33,7 → 32,7
//
 
#define YEAR "2014"
#define VERSION "1.01"
#define VERSION "1.00"
 
 
// Library Definitions
40,7 → 39,6
// -------------------
 
#include <stdio.h> // Standard IO (printf, ...)
#include <conio.h> // Windows _getch
#include <windows.h> // Windows Console Application
#include "lib_win32\ftd2xx.h" // FTDI Library
 
48,14 → 46,6
#pragma comment (lib, "lib_win32/ftd2xx.lib") // Add this file to Resources
 
 
void waitforkey()
{
printf("\nPress any Key ...\n");
_getch();
printf("\n");
}
 
 
// Main
// ----
 
85,16 → 75,13
// Create Device Information List
DWORD numDevs = 0;
ftStatus = FT_CreateDeviceInfoList(&numDevs);
if (ftStatus == FT_OK && numDevs>0)
if (ftStatus == FT_OK)
printf(" Devices Found %d\n", numDevs);
else
printf(" No FTDI Device Found\n");
 
if (numDevs==0)
{
waitforkey();
return -1;
}
 
// List All FTDI Devices
FT_HANDLE ftHandleTemp;
137,9 → 124,8
FT_Close(ftHandle);
}
}
printf("\n");
printf("\n\n");
}
}
waitforkey();
return 0;
}