Справочник Пользователя для IBM LPCI-COM232-8

Скачать
Страница из 24
Chapter 5: Programming
 
Sample Programs
  
There are sample programs provided with the card in C, Pascal, QuickBASIC, and several Windows 
languages. DOS samples are located in the DOS directory and Windows samples are located in the 
WIN32 directory. 
 
Windows Programming
 
The card installs into Windows as COM ports. Thus the Windows standard API functions can be used. In 
particular: 
 
►CreateFile() and CloseHandle() for opening and closing a port.
 
►SetupComm(), SetCommTimeouts(), GetCommState(), and SetCommState() to set and 
change a port’s settings.
 
►ReadFile() and WriteFile() for accessing a port.
See the documentation for your chosen language for details. 
  
Under DOS, the process is identical to programming any 16550- or 16750-compatible UART. 
Manual LPCI-COM-8SM 
17