Rockwell-automation 1747-PCIS API Software - Open Controller Instrukcja Użytkownika Strona 78

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 174
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 77
Publication 1747-UM002A-US-P - June 2000
6-18 Library of Routines
OC_GetDeviceInfo
OC_GeDeviceInfo returns information about the scanner device.
Syntax:
int OC_GetDeviceInfo(HANDLE handle, OCDEVICEINFO *devinfo);
Description:
The OCDEVICEINFO is defined as:
{
WORD ScannerType;/* scanner device type */
WORD ScannerIrq;/* allocated interrupt */
DWORD ScannerMemory;/* dual-port memory access */
WORD ControlIo;/* PCIS control registers address */
DWORD SRAM_Size/* size of available SRAM in bytes */
} OCDEVICEINFO;
handle must be a valid handle returned from OC_OpenScanner.
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library.
Description:
HANDLE Handle;
OCDEVICEINFO devinfo;
/* display size of available SRAM */
OC_GetDeviceInfo(Handle, &devinfo);
printf(“SRAM Size is %ld bytes\n”, devinfo.SRAM_Size);
Name: Description:
SUCCESS The extended error information was read successfully.
ERR_OCACCESS
handle does not have access to scanner
Przeglądanie stron 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 173 174

Komentarze do niniejszej Instrukcji

Brak uwag